Implementing shooting method in Matlab

Article checklist
Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes #3511

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

plagiarism check done

@jumamiller changes made.

@LinusMuema changes made
cc @jumamiller

Hi @atienodorine3
Thanks for the article. It's quite informative and educative. About the formula, there's a script tool called MathJax that can help display the math equations. I added the script below the article and it formatted the equations. So next time you can use it.
cc: @jumamiller


Modify container image for bots/infrastructure migration

Contains a few individual changes, needed for the bot/infrastructure migration.

CI fails with no space left on device (@dpino ?)

CI fails with no space left on device (@dpino ?)

A bit ironic - that is why we moved to our own runners in the first place 😊

I manually ran podman image prune on the host that runs the gitlab-runner. Should be fine now.

Oops, I diddn't intend to squash before merging, sorry :/


Enable dotnet format checks

Codecov Report

Merging #4 (1260219) into main (bdcd80d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #4   +/-   ##
=======================================
  Coverage   90.90%   90.90%
=======================================
  Files           7        7
  Lines          66       66
  Branches        8        8
=======================================
  Hits           60       60
  Misses          4        4
  Partials        2        2

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 bdcd80d...1260219. Read the comment docs.


Add secure Route functionality

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

@taylorotwell
The code should be correct and it's just a small fix
Laravel don't have secured redirect with Named Route.
Ex:
In routes/web.php
Route::get("/login", 'App\Http\Controllers\AppUsers@login')->name('MyLogin');

in Controller:
return redirect()->route('MyLogin'); // Redirect to HTTP
return redirect()->secure('MyLogin'); // Don't accept Named Route
return redirect()->secure('/login'); // Is the solution without using Named Route


Feature request: Account

It would be good if you can log in and

manage my board - create (public/private), edit, delete, archive, upload board logo
create/invite team
see previous participated retro boards

I'm making a decision not to support accounts.
I think it's too complicated a feature with little to no benefit.
To address the things listed in your description:

create private boards - all boards are essentially private with the hash in the url effectively being a password to entry.
edit/delete boards - the board owner can edit and delete all aspects of the board.
archive board - I think the ability to disable new cards and voting is tantamount to archival.
create/invite team - Invite emails would be a welcome feature not reliant on having an account.
previous boards - A list of previously visited boards is available on the splash page.


Determine executable path based on arguments

Hi @m-schuetz
This is the fix I propose for #228.
I had build issues on Linux and on macOS as well, and planned to fix it just like #233 did. I realized that probably we can get rid of the getExecutablePath function completely.
Finding the path of the executable doesn't needs to be this complicated, there are simpler solutions. Although I agree that there is no bulletproof cross platform solution to this problem, but the solution in this PR should work in almost every situation except maybe for some exotic edge cases. The path is determined based on the first command line argument. This solution should work even if the executable is symlinked.

May not be a bullet proof solution according to http://stackoverflow.com/a/933996/913630 but better than what the converter currently does.
Thanks for this fix!


Flutter on iOS: redefinition of module 'Firebase'

Error received after executing "flutter run ios":
logs can found via ios_logs_flutter_run ios_logs_flutter_run_-v
Note: pay_ios related issues were previously addressed here before Flutter version 3.5 and even when I "git checkout 3.0.0" for flutter version:

https://github.com/google-pay/flutter-plugin/issues/135
https://github.com/actions/virtual-environments/issues/5469

This note did nothing to resolve issues: https://stackoverflow.com/questions/70760326/flutter-on-ios-redefinition-of-module-firebase

This did help to resolve the issues outlined in the logs: https://stackoverflow.com/questions/70760326/flutter-on-ios-redefinition-of-module-firebase
Yet, this error follows:
Launching lib/main.dart on iPhone (3) in debug mode...
Updating project for Xcode compatibility.
Upgrading Runner.xcscheme
Automatically signing iOS for device deployment using specified development team in Xcode project: SJAV7HZQZ6
Running Xcode build...
Xcode build done.                                           1731.4s
Installing and launching...
(lldb) 2022-07-18 20:49:21.714199-0400 Runner[32111:1149425] 9.2.0 - [FirebaseCore][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
9.2.0 - [FirebaseCore][I-COR000003] The default Firebase app has not yet been configured. Add FirebaseApp.configure() to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)(or the@mainstruct's initializer in SwiftUI). Read more: https://goo.gl/ctyzm8. 9.2.0 - [FirebaseCore][I-COR000003] The default Firebase app has not yet been configured. AddFirebaseApp.configure() to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:) (or the @main struct's initializer in SwiftUI). Read more: https://goo.gl/ctyzm8.
Initialized TensorFlow Lite runtime.
INFO: Initialized TensorFlow Lite runtime.
Connecting to the VM Service is taking longer than expected...
Still attempting to connect to the VM Service...
If you do NOT see the Flutter application running, it might have crashed. The device logs (e.g. from adb or XCode) might have more details.
If you do see the Flutter application running on the device, try re-running with --host-vmservice-port to use a specific port known to be available.
No windows have a root view controller, cannot save application state
Exception attempting to connect to the VM Service: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = <IP_ADDRESS>, port = 59511
This was attempt #50. Will retry in 0:00:01.600000.

Hi @kenaitian This issue doesn't seem related to this plugin. I'd suggest posting this issue within Firebase domains.


Ross-Tech HEX-COM+CAN Supported?

I have a Legacy Ross-Tech HEX-COM+CAN cable that I use to run VCDS on a 2001 VW Golf GLS 1.8T, which it does flawlessly, on a Windows 10 laptop with a native serial port running on COM1.
I have tried running kw128test multiple times unsuccessfully using both 9600 and 10400 baud. Always get the Caught: System.InvalidOperationException Controller did not wake up fault.
Is this cable even supported or am I out of luck and need to purchase a KKL USB cable? Willing to play with some settings if that might help.
Here is my most recent log:
Version 0.99.2-alpha (https://github.com/gmenounos/kw1281test/releases)
Args: COM1 9600 17 GetSKC
OSVersion: Microsoft Windows NT 10.0.19045.0
.NET Version: 8.0.6
Culture: en-US
Opening serial port COM1
Sending wakeup message
Reading sync byte
Unexpected sync byte: Expected $55, Actual $B5
Retrying wakeup message...
Reading sync byte
Unexpected sync byte: Expected $55, Actual $B5
Retrying wakeup message...
Reading sync byte
Unexpected sync byte: Expected $55, Actual $95
Caught: System.InvalidOperationException Controller did not wake up.
Unhandled exception: System.InvalidOperationException: Controller did not wake up.
at BitFab.KW1281Test.KwpCommon.WakeUp(Byte, Boolean) in /Users/gmenounos/src/kw1281test/KwpCommon.cs:line 62
at BitFab.KW1281Test.Tester.Kwp1281Wakeup(Boolean ) in /Users/gmenounos/src/kw1281test/Tester.cs:line 33
at BitFab.KW1281Test.Tester.GetSkc() in /Users/gmenounos/src/kw1281test/Tester.cs:line 509
at BitFab.KW1281Test.Program.Run(String[]) in /Users/gmenounos/src/kw1281test/Program.cs:line 275
at BitFab.KW1281Test.Program.Main(String[]) in /Users/gmenounos/src/kw1281test/Program.cs:line 31

Hi!
I'm using same hex-com+can long time, for me working good.
Try switch to Dumb mode, after com test in vcds under options menu
regards

Finally had some time to re-test this weekend. As @kerekt suggested, I had attempted using dumb mode, but it was unsuccessful with similar results to my op above. Thankfully this set-up did end up working.
Within VCDS:
Click "Restore Defaults"
Uncheck "Boot in intelligent mode"
Do a "Test" then click "Save" and exit VCDS
Next run kw1281test with 10400 baud:
KW1281Test COM1 10400 17 GetSKC
I think restoring defaults may have been the key for me in addition to using dumb mode. Ghost in the machine for sure! I was also surprised that 10400 was needed as 9600 has been the common suggestion for my model and make, but obviously the control units are not consistent. In any case all of my testing has now been successful and I have the SKC for my car.
Thanks to @gmenounos for this awesome piece of software and @kerekt for your reply. Cheers!


Admin / Virtual Rooms upload should report errors

At the moment, if anything goes wrong with a csv upload on the virtual rooms page (or other admin pages -- I think registrations has the same problem), no error message is printed -- it just silently fails.  This is... unhelpful.

Moving this to the ICFP milestone.  Second time this week I'm helping Harry track down silent failures when he uploads his file...

(but not high priority, obviously)

Closing as the new UI has been developed after this issue was opened and this issue relates only to the old UI.


Refactor POMs to conform to CI/CD pipeline

move BOMs to related repositories
rename groupIds
make the project a multi-module project

Refers to https://github.com/Activiti/Activiti/issues/1995


Add a Gitter chat badge to README.md

starcraftman/wok now has a Chat Room on Gitter
@starcraftman has just created a chat room. You can visit it here: https://gitter.im/starcraftman/wok.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

Thanks gitter bot.


ZSH_HIGHLIGHT_STYLES[path]='fg=cyan' will causes an error in different places?

export TERM=xterm-256color
export ZSH=~/.oh-my-zsh
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export EDITOR=vim

ZSH_THEME="powerlevel9k/powerlevel9k"

POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_MODE='flat'

plugins=(sudo colored-man git osx autojumps brew brew-cask zsh-syntax-highlighting)
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern line)
# ZSH_HIGHLIGHT_STYLES[path]='fg=cyan'    # will causes: bad math expression: operand expected at `/usr/local...'

export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin"
source $ZSH/oh-my-zsh.sh

alias ll="ls -alh"
alias su="su -"
alias mysql='/usr/local/mysql-5.6.23-osx10.8-x86_64/bin/mysql'
alias mysqladmin='/usr/local/mysql-5.6.23-osx10.8-x86_64/bin/mysqladmin'
alias :q="exit"
alias vi=vim

ZSH_HIGHLIGHT_STYLES[path]='fg=cyan' # will not causes error

