bug android template

Describe the bug
cargo mobile init missing too many file
Steps To Reproduce
cargo mobile init
fund only a  MainActivity.kt file in my app folder
Screenshots

cargo android run
 (V2243A) with target "aarch64-linux-android"
   Compiling zerocopy-derive v0.7.35
   Compiling serde_derive v1.0.208
   Compiling cssparser v0.27.2
   Compiling thiserror-impl v1.0.63
   Compiling cssparser-macros v0.6.1
   Compiling html5ever v0.26.0
   Compiling derive_more v0.99.18
   Compiling regex v1.10.6
   Compiling tao-macros v0.1.2
   Compiling anyhow v1.0.86
   Compiling paste v1.0.15
   Compiling http v0.2.12
   Compiling sha2 v0.10.8TING [4s]
   Compiling url v2.5.2CUTING [4s]
   Compiling env_logger v0.10.25s]
   Compiling wry v0.37.0UTING [6s]
error: failed to run custom build command for `wry v0.37.0`

Caused by:
  process didn't exit successfully: `D:\tauri\a\target\debug\build\wry-a64b02ec26971436\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=WRY_ANDROID_PACKAGE
  cargo:rerun-if-env-changed=WRY_ANDROID_LIBRARY
  cargo:rerun-if-env-changed=WRY_ANDROID_KOTLIN_FILES_OUT_DIR

  --- stderr
  thread 'main' panicked at C:\Users\Administrator\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wry-0.37.0\build.rs:37:11:
  Failed to canonicalize `WRY_ANDROID_KOTLIN_FILES_OUT_DIR` path D:\tauri\a\gen\android/app/src/main/kotlin/com/example
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: Failed to compile lib
    `Failed to run `cargo build`: command ["cargo", "build", "--package",
    "a", "--manifest-path", "D:\\tauri\\a\\Cargo.toml", "--target",
    "aarch64-linux-android"] exited with code 101

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:rustBuildArm64Debug'.
> Process 'command 'cargo'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 15s
error: Failed to assemble APK
    command ["D:\\tauri\\a\\gen\\android\\gradlew.bat", "--project-dir", "D:\\tauri\\a\\gen\\android"] exited with code

 cargo mobile doctor

[✔] cargo-mobile v0.13.2
    • Contains commits up to "feat: Add a Dioxus template (#357)\n"
    • Installed at "C:\\Users\\Administrator\\.cargo\\.cargo-mobile2"
    • Windows 11 v10.0
    • rustc v1.80.1 (3f5fd8dd4 2024-8-6)

[✔] Android developer tools
    • SDK v26.1.1 installed at "D:\\Android\\sdk"
    • NDK v25.0.8775105 installed at "D:\\Android\\sdk\\ndk\\25.0.8775105"

[✔] Connected devices
 (V2243A)ia 5230

help~

 % cargo mobile init
error: Config error
    Failed to load config: Failed to parse config file at /Users/carflow/Sites/
    taurimobile/mobile.toml: TOML parse error at line 1, column 1
      |
    1 | [app]
      | ^^^^^
    missing field `identifier`


chore(deps): update terraform terraform-ibm-modules/event-notifications/ibm to v1.3.6

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/event-notifications/ibm (source)
module
patch
1.3.4 -> 1.3.6

Release Notes

terraform-ibm-modules/terraform-ibm-event-notifications (terraform-ibm-modules/event-notifications/ibm)
v1.3.6
Compare Source
Bug Fixes

add missing depends_on which can cause KMS integration to fail (#196) (f613570)

v1.3.5
Compare Source
Bug Fixes

various variable description and documentation updates (#184) (3c4688c)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

:tada: This PR is included in version 1.7.0 :tada:
The release is available on:

GitHub release
v1.7.0

Your semantic-release bot :package::rocket:


[FEAT] Switch from Argparse to Typer

Description
Motivation
Solutions
https://typer.tiangolo.com/

Add too much complexity for the value it adds


Use of unresolved identifier 'DKImagePickerController'

I manually copied DKCamera and DKImagePickerController into my application project, but when I put this line of code:
let pickerController = DKImagePickerController()
It gives the error "Use of unresolved identifier 'DKImagePickerController'". Can you please tell me how I resolve this issue?

What language your project uses? swift? oc?

ping...

I am having the same issue...using swift

@kenrickvaz
Are you using CocoaPods?
I've uploaded a demo project:TestDKImagePickerControllerSwift.zip

Bump. Swift 3 Test project please?
Use of unresolved identifier 'DKImagePickerController'

@danieljin
There is a Swift 3 demo project: TestDKImagePickerControllerSwift.zip

I think mentioning that import DKImagePickerController is required in the README would be helpful.
Also, that it's now self.present in swift 3 instead of self.presentViewController

@danieljin Thank you for reminding me of that! I'll update in the next version :)


Update to use macaddr 4.0.0

Minor changes to make it work again with latest release of macaddr (and macaddr-sexp).

thanks!


Write Flatpak Installation Guide GUI (GNOME Software)

On our webpage
Should not be available except via direct link
Direct link should not be exposed for the time being
Should be on the same page as the Command Line instructions

Done in corresponding repo: https://github.com/mpvqc/mpvQC-flatpak


DOS protection based on message slot

Motivation

There are a lot of very old gossiped blocks sent to our node randomly on mainnet, it took our time to deserialize them before we ignore them (since they're known in forkchoice)
This contributes to our I/O lag issue
It happened in v1.7 as well but likely more painful in unstable

Description

Check if gossiped blocks are > 32 slots from clock slot, ignore them
Apply for beacon_attestation and aggregate_and_proof topic as well (don't apply for sync committee metrics for now since there are not a lot of them and message size is small)

For attestation topics, the number of 32 is respective to ATTESTATION_PROPAGATION_SLOT_RANGE per spec
For gossiped blocks, we only to want to receive gossip blocks in the last 32 slot and have gossipsub seenCache handle the duplicate, also 32 slots = gossip seenCache TTL per spec . Otherwise it'll be handled by our sync services

Remove gossipValidationErrorTooManySkippedSlots metric because we have gossipValidationError metric already
Refactor the api to extract slot from gossiped block serialized data

part of #5393
Test
Was able to caught the new GOSSIP_ERROR_PAST_SLOT error in the last 3h (this is on a mainnet node)

just merged in order to reassess our performance on unstable, feel free to drop some comments if you see anything to revise @dapplion

:tada: This PR is included in v1.8.0 :tada:


It doesn't work

Hello. First I want to thank you all for your work.
I am trying to test it but I Can't.
First I used the bugfix version on the releases. It says it activated but it doesn't even show the config tab. then I tryed using the. Note I already set the permisions of the folde to 775
`Error occurred creating a module symlink (/home/idfh2gehq68s/public_html/supportcdg/public/modules/hostetskigpt). Please check folder permissions.
Cache cleared successfully.
Nothing to migrate.
Error occurred creating [/home/idfh2gehq68s/public_html/supportcdg/public/modules/hostetskigpt] symlink: symlink(): No such file or directory
The [/home/idfh2gehq68s/public_html/supportcdg/public/modules/hostetskigpt] symlink has been created
Clearing cache...
The compiled services & packages files have been removed.
Cache cleared successfully.
Compiled views cleared!
Configuration cache cleared!
Configuration cached successfully!
Created: storage/app/public/js/vars.js`
I am using Freescout 1.8.76

Hello. Sorry, we updated information in the README before we released the update itself :) In version 1.0.1 there were no settings through the web interface, but right now they appeared. Please download actual code from the repository, replace old code with it, re-enable module and try again. After update you can find configuration tab in mailbox settings.

Update module to new version https://github.com/code-debug228/HostetskiGPT/releases/tag/1.0.2
Please note that after the update, you must either turn the module off and on again, or run the command "php artisan migrate" in the fs folder, as the database has been updated.

Hello. Thanks for your quick response. I Installed the new version but I don't know why it doesn't activate when I try. I deactivated the module and erased the old package. When I try to activate it, It give me an error mesage. But then I changed the folder name to HostetskiGPT-bugfix and it activate but it doesn't show any sign of being active because nothing change on the site where it should be the config or even when I try to edit a response.

Error occurred creating a module symlink (/home/idfh2gehq68s/public_html/supportcdg/public/modules/hostetskigpt). Please check folder permissions.

Please let me know if you need any other information.

It looks like your folder permissions are wrong after unpacking?
Try ls -la in the module folder. Your HostetskiGPT folder will probably show a different user.
Then chown your_user:your_group HostetskiGPT -R. This will change the owner recursively.
For me the new version works fine 👍🏻 Just be sure to use the correct ChatGPT Version. For the free API only 3.5 works I believe. Version 4 said there's no connection to internet.

thanks fro your response. The issue with the folders name was related to the simlink. The first time I tried to activate the module I simply unpacked the folder and changed the permissions  after I deleted the simlink it generated a new one and corrected. Now it show its activated but it doesn't show any change on freescout so its just like it wasn't active.

So you

deleted the old module in the freescout settings
unpacked the new module
changed name/permissions
activated the module in the settings

and it's still not working?

I tried all that and erasing the cache before copying the module again and reactivating it but it still doesn't work.

Hmm maybe restart freescout?


What software would you like us to add to our image catalog? (one per issue please)
https://github.com/grafana/agent
https://github.com/grafana/agent/blob/main/cmd/grafana-agent/Dockerfile
which versions of the containerized software do you need?
latest
Add some justification for why this specific image and versions are important.
commonly used stack in logging/monitoring

I did a poc here https://github.com/tuananh/grafana-agent
Will upstream to Wolfi repo and then create a follow up PR here.


The cache is only required to be stored in localCache when the localCacheScope is set to SESSION

The cache is only required to be stored in localCache when the localCacheScope is set to SESSION

Hello @dadadadudu ,
Even with the STATEMENT scope, local cache is used for nested select etc., so this change may not be valid.
I will try to add a test case covering such usage when I find some time.

Done : b9bdbd1937aee83c167bd57d3d2406d1a2f6cfe5


WIP: WebXR immersive-ar working, using Astronaut-Unlit.

Get WebXR mode working again using the current API as implemented in Chrome Canary using immersive-ar mode.
This commit is a snapshot of an airplane hacking session, it's in rough shape due to having a barely-functioning dev environment. Please ignore superficial issues such as indentation, those should obviously be fixed before merging. There's also extra logging, and I was taking shortcuts to get it working such as overriding feature checks. I'm turning it into a PR at @elalish 's suggestion, at least it should be useful as a roadmap of areas that need changing.
FYI, the hit test API is likely to undergo more changes in the near future again, so that will need further tweaks at that time.
Fixes #495

Deployed version is at https://klausw.github.io/model-viewer/www/examples/augmented-reality.html

This is exciting 👍 nice to see some help in this area.  Thanks @klausw !

@klausw Do you want to keep working on this PR, or should I just pull it and finish it on my side?

Please review, I've rebased it and cleaned up the changes, including removing the no-longer-needed fullscreen mode workarounds and reusing the existing threejs WebGLRenderer instead of creating a new one. As a side effect, that made the regular Astronaut work, so I no longer need to switch to the unlit variant.

FYI, updated test URL is https://klausw.github.io/model-viewer/examples/augmented-reality.html

PTAL, and I've updated the gh-pages at  https://klausw.github.io/model-viewer/examples/augmented-reality.html , though github is sometimes slow in consistently serving that.

Thanks, this is looking great! I want to do a bit more testing before merging, but that's it.

@klausw Would it be possible to add an extra WebXR button in this PR? When I test I can only launch SceneViewer, unless I'm missing something?

The button should currently switch to WebXR mode if the prerequisites are
met - you need to enable WebXR Device API and WebXR AR Module in
chrome://flags, and use a reasonably current Chrome Canary on an
ARCore-supported phone with Android >= 8.0 / Oreo.
I'll look into adding a separate button.
On Fri, Sep 27, 2019, 10:28 Emmett Lalish<EMAIL_ADDRESS>wrote:

@klausw https://github.com/klausw Would it be possible to add an extra
WebXR button in this PR? When I test I can only launch SceneViewer, unless
I'm missing something?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleWebComponents/model-viewer/pull/757?email_source=notifications&email_token=AAKT5X6MPTZQ7CUXU55X4UDQLY7DPA5CNFSM4IXIMPT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ZSRSQ#issuecomment-536029386,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKT5X63SVUBFWPBWAV76BTQLY7DPANCNFSM4IXIMPTQ
.

On Fri, Sep 27, 2019 at 10:55 AM Klaus Weidner<EMAIL_ADDRESS>wrote:

The button should currently switch to WebXR mode if the prerequisites are
met - you need to enable WebXR Device API and WebXR AR Module in
chrome://flags, and use a reasonably current Chrome Canary on an
ARCore-supported phone with Android >= 8.0 / Oreo.

Correction, it also needs WebXR Hit Test API enabled in chrome://flags.
This also works on the stable Chrome release 77 with the same flag changes,
except that this version doesn't have a "WebXR AR module" flag. (It's
auto-activated by enabling hit test).

The main thing is to put back the fullscreen stuff so that SceneViewer still works. We'll have to test it manually on a Pixel 3.

I had reverted those changes to restore the SceneViewer fullscreen path, AFAIK the changes should now only affect WebXR mode. I've tested this by disabling WebXR AR Module (removing one of the other prerequisites should also work), and verifying that the AR button then launches Scene Viewer.
(Note to self and other testers: scene viewer does NOT appear to work for a port-forwarded localhost mode such as "npm run dev" using localhost:8000. It gets launched but can't load the model. It should work for the github-hosted version at https://klausw.github.io/model-viewer/examples/augmented-reality.html .)


How do I get access to internet

Vinayak is trying to figure out

Parth helped out get the access by sharing the code, which can't be shared here due to confidentiality.

msevent386pg is the password


error: #error ”OpenCV 4.x+ requires enabled C++11 support

How can I fix this?
I installed OpenCV 4.1.0 without a problem on Centos 7.6 following this guide:
https://linuxize.com/post/how-to-install-opencv-on-centos-7/
Now I'm trying to install php-opencv following the guide here
https://github.com/hihozhou/php-opencv
And it's failing when I make. (Under the Compile and install php-opencv extension header on that link).
Many thanks, COMPLETELY out of my depth here.

I fixed this by changing
./configure --with-php-config=/usr/bin/php-config
to
./configure CXX='g++ -std=gnu++11' --with-php-config=/usr/bin/php-config


Grpc protocol enhance

Codecov Report

Merging #5423 into master will increase coverage by 0.04%.
The diff coverage is 50%.

@@             Coverage Diff             @@
##             master   #5423      +/-   ##
===========================================
+ Coverage     61.15%   61.2%   +0.04%
- Complexity      423     424       +1
===========================================
  Files           919     919
  Lines         37489   37475      -14
  Branches       5461    5460       -1
===========================================
+ Hits          22925   22935      +10
+ Misses        12055   12033      -22
+ Partials       2509    2507       -2

Impacted Files
Coverage Δ
Complexity Δ

...apache/dubbo/common/constants/CommonConstants.java
100% <ø> (ø)
0 <0> (ø)
:arrow_down:

...g/apache/dubbo/rpc/protocol/grpc/GrpcProtocol.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...e/dubbo/registry/integration/RegistryProtocol.java
62.73% <0%> (ø)
0 <0> (ø)
:arrow_down:

...rpc/cluster/configurator/AbstractConfigurator.java
63.79% <100%> (+0.63%)
0 <0> (ø)
:arrow_down:

...rg/apache/dubbo/remoting/utils/PayloadDropper.java
30.76% <0%> (-15.39%)
0% <0%> (ø)

...ache/dubbo/remoting/transport/AbstractChannel.java
75% <0%> (-12.5%)
0% <0%> (ø)

.../dubbo/remoting/transport/netty4/NettyChannel.java
61.38% <0%> (-4.96%)
0% <0%> (ø)

.../apache/dubbo/remoting/transport/AbstractPeer.java
58.69% <0%> (-4.35%)
0% <0%> (ø)

...pache/dubbo/registry/support/AbstractRegistry.java
77.52% <0%> (-3%)
0% <0%> (ø)

.../exchange/support/header/HeaderExchangeServer.java
65.09% <0%> (-1.89%)
0% <0%> (ø)

... and 12 more

Continue to review full report at Codecov.

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


is not valid or is empty after intersection with the surrounding geometry geom

Hello,
I would like to use the voronoi tesselation to aggregate points. I have got a data set with routing points of the baltic and north sea, so i'm using a shape file for the bounding box and read the points which are stored in a CSV file as WGS84 points. After that I try to generate the voronoi tesselation but it breaks with the error: generated polygon is not valid or is empty after intersection with the surrounding geometry 'geom'. How can I debug this error or fix it?
This is the code:
import pandas as pd
import geopandas as gp
import geovoronoi as gv
import geovoronoi.plotting as gvp

boundary = gp.read_file("northbalticsea.shx").geometry[0]
df = pd.read_csv('data.csv.gz', parse_dates=[0, ])

df = gp.GeoDataFrame(df, crs="EPSG:4326", geometry=gp.points_from_xy(df.LONGITUDE, df.LATITUDE))
region_polys, region_pts = gv.voronoi_regions_from_coords(df["geometry"], boundary)

fig, ax = gvp.subplot_for_map()
gvp.plot_voronoi_polys_with_points_in_area(ax, boundary, region_polys, df["geometry"], region_pts)
plt.show()

In my case my data.csv.gz contains routes in the sea, so it could be possible, that some regions contains no data points

I think I need to clearify it a litte bit. I would like to create clusters for the ocean and I can guarantee, that all my points within the shape boundaries (in my use-case I have as boundary north and baltic sea and some sampled shipping routes in baltic and north sea). But in this case there can be clusters which are complete empty, and I think this is the problem. See the screenshot, the read solid lines are the boundaries of the shape and also the landside is the boundary. The black dashed lines are my sampled points.

I think I understand, but I can't tell you what the problem is without the data. I'm also not sure if Voronoi regions are really appropriate for your use-case. They don't cluster points. In fact it's quite the opposite, as there will be a hull generated around each single point. Your points may be very near to each other, possibly causing numerical issues during computation which in turn cause the error that you described initially.

Yes I'm assuming this as well, but in this case a better error message could be helpful. Thanks for this nice discussion


Fix CI to skip slow tests.

What is wrong?
The slowest tests are marked here:
https://github.com/ethereum/py-evm/blob/master/tests/json-fixtures/test_state.py#L62-L113

These tests should not be executed in CI runs initiated by pull requests.
These tests should execute in the daily cron test run.

The test suite uses the TRAVIS_EVENT_TYPE to determine if it is running in the cron context.
How can it be fixed
Investigate why this isn't behaving as expected since it looks like the Byzantium test suite is running long when it should be around 5-10 minutes runtime.

I think this is actually not broken: https://travis-ci.org/ethereum/py-evm/builds/316018334?utm_source=github_status&utm_medium=notification
Looks like the sharding branch just didn't have this fix in it.


add progress bar functionality

I've recently stumbled upon your code and am trying to implement it in a research project -- thanks for writing up such a nice package!
In response to this issue I've added a new parameter to adaptive_rwm (verbose) that, if true, displays a pretty percent output / time left estimator as the sampler is running, using only Base julia IO functionality (no extra dependencies needed). For the simple example in the docs of log_p(x) = -.5*sum(x.^2) and 100,000,000 iterations it seems to cause a ~10% performance hit (from ~20s - ~22s) on my machine to display the output tracker, which isn't too bad, but perhaps you know a more performant way of writing this and if so please let me know. Also is less and less of a problem as log_p increases in complexity or the total number of iterations are very high (which are the use cases most people probably want a tracker/time estimate for).
Right now I've just plopped all this code into the main loop at the bottom, but could make it a separate function that gets called in the main loop if you prefer to keep things cleaner that way.
Here's an example of what it looks like while running:

and after completion:

Colors of course can be changed. Right now they are hard-coded to prevent adding too many extra parameters but they can either be hard-coded to something different if you prefer or can be added as extra "print parameters" for example for the user to specify.

Dear Kirk, many thanks for this nice suggestion (& I am so sorry for a late reply). I thought about this issue for a while, and ended up adding the ProgressMeter dependency after all. I hope this works for you, too...

Yes -- that's also totally fine! Just wanted to provide this alternative in case you didn't want to go that route. Cheers!


Revisit the transactions chain , rollback ..etc

Describe the bug
At the moment ceph csi driver does not have a proper transaction framework which tracks or take care the transaction like createVolume, deleteVolume, CreateSnapshot...etc and do its rollback functions in  a chained fashion.
We have many small routines in various places which does the transaction rollbacks and sub tasks of a job and at the moment it lack the support for proper passing or recording of  consecutive stages and checkpoint tracking..etc.
The idea here is to introduce various transactions and its rollbacks gracefully by making use of proper interfaces and methods along with the locking in place.
WIP Design draft # https://hackmd.io/TvrswhUUQDGwVk1vFLY7Pw
Locking improvements #2197
..etc are the initial attempt to come up with a proper transnational framework for the ceph csi driver.
This issue updates or help #852 too.

👍I would love to see well defined transaction process, stages, checkpoints and rollback actions.
IMO, it will be great if CreateVolume is also split into createVolume, restoreSnapshot, & createClone with sharing common function/methods rather than having a single control flow with if conditions added in between for each.

+1I would love to see well defined transaction process, stages, checkpoints and rollback actions.
IMO, it will be great if CreateVolume is also split into createVolume, restoreSnapshot, & createClone with sharing common function/methods rather than having a single control flow with if conditions added in between for each.

Indeed thats the plan @Rakshith-R :+1: , currently the control flow is really complicated and the aim here is to make it more transactional and commit/checkpoint/stage model.


Creating a About Section

We need an "About" Section:

Legal Disclosure
Some more information on the background.
Some information about the history of this list
...

Including "About Us" information?

Including "About Us" information?


Mod1 progressing changes

repo is not yet ready for uses, modifications still to come

more commits than there could be as a result faulty commits that needed to be amended


Implement AudioCache for web

This is not my ideal implementation. I think in the ideal world we should use playBytes. but I tried looking into that for iOS and seemed very hard. So for now I believe this is a unified way to support all platforms. AFAIK subsequent requests on the browser are cached as expected.

@erickzanardo great comments. Don't let me forget to add the proper linter rules on another PR to ensure code quality everywhere!


Documentation flaw concerning how propagation check is performed during DNS01

Documentation states:

By default cert-manager will use the recursive nameservers taken from /etc/resolv.conf to query for the authoritative nameserver to verify the DNS records exist.

Doing domain verification with DNS01 redirecting _acme-challenge... Domain-Name to some subdomain of auth.acme-dns.io I encountered
E0910 11:30:35.262146       1 sync.go:183] cert-manager/controller/challenges
"msg"="propagation check failed"
"error"="dial tcp <IP_ADDRESS>:53: i/o timeout"
"dnsName"="xxxx.xxxx.xxxx"
"resource_kind"="Challenge"
"resource_name"="xxxx-xxxx-xxxx-qs6wl-1664677686-2576857480"
"resource_namespace"="xxxx"
"resource_version"="v1"
"type"="DNS-01"

<IP_ADDRESS>is the IPv4 address of auth.acme-dns.io. Access to arbitrary DNS servers is blocked in my enterprise environment. I was able to work around this issue with --dns01-recursive-nameservers and --dns01-recursive-nameservers-only.
Apparently (at least in this case) cert-manager is trying to query the DNS records directly (by itself) bypassing the resolver configured in /etc/resolv.conf. I understand that this is probably done to speed up the propagation check.
This behavior is not reflected in the cited documentation. Please adapt the documentation.
Environment details::

OpenShift 4.5.7 (Kubernetes 1.18.3)
running on VMsphere (installer provided infrastructure)
cert-manager version 1.0.1
Install method static manifests:

/kind bug

I just hit this issue too in Caddy's https://github.com/caddy-dns/cloudflare - port 53 is blocked to all external servers

Addressed in https://github.com/cert-manager/website/pull/327
Since this isn't the documentation repo I am going to close this issue here.
/close
@lightswitch05 while I like Caddy a lot we are not related, I suggest filing an issue with them.


How to use multi-bundle?

How to use haul multi-bundle ?

Using  haul multi-bundle with features.multiBundle: 2 was successfully completed.
But RN require a main.jsbundle file:

done ▶ Built successfully in 0.75s!
done ▶ All bundles successfully compiled. You can now run your React Native multi-bundle app.

+ [[ false != true ]]
+ [[ ! -f /Users/xuyuanxiang/Library/Developer/Xcode/DerivedData/UMIHaulExample-faqwvjyrvbsxfnckuzljqljoxaap/Build/Products/Release-iphoneos/UMIHaulExample.app/main.jsbundle ]]
+ echo 'error: File /Users/xuyuanxiang/Library/Developer/Xcode/DerivedData/UMIHaulExample-faqwvjyrvbsxfnckuzljqljoxaap/Build/Products/Release-iphoneos/UMIHaulExample.app/main.jsbundle does not exist. This must be a bug with'
error: File /Users/xuyuanxiang/Library/Developer/Xcode/DerivedData/UMIHaulExample-faqwvjyrvbsxfnckuzljqljoxaap/Build/Products/Release-iphoneos/UMIHaulExample.app/main.jsbundle does not exist. This must be a bug with
+ echo 'React Native, please report it here: https://github.com/facebook/react-native/issues'
React Native, please report it here: https://github.com/facebook/react-native/issues
+ exit 2

You can find the complete example (that's working) here: https://github.com/react-native-community/react-native-multibundle/tree/master/Example
To answer your question, the code that loads the bundle can be instructed to load different one than main.jsbundle like here: https://github.com/react-native-community/react-native-multibundle/blob/master/Example/ios/Example/AppDelegate.m#L41
Keep in mind that to use multibundle feature you would need to use callstack/react-native#feat/bundle-id-for-multibundle fork of React Native, since the PRs to bring mutlibundle support are not yet merged. Additionally you would need to add react-native-multibundle native module and write a code that would call loadBundle etc so the bundle management is on your side.


Don't show loading indicators when refreshing the system status

When I added this the dividers didn't render the loading indicators but I guess some CSS has changed since then. Now we render the loading indicator on a hidden element so it won't appear.
Before

After

Hmm,

The hx-indicator attribute allows you to specify the element that will have the htmx-request class added to it for the duration of the request

What's the point of tw-hidden.htmx-request? Why not just remove hx-indicator if we don't want a indicator?

I didn't see any other option

So the problem is htmx can not distinguish between initial and subsequent requests, e.g. you can't conditionally show hx-indicator?

Changed selector to #no-loading-indicator because I think such selectors may trigger a fast-path in querySelectorAll which htmx is doing.

Changed selector to #no-loading-indicator because I think such selectors may trigger a fast-path in document.querySelectorAll which htmx is doing on these.

But you forgot the class="..." above. I reverted it.

Why revert? Here we can clearly see htmx is using querySelectorAll:
https://github.com/bigskysoftware/htmx/blob/b176784f31a7bc4b55e40cec368dff571c4fb991/src/htmx.js#L652

Why revert? Here we can clearly see htmx is using querySelectorAll:

You forgot to change the related code.

Oh, I seem we should remove this.

Will test it and then remove it.

Oh, I seem we should remove this.

I do not see any reason to block merging this change.

Fixed and tested.

Fixed and tested.

NOOOOOOOOOOOOOOOO! See the discussion above.

Hmm it does seem htmx falls back to the element if nothing matches:
https://github.com/bigskysoftware/htmx/blob/b176784f31a7bc4b55e40cec368dff571c4fb991/src/htmx.js#L2456-L2459
So your fix is ok, but I would prefer it to be an id.

Hmm it does seem htmx falls back to the element if nothing matches:

It doens't fallback, it only returns an empty array. But there will be a lot of error messages in user's console, it would confuse users and developers. The root problem is that htmx insists to find something to show the indicator. If htmx could change its behavior to avoiding showing the indicator, life will be easier.

Anyways, I have to add a remark that I'm starting to despise htmx 😆.

Upstream issue: https://github.com/bigskysoftware/htmx/issues/2515

Regression with double border: https://github.com/go-gitea/gitea/pull/31363


Why can't I add xff to the headers of requests in Envoy

I'm trying to add X-Forwarded-For into the headers of requests with Envoy. Here is the part of my config:
route_config:
  name: my_route
  request_headers_to_add:
    header:
      key: "X-Forwarded-For"
      value: "%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%"
  virtual_hosts:
  ...

The upstream is httpbin, which can show me the headers of request.
But it doesn't seem to work as expected. The httpbin show me the whole header but without X-Forwarded-For. So it seems that request_headers_to_add isn't working.
Then I changed the key to X-Real-IP but I got the same result. I haven't seen X-Real-IP in the output of httpbin.
However, if I use some other keys, such as key: hello, I could see hello: xx.xx.xx.xx in the header...
It seems that I can add anything in the header with Envoy except X-Forwarded-For and X-Real-IP.

Could you provide a complete example config? And specific to your current config snippet, seems it's wrong. The request_headers_to_add should be a array.

@wbpcode  You are right about array, I changed it to an array but noting changed.
Here is the config of my Envoy.
static_resources:
  listeners:
  - name: listener_test_http
    address:
      socket_address: {address: <IP_ADDRESS>, port_value: 9001}
    filter_chains:
    - filters:
      - name: envoy.filters.network.http_connection_manager
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
          stat_prefix: ingress_http
          common_http_protocol_options:
            idle_timeout: 3600s
          request_timeout: 200s
          access_log: [{name: envoy.access_loggers.stdout, typed_config: {"@type": type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog}}]
          http_filters:
          - name: envoy.filters.http.compressor
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.http.compressor.v3.Compressor
              compressor_library:
                name: text_optimized
                typed_config:
                  "@type": type.googleapis.com/envoy.extensions.compression.gzip.compressor.v3.Gzip
          - name: envoy.filters.http.router
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
          use_remote_address: true
#          skip_xff_append: false
#          xff_num_trusted_hops: 1
          route_config:
            name: local_route
            request_headers_to_add:
            - header:
#                key: "X-Real-IP"                     # NOT OK
#                key: "X-Forwarded-For"        # NOT OK
               key: "xxxx"                                # OK
                value: "%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%"
#              append: true
            virtual_hosts:
            - name: notice_service
              domains: ["*"]
              routes:
              - match:
                  prefix: "/bin/"
                route:
                  cluster: cluster_httpbin
                  prefix_rewrite: "/"
  clusters:
  - name: cluster_httpbin
    connect_timeout: 10s
    type: LOGICAL_DNS
    typed_extension_protocol_options:
      envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
        "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
        upstream_http_protocol_options:
          auto_sni: true
        common_http_protocol_options:
          idle_timeout: 3600s
        explicit_http_config:
          http_protocol_options: {}
    load_assignment:
      cluster_name: cluster_httpbin
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address: {address: <IP_ADDRESS>, port_value: 12780}

I send a request to http://<IP_ADDRESS>:9001/bin/get (I deployed my Envoy on <IP_ADDRESS>) and my Envoy routes the request to the upstream host <IP_ADDRESS>:12780, which is a httpbin. Then I can see the header of request but there is no X-Forwarded-For.

I think it's because the httpbin. It's may stripp the x-forwarded-for header out.
You can try to curl your httpbin directly with request that contains xff or x-real-ip. Thanks.

@wbpcode  Thanks. httpbin does have such an issue.
https://github.com/postmanlabs/httpbin/issues/300


Remove flag --r_split

With the new annotations framework, we prioritize round robin over the previous standard parallelization (aka consecutive chunks parallelization). In contrast to before, both types of parallelization might be used (for different command invocations). Thus, the flag --r_split is pointless and can be removed.
NOTE: this shall only be addressed once https://github.com/binpash/pash/pull/623 has been merged to future.

Fixed in #640


Bumped up core pytorch version

ET has updated their core pytorch version into 0901. TC also need to support that

can you check on the runner-et test, seems legit

closing outdated pr


E-commerce Website

Project title
E-COMMERCE WEBSITE
Project Description
It is website which gives a good descritption of how a Ecommerce website should look like. It is working website having so many E-commerce facilities like Adding a Product, Updating a Product, Showing Description of Product, Deleting Product
Web stack
1.) ReactJS
2.) HTML, CSS and JS
3.) Bootstrap 5
4.) API (GET, PUT, POST, PATCH, DELETE)
Screenshot(mandatory)
Home Page

Contact Page

Product Page

Client Views

Footer

Additional Context(mandatory)
Full Fledged website for Ecommerce.
Are you contributing under any open-source program ?
CodePeak'23

@apu52 I had question regarding points.... This is big project with many functionalites and other stuff. How will you give points for this issue?

@apu52 I had one more doubt, since it is a React Web App. How should I add it in Project folder ? With node modules(Large Size Issue) or without node module folder?

@apu52 I had question regarding points.... This is big project with many functionalites and other stuff. How will you give points for this issue?

the point system consists of EASY/MEDIUM/HARD/1-point PR. The mods will only decide the point of the PR as per their review

@apu52 I had one more doubt, since it is a React Web App. How should I add it in Project folder ? With node modules(Large Size Issue) or without node module folder?

No. you don't have to upload it


Memory leak when using Windows::Management::Deployment::PackageManager

Describe the bug
This was originally found when using the rust API bindings, and reported here: https://github.com/microsoft/windows-rs/issues/2601
This is a repost of this issue after being redirected here.
The issue is that retrieving hstring objects from some APIs in the PackageManager namespace seem to leak.
One reproducer is as follows:
#include "pch.h"

using namespace winrt;
using namespace Windows::Foundation;
using namespace Windows::Management::Deployment;

int main()
{
    init_apartment();

    PackageManager packageManager;

    for (;;) {
        auto packages = packageManager.FindPackages();

        for (auto const& package : packages) {
            try {
                winrt::hstring name = package.PublisherDisplayName();
            }
            catch (winrt::hresult_error const& ex) {}
        }
    }
}

with pch.h:
#pragma once
#include <winrt/Windows.Foundation.h>
#include <winrt/Windows.Foundation.Collections.h>
#include <winrt/Windows.Management.Deployment.h>
#include <winrt/Windows.ApplicationModel.h>

which gives something like this:

Two other things of note:

This is not related only to PublisherDisplayName, I for example have the same leak with InstalledLocation() followed by Path(), and I suppose other methods returning hstrings work as well.

I originally run heap snapshots to narrow down the leak, which gave me this stacktrace has always growing:

I'm not sure how useful that is, but I figured I can join it as well.
I'm not well versed in C++/WinRT so my code might have some issues. However the leak seems to have been confirmed.
Windows version
Windows 10 version 21H1 (19043, May 2021 Update)

And another stack from a selection of leaked objects (25926.rs_prerelease).
7ffa32cb2878 ntdll!RtlpAllocateHeapInternal+0x000000000009be88
7ffa32c16989 ntdll!RtlAllocateHeap+0x0000000000000059
7ffa30b22c58 combase!CStdMarshal::ConnectCliIPIDEntry+0x0000000000000238
7ffa30b22676 combase!CStdMarshal::MakeCliIPIDEntry+0x000000000000014e
7ffa30b22363 combase!CStdMarshal::UnmarshalIPID+0x000000000000008f
7ffa30b21c15 combase!CStdMarshal::UnmarshalObjRef+0x000000000000029d
7ffa30b218e7 combase!UnmarshalSwitch+0x00000000000000a7
7ffa30b62c25 combase!CoUnmarshalInterface+0x00000000000005a5
7ffa30b61df3 combase!Ndr64ExtInterfacePointerUnmarshall+0x00000000000001e3
7ffa316422f2 RPCRT4!Ndr64pPointerUnmarshallInternal+0x0000000000000252
7ffa3164223e RPCRT4!Ndr64pPointerUnmarshallInternal+0x000000000000019e
7ffa3170cccc RPCRT4!Ndr64pClientUnMarshal+0x000000000000040c
7ffa3170d180 RPCRT4!NdrpClientCall3+0x0000000000000250
7ffa30be9ba8 combase!ObjectStublessClient+0x0000000000000148
7ffa30d186d2 combase!ObjectStubless+0x0000000000000042
7ffa1a918c32 Windows_ApplicationModel!Windows::ApplicationModel::PackageServer::GetPackageResourceResolver+0x00000000000000f2
7ffa1a9188e7 Windows_ApplicationModel!Windows::ApplicationModel::PackageServer::RetrieveMrtString+0x0000000000000137
7ffa1a91852c Windows_ApplicationModel!Windows::ApplicationModel::PackageServer::GetMrtString+0x000000000000004c
7ff6cb69d138 displayname_leak!winrt::impl::consume_Windows_ApplicationModel_IPackage2<winrt::Windows::ApplicationModel::Package>::PublisherDisplayName+0x00000000000000a8
7ff6cb6a0817 displayname_leak!main+0x00000000000000d7
7ff6cb6a3049 displayname_leak!invoke_main+0x0000000000000039
7ff6cb6a2eee displayname_leak!__scrt_common_main_seh+0x000000000000012e
7ff6cb6a2dae displayname_leak!__scrt_common_main+0x000000000000000e
7ff6cb6a30de displayname_leak!mainCRTStartup+0x000000000000000e
7ffa31b11f88 KERNEL32!BaseThreadInitThunk+0x0000000000000018
7ffa32c58241 ntdll!RtlUserThreadStart+0x0000000000000021

Thanks for bringing this to our attention. The .PublisherDisplayName issue's root cause has been identified (due to a mishandling an HSTRING).
I'm not sure if the PackageIdServer leak is the same root; we're investigating.

For folks playing along at home, this might be http://task.ms/45745323

Is there any news about this issue?

http://task.ms/45745323 has been root caused and resolved in an upcoming Windows update

@DrusTheAxe Just curious, did that end up being the same root? Or multiple roots? And which ones if any/all got resolved in the future update?


feat(slack): Support set username and icon from template in slack

When multiple users set triggers and templates for one slack service in monorepos, etc., there was an issue where the icon and username could not be changed. Therefore, I made it possible to set a custom username and icon in the template used for Slack notifications.
If the username and icon are already set on the service side and the username and icon are also set on the template, the template will take priority.
And there were no tests for Slack notifications, so I added them.

@reggie-k Thank you for your review!
I'm sorry, but I don't really understand the situation. Is it okay to understand that in the case of the "on-sync-succeeded" trigger, two notifications are sent: one with the username and icon set, and one without?

@reggie-k Thank you for your review!
I'm sorry, but I don't really understand the situation. Is it okay to understand that in the case of the "on-sync-succeeded" trigger, two notifications are sent: one with the username and icon set, and one without?

Yeah, exactly

I looked into it, but I couldn't reproduce the situation you described...
When I tested it using go run examples/certmanager/cli/main.go template notify, I was able to set the icon and username without any problems, so I think the problem is probably somewhere else (such as the config) that is not related to this PR.

I have tested locally and found that in some use cases the notification is sent once with the username and icon, and once without them, meaning with the default ones, I tried that with "on-sync-succeeded" trigger.

I would like to confirm, does this problem occur in the revision before this PR? For example, if the same problem does not occur when the username and icon fields are set in service.slack, I will know that the code I wrote is causing the problem.

Not sure I understand what to confirm? The problem is that, while the icon and username are set in the config like described in the docs of this PR, in the 2 slack notifications produced upon manually syncing the app from the UI, only one is actually with the username and icon configured, and the other one does not have the username and the icon.

I reproduced it upon running locally make run and then syncing the app from the UI.
This is how the sync notification look like in slack:

You can see that there are 3 messages sent to slack, only one of them is with the icon and the username, and two look like default icon and username.

@reggie-k @pasha-codefresh
Thank you for review!


[AuthZ] Simplify debug message for missing field/method in ReflectUtils

Why are the changes needed?

It's easy for developers to check a member or method from a Java class using a code viewer or online Java doc.
The current debug msg is kinda noisy for them to locate the key information they want, which is
Java class and field name. It makes our debug log unreadable.
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

Was this patch authored or co-authored using generative AI tooling?

Codecov Report

Merging #5497 (23e8e7a) into master (03d6223) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #5497   +/-   ##
======================================
  Coverage    0.00%   0.00%
======================================
  Files         588     588
  Lines       33480   33480
  Branches     4405    4405
======================================
  Misses      33480   33480

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Thanks, merged to master(1.9.0).

Thanks @bowenliang123


Release version does not show any green buildings or blue technologies

Describe the bug
Based on using the mod for the last few days (prior to the bug showing up) there was always one building highlighted in green - the building with the best (lowest) PP. Now I only see orange and yellow coloured buildings (and purple) - there's no green building.
To Reproduce
I think I upgraded to the latest Cookie Monster earlier today and since then haven't seen any buildings highlighted in green - only yellow and orange.
Screenshots

Save file
[encoded data, 7152 characters]%21END%21

Oh, the screenshot was bad (because the macos shortcut key - shift+command+3 of course changed my building listing. Here's a better one)

This is a duplicate of #703 and some of the other similar issues.
There is still a green building but it is no longer a "buy 1" option. In your particular save it is better to buy 10 shipments than any of the other buildings. You will that shipments are colour coded accordingly in the buy 10 column.

Ah. Hmm - might be worth a write up somewhere explaining why it's worse to buy 1 than 10? I don't quite understand why that would be the case. Except if it's for "but buying 10 gets you over an achievement milestone and that's valuable"?
Should/could I file a separate feature request for the 1/10/100s to be colour coded too, then? So you know where to look for the green thing that's otherwise hiding in one of those other tabs/columns?

That is indeed often the reason for buy 10 being better.
Colour coding the 1/10/100s green is actually quite a good idea, however I do think this should be a toggle and a setting. Just having this as a possible setting might also help people understand where they could look if they can't find a green building.


update_func() with UNITS (Pint) an Frame

When update_func() is set to return State with UNITS,  run_simulation() crashes when tryin to enter the update_func() output into ModSimDataFrame().
A simple example : pressure increases with depth $dp = \rho dy g$, I initialize params with
( p = 0 * Pa, dy =0.1 * m , rho = 1000*kg/m**3) etc .....
I (think I) cannot use ode_solver since it is linked with time. So I constrct update_func() that retuns State(p=p,y=y), In run_simulation() I create frame=ModSimDataFrame(), use dimensionless
ts = linrange( 0,100,0.1)
for t in ts:

and when I try to
update frame[ t + dy ] = update_func(...)
it crashes. All is ok, wen I completely remove UNITS. Pitty, isnt it?

In Version 3, I replaced the ODE solver with a simple implementation that handles units better.  If you are still interested, you could try this example again and see how it goes.


Svls 6036 set timeouts

Allow passing a timeout to the client

Codecov Report
Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 70.96%. Comparing base (d111f32) to head (61df3e4).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #800      +/-   ##
==========================================
+ Coverage   70.79%   70.96%   +0.17%
==========================================
  Files         313      313
  Lines       45649    45762     +113
==========================================
+ Hits        32315    32477     +162
+ Misses      13334    13285      -49

Components
Coverage Δ

crashtracker
38.27% <ø> (+0.02%)
:arrow_up:

crashtracker-ffi
5.71% <ø> (ø)

datadog-alloc
98.73% <ø> (ø)

data-pipeline
92.06% <ø> (+0.68%)
:arrow_up:

data-pipeline-ffi
90.54% <ø> (+4.24%)
:arrow_up:

ddcommon
82.31% <ø> (+0.54%)
:arrow_up:

ddcommon-ffi
65.52% <ø> (ø)

ddtelemetry
59.51% <ø> (ø)

ddtelemetry-ffi
22.46% <ø> (ø)

dogstatsd
89.58% <100.00%> (+0.12%)
:arrow_up:

dogstatsd-client
79.77% <ø> (ø)

ipc
82.86% <ø> (+0.04%)
:arrow_up:

profiling
84.31% <ø> (ø)

profiling-ffi
77.55% <ø> (ø)

serverless
0.00% <0.00%> (ø)

sidecar
40.56% <ø> (ø)

sidecar-ffi
1.18% <ø> (ø)

spawn-worker
54.37% <ø> (ø)

tinybytes
93.60% <ø> (ø)

trace-mini-agent
72.38% <ø> (ø)

trace-normalization
98.23% <ø> (ø)

trace-obfuscation
95.77% <ø> (ø)

trace-protobuf
77.67% <ø> (ø)

trace-utils
93.52% <ø> (ø)


Add a "Share" Button

Describe the feature you'd like
The problem with using Bookstack as a PWA is that you cannot simply copy the link to the page. On a desktop, it is still possible to get the link via the browser menu, but this actually happens outside the app. However, this is not possible on a smartphone.
My current workaround is to go out of the page and then press and hold the link to the page.
My suggestion:
Add a "Share" button below the export button. Perhaps with several options as with exporting, such as copy link, share in another app.
Describe the benefits this would bring to existing BookStack users
You always work completely in the web app and do not have to switch to browser functions. In my humble opinion, sharing pages is also a common use.
Can the goal of this request already be achieved via other means?
Yes, for desktop clients via the three-point menu> More tools> Use copy link
Alternatively, navigate out of the page and then copy the link from it.
Have you searched for an existing open/closed issue?

[X] I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?
3 months to 1 year
Additional context
No response

Dan just helped me with the same question over on Discord and got a perfect solution for me, because I got the same problem when I want to copy the URL.
The discussion can be found here: https://discord.com/channels/578552496637739008/1172518752751988816
For the feature to work you need to use the visual theme system.
Create a theme and within that theme create the following file and folder: entities.share-link.blade.php
Put in the following code:
<button type="button"
        id="share-link-button"
        data-success-text="Link copied to clipboard!"
        class="icon-list-item text-link">
    @icon('share')
    {{ trans('common.share') }}
</button>

Now you need to add a line to each show.blade.php of the pages, books, chapters and shelves. I've put this directly under the export button:
            @if($watchOptions->canWatch() && !$watchOptions->isWatching())
                @include('entities.watch-action', ['entity' => $page])
            @endif
            @if(user()->hasAppAccess())
                @include('entities.favourite-action', ['entity' => $page])
            @endif
            @if(userCan('content-export'))
                @include('entities.export-menu', ['entity' => $page])
            @endif
            @include('entities.share-link', ['entity' => $page])

@stop

look for the link with the "share-link" in it.
Thats all, now you have a "share" button in your instance:

this is exactly what I'm looking for.
a "Share"-Button in general would be really nice.

For me it would also be nice to have this in the Default template.

I've done exactly this in the past with help of Dan:
https://bookstack.jelinek-rz.de/books/bookstack/page/url-mit-mausklick-kopieren


Possible to access context during subscription config?

Some customers, when they submit a subscribe document want us to send them the "current" version of what they're subscribing to.  The problem is that doing so requires access to the context which contains information about the user, their authentication, and key values that are needed to be able to send them the correct data.
The subscription's config macro doesn't seem to give us access to the context that the plug inserted for that user.  Is it possible to access the context from inside the config so we can trigger the proper channel publish operation?
We're migrating from Apollo, and this was something they had in Apollo that we'd like to preserve.
Thanks.

Hi, the context is indeed available, please see the example shown here: https://hexdocs.pm/absinthe/Absinthe.Schema.Notation.html#config/1-examples

Many thanks, @benwilson512!

Since subscription goes over a Phoenix.Socket, that doesn't go through the Plug pipeline, near as I can tell, and don't work on conns.  So how can I get something into the absinthe context when using a socket?

Hi @artificial-mwatson please use the slack for questions not the issue tracker. This is also covered in the docs https://hexdocs.pm/absinthe_phoenix/Absinthe.Phoenix.Socket.html#content


ERROR: Failed building wheel for tokenizers

Trying to follow the instructions given in section 0 (prerequisites) for running the fine-tuned models in x-fact:
everything works except this line (pip install --editable ./)
I've tried many things, such as installing the rust language and adding vs build tools, but I keep getting this error:

  error[E0557]: feature has been removed
        --> C:\Users\ding\.cargo\registry\src\index.crates.io-6f17d22bba15001f\lock_api-0.3.4\src\lib.rs:91:42
         |
      91 | #![cfg_attr(feature = "nightly", feature(const_fn))]
         |                                          ^^^^^^^^ feature has been removed
         |
         = note: split into finer-grained feature gates

      For more information about this error, try `rustc --explain E0557`.
      error: could not compile `lock_api` (lib) due to 1 previous error

      Caused by:
        process didn't exit successfully: `rustc --crate-name lock_api --edition=2018 C:\Users\ding\.cargo\registry\src\index.crates.io-6f17d22bba15001f\lock_api-0.3.4\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"nightly\"" --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values(\"nightly\", \"owning_ref\", \"serde\"))" -C metadata=e3b4e41dabc89c13 -C extra-filename=-e3b4e41dabc89c13 --out-dir C:\Users\ding\AppData\Local\Temp\pip-install-d5vow5o_\tokenizers_3feb35558e4a4c8e8d80cedaebf0e349\target\release\deps -L dependency=C:\Users\ding\AppData\Local\Temp\pip-install-d5vow5o_\tokenizers_3feb35558e4a4c8e8d80cedaebf0e349\target\release\deps --extern scopeguard=C:\Users\ding\AppData\Local\Temp\pip-install-d5vow5o_\tokenizers_3feb35558e4a4c8e8d80cedaebf0e349\target\release\deps\libscopeguard-a6a56faef7277818.rmeta --cap-lints allow` (exit code: 1)
      warning: build failed, waiting for other jobs to finish...
      error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features pyo3/extension-module --crate-type cdylib --` failed with code 101
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tokenizers
Failed to build tokenizers
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tokenizers)

