SIMD: hardware targeting

I'm asking because I've not attempted to work with SIMD previously and I may misunderstand some things.
The rules here include "No hardware targeting".
But  SIMD is allowed for multi-threaded implementations, right? E.g. d_con and csharp_con take advantage of it.
So as long as after a runtime check for what extensions are available, e.g. SSE2 and/or AVX2, there's a fallback to a non-SIMD algorithm in case no extensions are available, then it's okay?
Some compilers/optimizers may be doing that detection-fallback automatically, e.g. d_con and csharp_con and their use of vectors might involve automatic fallback, I'm not entirely sure.
For nim_con, I'm sure I would need to do it manually via nimsimd or learn/use a library like arraymancer that can do it transparently (I think).

Actually I think, that what was used now, more correctly will be call not SIMD, but auto vectorization (but of course it is using SIMD under the hood).
Because explicit SIMD instructions will require specific knowledge of available commands and processor's type.
So as you can see instead of using scary intrinsics like _mm_add_epi64
It is possible to have gain from SIMD with easier and much more readable and maintainable code.
For example you can check this blog post about C++: https://blog.minhazav.dev/guide-compiler-to-auto-vectorise/
And for Nim I think instead of libraries mentioned in your message, you can take a look at this one https://github.com/SciNim/vectorize

auto vectorization (but of course it is using SIMD under the hood).

Right, that's one of the points I made, perhaps not expressed too well.
vectorize is by the same author as arraymancer. I'll double-check, but I'm pretty sure the facilities it provides are subsumed by arraymancer, which also embeds that same author's laser library.

auto vectorization (but of course it is using SIMD under the hood).

Right, that's one of the points I made, perhaps not expressed too well.
vectorize is by the same author as arraymancer. I'll double-check, but I'm pretty sure the facilities it provides are subsumed by arraymancer, which also embeds that same author's laser library.

Maybe you can use them as well. But they are more tensor-libraries (with many backends, including BLAS/LAPACK/GPU). And it could be an overkill to bring them into this problem.

And it could be an overkill to bring them into this problem.

vectorize and standalone laser aren't actively maintained and there were important changes re: Nim 2.0 in the last couple of years. arraymancer is maintained, though I understand there are some gotchas with Nim 2.0.
I can probably use a 1-tensor (effectively a vector) via arraymancer and achieve what's needed with >. and ==..  I'll see how it goes, and if it performs poorly because of setup-overhead, I'll try do it manually with memory-aligned seq/array and nimsimd.

I guess your query was answered. Implementation is up to the contributor and there's no restrictions on mc solutions.

Implementation is up to the contributor and there's no restrictions on mc solutions.

Answered now, in any case. 😀


gc plugin: don't remove some base images

Some base images will be used a lot, therefore I think it may make sense to "cache" them just to speed builds up. This is a very nice to have RFE, because connection between registry and builder is not bottleneck and therefore pulling the image takes almost no time.

Closing due to lack of interest and activity. If you're still interested feel free to reopen it.


disabled managed identity on azureml compute instance

This fixes issue #45
Additional explanation
Ok, I did a deep dive into the problem, and I found the issue. AzureML compute instance set by default the MSI_ENDPOINT and MSI_SECRET environment variables for on compute instances. Even if this managed identity has no rights. The problem is that the DefaultAzureCredential will prioritize managed identities over CLI logins. This would be fine if DefaultAzureCredential would validate if it selected strategy would work. Instead, it greedily picks the first one that could work, and if it does not work, it does not try the others. So, in this case, it finds the MSI_ENDPOINT env variable, so it decides to go for the AzureMLCredential when this one fails to obtain to get the token, it no longer checks the other options. So in this code:
 try:
        credential = DefaultAzureCredential()
        # Check if given credential can get token successfully.
        credential.get_token("https://management.azure.com/.default")
    except Exception:
        # Fall back to InteractiveBrowserCredential in case DefaultAzureCredential not work
        credential = InteractiveBrowserCredential()

