Conflict with vim-airline plugin

Hello,
I have a problem using the vim-airline and syntastic plugins together. When the error window appears, the vim-airline theme is reset after fixing the errors. I tested this on the most minimal .vimrc settings, when only these two plugins are in the config. At the same time, if turn off the syntastic plugin, then airline works fine with the lopen and lclose functions. The most interesting thing is that on another computer with a different version of vim everything works. I also created a ticket from the author of the vim-airline upstream: Ticket. Maybe you will have ideas on how to fix this.

I really don't see how this could be related to syntastic.  That is, the problem you're seeing may be triggered by syntastic, but syntastic doesn't control refreshes of the status line.  As far as I can tell it's all between airline and Vim.
That said, syntastic is essentially dead these days, and I haven't followed Vim development for a few years now.  Syntastic was written for Vim 7, and while it appears to still work with Vim 8, it doesn't take advantage of Vim 8 features, and it doesn't know about Vim 8 quirks.  You should consider switching to ALE instead, which is actively maintained and allows asynchronous checks.

I really don't see how this could be related to syntastic.  That is, the problem you're seeing may be triggered by syntastic, but syntastic doesn't control refreshes of the status line.  As far as I can tell it's all between airline and Vim.
That said, syntastic is essentially dead these days, and I haven't followed Vim development for a few years now.  Syntastic was written for Vim 7, and while it appears to still work with Vim 8, it doesn't take advantage of Vim 8 features, and it doesn't know about Vim 8 quirks.  You should consider switching to ALE instead, which is actively maintained and allows asynchronous checks.

Thanks for the answer! I have already migrated to ALE and everything works for me. I'll close the ticket.

Thanks for the answer! I have already migrated to ALE and everything works for me. I'll close the ticket.


Comments and formatting

There should be more comments for people who copy this to make another project.

not really the place to be doing a 'template project' as such. Belongs in a separate repo and/or the wiki, if even necessary at all.


Services getting created with space in the service_id

I created a sensor "Garage Door Daily Count"

The services got created with spaces.
daily.garage door daily count_update
daily.garage door daily count_reset

The services cannot be used in automations if there are spaces.

huh, that's weird. Let me check what is going on here.

thanks for reporting, can you please install this beta release: https://github.com/jeroenterheerdt/HADailySensor/releases/tag/v0.3.3beta and see if it helps?

please report back if it improves the situation and does not result in errors

Yes it's resolved in v0.3.3b. Thx.

thanks!


⚠ Quirk Club Argentina (API endpoint) has degraded performance

In 4a8f50a, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 13607 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in fd94807.


Regression: Shell-Integration for fish-shell broken

Does this issue occur when all extensions are disabled?: (not testable)

VS Code Version: Insider 2c73d2651cc525b27fc697b820743098a204ec01
OS Version: Win11 (Gui) / Ubuntu 22.04 (ssh) / Debian11 (Container)

The shell integration for the fish-shell is broken due to wrong syntax:
/vscode/vscode-server-insiders/bin/linux-x64/2c73d2651cc525b27fc697b820743098a204ec01-insider/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.fish (line 33): $(...) is not supported. In fish, please use '(string)'.
        set ITEMS $(string split : $VSCODE_ENV_REPLACE)
                  ^
from sourcing file /vscode/vscode-server-insiders/bin/linux-x64/2c73d2651cc525b27fc697b820743098a204ec01-insider/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.fish
        called on line 185 of file /usr/share/fish/config.fish
in function '.' with arguments '/vscode/vscode-server-insiders/bin/linux-x64/2c73d2651cc525b27fc697b820743098a204ec01-insider/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.fish'
        called on line 4 of file ~/.config/fish/conf.d/vscode-integration.fish
from sourcing file ~/.config/fish/conf.d/vscode-integration.fish
        called on line 294 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
        called during startup
source: Error while reading file '/vscode/vscode-server-insiders/bin/linux-x64/2c73d2651cc525b27fc697b820743098a204ec01-insider/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.fish'

Steps to Reproduce:

Have a linux environment with an installed fish-shell (fish 3.1.2 here)
Have the shell integration added in your fish configuration:

if status is-interactive
    # Commands to run in interactive sessions can go here
    string match -q "$TERM_PROGRAM" "vscode"
    and . (code --locate-shell-integration-path fish)
end

Open Terminal and find syntax issue.

I can confirm the wrong syntax in used file, and I can review/test fixes.

Update: Only broken in fish below version 3.4.0 - newer versions got support for the bash syntax for command substitutions.

Verified by author as they contributed the fix.


service management on windows with scoop

service management on windows with scoop
visit - http://tools.sysprogs.org/srvman/ for more info
we have two alias - srvman and service
some useful command for development
sudo service start apache
sudo service stop nginx
sudo service restart php-cgi
you can also run command like add/edit or delete please refer official documents.

Cool! This is a great start. A couple of small things:

Can you rename the file to srvman.json? Scoop packages go by the name of the program rather than the executables. It looks like it would still be discoverable with scoop search service since you're adding that alias.
The app veyor build is failing because we have a test to ensure all files end with newlines. If you can fix that up it helps me merge quicker.

sure, i am checking veyor

done 👍

Great! By the way, you can also run the tests locally with the bin/test.ps1 command in the scoop source directory.


docs: checks off Breadcrumb

:tada: This PR is included in version 0.37.0-beta.6 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 0.37.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


OSSM-5319 Clean up chart rendering

It looks like because the test doesn't deploy via OLM, the arguments for the default profiles are not passed to the operator, thus it didn't apply the openshift profile, making istio-cni pod not exist...


JellySeer Integration

Is your feature request related to a problem? Please describe.
Currently Maintainerr dosent have JellySeer Support even tho JellySeer is a Fork of Overseer
Describe the solution you'd like
Maintainarr Dosent seem to connect to JellySeer even tho its a Fork
Describe alternatives you've considered
I cannot use OverSeer as it dosent suppott JellyFin

Im taking an uneducated guess that it shouldnt be that much of an issue to make them work together as JellySeer is 80% the same code as Overseerr

If their API’s match, it shouldn’t be that much of a problem to integrate it. But is a Jellyseerr integration useful without Jellyfin support?

You are right and I'm looking into just biting the bullet and migrating to plex .
But for the usecase jellyseer x plex, that would be super useful !

If their API’s match, it shouldn’t be that much of a problem to integrate it. But is a Jellyseerr integration useful without Jellyfin support?

The api is the same. Only difference is jellyfin specific apis. If you use plex with jellyseerr there's virtually no difference between overseerr and jellyseerr

I was able to connect to Jellyseer with Maintainerr.

I was able to connect to Jellyseer with Maintainerr.

And does it work as expected? I presume that not all API endpoints are accessible.

I was able to connect to Jellyseer with Maintainerr.

And does it work as expected? I presume that not all API endpoints are accessible.

I'm not sure how it should work with it to begin with so not sure?


How to read and update firmware version of BLE device?

That probably depends on the type of device.  I think it's out of scope of this plugin.


[AzureMonitorExporter] eventsource to collect telemetry

This PR provides an extra mechanism to collect telemetry from a second EventSource class.
This is something that Application Insights SDK does and has been used on support investigations.

API change check
API changes are not detected in this pull request.


Are the ALM Apis available within CSOM or PnP Core ?

Are the ALM Apis available within CSOM or PnP Core ?

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

ID: 97580aa9-d30e-fc44-e83f-ae11422e7aa6
Version Independent ID: 83691fea-7fbc-1b87-7c3f-08152d28f136
Content: Application Lifecycle Management (ALM) APIs
Content Source: docs/apis/alm-api-for-spfx-add-ins.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

Seems so according to this namespace:
OfficeDevPnP.Core.ALM
Have a look to this Test class from PnPCore lib:
https://github.com/SharePoint/PnP-Sites-Core/blob/3a24b0c270d3086513f08778a72524272c9c3cfd/Core/OfficeDevPnP.Core.Tests/ALM/ALMTests.cs


dokku domains:add crashes when used with --remote option

dokku domains:add test --remote=beta
/Library/Ruby/Gems/2.0.0/gems/dokku-cli-0.2.0/lib/dokku_cli/domains.rb:10:in domains_add': wrong number of arguments (2 for 1) (ArgumentError) 	from /Library/Ruby/Gems/2.0.0/gems/dokku-cli-0.2.0/lib/dokku_cli.rb:67:in method_missing'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:29:in run' 	from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:126:in run'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' 	from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in dispatch'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in start' 	from /Library/Ruby/Gems/2.0.0/gems/dokku-cli-0.2.0/bin/dokku:5:in <top (required)>'
from /usr/bin/dokku:23:in load' 	from /usr/bin/dokku:23:in '

this generally crashes on multiple commands, perhaps consider moving the parameter in front of dokku comand? like dokku --remote=beta domains:add test

It seams like thor's class_option (dokku_cli.rb#L11) is not filtering out the remote argument before it goes into the method. I will look into it!

Fixed with #6. New Release is on the way!


Added jupyter-ai

Description of changes:
This PR adds jupyter-ai to SM distribution. Here is the update need to build_artifacts/v1/v1.0/v1.0.0/v1.0.0-beta/cpu.env.in and build_artifacts/v1/v1.0/v1.0.0/v1.0.0-beta/gpu.env.in files.
conda-forge::jupyter-ai[version='>=2.2.0,']

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The current build is failing searching for pytorch-gpu and tensorflow packages, none of which are dependencies on jupyter-ai.
(sagemaker-distribution) ➜  sagemaker-distribution git:(add-jupyter-ai) ✗ python ./src/main.py build --target-patch-

---> Running in a50979ac1ffb
error    libmamba Could not solve for environment specs
    The following packages are incompatible
    ├─ pytorch-gpu >=2.0.0,<2.1.0  does not exist (perhaps a typo or a missing channel);
    └─ tensorflow >=2.12.1,<2.13.0  does not exist (perhaps a typo or a missing channel).

critical libmamba Could not solve for environment specs