I've tried many fixes and it always gets a little further but still gets stuck on the wheel.

Hi @RyanFDing
Sorry for the late reply. And thanks for pointing this issue.
Just now, I have tested the code on a linux machine with python 3.6.8 and it works fine. Following are the requirements:
certifi==2024.8.30
charset-normalizer==2.0.12
click==8.0.4
dataclasses==0.8
filelock==3.4.1
idna==3.10
importlib-metadata==4.8.3
importlib-resources==5.4.0
joblib==1.1.1
numpy==1.19.5
packaging==21.3
protobuf==4.21.0
pyparsing==3.1.4
regex==2023.8.8
requests==2.27.1
sacremoses==0.0.53
scikit-learn==0.24.2
scipy==1.5.4
sentencepiece==0.2.0
six==1.16.0
tensorboardX==<IP_ADDRESS>
threadpoolctl==3.1.0
tokenizers==0.8.1rc1
torch==1.7.1
tqdm==4.64.1
-e git+https://github.com/utahnlp/x-fact@01bb640b5c352e3e3154ccc9e961df76f33dd397#egg=transformers&subdirectory=transformers
typing_extensions==4.1.1
urllib3==1.26.20
zipp==3.6.0

If you are still facing this issue, can you try following the above instructions and version specifications. Please let me know if this doesn't work for you.
-- ashim


