About the resolution of the target mask when computing mask loss

Hello, thank you for your great work! I have a question when reading the paper and codes.
I noticed that when you computing the mask loss, the target mask is 0.25x(which means the upsample factor in decoder is 2).
I wonder that is there any perfomance difference when using different target mask resolution (such as 1/8x, 1/4x, 1/2x, 1x)?
or is 0.25x is a common choice in the instance segmentation task?

thanks for your sharing~


Combine common code from vulkan capture manager and vulkan state writer

This is needed for #1812

CI gfxreconstruct build queued with queue ID 289791.

CI gfxreconstruct build # 5221 running.

CI gfxreconstruct build queued with queue ID 289807.

CI gfxreconstruct build # 5222 running.

CI gfxreconstruct build # 5222 passed.

CI gfxreconstruct build queued with queue ID 289895.

CI gfxreconstruct build # 5224 running.

CI gfxreconstruct build queued with queue ID 292515.

CI gfxreconstruct build # 5259 running.

CI gfxreconstruct build # 5259 passed.


Add HowTo100M preprocessing and readme (and sneak in pre-commit)

Describes steps to download HowTo100M and convert it into video2dataset format.
A few decisions:

I liked the HD-Vila interface for starting from the zip file and out_dir and then spitting out the results there, so I followed that pattern here.
I did not cut the clips because that makes those videos all just a few seconds long. This follows the HD-Vila pattern as well.
I also didn't include certain metadata like video titles and task categories. I can include if that's projected to be useful but since we're just pretraining I figured it didn't matter too much?

(For now, diffing against anton/mit-and-vila so you can clearly see the changes; once that's merged I'll rebase on main and we can diff there)

Great to have the pre-commit hook! I didn't format the code I added, do you just want to run black here quickly and include it in this PR?


Centro de Ensino Superior Strong

@douglas1dev First stage of verification passed, official domain is esags.edu.br as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@douglas1dev Pull request merged. Thank you.

the domain is not yet available to create a valid educational account, how long does it take to validate on the site?


OPDS2 feed lacks publication metadata

https://readium2.now.sh/opds2/publications.json

Alternative link:
https://readium2.herokuapp.com/opds2/publications.json

Example of publication-level metadata:
https://feedbooks.github.io/opds-test-catalog/opds-2/home.json

CC @HadrienGardeur

Yep, it's not implemented yet:
https://github.com/edrlab/r2-streamer-js/blob/48b2ab997356f3fd82ebd0452fcbd16a743353b0/src/http/opds2-create-cli.ts#L102-L124

Bug corrected. I am about to push the fix :)

Fixed via: https://github.com/edrlab/r2-streamer-js/commit/c834f152651d51a6de903975d99f06e4eabfa5d2

See: https://readium2.now.sh/opds2/publications.json


Information about the pre-loaded wordsets (Dataloaders)

Hi Pablo,
Greetings!
1). I was trying to get results on multi-lingual fastText embeddings through the query using WEAT_wordsets() and RND_wordsets(). I am not sure whether I can use the same set of query for multi-lingual embeddings. However, I am getting some result for this.
WEAT_wordsets = load_weat()
RND_wordsets = fetch_eds()
glove_embedding = WordEmbeddings('de')
glove_keyed_vectors = glove_embedding.precomputed_word_embeddings
glove_100 = WordEmbeddingModel(glove_keyed_vectors, 'de')
result = weat.run_query(gender_3, glove_100, lost_vocabulary_threshold=0.3, warn_not_found_words=True, calculate_p_value=True, p_value_iterations=10000)
print(result)
RESULT:
{'query_name': 'Male terms and Female terms wrt Science and Arts', 'result': 0.50751936, 'weat': 0.50751936, 'effect_size': 0.9096829, 'p_value': 0.0034996500349965005}
But I am not sure whether it is correct?  Can you please guide whether these wordset queries can be used for multi-lingual embeddings and if not how can I proceed?
2). Can you please share any links where I can find information about the pre loaded wordsets ( load_weat() and fetch_eds() )?
For now, I just know:
fetch_eds(): Fetches the word sets used in the experiments of the work Word Embeddings *Quantify 100 Years Of Gender And Ethnic Stereotypes.
load_weat(): Loads the word sets used in the paper Semantics Derived Automatically From Language Corpora Contain Human-Like Biases.
I couldn't find any links on what data are they extracted from or what sets does it have and further information.
Furthermore,
For example: In this query:
gender_1 = Query(
[RND_wordsets["male_terms"], RND_wordsets["female_terms"]],
[WEAT_wordsets["career"], WEAT_wordsets["family"]],
["Male terms", "Female terms"],
["Career", "Family"],
(Correct me if I'm wrong) You are taking male_terms and female _terms as target set and career and family as attribute sets from these dataloaders. What are the other sets (like male_terms, adjectives_intelligence, female_terms etc.) which are there in this dataloaders? You have described a few in your queries, are there only those or are there few others which can be considered?
Hope to hear from you soon.
Thanks,
Harsh

Hi @harshvr15

The difference is almost 9 times for the same model, what can be the possible reasons for these contradictions or how can we explain this, as I can see some other contradictions as well?

The main difference between WEAT and WEAT-ES is that WEAT-ES normalizes the results obtained using the average and standard deviation of the calculated statistics. This makes the WEAT-ES calculated scores independent of the number of words that each target and attribute possesses, which in practical terms allows obtaining much more robust results than using WEAT alone. This difference may explain the orders of magnitude difference between the different tests.
I have just updated the documentation with a better explanation of this: https://wefe.readthedocs.io/en/latest/about.html#weat

Furthermore, I'm unable to interpret this for WEAT-ES : Since the ideal is also 0, we define ≤FWEAT-ES just as ≤FWEAT , can you please elaborate? Also, for RNSB.

On the other hand, the inequalities remain the same: the lower the absolute value of the score, the lower the bias detected.
In the case of RNSB, I think it is better to understand how the metric works :
Originally this metric is based on measuring bias through word sentiment. The main idea is that if there were no bias, all words should be equally negative. Therefore, its procedure is based on calculating how negative the words in the target sets are.
For this purpose, RNSB trains a classifier that assigns a probability to each word of belonging to the negative class (in the original work the classifier is trained using Bing Liu’s lexicon of positive and negative words). Then, it generates a probability distribution with the probabilities calculated in the previous step and compares them to the uniform distribution (case where all words have the same probability of being negative) using KL divergence. When the negative probability distribution is equal to the uniform one (i.e., there is no bias), the KL divergence is 0.
I also updated the documentation of this metric with the idea of making it a bit more understandable:
https://wefe.readthedocs.io/en/latest/about.html#rnsb
Hope you find it useful 😊
Pablo.


add swagger support for REST

take meta-data we have. expose it to generate a JSON swagger document that can be imported into swagger so that we can generate clients for our endpoints.

You can see progress here.
https://github.com/advantageous/qbit/wiki/Tech-Notes-Swagger-integration
There is one more issue to resolve and then we can start testing with swagger code gen.


build: update/cleanup tslint rules & fix errors

Many of the changes (mainly disable comment adjustments) are due to the use of the no-non-null-assertion builtin rule instead of the custom non-null-operator.
The following rules were added:

arrow-return-shorthand
no-duplicate-imports
no-angle-bracket-type-assertion
no-conditional-assignment
no-non-null-assertion
no-unnecessary-qualifier
no-string-throw
encoding

@clydin I don't see the fix for #11842 in here

that's because it's not. 😄
This PR focuses on updating the TS rules.  The JS linting approach will require further discussion with the team.


fix(es/modules): Preserve extensions

Description:
Related issue:

Closes https://github.com/swc-project/swc/issues/6209.

Hey @kdy1! I just had to downgrade because of this change, for the exact reason I think you mentioned in your comment 😅  I have a NestJS project where none of my imports use extensions (as per NestJS convention) – however, now my TypeScript compile from this:
import foo from './bar.module';

to
import foo from './bar.module.ts';

even though SWC is generating a directory full of JavaScript files. My code crashes because it can't find bar.module.ts (because it's compiled to bar.module.js). Even changing my code to import from bar.module.js (the weird ESM convention for TS), SWC still generates the import with the .ts file extension lol.
Is there any workaround for this? Or am I stuck on 1.3.14 for now?

Use .js for omports instead.  swc is not a fixer. Your code is wrong. swc should not fix it.

You can fix your code. It's not a something to workaround. Your code is simply wrong.

As I mentioned, using .js imports get rewritten back to *.ts anyway.
I spent some time looking into this, and realized that as long as you have a paths option in .swcrc, it will break imports.
I set up this example repo.
The project is ESM, and with a main.ts file that imports a TypeScript file (import.ts) using a .js extension. There is a bogus paths entry in .swcrc (doesn't matter if it's valid or not – I checked). Run npm install and then npm run build. It'll compile to a dist directory, but the code will be un-runnable because the .js import was rewritten back to a .ts import.
This is a legitimate problem, regardless of how you're importing your modules.

My bad, I misread your comment, sorry. Can you file an issue?

Yep 👍🏻


cannot use command: flutter run --release or flutter build ios --release in mac after latest update 0.11.3

After upgrade flutter to version 0.11.3, the command:
flutter run --release  OR flutter build ios --release stop working in MAC OS
Building dart code start working, after finish build nothing happens and terminal hanging.
when i back to old version 0.10.2, the build release working fine.
Any one face the same issue after flutter update?

Having the same issue
stoped here
Starting Xcode build...
 ├─Building Dart code...

Having the same issue
stoped here
Starting Xcode build...
 ├─Building Dart code...

yeah that correct, i hope get fixed soon

Please add the output of flutter doctor -v.

[✓] Flutter (Channel beta, v0.11.3, on Mac OS X 10.14 18A391, locale en-SA)
    • Flutter version 0.11.3 at /Users/saleh/flutter
    • Framework revision 72bf075e8d (4 days ago), 2018-11-09 20:36:17 -0800
    • Engine revision 5646e86a6f
    • Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/saleh/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

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

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Community Edition (version 2018.2.6)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 30.0.2
    • Dart plugin version 182.5124

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

[✓] Connected device (1 available)
    • iPhone 5s • 9E74DD74-F5DC-40FB-8561-3F9AA08A643B     • ios • iOS 12.1 (simulator)

• No issues found!

Post mine too, I am having the same issue
[✓] Flutter (Channel beta, v0.11.3, on Mac OS X 10.14.1 18B75, locale it-IT)
    • Flutter version 0.11.3 at /Users/mac/flutter
    • Framework revision 72bf075e8d (4 days ago), 2018-11-09 20:36:17 -0800
    • Engine revision 5646e86a6f
    • Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/mac/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

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

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 30.0.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] IntelliJ IDEA Ultimate Edition (version 2018.2.5)
    • IntelliJ at /Users/mac/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] VS Code (version 1.28.2)
    • 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 3 categories.