Minimal reproduction:
% array_parameter=( /usr/local/bin )
% x[array_parameter]=42
zsh: bad math expression: operand expected at `/usr/local...' # sic

Cause: the expression x[a], where x has not been declared as a parameter and a is an array parameter (which $path is), interpolates $a — in math context, like all subscripts — and /usr/local/bin is not a valid math expression.
In short, this is completely normal and expected.  The assignment will work if you put it after the  source line, since that line (runs the module that) declares the parameter.
Next time, please try to bisect your config.
Thanks for the report.

Thank you for your solution, I will notice that next time. I am sorry for the inconvenience which I caused.

No worries, it was a good exercise ☺.  Glad you've got it working.


No Collision in Sapien

Hi! Great work of yours!
I'm trying to use Sapien as my simulator. However, when I ran the examples, I noticed there is no physical collision in the hand, as shown below. Is this a bug, or is it a common occurrence in Sapien?

Which script you are running, you may need to call scene.step to make sapien a physical simulator. If you just set the robot qpos or link pose, SAPIEN can also be regarded as a visualizer

I am running render_urdf_sapien.py and have verified that scene.step is included, with all settings set to default. Do you have any idea what might be causing this issue? The render_urdf_issacgym.py runs perfectly with collision.

Hi @Janebek
Thanks for the information and sorry for the issue. I find that this is a bug in the render_urdf_sapien.py code which enable disable_self_collision by default so that the self collision is ignored by SAPIEN simulator.
This issue is fixed in 3c9a8e87f9bc36dc27e523a9fa70ecf1f0bb5629

Hi! I'm glad you found it.
However, I encountered another issue which might be related to the version of SAPIEN. The error message is shown below. Do you think I should switch to a specific version of SAPIEN?

Previously I am using the pre-release version of SAPIEN. Since this is not a code repo so I do not update the py file frequently. To better support the newer sapien version, I have just updated the code to 3.0.0b1. You can try:
pip3 install sapien=3.0.0b1

Thank you! The hand now has collisions in SAPIEN.


Connection closed after a while

I can make many normal requests via your component, but if I leave it running idly for a while, and then make some more requests, I keep getting ‘SocketException: Connection reset’. (Note, not reset by peer, so it's not as if pokeapi.co is cutting me off or anything.)
See the stacktrace below.
pokeapi-reactor-connection-reset-stacktrace.log
Note how first a bunch of requests are made at around 13:11. Then I let it idle for 20 minutes or so, and a couple more requests go successfully around 13:32, but very quickly I then get the SocketException from Netty. I don't think I'm doing anything peculiar and if I run the same requests right when starting by application, everything works fine; it's not like specific requests fail.
Any idea?
Thanks!

Hmm, some quick Googling leads me to believe this may an issue with the provided HttpClient bean. Perhaps the connection is stale? This could be the result of manually providing an HttpClient without specifying any configuration to invalidate connections - like I suggest to do in the README.
Could you perhaps try to change the configuration of your HttpClient bean? I found this Stackoverflow article on how to configure a HttpClient with a HttpClientConnectionManager that closes stale connections automatically. And here are the docs on configuring a WebClient.
I can experiment with it too. If you find a good configuration that solves this issue, please share it here and I'll update the README.

Yes, that's very much what it sounds like! With the help of your links and some more googling on stale connections in Netty, and some debugging, I've got it working (so it seems) now. Here is the relevant configuration:
@Bean
public ConnectionProvider connectionProvider() {
    return ConnectionProvider.builder("pokeapi-reactor")
            .maxIdleTime(Duration.ofSeconds(10))
            .maxConnections(500)
            .pendingAcquireMaxCount(-1)
            .build();
}

@Bean
public HttpClient httpClient(ConnectionProvider connectionProvider) {
    return HttpClient.create(connectionProvider)
            .compress(true)
            .resolver(DefaultAddressResolverGroup.INSTANCE);
}

The name of the builder is arbitrary and does not matter. The maxIdleTime is the main important part; the exact value probably does not matter, but this is what I found in an example and it works.
With your default configuration (HttpClient.create()) I found by debugging that the maxConnections was set to 500, so I just used that (for me it defaulted to 16, which is twice the amount of logical cores). Since I had many parallel requests, I got some exception about pendingAcquireMaxCount being exceeded (which according to the documentation defaults to twice the maxConnections, so 32 in my case). I could not find any kind of limit (or any value at all) for the default configuration, and -1 means no limit, so I just used that.
The rest of the configuration I have left as is.
Thank you for your investigation and advice! It seems to have been solved with this.

Excellent - thank you for figuring that out and sharing! Very much appreciate you explaining the parameters as well. I've updated the README to include your configuration as an example @Configuration

Great! Glad we got this figured out so quickly :)


fix(storybook-addon-markdown-docs): remove dependency

wrong dependency @open-wc/demoing-storybook

should fix https://github.com/open-wc/open-wc/issues/1507

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

replaced by https://github.com/open-wc/open-wc/pull/1510


"unresolved import" when using "paste! {...}"

I am using the paste crate, and and rust-analyzer reports an error in VSCode for the below example code. However, the code compiles and cargo check does not report any errors.
Here is the error

And here is the example code
main.rs
mod my_struct;

use my_struct::MyStruct;

fn main() {
    println!("Hello, world!");
}

my_struct.rs
use paste::paste;

paste! {
    pub struct MyStruct;
}

Even if I put the code all into one file, there are still issues with resolving the type. Is there any workaround? Can I at least suppress the errors?

You need to enable proc-macro support using
{
    "rust-analyzer.cargo.loadOutDirsFromCheck": true,
    "rust-analyzer.procMacro.enable": true,
}


Fix local build scripts for process-compose

Summary

Categories: scripts.

Reduce recompile-the-world tendencies by always selecting the package when building binaries (if the binaries need to be specifically selected at all, rather than just built as package's default targets).
Fix cargo warnings.
Cherry-pick a few process-compose changes from #697.

Same issue as on main. The rest checks, so I am going to merge.


Create wireframe.

Create a complete wireframe to have a clear idea of what to expect from the design.

This is my comment! ✨


Missing Node Types, When loading the graph, the following node types were not found: DeepTranslatorTextNode

I can't use alekpet node, please help me figure out what's going on. This happened since I installed some python dependencies yesterday. “Missing Node Types, When loading the graph, the following node types were not found: DeepTranslatorTextNode”

重新 git clone 之后就可以了。Just re-git clone it.
https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/issues/91#issuecomment-2453026215
https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/tree/new_init_config_disabled

This branch (is experimental) (https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/issues/94) is needed to be able to disable unnecessary nodes, the init.py file was changed there and the config.json file was added. So check if the "check_enabled_nodes" parameter in config.json is false, then the filter for disabling will not work for everyone and all nodes will be loaded, if true, then the disabling rules come into play, either for all folders (the active parameter), or if false is set for certain nodes in the nodes > node_name parameter. And so you can also replace the _init.py file from master if you don't need it at all. Maybe there are some other errors in the console?

重新 git clone 之后就可以了。重新 git clone 就可以了。
#91（评论）
https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/tree/new_init_config_disabled

需要此分支（实验性的）（#94）才能禁用不必要的节点，__init__.py文件在那里进行了更改，并添加了 config.json 文件。因此，请检查 config.json 中的“check_enabled_nodes”参数是否为 false，然后禁用过滤器将不适用于所有人，并且将加载所有节点，如果为 true，则禁用规则将生效，无论是针对所有文件夹（active 参数），还是在 nodes > node_name 参数中为某些节点设置 false。因此，__init_.py如果您根本不需要它，也可以从 master 替换文件。检查 DeepTranslator 文件夹中的 python 文件是否已设置 :)。也许控制台中还有其他错误？

Yes, I found that the left interface of the node is missing.

重新 git clone 之后就可以了。Just re-git clone it.
#91 (comment)
https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/tree/new_init_config_disabled

This branch (is experimental) (#94) is needed to be able to disable unnecessary nodes, the __init__.py file was changed there and the config.json file was added. So check if the "check_enabled_nodes" parameter in config.json is false, then the filter for disabling will not work for everyone and all nodes will be loaded, if true, then the disabling rules come into play, either for all folders (the active parameter), or if false is set for certain nodes in the nodes > node_name parameter. And so you can also replace the __init_.py file from master if you don't need it at all. Check in DeepTranslator folder python file isset :). Maybe there are some other errors in the console?

Thank you. When I put the modified _init.py in the previous node folder, alekpet can also be used normally.

Logically, it should have pulled data from config.json
__init__.py
        # Global settings
        if GLOBAL_SETTINGS is not None:
            is_check_enabled_nodes = GLOBAL_SETTINGS.get(
                "check_enabled_nodes", True)

File config.json
"global_settings": {
    "check_enabled_nodes": false
  }

"global_settings": {
    "check_enabled_nodes": false
  }

I followed this method and changed is_check_enabled_nodes in _init.py back to true.
Config settings --
is_check_enabled_nodes = true
At the same time, I changed global_settings check_enabled_nodes in config.json to true.
"global_settings": {
"check_enabled_nodes": false
}
AlekPet also works properly.


Error migrating from Wagtail version 4.0.4 to 4.1

Issue Summary
I tried to update my project from Wagtail version 4.0.4 to 4.1, but I got an error.
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django_filters/utils.py", line 174, in get_field_parts
    opts = field.remote_field.model._meta
AttributeError: 'str' object has no attribute '_meta'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run
    autoreload.raise_last_exception()
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
    raise _exception[1]
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django/core/management/__init__.py", line 398, in execute
    autoreload.check_errors(django.setup)()
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django/apps/registry.py", line 116, in populate
    app_config.import_models()
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django/apps/config.py", line 269, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/user/Projects/Web/AsusAlgerie_Store/Website/home/models.py", line 20, in <module>
    from store.models import ProductPage
  File "/home/user/Projects/Web/AsusAlgerie_Store/Website/store/models.py", line 23, in <module>
    class ProductCategory(index.Indexed, models.Model):
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/wagtail/snippets/models.py", line 47, in register_snippet
    from wagtail.snippets.views.snippets import SnippetViewSet
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/wagtail/snippets/views/snippets.py", line 628, in <module>
    class SnippetHistoryReportFilterSet(WagtailFilterSet):
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django_filters/filterset.py", line 62, in __new__
    new_class.base_filters = new_class.get_filters()
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django_filters/filterset.py", line 325, in get_filters
    field = get_model_field(cls._meta.model, field_name)
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django_filters/utils.py", line 144, in get_model_field
    fields = get_field_parts(model, field_name)
  File "/home/user/.local/share/virtualenvs/Website-iY00WjmF/lib/python3.10/site-packages/django_filters/utils.py", line 179, in get_field_parts
    raise RuntimeError(
RuntimeError: Unable to resolve relationship `user` for `wagtailcore.ModelLogEntry`. Django is most likely not initialized, and its apps registry not populated. Ensure Django has finished setup before loading `FilterSet`s.

I have a custom user model (I followed the Wagtail documentation)
# users/models.py
from django.db import models
from django.contrib.auth.models import AbstractUser

class User(AbstractUser):
    phone = models.CharField(max_length=32, blank=False, null=True)
    address = models.TextField(blank=False, null=True)

# core/settings/base.py
AUTH_USER_MODEL = 'users.User'

Technical details

Python version: 3.10.
Django version: 4.1.3.
Wagtail version: 4.0.4.

Thanks for the report @OBKF! This has been reported previously at #9586, and a fix will be part of the 4.1.1 release (hopefully within the next week).


Downgrade google-api-client gem to fix analytics rake task

The analytics:analyse rake task makes use of the google-api command-line
tool which is only available in pre-v0.7 versions of the google-api-client
gem.
I also had to explicitly restrict the version of the jwt gem to ~> 0.1.4 to
get the google-api CLI tool to run.
I still haven't got the rake task to work completely, because I'm waiting on
some permission changes to my Google account. However, I'm confident that we
need these changes if the task is ever going to work and they don't seem as if
they should affect any production code.
Also I thought it was better to get this into master rather than have it languishing
on my local machine.

Does anyone have any thoughts on this. More specifically do you think that any of the gem downgrades might be risky?

I also had to explicitly restrict the version of the jwt gem to ~> 0.1.4 to get the google-api CLI tool to run.

Out of interest, what was the error when using a newer version of jwt?

It looks as though the Google::APIClient is only used by the analysis.rake task so I don't see any harm in downgrading it. I guess it's possible that downgrading some of the related gems might have some unintended side effects but hopefully our test suite will catch those.

I thought the jwt thing was a version dependency problem, but looking at the Gemfile.lock now, it's not obvious that that is the case. I'll check again before merging.

I'm going to close this for now until we actually might need it.


Incorrect Number of Arguments Error in Initialization of Chaincode. Fabric 2.3.0

Hello to all,
I am trying to install a new chaincode in the minifabric network and after I successfully install approve and commit from one organization (org0.example.com) the chaincode I proceed for the initialization.
At this point I get the following error:
Error : endorsement failure during invoke. response: status:500 message: "error in simulation: transaction returned with failure : Incorrect number of arguments. Expecting 4"
The commands that I tried are:
minifab initialize
minifab initialize -n mycc
minifab initialize -n mycc -p '"invoke", "a", "b", "5"'
I am running the fabric in ubuntu os.
I tried everything and I feel like I miss something but I don't know what. The whole process is happening in the network that comes with minifabric at start and nothing changed. Also the chaincode is just a copy paste of the "simple" go chaincode that also comes with minifabric.
Any help would be appreciated.
Thank you

Well, I have found the solution. I never checked that the chaincode in the Init method asks for input args.
In fact I didn't know that when you call initialize you actually call the init method of the chaincode. And that method may need arguments for input.
The answer was in front of my eyes, but sometimes you never see it.
Thank you for your time.


Tiles not merging with Docker image

Here is some of the output from running node /chartmaker/make.js
I am running docker version v1.35
>> gdal_translate /chartmaker/workarea/Enroute_High/1_unzipped/enr_h11.tif
>> gdalwarp warping /chartmaker/workarea/Enroute_High/3_clipped/enr_h11.vrt using shapefile /chartmaker/clipshapes/enroute_high/enr_h11.shp
>> gdaladdo adding overviews to /chartmaker/workarea/Enroute_High/3_clipped/enr_h11.vrt
>> gdal2tiles tiling /chartmaker/workarea/Enroute_High/3_clipped/enr_h11.vrt into /chartmaker/workarea/Enroute_High/4_tiled/enr_h11
* chart enr_h12
Warning 1: The definition of geographic CRS EPSG:4269 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code.
>> gdal_translate /chartmaker/workarea/Enroute_High/1_unzipped/enr_h12.tif
>> gdalwarp warping /chartmaker/workarea/Enroute_High/3_clipped/enr_h12.vrt using shapefile /chartmaker/clipshapes/enroute_high/enr_h12.shp
>> gdaladdo adding overviews to /chartmaker/workarea/Enroute_High/3_clipped/enr_h12.vrt
>> gdal2tiles tiling /chartmaker/workarea/Enroute_High/3_clipped/enr_h12.vrt into /chartmaker/workarea/Enroute_High/4_tiled/enr_h12
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h01
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h01 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h02
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h02 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h03
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h03 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h04
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h04 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h05
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h05 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h06
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h06 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h07
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h07 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h08
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h08 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h09
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h09 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h10
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h10 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h11
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h11 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h12
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h12 /chartmaker/workarea/Enroute_High/5_merged
>> generating metadata json for Enroute_High database
>> creating database: /chartmaker/charts/Enroute_High.db
Command failed: python3 ./mbutil/mb-util --image_format=webp --scheme=tms /chartmaker/workarea/Enroute_High/5_merged /chartmaker/charts/Enroute_High.db
Sectional processing time: 0:52:25

Caribbean processing time: 0:3:23

Grand_Canyon processing time: 0:0:25

Terminal processing time: 0:7:21

Helicopter processing time: 0:2:59

Enroute_Low processing time: 0:24:57

Enroute_High processing time: 0:25:46

Start time: Sun Aug 18 2024 21:43:33 GMT+0000 (Coordinated Universal Time)
End time: Sun Aug 18 2024 23:40:54 GMT+0000 (Coordinated Universal Time)
Total processing time: 1:57:21

I think it needs to be perl /chartmaker/mergetiles.pl instead of perl ./mergetiles.pl

I'm looking into this now, are you running the image on Linux, or Windows, or Windows/WSL?

In Linux (Ubuntu) with docker v24.0.7. I changed those two things and it ran to completion so that was the only issue.

I was able to duplicate the issue in 1.35.  I added a function to detect if
the app is running in docker and set the  app path accordingly, will push
1.36 here shortly.
On Mon, Aug 19, 2024, 2:37 PM jamez70 @.***> wrote:

In Linux (Ubuntu) with docker v24.0.7. I changed those two things and it
ran to completion so that was the only issue.
—
Reply to this email directly, view it on GitHub
https://github.com/N129BZ/chartmaker/issues/8#issuecomment-2297303427,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALK77SHMQNLILWJSGJ6Q3BDZSJCO5AVCNFSM6AAAAABMW6NINSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJXGMYDGNBSG4
.
You are receiving this because you were assigned.Message ID:
@.***>

Tested docker image n129bz/chartmaker:v1.36 processed enroute high chart without error, pushed new image to docker hub, closing issue.

Closed.


add WhatsApp as build-in social network share

here it comes #fingerscrossed :)

Thank you very much for the PR!


Request Domain from specific IP

We are using supertest to test the API of an app that serves multiple Domains.
Depending on the domain you request, you get different results.
I want to tell supertest to request send the request to a specific IP and Port and requesting the data from a given Domain.
e.g. Ask <IP_ADDRESS>:3000 to serve `mydomain.com/api/test.json``
how would I do that?