Retrieve VOIP token

I was wondering about how to retrieve the VOIP token (from flutter) to push it to a custom server.
It seems it's currently not possible.
I found this package https://pub.dev/packages/flutter_ios_voip_kit which allows to retrieve the token.
This package is very old and not maintained anymore.
It would be nice to have that feature here.

Please where you able to make use of VoIP on your app?
If yes? Can you please teach me ?🥺
I don't even know what to do with VoIP, it's confusing

I have not a completely working application. I'm waiting for a PR here and for a pair of issues.
For now you can retrieve the VoIP token using this code.
https://stackoverflow.com/questions/37099280/didupdatepushcredentials-not-get-called
Then you can try to send a VoIP notification using for example OneSignal and see what happens :)

thanks man @marcoberetta96

Hi @marcoberetta96 @zionnite
I just updated version 1.0.1
please update it
also i have a tutorial on setup Pbushkit
https://github.com/hiennguyen92/flutter_callkit_incoming/blob/master/PUSHKIT.md

Hi @hiennguyen92 and many thanks for your work!
I will try and test all the new stuff in some hours.
Just to be sure... when this package retrieves the VOIP token, would it be possible to pass it from native code to dart code? It would be much simpler to send it to a custom server by using dart. Thanks again!

Hi @marcoberetta96
when you receive Push VoIP, the app will wake up automatically.
also make sure the call listener is at the root of the App
FlutterCallkitIncoming.onEvent.listen...
Use it to get listener Incoming, Accept, Decline event