Having the issue on v0.11.5-pre.37 as well.
[✓] Flutter (Channel master, v0.11.5-pre.37, on Mac OS X 10.14.2 18C38b, locale
    en-US)
    • Flutter version 0.11.5-pre.37 at /Users/ryanmorris/development/flutter
    • Framework revision 1561815e6c (35 minutes ago), 2018-11-13 16:02:34 -0800
    • Engine revision 6a132f80f4
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/ryanmorris/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

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

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 28.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1024-b01)

[!] Connected device
    ! No devices available

See #24139
The work around is to pipe the output to a file

same problem here!

Should be fixed in master https://github.com/flutter/flutter/issues/24139#issuecomment-438754303


demo page not opening

The domain is under review and is now stopped. May still have to wait a few days.


RDK-38127 - Add Unit Test for Warehouse plugin

Added unit test cases for Warehouse plugin
Removed unused code from Warehouse.cpp
Added mocks required for helpers/frontpanel.cpp

please make sure each test case is simple to read/understand and addresses only one feature

Can you be more specific on which test cases are you referring?

@srikanth-vv
e.g.
https://github.com/rdkcentral/rdkservices/blob/41c212714c7090bef13024c1fd6be7f7b6065d47/Tests/tests/test_HdmiInput.cpp#L339-L348
is simple to read/understand and addresses only one feature
e.g.
TEST_F(WarehouseResetDeviceTest, resetDevicePwrMgr2RFCEnabled)
{
    plugin->m_isPwrMgr2RFCEnabled = true;
    unsigned int cnt = 0;
    //These are the expected commands in this order, based on test cases in RunTests()
    std::string expectedCommands[] = {
        "sh /lib/rdk/deviceReset.sh coldfactory",
        "echo 0 > /opt/.rebootFlag",
        "echo `/bin/timestamp` ------------- Rebooting due to Cold Factory Reset process --------------- >> /opt/logs/receiver.log",
        "sleep 5; /rebootNow.sh -s PowerMgr_coldFactoryReset -o 'Rebooting the box due to Cold Factory Reset process ...'",
        "sh /lib/rdk/deviceReset.sh factory",
        "echo 0 > /opt/.rebootFlag",
        "echo `/bin/timestamp` -------------Rebooting due to Factory Reset process-------------- >> /opt/logs/receiver.log",
        "echo 0 > /opt/.rebootFlag",
        "echo `/bin/timestamp` ------------- Rebooting due to User Factory Reset process--------------- >> /opt/logs/receiver.log",
        "sh /lib/rdk/deviceReset.sh userfactory",
        "echo 0 > /opt/.rebootFlag",
        "touch /tmp/.warehouse-clear",
        "echo `/bin/timestamp` ------------- Warehouse Clear  --------------- >> /opt/logs/receiver.log",
        "sh /lib/rdk/deviceReset.sh WAREHOUSE_CLEAR",
        "touch /tmp/.warehouse-clear",
        "sh /lib/rdk/deviceReset.sh WAREHOUSE_CLEAR --suppressReboot",
        "echo 0 > /opt/.rebootFlag",
        "touch /tmp/.warehouse-reset",
        "echo `/bin/timestamp` ------------- Rebooting due to Warehouse Reset process--------------- >> /opt/logs/receiver.log",
        "sh /lib/rdk/deviceReset.sh warehouse",
        "touch /tmp/.warehouse-reset",
        "sh /lib/rdk/deviceReset.sh warehouse --suppressReboot &",
        "touch /tmp/.warehouse-reset",
        "sh /lib/rdk/deviceReset.sh warehouse --suppressReboot &"
    };

    EXPECT_CALL(wrapsImplMock, system(::testing::_))
    .Times(::testing::AnyNumber())
    .WillRepeatedly(::testing::Invoke(
        [&](const char* command) {
            std::cout << "command = " << command << "\n";
            EXPECT_EQ(string(command), expectedCommands[cnt++]);
            return (bRespondWithError ? Core::ERROR_GENERAL : Core::ERROR_NONE);
        }));
    RunTests();
    plugin->m_isPwrMgr2RFCEnabled = false;
}

is not. a test case that calls other tests RunTests()?
please split such into small and readable test cases
it's hard to understand what if-elses and #ifndef-s do, what's their business logic, it's not trivial and not needed in the tests

Got it. I will split it up in the next commit.
Thanks.

please bring the changes into sprint/23Q1


AddThis icons not showing up

I uncommented the addthis section and filled in my public ID, but nothing seems to have changed. I don't see social media icons anywhere.

Fixed, hard to explain the issue but it wasn't related to the theme at all


AutoCrafter Crashing the server/game

The autoCrafter is crashing the game when trying to craft with infusion stones from Magical Crops.
The infusion stone dont get used when crafting.
When putting in the infusion stone, or adding power to a autocrafter with an infusion stone in, the game hangs, you can move, but the world is frozen. (cant open chest etc.)
On the server it did the same, but then when trying to log on after, you got a time out. Ther server seemed to run fine, you just coulnt connect.
Im running
EnderIO v <IP_ADDRESS>1
forge <IP_ADDRESS>2
Magical Crops:Core 4.0.0_public Beta_5

duplicate of #2552


Remove Alchemy service for Natural language understanding service

@germanattanasio can you review this please

@germanattanasio  Travis still fails, seems to be because it needs .env for credentials, only just started working on this app, what do you think?

@germanattanasio Please review

@stevenpkg sorry that I got that late to this PR. Seems like someone already made the update!


Remove unused dependency IDataProtectionProvider from JwtBearerHandler class

Hi.
JwtBearerHandler class constructor has unused dependency from IDataProtectionProvider interface
https://github.com/aspnet/Security/blob/dev/src/Microsoft.AspNetCore.Authentication.JwtBearer/JwtBearerHandler.cs#L25
Please remove this dependency from constructor.

Why do you ask?
Changing/Removing API is breaking and can only be done in major versions.

It would be a breaking change to do this, but we will consider it for 3.0.0.


Error in TIMIT height conversion

It seems that due to missing " in the orginal TIMIT speaker info file, this repository contains error in height conversion.
Speaker PAM1 is 5'11 which is 180.34, not 154.94. Unfortunately, this speaker is part of a test set, which invalidates the presented results. On the other hand, the real result will be probably better :)

Thanks for catching it @stachu86, Will update it asap.


Fix linking when using both relink and relative

Prior to this patch, the following config led to incorrect behavior:
- link:
    ~/.folder/file:
      path: file
      create: true
      relative: true
      relink: true

Prior to the change, running the config the first time would result in
expected behavior. However, running the config for the second time would
result in deletion and re-creation of the link (even when the link is
correct).
This patch improves the interaction of relink and relative, taking
relative paths into account when checking the validity of existing links
in the _delete() method.
This fixes #85.

This patch is slightly broken in its current state (it's still failing tests). I'll try to work more on it soon.
Also, a new unit test should probably be added for this.

What... GitHub closed this pull request cause I reset the develop branch back to master and made a separate branch for this. Oh well, I'll open a new PR when I have a fixed commit.


Microsoft Azure Mobile authentication with Google provider SDK in Android

I am currently testing Microsoft Azure and the App Service/Mobile Apps feature using a native Android app and C# on the back end.
I started with the Getting Started application (ToDo) as the base app and now I am trying to enable Authentication using the https://azure.microsoft.com/en-us/documentation/articles/app-service-authentication-overview/ page and Google as the provider.
So far I have

created a Google project with a OAuth Web client
the authorized redirect uri set there is: https://.azurewebsites.net/.auth/login/google/callback
in the Azure portal and the App Service instance I have enabled Authorization/Authentication
the "Action to take when request is not authenticated" option is set to "Allow Request"
For the Google Provider I have set the Client Id and Client Secret

In the Android app I am using the GoogleApiClient class to let the user select a Google Account. Also I get the ID token and the Server Auth Code
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
            .requestEmail()
            .requestIdToken(getString(R.string.server_client_id))
            .requestServerAuthCode(getString(R.string.server_client_id))
            .build();
mScopes = gso.getScopeArray();

mGoogleApiClient = new GoogleApiClient.Builder(this)
            .enableAutoManage(this, this)
            .addApi(Auth.GOOGLE_SIGN_IN_API, gso)
            .build();

Once the user picks up an account I retrieve the token and code and then I ask for an access token using the GoogleAuthUtil class. After I get the access_token I try to exchange it with an App Service token (authenticate2 method)
private void handleSignInResult(GoogleSignInResult result) {
        Log.d("", "handleSignInResult: " + result.isSuccess());

        if(result.isSuccess()) {
            final GoogleSignInAccount account = result.getSignInAccount();

            final String idToken = account.getIdToken();
            String serverAuthCode = account.getServerAuthCode();

            mSignInButton.setVisibility(View.GONE);
            mGoogleUserText.setText(account.getDisplayName());
            mGoogleUserText.setVisibility(View.VISIBLE);

            SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
            prefs.edit().putString("idToken", idToken).commit();
            prefs.edit().putString("serverAuthCode", serverAuthCode).commit();

            new AsyncTask<Void, Void, String>() {

                @Override
                protected String doInBackground(Void... params) {
                    try {

                        StringBuilder scopesBuilder = new StringBuilder("oauth2:");
                        for(Scope scope : mScopes) {
                            scopesBuilder//.append("https://www.googleapis.com/auth/")
                                    .append(scope.toString())
                                    .append(" ");
                        }

                        String token = GoogleAuthUtil.getToken(ToDoActivity.this,
                                account.getEmail(), scopesBuilder.toString());

                        return token;
                    } catch (IOException | GoogleAuthException e) {
                        e.printStackTrace();
                    }
                    return null;
                }

                @Override
                protected void onPostExecute(String result) {
                    SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ToDoActivity.this);
                    prefs.edit().putString("accessToken", result).apply();

                    authenticate2();
                }
            }.execute();
        } else {
            mSignInButton.setVisibility(View.VISIBLE);
            mGoogleUserText.setVisibility(View.GONE);
        }
    }

    private void authenticate2() {
        SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);

        String idToken = prefs.getString("idToken", null);
        String serverAuthCode = prefs.getString("serverAuthCode", null);
        String accessToken = prefs.getString("accessToken", null);

        JsonObject json = new JsonObject();
        json.addProperty("access_token", accessToken);
        json.addProperty("id_token", idToken);
        json.addProperty("authorization_code", serverAuthCode);

       ListenableFuture<MobileServiceUser> loginFuture =
                mClient.login(MobileServiceAuthenticationProvider.Google, json);

        Futures.addCallback(loginFuture, new FutureCallback<MobileServiceUser>() {
            @Override
            public void onSuccess(MobileServiceUser result) {
                createTable();
            }

            @Override
            public void onFailure(Throwable t) {
                Log.e(TAG, t.getMessage(), t);
            }
        });
    }

