Commit tracking

It would be great that Wakatime could track commits. I'd love to see how much time I spend on each task on my projects. What do you think ?

This is now available on the site by clicking the "commits" link on a project's page.

Sorry to comment on an old issue - was support for tracking commits via local logs ever added? Thanks

It seems that the tracking time assigned to each commits doesn't reflect the sum of the coding times of each files added to the commit but rather the total of the coding time of the project since the last commit.
It is correct only if you code only on the files you commit between each commits and if your commit contain all the files that you have worked on.
The logic should be:
Get the sum of the coding time of the files added to the commit since the last time they was committed.

@J3m5 you're correct, that's been a limitation of commit times. We need to only add time from files contained in a commit, and also support branches other than master.

@alanhamlett It would be great if it were implemented, it would allow us to track the time we spend on specific features and then use it to invoice out clients with the help of the API.
Even if it's limited to the master branch, it would be a good start.

Hi @alanhamlett, I've stopped my subscription because of this missing functionality.
We really need to track the time spend on commits related to certain issues based on customer quotes.
Could you allocate some time for it please?
Thank you

We're working on improving this. To start, we've added support for multiple branches other than master.

Hi. I would like to, also, be compatible with partial commits.
For example, I work 3 hours but I make multiple commits when I finish a stable update. I make 3 commits and I get:

Typo in README.md (3h)
Improve UI: page1.html + pages.scss files (0s)
Improve speed of api.js (0s)

Instead of expected:

Typo in README.md (10s)
Improve UI: page1.html + pages.scss files (2h)
Improve speed of api.js (1h)

@nelson6e65 This ties in with what I was saying there, the time is calculated by adding the sum of the last coding time without taking into account each individual files of each commits.
It would only works if we would code only in the files contained in each commits and push each commits after it's finished, sequentially.
It's a first, simple and naive approach that I hope will be improved soon.

Any news @alanhamlett ?

We've refactored commits and how they're associated with authors' corresponding WakaTime accounts, which was the first step. Next we're adding a filter, to match files from commits with corresponding WakaTime project files. The new formula will be the default, and we might have the ability to toggle between the old and new ways.
Regarding ETA, I don't have a release time yet since we're focused fully on wakatime-cli rewrite into Go for all the plugins.

Another question is what to do with time from files not in a commit. How long does that time wait to be associated to a commit?

Isn't that time already stored indefinitely ?
Currently, we can know how much time we code in any file at any date, no ?
I don't know how it works internally, but I guess you would compute the time of the commit by retrieving the date of the last time the file was committed if it was and query the time based on that date until the current commit.

retrieving the date of the last time the file was committed if it was and query the time based on that date until the current commit

Yep, but that's an expensive query to be running for such a long time range. To have to run that query on every file in a commit could take a long time. That's why we have to decide a maximum time range for the query, for ex: if you edit a file but don't commit the change until a year later then the commit shows no time for that file.

Ok, I see.
Another solution could be to store a row per file per branch and per commit ( when it has been commited).
I don't know if it's already the case, but it didn't look like it the last time I checked the API.
It would increase the database size and the amount of updates but the queries
would be much less costly as the time would be already computed and the computation can be done only each time it is requested and not continuously (lowering the amout of updates).
I don't know what database you are using but I  materialized views would be good fit for this kind of feature.

We mainly use Postgres, S3, SSDB, and Redis. Time per commit is long term cache data, so it goes into SSDB.

Thinking through matching time spent per file to the diff of commits, it still breaks down when two commits change the same file. I think the only way to get accurate time spent per commit is use one branch per feature. Then always commit and switch branch instead of stash.

Thinking through matching time spent per file to the diff of commits, it still breaks down when two commits change the same file. I think the only way to get accurate time spent per commit is use one branch per feature. Then always commit and switch branch instead of stash.


NWPS-124 - Newsletter

Hi @sankar-shunmuga / @adaMiclos - this is for the backend piece only. The JS validation is being PR'd seperately.

Thatnks for the review San, discussed with team and wer're going for global valuelists for now.


typo: Dyanamic -> Dynamic

Also added code fence language

@nschonni Thanks! We'll get your fixes merged.


S6+ [Story] Relocate LDAP delta sync from outbound coroutine to a new inbound coroutine

I inadvertently removed the inbound delta sync from the outbound queue processor's coroutine.
It should not be there. Coroutines run their operations synchronously. And inbound sync in the outbound coroutine will block it.
Create a separate coroutine dedicated to processing inbound messages and add the function there.

Increasing size on this as it is taking more than a day to complete.


dev branch todo's

This is relation to https://github.com/galaxyproject/cloudlaunch/issues/49 for implementing the new launcher. This branch is based on the following stack: Django, Django Rest Framework, Django Social Auth, Celery. The app is intended to supply a REST API without an embedded UI (the UI will be a developed as a separate project to consume the API). The following is a fluid list of current tasks:

[ ] Define the base app models
[ ] Add a Celery task queue
[ ] Decide if we want to use DRF-Nested-Routers for nicer URls
[ ] Define the following base API endpoints
/applications
/deployments
/infrastructure

Celery 4.0 will officially support Python 3.5; the 4.0 is at RC1 now so as we move along, it hopefully gets released but it's something to keep in mind.

Slugs vs IDs for Resources - I guess we can decide on this based on the type of resource? Probably based on whether the user will want to understand/remember the slug or not. (background tasks could use the id for example)
DRF-nested-routers - I guess we are a yes on this?


Merge some menus on admin panel

won't it be UI brokenable if admin menu be vertical?

vertical

done


is this project dead?

Last commit was 2 years ago, last release was 3 years ago.
Since this project is very important to the python ecosystem, would you please transfer ownership to an entity willing to maintain it?

while there has not been a feature, just a couple housekeeping commits in the past 9 months, when a severe issue with new pytest release arose, it was resolved within ten days of reporting.
I wouldn't call it dead, but definitely in maintenance stage of its life-cycle ;)


[hardening] [java] jdbctogcs

For RDBMS, hardening goal can be 100GB

I would like to work on this issue. Please assign it to me.

Successfully resolved.


Update README.md

Symbiont company is defunct
Helium pivoted from haskell to erlang then rust for some time

Thanks for the update!


Can we remove tablesorter.js from Robot Framework 5.0

I would like to know if there is a way to remove tablesorter.js and still make Robot Framework 5.0 work without issues.
I am okay if the sorting functionality in report.html does not work anymore.

Sonatype Nexus Vulnerability Scanner identifies tablesorter.js as having copyleft license.

It's easiest for you to test it yourself.

According to the docs tablesorter is dual licensed, MIT and GPL, so there shouldn't be any issues with it.

Thanks for the quick turnaround.
I would prefer not removing tablesorter if at all possible.
The docs say I can pick one of the licenses. Is there a way to do this?


ng-inspector for AngularJS makes my angular app crashes on latest Chrome version

After upgrading my Google Chrome stable channel today, my AngularJS application (1.4.x) crashed due to have this plugin activated.

Chrome version Version 42.0.2311.90 (64-bit).
OS X 10.10.3.

Directives weren't wrongly evaluated when injected to the module core of Angular, throwing the following error:
Error: [$injector:itkn] Incorrect injection token! Expected service name as string, got function () http://errors.angularjs.org/1.4.0-beta.5/$injector/itkn?p0=function%20()     at REGEX_STRING_REGEXP (angular.js:68)     at Object.invoke (angular.js:4245)     at angular.js:6600     at forEach (angular.js:328)     at Object.<anonymous> (angular.js:6598)     at Object.invoke (angular.js:4260)     at Object.enforcedReturnValue [as $get] (angular.js:4113)     at Object.invoke (angular.js:4260)     at angular.js:4078     at Object.getService [as get] (angular.js:4219)
Confirmed after deactivating the plugin my app bootstrapped again without any other issues.

Hey @davidpelayo, apologies for the troubles. Do you have a link to a publicly accessible version of your app for us to attempt to replicate with?
If not, would it be possible for you to attempt to build a plnkr that we can use to replicate?

Additionally, what version of ng-inspector are you running?

Hey, just wanted to report I encountered the same issue straight away this morning. Looks like this extension was updated yesterday, 0.5.9. Deactivating the plugin fixes the issue.
My app isn't public. For what it's worth, it's using Angular 1.3.8 with RequireJS.
Chrome version Version 42.0.2311.90 m

@pherrmann could you please paste the error message you got in the console?

For reference: https://docs.angularjs.org/error/$injector/itkn

Sure, there's many instances of the following error for different directives on a particular screen. Here's a couple...
Error: [$injector:itkn] Incorrect injection token! Expected service name as string, got function ()
http://errors.angularjs.org/1.3.8/$injector/itkn?p0=function ()
at REGEX_STRING_REGEXP (angular.js:63)
at Object.invoke (angular.js:4167)
at angular.js:6482
at forEach (angular.js:323)
at Object. (angular.js:6480)
at Object.invoke (angular.js:4182)
at Object.enforcedReturnValue [as $get] (angular.js:4035)
at Object.invoke (angular.js:4182)
at angular.js:4000
at Object.getService [as get] (angular.js:4141)