@marcoberetta96
for send device token from native to dart, I think there may still be something missing, I think I will update you soon.

@hiennguyen92
Got it.
I think that sending the device token from native to dart is a must-have feature for this package.
Anyway, you already do nice things, thank you!

Hi @marcoberetta96
I just updated version 1.0.1+1
using getDevicePushTokenVoIP for get device token VoIP
await FlutterCallkitIncoming.getDevicePushTokenVoIP();

please make sure set token from native
func pushRegistry(_ registry: PKPushRegistry, didUpdate credentials: PKPushCredentials, for type: PKPushType) {
    print(credentials.token)
    let deviceToken = credentials.token.map { String(format: "%02x", $0) }.joined()
    //Save deviceToken to your server
    SwiftFlutterCallkitIncomingPlugin.sharedInstance?.setDevicePushTokenVoIP(deviceToken)
}

func pushRegistry(_ registry: PKPushRegistry, didInvalidatePushTokenFor type: PKPushType) {
    print("didInvalidatePushTokenFor")
    SwiftFlutterCallkitIncomingPlugin.sharedInstance?.setDevicePushTokenVoIP("")
}

Nice work, thanks!
Much appreciated :)

Hi @marcoberetta96 when you receive Push VoIP, the app will wake up automatically.
also make sure the call listener is at the root of the App FlutterCallkitIncoming.onEvent.listen... Use it to get listener Incoming, Accept, Decline event