So I am using the MobileServiceClient.login() method to send back to the server the access_token of the user in order to get back an Azure session.
Nevertheless, this call fails and I get back a MobileServiceException:
com.microsoft.windowsazure.mobileservices.MobileServiceException: You do not have permission to view this directory or page.
Any ideas what am I missing here?
Thanks

Well this is more than embarassing :-)
I first tried to "manually" verify the id_token using the Google tokeninfo endpoint:
https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=<token_info>
but I was getting a generic error that didn't give a lot of info.
Then I used the Google API Java client library and created a small test to verify my token (more info here: https://developers.google.com/identity/sign-in/android/backend-auth)
That test was failing as well and I realized that the reason for that was the expiring time of my token which was smaller than the current time. And this was happening because my emulator time was not correct!
When I set the "correct" timezone everything worked as expected.
Sorry for the post guys. You can use the code here as a template and don't forget to check your emulator time :-)


Rendering polyline takes lot of time -- waits until workers are downloaded

Iam using the latest cesium code, while trying to render a polyline it requests the server for workers and wait until it gets loaded to render the line. How can i solve/fix the issue?

Hello @ajinra020307, Cesium renders geometry like polylines in workers so the calculations don't tie up the main thread and stall your application.  I'm not sure why this would be running slowly, but feel free to open an issue on our community forum with more detail about your appliaction: https://community.cesium.com/

Hello @ajinra020307, Cesium renders geometry like polylines in workers so the calculations don't tie up the main thread and stall your application.  I'm not sure why this would be running slowly, but feel free to open an issue on our community forum with more detail about your appliaction: https://community.cesium.com/


Cross-compilation not working using docker

Hover doctor
$ hover doctor
hover: Hover version v0.44.0 running on darwin
hover: Sharing flutter version
Flutter 1.23.0-18.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 198df796aa (6 days ago) • 2020-10-15 12:04:33 -0700
Engine • revision 1d12d82d9c
Tools • Dart 2.11.0 (build 2.11.0-213.1.beta)
hover: Flutter engine commit: https://github.com/flutter/engine/commit/1d12d82d9cb54876f58044aa52198d53ec841c3d
hover: Finding out the C compiler version
Apple clang version 12.0.0 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin20.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
hover: Sharing the content of go.mod
module apptest/go

go 1.15

require (
        github.com/JanezStupar/flutter_systray/go v0.3.1
        github.com/go-flutter-desktop/go-flutter v0.42.0
        github.com/pkg/errors v0.9.1
)
hover: Sharing the content of hover.yaml
application-name: ""
executable-name: ""
package-name: ""
license: ""
target: lib/main.dart
branch: ""
cache-path: ""
opengl: ""
engine-version: ""
hover: Sharing the content of go/cmd
go/cmd/main.go  go/cmd/options.go

Error output
I could be wrong but I think that hover supports cross-compilation using docker?
$ hover build windows-msi --docker
hover: AOT builds currently only work on their host OS

We recently switched to AOT builds which are currently only possible to build on the host OS. It is possible using wine/darling, but not yet. You need to add --debug to get it working like previously. Then you get the same as before

@jld3103 doesn't --debug also add the terminal window with outputs?

I'm not using windows, but I remember that there was something like that.

Ok just looked at the code. This will be a small change

I will also add a message that explains that users should use jit-release for cross-compilation builds.

I find the terms acceptable!
I love the docker build feature. And the performance is good enough. Of course the AOT with docker builds will be very dank when it lands, but you have just alleviated my worst fears ATM.
So, cheers!


configuration.md: clarify CLI -> config options

Clarify how to rename CLI options to be able to set them in the config file. I have just spent an hour trying to find out why whitelist_domain="..." does not work :-)

My pleasure. Thank you for your kind words!
On Fri, 13 Mar 2020, 21:21 Joel Speed<EMAIL_ADDRESS>wrote:

Merged #442 https://github.com/pusher/oauth2_proxy/pull/442 into master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pusher/oauth2_proxy/pull/442#event-3128077509, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEYSPQXTBZPA56CPRZLZBTRHKIUTANCNFSM4LGH223A
.


[BUG] LOCAL_MODEL not set in the .env file.

Description
Prologue:
Welcome to my life, where online installations seemed just too easy—so by my nature, I decided to go offline to make things more interesting. It’s like choosing to run a marathon (20min) instead of a leisurely stroll (10min). After tripping over a few too many issues, I found myself here on GitHub, seeking help.
LOCAL_MODEL not set in the .env file.

Launching Kotaemon in your browser, please wait...