Error: [$injector:itkn] Incorrect injection token! Expected service name as string, got function globalToolbar($window){
return
http://errors.angularjs.org/1.3.8/$injector/itkn?p0=function globalToolbar(%24window){
        return
at REGEX_STRING_REGEXP (angular.js:63)
at Object.invoke (angular.js:4167)
at angular.js:6482
at forEach (angular.js:323)
at Object. (angular.js:6480)
at Object.invoke (angular.js:4182)
at Object.enforcedReturnValue [as $get] (angular.js:4035)
at Object.invoke (angular.js:4182)
at angular.js:4000
at Object.getService [as get] (angular.js:4141)

@pherrmann thanks a lot! Would it be possible for you to paste the code for one of the directives? You can remove all the controller code if it's sensitive to your client/company, and would be a great help for us to solve this bug and write a test to avoid regressions in the future.

Another user had the problem, and tracked down the issue: http://stackoverflow.com/questions/29653779/angular-itkn-error-caused-by-directives-defined-with-function-outside-array/29666410#29666410
Working on this now.

I rolled back on the directive factory annotation bit from Service.js, so strict-di with a non-annotated directive will break the extension again. In the end I couldn't reproduce this issue without removing the try…catch block around the .invoke() call.
I'm terribly sleepy, and still got a lot of work to do before I can hit the sack, so I'll continue to look into this later.

@rev087 Looks like you discovered the issue, but here's an example directive.
define([
'directives/directivesModule'],
function(directivesModule) {
'use strict';
directivesModule.directive('globalToolbar', globalToolbar);
globalToolbar.$inject = ['$window'];

function globalToolbar($window){
    return {
        restrict: 'AE',
        controller: controller,
        controllerAs: 'gToolbar',
        bindToController: true,
        replace: true,
        templateUrl: 'templates/global-toolbar.html',
        scope: true
    };

    function controller() {
        var view = this;
        view.print = function() {
            $window.print();
        };
    }
}

});

Using Chrome 45.0.2454.101 and the latest ng-inspector.  My app simply stops, no errors.  Memory usage crepps up to the point where the Chrome error message puts and simply says "Something went wrong with displaying this webpage."  Similar error on Firefox 41.0.1.

I have the same issue as tedohio. No errors but if I open ng-inspector, my app crashes.

I can confirm this issue as well. I can replicate it by opening ng-inspector when I have a  directive on the page - see angular-ui/angular-google-maps.
As soon as I comment out the gmap, the issue resolves itself. Feels like it might be an infinite recursion happening when its loading the model context.
Hope this helps


fix: BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 65

Description
Android did not "just work" out of the box with zero changes on my 4 day old mac with as minimal of a setup as possible, but flutter create did.
(I'm on flutter stable channel Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (4 weeks ago) • 2024-09-11 16:27:48 -0500 )
Steps To Reproduce

very_good create flutter_app testapp --desc "test app" --org "com.example" --application-id "com.example.testapp"
File open

Expected Behavior
app launches on android and displays counter app on Android as it does on iOS
Additional Context
Mac m3 pro nov 2023, was purchased  4 days ago and just setup with flutter stable, android studio stable (ladybug just downloaded in the last few days) as minimal configuration as possible.
flutter run --flavor development --target lib/main_development.dart
Connected devices:
Pixel 6 (mobile)                • 24061FDF6003TX                       • android-arm64  • Android 15 (API 35)
iPhone 16 (mobile)              • 9DE9E8A1-59FF-4B10-87EC-3969DD66DE54 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-0
(simulator)
macOS (desktop)                 • macos                                • darwin-arm64   • macOS 14.6 23G80 darwin-arm64
Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 14.6 23G80 darwin-arm64
Chrome (web)                    • chrome                               • web-javascript • Google Chrome 129.0.6668.100
No wireless devices were found.
[1]: Pixel 6 (24061FDF6003TX)
[2]: iPhone 16 (9DE9E8A1-59FF-4B10-87EC-3969DD66DE54)
[3]: macOS (macos)
[4]: Mac Designed for iPad (mac-designed-for-ipad)
[5]: Chrome (chrome)
Please choose one (or "q" to quit): 1
Launching lib/main_development.dart on Pixel 6 in debug mode...
FAILURE: Build failed with an exception.

What went wrong:
Could not open cp_settings generic class cache for settings file '/Users/neil/code/downstream/android/settings.gradle' (/Users/neil/.gradle/caches/7.5/scripts/6202moigwc1bc6g9dczefyu8l).

BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 65

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 788ms
Running Gradle task 'assembleDevelopmentDebug'...                1,287ms
┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using for Gradle.                       │
│                                                                                │
│ If you recently upgraded Android Studio, consult the migration guide at https://flutter.dev/to/to/java-gradle-incompatibility.  │
│                                                                                │
│ Otherwise, to fix this issue, first, check the Java version used by Flutter by running flutter doctor --verbose.              │
│                                                                                │
│ Then, update the Gradle version specified in /Users/neil/code/redacted_dir/android/gradle/wrapper/gradle-wrapper.properties to be │
│ compatible with that Java version. See the link below for more information on compatible Java/Gradle versions:                  │
│ https://docs.gradle.org/current/userguide/compatibility.html#java                                                               │
│                                                                                │
│                                                                                │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDevelopmentDebug failed with exit code 1
neil@Neils-MacBook-Pro downstream %
here is relevant part of flutter doctor --verbose output
`
neil@Neils-MacBook-Pro downstream % flutter doctor --verbose
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.6 23G80 darwin-arm64, locale en-US)
• Flutter version 3.24.3 on channel stable at /Users/neil/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2663184aa7 (4 weeks ago), 2024-09-11 16:27:48 -0500
• Engine revision 36335019a8
• Dart version 3.5.3
• DevTools version 2.37.3
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/neil/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
• All Android licenses accepted.
`

To fix immediate issue:

Bump gradle wrapper version in android/gradle/wrapper/gradle-wrapper.properties ->

distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip

Bump android app and kotlin android versions in android/settings.gradle

id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false

Update compileOptions and kotlinOptions in android/app/build.gradle

compileOptions {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}

kotlinOptions {
    jvmTarget = JavaVersion.VERSION_1_8
}

@Jbwzx thanks so much. Do you have an approximate ETA of when this will be fixed in a new version
also - does anyone have any thoughts around a) Making it easier to "tell" which version of flutter a vgv cli version works with and/or b) being able to specify it or even c) Making it "work on top of it" a little better.

In other words, it "feels" to me like the purpose of VGV cli is to handle flavors and dart/flutter best practices and architecture and testing and github actions - none of which should ever break the ability to compile and launch on any platform.
I imagine it might not be a small effort but is there any way under the hood to achieve that goal?

Hi everyone. Thanks for the comments here. This is a typical pattern we see and have to chase unfortunately. As the Flutter team creates releases not all the updates they make are called out well in the release docs. Minor updates like this tend to get pulled into other points in the notes so they get missed.
I did a brand new flutter create to confirm that the base Flutter application setup uses these versions as well. This means we need to update our templates as well. Let me try and work on this with our teams over the next week or so. In the mean time the updates posted by @Jbwzx should be a manual fix you can apply to your codebase to get unblocked with new projects.


Define acceptance criteria for "clean, documented MVP"

Here's the acceptance criteria for MVP. I think they're all there. Don't think we need to spend too much time here because I think we're aligned, but prob worth a look to be sure! https://docs.google.com/document/d/1FjBp3b8n9SYMADMG6NRsMuhZuu0NIphhYRtszWBjurc/edit?usp=sharing

@oed @c-castillo @oznekenzo ready for your beautiful eyes!

👍

🙌
On Mon, Oct 1, 2018 at 5:47 AM Joel Torstensson<EMAIL_ADDRESS>wrote:

👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_uport-2Dproject_3box_issues_178-23issuecomment-2D425849325&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=fGLIXLfhU4rVRok6gZ4keg&m=U79VsAKWidJ1sOhG83aSmhFaWbT89kIg8zqgmV6kFOo&s=mDs8dzmp59V045geh9eSQstjDMcAmP2y-llsV-AQsSA&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AHr57bD-2DnxzetBKk0yqh7FpB2F8cGxsAks5ugeSVgaJpZM4Wl3Dq&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=fGLIXLfhU4rVRok6gZ4keg&m=U79VsAKWidJ1sOhG83aSmhFaWbT89kIg8zqgmV6kFOo&s=cXyua14-5gghBCqhmD7D0r0FrLxzfw3Wc0Q9LX6joaw&e=
.

@michaelsena In the education section, do you want to put anything about learning how to use the activity library?
Also, there isn't any documentation for the activity library yet! :]


Allowing explicitly putting null

Sometimes we need JSON null values, especially when API requests with PATCH method where null values mean "delete" the property

That would be useful for me too, any idea if this will be merged or any workaround for that? I need to send null for a specific endpoint...

@hebertialmeida
You actually can grab my fork for ability to send null
In Cartfile just replace Wrap to
github "aabbcc-double/Wrap" "a80b5f40454"

I'll tag it later, when I fully test my code

@GRiMe2D I actually ended up forking it and make a customization based on #36, it's less code change and works great...


feat: Update to Kuiper version that supports Edgex V2

closes
Signed-off-by: lenny<EMAIL_ADDRESS>PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-examples/blob/master/.github/CONTRIBUTING.md.
What is the current behavior?
Kuiper 1.1.2-alpine (currently used) and 1.2.0-alpine (new release) do not support Edgex V2
Issue Number: #102
What is the new behavior?
Using Kuiper 1.2.1-beta.0-alpine which does support Edgex V21
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Specific Instructions
Are there any specific instructions or things that should be known prior to reviewing?
Other information

@cherrycl , @cloudxxx8 , this PR is blocked due to unrelated failing tests. Once you have fixed those tests can you please recheck and merge this PR? THX!

recheck

@lenny-intel we both don't have the permission to merge PR in this repository

we both don't have the permission to merge PR in this repository
@cloudxxx8 , @cherrycl , I will get you both added. THX!


[Bug]

I bought the role from your website for the discored but cant join your discord and this is the 2nd time I spent $5  on this for discored but cant access it

I says I am banned? why and for what?

same with me they are being very vague it would be nice if theyv at least gave us a private link..

nvm its open!!


Update App.js

Pull Request Title

Description

Related Issues

Type of Change

[ ] 🐛 Bug fix (non-breaking change that fixes an issue)
[ ] ✨ New feature (non-breaking change that adds functionality)
[ ] 🔨 Breaking change (fix or feature that would cause existing functionality to change)
[ ] 📚 Documentation update
[ ] 🔧 Refactoring (code improvements without functional changes)
[ ] 🧪 Tests (adding or updating tests)
[ ] 🚀 Performance improvements

Checklist

[ ] My code follows the style guidelines of this project
[ ] I have updated the documentation where necessary
[ ] I have tested my changes and ensured that the code is working as expected
[ ] I have added/updated tests to cover my changes
[ ] All new and existing tests pass locally with my changes
[ ] I have reviewed my code and addressed any potential issues

Screenshots (if applicable)

Additional Information

@IniyalPalanisamy , Your PR description is currently empty. Please provide a detailed explanation of the changes you made and attach relevant screenshots.


Fix zero'ing in augmented forward

Fixes https://github.com/EnzymeAD/Enzyme.jl/issues/430

Codecov Report

Merging #436 (4fa2654) into main (71ebce9) will decrease coverage by 0.27%.
The diff coverage is 84.50%.

@@            Coverage Diff             @@
##             main     #436      +/-   ##
==========================================
- Coverage   76.07%   75.79%   -0.28%
==========================================
  Files          17       17
  Lines        4225     4128      -97
==========================================
- Hits         3214     3129      -85
+ Misses       1011      999      -12

Impacted Files
Coverage Δ

src/compiler.jl
74.58% <84.50%> (-0.20%)
:arrow_down:

src/compiler/interpreter.jl
90.90% <0.00%> (-9.10%)
:arrow_down:

src/pmap.jl
83.33% <0.00%> (-1.29%)
:arrow_down:

src/typeanalysis.jl
90.00% <0.00%> (-0.91%)
:arrow_down:

src/compiler/pmap.jl
80.54% <0.00%> (-0.71%)
:arrow_down:

src/compiler/validation.jl
63.73% <0.00%> (-0.63%)
:arrow_down:

