cookies from successful login passed on to child page is not working

Steps:

Login to https://www.valueresearchonline.com/login and get cookies ( Result : Working )
Use cookies from above step to login https://www.valueresearchonline.com/funds/26123/motilal-oswal-flexi-cap-fund-regular-plan/#fund-portfolio ( Result : Not Working )

pom.xml
         <dependency>
              <groupId>org.jsoup</groupId>
              <artifactId>jsoup</artifactId>
               <version>1.15.3</version>
          </dependency>

STEP 1:  Working
        Connection.Response initial = Jsoup.connect("https://www.valueresearchonline.com/login")
                .timeout(15000)
                .userAgent("Mozilla")
                .method(Connection.Method.GET)
                .execute();

STEP 2:  Working
Connection.Response login = Jsoup.connect("https://www.valueresearchonline.com/login")
                .timeout(15000)
                .userAgent("Mozilla")
                .data("username", "valid_email")
                .data("password", "valid_password")
                .cookies(initial.cookies())
                .method(Connection.Method.POST)
                .execute();

STEP 3:  NOT Working
        doc = Jsoup.connect("https://www.valueresearchonline.com/funds/26123/motilal-oswal-flexi-cap-fund-regular-plan/#fund-portfolio")
                .timeout(15000)
                .userAgent("Mozilla")
                .cookies(login.cookies())
                .get();

@jhy can you please have a look at above issue and clarify

Hi, I haven't use Jsoup for anything related to cookies but you may want to try Connection cookieStore(CookieStore cookieStore) or CookieStore cookieStore() to store the cookie information https://github.com/jhy/jsoup/blob/master/src/main/java/org/jsoup/Connection.java#L290 .
/**
     Provide a custom or pre-filled CookieStore to be used on requests made by this Connection.
     @param cookieStore a cookie store to use for subsequent requests
     @return this Connection, for chaining
     @since 1.14.1
     */
    Connection cookieStore(CookieStore cookieStore);

    /**
     Get the cookie store used by this Connection.
     @return the cookie store
     @since 1.14.1
     */
    CookieStore cookieStore();

@jeffthomasweb sorry I didn't fully understand your last comment,
where shall I store the cookies,
what purpose will it serve by storing cookies,
which once to store,
how will it make different against using stored cookies vs current way of using cookies ?
Currently I'm getting 2 cookies namely

initial.cookies()
login.cookies()

Apologies, my knowledge of cookies is incomplete. From my limited understanding, one could use Connection cookieStore(CookieStore cookieStore) or CookieStore cookieStore() to write custom implementations for more advanced cookie handling. As to how to accomplish this, I unfortunately don't know. Sorry.

@vikramvi I do not have an account on that site, so have not verified this directly. However, my guess would be that the cookies returned from the login POST are not simple key/val type cookies, but use the cookie path or other attribute to filter which are sent to the required article URL.
The cookies() getter and setter are simple Map<String, String> interfaces and return the cookies that were set on the response (flattened to only one cookie, if multiple were set with the same name).
As @jeffthomasweb mentioned, the CookieStore in the Connection is the right way to support general cookies which may include paths etc. If you use a session, either explicitly or by calling newRequest on a connection, the CookieStore is automatically managed. You don't need to manually copy the cookies onto the next request, and only the appropriate ones will be sent in the request.
So, I expect that this should work:
Connection session = Jsoup.newSession();
Connection.Response initial = session.newRequest().url("https://www.valueresearchonline.com/login")
    .timeout(15000)
    .userAgent("Mozilla")
    .method(Connection.Method.GET)
    .execute();

Connection.Response login = session.newRequest().url("https://www.valueresearchonline.com/login")
    .timeout(15000)
    .userAgent("Mozilla")
    .data("username", "valid_email")
    .data("password", "valid_password")
    .method(Connection.Method.POST)
    .execute();

Document doc = session.newRequest().url("https://www.valueresearchonline.com/funds/26123/motilal-oswal-flexi-cap-fund-regular-plan/#fund-portfolio")
    .timeout(15000)
    .userAgent("Mozilla")
    .get();

Can you please test and confirm?

Thanks for sharing this example @jhy . I was able to customize your sample code to login and access my personalized member data from https://www.metafilter.com. This is an impressive feature!

That's great to hear, thanks @jeffthomasweb

(Closing, assuming this resolves for @vikramvi as well - please LMK if otherwise.)


请提出你的问题
httpclient.py:22: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
from collections import Iterable
config use_encryption model here None
[DAG] Succ init
[PipelineServicer] succ init
failed to create predictor: Log_id: 0  Raise_msg: (InvalidArgument) Device id must be less than GPU count, but received id is: 2. GPU count is: 1.
[Hint: Expected id < GetGPUDeviceCount(), but received id:2 >= GetGPUDeviceCount():1.] (at /paddle/paddle/phi/backends/gpu/cuda/cuda_info.cc:242)
ClassName: LocalPredictor.load_model_config..create_predictor_check  FunctionName: create_predictor_check
Killed

机器上cpu是空闲的，而且确实是只有一块卡。为啥会出现这个情况，之前都是按步骤操作的，另外，官方的两种部署方式好像只说了一种


Add registry api page

What changed? Why?
Added Registry API docs page
How has it been tested?
Tested locally

Review Error for brendan-defi @ 2024-06-27 23:41:00 UTC
User failed mfa authentication, see go/mfa-help


Increase Coverage of Mutli Node Consolidation suite_tests

Tell us about your request
Multi node consolidation is a core deprovisioner in the deprovisioning controller, but only has 3 suite tests. I also made changes to the core logic and make presubmit didn't notice the change was made, which we should be catching.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
--
Are you currently working around this issue?

Additional Context
No response
Attachments
No response
Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

I would like to add unit tests for the functions

@jonathan-innis which files I need to work on except multimachineconsolidation.go

we are  talking about singlemachineconsolidation.go and multimachineconsolidation.go right?

Yes, the tests for these files lives inside of suite_test.go right now. There's handling for multi-node consolidation here and single-node consolidation is all over the file

@khareyash05  are you still working on this?

@khareyash05  are you still working on this?

Please go ahead with this

/unassign
I'm going to unassign since it looks like there's been no progress on this since it was assigned.

/assign

/assign

/assign


Add document start to src/mixs/schema/mixs.yaml