We will always fall back to the InteractiveBrowserCredential.
Sadly, the InteractiveBrowserCredential also does not work since azure compute instances are headless.
We could replace InteractiveBrowserCredential with DeviceCodeCredential. This works, but an annoying side effect is that we needed re-login every time we submit a job.
So, I believe the best course of account would be to check if you are on an AzureML compute instance, and if this is the case, tell DefaultAzureCredential to ignore the managed identity credential. (ManagedIdentityCredential does this by checking for the presence of the MSI_ENDPOINT environment variable`).

Thanks for your research and contribution @j0rd1smit ! We will accept your PR, but first please rebase your branch to the latest develop, as we've applied a fix in the pre-commit configuration which makes the pre-commit/unit tests pass. Without this fix they will fail.

If everything went correctly, I rebased it. If something when wrong, let me know. (first time rebase)

I'm not sure that you've rebased correctly because now your PR shows changes that were already merged to our develop.
Please do the following:

Rollback what you did with the rebase recently (git reset --hard f7b2e47c2a37898b666362ee19d8c4f1f6b814a3 on your branch).
Fetch changes from our repo (either git fetch origin develop or git fetch <name of the remote of GetInData's GitHub> develop.
Just do git rebase origin/develop or git rebase <name of the remote of GetInData's GitHub>/develop
After those operations you commit history should look like you've added your change after the changes made on our develop branch.
Push changes to your fork (most likely you will have to use --force with git push command)

I've merged it, but please wait for feedback, as we only can run e2e tests on our branches right now.

It seems to work fine in e2e tests. We will release it on Monday then!


using command palette shortcut to review flashcards doesn't show any flashcards

Thanks for this plugin, I like it a lot :star_struck:
I've noticed tonight that when I try to use the command palette and then select Spaced Repetition: Review Flashcards, then it opens the flashcards modal, but it fails to find any decks (nothing shows up). If I'm using the button the left menu bar, then the decks I'm using do show up.
Please let me know if you need additional information/logs!

Hello, I'm glad that you like the plugin!
The fix for this issue should be available in the next release.

Thanks!


HostControl.Restart() is confusing

HostControl.Restart() implies that we have functionality that doesn't exist. Rehab and the Supervisor work never got fully off the ground after we wiped the slate in 3.0.
I'm guessing our best bet is to just remove that stuff.

If HostControl.Restart() is removed, what would be a good way for the service class to request that Windows do a restart of the service application?

You can't really tell the SCM to do a restart, it's a stop then start & after stop is effected your service is dead. Unable to ask to startup at that point. The best bet is using the recovery options and crashing your service early. This would let the SCM use your configuration to restart the service on it's own.

After adding some recovery options and killing the service with System.Environment.Exit(someErrorCode); it seems that Windows does start it again.
Could this command maybe be added to HostControl.Restart()? Even though it looks a bit dirty it does actually work, and in case Microsoft adds some better service restart options in the future it can be added to an already existing method.

Using System.Environment.Exit will only work if you have the recovery options set. I'd rather not bake in behaviour that only works if you have some specific configuration set. This will be non-intutitive, calling Restart and the service just crashes without the proper configuration.


401 unauthorized

Hi - following the documentation, I may be missing something, but I keep getting 401 unauthorized errors. My config is below and I can't seem to find anything glaring about what I'm missing:
<configuration>
  <appSettings>
    <add key="ADALServiceURL" value="https://login.microsoftonline.com"/>             <!-- Service root URL for ADAL authentication service WITH NO TRAILING SLASH! -->
    <add key="ADALRedirectURL" value="http://yerpderp/"/>                           <!-- Redirect URL for ADAL authentication service MUST MATCH YOUR AAD APP CONFIGURATION! -->
    <add key="ARMBillingServiceURL" value="https://management.azure.com"/>            <!-- Service root URL for ARM/Billing service WITH NO TRAILING SLASH!  -->
    <add key="TenantDomain" value="REMOVED.onmicrosoft.com"/>                         <!-- DNS name for your Azure AD tenant -->
    <add key="SubscriptionID" value="REMOVED"/>          <!-- GUID of Azure Subscription that is trusting AAD tenant specified above -->
    <add key="ClientId" value="REMOVED"/>                <!-- GUID for AAD application configured as Native Client App in AAD tenant specified above -->
  </appSettings>

Console output:
Calling Usage service...
The remote server returned an error: (401) Unauthorized.

Did you get this working? I'm stuck at the same point and I'm sure I've put in the correct info..

No, still outstanding.

ok,  I'm facing the same problem about 401. Don't know how to fix that and I'm pretty sure I set the right configurations as followed this instruction.

Btw, I just couldn't find out the required "AAD tenant domain name" stuff in my settings page. For my sample I simply used the string I copied from AAD page shown as the default domain. I don't know if that  matters.

Folks, I'd like to try and get you unblocked with these auth issues.
These are some common auth issues that I have found for these samples:

The logged-in user for the app is a guest in the tenant - the user cannot be a guest in the tenant in which the Azure sub resides.

Logged-in user needs to be added to the READER, OWNER or CONTRIBUTOR role for the scope of the Azure subscription. this can be done in the Azure preview portal (portal.azure.com)

App not correctly configured - the app that is accessing the Usage and RC APIs needs to be allowed access to the Azure Service management API, and if you are trying out the multi-tenant app, the app needs to be configured to be "multi-tenant" in the app configuration page.

As for the comment on the AAD tenant domain, an easy way to get this would be to log in to the Azure Management Portal (manage.windowsazure.com) and look at the URL:
https://manage.windowsazure.com/@moinak3live.onmicrosoft.com?hashseg=Workspaces/ActiveDirectoryExtension/directory
moinak3live.onmicrosoft.com is the AAD tenant domain name that you should use. This should be the tenant under which the Azure sub is created, for which you are trying to request usage.
Please let me know how else I can help here.

Hi @moinak3 ,thanks for your replying and show me the hope :)
Well, I logged in the portal.azure with my account and then add required roles for it.  I changed the TenantDomain by using the domain name I copied from URL just like you, and after that I run this sample again, and this time I got an error message from the login page that saying "sorry but received an error request" stuff like that(Sorry the message is in Chinese).
I post my screenshot below:

One more question, how to configure a native-client app as a "multi-tenant" app? I mean where to find the switch? I think for a web app that's easy to find out the configuration items in the app configuration page, but I didn't see any possible configurations related to "multi-tenant" for a native-client app in our case. Since the tenant "ysaad.onmicrosoft.com"  but not the "billingtestad.onmicrosoft.com" owns the actual subscription , I believe it's also necessary to set this app as a multi-tenant. Right?
Looking for your further reply.

@magaal @rposbo @Robin2009 - The value you enter for SubscriptionID must be a subscription that is associated with the Azure AD tenant you specify for the TenantDomain value.  Can you verify and let me know if that is the issue?   It's not enough to just specify a valid subscription ID; it must also be associated with (trusting) the specified Azure AD tenant for authentication.
If you enter a valid SubscriptionID that is not associated with the Azure AD tenant you specify for TenantDomain, you will receive a The remote server returned an error: (401) Unauthorized. response.  You can verify this in the Azure portal by logging in with a service admin/co-admin account for the given subscription, and navigate to the Settings/Subscriptions page:
https://manage.windowsazure.com/MyTenant.onmicrosoft.com#Workspaces/AdminTasks/SubscriptionMapping

You should see the GUID for the subscription under the "Subscription ID" column, and the DNS name for your Azure AD tenant under the "Directory" column (shown as Friendly-Name (DNS-Name))
As @moinak3 mentioned, because the Billing APIs are implemented under the Azure Resource Manager (ARM), they are also secured by the Role Based Access Control (RBAC) feature it uses.  See the bottom of the readme for more details.  Basically, the credentials you use for authentication (when prompted), must either be an admin/co-admin on the subscription (which gives the credentials automatic membership in the RBAC "Subscription admins" group), or the credentials must be specifically added to the Owner, Contributor, or Reader RBAC group.  If not, you will get a The remote server returned an error: (403) Forbidden response.  You will also get a 403/Forbidden if you authenticate with credentials from a directory other than the one you specified for the app registration.
Hope this helps.

@BryanLa , thanks for your replying. I run this demo against my own account and that works fine. But for the account ( belongs to an EA account ) provided by my client  it returns me a 401 error forever. I can view the detail usage reports for all the subscriptions associated with this account on ea.azure by login with it.  So my question is, does this usage API available to the EA accounts?

Hi @Robin2009 - AFAIK, the Usage API supports queries for all offer types, including EA, but I've asked @moinak3 to confirm.  Regarding the 401 error, can you confirm that the subscription you are specifying for SubscriptionID in your app.config, is configured to trust the Azure AD tenant you specified for TenantDomain, in the Azure management portal?  I don't be believe the 401 is related to support (or lack of) for EA offer types.
For more details on the relationship between the Azure subscription and Azure AD, please see How Azure subscriptions are associated with Azure AD. Basically, in order to access the Usage data for a particular subscription, the APIs require that your credentials are authenticated by the Azure AD tenant which the subscription has designated. If this is not the issue, please let me know and I will follow up with engineering.
Regarding the ea.azure.com portal, apologies, but I'm not sure how the authentication/authorization is designed to work, and how they are securing access to each subscription.

Hi @Byronr , may I send you an email?

@Byronr , I guess I know the reason for getting 401 persistently though I don't have the AA or SA account. I read the article refers to "How Azure subscriptions are associated with Azure AD" then I found this: "but a subscription trusts only one directory". Also in your reply you suggested me to check if the subscriptionId configured in my app.config trust the tenantAD to which this sample is going to be added. I believe this tenantAD is definitely not trusted by this subscription therefore it always returns 401 error.
Thanks @Byronr , thanks for your sharing.

Hi @Robin2009 - you're welcome, and good luck w/everything.  Let us know if you need help w/anything else.
Bryan

Hello there,
Thanks for sharing. I'm following and I can connect to the RateCard API using the GetOAuthTokenFromAAD() method.
I'm confusing that can I authenticating with this API by using management certificate which uploaded to the Azure portal?
When I try to using it, the (401) Unauthorized error occurred.
Thanks in advance,
Tinh.

Hi @tinhnv01210 - I don't have experience with using a certificate for authentication, but here are a few articles you can check out, mostly from the perspective of needing to use certificates with a daemon/service client. The last 2 are specifically related to Azure Resource Manager authentication :
Build service and daemon apps in Office 365
Authenticating to Azure Resource Manager using AAD and Certificates
Developer’s guide to auth with Azure Resource Manager API
Hope this helps.

Hi everyone, from the downloaded data I found two records as shown below:
---------1st one---------
usageStartTime:       2015-06-02T00:00:00+00:00
usageEndTime:        2015-06-03T00:00:00+00:00
meterName:             Compute Hours
meterCategory:        Virtual Machines
unit:                          Hours
infoFields/meteredRegion: Japan West
meterSubCategory:  Standard_D2 VM (Windows)
/infoFields/project :   MTBSb2JpbkNT(MyTest)
quantity:                   318.366994
---------2nd one---------
usageStartTime:       2015-06-02T00:00:00+00:00
usageEndTime:        2015-06-03T00:00:00+00:00
meterName:             Compute Hours
meterCategory:        Virtual Machines
unit:                          Hours
infoFields/meteredRegion: Japan West
meterSubCategory:  Standard_D2 VM (Windows)
/infoFields/project :   MTBSb2JpbkNT(MyTest)
quantity:                   24
I remember in the day June.2,  I first created a cloud service and named it with "MyTest", then I create several VMs. And two or three hours later I deleted all of the VMs, and then I recreated some VMs with the same old size and leave them running.
Here I have some questions:

Why I got two VM usage records for a same day? Especially they are of the same VM size? How many records will I get if I just delete some of running VMs but not all of them?
2.For the number 318.366994 and 24, I wonder how they were calculated?
3.From where I can find out the "MTBSb2JpbkNT" thing?  I'm quite sure that "MyTest" is the name of my cloud service, but I didn't remember I'd used such a name for anything else. So, what does the name "MTBSb2JpbkNT" refer to ?

Thanks for any of your ideas.


[BugFix] Report tablet ids when publish is failed

What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #6500
Problem Summary(Required) ：

This PR fix the problem that no error tablet id is reported when the publish task submitting is failed.

run all

@mergifyio backport branch-2.1


Production release #55

Release note:

[x] Bug fix Update search audit to log result total_count
[x] Chore reduce logging levels on  non-production envirnoments to info
[x] Chore Increase autoscaling threshold to 45%
[x] Feature DSI Sign in - replace redirection with CCS solution
[x] Feature Add year validation to date fields

Added a new card to remove the monkey patch. https://trello.com/c/0fBiG9GY


Trunk support

Motivation
Trunk is an incredibly usefull tool to "Build, bundle & ship your Rust WASM application to the web".
Closes #295
Checklist

[x] added tests to verify new behavior
[x] added an example template or updated an existing one
[x] updated docs/API.md (or general documentation) with changes
[x] updated CHANGELOG.md

TODO:

[x] Add an example of how to build a workspace with three crates: "client", "server" and "shared"
[ ] Perhaps bring the documentation more in line with that of other functions (?)
[x] Squash

I'm not sure about it, but it seems like a good idea to generate cargoArtifacts if they are not passed in, considering buildTrunkPackage is supposed to behave similarly to buildPackage, is that right?

I'm not sure about it, but it seems like a good idea to generate cargoArtifacts if they are not passed in, considering buildTrunkPackage is supposed to behave similarly to buildPackage, is that right?

I like this idea!

CI fail on 22.11 is due to wasm-bindgen-cli beign outdated. Made a backport PR https://github.com/NixOS/nixpkgs/pull/228754.

Pushed a few minor fixes, will merge when CI passes!


chandelier_exit

Here is a code that i have written for chandelier_exit, if possible add to repo
 def chandelier_exit(df1, atr_length=14, roll_length=22, mult=2, use_close=False):
        df = df1.copy()
        df.columns = df.columns.str.lower()
        my_atr = ta.Strategy(
            name="atr",
            ta=[{"kind": "atr", "length": atr_length, "col_names": ("ATR",)}]
        )
        # Run it
        df.ta.strategy(my_atr, append=True)

        if use_close:
            df['chandelier_long'] = df.rolling(roll_length)["close"].max() + df.iloc[-1]["ATR"] * mult
            df['chandelier_short'] = df.rolling(roll_length)["close"].min() - df.iloc[-1]["ATR"] * mult
        else:
            df['chandelier_long'] = df.rolling(roll_length)["high"].max() - df.iloc[-1]["ATR"] * mult
            df['chandelier_short'] = df.rolling(roll_length)["low"].min() + df.iloc[-1]["ATR"] * mult
        df.loc[df['close'] > df['chandelier_long'].shift(1), 'chd_dir'] = 1
        df.loc[df['close'] < df['chandelier_short'].shift(1), 'chd_dir'] = -1
        # chd = df[['chandelier_long', 'chandelier_short', 'chd_dir']]
        return df

Hi @bibinvargheset,
Sure. It can be added. Hopefully someone can convert it to proper method and make a PR so it can be included. 😎
Kind Regards,
KJ

Hey @twopirllc  , I'm interested in contributing to this issue, so before I start working on it, would you mind sparing your time explaining what the issue is about and pointing me to some resources to get started

@9gl the code i shared is working, but needs  structural changes to be, check psar.py or similar indicator and update to have similar structure and functionality

@bibinvargheset Sure will do.

Hi @9gl,
Thanks for your interest in taking this on. 😎
First, make sure you are using the development branch. README
$ pip install -U git+https://github.com/twopirllc/pandas-ta.git@development

Second, follow Creating a Custom Indicator: The Big 4 to add an indicator and hook it up to the DataFrame Extension.
Notes:

chandelier_exit.py should not accept a DataFrame as arguments but rather high, low, and close instead. By default, it should use the high & low Series.

For an example of how to construct conditional close case, check out ad.py. (Simply replace open_ with close.)

It must not call df.ta.strategy() internally.
Since it is returning three columns 'chandelier_long', 'chandelier_short' and 'chandelier_dir', reference macd.py's Name and Category Section for an example of preparing the returning DataFrame.

That should cover the majority. The indicator itself is not difficult. I can add tests after the PR, so don't worry about those unless you want to try.
Hope this helps! Let me know otherwise.
Kind Regards,
KJ


Checksum not validated when downloading

We're distributing some large binary objects via jfrog and have had issues with users getting corrupted downloads, likely due to wifi or other network problems.
My expectation when trying out JFrog CLI is that it would access to the Artifactory-stored SHA hashes and confirm the download as being correct before exiting. However, we have still had issues with corrupted files, even when downloading with this tool, so clearly it is not doing sufficient additional validation.

@mikepurvis,
Our new release, JFrog CLI v1.16.0, includes this feature. Feel free to upgrade.
We'll appreciate your feedback for it.


[WIP] Add U2F support

This commit adds support for MFA using a U2F device (e.g Yubikey).
Tested and working on Windows.
Example usage:
 $ .\aws-okta.exe add
Okta organization: docker

Okta region ([us], emea, preview):

Okta domain [docker.okta.com]:

Okta username<EMAIL_ADDRESS>
Okta password:

time="2019-06-23T20:03:29+01:00" level=info msg="Requesting MFA. Please complete two-factor authentication with your second device"
Touch the flashing U2F device to authenticate...
time="2019-06-23T20:03:33+01:00" level=info msg="Added credentials for user<EMAIL_ADDRESS>
 $ .\aws-okta.exe login foo
time="2019-06-23T19:59:53+01:00" level=info msg="Requesting MFA. Please complete two-factor authentication with your second device"
Touch the flashing U2F device to authenticate...

Thanks for the contribution!
Looks like a lot of copy-paste from the Duo U2F code. Any way we can factor this out?

Ignore that last commit - it's not working since my refactoring

Ok so the refactor seems fine, but it seems that on Windows 10 1903 18362.175 the hid library is no longer able to find my YubiKey 😡
I'm going to try and root cause this over the next week or so and then hopefully I can actually test it!

Closing due to staleness. Ping me if you get to updating.


Pretrained Model

@HanGuangXin  thanks for your work and sharing it to opensource

Can you please share the pretrained model for person reid ?
Is there inference pipeline to check the shared pre trained model
Can we extend this work for vehicle reid also ? if so what all changes have to be made to the current source code

Thanks in advance

@abhigoku10

Trained model will be updated soon, or you can train it yourself.
track.py will do the job.
Yes, and I don't think there is any code to be modified.

@HanGuangXin  thanks for the response
3. so if vehicle reid should be trained then our data should consisits fo reid info ? so are you aware of the dataset for vehicle reid

@HanGuangXin thanks for the response 3. so if vehicle reid should be trained then our data should consisits fo reid info ? so are you aware of the dataset for vehicle reid

Training of ReID need ID annots. VeRi and VehicleID are benchmarks for vehicle ReID task.


Run link_gem commands individually

bullet_train-base is raising this error:
/bin/bash: line 22: tmp/starter/Gemfile.tmp: No such file or directory

Exited with code exit status 1
CircleCI received exit code 1

Bash is pretty finicky with this orb developing process so I'm not sure if this will fix it.

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/gazayas/bullet_train_testing?version=dev:552df5549e86462dda9fbb257306b2728fb906ed

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/gazayas/bullet_train_testing?version=dev:a3ac6a622e2e16980ce5bf84b28351bb48db56e9

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/gazayas/bullet_train_testing?version=dev:4741e9bdabc3e3a065aa83cacca0699c05f35241

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/gazayas/bullet_train_testing?version=dev:4741e9bdabc3e3a065aa83cacca0699c05f35241

Your orb has been published to the CircleCI Orb Registry.
You can view your published orb on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/gazayas/bullet_train_testing?version=1.0.3


Strange Menu Bar Icon Behavior: Can't Disable/Enable

Since upgrading to v0.7.4, I could not get the menu bar icon to disappear by disabling it. I thought it was because I had also recently upgraded to macOS 13.0, but then I downgraded LinearMouse back to v0.7.3, and I can now disable the icon. I then tested this on another Mac running macOS 12.6, but it was doing the opposite with v0.7.4: not showing the icon even if I enabled it. I downgraded that one to v0.7.3, and that also fixed it there.

Thank you for your feedback!
I'm able to reproduce this bug. I'll fix it in the next release.

@lujjjh, just installed linearmouse 0.7.4 on Ventura 13.0 and toggling the 'Show in menu bar' setting does not appear to do anything.

Hey, @realies!
I've just published v0.7.5-beta.1 which includes this fix.

@lujjjh, the new release works, thank you!


Trying to use a different Font

I tried to use another font but it causes problems with the text that lays above the text field.

It clears up a bit when I remove focus from the text field.

Never mind! Setting constraints up fixed this. Good thing I did, I almost just used another lib.

Never mind! Setting constraints up fixed this. Good thing I did, I almost just used another lib.

For those that want to change the title font go to "SkyFloatingLabelTextField.swift" in the pod files
and at line 287 set it equal to self.font or whatever font you want to use. 🔥

For those that want to change the title font go to "SkyFloatingLabelTextField.swift" in the pod files
and at line 287 set it equal to self.font or whatever font you want to use. 🔥


SassError: Can't find stylesheet to import when it contains @forward with _index file

Describe the bug
10:13:27 AM [vite] Internal server error: Can't find stylesheet to import.
  ╷
1 │ @use "@material/chips/mdc-chips";
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  src/styles/index.scss 1:1  @import
  src/App.vue 3:9            root stylesheet
  Plugin: vite:css
  File: /Users/***/styles/index.scss
  Error: Can't find stylesheet to import.
    ╷
  1 │ @use "@material/chips/mdc-chips";
    │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

The _index.scss of this dep contains @forward rules.
More information:
There is the same problem in webpack, but can be solved like this, but I haven't see options like this in Vite's documentation.
Reproduction

yarn add @material/chips@canary
In a new Vue3 template project.
@use the dep's style following documentation:

<style lang="scss">
@use "@material/chips/mdc-chips";
</style>

System Info
System:
    OS: macOS 11.4
    CPU: (4) x64 Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
    Memory: 73.38 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.1 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.13 - /usr/local/bin/npm
  Browsers:
    Chrome: 91.0.4472.114
    Firefox: 89.0.1
    Safari: 14.1.1
  npmPackages:
    @vitejs/plugin-vue: ^1.2.4 => 1.2.4
    vite: ^2.3.8 => 2.3.8

Used Package Manager
yarn
Logs
yarn run v1.22.10
$ vite build --debug
  vite:config bundled config file loaded in 220ms +0ms
  vite:config using resolved config: {
  vite:config   base: 'http://localhost:9000/',
  vite:config   resolve: { dedupe: undefined, alias: [ [Object], [Object], [Object] ] },
  vite:config   plugins: [
  vite:config     'alias',
  vite:config     'svgicon',
  vite:config     'vite:dynamic-import-polyfill',
  vite:config     'vite:resolve',
  vite:config     'vite:html',
  vite:config     'vite:css',
  vite:config     'vite:esbuild',
  vite:config     'vite:json',
  vite:config     'vite:wasm',
  vite:config     'vite:worker',
  vite:config     'vite:asset',
  vite:config     'vite:vue',
  vite:config     'vite:define',
  vite:config     'vite:css-post',
  vite:config     'vite:build-html',
  vite:config     'commonjs',
  vite:config     'vite:data-uri',
  vite:config     'rollup-plugin-dynamic-import-variables',
  vite:config     'vite:import-analysis',
  vite:config     'vite:esbuild-transpile',
  vite:config     'vite:terser',
  vite:config     'vite:manifest',
  vite:config     'vite:reporter'
  vite:config   ],
  vite:config   server: {
  vite:config     host: '<IP_ADDRESS>',
  vite:config     cors: true,
  vite:config     strictPort: true,
  vite:config     port: 9000,
  vite:config     hmr: { protocol: 'ws', host: 'localhost', port: 9000 },
  vite:config     fsServe: { root: '/Users/****/wd/****', strict: false }
  vite:config   },
  vite:config   build: {
  vite:config     target: [ 'es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1' ],
  vite:config     polyfillDynamicImport: false,
  vite:config     outDir: 'app/assets/dist',
  vite:config     assetsDir: 'assets',
  vite:config     assetsInlineLimit: 4096,
  vite:config     cssCodeSplit: true,
  vite:config     sourcemap: true,
  vite:config     rollupOptions: {},
  vite:config     commonjsOptions: { include: [Array], extensions: [Array] },
  vite:config     minify: 'terser',
  vite:config     terserOptions: {},
  vite:config     cleanCssOptions: {},
  vite:config     write: true,
  vite:config     emptyOutDir: null,
  vite:config     manifest: true,
  vite:config     lib: false,
  vite:config     ssr: false,
  vite:config     ssrManifest: false,
  vite:config     brotliSize: true,
  vite:config     chunkSizeWarningLimit: 500,
  vite:config     watch: null
  vite:config   },
  vite:config   css: { preprocessorOptions: { scss: [Object] } },
  vite:config   define: { __VUE_OPTIONS_API__: true, __VUE_PROD_DEVTOOLS__: false },
  vite:config   ssr: { external: [ 'vue', '@vue/server-renderer' ] },
  vite:config   configFile: '/Users/****/wd/****/vite.config.ts',
  vite:config   configFileDependencies: [ 'vite.config.ts' ],
  vite:config   inlineConfig: {
  vite:config     root: undefined,
  vite:config     base: undefined,
  vite:config     mode: undefined,
  vite:config     configFile: undefined,
  vite:config     logLevel: undefined,
  vite:config     clearScreen: undefined,
  vite:config     build: {}
  vite:config   },
  vite:config   root: '/Users/****/wd/****',
  vite:config   publicDir: '/Users/****/wd/****/public',
  vite:config   cacheDir: '/Users/****/wd/****/node_modules/.vite',
  vite:config   command: 'build',
  vite:config   mode: 'production',
  vite:config   isProduction: true,
  vite:config   env: {
  vite:config     BASE_URL: 'http://localhost:9000/',
  vite:config     MODE: 'production',
  vite:config     DEV: false,
  vite:config     PROD: true
  vite:config   },
  vite:config   assetsInclude: [Function: assetsInclude],
  vite:config   logger: {
  vite:config     hasWarned: false,
  vite:config     info: [Function: info],
  vite:config     warn: [Function: warn],
  vite:config     warnOnce: [Function: warnOnce],
  vite:config     error: [Function: error],
  vite:config     clearScreen: [Function: clearScreen]
  vite:config   },
  vite:config   createResolver: [Function: createResolver],
  vite:config   optimizeDeps: { esbuildOptions: { keepNames: undefined } }
  vite:config } +7ms
vite v2.3.8 building for production...
transforming (69) node_modules/camelcase-keys/index.js  vite:resolve 0ms   /src//styles/mixins/skeleton -> /Users/****/wd/****/src/styles/mixins/_skeleton.scss +0ms
  vite:resolve 0ms   @/styles/mixins/skeleton -> /Users/****/wd/****/src/styles/mixins/_skeleton.scss +0ms
  vite:resolve 22ms  /src//styles/index.scss -> /Users/****/wd/****/src/styles/index.scss +415ms
  vite:resolve 23ms  @/styles/index.scss -> /Users/****/wd/****/src/styles/index.scss +1ms
transforming (80<EMAIL_ADDRESS>vite:resolve 3ms   @material/chips/mdc-chips -> null +200ms
✓ 95 modules transformed.
[vite:css] Can't find stylesheet to import.
  ╷
1 │ @use "@material/chips/mdc-chips";
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  src/styles/index.scss 1:1  @import
  src/App.vue 3:9            root stylesheet
file: /Users/****/wd/****/src/App.vue?vue&type=style&index=0&lang.scss
Error: Can't find stylesheet to import.
  ╷
1 │ @use "@material/chips/mdc-chips";
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  src/styles/index.scss 1:1  @import
  src/App.vue 3:9            root stylesheet
error during build:
Error: Can't find stylesheet to import.
  ╷
1 │ @use "@material/chips/mdc-chips";
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  src/styles/index.scss 1:1  @import
  src/App.vue 3:9            root stylesheet
    at Object._newRenderError (/Users/****/wd/****/node_modules/sass/sass.dart.js:13222:19)
    at Object._wrapException (/Users/****/wd/****/node_modules/sass/sass.dart.js:13050:16)
    at _render_closure1.call$2 (/Users/****/wd/****/node_modules/sass/sass.dart.js:81775:21)
    at _RootZone.runBinary$3$3 (/Users/****/wd/****/node_modules/sass/sass.dart.js:27547:18)
    at _FutureListener.handleError$1 (/Users/****/wd/****/node_modules/sass/sass.dart.js:26096:19)
    at _Future__propagateToListeners_handleError.call$0 (/Users/****/wd/****/node_modules/sass/sass.dart.js:26394:49)
    at Object._Future__propagateToListeners (/Users/****/wd/****/node_modules/sass/sass.dart.js:4541:77)
    at _Future._completeError$2 (/Users/****/wd/****/node_modules/sass/sass.dart.js:26226:9)
    at _AsyncAwaitCompleter.completeError$2 (/Users/****/wd/****/node_modules/sass/sass.dart.js:25880:12)
    at Object._asyncRethrow (/Users/****/wd/****/node_modules/sass/sass.dart.js:4340:17)
error Command failed with exit code 1.

Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Hi,
I am also having the same issue with importing various components from Material.
@mashirozx have you managed to figure out a workaround in the meantime?

Nope till now, I just @use the forward targets directly.

here， https://github.com/mashirozx/sakura/blob/next/src/admin/_mdc.scss

I'm having the same problem with @use
  Error: Can't find stylesheet to import.
    ╷
  1 │ @use "~@online/vue-global/scss/animations" as animations;
    │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

I'm using vite 2.5.4 and sass 1.40.1

Same issue. I wanted to switch from @import to @use and @forward. It is not possible because Vite is throwing the error.
[vite] Internal server error: Can't find stylesheet to import.
  ╷
3 │ @use 'abstracts';
  │ ^^^^^^^^^^^^^^^^

Vite 2.8.4 and SASS 1.49.8. This issue should be fixed please, since @import will be soon deprecated,

@mashirozx I was able to reproduce. But @material/chips/mdc-chips does not exist. So I think this is working correctly.
Currently the docs says to do @use "@material/chips/styles";. Was the docs not had updated?
If you change it to that, it works without error.
https://stackblitz.com/edit/vitejs-vite-u1eckg?file=src%2FApp.vue&terminal=dev
Also the reproduction at https://github.com/webpack-contrib/sass-loader/issues/804 works properly with vite.

@sapphi-red the dependency version should be locked：
"@material/chips": "^13.0.0-canary.08398f880.0",

@mashirozx It seems there is no @material/chips/mdc-chips in that version.
https://www.jsdelivr.com/package/npm/@material/chips?version=13.0.0-canary.08398f880.0

Well, seems so, I can't find which version I was using at the time I open this issue. But I'm sure that the @forward rule doesn't work well on Vite, we can reproduce the issue by something else, like https://cdn.jsdelivr.net/npm/<EMAIL_ADDRESS>

@mashirozx Is this what you intend? I think it is working well.
https://stackblitz.com/edit/vitejs-vite-u93kky?file=src%2FApp.vue&terminal=dev

Sadly, I didn't save the code at that time, and also doesn't remember the detail to reproduce (seems @material/chips has huge upgrade since then and I can't find the old docs). But I'm pretty sure the @forward issue with at least vite^2.4.2. Can anyone else provide the reproduction? @jjstanton @lampewebdev @jrson83

We stooped using ˜ because vite does not come with that alias out of the box like vue-cli did.
So we have refactored our code.
Instead of using:
@use<EMAIL_ADDRESS>
we are using:
@use<EMAIL_ADDRESS>


Pairing login

Please add pairing login method, thx

Has been added in version 4.1.0! You can see the pairing code method example code here.
Thanks for the suggestion :+1:


Use Openvoice V2 or StyleTTS2 TTS

Hi, is there any way to use StyleTTS2 or hopefully OpenVoice with your project? StyleTTS2 and especially OpenVoice V2 have really good voices, and implementing them would be amazing.
I tried it myself but it was too hard for me. OpenVoice V2 seems easier but still. Cant wait to hear from you.

Thank you for your feedback.
I will look into these two projects to see if they can be easily integrated.


Fix peers linking on Node.js >= v6.3.0

When we started to use the --preserve-symlinks option on new Node.js versions, the peers linking introduced in #46 might have stopped working
Fixing this issue might cancel the need in the --flat-tree option introduced by https://github.com/rstacruz/pnpm/pull/46

npm@2 just installed the peerDependencies like the regular dependencies. Maybe we can do the same?


Using PopUP as a two level menu and lead to memory issues, Terminated due to memory issue

Hi, I found there is abnormal memoery usage when using react-native-modal as a two level menu
normally the pop up contain a View component, i make it into a list parent menu click
TouchableWithoutFeedback, when it is click, it will turn into another flatlist let use to press the item, the render from list parent menu to flat list view is controled by style(display:none and flex) with state (true and false).
However, i found the memory rapidly increase after the click in list parent menu, when i go back to the list parent menu from the flat list view, the memory keep increasing and wont stop, the app use all memory after 2.5 style changes.
However, just one level popup is fine.
Do anyone have suggestions on this case, i have thought of componentWillUnmount() but it seem may not work on this case.  Ofcoz it is good to use the whole page redirect than popup UI design but it seem react-native-modal missing memory leak control solution in this special scenario.
Please correct me if i am wrong and thanks again to all contributors making this great app
dependencies:
    "color": "1.0.3",
    "flag-icon-css": "^3.0.0",
    "fontawesome": "^4.7.2",
    "jwt-decode": "^2.2.0",
    "lodash": "4.13.1",
    "moment": "2.13.0",
    "prop-types": "^15.6.0",
    "react": "16.0.0",
    "react-native": "^0.51.0",
    "react-native-modal": "^5.0.0",
    "react-native-modal-dropdown": "^0.6.0",
    "react-native-modalbox": "^1.4.2",
    "react-native-popup-dialog": "^0.10.46",
    "react-native-scrollable-tab-view": "^0.8.0",
    "react-native-search-box": "0.0.13",
    "react-native-svg": "^6.3.1",
    "react-native-svg-uri": "^1.2.3",
    "react-native-tab-navigator": "^0.3.4",
    "react-native-tabs": "^1.0.9",
    "react-native-vector-icons": "^4.6.0",
    "react-native-video": "^2.0.0",
    "react-navigation": "1.0.0-beta.19",
    "react-redux": "^5.0.6",

Hi!
Could you please reproduce the issue in a simple project/repo?

Memory leak still happened as the flatlist
Memory leaks with lists are pretty common. Check you're not instantiating new objects inside loops/render(). Also, keep in mind that console.log() statement must be removed from the release mode otherwise they will fail and eat up memory.

it is strange that on the emulator, it only eat up ~90MB memory but 500MB on real device. interesting

Unfortunately this is the norm with react-native. When using a simulator AND when running the device in debugging mode you will have way more memory than on release.
Long story short: when checking your app perfomance always run on a real device in release mode.

Closing for now, feel free to create a new issue when needed!


Ollama support

Feature request
Is your feature request related to a problem? Please describe.
I'd like to be able to use a local model with Ollama.
Describe the solution you'd like
I want to be able to use a local Ollama instance with seed.
Describe alternatives you've considered
Cloud based models require an Internet connection as well as an account with a third party.
It would be possible to use something like LocalAI which provides an OpenAI-compatible API for local models, but this is a pretty heavyweight solution.
Additional context
LangChain.js already has Ollama support.
It seems like this could be as simple as allowing an OLLAMA_MODEL environment variable that can be used to construct a ChatOllama instance.

+1

+1

+1 :rocket:


Add assertions to compare a table with another or a request to another

The idea is to have an assertion like :
assertThat(table).isEqualTo(anotherTable);

Upvoting. Would be really good to have the same for Request as well

Would also really like that.
Currently I'm converting the tables into list of maps as a workaround:
      List <Map <String, Object>> expected = vmUserTable.getRowsList ()
                                                        .stream ()
                                                        .map (row -> row.getValuesList ()
                                                                        .stream ()
                                                                        .filter (v -> v.getValue () != null)
                                                                        .collect (Collectors.toMap (Value::getColumnName, Value::getValue)))
                                                        .collect (Collectors.toList ());
      List <Map <String, Object>> actual = dynUserTable.getRowsList ()
                                                       .stream ()
                                                       .map (row -> row.getValuesList ()
                                                                       .stream ()
                                                                       .filter (v -> v.getValue () != null)
                                                                       .collect (Collectors.toMap (Value::getColumnName, Value::getValue)))
                                                       .collect (Collectors.toList ());
      assertThat (actual).isEqualTo (expected);


hello noob, you not fixed Advanced Drill in IC2 3x3 mode, lol kek, destroying all blocks and bedrock

hello noob, you not fixed Advanced Drill in IC2 3x3 mode, lol kek, destroying all blocks and bedrock

You banned me and my friends because your mod is a masterpiece that has no bugs and you deny their appearance in your mod, even when you fix the mod you break it again.


[e2e]: maven workflow_dispatch main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/8677108161
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Sun Apr 14 00:14:46 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/8681961356
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Mon Apr 15 01:15:17 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/8697752859
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Tue Apr 16 00:09:35 UTC 2024
Tests are passing now. Closing this issue.


Unable to promote last remaining pod

I somehow managed to have my cluster silently break overnight and only one of my 3 kubegres pods is running, but it wasn't the primary. I have gone through the instructions to promote it forcefully but it seems it won't as it keeps looking for the current primary.
This seems like an oversight since the only reason you'd want to forcefully failover is when the primary isn't available.
Is there anything I can do to make the remaining version the primary? I can't retrieve the lost data but that's fine, I don't need it as badly as I need a working database at all.
This is what the log of the remaining pod is showing over and over:
could not connect to the primary server: could not translate host name "postgres" to address: no address associated with hostname
So there's some sort of resolution that isn't going right. It's also saying it's trying to connect to the primary when I'm trying to make it itself the primary.
I have added the following to the kubegres CRD:
failover:
      promotePod: "postgres-12-0"

(The correct name of the remaining pod).

The "status" part of my kubegres CRD states the following:
status:
  blockingOperation:
    operationId: Primary DB count spec enforcement
    statefulSetOperation:
      instanceIndex: 11
      name: postgres-11
    statefulSetSpecUpdateOperation: {}
    stepId: Failing over by promoting a Replica DB as a Primary DB
    timeOutEpocInSeconds:<PHONE_NUMBER>
  enforcedReplicas: 8
  lastCreatedInstanceIndex: 12
  previousBlockingOperation:
    hasTimedOut: true
    operationId: Primary DB count spec enforcement
    statefulSetOperation:
      instanceIndex: 11
      name: postgres-11
    statefulSetSpecUpdateOperation: {}
    stepId: Waiting few seconds before failing over by promoting a Replica DB as a
      Primary DB
    timeOutEpocInSeconds:<PHONE_NUMBER>

So it looks like it's attempting the failover but something is stopping it.

Anyone? I'm stuck here with a replica that won't promote.

The old master is not up and running? In that case the cluster is not in a healthy state and promotePod likely requires the cluster to be healthy as it reaches out to the old (previous) master when promoting.
Kubegres should try to heal itself by failing over to a replica. Have you enabled failover?

I have, or more to my understanding, failover is enabled by default is it not?
It seems when I have a catastrophic failure and 2 of my 3 pods go down, the primary and a replica, the last replica has no idea what to do. I guess because it can't create quorum and decide to promote. But I thought that was the point of the force promote setting?
I'm going to try with 6 replicas. Will that help with quorum in the event of a failure like this?

I have no idea how but increasing replicas to 6 made the last replica kick into gear and it repaired itself. I feel like the issue still exists in general but it personally doesn't affect my situation anymore.
For that reason I'll leave this open if the dev gets a chance to look at and address this.

Again I'm having this issue. I have some unrelated problems with my cluster that I'm working on but in the meantime, my inability to promote replicas to primary is holding me back from bringing postgres online. In the logs the controller keeps referring to an old, since killed pod as the primary.

My kubegres manager just keeps saying this over and over:
2022-08-12T20:19:08.018Z	DEBUG	controller-runtime.manager.events	Warning	{"object": {"kind":"Kubegres","namespace":"nextcloud","name":"postgres","uid":"6bbfacb2-999a-4064-9125-08cf5441e7c0","apiVersion":"kubegres.reactive-tech.io/v1","resourceVersion":"96337781"}, "reason": "FailOverTimedOutErr", "message": "Last FailOver attempt has timed-out after 300 seconds. The new Primary DB is still NOT ready. It must be fixed manually. Until the PrimaryDB is ready, most of the features of Kubegres are disabled for safety reason.  'Primary DB StatefulSet to fix': postgres-76 - FailOver timed-out"}

Postgres-76 doesn't exist anymore, it was killed. Why is it not triggering failover?

By adding the promote_replica_to_primary.log file I managed to make a replica promote itself, but the manager doesn't know about it and the service endpoint isn't pointing to the primary for other apps to contact the database.
I need the manager to know the replica it is trying to promote is dead.

You can manually promote a 2nd replica with following commands:
Verification for DB
pg_controldata /var/lib/postgresql/data/pgdata/
To recover from recovery mode
pg_ctl promote -D /var/lib/postgresql/data/pgdata/
and to sync the operator with postgreSQL pods,
overwrite the labels of both sts and pod as primary, deploy another sts as replica for WAL streaming and backup(which will be deleted later on)...
delete and redeploy the manually promoted sts with primary configuration,
later delete  the manually deployed replica sts for backup as operator will deploy the replicas itself after having it synced with primary.
Hope this will be helpful!


put the solver state out of the rosenbrock class to remove need to sp…

Closes #185. When accessing the solver results you no longer need to type RosenbroclSolver<Matrix, SparseMatrix>, which was cumbersome.

Codecov Report
Patch and project coverage have no change.

Comparison is base (604b5de) 97.19% compared to head (f7296db) 97.19%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #216   +/-   ##
=======================================
  Coverage   97.19%   97.19%
=======================================
  Files          29       29
  Lines        2428     2428
=======================================
  Hits         2360     2360
  Misses         68       68

Files Changed
Coverage Δ

include/micm/solver/rosenbrock.inl
96.65% <ø> (ø)

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


Determine formatter for 'auto' (no longer fallback to syntax_tree).

Motivation
Ruby LSP supports two formatters, RuboCop and syntax_tree. When formatting is set to auto, we check for RuboCop, and use that if available, otherwise we fallback to syntax tree.
This means for the repos which use neither, we were applying syntax tree formatting. This led to unexpected changes in formatting.
Implementation
A better way is to check for the presence of RuboCop or syntax_tree in Gemfile.lock. But we want to avoid false positives through transitive dependencies, so we only check for direct dependencies.
We also want to support RuboCop-based gems such as rubocop-shopify, so we pattern match on gems beginning named ^rubocop.
Automated Tests
Included
Manual Tests
With rubyLsp.formatting set to auto:

Open a repo which doesn't use any formatter, e.g. ruby/debug. Add ruby-lsp to the Gemfile, pointing to this branch. Ensure that no formatting is applied when saving a file.
Open a repo which uses RuboCop, e.g. Shopify/tapioca. Add ruby-lsp to the Gemfile, pointing to this branch. Ensure that RuboCop formatting is applied when saving a file.
Open a repo which uses Syntax Tree, e.g. https://github.com/andyw8/syntax_tree_example. Add ruby-lsp to the Gemfile, pointing to this branch. Ensure that Syntax Tree formatting is applied when saving a file.

With rubyLsp.formatting set to none:

Open a repo which uses RuboCop, e.g. Shopify/tapioca. Add ruby-lsp to the Gemfile, pointing to this branch. Ensure that formatting is not applied when saving a file.

With rubyLsp.formatting set to rubocop:

Open a repo which doesn't use any formatter, e.g. ruby/debug. Add ruby-lsp to the Gemfile, pointing to this branch. Try format the file and verify you see an error "Formatter is set to 'rubocop' but RuboCop was not found".

With rubyLsp.formatting set to syntax_tree:

Open a repo which uses RuboCop, e.g. Shopify/tapioca. Add ruby-lsp to the Gemfile, pointing to this branch. Ensure that syntax_tree formatting is applied when saving a file.

(syntax_tree is always available since it ships with Ruby LSP)
Known Limitations
On a repo which has syntax_tree but also has a gem named rubocop-*, e.g. https://github.com/discourse/discourse it will wrongly use RuboCop formatting.

What do you think about moving this logic to Executor instead and just saving the result in the original @formatter option?

I've moved it into there. I have a slight concern that Executor is growing quite large (> 500 lines), so we might want to starting thinking about if there's anything that could be extracted out of there.

Discourse is an interesting edge case for this: It uses syntax_tree, but also has a few custom cops in a rubocop-discourse gem.
https://github.com/discourse/discourse/blob/552697e194c840b687b00c6125504734121205ef/Gemfile#L164-L171
One thing we could do to help improve the accuracy is to check for a .streerc file.

In ambiguous cases, I would say the best option is to configure the formatter instead of using auto.

@st0012 I have verified on Core as suggested.


Add bounding_box related schemas

Add schemas for bounding_box and related properties.
Fixes #26.

Do we need separate schemas for BoundingBox and CompundBoundingBox or should these be in one schema file?
Also should the schema be aded to the manifest-1.0.0 file?

Do we need separate schemas for BoundingBox and CompundBoundingBox or should these be in one schema file?

I was thinking separate schemas as CompoundBoundingBox is essentially a dictionary of BoundingBox objects together with a little bit of extra information.

Also should the schema be aded to the manifest-1.0.0 file?

I have not gotten this far yet.

Also should the schema be aded to the manifest-1.0.0 file?

Not in this case, since there won't be a tagged bounding box object (it's just a vanilla array).

Also should the schema be aded to the manifest-1.0.0 file?

Not in this case, since there won't be a tagged bounding box object (it's just a vanilla array).

Will we need to update the transform schema to include bounding box?

Will we need to update the transform schema to include bounding box?

Yes, that need to $ref in the bounding box schema


fix: interactive postinst script breaks install for non-interactive environments

With the latest Stable release, first-time Debian package users have to confirm whether they want to add the Microsoft repository or not.
This PR adds more checks so that users in non-interactive or CI environments could opt in or opt out of installing the repository by explicitly setting the debconf value before starting the install. Machines without debconf are automatically opted in to installing the repository to match with the previous behaviour.
Closes https://github.com/microsoft/vscode/issues/22145

Verification build https://dev.azure.com/monacotools/Monaco/_build/results?buildId=295874&view=results

I realized I forgot to verify the build.
Verification for the previous build failed.
New verification build: https://dev.azure.com/monacotools/Monaco/_build/results?buildId=297436&view=results

Verification build: https://dev.azure.com/monacotools/Monaco/_build/results?buildId=302187&view=results

Verification build LGTM.


Microsoft Notes application issue

Environment
Windows 10
Windows build number: Microsoft Windows [Version 10.0.17763.1131]
PowerToys version: v0.16.1
PowerToy module for which you are reporting the bug (if applicable): Fancy Zones

Steps to reproduce
Setup fancy zones and then open the Microsoft Sticky Notes application (version <IP_ADDRESS>). Then try to put different sticky notes into one of the "Fancy Zones".
Expected behavior
I expected the fancy zones to show up when attempting to move a note into a zone.
Actual behavior
When moving a sticky note or the notes list window around while holding the shift button down the zones do not show up. I have not been able to add ANY of the sticky notes windows into a 'Fancy Zone' at all. This would be extremely useful if it worked with the sticky notes application, but I can't seem to get it to work.
Screenshots
I can't actually get a screenshot to show this issue, but I have included a screenshot of the application (Microsoft Sticky Notes) in the Microsoft Store so you guys would know the exact application that isn't working with the Fancy Zones module.

someone just filed an issue against sticky notes.  #2172


Fix issue with non-ascii character in shell script text

I got UnicodeDecodeError when using non-ascii character in shell script.
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe3 in position 0: unexpected end of data

How to reproduce
I added some non-ascii test. This test can can reproduce the error on v1.0.11 or v1.1.0(latest), but not on v1.0.10. So is seems v1.0.11 is the first version to reproduce.
https://github.com/ktdreyer/jenkins-job-wrecker/compare/v1.0.10...v1.0.11
I think this error occurred by following reasons.

xml.etree.ElementTree parses xml text node as type <unicode>, when a xml text node contains non-ascii character.

In Shell builder, shell script text was converted to type str by calling str(shell_element.text).   https://github.com/ktdreyer/jenkins-job-wrecker/blob/master/jenkins_job_wrecker/builders.py#L89
This convert runs anytime even if shell script text was parsed as type <unicode> by containing non-ascii character. Note that we can reproduce UnicodeDecodeError by following.

#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import sys
import yaml
reload(sys)
sys.setdefaultencoding('utf-8')
yaml.add_representer(str, lambda dumper, data: dumper.represent_scalar('tag:yaml.org,2002:str', data))
yaml.dump(str(u'你好')) #=> throws UnicodeDecodeError: 'utf8' codec can't decode byte 0xbd in position 0: invalid start byte

(v1.0.10 or lower) Shell script text was converted to type <str>.
And it was re-converted to literal_unicode by format_shell_scripts method.
https://github.com/ktdreyer/jenkins-job-wrecker/blob/v1.0.10/jenkins_job_wrecker/cli.py#L108
So after all, shell_element.text was treated as type <unicode>.

(v1.0.11 or higher) the format_shell_scripts method was removed.
So shell_element.text was treated as type <str>, and this occurs UnicodeDecodeError.

How to fix

In shell builder, treat shell_element.text as is.
Revert unicode representer.

Thank you so much for writing a test for this!
I just merged a large refactor to master (v1.2.0). Would you mind verifying that this bug is still an issue, and if so, rebase your changes?
(CC'ing @jcderpton in case he wants to review)

Looks fine, merge master in first though to resolve conflicts caused by the refactor.

Thanks!
- job['name'] = str(name)
+ job['name'] = name

I found that non-ascii job name throws error in both str(name) or name.
The args.name is type str, not <unicode>.
So I converted name to <unicode>, and also changed non-ascii test to give non-ascii job name.
The non-ascii test fails on v1.3.0, and rebased revision 008a41a would fix the bug.
This revision pass all test in my environment, but fails on travis.
We have to stop using call() to run jenkins_jobs test in test_jjb.py#L22:
https://github.com/ktdreyer/jenkins-job-wrecker/blob/v1.3.0/tests/test_jjb.py#L22
When running jenkins_jobs test with call(), jenkins_jobs run with default encoding (i.e. 'ascii').

My apologies for the delay in merging this. Thank you for contributing the fix

I've tagged v1.4.0 with this change and pushed it to PyPI. Thank you!


Styles applying incorrectly issue on IE 10 on Win 8

Styles are getting applied partially and to wrong block of text
Can reproduce on advanced demo. Put following into editor:
h1 text
h2 text
other text
bullet 1
bullet 2
number 1
number 2
Highlight "h1 text" and click h1. Styles apply properly
Then highlight "h2 text" and click h2. Style is applied to "other text"
Highlight "bullet 1" & "bullet 2" and click "insertUnorderedList and it gets applied to "number 2"

Any workarounds for this issue? I can reproduce it sporadically on IE11 when inserting lists. The text I type after inserting a list is added just before the ol / ul tag and not in the list element where it should be. It requires a second mouse click or arrow key usage to move the cursor into the li


Additional stopping criterion: objective function value

Hey there,
for benchmarking purposes it would be very helpful if biteopt could be stopped when it reaches a given objective function value. This is also done in nlopt for example. Would you be open to implement this in biteopt?
As another example: For a recent addition to scipy (DIRECT), we chose to have two keywords: f_min and f_min_rtol, the desired relative tolerance within f_min.

I've added the f_min parameter to biteopt_minimize(). Careful with parameter order as the function now has a lot of parameters. I think f_min_rtol can be converted to f_min by the caller as benchmarks usually use their own approach. Some just add a constant, others use percentage. Also, zero f_min values are often handled differently: I prefer equate zero to 1e-6, others prefer fullscale 1e-15.

Also note that stopc is now preferrable to be multiplied by 128, and not 64. In many complex problems, 1*64*dims stops too early, for example. Some combinatorial problems give good results while still offering a performance advantage with stopc as large as 20 or 30.

Thanks!

Last minor think: I think the README needs an update too. The API description does not contain the new parameter.

@dschmitz89 Hi! Have you had time to compare DIRECT to BiteOpt? Which one wins in SciPy?

Biteopt is clear winner solved 179 out of 194 benchmark problems of scipy's test suite with an outdated biteopt version.
Properly wrapping biteopt in scipy is still an open topic

Thanks. Note that "fmin" is a pointer, so your worry does not apply.

@dschmitz89 Please help me resolve my "Seasickness". You (and others) admit Biteopt is winner, yet no hurry to include it into Scipy to help many scientists to solve practical problems. I just want to understand, maybe there's some psychological or even political culprit exists.
By the way, I plan to implement "out of the box" multi-threaded biteopt_minimize in case Biteopt is included into Scipy... At the moment there's no motivation.

Hi! How this progresses, if at all? By the way, how DIRECT fares against latest BiteOpt, in the framework of Scipy optimization benchmark?


Bugfix/hd 939 2

Second batch:
Bump eslint-config-airbnb-base from 13.1.0 to 14.2.0  …
Bump jsdoc from 3.6.4 to 3.6.5  …
Bump typescript from 3.9.7 to 4.0.2  …
Bump nock from 11.9.1 to 13.0.4  …
Bump @types/node from 14.0.25 to 14.6.2

Hello benoit-a,
My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.
Status report is not available.

Waiting for approval
The following approvals are needed before I can proceed with the merge:

the author

2 peers

/approve

Waiting for approval
The following approvals are needed before I can proceed with the merge:

the author

2 peers

The following options are set: approve

In the queue
The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.
The changeset will be merged in:

:heavy_check_mark: development/1.0

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of the admin team will
contact you to help resolve the matter.
IMPORTANT
Please do not attempt to modify this pull request.

Any commit you add on the source branch will trigger a new cycle after the
current queue is merged.
Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of the admin team now.
The following options are set: approve

I have successfully merged the changeset of this pull request
into targetted development branches:

:heavy_check_mark: development/1.0

Please check the status of the associated issue HD-939.
Goodbye benoit-a.


Multi-TFM build failure : Asset file missing Target

From @jinujoseph on February 2, 2017 21:14

Create a .Net standard class library
Edit the csproj and change TFM to
<TargetFrameworks>netstandard1.4</TargetFrameworks>
will be promoted to reload
Build
Edit the csproj and change to
 <TargetFrameworks>netstandard1.4;netstandard1.0</TargetFrameworks>
Build

Expected
Builds successfully
Actual

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.targets(76,5): error : Assets file 'c:\users\jinuj\documents\visual studio 2017\Projects\ClassLibrary10\ClassLibrary10\obj\project.assets.json' doesn't have a target for '.NETStandard,Version=v1.0'. Ensure you have restored this project for TargetFramework='netstandard1.0' and RuntimeIdentifier=''.

I have tried restoring the solution and rebuilding , which doesn't resolve the issue
Note: Closing and reopening the project fixes it.
Build: 26201.01.d15rel
Copied from original issue: NuGet/Home#4479

From @davkean on February 3, 2017 0:10
Changing the TFM -> TFMs, should have prompted a reload, no?

Upon investigation it turns out that the project isn't getting nominated in the following scenarios:

When TargetFrameworks is set to netstandard1.4 , and I add another framework say, netstandard1.0
adding a property like Version doesn't nominate the project.

@mavasani is this fixed with your PR to clear the contexts?

@Srivatsn, no my change is specific to editing "TargetFramework" not "TargetFrameworks"

@mavasani Should you be including changes to TargetFrameworks as well?
@rohit21agrawal  - Looking at NuGetRestore.xaml[https://github.com/dotnet/roslyn-project-system/blob/master/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Rules/NuGetRestore.xaml] Version is one of the properties for which we nominate - so i'm surprised. @natidea can you look into that?

@srivatsn - the scenario here is specific to build, and my changes are specific to design time build in LanguageService. Design time builds work fine for TargetFrameworks edit case as each framework dimension creates a different configured project, which is not the case when TargetFramework is edited.

That's right - my mistake but I think it's related. My guess is that there's either a bad design time build or a bad update and we're nominating restore. Closing and reopening the project works because we nominate restore.

This seems to have regressed. When I modify TargetFrameworks, the subscriptions are reset as expected -- however a subscription update is not being fired immediately after the reset, as it always has before. Subsequent changes also are not firing which indicates the new subscriptions are not taking.

That's probably a good sign that the block has failed probably due an unhandled exception./

I have not been able to detect any exceptions in the debugger around this scenario.
I notice that if I start out with one TFM pair, (e.g. <TargetFrameworks>netstandard1.4;netstandard1.0</TargetFrameworks>), changing it to a different pair
(e.g. <TargetFrameworks>netstandard1.4;netstandard1.3</TargetFrameworks>) does not trigger a subscription update. But changing it back to netstandard1.4;netstandard1.0 does. This is despite the fact that we are disposing these subscriptions each time we reset. Its like something deeper in the stack is holding on to the old subscription.

Talking to @lifengl, this is because we're expecting configurations to agree on their configured project version. These, however, are you unique versions per configured project and aren't expected to match. It's a coincidence that they do match in these cases where the event is fired.
Here's our offline conversation:
[02/14/17 12:15 PM] Lifeng Lu:
the problem is an old design problem in our code
we predefined some data source version keys, like the configuredProjectVersion
[02/14/17 12:16 PM] Lifeng Lu:
all configured project uses the same key for that... it is hard to change that, because it is a part of the public API
many code uses it
when you merge data from those configure projects, we don't know which one is which
[02/14/17 12:18 PM] Lifeng Lu:
syncLinkTo will require all of them match before publishing data to the next level, because it wants data from all sources consistent (basically, it must have the same version number for all data source version keys)
but each configured project maintains its own configuredProjectVersion, they may never match
so your dataflow will be blocked forever
[02/14/17 12:19 PM]
Yeah, that's what we're seeing
[02/14/17 12:19 PM]
we want them to agree on the underlying project file version
[02/14/17 12:20 PM] Lifeng Lu:
we thought about that (I thought we discussed with Anton), and think we eventually want to use a different key for different configured project
for all independent version number
but maybe still need retain old public version number there
[02/14/17 12:21 PM] Lifeng Lu:
to make your code to work, you must do some workaround
[02/14/17 12:22 PM] Lifeng Lu:
either you don't use the syncLinkTo at all
I mean, your code will handle changes from all projects, and handle them directly
anyway, how much benefit you get from syncLinkTo?
[02/14/17 12:24 PM]
We just want to be called back once when they all agree on data
[02/14/17 12:25 PM] Lifeng Lu:
Hmm... I don't think we have a way to know how to align different configurations after one change :(
seems to be a gap in the design
[02/14/17 12:27 PM] Lifeng Lu:
but maybe your code can wait the dataflow carries the configuredProjectVersion matching the current value of the configured project, and skip all the middle state?
[02/14/17 12:29 PM] Lifeng Lu:
if you want to use syncLinkTo, you can add an extra block to remove all conflicting versions (maybe mapping them to different keys) before feeding a syncLinkTo block,
so it can merge unconfigured project level versions
[02/14/17 12:30 PM]
But what exactly would they sync on?
[02/14/17 12:35 PM] Lifeng Lu:
some unconfigured project level data sources, like the MSBUild GlobalProject properties
[02/14/17 12:37 PM]
There's not something that represents the project file version?
[02/14/17 12:38 PM]
Or is this a concept that only occurs at the configured project level
[02/14/17 12:38 PM]
?
[02/14/17 12:39 PM] Lifeng Lu:
it only occurs at the configured project level, no file version

We need to sit down and design the fix here and given the workaround, that's not going to meet the bar for RTM. Moving to 1.1.

Looking through CPS, I found the following code which is an interesting way to represent a "project version" (vs a "config version"):
        /// <summary>
        /// Responds to direct project file changes by incrementing an opaque version number.
        /// </summary>
        private Task ProjectLockService_ReleasingWriteLockAsync(object sender, ReleasingWriteLockEventArgs e)
        {
            if (e.WrittenProjectXmlPaths.Contains(this.UnconfiguredProject.FullPath))
            {
                Interlocked.Increment(ref this.projectVersion);
            }

            return TplExtensions.CompletedTask;
        }

The scenario has been fixed with #2298. However https://github.com/dotnet/project-system/issues/2324 tracks making a more complete fix for it.


google_sign_in  version 5.0.1

Resolving dependencies...
Because google_sign_in >=5.0.1 depends on google_sign_in_platform_interface ^2.0.1 which depends on quiver ^3.0.0, google_sign_in >=5.0.1 requires quiver ^3.0.0.
And because every version of dependencies depends on quiver ^2.0.1, google_sign_in >=5.0.1 is incompatible with dependencies.
So, because our_app depends on both dependencies any and google_sign_in ^5.1.0, version solving failed.

Your dependencies cannot resolve a version for quiver as two (or more) depend on different versions that exclude each other.
Could you provide the contents of your pubspec.yaml?
Regardless, I believe this is not a Flutter issue, but a mere dependency conflict.
If you use quiver directly, try bumping it to quiver: ^3.0.0
If you don't use it directly, but one of your package dependencies requires it,
try bumping the affected package dependency so that it requires quiver: ^3.0.0.

Because google_sign_in >=5.0.1 depends on google_sign_in_platform_interface ^2.0.1 which depends on quiver ^3.0.0, google_sign_in >=5.0.1 requires quiver ^3.0.0.
And because every version of dependencies depends on quiver ^2.0.1, google_sign_in >=5.0.1 is incompatible with dependencies.

The error message indicates, you'll need to use quiver ^3.0.0 to resolve it.  Please upgrade to mentioned version which hopefully should resolve your issue.
Closing from here.


feat: Add GitHub Actions workflow for Gradle build

Pull Request Template
Description
This pull request adds a GitHub Actions workflow to automate the build process for the project. The workflow runs gradle build on every push and pull request to ensure that the code is consistently built and tested.
Related Issue
#111
Changes
Created a new GitHub Actions workflow file (.github/workflows/gradle-build.yml).
Configured the workflow to trigger on push and pull request events.
Added steps to:

Check out the code.
Set up JDK.
Run gradle build.

Testing Instructions

Impact Analysis

[ ] Breaking change: This change introduces breaking modifications.
[x] Non-breaking change: This change does not introduce breaking modifications.
[ ] Disrupts existing functionality: This change disrupts the functionality of existing features.
[x] Does not disrupt existing functionality: This change does not disrupt the functionality of existing features.

Screenshots (if applicable)

Checklist

[x] I have tested the changes locally and they work as expected.
[ ] I have updated the documentation if necessary.
[x] I have reviewed the code and ensured it follows project standards.
[x] All tests (if applicable) pass successfully.
[ ] I have added myself to the list of contributors if this is a significant contribution.

Additional Context

Build gradle is giving error:

I think the error was due to permissions in my workflow.


[Question]

Question
When the contextPath is changed, such as changing from my-hen to shen-api, and restarting the service, the original contextPath my-shen can still access the service. Generally, my-hen no longer has a corresponding node and should not be accessible. It should be accessed through the new contextPath shen-api. Is this normal? How do I stop accessing the old contextPath? Where should I focus on the source code for registering an IP port to admin?

currently, if you change context-path, shenyu can't remove the selector and rule, if you want to remove it, you can focus on shenyu-admin, try to remove? about shenyu reigster client, maybe you can see org.apache.shenyu.client.springmvc.init.SpringMvcClientEventListener

can you fix it?

I know that shenyu register client cannot add a selector handle to the shenyu-admin, if you can wait a minute, I will fix it.

thanks


Issue with work account

Hi. I enjoy MStoDO a lot and I think that this addson is great, but I cannot make it work with my work account. It keeps asking for an approval. Can you fix it?
Thanks

This is about domain administrator approval of upmc.edu


Add 1.21 support

Spark link
No response
Plugin Version
latest
Server Version
1.21
Server Platform
Paper
Describe the bug
Doesn't work
Steps to reproduce
Start the server
Additional context
No response
Agreements

[X] I have searched for and ensured there isn't already an open issue regarding this.
[X] I ticked all the boxes without actually reading them
[X] My version of Minecraft is supported by CrazyCrew.

We dont support 1.21 yet, I will not release 1.21 builds until Paper announces all patches and rewrites they plan are added.

We dont support 1.21 yet, I will not release 1.21 builds until Paper announces all patches are added and rewrites of key systems like chunks they are actively working on are done. They are still only offering experimental downloads.

Lazy


where is set_background implemented?

I'm using a customized version of the face_alignment.py example and would like to be able to change the background color that gets set for areas inside the chip boundary that don't contain image pixels. As far as I can tell this happens when the set_background function runs, but I can't tell where the background color is being set. Is there a way to change the background color to be something other than 0?

There is no such option.  If you want to do something different you will
have to code up something specifically do that.

Thanks for the clarification. Any pointers as to where the background color is currently being set, though? I thought there might be a default to use black in one of the functions but I haven't tracked down where.


declare a default notebook which is automatically opened without password data

The idea behind this feature is, that there could be some standard notes, which should be visible to everyone without having access to the other notebooks.

Although I don't see a lot of use cases for such a feature, I agree this would certainly be a nice-to-have.
Should probably be implemented AFTER #14 and #9.
Feel free to contribute 🙂


e2e: add host match routing e2e case

Signed-off-by: bitliu<EMAIL_ADDRESS>Add hostname match in the same namespace e2e test case.

Codecov Report

Merging #160 (6a3908e) into main (1b8ec8d) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

@@           Coverage Diff           @@
##             main     #160   +/-   ##
=======================================
  Coverage   42.21%   42.21%
=======================================
  Files          29       29
  Lines        4866     4866
=======================================
  Hits         2054     2054
  Misses       2651     2651
  Partials      161      161


Uninitialized fields of record outputs of functions

Reported by stefanv on 10 Dec 2014 17:34 UTC
Modelica.Media.Water.waterBaseProp_pT returns a record of type Modelica.Media.Common.IF97BaseTwoPhase.
The function handles four different "regions", and in the if-statement branches for those, it doesn't always assign all of the fields of the output record.
Does that make it an incorrect function? If not, what are the returned values of those fields?
Here's a simplified example:
record R
    Real a, b, c;
end R;

function F
    input Integer region;
    output R rec;
algorithm
    if region == 1 then
        rec.a := 1;
        rec.b := 2;
    else
        rec.b := 3;
        rec.c := 4;
    end if;
end F;

For the call, r = F(1), what is the value of r.a ?

Migrated-From: https://trac.modelica.org/Modelica/ticket/1628

Comment by hubertus on 10 Dec 2014 18:50 UTC
Hi Stefan,
This code was created when Modelica was at version 1.6 and never updated, keep that in mind. I think that all fields should be initialized, so this could be filed as a but for MSL.
In this particular case it would be great to have a symbolic UNDEFINED, as has been discussed elswehere. What to do with such record entries is maybe worthwhile discussing in the language group. It may be an option to leave it without assignment, I'd prefer to set a symbolic undefined.
Hubertus

Comment by jmattsson on 11 Dec 2014 08:34 UTC
The spec says:
The local variables of a function are not automatically initialized to the implicit default values of the data type (Section 12.4.4) ![(e.g. 0.0 for Real) for performance reasons. It is the responsibility of the user to provide explicit defaults or to define the values of such variables before they are referenced.!]
I'd say that it would probably be a good idea to detect uninitialized variables in functions with a simple program flow analysis, give a diagnostic and initialize it to the default value anyway. The first two are tool issues, but the last probably needs a spec update to be allowed.
The same issue occures in Modelica.Electrical.Spice3.Internal.Diode.diodeCalcTempDependencies - out_c.m_tBrkdwnV is left unassigned for some cases.

Comment by jfrenkel on 11 Dec 2014 11:55 UTC
Some links to Tickets with the same issue:

#930
#1422
#1423
#1424
#1425
#1427
#1428
#1429
#1430
#1440

Interesting for a "simple programm flow analysis" are #1243 and #1424 with the issue of 0-Dimension Variables.
A disscusion about that was already started in #1440.

Comment by hansolsson on 23 Feb 2015 17:19 UTC
Modelica design:
Library should be updated.
The Modelica function should assign to the entire output, including all fields of it (excluding empty arrays - i.e. all elements of the array should be assigned, not the array).
A tool could use NaN, and invalid pointer for strings to be able to detect it (not as easy for Boolean, Integer, and Enumeration - could use invalid values for Boolean and Enumeration). On the other hand to just run predictably it is better to use zero/empty string/false.

Modified by beutlich on 19 Mar 2015 09:49 UTC

Modified by stefanv on 30 Sep 2015 11:57 UTC

Comment by hubertus on 13 Dec 2015 01:38 UTC
Fixedin 6dcfe04f67ecc0aef4b5ac2d57cd7cacc748214a n trunk

Changelog modified by hubertus on 13 Dec 2015 01:38 UTC
Missing initialization fixed in Water IF97


It should be possible to get the two independent readout error rates from a Target object

What is the expected feature or enhancement?
It is possible to grab the two independent readout error rates from the backend.properties:

props = backend.properties()
P01 = props.qubit_property(0, 'prob_meas0_prep1')[0]
P10 = props.qubit_property(0, 'prob_meas1_prep0')[0]

It would be nice if this information was included in the backend.target so that (at least in this instance) users can get all information from a single object.
Acceptance criteria
The 2 readout error rates are in the Target

For reference the pattern to do this is to make a custom InstructionProperties subclass that extends it with custom properties for a given backend. There is an example of how to do this in qiskit's unit tests here:
https://github.com/Qiskit/qiskit/blob/fe275a0f15132073c6b5afb0c4be8bcc351479cb/test/python/transpiler/test_target.py#L1015-L1028
This is similar to what is already done for QubitProperties here: https://github.com/Qiskit/qiskit-ibm-runtime/blob/4b938ed28596909e53a23d4433fc96959536b41c/qiskit_ibm_runtime/ibm_qubit_properties.py#L18 which adds anharmonicity and a boolean for the operational state for each qubit in the target.


You want to add the sorting function of the record view

The content uses translation software
In previous versions, fields can be sorted by switching to the record view after opening a table. This function can quickly find the target field when there are many fields in the table. However, after updating the version to <IP_ADDRESS>212251901, it is found that this function is missing. I hope it can be added back

Thanks for the report.
This is duplicate of https://github.com/dbeaver/dbeaver/issues/18618


Questions about the dataset.

Dear author, thank you  for your excellent work!
I was wandering where do you get the training annotation file of ShanghaiTech Campus dataset? For I see that the original dataset is unsupervised, providing no annotation files during training. If you obtain it from other repo or paper. Can you please paste the link?
That will be great help.

Please refer to this repo: https://github.com/jx-zhong-for-academic-purpose/GCN-Anomaly-Detection.
Best,
Yujiang
---- Replied Message ----
From Lucas Chen @.> Date 08/04/2023 13:28 To Aaron-Pu/PEL4VAD @.> Cc Subscribed @.***> Subject [Aaron-Pu/PEL4VAD] Questions about the dataset. (Issue #3)
Dear author, thank you for your excellent work!
I was wandering where do you get the training annotation file of ShanghaiTech Campus dataset? For I see that the original dataset is unsupervised, providing no annotation files during training. If you obtain it from other repo or paper. Can you please paste the link?
That will be great help.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Please refer to this repo: https://github.com/jx-zhong-for-academic-purpose/GCN-Anomaly-Detection. Best, Yujiang
…
Thank you very much!
I think there is only the train and test split in this rope. Can you please tell how you get the labels or a notions of the train split? Including 0/1 label for weakly supervised training and prompt label like 'cycling' for prompt learning.

The original dataset contains 300 normal training samples and 107 abnormal test samples, you can refer to this link: https://svip-lab.github.io/dataset/campus_dataset.html. In addition, the annotations used for Prompt learning were manually labeled, as mentioned in our paper.

Thank you very much.


Removed [brakeman, guard-brakeman] gems

Removed brakeman and guard-brakeman gems
because of change in brakeman's license.

Checked Travis CI run - all green.

Awesome, thanks @jasnow if it ends up being a problem we can revert.
To be clear, I'm not wanting to remove because of the license. The removal is because
@presidentbeef had told me not to include it in your Rails app a long time ago and totally forgot to remove it 😂

Fixed comment


WIP: Dockerfile changes for performant docker build copying of large …

…directories.
For some reason my docker (20.10.2) on ubuntu couldn't build your Dockerfile.
It bailed out with 100% CPU on the COPYing of the submodules dirs 4bytes and trustwallet :cry:
As a temporary workaround I'm zipping the files before the docker build and extracting them inside the container which works perfectly and is fast. If you have an idea why that's the case we can also get rid of the zippery.
I've already tested it with my erigon PR and pushed an additonal commit for using the built docker image from your repo:
https://github.com/wmitsuda/erigon/pull/1/commits/32ef882e369575651d755a06d2b2d6892339a100

That is interesting... maybe it is related to these directories (mainly 4bytes) having a lot of files. I'll search if there is some best practice to follow in this type of situation.

BTW, did you notice if this happens during the 4bytes copying or the trustwallet copying? 4bytes repo is smaller, but it has a lot of very small files. trustwallet is less files, but they are bigger.
I suspect it has something to do with specifically with 4bytes.

Just ran wc -l here, 4bytes has precisely 269868 small files in just one directory.

Yes, I'm only experiencing this with the 4bytes dir, maybe I'm also too impatient but it shouldn't take more than 5 minutes if cp takes only 10 seconds :joy:
Thanks to you already merged the https submodule PR I've adapted the Dockerfile to copy the 4bytes signatures and trustwallet assets directly from the builder image. I checked the amount of files on the host and inside the image 4bytes dir they matched.
The resulting image has 166MB and you can try to build it like this:
export VERSION_TAG=feature/docker-experiments
docker build -t otterscan:docker-experiments \
    --build-arg VERSION_TAG=$VERSION_TAG \
    --build-arg REACT_APP_ERIGON_URL=$REACT_APP_ERIGON_URL .

Later on we can tag the docker image with the VERSION_TAG e.g. v2021.07.01-otterscan but now for testing it's hardcoded.

Okay, just added a stock github workflow to create docker images and push them to ghcr.io automatically:
https://github.com/mariuspod/otterscan/pkgs/container/otterscan
That's pretty handy for testing and it's self-contained and near the source code imo.
As mentioned before the VERSION_TAG is still hardcoded but that could be changed I guess to reflect the current branch/tag.
Do you plan adding it to dockerhub or is ghcr also an option ?

I was planning to add it to dockerhub, TBH I didn't know about ghcr, is it a popular registry nowadays?
I'm planning to cut a release after rebasing today's Erigon release and publish a new Otterscan release also, but now offering the docker image as a official way for consuming the app, no more local builds if you just want to run otterscan.

Well it depends a bit if you want to integrate it directly with a CI/CD workflow into github then ghcr is really nice.
Also I it's super nice that you get also the README from your github repo which is auto-included into the package description of the image. I like it :-)


Upgrade to<EMAIL_ADDRESS>

Upgrade to https://github.com/celestiaorg/celestia-core/releases/tag/v1.3.3-tm-v0.34.20

Codecov Report

Merging #616 (59af85c) into main (24bbf82) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #616   +/-   ##
=======================================
  Coverage   29.78%   29.78%
=======================================
  Files          16       16
  Lines        2055     2055
=======================================
  Hits          612      612
  Misses       1382     1382
  Partials       61       61

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


Saving not working

Not sure if it's a quirk of my installation, but so far every autosave fails with an in game error message and so do manual saves

Haven't seen this time before. Is it working after restarting the game?

I've given it another test after restarting, same result

What map are you playing on? Or is it reproducible on all of the maps + campaign?

I tried it on one of the first "Single Scenario" maps

Or, I'm really confused by this, since I can't reproduce it no matter what.
So either something is wrong with install or maybe some plugin is causing it.
Could you drop a list of installed plugins? Because I'm running low on ideas.

Ok, so basically you have to create an empty "pref" folder inside ux0:data/homm3hd/. It was empty inside the obb, so you've probably just skipped it. I should probably check if it's there during the start of the game and create it if needed.

Thanks, that makes sense, and is probably the solution.
I'll report back later on when i have some time to check!

Fixed in v1.0.2
https://github.com/Northfear/homm3hd-vita/releases/tag/v1.0.2

Confirmed your fix


Change reference from vcard:AddressBook to vcard:VCard

vcard:AddressBook is not defined in vcard-rdf.
vcard:AddressBook is used in the context for solid:forClass in the Type Indexes specification. References to "address book" should use vcard:VCard (as in the case with solid:forClass).

Noting that https://github.com/solid/type-indexes/pull/26 proposes to use TI for "high level index" so that libraries with domain specific indexes can be referenced. While an address book is among a good example of such index, it can't be expressed with vCard as it stands without introducing new definitions (vcard:AddressBook or another).

vCard:AddressBook is in use in the contacts pane https://github.com/SolidOS/contacts-pane/blob/6c59f2a9186c4c52f250d6687cc3476bc69a2cd4/shapes/contacts-shapes.ttl#L34
Given this, perhaps a more appropriate solution is to change both this spec and the contacts pane to use solid:AddressBook, or to define a new vocab management process by which new high level indexes can be defined designed for use specifically with Solid?


Stop extending Mock

Extending Mock makes it possible to call Mockito methods like when even though that's not how the library should be used. See #26.

Kind of blocked by https://github.com/dart-lang/sdk/issues/41147.

Done at https://github.com/atn832/cloud_firestore_mocks/commit/5f1e4a7451eea75ee899ee20a399ed6d75759a67 and released at https://pub.dev/packages/cloud_firestore_mocks/changelog#083.


I want to use xml in my Fastfile, so I add rexml in that file, but why the include can't be recognized?

Question Description
I want use REXML, code like this:
#!/usr/bin/ruby
require 'rexml/document'
include REXML
this is the mistake
[!] Could not find action, lane or variable 'include'. Check out the documentation for more details: https://docs.fastlane.tools/actions

require "rexml/document"
file = File.new( "mydoc.xml" )
doc = REXML::Document.new file
using this other than include solve my problem.

Because include in Ruby works different than e.g. in PHP or C. This eplxains it quite well: https://stackoverflow.com/questions/318144/what-is-the-difference-between-include-and-require-in-ruby


TextField with 3-rd party plugin broken in v5

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
TextField with Draft.js (3-rd party plugin) breaks just by updating to v5. It fails to focus and the input box style is shrinked.
https://codesandbox.io/s/react-stripe-elements-textfield-integration-forked-8b8rn?file=/src/CreditCardDetail.js

Expected Behavior 🤔
TextField with Draft.js (3-rd party plugin) easily editable.
https://codesandbox.io/s/react-stripe-elements-textfield-integration-forked-l96oc?file=/src/CreditCardDetail.js

Steps to Reproduce 🕹
Added a link to current and expected behavior. Sorry for the Stripe mixed in the code.

Context 🔦
I'm trying to use TextField as an Input for the Draft.js editor.

Your Environment 🌎
@emotion/react: ^11.1.2 => 11.1.2
@emotion/styled: ^11.0.0 => 11.0.0
@material-ui/core: ^5.0.0-alpha.18 => 5.0.0-alpha.18
@material-ui/icons: ^4.9.1 => 4.9.1
@material-ui/lab: ^5.0.0-alpha.18 => 5.0.0-alpha.18
@material-ui/styled-engine:  5.0.0-alpha.18
@material-ui/styles:  5.0.0-alpha.18
@material-ui/system:  5.0.0-alpha.18
@material-ui/types:  5.1.0
@material-ui/unstyled:  5.0.0-alpha.18
@material-ui/utils:  5.0.0-alpha.18
@types/react: 17.0.0 => 17.0.0
react: 17.0.0 => 17.0.0
react-dom: 17.0.0 => 17.0.0
typescript: ^4.1.3 => 4.1.3

`npx @material-ui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @material-ui/envinfo` goes here.

@matthlavacka Try solving the warnings in the console. It should fix it.


Release 0.14.0

Motivation
Release 0.14.0

Codecov Report

Merging #225 (87d2b41) into master (baf84f8) will decrease coverage by 0.35%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #225      +/-   ##
==========================================
- Coverage   79.06%   78.71%   -0.36%
==========================================
  Files          24       24
  Lines        7696     7696
  Branches      762      756       -6
==========================================
- Hits         6085     6058      -27
- Misses       1611     1638      +27

Impacted Files
Coverage Δ

ts/index.ts
86.78% <0.00%> (-1.02%)
:arrow_down:

ts/score/peer-score.ts
92.09% <0.00%> (-0.17%)
:arrow_down:

Continue to review full report at Codecov.

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