src/Enzyme.jl
86.73% <0.00%> (-0.15%)
:arrow_down:

src/typetree.jl
87.39% <0.00%> (+0.29%)
:arrow_up:

src/compiler/utils.jl
94.28% <0.00%> (+1.13%)
:arrow_up:

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


Hardware decoding on linux.

I'm submitting a ...

[* ] feature request

General infomration
I was thinking that it is impossible to use hardware decoding in linux with widevine  and inputstream.adaptive. However, recently i found that plugin for HBO GO (Poland only) has working hardware decoding. Plugin has same requirements as netflix plugin: Kodi 18 Leia,  InputStream.Adaptive 2.1.0, WideVine CDM and work very similar to netflix plugin. It is possibile to implement hardware decoding on netflix plugin?
Screenshots
https://postimg.cc/image/vapr0o2hp/

Netflix's license policy for WideVine restricts decoding to software only (see this comment). Maybe the HBO plugin uses a different policy which allows for HW decoding. For Netflix there's no way.

@caphm HBO probably uses the SW_SECURE_CRYPTO policy, which means the Widevine library only handles decrypting the frames and leaves it to the CPU/GPU to decode, meaning HW decoding is supported.

Closing, because it can't be implemented with Netflix's policy.

I know its closed, but just to get a better understanding of this problem.
NetFlix permits widevine to use hardware decoding, so widevine forces the CPU to do the decoding. Is that right? There is no way arround to tell widevine library to use hardware acceleration?

@alorbach Yes that´s correct. Hardware acceleration isn't possible with the Widevine library, only on certain Android devices which do have an appropriate Widevine level / license.

Thanks! According to your response, I tested your netflix plugin Kodi18 on CoreElec with widevine from ChromeOS and Kodi 18 on Android 7 with inbuild widevine on my S912 device.
On CoreElec, not even 720p is playable. On Android, FullHD runs smooth ... same inputstream settings.
Do you think it would be possible to use the Android widevine library in linux (LIbreElec / CoreElec)?

Nope, that won't be possible, as the Widevine library is baked into the Android OS.
Which kind of device you´re running CoreeEec on?
Also, some shows/movies on Netflix are restricted to SD on only when software decoding is used, this is another limitation and even Netflix can't do a thing about it, as those restrictions come from the Content Owners.
Might be good to
a) Try a different show (I believe Star Trek Discovery does HD playback whilst being software decoded)
b) Please post your inputstream config (maybe a picture or a screenshot) fro your CoreElec device. You could also try and set the Inputstream setting to manual and try to switch the resolution while a show is playing. It also shows the available resolutions of that particular stream when you do.

I am using "MeCool M8S Pro L" which runs on armlogic S912 and Android TV 7.1
It's possible to enable FullHD streaming in Netflix APP for this device in Android.
Besides that I have latest CoreElec 8.95 installed on a SD Card and can boot from it.
Both run KODI 18 Beta / Alpha Versions.
I am using Inputstream adaptive settings like this (With manual stream selection):
https://user-images.githubusercontent.com/24846265/42654553-49435c88-8619-11e8-8107-385b0bca6cea.png
In CoreElec, I can run all Netflix Shows in 1080p and lower. But only 480p is watchable. I have another S905 device (Odroid C2) where at least 720p is watchable in CoreElec.
On Android, with same settings it runs smooth in 1080p.

Similar here. I'm using Odroid C2 @AMLogic905 and I have UltraHD Netflix account, which allows me to play FullHD+ (and higher), but in CoreElec v9 Netflix plugin cannot play FullHD content correctly - there's low fps, frame skipping and av desync... Basically it's unwatchable.

@raven6679 Yes, that´s true. It´s just not powerful enough for FullHD encoding when using Widevine.
@alorbach Same´s true for you, the CPU just can't do better. When you´re using Android (with a properly Widevine L3 device), then inputstream can use hardware decoding with the Android stack, so 1080p is possible.

I understand, that's not currently possible to hw decoding Netflix streams in add-on?
And nobody know, would it ever be possible, right?

@raven6679 Exactly.

Team Kodi is already approaching content providers that they open their APIs or provide official addons. Generally Netflix is not very friendly when it comes to third party access to their APIs.

Hardware decoding works on Android because most Androids contain a level 1 Widevine client library, meaning a hardware-based trusted execution environment decodes video, so hardware decoding is possible. For Netflix to allow hardware decoding on level 3 devices such as a standard desktop, it would have to change its license policies to be SW_SECURE_CRYPTO. The problem with this is that it would allow anyone to invoke the CDM API outside of Chrome and save decrypted frames when the CDM is processing encrypted media. Because of this, I don't see Netflix ever changing their current license policy, which works well for the majority of their customer base.

 What's worse, there's no native apps for Linux/ARMs. That's why I'm using it inside Kodi.
But in the light of things, that you are saying, I'm really REALLY wondering why I should pay for Netflix and experience their close-minded policy. Especially, that the library of movies & tvs here where I live, in Poland is very limited comparing to other countries.
Personally I believe that this is one of the reasons that privacy still exists in relatively "good shape". I really don't mind paying for stuff - I already have subs for videos, music (Google Play) and ebooks, but I don't like to be treated in that way as Netflix acts.

This discussion is pointless. There is no (and probably never will be) hardware acceleration except for L1 Android devices.

I beg to differ. Discussion ALWAYS has a point. Without communication, no idea would be ever born.

Does anybody know, can we force 720p to make stream playable?

@giaur500 Go to the settings on the Netflix plugin > Inputstream Addon Settings > Max Resolution Secure Decoder, then set the max resolution to 720p.


Fails to "find" pre-existing distroboxen.

See title.
Tools like Podman Desktop and Cockpit do find my distroxen but this tool does not.

Are they rootful boxes? BoxBuddy won't see rootful boxes unless you run it as root.
Otherwise, I'll need more details.

Okay, so a little bit weird. My distroboxen don't appear with list but podman desktop finds them just fine.
suzette@tux-suzette:~$ distrobox --version
distrobox: <IP_ADDRESS>
suzette@tux-suzette:~$ distrobox list
ID           | NAME                 | STATUS             | MEM              | CPU%  | IMAGE
Error: container state improper
suzette@tux-suzette:~$ distrobox list --root
ID           | NAME                 | STATUS             | MEM              | CPU%  | IMAGE
suzette@tux-suzette:~$ podman ps
CONTAINER ID  IMAGE                                      COMMAND               CREATED      STATUS          PORTS       NAMES
7325403cce33  quay.io/toolbx-images/alpine-toolbox:edge  --verbose --name ...  4 weeks ago  Up 2 hours ago              cli-apps

I see a container state improper note but, of course, there's no suggestion on how to troubleshoot that. So, it seems my issue may be with my distrobox install and not your GUI.
===
And, a restart of BoxBuddy finds the distroboxen just fine.  Weird.
So, now this comment is just general feedback and what seems to be working correctly, what could be improved, etc. (Note: my setup: TuxedoOS [Ubuntu LTS 22.04 base], bash, KDE Plasma, BoxBuddy installed as flatpak]

Creation of new box does not show an indication of already-downloaded images. I have, on-device, images of fedora:39, alpine-toolbox:edge, opensuse-toolbox:latest. These do not appear at top of list and there is not checkmark or other visual indicator that I already pulled these from the registry.

It's super sweet that it finds all registries in my registry conf.
Kind of a bummer that it doesn't offer an option to pull from a custom registry not in registries conf.
After creation of a new db, list of available boxen does not auto-refresh and the application requires a restart to find.

View Applications does not find all applications installed inside the box. Does it only look for exported bins/apps?
Enhancement requests:

Export and un(?)-export apps/bins installed in the box.
Start/stop boxen.
When creating new box, visual indication of which images are already on-device.

Anyway, thanks for the quick response. My issue seems to have resolved itself.


Plot method for aggregation + refactor tests

What does this PR do?
Partial #1406

Add to aggregation metrics
Add to binary confusion matrix + multilabel confusion matrix (missing from last pr)
Refactor test such that .plot method is called instead of the underlying function to make sure the complete traceback is tested

Before submitting

[ ] Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure to update the docs?
[ ] Did you write any new necessary tests?

PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?
Make sure you had fun coding 🙃

@SkafteNicki could you pls check the conflicts... :)


CAMEL-21156: Enable hashicorp-vault SecretPath header to be used on create & delete operations

/component-test hashicorp-vault


Servicemonitor - Configurable namespace