Supposedly (according to superagent's docs) it should be possible to use:
request("domain.com")
    .get("/")
    .connect("<IP_ADDRESS>")
    ...

However, I tried this a few moments ago and had no success. I would love to know how to do that.
Meantime, one workaround might be to override your hosts file but that's extremely janky.

A workaround, though not using supertest, is to use superagent directly:
var mocha = require('mocha');
var forEach = require('mocha-each');
var assert = require("assert");
var superagent = require('superagent')

var ports = [
    [80,"http"]
]

describe("Responds as expected", () => {

    forEach(ports)
    .it("Should respond on port %d using %s",(port,schema) => {
        return superagent
            .get("http://google.com")
            .connect("<IP_ADDRESS>")
            .then(function(res) {
                    assert.equal(res.statusCode,200,"Status should be 200")
                    assert.notEqual(res.text.indexOf("Running Profcesses"),-1,"Expect Running Processes to be within the page downloaded")
            })

    });
})

This does what I need, connecting to <IP_ADDRESS> instead. This is part of the superagent test which I believe should allow such a command to run but there you go 🤷


运行“BELLE模型在COLAB推理的示例”报错，Couldn't instantiate the backend tokenizer from one of:

tokenizer = AutoTokenizer.from_pretrained("BelleGroup/BELLE-LLAMA-7B-2M-gptq")
error:ValueError: Couldn't instantiate the backend tokenizer from one of:
(1) a tokenizers library serialization file,
(2) a slow tokenizer instance to convert or
(3) an equivalent slow tokenizer class to instantiate and convert.
You need to have sentencepiece installed to convert a slow tokenizer to a fast one.
!pip install sentencepiece didn't slove the issue

已经解决了，我更新到github了。应该是transformers版本导致的问题。你直接基于github上面最新的colab点击进去运行，应该不会出现这个问题了。


What if I use zuul with okhttp, how to set connections?

I'm using zuul with okhttp3.
I set
ribbon.okhttp.enabled: true according to the doc http://cloud.spring.io/spring-cloud-static/Edgware.RELEASE/single/spring-cloud.html#_zuul_http_client
but When I dive into the code in
org.springframework.cloud.netflix.ribbon.okhttp.OkHttpLoadBalancingClient#createDelegate
I find code like below ：
@Override
protected OkHttpClient createDelegate(IClientConfig config) {
    return new OkHttpClient();
}

SO, I wonder how to set MaxTotalConnections or MaxConnectionsPerHost

What version of Spring Cloud?

Edgware.RELEASE

@ryanjbaxter  ping...

Hi @eacdy
To my knowledge, the source code for creating okhttp3 has been refactored in Edgware.RELEASE compared to Dalston.SR4 (or earlier).
okhttp is now created in OkHttpRibbonConfiguration. If you do not involve retry then the specific method is OkHttpRibbonConfiguration # retryableOkHttpLoadBalancingClient().
The above procedure eventually calls the AbstractLoadBalancingClient's constructor, and here it should be noted that the constructor called in the version of Edgware.RELEASE is
protected AbstractLoadBalancingClient(D delegate, IClientConfig config, ServerIntrospector serverIntrospector) {
    super(null);
    this.delegate = delegate;
    this.config = config;
    this.serverIntrospector = serverIntrospector;
    this.setRetryHandler(RetryHandler.DEFAULT);
    initWithNiwsConfig(config);
}

The previous version is called:
protected AbstractLoadBalancingClient(IClientConfig config, ServerIntrospector serverIntrospector) {
    super(null);
    this.delegate = createDelegate(config);
    this.config = config;
    this.serverIntrospector = serverIntrospector;
    this.setRetryHandler(RetryHandler.DEFAULT);
    initWithNiwsConfig(config);
}

So I do not think there will be any problem description to you.
Another question is about MaxConnectionsPerHost
Because it is using the ConnectionPool, so I think we only need to set MaxTotalConnections on it, there is no MaxConnectionsPerHost this ConnectionPool internal parameters. okhttp internally places all request links in a queue, with a thread clearing expired connection
Above is my understanding, hoping to help you. Thank you.

The OK Http Client is configured and created here https://github.com/spring-cloud/spring-cloud-netflix/blob/1.4.x/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/ribbon/okhttp/OkHttpRibbonConfiguration.java
You can configure the max total connection by setting ribbon.MaxTotalConnections.

Hi @ryanjbaxter
Thank you for your reply, my understanding is correct? Also because we use okhhtp, so we do not seem to need to set MaxConnectionsPerHost this parameter.

@holy12345 yes for the most part

Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue.


Not work with nextjs

I try integrate with nextjs but I have erros, or is impossible ?

Use next/dynamic to prevent SSR on NextJS
Also note that the version of react-dnd and react-dnd-html5-backend should not be updated to the latest version, as react-dnd has removed DragDropContext on version9

@UsuJuan  Did it work for you?

@aliehsan90 I didn't try but had problem with react-dnd

@UsuJuan  So what did you do integrate it with nextjs? Any specifics that I should keep in mind?

@aliehsan90 not implemented in my project because had any errors, I not used this library with nextjs. Sorry.

ok thanks

anyone figured this out?  It has to do something with the way AntD is  imported on the component.... i think


fix: service health recommendation query

Overview/Summary
Update service health recommendation query output order
Related Issues/Work Items
None
Breaking Changes

None

As part of this pull request I have

[ ] Read the Contribution Guide and ensured this PR is compliant with the guide
[ ] Checked for duplicate Pull Requests
[ ] Associated it with relevant GitHub Issues or ADO Work Items (Internal Only)
[ ] Ensured my code/branch is up-to-date with the latest changes in the main branch
[ ] Ensured PR tests are passing
[ ] Performed testing and provided evidence (e.g. screenshot of output) for any changes associated to ARG queries
[ ] Updated relevant and associated documentation (e.g. Contribution Guide, Docs etc.)


[Feature Request] Card reactions

Ability to react to cards with emoji.

Preset list of emojis I assume?

It'd be nice to be able to react with arbitrary emoji; however, the desire behind this is to have some form of reaction to cards.  Therefore, a list of the most common emoji for reacting would be sufficient to meet this issue.


Adapter not connected with Synology

Hello,
I like the functions of this Adapter, but most of the Time the status of the adapter is yellow,
Adapter not connected with Synology.
Is this a known problem?
Greetings
Fabian

I do not have any NAS when. This week I collected it myself. Now I will add the adapter and fix the errors in it.

Is there a new version? I like to call me a tester. let me know if I have something to do ;-)