[nltk_data] Downloading package punkt_tab to /home/stumblestone/Downlo
[nltk_data]     ads/kotaemon-
[nltk_data]     0.9.1/install_dir/env/lib/python3.10/site-
[nltk_data]     packages/llama_index/core/_static/nltk_cache...
[nltk_data]   Package punkt_tab is already up-to-date!
run_linux.sh: line 172:  5528 Illegal instruction     PDFJS_PREBUILT_DIR="$pdfjs_prebuilt_dir" python $(pwd)/app.py
Will exit now...
┌──(Nux㉿kali)-[~/Downloads/kotaemon-0.9.1]
└─$ cd install_dir
┌──(Nux㉿kali)-[~/Downloads/kotaemon-0.9.1/install_dir]
└─$ ls
conda  env
┌──(Nux㉿kali)-[~/Downloads/kotaemon-0.9.1/install_dir]
└─$ cd env/lib/python3.1/site-packages/llama_index/core/_static/nltk_cache
┌──(Nux㉿kali-[~/…/llama_index/core/_static/nltk_cache]
└─$ ls
corpora  tokenizers
╱╱▏┈┈╱╱╱╱▏╱╱▏
▇╱▏┈┈▇▇▇╱▏▇╱▏
▇╱▏▁┈▇╱▇╱▏▇╱▏▁
▇╱╱╱▏▇╱▇╱▏▇╱╱╱
▇▇▇╱┈▇▇▇╱┈▇▇▇╱
Dunno what to do? or what i am doing?
Reproduction steps
1. Go to '~/Downloads/kotaemon-0.9.1/scripts'
2. Ran this script '$ bash run_linux.sh'
3. See error 'LOCAL_MODEL not set in the `.env` file.'

Screenshots
![DESCRIPTION](LINK.png)

Logs
No response
Browsers
No response
OS
Linux
Additional information
I had encountered an small issue before this .env issue as well which i easily resolved, if wanna know what it was read this maybe you will get to know what i missed,
it was problem with Downloading and unzipping PDF.js
Here is log of it...
Downloading https://github.com/mozilla/pdf.js/releases/download/v4.0.379/pdfjs-4.0.379-dist.zip to /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:--  0:00:09 --:--:--     0curl: (6) Could not resolve host: github.com
Unzipping /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip to /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist
unzip:  cannot find or open /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip, /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip.zip or /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip.ZIP.
rm: cannot remove '/home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip': No such file or directory
Download and unzip completed successfully
so what i diid i downloade manually, extracted and pasted it in this /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/
and voila prbl solved, after running again  bash run_linux.sh

Setting up Miniconda

Miniconda is installed at /home/stumblestone/Downloads/kotaemon-0.9.1/install_dir/conda
Conda version:
conda 24.9.2

Creating conda environment

Conda environment exists at /home/stumblestone/Downloads/kotaemon-0.9.1/install_dir/env
Activate conda environment at /home/stumblestone/Downloads/kotaemon-0.9.1/install_dir/env

Installing requirements

Requirements are already installed

Downloading and unzipping PDF.js

Destination directory /home/stumblestone/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist already exists. Skipping download.

Setting up a local model

LOCAL_MODEL not set in the .env file.

Launching Kotaemon in your browser, please wait...

[nltk_data] Downloading package punkt_tab to /home/stumblestone/Downlo
[nltk_data]     ads/kotaemon-
[nltk_data]     0.9.1/install_dir/env/lib/python3.10/site-
[nltk_data]     packages/llama_index/core/_static/nltk_cache...
[nltk_data]   Package punkt_tab is already up-to-date!
run_linux.sh: line 172:  5528 Illegal instruction     PDFJS_PREBUILT_DIR="$pdfjs_prebuilt_dir" python $(pwd)/app.py
Will exit now...

i think newbies like me shouldn't forget to read this https://cinnamon.github.io/kotaemon/usage/


Unable to use MethodView as a Metaclass base

According to Python docs

If the metaclass has a __prepare__ attribute, it is called as namespace = metaclass.__prepare__(name, bases, **kwds) (where the additional keyword arguments, if any, come from the class definition)

Once the class namespace has been populated by executing the class body, the class object is created by calling metaclass(name, bases, namespace, **kwds) (the additional keywords passed here are the same as those passed to __prepare__).

MethodViewType (and therefore MethodView) lacks this **kwds
https://github.com/pallets/flask/blob/9486b6cf57bd6a8a261f67091aca8ca78eeec1e3/src/flask/views.py#L106-L111
So the the three argument form of type won't work when supplied with **kwargs if MethodView is a base.
from flask.views import View, MethodView

class PatchedMethodViewType(type):
    def __init__(cls, name, bases, d, **kwargs):
        super().__init__(name, bases, d)

class PatchedMethodView(View, metaclass=PatchedMethodViewType):
    def dispatch_request(self, *args, **kwargs):
        pass

class MyMethodView(MethodView):
    @classmethod
    def __init_subclass__(cls, author=None):
        cls.author = author

    def get(self):
        return 1

class MyPatchedMethodView(PatchedMethodView):
    @classmethod
    def __init_subclass__(cls, author=None):
        cls.author = author

    def get(self):
        return 1

type('MetaMethodView', (MyMethodView,), {})
# __main__.MetaMethodView

type('MetaMethodView', (MyMethodView,), {}, author='bob')
# TypeError: __init__() got an unexpected keyword argument 'author'

type('MetaMethodView', (MyPatchedMethodView,), {}, author='bob')
# __main__.MetaMethodView

$ python --version
Python 3.8.12
$ pip freeze | grep Flask=
Flask==1.1.4

I guess we can fix this, but this is really not the intended way to pass arguments to a View class. That's what the constructor is for, not the metaclass (which is only specific to MethodView anyway, not all View types).

@davidism Is there a better way to programmatically create views? Here's my use case:
RESOURCES = {
    "xero": {
        "Projects": {
            "fields": ["projectId", "name", "status"],
            "id_field": "projectId",
            "subkey": "items",
            "methods": ["GET", "POST"],
        },
        "Users": {
            "resource": "projectsusers",
            "fields": ["userId", "name"],
            "id_field": "userId",
            "subkey": "items",
        },
        "ProjectTasks": {
            "fields": ["taskId", "name", "status", "rate.value", "projectId"],
            "id_field": "taskId",
            "subkey": "items",
            "subresource": "tasks",
            "methods": ["GET", "POST"],
        },
    },
}

def create_class(cls_name, *bases, **kwargs):
    attrs = {}

    for attr_name, value in kwargs.pop("attrs", {}).items():
        attrs[attr_name] = value

    return type(cls_name, bases, attrs, **kwargs)

for prefix, classes in RESOURCES.items():
    for cls_name, kwargs in classes.items():
        kwargs.setdefault("resource", cls_name.lower())
        resource = kwargs.get("resource")
        methods = kwargs.pop("methods", ["GET"])
        view = create_class(cls_name, base, prefix=prefix, **kwargs)

Sorry, I can't help you with your code design, but I strongly suspect that the answer is "yes, there is a better way."

I've update the above example to provide more context. Hopefully you can see what I'm trying to do. From what I've read, I thought Metaclasses was the best way to go about it. Django and others do somewhat similar things...

OK, I've looked over this more, and I don't want to make the suggested change. By adding **kwargs to ViewType.__init__, it suggests that any View subclass can be passed metaclass arguments, which doesn't mean anything.
See a bit down in https://flask.palletsprojects.com/en/2.0.x/views/#basic-principle for how to define a View subclass that takes extra argument in __init__, which are passed from as_view(). That's the intended way to make a generic view. If you want to use metaclasses instead, I think the code you've shown is fine and indicates the intent explicitly.


[Game Request] Destiny 2

As the title says, I was wondering if support for Destiny 2 could be added!

It already supports any game that has time based drops, you just need to know the game ID (games.csv is not a complete list).
The game ID for Destiny 2 is 497057

I just updated games.csv with the ID for Payday 2. I also added some steps in the readme that you can follow to find a game ID yourself in the future if it is missing from games.csv.

I just updated games.csv with the ID for Payday 2. I also added some steps in the readme that you can follow to find a game ID yourself in the future if it is missing from games.csv.

Thanks！


Fix tests and partly fix "certificate_import" API method

Coverage remained the same at 44.227% when pulling 99b814081f32c1e146e30c97278186172bdfedcc on maxhq:develop-maxhq into 890a550878f4c697fdd094f71492b3f63a88e591 on openxpki:develop.


doc: 1.11 has not been added to the Release History page

There is no link to go1.11 from the Release History page.

Fixed in tip. Incorrect issue url was used, hence it did not auto-close.


Make it work for ghost > 1.0

Hej, I just changed the tags {{image}} to {{img_url feature_image}} and so on, to make it work with the latest ghost version.

Thanks for doing the initial work and making it open source 😃


Guildlines

Deployment guidelines for the project

@aditiverma-21 sorry for that this should be mentioned by project admin @Vin205,  No problem! Please consider proposing a different feature or enhancement for the project. Feel free to share your ideas, and I can help you assign the next task. Looking forward to your contribution!

Yes sure thank you.


[Maintenance] Bump to version 1.8.18

As mentioned in this ticket, this release fixes the qobuz plugin

PPA still reports version 1.8.16 at the time I write this post.


Store is empty after redirect.

Hi,
Im using middleware that checks auth. If its empty i will redirect user to login page with a message.
export default function ({ store, redirect }) {
  if (!store.state.authUser) {
    store.commit('SET_NOTI', {
      type: 'warn',
      title: 'Login',
      message: 'You need to log in'
    })
    console.log(store.state.notiAfterRoute)
    redirect('/login')
  }
}

But after redirect by store is null ( the value it should be on start) . If i console log it before redirect. it returns a object like it should.
I have tryed to solve this for couple of hours now. I tryed to use dispatch, promises everything.

Vuex does not keep the store after redirect, this is not issue.


fix(package): upgrade lodash to 4.17.11 security vulnerability

Originnal security issues https://github.com/lodash/lodash/issues/3359 (referenced from https://snyk.io/vuln/npm:lodash)

Thanks for the PR, I will be closing it in favor of #144 since it's updating to a newer version and also updating the package.lock file (which is why your prb was failing)


fix all GMXRC.* paths

[x] bash
[x] csh
[x] ksh (no GMXRC.ksh)
[x] zsh

ALso don't use ? as am alternatibe sed separator.

Changed delimiters from ? to | in 846c073f000994562d56e1ee8cbe2efb20275bb9

efb6a5892c1269593c7d4553f62eb27bbe4fec3c


Fix output file not initialized when -o omitted

MazuCC segfaults if option -o is omitted:
$ ./mzcc sample/nqueen.c
Segmentation fault

This issue was introduced in PR #19 when the -o option was added. I don't know if MazuCC is still supposed to output to stdout in case of no output specified, but if so, this PR fixes this by checking if the output file was set or not, and if not, sets stdout as the output file.

Thank @Theldus for contributing!


Question about the $v:templates variable

This is not an issue, but a Question.
The $v:templates is defined as document-node().
The Description says "Any templates provided in $v:templates will be used preferentially to whatever builtin templates exist.". That means i can have a sequence of templates as content. I have created two custom templates and use them successfully. The structure is like this:
<xsl:variable name="v:templates" as="document-node()">
  <xsl:document>
    <db:preface context="parent::db:book"> ... </db:chapter>
    <db:chapter context="parent::db:book"> ... </db:chapter>
  </xsl:document>
</xsl:variable>

But i wonder: is this really a valid document-node()? It does not have a single root Element, but consists of two document fragments. It does work, but i dont understand why ... i would expect the XSLT processor to complain.
The modules/templates.xml file from the xslTNG Distribution uses tmp:templates as root Element for templates. Is this also possible for custom templates in a separate file?
After all, wouldn't it be better to define $v:templates as element()* or $v:templates as element(tmp:templates)?
Kind regards, Frank

The XPath data model doesn't require a document node to have a single element child. You can have none, a text document, or one, or several. You an serialize it too. It's even possible to get an XML parser to re-injest it if you arrange for it to be an external parsed entity in another document.
I often think it's better and easier to define a top-level element, but in this case, it didn't seem necessary and it just introduces new error conditions. For example, what if the top-level element isn't named tmp:templates?
The v:templates mechanism seems sufficiently narrow and specialized that it was okay to do it this way.

Thanks for the explanation.  This is one for "Today i have learned...".
In section 6.1.1. in the XQuery and XPath Data Model 3.1 i see the difference between the Infoset document information item and the XPath Document Node.
Greeting, Frank

I think it would be nice to explain this fact. Maybe more users expect a single root element for a valid document node. I have made PR #481 .


[SPARK-37795][BUILD][FOLLOWUP] Add a checkstyle rule to ban org.apache.log4j imports

What changes were proposed in this pull request?

This PR adds a checkstyle rule to ban org.apache.log4j imports for Java source code.
Why are the changes needed?

#35077 added a the same rule for scalastyle, it's applied for Scala source code but not for Java one.
Currently, we don't have Java source code which contains org.apache.log4j imports but it's better to be proactive.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

I manually tested by modifing ApplicationStatus.java like as follows and run dev/lint-java.
+import org.apache.log4j.PropertyConfigurator;
+
 public enum ApplicationStatus {
   COMPLETED,
   RUNNING;

   public static ApplicationStatus fromString(String str) {
+    PropertyConfigurator.configure(new java.util.Properties());
     return EnumUtil.parseIgnoreCase(ApplicationStatus.class, str);
   }

I got the following error message as expected.
[ERROR] src/main/java/org/apache/spark/status/api/v1/ApplicationStatus.java:[22,1] (imports) IllegalImport: Illegal import - org.apache.log4j.PropertyConfigurator.

Merged to master.


Module 7a - semantic-search-NBRole does not have the bedrock:InvokeModel IAM permissions

I have access to the model in the correct region but the semantic-search-NBRole does not have the bedrock:InvokeModel IAM permissions.
ValueError: Error raised by bedrock service: An error occurred (AccessDeniedException) when calling the InvokeModel operation: User: arn:aws:sts::**:assumed-role/semantic-search-NBRole-EjdXfAalJlpo/SageMaker is not authorized to perform: bedrock:InvokeModel on resource: arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-haiku-20240307-v1:0 because no identity-based policy allows the bedrock:InvokeModel action
https://github.com/aws-samples/semantic-search-with-amazon-opensearch/blob/main/Module 7 - Retrieval Augmented Generation.ipynb

I added the Bedrock Full access to the temporary NBRole and it worked. Clearly a less permissive set of permissions need to be added to the NBRole in the CloudFormation template.


Per Request / Per Execution Context Scope for DI

We need a scope that limits the lifecycle to the scope of a "request" or perhaps the "execution context".  The execution context is perhaps more correct but then we'll have to figure out the disposing of the execution context and how this might conflict with the value object equality sematics.

➤ Michael Smith commented:
No, as it's not a singleton.  Say I've got a complex object representing my user.  Instead of just getting it from the token, I have to get it from the DB.  I only want to do this once as it's an expensive call to the DB but I need to do it once on every request (as it's the same user for the duration of the request).

➤ Sindre Alstad Wilting commented:
Wouldn't SingletonPerTenant satisfy this?

➤ Sindre Alstad Wilting commented:
Okay, that makes sense


Exit fullscreen on leaving the player

Since staying in full screen breaks scrolling, leave full screen on exiting the player.
This makes some changes to the setWindowMode function but from what I can tell it doesn't break anything. You can now specify what window mode you want.
Fixes #27

Yeah I was thinking the same but I didn't have much time to work on it


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/62114

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/63809

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/71583

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/71700

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/72872

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/74062

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/74345

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/74457

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/74527

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/75570

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.


Pytorch implementation of trpo

Contribute a Pytorch implementation of trpo.
It is tested under environment CartPole-v1, LunarLander-v2 and Pendulum-v0.

Perhaps an idiotic question:
Is old_pi in https://github.com/vermouth1992/spinningup/blob/0b25f011e3928e063cc0a177d5f31044d1388cda/spinup/algos/pytorch/trpo/trpo.py#L278
not the same as pi in https://github.com/vermouth1992/spinningup/blob/0b25f011e3928e063cc0a177d5f31044d1388cda/spinup/algos/pytorch/trpo/trpo.py#L240 ?
If so I don't quite understand why the kl_divergence will be any different from 0 in https://github.com/vermouth1992/spinningup/blob/0b25f011e3928e063cc0a177d5f31044d1388cda/spinup/algos/pytorch/trpo/trpo.py#L241

Perhaps an idiotic question:
Is old_pi in https://github.com/vermouth1992/spinningup/blob/0b25f011e3928e063cc0a177d5f31044d1388cda/spinup/algos/pytorch/trpo/trpo.py#L278
not the same as pi in https://github.com/vermouth1992/spinningup/blob/0b25f011e3928e063cc0a177d5f31044d1388cda/spinup/algos/pytorch/trpo/trpo.py#L240 ?
If so I don't quite understand why the kl_divergence will be not trivial in https://github.com/vermouth1992/spinningup/blob/0b25f011e3928e063cc0a177d5f31044d1388cda/spinup/algos/pytorch/trpo/trpo.py#L241

The value is zero. But the Hessian is not.


[APM] fix podLabels

[X] Chart version not bumped (the versions are all bumped and released at the same time)
[x] README.md updated with any new values or changes
[X] Updated template tests in ${CHART}/tests/*.py
[ ] Updated integration tests in ${CHART}/examples/*/test/goss.yaml

pod labels were missing from APM template.

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

ok to test

ok to test


CQRS pattern - generic implementation

General concept

Command, Query
CommandBus, QueryBus
Handlers for queries and commands
Generic approach - should allow usage in any specific implementation of domain logic

GitHub repository example


Fix avg_over_time for nan and float64 overflows

Signed-off-by: Julien Pivotto<EMAIL_ADDRESS>

This does not protect from float64 overflows like the old function was so that is not a real fix

Can you explain more what this is trying to do, and if/how it varies from the naieve algorithm?

It fixes avg_over_time for Inf + avg_over_time for float64 that would otherwise overflow the float64.
e.g. the following tests would fail otherwise:
  metric5 1 2 3 Inf Inf
  metric10 -9.988465674311579e+307 9.988465674311579e+307

eval instant at 1m avg_over_time(metric5[1m])
  {} Inf

eval instant at 1m avg_over_time(metric10[1m])
  {} 0

I will make the comments cleaerer

What are those returning now? Does sum_over_time / count_over_time == avg_over_time? Would the avg aggregator need changes too?

Current behaviour
load 10s
  metric5 1 2 3 Inf Inf
  metric6 1 2 3 -Inf -Inf
  metric7 1 2 -Inf -Inf Inf
  metric10 -9.988465674311579e+307 9.988465674311579e+307

eval instant at 1m avg_over_time(metric5[1m])
  {} Nan

eval instant at 1m avg_over_time(metric6[1m])
  {} Nan

eval instant at 1m avg_over_time(metric10[1m])
  {} +Inf

New
load 10s
  metric5 1 2 3 Inf Inf
  metric6 1 2 3 -Inf -Inf
  metric7 1 2 -Inf -Inf Inf
  metric10 -9.988465674311579e+307 9.988465674311579e+307

eval instant at 1m avg_over_time(metric5[1m])
  {} Inf

eval instant at 1m avg_over_time(metric6[1m])
  {} -Inf

eval instant at 1m avg_over_time(metric10[1m])
  {} 0

Why is metric10 changing?

It is one big positive and one big negative float that average to 0

Previously (v.V - mean ) / count would overlow to (Inf) / count => Int

avg_over_time is the same except for metric9 and metric8 which overflows float64.

avg_over_time  is the same as sum_over_time / count_over_time except for metric9 and metric8 which overflows float64.

@brian-brazil are we interested by this fix?

I have adapted the comment and rebased on top of group().


Is it possible to use XMeye cloud id, instead of IP to access the like XMeye app for android?

No, I don't think it's possible.
You can search the SDK and try to find out if it is possible to get the
login function with cloud ID or not. If there is no information at all
about it, it looks like you need to reverse engineer it.
On Mon, Apr 4, 2022, 09:41 Wagner Brito @.***> wrote:

—
Reply to this email directly, view it on GitHub
https://github.com/janglapuk/xiongmai-cam-api/issues/4, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOC2UYXZ5ZEKFVFMFD4IFDVDJCE3ANCNFSM5SOBDGEA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


branch dev-sm87-trt101  can works on Orin now ?

System Info
I just tried to compile the TrT-llm on AGX Orin devkit, but met some compiled error
/media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/cubin/xqa_kernel_cubin.h:935:1:` error: expected ‘}’ before ‘{’ token
  935 | { DATA_TYPE_FP16, DATA_TYPE_FP16, 128, 1, 8, 8, 0, false, false, kSM_90, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin_len, "kernel_mha"},
      | ^
In file included from /media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/decoderXQAImplJIT/decoderXQAImplJIT.cpp:20:
/media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/cubin/xqa_kernel_cubin.h:693:26: note: to match this ‘{’
  693 | } sXqaKernelMetaInfo[] = {
      |                          ^
In file included from /media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/decoderXQAImplJIT/decoderXQAImplJIT.cpp:20:
/media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/cubin/xqa_kernel_cubin.h:935:1: error: expected ‘,’ or ‘;’ before ‘{’ token
  935 | { DATA_TYPE_FP16, DATA_TYPE_FP16, 128, 1, 8, 8, 0, false, false, kSM_90, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin_len, "kernel_mha"},
      | ^
/media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/cubin/xqa_kernel_cubin.h:935:223: error: expected unqualified-id before ‘,’ token
  935 | _sm_90_cubin, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin_len, "kernel_mha"},
      |                                                                                ^

/media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/cubin/xqa_kernel_cubin.h:936:1: error: expected unqualified-id before ‘{’ token
  936 | { DATA_TYPE_FP16, DATA_TYPE_FP16, 128, 1, 8, 8, 64, true, false, kSM_90, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_pagedKV_64_nqpkv_8_m_8_sm_90_cubin, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_pagedKV_64_nqpkv_8_m_8_sm_90_cubin_len, "kernel_mha"},

I use the command :
python3 ./scripts/build_wheel.py --trt_root /usr/local/tensorrt
Is there anyone can give me any tips
Who can help?
No response
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction
branch  dev-sm87-trt101
command: python3 ./scripts/build_wheel.py --trt_root 'pwd'/TensorRT
Expected behavior
compile without error report
actual behavior
TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/cubin/xqa_kernel_cubin.h:935:1: error: expected ‘}’ before ‘{’ token
  935 | { DATA_TYPE_FP16, DATA_TYPE_FP16, 128, 1, 8, 8, 0, false, false, kSM_90, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin_len, "kernel_mha"},
      | ^
In file included from /media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/decoderXQAImplJIT/decoderXQAImplJIT.cpp:20:
/media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/cubin/xqa_kernel_cubin.h:693:26: note: to match this ‘{’
  693 | } sXqaKernelMetaInfo[] = {
      |                          ^
In file included from /media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/decoderXQAImplJIT/decoderXQAImplJIT.cpp:20:
/media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/cubin/xqa_kernel_cubin.h:935:1: error: expected ‘,’ or ‘;’ before ‘{’ token
  935 | { DATA_TYPE_FP16, DATA_TYPE_FP16, 128, 1, 8, 8, 0, false, false, kSM_90, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin_len, "kernel_mha"},
      | ^
/media/x/SSD/Documents/trtllm/TensorRT-LLM/cpp/tensorrt_llm/kernels/decoderMaskedMultiheadAttention/cubin/xqa_kernel_cubin.h:935:223: error: expected unqualified-id before ‘,’ token
  935 | { DATA_TYPE_FP16, DATA_TYPE_FP16, 128, 1, 8, 8, 0, false, false, kSM_90, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin, xqa_kernel_dt_fp16_d_128_beam_1_kvt_fp16_nqpkv_8_m_8_sm_90_cubin_len, "kernel_mha"},
      |                                                                                ^

additional notes
None

@sunnyqgg Could you please take a look? Thanks

@tuanhe  Which TRT version are you using？ This is for TRT 10.1

@tuanhe Which TRT version are you using？ This is for TRT 10.1

Sure, I had updated Tensorrt to 10.1

@sunnyqgg Could you kindly share  me the steps to follow your work?

@sunnyqgg Hi there , any updates?

HI @tuanhe , Actually this branch is for other uses, and we only did few verifications.
If you want to use:
step1: install trt 10.1 and cuda 12.x
step2: python3 scripts/build_wheel.py --cuda_architectures "87-real" --trt_root your_trt_path


some docs lost

Idea Title
some docs lost
Issue Details
https://docs.microsoft.com/zh-cn/windows/uwp/audio-video-camera/transcode-media-files#encode-a-metadata-stream
at the end of the page, "Encode a metadata stream“ part does not exist

@CaliforniaChao Your issue is transferred to content team. They follow up with you there.


[Feature Request]: Make toolbar/icons size customizable and toolbar auto hidable/showable on hover

What's the Problem?
The toolbar size is huge
Not possible to toggle auto hide/show the toolbar on hover
What's your solution or idea?
It is already a great tool, but I have noticed some points that could be really a great thing to have:

Make toolbar size customizable, assuming it could be feasible thx to svg icons
Make toolbar position customizable (top/bottom, right/left [vertical orientation])
Set a toggle button to enable/disable on hover (when the mouse is on the screen border) auto-hide toolbar

Alternatives Considered
As an alternative/frist step, it could be a good start to reduce the toolbar size
App Version
v1.2.3
OS Version
Ubuntu 21.04
Additional context
No response

i echo that. the tools is great and I enjoy using it.
the tools bar is size is a bit too large, i need to move it around very often. better to have toggle/collapes/autohide/resizable/mini_mode/hide_to_tray_icon
mine is windows 10/11


[Bug]: In the messages tab, the previewed message isn’t the most recent message.

What browser are you using?
Chrome
What operating system are you using?
macOS
Actual Behavior
In the "Messages" tab, the previewed message isn’t the most recent message but the second most recent message.
UPDATE: Another chat shows the most recent message, but one of the chats shows the original older message even though there are like 20 more messages.

Expected Behavior
In the "Messages" tab, the previewed message should be the most recent message.
Reproduction

Sign in to the app
Select a conference
Select "Messages"
View the list of messages
Select a chatter's message and see their latest message

Additional Information
This is possibly an issue with the graphql query sorting as it pulls messages.

Created an issue in the amplify board to track solutions for their sorting problem.


allOf does not work, whereas anyOf works fine

anyOf

allOf

ALL-OF dictates that all the listed fields(properties) must be included in the schema which is what the rendering is trying to communicate
Now from the schema def, here are the few assumptions I am making

If the intention is Password should have either all lowercase letters or all uppercase letters then ONE-OF should be used
If the intention is Password can have mix of uppercase or lowercase letters the use single field with  better pattern [A-Za-z]

If you are using ALL-OF or ANY-OF with more than one field, it indicates that the password is complex type and is made p of more than one field, which I am guessing is not the case.
Let me know, Incase there is anything else that you are expecting

If the intention is Password can have mix of uppercase or lowercase letters the use single field with better pattern [A-Za-z]

yes this is the intention, but the provided screenshots are just an example, I know I can merge the regex, but the point here is mixing multiple type definitions under allOf is breaking the UI (and the example area)

since allOf is a json schema level directive, this should be working the same way, the UI should translate the requirements and present them as they are.

true, and thats how it is working, It is listing ALL-OF the fields thats needed , in this case 2 fields with different patterns
if you are expecting something else let me know


Dockerized quick start guide

About: Docker containerized version of Python example app from the OpenAI API quick start tutorial
Summary of changes:

Packaged the app in a Docker container so the guide could be easily deployed on any system (i.e., created Dockerfile)
Added Makefile to quickly and easily start up and close down (+ clean up) the app using make up and make down commands
Updated README instructions on how to run the Docker container using Make commands
Added app.run() function at the end of app.py script to run the server. I used if __name__=='__main__': to run the server only if the script is executed directly from the Python interpreter.

if __name__=='__main__':
    app.run(debug=True)

Potential implications:

Gives others the option to run the app in a Docker container, but it doesn't change or take away the option to run on your local computer, just as you would now
Easier to run the app in different environments, without having to worry about compatibility issues or waste time debugging
Consistent and secure runtime environment, protecting the app from potential security vulnerabilities in the host system

Going to avoid docker for now, but thank you!


New version: Microsoft.OneDrive version 22.077.0410.0007

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.1 schema?

Microsoft Reviewers: Open in CodeFlow

@msftrubengu

@lechacon missed OneDrive PR

@wingetbot waivers Add Validation-Installation-Error

/azp run

@wingetbot waivers Add Validation-Installation-Error


Log siad stdout + stderr to a file in UI

Each stdout and stderr should live in a separate file. Each time the UI starts siad, it should append a startup message to the logs to clearly indicate separate instantiations. If siad is already running when the UI is started, the UI will not touch these logs nor redirect the output.
These files should probably live in Sia-UI/logs/

Should these logs exist in the data directory, or in the directory that contains the Sia-UI binary?

logs should persist if you replace the UI

Would also be nice to be able to see stdout/stderr output in the UI (maybe a panel in the Terminal plugin?)

This has been implemented here: https://github.com/NebulousLabs/Nodejs-Sia/pull/38. Closing for now.


GPU support: Install CUDA + Nvidia drivers offline

https://github.com/juju-solutions/layer-nvidia-cuda
Install from resource instead of download.

@tvansteenburgh i'm assigning this to you without any priority in the todo list. It should be straight forward but I suspect we may encounter some problems with multi-arch tooling around the resource here (PPC64LE and S390X). I've not encountered a scenario using nvidia on these arch's but something to consider.


17 1.3 event time spans

This branch adds the time spans for events required by US 1.3.
One test is currently commented as it requires js to run. I prepared a setup for testing with javascript in the separate javascript-tests branch, which I would propose for merging after this branch is merged.

Coverage remained the same at 100.0% when pulling 5199919fc293f6d4a6dec49ba072ab64487138e3 on 17_1.3_EventTimeSpans into 1cf5807c70f36857bf7df4edd7516f310569fb31 on dev.

Coverage remained the same at 100.0% when pulling 402cf6f814d811c158e93578eb372dfc9b010b0e on 17_1.3_EventTimeSpans into 869cd818d5ac45d7f03b2256f5b8db1bd6980700 on dev.

Coverage remained the same at 100.0% when pulling 908c7ea18c085c64558355cb725899fb90321654 on 17_1.3_EventTimeSpans into 42ee48f0da732a474e2ed9c0a537d1829dbebf78 on dev.


ParseAsString shouldn't throw the parsing exception

DynamicType interface has a method named parseAsString which is throwing the ParseException. There is no need to throw the parse Exception because its return type is a string so there is no parsing involved.

Closing this issue as we have to keep going with the ParseException because removing it from the method signature will result in a breaking change for the SDK users.


[Baremetal] Allow removal of X.509 CRT caches for stack-only X.509 handling

Summary: This PR introduces an option MBEDTLS_X509_CRT_NO_CACHE which allows removal CRT caches and the related acquire/release APIs, thereby eliminating any heap usage of the X.509 module when used in conjunction with PK hardcoding introduced in #2835.
~Dependencies: #2835 (merged).~
Impact on code-size:

GCC
ARMC5
ARMC6

libmbedx509.a before
5417
5566
5954

libmbedx509.a after
4933
5090
5432

gain in bytes
484
476
522

Removing "needs: preceding PR" as #2835 is merged now.

This has multiple CI failures (real, not spurious), so labeling "needs: work".

I am closing this pull request because the baremetal branch is no longer maintained in this repository. If it is still relevant, please open a new pull request in https://github.com/PelionIoT/pelion-crypto .


no need to parse body twice

Just some performance optimisations.

Is this still being actively maintained? Seems like a pretty obvious performance optimisation, but not merged after 7 months?

I guess not?


Update README.md

Describe cmp-nvim-lsp as optional
This package is mentioned in the 'Adding extra sources' section

I see. In the file it is written: "Here is a list of source you might want to install to get a better experience." That's why I thought it is intended to be optional. I'll try to rephrase it to make it more obvious.


Issues importing to Security Hub when a finding has a lot of results

While running a Prowler Scan in an account with 469 Lambda functions and two Cloud Trails, generating 938 findings for extra720.
The error message given is:
prowler/include/securityhub_integration: line 53: /usr/bin/jq: Argument list too long

This line in securityhub_integration is trying to get a list of the prior findings. I believe the error is happening at --argjson ids "$NEW_FINDING_IDS" part of the command.
I modified the line to replace the double quotes with single quotes for that part so it looks like --argjson ids '$NEW_FINDING_IDS'. I did it based on this Stack Overflow question.
I'm guessing this issue will also appear whenever there are a lot of findings. I'm not sure if there is a good way to test the limits of how many findings can be sent at a time, and break them down so Prowler can send in batches based on how many can be sent at once.

Changing the double quotes to single quotes didn't actually fix this issue.

To replicate this issues, do the following (directions applied from here):
First, create a role for the Lambda functions:
aws iam create-role --role-name lambda-ex --assume-role-policy-document '{"Version": "2012-10-17","Statement": [{ "Effect": "Allow", "Principal": {"Service": "lambda.amazonaws.com"}, "Action": "sts:AssumeRole"}]}'

Copy the role arn from the output
Then attach the execution role:
aws iam attach-role-policy --role-name lambda-ex --policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole

create a file called index.js with the following contents:
exports.handler = async function(event, context) {
  console.log("ENVIRONMENT VARIABLES\n" + JSON.stringify(process.env, null, 2))
  console.log("EVENT\n" + JSON.stringify(event, null, 2))
  return context.logStreamName
}

Zip the file:
zip function.zip index.js

Run the following command:
for i in {001..500}; do aws lambda create-function --function-name my-function-${i} --zip-file fileb://function.zip --handler index.handler --runtime nodejs12.x --role <ARN FROM ABOVE>; done

This will create 500 Lambda functions. Next, ensure you have at least 2 cloud-trails in the region you created the above functions in.
Finally, run Prowler and add the flag -M json-asff -S -c extra720 to the prowler command, so it attempts to send results to Security Hub. It will take around 30 minutes to finish the check, which will result in the above errors.

Thanks @Kirizan, good finding, I wonder if using server-side pagination may make the trick. By default AWS CLI uses page size of 1000, I have used max-items option in some checks like in check_extra741 then, usign -m <maxitems> option that can be managed. I haven't used --starting-token so far but I think it is part of the solution here. Busy with other bug now if you can give it a look to that possible solution with starting token let me know.

What I mean is, if we control or reduce the number of findings showed from securityhub get-findings we could avoid the jq issue, couldn't we?

I was thinking the issue was from having 1542 findings passed to the JQ command from what Prowler found, I wasn't thinking that securityhub get-findings was also getting 1542 results, meaning JQ is trying to process 3084 items. We still might need to control both results however, I'll do some testing and see what I find.

@toniblyx I just modified the securityhub get-findings command to max out at 100 results, and still got the same error. The 1542 findings being sent to the argjson flag is still to much. I'll play with the code some and see what can be done to solve this.

Closing the issue since it was fixed in PR #953. Thanks @Kirizan


publish failed

When trying to publish I just get:
dune-release: [ERROR] run ['git' '--git-dir' '.git' 'push'
                           'git@github.com:lpw25/async_graphics.git'
                      'gh-pages:gh-pages']: exited with 128

indeed if I run that command myself I get:
git --git-dir .git push git@github.com:lpw25/async_graphics.git gh-pages:gh-pages
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Of course the repository does exist and I have access rights for it, but that's not the style of URI that I use to access it.

Thanks for reporting this!

Of course the repository does exist and I have access rights for it, but that's not the style of URI that I use to access it.

Just to clarify, do you mean you're using HTTPS and not SSH?
If that's the case then indeed, dune-release assumes SSH should be used to avoid asking you to authenticate every time it pushes. We could change that so it uses your origin remote to determine whether you prefer HTTPS or SSH.
In the meantime, you can add an SSH key to your github account if you want to work around that limitation.

Actually, I use SSH but not with my default key. I have a Host in my ssh config to access github, and I also have a [url ssh://github/] insteadOf = github: in my .gitconfig to access it more easily.  This means that I need to use either: ssh://github/lpw25/async_graphics.git or github:lpw25/async_graphics.git.

We could change that so it uses your origin remote to determine whether you prefer HTTPS or SSH.

Looking at the code, it seems like the choice of HTTPS or SSH is only used to construct a url to use as a remote. In which case why not just take the remote directly as an optional command line argument. Then I can just pass --remote origin. Also that allows for using remotes other than "origin".

This issue is similar to #172 and so are the fixes so I'm closing this one but rest assured we're working on it!


give claims an identifier and use a bitmap to reduce storage usage of claims

this is done on main


Better error handling for API routes

Let's forward all errors to the error page rather than using notifications and still showing a potentially broken page.

Done


Upgrade Dependencies

Summary
Upgrade dependencies, held back RN 72 as it showed a performance downgrade on Android
Note: full app tests are encouraged
Release Note
NONE

Hey @enahum - please link the related Jira ticket :) Thanks!

@lindy65 this is a recurring task, there is never a ticket linked to it

Thanks @enahum - as a full smoke test of the app needs to be done, my concern is that if these PRs aren't tracked in Jira, I will not know to retest after the PR is merged.  I've created a Jira for myself to check the app again once this PR is merged. https://mattermost.atlassian.net/browse/MM-53942
Perhaps the Jira ticket can be cloned for each dependency update going forward?

@enahum There are some conflicts here that need resolving.

Yes @amyblais working on it


Fixes auto-translation for 'auto'

Also, fixes the spelling of 'container'

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thanks!


Off-Canvas supports position configuration responsively

Off-canvas is show on the left by default now.
But sometimes we want it on the other three sides(top, right and bottom).
And even more, we want it to be responsive.
It shows on left/right when the screen is wide enough and on top/bottom when not.

About responsivity:

you can add the off-canvas-sidebar-show class to the off-canvas to make the sidebar expanded when the window width is larger than or equal to 960px.
you can add any responsive visibility class


Data showing on CEDEN but not on Dashboard

Please tell me what I am doing wrong.  Thanks,
If I search CEDEN using https://ceden.waterboards.ca.gov/Home/virtAqtTool for Bifenthrin levels at (for example) Oxn_CI-06 I find 4 entries (file attached).  If I look at the data dashboard I do not see that analyte in the dropdown.
export.xlsx

Hi @j0el,
Thanks for bringing this to my attention. I'm currently looking into it and will follow up with you as soon as I have more information.
Thanks,
Michelle

Hi @j0el,
The Bifenthrin data should be available on the dashboard now. Please take a look and let me know if you don't see it. In short, we are not using the full list of analytes from CEDEN but rather a list of select analytes. Bifenthrin was not on this list initially, which is why you didn't see it in the dropdown earlier, but I just added it this week based on your inquiry, so you should see it now.
I will be working on adding more analytes to this list in the coming weeks. Please let me know if there are any other analytes from CEDEN that you would like to see in the dashboard. I would be happy to look into adding them for you. Here is the current list of analytes:
Alkalinity as CaCO3, Total
Aluminum, Total
Ammonia as N, Total
Arsenic, Total
Barium, Total
Beryllium, Total
Bifenthrin, Total
Boron, Dissolved
Cadmium, Total
Chromium, Total
Chloride, Dissolved
Chlorophyll a, Particulate'
Copper, Total
Dissolved Organic Carbon, Dissolved
E. coli
Fluoride, Dissolved
Hardness as CaCO3, Total
Lead, Total
Manganese, Total
Mercury, Methyl, Total
Mercury, Total
Moisture, Total
Nickel, Total
Nitrate as N, Total
Nitrogen, Total, Total
Nitrogen, Total Kjeldahl, Total
Oxygen, Dissolved, Total
Oxygen, Saturation, Total
pH
Phosphorus as P, Total
Selenium, Total
Silver, Total
SpecificConductivity, Total
Sulfate, Dissolved
Temperature
Total Dissolved Solids, Total
Total Organic Carbon, Total
Turbidity, Total
Zinc, Total

Thanks so much.  I am asking our team to check about any more to add.
On Fri, Oct 25, 2024, 3:08 PM Michelle Tang @.***>
wrote:

Hi @j0el https://github.com/j0el,
The Bifenthrin data should be available on the dashboard now. Please take
a look and let me know if you don't see it. In short, we are not using the
full list of analytes from CEDEN but rather a list of select analytes.
Bifenthrin was not on this list initially, which is why you didn't see it
in the dropdown earlier, but I just added it this week based on your
inquiry, so you should see it now.
I will be working on adding more analytes to this list in the coming
weeks. Please let me know if there are any other analytes from CEDEN that
you would like to see in the dashboard. I would be happy to look into
adding them for you. Here is the current list of analytes:
Alkalinity as CaCO3, Total
Aluminum, Total
Ammonia as N, Total
Arsenic, Total
Barium, Total
Beryllium, Total
Bifenthrin, Total
Boron, Dissolved
Cadmium, Total
Chromium, Total
Chloride, Dissolved
Chlorophyll a, Particulate'
Copper, Total
Dissolved Organic Carbon, Dissolved
E. coli
Fluoride, Dissolved
Hardness as CaCO3, Total
Lead, Total
Manganese, Total
Mercury, Methyl, Total
Mercury, Total
Moisture, Total
Nickel, Total
Nitrate as N, Total
Nitrogen, Total, Total
Nitrogen, Total Kjeldahl, Total
Oxygen, Dissolved, Total
Oxygen, Saturation, Total
pH
Phosphorus as P, Total
Selenium, Total
Silver, Total
SpecificConductivity, Total
Sulfate, Dissolved
Temperature
Total Dissolved Solids, Total
Total Organic Carbon, Total
Turbidity, Total
Zinc, Total
—
Reply to this email directly, view it on GitHub
https://github.com/mmtang/swamp-data-dashboard/issues/11#issuecomment-2438947972,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHWZIVZNUORVV2L4T2YFULZ5K6PTAVCNFSM6AAAAABQKORS32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZYHE2DOOJXGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Michelle,
These are what we would like added if possible.
Thanks.
Boron, Total
Copper, Dissolved
Fenpropathrin/Danitol
DDE (p,p')
DDT (p.p')
Dichloran
Enterococcus- Bacteria
Nitrate/Nitrite as N
Nitrite as N
Pendimethalin
Permethrin
Sulfate, Total
Total Suspended Solids
On Fri, Oct 25, 2024 at 3:08 PM Michelle Tang @.***>
wrote:

Hi @j0el https://github.com/j0el,
The Bifenthrin data should be available on the dashboard now. Please take
a look and let me know if you don't see it. In short, we are not using the
full list of analytes from CEDEN but rather a list of select analytes.
Bifenthrin was not on this list initially, which is why you didn't see it
in the dropdown earlier, but I just added it this week based on your
inquiry, so you should see it now.
I will be working on adding more analytes to this list in the coming
weeks. Please let me know if there are any other analytes from CEDEN that
you would like to see in the dashboard. I would be happy to look into
adding them for you. Here is the current list of analytes:
Alkalinity as CaCO3, Total
Aluminum, Total
Ammonia as N, Total
Arsenic, Total
Barium, Total
Beryllium, Total
Bifenthrin, Total
Boron, Dissolved
Cadmium, Total
Chromium, Total
Chloride, Dissolved
Chlorophyll a, Particulate'
Copper, Total
Dissolved Organic Carbon, Dissolved
E. coli
Fluoride, Dissolved
Hardness as CaCO3, Total
Lead, Total
Manganese, Total
Mercury, Methyl, Total
Mercury, Total
Moisture, Total
Nickel, Total
Nitrate as N, Total
Nitrogen, Total, Total
Nitrogen, Total Kjeldahl, Total
Oxygen, Dissolved, Total
Oxygen, Saturation, Total
pH
Phosphorus as P, Total
Selenium, Total
Silver, Total
SpecificConductivity, Total
Sulfate, Dissolved
Temperature
Total Dissolved Solids, Total
Total Organic Carbon, Total
Turbidity, Total
Zinc, Total
—
Reply to this email directly, view it on GitHub
https://github.com/mmtang/swamp-data-dashboard/issues/11#issuecomment-2438947972,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHWZIVZNUORVV2L4T2YFULZ5K6PTAVCNFSM6AAAAABQKORS32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZYHE2DOOJXGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Thanks for the list. I should be able to add all of them over the next two weeks or so. I'll follow up once I've made the changes.

Thank you, we appreciate it a lot.
On Tue, Oct 29, 2024 at 3:06 PM Michelle Tang @.***>
wrote:

Thanks for the list. I should be able to add all of them over the next two
weeks or so. I'll follow up once I've made the changes.
—
Reply to this email directly, view it on GitHub
https://github.com/mmtang/swamp-data-dashboard/issues/11#issuecomment-2445415781,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHWZITW53O36RYV6JDDXLLZ6ABGDAVCNFSM6AAAAABQKORS32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBVGQYTKNZYGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @j0el, I added the data for the requested analytes. Please feel free to take a look and let me know if you have any follow-up questions. Thanks!

This is wonderful, our team really appreciates you.
On a slightly different note.  DO you know anyone who is connected with
loading data into CEDEN?  SOme of the labs Oxnard contracted with failed to
upload data and we are not having much success getting them to do it since
their contracts are over.
Best regards,
On Thu, Nov 14, 2024 at 10:34 AM Michelle Tang @.***>
wrote:

Hi @j0el https://github.com/j0el, I added the data for the requested
analytes. Please feel free to take a look and let me know if you have any
follow-up questions. Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/mmtang/swamp-data-dashboard/issues/11#issuecomment-2477143886,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHWZIXEWCYHEDOPB74VDU32ATUKFAVCNFSM6AAAAABQKORS32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZXGE2DGOBYGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

I will pass your message along to others in my office to see if they can help or offer some insight.


Imported texture with HDR enabled are darker on Android

Godot version:
3.2.1

OS/device including version:
Huawei P30 GLES3

Issue description:

Imported images are darker on Android when importing with HDR enabled. If importing with force RGBE, the color is correct but alpha channel is lost
Steps to reproduce:
Import an image with alpha channel and enable HDR
Minimal reproduction project:

Huawei P30 GLES3

Try using the GLES2 renderer instead. The current GLES3 renderer is considered too buggy to work reliably on mobile/web platforms.

Unfortunately i'm using shaders unaivalable on GLES2, I might find a way around for now


Popup Blocked on Safari Iphone PWA

Describe the bug
Hello, I used this cordova plugin before https://github.com/jeduan/cordova-plugin-facebook4 and switched to your's instead with capacitor v3.
Since I release the app, users on iOS or using safari desktop run into the "popup blocked" problem that is explained here: https://www.idownloadblog.com/2021/03/30/how-to-allow-pop-ups-in-safari/
The problem is that FacebookLogin.login gets stuck and never respond in the case popups are blocked (default setting).
How to handle this case? Is there a way to check if safari is setup correctly to allow FB login ?
thanks
To Reproduce
Steps to reproduce the behavior:

Open safari on iphone or desktop with popups blocked
try to login

Expected behavior
Get an Error to let the developers know that something got wrong and it is because of safari's setting.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: MacOs at least
Browser: safari
Version [e.g. 22]

Smartphone (please complete the following information):

Device: iphone XS
OS: latest
Browse safari
Version [e.g. 22]

I'm having the same problem.

Sorry, I don't know. This plugin is only wrapper: https://github.com/capacitor-community/facebook-login/blob/master/src/web.ts#L60-L80
Please check Facebook SDK. Thanks.

Why is this closed? The issue persists and is directly caused by this plugins implementation of the Facebook SDK.
@rdlabo Why not update the 'facebook SDK wrapper' code to use callbacks as suggested by @shprink, allowing this plugin to work in Safari on mobile?


Fix Lerna for canary release

Finish https://github.com/lerna/lerna/pull/287 according to PR comments

no longer relevent; canary release not currently in use


Add a class and permissions to reproduce a bug

Closes #1533

@subotic, could you try and reproduce what I think is a bug in the permissions?

I am also closing the pull request.


Users/lukillgo/copyfilesssh

Removed the empty 'target folder' test because the requirements changed
Added semicolons for lines that may be flagged by lint
Changed the localization file string to match task.json
Added test for if the source folder is actually a file

@lkillgore,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


[DO NOT MERGE] [Azure Search] Generate code for the Index and Suggest APIs

Corresponding Swagger PR: https://github.com/Azure/azure-rest-api-specs/pull/5219
This change replaces a bunch of custom code with generated code, specifically for the Index and Suggest APIs.
There are some breaking changes:

DocumentSuggestResult/Base and SuggestResult/Base have been removed. For dynamic typing scenarios, use DocumentSuggestResult and SuggestResult.
IndexBatch/Base and IndexAction/Base have been removed. For dynamic typing scenarios, use IndexBatch and IndexAction.
We have already bumped the major SDK version in anticipation of these breaking changes.

Big thanks to @mhko who did the majority of the work on this.
FYI @arv100kri @Yahnoosh

Is it by design that the Generated metadata points to your fork and not the public Azure repo?
Is that why [DO NOT MERGE] ?

@arv100kri Yes, thanks for reminding me. I still need to update that. Will push another commit in a little while.
Also, the [DO NOT MERGE] is to let azure-sdk-for-net maintainers know that we (Azure Search team) will take care of merging this, since it targets the search-preview branch.

        }

Pretty cool that the new generated client/proxy operations have this check :)

Refers to: src/SDKs/Search/DataPlane/Microsoft.Azure.Search.Data/Customizations/Documents/DocumentsOperations.Customization.cs:240 in 7c11fd1. [](commit_id = 7c11fd1e5538a38a0c286791c82f245997c68b54, deletion_comment = True)

LGTM

sign-off


[docs] Describe execution timeouts

Issue: https://github.com/DevExpress/testcafe/issues/6096
PR: https://github.com/DevExpress/testcafe/pull/6441
Discussion: https://teams.microsoft.com/l/message/19:7e845d3e5e324502abae3417a2ac8c7c@thread.skype/1628000541062?tenantId=e4d60396-9352-4ae8-b84c-e69244584fa4&groupId=c3abb0f3-231c-4d87-b5a3-44925dc1d075&parentMessageId=1628000541062&teamName=TestCafe&channelName=Framework (Open source)&createdTime=1628000541062
Describe the possibility to set timeout via the configuration file and the CLI. There are two timeouts:
-testExecutionTimeout - timeout for each test
-runExecutionTimeout - timeout for all process
Examples
CLI
testcafe chrome my-tests --test-execution-timeout 180000
testcafe chrome my-tests --run-execution-timeout 180000

Configuration file
{
    "testExecutionTimeout": 180000,
    "runExecutionTimeout": 180000
}

Implemented.


⚠ Spryr has degraded performance

In 1b0a886, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 503
Response time: 3264 ms

Resolved: Spryr performance has improved in 0e934e8 after 8 minutes.


Detectron2 and Openmmlab question

Hi, thanks for the great work, but i'm wondering why you chose Detectron2 as your base, cause i found that in your previous work in 2022: SeMask Segmentation, you used Openmmlab as your backend. Why you chose Detectron2 this time. Is it because Openmmlab is hard to use or some other reason? Did Openmmlab has any bugs in OneFormer code implementation?

Hi @LiJiahang617, thanks for your interest in OneFormer.
We build OneFormer on top of DETR-based works (MaskFormer/Mask2Former), all implemented initially with the Detectron2 library. As for SeMask, SeMask-FPN uses the segmentation library. However, SeMask-Mask2Former uses the Detectron2 library. I want to emphasize that SeMask is an add-on for any semantic segmentation hierarchical transformer backbones and can be used with any library.

Thanks for your reply, now i get rhe point of your choice, thanks again!
---Original---
From: "Jitesh @.>
Date: Tue, Jun 27, 2023 19:15 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [SHI-Labs/OneFormer] Detectron2 and Openmmlab question (Issue#73)
Hi @LiJiahang617, thanks for your interest in OneFormer.
We build OneFormer on top of DETR-based works (MaskFormer/Mask2Former), all implemented initially with the Detectron2 library. As for SeMask, SeMask-FPN uses the segmentation library. However, SeMask-Mask2Former uses the Detectron2 library. I want to emphasize that SeMask is an add-on for any semantic segmentation hierarchical transformer backbones and can be used with any library.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


[ISSUE #2980] Can be replaced with single 'Map.computeIfAbsent' method call[UnSubscribeProcessor]

Fixes #2980
Motivation
Enhancement Request
Modifications
Substituted Map.get & Map.put combined logic with Map.computeIfAbsent in UnSubscribeProcessor.java
Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)
If a feature is not applicable for documentation, explain why? - code refactor

@Alonexc Thank you. Possible to merge this code to master?


Automated Package Upgrade

:tada: This PR is included in version 6.0.9 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Modal Opening Twice

My modal opened twice on one event of the emit (now Dispatch because livewire 3.x, but also happens in 2.x)
The front one doesn't fire functions at all but is clickable, the one behind fires functions but not correctly and only clickable when the front one is dismissed, like the picture here:

The front one gets locked to the bottom too. I replaced align-bottom with align-middle in the modal.blade.php but now after upgrading it's stuck to the bottom
Edit: Sometimes there's an overlay like the picture here:

Edit 2 : Weirdly enough the modal at the back is the one registered in the Livewire Devtools

I have read somewhere that we can put wire:key, but since we are using events to open a modal, how do we solve this?
Thanks!
My composer.json
"require": {         "php": "^8.1",         "doctrine/dbal": "^3.6",         "guzzlehttp/guzzle": "^7.2",         "laravel/framework": "^10.0",         "laravel/sanctum": "^3.2",         "laravel/tinker": "^2.8",         "livewire/livewire": "^3.0",         "maatwebsite/excel": "^3.0",         "mkocansey/bladewind": "^2.1",         "openspout/openspout": "4",         "orangehill/iseed": "^3.0",         "power-components/livewire-powergrid": "^5.1",         "spatie/laravel-permission": "^5.10",         "wire-elements/modal": "^2.0",         "wireui/wireui": "^v1.18"     },

Update : A powergrid table is present on the page of the problem, I think Alpine is being called twice

@livewire('wire-elements-modal')   imported twice.

Both in app layout, and in pages containing the modal.
Deleting either one solved it, I deleted the one in the app layout


Added the variable 'backwards' in the documentation.

That's not how it works. The variable should be bound similar to other variables (and also get a getter and setter): https://github.com/godotengine/godot/blob/master/scene/2d/animated_sprite.cpp#L714

That's not how it works. The variable should be bound similar to other variables (and also get a getter and setter): https://github.com/godotengine/godot/blob/master/scene/2d/animated_sprite.cpp#L714

Yeah but the getter and setter are not codded yet, so i thought it was a good idea to add the variable in the documentation.

Note that it's documented as an argument currently:
https://github.com/godotengine/godot/blob/efd55631e2f05141072c26129bdc75d65cd1c53c/doc/classes/AnimatedSprite.xml#L19-L29
If you want to propose to add it as a property instead, you could open an issue about that.
If neither setter nor getter are defined yet, then it wouldn't make sense to expose it in documentation because there would be no way to actually control it from script. Once it's added as a property, the documentation can be then updated with godot --doctool . command to generate needed doc strings automatically, and all you'll have to do is fill in the actual text describing what the property does.

Note that it's documented as an argument currently:
https://github.com/godotengine/godot/blob/efd55631e2f05141072c26129bdc75d65cd1c53c/doc/classes/AnimatedSprite.xml#L19-L29
If you want to propose to add it as a property instead, you could open an issue about that.
If neither setter nor getter are defined yet, then it wouldn't make sense to expose it in documentation because there would be no way to actually control it from script. Once it's added as a property, the documentation can be then updated with godot --doctool . command to generate needed doc strings automatically, and all you'll have to do is fill in the actual text describing what the property does.

Thanks for the reply, i will open an issue.