Is your feature request related to a problem? Please describe.
The service monitor should be deployable into a custom namespace.
Describe the solution you'd like
I would like to be able to set the serviceMonitorNamespace in the values.yaml file,
I'd be happy to implement if we agree on an API.
Describe alternatives you've considered
Possibly just deploy to {{ .Release.Namespace }} as well? Open to suggestion and discussion.
Additional context
The current service monitor implementation always goes to 'default'.
{{- if .Values.metrics.serviceMonitor }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    {{- include "actions-runner-controller.labels" . | nindent 4 }}
  {{- with .Values.metrics.serviceMonitorLabels }}
    {{- toYaml . | nindent 4 }}
  {{- end }}
  name: {{ include "actions-runner-controller.serviceMonitorName" . }}
spec:
...
{{- end }}

Hi there!
namespace: {{ .Release.Namespace }} is not very flexible.
For example the ARC is deployed in a dedicated namespace but kube-prometheus-stack usually is deployed under "monitoring" namespace.
This creates the following problem. We want all ServiceMonitors to be added under "monitoring" namespace for easier Prometheus configuration but namespace: {{ .Release.Namespace }} deploys the ServiceMonitor under ARC namespace.
In my opinion https://github.com/actions-runner-controller/actions-runner-controller/commit/d50be98bef03d890b4757624999f23ebdfd0a186
is a more flexible approach for ServiceMonitor deployment.


Sets a placeholder value for dnsServers when none is provided.

The image will not be configured with a custom DNS server if the variable is found to contain the placeholder value.
Change-type: patch

lgtm


ref(core): Use Sentry CLI for sourcemaps upload

To be merged after #87
This replaces our own WIP sourcemaps upload logic with Sentry CLI's implementation.
ref #85

Rip all that logic :D

Good point, made me realize we can get rid of the entire sourcemaps.ts file 🥲


Upgrade bootstrap 4 to bootstrap 5

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Upgraded to bootstrap 5.


Ignoring "addRegisterdNameTooltip" Config Option

EnderCore: v1.7.10-<IP_ADDRESS>_beta
EnderIO: v1.7.10-<IP_ADDRESS>4_beta
Checked this against a fresh install of EC & EIO, still occurs. Also checked against the Infinity Evolved modpack to ensure this wasn't a pack-specific bug with the same versions, config was still ignored.
Regards.

Indeed. There is no code that acts on that config flag. I need to do a history search to find out where it was and went.

It was killed by this commit: https://github.com/SleepyTrousers/EnderIO/commit/ac982993d7f69f0515180a805d7ddf8600651a31 "Port tooltip system to EnderCore"

Ah, okay. Wasn't aware that the tooltip system was ported over. Thanks Henry. I can see the config settings in the EnderCore config file.
Perhaps a line could be added to the EIO config to mention that this (and the OreDict) setting(s) have been moved to EnderCore's config? If not, then now I know better, at least. Thanks.


Sampling data

It seems that your code does not sample the dataset for each process to have different training images during an iteration. For example, if we have
Training images A, B, C, D
2 processes
Batch size 2

then, during an iteration, we may want that a process has A,B and another has C,D.
To achieve this, it seems that an official example provided by PyTorch uses DistributedSampler.
Am I missing something?
Thanks

Thank you for your comment. I made this commit 3cfcb96b58a6199de7e6371adc3b447b6200d2e6 by refering the example.


I want to add Tree algo in python for most useful algorithm folder.

I want to add inorder, postorder , preorder , level order traversal of tree using python. Can you assign it to me under hackoberfest.Thank you

@Einsteinia11 Hey i have added the files , check it and merge it


MongoDB HelmChart breaks with Istio

Describe the bug
When installing the official MongoDB helm chart with helm install --name mongodb stable/mongodb, the istio sidecar fails with a permission denied error message:
 kubectl logs mongodb-sec-enabled-64766bbcdd-mzpdk istio-init
+ iptables -t nat -N ISTIO_REDIRECT
Environment:
------------
ENVOY_PORT=
ISTIO_INBOUND_INTERCEPTION_MODE=
ISTIO_INBOUND_TPROXY_MARK=
ISTIO_INBOUND_TPROXY_ROUTE_TABLE=
ISTIO_INBOUND_PORTS=
ISTIO_LOCAL_EXCLUDE_PORTS=
ISTIO_SERVICE_CIDR=
ISTIO_SERVICE_EXCLUDE_CIDR=

Variables:
----------
PROXY_PORT=15001
INBOUND_CAPTURE_PORT=15001
PROXY_UID=1337
INBOUND_INTERCEPTION_MODE=REDIRECT
INBOUND_TPROXY_MARK=1337
INBOUND_TPROXY_ROUTE_TABLE=133
INBOUND_PORTS_INCLUDE=27017,
INBOUND_PORTS_EXCLUDE=
OUTBOUND_IP_RANGES_INCLUDE=*
OUTBOUND_IP_RANGES_EXCLUDE=

iptables v1.6.0: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
+ dump
+ iptables-save
iptables-save v1.6.0: Cannot initialize: Permission denied (you must be root)

Expected behavior
The expected behavior is that both the init container and the mongodb container start properly.
Steps to reproduce the bug`

Get a k8s cluster
Install helm as described here
Install istio as described here
Enable automatic sidecar injection as described here
helm install stable/mongodb --name mongodb-sec-enabled
Inspect the error with kubectl logs mongodb-sec-enabled-XXX istio-init

Version
Kubernetes:
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"archive", BuildDate:"2018-08-25T18:33:09Z", GoVersion:"go1.11", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.8", GitCommit:"c138b85178156011dc934c2c9f4837476876fb07", GitTreeState:"clean", BuildDate:"2018-05-21T18:53:18Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

helm:
$ helm version
Client: &version.Version{SemVer:"v2.9+unreleased", GitCommit:"", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}

Istio:
$ istioctl version
Version: 1.0.0
GitRevision: 3a136c90ec5e308f236e0d7ebb5c4c5e405217f4
User: root@71a9470ea93c
Hub: gcr.io/istio-release
GolangVersion: go1.10.1
BuildStatus: Clean

Is Istio Auth enabled or not?
helm install install/kubernetes/helm/istio --name istio --namespace istio-system -f ~/src/cluster-setup/istio/values.yaml
cat ~/src/cluster-setup/istio/values.yaml
global:
  proxy:
    envoyStatsd:
      enabled: false
ingress:
  enabled: false
gateways:
  istio-ingressgateway:
    enabled: false
  istio-egressgateway:
    enabled: false
galley:
  enabled: false
sidecarjectorWebhook:
  enabled: true
mixer:
  enabled: false
prometheus:
  enabled: false

Environment
AWS, deployed with KOPS
Cluster state
Will generate on request. (New cluster needs to be set up, as I don't want to leak sensitive informations)

This seems to be related to the security context in the chart which changes the user id. The real question here seems to be: Are security contexts supposed to work with istio or not?

I guess that causes the issue. Unfortunatelly, mongodb with security context disabled may allow the istio-init container to finish successfully, but fails to spin up mongodb afterwards.

This is also the case with the official mariadb chart (and any other containers that are configured to run as non-root). It would be great if we could get some clarification on the intended behavior here and/or a recommended workaround.

@marshall007 did you tried to use changes introduced in #7488? I have the same issue related to SecurityContext and changes from above PR did not help, there is still error related to 'Permission denied' and iptables.

I too am seeing no resolution following https://github.com/istio/istio/pull/7488 . Would be grateful for at least a workaround asap

I have faced the same issue,
The problem was the Istio sidecar proxy need to be privileged and has the "NET_ADMIN" capability,  but at the same time, the pod has securityContext to run with user 1001, which does not have the "NET_ADMIN" capability, which is making the istio sidecar to not be able to start.
The solution was moving the security context from the pod level to the container level.

@philrud is this fixed by https://github.com/istio/istio/pull/12708? If so we can close this

@howardjohn this looks like the same issue so should be resolved now, but would be great if somebody could actually verify that particular chart before we close the issue

I believe this is fixed. If not please open another issue or ping us to reopen this. Thanks


Debian Stretch

Good day
A management and a template for Debian Stretch is needed.
Kind Regards
Brent Clark

My bad, just noticed Jschaeff already made a pull request related to this fix.
How ever, 3d69b5cca557007aee291cc5c6d4597361db857f
Does contain some settings also available within the Jessie jail.conf

+1 I need :)

@brentclark yes. this is currently being implemented and we will kick of a new release afterwards


Document the address discrimination problem from cardano-sl (NetworkMagic)

Closes #727.

bors r+


DevAddr recycling causing extreme performance load

How I found it
We just got a batch of really shitty LoRaWAN devices, their P-O-* software make them re-join all the time and this causes Chirpstack to not-be-so-happy.
While profiling redis i realized that chirpstack was asking more than 1 time per second about dev info on a device that hasnt been active for several hours. And it kept asking, and kept asking, and kept asking. Redis then consumes close to 100%, chirpstack consumes cores*100% CPU. Redis is hitting hundred of millions request per minutes but at the same the mqtt broker shows there is only coming a few thousands of messages during the same time-span.
So I set up a UDP-relayer and ran an instance on my developer computer to figure out what was going on, I had spotted the redis query coming from device_session.rs / get since before so I set a 'smart' break point there and and boom, I got a stack trace.
The stack trace tells me that it originates from looking up deveui from devaddr, in my particular incident it originated from get_for_phypayload_and_incr_f_cnt_up (data.rs). Where it looks from what deveuis may be associated with the devaddr, it gets a lot of them and it then starts looping them, calling device_session::get().
This is why redis was asking for a device that has been inactive for hours..
What I think may be the issue and how it can be mitigated
I believe the the shitty devices we got in our network has caused the DevAddr's to be recycled, and not just once but several hundred of times. But there is no explicit business logic removing the old devaddr->deveui entries that I can find, I am guessing it uses auto-expiration with TTL.
I am no Rust expert, it took me half an hour to figure out how to get the debugger to launch and many more minutes to create some simple if statements. So i add my 'maybe this could work'-code in this post since I doubt it has code quality enough for a PR.
Known issues with the "code"

Not tested at all, think about it as pseudo-code
Known issues with error handling (see comment in code)
Existing populated lists will not be fixed with this code, this code will only attempt to make it not happen again, not to fix existing data sets
It needs to be verified that this wont break for any other logic in the application that I am not aware of

The code
device_session.rs function save() (line 28 in 4.6.0 branch):
    // after let mut remove_old_addr = false;
    //
    // Warning; No handling/checks if the curr_session is null
    // or if some kind of error was raised by self::get() ??
    let curr_session : chirpstack_api::internal::DeviceSession = self::get(&eui).await?;
    let old_addr_key_parsed = DevAddr::from_slice(&curr_session.dev_addr)?;
    if old_addr_key_parsed != addr
    {
        remove_old_addr = true;
    }

device_session.rs function save() - inside the spawn_blocking lambda (line 46 in 4.6.0 branch):
            // after let mut c = get_redis_conn()?;
            if remove_old_addr
            {
                let old_addr_key = redis_key(format!("devaddr:{{{}}}", old_addr_key_parsed));
                c.new_pipeline()
                .atomic()
                .cmd("SREM")
                .arg(&old_addr_key)
                .arg(&eui.to_be_bytes())
                .ignore()
                .query(&mut c)?;
            }

We are working on fixing a clean-up job for any build-ups. If there are more users experiencing the same issue we have it would be good if you made a shout so we know if the utility/code should be published.

Hi @stefandxm, thanks for letting me know about this issue. I understand the issue and what your code is doing:
Before saving a (new) device-session, it queries the DB to see if there is already a device-session for that DevEUI, then if the DevAddr != new device-session DevAddr, it removes the DevEUI from the DevAddr => [DevEUI] set in Redis.
However, I'm not sure if this is the best way to approach this problem as each save would then require two DB queries instead of one. While one additional query doesn't sound much, it could have quite some performance impact under high load e.g. see: https://github.com/chirpstack/chirpstack/commit/b65faf7b980fa78f4143f00f6d75752567d8463a.
On the other hand, this is something that must be fixed as a bad-behaving device could cause a higher DB load.
Let me think about how this issue could be approached in an other way.

Hi@brocaar, I'm currently moved from chirpstack-api version 3.12.4 to chirpstack-api 4.6.0 version  facing an Issue: 'GatewayServiceStub' object has no attribute 'StreamFrameLogs'  and for this
#Construct request using is
req = api.StreamGatewayFrameLogsRequest()
When I checked in the api lib of gateway the above methods and constructs are deprecated.
OLD CHIRPSTACK API LIB
https://github.com/brocaar/chirpstack-api/blob/master/python/src/chirpstack_api/as_pb/external/api/gateway_pb2_grpc.py
https://github.com/brocaar/chirpstack-api/blob/master/python/src/chirpstack_api/as_pb/external/api/gateway_pb2.py
NEW 4.6.0 CHIRPSTACK API LIB
https://github.com/chirpstack/chirpstack/blob/master/api/python/src/chirpstack_api/api/gateway_pb2.py
https://github.com/chirpstack/chirpstack/blob/master/api/python/src/chirpstack_api/api/gateway_pb2_grpc.py
Can you give pointers to resolve this dependency!!
Thanks in advance.

Hi@brocaar, I'm currently moved from chirpstack-api version 3.12.4 to chirpstack-api 4.6.0 version facing an Issue: from chirpstack_api import api client = api.GatewayServiceStub(channel) auth_token = [("authorization", "Bearer %s" % api_token)] req = api.StreamGatewayFramesRequest() req.gateway_id = id frame_stream = client.StreamFrameLogs(req,metadata=auth_token) (Pdb) n AttributeError: 'GatewayServiceStub' object has no attribute 'StreamFrameLogs'

I don't think your comment pertains to this issue. Try the ChirpStack forum for support:
https://forum.chirpstack.io/

Hi Bconway, Sure will post on chirpstack forum.

I am not sure how we can test this out-side of production without interfering with our online-fleet.
I can have a look at it and see if we can reproduce it with any of them simulators out there but it will require us a few weeks since there are school holidays here at the moment.
I/We are very happy to see you are spending time on it so we will assist in any way we can.
BR Stefan

@stefandxm I just did a simple test (simulation with 2000 devices for 5 minutes incl OTAA, sending every 5 seconds = 400 device uplinks per sec x 3 gateways = 1200 uplinks / sec before de-duplication):
NetID 000000:

DS in Redis: 777_047 PostgreSQL + 2_605_092 Redis queries
DS in PostgreSQL: 989_450 PostgreSQL + 1_864_200 Redis queries

NetID FE0000:

DS in Redis: 778_950 PostgreSQL + 4_222_712 Redis queries
DS in PostgreSQL: 987_178 PostgreSQL + 1_860_154 Redis queries

(note that the number of queries are since the start of the chirpstack service and thus includes the provisioning of devices as well).

As you can see, with the device-sessions in Redis there is a significant increase between NetID 000000 vs FE0000. With the device-sessions in PostgreSQL the number of queries stays constant.

Please see: https://forum.chirpstack.io/t/release-chirpstack-v4-7-test-releases/19093

Did you change the DevAddr space ? I think that is the main culprit

(We want to test patch but because of the old issue we moved redis and chirpstack to another physical server, so if the issue is moved to postgres load we will have to emergency move postgresql)

And we are running today around 9000 units with OTAA. The really shitty ones are around 6000 :(

Please note that the 4.7 release also contains improvements on the
PostgreSQL side. Before assuming you need to scale up PostgreSQL, I would
do some testing first.
On Thu, Mar 28, 2024, 23:30 stefan @.***> wrote:

And we are running today around 9000 units with OTAA. The really shitty
ones are around 6000 :(
—
Reply to this email directly, view it on GitHub
https://github.com/chirpstack/chirpstack/issues/362#issuecomment-2026314962,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABIM6JM27J6O7GYI4W237DY2SKZRAVCNFSM6AAAAABCT5EKKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRWGMYTIOJWGI
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


Fix overflow when trading divisible against divisible

This PR increases the width of the intermediate variables used to calculate the total amounts (sale or desired) via the MetaDEx trade UI to prevent an overflow when trading divisible against divisible.
See issue https://github.com/OmniLayer/omnicore/issues/294

Hey @zathras-crypto, unfortunally I'm unable to merge.
Can you please checkout omnicore-0.0.10, then fetch, pull from upstream, and then run git rebase omnicore-0.0.10 on the branch for this pull request to rebase on top of an up-to-date base branch? (needless to say that this protection is kinda annoying..)
I haven't tested it yet, but it looks straight forward to me. :)

Ahh sorry, must not have been working from the tip - OK rebased, hopefully that should sort it :)

:)
I tested the PR a bit and I see the warning dialog both for sales and buys.


Default language for nested objects

The defaultLanguages already pre-adds the default languages at the document level, but it doesn't do it for nested objects which is where most of my fields are (we us Sanity for webpage building, with arrays of objects used to configure the content of the page).
Having it work on nested objects would save our editors a ton of time adding the English language to fields, and would make using the unstable__fieldAction button location feasible (currently empty fields just say This internationalized field currently has no translations. and the editor would have to do two clicks just to add the EN field, forcing us to use the field button location which uses more screen real estate).

+1


added expressions and body_is rules

Assigned @HFajardo.  @HFajardo - you have the right to say you can't review this and move on; this is an orphaned language in the class.


API / POST request

Hi,
is there some api for post request?
Or it would be good idea to make.
What about if I have a website with some php code and I want to start some function on fivem server?
Is would be great if I can make POST request from php (with curl for example) to txAdmin panel.
In request will be some secret code for authenticate and autorize the request and then run some command in fivem console.
:thinking:

for example i will send post request to my.site.com:50120/api/post.php with fields
secret: "somereallySecretStringToVerifyRequest"
cmd: "/somecommand"
hash: "has of string secret+cmd for verify"
response is not needed just return true on success command execution and false on error (for example if server is off...)

that would be pretty easy to configure if the extensions system was ready since it already implements secrets for the intercom get/posts


Figure out a way of mining coin images for dates

e.g. take a picture like

and extract all dates

Some good blogging here: https://blog.griddynamics.com/how-to-recognize-coins-with-deep-learning-visual-model/

Some more interesting stuff at: https://www.kaggle.com/lgmoneda/br-coins

Maybe some tasks:
Toy problem: same type of coins, only differing in date and condition. Real coins.

Segment individual coins
Segment small numbers (any orientation)
Infer date from number pool


btrfs: use native go snapshotter implementation

Replace github.com/containerd/btrfs with github.com/dennwc/btrfs to eliminate cgo dependency.
How to test: go test -c ./snapshots/btrfs && sudo ./btrfs.test -test.root -test.v
Fix #5654
Fix containerd/btrfs#7
Based on Denys Smirnov (@dennwc)'s attempt in 2019: https://github.com/dennwc/containerd/commit/3728f960653ebf6c3980a02f60f9f8b1dbcfc67b

cc @dennwc @stevvooe

CI failing for 32-bit ARM
# github.com/dennwc/btrfs
vendor/github.com/dennwc/btrfs/utils.go:18:19: constant<PHONE_NUMBER> overflows int32
make: *** [build] Error 2

Didn't know that we still support 32-bit ARM 😅

Merged the PR, thanks a lot for pushing this forward :)

Thanks @dennwc !

@dennwc
If you like, can we migrate the code to https://github.com/containerd/btrfs (as github.com/containerd/btrfs/v2 go module) and add you as a non-core maintainer of that repo? (Core maintainers also maintain the repo, too)

Sure, sounds good! Do you need anything from my side in regards to the old repo?

Thanks, could you relicense the code to Apache License 2.0 (required by CNCF)?
Then I (or whoever) can open a PR in https://github.com/containerd/btrfs to add "/v2" module with your code.

Done!

Thanks, opened https://github.com/containerd/btrfs/pull/34


[DOC-2956] CI tutorial - Node

Revised Node tutorial
Preview: https://6450069d914719149e51765c--harness-developer.netlify.app/tutorials/ci-pipelines/build/nodejs
Additional revisions to Java tutorial

Reflect changes to starter pipeline
Make the background step + connection test optional
Add/promote information about caching
Add more info to the standalone yaml if users skip the other content.

Preview:  https://6450069d914719149e51765c--harness-developer.netlify.app/tutorials/ci-pipelines/build/java
Save/Restore cache S3/GCS

Make them easier to read
Fix some minor issues
Replicate language-specific info on the GCS page (previously only on the S3 page)

S3 preview: https://6450069d914719149e51765c--harness-developer.netlify.app/docs/continuous-integration/use-ci/caching-ci-data/saving-cache
GCS preview: https://6450069d914719149e51765c--harness-developer.netlify.app/docs/continuous-integration/use-ci/caching-ci-data/save-cache-in-gcs

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


Showing black screen

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '..Camera'
Click on 'Take Picture'
When you come back on app
See error - Image won't show .

Expected behavior
Should show selected image.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):

Device: Samsung note ultra
OS: Android 11

Video with facing issue
https://drive.google.com/file/d/1uoUKZDxTqSM_yB7tS4jphcyezQUV87Og/view?usp=sharing

I didn't get it! What's the issue? I don't do anything with the camera options/features. It should be related to your device/OS. Try reset or other solutions suggested on internet.


Export the components that underly the build of Axes, GridLines, Plots, etc.

Seems like a great way to build on the existing components for custom purposes.  I certainly have a desire to do so.  For example, custom XYPlot, X/YAxis, Vertical/HorizontalGridLines.

@alee8 this is done after #183 right?

As much as was permitted.  However, I tried to include the files in
CityFlow after pulling the latest and could not import them.
I am unable to work on this until tomorrow the earliest.
Any chance you can try to import these 3 new files and in particular, the
utils functions and see if you see the same issue?
Alison
On Sun, Nov 27, 2016 at 1:29 AM, Andrew McNutt<EMAIL_ADDRESS>wrote:

@alee8 https://github.com/alee8 this is done after #183
https://github.com/uber/react-vis/pull/183 right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/uber/react-vis/issues/181#issuecomment-263105041, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC2FJpe1m-Yr0AvqdeVq4vTRakSWjaSbks5rCSNJgaJpZM4K3GEb
.


[Bug] dbt deps fails after retrying package download after failure

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Running dbt deps in a nightly job failed after retrying downloading the packages. The Max retries is listed as 5 and was currently at 0.
Expected Behavior
The download is retried until the max retries is reached or the package is downloaded successfully.
Steps To Reproduce
This cannot be reproduced on demand.  It is an intermittent failure case for dbt deps
Relevant log output
Console:
2021-10-28 09:23:31.847397 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/dbt-labs/logging.json
2021-10-28 09:23:31.861303 (MainThread): Retrying external call. Attempt: 0 Max attempts: 5
2021-10-28 09:23:32.862660 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/dbt-labs/logging.json
2021-10-28 09:23:32.879183 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/dbt-labs/logging.json 200
2021-10-28 09:23:32.881613 (MainThread): Flushing usage events
2021-10-28 09:23:32.905059 (MainThread): argument of type 'NoneType' is not iterable

Datadog:
Traceback (most recent call last):
  File "/usr/src/app/sinter/clients/dbt.py", line 1164, in call
    dbt_main.handle(command + extra_args)
  File "/usr/local/lib/python3.8/dist-packages/dbt/main.py", line 159, in handle
    res, success = handle_and_check(args)
  File "/usr/local/lib/python3.8/dist-packages/dbt/main.py", line 205, in handle_and_check
    task, res = run_from_args(parsed)
  File "/usr/local/lib/python3.8/dist-packages/dbt/main.py", line 258, in run_from_args
    results = task.run()
  File "/usr/local/lib/python3.8/dist-packages/dbt/task/deps.py", line 53, in run
    final_deps = resolve_packages(packages, self.config)
  File "/usr/local/lib/python3.8/dist-packages/dbt/deps/resolver.py", line 137, in resolve_packages
    target = final[package].resolved().fetch_metadata(config, renderer)
  File "/usr/local/lib/python3.8/dist-packages/dbt/deps/registry.py", line 129, in resolved
    available = registry.get_available_versions(self.package)
  File "/usr/local/lib/python3.8/dist-packages/dbt/clients/registry.py", line 78, in get_available_versions
    response = package(name)
  File "/usr/local/lib/python3.8/dist-packages/dbt/clients/registry.py", line 55, in package
    if ('redirectnamespace' in response) or ('redirectname' in response):
TypeError: argument of type 'NoneType' is not iterable

Environment
- dbt: 0.21.0

What database are you using dbt with?
snowflake
Additional Context
No response

It does look like we get a response here:
2021-10-28 09:23:32.879183 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/dbt-labs/logging.json 200

but that it's potentially empty or malformed, leading to response = None.  Do we need to check for an empty response and retry there as well?

@crystalro0 Thanks for the report!
@barberscott Your read here seems right on. It's reasonable to expect that dbt should continue retrying until it returns a response that isn't None, not just any successful response.
I think the change for that should happen somewhere in the weeds of _get, _get_with_retries, or connection_exception_retry.
While the code is a bit thorny, it's fairly well self-contained—probably a one-liner—so I'm going to call this a good first issue.

Hi! I'd be happy to work on this one unless @barberscott wants to create a PR himself.


Feature usehooks.com

I recently discovered usehooks.com and think they have quite useful examples 🙂

Another Collection of React Hooks


How to use an image instead of an icon?

Maybe I should change generateVectorIcon func

Thanks @ghiteze for raising the query.
Please refer below README reference for using the vector icons:
icons
Please let me know in case you face any issues.
Thanks
</ Pranav >


[core-lro] Prepare release

For v2.3.0.

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

Duplicate of https://github.com/Azure/azure-sdk-for-js/pull/22844


StochasticUnitCommitment

Name
Stochastic UC
Screenshots
No response
Focus Topic
Simple stochastic Unit Commitment model, single time-step
Primary Purpose
Educational tool to understand the modelling of a single time-step of the stochastic UC problem
Description
No response
Mathematical Description
No response
Website
https://github.com/badber/StochasticUnitCommitment
Documentation
No response
Source
https://github.com/badber/StochasticUnitCommitment
Year
2018
Institution
Imperial College London
Funding Source
No response
Publications
0
Publication List

L. Badesa, "Towards a Cost-Effective Operation of Low-Inertia Power Systems", PhD thesis, Department of Electrical and Electronic Engineering, Imperial College London, 2020.
L. Badesa, F. Teng, and G. Strbac, "Simultaneous Scheduling of Multiple Frequency Services in Stochastic Unit Commitment," IEEE Transactions on Power Systems, vol. 34, no. 5, pp. 3858-3868, 2019.

Use Cases
No response
Infrastructure Sector

[ ] Atmospheric dispersion
[ ] Agriculture
[ ] Biomass
[ ] Buildings
[ ] Communications
[ ] Cooling
[ ] Ecosystems
[X] Electric
[ ] District heating
[ ] Forestry
[ ] Health
[ ] Hydrogen
[ ] Individual heating
[ ] Land use
[ ] Liquid fuels
[ ] Natural Gas
[ ] Transportation
[ ] Water

Represented Behavior

[ ] Earth Systems
[ ] Employment
[ ] Built Infrastructure
[ ] Financial
[ ] Macro-economy
[ ] Micro-economy
[ ] Policy
[ ] Social

Modeling Paradigm

[ ] Analytics
[ ] Data
[ ] Discrete Simulation
[ ] Dynamic Simulation
[ ] Equilibrium
[ ] Engineering/Design
[X] Optimization
[ ] Visualization

Capabilities
No response
Programming Language

[ ] C – ISO/IEC 9899
[ ] C++ (C plus plus) – ISO/IEC 14882
[ ] C# (C sharp) – ISO/IEC 23270
[ ] Delphi
[ ] GAMS (General Algebraic Modeling System)
[ ] Go
[ ] Haskell
[ ] Java
[ ] JavaScript(Scripting language)
[ ] Julia
[ ] Kotlin
[ ] LabVIEW
[ ] Lua
[X] MATLAB
[ ] Modelica
[ ] Nim
[ ] Object Pascal
[ ] Octave
[ ] Pascal Script
[ ] Python
[ ] R
[ ] Rust
[ ] Simulink
[ ] Swift (Apple programming language)
[ ] WebAssembly
[ ] Zig

Required Dependencies
No response
What is the software tool's license?
No response
Operating System Support

[ ] Windows
[ ] Mac OSX
[ ] Linux
[ ] iOS
[ ] Android

User Interface

[ ] Programmatic
[ ] Command line
[ ] Web based
[ ] Graphical user
[ ] Menu driven
[ ] Form based
[ ] Natural language

Parallel Computing Paradigm

[ ] Multi-threaded computing
[ ] Multi-core computing
[ ] Distributed computing
[ ] Cluster computing
[ ] Massively parallel computing
[ ] Grid computing
[ ] Reconfigurable computing with field-programmable gate arrays (FPGA)
[ ] General-purpose computing on graphics processing units
[ ] Application-specific integrated circuits
[ ] Vector processors

What is the highest temporal resolution supported by the tool?
Minutes
What is the typical temporal resolution supported by the tool?
No response
What is the largest temporal scope supported by the tool?

No response
What is the highest spatial resolution supported by the tool?
Region
What is the typical spatial resolution supported by the tool?
No response
What is the largest spatial scope supported by the tool?

No response
Input Data Format
Matlab file
Input Data Description
No response
Output Data Format
Matlab file
Output Data Description
No response
Contact Details
<EMAIL_ADDRESS>Interface, Integration, and Linkage
No response

Thanks for submitting the form!


Fix event payload

Motivation
event_type is not a parsed field. Matches behavior here:
https://github.com/DataDog/integrations-core/blob/ef49b25b6b63c8b1541520f22bff53bd5396c540/nagios/datadog_checks/nagios/nagios.py#L368

I'm looking at the server side processing, and I don't see how it can make a difference. Can you explain what it's supposed to fix? Thanks.

Looks handled by #3979

Discussed offline, we're testing this


多个starter同时引用，出现问题，没有设置实例化优先级

Please do a quick search on Github issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description

Environment
Please provide as many details as possible: Spring AI version, Java version, which vector store you use if any, etc
Steps to reproduce
Steps to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Minimal Complete Reproducible example
Please provide a failing test or a minimal complete verifiable example that reproduces the issue.
Bug reports that are reproducible will take priority in resolution over reports that are not reproducible.

I am not sure how you got this error, it would seem like you included two autoconfigurations in your application.  That results in two instances of AiClient.  In this case, you should disable autoconfiguration and create the AiClient implementations yourself with appropriate qualifiers.

Please reopen the issue if this did not solve your concern.


feat: Allow multiple traffic source attachments

Description

Multiple traffic source attachments per AutoScaling Group are now possible
Motivation and Context

Ability to connect multiple Load Balancers to the same group
Breaking Changes

Input type has changed
How Has This Been Tested?

[x] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[x] I have tested and validated these changes using one or more of the provided examples/* projects

[x] I have executed pre-commit run -a on my pull request

@antonbabenko Can we merge this?

@antonbabenko Can we merge this?

This PR is included in version 8.0.0 :tada:


aboult add remove or modify operation

Could the author support adding, removing, or updating box nodes in an already built BVH tree without needing to rebuild the entire tree each time? Rebuilding the entire tree every time should be more time-consuming than modifying an existing tree, right?

There is unfortunately no canonical way to add or remove nodes in a BVH. One option is to add two nodes at the end of the array, move the root of the BVH to one of them and the node to insert in the other, and then enlarge the root node to fit the previous root and the added node. To give an example, this simple method would work like this:
1.Initial BVH
  A
 / \
B   C

In memory: [A, B, C]

Adding node D:

    R
   / \
  A   D
 / \
B   C

In memory: [R, B, C, A, D]

This method is simple and easy to implement, but it produces bad BVHs: First, the root node now jumps to another node, very far from it, which is not good for cache coherence during traversal, and second, the structure of the BVH is probably not optimal from a traversal cost point of view.
The method I would recommend for someone who doesn't understand/know the tradeoffs of working with BVHs, is to implement this method, then run the re-insertion optimizer. See issue #76.


fix deprecated nuts and hmc kwargs.

some MCMC-related tests were failing because they were still using the now deprecated method="nuts" or "hmc" kwargs.
For the tests, it's an easy fix. I also added a warning so that users know that they have to switch to "{nuts, hmc}_{pyro, pymc}".
However, I also encountered failing tests for the PyMC hmc sampler (c2st too high).
@famura or @felixp8 can you have a look please? Increasing the warmup did not help.. - thanks! 🙏
to replicate the failing test:
pytest tests/mcmc_test.py::test_c2st_pymc_sampler_on_Gaussian

Hi @janfb  I'll have a look at it. My best guess is that this could be (a) due to parameter tuning or (b) due to the sampler being not good enough for the task

Yeah the test fail was most likely due to some merging confusion. Is it fixed now?

Yeah the test fail was most likely due to some merging confusion. Is it fixed now?

No, the PyMC HMC test is not fixed. It's a slow test, not included in CI. There seems to be something off with HMC, because the task is quite simple, just a Gaussian target posterior..

I tried with up to 5k samples for hmc now (and 500) for the others. The tets always fail for hmc with an approx. equal cts2 value

Alright, this seems to be a bigger problem with HMC orthogonal to this PR. I suggest to remove the test, add a warning that something is off with HMC and create a bug issue that points to the test. I can do that.

@famura I had another look and to me it seems that there is something off with the PyMC samplers. I moved the target dist a bit further away from the prior and now all pymc method are failing. Numpy slice sampling is working fine.
To move on, let's get this PR merged and create a new one to solve this problem.

@famura I had another look and to me it seems that there is something off with the PyMC samplers. I moved the target dist a bit further away from the prior and now all pymc method are failing. Numpy slice sampling is working fine.
To move on, let's get this PR merged and create a new one to solve this problem.

Damn, this sounds bad. Frankly, @felixp8 was way more involved with the pymc integration, so maybe he could also have a look at it.
Depending on how things pan out, I might find time on the weekend. Whan I can say for this PR is that we can reduce the number of samples for the other methods to 600 and it still works. That could save a bit of time during testing

A few points where we could start looking at our pymc wrapper:

are values scrambled during reshaping?
are the samplers normalizing things or expect things to be normalized?

Yeah something is off for sure, I'll try to take a deeper dive either later today or on Sunday

Thanks for the feedback @famura . I would keep the num_samples at 1000 to ensure that c2st has enough power.
Merging this into main now so that #1127 can rebase on it.


Add wait-for-model header when sending request to Inference API

Should fix https://github.com/huggingface/huggingface_hub/issues/2175.
In the current implementation, InferenceClient sends a request every 1s as long as the model is unavailable (HTTP 503). This can lead users to be rate limited even though they don't consume the API (reported here). This PR adds "X-wait-for-model": "1" as header which tell the server to wait for the model to be loaded before returning a response. This way the client doesn't make calls every X seconds for nothing. This X-wait-for-model header is added only when requesting the serverless Inference API.
cc @Narsil (from private slack thread)

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

What about doing 1 query without the wait, and only adding the way after the first retry ?

Nice idea! Implemented it in https://github.com/huggingface/huggingface_hub/pull/2318/commits/8ea3f1d16eb225e6f46308e568f907be2b699ee2

Thanks for the review!


Studio Apps Market: Warn about wrong account during app purchasing.

[x] 1. Check relations between UNA.IO account, which was used in Apps Market, and Key&Secret pair, which was used in Studio Settings app. If Key&Secret pair belongs to another account, warn about it.
Ask @antaratma about warning text.

[x] 2. Allow any logged in operator to work with purchased products (Studio -> Apps Market) as if they were purchased under his own UNA.IO account.  Identification of purchased products can be made by K&S owner. Right now only Purchases subpage is working this way. So, to install the previously purchased App user needs to have:
a. Access to Sudio with correct K&S (purchases were done by K&S owner)
b. Active profile on UNA.IO

[ ] 3. Add possibility to Market module to make requests for products with custom filtering parameters. For example, Studio -> Store (Apps Market) should filter out 'Stopped Selling' products.

Point 2 was done in Market API repository.


[Current Implementation] Region example

to get an idea what we are using this for , this an example of a region of the mtv app
[]

check #27

content hubs may go away -- just straight scraper, user -- hub -- client


Displaying non-latin keystrokes while selected input source is non-latin

Title says it all, there are some languages which are not using letters similar to English. For example, Japanese Kana keyboard uses symbols and KeyCastr displays something like this for command + shift + s:  command + shift + と

Quick Google search shows that there are in fact many non-latin languages and keyboards as well. It honestly diminishes the key point of this app, when I can't quickly read and recognise what this keystroke is, because many non-English speakers are still learning shortcut keystrokes for english letters. Sorry for bad english.

Maybe add a rule to sanitise input when parsing command keystrokes? I'm not good at writing code, but something like "if input key is command key then do some black magic" should work?

Thanks for opening an issue about this, and sorry for the frustration here; this topic is a tricky one to get right for all cases, and also tricky to test.
I believe this is the spirit of #187 -- linking these two for now and I'll see what we can do in a future release, no guarantees of timing though.

You may want to try this again; changes since this issue was opened should do a better job displaying keycaps and there is an option to display key events with modifiers applied. It should also display according to your selected input source if it doesn't match your physical keyboard.

replying to the notification email from github, i will try it out when i
get to my laptop
On Fri, 30 Aug 2024 at 11:33, Andrew Kitchen @.***>
wrote:

You may want to try this again; changes since this issue was opened should
do a better job displaying keycaps and there is an option to display key
events with modifiers applied. It should also display according to your
selected input source if it doesn't match your physical keyboard.
—
Reply to this email directly, view it on GitHub
https://github.com/keycastr/keycastr/issues/242#issuecomment-2319930876,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARHJN4JUOE6PLYVPQIZNENLZT7R2FAVCNFSM6AAAAABNLUV2VOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJZHEZTAOBXGY
.
You are receiving this because you authored the thread.Message ID:
@.***>


Novo layout

Create a new layout to project  using bootstrap5 flex
It was necessary to refactor the entire codebase, including js, css, html, jinja templates, and functions.

Now last go to the main and publish


When running the game on iPhone, the loading animation will reload the website

I have a problem when building a game on the h5 platform
I tried running the game on Android, Web, PC, MAC, IPAD normally
But when I use my iPhone to run the game on safari, sometimes the loading animation (.sk file) will automatically reload the website.
I tried using xcode to run the iphone emulator and it worked fine, my problem was when using a real iphone
Can anyone give me a solution to this problem?

I think this is because 'sk' extension is used as  'Safari History Index File' on Apple Safari browser. The solution may be rename 'sk' to something else like 'sk2', and then register a loader for 'sk2'.
Loader.registerLoader(["sk2"], Laya.TempletLoader);


Gitpython - Snk-cli conflicts while writing pyproject

Hello Wytamma,
I am Andy, Rob supervises my PhD. I am currently working on a snakemake workflow "ChloroScan" that incorporates snk-cli. But recently I found that my GitPython version is too early that my git hub repo triggers warnings, and asks me to upgrade gitpython to 3.1.43 (>= 3.1.32) to resolve these security warnings. I tried to upgrade gitpython in pyproject.toml for my repository, but found that by having snk >= 0.24.1 and snk-cli >= 0.1.2, the gitpython version is required to be <= 3.1.31, making it impossible to finish this upgrade.
I hereby wonder if there are any solutions.
Cheers
Andy

Thanks Andy!
Just summarising the solution: When building a standalone cli with snk-cli you don't need to depend on snk only snk-cli so you can drop snk from the pyproject.toml file and that fixes the dependency issue.
-W


Training using KITTI dataset

Hello, how do I use KITTI dataset for training?
I only found: [noise_type == "kitti"]

Hello, I preprocessed the KITTI dataset for training.
The preprocess is as follows

Align two point clouds using GPS data (rough alignment)
Calculate the normals of point clouds so that I can use ICP in Open3D
Refine the registration.
Apply the transformation to part of the point clouds and save it as npy file

Please note that I saved results with normals, which were used for ICP, so that input to model is same as modelnet40.
I added the code for preprocess (I haven't checked if it works in current version). I will add instruction for this preprocess, but sorry, it may be late.
Best regards.

Thank you for your explanation. I have a general understanding of its process (this process is wonderful).
And I will try to view the code first.


preload scripts in development for 8.0.2 are ending in .jsundefined

Bug report
Describe the bug
I'm in the progress of migrating from next 7.0.2, react 16.3.2 to next 8.0.1, react 16.8.2. Right after upgrading both of these I've started seeing 404s for development assets. These all come from preloads that next.js is sending.

Any idea where these get created in next source to see where an undefined is getting coerced to a string for creating these paths on the next server?
System information

OS: macOS
Browser: Chrome
Version of Next.js: 8.0.1

Could you provide a reproduction? I can't reproduce this.

😅 I'll see if I can trim down our setup to make a clean example. We're using an express server so there is a bit of custom gunk going on:
        const { pathname, query } = parse(req.url, true);
        const viewPath = req.params["0"] || "/";
        const q = Object.assign({}, { viewPath }, query);
        return frontend.render(req, res, `/${handlerPath}`, q)

In other cases we're just using:
  const passToNext = (req: express.Request, res: express.Response) => {
    return frontend.getRequestHandler()(req, res);
  };

  app.use(passToNext);

Do you have an _document.js?

_document.tx in its entirety
import * as React from "react";
import Document, {
  Head,
  Main,
  NextScript,
  NextDocumentContext
} from "next/document";

import { ServerStyleSheet } from "styled-components";

import { GA_TRACKING_ID } from "../gtag";

class MyDocument extends Document {
  // Originally ripped from
  // https://github.com/zeit/next.js/blob/master/examples/with-styled-components/pages/_document.js
  static async getInitialProps(ctx: NextDocumentContext) {
    // Create the stylesheet for styled-components to write to on the server side
    // and recollect on the client side
    const sheet = new ServerStyleSheet();
    // We'll be overriding the way pages are rendered in order to flush css-in-js styles,
    // and so we'll need to keep a way to render the page as is
    // See: https://github.com/zeit/next.js/blob/bf69357f2777c6ac7f25e012b0be92765f968097/packages/next/README.md#customizing-renderpage
    const originalRenderPage = ctx.renderPage;

    try {
      ctx.renderPage = () =>
        originalRenderPage({
          // Retrieve styles from components in the page
          enhanceApp: App => props => sheet.collectStyles(<App {...props} />)
        });

      // Run the parent `getInitialProps` using `ctx` that now includes our custom `renderPage`
      const initialProps = await Document.getInitialProps(ctx);

      return {
        ...initialProps,
        styles: (
          <>
            {/* Styles flushed from next.js */}
            {initialProps.styles}
            {/* Styles flushed from styled-components */}
            {sheet.getStyleElement()}
          </>
        )
      };
    } finally {
      // There should not be no more style additions serverside at this point, and we seal to
      // eliminate memory leaks
      sheet.seal();
    }
  }

  getChildContext() {
    return { _documentProps: this.props };
  }

  render() {
    return (
      <html lang="en-US">
        <Head>
          <link rel="stylesheet" type="text/css" href="/static/nprogress.css" />

          <link rel="stylesheet" type="text/css" href="/static/blueprint.css" />
          <link
            rel="stylesheet"
            type="text/css"
            href="/static/blueprint-select.css"
          />

          <link rel="apple-touch-icon" href="/static/apple-touch-icon.png" />

          <link
            rel="icon"
            type="image/png"
            sizes="192x192"
            href="/static/android-chrome-192x192.png"
          />

          <link
            rel="icon"
            type="image/png"
            sizes="32x32"
            href="/static/favicon-32x32.png"
          />

          <link
            rel="icon"
            type="image/png"
            sizes="16x16"
            href="/static/favicon-16x16.png"
          />

          <meta
            name="msapplication-TileImage"
            content="/static/mstile-150x150.png"
          />
          <link rel="shortcut icon" href="/static/favicon.ico" />

          <link
            href="https://fonts.googleapis.com/css?family=Source+Code+Pro:200,300,400,500,600,700,900&subset=latin-ext"
            rel="stylesheet"
          />

          <link
            href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic,900,900italic"
            rel="stylesheet"
            type="text/css"
          />
          <link rel="stylesheet" type="text/css" href="/static/commuter.css" />

          {/* Stylesheets for annotation rendering */}
          <link rel="stylesheet" href="/_next/static/katex.min.css" />
          <link
            rel="stylesheet"
            href="/_next/static/highlightjs-atom-one-light.min.css"
          />

          <script src="https://cdn.plot.ly/plotly-latest.min.js" />

          {/* Global Site Tag (gtag.js) - Google Analytics */}
          <script
            async
            src={`https://www.googletagmanager.com/gtag/js?id=${GA_TRACKING_ID}`}
          />
          <script
            dangerouslySetInnerHTML={{
              __html: `
            window.dataLayer = window.dataLayer || [];
            function gtag(){dataLayer.push(arguments);}
            gtag('js', new Date());
            gtag('config', '${GA_TRACKING_ID}');
          `
            }}
          />
        </Head>
        <body>
          <Main />
          <NextScript />
        </body>
      </html>
    );
  }
}