Before this PR the src/mixs/schema/mixs.yaml did not have a "document start" (---).
@turbomam and i did a Google search for "YAML document start" and this was the page we found helpful: https://www.yaml.info/learn/document.html
The strictest interpretation of the YAML specification (https://www.yaml.info/learn/document.html) does require one.
In this PR, we added the "document start" and then we were able to remove our customized rule that tolerated the absence of the "document start".
We hope that other MIxS contributors will look at the other workarounds in .yamllint and help fix the schema file and also remove the workaround in tandem.

Thanks @sujaypatil96 !
I think this is then just "cleaning up documentation structure" right?
If so, and if the expectation is for additional people to help improve additional files, maybe you can make a super issue summarizing what needs done, how to do it, and then check list the files to do? So people can make small issues and PRs changing identified files?

See also: https://github.com/GenomicsStandardsConsortium/mixs/issues/823


Fix solo12 joint polarities. Update file to the one used in production at NYU

This fixes the joint polarities as they are used at NYU in production on the robot.
Fixes partially #1 .

I could check this branch on the Solo12 in MPI as well.

Could you do this please? Please make sure you don't just test with a PD controller as you don't see if the orientation is right there. Best would be to move joints independently, log the data and verify the motion (that's what I did) or run one of our more advanced controllers like reactive stepping.


Database migrations

Pull Request Test Coverage Report for Build 48

29 of 33 (87.88%)  changed or added relevant lines in 7 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 90.526%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Console/Commands/ShowMigration.php
0
1
0.0%

src/Database/Migrations/2018_09_11_000000_create_elasticsearch_migration_status_table.php
0
1
0.0%

src/Database/Migrations/2018_09_18_000000_create_elasticsearch_migration_config_table.php
5
7
71.43%

Totals

Change from base Build 44:
0.1%

Covered Lines:
258

Relevant Lines:
285

💛  - Coveralls

Pull Request Test Coverage Report for Build 48

29 of 33 (87.88%)  changed or added relevant lines in 7 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 90.526%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Console/Commands/ShowMigration.php
0
1
0.0%

src/Database/Migrations/2018_09_11_000000_create_elasticsearch_migration_status_table.php
0
1
0.0%

src/Database/Migrations/2018_09_18_000000_create_elasticsearch_migration_config_table.php
5
7
71.43%

Totals

Change from base Build 44:
0.1%

Covered Lines:
258

Relevant Lines:
285

💛  - Coveralls

Codecov Report

Merging #2 into master will increase coverage by 0.14%.
The diff coverage is 86.11%.

@@             Coverage Diff              @@
##             master       #2      +/-   ##
============================================
+ Coverage     90.63%   90.78%   +0.14%
- Complexity       88       96       +8
============================================
  Files            16       18       +2
  Lines           267      293      +26
============================================
+ Hits            242      266      +24
- Misses           25       27       +2

Impacted Files
Coverage Δ
Complexity Δ

...00_create_elasticsearch_migration_status_table.php
75% <0%> (ø)
2 <0> (?)

src/Console/Commands/ShowMigration.php
0% <0%> (ø)
3 <3> (ø)
:arrow_down:

...siness/Repository/ElasticsearchMigrationConfig.php
100% <100%> (ø)
6 <6> (?)

...Provider/ElasticsearchMigrationServiceProvider.php
100% <100%> (ø)
3 <0> (ø)
:arrow_down:

...siness/Repository/ElasticsearchMigrationStatus.php
100% <100%> (ø)
7 <2> (?)

src/ElasticsearchMigration.php
94.04% <100%> (ø)
28 <0> (ø)
:arrow_down:

...00_create_elasticsearch_migration_config_table.php
71.42% <71.42%> (ø)
2 <2> (?)

Continue to review full report at Codecov.

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


Quality Gate used but is not working.

Hi,
We found this issue that Quality Gate used but is not working.
We have configured the project to use the Standard Quality Gate, and we do see that the project shows Quality Gate passed even if there are errors / Vulnerabilities in the project. Please see the attached screenshot. We have created custom Quality Gate as well and it still does the same.
Check Result:

Quality Gate Config:

Does this code not validate the quality gate?
Thanks for helping with this.

Hi,
Of that gate, the only metrics that the plugin generates is the coverage. But I don't see in the metrics of the project.
Are you getting the coverage?
I guess the correct approach is to create a custom gate and configured the project to use it.
Could you check that?

@anupam-chakraborty
Maybe you missing this workaround in pom.xml properties:
		<sonar.mule.file.suffixes>.xml</sonar.mule.file.suffixes>


router: limit number of backends dial attempts

Add a setting for max dial attempts to proxy.ReverseProxy.

Flynn is unmaintained and our infrastructure will shut down on June 1, 2021. See the README for details.


[Feature request] Add links to plots

Hi,
It would be nice if we could configure links on the calendar.
Here is a proposal on how this could work
If you click on a dot you would be sent to a link defined in configuration. This link would be customisable with the time interval of the said dot.
In the option tab you would have a field where you can configure your link with at least two variables representing the timestamps interval of the dot. like $ts_from and $ts_to.
You would be able to configure a link like
http://play.grafana.org/dashboard/db/apache-overview2?from=$ts_from&to=$ts_to
This would redirect to
http://play.grafana.org/dashboard/db/apache-overview2?from=1481801799461&to=1481808999000
I don't know if this is possible to implement but it seems like a nice feature to me.
Florian

Thanks for suggestion. I'll try implementing this.


Flinging/Scrolling issue when using a list of Slivers and a TabBarView inside of a NestedScrollView.

Flinging a CustomScrollView in one of the tabs in a TabBarView that's set as the body of a NestedScrollView that has a list of Slivers in its headerSliverBuilder causes stuttering and doesn't smoothly expand the SliverAppBar as expected.
Steps to Reproduce
I've put together a sample app that demonstrates the issue.
You can find the repository here
Expected results: The SliverAppBar should smoothly expand in response to flinging the inner scroll view.
Actual results: The UI doesn't scroll smoothly and the SliverAppBar doesn't smoothly expand as expected.
Take a look at the video below and you'll notice that when scrolling up the Lineups or the Commentaries tabs, the SliverAppBar expands after a pause.
https://user-images.githubusercontent.com/20464116/133216887-e111c9c4-09b6-43c8-83e2-9d2cf536958e.mp4

Logs
flutter analyze

Analyzing live_football_scrolling_poc...
No issues found! (ran in 1.8s)

flutter doctor -v

[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19043.1165], locale en-US)
    • Flutter version 2.2.3 at C:\flutter
    • Framework revision f4abaa0735 (3 months ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Android\sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[√] IntelliJ IDEA Community Edition (version 2020.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2.4
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] VS Code (version 1.60.0)
    • VS Code at C:\Users\Omar\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • Nokia 7 1 (mobile) • CTLGAP58A1500315 • android-arm64  • Android 10 (API 29)
    • Chrome (web)       • chrome           • web-javascript • Google Chrome 93.0.4577.63
    • Edge (web)         • edge             • web-javascript • Microsoft Edge 93.0.961.47

! Doctor found issues in 1 category.

Hi @omarsahl, Is this issue on Android only or IOS as well? Could you please try upgrading to the latest stable 2.5.0 and see if there is any difference.
Thanks

Hi @maheshmnj,
I haven’t tried it on iOS yet and probably won’t any time soon.
I’ll try upgrading to the latest stable version today and post the results here.

Hi @maheshmnj,
I haven’t tried it on iOS yet and probably won’t any time soon.
I’ll try upgrading to the latest stable version today and post the results here.

@maheshmnj
I upgraded to the latest stable release 2.5.0, and I can still see the same issue.

I upgraded to the latest stable release 2.5.0, and I can still see the same issue.

@omarsahl, thanks for the confirmation.
Just to confirm, you are talking about the delay when expanding the SliverAppBar that happens in your video at 0:24
or at 0:19 in the below video, is that correct?
https://user-images.githubusercontent.com/31410839/133558208-045b02e6-37bb-446a-964e-28fa1e7022b1.mov

@maheshmnj yes exactly, i’m talking about those two times in your video at 00:15 and 00:19

@omarsahl  thanks for the confirmation labeling this issue as a bug. I can replicate the issue on the latest stable 2.5.0 and master 2.6.0

flutter doctor -v
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.5.2 20G95 darwin-arm, locale en-GB)
    • Flutter version 2.5.0 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (8 days ago), 2021-09-07 23:01:49 -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.59.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (3 available)
    • iPhone 12 Pro Max (mobile) • 5430F628-A903-402C-A635-D55D7E6EEFCA • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 11.5.2 20G95
      darwin-arm
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome
      93.0.4577.82

• No issues found!

[✓] Flutter (Channel master, 2.6.0-6.0.pre.114, on macOS 11.5.2 20G95 darwin-arm, locale en-GB)
    • Flutter version 2.6.0-6.0.pre.114 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision cd1892f04f (7 hours ago), 2021-09-15 22:17:02 -0700
    • Engine revision 5a09f16031
    • Dart version 2.15.0 (build 2.15.0-110.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.5.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.59.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (3 available)
    • iPhone 12 Pro Max (mobile) • 5430F628-A903-402C-A635-D55D7E6EEFCA • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 11.5.2 20G95
      darwin-arm
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome
      93.0.4577.82

• No issues found!

Any Workaround for this issue?


High CPU usage when I use the ngx-translate.

I have noticed something on my laptop on Chrome over the past few days where a tab starts taking up more CPU if I leave it open for a while. I use ngx-translate. The task manager showed that tab taking up most of the CPU. When I closed the tab, it stopped. For example it 30% the CPU usage, but when I try to turn off the ngx-translate library I see 5% the CPU usage. How I can reduce the CPU usage and continue to use the ngx-translate?

Can you reproduce that? The issue might come from change detection and etc.

Yes, sure. I’ve done the record for profiling the page for good understanding performance. I've gone through an analyze the results and tried to measure how poor the page's performance and tried to figure out causes. Below an FPS chart, I see the CPU chart. The colors in the CPU chart correspond to the colors in the Summary tab, so the first color is yellow - the scripting process, the second is grey - the system process, and the Idle process. The fact that the CPU chart is full of color means that the CPU was maxed out during the recording. We see repeating tasks every 4 milliseconds but If we research any yellow task separately we will see the main processes as a reaction of detectChanges on translation the page. If go deep to the root of the issue I see functions from the TranslateDirective such as ngAfterViewChecked and the checkNodes function which works every 4 milliseconds. So the following functions which work after that are updateValue , getValue, setContent, etc. It gives the pressure on CPU usage.

This makes total sense, everytime change detection is run it also needs to check the translation. Why is it that it runs change detection so often though? As far as i know, ngx-translate does not trigger change detection, unless you are executing translate.use (Are you maybe executing translate.use a lot?). Try using onPush change detection or see why your change detection is run so often. Also, check your 100 warnings you have :D

This is a fully translated page, and change detection is run maybe a few times. You may be causing a lot of change detection in your code.

Hey:D Also you noticed about ChangeDetectionStrategy.OnPush but I have several subscribers, which required time for starting my project, so I can't use OnPush. But in images above, I show a lot of tasks that were created by Angular for the ngx-translate lib. Currently, this is a mystery to me.

The tasks created for ngx-translate are only created because change detection is run. You can see that by looking at a clean project on stackblitz. ngx-translate will not translate existing elements unless change detection is run. Your performance issues come from the fact that change detection is run a lot

As you can see, the task flow is from top to bottom, meaning the top task causes the tasks below to be run. And ngx-translate is at the far bottom meaning something else is causing ngx-translate to run. Or to say it better, something is causing change detection to be run, which then runs ngx-translate

Thanks, man! I'll try to check.


Save command done

#68

Coverage decreased (-2.9%) to 69.557% when pulling 433b70484933d2f250405c8c3dd8621cc2a28747 on SaveCommand2 into 261e3aeea855a8b69d63a75b5538145e4e125af7 on master.

Coverage decreased (-2.9%) to 69.653% when pulling 247c768a877fa85a06308adbfc05e11570c939c4 on SaveCommand2 into 261e3aeea855a8b69d63a75b5538145e4e125af7 on master.


remove Click to Start div

we don't need it, also breaks the whole web

yes !
merged !!! :trollface:

trolled

:trollface:


Wrong documentation - LivePersona

Category
[ ] Enhancement
[ ] Bug
[X ] Question
Version
Hello,
The page at https://pnp.github.io/sp-dev-fx-controls-react/controls/LivePersona/ is showing an incorrect information on how to use LivePersona control.
import { LivePersona } from "@pnp/spfx-controls-react/lib/LivePersona";
should be replaced with
import { LivePersona } from "@pnp/spfx-controls-react/lib/controls/LivePersona";
Can you please update the documentation?
Thanks
Miguel

Dupe of #1069


Add Method to Change Timeline

With this PR, you can call Dialogic.change_timeline(new_timeline) to make the dialog node change timeline and load its new event on the spot.
Test Project: dialogic_sandbox.zip
While playtesting the scene provided, press K to change the timeline instead of space.

Thanks a lot for the contribution! I like the simplicity of this. Nevertheless there are some things to think about here:
The DialogNode will preserve it's current state. It will NOT change to the default Theme, Characters won't leave, Background Image and Music will stay. This is a very cool thing and allows for stuff that wasn't possible previously. BUT it can also lead to unexpected/unpredictalble behaviour. I think this should be mentioned in the Documentation as it is the main difference to starting a new dialog node.
Also I would like the function to have at least a small explanation in the script file. And please move the documentation up below the start() function.


Loading 3DSim after SimVision hangs Brain Simulator II

Describe the bug
While writing automated tests to determine if the Library networks loaded correctly, I cam across the issue that not all library networks can be loaded after all others. Clearest example is loading 3DSim after SimVision, which hangs Brain Simulator II so it has to be killed via task manager.
Application: Brain Simulator
Module/Network: various networks, all combinations should work.
To Reproduce
Steps to reproduce the behavior:

Load Library => SimVision and click away the notes.
Load Library => 3DSim, and notice you can't click the notes away since cursor is now a cross-hair.
Notice Close Window from the taskbar fails.
Kill Brain Simulator from the task manager, because that is the only way to do so.

Expected behavior
No matter what network was loaded first, any library network should load flawlessly.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Winodws 10 Pro 20H2
Version: 2021-05-16 master

Add any other context about the problem here.

CameraTest after Sallie has the same problem. Might it be a specific module that hangs the load?

This is another “engine-is-running-when-it-shouldn’t” bug.
After a network is loaded the UKS must have its SetupAfterLoad method called prior to any Fire() call. I will investigate. The Fire methods of other modules make the reasonable assumption that if the UKS module exists, it has a reasonable data structure initialized, but in this case, it does not.

This is now fixed and will check in soon. Here's the scenario so we can remember for the next time ☹
The "SAVE" dlg suspends the engine and opens.
When it closes, it sets the flag to resume the engine but does not wait for it to start.
The LoadFile() method then requests that the engine be suspended BUT it's too soon after the previous resume call and the engine hasn't resumed yet. The suspend request thinks the engine is already suspended so it does nothing and returns.
Now, the engine is running before the loadFile is complete and all kinds of unexpected results might occur.
SOLUTION: when resumeEngine or suspendEngine is called, these methods now wait until the engine thread has actually completed the task before returning.

This indeed is fixed.


std.utf.decode skips valid character on invalid multibyte sequence

default_357-line (@FeepingCreature) reported this on 2018-05-09T10:53:17Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=18844
CC List

Ajieskola

Description
When decoding an invalid UTF-8 string, like cast(string) [cast(ubyte) 'ä', 't'], with Yes.useReplacementDchar, std.utf.decode will advance the cursor past the letter where the multibyte sequence hit an error, even if that letter is in itself a valid start of a new byte sequence. As a result, decode will advance the index to 2, leading the string to decode as "�" when it should decode as "�t".

Ajieskola commented on 2023-04-26T09:40:22Z
Additional observation: the documentation is misleading with both the present and proposed behaviour. It says "If the code point is not well-formed, then a UTFException is thrown and index remains unchanged.".

Well, we don't throw here since we're using replacement characters, so maybe it's a hint that the part about index remaining unchanged does not apply either. On the other hand, the documentation doesn't say what happens to the index instead. At least for me, it gave the wrong impression that index wouldn't be advanced.

default_357-line (@FeepingCreature) commented on 2018-05-09T10:54:41Z
Repro:

    string s = cast(string) [cast(ubyte) 'ä', 't'];
    size_t i = 0;
    auto ch = decode!(UseReplacementDchar.yes, string)(s, i);
    writefln("ch = %s, i = %s, should be 1", ch, i);

ch = �, i = 2, should be 1.


Crash when attempting to connect to sonarr

Describe the Bug

Crash when running the script when attempting to connect to sonarr.

Relevant Collection Config
  Anime:
    metadata_path:
      - file: //config/anime.yml
      - git: meisnate12/Metadata
      - git: cpt-kuesel/metadata/anime/metadata
    sonarr:
      url: ...
      token: ...
      version: v3
      root_folder_path: ...
      monitor: all
      quality_profile: 1080p
      language_profile: English
      series_type: anime
      season_folder: true
      tag: Auto-Collection
      search: true
      cutoff_search: false
      add_missing: true

Plex Meta Manager Info

Version: 1.15.0-develop220122

Link to logs (required)
[2022-01-24 23:31:51,261] [util.py:162]               [DEBUG]    | Traceback (most recent call last):
                                                                 |   File "/modules/sonarr.py", line 39, in __init__
                                                                 |     self.api.respect_list_exclusions_when_adding()
                                                                 |   File "/usr/local/lib/python3.9/site-packages/arrapi/apis/sonarr.py", line 107, in respect_list_exclusions_when_adding
                                                                 |     self.exclusions = [SonarrExclusion(self, ex).tvdbId for ex in self._raw.get_importlistexclusion()]
                                                                 |   File "/usr/local/lib/python3.9/site-packages/arrapi/raws/sonarr.py", line 84, in get_importlistexclusion
                                                                 |     return self._get("importlistexclusion")
                                                                 |   File "/usr/local/lib/python3.9/site-packages/arrapi/raws/base.py", line 32, in _get
                                                                 |     return self._request("get", path, **kwargs)
                                                                 |   File "/usr/local/lib/python3.9/site-packages/arrapi/raws/base.py", line 78, in _request
                                                                 |     raise NotFound(f"({response.status_code} [{response.reason}]) Item Not Found {response_json}")
                                                                 | arrapi.exceptions.NotFound: (404 [Not Found]) Item Not Found {'message': 'NotFound'}
                                                                 |
                                                                 | During handling of the above exception, another exception occurred:
                                                                 |
                                                                 | Traceback (most recent call last):
                                                                 |   File "/modules/config.py", line 802, in __init__
                                                                 |     library.Sonarr = Sonarr(self, library, {
                                                                 |   File "/modules/sonarr.py", line 42, in __init__
                                                                 |     raise Failed(e)
                                                                 | modules.util.Failed: (404 [Not Found]) Item Not Found {'message': 'NotFound'}
                                                                 ```

Sonarr version: <IP_ADDRESS>1

Sonarr v2 is not supported
You need to be on Sonarr v3

<IP_ADDRESS>1  Is V2?

try adding /sonarr to the end of your url

Adding a /sonarr to the url didn't help in fact it made it crash earlier.
At least on the error in comment#1 I was able to authenticate with the sonarr instance (Also this instance doesn't have a /sonarr path)
-01-25 09:06:37,663] [util.py:158]               [DEBUG]    | Traceback (most recent call last):
                                                                 |   File "//plex_meta_manager.py", line 169, in start
                                                                 |     config = ConfigFile(default_dir, attrs, read_only_config)
                                                                 |   File "/modules/config.py", line 719, in __init__
                                                                 |     library.Sonarr = Sonarr(self, library, {
                                                                 |   File "/modules/sonarr.py", line 38, in __init__
                                                                 |     self.api = SonarrAPI(self.url, self.token, session=self.config.session)
                                                                 |   File "/usr/local/lib/python3.9/site-packages/arrapi/apis/sonarr.py", line 19, in __init__
                                                                 |     super().__init__(SonarrRawAPI(url, apikey, session=session))
                                                                 |   File "/usr/local/lib/python3.9/site-packages/arrapi/raws/sonarr.py", line 7, in __init__
                                                                 |     super().__init__(url, apikey, session=session)
                                                                 |   File "/usr/local/lib/python3.9/site-packages/arrapi/raws/base.py", line 25, in __init__
                                                                 |     if "version" not in status or status["version"] is None:
                                                                 | TypeError: argument of type 'NoneType' is not iterable
                                                                 |
[2022-01-25 09:06:37,664] [util.py:154]               [CRITICAL] | argument of type 'NoneType' is not iterable

This is the config for this error:
libraries:
  Anime:
    metadata_path:
      - file: //config/anime.yml
      - git: meisnate12/Metadata
      - git: cpt-kuesel/metadata/anime/metadata
    sonarr:
      url: http://animarr-1080p:8989/sonarr
      token: [redacted]
      version: v3
      root_folder_path: /data/media/Anime/1080p
      monitor: all
      quality_profile: 1080p
      language_profile: English
      series_type: anime
      season_folder: true
      tag: PMM
      search: true
      cutoff_search: false
      add_missing: true

This is the full config for the crash in comment#1
libraries:
Anime:
  metadata_path:
    - file: //config/anime.yml
    - git: meisnate12/Metadata
    - git: cpt-kuesel/metadata/anime/metadata
  sonarr:
    url: http://animarr-1080p:8989
    token: [redacted]
    version: v3
    root_folder_path: /data/media/Anime/1080p
    monitor: all
    quality_profile: 1080p
    language_profile: English
    series_type: anime
    season_folder: true
    tag: Auto-Collection
    search: true
    cutoff_search: false
    add_missing: true

can you reproduce and get Sonarr trace logs? is Sonarr's API being hit?
Based on those logs it doesn't seem like PMM can connect to Sonarr
However, the exception should be caught, errored, and moved on - not crashing pmm as well IMO

most of the time my checks at the beginning of a run will catch invalid url error but there are certain instances where if theres a URL base set you need to add it to the end of the url which is usually /sonarr. I have no idea why they're able to hit the /configuration endpoint in my initial checks but not the /series/import endpoint when it comes to actually adding the items when the domain without the url base is used. Maybe a GET vs POST thing? this also happens with radarr if you have any insight.
BTW this is only for certain systems as i have no problem hitting the Arrs with just the URL:PORT

To clarify it doesn't crash PMM per se, there is a crash but it is silently handled and anything that needs sonarr is ignored.
Looking at the source for ArrAPI an API call is made to http://animar-1080p:8989/api/v3/importlistexclusion
I know this is very trimmed but these are the only lines in the trace log related to API calls when the script was run
2022-01-25 16:09:39.5|Debug|Api|[GET] /api/v3/system/status?apikey=(removed) 200.OK (4 ms)
2022-01-25 16:09:39.5|Trace|Http|Req: 4948 [GET] /api/importlistexclusion?apikey=(removed) (from 172.*.*.195 python-requests/2.26.0)
2022-01-25 16:09:39.5|Trace|Http|Res: 4948 [GET] /api/importlistexclusion?apikey=(removed) 404.NotFound (2 ms)
2022-01-25 16:09:39.5|Debug|Api|[GET] /api/importlistexclusion?apikey=(removed) 404.NotFound (2 ms)
2022-01-25 16:09:39.5|Trace|EventAggregator|Publishing CommandUpdatedEvent

The following is when accessing it directly from a browser.
2022-01-25 16:14:51.1|Trace|Http|Req: 5271 [GET] /api/v3/importlistexclusion?apikey=(removed) (from 172.*.*.1 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36)
2022-01-25 16:14:51.1|Trace|Http|Res: 5271 [GET] /api/v3/importlistexclusion?apikey=(removed) 200.OK (4 ms)
2022-01-25 16:14:51.1|Debug|Api|[GET] /api/v3/importlistexclusion?apikey=(removed) 200.OK (4 ms)

ah!
bad API call - it's trying to use the v2 api and missing the /v3/

can you go to here and send me the json it returns i wanna check something
http://animar-1080p:8989/api/v3/system/status?apikey=<YOURAPIKEY>

can you go to here and send me the json it returns i wanna check something
http://animar-1080p:8989/api/v3/system/status?apikey=<YOURAPIKEY>

[]
just an empty list

Soooo you are right in whatever you are thinking....
Because of https://github.com/meisnate12/ArrAPI/blob/master/arrapi/raws/base.py#L28
self.v3 = int(status["version"][0]) > 2

It detects 10 as 1 since its slicing for the first character.
I was under the impression that self.v3 was applied from the config value for version
So its a "me" problem which is annoying as this build is just a local compile I guess to get around it I need to build with the version number so that it does away welp ...
Any chance you can change
self.v3 = int(status["version"][0]) > 2

to
self.v3 = int(status["version"].split(".")[0]) > 2

{
  "appName": "Sonarr",
  "version": "<IP_ADDRESS>24",
  "buildTime": "2022-01-24T14:03:53Z",
  "isDebug": false,
  "isProduction": false,
  "isAdmin": false,
  "isUserInteractive": false,
  "startupPath": "/app/bin",
  "appData": "/config",
  "osName": "alpine",
  "osVersion": "3.15.0",
  "isMonoRuntime": true,
  "isMono": true,
  "isLinux": true,
  "isOsx": false,
  "isWindows": false,
  "mode": "console",
  "branch": "nightly",
  "authentication": "none",
  "sqliteVersion": "3.36.0",
  "urlBase": "",
  "runtimeVersion": "<IP_ADDRESS>",
  "runtimeName": "mono",
  "startTime": "2022-01-25T16:20:13.880472Z",
  "packageVersion": "<IP_ADDRESS>1",
  "packageUpdateMechanism": "docker"
}

It never occurred that people would build their own versions but yea that change is a simple and easy fix. Also the version attribute isn't required because ArrAPI is supposed to auto detect the version


Updated flow-refresh.py to install node modules from sidecar extraEnv…

Thank you for making node-red ⚙ better
Please reference the issue this PR is fixing.
npm install from values file
New Feature: Install extra node modules via flow_refresh.py script
If your flows from the sidecar depend on nodes from modules that are not preinstalled in the node-red server, you can install them by declaring sidecar.extraEnv: NODE_MODULES (Comma separated list of node-modul names.)

Put NODE_MODULES variable in sidecar.extraEnv, e.g.

extraEnv:
    - name: LOG_LEVEL
      value: "DEBUG"
    - name: NODE_MODULES
      value: "node-red-contrib-xkeys_setunitid, node-red-contrib-microsoft-teams-tasks, node-red-contrib-json"

Script will check if this modules are already installed and install missing ones.
Script will reload flows

Also verify you have:

[x] Read the contributions page.
[x] Read the DCO, if you are a first time contributor.
[x] Read the [code of conduct](Code of Conduct).

Hey @dirien,
like mentioned in the npm issue  i have switched from extraEnV to configMap to install extraNodeModules. When upgrading the helm values extraNodeModules the node modules will be also updated. This was not the case with the extraEnv.
Also tried to update the readme docs with this new behaviour (..gotmpl).

The k8s-sidecar can also call the node-red api to install additional node modules (npm packages) before refreshing or importing the flow.json.
You need to list your flows requiert 'NODE_MODULES' in the sidecar.extraNodeModules: e.g.
sidecar:
 extraNodeModules:
    - node-red-contrib-xkeys_setunitid
    - node-red-contrib-microsoft-teams-tasks
    - node-red-contrib-json

To install the node modules successfully, the node red pod needs access to the npmrc.registry to download the declaired modules/packages.

I hope this will help ✌

Hey @hinrichd,
Thanks for the contribution! Let me have a look into the code!


Doesn't work with Ember.js projects

I'm working on an Ember-cli project
# My controller
# @example
#   Blah
MyController = Ember.Controller.extend
  # My property
  # @return {String}
  myProperty: (-> 'blah').property()

However the above is never noticed by codo.

Every few weeks I come back and look at this comment and get really sad for a while.

@luketheobscure the new Codo has pretty extensible structure that you can inherit and override. Fork it, change the way it seeks for classes and you are done.


IOS swift

Hi,
Is there any plan to write the ios part in swift? Will apple deprecate objective-c?

No, there are no plans to do this. We would only undertake it if Apple does deprecate it, I suspect that it will be a number of years before they consider that.


Wrong API endpoint for listUserRepos

In listUserRepos the API called is users/$user/repos. This seems to be the incorrect endpoint and be /user/repos
listUserRepos is documented to have a type parameter that can take the values "all", "public", "private",
"forks", "sources" or "member" which seems to fit more or less with /user/repos. On the other hand, users/$user/repos does not even has the value private or public for the type. I guess there is a problem with the API being called.

The implementation seems to correspond to https://developer.github.com/v3/repos/#list-repositories-for-a-user, feel free to reopen if I'm missing something.


How to use with vuex?

I have a number of sliders I need to have update an object in a vuex store, but am a bit confused about what the best way is to do this.
Say I have an object in my store:
settings: {
   height: 100
   width: 100
   quality: 1000
}

Then I have sliders and a computed property in a component:
<range-slider class="slider" min="1" max="100" step="1" v-model="settings.height">
<range-slider class="slider" min="1" max="100" step="1" v-model="settings.width">
<range-slider class="slider" min="1" max="100" step="1" v-model="settings.quality">

...

computed: {
   ...mapState([
      'settings'
   ])
}

I've tried binding a method on the input of the range-slider:
<range-slider class="slider" min="1" max="100" step="1" v-model="settings.height" @input="updateHeight>

...

methods: {
  updateHeight(el) {
    this.$store.commit('UPDATE_HEIGHT', el.target.value)
  }
}

Which obviously wouldn't work since it's bound to the component itself, not the actual slider input. I also tried binding something to the @change event that's emitted but am just not sure how to get the value attached to the <range-slider>
I've read through this github issue on the vuex repository - Easy two-way binding between v-model and vuex #1084 but it seems like I don't need such a complex (and still immature) solution, I feel like I'm missing something obvious!
Also, thank you for this wonderful component.

Ok, as a quick note, in the end it was very simple:

<range-slider class="slider" min="1" max="100" step="1" v-model="settings.height" @input="updateSettings(settings)">
<range-slider class="slider" min="1" max="100" step="1" v-model="settings.width" @input="updateSettings(settings)">
<range-slider class="slider" min="1" max="100" step="1" v-model="settings.quality" @input="updateSettings(settings)">
...
methods: {
updateSettings: function (payload) {
this.$store.commit('UPDATE_SETTINGS', payload)
}
}

and in my store.js:

mutations: {
UPDATE_SETTINGS (state, payload) {
state.settings = payload
}
}
In my head I was confused about simply being able to pass in the computed var bound to the v-model - it somehow seems like a weird feedback loop, but it works!

Hm, unfortunately it does seem to have a bit of a feedback conflict if bound to @input, so dragging a slider causes strange values to be kept in the store (eg, knob could be dragged all the way to the right, but stored value is actually near the start)


Fix memleak issue of #1050

related to https://github.com/emqx/nanomq/issues/1043

Codecov Report
Base: 42.99% // Head: 42.97% // Decreases project coverage by -0.03% :warning:

Coverage data is based on head (60a8663) compared to base (ababf3b).
Patch coverage: 0.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #438      +/-   ##
==========================================
- Coverage   42.99%   42.97%   -0.03%
==========================================
  Files         119      119
  Lines       35938    35944       +6
==========================================
- Hits        15453    15446       -7
- Misses      20485    20498      +13

Impacted Files
Coverage Δ

src/sp/protocol/mqtt/mqtt_parser.c
20.32% <0.00%> (+0.02%)
:arrow_up:

src/sp/protocol/mqtt/nmq_mqtt.c
0.00% <0.00%> (ø)

src/supplemental/http/http_client.c
19.56% <0.00%> (-2.18%)
:arrow_down:

src/core/list.c
84.61% <0.00%> (-1.29%)
:arrow_down:

src/supplemental/websocket/websocket.c
61.06% <0.00%> (-0.99%)
:arrow_down:

src/sp/protocol/pair1/pair.c
97.83% <0.00%> (-0.62%)
:arrow_down:

src/sp/protocol/bus0/bus.c
94.31% <0.00%> (-0.48%)
:arrow_down:

src/platform/posix/posix_tcpconn.c
74.56% <0.00%> (-0.44%)
:arrow_down:

src/supplemental/http/http_server.c
40.21% <0.00%> (-0.43%)
:arrow_down:

src/supplemental/http/http_conn.c
70.70% <0.00%> (+0.28%)
:arrow_up:

... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


'npm run build' yelds error

When I execute 'npm run build' or 'next build', the following error is displayed:
Module not found: Error: Can't resolve './s/[subcategoryId]'
Environment:
"react-storefront": "^8.17.4",
node: v14.16.0

As I understand, file [subcategoryId].js was deleted in the scope of this commit:
https://github.com/storefront-foundation/react-storefront-starter-app/commit/960db0af7dcc71628ce82f16e65dcaf8cac3fac6

fixed


Type 'import("sap/ui/core/Popup").Dock' is not assignable to type 'typeof Dock' using @sapui5/types: "1.126.0"

OpenUI5 version: 1.126.0
Browser/version (+device/version): not applicable
Steps to reproduce the problem:

Create a sap.m.MessageToast with the "at" property populated
Fill the "at" property with a sap.ui.core.Popup.Dock type variable

What is the expected result? The TypeScript checker does not throw an error
What happens instead? It throws an error
Any other information?

This is an incompatible change of the TypeScript definitions and was introduced in 1.115.0.
The change and how to deal with it, is explained in more detail in the TypeScript release notes for 1.115.
Basically, enums attached to other control or utility APIs are no longer named exports (Dock) but static properties of the default export of the bearing API (Popup.Dock).
The change was done to make static and dynamic imports consistent.

You're right, the generation of the MessageToast.show API is broken. I've created https://github.com/SAP/ui5-typescript/issues/466 as this needs to be fixed in the dts-generator.
The only workaround for now is a type cast (which unfortunately needs to be removed once the issue has been fixed):
  at: Popup.Dock.BeginBottom as unknown as typeof Popup.Dock

As this is not an issue in the OpenUI5 code base, I'm closing this issue here.


Iterate alive components by default

Fixes #53
Also optimizes the iterators a bit by avoiding extra bound checks.
Note: API breaking change. We may want to pack more stuff into the next published release for 0.4.

bors r+


[enhancement] Lasers and shields!

 Here are some little and fast sketches:
Laser turns to the opponent side of the redstone signal

Laser gives output on the opposite side of the laser if a block is destroyed.

Laser breaks blocks

You can color you're laser with dye!
Now, to protect you're ship from being shot, you can install shields that use power when the ship is attacked. When the shield is down, the laser will be able to damage the ship again.

And what purpose should that "Laser" have?
I find it funny that people just shout out "Hey, make a laser" and expect something to happen.

And what purpose should that "Laser" have?
Oh, sorry about that. It should break blocks. Thats it.

ok, after you added soem purpose to your idea, I can see what you wanna acomplish.
But your ideas is based on the assumption that there are free controllable space ships in this mod, which is not the case.
You only have Rockets that fly to the top of the world and then change Dimensions.
While Space combat would be cool, I don't see how it could be realised with the current state of the mod.
The best solution would be adding another mode that adds spaceships as rideable entities, along the lines of Planes from Flans mods.

I used archimedes ships for my flyable space ships, and it worked well. But you cant put lasers on them, though...

Also, this could work interestingly with Suggestion- Weapons+ Tools+ Combat and also Sugestion CC And OC Compat (Since you could control them)
This is just a suggestion!
@Jumit I completely agree with this suggestion BTW!

AR is a peaceful mod and will not include weapons.

It is true this mod is about exploration not combat. Since having combat is super hard to implement.


imagenet don't run on ONNX 13

Hello,
I am having this issue running imagenet. To have the project compile I need ONNX runtime 13 but when running it shutdown with that error message:
The given version [13] is not supported, only version 1 to 10 is supported in this build.
I tried using an older version ex. onnxruntime-win-x64-1.10.0 but it does not compiles:
Severity	Code	Description	Project	File	Line	Suppression State
Error	C2039	'AllocatedStringPtr': is not a member of 'Ort'	capi_test	D:\dev\onnxruntime-inference-examples-main\c_cxx\squeezenet\main.cpp	84
std::optionalOrt::AllocatedStringPtr input_name_;

I am using: onnxruntime-win-x64-1.13.1 and the message comes from: onnxruntime.dll


Recording - Loop not supported

When creating a call using the standard body listed in the API docs:
{
  "bargeInAllowed": true,
  "clientContext": "d45324c1-fcb5-430a-902c-f20af696537c",
  "prompts": [
    {
<EMAIL_ADDRESS>"#microsoft.graph.mediaPrompt",
      "mediaInfo": {
        "uri": "https://cdn.contoso.com/beep.wav",
        "resourceId": "1D6DE2D4-CD51-4309-8DAA-70768651088E"
      },
      "loop": 5
    }
  ],
  "maxRecordDurationInSeconds": 1800,
  "initialSilenceTimeoutInSeconds": 10,
  "maxSilenceTimeoutInSeconds": 2,
  "recordingFormat": "wav",
  "playBeep": true,
  "streamWhileRecording": true,
  "stopTones": [ "#", "11", "*" ]
}

Receive an error 400 due to message: "RecordAction: Loop not supported."
Removing the ,
"loop": 5
From the body resolves this.

The loop parameter has been deprecated.  Instead of using loop, specify the same prompt x 5.  There will be an SDK update in the coming weeks that removes this parameter.


/etc/hostname and hostname different content

Hi,
/etc/hostname and the hostname command should output the same... but it differs....
/ # cat /etc/hostname
localhost
/ # cat /etc/hosts
<IP_ADDRESS>       rkt-1a644196-544f-4ef4-b4ac-c16e5b75111f        localhost       localhost.localdomain
/ #
/ # hostname
rkt-1a644196-544f-4ef4-b4ac-c16e5b75111f
rkt 1.5.1  + /etc/hosts  uuid fix
regards f0

Looking on prepare-app.c - /etc/hosts is only modified file. Content of /etc/hostname for this moment is provided by app image. Maybe we should provide additional link from /proc/sys/kernel/hostname to /etc/hostname if there is no such file in rendered application?
What do you think about this?
/cc @alban @jonboulle

Yeah, we should probably ensure_etc_hostname exists. @lucab wanna take this one too?

@jonboulle  in my opinion , if the --hostname flag is set, the hostname  should be enforced


Sanitycheck: non-existing test case shows up in .xml file.

Run sanitycheck as below to run the test cases under tests/kernel/workq/work_queue_api/. The test case "kernel.workqueue.api" shows in reel_board.xml, which is generated by sanitycheck. But the test case does not exist.
./scripts/sanitycheck -p reel_board --device-testing --device-serial /dev/ttyACM0 -T tests/kernel/workq/work_queue_api/

testcase classname="kernel.workqueue" name="kernel.workqueue.api" time="7.722598"

found offending commit, working on this.


feat(config): support comma-space separated fields

fixes #52
cc @mnogue

Awesome, thank you guys! That was fast!


Update PyPi release

Description
The last release was in December 2020. Ever since, there have been multiple commits pushed to master. I think it's about time to push out a new release.

@Vel1khan Sorry for the delay, we've just released a new version.

No worries, it's all good!


Error following last commit Uncaught TypeError: Cannot read property 'faded' of null

after NOTIFICATION Volume_STORE is sent
MMM-Volume.js:132 Uncaught TypeError: Cannot read property 'faded' of null
at Class.storeVolume (MMM-Volume.js:132)
at Class.notificationReceived (MMM-Volume.js:106)
at sendNotification (main.js:95)
at Object.sendNotification (main.js:498)
at Class.sendNotification (module.js:368)
at Class.notificationReceived (MMM-AI.js:88)
at sendNotification (main.js:95)
at Object.sendNotification (main.js:498)
at Class.sendNotification (module.js:368)
at Class.socketNotificationReceived (MMM-Hotword.js:88)

I think the problem is that your notifications payload is null; i checked for "undefined" but not for null; added pull request to fix the issue

I was on vacation so I couldn’t test or fix it. Thans guys.

following last commit testing right now

Issue is fixed please Closing issue .
Thank you !


Documentation link redirects to crates.io

http://www.rust-ci.org/mohtar/rust-fastcgi/doc/fastcgi/ seems to redirect to http://crates.io/ --- bit confusing!

Seems like rust-ci.org has been shut down. You can generate the docs yourself in the mean time.

Now the link redirects to some junk advertisement website. Maybe it would be a good idea to publish a new version that links to docs.rs instead?

Thanks! I had no idea docs.rs existed

Don't forget the link in Cargo.toml.


fix typo errors

Description & motivation
Sometimes you need to read it 100x before you notice things could be written better...or have missing words altogether 😅 ✌
Pre-release docs
Is this change related to an unreleased version of dbt?

[ ] Yes
[x] No (if you're not sure, it's probably "No")

Removing myself as reviewer :)


Substitute command caused Onivim to become unresponsive

Hello 👋 ,
Version 0.5.9-nightly (0.5.1788)
Steps to reproduce:

:s/a/b/gc

Result:

Editor became unresponsive

Expected Behavior:

Should be able to search and replace occurrences of text with a confirmation prompt for every matching text pattern

I should note that it seems to be the c (confirmation) argument that causes the editor to lock up.

Thanks for logging the issue and the details @Clee681 ! Can confirm the repro - consistently crashes with the c argument. It looks like this is a blocking input path in vim that we need to pull out.

Thanks for logging the issue and the details @Clee681 ! Can confirm the repro - consistently crashes with the c argument. It looks like this is a blocking input path in vim that we need to pull out.


autobind not properly working for child and parent classes

import { autobind } from 'lib/decorators';

class AwesomeClass {

  @autobind
  awesomeMethod() {
    console.log('parent called, AWESOME METHOD');
  }

}

class AwesomeChildClass extends AwesomeClass {

  @autobind
  awesomeMethod() {
    console.log('child called, AWESOME CHILD METHOD');
    super.awesomeMethod();
  }

}

let instance = new AwesomeChildClass();

for (var i = 0; i < 5; ++i) {
  console.log('invoking');
  instance.awesomeMethod();
  console.log('---');
}

The first time, both child and parent messages are logged to the console; the next 4 times, only the parent message is logged. Is this the expected behavior?

Thanks for reporting this! This is definitely not intended, but it's actually surprisingly complex to solve. The only way I know of without creating memory leaks or obtrusively setting extraneous properties on the instance requires the use of WeakMap. I went ahead and implemented it here https://github.com/jayphelps/core-decorators.js/pull/21, take a peak. I'm gonna let it sit for bout a day then come back to this with fresh eyes and try to confirm I'm not missing something.

@hasdavidc fix released as<EMAIL_ADDRESS>Be sure to include a WeakMap polyfill if you support older browsers. Thanks again!

Wow @jayphelps, fantastic turnaround on that. Thanks so much!

@hasRandy You're welcome!

amazing turnaround, quite impressive! just upgraded the npm version (and added a polyfill) and everything worked perfectly - thanks again for your work @jayphelps


occ2vec package: new file size limit request

Hi team! First of all, thanks you for the great work you're doing!
I'm the maintainer of a Python module called occ2vec, which is a Python interface to my research paper occupation2vec: A general approach to representing occupations. The current upload is pretty much a template for another module, but some of the code is ready.
The module is very large, because it requires large embeddings for the entire universe of occupations, job tasks, and occupational attributes (skills, abilities, etc.). This leads to thousands of large vectors from the BERT (RoBERTa) NLP models. Being able to upload these embeddings, the user will not have to re-estimate all these embeddings as it takes days to run on a laptop and the model is quite complicated.
Due to the large size (3.37G), I'm encountering the following error when uploading my package distribution to pypi:
Uploading distributions to https://upload.pypi.org/legacy/
Uploading occ2vec-0.0.13-py3-none-any.whl
  0%|                                                                                | 144k/3.37G [00:00<1:11:47, 840kB/s]
Error during upload. Retry with the --verbose option for more details.
HTTPError: 413 Request Entity Too Large from https://upload.pypi.org/legacy/
Request Entity Too Large

I was reading about new limit requests (https://github.com/pypa/packaging-problems/issues/86) and subsequently found this guide: https://pypi.org/help/#file-size-limit.
Being able to upload this package will, I believe, allow much more researchers and practitioners to benefit from this research and utilize it for new interesting analyses on the labor markets. Many many thanks in advance if the size limit can be increased!
Best,
Nicolaj

Hi, please file an issue here instead: https://github.com/pypa/pypi-support/issues/new?labels=limit+request&template=limit-request.md

Thanks @di, done that.


Vue.js is transferring click from one link  to another

Version
2.6.11
Reproduction link
https://jsbin.com/buxojec/edit?html,js,output
Steps to reproduce

create a Vue app with two links  in the template
one link ("external link") with an href that's hidden by a state variable in the app
another link ("flip the state") that's shown by the opposite state that has a v-on:click handler that flips the state
4, click the "flip the state" link

In case the repro link doesn't work, here's the code:

    external link

    flip the state


Multiple answers

Summary:
Currently you can select multiple answers to a question. I believe @danruff5 submitted a fix for this, if not, please re -assign back to me

We need UI guy to do this.

For any quiz on the FLY app, it is possible to select multiple answers. This is a UI bug - only one answer should be accepted

Hi @rodolfomartinez  this is done see here modified template UI file http://uidev.smegurus.com/fly-app/quiz_question.html you can get updated files named quiz_question.html and  theme.css from here at this ftp.

This works please implement
On Mon, Oct 24, 2016 at 9:33 PM, KPSbuttar<EMAIL_ADDRESS>wrote:

Hi @rodolfomartinez https://github.com/rodolfomartinez this is done see
here modified template UI file http://uidev.smegurus.com/fly-
app/quiz_question.html you can get updated files named quiz_question.html
and theme.css from here at this ftp.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Oinweb/fly-django/issues/136#issuecomment-255912133,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHMFGiE65ERj2akw-cy9UzChsTKw0Z9dks5q3Vx-gaJpZM4KUDZT
.

--
Sincerely,
Rodolfo Martinez
(519)521-3135 /<PHONE_NUMBER>
Skype: rodolfo-reimar
CEO The Shooting Star Press inc.
www.LuchaComics.com
Be sure to follow @LuchaComics !

@KPSbuttar is there a commit for this issue?

@kpsbuttar you previously mentioned that you felt some django issue was present because of use of li in Django code. Can you repost that comment here and see if you can implement a fix?

@bmika @kpsbuttar we need to implement thebUI from here into the app
http://uidev.smegurus.com/fly-app/quiz_question.html

@rodolfomartinez  no commit for this issue this is same not UI issue can be fixed with Django functional coding as i mentioned in recent comment here #115 so for UI fix sample i already did, django should use this UI quiz questions answers format should be input and radio buttons so single answers are recorded not  etc. I hope you getting my point. Thanks!


Not sure why I can't retrieve event camera data

I'm trying to get event camera data following the manual_control.py example, however it doesn't seem to be working and I'm not quite sure why it's not working. It's as if the callback function is not bein called at all. I'm trying to record 100 images with a for loop, however it just quits after 2-3 iterations, without doing anything and skipping over the finally statement which I find confusing.
Here's the script that I'm trying to run:
import glob
import os
import sys
import traceback
from sensor_processing.event_cam.event_cam_processing import *

python_api_dir = 'carla/PythonAPI'
try:
    sys.path.append(glob.glob(f'{python_api_dir}/carla/dist/carla-*%d.%d-%s.egg' % (
        sys.version_info.major,
        sys.version_info.minor,
        'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

    print(glob.glob(f'{python_api_dir}/carla/dist/carla-*%d.%d-%s.egg' % (
        sys.version_info.major,
        sys.version_info.minor,
        'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
except IndexError:
    print('Failed')
    pass
from carla import ColorConverter as cc

import random
import time

def main():
    actor_list = []
    client = carla.Client('localhost', 2000)
    client.set_timeout(2.0)
    world = client.get_world()
    blueprint_library = world.get_blueprint_library()
    bp = random.choice(blueprint_library.filter('vehicle'))
    car_transform = world.get_map().get_spawn_points()[156]
    waypoint = world.get_map().get_waypoint(car_transform.location)
    vehicle = world.spawn_actor(bp, car_transform)
    actor_list.append(vehicle)
    print('created %s' % vehicle.type_id)
    #vehicle.set_autopilot(True)
    camera_bp = blueprint_library.find('sensor.camera.dvs')
    camera_transform = carla.Transform(carla.Location(x=1.5, z=2.4))
    camera = world.spawn_actor(camera_bp, camera_transform, attach_to=vehicle)
    print(camera)
    actor_list.append(camera)
    print('created %s' % camera.type_id)
    try:
        i = 0
        for i in range(100):
            camera.listen(lambda image: event_cam_callback(image, just_events = False, image_events = False, save = True, save_dir = '\\data\\event_cam'))

            print(i)
            waypoint = waypoint.next(1)[0]
            vehicle.set_transform(waypoint.transform)
    except Exception as e:
        print(e)
        traceback.print_exc()
    finally:
        print('destroying actors')
        camera.destroy()
        client.apply_batch([carla.command.DestroyActor(x) for x in actor_list])
        print('done.')

if __name__ == '__main__':

    main()

And here's the callback function:
def event_cam_callback(raw_events, just_events = True, image_events = False, save = False, save_dir = None):
    # Example of converting the raw_data from a carla.DVSEventArray
        # sensor into a NumPy array and using it as an image
    print('event cam callback')
    dvs_events = np.frombuffer(raw_events.raw_data, dtype=np.dtype([
        ('x', np.uint16), ('y', np.uint16), ('t', np.int64), ('pol', np.bool)]))

    print(len(dvs_events))
    if just_events and save:
        saved = np.save(Path(save_dir+'/raw/raw_{}.npy'.format(raw_events.frame)), dvs_events)
        print(saved)
    if image_events:
        dvs_img = np.zeros((raw_events.height, raw_events.width, 3), dtype=np.uint8)
        print(len(dvs_img))
        # Blue is positive, red is negative
        dvs_img[dvs_events[:]['y'], dvs_events[:]['x'], dvs_events[:]['pol'] * 2] = 255
        if save:
            saved = np.save(Path(save_dir+'/img/img_{}.npy'.format(raw_events.frame)), dvs_img)
            print(saved)

    if just_events and image_events:
        return dvs_events, dvs_img

    if just_events and not image_events:
        return dvs_events

    if image_events and not just_events:
        return dvs_img

def do_nothing():
    pass

When I use do_nothing it fails as well, however if I get rid of camera.listen altogether it's fine, so I must be doing something wrong when trying to retrieve the event data.

Your script stops before any data from the camera is received, I suppose. Use time.sleep or something like that.
camera.listen(lambda image: event_cam_callback(image, just_events = False, image_events = False, save = True, save_dir = '\\data\\event_cam'))
try:
        i = 0
        for i in range(100):
            print(i)
            waypoint = waypoint.next(1)[0]
            vehicle.set_transform(waypoint.transform)
       time.sleep(5.0)

Also, take some pause between set_transform. You teleport the vehicle too fast so the sensor in example above will capture only the last frame.

Your script stops before any data from the camera is received, I suppose. Use time.sleep or something like that.
camera.listen(lambda image: event_cam_callback(image, just_events = False, image_events = False, save = True, save_dir = '\\data\\event_cam'))
try:
        i = 0
        for i in range(100):
            print(i)
            waypoint = waypoint.next(1)[0]
            vehicle.set_transform(waypoint.transform)
       time.sleep(5.0)

Also, take some pause between set_transform. You teleport the vehicle too fast so the sensor in example above will capture only the last frame.

hi I can not recieve image as out put of: Camera.listen()
would you help me?


🐛 | Spotify Name from Playlist not showing in Home View

Bug
What I did
Linked a Card to a Spotify Playlist over website (iris)
What happened
Linking is successfull but Name is not shown in the Home view
I've made a Screenshot from this. The Top Spotify List is marked with the yellow box from me. The second spotify is without that mark.

I expected this to happen
Name shown in Home View
Further information that might help

Software
Base image and version
2020-02-05-raspbian-buster-lite
Branch / Release
master
Installscript
scripts/installscripts/buster-install-default.sh
Hardware
RaspberryPi version
4b
RFID Reader
Neuftech
Soundcard
Hifiberry MiniAMP
Other notable hardware

I did some debugging. The output in func.php is not the problem. The title.txt file is always empty for Spotify Albums.

I did some debugging. The output in func.php is not the problem. The title.txt file is always empty for Spotify Albums.

You are right. I've just added a text in the title.txt and this title is shown in the Home-View!
So the title.txt is not correct created during creation of Spotify-Playlist

cover.jpg is also empty (0 byte). Which part of the codebase is responsible for title and cover extraction? Thanks!

I have the same problem. But I can't edit title.txt or change the cover.jpg when accessing it via windows explorer over the network. I use the user pi to access my pi over the network and already added the user pi to the group www-data. But I still can't edit the files.
Is there a way how I can edit the files over the network?

Is there a way how I can edit the files over the network?

you can edit it via ssh

Thank you. I feared that would be the answer.
I found another way which also works fine. I create the right title.txt and cover.jpg on my computer and upload them via web interface in the right directory.

-rwxrw-rw- 1 pi pi    27 Sep 15 21:12 title.txt
These are the permissions set to a title file in one of the audiofolders. Do these look correct, especially in the context that mopidy can edit that file?

I experience the same bug. In my case the file has the following setting:
-rw-r--r-- 1 www-data www-data  0 Mar 16 21:14 title.txt
What's strange is that from code here, if I remove the title.txt, it should actually print the folder (or "basename") in html. Again, not happening.
I also looked into inc.viewFolderTree.php where the title.txt is written - If this is actually working, I would suggest to add the interpret since it would only show the album title otherwise.

Same to me with version 2.0 rc7. title.txt and cover.jpg are empty, file permissions are -rw-r--r-- owner is www-data.

Found the issue: file_get_contents returns HTTP code 400. I'm not a PHP developer but after some googlin' I got the right clue from here:
https://stackoverflow.com/a/43750037
So we need to set a user agent at least for this request.
If anybody could tell me where to place such a setting I would make a pull request with the changes!

Hello everybody, on the current version of phoniebox (2.3 - 2425890), this issue is present again.


Some easy improvements

Hello here are some easy features that I think would improve everyday use:
1- It would be great to add a menu in the "insert" as "advanced HTLM" with some of these:
- SOURCE :

- RECTANGLE BORDER :

- TEXT SPACING
2- Adding a command to "Reset all variables" (to ensure you are not reusing old variables in different chapters for example)
3- It would be great if Calcpad would remember our setting preferences such as unchecking "Substitue" or "round to 3".
4- Perhaps I am missing something simple but all the commands in Insert=>Drawing/SVG does not seems to output anything

Thank you again for the great work!

@jgagnonNT change the #show to #val

@jgagnonNT Thank you for sharing your suggestions. Saving preferences for the next time would be useful.
About SVG, you have to insert the drawing first from Insert->Drawing/SVG->Drawing. Then, you have to put the shapes inside the drawing (between starting svg and closing /svg tags:

@Proektsoftbg why the SVG does not export to word?

@hildebrandopsj It is because Word does not support SVG images. It is the same if you try to copy the image from the Html output. We will need to write a converter for it, but this is a huge task. Also, I still haven't find a decent opensource library for that except Aspose, which is paid.

2- Adding a command to "Reset all variables" (to ensure you are not reusing old variables in different chapters for example)

@jgagnonNT
Next feature request will be "Is there any way to don't reset some varialbes?"
It seems that name spaces will be better:
"Block 1
#namespace ns_1
    x= 10
#namespace end
'there no variable x
'but exists: 'ns_1::x
"Block 1
#namespace ns_2
    'there no variable x too
    'but exists: 'ns_1::x
#namespace end


Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue
Installer hash mismatch.
Brief description of your issue
Installer hash mismatch
Steps to reproduce
Manifest hash is: A005C875BFD225F21435DE50EF54BD9C9EB6CED9F817E28BF4FA130C0B6F8ED8
Actual behavior
Manifest hash is: A005C875BFD225F21435DE50EF54BD9C9EB6CED9F817E28BF4FA130C0B6F8ED8
Expected behavior
Manifest hash is should be: 3596772CC11156E989B35437BC730A33FEF1D853E661D93D8882C53A8F8B672D
Environment
Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Screenshots and Logs
No response

Same issue is happening again :(


Option for HTML5 Mode urls?

We love using NWS because it is so lightweight, but one feature we really need is the ability to have a fallback file in case a static path does not exist. If this feature were implemented, we could then use NWS with our SPA. As it stands now, paths like the following break:
http://localhost:3030/project/project_1486113493_50a4c052-ca48-4fce-8f23-46753786181c/report/inspection_albano_C0D66862-A683-4879-93FE-E2B58E539DD4/fill?t=2WbxQ8
Would this feature be easy to implement?

It could possibly be implemented with something like this: https://www.npmjs.com/package/express-history-api-fallback
I'd be willing to accept a pull request.


drop pre 24.05 patch

4.0 seems to retain compatibility with 3.11 so I'll leave it as is for now and just drop the outdated patch.

@mergify queue


Issue in referencing definitions from the same module  when using submodules.

Prior to https://github.com/freeconf/yang/issues/50,  the yang files  mentioned below were getting loaded succesfuly without any errors.    But after https://github.com/freeconf/yang/issues/50,    the following error is thrown.
module_core/submodule_1/root-list-submodule1/leaf-B - typedef new-type-submodule2 not found
As per RFC7950 section  ,   When an external module referece from an imported module is used, then  we must use prefix followed by ":" , BUT  If there are  references to definitions in the same local module or submodules ,  then it is not mandatory that we use prefix followed by ": "   to refer to local referecnes within the module of submodule.   We  MAY or MAY  NOT use ":"  .   So, in case of included submodules,  we should support  referencing  in both ways by a) by using ";"  and  b)  without using ":'

Previous to  https://github.com/freeconf/yang/issues/50, we were able to  load below yang files  succesfully.  Is it possible to maintain the same behaviour now too?
module_core.yang
module module_core {

	namespace "urn:netcracker:params:module_core";
	prefix module_core;
	yang-version 1.1;
	description "This is main Module";

	include submodule_1;
	include submodule_2;

}

submodule1.yang
submodule submodule_1 {

	yang-version 1.1;
	description "Submodule-1 with list";
	belongs-to "module_core" {
		prefix "module_core";
	}

	list root-list-submodule1 {
		leaf leaf-A {
			type string;
			default "Success";
		}
		leaf leaf-B {
			type new-type-submodule2;
		}
		uses the_only_group;
	}

	grouping the_only_group {
		leaf leaf-from-group {
			type new-type-submodule2;
		}
		leaf-list leaf-list-from-group {
			type string;
			default "ok";
		}
	}
}

submodule2.yang
submodule submodule_2 {

	yang-version 1.1;
	description "Submodule-2 with typedef";
	belongs-to "module_core" {
		prefix "module_core";
	}

	typedef new-type-submodule2 {
		description "New type definition";
		type uint16 {
			range "10 .. 2000";
		}
		default 100;
		units parrots;
	}
}

I'm taking a look
On Thu, Jun 15, 2023, 3:28 AM David Abraham Mathews <
@.***> wrote:

Prior to #50 https://github.com/freeconf/yang/issues/50, the yang files
mentioned below were getting loaded succesfuly without any errors. But
after #50 https://github.com/freeconf/yang/issues/50, the following
error is thrown.
module_core/submodule_1/root-list-submodule1/leaf-B - typedef
new-type-submodule2 not found
As per RFC7950 section , When an external module referece from an imported
module is used, then we must use prefix followed by ":" , BUT If there are
references to definitions in the same local module or submodules , then it
is not mandatory that we use prefix followed by ": " to refer to local
referecnes within the module of submodule. We MAY or MAY NOT use ":" . So,
in case of included submodules, we should support referencing in both ways
by a) by using ";" and b) without using ":'
[image: image]
https://user-images.githubusercontent.com/11210436/246027745-0c5cf12a-6eb9-44a2-854c-5762ab1b9684.png
Previous to #50 https://github.com/freeconf/yang/issues/50, we were
able to load it succesfully. Is it possible to maintain the same behaviour
now too?
module_core.yang
module module_core {
namespace "urn:netcracker:params:module_core";
prefix module_core;
yang-version 1.1;
description "This is main Module";
include submodule_1;
include submodule_2;
}
submodule1.yang
submodule submodule_1 {
yang-version 1.1;
description "Submodule-1 with list";
belongs-to "module_core" {
prefix "module_core";
}
list root-list-submodule1 {
leaf leaf-A {
type string;
default "Success";
}
leaf leaf-B {
type new-type-submodule2;
}
uses the_only_group;
}
grouping the_only_group {
leaf leaf-from-group {
type new-type-submodule2;
}
leaf-list leaf-list-from-group {
type string;
default "ok";
}
}
}
submodule2.yang
submodule submodule_2 {
yang-version 1.1;
description "Submodule-2 with typedef";
belongs-to "module_core" {
prefix "module_core";
}
typedef new-type-submodule2 {
description "New type definition";
type uint16 {
range "10 .. 2000";
}
default 100;
units parrots;
}
}
—
Reply to this email directly, view it on GitHub
https://github.com/freeconf/yang/issues/54, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAACA7TCE7OOGOBD6Z6NWV3XLK2SJANCNFSM6AAAAAAZHNE2HY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

i found the problem, hopefully this will work for you
https://github.com/freeconf/yang/commit/ba7fb8862475a2b2a1a9f81dd7cace615046e295


add supporting divider color for PopupMenuDivider

supporting divider color
Description
as having issue for changing Divider color, i added supporting change divider color for PopupMenuDivider
Related Issues
Fixes https://github.com/flutter/flutter/issues/68176

@googlebot I signed it!

This will also need tests to make sure it is working and will not break in the future.

+1 for tests.  Let me know if you need help getting started with the test, I can find a similar example.

@justinmc
how can i add test? i get Tests passed successful
00:03 +1: All tests passed!

test code:
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/material.dart';
import 'package:hiveTube/my_divider.dart';

void main() {
  testWidgets('description', (WidgetTester tester) async {
    await tester.pumpWidget(MyDivider());

    final menu = find.byIcon(Icons.more_vert);
    expect(menu, findsOneWidget);

    await tester.tap(menu);
  });
}

sample code:
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() {
  SystemChrome.setSystemUIOverlayStyle( SystemUiOverlayStyle(
    statusBarColor: Colors.white,
    statusBarIconBrightness: Brightness.dark,
    statusBarBrightness: Platform.isAndroid ? Brightness.dark : Brightness.light,
    systemNavigationBarColor: Colors.black,
    systemNavigationBarDividerColor: Colors.grey,
    systemNavigationBarIconBrightness: Brightness.light,
  ));

  runApp(MyDivider());
}

class MyDivider extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
        appBar: AppBar(
          elevation: 0.0,
          title: Row(
            children: <Widget>[],
          ),
          actions: [
            PopupMenuButton<String>(
              onSelected: null,
              icon: const Icon(Icons.more_vert),
              color: const Color(0xFF32313C),
              elevation: 5.0,
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(15.0)),
              itemBuilder: (BuildContext context) {
                return {
                  '1',
                  '2',
                  '',
                  '3',
                  '',
                  '4',
                  '',
                  '5'
                }.map((String choice) {
                  choice.isEmpty?PopupMenuDivider(
                      height: 1,
                      color: Colors.grey.withOpacity(0.5),
                  ):
                  PopupMenuItem<String>(
                    value: choice,
                    child: Container(
                        width: 150.0,
                        child: const ListTile(
                          contentPadding: EdgeInsets.zero,
                          title: Text('Title'),
                          leading: Icon(
                            Icons.add,
                            color: Colors.white,
                          ),
                        )),
                  );
                }).toList();
              },
            )
          ],
        ),
        body:  const Text('Hello World'),
        floatingActionButton: FloatingActionButton(
          onPressed: () {},
          child: const Icon(Icons.add),
        ),
      ),
    );
  }
}

Sorry for the late reply.  You'll need to add a new test to popup_menu_test.dart.
I think you can just pump an app with a PopupMenuDivider with a specific color, then find it find.byType(PopupMenuDivider) and expect that the color property matches your color.

@MahdiPishguy  I think the other properties ( like: thickness,indent,endIndent) also can add to the  PopupMenuDivider.

@MahdiPishguy Are you still able to help us get this PR merged?  Let me know if you need any more specific help with the tests or anything.

@MahdiPishguy Are you still able to help us get this PR merged? Let me know if you need any more specific help with the tests or anything.

Hi, i updated test case file in this repository, but i'm not sure thats correct or not, could you check and help me how can resolve that if its not correct? i don't have good experience about pull requests
thanks in advance

Sure, no worries for the PR inexperience.
Do you mind committing and pushing your code so that I can see it?  Otherwise the main idea of how to test this is in the comment I posted above https://github.com/flutter/flutter/pull/68189#issuecomment-714841749.

@justinmc thanks a lot bro, i updated this file and i added DividerColor into that
https://github.com/flutter/flutter/pull/68189/files#diff-09659fb170f9587b659d8df7b02282856e629a0e886087028c47a3ad0502009e
also i added test in this file
https://github.com/flutter/flutter/pull/71708/commits/aa88c1033f9c412b9c9e6045745705222631331d
and i added test case in this

Can you push those commits to this branch here so that I can see the changes in this PR?  It looks like you're using branch master.

@justinmc excuse me, which branch is your meant?
i attach screen shot of flutter branches here

This PR is based on the master branch on the remote git@github.com:MahdiPishguy/flutter.git.  So if you make the changes that you're talking about locally on your master branch, then push to that remote, then we should see the changes here.  It might look something like:
git status and/or git log to make sure that you see all of your changes.
git push origin master if your origin remote is git@github.com:MahdiPishguy/flutter.git.
You can check your remotes with git remote -v if needed.

@MahdiPishguy Friendly reminder about this PR.

Hi @MahdiPishguy, this PR has not been updated for a while, and it is not in a state for code review, so I am going to close it for now. If you would like to continue working on this, feel free to re-open. Thank you for the contribution!


getting langflow running on Windows

Discussed in https://github.com/logspace-ai/langflow/discussions/41

Originally posted by scott------ March 18, 2023
after running pip install langflow and watching that complete successfully I try:
C:\Users\Scott>langflow
'langflow' is not recognized as an internal or external command,
operable program or batch file.
I CD into the site-packages langflow_backend and run:
C:\Users\Scott>cd C:\Users\Scott\AppData\Roaming\Python\Python310\site-packages\langflow_backend
C:\Users\Scott\AppData\Roaming\Python\Python310\site-packages\langflow_backend>python main.py
INFO:     Started server process [13420]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:5003 (Press CTRL+C to quit)
I click on the link and the page displays:
{"detail":"Not Found"}
What am I missing here :-)

python -m langflow

Works!   :-)


Error: Unable to access jarfile flippertoproxmark3andback-v1.0.3.jar

Putting " java -jar flippertoproxmark3andback-v1.0.3.jar convert "E_unlk_1.nfc" export "proxmark3-dump.json"
returns
Error: Unable to access jarfile flippertoproxmark3andback-v1.0.3.jar
All files are in the same locations, most recent of java is installed, tried power shell, CMD and win+R and nothing happens, the .nfc is a ultralight ev1 it does have a password but it should be unlocked and I do have the password for it,
what am I doing wrong, could the usage have some iamges attached to show the instructions visualy ?
is there any way to take the ultralight EV1 data from my flipper and write it to a new blank EV1 card ?

I also tried both codes on the readme page and both options returm the same error

Ok I will look into it when I get the time, also I will include screen shots. And have you made sure the folder your in on terminal has the jar file in it? Dumb question on my part but thought I'd check.

I belive so yes, I'll have a look and see.

I did have a path issue and iv sorted it but now this is what is shown, issue with java versions ?
C:\Users(my username) \Documents\Flipper Zero\NFC_01\xcon\New folder> java -jar flippertoproxmark3andback-v1.0.3.jar convert "E_unlk_1.nfc" export "proxmark3-dump.json"
Exception in thread "main" java.lang.UnsupportedClassVersionError: flippertoproxmark3andback/NfcDumpConverter has been compiled by a more recent version of the Java Runtime (class file version 64.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

or
java -jar flippertoproxmark3andback-v1.0.3.jar convert "Elvi_unlk_1.nfc" | "proxmark3-dump.json" export "T1.json"
'"proxmark3-dump.json"' is not recognized as an internal or external command,
operable program or batch file.

Weird I'm going to test it on my end real quick now that I'm in the place to, this uses java 20 by the way

Your completely right it isn't accessable

I'm going to reexport the jar again and test if that one works

thanks for the note about the java version, turns out i wasn't using java 20, followed a old download link to the java site, serched for java 20, found https://www.oracle.com/java/technologies/downloads/#jdk21-windows site for java 21, tried again in CMD promt,
C:\Users(my username) \Documents\Flipper Zero\NFC_01\xcon\New folder> java -jar flippertoproxmark3andback-v1.0.3.jar convert "E_unlk_1.nfc" export "proxmark3-dump.json" and got
convert
E_unlk_1.nfc
export
proxmark3-dump.json
Convert!
E_unlk_1.nfc!
NFC!
RFIDCard!
MifareUltralight!
0004030101000B03
20
MFU11
Export!
proxmark3-dump.json!
so i think it's an issue with java version and the .jar file combined

Actual I got it working right now, I will submit the screenshot, This is on verison 20.0.1 of java.

Cool I'm going to say it's good I'm just going to add a note about the version and include the how to screenshot

yeah I think it was java versions on my end, I used the old site https://www.java.com/download/ie_manual.jsp and it didnt work but with https://www.oracle.com/java/technologies/downloads/#jdk21-windows it worked, thanks for the fast response and help

No problem now I know I should add a note to the read me


Support "import" statement in module interface files.

Description
I'm using MSVC 2022 with /std:c++20.
I'm trying to import single_include version 3.10.5 into my module interface file (*.ixx).
import <json.hpp>;

However, I am receiving an error.
json.hpp(18037,17): error C2976: 'nlohmann::adl_serializer': too few template arguments
Including the file in the global module fragment does work:
module;
#include <json.hpp>
export module MyModule;
...

However, exporting only nlohmann::json with a using statement produces errors about dependent types, so I would like to export the whole import.
export import <json.hpp>;

Reproduction steps
Try to import json.hpp into a module interface file.
Expected vs. actual results
Does not compile.
Minimal code example
No response
Error messages
`json.hpp(18037,17): error C2976: 'nlohmann::adl_serializer': too few template arguments`

Compiler and operating system
MSVC 2022
Library version
3.10.5
Validation

[ ] The bug also occurs if the latest version from the develop branch is used.
[ ] I can successfully compile and run the unit tests.

What is line 18037 in your version?  I downloaded the json.hpp from that tag and it's a break in this constructor, which makes no sense.
/// @brief create a JSON value from an existing one
/// @sa https://json.nlohmann.me/api/basic_json/basic_json/
template < typename BasicJsonType,
           detail::enable_if_t <
               detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int > = 0 >
basic_json(const BasicJsonType& val)

That constructor is on line 18050 for me. The constructor right above it makes use of JSONSerializer.
I think the error may be coming from the forward declaration of basic_json on line 3353.
...
         template<typename T, typename SFINAE = void> class JSONSerializer =
         adl_serializer,
         class BinaryType = std::vector<std::uint8_t>>
class basic_json;

struct adl_serializer;

Also had the same issue, both with header units and modules (VS 2022).
If i provide second argument to adp_serializer as void cl.exe crashes....

Same here, on Visual Studio 2022 preview.

FYI, PR #3518 is failing CI because of the same error message in a different context (and on older MSVC compilers). I haven't looked into it any further because I'm not actively seeking to have that PR merged at this time, but it might be worth reconsidering if it can incidentally fix this issue.

Maybe related to #3974 and fixed by #3975.


Skrollr + chrome dev tools causing page to not scroll when emulating touch

Not really looking for a fix here since this is a google problem and not a skrollr problem. Has anyone come across this? Is there a quick fix?

I usually have to turn mobile emulation off, refresh the page in desktop mode, and then turn emulation back on—then it works. Refreshing in emulated mode disabled scrolling for me too.

This happens to me without emulating touch, just regular ol Chrome with dev tools open.  45.0.2454.15 beta (64-bit)

I'm having the same issue as @hrag. If I close the dev tools, scrolling comes back.


Unable to add Twitter Developer RSS feed

Hi! I am trying to add Twitter Developer Announcements RSS feed that they reference here: https://twittercommunity.com/c/announcements/22.rss
When adding it to NetNewsWire as a web feed I get that it is unable to find the feed.
The URL is working, so I am not sure if the issue is on the app's or Twitter's side.

This URL is returning a 403 Forbidden response code with a message in the body that says, "Crawler is not allowed!". They probably are whitelisting the User Agent string and don't like the NetNewsWire one.

I've posted a feedback to Twitter about their developer portal. There isn't anything more we can do about this. We just have to wait for the Twitter to fix it on their end.
https://twitterdevfeedback.uservoice.com/forums/930250-twitter-api/suggestions/44588205-allow-rss-readers-to-read-the-rss-feed

Thank you very much for looking into this. I never had an issue with adding a feed to NetNewsWire, so I assumed that Twitter is the problem. Well let's hope they change this.