[Android] Reset sMatrixDecompositionContext before applying transformations

Summary
Prior to this commit React Native on Android was not properly setting
the transform's scale properly correctly when setting it to 0. In order
to properly set one would need to use values close to 0, like 0.0001.
This was happing due to BaseViewManager sharing sMatrixDecompositionContext
across all views in a React Native app.
In some cases the decomposeMatrix() method from the MatrixMathHelper would
return early and not set any new values in sMatrixDecompositionContext
(this is, the new transform values) and
since this is a shared object the BaseViewManager would set the transform values
from the a previous transform.
In order to prevent this issue, before setting the new transform values
always reset the sMatrixDecompositionContext values.
Changelog
[Android] [Fixed] - Reset sMatrixDecompositionContext before applying transformations
Test Plan
Run the code below on an Android device/emulator and you should see the following results:
Android without the patch - current implementation
Notice that the scale 0 is not properly applied to the last rectangle and the second rectangle does not animate properly.

Android with the patch
Everything works fine

iOS - current implementation
Everything works fine

/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 * @flow
 */

import React from 'react';
import { Animated, Button, StyleSheet, View, Text, SafeAreaView } from 'react-native';

const HorizontalContainer = ({ children, title }) => (
  <View style={styles.horizontalContainer}>
    {children}
    <Text style={styles.text}>{title}</Text>
  </View>
);

const App = () => {
  const animValue1 = React.useRef(new Animated.Value(1)).current;
  const animValue2 = React.useRef(new Animated.Value(1)).current;
  const onStartAnim = React.useCallback(() => {
    animValue1.setValue(0);
    animValue2.setValue(0);
    Animated.sequence([
      Animated.timing(animValue1, {
        toValue: 1,
        duration: 300,
        useNativeDriver: true,
      }),
      Animated.timing(animValue2, {
        toValue: 1,
        delay: 700,
        duration: 300,
        useNativeDriver: true,
      })
  ]).start();
  }, [animValue1, animValue2]);
  return (
    <SafeAreaView style={styles.container}>
      <Button title="Start Animation" onPress={onStartAnim} />
      <HorizontalContainer title="Animated scale from 0 to 1">
        <Animated.View style={[styles.view, { transform: [{ scaleX: animValue1 }] }]} />
      </HorizontalContainer>
      <HorizontalContainer title="Animated scale from 0 to 1 - delayed">
        <Animated.View style={[styles.view, { transform: [{ scaleX: animValue2 }] }]} />
      </HorizontalContainer>
      <HorizontalContainer title="Scale 0.4">
        <View style={[styles.view, { transform: [{ scaleX: 0.4 }] }]} />
      </HorizontalContainer>
      <HorizontalContainer title="Scale 0.2">
        <View style={[styles.view, { transform: [{ scaleX: 0.2 }] }]} />
      </HorizontalContainer>
      <HorizontalContainer title="Scale 0">
        <View style={[styles.view, { transform: [{ scaleX: 0 }, { translateY: 100 }] }]} />
      </HorizontalContainer>
    </SafeAreaView>
  );
};

export default App;

const styles = StyleSheet.create({
  text: {
    fontSize: 10,
    color: 'black',
    marginLeft: 10,
  },
  horizontalContainer: {
    justifyContent: 'center',
    alignItems: 'center',
    flex: 1,
    flexDirection: 'row',
  },
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  view: {
    width: 100,
    height: 100,
    backgroundColor: 'indigo',
    marginVertical: 5,
  }
});

Closes https://github.com/facebook/react-native/issues/25205
Closes https://github.com/facebook/react-native/issues/6278
Closes https://github.com/facebook/react-native/issues/6278

Thank you very much, @janicduplessis !

@cpojer thank you very much


SublimeLinter's message doesn't fit status bar

.. and it seems there is no option to read the whole message without increasing editor window size (far beyond the screen width, sometimes).
There might be something useful in the end of message, sometimes. Here's an example:
https://www.evernote.com/l/ACgO99QJbJlJN6iCo8xOinMEwiAr8jyVLxc
So, to conclude:

The message doesn't fit;

Whole message, split on several lines could probably be displayed:

in a tooltip when the mouse is over the status bar
in a popup, when the status bar is clicked
or, maybe, there could be a command available for Cmd+Shift+P, like: "show current error message"

Neither of options is available (or I couldn't find). There should be a solution, I believe. Maybe an option to see full message in the panel.

With tooltips now being available, SublimeLinter could provide an option to fully disable displaying any text in the status bar. Imho this would be the best solution to this issue.


refactor hbone listener code

[ ] Ambient
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
2d1382a11b65cf418d382ff37f390ea1e3604586
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


python module not found on the azure app function

Related command
No response
Resource Provider
azure function app
Description of Feature or Work Requested
I'm not able to execute my cloud function due to failures to import modules, module azure-identity for example, it's telling me module not found, I had my requirements.txt file:
azure-functions
msrestazure
azure-identity
azure.keyvault.secrets
azure-cli
and my code imports:
import logging
import json
import base64
import azure.functions as func
import requests
from azure.identity import AzureCliCredential
from azure.mgmt.resource import ResourceManagementClient
from azure.mgmt.network import NetworkManagementClient
from azure.mgmt.compute import ComputeManagementClient
import os

My files hierarchy:

This issue is not related to the module itself, I tried with different modules, requests for example and always the same issue.
Minimum API Version Required
none
Swagger PR link
none
Request Example
No response
Target Date
30/08/2022
Additional context
No response

route to CXP team

@Marwen-TAALLAH This is usually a deployment problem. Could you share more details on how you are deploying your function app here?

@Marwen-TAALLAH That could be the problem since you might be building (and hence fetching required packages) for the wrong platform, which isn't recommended since native dependencies might not still work. This is why most of the tooling for Azure Functions uses Remote Build, which fetches (and builds if required) all the dependencies on Azure itself.
Ensure you have the following application settings mentioned in the Remote Build docs.
ENABLE_ORYX_BUILD=true
SCM_DO_BUILD_DURING_DEPLOYMENT=true

Check out the Publishing to Azure section of the Python Reference docs for more information.

@Marwen-TAALLAH That could be the problem since you might be building (and hence fetching required packages) for the wrong platform, which isn't recommended since native dependencies might not still work. This is why most of the tooling for Azure Functions uses Remote Build, which fetches (and builds if required) all the dependencies on Azure itself.
Ensure you have the following application settings mentioned in the Remote Build docs.
ENABLE_ORYX_BUILD=true
SCM_DO_BUILD_DURING_DEPLOYMENT=true

Check out the Publishing to Azure section of the Python Reference docs for more information.

I already specified that in my code and I can see them correctly in the azure portal but i'm still having the same problem:
    name = "${var.function_app_name}"
    location = "${var.location}"
    resource_group_name = local.rg
    app_service_plan_id        = azurerm_app_service_plan.sp.id
    storage_account_name       = azurerm_storage_account.function.name
    storage_account_access_key = azurerm_storage_account.function.primary_access_key

    app_settings = {
        https_only = false
        FUNCTIONS_WORKER_RUNTIME = "python"
        FUNCTION_APP_EDIT_MODE     = "readwrite"
        SCM_DO_BUILD_DURING_DEPLOYMENT = true
        ENABLE_ORYX_BUILD     =   true
        "WEBSITE_RUN_FROM_PACKAGE"    = "https://${azurerm_storage_account.function.name}.blob.core.windows.net/${azurerm_storage_container.storage_container.name}/${azurerm_storage_blob.storage_blob.name}${data.azurerm_storage_account_blob_container_sas.storage_account_blob_container_sas.sas}"
        HASH = "${base64encode(filesha256("${data.archive_file.file_function_app.output_path}"))}"
        APPINSIGHTS_INSTRUMENTATIONKEY = azurerm_application_insights.appinsights.instrumentation_key
    }
}

@Marwen-TAALLAH Remote Build doesn't happen when using an External Package URL as mentioned here. You will have to do a zip deploy to trigger it.

@Marwen-TAALLAH Remote Build doesn't happen when using an External Package URL as mentioned here. You will have to do a zip deploy to trigger it.

Even the zip deploy doesn't work. Here's the situation:
I have this terraform rsource:
resource "azurerm_function_app" "dworker" {
    name = "${var.function_app_name}"
    location = "${var.location}"
    resource_group_name = local.rg
    app_service_plan_id        = azurerm_app_service_plan.sp.id
    storage_account_name       = azurerm_storage_account.function.name
    storage_account_access_key = azurerm_storage_account.function.primary_access_key

    app_settings = {
        https_only = false
        FUNCTIONS_WORKER_RUNTIME = "python"
        FUNCTION_APP_EDIT_MODE     = "readwrite"
        HASH = "${base64encode(filesha256("${data.archive_file.file_function_app.output_path}"))}"
        APPINSIGHTS_INSTRUMENTATIONKEY = azurerm_application_insights.appinsights.instrumentation_key
    }

    provisioner "local-exec" {
    command = "az webapp deployment source config-zip --resource-group ${local.rg} --name ${var.function_app_name} --src ${data.archive_file.file_function_app.output_path}"
  }
}

Nos as you can see, I'm using the zip deploy but now i'm having this error:

I noticed that a lot of people had this error before since even 2020 and no one suggested a solution!

@Marwen-TAALLAH Could you run the command shown at the end of the error log - az webapp log deployment show -n dworkerFnexec -g dev-de-azure-test and share the log from there?

Here's a screenshot with all the app setting set as you told me and the WEBSITE_RUN_FROM_PACKAGE = 1:

I'm still grtting the exact same problem:

and when running az webapp log deployment show -n dworkerFnexec -g dev-de-azure-test, I get the same message:

Adding the version an the site_config to the resource made the terraform apply pass but with a 202 status code so after the apply passes I don't find my function in the azure portal.
The changes I added:

The result i'm getting:

Any ideas?

@Marwen-TAALLAH You still have the WEBSITE_RUN_FROM_PACKAGE app setting which should be removed for Remote Build to work. Sorry for not being explicit about this earlier.

Now after doing that, the function is uploaded but I'm not able to use the ManagedIdentityCredential in my python app function.
Te piece of code that is causing the error (line 31):

the error message i'm getting:

@Marwen-TAALLAH Could you confirm if you have Managed Identity configured correctly, since the terraform code you shared doesn't seem to have the identity block in it.

route to CXP team

@Marwen-TAALLAH Could you confirm if you have Managed Identity configured correctly, since the terraform code you shared doesn't seem to have the identity block in it.

Thanks, that solved my issue.

@Marwen-TAALLAH Glad that your issue was resolved! Closing.


Dependency issue with 2025.1

It looms like ther eis a dependency issue with pydantic in 2025.1.X.
Logger: homeassistant.setup
Source: setup.py:269
First occurred: 10:44:26 (1 occurrences)
Last logged: 10:44:26