making a call at the root of the app will be in the main.dart, right?
but my coding its calling from a different file, how do u suggest i do this?

@zionnite
just be sure to call it in App stateful.
Once you receive the event, call whatever function you want in your app

thanks so much...
would give you feedback.
thanks again

Hello sir
i keep getting the error
My podfile is pointing to   platform :ios, '12.0'
My AppFrameworkInfo.plist is minimum requirement is pointing to 12.0
Swift Compiler Error (Xcode): Compiling for iOS 9.0, but module 'flutter_callkit_incoming' has a minimum deployment target of iOS 12.0: /Users/apple/StudioProjects/prayer_buddy/build/ios/Debug-iphonesimulator/flutter_callkit_incoming/flutter_callkit_incoming.framework/Modules/flutter_callkit_incoming.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
/Users/apple/StudioProjects/prayer_buddy/ios/Runner/AppDelegate.swift:3:7

Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.

i started getting the error once i updated my appDelegate.swift file

i create another flutter application after setting up my configuration with this package, i got the following again
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done.                                           110.6s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    Writing result bundle at path:
    	/var/folders/yy/s60fqgn15hb_gql22vlb2z540000gn/T/flutter_tools.zjuIF4/flutter_ios_build_temp_dirIaBt7R/temporary_xcresult_bundle

    /Users/apple/IdeaProjects/brayer_pals/ios/Pods/Reachability/Reachability.m:465:63: warning: cast to smaller integer type 'unsigned int' from 'Reachability *' [-Wpointer-to-int-cast]
                                 NSStringFromClass([self class]), (unsigned int) self, [self currentReachabilityFlags]];
                                                                  ^~~~~~~~~~~~~~~~~~~
    1 warning generated.
    /Users/apple/.pub-cache/hosted/pub.dartlang.org/flutter_callkit_incoming-1.0.1+6/ios/Classes/SwiftFlutterCallkitIncomingPlugin.swift:269:12: warning: unnecessary check for 'iOS'; enclosing scope ensures guard will always be true
            if #available(iOS 11.0, *) {
               ^
    /Users/apple/.pub-cache/hosted/pub.dartlang.org/flutter_callkit_incoming-1.0.1+6/ios/Classes/SwiftFlutterCallkitIncomingPlugin.swift:7:14: note: enclosing scope here
    public class SwiftFlutterCallkitIncomingPlugin: NSObject, FlutterPlugin, CXProviderDelegate {
                 ^
    /Users/apple/.pub-cache/hosted/pub.dartlang.org/flutter_callkit_incoming-1.0.1+6/ios/Classes/SwiftFlutterCallkitIncomingPlugin.swift:189:34: warning: expression implicitly coerced from '[String : Any?]' to '[String : Any]'
            return self.callManager?.activeCalls()
                                     ^~~~~~~~~~~
    /Users/apple/.pub-cache/hosted/pub.dartlang.org/flutter_callkit_incoming-1.0.1+6/ios/Classes/SwiftFlutterCallkitIncomingPlugin.swift:189:34: note: explicitly cast to '[String : Any]' with 'as [String : Any]' to silence this warning
            return self.callManager?.activeCalls()
                                     ^~~~~~~~~~~
                                                 as [String : Any]
    /Users/apple/IdeaProjects/brayer_pals/ios/Runner/AppDelegate.swift:4:8: error: compiling for iOS 9.0, but module 'flutter_callkit_incoming' has a minimum deployment target of iOS 11.0: /Users/apple/IdeaProjects/brayer_pals/build/ios/Debug-iphonesimulator/flutter_callkit_incoming/flutter_callkit_incoming.framework/Modules/flutter_callkit_incoming.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
    import flutter_callkit_incoming
           ^
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Analyzing workspace
    note: Constructing build description
    note: Build preparation complete

    Result bundle written to path:
    	/var/folders/yy/s60fqgn15hb_gql22vlb2z540000gn/T/flutter_tools.zjuIF4/flutter_ios_build_temp_dirIaBt7R/temporary_xcresult_bundle

Swift Compiler Error (Xcode): Compiling for iOS 9.0, but module 'flutter_callkit_incoming' has a minimum deployment target of iOS 11.0: /Users/apple/IdeaProjects/brayer_pals/build/ios/Debug-iphonesimulator/flutter_callkit_incoming/flutter_callkit_incoming.framework/Modules/flutter_callkit_incoming.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
/Users/apple/IdeaProjects/brayer_pals/ios/Runner/AppDelegate.swift:3:7

Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.

Update
when i roll back my  AppDelegate.swift code to the flutter generated code, everything works fine for me
import UIKit
import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}

