exception while flutter run

Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter run
exception
ProcessException: ProcessException: Process "/usr/bin/xcrun" exited abnormally:
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Failed to load Info.plist from bundle at path /Users/aheathcliff/Library/Developer/CoreSimulator/Devices/DDA07949-E280-476A-95D1-DD9D3F1D81F8/data/Library/Caches/com.apple.mobile.installd.staging/temp.7TtIwO/extracted/Payload/Runner.app
Failed to load Info.plist from bundle at path /Users/aheathcliff/Library/Developer/CoreSimulator/Devices/DDA07949-E280-476A-95D1-DD9D3F1D81F8/data/Library/Caches/com.apple.mobile.installd.staging/temp.7TtIwO/extracted/Payload/Runner.app
Underlying error (domain=MIInstallerErrorDomain, code=35):
	Failed to load Info.plist from bundle at path /Users/aheathcliff/Library/Developer/CoreSimulator/Devices/DDA07949-E280-476A-95D1-DD9D3F1D81F8/data/Library/Caches/com.apple.mobile.installd.staging/temp.7TtIwO/extracted/Payload/Runner.app
  Command: /usr/bin/xcrun simctl install DDA07949-E280-476A-95D1-DD9D3F1D81F8 /Users/aheathcliff/Documents/projects/kuaimai/km_app_flutter_cjh/build/ios/iphonesimulator/Runner.app

#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:251:5)
<asynchronous suspension>
#1      SimControl.install (package:flutter_tools/src/ios/simulators.dart:125:16)
#2      IOSSimulator._setupUpdatedApplicationBundle (package:flutter_tools/src/ios/simulators.dart:396:31)
<asynchronous suspension>
#3      IOSSimulator.startApp (package:flutter_tools/src/ios/simulators.dart:308:15)
<asynchronous suspension>
#4      FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:289:54)
#5      _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#6      _rootRunUnary (dart:async/zone.dart:1132:38)
#7      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#8      _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#9      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#10     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#11     Future._complete (dart:async/future_impl.dart:476:7)
#12     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#13     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#14     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#15     getApplicationPackageForPlatform (package:flutter_tools/src/application_package.dart)
#16     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#17     _rootRunUnary (dart:async/zone.dart:1132:38)
#18     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#19     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#20     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#21     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#22     Future._complete (dart:async/future_impl.dart:476:7)
#23     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#24     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#25     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#26     FlutterProject.fromDirectory (package:flutter_tools/src/project.dart)
#27     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#28     _rootRunUnary (dart:async/zone.dart:1132:38)
#29     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#30     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#31     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#32     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#33     Future._complete (dart:async/future_impl.dart:476:7)
#34     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#35     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#36     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#37     FlutterProject._readManifest (package:flutter_tools/src/project.dart)
#38     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#39     _rootRunUnary (dart:async/zone.dart:1132:38)
#40     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#41     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#42     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#43     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#44     Future._complete (dart:async/future_impl.dart:476:7)
#45     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#46     _rootRunUnary (dart:async/zone.dart:1132:38)
#47     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#48     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#49     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#50     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#51     Future._complete (dart:async/future_impl.dart:476:7)
#52     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#53     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#54     _rootRun (dart:async/zone.dart:1124:13)
#55     _CustomZone.run (dart:async/zone.dart:1021:19)
#56     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#57     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#58     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#59     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#60     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)

flutter doctor
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.13.6 17G4015, locale zh-Hans-CN)
    • Flutter version 1.0.0 at /Users/aheathcliff/Documents/development/flutter
    • Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
      You may also want to add it to your PATH environment variable.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

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

[✓] Connected device (1 available)
    • iPhone X • DDA07949-E280-476A-95D1-DD9D3F1D81F8 • ios • iOS 12.1 (simulator)

! Doctor found issues in 2 categories.

Duplicate of #22787


feat(theme): add support for setting text and code colors in callouts

This PR adds support for 3 new tokens (per callout):

--tk-elements-callouts-tip-textColor: Set the text color of the callout
--tk-elements-callouts-tip-codeColor: Set the text color of code snippets
--tk-elements-callouts-tip-codeBackgroundColor: Set the background color of the code snippets

Let me know if you want to rename it to something different or tweak it slightly.

We gotta make sure that this is added to the Figma file as well (CC @donmckenna)


Maps Flagged as Error

Summary
A nested map is flagged as an error.  The curly brace after network_policy_config is highlight as red.
resource "google_container_cluster" "testbook" {
  name               = "testbook"
  zone               = "us-east1-b"
  initial_node_count = 3

  addons_config {
    network_policy_config {
      disabled = true
    }
  }
}

Example

In v0.9.3 of this package this is working correctly now so I will close the issue. Please reopen if you spot the problem again.


Minor typo in the Resource Processor

Linked to #3498
What is being addressed
Whilst trying to build locally, I had trouble with an old Porter Table Storage folder which it could not migrate. On solving this, I was debugging this .sh file and noticed 2 typos.
Also, whilst run the make all command I could not remember what the different commands were so have added some pretty help text so you can now just type make
all                       🚀 Provision all the application resources from beginning to end
tre-deploy                🚀 Provision TRE using existing images
images                    📦 Build and push all images
help                      💬 This help message :)
tre-start                 ⏩ Start the TRE Service
tre-stop                  ⛔ Stop the TRE Service
tre-destroy               🧨 Destroy the TRE Service
lint                      🧹 Lint all files
test-e2e-smoke            🧪 Run E2E smoke tests
test-e2e-extended         🧪 Run E2E extended tests
test-e2e-extended-aad     🧪 Run E2E extended AAD tests
test-e2e-shared-services  🧪 Run E2E shared service tests
test-e2e-custom           🧪 Run E2E tests with custom selector (SELECTOR=)
setup-local-debugging     🛠 Setup local debugging
auth                      🔐 Create the necessary Azure Active Directory assets
db-migrate                🗄 Run database migrations

Feel free to just ignore/delete at your leisure!

/test-force-approve


export este fields into redux-fields

Just ask me and I will add you to redux-fields repo.

@steida Current progress:

New redux-fields package (I noticed you created steida/redux-fields, so package.json is ok)
Commit in Este which references redux-fields package

I still don't know what to do with the dependencies in redux-fields repo (should we try using peer dependencies?)

open sourcing is hard

@steida I think you can close this one now that @mmmoli did the job (de366bf769861c1cb5102dde6d4b4fc2af4abe5f)

I just pulled-out the firebase things only.
redux-fields was left un-touched.

Doh, sorry :)

I changed my mind. Este is and should be http://danluu.com/monorepo I really have no time to manage all versions etc. If you like Este stuff, you can always make your own npm module based on it.

Np. I think it's a smart move too.


Which License to pick?

I think MIT template is good enough https://github.com/Shovan-Physics/cDMRG/community/license/new?branch=main&template=mit
@Shovan-Physics take a look at other top suggestions, I don't have strong preference.

I have no idea of what options we have.. ITensor has some Apache License 2.0 license: https://github.com/ITensor/ITensor/blob/v3/LICENSE

Is there any clause that if you use ITensor you have to use the same license? What about Mathematica?
Also, we should probably check with Erich before selecting one.

@Shovan-Physics yes, double check with him.
Regarding ITensor's licence: https://softwareengineering.stackexchange.com/a/262071/349723 says that Apache 2.0 is not transferable to the derived code, i.e. use whatever.

OK great, I'll check with Erich. It does say "The users of your application must receive a copy of the Apache 2.0 license."

@anton-buyskikh Let's go with Apache 2.0. I talked with Erich today. Basically, Apache 2.0 and the MIT one should be functionally equivalent for us.


[bug] should doesn't allow to combine few values