Setup failed for custom integration 'givenergy_local': Requirements for givenergy_local not found: ['pydantic>=1.10.12,<2'].

Logger: homeassistant.util.package
Source: util/package.py:152
First occurred: 10:44:25 (3 occurrences)
Last logged: 10:44:26

Unable to install package pydantic>=1.10.12,<2: × No solution found when resolving dependencies: ╰─▶ Because you require pydantic>=1.10.12,<2 and pydantic==2.10.4, we can conclude that your requirements are unsatisfiable.

Same issue here. Home Assistant has moved to pydantic V2. I tried modifying the manifest.json file but it leads to different errors.


error: unpack requires a buffer of 154 bytes

Hallo,
I can't read *.acq with bioread.
Code:
import bioread
data = bioread.read_file('demo.acq')
Traceback:
Traceback (most recent call last):
File "", line 1, in
runfile('C:/Users/ZYH7ABT/Desktop/4_Koretz/converter.py', wdir='C:/Users/ZYH7ABT/Desktop/4_Koretz')
File "C:\Users\ZYH7ABT\AppData\Local\conda\conda\envs\auswerten\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "C:\Users\ZYH7ABT\AppData\Local\conda\conda\envs\auswerten\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/ZYH7ABT/Desktop/4_Koretz/converter.py", line 10, in
data = bioread.read_file('demo.acq')
File "C:\Users\ZYH7ABT\AppData\Local\conda\conda\envs\auswerten\lib\site-packages\bioread_init_.py", line 26, in read
return reader.Reader.read(filelike, channel_indexes).datafile
File "C:\Users\ZYH7ABT\AppData\Local\conda\conda\envs\auswerten\lib\site-packages\bioread\reader.py", line 74, in read
reader._read_headers()
File "C:\Users\ZYH7ABT\AppData\Local\conda\conda\envs\auswerten\lib\site-packages\bioread\reader.py", line 114, in _read_headers
ch_start, ChannelHeader)
File "C:\Users\ZYH7ABT\AppData\Local\conda\conda\envs\auswerten\lib\site-packages\bioread\reader.py", line 219, in __multi_headers
h.unpack_from_file(self.acq_file, h_offset)
File "C:\Users\ZYH7ABT\AppData\Local\conda\conda\envs\auswerten\lib\site-packages\bioread\headers.py", line 33, in unpack_from_file
self.__unpack_data()
File "C:\Users\ZYH7ABT\AppData\Local\conda\conda\envs\auswerten\lib\site-packages\bioread\headers.py", line 47, in __unpack_data
self.data = self.struct_dict.unpack(self.raw_data)
File "C:\Users\ZYH7ABT\AppData\Local\conda\conda\envs\auswerten\lib\site-packages\bioread\struct_dict.py", line 54, in unpack
unpacked = struct.unpack(self.format_string, data)
error: unpack requires a buffer of 154 bytes

@ZhuYuqicheng This error happened to me just now when I downloaded an acqknowledge file from gihtub using right-click -> save as. In fact the size of the acq file was super small (and thus likely not complete). When I redownloaded the file by clicking on it and then clicking on "view raw", I downloaded a bigger file and managed to read it.

Yes, if you have incomplete .acq data, you'll see errors like this. Error handling in bioread could be better, though I don't always know if it's the code or the data that has the problem — incorrectly reading a length on a valid file can cause Bioread to try and read beyond the end of the file, for example.
If you have a file that opens in AcqKnowledge but not in Bioread and can share it, feel free to upload it and reopen this ticket. For now, I'm gonna close it.


City of Cape Town

[ ] Add schedule generator port form tiaanv into python lib
[ ] Add a way to select CoCT as the Provider from config flow
[ ] Update search to allow searching for Area ID
[ ] Figure out a way to override stage for CoCT when they are using a lower stage

Relates to https://github.com/wernerhp/ha_integration_load_shedding/issues/12#issuecomment-1174672948

https://github.com/wernerhp/ha.integration.load_shedding/releases/tag/v0.4.0


ISSUE: New projects are gone after restart

Since the latest update (0.3.2) projects I add are gone when I restart Atom. This happens both when I add a new client or group and a new project in one of those, and when I add a new project to an existing group.
This bug could have been present on earlier versions in the 0.3.X range, I think I skipped a version while updating.
I'm using Atom 1.8.0 on Windows 10.
-- EDIT -- I've disabled "convert old data" in the package-settings and now my new projects remain after restart. Maybe this should be toggled automatically after the first restart after updating to 0.3.X