export default MyDocument;

  getChildContext() {
    return { _documentProps: this.props };
  }

This is the problem. You can remove it.

Thanks @timneutkens, I'll try that out.

Yup, works like a champ! Thanks.

@rgbkrk it basically comes down to that undefined's actual value being set in the context method.


merge package from arlac77/npm-package-template

package.json

chore(scripts): cover@#overwrite c8 --temp-directory build/coverage ava && c8 report -r lcov --temp-directory build/coverage
chore(package): add xo from template
chore(package): add nyc from template
chore(package): set $.ava.require='esm' as in template
chore(package): set $.ava.files='tests/-test.js,tests/-test.mjs' as in template

Coverage remained the same at 94.545% when pulling cbb47e2ad93f29dc5851b348a10392d13e9a2e06 on template-sync-1 into edb400f105bbbff079374d80d77bcbf5f9d86b19 on master.


agent: cannot disable user input for an agent

Describe the bug
When we try to disable user input for an agent, we get the below error.
Expected Behavior
User input can be disabled without any error.
Current Behavior
We get the below error on CFn deployment.

13:45:52 | UPDATE_FAILED        | AWS::Bedrock::Agent | Agent1Agent01A464A5
Resource handler returned message: "Invalid request provided: ActionGroup with name UserInputAction cannot be deleted when it is Enabled. Either use SkipResourceInUseCheckOnDelete flag or mark it as Disabled." (RequestToken: , HandlerErrorCode: InvalidRequest)