code run without an error
how can this be resolved???

@hiennguyen92 sir can you please quickly look into this, have done everything possible to make this thing work out but its not working for me at all

i think you can try change 11 -> 12

I have Tired 11,12,13 and 14 yet the error still persist

I have Tired 11,12,13 and 14 yet the error still persist

It's was on 12 before I changed it to 11

just created a new flutter app and added this package to it and the **issue still persist**
am waiting on you sir, i need your assistance on this

@hiennguyen92 Please I need your support


Access violation exception when using socketio-client-c++ and boost asio io_service

I'm trying to use io_service from boost asio library (1.61) with socketio-client-c++, but my code throws an access violation exception, and after hours of debugging I could'nt figure out what is the cause. The exception is thrown at the following location in win_mutex.hpp:
void lock()
{
 -> ::EnterCriticalSection(&crit_section_);
}

The code is very simple:
int main(int argc, char* argv[]) {
    boost::asio::io_service io_service;
    auto io_service_work = std::make_shared<boost::asio::io_service::work>      (io_service);

    sio::client client_;
    client_.connect("http://localhost:1337");

    // io_service.run();
}

I want to use io_service from main, and socketio also uses an io_service internally, which might be the cause of the problem.
You can download the full project with socketio source and binary included here: https://drive.google.com/open?id=0ByS95lLWpDcQODFQaWZnX2lmajA

Each spawned asio::io_service is distinct from each other. There is an issue (#390) opened by me to allow providing a custom io_service to sio::client. Mark this as closed please.


Configuring additional NuGet feeds

My workflow is failing because it cannot download DevExpress packages.  How can I configure an additional NuGet feed for this workflow?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: b4cbd10e-57b8-de97-b84f-6e46f865c662
Version Independent ID: 533b11b0-5ada-f9c6-65f1-5966df142fa8
Content: Build configuration for Azure Static Web Apps
Content Source: articles/static-web-apps/build-configuration.md
Service: static-web-apps
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

@JetACode
Thanks for your feedback! We will investigate and update as appropriate.

@JetACode, To better assist you on this, could you please let us know what specific section/step you're facing issues with? What is the exact error message you receive?
Please checkout this discussion thread: Add custom nuget source #493

I am having exactly the same problem as discussed in issue #493.   I will post further comments on that thread.


How add greyscale in custon tonal palette?

I'm creating a custom palette based on primary colors. For this I create use "ColorTools.primaryColorNames" and then I would like to add the color Black, and then when I click on that color, grayscale (black and white) is displayed in the tonal palette. Is possible? Thanks for the amazing lib

Hi Gilianp, thanks for the question.
To the Material 3 tonal palette you cannot really add a custom palette, but I will probably add the capability to tune the parameters it uses to compute the palette in a future update, and even return the entire palette.
The algorithm can compute black to white palette too, if you give it "zero" as chroma, so then it could be used, but you would have to have it in new picker where you can set its min chroma level to zero to get a black and white palette with greys inbetween.
In current versions its min chroma level is 48, like it is for primary color in the Material 3 color algo.  If it is pure white, it becomes blue palette and pure black become a red palette. Regardless of what color / chroma it has, it always starts with black and ends with white. But if one gives the algo "zero" as chroma it will create black to white palette with nice nuances in between. Might be nice feature to add a Tonal palette picker that uses prefined params too, then one could define this as predefined tonal palette among other. Hmm cool idea, thanks! :D

However, if all you want is a white to black palette with greys in between, what you can do right now, is to use custom material color for it that you add to the custom "colors" picker.
You could define this MaterialColor color e.g. like so:
  // Add a custom white to black grey scale.
  static const MaterialColor whiteToBlack = MaterialColor(
    0xFF7C7D80, // Set the 500 index value here. Does not have to be it, but that is the norm.
    <int, Color>{
      50: Color(0xFFFFFFFF),
      100: Color(0xFFE1E2E4),
      200: Color(0xFFC7C8CA),
      300: Color(0xFFACADB0),
      400: Color(0xFF949599),
      500: Color(0xFF7C7D80),
      600: Color(0xFF646567),
      700: Color(0xFF48484A),
      800: Color(0xFF212121),
      900: Color(0xFF000000),
    },
  );

Obviously the color values can be whatever above, and you can start with black for index 50 too and end with white, but usually the order is from lighter to darker shade in Material Color, where the new M3 Tonal Palette is the other way around.
Then add this custom MaterialColor to a map Map<ColorSwatch<Object>, String> with all your other custom colors you want in your picker, like so here adding it last:
  // A custom color swatch, to name map, for the above custom colors.
  static Map<ColorSwatch<Object>, String> get colorsNameMap =>
      <ColorSwatch<Object>, String>{
        ColorTools.createPrimarySwatch(guideNewPrimary): 'Guide Purple',
        ColorTools.createPrimarySwatch(guideNewPrimaryVariant):
            'Guide Purple Variant',
        ColorTools.createAccentSwatch(guideNewSecondary): 'Guide Teal',
        ColorTools.createAccentSwatch(guideNewSecondaryVariant):
            'Guide Teal Variant',
        ColorTools.createPrimarySwatch(guideNewError): 'Guide Error',
        ColorTools.createPrimarySwatch(guideNewErrorDark): 'Guide Error Dark',
        ColorTools.createPrimarySwatch(blueBlues): 'Blue blues',
        ColorTools.createPrimarySwatch(clearBlue): 'Clear blue',
        ColorTools.createPrimarySwatch(darkPink): 'Dark pink',
        ColorTools.createPrimarySwatch(redWine): 'Red wine',
        ColorTools.createPrimarySwatch(grassGreen): 'Grass green',
        ColorTools.createPrimarySwatch(moneyGreen): 'Money green',
        ColorTools.createPrimarySwatch(mandarinOrange): 'Mandarin orange',
        ColorTools.createPrimarySwatch(brightOrange): 'Bright orange',
        ColorTools.createPrimarySwatch(brightGreen): 'Bright green',
        ColorTools.createPrimarySwatch(blueJean): 'Washed jean blue',
        ColorTools.createPrimarySwatch(deepBlueSea): 'Deep blue sea',
        whiteToBlack: 'White to black',
      };
}

