vcredist: Add multiple portable version and update dependents

Description
Some apps requires a version of "Visual C++ Redistributable". Versions that were able to work as "portable" were added (based on the ones existing in the "extras bucket" with the addition in the PATH.
Apps that had dependcy over them has also been updated.
Related Tickets & Documents
Not related
Did you
Check Hashes?

[x] 👍 yes
[ ] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Check Url?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Check the last version?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added a description in the manifest?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Beautified the json manifest format?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added some notes in the manifest?

[x] 👍 yes  (for "vcredist")
[ ] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added/Needed any dependencies?

[x] 👍 yes
[ ] 🙋 yes, but I need help
[ ] 🙅 no, because they aren't needed

Added/Needed any pre-installation steps to perform?

[x] 👍 yes (vcredist*: added for the "portable")
[ ] 🙋 yes, but I need help
[ ] 🙅 no, because they aren't needed

Added/Needed any post-installation steps to perform?

[x] 👍 yes (vcredist* : remove the old way to install)
[ ] 🙋 yes, but I need help
[ ] 🙅 no, because they aren't needed

[optional] What gif/emoji best describes this PR or how it makes you feel?
:sweat:

All changes look good.


Update TOC caching middleware link to title casing

I've taken care of this in my branch middleware.md doc. I won't sweat the placeholder middeware doc, since that will go away soon.

Hi @GuardRex, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

aspnetcore/performance/caching/toc.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@GuardRex  thanks


Unable to create release on flutter project with firebase iOS

Xcode version: Version 10.2.1 (10E1001)
Firebase SDK version: from flutter project
firebase_admob: ^0.9.0
firebase_auth: ^0.11.0
firebase_analytics: ^3.0.1
firebase_core: ^0.4.0
firebase_crashlytics: ^0.0.4+3

Pod.lock created based on the relevant flutter versions

Firebase/AdMob (6.0.0):

Firebase/CoreOnly
Google-Mobile-Ads-SDK (~> 7.43)

Firebase/Analytics (6.0.0):

Firebase/Core

Firebase/Auth (6.0.0):

Firebase/CoreOnly
FirebaseAuth (~> 6.0.0)

Firebase/Core (6.0.0):

Firebase/CoreOnly
FirebaseAnalytics (= 6.0.0)

Firebase/CoreOnly (6.0.0):

FirebaseCore (= 6.0.0)

Firebase/Firestore (6.0.0):

Firebase/CoreOnly
FirebaseFirestore (~> 1.3.0)

firebase_admob (0.0.1):

Firebase/AdMob
Firebase/Core
Flutter

firebase_analytics (0.0.1):

Firebase/Analytics (~> 6.0)
Firebase/Core
Flutter

firebase_auth (0.0.1):

Firebase/Auth (~> 6.0)
Firebase/Core
Flutter

firebase_core (0.0.1):

Firebase/Core
Flutter

firebase_crashlytics (0.0.1):

Crashlytics
Fabric
Firebase/Core
Flutter

FirebaseAnalytics (6.0.0):

FirebaseCore (~> 6.0)
FirebaseInstanceID (~> 4.0)
GoogleAppMeasurement (= 6.0.0)
GoogleUtilities/AppDelegateSwizzler (~> 6.0)
GoogleUtilities/MethodSwizzler (~> 6.0)
GoogleUtilities/Network (~> 6.0)
"GoogleUtilities/NSData+zlib (~> 6.0)"
nanopb (~> 0.3)

FirebaseAuth (6.0.0):

FirebaseAuthInterop (~> 1.0)
FirebaseCore (~> 6.0)
GoogleUtilities/AppDelegateSwizzler (~> 6.0)
GoogleUtilities/Environment (~> 6.0)
GTMSessionFetcher/Core (~> 1.1)

FirebaseAuthInterop (1.0.0)
FirebaseCore (6.0.0):

GoogleUtilities/Environment (~> 6.0)
GoogleUtilities/Logger (~> 6.0)

FirebaseFirestore (1.3.0):

FirebaseAuthInterop (~> 1.0)
FirebaseCore (~> 6.0)
FirebaseFirestore/abseil-cpp (= 1.3.0)
"gRPC-C++ (= 0.0.8)"
leveldb-library (~> 1.20)
nanopb (~> 0.3.901)
Protobuf (~> 3.1)

FirebaseFirestore/abseil-cpp (1.3.0):

FirebaseAuthInterop (~> 1.0)
FirebaseCore (~> 6.0)
"gRPC-C++ (= 0.0.8)"
leveldb-library (~> 1.20)
nanopb (~> 0.3.901)
Protobuf (~> 3.1)

FirebaseInstanceID (4.0.0):

FirebaseCore (~> 6.0)
GoogleUtilities/Environment (~> 6.0)
GoogleUtilities/UserDefaults (~> 6.0)

Added from the "firebase" the GoogleService-Info.plist
Everything is running properly when I am running the debug version.
When I try to build an archive to release the iOS version I got error :
Could not find an option named "track-widget-creation".
Failed to build /Users/dan...../client_flutter/fitk_app.
error: Could not get GMP_APP_ID in Google Services file from build environment
Any ideas how can I take care to have the GMP_APP_ID ?
And why is required only on Release ?
Thanks

I found a few problems with this issue:

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
This issue does not seem to follow the issue template. Make sure you provide all the required information.

The issue is related to the build system and not to the code itself.

+1

This looks like https://github.com/flutter/flutter/issues/26279.
Even if it's not, that's probably a better issue tracker for this bug since it looks to be a problem with the flutter infrastructure and not something in the iOS SDK.

This looks like flutter/flutter#26279.
Even if it's not, that's probably a better issue tracker for this bug since it looks to be a problem with the flutter infrastructure and not something in the iOS SDK.

Hi
No, the issue with "track-widget-creation" is solved by making `"flutter build iOS --release". The problem remains even after that. It looks that the code from FirebaseId is looking for this parameter somewhere. I tried even to put this parameter in the "GoogleServiceInfo.plist" but it still doesn't find it.
From where this parameter should come ?
Thanks

As far as I can tell, the string "GMP_APP_ID" does not exist in the iOS SDK or its build system.  I still suspect the problem is related to the flutter integration.

As far as I can tell, the string "GMP_APP_ID" does not exist in the iOS SDK or its build system. I still suspect the problem is related to the flutter integration.

Probably you are right, but Firebase SDK is looking for this parameter. Where Firebase expects to find it ?

It might be one of the existing keys in the GoogleService-Info.plist, but it depends what the flutter build system is using it for.

It might be one of the existing keys in the GoogleService-Info.plist, but it depends what the flutter build system is using it for.

in GoogleServices plist there is no parameter like this
I created one with this code and put the Google app id in the value and I still have the same error.

I've reached out to someone on the Flutter team and asked them to have a look, hopefully they have some more insight. Based on the lack of reference to "GMP_APP_ID" anywhere in these SDKs (the Objective-C implementations for iOS) I'm inclined to believe it's something to do with the way Flutter packages the project.

Rolled-back to

Aha! Thank you very much @calindru for the information - looks like this is part of the upload_symbols script in Crashlytics. cc @samedson
We'll try to get it fixed shortly!

Hey @danysz, the error message is misspelled - it's GOOGLE_APP_ID instead of GMP_APP_ID. You shouldn't need any custom fields in your GoogleService file - the one downloaded from Firebase should work.
What's most likely happening is the Crashlytics run script can't find your GoogleService file when it builds for release. I just tried setting up a new Flutter project with firebase_crashlytics and archiving it from xcode, and it seems to work.
Could you try adding the --debug flag after run to see if Xcode gives you more information in the build output?

I'm also seeing Could not get GMP_APP_ID in Google Services file from build environment when building my non-flutter iOS project on our CI.
On macOS 10.14, Xcode 10.2.1, using:

Crashlytics: 3.13.1
Fabric: 1.10.1
Firebase/Core: 5.6.0

Downgrading to:

Crashlytics: 3.12.0
Fabric: 1.9.0

Gives me:
Fabric: Configuration Issue

Fabric API key not valid. Your Fabric run script build phase should contain your API key:
./Fabric.framework/run INSERT_YOUR_API_KEY INSERT_YOUR_BUILD_SECRET

I did not read the docs properly and missed:

Note: Make sure your new build phase is the project's last build phase, otherwise Crashlytics won't initialize properly.

Also:

Xcode 10 only: Add your app's built Info.plist location to the Build Phase's Input Files field:
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)

This fixed it: 🎉

@teameh could you explain the first thing?

@teameh I think your suggestion works for non-Flutter projects. I'm still stuck @ryanwilson any suggestion how to (temporarily) fix this for Flutter projects?

I tried the crashlytics ios sample app and the same error occurs

I had the same error

Could not get GOOGLE_APP_ID in Google Services file from build environment

but the solution was this one
https://stackoverflow.com/a/45318508/5553628

I got the same error
error: Could not get GMP_APP_ID in Google Services

Because I added
${PODS_ROOT}/Fabric/run
$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)

In wrong place, I added in existing Run Script
We must create new Run Script . Please check my screenshot for more detail.

I'm using firebase_crashlytics: ^0.0.4+8 and it's woring well

Looks like there are working solutions above


Consider adding support for the issues API

It might be handy to expose portions of the issues API for example, something like:

[ ] Get-GitLabIssue (maybe default to Project vs. group? or different functions?)
[ ] New-GitLabIssue
[ ] Close-GitHubIssue

among others
Cheers!

Get-GitlabIssue is supported in pull request #175

I'm reading trough the api docmentation on gitlab.|
and issues are children of projects.
would it be alright to implement the following cmdlets?:

Get-GitlabIssue : Get all issues the authenticated user has access to
Get-GitLabGroupIssue : Get a list of a group's issues.
Get-GitlabProjectIssue : Get a list (or a single) project issue
New-GitlabProjectIssue : Create a project issue
Set-GitlabProjectIssue : edit a project issue
Remove-GitlabProjectIssue : remove a project issue

Did some work on the above.
Would this work for you?

@tdemeester This would be a great addition.
Fix the minor issues with the PR and consider it accepted!

How far along are you guys on this? I could really use this.


Add optional fixes and demonstrate them in AIP-128 resource-annotations-field rule

Part of #344.

@mingzhi I'm not sure if this is what you had in mind, so please provide suggestions.
We will likely want some helper functions to produce these suggestions, similar to how there are location helpers, particularly for things like adding a new field to a message or removing an existing one. I'm not sure what the best approach for that is.


Update the visualstudio2017buildtools package to install 15.9.4 build tools

Hello.
It would be nice to update this package so we can upgrade to this via choco.
Thank you.

Yes, thank you


AdminLTE-2.3.0 Right Side bar

Right side bar is not actually hidden in Mozilla Firefox 40.0.3 - Windows 8.
We can scroll horizontally using the right arrow we can see the right side bar.

Refer to #676
Thanks!


fix(mat-menu): Change menu item direction in RTL

Fixes a bug in the Angular Material component where menu items did not update dynamically upon a direction change. The issue was caused by the absence of the class being set when the direction changed.
Fixes #27498

Closing this based on the response in #27498.


[Feat]: Integrate Auto-Generating Blogs using Gemini AI for EzyShop

Description
Description:
Enhance the EzyShop platform by integrating an auto-generating blog feature powered by Gemini AI. This feature will automatically generate relevant blog posts related to local shopping trends, product highlights, and seasonal promotions, providing valuable content to users and improving SEO for the platform.
Objectives:

Integrate Gemini AI to generate blog content related to local shopping.
Automate blog post creation based on predefined topics or categories.
Schedule blog posts to be published at regular intervals to keep content fresh and engaging.
Enable user customization to allow specific interests to influence the type of content generated.

Screenshots
No response
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[X] I'm a Hacktoberfest'24 contributor
[X] I am willing to work on this issue (optional)

Hey @Titus210, that's a nice idea. Can you please tell me how you fetch images and which language you use for GeminiAI integration? I think it should be Python, right? If not, please tell me how it is possible, and one more thing, can we use GPT or any other platform instead of Gemini?

Hey @Titus210, that's a nice idea. Can you please tell me how you fetch images and which language you use for GeminiAI integration? I think it should be Python, right? If not, please tell me how it is possible, and one more thing, can we use GPT or any other platform instead of Gemini?
Kindly share examples where it has been implemented, or share images or a demo video of your previous work.

Gemini API uses Vertex AI, which can automatically generate content with Gemini and images using DALL·E 3. Here is an example of a project that demonstrates how we can automatically generate content using Gemini and DALL·E 3 from Google AI Studio. Yes, we will be using Python for the implementation. Gemini will be used for text content generation, which can also be substituted with any other text-generating model such as GPT; however, for images, the DALL·E 3 API is the most effective option in this context.


PersonSelect onSelect event not being fired

Describe the bug
I can't seem to get the selected value from the PersonSelect. I've tried a few different events but can't get them to trigger. I were unable to trigger any of the events shown bellow.
To Reproduce
<PersonSelect
              onSelect={(e) => {
                console.log(e);
              }}
              onChange={(e) => {
                console.log(e);
              }}
              onSelectCapture={(e) => {
                console.log(e);
              }}
              onClick={(e) => {
                console.log(e);
              }}
              selectedId={selectedPerson?.azureUniqueId}
              label={"Add Member"}
              placeholder={"Search people..."}
            />

Expected behavior
Same as PersonSelect
Desktop (please complete the following information):

OS: Windows 11
Browser edge

Additional context
Fusion packages
        "@equinor/fusion": "^3.4.11",
        "@equinor/fusion-framework-app": "^7.1.8",
        "@equinor/fusion-framework-module-http": "^5.1.1",
        "@equinor/fusion-framework-module-navigation": "^3.1.2",
        "@equinor/fusion-framework-react": "^5.3.3",
        "@equinor/fusion-framework-react-app": "^4.1.13",
        "@equinor/fusion-framework-react-module-context": "^6.0.16",
        "@equinor/fusion-react-button": "^0.9.0",
        "@equinor/fusion-react-errorboundary": "^0.2.0",
        "@equinor/fusion-react-icon": "^0.3.0",
        "@equinor/fusion-react-markdown": "^0.3.0",
        "@equinor/fusion-react-person": "^0.6.0",
        "@equinor/fusion-react-side-sheet": "^1.1.0",
        "@equinor/fusion-react-styles": "^0.6.0",

Closed in<EMAIL_ADDRESS>


Padding for LinearLayout

Hello,
I would like to add a row between a PogressBar and a Button which are in a LinearLayout.
I couldn't find a way to separate the two Views from each other. I would prefer to set a value like in a Dialog with padding.
Can you add one or do I need to add a DummyView between the two to achieve my goal?

Dummy views are there for this purpose.
Though I can understand it'd start to be annoying having to add one every time if you have a very long LinearView...
I'll look into that. Maybe it could also have optional borders...

TL;DR: How do I build a transparent DummyView?
I'm trying to visualize the keymap in my editor built on Cursive.
Currently I position the keymap view below the editor using a LinearLayout:
LinearLayout::vertical()
    .child(view.with_id("inner")            .full_screen()) // main editor
    .child(Line::horizontal()               .full_width())  // delimiter
    .child(ListView::new().with_id("keymap").full_width())  // keymap
    .full_width()
    .with_id("overlay")

Resulting in (list is empty):

However, since the cursor is always scrolled into view, the text scrolls when I fill the keymap view and the view size changes:

I would like the keymap to behave like an overlay though, with no influence on the content behind it. The delimiter should also only be shown when the overlay is shown. So I wrapped everything in a StackView from which I can just pop off the overlay. To keep it at the bottom of the screen though, I need to add a DummyView that acts as spacer.
However, even though DummyView does nothing in draw(), the editor is not visible behind it:

Do you have any tips on how I could achieve that layout?

Hi!
DummyView is transparent, the problem is the layer itself. StackView wraps each child in a Layer which fills the background for this view, which is why layers are not transparent.
I'll run some tests, but it's possible we don't need that anymore. We can fill the background in Dialog, Panel and Layer, and let users compose from that.


How to emulate android:indeterminate?

Hello!
How to emulate android:indeterminate?
http://www.materialdoc.com/content/images/2015/11/intro-v1.gif

Sorry, Indeterminate isn't available for this library.

Any plans to adding Indeterminate in this library?

@comeback4u Not yet now

Added IndeterminateRoundProgressBar and IndeterminateCenteredRoundProgressBar for emulate the indeterminate
See https://github.com/akexorcist/Android-RoundCornerProgressBar/commit/69f9604b34f400132baabcd6e34edd6c23b1e784


New import

Summary
This PR changes the workflow of the bulk $import operation. Previously, this server used the Ping and Pull approach, but now it uses the proposed bulk data import outlined in [this IG](file:///Users/eperelli/Downloads/proposed-bulk-import-ig/site/index.html).
New behavior
For more information on the previous Ping and Pull approach, refer to this repository's Wiki page here. The main difference between that approach and the new approach is that the new approach utilizes already exported inputs rather than this server kicking off the export request. This simplifies the process by including the export ndjson urls in the Import Manifest in the request body of the $import operation rather than just the export url.
Code changes

package.json / package-lock.json - removed bulk-data-utilities dependency.
dbOperations.js - two new functions for storing and getting ndjson file failed outcomes, inclusion of the import manifest in the bulkImportClient object so that it may be included on the Import Result.
importWorker.js - executeNewImportWorkflow replaces executePingAndPull.
ndjsonWorker.js - ndjson failed outcomes are now stored as well.
bulkstatus.service.js - WORK IN PROGRESS - the structure of the Import Result object has yet to be finalized.
import.service.js - use retrieveInputUrls.
measure.service.js - bulkSubmitData now follows the new $import workflow. This is okay for now because $bulk-submit-data may even go away.
exportUtils.js - retrieveInputUrls now returns all ndjson fileUrls included in the Import Manifest
test - deleted param files that are no longer used in tests, updated unit tests to follow new workflow

Testing guidance

npm run check
Utilize the bulk-export-server to get the export ndjson url files to include in the Import Manifest. This can be done by populating the bulk-export-server, kicking off the $export request, and then polling the bulkstatus location until ndjson file urls are returned. Make sure the bulk-export-server is running on a different port than deqm-test-server (PORT=3001 npm start).
Spin up the deqm-test-server: npm start
Send a GET request to http://localhost:3000/4_0_1/$import with an Import Manifest json object in the request body (defined in IG) that includes ndjson file urls from the bulk-export-server. I am happy to send examples, but I figured leaving this open would be better for testing to make sure that I interpreted the IG correctly.
Make sure the $import kickoff returns a 202 status.
Send a GET request to the content-location (bulkstatus polling location). Make sure this either returns in-progress or OK status with a Import Result object.

Import Results
Note that the structure of the Import Results (bulkstatus.service.js) is still a work in progress.

Additional error handling should be added to the ndjsonWorker.js file to catch any mongo or Axios errors (such as a 404) and probably note their outcome and either fail the whole import or just that single file and create the OperationOutcome for that ndjson.
Suggest wrapping the most of the ndjson.process handler with a try catch to handle any unforeseen errors. Potentially add try catch with re-throwing for the retrieveNDJSONFromLocation function if you want to make the error message more descriptive that it had to do with request for the data failing.


Laboratory work #1, Gavrilova Ekaterina - 19FPL1

The deadline is not that far - consider pushing changes so that we can review them.

The deadline is not that far (this week alreay) - consider pushing changes so that we can review them.


FlutterView is not shown on Flutter 1.17

I use FlutterView to add a flutter page to  Android Activity，but the FlutterView is not shown on the screen.Before I updated Flutter to 1.17,it was ok.Has Flutter 1.17 changed something on FlutterView?
This is my code that add a FlutterView to Android ViewGroup:
FlutterEngine flutterEngine = new FlutterEngine(this);
flutterEngine.getNavigationChannel().setInitialRoute("route1");
flutterEngine.getDartExecutor().executeDartEntrypoint(
DartExecutor.DartEntrypoint.createDefault()
);
FlutterView flutterView = new FlutterView(this);
FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(600, 800);
FrameLayout flContainer = findViewById(R.id.fl_container);
flContainer.addView(flutterView, lp);
flutterView.attachToFlutterEngine(flutterEngine);

I have the same issue!

I have the same issue!!

i find onFlutterUiDisplayed is not callback on flutter 1.17.1!!!
FlutterView.addOnFirstFrameRenderedListener(this)

Hi @StephenZKCurry
I can import FlutterView using import io.flutter.embedding.android.FlutterView on latest stable
Can you please provide your flutter doctor -v and a minimal complete reproducible code sample including Complete MainActivity and Manifest
Thank you"

flutter doctor -v
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale
    zh-Hans-CN)
    • Flutter version 1.17.1 at /Users/edison/flutter/flutter
    • Framework revision f7a6a7906b (2 weeks ago), 2020-05-12 18:39:00 -0700
    • Engine revision 6bc433c6b6
    • Dart version 2.8.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/edison/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.2

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)

[!] VS Code (version 1.44.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

MainActivity:
public class MainActivity extends AppCompatActivity{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getWindow().setFormat(PixelFormat.TRANSLUCENT);
        ButterKnife.bind(this);
        initFragment(savedInstanceState);
    }

    private void initFragment(Bundle savedInstanceState) {
        if (savedInstanceState != null) {
            List<Fragment> fragmentList = getSupportFragmentManager().getFragments();
            for (Fragment fragment : fragmentList) {
                if (fragment instanceof DeviceListFragment) {
                    mDeviceFragment = fragment;
                }
                if (fragment instanceof ShopFragment) {
                    mShopFragment = fragment;
                }
                if (fragment instanceof MyFragment) {
                    mMyFragment = fragment;
                }
            }
        } else {
            mDeviceFragment = new DeviceListFragment();
            mShopFragment = new ShopFragment();
            mMyFragment = new MyFragment();
            FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
            fragmentTransaction.add(R.id.main_fl, mDeviceFragment);
            fragmentTransaction.add(R.id.main_fl, mShopFragment);
            fragmentTransaction.add(R.id.main_fl, mMyFragment);

            fragmentTransaction.setMaxLifecycle(mDeviceFragment, Lifecycle.State.RESUMED);
            fragmentTransaction.setMaxLifecycle(mShopFragment, Lifecycle.State.STARTED);
            fragmentTransaction.setMaxLifecycle(mMyFragment, Lifecycle.State.STARTED);

            fragmentTransaction.commit();
        }

        getSupportFragmentManager().beginTransaction()
                .show(mDeviceFragment)
                .hide(mWeightFragment)
                .hide(mSleepFragment)
                .hide(mShopFragment)
                .hide(mMyFragment)
                .commit();
    }

    @OnClick(R.id.shop_ll)
    void onClickShop(View view) {
        getSupportFragmentManager().beginTransaction().show(mShopFragment)
               .hide(mDeviceFragment)
                .hide(mMyFragment)
               .commit();
    }
}

ShopFragment
public class ShopFragment extends LazyFragment implements MethodChannel.MethodCallHandler, FlutterUiDisplayListener{

@BindView(R.id.shop_fl)
    FrameLayout mShopFl;

 private boolean isLoaded = false;
    protected Context mContext;
    private View rootView;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        this.mContext = context;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
        if (rootView == null) {
            rootView = inflater.inflate(R.layout.fragment_shop, container, false);
        }
        return rootView;
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        ButterKnife.bind(this, view);
    }

@Override
    public void onResume() {
        super.onResume();
        if (!isLoaded && !isHidden()) {
            lazyInit();
            isLoaded = true;
        }
    }

 @Override
    public void onDestroy() {
        super.onDestroy();
        isLoaded = false;
    }

 public void lazyInit() {
        mFlutterEngine = new FlutterEngine(mContext);
        mFlutterEngine.getNavigationChannel().setInitialRoute("/");
        mFlutterEngine.getDartExecutor().executeDartEntrypoint(
                DartExecutor.DartEntrypoint.createDefault()
        );
        FlutterEngineCache
                .getInstance()
                .put("flutter", mFlutterEngine);
        mFlutterView = new FlutterView(mContext);
        mFlutterView.attachToFlutterEngine(mFlutterEngine);
        mFlutterView.addOnFirstFrameRenderedListener(this);
        mShopFl.addView(mFlutterView);

        //MethodChannel
        mMethodChannel = new MethodChannel(mFlutterEngine.getDartExecutor(), METHOD_CHANNEL);
        mMethodChannel.setMethodCallHandler(this);
    }

@Override
    public void onMethodCall(MethodCall call, MethodChannel.Result result) {
        if (call.method.equals(METHOD_GET_USER_TOKEN)) {
        } else if (call.method.equals(METHOD_VISIBLE_BOTTOM_ACTION)) {
        } else {
            result.notImplemented();
        }
    }

@Override
    public void onFlutterUiDisplayed() {
        Log.i("xxx", "onFlutterUiDisplayed: ---->");
        new Handler().post(new Runnable() {
            @Override
            public void run() {
                mShopFl.setVisibility(View.VISIBLE);
            }
        });
    }

    @Override
    public void onFlutterUiNoLongerDisplayed() {
        Log.i("xxx", "onFlutterUiNoLongerDisplayed: ---->");
    }
}

Manifest:
<application
        android:name=".application.MyApplication"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:networkSecurityConfig="@xml/network_security_config"
        android:requestLegacyExternalStorage="true"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

<activity
            android:name=".ui.MainActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:screenOrientation="portrait" />
</application>

style:
<style name="BaseAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowTranslucentNavigation">false</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
    </style>

    <style name="AppTheme" parent="BaseAppTheme">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/theme_color_01</item>
        <item name="colorPrimaryDark">@color/theme_color_01</item>
    </style>

Hi @StephenZKCurry
I can import FlutterView using import io.flutter.embedding.android.FlutterView on latest stable
Can you please provide your flutter doctor -v and a minimal complete reproducible code sample including Complete MainActivity and Manifest
Thank you"

flutter doctor -v
[√] Flutter (Channel beta, 1.18.0-11.1.pre, on Microsoft Windows [Version 10.0.15063], locale zh-CN)
? Flutter version 1.18.0-11.1.pre at D:\flutter
? Framework revision 2738a1148b (2 weeks ago), 2020-05-13 15:24:36 -0700
? Engine revision ef9215ceb2
? Dart version 2.9.0 (build 2.9.0-8.2.beta)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
? Android SDK at D:\sdk
? Platform android-R, build-tools 29.0.3
? Java binary at: D:\android-studio-4.0-Canary1\android-studio\jre\bin\java
? Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[√] Android Studio (version 3.6)
? Android Studio at D:\Android Studio
? Flutter plugin version 43.0.2
? Dart plugin version 192.7761
? Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[!] Android Studio (version 4.0)
? Android Studio at D:\android-studio-4.0-Canary1\android-studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
? Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[!] IntelliJ IDEA Ultimate Edition (version 2017.3)
? IntelliJ at D:\IntelliJ IDEA 2017.3.3
X Flutter plugin not installed; this adds Flutter specific functionality.
? Dart plugin version 173.4700
? For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[!] Connected device
! No devices available
! Doctor found issues in 4 categories.
MainActivity.java
package com.example.fluttertest;
import android.os.Bundle;
import android.widget.FrameLayout;
import androidx.appcompat.app.AppCompatActivity;
import io.flutter.embedding.android.FlutterView;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.embedding.engine.dart.DartExecutor;
public class MainActivity extends AppCompatActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    FlutterEngine flutterEngine = new FlutterEngine(this);
    flutterEngine.getNavigationChannel().setInitialRoute("route1");
    flutterEngine.getDartExecutor().executeDartEntrypoint(
            DartExecutor.DartEntrypoint.createDefault()
    );

    FlutterView flutterView = new FlutterView(this);
    FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(600, 800);
    FrameLayout flContainer = findViewById(R.id.fl_container);
    flContainer.addView(flutterView, lp);
    flutterView.attachToFlutterEngine(flutterEngine);
}

}
activity_main.xml

<FrameLayout
    android:id="@+id/fl_container"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

AndroidManifest.xml

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

style.xml

The initnitialRoute “route1” corresponds to a simple flutter page.

I tried running the https://github.com/flutter/flutter/tree/master/examples/flutter_view sample using v1.17.1 of the framework.  The FlutterView rendered as expected.
I also added an addOnFirstFrameRenderedListener to the FlutterView and a call to setInitialRoute but did not notice any issues.
Does the flutter_view sample app work in your environment?

I tried running the https://github.com/flutter/flutter/tree/master/examples/flutter_view sample using v1.17.1 of the framework. The FlutterView rendered as expected.
I also added an addOnFirstFrameRenderedListener to the FlutterView and a call to setInitialRoute but did not notice any issues.
Does the flutter_view sample app work in your environment?

Thank you,I compared this sample with my project and finded that I missed flutterEngine.getLifecycleChannel().appIsResumed(),after I added this code in onResume() callback,the FlutterView was shown as expected.
I remember that in Flutter 1.12,the FlutterView can be shown on the screen without this code,but in the latest Flutter version,this code is necessary,maybe something changed on the FlutterView display process.

@EdifierX You can try addind this code in onResume() callback.
···
flutterEngine.getLifecycleChannel().appIsResumed()
···

@StephenZKCurry OMG!!  it show. Thanks

I met same issue, and I add "flutterEngine.getLifecycleChannel().appIsResumed()" but not work.


How to run loganomaly?

lstm.py can be used for running deeplog and loganomaly algorithms. Can you tell me how to set parameter values in order to run loganomaly?

I do not think lstm.py can be directly used for running LogAnomaly. lstm.py only supports two types of inputs, which are "sequential" and "semantic". However, LogAnomaly uses "semantic" and "count" (namely the count of each event templates in a sequence). In contrast, DeepLog uses "sequential" as input, and thus it can be achieved simply using lstm.py.


Directory enumeration/search permissions mismatch Unix behavior

Describe the bug
Certain "pathological" directory modes do not match the native POSIX behaviors. A directory that has S_IRUSR can be enumerated, but not necessarily searched (i.e. one can list the files within it, but cannot access those files). A directory that has S_IXUSR can be searched, but not necessarily enumerated (i.e. one cannot list the files of a directory, but can read those files as long as the entry names are known).
How To Reproduce

Test cases
import os
from pathlib import Path
import pytest

def _enumerate_fails():
    # Prep
    d = Path("testdir")
    d.mkdir(exist_ok=True)
    d.chmod(0o777)
    # Set weird mode:
    d.chmod(0b011_101_101)  # -wxr-xr-x
    # We can add the file, even if the directory is not enumerable
    file = d / "file.txt"
    file.write_text("hey")
    # We can search the directory and read files within it:
    assert file.read_text() == "hey"
    # We cannot enumerate the directory
    with pytest.raises(PermissionError):
        list(d.iterdir())

def _search_fails():
    # Prep
    d = Path("testdir")
    d.mkdir(exist_ok=True)
    d.chmod(0o777)
    file = d / "file.txt"
    file.write_text("hey")
    # Set weird mode:
    d.chmod(0b110_101_101)  # rw-r-xr-x
    # We cannot create any files in the directory, because that requires
    # searching it
    another_file = Path("file.txt")
    another_file.write_text("hey")
    with pytest.raises(PermissionError):
        os.link(another_file, d / "link.txt")
    # We can enumerate the directory:
    assert os.listdir(d) == ["file.txt"]
    # We cannot read files inside of the directory (even if we have read access to the file)
    with pytest.raises(PermissionError):
        file.stat()
    with pytest.raises(PermissionError):
        file.read_text()

def test_enumerate_realfs():
    _enumerate_fails()

def test_enumerate_fakefs(fs):
    _enumerate_fails()

def test_search_fails():
    _search_fails()

def test_search_fakefs(fs):
    _search_fails()

Your environment
Please run the following in the environment where the problem happened and
paste the output.
$ python -c "import platform; print(platform.platform())"
Linux-6.7.6-arch1-1-x86_64-with-glibc2.39
$ python -c "import sys; print('Python', sys.version)"
Python 3.11.7 (main, Jan 29 2024, 16:03:57) [GCC 13.2.1 20230801]
$ python -c "from pyfakefs import __version__; print('pyfakefs', __version__)"
pyfakefs 5.3.5
$ python -c "import pytest; print('pytest', pytest.__version__)"
pytest 7.2.0

For directory searching, it looks to be that get_object_from_normpath is responsible for permission checking at each step in path resolution. It incorrectly checks the read bit of the directory objects in _can_read, but it should be checking the execute bit:
@staticmethod
def _can_read(target, owner_can_read):
    if target.st_uid == helpers.get_uid():
        if owner_can_read or target.st_mode & 0o400:
            return True
    if target.st_gid == get_gid():
        if target.st_mode & 0o040:
            return True
    return target.st_mode & 0o004

Additionally, at least to the best of my knowledge, the permission fall-through behavior is not part of POSIX i.e. if get_uid() == st_uid, then only the S_IXUSR bit should be considered, and not the group/other bits.
As for directory enumeration, I believe it would require a separate check since it depends on a different set of mode bits.

It incorrectly checks the read bit of the directory objects in _can_read, but it should be checking the execute bit

Right, that seems to be incorrect.

the permission fall-through behavior is not part of POSIX i.e. if get_uid() == st_uid, then only the S_IXUSR bit should be considered, and not the group/other bits

That's also true, I just checked this for the other issue where it also holds.
I actually forgot that there is already a check for uid and gid, so this looks just like a bug fix instead of a refactoring (which I first thought was needed).

@vector-of-bool - this (and the other issue) shall be fixed now in main. Please try it out, and check if you see any other permission-related problems. I'll wait a bit if anything else comes up before making a new release.

Thanks for the quick turnaround! I installed and ran tests on my system and it looks to be behaving properly.
It looks like it may have unveiled issues related to the automatic creation of a /tmp directory, but will require more investigating.


[jvm-packages] bump flink version number

0.10 was years ago, bump version number

Thanks @CodingCat will do.

@CodingCat will you be able to help restart pr-merge job?
[linux_cuda9.2_nccl_omp_py2.7] Still waiting to schedule task [linux_cuda9.2_nccl_omp_py2.7] Waiting for next available executor [linux_cuda8.0_nccl_omp_py2.7] Still waiting to schedule task [linux_cuda8.0_nccl_omp_py2.7] Waiting for next available executor [linux_cuda8.0_nonccl_omp_py2.7] Still waiting to schedule task [linux_cuda8.0_nonccl_omp_py2.7] Waiting for next available executor [Pipeline] [linux_cuda8.0_nonccl_omp_py2.7] // node [Pipeline] [linux_cuda8.0_nccl_omp_py2.7] // node [Pipeline] [linux_cuda9.2_nccl_omp_py2.7] // node Cancelling nested steps due to timeout

it's for gpu test, you can ignore it for now....

LGTM, merged, thanks


Open up for more destinations images

This adds a ShaderDstImageCount to pair with ShaderSrcImageCount for consistency.
This also specifies an array of that size as destination images to prepare for a potential future with multiple render targets.

Doesn't this PR include https://github.com/hajimehoshi/ebiten/pull/2953/files#diff-5e4632b009f388f1382bf79aa2d536a210b6ee845038f9417db792aa400c5c8f ?

Okay, I added more from the graphicscommand package
I originally thought you'd prefer a softer migration!
The weirdest bit is this now: https://github.com/hajimehoshi/ebiten/pull/3013/files#diff-58093df023b3ec55c1b71cedc407ec23a6bdce12c442127e3e0250968cdf260aR333-R339
We know that in the current situation only index 0 is filled and this is guaranteed by parent APIs, do you prefer if I refer to dsts[0].InternalSize() just like index 0 is being used in graphicdriver implementations?

We know that in the current situation only index 0 is filled and this is guaranteed by parent APIs, do you prefer if I refer to dsts[0].InternalSize() just like index 0 is being used in graphicdriver implementations?

Yeah let's always use 0. Also, please add comment that the number of the images is always 1 so far.

Thanks for the PR, but let me think to merge this for a while. Would it be possible to see the PR #2953 updated based on this PR?


Any way to get a session token instead of using API key?

Hi, I'm working on a single page application using the gdax-tt and am wondering if I can have users obtain a session token by logging in through GDAX instead of putting in their API keys manually.  Thanks!

That sounds cool! Unfortunately, there's no plan to support session tokens at this time.


Task unable to run Gradle task in 8.10 due to bytecode interception

I cannot upgrade my application to Gradle 8.10 due to bytecode interception breaking a task  It works in 8.9.
I get this error message:

Inconsistent constant pool data in classfile for class org/lwjgl/system/Configuration$StateInit. Method 'java.lang.String gradle$intercept$$java$lang$System$$getProperty$0(java.lang.String)' at index 86 is CONSTANT_MethodRef and should be CONSTANT_InterfaceMethodRef

I suspect this has to do with the new Configuration Cache.  Is there a way to work around this issue for now?

Oh, that's unfortunate. What version of lwjgl is being used?

Is there a way to work around this issue for now?

Not really, except not using lwjgl as part of the build script classpath.

Actually, I'm able to reproduce the issue with a simple class on the build class path:
package org.example;

import java.util.function.*;

public interface Foo {

  static Function<String, String> getFunc() {
    return System::getProperty;
  }
}

We're generating
  #19 = Methodref          #2.#18         // org/example/Foo.gradle$intercept$$java$lang$System$$getProperty$0:(Ljava/lang/String;)Ljava/lang/String;
  #20 = MethodHandle       6:#19          // REF_invokeStatic org/example/Foo.gradle$intercept$$java$lang$System$$getProperty$0:(Ljava/lang/String;)Ljava/lang/String;

instead of a proper method reference to an interface static method that looks like (method name different):
#19 = InterfaceMethodref #2.#18         // org/example/Foo.id:(Ljava/lang/String;)Ljava/lang/String;
#20 = MethodHandle       6:#19          // REF_invokeStatic org/example/Foo.id:(Ljava/lang/String;)Ljava/lang/String;

Release notes in #31300.


Proxy settings encantment

In my country sankaku, konachan and etc. are blocked( that issue https://github.com/Bionus/imgbrd-grabber/issues/556 ), so I use auto proxy in Windows settings, but Grabber, I guess using his own proxy settings, but looks like there are only manually proxy configuration avilable... but I am using auto configuration script
So I think you need to add proxy auto configuration option, like it can be done in Windows proxy settings.
for exampe i need to use http://antizapret.prostovpn.org/proxy.pac
picture is not mine, but you can see that in Windows you can use autoconfiguration:

Seems like using QNetworkProxyFactory::setUseSystemConfiguration on program initialization could allow the use of the system-wide proxy settings.
I'll make some tests and try to come up with a patch to directly use Windows' proxy, which in your case is configured using a script.

and yep, directly use Windows proxy settings will be optimal

any proggress?


Documentation site Knex & Bookshelf libraries 404

The Knex and Bookshelf libraries are 404ing in the Bookshelf documentation site:
http://bookshelfjs.org/docs/assets/knex.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://bookshelfjs.org/build/bookshelf.js Failed to load resource: the server responded with a status of 404 (Not Found)

Thanks.

The project leadership of Bookshelf recently changed. In an effort to advance the project we close all issues older than one year.
If you think this issue needs to be re-evaluated please post a comment on why this is still important and we will re-open it.
We also started an open discussion about the future of Bookshelf.js here https://github.com/bookshelf/bookshelf/issues/1600. Feel free to drop by and give us your opinion.
Let's make Bookshelf great again

Duplicate of #974.


EventEmitter not found

Describe the bug
I've been trying to get SIP.js 0.16.1 (also tried 0.16.0) integrated with LitElement (https://open-wc.org), but to no success.
It leads to the following error, on both Safari and Chrome:
Safari Version 13.1.1 (156<IP_ADDRESS>.2): SyntaxError: Importing binding name 'EventEmitter' is not found.
Chrome Version 83.0.4103.106 (Official Build) (64-bit): Uncaught SyntaxError: The requested module '../../../../events/events.js' does not provide an export named 'EventEmitter'
To Reproduce
Steps to reproduce the behavior:

npm init @open-wc
Scaffold a new project
Web Component
Typescript
Give it a name
Write to disk and install node modules
Import sip.js in the file that was created in the src directory
Anywhere in the file create a new UserAgent object
npm run start
A browser will open and open the console to view the error

Expected behavior
I'd expect SIP.js to be loaded correctly.
Observed behavior
Error thrown for the EventEmitter.
Environment Information
Mac OS 10.15.5
Additional context
Not sure if this helps, but here is the tsconfig.json.
tsconfig.json
 {   "compilerOptions": {     "target": "es2018",     "module": "esnext",     "moduleResolution": "node",     "noEmitOnError": true,     "lib": ["es2017", "dom"],     "strict": true,     "esModuleInterop": false,     "allowSyntheticDefaultImports": true,     "experimentalDecorators": true,     "importHelpers": true,     "outDir": "dist",     "sourceMap": true,     "inlineSources": true,     "rootDir": "./"   },   "include": ["**/*.ts"] }

Addressed in #815.
The dependency on events.js has been removed.

@john-e-riordan, thanks for confirming it's already fixed in a future release. Any ETA on the next version?

I've built the source from your pull request, and tested it with my web component. I can confirm the error no longer exists.

Closing as 0.17.0 is now released.


[BUG] DiffusionToolkit not reading separately stored aesthetic score tags from A1111 files in certain circumstances

Describe the bug
PNG files from A1111 that embed a separate aesthetic_score tag in a PNG-tEXt block do not have this information read into their FileParameters structure, due to the OtherParameters field already being set elsewhere.
Version:
v1.4. The extension embedding the tag is stable-diffusion-webui-aesthetic-image-scorer, version 1c3ab7a1.
To Reproduce
Generate an image and have it loaded into Diffusion Toolkit. Set a search that uniquely identifies this image. Add a filter for aesthetic_score > 0. The image is filtered out.
Expected behavior
The image should remain, as it has an aesthetic score of 6.2.
Source Image

Note that the parameters: tag starts at offset 33, and the aesthetic_score resides in a separate tag at offset 333.
Additional context
My hypothesis is that the problem is in the ReadFromFile function in Metadata.cs.
During execution, we encounter the "parameters:" tag and ReadA111Parameters is called. The tag is split and iterated over.
During this, the function moves to state 2 as the tag includes the line, "Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 43846133, Size: 512x512, Model hash: 5dd07a46d7, Model: richyrichmix_V2Fp16, VAE hash: df3c506e51, VAE: pastel-waifu-diffusion.vae.pt, Clip skip: 2, Token merging ratio: 0.5, Version: v1.7.0".  Note that this tag fragment does not include the aesthetic score.
On line 866, this tag fragment is stored in fileParameters.OtherParameters, and eventually this fileParameters structure is returned to the outer function. Subsequently, the "aesthetic_score:" tEXt block may be encountered at line 103 and the value stored in aestheticScore, but this is not propagated into the fileParameters structure at line 149 because fileParameters.OtherParameters is no longer null and therefore the ??= assignment does not take place.
Suggestion
If I have understood correctly, the block of code at 148-149 should test in the alternative if OtherParameters is set - if not, the current behaviour is correct, but otherwise the aesthetic score should be appended if it is not already present from an earlier read operation.

Well - I feel silly now. After build a local copy and doing some tests, it seems the issue is not the non-writing of OtherParameters but that the aestheticScore variable doesn't appear to be written to fileParameters.AestheticScore. Adding a line to do that at 1001 and 149 seems to have fixed the problem.

Thanks, do you have a pull request for this?

Unfortunately, I don't know much about git (or version control), but hopefully what I've proposed as request #163  is what you need.


Analyze HAWQ-44

Advanced statistics for PXF table.
PXF sample rows are collected into a temporary table, where statistics are derived of them in the same way ANALYZE works for hawq tables.
Statistics are gathered at 3 stages:

Getting general statistics - number of fragments, size of data source, size of first fragment
Count of first fragment tuples
HAWQ uses these numbers to determine how many tuples are needed, and these parameters are translated to sampling ratio and number of sampled fragments.
Sampling the PXF table based on the sampling ratio and number of fragments to be sampled. The returned tuples are saved in a temporary table.

On the PXF side, a function has been made to the Fragmenter API, to allow gathering the stats of the first stage. In addition, a mechanism to sample rows on the fly was added to the Bridge.

+1


Fixed a bug where get_user_home_dir() would not be found on Linux

Using Debian 12.2. Looks like the inclusion of the use crate::vorutils::get_user_home_dir; header in ui.rs and config.rs took care of things for me, hope this helps anyone else!

Sure thing! I'm away from my PC for the weekend, but when I get back I'll make those changes 👍

Added in 048dd28

Thanks!


ImageCircle: Xamarin.Forms <IP_ADDRESS> required

James,
It would appear that there is a hard dependency on Xamarin.Forms <IP_ADDRESS>.
I created a 1.3.0 project and after installing ImageCircle and adding the ImageCircleRenderer.Init(); to the AppDelegate on iOS, I get this:
The type 'Xamarin.Forms.Platform.iOS.ImageRenderer' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Forms.Platform.iOS, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'
Thanks, Mitch

I will take a look today mitch thanks.

I will take a look today mitch thanks.

Pushed update for 1.3.0
I will have a pre-release for 1.3.1 in the near future with unified. I am not 100% sure why it locked into that, maybe they changed something under the hood.
Thanks.

Pushed update for 1.3.0
I will have a pre-release for 1.3.1 in the near future with unified. I am not 100% sure why it locked into that, maybe they changed something under the hood.
Thanks.

Thanks. I am not sure what happened.  I tried several variations of installation including installing ImageCircle first and it automatically installed 1.2.3.

Thanks. I am not sure what happened.  I tried several variations of installation including installing ImageCircle first and it automatically installed 1.2.3.

It used to rely on 1.2.3, but I just need to rebuild against 1.3.0. I guess
this is just how the renderers will work, so I need to keep on top of it.
On Thu, Jan 1, 2015 at 12:27 PM, Mitch Milam<EMAIL_ADDRESS>wrote:

Thanks. I am not sure what happened. I tried several variations of
installation including installing ImageCircle first and it automatically
installed 1.2.3.
—
Reply to this email directly or view it on GitHub
https://github.com/jamesmontemagno/Xamarin.Plugins/issues/10#issuecomment-68492332
.

--
James Montemagno
http://www.montemagno.com
@jamesmontemagno http://www.twitter.com/jamesmontemagno

It used to rely on 1.2.3, but I just need to rebuild against 1.3.0. I guess
this is just how the renderers will work, so I need to keep on top of it.
On Thu, Jan 1, 2015 at 12:27 PM, Mitch Milam<EMAIL_ADDRESS>wrote:

Thanks. I am not sure what happened. I tried several variations of
installation including installing ImageCircle first and it automatically
installed 1.2.3.
—
Reply to this email directly or view it on GitHub
https://github.com/jamesmontemagno/Xamarin.Plugins/issues/10#issuecomment-68492332
.

--
James Montemagno
http://www.montemagno.com
@jamesmontemagno http://www.twitter.com/jamesmontemagno


Error after running learn.py

Traceback (most recent call last):
  File "learn.py", line 82, in <module>
    captureFrame(delay)
  File "learn.py", line 27, in captureFrame
    ref = face_recognition.load_image_file(tmp_file)
  File "/home/akxer/.local/lib/python3.6/site-packages/face_recognition/api.py", line 81, in load_image_file
    return scipy.misc.imread(file, mode=mode)
  File "/home/akxer/.local/lib/python3.6/site-packages/numpy/lib/utils.py", line 101, in newfunc
    return func(*args, **kwds)
  File "/home/akxer/.local/lib/python3.6/site-packages/scipy/misc/pilutil.py", line 164, in imread
    im = Image.open(name)
  File "/home/akxer/.local/lib/python3.6/site-packages/PIL/Image.py", line 2543, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/howdy_akxer.jpg'

This comes after I run python3 learn.py. It asks me to look into camera, but the camera does not turn on(the light beside it does not turn on) and then it throws this exception

This sounds like you're using an invalid /dev/videoX device, but i would need more data. I've updated the learn.py file, maybe this will be more clear on what's going wrong?
If you're able, could you be so kind to give me the output of the following commands:
sudo ls /dev/ | grep video

sudo lsusb -vvvv | grep iFunction

Sorry for the late reply
Output of sudo ls /dev/ | grep video
video0
Output of sudo lsusb -vvvv | grep iFunction
iFunction               5 Integrated Webcam

Looks like you only have 1 webcam, are you sure it's an IR camera?
Either way, you need to change the device_id to 0 in config.ini. Be warned that this could lead to using the normal visible light camera which is a lot less secure.

As this issue was opened when Howdy was quite different than it is now, this issue has gone stale. I'm closing this issue but please do open a new one if you still experience problems with the current Howdy.


"Implement Interface" Option Not Displayed in Right-Click Menu in .NET Class Library Projects

Issue Description
"Implement Interface" option not displayed in right-click menu in .NET Class Library projects.
Steps to Reproduce

I'm starting new .NET Class Library Project using command line. I also manually create the ../Abstract and ../Concrete subdirectories.

dotnet new classlib -o ApplicationName.SubProjectName
cd ApplicationName.SubProjectName
mkdir Abstract
mkdir Concrete

I add an interface by right-clicking on the Abstract directory on VS Code and following New C# > Interface. I add a concrete class by right clicking on the Concrete directory and following the path New C# > Class.

///Interface
using ApplicationName.SubProjectName.Entity;
namespace ApplicationName.SubProjectName.Abstract
{
   public interface IProductRepository
   {
      Product GetProductByID(int id);
   }
}

///Concrete Class
using ApplicationName.SubProjectName.Entity;
using ApplicationName.SubProjectName.Abstract;
namespace ApplicationName.SubProjectName.Concrete
{
   /// Shortcut "CTRL + ." doesn't work when cursor is on IProductRepository.
   public class MySQLProductRepository : IProductRepository{ /* ... */}
}

When I use the "CTRL + ." shortcut while on the interface, the "Implement Interface" option does not appear in the right-click menu. When I compile the project for testing, I get the error that the interface is not implemented. When I implement the interface manually, the project compiles successfully.

dotnet build

This issue doesn't happen when using other Microsoft Technologies such as ASP.NET Core, ADO.NET, etc. But whenever I have a project where I'm creating a .NET Class Library this problem occurs.

Expected Behavior
When the "CTRL + ." shortcut is used while the cursor is on the interface name, the interface must be implemented on the concrete class.
Actual Behavior
When using the "CTRL + ." shortcut while the cursor is on the interface name, the "Implement Interface" option is not displayed in the right-click menu.
Environment information
VSCode version: 1.62.2
C# Extension: 1.23.16

I just realized that this issue is because OmniSharp stopped working on Visual Studio Code for some reason I don't know.
Therefore, I solved the problem by following the steps below on Visual Studio Code:

Open the command palette using the CTRL + SHIFT + P shortcut.
Search for "OmniSharp: Select Project".
Select the project you are working on.

When I enabled OmniSharp on existing project by following these steps the problem was resolved. The directory I opened from the Visual Studio Code consists of five subprojects and dozens of source code files; this is the first time I have had this problem. I think this problem is caused by the large amount of files/directories tracked by OmniSharp. That's why after a point C# intellisense stops working.

I have problem while defining interface and it's properties and methods doesn't appear in Intellisense for implementation!


feat: partial impl. of Primaries swatch

@rultor, good to merge.

@rultor, good to merge.

@rafamizes OK, I'll try to merge now. You can check the progress of the merge here

@rultor, good to merge.

@rafamizes Done! FYI, the full log is here (took me 2min)


ES joy gamepad config options menu

Allows the user to enable or disable joy detection and joy caching, so the user can adjust accordingly without having to modify the emuelec.conf file directly.
edit:
Tested and working.

dont commit has error.

Only commit this when the following emuelec patch has been commited.
https://github.com/EmuELEC/EmuELEC/pull/858
That patch makes sure cache is working for all auto input emulators.

Good to go! :dancing_women:


docs: update developing guide about windows and building scripts.

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

docs: update developing guide about windows and building scripts.

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[ ] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[x] Other

6. Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 89.712%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1369

Relevant Lines:
1526

💛  - Coveralls


Merge main into datafusion-sql-planner

Codecov Report

:exclamation: No coverage uploaded for pull request base (datafusion-sql-planner@5ac11ae). Click here to learn what that means.
The diff coverage is n/a.

@@                    Coverage Diff                    @@
##             datafusion-sql-planner     #654   +/-   ##
=========================================================
  Coverage                          ?   62.13%
=========================================================
  Files                             ?       73
  Lines                             ?     3631
  Branches                          ?      749
=========================================================
  Hits                              ?     2256
  Misses                            ?     1226
  Partials                          ?      149

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Fix typo

Checklist

[x] All new jobs, commands, executors, parameters have descriptions
[x] Examples have been added for any significant new features
[x] README has been updated, if necessary

Motivation, issues
Just fixing a typo
Description
Fixing a typo found during the Hacktoberfest CircleCI Virtual Meetup

Later PR #6 accepted


update ipcc colors for wg1

Skipping formalities for now, as I don't think this needs to be in release notes.
This PR updates the IPCC colors in plotting.py to the latest available versions communicated by the TSU. Communicated colors in RGB are attached. RGB converted to hex with the below code snippet
import numpy as np
import matplotlib

with open('./WGI SSP colours.txt') as f:
    for l in f.readlines()[1:]:
        data = l.strip().split()
        rgb = np.array([int(x) for x in data[1:]]) / 256
        print(data[0], matplotlib.colors.rgb2hex(rgb))

WGI SSP colours.txt

Restarted the tests, but one test (see below) is still failing because the updated colors violate the matplotlib-image-compare tolerance (not on Windows, interestingly).
https://github.com/IAMconsortium/pyam/blob/7d83a9836b01069d9fe8a2a50a5383beeab0fe7d/tests/test_plotting.py#L108
More importantly: can we (in the file or in this PR, or both) have a clear indication to the version of the color scheme?

Hi @ozgeyelekci - this is our PR for updating pyam to the latest available IPCC WG1 colors. Given that https://github.com/IPCC-WG1/colormaps appears to be the canonical location for these definitions, would it be possible to tag the current state of that repo with a version number that we can reference here?


Document LED Wiring

[x] Create a fritzing diagram to document wiring for the LED indicators and the 7-segment LED used for the message count

[x] Create parts list

Related: Make GPIO pins configurable

Related: Add message count indicator

Kingbright LED Segments

Segment
Pin
GPIO

a
1
GP11

b
13
GP8

c
10
GP25

d
8
GP 5

e
7
GP18

f
2
GP9

g
11
GP1

dp
6
GP27

Added a Wiki section in Advanced: LED Indicators


Polymesh private v2 support

Description

Adds support for polymesh-private v2 changes
Fixes bug where asset scoped claims were not revoked

Breaking Changes

JIRA Link

Checklist

[ ] Updated the Readme.md (if required) ?

/fast-forward

/fast-forward


Remove further reference to R_RISCV_GPREL_[IS]

We currently still say the following:

GP-Relative Relocations: If symbol is within the range of a signed 12-bit
immediate offset from __global_pointer$, then the address can be loaded with a
single instruction which has one relocation, a R_RISCV_GPREL_I or
R_RISCV_GPREL_S.
The instruction is an I-Type instruction (add immediate or load) with an
R_RISCV_GPREL_I or an S-type instruction (store) with an R_RISCV_GPREL_S
relocation. The following assembly show loading a gp-relative address:
     addi a0, gp, 0          # R_RISCV_GPREL_I (symbol)

This relies on the value of __global_pointer$ being loaded into gp (aka
x3). This can be used by linker relaxation to delete the lui instruction.

There was never any assembly syntax for that and the relocations have since been removed due to being internal binutils relocations. We should remove this section.

I believe this issue is resolved by this https://github.com/riscv/riscv-elf-psabi-doc/pull/199 :)

No, that's why this issue says "further". I missed these in my original PR.

Oh, I got your point, I guess I can working on writing __global_pointer$ in next few days and remove that, or are you already working on that?

We already have https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md#calculation-symbols, I think the quoted section just needs deleting.


[Feature] Plan to remove or deprecate OpenFunction monitoring from SkyWalking

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
The OpenFunction UI integration part has lacked maintenance for years. With the newly introduced MQE, this part is hard to follow up.
By following our principle, it is time to remove it as no committer is maintaining it and keeping it updated anymore.
FYI @apache/skywalking-committers especially @arugal as previous owner. @smartboy37597 has tried to fix it, but still fails even in installation as the showcase also lacked maintenance.
@kezhenxu94 Please remove it from the showcase, as we are not capable of maintaining it anymore.
At the main repository, I am going to wait for @smartboy37597 's last try, if still fails in the week, I would like to remove the menu and UI templates directly. The codes don't need to change, as OpenFunction is still based on go2sky only.
BTW, go2sky(not ASF project) is being abandoned as well, this makes me believe the integration can't last long enough.
Use case
No response
Related issues
No response
Are you willing to submit a pull request to implement this on your own?

[ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

The OpenFuncion is going to be removed due to lack of the maintaince.


Release: dtypes fix, distributed noising

Release: dtypes fix, distributed noising
Description

Category:
JIRA issue: MIC-XYZ

Previously reviewed, except for CHANGELOG.
Testing

[x] all tests pass (pytest --runslow)

@albrja Yes this is the PR for the overall release candidate. Maybe I should have left it as a draft.


Support of github secrets

Does the runner support github secrets?
I'm getting some weird error when trying to use my secrets.MYCI_REPO_SSH_KEY secret, see run:
https://github.com/cppfw/utki/runs/3072012329?check_suite_focus=true

Does the runner support github secrets?

Technically yes, but it seems the expression interpreter of act has a bug with new lines in a string literal.
${{format('echo "{0}" > repo_key_rsa && chmod 600 repo_key_rsa
myci-deploy-debian-ssh-freight.sh --key repo_key_rsa --server gagis.hopto.org --owner cppfw --repo {1} --distro {2} --component main ../lib*__*.deb
', secrets.MYCI_REPO_SSH_KEY, matrix.os, matrix.codename)}}

I need to adjust
https://github.com/ChristopherHX/act/blob/44e468defcb3f600c90af16f2e3624bfd72c450d/pkg/runner/expression.go#L21 to include new lines and replace newlines in string literals with \n to make the js interpreter happy.

This is a showstopper for me. Waiting for the fix!

Please check all your issues against this snapshot:
https://github.com/ChristopherHX/github-actions-act-runner/actions/runs/1034189998
This should work now

Unfortunately it still does not work. Though the error now looks a bit different:
https://github.com/cppfw/utki/runs/3078054848?check_suite_focus=true

[ReferenceError: 'PACKAGE_NAME' is not defined ReferenceError: 'PACKAGE_VERSION' is not defined]
in the original yaml those vars are referenced as ${PACKAGE_NAME} i.e. as normal shell vars. Though the runner changes it to ${{PACKAGE_NAME}} for some reason, according to the job log.

I found the error, I didn't know that { needs to be escaped as {{ in the format directive (same for }), github does this automatically
Should now generate a script like:, replacing {{ back to { in format (bug of act)
echo "undefined" > repo_key_rsa && chmod 600 repo_key_rsa
myci-deploy-debian-ssh-freight.sh --key repo_key_rsa --server gagis.hopto.org --owner cppfw --repo undefined --distro undefined --component main ../lib${PACKAGE_NAME}*_${PACKAGE_VERSION}_*.deb

undefined, is shown here because it is from an incomplete workflow
https://github.com/ChristopherHX/github-actions-act-runner/actions/runs/1034574574
Please add the secret ACTIONS_STEP_DEBUG with value true then you will see even more debug logging.

this latest snapshot works!

works in release 0.0.3


Update UG for select and export commands

Pull Request Test Coverage Report for Build 239

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 93.137%

Totals

Change from base Build 238:
0.0%

Covered Lines:
2470

Relevant Lines:
2652

💛  - Coveralls


[Bug] illegal memory access encountered

Checklist

[X] 1. I have searched related issues but cannot get the expected help.
[X] 2. The bug has not been fixed in the latest version.
[X] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
[X] 4. If the issue you raised is not a bug but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
[X] 5. Please use English, otherwise it will be closed.

Describe the bug
bugs:
dlccdefifz69nk44-master-0:32478:34896 [2] NCCL INFO comm 0x55b978e00250 rank 2 nranks 8 cudaDev 2 nvmlDev 2 busId 30 commId 0xc9c72df61c4f59e1 - Init COMPLETE
INFO:     <IP_ADDRESS>:50812 - "POST /generate HTTP/1.1" 200 OK
[15:57:49] The server is fired up and ready to roll!
^@^@^@[15:58:39 TP0] Prefill batch. #new-seq: 1, #new-token: 9, #cached-token: 1, cache hit rate: 5.88%, #running-req: 0, #queue-req: 0
[15:58:51 TP0] Decode batch. #running-req: 1, #token: 43, token usage: 0.00, gen throughput (token/s): 0.53, #queue-req: 0
^@[15:58:58 TP0] Decode batch. #running-req: 1, #token: 83, token usage: 0.00, gen throughput (token/s): 6.20, #queue-req: 0
[15:59:04 TP0] Decode batch. #running-req: 1, #token: 123, token usage: 0.00, gen throughput (token/s): 6.18, #queue-req: 0
[15:59:11 TP0] Decode batch. #running-req: 1, #token: 163, token usage: 0.00, gen throughput (token/s): 5.83, #queue-req: 0
^@[rank6]:[E919 15:59:14.635045572 ProcessGroupNCCL.cpp:1515] [PG 3 Rank 6] Process group watchdog thread terminated with exception: CUDA error: an illegal memory access was encountered
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
Exception raised from c10_cuda_check_implementation at ../c10/cuda/CUDAException.cpp:43 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x96 (0x7f3fe4177f86 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x64 (0x7f3fe4126d10 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so)
frame #2: c10::cuda::c10_cuda_check_implementation(int, char const*, char const*, int, bool) + 0x118 (0x7f4004055f08 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10_cuda.so)
frame #3: c10d::ProcessGroupNCCL::WorkNCCL::finishedGPUExecutionInternal() const + 0x56 (0x7f3f7617f3e6 in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so)
frame #4: c10d::ProcessGroupNCCL::WorkNCCL::isCompleted() + 0xa0 (0x7f3f76184600 in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so)
frame #5: c10d::ProcessGroupNCCL::watchdogHandler() + 0x1da (0x7f3f7618b2ba in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so)
frame #6: c10d::ProcessGroupNCCL::ncclCommWatchdog() + 0x10c (0x7f3f7618d6fc in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so)
frame #7:  + 0xdc253 (0x7f4018529253 in /usr/lib/x86_64-linux-gnu/libstdc++.so.6)
frame #8:  + 0x94ac3 (0x7f40725b8ac3 in /usr/lib/x86_64-linux-gnu/libc.so.6)
frame #9: clone + 0x44 (0x7f4072649bf4 in /usr/lib/x86_64-linux-gnu/libc.so.6)
terminate called after throwing an instance of 'c10::DistBackendError'
[rank3]:[E919 15:59:14.635224142 ProcessGroupNCCL.cpp:1515] [PG 3 Rank 3] Process group watchdog thread terminated with exception: CUDA error: an illegal memory access was encountered
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
Exception raised from c10_cuda_check_implementation at ../c10/cuda/CUDAException.cpp:43 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x96 (0x7f3fe4177f86 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x64 (0x7f3fe4126d10 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so)
frame #2: c10::cuda::c10_cuda_check_implementation(int, char const*, char const*, int, bool) + 0x118 (0x7f4004055f08 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10_cuda.so)
frame #3: c10d::ProcessGroupNCCL::WorkNCCL::finishedGPUExecutionInternal() const + 0x56 (0x7f3f7617f3e6 in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so)
frame #4: c10d::ProcessGroupNCCL::WorkNCCL::isCompleted() + 0xa0 (0x7f3f76184600 in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so)
frame #5: c10d::ProcessGroupNCCL::watchdogHandler() + 0x1da (0x7f3f7618b2ba in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so)
frame #6: c10d::ProcessGroupNCCL::ncclCommWatchdog() + 0x10c (0x7f3f7618d6fc in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so)
frame #7:  + 0xdc253 (0x7f4018529253 in /usr/lib/x86_64-linux-gnu/libstdc++.so.6)
frame #8:  + 0x94ac3 (0x7f40725b8ac3 in /usr/lib/x86_64-linux-gnu/libc.so.6)
frame #9: clone + 0x44 (0x7f4072649bf4 in /usr/lib/x86_64-linux-gnu/libc.so.6)
[rank0]:[E919 15:59:14.635248625 ProcessGroupNCCL.cpp:1515] [PG 3 Rank 0] Process group watchdog thread terminated with exception: CUDA error: an illegal memory access was encountered
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
and cuda graph is enabled , mla enable  then :
[17:39:38 TP3] Load weight begin. avail mem=77.08 GB
[2024-09-19 17:39:43,201] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-09-19 17:39:43,207] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-09-19 17:39:43,274] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-09-19 17:39:43,287] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-09-19 17:39:43,291] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-09-19 17:39:43,314] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-09-19 17:39:43,317] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-09-19 17:39:43,317] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect)
Cache shape torch.Size([163840, 64])
Cache shape torch.Size([163840, 64])
Cache shape torch.Size([163840, 64])
Cache shape torch.Size([163840, 64])
Cache shape torch.Size([163840, 64])
Cache shape torch.Size([163840, 64])
Cache shape torch.Size([163840, 64])
Cache shape torch.Size([163840, 64])
Loading safetensors checkpoint shards:   0% Completed | 0/55 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:   2% Completed | 1/55 [00:06<06:05,  6.77s/it]
Loading safetensors checkpoint shards:   4% Completed | 2/55 [00:11<04:46,  5.40s/it]
Loading safetensors checkpoint shards:   5% Completed | 3/55 [00:15<04:18,  4.97s/it]
Loading safetensors checkpoint shards:   7% Completed | 4/55 [00:20<04:10,  4.91s/it]
Loading safetensors checkpoint shards:   9% Completed | 5/55 [00:25<04:00,  4.82s/it]
Loading safetensors checkpoint shards:  11% Completed | 6/55 [00:29<03:50,  4.71s/it]
Loading safetensors checkpoint shards:  13% Completed | 7/55 [00:33<03:38,  4.56s/it]
Loading safetensors checkpoint shards:  15% Completed | 8/55 [00:38<03:41,  4.71s/it]
Loading safetensors checkpoint shards:  16% Completed | 9/55 [00:43<03:36,  4.71s/it]
Loading safetensors checkpoint shards:  18% Completed | 10/55 [00:47<03:25,  4.57s/it]
Loading safetensors checkpoint shards:  20% Completed | 11/55 [00:52<03:16,  4.47s/it]
Loading safetensors checkpoint shards:  22% Completed | 12/55 [00:56<03:11,  4.46s/it]
Loading safetensors checkpoint shards:  24% Completed | 13/55 [01:01<03:10,  4.53s/it]
Loading safetensors checkpoint shards:  25% Completed | 14/55 [01:05<03:05,  4.52s/it]
Loading safetensors checkpoint shards:  27% Completed | 15/55 [01:10<02:58,  4.47s/it]
Loading safetensors checkpoint shards:  29% Completed | 16/55 [01:14<02:53,  4.44s/it]
Loading safetensors checkpoint shards:  31% Completed | 17/55 [01:19<02:55,  4.61s/it]
Loading safetensors checkpoint shards:  33% Completed | 18/55 [01:23<02:49,  4.57s/it]
Loading safetensors checkpoint shards:  35% Completed | 19/55 [01:28<02:44,  4.57s/it]
Loading safetensors checkpoint shards:  36% Completed | 20/55 [01:33<02:39,  4.56s/it]
Loading safetensors checkpoint shards:  38% Completed | 21/55 [01:37<02:35,  4.56s/it]
Loading safetensors checkpoint shards:  40% Completed | 22/55 [01:41<02:28,  4.50s/it]
Loading safetensors checkpoint shards:  42% Completed | 23/55 [01:46<02:24,  4.50s/it]
Loading safetensors checkpoint shards:  44% Completed | 24/55 [01:51<02:20,  4.52s/it]
Loading safetensors checkpoint shards:  45% Completed | 25/55 [01:55<02:13,  4.46s/it]
Loading safetensors checkpoint shards:  47% Completed | 26/55 [01:59<02:07,  4.41s/it]
Loading safetensors checkpoint shards:  49% Completed | 27/55 [02:03<01:57,  4.20s/it]
Loading safetensors checkpoint shards:  51% Completed | 28/55 [02:07<01:55,  4.29s/it]
Loading safetensors checkpoint shards:  53% Completed | 29/55 [02:11<01:47,  4.13s/it]
Loading safetensors checkpoint shards:  55% Completed | 30/55 [02:15<01:39,  3.98s/it]
Loading safetensors checkpoint shards:  56% Completed | 31/55 [02:18<01:33,  3.91s/it]
Loading safetensors checkpoint shards:  58% Completed | 32/55 [02:22<01:29,  3.87s/it]
Loading safetensors checkpoint shards:  60% Completed | 33/55 [02:26<01:22,  3.75s/it]
Loading safetensors checkpoint shards:  62% Completed | 34/55 [02:29<01:17,  3.69s/it]
Loading safetensors checkpoint shards:  64% Completed | 35/55 [02:33<01:13,  3.67s/it]
Loading safetensors checkpoint shards:  65% Completed | 36/55 [02:37<01:09,  3.65s/it]
Loading safetensors checkpoint shards:  67% Completed | 37/55 [02:40<01:05,  3.62s/it]
Loading safetensors checkpoint shards:  69% Completed | 38/55 [02:43<00:59,  3.50s/it]
Loading safetensors checkpoint shards:  71% Completed | 39/55 [02:47<00:56,  3.52s/it]
Loading safetensors checkpoint shards:  73% Completed | 40/55 [02:50<00:52,  3.50s/it]
Loading safetensors checkpoint shards:  75% Completed | 41/55 [02:54<00:49,  3.51s/it]
Loading safetensors checkpoint shards:  76% Completed | 42/55 [02:57<00:45,  3.52s/it]
Loading safetensors checkpoint shards:  78% Completed | 43/55 [03:01<00:42,  3.54s/it]
Loading safetensors checkpoint shards:  80% Completed | 44/55 [03:04<00:38,  3.50s/it]
Loading safetensors checkpoint shards:  82% Completed | 45/55 [03:08<00:34,  3.47s/it]
Loading safetensors checkpoint shards:  84% Completed | 46/55 [03:11<00:31,  3.46s/it]
Loading safetensors checkpoint shards:  85% Completed | 47/55 [03:15<00:27,  3.48s/it]
Loading safetensors checkpoint shards:  87% Completed | 48/55 [03:18<00:24,  3.52s/it]
Loading safetensors checkpoint shards:  89% Completed | 49/55 [03:22<00:21,  3.54s/it]
Loading safetensors checkpoint shards:  91% Completed | 50/55 [03:25<00:17,  3.53s/it]
Loading safetensors checkpoint shards:  93% Completed | 51/55 [03:29<00:14,  3.51s/it]
Loading safetensors checkpoint shards:  95% Completed | 52/55 [03:32<00:09,  3.32s/it]
Loading safetensors checkpoint shards:  96% Completed | 53/55 [03:35<00:06,  3.18s/it]
^@[17:43:23 TP6] Load weight end. type=DeepseekV2ForCausalLM, dtype=torch.bfloat16, avail mem=20.62 GB
[17:43:23 TP7] Load weight end. type=DeepseekV2ForCausalLM, dtype=torch.bfloat16, avail mem=20.91 GB
Loading safetensors checkpoint shards:  98% Completed | 54/55 [03:38<00:03,  3.20s/it]
[17:43:23 TP4] Load weight end. type=DeepseekV2ForCausalLM, dtype=torch.bfloat16, avail mem=20.62 GB
Loading safetensors checkpoint shards: 100% Completed | 55/55 [03:41<00:00,  3.24s/it]
Loading safetensors checkpoint shards: 100% Completed | 55/55 [03:41<00:00,  4.03s/it]
[17:43:27 TP1] Load weight end. type=DeepseekV2ForCausalLM, dtype=torch.bfloat16, avail mem=20.62 GB
[17:43:27 TP2] Load weight end. type=DeepseekV2ForCausalLM, dtype=torch.bfloat16, avail mem=20.62 GB
[17:43:27 TP0] Load weight end. type=DeepseekV2ForCausalLM, dtype=torch.bfloat16, avail mem=20.91 GB
[17:43:27 TP3] Load weight end. type=DeepseekV2ForCausalLM, dtype=torch.bfloat16, avail mem=20.62 GB
[17:43:28 TP5] Load weight end. type=DeepseekV2ForCausalLM, dtype=torch.bfloat16, avail mem=20.62 GB
[17:43:28 TP1] Memory pool end. avail mem=18.20 GB
[17:43:28 TP5] Memory pool end. avail mem=18.20 GB
[17:43:28 TP4] Memory pool end. avail mem=18.20 GB
[17:43:28 TP6] Memory pool end. avail mem=18.20 GB
[17:43:28 TP2] Memory pool end. avail mem=18.20 GB
[17:43:28 TP3] Memory pool end. avail mem=18.20 GB
[17:43:28 TP0] Memory pool end. avail mem=18.48 GB
[17:43:28 TP7] Memory pool end. avail mem=18.48 GB
[17:43:28 TP4] Capture cuda graph begin. This can take up to several minutes.
[17:43:28 TP1] Capture cuda graph begin. This can take up to several minutes.
[17:43:28 TP3] Capture cuda graph begin. This can take up to several minutes.
[17:43:28 TP5] Capture cuda graph begin. This can take up to several minutes.
[17:43:28 TP2] Capture cuda graph begin. This can take up to several minutes.
[17:43:28 TP6] Capture cuda graph begin. This can take up to several minutes.
[17:43:28 TP0] Capture cuda graph begin. This can take up to several minutes.
[17:43:28 TP7] Capture cuda graph begin. This can take up to several minutes.
[17:43:35 TP3] Exception in run_tp_server:
Traceback (most recent call last):
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/model_executor/cuda_graph_runner.py", line 146, in init
self.capture()
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/model_executor/cuda_graph_runner.py", line 175, in capture
) = self.capture_one_batch_size(bs, forward)
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/model_executor/cuda_graph_runner.py", line 216, in capture_one_batch_size
run_once()
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/model_executor/cuda_graph_runner.py", line 210, in run_once
return forward(input_ids, input_metadata.positions, input_metadata)
File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/models/deepseek_v2.py", line 663, in forward
hidden_states = self.model(input_ids, positions, input_metadata)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/models/deepseek_v2.py", line 632, in forward
hidden_states, residual = layer(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/models/deepseek_v2.py", line 579, in forward
hidden_states = self.self_attn(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/models/deepseek_v2.py", line 474, in forward
attn_output = self.attn(q_input, k_input, v_input, input_metadata)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/layers/radix_attention.py", line 58, in forward
return input_metadata.attn_backend.forward(q, k, v, self, input_metadata)
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/layers/attention_backend.py", line 69, in forward
return self.forward_decode(q, k, v, layer, input_metadata)
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/layers/attention_backend.py", line 466, in forward_decode
self.decode_attention_fwd(
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/layers/triton_attention/decode_attention.py", line 623, in decode_attention_fwd
_decode_grouped_softmax_reducev_fwd(
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/layers/triton_attention/decode_attention.py", line 545, in _decode_grouped_softmax_reducev_fwd
_fwd_grouped_kernel_stage2[grid](
File "/usr/local/lib/python3.10/dist-packages/triton/runtime/jit.py", line 345, in
return lambda *args, **kwargs: self.run(grid=grid, warmup=False, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/triton/runtime/jit.py", line 691, in run
kernel.run(grid_0, grid_1, grid_2, stream, kernel.function, kernel.packed_metadata, launch_metadata,
File "/usr/local/lib/python3.10/dist-packages/triton/backends/nvidia/driver.py", line 365, in call
self.launch(*args, **kwargs)
RuntimeError: Triton Error [CUDA]: an illegal memory access was encountered
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/managers/tp_worker.py", line 959, in run_tp_server
model_server = ModelTpServer(
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/managers/tp_worker.py", line 100, in init
self.model_runner = ModelRunner(
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/model_executor/model_runner.py", line 128, in init
self.init_cuda_graphs()
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/model_executor/model_runner.py", line 468, in init_cuda_graphs
self.cuda_graph_runner = CudaGraphRunner(self)
File "/mnt/data/hectorgao/workspace/sglang/python/sglang/srt/model_executor/cuda_graph_runner.py", line 148, in init
raise Exception(
Exception: Capture cuda graph failed: Triton Error [CUDA]: an illegal memory access was encountered
Possible solutions:

disable cuda graph by --disable-cuda-graph
set --mem-fraction-static to a smaller value
disable torch compile by not using --enable-torch-compile
Open an issue on GitHub https://github.com/sgl-project/sglang/issues/new/choose

Reproduction
http server:
export CUDA_LAUNCH_BLOCKING=1
python -m sglang.launch_server --model-path /mnt/data/models/DeepSeek-V2.5 --tp 8 --mem-fraction-static 0.8 --enable-mla --trust-remote-code --port 30000 --disable-cuda-graph
because cuda-graph need more gpu memory,  so I choose disable,  just inference bigger seq len response,  do not care about the latency
http request:
curl http://localhost:30000/generate
-H "Content-Type: application/json"
-d '{
"text": "please repeat output word ok, do not stop",
"sampling_params": {
"max_new_tokens": 16000,
"temperature": 0.8,
"repetition_penalty": 0.1
}
}'
Environment
env:
sglang vesion: https://github.com/sgl-project/sglang/releases/tag/v0.3.1.post1
GPU: A800
root@dlccdefifz69nk44-master-0:~# nvidia-smi
Thu Sep 19 16:08:29 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.54.03              Driver Version: 535.54.03    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA A800-SXM4-80GB          On  | 00000000:00:01.0 Off |                    0 |
| N/A   28C    P0              70W / 400W |  73618MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA A800-SXM4-80GB          On  | 00000000:00:02.0 Off |                    0 |
| N/A   31C    P0              71W / 400W |  74050MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
|   2  NVIDIA A800-SXM4-80GB          On  | 00000000:00:03.0 Off |                    0 |
| N/A   30C    P0              72W / 400W |  74050MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
|   3  NVIDIA A800-SXM4-80GB          On  | 00000000:00:04.0 Off |                    0 |
| N/A   29C    P0              71W / 400W |  74050MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
|   4  NVIDIA A800-SXM4-80GB          On  | 00000000:00:05.0 Off |                    0 |
| N/A   28C    P0              70W / 400W |  74050MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
|   5  NVIDIA A800-SXM4-80GB          On  | 00000000:00:06.0 Off |                    0 |
| N/A   30C    P0              70W / 400W |  74050MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
|   6  NVIDIA A800-SXM4-80GB          On  | 00000000:00:07.0 Off |                    0 |
| N/A   30C    P0              70W / 400W |  74050MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
|   7  NVIDIA A800-SXM4-80GB          On  | 00000000:00:08.0 Off |                    0 |
| N/A   27C    P0              69W / 400W |  73618MiB / 81920MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
+---------------------------------------------------------------------------------------+
os:  Linux dlccdefifz69nk44-master-0 4.19.91-014.15-kangaroo.alios7.x86_64 #1 SMP Wed Jul 10 15:22:10 CST 2024 x86_64 x86_64 x86_64 GNU/Linux

same, do you solve it?

Setting the BLOCK_H to 32 on line 536 might be useful. https://github.com/sgl-project/sglang/blob/main/python/sglang/srt/layers/triton_attention/decode_attention.py

Thanks for reporting this. It has been fixed by https://github.com/sgl-project/sglang/commit/a68cb201dd5f4ae6155b324d22054bbb0de15fba.
We also released a new version for this fix. Can you try v0.3.1.post3?


unify 32-bit encodings for load/store/amo to use RV64 versions

fixes https://github.com/riscv/riscv-cheri/issues/372
due to the conflict with Zilsd meaning we lost access to LC/SC in RV32, it seems wise to move all to the RV64 encodings which have no current conflicts.
all is subject to change on ARC review.

I checked with Jessica on slack and she's ok with this


smart rocket mating pool becomes empty

Hi,
when I was tweaking the smart rocket code, I noticed this line is problematic:
https://github.com/CodingTrain/Rainbow-Code/blob/master/CodingChallenges/CC_29_SmartRockets/rocket.js#L34
I was

adding gravity to rockets by this.applyForce(createVector(0, 1));
making canvas height taller than width

then but then all the rockets fell on the ground, all the fitness values became negative and population.matingpool became empty, causing strange error (Cannot read property 'dna' of undefined).
I think mine is a specific case, but the line above should be
    this.fitness = constrain(map(d, 0, width, width, 0), 0.01, width);

to be a bit safer.

Hi Micuat!
The algorithm can definitely be improved and changed for actual use, for the website however we tend to stick to the examples from the videos! Your point is valid for sure though!
Sorry for the late reply, we didn't really use the issues feature on this repository recently.
P.S. you should join our community discord for questions and remarks you might have in the future!


Enhancement: Allow watch from "first available index" vs. new updates or updates from a valid start index

Currently watch requests only allow watchIndex=0 (new updates) or watchIndex >= start index (start from watchIndex). I would like to be able to get all available updates without having to specify a valid watchIndex.
Something like watchIndex = -1 means "start from first available" or an extra flag to allow watchIndex < startIndex (again, it would start from first available).
With the current implementation I need to parse the error message ("the requested history has been cleared [%v/%v]") and resubmit the request with the current startIndex, but if more updates are published while doing this I may never get to fetch any valid value.
I am happy to submit a pull request if we can agree on the interface (watchIndex < 0 or new flag)

I am working to improve watch features. This PR https://github.com/coreos/etcd/pull/4043 might help support this.

#4495 can do this in v3.

There's no longer a need to parse an error message; the earliest available revision is given as a WatchResponse in case the revision is too old. To get the earliest revision, Watch on rev=1, and check for a CompactRevision on the first message.
The missed updates problem shouldn't be an issue now that there's better handling of revision history.


151/152 Fix confetti and make box conditionally render

Summary
Closes #151 and #152 and #207

Set timeout of 2.5 seconds for confetti box to render
Redid states to make the color of ShelfAddresses change to green only when number is 15 and red otherwise
Fixed rendering error by deleting Dropdown component

Screenshots
Definitely one to test yourself. Couldn't figure out how to easily record a screen recording.

@Dankco can the confetti be made to fall past the view hight of the screen? it still collects at the bottom

This is unfortunately a bug of the library so far as I can tell... I think simply making the confetti disappear after a bit is the best solution for now. What is interesting is that if you scroll down after the confetti comes out, the confetti all drops down and disappears out of site- my guess is that it has to do with where the bottom of the page is.

Nevermind, looks like there is something here. Will fix.