can't make such query:
{
    "query": {
        "bool": {
            "filter": [
                {
                    "bool": {
                        "should": [
                            {
                                "term": {
                                    "merchantcustomeremail": "8377"
                                }
                            },
                            {
                                "prefix": {
                                    "email": {
                                        "value"<EMAIL_ADDRESS>                                    }
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
}

tried next:
            var query = new QueryContainerDescriptor<ElasticSearchCustomer>()
                .Bool(b => b
                    .Filter(f => f
                        .Bool(b1 => b1
                            .Should(m => m
                                .Term(qs => qs.Field(user => user.email).Value(input.UserName.ToLower()))
                            )
                            .Should(sh2 => sh2
                                .Prefix(p => p.Field(user => user.email).Value(input.Email.ToLower()))
                            )
                        )
                    )
                );

but get only next:
{
    "query": {
        "bool": {
            "filter": [
                {
                    "bool": {
                        "should": [
                            {
                                "prefix": {
                                    "email": {
                                        "value"<EMAIL_ADDRESS>                                    }
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
}

Not a bug, the fluent methods are not additive by design.
Should() is variadic and takes multiple should clause descriptors.
Thanks for taking the time to raise an issue though! Always much appreciated, please open more if something does not look right to you :)

could you help me with example?


Cache icons in PhysicalWebcollection

Writes icons to cache along with PwsResult data instead
of fetching them each time on resume

@cco3


New notifications at the top of the list

I'm using a position of 'tr' (top right) for the notification list. As new notifications come in, they are added to the bottom of the list.
What would be useful is an option so that new notifications would be added to the top of the list and the other notifications would be shifted down. Is that currently possible or in the works?

Right now it's not possible due the order of the elements on each container and the css positions.

Right now it's not possible due the order of the elements on each container and the css positions.

Have you considered using flexbox in the notifications container so the order of the children can be modified by CSS?


fetch-cargo-vendor: allow retries for 10 times

Part of https://github.com/NixOS/nixpkgs/pull/356862
cc https://github.com/NixOS/nixpkgs/issues/357257
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

https://github.com/NixOS/nixpkgs/pull/357262


205 : Logging and monitoring rules

@kickroot
Additionally add SQL for one more rule GCP 2.3:
Ensure that retention policies on log buckets are configured using Bucket Lock
Tested:


Facebook Reports: Need to specify proper level param

In the facebook-implement branch, src/Services/FacebookAds/Reports.php, for functions getCampaignReport and getAdGroupReport, it looks like you need to specify the proper $params['level'], either 'campaign' or 'adset'. It's currently using 'account', and using that I can't get campaign_id or campaign_name when trying to get a campaign report. It seems to work if it's set to 'campaign'. I assume adGroup/adset is the same, but I haven't tested that yet.

Ok thanks, yeah I think I ran that in for testing, I'll add that as a custom option, when testing on getCampaignReport and using account level, I was able to get campaign_id and name back, I'm curious to know what params you were using, nonetheless, I'll make it custom, very odd why they are being so specific. New release will be made for Friday, let me know if you find anything else

I wonder if it's due to v11 vs v10? This is how I was grabbing the report
$report = $facebookAds->reports($startDate, $endDate)->setParams(['time_increment' => 1])->setFields([
        AdsInsightsFields::ACCOUNT_ID,
        AdsInsightsFields::ACCOUNT_NAME,
        AdsInsightsFields::CAMPAIGN_ID,
        AdsInsightsFields::CAMPAIGN_NAME,
        AdsInsightsFields::DATE_START,
        AdsInsightsFields::DATE_STOP,
        AdsInsightsFields::IMPRESSIONS,
        AdsInsightsFields::CLICKS,
        AdsInsightsFields::CTR,
        AdsInsightsFields::CONVERSIONS,
        AdsInsightsFields::CONVERSION_VALUES,
        AdsInsightsFields::CPC, // average
        AdsInsightsFields::COST_PER_CONVERSION,
        AdsInsightsFields::CPM, // average
        AdsInsightsFields::COST_PER_ACTION_TYPE,
        AdsInsightsFields::ACTIONS,
        AdsInsightsFields::ACTION_VALUES,
        AdsInsightsFields::SPEND
     ])->getCampaignReport();

Ok, just made an update that moves level param to the default params so that you can override level as a param itself now. and by default for account, campaign and adset it will use the actual level for those reports. Going to close this for now, I'm on discord if you can and we can iron out these details, hope this helps.


feat: enable HSTS by default on all the publick8s cluster

This PR comes from INFRA-2998 and aims at enabling HSTS globally on the public ingress of the cluster publick8s by default, unless disabled per ingress rules.
It reverts the content of https://github.com/jenkins-infra/charts/pull/98 as tipped by @timja , now that we have HTTPS mirrors (and that the charts allows disabling HSTS per ingress rule).
The HSTS values are the default recommended per https://hstspreload.org/.
⚠ Please note that this PR, once merged and deployed, might break some usages (clictracking, stats, cross sites). It is a non easy topics, so if we breaks usages, we'll have to avoid disabling it and instead fine tune (per website, or header values).
=> It means that a torough reveiw is required

My last experience with HSTS enabled on a site was bad due to the "sticky" nature of the HSTS setting.  If I understand correctly, once a browser sees a site is HSTS enabled, there is no way to "undo" that setting.  Agreed that we need careful review and thought before this is merged

That's a good point: we might want to re-introduce HSTS gradually.
WDYT about starting with a 1 day max age for 7 days. If no issue, then we can move to 1 week max age for 2 weeks, and then 1 month for 2 month, until the 2 years limits?

PR updated with the following changes, trying to take all your feedbacks in account, WDYT?

Removing the HSTS for subdomains, to ensure any ingress rule can opt-out easily without requiring web browsers to be reset individually
Defined the max age at 24h for now (with an inline comment), so if we break something, the impact would last only 24h

Please note that there is already an ingress rule that explictly disable HSTS: https://github.com/jenkins-infra/charts/blob/4173be64f6a814eb6b8fd04ddef363e741a5f20c/config/default/mirrorbits.yaml#L26

PR updated with the following changes, trying to take all your feedbacks in account, WDYT?

Removing the HSTS for subdomains, to ensure any ingress rule can opt-out easily without requiring web browsers to be reset individually
Defined the max age at 24h for now (with an inline comment), so if we break something, the impact would last only 24h

Please note that there is already an ingress rule that explictly disable HSTS:
https://github.com/jenkins-infra/charts/blob/4173be64f6a814eb6b8fd04ddef363e741a5f20c/config/default/mirrorbits.yaml#L26

HSTS is on most services already though. (including get.jenkins.io, not sure what that ingress rule you mean is doing as it's on)
Can't say I really see the point in this 24h setting if you aren't including sub domains, as it's already enabled.
Setting includeSubDomains with 24h would make sense as it's easier to fix any issues / roll it back if needed

HSTS is on most services already though. (including get.jenkins.io, not sure what that ingress rule you mean is doing as it's on)
Can't say I really see the point in this 24h setting if you aren't including sub domains, as it's already enabled.
Setting includeSubDomains with 24h would make sense as it's easier to fix any issues / roll it back if needed

Thanks @timja! I (wrongly) assumed that the annotation was working, but it is not:
date && curl -s -vv  https://get.jenkins.io -o /dev/null 2>&1 | grep -i 'x-'
Thu Aug 19 10:38:41 CEST 2021
< strict-transport-security: max-age=15724800; includeSubDomains

https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#hsts => Only through the configmap (e.g. through the config: directive for each nginx controller in the helm chart values for us).
https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/ => does not mention HSTS
https://docs.nginx.com/nginx-ingress-controller/configuration/ingress-resources/advanced-configuration-with-annotations/ mentions the annotations nginx.org/hsts* but it's with the Nginx Inc. ingress controller (not ours)
https://github.com/kubernetes/ingress-nginx/issues/549 => HSTS is enabled by default on any TLS server block on the ingress-nginx, and the default is 6 month ages (e.g. 15724800 seconds) with subdomains.

The 300s max age from https://www.jenkins.io is not coming from the ingress though: @olblak pointed me that it might be Fastly: that would be a separate configuration update.
Let me update the PR accordingly to your feedbacks

PR updated:

Subdomains are present
All HSTS annotations removed (because ignored)
Max Age set to 24h even though it will be overridden by fastly for some domains


Win build

Commit message
Visual Studio, Windows SDK, CMake needed.
Poatgres folder has to be defined.
Look how TimescaleDB windows build is done,
should be similar as it is copied from there.
Tests not working.
Extra info
Windows build works quite same as TimescaleDB Windows build process.
After all dependencies needed are installed, bootstrap.bat will make the build folder and in Visual Studio it is possible to build and install from right clicking on CMakeLists.txt.
When building all in Visual Studio regressiontest will fail and I think regressioncheck was the 2nd one to fail. Build and install work fine.
Tests are copied from TimescaleDB, some of the files were removed that seemed not used for this dll, but I never got the time to work on tests.
in src/prom.c PGDLLEXPORT was needed for functions to get rid of
FATAL:  could not find function "prom_in" in file ".../timescaledb.dll"
Rest of the changes are mainly CMake files.

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


Add unit test project for Azure Storage Provider

We need some test automation to ensure that are properly setting values when creating experiments, runs and metrics

There is no unit test project for SQL server either. Required? @aslotte


iOS crash: RNIapIos.getPurchaseData takes up more than 1 GB of memory

Description
After upgrading from 7.5.3 to 10.1.0, my app crashes everytime in half a minute after startup

Failure Reason: Message from debugger: Terminated due to memory issue

In the Console log, I found the app crashed after hundreds of

"New transaction added to queue <SKPaymentTransaction: 0x280342fb0>"

and with hundreds of

[react-native-iap] Purchase Successful
[react-native-iap] requestReceiptDataWithBlock with force refresh: NO

in the xcode console
here is the Instruments screenshot

As you can see in the screenshot, it take up too many memory, it looks suspicious, but sorry, I'm not familiar with swift and RNIap, so I can't tell the reason for it in a short time. I'll have a try, but I wonder if @andresesfm or @jeremybarbet can take a quick look and see if you can see the answer directly?
To Reproduce
you need an sandbox account with a lot of past purchases, I think it is the key, you can't reproduce this issue with a new account, but it's 100% chance for an account with a lot of past purchases.
Environment:

react-native-iap: 10.1.0
react-native: 0.66.0
Platforms (iOS, Android, emulator, simulator, device): iOS real device

take one of these tests, for example, in 8 seconds more than 9000 object(size 112kb~656kb) is created, and then app is killed by os, most of these object is about receipt data
after commenting out some code related to receipt Data, the app will still get a memory warning, but it will not be killed. Again, I am not familiar with both Swift and native development. I just wonder if receipt data is stored in several large collections at the same time, so if the sandbox account has too many historical transactions, with an influx of receipt data, so that these collections occupy a huge of memory in an instant, leading to the app being killed by the system?
I still don't know how to fix it😫, I am afraid to release a new version with this issue now, I think I may have to go back to 7.5.3 first

There probably won't be hundreds of subscriptions in the actual account, so maybe it will probably only affect Test Flight users, whose sandbox accounts, as far as I know, can't clear its purchase history. I guess I can never use my own Apple Id to test my beta version app in Test Flight from now on.
Or, does anyone know how to clear the purchase history of their Test Flight sandbox account with their Apple Id?  I only know how to clear purchase history. of normal sandbox account

@YaoHuiJi this is a common complaint. As you have mentioned, this happens when you use the same account to test on sandbox. I've seen some SO posts where the suggestion is to use new accounts every time

For reference: https://stackoverflow.com/questions/7747457/clearing-purchases-from-ios-in-app-purchase-sandbox-for-a-test-user

For reference: https://stackoverflow.com/questions/7747457/clearing-purchases-from-ios-in-app-purchase-sandbox-for-a-test-user

thank you for your reply, maybe I didn't make it clear, I already know how to clear the purchase history of an ordinary sandbox account, I mean the sandbox account of Test Flight, this sandbox account is different from the sandbox account of development mode, you can't find it in Connect and clear its purchase history, it is the same real account as the Apple Store account.

@YaoHuiJi this is a common complaint. As you have mentioned, this happens when you use the same account to test on sandbox. I've seen some SO posts where the suggestion is to use new accounts every time

thank you, I'm not familiar with native development, I think a lot of React Native developers aren't, either. It would have been nice if there had been a hint in the document "Frequently Asked Questions."


Runtime error

Any plan to continue development?

I plan to continue development eventually, yes.
roblox-rs uses https://github.com/Rerumu/Wasynth to compile the WebAssembly into Luau code, and Wasynth is currently undergoing some major changes that will make its emit a lot faster and more viable in real world usage.
After the new version of Wasynth is out, I'll likely try and find some more time to dedicate to roblox-rs.

I did it and I got a new error

First of all, I am new to Lua. I don't see where Integer is initialized, so I assumed that Integer was a language standard object. But it's nil. Why?
https://github.com/Rerumu/Wasynth/blob/d6b7a232ac31fcc66330109f19317d6df39ceebe/codegen/luau/runtime/runtime.lua#L1-L9

I see that Integer is defined in runtime.luau. I removed runtime.luau from the same folder thinking that it would conflict with runtime.lua. Do they both need to exist?

I made it work once, but now, with no obvious change made, I am getting this error. I've tried for many hours to reproduce every step to make it work again with no success. Any idea what is going on here?

My initial attempt was to try to copy everything in the roblox folder to rojo's default project src/server folder. I have no idea how I got it to work. But I realized I have to use bindings rojo's project to make it work.

So, in order to make it work I had to:

Copy runtime.lua from Wasynth
Copy the Function definition from runtime.luau to runtime.lua

The last error I got was possibly happening because the rustflags in .cargo/config where missing when using cargo build --manifest-path. Also .cargo/config is deprecated in favor of .cargo/config.toml. I wonder if updating it will make it work.
https://github.com/rust-lang/cargo/issues/3808

The last error I got was possibly happening because the rustflags in .cargo/config where missing when using cargo build --manifest-path.

I'm not sure what you mean by this, what path are you specifying for the manifest?

I see that Integer is defined in runtime.luau. I removed runtime.luau from the same folder thinking that it would conflict with runtime.lua. Do they both need to exist?

Only one needs to exist, but we name the file .luau as that is the language that Roblox uses.
Integer is defined separately in Wasynth as there's two implementations, the table-based version (faster) and the vector-based version (more memory efficient.) I believe roblox-rs is using the vector-based one, but you can use either technically.

Integer is defined separately in Wasynth as there's two implementations, the table-based version (faster) and the vector-based version (more memory efficient.) I believe roblox-rs is using the vector-based one, but you can use either technically.

I still don't get how it's included and why I have to write it on top of the runtime.lua file. Is there something I am missing?

Integer is defined separately in Wasynth as there's two implementations, the table-based version (faster) and the vector-based version (more memory efficient.) I believe roblox-rs is using the vector-based one, but you can use either technically.

I still don't get how it's included and why I have to write it on top of the runtime.lua file. Is there something I am missing?

It's the 64 bit integer implementation. Lua(u) doesn't have 64 bit integers but wasm requires them so they're implemented manually. It's not bundled by default as there's two implementations because one is better for performance and heavy on memory whilst the other is better for memory and heavier on performance.
That said, all of that will be significantly simplified in Wasynth's refactor

I get this, my question was mostly about: Do I really need to copy the Integer implementation in the runtime.lua file? Or is there a correct way to do include it (or maybe a project config I am missing)?

I made it work once, but now, with no obvious change made, I am getting this error. I've tried for many hours to reproduce every step to make it work again with no success. Any idea what is going on here?

I fixed the getservice error by disabling multivalue.


New feature: offline mode

As stated in the title... But what's the definition of offline mode?
A minimum implementation would be to save the redux state to disk each time we perform a sync, and initialize the redux with said persistent state(if any) when launch.

Access downloaded gists
Read only mode?

IMO there should be a cache mechanism to cache gists in controllable disk space. For example, the users could configure how many GBs can be used to cache gists.

@gaocegege
I'm not sure whether Apple's sandbox mode will allow this if we want to publish Lepton to MAS. But it's a nice idea to think about:)

Netease Cloud Music is using the mechanism and I'm not sure whether I downloaded it from MAS :)

We can leave more options for users to control if a snippet should be downloaded such as using tags...

Any updates on this ? It's pretty handy.

I'd love the ability to use lepton as an editor and save to local file.


Error Unhandled Promise rejection:

polyfills.js:3 Unhandled Promise rejection: Template parse errors:
"let-" is only supported on template elements. ("
<ng-template #defaultItemTemplate [ERROR ->]let-item="item">
{{item[labelKey]}}

"): MentionListComponent@1:38
'ng-template' is not a known element:

If 'ng-template' is an Angular component, then verify that it is part of this module.
If 'ng-template' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. ("
[ERROR ->]<ng-template #defaultItemTemplate let-item="item">
{{item[labelKey]}}

"): MentionListComponent@1:4
'ng-template' is not a known element:

I have this error please can some one help me ? when I import
imports: [
HttpModule,
MentionModule,
]
Thanks

What version of angular you are using? ng-template requires version 4.

thanks for your response ,  I m using angular 2 with ionic 2 :/, i have to do this kind of tag " @ " , so i can't ?
Thanks

angular2-mentions version 0.4.4 should still work with angular version 2.

How can i get the version 0.4.4 ? i m on angular 2.1, please ? sorry I m new , Thanks for your reponse

Try: npm install --save<EMAIL_ADDRESS>

Its works thanks ! but i have a one more little problem, I m using Ionic 2 , its works on a simple input , but in a  when i press "@" in the input , i can't write after that?
so its works on ionic ? or i have to choose another version ?
thanks a lot for your time.

I don't use Ionic, so I don't know if it works.


Can you extract AND inline the same svg?

Is is possible both to extract svg to a file AND inject the same svg into a server-side rendered page?
Im using a setup similar to https://github.com/kisenka/svg-sprite-loader/tree/master/examples/server-side-rendering. This works fine without extract enabled.
Enabling extract mode successfully generates the sprite file, but now an empty sprite is output into the html:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
                    style="position: absolute; width: 0; height: 0" id="__SVG_SPRITE_NODE__"></svg>

Very grateful for your advice

If you're rendering sprite at server why do you need it as separate file? Extract sprite to a file needed by frontend code only.

If you're rendering sprite at server why do you need it as separate file? Extract sprite to a file needed by frontend code only.

Some of the html in my app is generated at compile time, but some of it is generated on the fly. I need to bake the svg sprite into the static pages, but also re-use (inline) the same svg in the dynamic pages (which use a completely different stack).
Thanks for your help, and for the great loader.

Unfortunately this is not possible in webpack, because you need to process the same file in different ways: in NodeJS env use isomorphic sprite; in browser env - use extracted sprite. To archive it you'll need to import the same SVGs in different ways, e.g.:
// for browser env
import './img/image.svg?browser';

// for NodeJS
import './img/image.svg?server';

and webpack config:
module: {
    rules: [
      {
        test: /\.svg\?browser/,
        loader: 'svg-sprite-loader',
        options: {
          extract: true
        }
      },
      {
        test: /\.svg\?server/,
        loader: 'svg-sprite-loader',
        options: {
          spriteModule: 'svg-sprite-loader/runtime/sprite.build'
        }
      }
    ]
  }

But, to be honest, it should be done via different loaders. Currently I am developing separate webpack plugin to extract sprites from SVGs. You can try it instead of extracting mode, but currently it has no documentation :) The package name is extract-svg-sprite-webpack-plugin and it configures like this:
const SpritePlugin = require('extract-svg-sprite-webpack-plugin');

module.exports = {
  module: {
    rules: [
      {
        test: /\.svg\?browser/,
        use: SpritePlugin.extract()
      }
    ]
  },

  plugins: [
    new SpritePlugin({
      filename: 'sprite.svg',
      spriteType: 'stack'
    })
  ]
};

I am plan to release it officially during July and drop extract mode in svg-sprite-loader

Wow - ha - the double import idea is a genius hack! :-)
But you're definitely right too that multiple loaders is best. I'm about to give extract-svg-sprite-webpack-plugin a g - thank you for the advance notice.
Very grateful for your work. Thank you so much. Have a great day.

I have the same issue but the reason is that if I connect extracted sprite via url in xlink:href, I will miss the gradients. That`s why I want to connect sprite into the page without using link in icons


Trigger navigation bar with remote tv and add more navigation bar function

Describe your suggested feature
Currently, you can only use navigation bar function when it shows shortly after you open a video, when it's hide you can't trigger it using remote tv. you can only reopen video and wait for navigation bar to show itself before using it again.
and since you can't double tap on android tv please add jump forward button on navigation bar.
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extensions repository.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I will fill out all of the requested information in this form.

https://github.com/aniyomiorg/aniyomi/issues/162


libcurl-features: Move thread safety info to libcurl doc

The thread safety information in this file has been consolidated in
libcurl's documentation libcurl-thread.3. We now point to that document
instead.

See bagder/curl#341

Thanks, merged now, sorry for my slowness.


How to use typography styles in 0.18.x

Problem description
How to use Typography in styling components in 0.18.x
Like if i want to style this
My caption
is it like
My caption
It does not work

Have a QUESTION? Please ask in [StackOverflow or gitter](http://tr.im/77pVj.

So you just read all these and decided to ignore them? Cool.

We don't have a Typography component on the v0. x version. It was introduced with v1.x
@NonameSLdev :+1:


Fluent LogFactory.Setup - General Options

Maybe have fluent-setup of these LogFactory-options:

ThrowConfigExceptions
AutoShutdown
GlobalThreshold

Maybe have fluent-setup of these LogEvent-options (Could also be placed into serialization, since it affects serialization of LogEvents):

TimeSource
DefaultCulture
LogMessageTemplateFormatter

Could also add event-handlers for these events:

Application Exit-EventHandler (Ensure that user-specificied event-handler is always executed before autoshutdown, so any logging will succeed).
Application Unhandled-Exception-EventHandler (Allow easy logging of the bad exception)

Resolved by #4662 for NLog 5.0


Write a Rust program to convert string to titlecase

Description
Write a Rust program to convert string to titlecase
Titlecase is a style of writing in which the first letter of each word is capitalized.
Input  : "hello world"
Output : "Hello World"

How to contribute

Save the solution in program/convert_string_to_titlecase.rs file
Add convert_string_to_titlecase.rs file in convert-string-to-titlecase folder

!assign


Example: Partytown + Google Tag Manager + CSP

Hydrogen example: Partytown + Google Tag Manager + CSP
This folder contains a peformance-oriented example lazy-loading Google Tag Manager
using Partytown.
Party town helps relocate resource intensive scripts into a web worker, and off of the main thread.
Its goal is to help speed up sites by dedicating the main thread to your code, and offloading third-party scripts to a web worker.
Requirements

[Google Tag Manager ID] - Log in to your Google Tag Manager account and open a container. In the top right corner (next to the Submit and Preview buttons) you'll see some short text that starts with GTM- and then contains some letters/numbers. That's your Google Tag Manager ID
Basic Partytown knowledge - Introducing Partytown: Run Third-Party Scripts From a Web Worker

Key files
This folder contains the minimal set of files needed to showcase the implementation.
Files that aren’t included by default with Hydrogen and that you’ll need to
create are labeled with 🆕.

File
Description

🆕 .env.example
Example environment variable file. Copy the relevant variables to your existing .env file, if you have one.

🆕 app/components/PartytownGoogleTagManager.tsx
A component that loads Google Tag Manager in a web worker via Partytown with built-in CSP support.

🆕 app/utils/partytown/maybeProxyRequest.ts
A Partytown url resolver to control which 3P scripts should be reverse-proxied. Used in Partytown's resolveUrl property

🆕 app/utils/partytown/partytownAtomicHeaders.ts
Utility that returns the required headers to enable Atomics mode for added performance

🆕 app/routes/reverse-proxy.ts
A route that acts as a reverse proxy for 3P scripts that require CORS headers

app/root.tsx
The root layout where Partytown and GTM is implemented

app/routes/_index.tsx
The home route where a GTM pageView event is emmited

app/entry.server.tsx
Add GTM domain to the script-src directive

Dependencies

Module
Description

🆕 @builder.io/partytown
Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker, and off of the main thread. Its goal is to help speed up sites by dedicating the main thread to your code, and offloading third-party scripts to a web worker.

Instructions
1. Install required dependencies
npm i @builder.io/partytown

2. Modify npm scripts
In package.json modify the build script and add the partytown script
Add the partytown script which copies the library files to /public
  "scripts": {
+    "partytown": "partytown copylib public/~partytown"
  },

Modify the build script to copy the partytown library files to /public before every build
  "scripts": {
-    "build": "shopify hydrogen build",
+    "build": "npm run partytown && shopify hydrogen build",
  },

View the complete component file to see these updates in context.
3. Copy the library files
npm run partytown

4. Copy over the new files

In your Hydrogen app, create the new files from the file list above, copying in the code as you go.
If you already have a .env file, copy over these key-value pairs:

GTM_CONTAINER_ID - To obtain your GTM container ID follow these instructions

5. Edit the root.tsx layout file
Import the required components and utilties
import {Partytown} from<EMAIL_ADDRESS>import {PartytownGoogleTagManager} from '~/components/PartytownGoogleTagManager';
import {maybeProxyRequest} from '~/utils/partytown/maybeProxyRequest';
import {partytownAtomicHeaders} from '~/utils/partytown/partytownAtomicHeaders';

Update the loader function
export async function loader({context}: LoaderFunctionArgs) {
  const layout = await context.storefront.query<{shop: Shop}>(LAYOUT_QUERY);
  return json(
    {
      layout,
      // 1. Pass the GTM container ID to the client
      gtmContainerId: context.env.GTM_CONTAINER_ID,
    },
    {
      // 2. Enable atomic mode
      headers: partytownAtomicHeaders(),
    },
  );
}

Update the App component
export default function App() {
  // 1. Retrieve the GTM container ID
  const {gtmContainerId} = useLoaderData<typeof loader>();
  const nonce = useNonce();

  return (
    <html lang="en">
      <head>
        <Meta />
        <Links />
      </head>

      <body>
        <Outlet />
        <ScrollRestoration nonce={nonce} />
        <Scripts nonce={nonce} />

        {/* 2. Initialize the GTM dataLayer container */}
        <Script
          type="text/partytown"
          dangerouslySetInnerHTML={{
            __html: `
              dataLayer = window.dataLayer || [];

              window.gtag = function () {
                dataLayer.push(arguments);
              };

              window.gtag('js', new Date());
              window.gtag('config', "${gtmContainerId}");
            `,
          }}
        />

        {/* 3. Include the GTM component */}
        <PartytownGoogleTagManager gtmContainerId={gtmContainerId} />

        {/* 4. Initialize PartyTown */}
        <Partytown
          nonce={nonce}
          forward={['dataLayer.push', 'gtag']}
          resolveUrl={maybeProxyRequest}
        />
      </body>
    </html>
  );
}

View the complete component file to see these updates in context.
6. (Optional) - Update Content Securirt Policy
Add wwww.googletagmanager.com domain to the scriptSrc directive
//...other code

export default async function handleRequest(
  request: Request,
  responseStatusCode: number,
  responseHeaders: Headers,
  remixContext: EntryContext,
) {
- const {nonce, header, NonceProvider} = createContentSecurityPolicy();
+  const {nonce, header, NonceProvider} = createContentSecurityPolicy({
+    scriptSrc: ["'self'", 'cdn.shopify.com', 'www.googletagmanager.com'],
+ });

  //...other code

  responseHeaders.set('Content-Security-Policy', header);

  return new Response(body, {
    headers: responseHeaders,
    status: responseStatusCode,
  });
}

View the complete component file to see these updates in context.
7. (TypeScript only) - Add the new environment variable to the ENV type definition
Update the remix.d.ts file
// ...other code

declare global {
  /**
   * A global `process` object is only available during build to access NODE_ENV.
   */
  const process: {env: {NODE_ENV: 'production' | 'development'}};

  /**
   * Declare expected Env parameter in fetch handler.
   */
  interface Env {
    SESSION_SECRET: string;
    PUBLIC_STOREFRONT_API_TOKEN: string;
    PRIVATE_STOREFRONT_API_TOKEN: string;
    PUBLIC_STORE_DOMAIN: string;
    PUBLIC_STOREFRONT_ID: string;
+   GTM_CONTAINER_ID: `GTM-${string}`;
  }
}

// ...other code

View the complete component file to see these updates in context.

Replaced with https://github.com/Shopify/hydrogen/pull/1683


Local inference

WIP PR for local inference, this description is still being updated.
Notable changes are:

Adds a new class, TunedCausalLM, which are tuned causal LM models that are loadable, runnable, etc
Implements .load / .run on that class ^ for local inference (wrapping around .generate API)
Refactors sft_trainer's train capability into the .train @classmethod on the TunedCausalLM class; sft_trainer.py now contains only the CLI for tuning
Adds a new script with a CLI for running inference, which can operate on either a single provided text or a file containing multiple texts; assumes data has been preformatted
Adds a utility class, AdapterConfigPatcher, which can patch an override into Peft's adapter config (NOTE: This does write to disk, and is not safe for parallel loads with different overrides). To keep things simple, this is written generically, be we only allow patching of the base model for now
Updates the README with examples of running inference

Other Notes
AdapterConfigPatcher
The reason it seems helpful to have this capability is that tuning may be carried out with a local base model. Since the local path is then used in the adapter config, the model will likely break when run on a different device. This is a bit of an issue, since Peft provides a nice automodel API for loading a tuned model, but doesn't seem to provide a way of specifying the path from the base model (i.e., pulls from the config).
AdapterConfigPatcher is a context manager, then when entered will patch an override into the adapter_config.json that Peft uses, and restores the original values when exited. Currently this is used to allow specification of a base model override when loading a model to run inference on.

@alex-jw-brooks couple of thoughts on this PR:

I think tuned_model is a confusing name for the file and class to use past tense, because it is doing action of tuning or training. It makes it sound more like model has to be pretuned. Generally people use Trainer or Tuner for such kind of files ,example: https://github.com/hiyouga/LLaMA-Factory/blob/main/src/llmtuner/train/tuner.py

I think for the simplicity that we were aiming for and to avoid hopping too many files to find actual train code, It would be beneficial to include the entire class in the main entry point script - tuning/sft_trainer.py . I dont think we need to remove all the code from there. We can name the class CausalLMTuner or something like that

In the future we can move out the main from tuning/sft_trainer.py and create another run_trainer.py just like you created run_inference.py . Then main code to tune and infer models will be in sft_trainer.py and we will have run_trainer and run_inference to take command line arguments

Curious to hear what you think

or another thought would be to create a separate folder for inference and we can move the load and run functions there with the class name as it is TunedCausalLM and example script ?  the train doesnt have to be a classmethod because its just saving model to disk and just can be a function.
Currently the local inference is just for our testing . As library evolves more we can think of the right design ?

Hey Sukriti - that sounds good, if we're not planning to support inference as a library (for now), it makes more sense to isolate the train / inference code in as portable a way as possible.
For now, I've split train / inference back apart and refactored all of the inference stuff into a single file under scripts, with the same usage as the CLI described above. It doesn't depend on the tuning package either, so it should be easy for people to leverage for quick experiments.
As far as consolidating the utils etc into a single file - the main reason I chose to do that is so that we don't have a separate scripts package from the tuning package for just one CLI. Especially while we don't have Docker builds etc, having a module scripts package for one file would probably just lead to people having python path issues, and it's not that much code to begin with

Tested tuning llama2-7b model with  LoRA and then running inference script from this branch and it runs nicely
(venv) (tuning) bash-4.4$ python scripts/run_inference.py --model /dccstor/anhtest/model_output/tuning/llama-7b-twitter-lora-alex/checkpoint-60/ --max_new_tokens 50 --text "### Text: Never shopping at @MACcosmetics again. Every time I go in there, their employees are super rude/condescending. I'll take my 2955375 to @Sephora\n\n### Label:"
Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████████████| 2/2 [00:19<00:00,  9.97s/it]
Inferred device: cuda
100%|████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:01<00:00,  1.05s/it]
Exported results to: inference_result.json
(venv) (tuning) bash-4.4$ cat inference_result.json
[
    {
        "input": "### Text: Never shopping at @MACcosmetics again. Every time I go in there, their employees are super rude/condescending. I'll take my 2955375 to @Sephora\\n\\n### Label:",
        "output": "<s> ### Text: Never shopping at @MACcosmetics again. Every time I go in there, their employees are super rude/condescending. I'll take my 2955375 to @Sephora\\n\\n### Label: complaint</s>"
    }


Temporary files generated in offline mode - handling of failures accessing API

Need to correctly handle failures accessing API (transient or otherwise).

Will try to use the adaptor pattern to test this


Add CQM.relabel_variables method

Closes https://github.com/dwavesystems/dimod/issues/1011

Thanks! I think those tests are covered by the underlying implementation tests, e.g. https://github.com/dwavesystems/dimod/blob/2fdb759a36f2280398bf8722303bfc8352d42c88/tests/test_bqm.py#L1993
Though I think I should probably make a followup PR migrating those to tests/test_variables.py for actual generality.


Heroku build failing looking for

Builds stopped working today, log below. Nothing in my config has change (that I'm aware of), I thought it might be something to do with recent Meteor version updates in RC. I'm still on v0.38.0 - is there a conflict between v0.39.0 and current develop branch of RC in regards to using the buildpack?
I haven't noticed the first steps before either, which are adding those env settings to my Heroku app config vars.
-----> Node.js app detected
-----> Listing HEROKU_ environment variables
HEROKU_APP_ID:
HEROKU_APP_NAME:
HEROKU_DYNO_ID:
HEROKU_RELEASE_VERSION:
HEROKU_SLUG_COMMIT:
HEROKU_SLUG_DESCRIPTION:
-----> Meteor version: Meteor <IP_ADDRESS>
-----> Checking if this meteor version supports --server-only
-----> Attempting to remove android platform.
While removing platforms:
error: android: platform is not in this project
-----> Moving on.
cp: cannot stat ‘/app/tmp/cache/1.2.1/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node\n/app/tmp/cache/1.2.1/.meteor/packages/meteor-tool/.1.4.1_1.1t2uyaz++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node’: No such file or directory
 !     Push rejected, failed to compile Node.js app.
 !     Push failed

FYI, I fixed my issue while writing it. I found someone with a similar problem on another horse buildpack, solved by resetting the buildpack cache.
heroku config:set BUILDPACK_CLEAR_CACHE=1

Thanks @timkinnane I'll add this to the docs.


⚠ ClamAV has degraded performance

In 076f416, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 465 ms

Resolved: ClamAV performance has improved in 88a7efe.


Add getIdToken method

Explain your changes
I've raised a support thread in Discord: https://discord.com/channels/1070212618549219328/1179456563627438141

[...]can you help me understand how to use and validate the ID Token (https://kinde.com/docs/build/about-id-tokens/) ? I'm already passing the Access Token to my REST API through the "authorization" HTTP header. However, this token doesn't contain the user's email address (https://kinde.com/docs/build/about-access-tokens/) and so on every REST API call I'm currently getting a M2M token and calling the Kinde API to get the user object to get their email address. The ID token includes the user's email address (https://kinde.com/docs/build/about-id-tokens/) but I can't see any example in your docs of the recommended way of passing this token through to a REST API and validate serverside that the ID token is valid.

This PR exposes a new getIdToken() method which returns the complete ID Token: https://kinde.com/docs/build/about-id-tokens/
Checklist

[X] I have read the “Pull requests” section in the contributing guidelines.
[X] I agree to the terms within the code of conduct.

🛟 If you need help, consider asking for advice over in the Kinde community.

Hey @mchr3k thanks for this :)
Just checking if this PR is still needed or did the additional claims feature solve your use case?


use uv to manage maturin in python sqlparser interface

Move from installing Python via brew because it forces our hand when it comes to Python version support.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 85.68%. Comparing base (365427e) to head (a17ed99).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##              main    #3161       +/-   ##
============================================
- Coverage   100.00%   85.68%   -14.32%
============================================
  Files            5       54       +49
  Lines          173     3115     +2942
============================================
+ Hits           173     2669     +2496
- Misses           0      446      +446

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


tsd install fails with azure deployment

I am new to kudu and azure deployments. Any help in this would really appreciated.
I have the following pre-build script in my project:
call cd $(ProjectDir)Client call npm install call tsd install
Azure deployment triggered automatically from gitbhub commit using kudu fails with this error when publishing:
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "node" "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! cwd D:\home\site\repository\src\Empactis.Insights.Web\Client
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ETARGET
npm'tsd' is not recognized as an internal or external command,
operable program or batch file.
Azure deployment works fine when i manually publish from within VisualStudio.

Seems you are using a very old Node. In your Azure App Setting, can you try setting WEBSITE_NODE_DEFAULT_VERSION to 6.9.4. Also, try isolating from the command line, per this doc.

Thanks, I will try this and post an update here.

I found the problem. Thank you for your help. Isolating from the command line did help.


apptarget not available in webworker

Thanks!
BTW, why don't we just make the appTarget available in the worker?

We do modify apptarget in the editor so that would not work anymore.
From: Michał Moskal<EMAIL_ADDRESS>Sent: Saturday, April 14, 2018 3:02 AM
To: Microsoft/pxt<EMAIL_ADDRESS>Cc: Peli de Halleux<EMAIL_ADDRESS>State change<EMAIL_ADDRESS>Subject: Re: [Microsoft/pxt] apptarget not available in webworker (#4116)
Thanks!
BTW, why don't we just make the appTarget available in the worker?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fpxt%2Fpull%2F4116%23issuecomment-381318202&data=02|01|jhalleux%40microsoft.com|014dbda6fe434bbd609508d5a1eebc1b|72f988bf86f141af91ab2d7cd011db47|1|0|636592969086223917&sdata=MLYDB%2Fin7nzvWZinYaaOoo7yCGMxyVneNcBzVkSuYWU%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD-4KTH_tvQuGv6bNUwp3asqu5NCcmp-ks5tockJgaJpZM4TT2xQ&data=02|01|jhalleux%40microsoft.com|014dbda6fe434bbd609508d5a1eebc1b|72f988bf86f141af91ab2d7cd011db47|1|0|636592969086233926&sdata=cKMBUxut2ksa%2BUJ6jGL5%2FJ%2BluTCy52T0x%2B9bM8lvPK4%3D&reserved=0.


os.environ["CUDA_VISIBLE_DEVICES"] not working

import jaxnet
os.environ["CUDA_VISIBLE_DEVICES"] = "2" => not working

Setting environment variables before importing jax or jaxnet should fix this.


USB connection hangs on OS X El Capitan

The app will hang during serial port open. This happens with QGC but has nothing to do with QGC. It can be reproduced with a simple C application (see QGC Issue) that just opens the serial port (or connecting with a terminal app). If you connect to the boot loader the serial port open will succeed. If you open the port after the main firmware is up and running it will hand for a minute or so and finally succeed.
Related QGC Issue: https://github.com/mavlink/qgroundcontrol/issues/3225

Note that it might not happen the first time around. If you disconnect (close) QGC and start again (without restarting the Pixhawk), it will eventually happen. Once it does, it will stay in that mode until you restart the Pixhawk.

I can try again but I'm pretty sure I can repro just using a terminal app and no QGC at all ever.

Nope I can't repro without getting QGC involved. You need to connect using QGC once. Then the port is out of whack even without QGC running.

@DonLakeFlyer Its possible its somewhere an issue deep in NuttX, but what it really means is that the serial port handling in QGC is triggering it. Is there a way for us to simplify our serial open handling?

Doing some ad-hoc testing:

PX4 Flow connection does not hang
UBlox RTK GPS connection does not hang

I get this problem for SITL+gazebo. Simulator hangs in src/modules/simulator/simulator_mavlink.cpp on the call to openUart. I have tried Pixhawk and Pixracer, hangs in both cases and hangs forever.

Any better?

Fixed ages ago


feat: Character tab improvements

Pull Request

Description

Added a searchbar and element/path filters to the top of the character tab

Related Issue

Closes #406

Checklist

[x] I have added commit messages that are descriptive and meaningful.
[x] I have tested the changes locally.
[x] I have reviewed the code changes.

Screenshots

Before

After

The element/path filters are a nice touch, works great.


hline color

The hline color in the environments isn't working. It's always black:
Math.tex(r'\color{green}\begin{array}{|c}123\\ \hline 123\end{array}')

I've also tried:
Math.tex(r'\begin{array}{|c}123\\ \hline 123\end{array}', textStyle: TextStyle(color: Colors.green))

The delimiter color for pmatrix, bmatrix, vmatrix, etc. is right, but hline isn't:
Math.tex(r'\color{green}\begin{pmatrix}123\\ \hline 123\end{pmatrix}')

When I tried changing the hline color on the Online Demo, it works, but when run on a device, it's always black.

@kamil-simple any idea? might this be related to the refactor?

@creativecreatorormaybenot Looks like not related, but will check it against previous version over the day.

@kamil-simple so i wondered because the online demo simply uses a very old version of the package.

@creativecreatorormaybenot Recent changes are not related, i've checked till exposure of MacroDefinition (version version: 0.3.1+1) and it looks to be still broken. I don't have a clue right now how to fix, will need to dig more, so ETA unknown.

@creativecreatorormaybenot
@kamil-simple
I found the problem!!!
In lib/src/ast/nodes/matrix.dart, for the additionPaint function in the MatrixLayoutDelegate class, this paint changes the color of hline and vline but it doesn't have any color
ORIGINAL

@override
void additionalPaint(PaintingContext context, Offset offset) {
  const dashSize = 4;

  final paint = Paint()..strokeWidth = ruleThickness;

  for (var i = 0; i < hLines.length; i++) {
    switch (hLines[i]) {

I changed the paint to add math options color
NEW

@override
void additionalPaint(PaintingContext context, Offset offset) {
  const dashSize = 4;

  final paint = Paint()
    ..strokeWidth = ruleThickness
    ..color = options.color;               // I added this line

But the math options don't exist yet for the MatrixLayoutDelegate class
ORIGINAL

class MatrixLayoutDelegate extends IntrinsicLayoutDelegate<int> {
  final int rows;
  final int cols;
  final double ruleThickness;
  final double arrayskip;
  final List<double> rowSpacings;
  final List<MatrixSeparatorStyle> hLines;
  final bool hskipBeforeAndAfter;
  final double arraycolsep;
  final List<MatrixSeparatorStyle> vLines;
  final List<MatrixColumnAlign> columnAligns;

  MatrixLayoutDelegate({
    required this.rows,
    required this.cols,
    required this.ruleThickness,
    required this.arrayskip,
    required this.rowSpacings,
    required this.hLines,
    required this.hskipBeforeAndAfter,
    required this.arraycolsep,
    required this.vLines,
    required this.columnAligns,
  })  : vLinePos = List.filled(cols + 1, 0.0, growable: false),
        hLinePos = List.filled(rows + 1, 0.0, growable: false);

So I added math options to it
NEW

class MatrixLayoutDelegate extends IntrinsicLayoutDelegate<int> {
  ...
  final List<MatrixSeparatorStyle> vLines;
  final List<MatrixColumnAlign> columnAligns;

  final MathOptions options;             // I added this line

  MatrixLayoutDelegate({
    ...
    required this.vLines,
    required this.columnAligns,

    required this.options,                    // I added this line

  })  : vLinePos = List.filled(cols + 1, 0.0, growable: false),
        hLinePos = List.filled(rows + 1, 0.0, growable: false);

This is where MatrixLayoutDelegate class is being used
ORIGINAL

@override
BuildResult buildWidget(
    MathOptions options, List<BuildResult?> childBuildResults) {
  assert(childBuildResults.length == rows * cols);
  // Flutter's Table does not provide fine-grained control of borders
  return BuildResult(
    options: options,
    widget: ShiftBaseline(
      relativePos: 0.5,
      offset: options.fontMetrics.axisHeight.cssEm.toLpUnder(options),
      child: CustomLayout<int>(

        delegate: MatrixLayoutDelegate(

          rows: rows,
          cols: cols,
          ruleThickness: options.fontMetrics.defaultRuleThickness.cssEm
              .toLpUnder(options),
          arrayskip: arrayStretch * 12.0.pt.toLpUnder(options),
          rowSpacings: rowSpacings

Since options is now required, I used the math options from buildWidget function for MatrixLayoutDelegate
NEW

@override
BuildResult buildWidget(MathOptions options, List<BuildResult?> childBuildResults) {
  assert(childBuildResults.length == rows * cols);
  // Flutter's Table does not provide fine-grained control of borders
  return BuildResult(
    options: options,
    widget: ShiftBaseline(
      relativePos: 0.5,
      offset: options.fontMetrics.axisHeight.cssEm.toLpUnder(options),
      child: CustomLayout<int>(
        delegate: MatrixLayoutDelegate(

          options: options,         // I added this line

          rows: rows,
          cols: cols,

I hope this helps. Thanks for keeping this package up to date :)

I also ran into this unexpected problem, but the solution worked, thanks @ghost!
I hope it gets added to the package.


Refactor samplesheets Vue app routing

I have vue-router enabled but I'm also doing my own custom routing stuff. I think this is actually wrong and it already resulted in issue #665.
Need to refactor this properly, should read up a bit on how vue-router should and shouldn't be used.
Edit: had a look at #496 and found it to be impossible to fix with current convoluted navigation code. Should look into refactoring the whole thing, but as nothing's TERRIBLY broken right now, will not do it for v0.9.

This should be done together with #994. Tagging for v1.2.


Can't post a tweet using rest-assured

Hi,
I'm trying to post a tweet using rest-assured, but the response is always
401 Unauthorized
{
"errors": [
{
"code": 32,
"message": "Could not authenticate you."
}
]
}
The source code is:
public void post_A_Tweet() {
String tweet = "This is a test tweet from Rest Assured.";
given()
.baseUri("https://api.twitter.com/1.1")
.auth().oauth(
"consumer key",
"consumer secret",
"Access token",
"Secret token")
.param("status", tweet).
when()
.post("/statuses/update.json").
then()
.log().all()
.statusCode(200);
}
Dependency:

com.github.scribejava
scribejava-apis
2.5.3

io.rest-assured
rest-assured
4.5.1
test

it seems related to an invalid authentication credentials, but  on POSTMAN they works fine
Any suggestions?
Thanks in advance

Hi, I'm trying to post a tweet using rest-assured, but the response is always 401 Unauthorized { "errors": [ { "code": 32, "message": "Could not authenticate you." } ] }
The source code is: public void post_A_Tweet() { String tweet = "This is a test tweet from Rest Assured."; given() .baseUri("https://api.twitter.com/1.1") .auth().oauth( "consumer key", "consumer secret", "Access token", "Secret token") .param("status", tweet). when() .post("/statuses/update.json"). then() .log().all() .statusCode(200); }
Dependency: com.github.scribejava scribejava-apis 2.5.3 io.rest-assured rest-assured 4.5.1 test
it seems related to an invalid authentication credentials, but on POSTMAN they works fine Any suggestions? Thanks in advance

finally I solved.
In this post I made a mistake.
To reproduce the problem in the code the tweet variable had to be "Questo è un test" instead of "This is a test tweet from Rest Assured."
The problem was the è character into the tweet string however on postman work always fine.
In order to send è character I had to add .contentType("application/x-www-form-urlencoded;charset=UTF-8") and now it work fine.

I don't know if this is the correct workaround and don't know if the issue is related to rest-assured only.


ci: update remaining references to old pr targeting system

Completes the migration to use the new unified target label system, updating
dependabot, renovate and angular-robot to expect the new labels.

dependabot opens PR for transitive security fixes before renovate does AFAIK. renovate supports Bazel workspaces updates while dependabot doesn't.

@kyliau it looks like renovate are also handling security fixes. Hence, I think we should probably disable dependabot.


⚠ Samsung has degraded performance

In c056b80, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2623 ms

Resolved: Samsung performance has improved in 66ee5f7.


Features with multiple fields in bigdata.tr.txt

Hi,
It seems like bigdata.tr.txt has feature 2739 with multiple fields (5 and 13) in lines 21, 36, and 88. Shouldn't fields be unique per feature?

Also feature 7686 appears with multiple fields in line 114

@Hydrotoast, you are right, but it is feature 2738 (not 2739)
I spotted 5:2738:0.3651 and 13:2738:0.3651 appears multiple times in the file.

@jenniyanjie you can find the answer in ffm.cpp line 68:69 and 43:44. The feature index is field-independent.

This is actually because this tiny data set was subsampled from Kaggle's Criteo competition, and in this competition, we use hashing trick to generate features. The example you gave is due to hashing conflict. We admit this is confusing, and will resolve this issue in next release.


Fully Kiosk - TileBoard stuck on HA Auth?

Hi There,
Problem:  Cannot load Tileboard onto fully-kiosk browser
I am a newbie running Fully-Kiosk browser on an Amazon Fire 7.
I can run the lovelace UI on Fully-Kiosk
I have TileBoard working in Chrome browser
The problem appears to be the display of the Auth page from what I can see on the Fully-Kiosk Admin Page.
Auth is not a problem when I use the lovelace UI.
All I have done is add the correct URL to config.js file.
Any help much appreciated.
Thanks
Attached are screen shots

I don't know anything about Fully but maybe just compare that "Current page" URL with what opens when you login through lovelace. Is the protocol or IP different?
Also, is there access to console logs anywhere? That might also reveal some issue.

I also don't have any experience with Fully but you can always opt to using long-lived token instead.

Thanks both.  I resolved it by

re-installing fully from the beginning; and
ensuring that the very first Start-URL was TileBoard.

Not really sure why that worked.....but hopefully might help someone else.


Assess impact of multiroot workspaces on language extensions

exracted from #28344

[ ] JS/TS @mjbvz
[ ] Go @ramya-rao-a
[ ] C# @jrieken
[ ] Java @aeschli
[ ] CSS @aeschli
[ ] JSON @aeschli
[ ] HTTP @aeschli
[ ] PHP @roblourens
[ ] eslint @dbaeumer
[ ] tslint @egamma
[ ] C++ TBD
[ ] Python TBD

A couple of things to note here:

quite some language servers start the server on the rootPath as the cwd. This is the case for all LSP language server and the TS language server
having a different cwd will have big impact on how the language server behaves. So TS for example cuts the searching of the tsconfig.json file at the cwd. So it is NOT a going all the way up to /. So to support two workspace folders we either need to start two TS servers to ensure we don't change the behavior of the used tsconfig.json file.
other servers use the cwd to resolve additional modules they need to load (for example jshint and tslint). Starting them on a different cwd will very likely result on not finding additional install npm packages.

Go update:
Below features use vscode.workspace.rootpath. As long as there is a replacement for vscode.workspace.rootpath which would give the right folder path, these will be ok

Build/lint/vet/test workspace
Resolve file path for

Config file for gometalinter
Env file for debug,
Env file for test

Workspace symbol search

GOPATH
The extension tries to resolve the GOPATH to use via various means. See GOPATH-in-the-VS-Code-Go-extension
Once GOPATH is figured out this way, the `process.env['GOPATH'] is updated.
With multi root workspace, there can be a case of different roots using different GOPATH. Therefore, the extension will need to listen in on an event for root change, so that it can update GOPATH appropriately
Go language server
The Go language server is in an experimental stage. It does not care about which folder was it run from. The use of language server is controlled by a setting and having it true for one root and false for another feels like a bad idea.
How would the vscode.workspace.onDidChangeConfiguration() work in the new model?
The Go extension listens to do this and updates GOPATH and the decision to whether to use the language server or not based on the settings.

CSS: No use of the workspace root
JSON: Uses the workspace root to resolve relative paths to schemas when made in the settings. Adoption to support multiple roots is not a problem but needs JSON to support folder specific settings with a way to know which settings got defined for which folder
HTML: Uses the workspace root to resolve absolute links. Can be adopted when root folders are passed on the LS.

Java uses the root folder as a starting point to find the project files: pom.xml, build.gradle and .project (Eclipse). From how I see it, adopting multi-root will require a way to ask the user/LS client which project to open if multiple project files are found. That's an addition that would be useful also in the single root scenario in order to be open projects in sub folders.

AFAIK, the omnisharp-vscode extension uses the rootPath for two things: (I'll also connect with @DustinCampbell later this week)

Discover project files inside the root path to figure out what to launch. I believe that can be made aware of n-projects
Writing into launch.json and task.json. Unsure what the new story will be, some bits might be covered with the new task-api but that only solves half of the problem...

For JS/TS:
Use of workspace.rootpath
We mainly use the workspace root for resolving the location of js/tsconfig files. These should be easy enough to update for handling multiroot workspaces and I've already made initial changes to support this in 1.14. More testing is required
Implicit Projects
An implicit project is created for all open js/ts files that are not part of an actual js/tsconfig project. Currently, I believe that implicit projects are shared across all opened root folder. We instead likely want a separate implicit project for each root folder.
tsconfig.json tasks 2.0
I need to sync with Dirk about how tasks are expected to work in the multi-root world. I believe the build command should only build tsconfig files in  the current root, not all tsconfig files across all roots. These changes should not be too hard to make.
Different TSServer Versions
Each root folder may set a different typescript.tsdk setting. An extreme scenario could see a user opening a folder that users TS 1.8 and then another that uses TS 2.4. Supporting that scenario would require multiple tsservers which will be too resource heavy. Instead, at least initially, we plan to start a single TypeScript server that uses the TypeScript version from the first root folder. 1.14 contains initial work to make this happen but we need additional testing of this scenario.

@mjbvz one more thing: when the tsserver starts the cwd of the tsserver process is set to the workspace root. This information is then used by the tsserver to stop traveling up the parent chain to look for tsconfig.json files (it stops to the cwd of the tsserver process). So to fully support n root folder we either need to start n tsservers or we need to adopt the server. For the initial case of a primary root folder we should set the cwd to this first folder.

For PHP, this should be straightforward. @felixfbecker has a good summary here: https://github.com/Microsoft/vscode/issues/396#issuecomment-306294518
Essentially the PHP extension will index .php files under all root paths. They contribute symbols to the global namespace, and features like go to definition are based on names in the global namespace.
Minor complications are that the PHP language server will have to watch for nested root paths and not index files twice. And two root folders could contain PHP projects that aren't related but have name collisions. But that's just why you use proper namespaces.

The vscode-tslint language server would be a candidate for running as a shared server across all root folders. vscode-tslint is built on top of the vscode-language-client and `vscode-language-server libraries. These libraries assume that there is a single workspaceRoot and a single set of settings for this root.
Discussed it with @dbaumer and he will explore a shared server for vscode-eslint.

I added support to the LSP to start a client/server pair per workspace folder and outlines the support to the C++ extension owners.


Updating dependencies and testing more

Testing out different travis setup to run more tests.

Thanks.

I think those builds might start to pass with tornado<=6


GLoRA inference fails with Flux due to weights being in bfloat16 precision

My simple inference script is failing when calling wrapper.merge_to() with Flux Dev as the base model.
2024-09-21 19:27:53|[LyCORIS]-INFO: Loading Modules from state dict...
2024-09-21 19:27:54|[LyCORIS]-INFO: 504 Modules Loaded
Traceback (most recent call last):
  File "/nvme/home/mikaelh/Stable_Diffusion/bghira/output/models.bak_flux_sanna_marin_v0.4_fp8_multires_adan3_glora/inference2.py", line 12, in <module>
    wrapper.merge_to(0.5)
  File "/nvme/home/mikaelh/Stable_Diffusion/bghira/SimpleTuner.latest/.venv/lib/python3.11/site-packages/lycoris/wrapper.py", line 567, in merge_to
    lora.merge_to(weight)
  File "/nvme/home/mikaelh/Stable_Diffusion/bghira/SimpleTuner.latest/.venv/lib/python3.11/site-packages/lycoris/modules/base.py", line 269, in merge_to
    weight, bias = self.get_merged_weight(
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/nvme/home/mikaelh/Stable_Diffusion/bghira/SimpleTuner.latest/.venv/lib/python3.11/site-packages/lycoris/modules/glora.py", line 208, in get_merged_weight
    diff_w, _ = self.get_diff_weight(multiplier, shape, device)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nvme/home/mikaelh/Stable_Diffusion/bghira/SimpleTuner.latest/.venv/lib/python3.11/site-packages/lycoris/modules/glora.py", line 202, in get_diff_weight
    weight = self.make_weight(device) * multiplier
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nvme/home/mikaelh/Stable_Diffusion/bghira/SimpleTuner.latest/.venv/lib/python3.11/site-packages/lycoris/modules/glora.py", line 198, in make_weight
    w_wa2 = (orig @ wa1) @ wa2
             ~~~~~^~~~~
RuntimeError: expected m1 and m2 to have the same dtype, but got: c10::BFloat16 != float

orig is in bfloat16 precision while wa1 and wa2 are in float precision. I tried both upcasting orig and downcasting wa1 and wa2 and there was very little difference in the end result. Upcasting to float precision did run much faster on cpu. I'm not sure which way you prefer to solve this so I'm posting this as an issue.
Here's my inference script for reference:
import torch
from diffusers import FluxPipeline
from lycoris import create_lycoris_from_weights

torch.set_num_threads(16)

pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)

adapter_id = 'pytorch_lora_weights_fixed.safetensors' # you will have to download this manually
lora_scale = 1
wrapper, _ = create_lycoris_from_weights(lora_scale, adapter_id, pipe.transformer)
wrapper.merge_to(0.5)

pipe.enable_sequential_cpu_offload()

prompt = "sanna marin playing tennis"
generator = torch.Generator().manual_seed(1000)
out = pipe(
    prompt=prompt,
    guidance_scale=3.5,
    height=1280,
    width=832,
    num_inference_steps=20,
    generator=generator
).images[0]
out.save("image.png")

will implement some type checks
You can do this as workaround:
wrapper.apply_to()
wrapper.to(device, dtype)
wrapper.restore()
wrapper.merge_to()

Should be fixed in 3.1.1.post1


feat: add apisix fedora support

Thank you so much @imjoey for all the above suggestions.

I would prefer to reuse current code as much as possible in this PR,
True and most of the above changes you suggested are also based on that.Fixing all the changes shortly


Removed unreachable Not() method

# Pull Request Template
Description
Removed unreachable Not() method from the SpecBase<Model> class
Type of change

[x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files
Coverage Δ

Motiv/SpecBase.cs
97.50% <ø> (+4.64%)
:arrow_up:


Problems with PHP

When I "beautify" a PHP file, it changes variables and gives problems with the php file.
for Ex.
 <?php
    $args = array(

it converts to:
<?php $args=a rray(

And puts everything in a line...

Thanks!

the same problem!, it's posible to disable beautify in php files?

Done. https://github.com/beautify-web/js-beautify/blob/master/CHANGELOG.md#v157

Nice bitwiseman... ;)


no notion of tests which should be allowed to fail

if a test throws an error, that's it — the test is now failing.
but if you're expecting a test to fail, there's no way to access the error message that is output, and make sure that it's failing properly.
i might not appear to be working on this for a while; i need to figure out the best way to go about implementing it.

solved by 0ba942f, and now available in 0.3.0.


Custom renderer with event subscription

I m trying to put a switch in cell to denote active status and it's complete nightmare to me hence there is no way I can catch emitted events.. Please tell me if there is any way to subscribe for events emitted by custom renderer.
And I request you to add simple table too using the same theme and styling, It's really tough if we want to have normal table with custom data styling.

Closing as answered


Clear function not working in DB Navigator

Description
When searching in the Database Navigator the clear button does not work in the search.  I am using CE 22.2.1 for Mac.  I know this is a minor thing but just wanted to report it.

DBeaver Version
22.2.1
Operating System
macOS 12.5.1
Database and driver
MySQL 5.7
Steps to reproduce
Search for a table in the Database navigator and when you click the black icon with the x in it the search box does not clear
Additional context
No response

Thanks for the bug report.
Duplicates https://github.com/dbeaver/dbeaver/issues/10590


How to Use?

Is there a usage example for the source code of this chart? I wonder how it is used as an external package.

Hi @meimosor,
Thank you for your feedback.
We suggest that you refer to our documentation, which may help you resolve the problem.
Please let us know if you have any further questions or if the documentation did not help.


Support .envrc and .env files

Should be loaded prior to any process start, etc.
If it changes, should invalidate spec for anything that depends on the environment (when we have a dependency system, at least).

.env files should be safe, but .envrc files introduce risk around running arbitrary code when cd'ing in to a directory. I'd love to avoid  any sort of "do you trust this?" UX if we can help it. Maybe we should start with .env files for now, and revisit .envrc later.


The operation failed because: lock not associated with a bridge

Hi, can actions such as unlocking only be used via a WiFi bridge, not directly?
Thanks!
Mat

That's correct you have to have a bridge.


Fix panic in UiSurface if Node is removed and re-added

Objective

Fix bug where UiSurface::set_camera_children (and UiSurface::update_children sometimes) will panic if you remove and add a Node component in a single tick. This is more likely to happen now because of remove_with_requires.

Solution

Filter out entities with Node when cleaning up entities from RemovedComponents<Node>.

Testing

Not tested (rust compiler refused to cooperate when I tried to patch this into my project), correct by inspection.

This should have a test to prove that it works and prevent regressions. Can you add one?


[Feature Request] Allow toggling for partial matches

Hello, thanks for this plugin so far, I just wanted to share a small feature request with you:
Sometimes I am working with symbols such as add_class or addClass. It would be nice to be able to change it to remove_class or removeClass with your plugin. Sure I could add the whole word to the list in my settings, but often enough it is not just this exact combination of these two words.
Would it be possible to add the functionality to toggle parts of strings as well? Maybe only allow it if there is a underscore or a case-change present, or allow it in general for all partial matches (addclass would match too).
I'd love to here your opinion on this!

Hey @FeBe95, thanks for the feature request. The functionality would indeed be a nice addition to the plugin.
I will look into how feasible this is soon. I'll update this thread once I know more.

Hey @FeBe95 once again. I've finally had some time to take a look at your request.
I've thought about the functionalities you suggested, some edge-cases and how I can implement the feature into the plugin. I'll discuss the problems faced, their solutions and my proposal down below.
Problems
There are a few problems that force me to make decisions about the way in which the partial matching is performed, they affect most implementations.
These are the following problems:
Word match vs partial match
In the current state of the plugin the dev | prod and development | production pairs have both been included by default. Partial matching introduces the following problem, should development by toggled to proelopment using the partial match or production using the full word match?
I think it is pretty logical for it to toggle to production, which means that a full word match should be given priority over a partial match if one can be found. Or you can say that in general a longer match gets the priority.
Multiple partial matches in one word
The plugin currently also includes the add | remove and class | interface pairs. If we toggle a symbol such as addClass, then which of the two words should be swapped? Should it be both, should it always be the first match found (starting from the left) or should the priority be based on the caret (cursor) its position inside of the symbol?
I think the best solution would be the third, which is to give priority to the caret position and to toggle that partial match. This allows the user to decide for themselves which part should be toggled.
Proposal
I plan on implementing general partial matching. So this will work on add_class, addClass and addclass. It will first try to find a full word match, if that can't be found, then it will proceed to look for a partial match at the caret position.
Implementing this general matching requires more effort than just the case-change and underscore cases, but I think it will be worth it in the end. It will be a little heavier computationally, but I think it will still be negligible.
I will add an option to the configuration menu that allows the users to enable this new matching. In that way it can still be toggled off.
I'd love to hear your feedback.

Hey @Noorts, thank you for your in-depth explanation before implementing this feature. You proposal sounds well thought out and solves all the introduced problems.
I'd maybe add one additional differentiation for the cursor(s):

If a cursor has no width (the selection start equals the selection end) your solution works perfectly fine. Try to find a match for the whole word, if it does not exist take the cursor position and try to find a partial match, otherwise do nothing.
But if the cursor is explicitly selecting any text (the selection start does not equal the selection end) ONLY try to toggle the selected string, otherwise do nothing.

With this solution one could swap specific words by searching/finding and selecting a (partial) word throughout a file and toggle the them exactly as desired - even if they are part of a longer matching word.
Thanks again for your time and feel free to reply with your thoughts on this :)

Great suggestion 👍. I'll take it into account when I start implementing the new feature.
Thanks again to you aswell, this discussion has definitely helped to make clear what functionality is desired.

Hey @FeBe95, I've finally had some time to work on this project.
The partial matching functionality has been added (PR) as per v1.2.0 and is pretty neat if I have to say so myself.
The new update (v1.2.0) is available here as a release and will be available on the marketplace and in your IDE once JetBrains approves the update (usually two business days).
Once again thanks for the feedback.

Hey @Noorts, I just wanted to thank you again for the quick implementation! Partial toggling works flawlessly and exactly the way I imagined!


empty byte returns byte array of zero

        let y: &[u8] = &[];

        println!("{:?}", bincode::serialize(b"").unwrap()); //[]
        println!("{:?}", bincode::serialize(y).unwrap()); //[0,0,0,0,0,0,0,0]

      assert_eq!(bincode::serialize(b"").unwrap(), bincode::serialize(y).unwrap()); //false

b"" is a &[u8; 0] whose size is statically known and thus doesn't need to be serialised, whereas y is a &[u8] which serialises to just its length 0. This behaviour is expected.


video to gif

Script Title - video2gif
what will change - New script to convert video to GIF with CLI args path to video, start time and end time.
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language

[x] Python

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Discord server  - https://discord.gg/FXyh2S3
Happy Coding,

Usage : python video2gif.py <path-to-video> --start <seconds> --end <seconds>


name displayed improperly on project list page

the name shows in the project detail page

Seems to work for me. Can you confirm this is still an issue?


Open VSX

Hi can you please attach the vsix also to the releases and or upload them also to Open VSX.
Otherwise it is not allow to use in non VSCode products. See:
https://www.gitpod.io/docs/vscode-extensions
bye

I came here from a gitpod.io workspace. SQLTools is published on opencsx, but your driver was missing. Any chance you could publish it to openvsx as well? https://github.com/eclipse/openvsx/wiki/Publishing-Extensions

bumping this as well, please!

hey, the latest 0.4.2 version is now available on ovsx at https://open-vsx.org/extension/koszti/snowflake-driver-for-sqltools.
Open VSX is currently showing a warning that it was published by a non-verified published. Following the OVSX docs I sent a PR to the ovsx maintainers : https://github.com/EclipseFdn/open-vsx.org/issues/1216 . Once this issue got resolved, the warning should go away.
From now on every new release will be published automatically to Visual Studio Marketplace and Open VSX (https://github.com/Snowflake-Labs/sqltools-snowflake-driver/pull/54 will take care about it)
Can you please confirm if you can install it via gitpod so I can close this issue?

it’s now completely available on open vsx


Metadata parser tool

Add a top level program that simply attempts to parse given metadata in args[0].
Add default gitignore for dotnet

Also maybe a GitHub actions workflows to ci and validate pull requests. This way we have a short feedback loop and everything is at one place (I saw the change in the generator)

Also maybe a GitHub actions workflows to ci and validate pull requests. This way we have a short feedback loop and everything is at one place (I saw the change in the generator)

@baywet, thanks for the suggestions. Added the simple build validation for the new tool as well as the dependabot config.

@baywet, thanks for the suggestions. Added the simple build validation for the new tool as well as the dependabot config.


[Admob] IOS : Error while loading a rewarded video ad

Hello team,
I'm trying to using the Admob tutorial. Unfortunately I always get the error while loading the rewarded video ads.
The log I got like:
2019-12-05 11:13:07.176988+0700 testapp[462:43948] Initializing rewarded video.
2019-12-05 11:13:08.177713+0700 testapp[462:43948] Setting rewarded video listener.
2019-12-05 11:13:08.177999+0700 testapp[462:43948] Loading a rewarded video ad.
2019-12-05 11:13:27.262124+0700 testapp[462:43948] ERROR: Action failed with error code 4 and message "An internal SDK error occurred.".
2019-12-05 11:13:27.262865+0700 testapp[462:43948] Done!
2019-12-05 11:16:46.051925+0700 testapp[462:44341] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C3.1:2][0x1060379d0] get output frames failed, state 8196

I'm using:

firebase_cpp_sdk_6.7.0, universal IOS framework
Pod : 'Firebase/Analytics', '6.12.0' ;  'Firebase/AdMob', '6.12.0'
Our AdMobAppID
RewardedVideoAdUnit test : "ca-app-pub-3940256099942544/6386090517"

You can find for the full console log in here : IOS_Error_RewardedVideo_log.txt
Could you help me to take a look and show me how to overcome this error?

Hi @doandoindi
I think Firebase C++ 6.7.0 is pointing to Pod version 6.10.0.  And 6.12.0 is for the C++ SDK 6.8.0, which we just release!
Could you change the Pod version to 6.10.0 and try again?  Ex. Pod : 'Firebase/Analytics', '6.10.0' ; 'Firebase/AdMob', '6.10.0'
https://github.com/firebase/quickstart-cpp/blob/master/admob/testapp/Podfile#L5
Shawn

Hi @chkuang-g
It's working with the Pod version 6.10.0 as your suggestion. I'm thinking if some people will be seen the same problem while trying to have Firebase C++ SDK on their application.
Do we have somewhere to show which Pod version should be used with which Firebase C++ version? It's a very helpful IMO.
Thank you Shawn,
D.

You should be able to find this information in readme.md under your Firebase C++ SDK folder.  See "Frameworks" section.
Ex. For our 6.8.0 relaese, you should see
| Firebase AdMob               | firebase_admob.framework                     |
|                              | firebase.framework                           |
|                              | Firebase/AdMob Cocoapod (6.12.0)             |


RPP build fails for OPENCL backend

throwing a bunch of errors related to HIP

Seems like it is building with OCL


Update SidebarDirectory to Foundry VTT 0.7.9

Which class should be updated?
SidebarDirectory
For which version should the class be updated?
Foundry VTT 0.7.9

Taking this.

Fixed by #298.


Fails on start

Just by adding pelican-ert to PLUGINS I get the critical error:
CRITICAL: AttributeError: module 'pelican-ert' has no attribute 'register'

I've just checked it, using upstream version of pelican and everything seems to be fine.
In my case I have the following settings in pelicanconf.py:
 PLUGIN_PATHS = ['./']
 PLUGINS = ['pelican-ert']

and remember that you have to clone pelican-ert into one of your PLUGIN_PATHS directories.
If this doesn't help, please specify your pelican version and config file.

Yes, it was PEBKAC, sorry.


Fix identation error in dependabot.yml.

Great! not sure why it didn't get caught before or how you noticed it now, but glad to get it fixed.