Traceback (most recent call last):
  File "/Users/pijain/projects/sagemaker-distribution/sagemaker-distribution/./src/main.py", line 381, in <module>
    parse_args(get_arg_parser())
  File "/Users/pijain/projects/sagemaker-distribution/sagemaker-distribution/./src/main.py", line 377, in parse_args
    args.func(args)
  File "/Users/pijain/projects/sagemaker-distribution/sagemaker-distribution/./src/main.py", line 135, in build_images
    image_ids, image_versions = _build_local_images(target_version, args.target_ecr_repo,
  File "/Users/pijain/projects/sagemaker-distribution/sagemaker-distribution/./src/main.py", line 198, in _build_local_images
    image, log_gen = _docker_client.images.build(path=target_version_dir, rm=True,
  File "/opt/anaconda3/envs/sagemaker-distribution/lib/python3.9/site-packages/docker/models/images.py", line 306, in build
    raise BuildError(chunk['error'], result_stream)
docker.errors.BuildError: The command '/usr/local/bin/_dockerfile_shell.sh micromamba install -y --name base --file /tmp/$ENV_IN_FILENAME &&     micromamba clean --all --yes --force-pkgs-dirs &&     rm -rf /tmp/*.in' returned a non-zero code: 1

@balajisankar15
Verified that the build runs and jupyter-ai tests pass, there are other test failures which are unrelated to jupyter-ai.


Fails to hook when OBS Studio is running (using version 0.6.6)

Expected Behavior
Would expect it to work in spite of other programs that have global hotkey functionality.

Current Behavior
If OBS Studio is running when I start the program, the mouse cursor lags severely but no debug messages appear, and my inputs are not registered by IOHook. If I start the program before starting OBS Studio, the same lag appears for a few seconds before returning to normal, IOHook starts normally, and OBS Studio's functionality appears to be unaffected.
One debug messages that comes up very frequently in that case that may be indicative of an underlying issue is win_hook_event_proc [638]: Restarting Windows input hook on window event: 0X800C.

Possible Solution
Not sure. It doesn't seem possible to disable global hotkey functionality in OBS Studio (nor would I necessarily want to, though it would be nice to know if that were a possible solution).

Steps to Reproduce (for bugs)
Only steps I can suggest are to try to start IOHook with OBS Studio already running. Would be curious to know if this happens in Windows environments with more recent versions of Node and IOHook than I'm forced to use currently.

Context
My program is a Twitch chat bot with voice command functionality. I'm using IOHook to capture input from an L3 press on a DS4 controller (which has been remapped in ds4windows to the Ins key that IOHook is listening for).

Your Environment

IOHook Version: 0.6.6
Environment name and version: Node v12.13.0
Operating System and version (desktop or mobile): Windows 10
From my package.json:
  "iohook": {   "targets": [     "node-72"   ],   "platforms": [     "win32"   ],   "arches": [     "x64",     "ia32"   ] }

Yeah that was a longstanding Windows iohook bug that was only recently fixed in v.0.9.x. If you try to run any 2 apps simultaneously that use any older version of iohook/libuiohook stuff gets borked like that. I guess OBS is also using some old version of iohook or libuiohook. Only fix is to use the newer fixed iohook. And/or might want to report it to the OBS maintainers to see if they want to fix it on their end. Might be an easy drop-in replacement for them.


Implement xdg-foreign v1 & v2 protocols

Description
It would be nice the xdg-foreign protocol was supported.
It can be used when binding global shortcuts to the xdg desktop portal (which i'm assuming would allow for the shortcuts to be unbound when the surface they are binded to is destroyed - not sure about this though). Without the protocol we can only pass an empty string when binding global shortcuts.
Doesn't affect the ability to bind global shortcuts since we can just pass an empty string, so it's just something nice to have.
I'm also not sure how to properly set the shortcut app name since when I create a shortcut with an id, to bind the keybind in hyprland I have to use :id instead of app:id as described in the wiki, so I'm assuming the app id is most likely meant to be related to surface that bound the global keybinds (which I can only set to an empty string) from it's corresponding layer namespace or app id - please correct me if I'm wrong though.
Related links about this:
https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.GlobalShortcuts.html#org-freedesktop-portal-globalshortcuts-bindshortcuts
https://flatpak.github.io/xdg-desktop-portal/docs/window-identifiers.html

app can be any string, it's just used for easier identification by the user and avoiding collisions.q

Does the appid come from the options passed when creating the session then or is it somewhere else I've missed? I've taken a look at xdph but since I'm unfamiliar with c++ I'm unsure how the appid is extracted from sdbus::MethodCall.


New package: CartesianDomainUtils v0.1.0

Registering package: CartesianDomainUtils
Repository: https://github.com/smillerc/CartesianDomainUtils.jl
Created by: @smillerc
Version: v0.1.0
Commit: cc9da5893aaddc51f09f7337f9639b9289064a7b
Reviewed by: @smillerc
Reference: https://github.com/smillerc/CartesianDomainUtils.jl/commit/cc9da5893aaddc51f09f7337f9639b9289064a7b#commitcomment-139569548
Description: A small package of helpful functions to operate on structured Cartesian domains

[noblock] I'd generally avoid "Utils" in a package name unless it directly relates to some other package or set of packages (as in, it provides common utilities for a set of related packages). I actually think you could get away with the name CartesianDomains here. But it's totally up to you.

Good point, I'll rename and re-register. Thanks for the input!

Closing in favor of https://github.com/JuliaRegistries/General/pull/102568


InfluxDB - data is not sent to output

It looks like the gNMIc is not sending any data to the InfluxDB endpoint. The health check requests are being made, but the subscription data fetched from the router is not sent.
Using the following configuration, based on the documentation:
address: <ROUTER_IP:PORT>
username: <USER>
password: <PASS>
insecure: true
debug : true

subscriptions:
  port_stats:
    paths:
      - <YANG_PATH>
    stream-mode: sample
    sample-interval: 10s
    encoding: proto

outputs:
  output1:
    type: influxdb
    url: <INFLUXDB_IP:PORT>
    org: <ORG_NAME>
    bucket: <BUCKET_NAME>
    token: <TOKEN>
    batch-size: 10
    flush-timer: 10s
    use-gzip: false
    enable-tls: false
    tls:
      ca-file:
      cert-file:
      key-file:
      skip-verify: true
    override-timestamps: false
    timestamp-precision: ns
    health-check-period: 30s
    debug: true
    add-target:
    target-template:
    enable-metrics: false
    event-processors: []
    cache:
      expiration: 0s
      debug: true
    cache-flush-timer: 5s

The debug shows "response missing target". The Telemetry data is received from the router, but then it is not sent.
Below is the log:
gNMIc_debug.log
To rule out the issues with the InfluxDB, I did sanity checks related to pinging the IP, port being open etc.
Furthermore, using the InfluxDB python module I managed to manually push and fetch some data to and from the org and bucket that are used in the config (redacted for security purposes).

Using a cache under influxdb output requires setting a target on the response messages.
Add a add-target: if-not-present under your output definition.

Assuming this is solved, feel free to reopen if not.


Improved exception stacktraces

This is an attempt to integrate Java stacktrace into Python traceback system to create seamless error reporting thus negating the need for stacktrace() to be called to extract the error information.  The pull request is to test functionality in the test matrix.

The remaining work on this is just to add #if over sections so that symbols that aren't in each of the versions.  I will update it when I get back from vacation.

I think this is ready for review.  This pull request integrates the Java and Python exception systems so that Java exceptions appear as native Python exceptions.
This required a lot more effort that I hoped.  Many elements of the Python exception system require access to private or unextendable resources.  It may be a good idea to try to get better support in Python for this, but for now this will have to do.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@3865c92). Click here to learn what that means.
The diff coverage is 11.11%.

@@            Coverage Diff            @@
##             master     #551   +/-   ##
=========================================
  Coverage          ?   47.41%
=========================================
  Files             ?       95
  Lines             ?     7143
  Branches          ?     2871
=========================================
  Hits              ?     3387
  Misses            ?     2050
  Partials          ?     1706

Impacted Files
Coverage Δ

native/python/pyjp_module.cpp
19.67% <ø> (ø)

native/common/jp_exception.cpp
30% <11.11%> (ø)

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 3865c92...c91ce59. Read the comment docs.

This one is back to the drawing board until I can remerge it with master.

@marscher back alive and ready for review.  This pull request hacks the Python error reporting system to attach Java exception information as the "cause" of an exception thrown from Java or C++ so that we don't need a special stacktrace() command or produce long exception messages with "at... at...".
Traceback (most recent call last):
  File "ExceptionTest.java", line 57, in jpype.exc.ExceptionTest.throwChain
  File "ExceptionTest.java", line 62, in jpype.exc.ExceptionTest.method1
  File "ExceptionTest.java", line 67, in jpype.exc.ExceptionTest.method2
Exception: Java Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "test.py", line 5, in <module>
    cls.throwChain()
jpype._jclass.RuntimeException: java.lang.RuntimeException: Inner
``

There was a bit of wizardary here as Python doesn't let one directly mock a stacktrace that is usuable with native methods because they directly access internal fields so the method tb_create in jp_exception.cpp replicates creating the structures used internally in Python.  It requires the Java code be compiled with "lines" as the debugging flag if accurate lines are to be reported on the trace (otherwise we just get -1).

I am slightly worried about the long term stability on this because of the level of structure hacking involved.  I couldn't attract any attention from the Python devs on the forums I posted on (for this or other internals questions) so this likely the best I can do.  Until they add a "make exception from a list of stack info" in the API we will have to hack it.

I share your concern about long term stability. The CPython looks tricky. Maybe there is a good reason for the separated stacktrace generation functionality in the first place. If you think the benefits of this outrun the additional future overhead, I'd be to merge this.

I believe @KOLANICH can speak best to this (see #523).  The problem is specifically that a default unhandled exception goes to the default Python printer which is not aware of the Java stack trace so it prints just the Python portion.  Thus ever piece of code ends up looking like.
try:
    ... bunch of code...
catch JException as ex:
   print(ex.stacktrace())
   throw ex

Secondarily the C++ portion of the exception is being attached to the message so rather than getting "Exception here",  we get "Exception here
at  fred
at  george
at bob"
Thus we have two very different things both of which are not very Pythonic.   The problem being we really need some input from a CPython core developer to give use some direction on how to implement this Pythonically.  I am fine with this hack solution for now if they plan give a "PyErr_AddCauseWithStackTrace(PyObject* Exception, PyObject *StackFrameList)" at some point in the future that I can then remove this code.   At least when I worked in Gnome had an IRC channel and they monitored the SVN commit log on email I could get input if needed.

I can see the improvements of better error messages. One question remains, what happens, when people still call ex.stacktrace() in their codes?

Stacktrace() still contains the Java stacktrace just like before.  There is no change to existing code.   Instead if you do not handle a JException different than a Python exception you will get the stacktrace information as the “cause”.   This of course only works because we have dropped Python 2 where cause was not supported.  Thus if the code caught JException first and calls print(ex.stacktrace())  they get the stacktrace (in the expected Java order inner to outer).  If they do not handle the exception or call the Python methods for printing the stacktrace, they get the Python portion of the stacktrace proceeded by the C++ or Java in a fake exception with the exception information order Pythonically from outer to inner.
Once I get Java tied back into the Python system (work in progress), then if a Proxy throws in Python, you get a set of exceptions( Python caused… Java caused… Python caused).  If gets a bit tricky if a Java exception is thrown in a Proxy as Java exception will have a cause the skips over the Python portion, but otherwise it should be pretty smooth.
The only thing this pull request drops is the “…at foo.cpp:1\n...at bar.cpp:2”  from being attached to the message when an internal error happens in JPype.  But that information was primarily for reporting bugs to the project and not for the user.  Thus attaching it as the cause instead should be better.


Issue in git 7433

There is a bug In test of report chargeback of a tenant of https://github.com/ManageIQ/manageiq/pull/7433 , that reports should check that when you make a report of a tenant that takes the vms of subtenants too.

The PR is https://github.com/ManageIQ/manageiq/pull/7598


PEM and DER keys import test vectors

Problem
Currently the SDKs are not compatible with ECDSA keys generated by OpenSSL. This can be confusing for users that reuse their keys on different chains and have used OpenSSL to generate their keys.
Solution
We need to support importing both the current and the OpenSSL versions keys. We provide test vectors for checking if the implementation is correct:
Test vector for ED25519 private key
PEM import
Test unencrypted PEM private key
PEM:
----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIOgbjaHgEqF7PY0t2dUf2VU0u1MRoKii/fywDlze4lvl
----END PRIVATE KEY-----

Private key: e81b8da1e012a17b3d8d2dd9d51fd95534bb5311a0a8a2fdfcb00e5cdee25be5
Public key: f7b9aa4a8e4eee94e4277dfe757d8d7cde027e7cd5349b7d8e6ee21c9b9395be
Test encrypted PEM private key
Encrypted PEM:
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAiho4GvPxvL6wICCAAw
DAYIKoZIhvcNAgkFADAdBglghkgBZQMEAQIEEIdsubXR0QvxXGSprqDuDXwEQJZl
OBtwm2p2P7WrWE0OnjGxUe24fWwdrvJUuguFtH3FVWc8C5Jbxgbyxsuzbf+utNL6
0ey+WdbGL06Bw0HGqs8=
-----END ENCRYPTED PRIVATE KEY-----

Passphrase: asdasd123
Private key: fa0857e963946d5f5e035684c40354d3cd3dcc80c0fb77beac2ef7c4b5271599
Public key: 202af61e141465d4bf2c356d37d18bd026c246bde4eb73258722ad11f790be4e
DER import
Test OpenSSL DER private key
Private key DER:
302e020100300506032b657004220420feb858a4a69600a5eef2d9c76f7fb84fc0b6627f29e0ab17e160f640c267d404

Private key: feb858a4a69600a5eef2d9c76f7fb84fc0b6627f29e0ab17e160f640c267d404
Public key: 8ccd31b53d1835b467aac795dab19b274dd3b37e3daf12fcec6bc02bac87b53d
Test OpenSSL DER public key
Public key DER:
302a300506032b65700321008ccd31b53d1835b467aac795dab19b274dd3b37e3daf12fcec6bc02bac87b53d

Public key: 8ccd31b53d1835b467aac795dab19b274dd3b37e3daf12fcec6bc02bac87b53d
Test vector for ECDSA private key
PEM import
Test unencrypted uncompressed PEM
PEM:
-----BEGIN EC PRIVATE KEY-----
MHQCAQEEIG8I+jKi+iGVa7ttbfnlnML5AdvPugbgBWnseYjrle6qoAcGBSuBBAAK
oUQDQgAEqf5BmMeBzkU1Ra9UAbZJo3tytVOlb7erTc36LRLP20mOLU7+mFY+3Cfe
fAZgBtPXRAmDtRvYGODswAalW85GKA==
-----END EC PRIVATE KEY-----

Private key: 6f08fa32a2fa21956bbb6d6df9e59cc2f901dbcfba06e00569ec7988eb95eeaa
Public key: 02a9fe4198c781ce453545af5401b649a37b72b553a56fb7ab4dcdfa2d12cfdb49
Test unencrypted compressed PEM
PEM:
-----BEGIN EC PRIVATE KEY-----
MFQCAQEEIOHyhclwHbha3f281Kvd884rhBzltxGJxCZyaQCagH9joAcGBSuBBAAK
oSQDIgACREr6gFZa4K7hBP+bA25VdgQ+0ABFgM+g5RYw/W6T1Og=
-----END EC PRIVATE KEY-----

Private key: e1f285c9701db85addfdbcd4abddf3ce2b841ce5b71189c4267269009a807f63
Public key: 02444afa80565ae0aee104ff9b036e5576043ed0004580cfa0e51630fd6e93d4e8
Test encrypted uncompressed PEM
Encrypted PEM:
-----BEGIN EC PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,0046A9EED8D16F0CAA66A197CE8BE8BD

9VU9gReUmrn4XywjMx0F0A3oGzpHIksEXma72TCSdcxI7zHy0mtzuGq4Wd25O38s
H9c6kvhTPS1N/c6iNhx154B0HUoND8jvAvfxbGR/R87vpZJsOoKCmRxGqrxG8HER
FIHQ1jy16DrAbU95kDyLsiF1dy2vUY/HoqFZwxl/IVc=
-----END EC PRIVATE KEY-----

Passphrase: asdasd123
Private key: cf49eb5206c1b0468854d6ea7b370590619625514f71ff93608a18465e4012ad
Public key: 025f0d14a7562d6319e5b8f91620d2ce9ad13d9abf21cfe9bd0a092c0f35bf1701
Test encrypted compressed PEM
Encrypted PEM:
-----BEGIN EC PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,4A9B3B987EC2EFFA405818327D14FFF7

Wh756RkK5fn1Ke2denR1OYfqE9Kr4BXhgrEMTU/6o0SNhMULUhWGHrCWvmNeEQwp
ZVZYUxgYoTlJBeREzKAZithcvxIcTbQfLABo1NZbjA6YKqAqlGpM6owwL/f9e2ST
-----END EC PRIVATE KEY-----

Passphrase: asdasd123
Private key: c0d3e16ba5a1abbeac4cd327a3c3c1cc10438431d0bac019054e573e67768bb5
Public key: 02065f736378134c53c7a2ee46f199fb93b9b32337be4e95660677046476995544
DER import
Test legacy DER private key
Private key DER:
3030020100300706052b8104000a042204208c2cdc9575fe67493443967d74958fd7808a3787fd3337e99cfeebbc7566b586

Private key: 8c2cdc9575fe67493443967d74958fd7808a3787fd3337e99cfeebbc7566b586
Public key: 028173079d2e996ef6b2d064fc82d5fc7094367211e28422bec50a2f75c365f5fd
Test legacy DER public key
Public key DER:
302d300706052b8104000a032200028173079d2e996ef6b2d064fc82d5fc7094367211e28422bec50a2f75c365f5fd

Public key: 028173079d2e996ef6b2d064fc82d5fc7094367211e28422bec50a2f75c365f5fd
Test OpenSSL compatible compressed DER private key
Private key DER:
30540201010420ac318ea8ff8d991ab2f16172b4738e74dc35a56681199cfb1c0cb2e7cb560ffda00706052b8104000aa124032200036843f5cb338bbb4cdb21b0da4ea739d910951d6e8a5f703d313efe31afe788f4

Private key: ac318ea8ff8d991ab2f16172b4738e74dc35a56681199cfb1c0cb2e7cb560ffd
Public key: 036843f5cb338bbb4cdb21b0da4ea739d910951d6e8a5f703d313efe31afe788f4
Test OpenSSL compatible compressed DER public key
Public key DER:
3036301006072a8648ce3d020106052b8104000a032200036843f5cb338bbb4cdb21b0da4ea739d910951d6e8a5f703d313efe31afe788f4

Public key: 036843f5cb338bbb4cdb21b0da4ea739d910951d6e8a5f703d313efe31afe788f4
Test OpenSSL compatible uncompressed DER private key
Private key DER:
307402010104208927647ad12b29646a1d051da8453462937bb2c813c6815cac6c0b720526ffc6a00706052b8104000aa14403420004aaac1c3ac1bea0245b8e00ce1e2018f9eab61b6331fbef7266f2287750a6597795f855ddcad2377e22259d1fcb4e0f1d35e8f2056300c15070bcbfce3759cc9d

Private key: 8927647ad12b29646a1d051da8453462937bb2c813c6815cac6c0b720526ffc6
Public key: 03aaac1c3ac1bea0245b8e00ce1e2018f9eab61b6331fbef7266f2287750a65977
Test OpenSSL compatible uncompressed DER public key
Public key DER:
3056301006072a8648ce3d020106052b8104000a03420004aaac1c3ac1bea0245b8e00ce1e2018f9eab61b6331fbef7266f2287750a6597795f855ddcad2377e22259d1fcb4e0f1d35e8f2056300c15070bcbfce3759cc9d

Public key: 03aaac1c3ac1bea0245b8e00ce1e2018f9eab61b6331fbef7266f2287750a65977
Test OpenSSL compatible DER private key without public key
Private key DER:
302e0201010420a6170a6aa6389a5bd3a3a8f9375f57bd91aa7f7d8b8b46ce0b702e000a21a5fea00706052b8104000a

Private key: a6170a6aa6389a5bd3a3a8f9375f57bd91aa7f7d8b8b46ce0b702e000a21a5fe
Public key: 03b69a75a5ddb1c0747e995d47555019e5d8a28003ab5202bd92f534361fb4ec8a
Alternatives
No response

Hey @ochikov @petreze @bamzedev @deyanzz @rwalworth @SimiHunjan @rbair23 @izik1
We've created test vectors for PEM and DER key import. Please comment if you think we should add more tests

hi!
I mostly agree with these as-is, but I wanted to share some findings so that others don't have to go finding the same information again:

The format being referred to as legacy is not a "legacy" format and is very much still in use (pkcs#8 PrivateKeyInfo) versions 1 and 2 as described by RFC 5208 and RFC 5958 respectively, and can very much be used by EC private keys- although you'd typically package them in a nested EcPrivateKey (I'll attach an example of such a key below).
The openssl format is "EcPrivateKey" as described by https://www.secg.org/sec1-v2.pdf and https://datatracker.ietf.org/doc/html/rfc5915#section-3 (these two sources have slightly different but almost identical descriptions, the former is what openssl technically uses.)
PRIVATE KEY vs EC PRIVATE KEY is a little confusing,  because you'd assume they're the same format but they aren't (the first one is pkcs#8, the second is sec1)

An example of wrapping an EcPrivateKey into a PrivateKeyInfo is as follows (note, there's no public key here because it's isn't required, if I included it, the public key would go in the EcPrivateKey not the PrivateKeyInfo):
-----BEGIN PRIVATE KEY-----
MEcCAQAwEAYHKoZIzj0CAQYFK4EEAAoEMDAuAgEBBCBvCPoyovohlWu7bW355ZzC
+QHbz7oG4AVp7HmI65XuqqAHBgUrgQQACg==
-----END PRIVATE KEY-----

Which should leave you with this key private key:
6f08fa32a2fa21956bbb6d6df9e59cc2f901dbcfba06e00569ec7988eb95eeaa

(same key as "Test unencrypted uncompressed PEM")


[analyzer]: hasIsTest works on Mac, but not on Linux

I'm writing a dart script which analyzes all tests in a repository.
To do this, I have the following class:
class MyAnalyzer extends GeneralizingAstVisitor<void>
    with AstVisitingSuggestor {

  @override
  void visitMethodInvocation(MethodInvocation node) {
    super.visitMethodInvocation(node);
    final isTest =
        node.methodName.staticElement?.hasIsTest ?? false;

    if (isTest) {
        doStuff(node);
    }
  }
}

My script works fine on Mac and acts on all tests.
However, when running the identical script on the identical repository, but on Linux instead of Mac, isTest is always false.
Expected error
hasIsTest should work correctly regardless of the platform
My dart version is 2.14.3

The source code I tried it with has the following structure:
void main() {
  test(...);

  testWidgets(...);

  @isTest
  myTestMethod(...);
}

Your assumption is right, indeed the staticElement is null for some reason on Linux while it is not null on Mac.

I have tested my sample with Dart SDK version: 2.14.4 (stable) (Wed Oct 13 11:11:32 2021 +0200) on "macos_x64" and it printed null.
Could you provide a minimal complete case that behaves differently?


Database stored in local storage can be used in two different offline web applications?

Hi,
I created a taffy db in a web page and inserted some data and stored it in local store with some name. Now I'm trying to load the saved data using the same name used to store in local storage in another web page.
In the new webpage, I'm calling store method with the same name hoping that it would point to the same database and then calling get method. But it's returning empty array.
Questions:

Is it possible to achieve what I'm trying?
If possible, where am I wrong?

Please assist me asap.
Thanks,
Jagadeesh

When you save something to local storage, the browser maps the data you save to the application. So only that application can access it. Can you imagine how unsafe it would be if all local storage would be global..


feat(config): ignore system file

Description
required - Description of the changes made in this Pull Request
Links
required - Links to resources related to this Pull Request

Why the CI not work?

Why the CI not work?

@ArthusLiang U need to set the validated label


⚠ Mobitopup has degraded performance

In 4183972, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 5307 ms

Resolved: Mobitopup performance has improved in 3bb9d29 after 7 minutes.


⚠ Feedaty widget has degraded performance

In 2fc6e59, Feedaty widget (https://widget.feedaty.com/public/js/feedaty.js?merchant=10213975&style_ver=2021&data-sku=36263) experienced degraded performance:

HTTP code: 200
Response time: 3079 ms

Resolved: Feedaty widget performance has improved in 5073e97 after .


Scroll while dragging?

Is it possible to scroll the page while dragging an element?

This was implemented in #12. If it's not complete, then it'd be great if you could fix it :)

Strange, my integration's not working here on OSX Chrome. I'll check later what may be causing it.

I'm also running into this on Firefox. It works great on Chrome.

I believe this was fixed by #71 and #72.  Feel free to reopen if you find more issues.

Thanks, it's better now, but I'm still seeing an issue with scrolling to the bottom of the page, where the element can be dragged to the bottom, causing the whole page to stretch vertically.
This is visible in the live demo, which points to Slip 1.2, and I've also added it at https://github.com/mahemoff/slip pointing to the latest slip.js with same result.

You're right.  I'll look into it.

@mahemoff Check out the latest commit.  Should fix your issue.  Note that the source now also contains the example code.
@pornel I think you'll still need to update your live demo with the latest slip.js as well as some changes I've made to example.html.  Just nice for those who find this library online.

Thanks @carter-thaxton, I'll need to re-integrate the library, will check it soon and let you know.


Designation Type

Hi,
I noticed that when creating a service endpoint of any type, queue especially. DesignationType does not get populated at all. By looks of it from the drop down in the tool, it appears to be the Contract property in ServiceEndpoint Class. Does Mappingfile need to have something for the designation type?

hi @WaelHamze .I have gone through the code and debugged and figured out why it was not selecting the Queue option from that dropdown list. It's because of the incorrect mapping of Enum . The Enum value of 'Queue' under the optionset .cs should be 6 and not 2.
Not sure if someone else experienced this issue or not


fixed a typo and added /home route

Make sure to not commit unnecessary things like the .idea folder that is added in the commit, don't include that from now on, and also, changes like / endpoint to /home as volatile since they change a lot, and the postgreSql is correctly spelled, at least, from what I'm aware, since it works. The style of Pull Requests is best when they have no conflicts with the current project, and mainly add a feature such as a new page, or component, instead of editing files in this stage of development 👍

Alright thanks


Fix a regexp bug of (defadvice! +plantuml--fix-atstart-in-org-src-blocks-a ...)

Sorry for my negligence, the whitespace at the beginning of the regular expression should be [[:blank:]], and I mistakenly wrote \w .

No worries! Thanks again for your help!


change product from layout

move sub form from modal to page

https://github.com/amitsiliguri/ecom/commit/47e06f75466484ee72e0e7c5b6038280d461dd80


python-aionotify: 0.3.1

Bump to match https://github.com/Opentrons/opentrons/pull/15546 for monorepo 3.11 compat

https://github.com/Opentrons/oe-core/actions/runs/9714932056


Mass-comments-deleter

Delete comments of a list of users from specific questions in bulk and Deletion of comments of a list of users in bulk, Deletion of all comments in a specific question
We see lots of users commenting, Sometimes going to each and every profile, opening and clicking on delete comments is bit hard.
So we require this.
Summary :
We want to have a comment deleter which will perform

Delete all comments of list of users ( Only input i would give is whole list of users and Tool must delete the comments)
Delete all comments from a specific question.
Delete all comments of specific users in specific links.

( Note : i should be able to give input as all profile links at once like we do in point changer)

Delete all comments from a specific question.

This feature has already implemented in #182


don't crash when attaching to the wrong scheme

see discourse at https://openziti.discourse.group/t/ziti-console-breaks-when-tryin-to-login-for-first-time/263
right now node is crashing when you supply http to an https endpoint. It shouldn't crash :) It should even maybe tell you "you probably screwed it up" somehow? :)

I did peek at the code, if I wrap the callback in GetPath in server.js to handle the error I prevent node crashing. Still need to look more to return some sort of error back to the user. Any pointers are welcome.
P.S. I can take over this, but not until weekend.

I pushed up a fix for it, there was a little more to do just to block the ability to ever add an invalid url in the first place, but it was basically what you said with some minor tweaks, thanks for the help!


handle multiple prologue directives

Fixes: #24689

@rbuckton and @weswigham can you please review this change

@rbuckton one more look?


images for memes page, test decor for cat theme, footer fix

added thematic pngs to images folder,  decorated cat component, fixed footer

Thank youuuu!


Port from sckikit-learn the positioning of the example buttons on downloading, jupyter-lite...

Describe the issue linked to the documentation
Scikit-learn now uses the pydata-sphinx-theme, and positions those buttons on the right sidebar. This is easier to see for the user
https://scikit-learn.org/stable/auto_examples/release_highlights/plot_release_highlights_1_5_0.html#sphx-glr-auto-examples-release-highlights-plot-release-highlights-1-5-0-py

Suggest a potential alternative/fix
We need to figure out how this was done in scikit-learn :)

they are now on the right in the main branch :tada:  ! closing


Support push model to ModelScope community

What does this PR do?
Support pushing trained models to ModelScope community.
This feature works when USE_MODELSCOPE_HUB set to true or 1.
Tested when USE_MODELSCOPE_HUB=0/1 both, ckpts can be pushed to HF or MS respectively.
Script:
examples/train_lora/llama3_lora_sft.yaml
Add config:
push_to_hub: true
hub_strategy: checkpoint/all_checkpoints/every_save
hub_model_id: xxx
hub_token: xxx (hf/ms token each)
Results:
HF not affected.
MS can be uploaded and tagged.
Before submitting

[x] Did you read the contributor guideline?
[ ] Did you write any new necessary tests?

@hiyouga hi, can you help to review please when free

sure, I'll review this pr ASAP


Upgrading angular 14 to 16, breaking change on optimizer option activated on build productiton

Which @angular/* package(s) are the source of the bug?
compiler, core
Is this a regression?
Yes
Description
When I upgraded my application from 14 to 16.
Everything was smooth, and I thought the migration was complete.
But once I build on production, the build work and complete but as I launch the app, there is a console error loading module that is totally unclear. The error does not appear on dev build. And if I set the optimizer option to false on production build, everything work perfectly.
But the bundle size goes from 24MB to 74MB which is a huge loss in terms of performance issue.
I would like to know if you have any idea of what can be the issue.
Thanks in advance,
any kind of help or suggestion would be very much appreciated

Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version)
_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 16.1.8
Node: 18.17.1
Package Manager: npm 9.6.7
OS: win32 x64

Angular: 16.1.9
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1602.10
@angular-devkit/build-angular      16.1.8
@angular-devkit/build-ng-packagr   0.1000.5
@angular-devkit/core               16.1.8
@angular-devkit/schematics         16.1.8
@angular/cdk                       16.2.12
@angular/cli                       16.1.8
@angular/flex-layout               15.0.0-beta.42
@angular/material                  14.2.7
@angular/material-moment-adapter   16.2.12
@angular/pwa                       16.2.10
@angular/router                    16.2.12
@angular/service-worker            16.2.12
@schematics/angular                16.1.8
ng-packagr                         16.2.3
rxjs                               7.8.1
typescript                         5.1.6
webpack                            5.89.0
zone.js                            0.13.3

Anything else?
No response

Could you do a build without mangling ? : NG_BUILD_MANGLE=0 npm run build

i still have the same exact issue with this command

okay it seems that with adding aot option at true solves the issue, but i don't know why leaving as it was working on 14 , optimizer at true and no option aot specified is breaking now

Hi @Razgort, can you provide the error message after running
ng cache clean
NG_BUILD_MANGLE=0 npm run build

We're having a similar issue where all of sudden (Angular 17 though) where everything works fine building for development, but on a production configuration (default config using optimizations), file imports seem to get mangled and seemingly completely random types replace other types in generic function calls.
As an example, on a component initialization, we have the following service function call, where User is an exported class.
ngOnInit() {
    this.users$ = this.resourceMananger.getCollection<User>(User, {params: {sort: 'lastName', order: 'asc'}})
      .pipe(map(r => r.resources));
 }

User.ts
export class User extends Resource
{
  id!: number;
}

ResourceMananger.ts
public getCollection<T extends Resource>(
  type: new () => T,
  options?: {[key: string]: any}
): Observable<ResourceCollection<T>> {
   return this.httpClient
     .get(this.generateRoute(type), options)
     .pipe(map((data: any) => this.createResourceCollection(ResourceCollection<T>, type.name, data)));
}

This works fine on a development configuration AND when optimizations are turned off on a production configuration. However, when optimizations are on, for some reason the type T is changed from User with another type File.
File.ts
export class File extends Resource
{
  id!: number;
}

Other properties on these files have been removed for brevity/confidentiality.

@rms2219, it appears that you are reporting a different issue. That said, class names are not guaranteed to be the same after bundling and optimization.

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.


Is it intentional that theme() doesn't throw when property doesn't exist?

This seems like maybe a bug, or at least an undocumented design choice. I was expecting theme to provide safety rails against typos or unexpected theme breakage by throwing an error if you try and get something that doesn't exist from the config. It doesn't tho, which is all very css but seems like an unnecessary footgun. Wondering if it's a bug to be fixed or some thoughts on why it fails silently
thanks!

Could definitely make it throw when someone asks for a key that doesn't exist 👍 Would accept a PR for it for sure.

Closing this since we can handle the rest of the conversation in the PR 👍


fix(console): static assets, edit csp

@peintnermax this PR does fail in the NPM lint step.

fix it right now


Adaptation of new GHC version

I'd like to use Peggy very much. But GHC 7.10.x or 8.x doesn't seem to be supported. I was wondering if you would adapt Peggy to GHC 7.10.x or 8.x.

@nwtgck
Found this: https://github.com/linusyang/Peggy
Not sure about maintenance status, though.


[ALS-4732] [ALS-4737] Update override structure for use in BDC.

Reviewed in office hours, 09/19/2023.


Provide node flags access

We should provide a means for mutable and immutable access to these via slices.

Given that applications like forward sims may want to change node times, we should add a mutable node table reference that provides slice access and SliceIndex access.

Given that applications like forward sims may want to change node times, we should add a mutable node table reference that provides slice access and SliceIndex access.

The trick here is making sure that lifetimes are okay in client code.  For example, the following would have to realize that lifetimes are okay:
f = tables.nodes_mut().flags()

If the above works, we can then add convenience functions in TableCollection.

The trick here is making sure that lifetimes are okay in client code. For example, the following would have to realize that lifetimes are okay:
f = tables.nodes_mut().flags()

If the above works, we can then add convenience functions in TableCollection.

None of this is needed!  Much easier than I assumed.


Flag selector

Make it a simple file selector

not a file selector as we are not selecting local files but files stored on a server but there is a simple dropdown with flag file names. Easy to use. I already assinged flag to 50 collections and it took me minutes :)


F# template does not reference shared runtime

Unlike the C# templates, the F# web project templates don't reference the Microsoft.AspNetCore.App shared runtime. Additionally, once we're confident that the Razor Sdk works well with it (https://github.com/aspnet/Razor/issues/2188), we should have it use the Sdk as opposed to MvcPrecompilation.

cc @cartermp FYI

@jbagga, can you please handle this? Thanks!

All the F# templates have a Microsoft.AspNetCore.App reference:

Empty: https://github.com/aspnet/templating/blob/dev/src/Microsoft.DotNet.Web.ProjectTemplates/EmptyWeb-FSharp.fsproj.in#L14
Web API: https://github.com/aspnet/templating/blob/dev/src/Microsoft.DotNet.Web.ProjectTemplates/WebApi-FSharp.fsproj.in#L15
Web App: https://github.com/aspnet/templating/blob/dev/src/Microsoft.DotNet.Web.ProjectTemplates/StarterWeb-FSharp.fsproj.in#L17

F# will not be supported for Razor Sdk cc @rynowak

Nice!

Thanks @jbagga


Issue521 config from svg scale

Motivation:

Provide auto-scaling from user knowledge of 2 points only (see #522 )

Main changes:

Autoscaling is now handled
A unique straight line has to be drawn between 2 points of known real coordinates, the user provides these coordinates as input parameters
Can also provide the starting point and length of the line
docstr added to Config.from_svg()
Unit test updated

Example:
Using data from the unit test
In [1]: import tofu as tf
/Home/DV226270/ToFu_All/tofu_git/tofu/tofu/imas2tofu/init.py:87: UserWarning:
You do not seem to be using the latest IMAS version:
'module list' vs 'module av IMAS' suggests:
- Current version: 3.30.0-4.8.4
- Latest version : 3.32.1-4.9.1-R2019b
warnings.warn(msg)
In [2]: conf = tf.geom.Config.from_svg('tofu/tests/tests01_geom/test_03_core_data/Inkscape.svg', Name='test', Exp='Test', res=10, point1=(0.7, -2), point2=(2.8, 2))
The following structures were loaded:
- Ves: coil1 (5 pts, None)
- Ves: coil2 (6 pts, None)
- Ves: coil3 (5 pts, None)
- Ves: vesselInner (21 pts, None)
- Ves: vesselOuter (11 pts, None)
from /Home/DV226270/ToFu_All/tofu_git/tofu/tofu/tests/tests01_geom/test_03_core_data/Inkscape.svg
/Home/DV226270/ToFu_All/tofu_git/tofu/tofu/geom/_core.py:481: UserWarning: Struct instance: double identical points in Poly
=> 1 points removed
=> Poly goes from 11 to 10 points
warnings.warn(msg)
/Home/DV226270/ToFu_All/tofu_git/tofu/tofu/geom/_core.py:481: UserWarning: Struct instance: double identical points in Poly
=> 1 points removed
=> Poly goes from 5 to 4 points
warnings.warn(msg)
/Home/DV226270/ToFu_All/tofu_git/tofu/tofu/geom/_core.py:481: UserWarning: Struct instance: double identical points in Poly
=> 1 points removed
=> Poly goes from 6 to 5 points
warnings.warn(msg)
/Home/DV226270/ToFu_All/tofu_git/tofu/tofu/geom/_core.py:481: UserWarning: Struct instance: double identical points in Poly
=> 1 points removed
=> Poly goes from 21 to 20 points
warnings.warn(msg)
In [3]: conf.plot()
Out[3]:
[<matplotlib.axes._axes.Axes at 0x7fc57ff81d50>,
<matplotlib.axes._axes.Axes at 0x7fc57f5cd610>]

Hello @Didou09! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file tofu/geom/_comp.py:

Line 123:8: E713 test for membership should be 'not in'

@lasofivec , I'm leaving with the bus,
If you agree and validate, can you:

merge
delete the branch
Redo the video using this brand new feature for auto-scaling ?
Update the doc with the video

Thanks !

This is the best one yet:
https://youtu.be/MFwMZL7JjhI
There are some other trials that I don't think are as good, you now have access to the youtube account so you can see them all (they are unlisted), for example:

https://youtu.be/tuz9jczmjjs

I think everything is done except for merge, since I think the changes I made are worth doing before merging PR

Good, preparing the PR for 1.4.11 (devel-> master), finishing release notes


Patch to update the dev branch with commits from main

So, mostly what I see here is code of the following categories.  This code is being backported from main to dev, as we've somehow borked the process which keeps patches flowing in one direction from dev->main.  Yuck.

What looks like the serialization bugfix being applied to main, needing to be in dev.
EMSCRIPTEN catch blocks throughout unittestland that require #ifdef'ing [ew...].
EMSCRIPTEN #ifdef blocks involving the fact that it can't do 128-bit integers.  [mmmmkay]
the bump of the version number, post v1.0.1 release.
various documentation updates.  [bueno]

There is probably more, and I'm going to take another pass through this to make sure that it all looks good.

Adding to this:

RingGSW changes.  I'm not familiar with what this is doing, so my review is strictly cursory.

After staring at this for a bit, I'm not seeing anything that gives me pause.
I have been asked to merge without squash.  I am going to approve and do so now.


API Response Restructure

Is your feature request related to a problem? Please describe.
Currently, all character and episode endpoints just return the character/episode json or an array of the character/episodes that match the request.
Describe the solution you'd like
I think that all correct responses should have one of the following formats:
{
  "status": 200,
  "data": {}
}

or
{
  "status": 200,
  "results": [],
}

Of course, the response status should match the correct status of the response.  If we changed to doing this, though, then it would allow us to include errors in incorrect responses that doesn't look weird.  For example, if I were getting data from a certain character, but I sent the request to /character/9999, we only get a 502 Bad Gateway message.  We should, however, return the following data:
{
  "status": 404,
  "message": "The character you have requested was not found."
}

Edit: the message property could be swapped for error.
Using statuses instead of errors allows an easier debugging process, as the developer can access the message and status that the servers sent.
I will work on a PR if this is deemed as needed by the community.

@CodingCarter
This is great, this will be really awesome and helpful.
I will guess I will include this in v2 but go ahead and work on this.
I will assign this to you.
Looking forward to this.

Great, I have school right now, but I will have this done by tonight.

No problem
You can take your time.

Hey @sno2
Any update on this?

@lelouchB If @sno2 is not doing it, then can I do this one?
P.S. I know I have said for the quote endpoint too but I would like to start from here and then head to that

@Mayank0255
This is an enhancement issue and its not a priority for me.
If you want I can assign this to you and you can start working on it.
But I will most likely include this update in v2 of the API i.e. with GraphQL support.

@lelouchB
Okay I think you are right we should leave that for now.

@Mayank0255
Sure 👍


WinitSettings::desktop_app() causes App to keep running after closing window

Bevy version
master (de98850a)
What you did
use bevy::{prelude::*, winit::WinitSettings};

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .insert_resource(WinitSettings::desktop_app())
        .run();
}

Ran this code and tried closing window.
What went wrong
App does not exit immediately after window closing. It takes 60 seconds to exit in the end, probably for unfocused_mode.max_wait.
2023-02-11T09:42:27.025503Z  INFO bevy_winit::system: Creating new window "Bevy App" (0v0)
2023-02-11T09:42:30.939804Z  INFO bevy_winit::system: Closing window 0v0
2023-02-11T09:42:30.945907Z  WARN bevy_winit: Window 0v0 is missing `Window` component, skipping event ModifiersChanged((empty))
2023-02-11T09:42:30.946261Z  WARN bevy_winit: Window 0v0 is missing `Window` component, skipping event Focused(false)
2023-02-11T09:42:30.956528Z  WARN bevy_winit: Window 0v0 is missing `Window` component, skipping event Destroyed
2023-02-11T09:43:30.961131Z  INFO bevy_window::system: No windows are open, exiting

The problem disappears when removing WinitSettings::desktop_app() .

close_when_requested seems to have moved to PostUpdate. Should it go into Update as before?

Yes please, that seems like a good simple fix.


Bump to version 1.0.2

There are some more patch fixes upcoming that would be good to push out before the next minor release.

Pushing changes to the buildfarm right now.


Quick Sort using Linked List

#4
Quick Sort Algorithm Using Linked List

Please Review the PR

Please review the PR as soon as possible


 Does it work on your desktop but not on android?

 Does it work on your desktop but not on android?

yes, it work well on desktop

# python3
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.graphics import Color, Ellipse, Line

class MyPaintWidget(Widget):
    def on_touch_down(self, touch):
        super(MyPaintWidget, self).on_touch_down(touch)
        x, y = touch.pos
        with self.canvas:
            Color(1, 1, 0, 0.5)
            Line(points=(x, y, x+100, y), width=1)

            Color(1, 1, 0, 0.5)  # can not show on android
            Line(points=(x, y+10, x+100, y+10), width=2)

            Color(1, 1, 0, 1)
            Line(points=(x, y+20, x+100, y+20), width=2)

            Color(1, 1, 0)
            Line(points=(x, y+30, x+100, y+30), width=2)

class MyPaintApp(App):
    def build(self):
        return MyPaintWidget()

if __name__ == '__main__':
    MyPaintApp().run()

buildozer.spec

[app]

# (str) Title of your application
title = TestCanvas

# (str) Package name
package.name = TestCanvas

# (str) Package domain (needed for android/ios packaging)
package.domain = com.xmhl

# (str) Source code where the main.py live
source.dir = .

# (list) Source files to include (let empty to include all the files)
#source.include_exts = py,png,jpg,kv,atlas

# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = gallery

# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
version = 0.1

# (str) Application versioning (method 2)
# version.regex = __version__ = ['"](.*)['"]
# version.filename = %(source.dir)s/main.py

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy
#requirements = python3,kivy,pyjnius==1.1.4,pillow,numpy

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy

# (list) Garden requirements
#garden_requirements =

# (str) Presplash of the application
#presplash.filename = ./gallery/preview/None.jpg

# (str) Icon of the application
#icon.filename = ./app_icon.png

# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
orientation = landscape

# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

#
# OSX Specific
#

#
# author = © Copyright Info

# change the major version of python used by the app
osx.python_version = 3

# Kivy version to use
osx.kivy_version = 1.10.1

#
# Android specific
#

# (bool) Indicate if the application should be fullscreen or not
#fullscreen = 1

# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
#android.presplash_color = darkgray

# (list) Permissions
#android.permissions = INTERNET,WRITE_EXTERNAL_STORAGE,READ_EXTERNAL_STORAGE,RECEIVE_BOOT_COMPLETED

# (int) Target Android API, should be as high as possible.
android.api = 28

# (int) Minimum API your APK will support.
#android.minapi = 21

# (int) Android SDK version to use
#android.sdk = 20

# (str) Android NDK version to use
android.ndk = 17c

# (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
#android.ndk_api = 26

# (bool) Use --private data storage (True) or --dir public storage (False)
#android.private_storage = True

# (str) Android NDK directory (if empty, it will be automatically downloaded.)
#android.ndk_path = /home/zhb/Android/Sdk/ndk-bundle

# (str) Android SDK directory (if empty, it will be automatically downloaded.)
#android.sdk_path = /home/zhb/Android/Sdk

# (str) ANT directory (if empty, it will be automatically downloaded.)
#android.ant_path =

# (bool) If True, then skip trying to update the Android sdk
# This can be useful to avoid excess Internet downloads or save time
# when an update is due and you just want to test/build your package
# android.skip_update = False

# (bool) If True, then automatically accept SDK license
# agreements. This is intended for automation only. If set to False,
# the default, you will be shown the license when first running
# buildozer.
# android.accept_sdk_license = False

# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity

# (list) Pattern to whitelist for the whole project
#android.whitelist =

# (str) Path to a custom whitelist file
#android.whitelist_src =

# (str) Path to a custom blacklist file
#android.blacklist_src =

# (list) List of Java .jar files to add to the libs so that pyjnius can access
# their classes. Don't add jars that you do not need, since extra jars can slow
# down the build process. Allows wildcards matching, for example:
# OUYA-ODK/libs/*.jar
#android.add_jars = ./libs/camera/galaxyjni.jar

# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src = ./libs/camera/daheng/CameraDaheng.java

# (list) Android AAR archives to add (currently works only with sdl2_gradle
# bootstrap)
#android.add_aars = ./libs/support-v4-26.0.0-alpha1.aar

# (list) Gradle dependencies to add (currently works only with sdl2_gradle
# bootstrap)
#android.gradle_dependencies =

# (list) Java classes to add as activities to the manifest.
#android.add_activites = com.example.ExampleActivity

# (str) python-for-android branch to use, defaults to master
#p4a.branch = master

# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
#android.ouya.category = GAME

# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =

# (str) launchMode to set for the main activity
#android.manifest.launch_mode = standard

# (list) Android additional libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
#android.add_libs_arme64_v8a = ./libs/camera/jniLibs/arm64-v8a/*.so
#android.add_libs_x86 = libs/android-x86/*.so
#android.add_libs_mips = libs/android-mips/*.so

# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False

# (list) Android application meta-data to set (key=value format)
#android.meta_data =

# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references = ./libs/camera/jniLibs

# (str) Android logcat filters to use
#android.logcat_filters = *:S python:D

# (bool) Copy library instead of making a libpymodules.so
#android.copy_libs = 1

# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86
android.arch = arm64-v8a

#
# Python for android (p4a) specific
#

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#p4a.source_dir =

# (str) The directory in which python-for-android should look for your own build recipes (if any)
#p4a.local_recipes =

# (str) Filename to the hook for p4a
#p4a.hook =

# (str) Bootstrap to use for android builds
p4a.bootstrap = sdl2

# (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
#p4a.port =

#
# iOS specific
#

# (str) Path to a custom kivy-ios folder
#ios.kivy_ios_dir = ../kivy-ios
# Alternately, specify the URL and branch of a git checkout:
#ios.kivy_ios_url = https://github.com/kivy/kivy-ios
#ios.kivy_ios_branch = master

# Another platform dependency: ios-deploy
# Uncomment to use a custom checkout
#ios.ios_deploy_dir = ../ios_deploy
# Or specify URL and branch
#ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
#ios.ios_deploy_branch = 1.7.0

# (str) Name of the certificate to use for signing the debug version
# Get a list of available identities: buildozer ios list_identities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"

# (str) Name of the certificate to use for signing the release version
#ios.codesign.release = %(ios.codesign.debug)s

[buildozer]

# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2

# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 1

# (str) Path to build artifact storage, absolute or relative to spec file
#build_dir = ~/.buildozer/.buildozer

# (str) Path to build output (i.e. .apk, .ipa) storage
# bin_dir = ./bin

#    -----------------------------------------------------------------------------
#    List as sections
#
#    You can define all the "list" as [section:key].
#    Each line will be considered as a option to the list.
#    Let's take [app] / source.exclude_patterns.
#    Instead of doing:
#
#[app]
#source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
#
#    This can be translated into:
#
#[app:source.exclude_patterns]
#license
#data/audio/*.wav
#data/images/original/*
#

#    -----------------------------------------------------------------------------
#    Profiles
#
#    You can extend section / key with a profile
#    For example, you want to deploy a demo version of your application without
#    HD content. You could first change the title to add "(demo)" in the name
#    and extend the excluded directories to remove the HD content.
#
#[app@demo]
#title = My Application (demo)
#
#[app:source.exclude_patterns@demo]
#images/hd/*
#
#    Then, invoke the command line with the "demo" profile:
#
#buildozer --profile demo android debug

Looks like the issue was already fixed on master branch.
When I tested the code with:
# buildozer.spec
requirements = python3,kivy

The issue  occured:

But after I edited:
# buildozer.spec
requirements = python3,kivy==master

The issue didn't occure:

Versions

Python 3.7.1
Kivy: v1.11.0.dev0, git-Unknown, 20190528 (The issue occured)
Kivy: v1.11.0rc1, git-Unknown, 20190528 (The issue didn't occure)
OS: Android 5.0.1
buildozer: 0.40.dev0

@gottadiveintopython  Yes, it is fixed, thanks for your ans!


Tahoma installation fails login error

Hi guys since a couple of days my tahoma integration didn't work anymore. I tried to delete the integreation and reinstall it. But now i have troubles to login. Gives an error while my pass and username are correct.
2020-07-25 16:46:10 ERROR (MainThread) [custom_components.tahoma.config_flow] Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/tahoma/config_flow.py", line 60, in async_step_user
info = await validate_input(self.hass, user_input)
File "/config/custom_components/tahoma/config_flow.py", line 29, in validate_input
await hass.async_add_executor_job(TahomaApi, username, password)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/tahoma/tahoma_api.py", line 40, in init
self.login()
File "/config/custom_components/tahoma/tahoma_api.py", line 122, in login
raise Exception("Could not login: " + result["error"])
Exception: Could not login: Bad credentials

Are you sure those credentials work on the TaHomalink.com website? Could you try the latest master? However, it should not make a huge difference.

Strange. When I login on somfy.be there is no problem. When I'm logging in on the tahomalink.com website he gives also the bad login error. I tried to pasword forget procedure but didn't help. So the problem is somfy and not the integration.


Hostname with underscores

domain-_name.com is correctly invalidated, but domain_-name.com is not.

The issue is actually with hostnames including hyphen. \b will break on a hyphen, so in your example domain_-name.com, while the entire string is invalid, it is only matching name.com as \b matches -.
Extracting the substring and using beginning and end of string anchors \A\Z will force it to evaluate the entire sequence:
\A((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}\Z
Or you can use lookahead/lookbehind assertions with whitespace instead of \b, like so:
(?<=\s|\A)((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}(?=\s|\Z)


Ignore warnings from multipart.multipart logger to fix mass log spam

Describe your changes
Fixes this:

Related Issues / Projects
Checklist

[x] I've manually tested my code

Same fix is running on Akatsuki production across several services
e.g.:

https://github.com/osuAkatsuki/score-service/pull/106


Made tokens a prop of SvelteMarkdown

Not sure if this is the best approach for this, but essentially I wanted to know all the tokens generated from a parent component.
This way I could pass all the heading tokens from my parent component to a ToC component to render my table of contents as asked here #29
I was tempted to dispatch an event when the tokens were generated so parent components could optionally grab the tokens that way.
Feel free to ignore this, or propose a better solution and I will work to your solution design if you haven't got time.
P.S I'm very inexperienced doing pull requests hopefully this is correct.

Any update on adding the type and publishing to NPM?

Hey, @wozzashek. Sorry about the delay. I found the event was not being dispatched on my testing and hadn't had time to check why. I just pushed a fix for it and will be publishing it during the next few minutes.

I didn't even think to check if the component had mounted yet. Thanks for fixing it.


Can Nilaway support incremental scanning

We are trying to set up incremental scanning in our CI pipeline using [Tool Name], but we couldn't find any relevant flags or options for this. Could anyone provide guidance on how to achieve this, or let us know if such a feature is supported。

Hey @miaogreat , are you using the standalone checker?
https://github.com/uber-go/nilaway?tab=readme-ov-file#standalone-checker:

Due to the sophistication of the analyses that NilAway does, NilAway caches its findings about a particular package via the Fact Mechanism from the go/analysis framework. Therefore, it is highly recommended to leverage a driver that supports modular analysis (i.e., bazel/nogo or golangci-lint, but not the standalone checker since it stores all facts in memory) for better performance on large projects. The standalone checker is provided more for evaluation purposes since it is easy to get started.

It only caches its findings in memory, so in the next run everything has to be re-analyzed again.
We recommend using a proper analyzer driver, like golangci-lint (see instructions), or if you're using bazel as your build system - bazel/nogo for proper caching of the facts.
Let me know if that helps!

这是来自QQ邮箱的自动回复邮件。您好，已收到您的信息，祝您工作愉快


Is there anyway to improve the music?

My music is very laggy when I play it. What should I do?

Host it on a VPS like digitalocean, and don't host music on too many servers if you don't have good enough CPU.


[GFX][FisheyeBindings] Allow principal point to default to center of sensor

Motivation and Context

We currently have to specify the Principal Point which is a big annoyance on the Habitat-Lab side. Most of the time, the principal point should lie in the center of the image. If not, the user can still specify it. Using the new fixed Corrade::Optional bindings to make this a sensible and easy to compute default.

How Has This Been Tested

PyTest and locally

Types of changes

[X] Docs change / refactoring / dependency upgrade
[X] New feature (non-breaking change which adds functionality)

Checklist

[X] My code follows the code style of this project.
[X] My change requires a change to the documentation.
[X] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document.
[X] I have completed my CLA (see CONTRIBUTING)
[X] I have added tests to cover my changes.
[X] All new and existing tests passed.

@Skylion007 :
Last thing: check the viewer.cpp.
Then you are good to merge it. :)
Thanks a lot!


Idea: Set current track to loved/favorited?

I was playing with osascript, and found that we could mark the current track as loved (before Sonoma) or favorited (Sonoma and after). Do we want to add a functionality like this to the plugin? I'm not sure how many functionalities you would want to see in this plugin, but I've made a little POC here which requires a small amount of code: https://github.com/ducktordanny/apple-music.nvim/commit/8765e4c1810e13439e44eeded474cf240272c262
One thing that concerns me is whether it should support older versions of Mac OS (this is why I said loved or favorited), I could see some solutions for it though I'm not sure if we should handle this scenario:

Before Sonoma, you could mark a track as "loved": osascript -e 'tell application "Music" to set loved of current track to true
But with Sonoma, this changed to "favorited": osascript -e 'tell application "Music" to set favorited of current track to true

I've only noticed this because my work MacBook still has Ventura, and my home MacBook has Sonoma.
LMK what you think, or if you have any additional ideas for this. I could open a PR for this if I have some free time. :)

I love this idea!
This might work to get macOS version:
> osascript -e 'set osver to system version of (system info)'
14.3

(Sonoma = 14.0).
If you have time I'd merge a PR. If not (no worries) and I'll add this myself in the next couple days.
My original scope was basically just playback, however I'd be open to adding just about any common functionality like this. I'd actually use this a lot as I use my favorites as a "Radio" of songs I get from mostly the generated mix playlists.
Another thing that is on my mind is making something to get "Now Playing" that you could put in Lualine if you want.

If you have time I'd merge a PR. If not (no worries) and I'll add this myself in the next couple days.

Yeah, I think I'll take a look at this today. It's pretty interesting to mess around with this. :D

Another thing that is on my mind is making something to get "Now Playing" that you could put in Lualine if you want.

I was thinking the same and also messed around with this here: https://github.com/ducktordanny/apple-music.nvim/commit/82f064687a2907ca43271a7397056b3b78d704f2. Although I thought of it as getting more details, I'm still unsure of the implementation and it's also messy. But for a starting point, it was good to look at. :)

I was thinking the same and also messed around with this here: https://github.com/ducktordanny/apple-music.nvim/commit/82f064687a2907ca43271a7397056b3b78d704f2. Although I thought of it as getting more details, I'm still unsure of the implementation and it's also messy. But for a starting point, it was good to look at. :)

For this, I made a basic function to get the name and the author of the track, which is also used for the "favorited/loved" part, so we get more info on what we marked as favorite.


Using dotenv (.env file)

This is not so much of an issue as a feature request. Perhaps it’s already there but I don’t know how to use it… in the installation under Node.js, it says to just define the environment vars and run but the code isn’t “looking” for a .env file nor any other file such as the onstar2mqtt.env that’s mentioned above. I’m sure it’s fine in Docker but I’m running it in Node as a windows service.
To make it work, I simply added the dotenv requirement to the top of index.js and added it to dependencies.
Index.js
require('dotenv').config();
package.json
"dotenv": "^16.0.3",
This works but I must do it each time I pull a new version from your main branch or find a fork that already has it but isn’t as up to date as yours… perhaps I’m just not defining the env vars correctly :) but I did notice the code is natively setup for .env / dotenv so I made that assumption and it works

The app reads the environment variables from the system no matter where they are sourced from, so I assume the dotenv package is populating those for you. In the docker example, docker is doing just that.
You just need to define the environment variables for the process within the Windows service execution (or, less preferred define system-wide). It really depends on your shell and platform used, I'm not sure how to do it in your scenario but I remember using .bat files and utilities for Windows services to do it in the old days. There's likely plenty of examples available if you search for "environment variables" and "windows service". Good luck!


Making network host not the default option for linux

Is there any reason why host is the default option for linux?
https://github.com/knative/func/blob/main/buildpacks/builder.go#L124-L126
Based on the docs (https://docs.docker.com/network/host/ ), this option is good for performance when the container is going to handle a large number of ports, but I don't think we have that scenario here.
By commenting out this check I managed to get func build containers on GitPod and avoid this issue:
https://github.com/gitpod-io/gitpod/issues/16022

@matejvasek thanks a lot for helping me to troubleshoot this, I wonder if you know who might know why we added that check in the first place.

@salaboy it is used so docker connection tcp socket on <IP_ADDRESS> works.
Most people use unix socket/winpipe still it is nice to make also tcp work by default.
AFAIK problem is user-namespace-enable + host-network, could you add check for user namespaces?

@salaboy could you modify condition so network=host is used only if user ns are not enabled?

@matejvasek is there any way to check for that?

I don't know.

Ok.. I am sure the answer is here.. so I will do my research: https://docs.docker.com/engine/security/userns-remap/#disable-namespace-remapping-for-a-container

@salaboy any chance to look into this?


Add optional command options under image

image:
  command:
  - cmd
  - arg1
  - arg2

Command options let you override or provide arguments to the container's entrypoint.

Useful, but not technically needed to run a services under Istio 🤔


Fix RepoDb initialization in the Search class

This is wrong: https://github.com/acdh-oeaw/arche-oaipmh/blob/master/src/acdhOeaw/arche/oaipmh/search/BaseSearch.php#L116

Closed by 7381de03d708904ca537348a6c567c6762fd8a84


Add file/folder permissions to Directory and Container APIs

Fixes #3167
I didn't write tests for the Container APIs because they're currently using the Directory APIs... let me know if you all think I should change that.

@vito I cleaned up those tests a bit, and added a few more to clarify how Mode works.


Can someone please convert this command to correct node-fluent-ffmpeg syntax

I created complex ffmpeg command on my terminal. But I can't convert it to node-fluent-ffmpeg syntax. Can someone please help me to convert it?
mkdir segments && ffmpeg -hide_banner -y -i testing123.mp4 \
  -vf scale=w=640:h=360:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod  -b:v 800k -maxrate 856k -bufsize 1200k -b:a 96k -hls_segment_filename segments/360p_%09d.ts segments/360p.m3u8 \
  -vf scale=w=842:h=480:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 1400k -maxrate 1498k -bufsize 2100k -b:a 128k -hls_segment_filename segments/480p_%09d.ts segments/480p.m3u8 \
  -vf scale=w=1280:h=720:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 2800k -maxrate 2996k -bufsize 4200k -b:a 128k -hls_segment_filename segments/720p_%09d.ts segments/720p.m3u8 \
  -vf scale=w=1920:h=1080:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 5000k -maxrate 5350k -bufsize 7500k -b:a 192k -hls_segment_filename segments/1080p_%09d.ts segments/1080p.m3u8 \

Use a child node process and just call ffmpeg directly with these arguments, would let you avoid the package whatsoever.

Yes, that would work ok. But how to accomplish this with ffmpeg-fluent? There was no docs on hls.


Split Images on Capture

I am getting some images which are split into 2 or 3 parts.
I suspect that the problem occurs when the image read is part way through a refresh ??
Is there something that I should do to avoid this ?
ZWO 120MM
Rasp Pi 3+
Images attached: 3 way split / Normal image / 2 way split

It's probably a ZWO bug because it also happens on a very lightly loaded machine when writing to a ramdisk.
Maybe experiment with your USB settings? See if disabling continuous capture (aka enabling new exposure mode) helps? Sorry, it's not entirely clear what causes it. If you feel brave/lucky you could try updating the firmware, but doing so is very much beyond the scope of this thread and I have no evidence that it would actually help...

Thanks - I have already reduced the USB bandwidth and it did seem to be less common, although it is hard to quantify.
I'll try your point on "disabling continuous capture"

I had ordinally started out with the 120 camera and returned it due to the same issue you are having.  Some user were able to get it working but I was not.  I returned it and got a 224 and so far the camera been performing as expected.

ZWO's support site says that "[our] ASI120MM/MC camera is not compatible very well with Linux" and they give a link to https://bbs.astronomy-imaging-camera.com/d/6279-asi20mm-on-mac-and-or-virtual-machine-solved for some other things to try.

@morzineIT, are you running the latest version 0.8.1?  It produces an error message if the software tries to save an image while it's already saving one, so it doesn't overwrite anything.  And a copy of the image is processed (resized, cropped, etc.) which decreases the chance of an image getting overwritten.

@morzineIT,
The error message about saving an image was put in a couple weeks ago, so you already have it.
Do you consistently get the split images?
What's your delay between images?  It's possible, but not likely, that a new image is created while still working on the prior one, and that's clobbering the file.  That's less likely in version 0.8.1 though.  Given what @maserowik said, it's also likely a hardware or SDK issue.

I've re-install all the latest this weekend and moved to an SSD, I'll do
some further testing..
On Sun, 17 Oct 2021 at 23:14, EricClaeys @.***> wrote:

@morzineIT https://github.com/morzineIT,
The error message about saving an image was put in a couple weeks ago, so
you already have it.
Do you consistently get the split images?
What's your delay between images? It's possible, but not likely, that a
new image is created while still working on the prior one, and that's
clobbering the file. That's less likely in version 0.8.1 though. Given what
@maserowik https://github.com/maserowik said, it's also likely a
hardware or SDK issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/thomasjacquin/allsky/issues/641#issuecomment-945196002,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7HUYX236VGL3MXXBVBD53UHM4D7ANCNFSM5F2KAKCA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@morzineIT, any update?

@morzineIT, any update?

I'm a little confused.  I updated the software and the problem seemed to
still be the same,
Then, I left it a few days and then it seemed to have mostly gone away.
I think that now I've upgraded to an SSD it maybe is less likely to have a
read clash as it's much quicker.
I get split frames on average about 1 in 50 now sometimes more sometimes
less.
I think I will upgrade to a Pi4 and see what that does to the performance.
Lee
On Fri, 19 Nov 2021 at 10:49, EricClaeys @.***> wrote:

@morzineIT https://github.com/morzineIT, any update?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/thomasjacquin/allsky/issues/641#issuecomment-973916546,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7HUYTIBMWLLDFIAVYP7I3UMYMRVANCNFSM5F2KAKCA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@morzineIT, did you check if you updated the camera's firmware?
Are there any messages in /var/log/lighttpd/error.log, or any messages in /var/log/allsky.log about not being able to save a file because one is already being saved?

https://www.dropbox.com/s/jmngwcku7ku74e2/ALLSKYlOGS.zip?dl=0
On Fri, 19 Nov 2021 at 14:51, Lee Massey @.***> wrote:

On Fri, 19 Nov 2021 at 13:54, EricClaeys @.***> wrote:

@morzineIT https://github.com/morzineIT, did you check if you updated
the camera's firmware?
Are there any messages in /var/log/lighttpd/error.log, or any messages
in /var/log/allsky.log about not being able to save a file because one
is already being saved?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/thomasjacquin/allsky/issues/641#issuecomment-974046884,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7HUYXOUFIPWTMFTEZN5DDUMZCGVANCNFSM5F2KAKCA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I've occasionally had this split image effect with my ASI120MM connected to a Pi3. Changed the power supply to a genuine Raspberry Pi wall wart (2.5A) but low power warning persisted. Problem solved by connecting the camera via a powered usb hub.

Thanks, that is very interesting as I have actually upgraded to an official
Pi3 charger - but if it is at it's limit (and I have extended the cable)
then that may explain the problem
My sudden improvements may have been related to the upgraded power supply -
it never occured to me that it may be power related
I have swapped out the Pi3/ ASI120 for a Pi4/ASI224MC  to compare and found
that it too has some reading issues (different but similar - see attached)
I plan to build up the ASI120mm/ Pi3 on the bench and test with an external
managed supply that I can adjust to see what effect it has.
On Mon, 22 Nov 2021 at 10:36, g8bhc @.***> wrote:

I've occasionally had this split image effect with my ASI120MM connected
to a Pi3. Changed the power supply to a genuine Raspberry Pi wall wart
(2.5A) but low power warning persisted. Problem solved by connecting the
camera via a powered usb hub.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/thomasjacquin/allsky/issues/641#issuecomment-975331186,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7HUYUSQ35WF5YE6DT654TUNIFKZANCNFSM5F2KAKCA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@morzineIT I don't see the attachment you referred to.

[image: image-20211122084129.jpg]
On Mon, 22 Nov 2021 at 17:51, EricClaeys @.***> wrote:

@morzineIT https://github.com/morzineIT I don't see the attachment you
referred to.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/thomasjacquin/allsky/issues/641#issuecomment-975723077,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7HUYWQ55SBFLMJURCSB5LUNJYHLANCNFSM5F2KAKCA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@morzineIT, the image didn't come through.  Unfortunately you need to attach it on the GitHub web page, it won't accept attachments when replying via email.

image-20211122084129.jpg

@morzineIT That banding is usually a USB issue.  Try adjusting the USB Bandwidth in the WebUI, and turning the Auto USB on and off.
Does this happen with every image, or just occassionally?

@morzineIT
I plan to build up the ASI120mm/ Pi3 on the bench and test with an external
managed supply that I can adjust to see what effect it has.

Did an external power supply help?
Another thing to try would be a powered USB hub.  It's possible the camera is taking too much power.
If you have the latest WebUI code you can click on the "System" link and see if your Pi is throttling or has low power.

Closing - no response from user in 5 months.  Plus, the described problem is a hardware issue - usually USB, not an Allsky issue.


Bad import in vistir.tempfile

I'm running into an issue with version 2018.10.9 of Pipenv. The import of backports.weakref in pipenv/vendor/vistir/backports/tempfile.py is failing. This causes an exception upon running/importing pipenv.
I can patch it by changing the import in pipenv/vendor/vistir/backports/tempfile.py to import from pipenv.vendor.backports.weakref. I can only reproduce the issue on my continuous integration setup though, not on my own machine. I can see that pipenv/init.py adds the vendor subpackage to sys.path, but this must not be doing the right thing for some reason on my CI virtual machine.
Expected result
No exception when pipenv.vendor.vistir is imported.
Actual result
Partial backtrace:
File "c:\python27\lib\site-packages\pipenv\vendor\vistir_init_.py", line 4, in
from .compat import NamedTemporaryFile, TemporaryDirectory, partialmethod
File "c:\python27\lib\site-packages\pipenv\vendor\vistir\compat.py", line 34, in
from .backports.tempfile import NamedTemporaryFile
File "c:\python27\lib\site-packages\pipenv\vendor\vistir\backports_init_.py", line 5, in
from .tempfile import NamedTemporaryFile
File "c:\python27\lib\site-packages\pipenv\vendor\vistir\backports\tempfile.py", line 16, in
from backports.weakref import finalize
ImportError: No module named weakref
Steps to replicate
I'm investigating this further, because I can not replicate it easily yet. I'll update the bug when I know more. Sorry for raising the bug already, I hadn't checked properly that I could replicate the problem easily.

I'm now convinced that the issue is down to something broken in my environment, not a Pipenv bug. Apologies for misfiling, and many thanks for an excellent piece of software!

@techalchemy Thank you for the fix, and so quickly!


New: Add source key filter to chants

This small change adds a text input filter to the chants for the source primary key. This allows chants to be filtered by source in the list.

Nice, I didn't know about this feature!


Replaced DynamicResponse with generic response type. DynamicResponse …

…or BulkResponse may be used.

Phew!
@Mpdreamz, @mivano please pull it - I need this change the sooner the better.

Done!

Thank you!

If you can have a look at #32 for me and give your feedback, then we can get rid of that .net 4 too.

Yes, I'm looking with the great enjoyment. Will respond there.

This LGTM it might be better though to ship this sink with a mapping of the bulk response over making the method generic.
Will sent a PR tomorrow

Ok, I will hold off using current version until I see your variant.


Pywinauto failing with too many element trees

Hi all,
First of all, happy new year. It's my first GitHub ticket, so apologies if it's a copy/same issue. I did go through some tickets, but the formulation is different and not always the same problem (but likely the same cause).
Simple question:

Is the issue solvable through additional filters or is pywinauto not the package to automate this process?
Any other package advice if not solvable?

I know I can automate everything through keyboard shortcuts. However, a single step (Click "Export Excel" button - see further) not as it is not accessible through tabs. Working with Mouse coordinates is not advisable as screen resolutions change depending on who executes the script.
Expected Behavior
I am automating the extraction of some internal reports. Steps are fairly easy:

Open application / Select report / Enter parameters
Generate report
Export and save in correct location

Export is the sequence of:

Press specific button
ASR_dlg.child_window(title="Export Excel", control_type="MenuItem").click_input()
Fill in all the needed information in the Save As dialogue (it's not pretty, but works)

ASR_dlg.child_window(auto_id="1001", control_type="ToolBar").right_click_input()
app.ContextMenu["Edit address"].invoke()
ASR_dlg.child_window(title="Address", control_type="Edit").set_text(Seq_FilePath).type_keys("{ENTER}")
ASR_dlg.child_window(auto_id="1001", control_type="Edit").set_text(Seq_FileName)
ASR_dlg.child_window(title="Save", auto_id="1", control_type="Button").click_input()

When running empty reports, the program runs fine. When generating a "normal report" (+/- 3.000 KB in Excel when saved on harddrive), it does not.
Actual Behavior
When generating the report with data, all steps execute correctly until the step:

"Click on "Export Excel" button

What then actually happens is:

Reporting Program passes in "Does not respond"
Task manager shows a sharp increase in memory usage
Obviously computer begins to struggle

Normal usage (when generating report manually):

After a few seconds of running the program when trying to generate report automatically)

Probable cause
Loading very very small sets of data works. Likely issue if I have to take a guess:

The reporting program is generating a DataGridViewTable with a limited set of data
When trying to execute the program, probably all data is pulled in. it is nicely shown when running print_control_identifiers on the very small set of data
The grid view elements are adaptable if I want

I think the program fails because it has to wait until everything is loaded before finding the correct window to click?
 But error messages should be helpful to adapt your code for new API.
Also app.allow_magic_lookup = False should speed up dump_tree() significantly.
Chapter Waiting for Long Operations is not changed much for now. Maybe some tricks will be useful for you.

Hang up of the application itself may be a consequence of lazy initialization on the app side. You need to wait for app CPU usage for idle (it is also mentioned in the above document) to prevent such crashes. Of course it could be addressed by the app developers as well, but it's not always possible quickly enough.