Reproduction Steps
Create an agent
import { bedrock } from '@cdklabs/generative-ai-cdk-constructs';

   new bedrock.Agent(this, 'Agent', {
      foundationModel: bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_SONNET_V1_0,
      instruction: 'You are a helpful and friendly agent that answers questions about literature.',
      shouldPrepareAgent: true,
      enableUserInput: true,
    });

Run cdk deploy, and then change enableUserInput: false:
-      enableUserInput: true,
+      enableUserInput: false,

cdk deploy, and we get the above error.
Possible Solution
As the error message suggests, we need to use SkipResourceInUseCheckOnDelete flag or mark it as Disabled. As the stateless nature of CDK, SkipResourceInUseCheckOnDelete seems to be a better option, but not sure the risk of defaulting it to true.
Additional Information/Context
No response
CDK CLI Version
2.151.0
Framework Version
No response
Node.js Version
v20.10.0
OS
macOS
Language
Typescript
Language Version
No response
Region experiencing the issue
us-west-2
Code modification
no
Other information
No response
Service quota

[X] I have reviewed the service quotas for this construct

Hi @tmokmss , thank you for reporting this issue ! Just to be clear, could you please confirm the reproduction steps ? My understanding is:

Deploy the code sample listed above with enableUserInput: true
Update the stack code, and change enableUserInput to false, then re-deploy
Deployment error