As already offered, I would like to test, if you have no NAS for the treatment. Unfortunately, the adapter makes no sense, which is why I disable it now.

Reduce polling time

and where do I put these?

now it works fine


Client channel connection state tracking inconsistency

What version of gRPC and what language are you using?
Various - reproduced on 1.27.3, 1.28.1 and 1.29.0
What operating system (Linux, Windows,...) and version?
Ubuntu 18.04 LTS and CentOS 7
What runtime / compiler are you using (e.g. python version or version of gcc)
g++ 8.4.0
What did you do?
We noticed that waiting for READY state on the channel behaves two different ways, depending on which API you use. The following code illustrates the issue.
There are 2 code blocks shown. The first spins in a loop after the channel is established, and waits for the state to be GRPC_CHANNEL_READY. This always takes 5 seconds, even on a connection to a server on the same machine. I did a tcpdump of the connection during this phase, and the connection is ESTABLISHED, but no data is being sent. The TCP handshake to open the socket is finished, but the channel state is still CONNECTING for that entire 5 seconds.
The second code block calls channel->WaitForStateChange in a loop, also waiting for the READY state. This always loops exactly twice (IDLE->CONNECTING->READY), and happens basically instantaneously.
This seems like two different and equivalent things - checking if the channel is READY, but one approach seems to delay for some reason while the other does not. It seems as if WaitForStateChange proactively goes out and gets the current state while GetState by itself is waiting on some 5s timer to update the state, which doesn't seem correct (why would the state value returned from GetState not be updated right when the underlying channel state changes?)
#include <grpcpp/grpcpp.h>

using namespace grpc;
using namespace std;

int
main(int argc, char **argv)
{
	shared_ptr<Channel> channel;
	grpc::Status status;
	grpc_connectivity_state state;

	channel = CreateChannel("<IP_ADDRESS>:9999",
	    InsecureChannelCredentials());

//
// Spin on GetState(), wait for READY.
// This block seems to always spin for 5 seconds, regardless of the real
// connection state (the socket is connected and just sitting there doing
// nothing according to tcpdump)
//
#if 0
	state = channel->GetState(true);
	if (state != GRPC_CHANNEL_READY) {
		printf("spin for gRPC state: %i\n", state);

		while(state != GRPC_CHANNEL_READY)
			state = channel->GetState(true);

		printf("spin done, state: %i\n", state);
	}
#endif

//
// The following block also waits for READY by waiting for 2 state transitions
// from IDLE, which happen immediately without delay.
//
	state = channel->GetState(true);
	printf("WaitForStateChange starting state: %i\n", state);
	while (state < GRPC_CHANNEL_READY) {
		bool wsc = channel->WaitForStateChange(state,
		    gpr_inf_future(GPR_CLOCK_REALTIME));
		state = channel->GetState(true);
		printf("WaitForStateChange final ret: %i, state: %i\n", wsc,
		    state);
	}

	return 0;
}

What did you expect to see?
Expected to see channel->GetState return the connected state and not delay for 5s before returning the right answer.
What did you see instead?
gRPC delayed by 5s before updating whatever state was returned from GetState when waiting for the READY state.