The above code snippet is from the repo web demo picker.
Then in the picker you would pass this map to custom colors to customColorSwatchesAndNames map and of course make sure you have enabled the custom picker via pickersEnabled and you can also change the label for the picker selection with pickerTypeLabels and call it something else, if you only have this one "grey scale" material color in it, you could even call it "Greyscale".
I added the above changes to the repo web demo, you can find it here: https://github.com/rydmike/flex_color_picker/commit/b0c8f188fb5888bce2197c56f239ba9037af07ff
I did not yet build a new version of the web demo with this color added, but it will be in next build I make. You can build it if you want to try it, but below is what it looks like. It shows up among the other custom colors I had in there before:

And you can select the palette colors from white, to last one being black.

As said you can defines the shades or colors in the palette as you prefer, does not have to be the values I used above.

@Gilianp did the above help and answer your question? Let me know. I'm going to close the issue as answered if I don't hear back from you in a few days 💙


add Hunan Institute of Science and Technology

College English Official website : https://en.hnist.cn/

@binyye I am sorry, the domain vip.hnist.edu.cn is removed from our trusted domains list because the school allows to register an email address there even if you are not a student of the school. If you are the student of this school, please apply with official document (OFFICIAL DOCUMENT tab at https://www.jetbrains.com/shop/eform/students).


Install PyMAPDL in doc pipeline

Enable using pyMAPDL in examples by installing pyMADPL with the rest in the pipelines, so that from ansys.mapdl.core import launch_mapdl works. See for example #224 .

This might actually not be required nor desired if a specific repository for integration examples is created at the PyAnsys level.
This is under consideration and seems like it will be the way to go.


extra u in the python config file

config.JobType.pyCfgParams = [u'era=50ns', 'process=RECO']
the "u" should be removed

Is it crashing anything ? If not this is to enforce unicode coding of strings, so I would leave it...

crab does not like it... We are too advanced for it :)


Uart applet warnings

Hi. My Glasgow just arrived today and I'm very exited. I've just tested the UART applet with nothing connected and made some observations. Not sure of what to make of them. Maybe they will help with development.

If I run the applet I'm always getting parity warnings, although the parity check is none by default.

> glasgow run uart -V 3.3 tty
I: g.device.hardware: generating bitstream ID d709aa1c79bf720fd874632c4cd73c2c
I: g.cli: running handler for applet 'uart'
I: g.applet.interface.uart: port(s) A, B voltage set to 3.3 V
I: g.applet.interface.uart: running on a TTY; enter `Ctrl+\ q` to quit
W: g.applet.interface.uart: 911 frame or parity errors detected
W: g.applet.interface.uart: 12226 frame or parity errors detected
W: g.applet.interface.uart: 12224 frame or parity errors detected
W: g.applet.interface.uart: 12213 frame or parity errors detected
[...]

If I run the applet in pty mode, canceling with CTRL+\ q is terminating the program with a core dump

> glasgow run uart -V 3.3 pty
I: g.device.hardware: device already has bitstream ID d709aa1c79bf720fd874632c4cd73c2c
I: g.cli: running handler for applet 'uart'
I: g.applet.interface.uart: port(s) A, B voltage set to 3.3 V
/dev/pts/1
W: g.applet.interface.uart: 40 frame or parity errors detected
W: g.applet.interface.uart: 12211 frame or parity errors detected
W: g.applet.interface.uart: 12238 frame or parity errors detected
^\[1]    8247 quit (core dumped)  glasgow run uart -V 3.3 pty

If I run the applet in pty mode, canceling with CTRL+C is terminating the program with errors

> glasgow run uart -V 3.3 pty
I: g.device.hardware: device already has bitstream ID d709aa1c79bf720fd874632c4cd73c2c
I: g.cli: running handler for applet 'uart'
I: g.applet.interface.uart: port(s) A, B voltage set to 3.3 V
/dev/pts/1
W: g.applet.interface.uart: 865 frame or parity errors detected
W: g.applet.interface.uart: 12221 frame or parity errors detected
W: g.applet.interface.uart: 12211 frame or parity errors detected
^C

[ Nothing happens after the first CTRL+C ]

^C
Traceback (most recent call last):
  File "/home/ikarus/.local/bin/glasgow", line 8, in <module>
    sys.exit(run_main())
             ^^^^^^^^^^
  File "/home/ikarus/Programs/glasgow/software/glasgow/cli.py", line 937, in run_main

[...]

KeyboardInterrupt

[ Nothing happens, lets press CTRL+C a third time ]

^CException ignored in: <module 'threading' from '/usr/lib/python3.12/threading.py'>
Traceback (most recent call last):

[...]

    if lock.acquire(block, timeout):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt:

The first is a non-issue - as there is no signal (and parity is disabled), it's just informing you that there were n framing errors... UARTs are typically idle-high, and if the line is low for an extended period then it is either a break (technically also a framing issue), or an invalid signal.
https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter#Break_condition

Just wasn't expecting "warnings" when doing nothing.

I consider this the desired behavior since it's an abnormal state indicating a connection error, a faulty transmitter, or some other condition you want to be aware of. I do not consider it a concern that when you are not actually using the applet for its only task you're getting what may seem to be spurious warnings.

2. If I run the applet in pty mode, canceling with CTRL+\ q is terminating the program with a core dump

If you run it in PTY mode it does not instruct you to use Ctrl+\ q because that kills the application with a core dump. Ctrl+\ is SIGQUIT; it's used in the TTY mode because it's difficult to find an escape character that's not otherwise used. This is expected behavior.

3. If I run the applet in pty mode, canceling with CTRL+C is terminating the program with errors

That seems like a bug.

This is expected behavior.

(That said, I'm wondering if we should switch to a different escape sequence and/or trap SIGQUIT and make it synonymous to SIGINT normally because training users to do a thing that most of the time coredumps is bad.)

I consider this the desired behavior

It was just new to me because other USB to UART converters (e.g. FTDI, etc.) don's show that. But fair enough, I understand you point.

If you run it in PTY mode it does not instruct you to use Ctrl+\ q

Correct. I just tired it because Ctrl+cdid not work either. I did not know that it sends a SIGQUIT.

That seems like a bug.

Ok. :)
Thank you for the hard work on the project. Feel free to close this issue or to change its title to something more appropriate (e.g. "Bug when closing UART applet in PTY mode using Ctrl+c").

It was just new to me because other USB to UART converters (e.g. FTDI, etc.) don's show that. But fair enough, I understand you point.

One thing we can do is simply add a pullup on the RX line.

So reading through this issue with a fresh pair of eyes:

For the framing error problem, I agree that it can be distracting to new users, and given that we use the UART applet as the first applet you run, it's worth putting a higher bar on the UX there. I think we should either:

Unconditionally enable the pullup.
Conditionally enable the pullup so that revAB users don't get a message about it. (Does anyone care? E.g. @smunaut?)

I think it would be problematic to trap SIGQUIT and make it work the same as SIGINT because then we train users to do a different thing anyway. But we could make it do nothing by default, and something in some (small subset) of applets. Thoughts? This is less for the issue reporter and more for comaintainers.
Ctrl+C in pty mode seems to be hitting a deadlock that should be fixed.

So I think there's actually three issues here, but it's a little more subtle than what it looked at first.

Is it worth the (small, I think) effort to change the message to not mention parity errors if parity is none?  FWIW, I also like that it informs me when the DUT stops pulling it's transmit line high.

Is it worth the (small, I think) effort to change the message to not mention parity errors if parity is none?

Yes, happy to merge a PR right away.

@whitequark FWIW, no I don't care about a warning message  :)  And I also only use my revABs with custom applet anyway.

@smunaut Thanks. n=1 isn't a lot but it's better than n=0, so I'll go with an unconditional pullup and we can fix it later.
Anyone in this thread wants to add the pullups? You can glean how from the I2C applet.

We are now unconditionally enabling pulls on the UART applet: https://github.com/GlasgowEmbedded/glasgow/pull/583
This leaves SIGQUIT and the deadlock on Ctrl-C as the remaining issues.


Bug/Request Multi-line messages in discord only send the first line to game

Currently if you send a multi-line messages (like a list) in discord, it only sends the first line to the game. Any chance of allowing multi line messages to be send to the game? May require multiple messages send (1 per line)?

c8dfe42775d0558b213f38a5d4500966aee704c7 is a temp fix, but if eqemu adds support to bypass ^ parsing i'll add that in


Update lpherbal.json

With this marker i've had to edit out some of the NHSE text, as there appears to words missing.  I will email them and reinstate when they've corrected.

wording reinstated


[Dropdown Menu] WCAG2.2 SC 2.5.2 violation - Dropdown Menu opens on onPointerDown

Bug report
The Radix Dropdown Menu component opens on onPointerDown (which means as soon as a mouse navigation user presses the triggering element of the dropdown menu), but there is not available a function on the up-event, or a mechanism to abort the function before completion or to undo the function after completion. You can take a look at the Understanding SC 2.5.2: Pointer Cancellation (Level A) article for more information.

The intent of this success criterion is to make it easier for users to prevent accidental or erroneous pointer input. People with various disabilities can inadvertently initiate touch or mouse events with unwanted results. Each of the following subsections roughly aligns with the bullets of this Success Criterion, and outlines a means of allowing users to cancel pointer operations.
Source: Understanding SC 2.5.2: Pointer Cancellation (Level A)

Current behavior

A mouse navigation user clicks (and holds) the triggering element of the dropdown menu.
Without releasing, moves the mouse outside of both the triggering element or the dropdown menu area.
The dropdown menu is not closed (cancelling the function).

Expected behavior

A mouse navigation user clicks (and holds) the triggering element of the dropdown menu.
The dropdown menu is not yet open.
The user releases the mouse click while still hovering the triggering element of the dropdown menu.
The dropdown menu opens.

You can see the behaviour in the W3C Menu Button Pattern or in the W3C Menu Bar Pattern

or moving the mouse outside of the dropdown menu triggering and content should cancel the onPointerDown function.

A mouse navigation user clicks (and holds) the triggering element of the dropdown menu.
The dropdown menu opens.
Without releasing, moves the mouse outside of both the triggering element or the dropdown menu area.
The dropdown menu closes.
The user releases the mouse click while hovering outside of both the triggering element or the dropdown menu area.
The dropdown menu is still closed.

Reproducible example
Radix Dropdown Menu component
Suggested solution
Change the opening of the dropdown menu to onPointerUp or onClick instead of using onPointerDown.
Additional context
Here there are some examples of Radix components which meet the criteria, such as:

Radix Accordion Component (only opens accordion item on onPointerUp)
Radix Checkbox Component (only checks box on onPointerUp)
Radix Switch Component (only operates switch on onPointerUp)

Note: It might be related to https://github.com/radix-ui/primitives/issues/2700 (not 100% sure about it though)
Your environment

Software
Name(s)
Version

Radix Package(s)
@radix-ui/react-dropdown-menu
^2.0.5

React
n/a
18.2.0

Browser
Google Chrome
128.0.6613.138