@krokoko yes exactly! Thank you for taking care of the issue.

Thanks @tmokmss ! I will try to reproduce and update this ticket as soon as I have more information

Hi @tmokmss , I was able to reproduce the issue. Will update the ticket when I have more details

Notes:

It seems the issue happens only with the action group related to enableUserInput, any other action group can be removed properly
This specific action group is not visible through the console
Still through the console, if you explicitly change the "enableUserInput" to false, and try to destroy the stack, the same error appears and the action group still seems to be marked as "enabled"

I have understood what is the problem here, when enableUserInput: true, this action group is visible on the console under Agent builder -> Additional Settings -> User Input.
This part gets created by this piece of code here: https://github.com/awslabs/generative-ai-cdk-constructs/blob/6b5bbeb84de1515d620f88762276ad91c788b9c9/src/cdk-lib/bedrock/agent.ts#L492-L498
the problem is that when the update happens, this content of this if statement is not executed and thus the ActionGroup is not synthesized, thus disappearing from the template and triggering DELETE operation, however, this delete operation is not allowed, because it should either be set to DISABLED (an update to the ActionGroup resource), or skipResourceInUseCheckOnDelete must be set to true. I believe the easiest solution to this bug is to set:
+      skipResourceInUseCheckOnDelete: true,

during the ActionGroup Creation as in PR #641. Otherwise the other solution would be to always create the action group and according to whether it must be enabled, set the actionGroupState accordingly:
this.addActionGroup(new AgentActionGroup(this, 'userInputEnabledActionGroup', {
    actionGroupName: 'UserInputAction',
    parentActionGroupSignature: 'AMAZON.UserInput',
    actionGroupState: props.enableUserInput ? 'ENABLED' :  'DISABLED',
}));