PS, the server is irrelevant, it can be any interface being implemented (as this demo code doesn't even do any RPCs at all)

I know this seems counter-intuitive, but it is actually working as intended in the context of gRPC's current polling model.  The polling model itself is actually the underlying problem here, and we hope to change to a different model in the not-too-distant future, but that work is still underway.
Basically, the current polling model is that we rely on borrowing threads from the application to perform polling for network I/O.  In general, this is done by calling CompletionQueue::Next(), but there are some other calls, including WaitForStateChange(), that also do polling.  However, the GetState() call does not do any polling; it basically just looks at the current state of the channel from whenever the last I/O was done.
When you ask a channel to connect, we need to do some polling to process the I/O for the name resolution, TCP connection establishment, and any necessary handshaking.  If no polling is happening, then nothing is checking for any I/O, meaning that we can't make any progress on establishing the connection.
This polling model has caused a number of problems in cases like this one where the application is not actually giving us any threads to do any polling.  One of the work-arounds that we tried was creating an internal "backup poller", which will wake up every 5 seconds and do some polling, just in case the application isn't doing it.  That's why the code that only calls GetState() does eventually succeed after 5 seconds.
But, as you can tell from this example, this work-around is not really sufficient to solve the fundamental problem here, which is that our current polling model just doesn't really work well.  It complicated to understand and hard to use, and it often surprises users.  And there are some other drawbacks as well, such as making it very hard to integrate into existing event loops.
As a result, we are in the process of moving to a new polling model, wherein we will have a dedicated set of polling threads always running and handling I/O.  And we will access the poller via a new EventManager API, which applications will be able to provide their own implementations of to integrate with existing event loops.  You can watch #20194 and #16504 for progress on that effort.
Until that happens, however, the behavior you're seeing here is working as intended.  I know that's not a great answer, but it's the best we can do for now.
I hope this info is helpful.

Thanks Mark for the followup.


Tracking not working

Hi, I did everything according to the instructions. But the site does not display my rockets in orbit. After I moved the mod folder to the game data folder, start points appeared on the flight halogram. Perhaps this is due to the error that krps is showing me. dll of the MechJeb autopilot was not found. Sorry for possible grammatical errors, I use a translator and it's not always good.
kPRC error

In case you haven't noticed, the ship name is not in the KSP files. Possibly this is because of the Russian name. But after the test, I realized that this was just a mistake.

But there is still a connection with your program and game. (Not sure, but as shown in the screenshot below, the program found Kerbal Telemetry)

Hello @MekoNix,
Thank you for reporting this issue. You gave me a perfectly detailed report to solve. I think the problem is caused by some Russian characters in the rocket part names. I have seen this example in the Chinese too. Can you try the game in English and tell me whether it is working?
Also, kRPC is giving that error because it is haven't been updated for a while now. The reason you see a different spacecraft name on the Spacecraft part of the User Interface is probably caused by focusing on some parts which have been separated from spacecraft (for example thruster debris). Other than that, I couldn't see any potential issues. I am planning to fix all of these errors in the next update.
And thank you for writing this issue on GitHub. I return to these messages faster since GitHub sends me an email to inform me that there is an update. I saw your post on Curse Forge as well and respond to that. I will be waiting for your response.

Hi, the author of kRPC.MechJeb here.
I had a similar issue reported https://github.com/Genhis/KRPC.MechJeb/issues/17 and the workaround was to downgrade MechJeb version to <IP_ADDRESS>.

Hello @Genhis,
I never thought I would be able to be corrected by you, thank you for your contribution. I am updating the ReadMe files right now, you created a beautiful mod by the way.

Unfortunately, I still can't figure out the problem. Yes installation of MechJeb version <IP_ADDRESS>. helped to get rid of errors. I installed the English version on Steam, but nothing has changed. You also pointed out that Telemetry can track debris, but in the game, there was one command squad that was sent into orbit using cheats. I also ran a test with the standard ship Kerbal X. The result does not work. I am not receiving information about my ships in orbit. Also, I don't have the starting points that I had before. It looks like the program cannot get information and shows information from the file compiled in the Russian version of the kerbal space program.
In the ReadMe, you instructed to install kRPC, but Genhis instructed to install MechJeb.

As far as I understood, Kerbal Telemetry is not referring to the English version of KSP right now. Can I ask you to manually reinstall the Kerbal Telemetry mod to the current KSP version that you are using? Also, there are three dependencies for launching the spacecraft into orbit. kRPC, MechJeb and kRPC.MechJeb. MechJeb is responsible for auto-launching the spacecraft, kRPC is responsible for controlling or getting information from KSP and kRPC.MechJeb is responsible for connecting MechJeb to kRPC. The program should be able to get information from the spacecraft without these three.
And also you are right, I made a mistake and wrote it to the wrong mod, I am fixing that right now, thank you.

Excellent. Telemetry is finally working. The solution was to reinstall the game without switching to Russian.
Orbit does not always indicate a decision to put game data in a folder.
Ironically, after running out of fuel, the rocket attempts to use the RCS to continue its flight.
Also I cannot use buttons to control flight in the web interface.
Suggestions:
Add link to MechJeb v<IP_ADDRESS> version
Translate the web interface into other languages. Since when using Google Translate in the browser, it cannot concentrate and shows one language then another, it gets in the way of tracking metrics a little.

If necessary, I can translate pages into Russian and Japanese without a translator.
It's just that the phrase "Date with a point" is very funny.
Your mod is very good thank you.

I don't know what happened, but it doesn't work again. I play in the English versio. Well, I'll wait for your update to languages, I hope everything will work again.
I will also start localizing the web interface.

I was very happy until the moment I saw the second comment of yours 😅
I could be able to use both Russian and Chinese on the web interface with a quick update. (Copy-pasted, I don't know Russian, sorry!)

Can I ask you to use this updated telemetryserver.py file on the Telemetry Server folder? Remember that this is preproduction, you may encounter some additional problems as well.
And you can try to clear the cache of the web interface. To do that, I do `Ctrl + Shift + R or opening the console, right-clicking to the reload button and click clear cache and reload. But it can change depending on your browser.
Also, I will definitely try to accomplish your suggestions and I can use some help on translating to Russian. If you are still interested, send me an email to<EMAIL_ADDRESS>and I can send you the phrases which need to be translated. This can take a couple of days but I will be trying to gather all the phrases and finding a solution to change languages.

Ok I'll check out the new script soon. I will send all the information about the tests to the mailbox you specified. And so I close the question

Thank you @MekoNix,
I gathered all the phrases which need to be translated about an hour ago. But I needed to attend a meeting so I couldn't inform you about this. I created a Google Sheets document and wrote every single phrase to it. So far there are only 81 entries and most of them are just one or two words. I will send you the link to edit that page as soon as you contact me.


Fix Sword swapping not being up to date on the server

related with #2 since fixed.

related to #3 aswell

fixed


-analyzeduration 1000M -probesize 1000M

The Question is, where in this software under frigate go2rtc should this be configured?
2023-08-23 16:53:46.354341190  [2023-08-23 16:53:46] ffmpeg.Einfahrt.record         ERROR   : [rtsp @ 0x5559fd560ec0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
2023-08-23 16:53:46.354446651  [2023-08-23 16:53:46] ffmpeg.Einfahrt.record         ERROR   : Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

Are you sure this response from go2rtc?

Ups
I'm sure it's from ffmpeg which is inside this
Bit when I go via go2rtc as I did with the other cams the frigate log shows error and the video is black
I think stream 0 is too big ?
Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg

From: Alex X @.>
Sent: Wednesday, August 23, 2023 6:56:54 PM
To: AlexxIT/go2rtc @.>
Cc: Markus Peikert @.>; Author @.>
Subject: Re: [AlexxIT/go2rtc] -analyzeduration 1000M -probesize 1000M (Issue #594)
Are you sure this response from go2rtc?
—
Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/go2rtc/issues/594#issuecomment-1690312177, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACPUKO23SHJ2MRO6CB47463XWYY5NANCNFSM6AAAAAA33YQSMU.
 Because default ffmpeg params should handle 99.99% cameras on marker.
You can change any params you want. Just read docs:
https://github.com/AlexxIT/go2rtc#source-ffmpeg

I already saw this docu but to be honest .. parameter change there was no example
Maybe the cam is trash itself but with VLC and edge etc everything works
Even if I give frigate the stream directly then everything is recorded
Only the way via go2rtc does not work
I already tried 1.2.0 and 1.6.2
Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg

From: Alex X @.>
Sent: Wednesday, August 23, 2023 7:34:50 PM
To: AlexxIT/go2rtc @.>
Cc: Markus Peikert @.>; Author @.>
Subject: Re: [AlexxIT/go2rtc] -analyzeduration 1000M -probesize 1000M (Issue #594)
I think your stream has some trash. Because default ffmpeg params should handle 99.99% cameras on marker.
You can change any params you want. Just read docs:
https://github.com/AlexxIT/go2rtc#source-ffmpeg
—
Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/go2rtc/issues/594#issuecomment-1690366263, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACPUKO4GF45RQPD23AY4QX3XWY5LVANCNFSM6AAAAAA33YQSMU.
You are receiving this because you authored the thread.Message ID: @.***>

Frigate is using ffmpeg, so you should use the ffmpeg input in go2rtc for that camera.

But errors in logs from FFmpeg. It's not go2rtc issue

"update"
the error logs in ffmpeg are there, but i found one recurring entry in go2rtc too
WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp <IP_ADDRESS>:55378-><IP_ADDRESS>:554: i/o timeout" url=rtsp://<IP_ADDRESS>:554/stream1?username=admin&password=password

Camera haven't send packet to go2rtc during 5 second

Can I extend that period for test?
Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg

From: Alex X @.>
Sent: Thursday, August 24, 2023 8:15:23 AM
To: AlexxIT/go2rtc @.>
Cc: Markus Peikert @.>; Author @.>
Subject: Re: [AlexxIT/go2rtc] -analyzeduration 1000M -probesize 1000M (Issue #594)
Camera haven't send packet to go2rtc during 5 second
—
Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/go2rtc/issues/594#issuecomment-1691065117, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACPUKO5ZXK3VD4UF325KGK3XW3WPXANCNFSM6AAAAAA33YQSMU.
You are receiving this because you authored the thread.Message ID: @.***>

Master version support custom timeout:
streams:
  camera1: rtsp://...#timeout=30

Feedbak if i put #timeout=30 then its treated like a comment #
i found out that the issue occurrs when i link the mainstream an the substream  in config and then later use it
ACTUAL SITUATION
STREAMS:
einfahrt_main:
- rtsp://<IP_ADDRESS>:554/stream0?username=admin&password={FRIGATE_RTSP_PASSWORD}#timeout=30
einfahrt_sub:
- rtsp://<IP_ADDRESS>:554/stream1?username=admin&password={FRIGATE_RTSP_PASSWORD}
NOT WORKING FOR ME:
Einfahrt:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://<IP_ADDRESS>:8554/einfahrt_main
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://<IP_ADDRESS>:8554/einfahrt_sub
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 720
height: 480
live:
stream_name: einfahrt_main
ui:
order: 0
objects:
track:
- person
- bicycle
- motorcycle
- cat
- dog
WORKING FOR ME: (Workaround)
Einfahrt:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://<IP_ADDRESS>:8554/einfahrt_main
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://<IP_ADDRESS>:554/stream1?username=admin&password={FRIGATE_RTSP_PASSWORD}
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 720
height: 480
live:
stream_name: einfahrt_main
ui:
order: 0
objects:
track:
- person
- bicycle
- motorcycle
- cat
- dog
where is my fault? i do not see ?

"rtsp://<IP_ADDRESS>:554/stream0?username=admin&password={FRIGATE_RTSP_PASSWORD}#timeout=30"
Otherwise, # starts the comment and is not part of the url

- "rtsp://<IP_ADDRESS>:554/stream0?username=admin&password={FRIGATE_RTSP_PASSWORD}#timeout=30" Without quotes, # starts the comment and is not part of the url

Thank you very much that seems to do the trick,
my camera is obviously as slow as 0,01 % of the cams out there
(im referencing to Alex's statement)
but with your Tip - now including quotes - the software waits 30 seconds and timeouts error message is away..
it worked already.. thats great , now im experimenting with values inside cam menu, audio aac directly instead of g711a or u
or H265 / H265+ / H264 codec in main stream
i know that detect stream needs H264 which i have adjusted as well as 5 fps.
now i have another interesting message in go2rtc
panic: runtime error: slice bounds out of range [:8192] with capacity 504
in general i think if im adjusting too "high values" then problems occur.
of course i want to draw out the maximum of quality my cam can deliver but not so much that the periphery like go2rtc or frigate do not run anymore..
its great software 👍

@itsolon show full panic error with line numbers

@AlexxIT I am trying to use a Vikylin PTZ-4825X-IS that has a really slow to start stream and ran across this issue, and I tried 1.7.1 so that I could use #timeout=90, and I think I might be getting the same panic that @itsolon is, it happens as soon as I try to view the stream where I used #timeout=90.
Here's the full error:
2023-09-11 19:38:58.387321835  [INFO] Starting go2rtc...
2023-09-11 19:38:58.507663094  19:38:58.507 INF go2rtc version 1.7.1 linux/amd64
2023-09-11 19:38:58.508052612  19:38:58.508 INF [api] listen addr=<IP_ADDRESS>:1984
2023-09-11 19:38:58.508656341  19:38:58.508 INF [rtsp] listen addr=<IP_ADDRESS>:8554
2023-09-11 19:38:58.508983978  19:38:58.508 INF [webrtc] listen addr=<IP_ADDRESS>:8555/tcp
2023-09-11 19:39:03.963023312  panic: runtime error: slice bounds out of range [:8192] with capacity 444
2023-09-11 19:39:03.963033718
2023-09-11 19:39:03.963071783  goroutine 199 [running]:
2023-09-11 19:39:03.963077510  github.com/AlexxIT/go2rtc/pkg/mp4.(*Consumer).AddTrack.RTPDepay.func5(0xc0001d2d80)
2023-09-11 19:39:03.963101397  	github.com/AlexxIT/go2rtc/pkg/aac/rtp.go:24 +0x357
2023-09-11 19:39:03.963105658  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-09-11 19:39:03.963127588  	github.com/AlexxIT/go2rtc/pkg/core/track.go:146 +0x9b
2023-09-11 19:39:03.963131919  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 77
2023-09-11 19:39:03.963156713  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-09-11 19:39:03.972870302  [INFO] The go2rtc service exited with code 2 (by signal 0)
2023-09-11 19:39:04.985269822  [WARN] Using go2rtc binary from '/config/go2rtc' instead of the embedded one

Let me know if I can provide any more details :bow:


App crashes on Android after copying an image and restart the app for super_clipboard

This is an issue when using super_clipbaord however the native platform code is in super_native_extensions.
Steps to reproduce:

Run the app on Android, copy an image from another app while the app is running.
Paste it into the app, it should succeed without any issues.
Refrain from copying anything to the clipboard after that.
Close the app completely and then start it again (using flutter run), you might get a crash.
If you didn't get any crashes, try to paste the same image from step 1.

Crash Log
Shutting down VM
E/flutter ( 7331): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(super_native_extensions_error, "JNI: Java exception was thrown", otherError, null)
E/flutter ( 7331): #0      NativeMethodChannel.invokeMethod (package:irondash_message_channel/src/method_channel.dart:45:7)
E/flutter ( 7331): <asynchronous suspension>
E/flutter ( 7331): #1      ReaderManagerImpl.getItemInfo (package:super_native_extensions/src/native/reader_manager.dart:242:18)
E/flutter ( 7331): <asynchronous suspension>
E/flutter ( 7331): #2      SystemClipboard.read (package:super_clipboard/src/system_clipboard.dart:38:22)
E/flutter ( 7331): <asynchronous suspension>
E/flutter ( 7331): #3      SuperClipboardService.hasClipboardContent (package:flutter_quill_extensions/src/editor_toolbar_controller_shared/clipboard/super_clipboard_service.dart:137:20)
E/flutter ( 7331): <asynchronous suspension>
E/flutter ( 7331): #4      ClipboardMonitor._update (package:flutter_quill/src/toolbar/buttons/clipboard_button.dart:32:9)
E/flutter ( 7331): <asynchronous suspension>
E/flutter ( 7331):
E/AndroidRuntime( 7331): FATAL EXCEPTION: main
E/AndroidRuntime( 7331): Process: com.example.example, PID: 7331
E/AndroidRuntime( 7331): java.lang.SecurityException: Permission Denial: opening provider org.chromium.chrome.browser.util.ChromeFileProvider from ProcessRecord{2832f48 7331:com.example.example/u0a191} (pid=7331, uid=10191) that is not exported from UID 10134
E/AndroidRuntime( 7331): 	at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
E/AndroidRuntime( 7331): 	at android.os.Parcel.createException(Parcel.java:3041)
E/AndroidRuntime( 7331): 	at android.os.Parcel.readException(Parcel.java:3024)
E/AndroidRuntime( 7331): 	at android.os.Parcel.readException(Parcel.java:2966)
E/AndroidRuntime( 7331): 	at android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:5906)
E/AndroidRuntime( 7331): 	at android.app.ActivityThread.acquireProvider(ActivityThread.java:7310)
E/AndroidRuntime( 7331): 	at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:3649)
E/AndroidRuntime( 7331): 	at android.content.ContentResolver.acquireProvider(ContentResolver.java:2493)
E/AndroidRuntime( 7331): 	at android.content.ContentResolver.getStreamTypes(ContentResolver.java:1066)
E/AndroidRuntime( 7331): 	at com.superlist.super_native_extensions.ClipDataHelper.getFormats(ClipDataHelper.java:92)
E/AndroidRuntime( 7331): 	at com.superlist.super_native_extensions.ClipDataHelper.getFormats(ClipDataHelper.java:41)
E/AndroidRuntime( 7331): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime( 7331): 	at android.os.MessageQueue.next(MessageQueue.java:335)
E/AndroidRuntime( 7331): 	at android.os.Looper.loopOnce(Looper.java:162)
E/AndroidRuntime( 7331): 	at android.os.Looper.loop(Looper.java:294)
E/AndroidRuntime( 7331): 	at android.app.ActivityThread.main(ActivityThread.java:8177)
E/AndroidRuntime( 7331): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 7331): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
E/AndroidRuntime( 7331): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
E/AndroidRuntime( 7331): Caused by: android.os.RemoteException: Remote stack trace:
E/AndroidRuntime( 7331): 	at com.android.server.am.ContentProviderHelper.checkAssociationAndPermissionLocked(ContentProviderHelper.java:691)
E/AndroidRuntime( 7331): 	at com.android.server.am.ContentProviderHelper.getContentProviderImpl(ContentProviderHelper.java:287)
E/AndroidRuntime( 7331): 	at com.android.server.am.ContentProviderHelper.getContentProvider(ContentProviderHelper.java:144)
E/AndroidRuntime( 7331): 	at com.android.server.am.ActivityManagerService.getContentProvider(ActivityManagerService.java:6713)
E/AndroidRuntime( 7331): 	at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2761)

Video
Android Emulator API 34.
https://github.com/user-attachments/assets/788bde36-d9d7-40ec-919f-48887f269100

Similar but not related issue
This issue is not related and doesn't use super_clipbaord however a similar issue will occur with the same steps to reproduce.
It uses our custom implementation in Flutter Quill #2230 using Kotlin (for Android) directly using the Flutter method channel without Rust.
https://github.com/user-attachments/assets/37e0c69c-968a-4dfe-abb0-0e7d5750e797
The difference is that the app doesn't crash:
Unhandled Exception: PlatformException(COULD_NOT_DECODE_IMAGE, Could not decode bitmap from Uri: Permission Denial: opening provider org.chromium.chrome.browser.util.ChromeFileProvider from ProcessRecord{b3d4d8e 14685:dev.flutterquill.quill_native_bridge_example/u0a191} (pid=14685, uid=10191) that is not exported from UID 10146, java.lang.SecurityException: Permission Denial: opening provider org.chromium.chrome.browser.util.ChromeFileProvider from ProcessRecord{b3d4d8e 14685:dev.flutterquill.quill_native_bridge_example/u0a191} (pid=14685, uid=10191) that is not exported from UID 10146, null)
E/flutter (14685): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
E/flutter (14685): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter (14685): <asynchronous suspension>
E/flutter (14685): #2      MethodChannelQuillNativeBridge.getClipboardImage (package:quill_native_bridge/src/quill_native_bridge_method_channel.dart:87:24)
E/flutter (14685): <asynchronous suspension>
E/flutter (14685): #3      Buttons.build.<anonymous closure> (package:quill_native_bridge_example/main.dart:150:32)
E/flutter (14685): <asynchronous suspension>
E/flutter (14685):

It's handled in a way so it returns null and throws an exception instead though I'm not entirely sure about the exact issue with super_clipbaord implementation.
You might noticed that both quill_native_bridge (QuillNativeBridgePlugin) and super_clipbaord have java.lang.SecurityException: Permission Denial in the console, which confirms that it's a security issue related to the lifecycle of the app.
Sometimes it can be:
java.io.FileNotFoundException: No content provider: content://com.android.chrome.FileProvider/images/screenshot/17266705501256549663602733807552.gif
W/System.err(17433): 	at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2029)
W/System.err(17433): 	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1858)
W/System.err(17433): 	at android.content.ContentResolver.openInputStream(ContentResolver.java:1528)

Or:
java.lang.SecurityException: Permission Denial: opening provider org.chromium.chrome.browser.util.ChromeFileProvider from ProcessRecord{d1d20d7 17742:dev.flutterquill.quill_native_bridge_example/u0a191} (pid=17742, uid=10191) that is not exported from UID 10146
W/System.err(17742): 	at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
W/System.err(17742): 	at android.os.Parcel.createException(Parcel.java:3041)
W/System.err(17742): 	at android.os.Parcel.readException(Parcel.java:3024)
W/System.err(17742): 	at android.os.Parcel.readException(Parcel.java:2966)
W/System.err(17742): 	at android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:5906)
W/System.err(17742): 	at android.app.ActivityThread.acquireProvider(ActivityThread.java:7310)
W/System.err(17742): 	at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:3668)
W/System.err(17742): 	at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:2542)
W/System.err(17742): 	at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2027)
W/System.err(17742): 	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1858)
W/System.err(17742): 	at android.content.ContentResolver.openInputStream(ContentResolver.java:1528)
W/System.err(17742): 	at dev.flutterquill.quill_native_bridge.clipboard.ClipboardImageHandler.canRead(ClipboardImageHandler.kt:86)
W/System.err(17742): 	at dev.flutterquill.quill_native_bridge.clipboard.ClipboardImageHandler.getClipboardImage(ClipboardImageHandler.kt:114)
W/System.err(17742): 	at dev.flutterquill.quill_native_bridge.QuillNativeBridgePlugin.onMethodCall(QuillNativeBridgePlugin.kt:169)
W/System.err(17742): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
W/System.err(17742): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
W/System.err(17742): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
W/System.err(17742): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
W/System.err(17742): 	at android.os.Handler.handleCallback(Handler.java:958)
W/System.err(17742): 	at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(17742): 	at android.os.Looper.loopOnce(Looper.java:205)
W/System.err(17742): 	at android.os.Looper.loop(Looper.java:294)
W/System.err(17742): 	at android.app.ActivityThread.main(ActivityThread.java:8177)
W/System.err(17742): 	at java.lang.reflect.Method.invoke(Native Method)
W/System.err(17742): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
W/System.err(17742): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
W/System.err(17742): Caused by: android.os.RemoteException: Remote stack trace:
W/System.err(17742): 	at com.android.server.am.ContentProviderHelper.checkAssociationAndPermissionLocked(ContentProviderHelper.java:691)
W/System.err(17742): 	at com.android.server.am.ContentProviderHelper.getContentProviderImpl(ContentProviderHelper.java:287)
W/System.err(17742): 	at com.android.server.am.ContentProviderHelper.getContentProvider(ContentProviderHelper.java:144)
W/System.err(17742): 	at com.android.server.am.ActivityManagerService.getContentProvider(ActivityManagerService.java:6713)
W/System.err(17742): 	at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2761)

The only option I had was to write this image to a temporary location or internal storage, then once paste it again on app restart (when not having access to it), then get access to the already saved image, which seems like a workaround to me, there are similar issues on Android that need to solved manually and can be error prone such as process death. So I tried super_clipboard to see how it's handled, and the impl we have doesn't have the exact same exception details as super_clipboard, it seems like a similar unrelated issue.

Hint: The image URI that is given by the android.content.ClipboardManager gives the app limited access, and can be restricted to its lifecycle, once the lifecycle is destroyed, the app no longer has access to the android.net.Uri.
The super_clipboard plugin could check if it has access before processing further, avoid resulting in a crash, and return null (false for the canProvide or throw a dart platform exception) or save the image to somewhere and get access to the image later on app restart and return the image.
let me know If more details are needed or unable to reproduce the issue.

A quick workaround

Same solution in Kotlin/JVM can be used in Java.

// Check if you have access to the URI and the file exists before processing the URI:

/**
     * A method to see if any exceptions can occur
     * before start reading the file.
     *
     * The app can lose access to the [Uri] due to lifecycle changes.
     *
     * @throws SecurityException When the app loses access to the [Uri] due to app lifecycle changes
     * or app restart.
     * @throws FileNotFoundException Could be thrown when the [Uri] is no longer on the clipboard.
     * */
    @Throws(Exception::class)
    private fun Uri.readOrThrow(
        context: Context,
    ) = try {
        context.contentResolver.openInputStream(this)?.close()
    } catch (e: Exception) {
        throw e
    }

try {
            imageUri.readOrThrow(context)
        } catch (e: Exception) {
            when (e) {
                is SecurityException -> result.error(
                    "FILE_READ_PERMISSION_DENIED",
                    "An image exists on the clipboard, but the app no longer " +
                            "has permission to access it. This may be due to the app's " +
                            "lifecycle or a recent app restart: ${e.message}",
                    e.toString(),
                )

                is FileNotFoundException -> result.error(
                    "FILE_NOT_FOUND",
                    "The image file can't be found, it might not be on the system clipboard anymore: ${e.message}",
                    e.toString()
                )

                else -> result.error(
                    "UNKNOWN_ERROR_READING_FILE",
                    "An unknown occurred while reading the image file URI: ${e.message}",
                    e.toString()
                )
            }
            return
        }

// Process further with the URI...

Which doesn't fix the issue completely but at least no longer app crashes, since if you try to open the app and you still have that image on your clipboard without copying something else, the app will continue to crash and the system will recommend the user to uninstall the app or report it to the developer, the user will probably delete the app before reaching this state.
So it's probably better to return false to canProvide the image file return it null, or have unhandled exception from dart side instead of the Android side as a quick solution.
Saving an image to a temporary location is not guaranteed as it can be erased, somewhere in the app document directory is not ideal if we have to save all images on the clipboard to retain access to them on app restart, the plugin might not have full access to the app lifecycle to delete them later or the user don't want to save such images on the user device.

I'm still uncertain why sometimes I get FileNotFoundException instead of SecurityException by slightly changing the steps to reproduce each time.


add from_bytes for int

Hi,
I want to take part in the project, while most object has someone to maintain, would you like to list some tasks for new comers?

Hi @stwen77 thank you for contributing to this project! Help is appreciated! I'll try to add some issues with good starter tasks. A good starter is to add methods to objects. It will get you started with the tooling and also is very useful!


tile for page start

The current "empty = start" behavior is implicit and not intuitive to learn. We would benefit from have a dedicated tile (and keep the current default behavior).

@clkantner any visual ideo for a "start" tile?


Texture packs take a long amount of time to load

Can someone confirm this is still an issue?
If I understand the issue correctly, texture packs take a super long time to load when starting the game, but not if selected after launch. This sounds like an issue that should be easy to fix and if I recall correctly, it's related to the creation of the texture atlas.
BTW-Community/BTW-Source#10

Yes, this is definitely still the case. Loading Conquest or Mesh's pack in game takes a few seconds whereas at start, it takes a few minutes. Read only-ing the option file is the current workaround to avoid forgetting to unload the pack on close.

Thanks for the confirmation! I'll update the labels

I'll leave the investigation label, since we are still looking for the root cause

It happens between these two logged lines:
[Texture Pack] INFO: refreshing Better Glass (pre)...
[Texture Pack] INFO: refreshing HD Font (post)...

and almost certainly has to do with the texture atlas like you mentioned. The time it takes to load scales with the number of textures present in the pack. My vanilla mix takes more time than default (some ctm on a few blocks but not widespread), conquest taking even more (lots of ctm but almost no items), and Mesh's pack taking the most (Mesh has an insane amount of ctm and cit in his pack)

I seemingly pinpointed the slow texture pack processing dictated above as between refreshing Glass /HD font logs:
textureMap.refreshTextures() -> line 84         TileLoader.registerIcons(this, this.basePath, this.textureStichedMap); during
this led to  TileLoader.registerIcons() line 102 loader.registerOneIcon(textureMap, mapName, map) taking up  most of the time by far.
it's important to note that even when swapping texturepacks instead, this part of the loading is always taking a large time percentually, even though it takes factors less time.
during my experiments it i couldn't really pinpoint anything specific. and my feel was that everything is slower, even before this huge timesink that isn't logging anything for ever. It might be that something is slowing things down way earlier in the progress

Any insight into why it takes so much longer when loading the game vs switching packs? Switching packs does take a long time, but not nearly as long as when launching the game (by an order of magnitude).
Thanks for taking a look though, that definitely helps track it down :)

I was comparing a light version of omega and conquest. one thing to note is that it took 1/10th of a second to register each icon. Conquest counts all the way up to 5000 while omega was done at 200 (filesize 50mb vs 5mb). Still don't know why this process takes so much more time on launch. trying to find a difference in handling but so far both seem to take the same path

no, i take it back. it takes conquest less than a second to do all 5000. something is definitely struggling here

` TileLoader
private static long getTextureSize(Collection textures) {
long size = 0;
for (TextureStitched texture : textures) {
size += getTextureSize(texture);
}
return size;
}` seems to be the method that's taking up tens of miliseconds per texture on launch

summary of finds:

Tileloader.getTextureSize(Collection textures) is the culprit running a quadratic loop
Memory allocation is shown as 10 times as low during launch, this might be why it takes longer compared to switching packs.
No differences in handling texture refresh were found for launching vs switching
on top of running a quadratic loop, Tileloader.getTextureSize(Collection textures) doesn't actually return values. This seem to be because the TextureStitched from the map.values() don't seem to have  any values set for their size. Or because these values can't be accessed like this.
Fixing this method me wouldn't speed up launching with a texturepack
This method is only used in TileLoader.registerOneIcon(textureMap, mapName, map) Which uses it to see if an added texture is too large to save in a map, or if stitching this texture would mean that the map gets filled up.
Currently Conquest(the biggest Texture pack around at the moment) is only using 3% of the max size the game is checking against for its biggest map (Block textures)

Proposed solutions:

Remove the texture size check completely, maybe add a warning?
Maybe have a private long number totalTextureSize saved inTileLoader; set its initial size by a first loaded image times the number of already present images( so it's assuming all textures are of equal size as the intially presented), then add each new registered icon's size to this) to use instead for an approximate same effect.
look into controlling memory usage.

Fixed for next release. Thanks Hiracho :)


Turbo gen hangs when used with --root

Verify canary release

[X] I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue
N/A
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
N/A
Describe the Bug
Warning: I use @turbo/gen directly in isolation, without turbo CLI.
When running gen from a workspace project, referencing the root, like so:
node_modules/.bin/gen run --root="../../"

Where ../../ is the workspace root (where .git dir is).
The CLI hangs, with node process taking 99% of the CPU and the process never exits.
Expected Behavior
Provide selection of generators.
To Reproduce

Add @turbo/gen to a workspace sub-project
node_modules/.bin/gen run --root="../../"

Additional context
N/A

Closing as I was unable to reproduce. If you're still encountering this issue please reopen and provide a reproduction repository.


fix visibility for required_scope

Description
Changes proposed in this pull request:

add jwt and oauth2_client_credentials to visibility of required_scope

Related issue(s)
Closes https://github.com/kyma-project/kyma/issues/17122

/hold


Docker fails to start, 404 error on commands

Description of problem:
I updated my Fedora installation yesterday and suddenly Docker is not able to start today. systemctl start docker gives errors such as:
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2015-11-13 13:05:46 CET; 41s ago
     Docs: https://docs.docker.com
  Process: 2231 ExecStart=/usr/bin/docker daemon -H fd:// (code=exited, status=1/FAILURE)
 Main PID: 2231 (code=exited, status=1/FAILURE)

Nov 13 13:05:46 localhost.localdomain docker[2231]: time="2015-11-13T13:05:46.495754115+01:00" level=error msg="failed to delete sandbox 00a016c840743820bbe5de589dbad87c8442d6a4c4bcf6d4c5cf4fec3a86d30d while trying to cleanup: could not cleanup all the endpoints in container 61c4b5b46c768dccb4e185b948436174560e225283ca853e54fbcae3a687c4b4 / sandbox 00a016c840743820bbe5de589dbad87c8442d6a4c4bcf6d4c5cf4fec3a86d30d"
Nov 13 13:05:46 localhost.localdomain docker[2231]: time="2015-11-13T13:05:46.543540783+01:00" level=error msg="getEndpointFromStore for eid 27608dadae9fda8e488c224e19936000511e898738b7e48617fc5d20e50c2ded failed while trying to build sandbox for cleanup: could not find endpoint 27608dadae9fda8e488c224e19936000511e898738b7e48617fc5d20e50c2ded: Key not found in store"
Nov 13 13:05:46 localhost.localdomain docker[2231]: time="2015-11-13T13:05:46.543624821+01:00" level=warning msg="Failed detaching sandbox 07ef06cb987b1bff79c51c56d5c641f70fa7fb3f93022cc720335fae4ab8c6a0 from endpoint 27608dadae9fda8e488c224e19936000511e898738b7e48617fc5d20e50c2ded: failed to get endpoint from store during leave: could not find endpoint 27608dadae9fda8e488c224e19936000511e898738b7e48617fc5d20e50c2ded: Key not found in store\n"
Nov 13 13:05:46 localhost.localdomain docker[2231]: time="2015-11-13T13:05:46.543663861+01:00" level=warning msg="Failed deleting endpoint 27608dadae9fda8e488c224e19936000511e898738b7e48617fc5d20e50c2ded: failed to get endpoint from store during Delete: could not find endpoint 27608dadae9fda8e488c224e19936000511e898738b7e48617fc5d20e50c2ded: Key not found in store\n"
Nov 13 13:05:46 localhost.localdomain docker[2231]: time="2015-11-13T13:05:46.543680589+01:00" level=error msg="failed to delete sandbox 07ef06cb987b1bff79c51c56d5c641f70fa7fb3f93022cc720335fae4ab8c6a0 while trying to cleanup: could not cleanup all the endpoints in container 8797c9be14e84e6a593a15f47333e6708b7768d31998ee65809cab8498b0133e / sandbox 07ef06cb987b1bff79c51c56d5c641f70fa7fb3f93022cc720335fae4ab8c6a0"
Nov 13 13:05:46 localhost.localdomain docker[2231]: time="2015-11-13T13:05:46.692482140+01:00" level=fatal msg="Error starting daemon: Error initializing network controller: could not delete the default bridge network: network bridge has active endpoints"
Nov 13 13:05:46 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Nov 13 13:05:46 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Nov 13 13:05:46 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Nov 13 13:05:46 localhost.localdomain systemd[1]: docker.service failed.

docker version:
Client:
 Version:      1.9.0
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   76d6bc9
 Built:        Tue Nov  3 18:10:29 UTC 2015
 OS/Arch:      linux/amd64
Error response from daemon: 404 page not found

docker info:
Error response from daemon: 404 page not found

uname -a:
Linux localhost.localdomain 4.2.5-201.fc22.x86_64 #1 SMP Wed Oct 28 20:00:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Environment details (AWS, VirtualBox, physical, etc.):
Local installation of Fedora 22, with latest updates
How reproducible:
Try starting docker via systemctl, it will fail. Viewing its status shows the errors. I don't know if this is related but I use docker-compose to manage my development environments. I could have forgotten to do a docker-compose stop before shutting down my computer.
Steps to Reproduce:

Any docker command will fail, same for docker-compose
Try restart docker via: systemctl restart docker
Errors show up at: systemctl status docker

Actual Results:
404 page not found
Expected Results:
Docker should start, commands should work normally.
Additional info:
Docker compose version is
docker-compose version: 1.4.2
docker-py version: 1.3.1
CPython version: 2.7.10
OpenSSL version: OpenSSL 1.0.1k-fips 8 Jan 2015

Sorry, duplicate of https://github.com/docker/docker/issues/17960
Please merge.

Thanks, you can usually just close dups and we can reference and get updates on the original issue.


Multiple spaces aren't allowed between vector elements

Reporter: 00ll00

:tada: This issue has been resolved in version 2.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Use PostCSS async API

New version postcss-import uses async API, so sync code transformed = cssnext(contents, options) can’t work anymore.
Here is a error report: https://github.com/postcss/postcss/issues/412#issuecomment-119299635
This is why PostCSS Runner Guidelines has “2.2. Use only the asynchronous API” rule.
/cc @MoOx

Working on a pull request
/cc @gpleiss

I think I am going to revert the change in postcss-import change since it will break too many things right now. I think a pull request is not that simple because it's breaking all cssnext usage.

@ctaymor awesome! If you have a time, please take a look at other Runner Guidelines rules. They are very important only because they cause big problems in long-term perspective.

@MoOx Okay, great.

Like I said, please don't waste your time. It's a big issue related to postcss-import that didn't respect semver, so let me fix that.
Meanwhile: https://github.com/postcss/postcss/issues/412#issuecomment-119307729


AccountClient.groups.patch operation not working

Not 100% sure the issue here. I cannot manage to get groups.patch operation to work. Error is "'str' object has no attribute 'value'"
My Code>>
   patches = []
    patch = Patch()
    patch.op = "add"
    patch.path = "members"
    #Tried this>patch.value = [ComplexValue(value=user.id)]
    #and Tried this> patch.value = user.id
    patch.value = [{"value": user.id}]
    patches.append(patch)
    account_client.groups.patch(id=group.id,operations=patches)
Looking at the API payload it's
[   {     "op": "add",     "path": "members",     "value": [       {         "value": "3780913032932404"       }     ]   } ]
Is it my implementation or is value not getting encoded correctly?

@althrussell please share a full stack trace. I suspect it's related to using an incorrect type.

File "databricksonaws/env/lib/python3.11/site-packages/databricks/sdk/service/iam.py", line 1029, in patch
body = request.as_dict()
^^^^^^^^^^^^^^^^^
File "databricksonaws/env/lib/python3.11/site-packages/databricks/sdk/service/iam.py", line 497, in as_dict
if self.operations: body['operations'] = [v.as_dict() for v in self.operations]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "databricksonaws/env/lib/python3.11/site-packages/databricks/sdk/service/iam.py", line 497, in
if self.operations: body['operations'] = [v.as_dict() for v in self.operations]
^^^^^^^^^^^
File "databricksonaws/env/lib/python3.11/site-packages/databricks/sdk/service/iam.py", line 513, in as_dict
if self.op is not None: body['op'] = self.op.value
^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'value'

Using patch.op = PatchOp.add solved this for me.
With this I'm able to make the API call but it's not working. I've tried the following 2 approaches:

Passing the request directly
operations = [Patch(op=PatchOp.add, path="members", value=el) for el in user_ids] w.groups.patch(id=dbx_group_id, request=PartialUpdate(operations=operations))
Passing operations
operations = [Patch(op=PatchOp.add, path="members", value=el) for el in user_ids] w.groups.patch(id=dbx_group_id, operations=operations)

For both approaches I get the following error message:
Traceback (most recent call last):
File "...\user_management.py", line 74, in add_missing_user_to_dbx
w.groups.patch(id=dbx_group_id, operations=operations)
File "...\venv\Lib\site-packages\databricks\sdk\service\iam.py", line 1854, in patch
self._api.do('PATCH', f'/api/2.0/preview/scim/v2/Groups/{request.id}', body=body)
File "...\venv\Lib\site-packages\databricks\sdk\core.py", line 932, in do
raise self._make_nicer_error(status_code=response.status_code, **payload) from None
databricks.sdk.core.DatabricksError: None Error in performing the patch operation on group resource.
(Hope it's ok that I'm adding my error message to this thread. I believe it's the same issue.)

As a workaround, I overcame this issue by:
class DBAPI_Scope(Enum):
    GROUP = "Groups"
    USER = "Users"
    SP = "ServicePrincipals"

def patch_op(scope: DBAPI_Scope, object_id: str, operations: List[Patch]) -> None:

    def extract_ops(operations: list[Patch]) -> dict:
        for operation in operations:
            if operation.path in ["members", "groups", "roles", "entitlements"]:
                op_value = [{"value": operation.value}]
            else:
                op_value = operation.value
        return [{"op": operation.op.value, "path": operation.path, "value": op_value} for operation in operations]

    resp = requests.patch(
     url=f"https://accounts.azuredatabricks.net/api/2.0/accounts/<<REPLACE_YOUR_ACCOUNT_HERE>>/scim/v2/{scope.value}/{object_id}",
        headers={"Content-Type": "application/json", "Authorization": f"Bearer {ACCESS_TOKEN}"},
        json={
            "schemas":
                ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
            "Operations": extract_ops(operations)
        })

    if resp.status_code != 200:
        raise Exception(f"Error patching: {resp.json()}")

I was trying to use the patch_dbgroup method to patch the Databricks group from the Active directory, but it is removing all the members from that group instead of removing the selected members.
To Replicate:

Create a group in AAD.
Add 2 members in the group in AAD.
Sync members from AAD to Databricks Account.
Remove one member from the group in AAD.
Execute the code again to patch db group, but this time the group get empty. All the members from the group are getting removed.

I tried using @jdreyesp your code but that's also doing the same thing i.e., removing all members from the group instead of selected members.
Also, I found one documentation from databricks that states: Group membership cannot be updated through PATCH/PUT requests.

I use the code I posted with op=add and path=members and it adds those members while keeping the others

I use the code I posted with op=add and path=members and it adds those members while keeping the others

Members addition is working fine with patch, the problem occurs when we try to remove some members from the group.