Assistive tech

Node
n/a

npm/yarn

Operating System
MacOS
14.6.1

There's a possible "workaround" that might work (from the side of the consumer), but unfortunately it will only work for mouse users, it breaks the keyboard navigation. I'm still investigating if there's a nicer workaround for both cases.

I have a solution that's going to stay backward compatible and won't break anything.
const handler = useRef("pointer")

onPointerDown={(ev) => {
   if (ev.pointerType === "touch") {
       handler.current = "click"
       document.body.addEventListener("pointerup", () => {
           queueMicrotask(() => {
               handler.current = "pointer"
           })
       }, { once: true })
       return
   }
   // ...old logic
}}
onClick={() => {
   if (handler.current !== 'click') return
   // ...old logic
}}

So basically if pointerdown is initiated by touch, listen to the click handler instead.
This is the event order, which is the reason queueMicrotask is necessary:
pointerdown
pointerup
click

Happy to make a PR if this solution is acceptable.

+1


Utf8 decoding? problem

Hello,
Using this gist, I think unifill's Utf8 decoding method is incorrect, but I'm not sure how.
Using any of the methods from unifill.Unifill does not result in a runtime error or an exception being thrown.
Many thanks,
Skial

Thank you for reporting :wink:
unifill.Utf8 provides O(1) “by-code-units” API, while unifill.Unifill provides O(N) “by-code-points” API  (where N is the given number of index), so it is excepted behavior that Utf8.fromString('→φ«').codePointAt(1) throws InvalidCodeUnitSequence(1) and Utf8.fromString('→φ«').codePointAt(3) returns 966.
cf. http://www.slideshare.net/ryuseimandel59/haxe-vs-unicode-english
The usage of “by-code-units” API is similar to the Java String API. If you want to get the second code point of the UTF-8 code unit sequence, use offsetByCodePoints or codePointWidthAt:
var u = Utf8.fromString('→φ«');

trace(u.codePointAt(u.offsetByCodePoints(0, 1))); // 966

var i = 0;
while(i < u.length) {
    trace(u.codePointAt(i)); // 8594, 966, 171
    i += u.codePointWidthAt(i);
}

I'll continue to investigate why the js doesn't throw InvalidCodeUnitSequence but fails.

Thanks for the quick reply and explanation, I appreciate it.
I'm glad I was misunderstanding the API (and Unicode in general) and there was nothing wrong with the library :smile:


Please, merge this one.

Since you already created wiki for this. PR is not need. Keep on updating the wiki, I will review and update if needed.


:sparkles: Adds System.login

Uses current conventions.
Split out from #2368
Signed-off-by: Mike Fiedler<EMAIL_ADDRESS>

I think we should merge a PR to bind cuserid or similar syscall too.

@RX14 Quote from man page:

Nobody knows precisely what cuserid() does; avoid it in portable programs. Or avoid it altogether: use getpwuid(geteuid()) instead, if that is what you meant. Do not use cuserid().

Happy to rebase once we're green and people are 👍 with the changeset.

Anything else for me to do here?

@RX14 Anything remaining here, or can this be merged?

I believe there is nothing more to do. I'm just dubious if we really need this, personally.

I think this and a PR to access the processes' effective uid/gid should be merged at the same time so that their respective documentation can reference each other and their difference. I think that accessing the effective uid/gid will be much more common and useful than this method.

@ysbaddaden If this isn't desirable, that's fine - let's make a decision and get on with it. 😀
This being split out from #2368 - It appeared to be desired, that's why I took it on. Feedback on the desirability of this has been spotty at best.
@RX14 It is entirely possible that you're right, and that other extensions may be more useful - I didn't try to conquer those, so this remains waiting for someone to decide what its future should be.
I'm happy to consider other directions, just need some feedback on what to do about this PR.

Could this get revisited now that #5627 is getting ready to be merged?

Closing stale PR. There has been no activity for a long time.
This is probably still worth implementing, but needs a fresh start to discuss the API and integrate with existing APIs (see #7738).


Suggestion: Function pack inverse

I have a code snippet: +√. 100.  The function snippet can include in other snippet, but what if we can invert it? I know, we have setinv modifier, but can we? I think that the inverse of a code snippet is: °([[snippet]]). It equal to °₁°₂°₃...°n when n and the subscript numbers are primitives of the snippet
(About the optimize Issues: I just misclick, not a prank.)

Sorry, I'm not sure I understand what you are requesting. Can you clarify?

Closing due to inactivity.


add missing import statement in IndexApi.md code snippet

hi this is just a small change to make all the code snippets in IndexApi.md runnable

Hi, since we use OpenAPIGenerator to generate all our clients, it's necessary to change original generator templates. Can you please look at https://github.com/manticoresoftware/openapi/ and make a similar pr there?  I believe https://github.com/manticoresoftware/openapi/blob/master/templates/python/api_doc_example.mustache needs to be updated.

thanks @Nick-S-2018 ! i've made the necessary changes in https://github.com/manticoresoftware/openapi/pull/5
closing this MR


msgpack encoder/decoder: add support for Histograms and Summaries

Through PR https://github.com/calyptia/cmetrics/pull/83 CMetrics just got support for Histograms metrics type.
Example of a histogram usage:

https://github.com/calyptia/cmetrics/blob/master/tests/histogram.c#L125-L149

FYI: In https://github.com/calyptia/cmetrics/pull/87 I've added Summaries support.
The API is pretty similar to Histograms but just a bit simpler since we don't do data observation. Usage examples:
https://github.com/calyptia/cmetrics/blob/master/tests/summary.c#L55-L76

all it's supported:
encoder:

https://github.com/calyptia/cmetrics/blob/master/src/cmt_encode_msgpack.c#L267-L291

decoder:

https://github.com/calyptia/cmetrics/blob/master/src/cmt_decode_msgpack.c#L1386-L1389


ERROR: Cannot install -r requirements.txt (line 6) and -r requirements.txt (line 7) because these package versions have conflicting dependencies.

error while pip install -r requirements.txt:
The conflict is caused by:
lightning-whisper-mlx 0.0.10 depends on mlx
mlx-lm 0.17.0 depends on mlx>=0.14.1
To fix this you could try to:

loosen the range of package versions you've specified
remove package versions to allow pip attempt to solve the dependency conflict

Weird, this https://github.com/huggingface/speech-to-speech/issues/33 says that they run pip install fine. In any case, I pushed a change to main just now relaxing the mlx-lm requirement. Does it run for you @JunZhan2000 ?

changed the readme to suggest using uv, it is better anyway :)

mlx won't install in a non-mac server as there is no build for linux:

Having problems too

ok that makes more sense. I can push a quick fix

This should do it for linux users: https://github.com/huggingface/speech-to-speech/commit/cb48b916cf15b0805a6460862c7141dac33e41eb
And for mac users we have a requirements_mac.txt
Tomorrow I'll do a cleaner implementation per platform, but right now I wanted to push a hot fix

This should do it for linux users: cb48b91 And for mac users we have a requirements_mac.txt Tomorrow I'll do a cleaner implementation per platform, but right now I wanted to push a hot fix

I can confirm this fixes the issue, tested on both mac and linux+nvidia
I think there should be a note in the readme for Nvidia's system to also install flash attention:
pip install wheel
pip install flash-attn --no-build-isolation

I agree, do you want to make the change to the readme and make a PR or should I?

I agree, do you want to make the change to the readme and make a PR or should I?

please do it how you feel it would be more clear

Added the warning 👍


Added the 'luminosity' key to the graphs

Cross-PR of https://github.com/neoground/neowx-material/pull/86
Adds the key luminosity to the templates.

lgtm

@dmth Thanks for your changes


ImportError in Python version: ImportError: /usr/local/lib/python3.6/site-packages/asc.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN5anyks3Idw4NIDWE

You may repeat after me using docker image:
docker run -it python:3.6 bash
python3 -m pip install pybind11
python3 -m pip install anyks-sc
All steps finished withot errors.
Check installed libs:

Try import asc:

Good day! This is not the same library, similar in name and the python interpreter confuses them.
Perhaps this is an old version of the library.
Try uninstalling the old version and building again.

Thank you, for your respond.
What actually I have to do?
pip uninstall anyks-sc
pip install anyks-sc
Or I need to build anyks from git repository?
git clone --recursive https://github.com/anyks/asc.git
mkdir ./build
cd ./build
cmake ..
make

If you need a python version, the build is done via pip only. Building from the repository only for the standalone application.

Thank you, for your respond.
What actually I have to do?
pip uninstall anyks-sc
pip install anyks-sc

Yes, everything is relevant, under Linux and FreeBSD everything should be assembled correctly, I checked it on all current distributions. If the package compiled, then it should work.


Add equal not circle

Icon name
Circle equal not
Use cases
I need to show unalignment between two values. When the values are aligned I use circle-equal, but there's no corresponding circle-equal-not.
The non-circle version already has both equal and equal-not.

Design ideas
I'd say the design of circle-not is fine, it just needs to be put in the circle.
Checklist

[X] I have searched if someone has submitted a similar issue before and there weren't any. (Please make sure to also search closed issues, as this issue might already have been resolved.)
[X] I have searched existing icons to make sure it does not already exist and I didn't find any.
[X] I am not requesting a brand logo and the art is not protected by copyright.
[X] I am not requesting an icon that includes religious, political imagery or hate symbols.
[X] I have provided appropriate use cases for the icon(s) requested.

Do you have more use cases?

Not personally. I'd say they'd the same of the non circle version.


Train a model with the dataset without preprocessing

The dataset currently has a pre-processing step run that tries to remove non-wide rectangle annotations. However, this could be detrimental to the overall training performance which requires an experiment training a model with a dataset without this pre-processing.

[x] Compile kit and bear datasets without wide boxes preprocessing
[x] Train a model on full dataset
[x] Compare metrics with a model that did the wide boxes preprocessing
[x] Evaluate on the same validation dataset (Either with or without preprocessing)
[x] Re-train from scratch instead of from the pre-trained model

Notes

Training on a dataset without the wide-boxes filtering produced a worse performing model
It did however perform better for Rainbow and Bull
On the other hand, validating the previous model on the non-processed dataset, saw better performance with Rainbow reaching 0.783 mAP
This model was trained using the previous model as a base

It might be better to train from scratch

The pretrained argument in YOLOv8 does not seem to do anything as the resulting model in training from scratch has the exact same mAP scores

Training on a dataset without the wide-boxes filtering produced a worse performing model
It did however perform better for Rainbow and Bull
On the other hand, validating the previous model on the non-processed dataset, saw better performance with Rainbow reaching 0.783 mAP
This model was trained using the previous model as a base

It might be better to train from scratch

The pretrained argument in YOLOv8 does not seem to do anything as the resulting model in training from scratch has the exact same mAP scores
Training from scratch did not change the mAP scores at all, which I suppose might make sense, since they are still using the same hyperparameters and dataset