hi @Duncank,
So the main reason for that option is that previous to 0.3.0 there was an older version database, as well as where it was being stored.
By default, it will check if the old file exists and try to convert to the new one if the new store isn't available. Making it to false will assume you didn't have the old database or it has already been converted. It will not import/convert the old if you have anything created on the new.
Please validate that you still have the old file (a notification pops up saying it could not find it. If another notification says I believe could not convert that's because there is a new database.
Confused?

the notification pops up if the option is false.

I had notifications disabled in Atom, since a few packages where giving me a lot of unneccessary notifications. With notifications enabled, I indeed see the message to disable the "convert old data" setting.
When I tried this, I checked Convert old data again and on restart it restored my projects back to the ones I had before v0.3. So my new projects on the new database only remain after a restart when Convert old data is unchecked.

so you lost the new not the old right?

That's correct

it should try but not be able to because it has already new data... ok now i have understand the issue. Thanks.
To be clear about the workflow:

If no new data:

If no old file, list is empty (safe to disable option)
If old file, the list is populated with it. (if conversion is ok, safe to disable and delete the file (from the package menu)

If new data:

If no old file, list with new date (safe to disable option)
If old file, will try find the old file and convert to the new but (should not be able to) and inform the user about this (if you don't care about the old date, safe to disable the option and probably delete the old file)

[] Validate last assuption

On restart of Atom there are 3 possible scenarios:

"convert old data" checked (default), new projects created last time
newly created projects are gone after restart. List is populated with old projects. (not correct)
"convert old data" checked (default), no new projects created last time
list is populated with old projects (correct)
"convert old data" unchecked
new projects that I create will stay in the list after the next restart (correct)

I'm afraid that when I delete the old project file they will be gone again in the future, so I'd rather keep that for now.

until i reach that stability, it's better to disabled the option and don't delete the file yes.

and also sorry for that :(

Please validate if this still occurs.
Your feedback is vital 👌
Thanks.

It doesn't delete new projects anymore after a restart when "convert old data" is checked, nice! It did however create a copy of all existing groups and projects, so I guess it converted them again.
I manually deleted all those doubled groups and after a restart everything shows up like it should. Thanks for the update!


update type declaration and add esm wrapper

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
26

Relevant Lines:
26

💛  - Coveralls


Aspnet Core 1.1.0 does not properly add forwardWindowsAuthToken="true" to web.config when deploying

I noticed that when publishing my new Aspnet Core 1.1 (just updated to VS 2017) project it is always missing the forwardWindowsAuthToken="true" from the web.config.
More info and the fix I found was here:
https://developercommunity.visualstudio.com/content/problem/26751/publish-aspnet-core-to-iis-with-windows-authentica.html
I also tried adding:
services.Configure(options => { options.ForwardWindowsAuthentication = true; });
to my ConfigureServices method but it didn't help.
So my question is, is there a way to get this to work properly? Some command line argument or other way to automate it other than having to manually edit the web.config after it has been deployed?
I don't think it matters, but this is a asp.net core 1.1 targeting 4.6.2 not core.
http://stackoverflow.com/questions/44057005/aspnet-core-1-1-missing-windows-authentication-when-published
Since we have the deploy automated its annoying to have to manually edit the web.config file, is it possible to automate that? Is it a known issue? Our older 1.0 core projects do properly add forwardWindowsAuthToken="true" in the web.config.

@Eilon @DamianEdwards

@Tratcher - any idea where this issue should go?

https://github.com/aspnet/aspnetcoremodule
@shirhatti
Note that forwardWindowsAuthToken's default value was changed to true so most apps no longer need it in the web.config.

@Tratcher when was it changed? In the 1.1 version with VS 2017 I have to manually set it in the web.config or it doesn't authenticate properly.
For example deploying the default project will show:
"Hello, !" in the top right where its supposed to show the username, with anon, asp.net impersonation, forms disabled and windows auth enabled in IIS

I'll defer to @shirhatti and @BillHiebert.

This issue was moved to aspnet/AspNetCoreModule#104


🐛 use self-signed certificate for the virtualcluster webhook server

What this PR does / why we need it:
Use a self-signed certificate for the virtual cluster webhook. See issue #125 for more details.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
fixes #125

@vincent-pli The VC should be able to run on Kind after this PR is merged.
@christopherhein
@Fei-Guo

@charleszheng44 do you think VC should be managing these resources for the user? or should we be prescribing that the operator use cert-manager or manage their cluster certificates themselves?
I know cert-manager itself did a lot of cludgy work just to enable this type of seamless setup process for auto-deploying their own certs and it was fairly painful to write and maintain. It feels like we could make this easier with just supplying configs to use cert manager auto-injection and then we could rip out all this setup code and expect that if they aren't using cert-manager that they have an existing flow for certs and thus can just use that path.

Code looks fine otherwise more just commenting on the overall approach.

@christopherhein I prefer using cert-manager to manage all certifications. But do you think it would be an overkill to deploy cert-manager to just manage the certification for the webhook server. Or we can use the cert-manager to manage all certifications for VC control plane components. However, I think we will use the CAPN to replace the VC native mode, and maybe we should import the cert-manager by then? We can use the cert-manager to manage certifications for all components (i.e., CAPN control plane components and VC webhook servers).

@charleszheng44 mmk, that seems like a reasonable approach instead.
/lgtm


Angular2_CLI_Starter issue

lang.js:130Angular is running in the development mode. Call enableProdMode() to enable the production mode.
error_handler.js:54EXCEPTION: Uncaught (in promise): Error: Cannot find module './src/app/dashboard/dashboard.module'.
Error: Cannot find module './dashboard/dashboard.module'.
at new Error (native)
at webpackEmptyContext (http://localhost:4200/main.bundle.js:7:8) [angular]
at SystemJsNgModuleLoader.loadAndCompile (http://localhost:4200/vendor.bundle.js:71909:40) [angular]
at SystemJsNgModuleLoader.load (http://localhost:4200/vendor.bundle.js:71897:60) [angular]
at RouterConfigLoader.loadModuleFactory (http://localhost:4200/vendor.bundle.js:22189:128) [angular]
at RouterConfigLoader.load (http://localhost:4200/vendor.bundle.js:22176:81) [angular]
at MergeMapSubscriber.project (http://localhost:4200/vendor.bundle.js:75517:111) [angular]
at MergeMapSubscriber._tryNext (http://localhost:4200/vendor.bundle.js:22392:27) [angular]
at MergeMapSubscriber._next (http://localhost:4200/vendor.bundle.js:22382:18) [angular]
at MergeMapSubscriber.Subscriber.next (http://localhost:4200/vendor.bundle.js:6518:18) [angular]
at ScalarObservable._subscribe (http://localhost:4200/vendor.bundle.js:59455:24) [angular]
at ScalarObservable.Observable._trySubscribe (http://localhost:4200/vendor.bundle.js:5747:25) [angular]
at ScalarObservable.Observable.subscribe (http://localhost:4200/vendor.bundle.js:5735:27) [angular]
at MergeMapOperator.call (http://localhost:4200/vendor.bundle.js:22357:23) [angular]
Cannot find module './dashboard/dashboard.module'.
When I use 'ng serve' to start testing,browser's console is always outputing this error.Can you help me to solve this problem?Thank you.

me too~!

you can go to app.routing.ts and replace the routes with the following code:
export const routes: Routes = [   {     path: '',     component: FullLayoutComponent,     data: {       title: 'Home'     },     children: [       {         path: '',         redirectTo: 'dashboard',         pathMatch: 'full',       },       {         path: 'dashboard',         loadChildren: './dashboard/dashboard.module#DashboardModule'       },     ]   } ];

you can go to app.routing.ts and replace the routes with the following code:
`export const routes: Routes = [
{
path: '',

component: FullLayoutComponent,

data: {

  title: 'Home'

},

children: [

  {

    path: '',

    redirectTo: 'dashboard',

    pathMatch: 'full',

  },

  {

    path: 'dashboard',

    loadChildren: './dashboard/dashboard.module#DashboardModule'

  },

]

}
];`

you can go to app.routing.ts and replace the routes with the following code:
export const routes: Routes = [   {     path: '',     component: FullLayoutComponent,     data: {       title: 'Home'     },     children: [       {         path: '',         redirectTo: 'dashboard',         pathMatch: 'full',       },       {         path: 'dashboard',         loadChildren: './dashboard/dashboard.module#DashboardModule'       },     ]   } ];

you can go to app.routing.ts and replace the routes with the following code:
export const routes: Routes = [   {     path: '',     component: FullLayoutComponent,     data: {       title: 'Home'     },     children: [       {         path: '',         redirectTo: 'dashboard',         pathMatch: 'full',       },       {         path: 'dashboard',         loadChildren: './dashboard/dashboard.module#DashboardModule'       },     ]   } ];


Consul not persisting data between down and up in non-secure mode

The command needs to be set to command: "agent -ui -bootstrap -server -client <IP_ADDRESS>" in the compose file since the default in the image is using -dev which doesn't persist the data.
In secure mode the entry-point script is doing the "agent -ui -bootstrap -server -client <IP_ADDRESS>"

@JamesKButcher, @jpwhitemn , we need to discuss this in next Core WG for regarding patching Ireland.
It is just a change in the compose files, but we have no strategy for versioning of the compose files for patches.

I thought using a GitHub tag in edgex-compose could resolve this issue.  We have already had 2.0.0 tag, and we should tag the current ireland branch to 2.0.1, and tag 2.0.2 after adding this new fix.


DOR update to 2.4.4

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_63wtvuyzhb/clone/recipe/meta.yaml:55: missing_description: The recipe is missing a description
WARNING: /tmp/abs_63wtvuyzhb/clone/recipe/meta.yaml:55: missing_doc_source_url: The recipe is missing a doc_source_url
WARNING: /tmp/abs_63wtvuyzhb/clone/recipe/meta.yaml:55: missing_license_url: The recipe is missing a license_url
Warnings were found


branch/todo-mvp-dagger,This example is not very comprehensive，I didn't see the use of "module", "component", "scope" and so on. I only saw "@inject".

/* Remove this comment
Please add the branch/sample ("all", "todo-mvp", "todo-mvp-dagger", etc.)
in the title if it applies.
*/

This project does contain components modules and Scopes. Here are the top level ones.  https://github.com/googlesamples/android-architecture/tree/todo-mvp-dagger/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/di  additionally this project leverages dagger-Android which auto generates subcomponents for you. Refer here for documentation on how dagger android works https://google.github.io/dagger/android.html

oh,yes.


freesmug-chromium 47.0.2526.106

Thank you for the contribution. It was merged directly as fdc9c9ad06431421bcad4d279803023b555fe5e3 to keep commit history cleaner. Your contribution is still credited to you.


Is sendPushNotificationData supported?

I couldn't find AppsFlyerLib.getInstance().sendPushNotificationData(this) in the sdk.

@af-fess will it be implemented?

Hi @aohua @stereodenis
A new version has released with sendPushNotificationData api.
Thank you!


Eigen elementwise functions with autodiff variables (#1)

Summary
This is the first batch of elementwise functions to add the use of Eigen's elementwise functions for calculating the values and gradients of containers of autodiff variables. The following functions are included in this pull:

acos
asin
atan
ceil
cos
cosh
exp
fabs
floor
inv

I can also break this pull out into smaller chunks if there's too much to review easily in this one.
Tests
No tests added, as current behaviour should not change
Side Effects
N/A
Checklist

[x] Math issue #1783

[x] Copyright holder: Andrew Johnson
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[x] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
dependencies checks pass, (make test-math-dependencies)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[x] the code is written in idiomatic C++ and changes are documented in the doxygen

[x] the new changes are tested

It doesn't seem like the benchmarks we generally run cover these functions. Would you mind writing up a benchmark for this in perf_math?

Good call! Ill get on that

Good thinking Steve, looks like this actually does worse:
andrew@Lappinux:~/perf-math$ ./matstuff
2020-03-21 11:20:09
Running ./matstuff
Run on (8 X 4000 MHz CPU s)
CPU Caches:
  L1 Data 32K (x4)
  L1 Instruction 32K (x4)
  L2 Unified 256K (x4)
  L3 Unified 8192K (x1)
--------------------------------------------------
Benchmark           Time           CPU Iterations
--------------------------------------------------
Exp_Old      31270268 ns   31274997 ns         24
Exp_New      38605496 ns   38612270 ns         14

I'd guess that the performance benefits are outweighed by having to repeatedly traverse the input matrix

Huh! That's suprising, traversal could be it. Could you share the branch / try running it with
./matstuff --benchmark_repetitions=20 --benchmark_report_aggregates_only=true

You can also test it with multiple sizes by using something like
// in benchmark
// use state.range(0) etc to set sizes
// https://github.com/google/benchmark#passing-arguments
Eigen::Matrix<stan::math::var, -1, -1> Sigma(state.range(0), state.range(0))
//...
// run for sizes 100, 200, ..., 1900, 2000
BENCHMARK(mat_bench)->DenseRange(100, 2000, 100);

We probably won't be able to improve on appy_scalar_unary performance for autodiff variables until we redesign matrices. We need to store values and derivatives/adjoints in separate matrices to reduce amount of copying needed and enable vectorization.

@bob-carpenter is interested in this too (https://github.com/stan-dev/math/issues/1787)
Could you share your code you used to bench this stuff? I've been surprised trying to optimize some related things as well.
Maybe a couple things to try:

Instead of the vector expressions, write for loops

Instead of computing the gradients in the chain call, precompute them in the forward pass (as you have the stuff in memory -- may have to do this with for loops) and then just do the adjoint * Jacobian thing in the chain itself (which is fine cause the Jacobians are diagonal).

Thanks all! Benchmarking code is up in this branch: https://github.com/andrjohns/perf-math/tree/autodiff_elem_testing
I'll do some exploring of the other options

Closing this while I look into other options, will post any further discussion in the relevant issue (#1783)

Thanks for posting the benchmarking code.
On Mon, Mar 23, 2020 at 12:40 AM Andrew Johnson<EMAIL_ADDRESS>wrote:

Closing this while I look into other options, will post any further
discussion in the relevant issue (#1783
https://github.com/stan-dev/math/issues/1783)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/math/pull/1785#issuecomment-602381410, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZ2D72H25GIIFKWWESA5N3RI3R2PANCNFSM4LQC3OMA
.


Updates to usability/collapsible headings:

add preprocessor and template for nbconvert use, adapted from the old hierarchical_collapse ones, as in #510, #507
Fixes #509 via a patch to the Tooltip class

Thanks. Let's merge and work out how well nbconvert handles this in reality.


feat: mfg-client check whether device has active credentials

Closes #102

mfg-client check whether device has active credentials
Move device credential locations module to util crate

This looks good, although we need to open another issue as this case is probably never gonna be it (filesystem in the initramfs) - the other issue is about TPM

I see. I'll need to check with @puiterwijk on how to deal with the TPM.

@runcom @jnogol this should actually Just Work(R) with TPM based credentials: those would get added to the same device_credential_location::find() method, and would be found if they exist 😄

Right, do we have a card to track that TPM integration tho? Cause the current issue talks about tpm and it’s not precise at this point

Created #106. But basically, because we use the device_credential_location::find() method, this will support and device credentials the client-linuxapp supports, automatically.

Yup! Lgtm indeed, Patrick feel free to approve and get this


🩹 add missing init file

Current dependencies on/for this PR:

main

PR #28   👈

This comment was auto-generated by Graphite.


Scipy Conference Poster Draft

Conference is from July 8 - July 14

https://www.scipy2024.scipy.org/


Can not authenticate

Laravel Version: 5.6.28
Adldap2-Laravel Version: ^4.0
PHP Version: 7.1.8
LDAP Type: ApacheDirectory

Description:
I'm trying to set up an admin panel with CRUD functionality for users. I would like to use an LDAP for authenticating instead of a database. I do not have any previous experiences with LDAP, but I did read a book published by IBM to understand the tree structure and the terms used. Managed to put something simple together that looks like this:

I am able to bind with a user i created using ApacheDirectoryStudio using this simple code:
`   $ldap_dn = "mail=admin@mail.com,ou=people,dc=fikt,dc=edu";
$ldap_password = "removed";
$ldap_con = ldap_connect("localhost", removed);
ldap_set_option($ldap_con, LDAP_OPT_PROTOCOL_VERSION, 3);

if (ldap_bind($ldap_con, $ldap_dn, $ldap_password))
{
    echo "Bind successful";
} else
{
    echo "Bind unsuccessful";
}`

But I can not authenticate using the laravel login form. I get the "These credentials do not match our records.". Here are some files that might help figure out if I have some configuration mistakes:
.env

`ADLDAP_CONTROLLERS=localhost
ADLDAP_ADMIN_USERNAME=mail=admin@mail.com,ou=people,dc=fikt,dc=edu
ADLDAP_ADMIN_PASSWORD=removed
ADLDAP_BASEDN=dc=fikt,dc=edu
ADLDAP_AUTO_CONNECT=true
ADLDAP_ACCOUNT_PREFIX=
ADLDAP_ACCOUNT_SUFFIX=
ADLDAP_PORT=removed
`

adldap.php
`<?php
return [
'connections' => [

    'default' => [

        'auto_connect' => env('ADLDAP_AUTO_CONNECT', true),

        'connection' => Adldap\Connections\Ldap::class,

        'schema' => Adldap\Schemas\OpenLDAP::class,

        'connection_settings' => [

            'account_prefix' => env('ADLDAP_ACCOUNT_PREFIX', ''),

            'account_suffix' => env('ADLDAP_ACCOUNT_SUFFIX', ''),

            'domain_controllers' => explode(' ', env('ADLDAP_CONTROLLERS', 'corp-dc1.corp.acme.org corp-dc2.corp.acme.org')),

            'port' => env('ADLDAP_PORT', removed),

            'timeout' => env('ADLDAP_TIMEOUT', 5),

            'base_dn' => env('ADLDAP_BASEDN', 'dc=corp,dc=acme,dc=org'),

            'admin_account_prefix' => env('ADLDAP_ADMIN_ACCOUNT_PREFIX', ''),
            'admin_account_suffix' => env('ADLDAP_ADMIN_ACCOUNT_SUFFIX', ''),

            'admin_username' => env('ADLDAP_ADMIN_USERNAME', 'username'),
            'admin_password' => env('ADLDAP_ADMIN_PASSWORD', 'password'),

            'follow_referrals' => false,

            'use_ssl' => env('ADLDAP_USE_SSL', false),
            'use_tls' => env('ADLDAP_USE_TLS', false),

        ],

    ],

],

];
`
auth.php
`<?php
return [
'defaults' => [
    'guard' => 'web',
    'passwords' => 'users',
],

'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
    ],

    'api' => [
        'driver' => 'token',
        'provider' => 'users',
    ],
],

'providers' => [
    'users' => [
        'driver' => 'adldap', //changed from eloquent
        'model' => App\User::class,
    ],

    // 'users' => [
    //     'driver' => 'database',
    //     'table' => 'users',
    // ],
],

'passwords' => [
    'users' => [
        'provider' => 'users',
        'table' => 'password_resets',
        'expire' => 60,
    ],
],

];
`
adpldap_auth.php
`<?php
return [
'connection' => env('ADLDAP_CONNECTION', 'default'),

'provider' => Adldap\Laravel\Auth\DatabaseUserProvider::class,

'rules' => [

    // Denys deleted users from authenticating.

    Adldap\Laravel\Validation\Rules\DenyTrashed::class,

    // Allows only manually imported users to authenticate.

    // Adldap\Laravel\Validation\Rules\OnlyImported::class,

],

'scopes' => [

    // Only allows users with a user principal name to authenticate.
    // Remove this if you're using OpenLDAP.
    // Adldap\Laravel\Scopes\UpnScope::class,

    // Only allows users with a uid to authenticate.
    // Uncomment if you're using OpenLDAP.
     Adldap\Laravel\Scopes\UidScope::class,

    // Only allow members of 'ou=admin' to login.
    // App\Scopes\AdminScope::class,

],

'usernames' => [

    'ldap' => [

        'discover' => 'mail',

        'authenticate' =><EMAIL_ADDRESS>
    ],

    'eloquent' => 'email',

   /*  'windows' => [
    *    'discover' => 'mail',
    *    'key' => 'AUTH_USER',
    *   ],
    */
],

'passwords' => [

    'sync' => env('ADLDAP_PASSWORD_SYNC', true),

    'column' => 'password',

],

'login_fallback' => env('ADLDAP_LOGIN_FALLBACK', false),

'sync_attributes' => [

    'email' => 'mail',
    'name' => 'cn',
    'surname' => 'sn',
    'description' => 'description',
    'ou' => 'ou',

],

'logging' => [

    'enabled' => true,

    'events' => [

        \Adldap\Laravel\Events\Importing::class => \Adldap\Laravel\Listeners\LogImport::class,
        \Adldap\Laravel\Events\Synchronized::class => \Adldap\Laravel\Listeners\LogSynchronized::class,
        \Adldap\Laravel\Events\Synchronizing::class => \Adldap\Laravel\Listeners\LogSynchronizing::class,
        \Adldap\Laravel\Events\Authenticated::class => \Adldap\Laravel\Listeners\LogAuthenticated::class,
        \Adldap\Laravel\Events\Authenticating::class => \Adldap\Laravel\Listeners\LogAuthentication::class,
        \Adldap\Laravel\Events\AuthenticationFailed::class => \Adldap\Laravel\Listeners\LogAuthenticationFailure::class,
        \Adldap\Laravel\Events\AuthenticationRejected::class => \Adldap\Laravel\Listeners\LogAuthenticationRejection::class,
        \Adldap\Laravel\Events\AuthenticationSuccessful::class => \Adldap\Laravel\Listeners\LogAuthenticationSuccess::class,
        \Adldap\Laravel\Events\DiscoveredWithCredentials::class => \Adldap\Laravel\Listeners\LogDiscovery::class,
        \Adldap\Laravel\Events\AuthenticatedWithWindows::class => \Adldap\Laravel\Listeners\LogWindowsAuth::class,
        \Adldap\Laravel\Events\AuthenticatedModelTrashed::class => \Adldap\Laravel\Listeners\LogTrashedModel::class,

    ],
],

];
`
Now that i think about it, it is probably a problem with the scope, since I don't use uid.
I figured I should be using the OpenLDAP modifications because that's the way I am able to get a list of users when using $users = Adldap::search()->users()->get(); dd($users);. The search functionality also works, but when i execute if<EMAIL_ADDRESS>$password)) the result is false.
I will provide any further information if necessary. Any help would be greatly appreciated. Please. Thank you. A link to working demo with an LDAP tree illustration would be great too. Might help me figure out the problem myself.

Managed to find a solution, gonna write a mini guide for absolute beginners asap.


Deployment Pipeline - Deployment Group required tag behaviour (Classic)

Currently I am using Classic style with Deployment Groups and I encountered an issue which I cannot find an answer to in the documentation:
Is it possible to control the behaviour of deployments when Required Tags are not specified (on the "Deployment Group Job") for a specific Deployment pipeline? (if "Required tags" field is empty)
Current behaviour: if I run a Deployment pipeline (Classic) with no "required tags" specified (this field is empty) the job will install to all the servers in the Deployment Group.
Desired behaviour: if the "required tags" field is empty, I don't want to deploy to any server.
Example:
We were running a new deployment pipeline
A tag was set on one server in the PRODUCTION deployment group, but the "required tags" field was empty/undefined on the "Deployment Group Job" (in the Deployment Pipeline project).
The deployment pipeline attempted to deploy a new app to all the production servers. We were setting up a new production server and we only wanted this pipeline to deploy to one specific production server.
I'm wondering if there is something we can set in the AzDO Organization Settings (or Project Settings) or is there a script we can set in "Control Options" to say - "if the 'required tags' field is empty on the Deployment group job - then do not deploy to any server.
Cheers!

@PJLindsay -- PJ, thank you for your feedback.  Please consider these resources, and let me know if you'd like any specific documentation updates:

Azure DevOps Services
Azure DevOps on Stack Overflow

If you feel this is a product issue, please add it here:

Developer Community


Add Renovate to monitoring repositories

[ ]  https://github.com/rancher/helm-project-operator
[ ]  https://github.com/rancher/helm-locker
[ ]  https://github.com/rancher/prometheus-federator

See: https://github.com/rancher/security-team/blob/main/docs/guides/renovate.md
SURE-6233

For rancher/helm-project-operator, the configs are in place as of: https://github.com/rancher/helm-project-operator/commit/ebf7ebe1897b8262ba8f941a510a93b6813e06fe
For rancher/helm-locker, I made a PR here: https://github.com/rancher/helm-locker/pull/15
For rancher/prometheus-federator, I made a PR here: https://github.com/rancher/prometheus-federator/pull/84

FWIU, once these initial configs are merged in we manually trigger workflows to do our initial runs. And make any necessary adjustments based on the results we get. Then after that we will make follow up PRs to enable the cron schedule to regularly run the actions.
So this is all just Phase 1 so far, and Phase 2 will be enabling the cron schedule. I am still waiting on EIO request for myself to have more access to repos/projects. I believe once that has been completed I should see the buttons to manually trigger actions. So after that can move to next steps.

Blocked by https://github.com/rancher/rancher/issues/46296


Non-deterministic insert order if importOnBoostrap runs on an empty database

Firstly thanks for building this plugin. It does critical work for multi-env deployments 🙇
Bug report
If config-sync has records of roles from a different env, they can be inserted before users-permissions does its inserts, sometimes resulting in incorrect IDs for roles. This could also cause problems if more than one role was added at a time when migrating that config across environments.
Describe the bug
In the users-permissions initialization inserts, roles are inserted in a specific order. The config-sync imports don't specify an order.
Steps to reproduce the behavior
We ran into this in our integration tests, and it happened really haphazardly.
Initializing strapi with...

an empty database
roles files in the confing/sync directory
importOnBootstrap: true in settings

Expected behavior
I'd expect roles export to track ids to insert them in the correct order if they are missing. So far it's the only config table that has presented an ordering problem for us.
Additional context
I initially thought this was a users-permissions issue. More context there.
We've worked around this by setting importOnBootsrap only true in deployment environments, and are manually running config-sync imports in our tests after the default db setup happens.

Hi @karlkeefer,
Thanks for all the context you've given in the issue.
I understand that the roles could be inserted in different orders.
Though I'm not quite sure what that matters. Is there a specific issue you run into when the auto-increment id's of the roles don't match up?
The plugin itself uses the role type as it's unique identifier, completely neglecting it's id.
Maby you could do the same to prevent the issue?

Yeah... we could make our fixture data inserter fetch the roles before assigning them to test users. It's very convenient to just use known-in-advance role IDs though.
It seems plausible to me that other plugins might lean on role IDs? I don't know a concrete case of that.
Ultimately it took me hours to figure out what was happening, so I thought it worth creating this issue, but I get this is a pretty niche fix, also with some functional workarounds.
Still, it strikes me as counter to expectation for the role IDs to be different after sync.

Honestly, anybody using the auto-increment id to identify a role implemented a bad practice imo.
Somebody could’ve (accidentally) removed the role, and re-created it, causing the id to change, meaning their code wouldn’t work anymore.
The any known-in-advance role id you have is it’s type field. Even Strapi themselves use the type field to identify the roles. See https://github.com/search?q=repo%3Astrapi%2Fstrapi type%3A 'public'&type=code
Ultimately the only proper way to fix this is to use some kind of uuid to identify the role (or any config entry in the db). Though luckily Strapi v5 will offer that feature, and you can be sure that I’ll be migrating this plugin to move along with that change.

Cheers - thanks for your time and consideration!


Feature: Log unhandled rejection and terminate process

connects to plossys/plossys#1575
The following sections can be used to provide more information for the changelog:
Details
Breaking Changes
Process terminates on unhandled rejection
Regardless of Node's settings, the process will be killed with exit code 1 if an unhandled rejection occurs.
References

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fix autoloading

Kinda important, not sure how to go about it.

After a couple of random commits and a week of doing nothing, this suddenly works.


Run mypy in Key Vault CI

Fix current errors and add packages to mypy_hard_failure_packages.py:

[x] azure-keyvault-administration (#19246)
[ ] azure-keyvault-certificates
[ ] azure-keyvault-keys
[ ] azure-keyvault-secrets

For reference: to run mypy for a package (e.g. azure-keyvault-certificates), run
mypy --exclude _generated --ignore-missing azure
from the top of the package -- in this case, from azure-sdk-for-python/sdk/keyvault/azure-keyvault-certificates

Steps to resolve:
For each package:

Run mypy check
Resolve warnings
Once there are no warnings, add package to hard failures file

Fixed.


Fixed:   Incorrect width of children when using align baseline and chi…

Fixes  #1358

Hmm, I am seeing some new tests, but this doesn't change any of the layout code which is incorrect?

idk why, in my local, in yoga/yoga there's only "event" folder and some cpp files,
let me recheck....

got it.
will raise a new PR, closing this one.


[NIFI-1757] remove iframe from shell dialog to prevent reoccurring re…

…quests, update fill color and label config dialog content margins to fit into their respective dialogs

Reviewing...

Thanks @scottyaslan! This has been merged to master.


IllegalStateException: Coil returned a null cache snapshot

Hello,
Congratulations on the work, the zoom quality is veryy good.
I have a problem happening and I would like help if possible, I even viewed open issue #69 , but it didn't help me.
Excpetion:
java.lang.IllegalStateException: Coil returned a null cache snapshot
  at me.saket.telephoto.zoomable.coil.Resolver.toSubSamplingImageSource(CoilImageSource.kt:135)
  at me.saket.telephoto.zoomable.coil.Resolver.work(CoilImageSource.kt:110)
  at me.saket.telephoto.zoomable.coil.Resolver$work$1.invokeSuspend(Unknown Source:14)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
  at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:28)
  at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
  at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:231)
  at kotlinx.coroutines.DispatchedTaskKt.resumeUnconfined(DispatchedTask.kt:187)
  at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:159)
  at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:470)
  at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:504)
  at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:493)
  at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:364)
  at kotlinx.coroutines.ResumeAwaitOnCompletion.invoke(JobSupport.kt:1403)
  at kotlinx.coroutines.JobSupport.notifyCompletion(JobSupport.kt:1492)
  at kotlinx.coroutines.JobSupport.completeStateFinalization(JobSupport.kt:322)
  at kotlinx.coroutines.JobSupport.finalizeFinishingState(JobSupport.kt:239)
  at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:907)
  at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:864)
  at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:829)
  at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:97)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
  at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:266)
  at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
  at android.os.Handler.handleCallback(Handler.java:938)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loopOnce(Looper.java:201)
  at android.os.Looper.loop(Looper.java:288)
  at android.app.ActivityThread.main(ActivityThread.java:7839)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
  Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@553d403, Dispatchers.Main.immediate]

My code:
HorizontalPager(
  state = pagerState,
  modifier = Modifier.fillMaxWidth()
) { page ->

  val surfaceColor = MaterialTheme.colorScheme.surface

  var backgroundColor by remember { mutableStateOf(surfaceColor) }

  Box(modifier = Modifier.background(backgroundColor)) {

    val imageState = rememberZoomableImageState(
      rememberZoomableState(
        zoomSpec = ZoomSpec(maxZoomFactor = 4f)
      )
    )

    var isLoading by remember { mutableStateOf(false) }

    AnimatedVisibility(
      modifier = Modifier.align(Alignment.Center),
      visible = isLoading
    ) {
      CircularProgressIndicator(
        modifier = Modifier
          .padding(paddingValues)
          .align(Alignment.Center)
      )
    }

    var isError by remember { mutableStateOf(false) }

    AnimatedVisibility(
      modifier = Modifier.align(Alignment.Center),
      visible = isError
    ) {
      Image(
        modifier = Modifier.fillMaxSize(),
        painter = rememberVectorPainter(Icons.Outlined.HideImage),
        contentDescription = null
      )
    }

    ZoomableAsyncImage(
      state = imageState,
      modifier = Modifier.fillMaxSize(),
      model = ImageRequest.Builder(LocalContext.current)
        .data(currentImage)
        .allowHardware(false)
        .diskCachePolicy(CachePolicy.READ_ONLY)
        .memoryCachePolicy(CachePolicy.READ_ONLY)
        .crossfade(300)
        .listener(
          remember {
            object : ImageRequest.Listener {
              override fun onSuccess(
                request: ImageRequest,
                result: SuccessResult
              ) {

                Timber.i("Image is loaded")
                isLoading = false
                Palette.Builder(result.drawable.toBitmap())
                  .generate { palette ->
                    val generatedColor =
                      palette?.getDarkMutedColor(
                        backgroundColor.toArgb()
                      )

                    if (generatedColor != null && generatedColor != backgroundColor.toArgb()) {
                      backgroundColor =
                        Color(generatedColor)
                    }
                  }
                super.onSuccess(request, result)
              }

              override fun onError(
                request: ImageRequest,
                result: ErrorResult
              ) {
                Timber.i("Image has error")
                isLoading = false
                isError = true
                super.onError(request, result)
              }

              override fun onStart(request: ImageRequest) {
                Timber.i("Image start load")
                isLoading = true
                super.onStart(request)
              }

              override fun onCancel(request: ImageRequest) {
                Timber.i("Image is cancel")
                isLoading = false
                super.onCancel(request)
              }
            }
          }
        )
        .build(),
      contentDescription = null,
    )

  }
}

CurrentImage is urls?.get(pagerState.currentPage)
I need set:
diskCachePolicy(CachePolicy.READ_ONLY) and
memoryCachePolicy(CachePolicy.READ_ONLY)
because has another exception: java.io.FileNotFoundException: No content provider:  (...)  look like #50 . If I put it this way I can't reproduce the problem.
For my test i used 11 imagens from  https://unsplash.com/ and then this crash happend when insert app for the first time ou clean cache. It happens quite often, and happens most time in the last image from carousel.
Thanks for helping :)

I need set:
diskCachePolicy(CachePolicy.READ_ONLY)

This isn't viable because telephoto needs to stream large bitmaps from the disk for optimum performance. What's your reason for not saving downloaded photos to the disk?

For my test i used 11 imagens from https://unsplash.com/ and then this crash happend when insert app for the first time ou clean cache. It happens quite often, and happens most time in the last image from carousel.

If the app crashes only if you clear the cache in background then yep this is the same as https://github.com/saket/telephoto/issues/69.
Is currentImage a String/Uri type?

What's your reason for not saving downloaded photos to the disk?

I just tried some solutions without much reason behind it, basically I had some fileprovider Exception, placing the caches that way I didn't notice the problem anymore. And if I remove these lines the problem returns. This is weird, i don't understand.

If the app crashes only if you clear the cache in background then yep this is the same as #69. Is currentImage a String/Uri type?

I'm using just string for these tests.

I'm making a new app to show errors on my github, today an error I caught with Coil returned null. I can't currently play the file provider in this new app, I'm still going to adjust some things.
If will say in percetage, is like 5% of trys i get this erros.
https://github.com/RegianeF/SampleImageProject
The erros from this app related IllegalStateException: Coil returned a null cache snapshot:

Thanks for helping :)

We are also seeing this same error and I can't help but notice the !! in the CoilImageSource as well as the kotlin assertions used which crash the app instead of silently failing.

Merging this with https://github.com/saket/telephoto/issues/37

This should be fixed by v0.11.2. ZoomableAsyncImage() will now reload images if the disk cache is found empty.


refactor(Analysis/CStarAlgebra/Module): change structure fields for convenience

After playing with this further, I think I've decided it was a terrible idea.


logos difficult to read in dark mode

Trying out dark mode and noticed that you can't really read quite a few of the logos.  I think because the pngs have transparency.  Not sure what the design guidelines are for dark mode on docs for this.  A white background would make them work for sure but might look a bit ugly in dark mode - i'm clearly not the best person to discuss colors though :)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2b4773f4-e24d-7644-f5ac-fea26a5f5f95
Version Independent ID: 0de07bea-5912-9005-51d2-b5fcb8bc31dd
Content: MSIX partners - MSIX
Content Source: msix-src/partners.md
Product: msix
GitHub Login: @dianmsft
Microsoft Alias: diahar

Updates were made with the current logos provided.


HBASE-27166 WAL value compression minor improvements

A larger IO buffer for absorbing WALCodec writes can improve the compression ratio of larger values, because the compressor will be given a larger internal buffer over which there will be more match opportunities. Does not impact the ability to read existing written files.
Also, reset the BAOS internal buffer on the way out of compress() so potential large-ish buffers do not linger on the heap longer than necessary.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m  7s
Docker mode activated.


Can't construct query to add item to postgres enum

Version
1.16.0
What happened?
I tried to construct a query to add an enum to the database, and it failed.
Relevant log output
sql/queries/record_types.sql:1:1: syntax error at or near "$1"

Database schema
`migrations/20220422151655_-0600_recordtype.up.sql`:

CREATE TYPE record_type AS ENUM (
       'record'
);

SQL queries
`sql/queries/record_types.sql`:

-- name: AddRecordType :exec
-- See <https://www.postgresql.org/docs/current/sql-altertype.html>.
ALTER TYPE record_type ADD VALUE IF NOT EXISTS $1

Configuration
`build.go`:

//go:generate go run -mod=vendor github.com/kyleconroy/sqlc/cmd/sqlc generate

```yaml
version: 1
packages:
  - path: "reportsv2"
    name: "reportsv2"
    engine: "postgresql"
    sql_package: "pgx/v4"
    schema: "./migrations/"
    queries: "./sql/queries/"
    emit_json_tags: true
    json_tags_case_style: "snake"

### Playground URL

_No response_

### What operating system are you using?

_No response_

### What database engines are you using?

_No response_

### What type of code are you generating?

_No response_

This error is coming straight back from pg_query_go - trying to parse the same query in a standalone pg_query_go program returns the same message:
package main

import (
	"fmt"
	pg_query "github.com/pganalyze/pg_query_go/v4"
)

func main() {
	tree, err := pg_query.ParseToJSON("ALTER TYPE record_type ADD VALUE IF NOT EXISTS $1")
	if err != nil {
		panic(err)
	}
	fmt.Printf("%s\n", tree)
}

Curtting out pg_query entirely, and running SQL directly against a postgres instance, I'm not sure it's possible to run an ALTER as a prepared statement at all:
PREPARE testplanenumadd (text) AS
 ALTER TYPE status ADD VALUE IF NOT EXISTS $1;
EXECUTE testplanenumadd ('pending');

This returns:
ERROR:  syntax error at or near "ALTER"
LINE 2:  ALTER TYPE status ADD VALUE IF NOT EXISTS $1;
         ^

Should this issue be closed?


Ability to use local LLMs for privacy.

If the use of OpenAI is not possible due to privacy concerns, it would be beneficial to have the option to utilize a locally installed language model.
One possible solution is to allow for customization of the OpenAI URL and chosen model, making it feasible to utilize alternatives such as Ollama that can mimic the OpenAI API.
Alternatively, employing the Ollama API directly could offer access to its complete capabilities.

Agree, that could absolutely be useful.
One thing to note in regards to privacy is that no actual data is being sent over the wire to either rill or OpenAI, only metadata such as data types and column names (realising column names can be sensitive).

I guessed that Rill would only send the metadata, e.g. the schema to OpenAI ;-) However also metadata leaks sensitive information, like what kind of systems are deployed and in the case of custom systems what kind of data is stored.
Moreover, it could be interesting to explore the possibility of utilizing various language models like Mixtral, Gemini or Llama to compare and identify which one excels in creating an initial dashboard.

@nishantmonu51 Something to discuss for us when you are back. I would guess we need a hard switch on project level to ensure runtimes start with correct model url and api keys.


reverting keras version to 2.13.0-rco

This one is good, note that this is keras package, not keras-nightly.

Got it


samples/drivers/i2c_scanner does not work on STM32 NUCLEO and DISCOVERY boards

Describe the bug
The commit 442df97366416a2779882d185c94e36619a1223a (scripts/dts: Remove alias defines for labels) makes the commit 173d07c6e5e7d98318cdbfc87ab1009a0d389a33 (samples: driver: i2c_scanner: use arduino-defined device if available) unusable.
As a result samples/drivers/i2c_scanner does not work on STM32 NUCLEO and DISCOVERY boards.
To Reproduce
Steps to reproduce the behavior:

build samples/drivers/i2c_scanner zephyr image for any supported STM32 NUCLEO or DISCOVERY board;
upload zephyr image into the board;
run zephyr;
see the error message

Starting i2c scanner...
I2C: Device driver not found.

@galak @pabigot
Please help!

There are two things that need to be done.
First, unless there's another solution pending (which @galak might be able to say) all Arduino bus values must switch from using a label to using an alias, as with below.
Second, once that's done the test doesn't work because the ST I2C driver doesn't handle the SMBUS command that's used to detect a NAK on the address for an absent subordinate device.  It reports all addresses as being associated with devices.  That's something that @ydamigos might be able to assist with.
diff --git a/boards/arm/nucleo_l476rg/arduino_r3_connector.dtsi b/boards/arm/nucleo_l476rg/arduino_r3_connector.dtsi
index 1f47915822..c6a37a6ffd 100644
--- a/boards/arm/nucleo_l476rg/arduino_r3_connector.dtsi
+++ b/boards/arm/nucleo_l476rg/arduino_r3_connector.dtsi
@@ -5,6 +5,9 @@
  */

 / {
+       aliases {
+               arduino-i2c = &i2c1;
+       };
        arduino_header: connector {
                compatible = "arduino-header-r3";
                #gpio-cells = <2>;
@@ -34,5 +37,3 @@
                           <21 0 &gpiob 8 0>;   /* D15 */
        };
 };
-
-arduino_i2c: &i2c1 {};
diff --git a/samples/drivers/i2c_scanner/src/main.c b/samples/drivers/i2c_scanner/src/main.c
index 44c1724377..ac71a0d85f 100644
--- a/samples/drivers/i2c_scanner/src/main.c
+++ b/samples/drivers/i2c_scanner/src/main.c
@@ -10,8 +10,8 @@
 #include <device.h>
 #include <drivers/i2c.h>

-#ifdef ARDUINO_I2C_LABEL
-#define I2C_DEV ARDUINO_I2C_LABEL
+#ifdef DT_ALIAS_ARDUINO_I2C_LABEL
+#define I2C_DEV DT_ALIAS_ARDUINO_I2C_LABEL
 #else
 #define I2C_DEV "I2C_0"
 #endif

@pabigot
Thanks for your explanation!

@ydamigos, I let you check but according to @pabigot analysis, I don't think this is a bug, but rather a improvement.

I don't think this is a bug, but rather a improvement.

If "this" is the sample not selecting the right I2C bus: I think that is a bug because it broke the sample, but it's in the infrastructure related to identifying Arduino resources in devicetree.  Nothing specific to ST, and I've pulled that out as #20330.
If "this" is the sample not working on ST when the bus is correctly identified: I can see an argument it's not a bug because the sample uses an SMBUS command, not an I2C command, and (perhaps) that just doesn't work on ST.  (I suspect it could be made to work, but that the ST implementation notices the non-address transaction length is zero and doesn't initiate a bus transaction at all.)  That would be an enhancement to the ST I2C implementation; I've updated the issue category.
Thanks for pointing this out.

@pabigot, thanks for confirming.

@erwango, @pabigot I believe it is a bug because I2C driver didn't even try to send the zero length message.

@ioannisg
#20560 does not fix the I2C: Device driver not found. problem.
Please reopen the issue.

The "does not work" part has been fixed, which was specific to this issue.  The general issue of #20330 remains open to address the device-not-found error; please follow that to check for solutions.

The "does not work" part has not been fixed because the erroneous behavior (see in the issue header) is still reproducible.


Twitch IRC migration?

Either I'm misunderstanding something or I cannot authenticate my bot to irc.chat.twitch.tv...
$ node index.js
(node:30969) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Request to use token, but token was unavailable to the client.
[17:13:26] 11 Jan 17:13:26 - Sending irc NICK/USER
[17:13:26] *** connecting to irc.chat.twitch.tv...
[17:13:27] 11 Jan 17:13:27 - SEND: PASS password
[17:13:29] 11 Jan 17:13:29 - SEND: NICK godelescherbot
[17:13:31] 11 Jan 17:13:31 - SEND: USER godelescherbot 8 * vsimbot
[17:13:40] 11 Jan 17:13:40 - Connection got "end" event
[17:13:40] 11 Jan 17:13:40 - Connection got "close" event
[17:13:40] 11 Jan 17:13:40 - Disconnected: reconnecting
[17:13:40] 11 Jan 17:13:40 - Waiting 2000ms before retrying
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: socket hang up
    at createHangUpError (_http_client.js:254:15)
    at TLSSocket.socketOnEnd (_http_client.js:346:23)
    at emitNone (events.js:91:20)
    at TLSSocket.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

At this point the larger issue is that npm ci fails unconditionally:
https://github.com/ddugovic/vsimbot/actions


multi-pane split line in dark mode is too shine

1、multi-pane split line in dark mode is too shine (white line)
2、The split line is two lines next to each other, perhaps one is more elegant（or not high contrast）.

Thanks for the report! This is actually already being tracked by another issue on our repo - please refer to #3917 for more discussion.
/dup #3917


clang-10 tests for stable branches?

https://github.com/ClangBuiltLinux/continuous-integration2/pull/278 spun down our remaining clang-10 tests.  I'm curious if it's worthwhile to keep some arm64 + x86_64 builds going for branches of stable with clang-10?  We can probably look and see what clang versions various Android releases are using.

I was thinking more about this within the context of #278 and I am not sure there is much value in continuing to build with clang-10.

We don't have any avenue to fix bugs in the compiler because it is not supported anymore (one of the main reasons we bumped to clang-11 on mainline).
If something breaks in stable for one reason or another, inserting workarounds into the source is not going to be easy without them being upstream (the stable hates taking patches just for stable).

Right, but clang-10 was supported when those branches of stable were created, and Android is still using clang-10 based versions of AOSP Clang.  Having some heads up when stable takes a patch that might break these older LTS branches that have yet to go out of support might be worthwhile.  We'll find such cases either way in Android though.

Fair enough, I thought that the most recent version of Android had kernels compiled with clang-12 but I guess there could be other targets or older branches that matter? What branches should we support here with clang-10 and what kind of build targets are interesting?


three methods proposed for est_min_num_fwd_passes with h5 data

Coverage decreased (-2.1%) to 96.219% when pulling dc08486e4369ba0ad3e0fae33509687777c40a8c on marcenacp:est_fwd_passes_h5 into 14f1aa18321d1459fe812961e183a658cc53df23 on kashefy:master.

You make a good point with the functions that don't duplicate code for lmdb and hdf5. Just need a little more time to think about it.

Coverage decreased (-0.4%) to 97.908% when pulling 0189c61fe34cba4a3c80049bc13601688e5e7d40 on marcenacp:est_fwd_passes_h5 into 14f1aa18321d1459fe812961e183a658cc53df23 on kashefy:master.

resumed by #64


Branch.initSession bugged

I've been trying to use this snippet on angular.run():
$ionicPlatform.ready(function() {
    var callback = function() {
        console.log(JSON.stringify(Branch));
        Branch.initSession(function(data) {
            // read deep link data on click
            console.log('Deep Link Data: ' + JSON.stringify(data));
        });
    };
    $ionicPlatform.on('deviceready', callback);
    $ionicPlatform.on('resume', callback);
});

But all I get in the console is:
{"debugMode":false}
Deep Link Data: {"+is_first_session":false,"+clicked_branch_link":false,"+non_branch_link":"spurrewards://open"}

I'm using an Android 7.0.1 phone and the link x.app.link opens the app but I can't do further deep-linking without the data (by redirecting to the specific URL inside the app).
Also, this is my cordova info:
Node version: v7.10.0

Cordova version: 6.5.0

Plugins:

branch-cordova-sdk,com.muulla.location,cordova-plugin-compat,cordova-plugin-console,cordova-plugin-crosswalk-webview,cordova-plugin-dialogs,cordova-plugin-geolocation,cordova-plugin-google-analytics,cordova-plugin-inappbrowser,cordova-plugin-splashscreen,cordova-plugin-statusbar,cordova-plugin-whitelist,cordova-plugin-x-socialsharing,cordova-plugin-x-toast,cordova.plugins.diagnostic,es6-promise-plugin,ionic-plugin-keyboard,onesignal-cordova-plugin

Android platform:

Available Android targets:
----------
id: 1 or "android-25"
     Name: Android 7.1.1
     Type: Platform
     API level: 25
     Revision: 3
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
 Tag/ABIs : no ABIs.

iOS platform:

Xcode 8.3.2
Build version 8E2002

I'm not sure if this is the reason but after doing some testing it seems that with HTTPS (https://my.app.link) it works.

Hello,
Can you please provide me with some more information on how you are testing? I have a feeling data is not passing through because you are clicking on spurrewards://open which is not a deep link. spurrewards://open is a URI Scheme. URI Schemes will open your app, but they will not pass data (you will have to manually parse the open from +non_branch_link).
If you want to pass data into your app and track analytics of your clicks, installs, opens, and users, then I would recommend using Branch deep links instead (for example https://cluv.app.link/6TOiVlCqXx). Theses URLs are smart with redirects, custom data, and analytics. Using HTTP or HTTPS will not make a difference with them.
Furthermore, I would not recommend the following code as you are overriding all $ionicPlatform.on('deviceready' and all $ionicPlatform.on('resume' listeners with one callback function.
    var callback = function() {
        console.log(JSON.stringify(Branch));
        Branch.initSession(function(data) {
            // read deep link data on click
            console.log('Deep Link Data: ' + JSON.stringify(data));
        });
    };
    $ionicPlatform.on('deviceready', callback);
    $ionicPlatform.on('resume', callback);

Separating these listeners into separate functions, as demonstrated here, will save you some headache in the future.
Thanks,

Hi,
Regarding the issue, I was not using URI Scheme (even though it logged that).
I was always using Universal links (or Branch deep links). And as I said before, it works now, so not sure what happened at the beginning (I think it was HTTP vs HTTPS but you mention that indistinct).
Feel free to close this ticket.

Feel free to reach out if you ever have any more issues.


SMU: update to new v3 .dat files and first part of geometry sensing

Switch parsing and writing to the latest .dat inputs
Significant updates to the documentation in dataset.proto
Add output mode of original atomic input files
Add make_sqlite using the new TFRecord output
Add utilities from the geometry sensing, but it's not yet hooked up into the pipeline.
(note that there is a bunch of Julia and C++ code, but we don't need that to actually run)

@googlebot I fixed it.

All Julia code has been removed. I also had to put in a couple of unittest fixes (and hacks).
I will get the other author to respond.

I have submitted a CLA, that should be OK now, not sure why there are ongoing failures.

@googlebot I consent.


ergo: 4.0.23 -> 4.0.24

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/ergoplatform/ergo/releases.
meta.description for ergo is: "Open protocol that implements modern scientific ideas in the blockchain area"
meta.homepage for ergo is: "https://ergoplatform.org/en/"
meta.changelog for ergo is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
Warning: no invocation of /nix/store/929rbg7xmlwxlmafxfzawb2nv5yg97pq-ergo-4.0.24/bin/ergo had a zero exit code or showed the expected version
0 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 4.0.24 with grep in /nix/store/929rbg7xmlwxlmafxfzawb2nv5yg97pq-ergo-4.0.24
found 4.0.24 in filename of file in /nix/store/929rbg7xmlwxlmafxfzawb2nv5yg97pq-ergo-4.0.24

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
ergo

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/929rbg7xmlwxlmafxfzawb2nv5yg97pq-ergo-4.0.24 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A ergo https://github.com/r-ryantm/nixpkgs/archive/33b3445fa8d0f478e925ec437cea02cc776c58bc.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/929rbg7xmlwxlmafxfzawb2nv5yg97pq-ergo-4.0.24
ls -la /nix/store/929rbg7xmlwxlmafxfzawb2nv5yg97pq-ergo-4.0.24/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

ergo

Maintainer pings
cc @mmahut for testing.

Upstream already on 4.0.26


Provide downloads for polygons of supported grids

Several people have asked for polygons of the grids for use in analysis.
I think Geopackage and/or Shapefiles would be sufficient.  There are EEA ones online somewhere.

Indeed, they can be downloaded from the Data Hub of the EU: https://www.eea.europa.eu/en/datahub/datahubitem-view/3c362237-daa4-45e2-8c16-aaadfb1a003b


setup.cfg: use pytest-servers

Codecov Report

Merging #89 (1a6a35f) into main (9d52e26) will decrease coverage by 0.78%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
- Coverage   65.78%   65.00%   -0.79%
==========================================
  Files          39       39
  Lines        2426     2426
  Branches      379      379
==========================================
- Hits         1596     1577      -19
- Misses        801      822      +21
+ Partials       29       27       -2

Impacted Files
Coverage Δ

src/dvc_objects/fs/system.py
61.76% <0.00%> (-22.06%)
:arrow_down:

tests/test_reflink.py
87.50% <0.00%> (-12.50%)
:arrow_down:

src/dvc_objects/executors.py
30.43% <0.00%> (ø)

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 9d52e26...1a6a35f. Read the comment docs.

Need to convert existing tests to it though (there are a handful obvious ones with memfs).

Let's convert in a separate PR (really want to have this available already 😋 ). Thank you!


Hi,
I'm also using ELMo's embeddings by first iterating my sentences and caching all the embeddings(something similar to Create_ELMo_Cache.py), but my code runs incredibly slow(hours for the small dataset SSTb). Do you have an estimate of how long it takes to cache all your dataset(and how large is that please)?
Thanks.

Hi,
there are two important factors to speed-up the calculations:

Pass the sentences as batches to AllenNLP. Do not pass individual sentences to AllenNLP, as this is extremely slow. Instead collect all sentences and then pass all sentences at once to AllenNLP. This speeds up the computation several times.

Use a GPU: ELMo uses CNNs to compute from the characters a word representation. CNNs are fairly slow on CPUs. With a GPU, you get a very nice speedup.

With both tricks, the pre-computation is quite fast. For 10.000 sentences I need on my computer (with a recent GPU) about 1-2 minutes. Without GPU, it takes a bit longer. I'm not sure how long, but I would assume about 10 minutes.
Especially 1) made a difference in my implementation.

Thanks! This is very helpful, especially trick1. Thanks for sharing.


Refactor ImportDocumentManager to not be windows specific.

Added a FileChangeTracker, FileChangeTrackerFactory and corresponding implementations. These types now enable us to implement Windows and Mac file change tracking instead of replacing the entire import manager.
Changed the import manager to be a Roslyn based service.
Moved import manager implementation to the editor.razor assembly now since it no longer depends on windows.
Updated import manager unit tests.
Added import manager integration test
Added file change tracking tests.

#1804
FYI @mkArtakMSFT

🆙 📅


Innovation: Glean metrics from YJIT

The Rust based "just-in-time" compiler YJIT is already a viable option for production use. With related improvements coming soon in Ruby 3.3, and with Rails Edge now enabling YJIT functionality with an initializer, YJIT adoption is expected to be ever increasing.
We should spike on determining what metric information can be gleaned from YJIT, and categorize the information into 3 buckets: what can be cleaned from within the Ruby VM itself (low hanging fruit), what would require a Shopify tool or 3rd party wrapper to get at, and what would require changes to the YJIT Rust code itself.

Even without enabling YJIT stats reporting (which incurs overhead), RubyVM::YJIT.runtime_stats will still expose 18 stats.


Product stats don't work anymore

After the new stats update, the stats calculations for ASINs don't work anymore.
asin_to_ask_keepa = np.asarray(list(set(df_output.ASIN.head(1))))  # This is just a ASIN in a string
products= api.query(asin_to_ask_keepa, offers = 20,  domain='US', stats = 180)
0%|          | 0/1 [00:00<?, ?it/s]

TypeError                                 Traceback (most recent call last)
 in ()
asin_to_ask_keepa = np.asarray(list(set(df_output.ASIN.head(1))))
----> products= api.query(asin_to_ask_keepa, offers = 20,  domain='US', stats = 180)
8 frames
/usr/local/lib/python3.7/dist-packages/keepa/interface.py in normalize_value(v)
92
93                     def normalize_value(v):
---> 94                         if v < 0:
95                             return None
96
TypeError: '<' not supported between instances of 'str' and 'int'

Thank you for writing this, I have the same issue, I will submit a pull request as soon as I fix this.

Pull request has been submitted, check the code to get the desired hotfix:
https://github.com/akaszynski/keepa/pull/94

Fixed

Thanks @kevincojean for the PR.  1.2.1 is out on PyPi.


per-compress-zlib

Hello.
I'd like to give this tool a try for my dedicated server but I am running Arch Linux and there is no perl-compress-zlib.
Is there a way to get this tool working on Arch?
Thanks!

It's available in AUR.

perl-compress-zlib is in AUR
https://aur.archlinux.org/packages/perl-compress-zlib/

Yeh I should have mentioned that sorry. Its orphaned and it doesn't work. For quite some time actually. No idea what that solution is thats provided to be honest.

Are you able to use cpan to install Compress::Zlib?

Sorry never heard of cpan. I've done a search with yaourt (AUR) and I get a lot of hits, but a grep on compress or zlib gives no returns.
Needless to say I'm a total noob with perl.

The cpan command is usually included with perl.
Running cpan without any arguments should start it interactively, where the first time it is run it will bootstrap its environment.
Note that you will need gcc and some other devel tools and libraries installed to install from cpan.
$ cpan
Loading internal null logger. Install Log::Log4perl for logging messages
Sorry, we have to rerun the configuration dialog for CPAN.pm due to
some missing parameters. Configuration will be written to
 <</home/klightspeed/.cpan/CPAN/MyConfig.pm>>

CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes]

Use of uninitialized value $what in concatenation (.) or string at /usr/lib64/perl5/5.24.1/App/Cpan.pm line 644, <STDIN> line 1.
 <install_help>

Warning: You do not have write permission for Perl library directories.

To install modules, you need to configure a local Perl library directory or
escalate your privileges.  CPAN can help you by bootstrapping the local::lib
module or by configuring itself to use 'sudo' (if available).  You may also
resolve this problem manually if you need to customize your setup.

What approach do you want?  (Choose 'local::lib', 'sudo' or 'manual')
 [local::lib]

Autoconfiguration complete.

Attempting to bootstrap local::lib...

...

You can re-run configuration any time with 'o conf init' in the CPAN shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v2.1101)
Enter 'h' for help.

cpan[1]> install Compress::Zlib
Running install for module 'Compress::Zlib'
Fetching with LWP:
...

`cpan[1]> install Compress:Zlib
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/home/user/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/home/user/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Sun, 01 Oct 2017 06:29:03 GMT
HTTP::Date not available
............................................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/home/user/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /home/user/.cpan/Metadata
Compress::Zlib is up to date (2.074).
cpan[2]>`
Was it really that simple?
I will look at running the tool later today, but it looks promising. I am getting really tired of updating everything manually each update :).
Thanks for the help! I'll let you know when it works (or not :P).
👍

That looks almost as if you already have Compress::Zlib installed.

That's what I was thinking ... I always assumed it wasn't installed as that package wouldn't install so I never tried to just run the tool. Turns out its working just fine (doh!).
Anyway, now I need to figure out how to adapt my already running server in /home/steam/servers/servername and is starting with a systemd unit file. I'm reading the wiki, but not a lot of time the coming 2 weeks since I'm studying for my RHCE.
Thanks again for the help!


how to add history feature(shallow-history/deep-history) in StateMith

how to add history feature(shallow-history/deep-history) in StateMith
When need to transition out of a composite state, but later you wish to come back to the most-recent active substate of this composite state.
IBM Rational Rhapsody

https://www.ibm.com/support/pages/general-information-deep-and-shallow-history-connector-rhapsody

Hi @amigomcu! StateSmith currently doesn't have deep/shallow history functionality built-in.
StateSmith will support it in the future, but for now, you can use a variable and additional state as shown below:

HistorySm.zip
I realize the work around above doesn't scale very well (especially for deep history).
When #40 is implemented, the user_implemented_history_state state above can be replaced with a choice pseudo state (a bit more efficient).
Let's keep this issue open to track progress of implementing history functionality.

@amigomcu shallow and deep history functionality has been implemented in release 0.7.0. Documented here: https://github.com/StateSmith/StateSmith/blob/main/docs/history-vertex.md
Deep history is implemented a bit differently than how UML specifies it. Feedback and suggestions welcome.


Initialize handler attributes to empty arrays

Signed-off-by: Joe Nuspl<EMAIL_ADDRESS>Description
[Describe what this change achieves]
Issues Resolved
[List any existing issues this PR resolves]
Check List

[x] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[x] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[ ] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Thanks again


Issue #15: simplify Binder integration

This address issue #15 . Simplifies Binder integration so it should work more reliably going forward.

Note that you'll need to merge it before the URL in the updated badge will actually work. If you want to test it before merge, just change tiagoantao to fomightez in the URL in the badge. In other words, use this to launch. That link URL text is:
https://mybinder.org/v2/gh/fomightez/biopython-notebook/master?filepath=notebooks%2F00%20-%20Tutorial%20-%20Index.ipynb


No match for request after interceptor exhausted

I'm trying to run the following code from the readme
nock('http://zombo.com').get('/').times(4).reply(200, 'Ok');

http.get('http://zombo.com/'); // respond body "Ok"
http.get('http://zombo.com/'); // respond body "Ok"
http.get('http://zombo.com/'); // respond body "Ok"
http.get('http://zombo.com/'); // respond body "Ok"
http.get('http://zombo.com/'); // respond with zombo.com result

I get the following error.
Error: Nock: No match for request GET http://zombo.com/

Based on what I see in the readme, I would expect that on the fifth attempt, we would hit the server instead of using our mocked response.

Once you mock a server, any unmatched requests yield an error.
Otherwise, it would make it very hard to detect what's really going once a hostname is not mocked any more for some reason...

It seems like that section from the readme ought to be updated in that case, as it seems to imply a different expected behavior.

@Bjvanminnen agree.
Created #270 to clarify this.


How to use avx2 while convolution algorithm is winograd?

Environment
my intel cpu has avx2 instruction but don't have avx512, when I want to use winograd algorithm at git branch 0.18, it reports unimplements. So that's my question: How can I use winograd algorithm when the instruction set don't have avx512?
Thanks.

Hi @fengyulCT,
Thanks for your question!
Unfortunately, Intel MKL-DNN doesn't have an implementation of Winograd convolution for avx2 (and below) systems. So at the moment it is impossible. Moreover, we don't have plans to work on it in the nearest future either...

Hello @emfomenk ,
Can you explain why Intel MKL-DNN doesn't want to implementation the winograd for avx2. Because I think it's just use short width bit (avx2 can pack 256bit while avx512 can pack 512bit).
Thanks

This is a priority decision, as our main focus is enabling future architectures. If you are willing to develop the Winograd implementation for Intel AVX2 we would be glad to accept a pull request.

Ok, I got it. thanks


how to round to an integer?

Hello dear developer and maintainers,
i love this plugin, I have been using it for about a year now.
So now I have been wanting to implement a card which includes the uv index of my area .
The problem now is I haven't been able to use the integer to express the uv index.
What I want is just 0,1,2,3,4 but no decimal at all
I have tried rounding: -1, 0 they dont make it to integer
Could anyone tell me how to achieve that?
Thank!
here is my yaml
type: custom:history-explorer-card
header: ' '
defaultTimeRange: 6h
defaultTimeOffset: 1h
rounding: 1
recordedEntitiesOnly: true
showCurrentValues: true
refresh:
  automatic: true
graphs:
  - type: line
    options:
      ymin: 0
      ymax: 10
      ystepSize: 1
    entities:
      - entity: sensor.openuv_current_uv_index
        scale: 1
uiLayout:
  toolbar: top
  selector: hide

Try rounding: '0'
For future reference, please post questions about configuring and using the card on the HA forums. Github issues should only be used for bug reports and feature requests. Thanks !


This is a great analogy!

Reading this article is sufficient to understand the pattern, especially for experienced developers who wrote asynchronous code in other languages. Thank you so much!
I have one proposal for improving the algorithm. Preparing the coffee and OJ can be taken care of while all three async tasks are awaiting. It may save some extra time on execution. In addition, wrapping coffee and OJ preparation in separate async tasks can generalize and simplify the main awaiting loop. Just my 2c. :)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 17d27a0d-c072-8c9f-7e31-3de60bee9ae8
Version Independent ID: e0c09794-e712-19ff-cb9f-12648d60d4f6
Content: Asynchronous programming in C#
Content Source: docs/csharp/programming-guide/concepts/async/index.md
Product: dotnet-csharp
Technology: csharp-async
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks for this note @nekutuzov I'm glad you enjoyed this article.
I agree that there are further enhancements that could be made to this article. We've avoided taking this analogy too far, preferring to address those further optimizations in later examples.
Closing as kudos.


[coin-or-cbc] pre-release-version is used

Is your feature request related to a problem? Please describe.
All the coin-or-* ports use a random trunk commit instead of a released version.
I try to use Googles or-tools lib with dependencies installed via vcpkg. The library has a dependency on coin-or-cbc. The latest official release of coin-or-cbc (2.10.7) works without problems.
However, vcpkg has a random git commit from 2023-02-01 as the version in its catalog. This commit is part of the not-yet-released 3.0 version of cbc. Because there are braking changes users using the stable 2.x interface (like the or-tools lib) can't use this.
Proposed solution
Use officially released versions of the lib(s) in the vcpkg catalog
Describe alternatives you've considered
No response
Additional context
No response

IIRC adding port coin-or-cbc was tough enough. Start at #31607 to learn about the history. Heavily customized autotools, the ultimate enemy.

Hmm... I went through the hassle of getting COIN-OR libraries to work with a re-generated autotools config to fix various libtool issues on Windows for ConanCenter (https://github.com/conan-io/conan-center-index/pull/23530). I could give setting up a stable version of COIN-OR on Vcpkg a shot, if there's interest. I'm not sure if downgrading the version would be acceptable, though, as it would likely cause breakages for consumers.


debug logging no longer shows the RAW SQL

Describe the bug
In version 1.4.4 and earlier, with debug logging turned on, you would see the raw SQL in the logs.  In the current version you only get an abstracted representation of the query, which isn't helpful for sorting out subtle SQL problems.
To Reproduce
Set LOG_LEVEL=debug and run any query.  I currently get log message like:
[ DEBUG ] query read courses filters=[courses[slug] = "en-ast-main"]
I don't believe there's anything special or unusual in my configuration, but let me know if I need to supply any details.
Expected behavior
With 1.4.4, I get in addition to the above, the much more useful:
[ DEBUG ] SELECT "courses"."id" AS "courses_id", "courses"."name" AS "courses_name", "courses"."slug" AS "courses_slug", "courses"."source_language_id" AS "courses_source_language_id", "courses"."target_language_id" AS "courses_target_language_id", "courses"."creator_id" AS "courses_creator_id", "courses"."seed_set_id" AS "courses_seed_set_id", "courses"."script_status" AS "courses_script_status", "courses"."reverse_translation" AS "courses_reverse_translation", "courses"."preborg" AS "courses_preborg", "courses"."created_at" AS "courses_created_at", "courses"."updated_at" AS "courses_updated_at" FROM "courses" WHERE "courses"."slug" = $1 ["en-ast-main"]
This is what I expect to see.
Environment

Vapor Framework version: 4.45.6
Vapor Toolbox version: 18.3.2
OS version: Mac OS 11.4

Additional context
Add any other context about the problem here.

Transferring here as this is where it should be solved. Resolved by #180


Update optparse upper bound

I tested this, and everything compiles and appears to parse options correctly.
This allows elm-make to work with base-4.8, which should make building with other packages a lot easier. In particular, I think this might help with getting elm built with GHCJS.
Also, this should resolve the issues with Stackage that arose a while back.

Cabal had silently installed the old version over the new one. Will re-test and fix errors.

Cabal!!!


PP-12937: Convert final image to a scratch container

This is an experiment, before we are 100% relying on this resource, to see if a scratch container with static binaries will work as a resource in concourse. If it works we will leave it like this.

Import the time/tzdata package (and call its init function (this is the _ prefix before the package name)). This removes the need for system installed timezone data
Completely statically compile the binaries targeting linux
Change the final image to be FROM scratch

We have never tried a FROM scratch concourse resource before, if it doesn't work we will revert this PR and re-release.

This did work once deployed 🥳


Internal keyboard and trackpad stopped working on macOS Sierra 10.12.5

I installed Karabiner-Elements a few weeks back and it worked perfectly fine, but when I did the upgrade to the latest macOS on a MacBook Pro (Retina, 13-inch, Early 2015) everything started to get glitchy. Now, the internal keyboard and trackpad are completely unresponsive even after resetting the PRAM/NVRAM. Anyone have an idea how to fix this without completely wiping the machine?
Karabiner-Elements version: 0.90.92
macOS version: Sierra 10.12.5
External keyboard: WASD keyboard

ouch, that sucks.. You are posting in the wrong place.
Karabiner-Element is https://github.com/tekezo/Karabiner-Elements
It's a know issue, should be fix after update to the latest version. Good luck !!


potential fix for #683

Adding the stream operators which include the correct numeric literal suffixes for uint, long and ulong in include/boost/compute/detail/meta_kernel.hpp fixes issue #683 in my tests.  This is the same solve as for floats.

testing failed-- more wore has to be done.


xtuner如何根据checkpoints继续预训练

'''
whether to resume training from the loaded checkpoint
resume = False
'''
change 'False' into 'True'


portfolio mobile version header changes to review

header section of responsive portfolio mobile version is build and need to be reviewed

Requested  changes applied to style.css and index.html