add option to polyfill node's root variable on bundling

when requiring the v3.9 lodash's npm package's sub module matches:
require('lodash/utility/matches')
the result bundle throws an error on the browser:
"root is undefined" on https://github.com/lodash/lodash-node/blob/master/modern/internal/bufferClone.js#L5.
We should include an extra option of root in http://webpack.github.io/docs/configuration.html#node, so the variable root can also be polyfilled and allow these npm bundles to load happily thereafter.

Related: #1084

@goldensunliu Is this still relevant? If you are using Babel, please see babel-plugin-lodash.

Closed in favor of #1084.


Incorrect size for compiler specified datatypes in Project Archive

Describe the bug
Creating a structure datatype in a Project Archive (manually or using a script) that contain compiler specific sized datatypes (like a 2 byte int) is impossible as when adding say an int it is sized as 4 bytes, making it impossible to set something at 2 bytes later.
To Reproduce
Steps to reproduce the behavior:

Load a Windows 3.1X into Ghidra and analyse it (lots of issues with pointer sizes etc.)
Create a Project Archive
Create a structure containing 2 int types (in the Project Archive)
See the sizes are 4 bytes instead of 2!

Expected behavior
All datatypes that can be sized by a compiler spec should have that size in custom archives.
Environment (please complete the following information):

OS: Windows 11
Java Version: 17.0.3
Ghidra Version: 10.3
Ghidra Origin: locally built (commit a8cdc43bd4c885f5714f6267e6a4b29f05572bf9)

https://github.com/NationalSecurityAgency/ghidra/issues/844#issuecomment-515596598

If you use compiler dependent sizes, this is the problem you are going to run into with data type archives.  (until some enhancements are made to dt archives)
There are other data types that are not compiler dependent (byte, word, dword, qword).  If you use those instead, you can workaround this issue.

If you use compiler dependent sizes, this is the problem you are going to run into with data type archives. (until some enhancements are made to dt archives)
There are other data types that are not compiler dependent (byte, word, dword, qword). If you use those instead, you can workaround this issue.

This isn't exactly an option for any archives containing parsed types or ones pulled from debug info. It's also the reason why I use things I know I'm not supposed to such as DataType.replaceWith.
ps: At this point you don't need to worry about me touching things you don't want me to touch... because I've already touched them.

re: debug info.  Yeah, that is an issue.  2fa7a2df72f610fc94f05470d68e51f3b26357eb does address some use cases in DWARF, but it won't catch everything.

I have addressed this issue within a branch (GP-1633).  It is Still in the review queue.  It will optionally allow a datatype archive to have language/compiler-spec setting and adopt the corresponding data organization.   I will associate this issue# with that internal ticket.

@ghidra1 thank you.


[ISSUE-472] Fix Flaky Test: LocalFileServerReadHandlerTest#testDataInconsistent

What changes were proposed in this pull request?

Reset the static variable to fix LocalFileServerReadHandlerTest#testDataInconsistent

Why are the changes needed?
Fix flaky test
Does this PR introduce any user-facing change?
No
How was this patch tested?

Existing UTs

Codecov Report

Merging #473 (ee2b082) into master (19a8bac) will decrease coverage by 0.64%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #473      +/-   ##
============================================
- Coverage     58.78%   58.13%   -0.65%
+ Complexity     1704     1485     -219
============================================
  Files           206      184      -22
  Lines         11471     9634    -1837
  Branches       1024      864     -160
============================================
- Hits           6743     5601    -1142
+ Misses         4317     3665     -652
+ Partials        411      368      -43

Impacted Files
Coverage Δ

...org/apache/spark/shuffle/RssSparkShuffleUtils.java

...pache/spark/shuffle/writer/WriteBufferManager.java

...ava/org/apache/spark/shuffle/RssShuffleHandle.java

...e/spark/shuffle/reader/RssShuffleDataIterator.java

...pache/hadoop/mapreduce/task/reduce/RssFetcher.java

...n/java/org/apache/hadoop/mapreduce/MRIdHelper.java

...g/apache/hadoop/mapred/SortWriteBufferManager.java

...preduce/task/reduce/RssRemoteMergeManagerImpl.java

.../org/apache/spark/shuffle/writer/WriterBuffer.java

.../hadoop/mapreduce/task/reduce/RssEventFetcher.java

... and 12 more

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

Thanks @kaijchen


Hover state on disabled buttons

Issue report
Expected Behavior
A disabled button should have no interaction on hover
Current Behavior
Disabled buttons have hover state, background-color: blue
Possible Solution
Update component CSS
Steps to Reproduce (for bugs)

View button in browser
Hover

Your Environment
Happens in all projects and all browsers

fix: https://github.com/AlaskaAirlines/OrionStatelessComponents__ods-button/commit/ae2e6b93c54029c24d2969c38721158403280b79


Finetune HRM & GRU4Rec hyper parameters

fine_tune_models_parameters
close #207 .

I forget to add the gru4rec and hrm conf file.

In this PR, I fine tune some hyper parameters of HRM & GRU4Rec. The Model will hava a better perfromance with these parameters.


Update JS dependencies

Description
Supersedes most of the dependabot PRs, needs to be cherry-picked on the web update PR to work due to CI (inter)dependencies

Closed as mostly done in #2571, will open another one for other ones sometime soon


AppCheck Swift API build tests

Removed extra space in public header
Added Swift API build tests for AppCheck SDK
#no-changelog

See the @available checks in https://github.com/firebase/firebase-ios-sdk/pull/8332/files

Thanks @paulb777, improved. I just learned something interesting: marking an API with @available(iOS #, *) implicitly adds tvOS and macCatalyst as well since those platforms are derivatives of iOS.

This PR was developed using Xcode13b1.