id_print example from docs broken; crash on GPU

Dear jax team,
I am having problems using jax.experimental.host_callback.id_print. I looked at the docs and tried the example there, but it gives me either an error or crashes completely if altered slightly.
The crash happens only on GPU. On CPU, power3_2 prints correctly.
Am I using id_print incorrectly or are the docs not up-to-date? Or am I missing something?
Repro:
import jax
import jax.numpy as jnp
from jax.experimental.host_callback import id_print

def power3(x):
   y = x * x
   _, y = id_print(x, y, what="x,x^2")
   return y * x

jax.vmap(power3)(jnp.arange(3.))
# TypeError: id_print() takes 1 positional argument but 2 were given

def power3_2(x):
   y = x * x
   y = id_print(y, what="x^2")
   return y * x

jax.vmap(power3_2)(jnp.arange(3.))
"""
Works on CPU. Crashed on GPU with:

2020-09-22 09:26:56.242431: F external/org_tensorflow/tensorflow/compiler/xla/service/gpu/outfeed_thunk.cc:49]
Check failed: ShapeUtil::Compatible(hlo_instruction_->operand(0)->shape(), outfeed_buffers->shape())
XLA program outfeed request of shape (f32[3]) did not match the runtime's outfeed buffer of shape u32[2]
Aborted
"""

I am using jax and compiling jaxlib from HEAD on CUDA 10.0/450.66.

id_print takes a single argument, so the power3 example is expected to fail (and the documentation needs fixing). But power3_2 is correct. I think that I know what is happening (a bad interleaving of computations), but not why? Does the crash happen just with the code you show above?

Hey @gnecula, thank you for your answer. Yeah, I could have noticed earlier that id_print((x, y), what="x,x^2") would have been the correct usage...
Concerning the crash: it consistently happens for me on GPU in every situation so far, but never on CPU.

FYI host_callback_test.py repros this with the latest released jaxlib (0.1.56) on GPU. Something like:
TF_CPP_MIN_LOG_LEVEL=0 python tests/host_callback_test.py
CPU is fine.

I think I know the root cause of the bug, it requires some changes in XLA for GPU. I have not been able to look into this yet.

Hey @gnecula, is there any news on this?
Repro still does not work on GPU with latest releases or compiled from head. For my interest: Is id_tap mostly used on TPUs?

Unfortunately there are no news. This requires changes in XLA:GPU and it is not easy for me to make those changes. The best hope I have for this is for the issue to go away in an upcoming alternative implementation of id_tap for CPU and GPU. But this is still a few months away.
You are right that most people use id_tap on TPUs.

Just a friendy bump, as I've noticed that this still does not work on GPU while I tried out host_callback for the first time. I would be very happy about a fix, as this would solve https://github.com/google/jax/issues/1530 for me!

Repro for completeness (nothing special, not related to #1530). Crashed on GPU, works on CPU host.
import numpy as np
import jax
import jax.experimental.host_callback as hcb
import scipy.ndimage as nd

def host_filter(x):
    return nd.gaussian_filter(x, 10)

@jax.jit
def device_fun(x):
    y = x**2
    z = hcb.call(host_filter, y, result_shape=y)
    return z**2

a = jax.device_put(np.random.rand(1000))
b = device_fun(a)

crashed with same error
2021-03-05 14:49:52.165327: F external/org_tensorflow/tensorflow/compiler/xla/service/gpu/outfeed_thunk.cc:56] Check failed: ShapeUtil::Compatible(config_.input_shape, outfeed_buffers->shape()) XLA program outfeed request of shape (f32[1000]) did not match the runtime's outfeed buffer of shape u32[2]
Aborted

Hey @gnecula,
sparked by the discussion in #5577 I tested my snipped again with CUDA_VISIBLE_DEVICES=0 and it worked!
import numpy as np
import jax
import jax.experimental.host_callback as hcb
import scipy.ndimage as nd

import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"

def host_filter(x):
    return nd.gaussian_filter(x, 10)

@jax.jit
def device_fun(x):
    y = x**2
    z = hcb.call(host_filter, y, result_shape=y)
    return z**2

a = jax.device_put(np.random.rand(1000))
b = device_fun(a)    # works!

Because the fix for multi-GPU

will take at least a couple of weeks to land

maybe we can implement a nicer error message when people (accidentally) combine multi-GPU and host_callback?

Doesn't CUDA_VISIBLE_DEVICES=0 turn off all GPU devices? This means that your code runs on CPU. In other words, it is not a surprise that your code works because the bug appears only on GPU.

No, PCI bus indexing is 0-based. So CUDA_VISIBLE_DEVICES=0 runs on GPU #0.
CUDA_VISIBLE_DEVICES="" turns off GPU.


Can't autowire AADB2COidcLoginConfigurer

Environment

Spring boot starter:

active directory B2C spring boot starter version 2.2.0-RELEASE

OS Type: Windows

Java version:

11

Summary
I'm getting an error when running app, on following code (Autowiring is not working for the AADB2COidcLoginConfigurer  object)
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

    private AADB2COidcLoginConfigurer configurer;

    public WebSecurityConfig(AADB2COidcLoginConfigurer **configurer**) {
        this.configurer = configurer;
    }

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http
                .authorizeRequests()
                .anyRequest()
                .authenticated()
                .and()
                .apply(configurer)
        ;
    }
}

The error :
NoSuchBeanDefinitionException: No qualifying bean of type 'com.microsoft.azure.spring.autoconfigure.b2c.AADB2COidcLoginConfigurer' available
Reproduce steps
Following this sample and packaging it with maven/running it :
https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-samples/azure-active-directory-b2c-oidc-spring-boot-sample
Expected Results
No error.
Actual Results
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSecurityConfig' defined in file [C:\Users\[...]\WebSecurityConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.microsoft.azure.spring.autoconfigure.b2c.AADB2COidcLoginConfigurer' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.microsoft.azure.spring.autoconfigure.b2c.AADB2COidcLoginConfigurer' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

Thanks for reporting this. We'll look into it.

Hi @neexs, I've run the sample locally and did not run into the same exception. Could you please provide more information, like which version of Spring Boot you're using, or you pom.xml?

@saragluna - We are facing the same issue with this using release 2.2.3 and java 11.
<dependency> <groupId>com.microsoft.azure</groupId> 			<artifactId>azure-active-directory-b2c-spring-boot-starter</artifactId> 			<version>2.2.3</version> 		</dependency>
It appears if we look at the files they do not have spring annotations defining them as beans for autowiring. This should have something like @Component or @Configuration if I am not mistaken.
https://github.com/microsoft/azure-spring-boot/blob/master/azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/b2c/AADB2COidcLoginConfigurer.java
You can see any of the other classes for other modules have these annotations like this one for cosmos db.
https://github.com/microsoft/azure-spring-boot/blob/master/azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/cosmosdb/CosmosDbRepositoriesAutoConfiguration.java

@saragluna - I worked on this some more and determined there must have been some issue causing the AADB2CAutoConfiguration.java not to do its job.
If I have time ill try and follow my initial steps and see what was missed causing this.
This is working as expected for me now.

Glad to hear that and thanks for your investigation.

same problem with AADAppRoleAuthenticationFilterAutoConfiguration

@fdr42 Sorry for the late response. Could you help provide more details?

I solved the problem which was my bad, sorry

Hi, sorry for the late response, I've got some urgent issues to solve... The problem was our side, not related to the library. Thank you for your help, and sorry again.

@fdr42 Could you please guide how you resolve your issue.
I'm facing same issue as of now.
I'm using spring boot 2.3.3.RELEASE, java 8, azure-active-directory-spring-boot-starter 2.2.3.
I followed https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-active-directory-b2c-oidc.
Thanks in advance.

Having this same problem in Dec 2020. @neexs , @fd42, what were you doing wrong and how did you fix it?

@gbsmith in my case the cause of the problem was invalid "application.properties", I assume that these beans are conditional and you have to add some properties keys to create them.
For example: "AADAppRoleStatelessAuthenticationFilter" requires "azure.activedirectory.client-id" property

@gbsmith in my case the cause of the problem was invalid "application.properties", I assume that these beans are conditional and you have to add some properties keys to create them.
For example: "AADAppRoleStatelessAuthenticationFilter" requires "azure.activedirectory.client-id" property


Enqueueing podcasts can result in duplicate filenames

Newsboat version: 426e911e980492fd569618384121c1cc2810b718 (current master)
Config file (copy from ~/.newsboat/config or ~/.config/newsboat/config):
# Empty

Steps to reproduce the issue:

Add https://feeds.simplecast.com/XA_851k3 (Stack Overflow Podcast) to the urls file

In Newsboat, enqueue multiple items from the feed

Start podboat, observe that multiple entries have the same download location.

Other info you think is relevant:
It would be useful if Newsboat would check if a filename already exists in the queue file before adding it.
Newsboat already looks through the file to check if the download URL is present so we are looping through the file anyway.

Agreed. The question is: what to do about it? File managers usually append "(1)", "(2)" and so forth, perhaps we should do the same? This might conflict with the files that are already in the download directory.

Agreed. The question is: what to do about it? File managers usually append "(1)", "(2)" and so forth, perhaps we should do the same? This might conflict with the files that are already in the download directory.

I would prefer showing an error in the status line and returning false from the process_operation() function (for https://github.com/newsboat/newsboat/issues/1137) if the filename already occurs in the queue file.
Main reason: It makes sure people will notice if their configuration does not work well for certain feeds (e.g. in the case of https://feeds.simplecast.com/XA_851k3, the filename is always default_tc.mp3).
Then, they could change the configuration appropriately or even apply a specific workaround to the offending feed (when  per-feed settings are supported: https://github.com/newsboat/newsboat/issues/83).

I would prefer showing an error in the status line and returning false from the process_operation() function (for https://github.com/newsboat/newsboat/issues/1137) if the filename already occurs in the queue file.
Main reason: It makes sure people will notice if their configuration does not work well for certain feeds (e.g. in the case of https://feeds.simplecast.com/XA_851k3, the filename is always default_tc.mp3).
Then, they could change the configuration appropriately or even apply a specific workaround to the offending feed (when  per-feed settings are supported: https://github.com/newsboat/newsboat/issues/83).

Good point, I agree. By "changing the configuration appropriately", you mean changing  download-filename-format to include more info like episode's title, right?

Good point, I agree. By "changing the configuration appropriately", you mean changing  download-filename-format to include more info like episode's title, right?

Yes, that is exactly what I had in mind.

Yes, that is exactly what I had in mind.


pretix: 2024.3.0 -> 2024.4.0

Description of changes
Update pretix to the 2024.4.0 releases and carry some dependencies along.

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 309338 run on x86_64-linux 1

2 packages marked as broken and skipped:

irrd
irrd.dist

58 packages built:

authentik
mailman-web
mailman-web.dist
paperless-ngx
pgadmin4
pgadmin4-desktopmode
pgadmin4-desktopmode.dist
pgadmin4.dist
pretalx
pretalx.dist
pretalx.static
pretix
pretix.dist
python311Packages.css-inline
python311Packages.css-inline.dist
python311Packages.django-allauth-2fa
python311Packages.django-allauth-2fa.dist
python311Packages.django-ckeditor
python311Packages.django-ckeditor.dist
python311Packages.django-extensions
python311Packages.django-extensions.dist
python311Packages.django-hierarkey
python311Packages.django-hierarkey.dist
python311Packages.django-markup
python311Packages.django-markup.dist
python311Packages.django-mysql
python311Packages.django-mysql.dist
python311Packages.django-otp
python311Packages.django-otp.dist
python311Packages.django-statici18n
python311Packages.django-statici18n.dist
python311Packages.django-two-factor-auth
python311Packages.django-two-factor-auth.dist
python311Packages.flask-security-too
python311Packages.flask-security-too.dist
python311Packages.python-creole
python311Packages.python-creole.dist
python311Packages.webauthn
python311Packages.webauthn.dist
python312Packages.css-inline
python312Packages.css-inline.dist
python312Packages.django-allauth-2fa
python312Packages.django-allauth-2fa.dist
python312Packages.django-markup
python312Packages.django-markup.dist
python312Packages.django-mysql
python312Packages.django-mysql.dist
python312Packages.django-otp
python312Packages.django-otp.dist
python312Packages.django-statici18n
python312Packages.django-statici18n.dist
python312Packages.django-two-factor-auth
python312Packages.django-two-factor-auth.dist
python312Packages.python-creole
python312Packages.python-creole.dist
python312Packages.webauthn
python312Packages.webauthn.dist
seahub


Fix: change require to import

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
0

Sum
1


Create Ajibajibbds_Account Linking - Set up a Child Accounts_2023-12-…

…2023.cdc

duplicated code
https://github.com/FlowFans/zealy-campaigns/blob/main/2023/q4-code-snippets/submissions/deva andika_Account Linking - Set up a Child Account_2023-12-19.cdc


[WIP] Add a Jenkins job to sync data between production and AWS staging

I don't know what to do about the gor traffic replay stuff, as that was in the Carrenza sync job but obviously not the AWS integration sync job.

https://trello.com/c/cYTPEGvn/1044-data-sync-from-production-carrenza-to-staging-aws

We should do Carrenza Staging => AWS Staging syncs instead to avoid locking Production database tables. I'll change this.


Nested menu bar in all pages

[x ] Bug
A menu bar (of a hub site) displays nested within all of the web part pages. Please can this be resolved as its confusing users. Currently using V3

I cannot replicate this issue. Here is a custom asset that is part of a hub site:

That page used as a custom asset in a custom playlists:

Not the hub site menu is not displayed, nor is the header of the page.

Hi Julie,
So taking the example of a standard sub category with a custom playlist. When a page is loaded in the playlist the title of the page gets hidden and the nested menu displays, its does hide when I resize the page but its there otherwise. see attached, same in Chrome and Edge.

Ok, I was able to replicate this in a web part on a normal page verses a single app part page and have created a fix that I will release as soon as I can.


Can I restrict client to certain directory ?

I want to specify certain directory to clients not the root "/".
I tried modify  cwd:
class FTP_client:
    self.cwd = '/user_dir'

It works okay on Windows file Explorer but not well on android clients(it still access the very root "/" dir)
Also failed in modifying method :
def get_absolute_path(self, cwd, payload):
or maybe i write it wrong can you show me how to modify this.
Thanks for the time.

That could get a little bit tricky, since ftp works with full path names. You could try to add a hidden (from ftp) root path, which is inserted before path whenever the code accesses real path names, like in the functions send_file_data(), get_file_data(), send_list data() and eventually make_description(). But the latter may work well with the extended path name.


Dependency on pdftohtml

The method pdftoxml is dependent on the utility pdftohtml. If the utility is missing, no error is reported but no xml is returned either on calling the method on pdf file data. To fix the problem pdftohtml needs to be installed which is part of poppler-utils. So run sudo apt-get install poppler-utils. The devs need to update the Readme file for dependencies.

Thanks for reporting :+1:

Thanks a lot. Working perfectly


Hiding injected Spring parameters from the API

The controllers in my application are using Spring's dependency injection to include a BindingResult object, that I'm naming errors, in the parameters of my controller endpoint method. The problem is that the generated API specification thinks that errors is a parameter for the API and is included in the specification when viewed in, say, Swagger UI.
I want to be able to annotate (or something) this kind of injected parameter to exclude it from the API. Is there a way to exclude this kind of method parameter from the documentation.
I've had a hunt around the Internet for examples, and I've even read the source code for Springfox, but I can't seem to find a way to exclude this kind of parameter. Am I missing something here?
Thanks for any direction you can provide.

Okay. To help other dummies like me, maybe, you can prefix parameters that you don't want included in the documentation with an @ApiIgnore annotation, and that parameter will not be included in the generated specification.
For example:
            @ApiIgnore final Errors errors,
            @ApiIgnore final UriComponentsBuilder uriComponentsBuilder) { … }```

Problem solved, I reckon.

Still, these parameters should not have been picked up, in the first place. They are not annotated with @RequestParam but e.g. with @AuthenticationPrincipal. It's not nice to annotate all of them with @ApiIgnore, is it?

No its not. Are you using version 2.3.0?

Well, 2.7.0 actually. Or does this refer to some other thing?
      <dependency>          <groupId>io.springfox</groupId>          <artifactId>springfox-data-rest</artifactId>          <version>2.7.0</version>       </dependency>

Seems that the problem with @AuthenticationPrincipal annotation is still there. I'm using the latest version 2.9.2, referring the io.springfox:springfox-swagger2:2.9.2 and io.springfox:springfox-swagger-ui:2.9.2 packages. We all will be happy if it will be possible to rid of the @ApiIgnore annotation (btw, @s5b thank you for the posted workaround). In any case, thank you very much guys for your work, SpringFox is an incredibly powerful tool =)

You could also globally ignore types in your docket, if you don't use the model anywhere other than in the implementations itself

A quick gist for those who want to globally ignore types:
    @Bean
    public Docket createRestApi() {
        return new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(apiInfo())
                .ignoredParameterTypes(UserAuthentication.class) // <--- THIS!!!
                .select()
                .apis(RequestHandlerSelectors.basePackage("com.hello.world"))
                .paths(PathSelectors.any())
                .build();
    }

@fzyzcjy 's solution actually works but may causes problems if UserAuthentication type is actually used in another endpoint (i.e registration). Hence following is a better approach and working the same:
.ignoredParameterTypes(AuthenticationPrincipal.class)


Adding update for redis lists

This pertains to the PR I have made for adding the optional authentication params for the Redis Scaler (https://github.com/kedacore/keda/pull/962).  Added some additional wording around the use of those attributes as env vars. I added this to the 2.0 version and created a new version 1.6 as I would think it would go out with the next release? Is there another branch I should be using as the base besides the master branch for potential adds in the next release?

@tomkerkhove @tbickford what is the status of this?

@tomkerkhove @tbickford what is the status of this?

I thought this was good to go or did I miss something?

I've added some suggestions above but they are nits, for the rest I'm fine.
Up to you folks.

I've added some suggestions above but they are nits, for the rest I'm fine.
Up to you folks.

My bad - I had thought I addressed those items. I pushed an update.


Enhancement request: sap.m.SelectDialog / sap.m.TableSelectDialog

It would be good if the select dialog had buttons for "Select all" and "Deselect all" in multiselection mode.
In a list with lots of entries where you want to select all items it is quite cumbersome to manually do it for every single item.
Besides that it would be good to have some kind of "CustomHeader" aggregation where we can add further controls - like buttons - to implement additional actions.
Please let me know your opinion if this could be considered in future releases.

Hello @Frank683 ,
Thank you for share your enhancement proposal. I've created an internal incident<PHONE_NUMBER>. The status of the issue will be updated here in GitHub.
Regards,

Hello @Frank683,
Thank you for your request.
We had multiple discussions on the topic. Here is the summary:

Select all and Deselect all option.
Currently the sap.m.List supports CTRL+A on devices with Keyboard already (focus has to be on the list) and you can use it in the SelectDialog.
In usual cases, where the control is used to filter and select one or multiple values, we do not see a need for the select all button. But this may vary, depending on the use case. We decided that we will not do such an implementation for now and wait for more feedback on the topic.
As a workaround you can try to use the suggested approach in the guidelines by including None/All/Something else as an option in the list https://experience.sap.com/fiori-design-web/select-dialog/ or use a standard dialog and customize it.

Expose custom header aggregation.
The SelectDialog a quite simple dialog which can anyway be built with existing controls. Adding more features to it, increases the maintainability and opens the control for errors and usage out of its initial idea and design. Our suggestion here is if you need some additional controls or logic, to use standard dialog and design it based on your needs.

In case you have additional questions or comments, please reopen the issue.
Best Regards,
Nikolay


'dropdownStyleData' isn't defined.

The named parameter 'dropdownStyleData' isn't defined. (Documentation)  Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'dropdownStyleData'.

Are you using latest release?


'ng g component' sometimes updates app.module but sometimes not

Versions
$ node -v
v8.9.1

$ ng -v
Angular CLI: 1.6.5
Node: 8.9.1
OS: win32 x64
Angular: 5.2.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.5
@angular-devkit/build-optimizer: 0.0.41
@angular-devkit/core: 0.0.28
@angular-devkit/schematics: 0.0.51
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.5
@schematics/angular: 0.1.16
typescript: 2.5.3
webpack: 3.10.0

Repro steps

Step 1

new a project in command line   => OK

    ng new my-ng-app

Step 2

go to project    => OK

   cd my-ng-app

Step 3

try to create some componets    => not OK

   $ ng g component first-cmp
   create src/app/first-cmp/first-cmp.component.html (28 bytes)
   create src/app/first-cmp/first-cmp.component.spec.ts (643 bytes)
   create src/app/first-cmp/first-cmp.component.ts (280 bytes)
   create src/app/first-cmp/first-cmp.component.css (0 bytes)
   update src/app/app.module.ts (408 bytes)  // updated

  $ ng g component layout/main-layout
     create src/app/layout/main-layout/main-layout.component.html (30 bytes)
     create src/app/layout/main-layout/main-layout.component.spec.ts (657 bytes)
     create src/app/layout/main-layout/main-layout.component.ts (288 bytes)
     create src/app/layout/main-layout/main-layout.component.css (0 bytes)
     update src/app/app.module.ts (515 bytes)  // updated

   $ ng g component ui/button
     create src/app/ui/button/button.component.html (25 bytes)
     create src/app/ui/button/button.component.spec.ts (628 bytes)
     create src/app/ui/button/button.component.ts (269 bytes)
     create src/app/ui/button/button.component.css (0 bytes)
     update src/app/app.module.ts (600 bytes)     // updated

   $ ng g component ui/input
     create src/app/ui/input/input.component.html (24 bytes)
     create src/app/ui/input/input.component.spec.ts (621 bytes)
     create src/app/ui/input/input.component.ts (265 bytes)
     create src/app/ui/input/input.component.css (0 bytes)
     update src/app/app.module.ts (681 bytes)     // updated

   $ ng g component component/input
     create src/app/component/input/input.component.html (24 bytes)
     create src/app/component/input/input.component.spec.ts (621 bytes)
     create src/app/component/input/input.component.ts (265 bytes)
     create src/app/component/input/input.component.css (0 bytes)
     // not updated

   $ ng g component feature/input
     create src/app/feature/input/input.component.html (24 bytes)
     create src/app/feature/input/input.component.spec.ts (621 bytes)
     create src/app/feature/input/input.component.ts (265 bytes)
     create src/app/feature/input/input.component.css (0 bytes)
    // not updated

   $ ng g component features/input
     create src/app/features/input/input.component.html (24 bytes)
     create src/app/features/input/input.component.spec.ts (621 bytes)
     create src/app/features/input/input.component.ts (265 bytes)
     create src/app/features/input/input.component.css (0 bytes)
      // not updated

   $ ng g component ui/text
     create src/app/ui/text/text.component.html (23 bytes)
     create src/app/ui/text/text.component.spec.ts (614 bytes)
     create src/app/ui/text/text.component.ts (261 bytes)
     create src/app/ui/text/text.component.css (0 bytes)
     update src/app/app.module.ts (758 bytes)   // updated

   $ ng g component some/text
     create src/app/some/text/text.component.html (23 bytes)
     create src/app/some/text/text.component.spec.ts (614 bytes)
     create src/app/some/text/text.component.ts (261 bytes)
     create src/app/some/text/text.component.css (0 bytes)
     // not updated

Observed behavior

As you can see in step 3, sometimes app.module.ts file got updated but sometimes not.

Desired behavior

Always update app.module.ts

Mention any other details that might be useful (optional)

No special

I can reproduce this, with the latest version of the CLI (6.0.7 at this time).
My guess is that some components are not added to the module simply because they have the same name as already added components.
To add a second component also named "input", the CLI would have to use aliased imports:
import { InputComponent as InputComponent1 } from './component/input.component';
[...]
     declarations: [
        ...,
        InputComponent1
     ]

But even then, you would also have to tweak the selector of these components to avoid a name clash, and the selector you would choose would probably be different from the name (InputComponent1 in the above example) that the CLI would choose.
So I wonder if

using two components with the same name in the same module is a good idea in the first place
forcing you to choose an alias and a selector for a component that has the same name as an already existing one is not the best solution after all.

@jnizet is correct that having 2 components with the same name in the same module is not a great idea. That being said, adding a message about this is something the team will consider adding.

Hi. I have the same issue, and I don't have any component with shared names. Any solve for this?

ionic -v 6.1.0
ng -v 8.3.25

im having the same issue as @moisesh18
Angular CLI: 9.1.6
Node: 10.16.3
OS: win32 x64

The example from this issue is producing 3 different InputComponent classes, all of them having the same selectors. You can rename them importing in the app.module.ts, but you can't fix the selector conflict, they all have the same app-input selector. The directory is not taken into account when creating a new component. If you really want 3 different input components, you need to give them different names.
This works as intended. I think that this issue should be closed.

I end up with using different component names,such as:
ng g component ui/ui-input
ng g component feature/feature-input
ng g compoinent xxxx/yyyy/zzzz/xxxx-yyyy-zzzz-input

generating component files like xxxx-yyyy-zzzz-input.component.ts component names like XxxxYyyyZzzzInputComponent to avoid it.
It's just that they have very long filenames and component names. And the component file name carries the meaning that the directory level can already indicate.
however it works, Try to get used to it.
close this issue.

You could also use:
ng g component ui/input/ui-input --flat
CREATE src/app/ui/input/ui-input.component.css (0 bytes)
CREATE src/app/ui/input/ui-input.component.html (23 bytes)
CREATE src/app/ui/input/ui-input.component.spec.ts (636 bytes)
CREATE src/app/ui/input/ui-input.component.ts (282 bytes)
UPDATE src/app/app.module.ts (846 bytes)

This way, your directory will have a shorter name.


[sw/silicon_creator] Add entry_point, code_start, and code_end fields to the manifest

This change

Adds entry_point, code_start, and code_end to the manifest,
Updates the signer tool to set these fields by parsing ELF files, and
Removes manifest_entry_point_address_get and the extra entry in ROM_EXT interrupt vector since they are no longer needed.

This change also adds a new rust dependency (object crate) for parsing ELF files.

Should we make these fields relative offsets from the start of the image? That might give us a bit more flexibility later since it avoids pinning us to a particular slot.

Should we make these fields relative offsets from the start of the image? That might give us a bit more flexibility later since it avoids pinning us to a particular slot.

I was planning to add this note before marking this as ready :) I think it depends on how we end up handling A/B slots I'm OK with either way. @cfrantz @moidx WDYT?

Should we make these fields relative offsets from the start of the image? That might give us a bit more flexibility later since it avoids pinning us to a particular slot.

I was planning to add this note before marking this as ready :) I think it depends on how we end up handling A/B slots I'm OK with either way. @cfrantz @moidx WDYT?

Relative Offsets STGM. This would be aligned with the address translation proposal lowrisc/opentitan#5947.

Changed fields to be offsets from the start of the manifest, added getters with bounds checks.


[EH] add possibility to use custom fields

see https://github.com/Laravel-Backpack/CRUD/issues/1385

Thank you @tswonke and @OliverZiegler ! Sorry you had to work with old Laravel code here. Cheers!


VS 2022 Community is forever Installing SDK Components and never completes.

VS 2022 Community is forever Installing SDK Components and never completes.
Using VS 2022 fully patched.
Ran SDK Manager and installed virtually all SDKs.
VS keeps asking for SDK 28 which is NOT available in SDK Manager.
Blocked.

Hi @mkamoski , for issues with Visual Studio and the installer, please use the VS feedback tool to report the issue. That way it will get to the routed to the right that owns this experience in VS.


Organise finetune code and docs

Two main changes

Move main scripts into subfolders
Moved readmes into docs

This should make the code easier dicover and to understand.

@srmsoumya also added torchgeo to the env, it was missing in the EuroSAT example 806aa5813d16786d40f530f3dde3dbab60c941c6


Installed settings from app cause Syntax error

Hi,
does https://banglejs.com/apps/ has the latest version?
Uncaught SyntaxError: Expecting a valid value, got ID
at line 1 col 110
...false,"clock":null,"12hour":galse,"distance":"kilometer"}
^

require('Storage').list()
=[
".boot0",
".bootcde",
"+boot",
"+launch",
"-launch",
"+miclock",
"-miclock",
"*miclock",
"+setting",
"-setting",
"@setting",
"*setting"
]
require('Storage').read("@setting")
="{"ble":true,"dev"" ... "nce":"kilometer"}"
console.log(require('Storage').read("@setting"))
{"ble":true,"dev":true,"timeout":10,"vibrate":true,"beep":true,"timezone":0,"HID":false,"clock":null,"12hour":galse,"distance":"kilometer"}
=undefined

Can you try re-installing?
I don't understand what happened here because galse isn't mentioned anywhere in the repository and if you look at the default settings file there's obviously no mention of it: https://banglejs.com/apps/apps/setting/settings-default.json
It's possible it's an internal error somewhere which cases an out of bounds JsVar lock/reference, so if you can find a way to reliably reproduce I can track it down.

got a new one
2v04.341 (c) 2019 G.Williams
Uncaught SyntaxError: Got '>' expected ','
at line 1 col 12
{"ble":true>"dev":true,"timeout":10,"vibrate":true,"beep":tr...

 I really need steps to reproduce this.

Yes, just build this morning
=undefined
>process.env
={
  VERSION: "2v04.341",
  GIT_COMMIT: "1c3547a09",
  BOARD: "BANGLEJS",
  FLASH: 524288, RAM: 65536,
  SERIAL: "c7fa9624-75c07c51",
  CONSOLE: "Bluetooth",
  MODULES: "Flash,Storage,hea" ... "ow,graphical_menu",
  EXPTR: 536883676 }
>

I will eraseAll() and start over again

So after installing the apps
>require('Storage').list()
=[
  ".boot0",
  ".bootcde",
  "+boot",
  "+launch",
  "-launch",
  "+setting",
  "-setting",
  "*setting",
  "+miclock",
  "-miclock",
  "*miclock",
  "+sbt",
  "=sbt",
  "@setting"
 ]
>

I switch the timezone  from 0 to 1 and that's it and various trouble happen....
 2v04.341 (c) 2019 G.Williams
Uncaught SyntaxError: Got '-' expected ','
 at line 1 col 63
...,"vibrate":true,"beep":true-"timezone":1,"HID":false,"clock"...

Do you install apps from https://banglejs.com/apps using the "Install Default Apps" button?
I just tried exactly that, changed the timezone, and everything is fine.
Can you try re-uploading after having done a make clean? It's possible your build is corrupted

Can you try re-uploading after having done a make clean? It's possible your build is corrupted

Yes, uploaded several time and "Settings" it often failing in my environment ( Mac OS X 10.15.3 with Chrome 79.0.3945.130)
Next is to update Chome to  80.0.3987.87 (Offizieller Build) (64-Bit) and run further test.
What environment are you using for all the firmware flashing and app transfering?

I'm using Linux and Chrome v79 at the moment. Could you do require('Storage').read("@setting") immediately after the upload and see if it's broken there? It seems like it would be the settings app itself that's corrupting the JSON but it'd be good to be sure

Tested multiple deletes and add of app settings on multiple Bangle.
alway got this result:
>require('Storage').read("@setting").split(',');
=[
  "{\"ble\":true",
  "\"dev\":true",
  "\"timeout\":10",
  "\"vibrate\":true",
  "\"beep\":true",
  "\"timezone\":0",
  "\"HID\":false",
  "\"clock\":null",
  "\"12hour\":false",
  "\"distance\":\"kilometer\"}"
 ]

And is that broken? I can't see anything obviously wrong there?

And is that broken? I can't see anything obviously wrong there?

There was no error in that json when reading settings directly after flashing.

Updated to espruino_2v04.343_banglejs.zip and reloeaded app  Settings
Tested Settings - Rest
Console Message:
Uncaught Error: Unhandled promise rejection: ReferenceError: "setLCDTimeout" is not defined
>require('Storage').read("@setting").split(',');

https://github.com/espruino/BangleApps/blob/e1ddfe8ac4104213f6240e97272e02547dce199e/apps/setting/settings.js#L26

Is this ok now?

Yes, so let’s close this.


Fix multi-user running

The lie_md service should keep multiple Cerise dockers running, and keep track of which users owns which container, and route requests appropriately.

With the new async interface #13  Different containers can be handle (as long as different ports are requested). Containers are only shutdown if not jobs are running at all. This allows  to have multiple containers and route the requests in a client-server interface using the unique metadata of a given job to properly handle the communication.

That sounds like it would work. If it helps, you can actually shut down a Cerise container while jobs are running. You just have to make sure to not delete it (a new container wouldn't know about existing jobs) and to start it up again before submitting more jobs, or requesting the status of runnning jobs (otherwise you'll get no response from the REST API, since the server behind it is not running).
A stopped Cerise container doesn't do any staging though, so keeping them running means that result downloads will start as soon as the results are available. That will probably make our users happy.


How to install on Windows?

How do I install this plugin on windows?
Where to put the command "pip install fritzcollectd" ?

I'll answer myself...
On windows you need python to run this installation.
Just write "python" in the cmd, windows 10 will guide you to the windows store to download it.
Once installed, you have to write the following command:
python -m pip install fritzcollectd

But I don't know where to find the collectd.conf to edit

Normally /etc/collectd/collectd.conf

Thanks.
That's what i read in the instructions as well.
But the only files I could find with a "collectd" in the name on all my partitions are:
C:\Users\NUC\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\usr\share\sosreport\sos\plugins\__pycache__\collectd.cpython-36.pyc
C:\Users\NUC\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\usr\share\sosreport\sos\plugins\collectetd.py

fritzcollectd is a plugin for collectd. You'd have to get this service installed first. If you want to use the dashboard, you'll also need to install Grafana.


chore(website): fix playground kotlin generation not working

Description
Was missing some last details in the code to generate the kotlin models.

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 92.277%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5237

Relevant Lines:
5532

💛  - Coveralls


added css pro-tips for ('margins')

Done As Requested!
On Fri, 1 Dec 2023 at 06:32, Jesus Torres @.***> wrote:

@.**** requested changes on this pull request.
Only lines that should be changed / included should be for your margin CSS
work don't change any prior existing code please
In README.md
https://github.com/AllThingsSmitty/css-protips/pull/179#discussion_r1411628133
:

:empty {
  display: none;
}

+### Use margin-inline to add margin to both right and left of an html element,moreover when you want to set margin to top and bottom with same value use the shorthand margin-block
lines 605 through 615 should be the only lines being included your pr is
modifying a lot of lines please adjust this and resubmit
In README.md
https://github.com/AllThingsSmitty/css-protips/pull/179#discussion_r1411628896
:

:empty {
  display: none;
}

+### Use margin-inline to add margin to both right and left of an html element,moreover when you want to set margin to top and bottom with same value use the shorthand margin-block
cause of changes could be auto format setup in your IDE I'd start their
—
Reply to this email directly, view it on GitHub
https://github.com/AllThingsSmitty/css-protips/pull/179#pullrequestreview-1759046633,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXO3HMVQPCKU4ZZC2YBBZGTYHFTW7AVCNFSM6AAAAAA2N4BFBWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTONJZGA2DMNRTGM
.
You are receiving this because you authored the thread.Message ID:
@.***>


Suddenly the sms code is stop send to user who sign with phone

i have app build with flutter and is already published on google play and app store
the app is work fine until yesterday the users not receive sms code  when sign with phone number
Project Firebase Info

Blaze Plane
more than 20000 accounts sign with phone auth

in debug mode the codeSent callback is called but still not have any send code
UPDATE : the problem is happen with specific mobile network

@mahmood-heja whenever you are having a problem with your project in production please contact Firebase Support:
https://firebase.google.com/support
They will help you resolve this.


Archetypes for token procedure plugins

hi @mtrojanowski ,
What do you think the best approach is to test the token procedures?
Mocking the context or Curity will provide some Factories to avoid these mocks.

Hey @ClaudenirFreitas,
Currently, the easiest way is to mock the context. You can have a look at an example procedure and its tests: https://github.com/curityio/long-lived-token-procedure-plugin/blob/main/src/main/test/groovy/io/curity/identityserver/plugins/longLivedTokensProcedurePlugin/LongLivedTokensProcedurePluginTest.groovy
A more advanced approach would be to create end-to-end tests that use an instance of the Curity Identity Server. There isn't an example with the token procedure, but you can have a look at how it's done for an authenticator plugin: https://github.com/curityio/redirect-action-example#running-tests-locally-with-cypress There is also an article that describes this approach in more detail: https://curity.io/resources/learn/testing-an-instance-of-curity/

Cool, thanks @mtrojanowski!


Response interceptors are called after following a 302 redirect

I added a response interceptor to my axios instance before making a request to an end point. The end point issued a 302 redirect. The interceptor was called, but only after the 302 redirect was followed.
Is there a(nother) way to intercept 302 redirects?

3xx redirects are handled automatically by the browser and there is no way to intercept them.


migrated from gulp-tsc to gulp-typescript

In gulp-tsc, the emitError option was used.  This resulted in a little less error info at the terminal, and a return code of 0 (instead of 1).  gulp-typescript has a similarly named option noEmitOnError, but it is NOT the same as gulp-tsc emitError.  Toggling noEmitOnError changes the terminal output for 1 line about typescript emit.  It also has no impact on the return code (always 1).  Plenty of people are interested in the return code because they use a watcher, and they don't want it to stop on errors.  They tend to have several recommendations, but it seems that the most preferred is gulp-plumber.  If we're interested in that functionality, I can take a look at that.  In the meantime, let me know if this change is OK.

Going for what is currently most recommended seems reasonable. Gilp-plumber might be little more effort, but could be worth looking into.


Expand filters a lot

See the test-filter.js changes for a somewhat decent representation of the phrases added, though the tests do not test every possible phrase.
I ran these filters as a dry run last night and edited out the tweets that were retweeted by VegAssist:
Connected to Twitter (dry run, will not retweet matches)
657837580747198464 : JordanBuchan96 : i really want to go vegan
657866030312587264 : hotlinenigger : RT @KevsDgaf: My mama said I should try going vegan wit her but I said sorry mama I like cheeseburgers and eating pussy
657881047779188736 : edarnleysmith : i really want to go vegan one day �
657893967040786432 : emeraIdpines : RT @edarnleysmith: i really want to go vegan one day �
657908270275895296 : Directionheart : SO GOOD STELLA 10/10 especially since I wanna try being vegan next week � you inspire me @stellaraee ��
https://t.co/8ZHvTKsfdR
657908552439230465 : stellaraee : RT @Directionheart: SO GOOD STELLA 10/10 especially since I wanna try being vegan next week � you inspire me @stellaraee ��
https://t.co/8Z…
657946227007496192 : KHAILA_G : I wanna be a Vegan someday, but I'm just not ready yet.
657949519724851205 : joyful_thought : "I want to be a vegan vampire for Halloween," my 5 yr old states emphatically.

 I'll deploy & restart with the updates.

I unquestionably believe it will happen.


Unexpected Rendering output when there exist nested

Version
2.5.16
Reproduction link
 https://codepan.net/gist/96d7331dd5ae36e75ac03fad25ab7312
Steps to reproduce
Open this link, you can repro this bug directly.
What is expected?
Should keep the original nested structure.
What is actually happening?
You can find when a <p> is nested in a <p>, the render result will be three parallel <p>.

sorry,  cannot be nested in , just close it.
https://www.w3.org/TR/html401/struct/text.html#h-9.3.1


can reducer return Observable to handle async operatons?

export const counterReducer: ActionReducer<number> = (state: number = 0, action: Action) => {
    switch (action.type) {
        case INCREMENT:
            return Observable.create(observer => {
                observer.next(state + 1);
            });
        case DECREMENT:
            return state - 1;
        case RESET:
            return 0;
        default:
            return state;
    }
};

No. Use effects.

To expand on @fxck's answer, reducers should always be pure, synchronous functions. You will always want to handle async operations outside of reducers.

Yes, reducers are pure functions, but the middleware doesn't have to be. Is Effects non-blocking? If so it's not very useful as it's never in sync with the store. It'd be better if it was a promisified blocking middleware like those listed in the redux docs - > http://redux.js.org/docs/advanced/AsyncFlow.html


Mozilla Firefox pinned to the dock, but not launching in response to a click on the icon

https://user-images.githubusercontent.com/192271/105627664-0e857300-5e30-11eb-935a-086936ec9a3c.mp4

Let's revisit this once we have Firefox as a (wrapper) .app bundle...

Let's revisit this once we have Firefox as a (wrapper) .app bundle...

Thanks.
In the meantime, if it helps … in this frame from the screen recording, there was very faint hint of a circular 'running' indicator beneath the icon, some time after using QTerminal to run firefox:

Thanks.
In the meantime, if it helps … in this frame from the screen recording, there was very faint hint of a circular 'running' indicator beneath the icon, some time after using QTerminal to run firefox:

very faint hint of a circular 'running' indicator beneath the icon

Do you mean the blue dot? I guess we should make it white?

very faint hint of a circular 'running' indicator beneath the icon

Do you mean the blue dot? I guess we should make it white?

I never noticed blueness, I see black.
White might be better against the default desktop background but I wonder about other contexts.

I never noticed blueness, I see black.
White might be better against the default desktop background but I wonder about other contexts.

Will set to white for now. At least the defaults need to work well together ;-)

Will set to white for now. At least the defaults need to work well together ;-)

Firefox (when installed by pkg and not having an .app bundle nor an .AppDir) cannot be launched when pinned to the Dock because the Dock cannot figure out the corresponding .desktop file.

/usr/share/applications is hardcoded in systemappmonitor.c as the location that is searched for .desktop files (this does not exist on FreeBSD; QStandardPaths::ApplicationsLocation should be used instead)
xWindowWMClassName is used in utils.cpp to find "matching" desktop files; xWindowWMClassName of Firefox is Navigator
utils.cpp tries to match Navigator to

The name of desktop files (e.g., Navigator.desktop - no such file exists)
StartupWMClass in the desktop files (e.g., StartupWMClass=Navigator - no such key exists)
Icon in the desktop files (e.g., Icon=Navigator.png - this does not match)
Exec in the desktop files (e.g., Exec=Navigator - this does not match)

As a quick and dirty workaround I will change the hardcoded /usr/share/applications to /usr/local/share/applications for FreeBSD; if you add StartupWMClass=Navigator to /usr/local/share/applications/firefox.desktop then you should be able to pin Firefox.
Even with these quick and dirty workarounds utils.cpp does not really find the "matching" desktop files for many applications. This issue should be resolved "properly" in upstream cyber-dock.
This is one example for why we don't like XDG .desktop files and are using .app bundles and .AppDir as our native application formats in helloSystem.

Work has been done in Filer since this had been reported, however this might now also be an issue with firefox.desktop missing a WindowWMClassName entry which might have to be fixed in FreeBSD Ports.

I made a Firefox wrapper app bundle (and Thunderbird) and neither works from the dock.
I might be able to make a "real" bundle, with CMake and Meson it's piece of cake.

Neither works from the dock.

Please describe what the issue is. If the Dock doesn't show the icon of an app bundle correctly, then possibly there is a bug in the Dock.

The issue is associating Firefox's wm class with its app bundle. If you pin it, close it, then try and launch it from the dock nothing happens.

Do you have Firefox.app/Resources/Firefox.png?


index.html template rendered as text when requesting "/"

This is probably just an ordering issue somewhere, but it had me scratching my head for a couple of minutes.
Steps to reproduce:

Create the following files in a new directory:
index.html:
{{/* super secret information goes here */}}
Public information goes here

Caddyfile:
localhost:2020
template / .html

Run caddy

Visit "/" and "/index.html" and compare the results

Expected results:

Both execute the template and display only "Public information goes here"

Actual results:

"/" displays the source of the file, starting with {{/* (i.e. the template does not get executed)
"/index.html" works as expected.

I bet the bug is here:
reqExt := path.Ext(r.URL.Path)

for _, ext := range rule.Extensions {
	if reqExt == ext {

"/" doesn't have a ".html" extension, so the comparison fails and the template doesn't get executed. Should be a simple matter of checking if the path is a directory first, and if so, if an index file exists.
Although, more middlewares are going to run into this issue. Right now the list of index files is actually defined in the browse middleware which the core fileServer references. But maybe this isn't the best way to do it.
Perhaps each middleware could have an IndexFiles []string field that the application sets. To make this work well, I need to finish refactoring the config package and get those generator (New()) functions out of the middleware packages.
Okay - in summary: the simple fix is to just have the template middleware look for index.<extension> if the request is to a directory. That could hold us over for now, maybe?

Yeah, that sounds reasonable. Though this was enough to hold me over for now:
rewrite / /index.html

@ciarand This fix will go out at the next release.

Sounds great, thanks @mholt!


Add Windows path variables to gen

High-level description
Add variables to gen to provide Windows paths
Corresponding DC/OS tickets (required)

DCOS-ID JIRA title / short description.

Related tickets (optional)

DCOS-ID JIRA title / short description.

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain.
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot changelog-not-required Part of Windows port


Installation failed on Windows 7

Stacktrace:
Program: Starting install, writing to C:\Users\alexandre.briani.NT\AppData\Local\SquirrelTemp
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\alexandre.briani.NT\AppData\Local\atom\packages\RELEASES'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
at Squirrel.UpdateManager.CheckForUpdateImpl.d__28.MoveNext()
CheckForUpdateImpl: Reading RELEASES file from C:\Users\alexandre.briani.NT\AppData\Local\SquirrelTemp
CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
ApplyReleasesImpl: Writing files to app directory: C:\Users\alexandre.briani.NT\AppData\Local\atom\app-0.176.0
IEnableLogger: Failed to write file: C:\Users\alexandre.briani.NT\AppData\Local\atom\app-0.176.0: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at NuGet.PhysicalPackageFile.GetStream()
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass8b.b__8a()
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)
IEnableLogger: Failed to install package to app dir: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at NuGet.PhysicalPackageFile.GetStream()
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass8b.b__8a()
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)
at Squirrel.UpdateManager.ApplyReleasesImpl.copyFileToLocation(FileSystemInfo target, IPackageFile x)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.b__80(IPackageFile x)
at System.Collections.Generic.List1.ForEach(Action1 action)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.b__7f()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__86.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__4b`1.MoveNext()

@paulcbetts would it be possible to get the path into the log file?

@AlexandreKieling Can you upload the entire log as a Gist?

Same issue on Windows 7: https://gist.github.com/robingram/40ff2d05753fc11658e5

Entire log here: https://gist.github.com/AlexandreKieling/f5e9ab0ac70c3e3557e9

I think this change was caused by our fix for memory usage; NuGet extracts the file out to a temp dir and probably uses some brain dead base path. I'll see what I can do about this.

I had the same error, a fix would be greatly appreciated.

I have the same error on Windows 8.1 x64

@paulcbetts this can be closed now right?
@sevin7676 What Atom version are you using?

I just downloaded the latest installer from https://atom.io/ today

0.179.0 still fails on Windows 7 x64. Here is a log file: https://gist.github.com/paul-sh/012b3960ffc34829a6fd

0.182.0 on Windows 7 x64 installed with no issues today.

0.182.0 also worked for me on Windows 8.1 x64

All right, closing as fixed.
If anyone is still experiencing this please comment below!


add option to disable default snapshot handler

Add support for an input only option to disable the default snapshot handler and return a built query reference instead

Nice :+1:


Citation is different in Sphinx > 2.0

Using the same .rst  from the Demo available here: Link for the reference demo example
Sphinx 1.8.5

Os: Win64
Python Version: 3.6.7
Sphinx Version: 1.8.5
RTD Theme Version: 0.4.3

Sphinx 2.2.0 (and 2.0.1 as well)

Os: Win64
Python Version: 3.6.7
Sphinx Version: 2.2.0
RTD Theme Version: 0.4.3

Likely a duplicate of #800. That one will be addressed first, and hopefully clears up this issue as well.

Closing. Direct duplicate of #741


Update libpng (1.6.35 --> 1.6.36)

Changes : http://www.libpng.org/pub/png/src/libpng-1.6.36-README.txt

You're reading my mind :)
I was actually checking right now if 1.6.37 had finally been released to update to it directly (it should provide a fix for https://github.com/glennrp/libpng#275 - CVE-2019-7317). But it doesn't hurt to update to 1.6.36 in the meantime.

@akien-mga Yeah, I modified SCsub file to include new file - "palette_neon_intrinsics.c" Is that ok ?

I modified SCsub file to include new file - "palette_neon_intrinsics.c" Is that ok ?

Seems good yeah.

Thanks!

Cherry-picked for 3.0.7. (And 2.1.6.)


style transfer example

adding example for style transfer:
https://github.com/zhanghang1989/MXNet-Gluon-Style-Transfer

Please also add apache header to example codes.

Thanks guys. I have addressed the aforementioned problems. Please give another round. 👍

how big are the image files? Consider submit it to https://github.com/dmlc/web-data and link here

I have sent a PR to web-data with the images https://github.com/dmlc/web-data/pull/26
I will update the image paths after it is merged.

merging this for now. Possibly refactor layer


Support Clementine remote control protocol

This would allow users to remote control the player from an Android device, for instance.
See clementine-remote.

hm. I think clementine-remote is quite similar to MPD clients like mpdroid, which are already supported.

I agree, but it is another standard and I already wrote some frontends for Clementine (a web ui and a MPRIS-based ui) and I would be happy to see them work with groovebasin.
If adding the feature is not possible, is there a plugin system available? Or, would it be possible to choose between different available frontends?

Is there some document I can read to get a quick overview of the protocol? @emersion the examples in your repo are good but very simple. I'm looking for, what messages can the client send to the server and vice versa.
The MPD protocol is complete garbage and the GrooveBasin protocol is much better. I wonder where Clementine protocol fits on that line.

If adding the feature is not possible, is there a plugin system available?

There is not a plugin system. If the feature was added I would maintain it along with the rest of the code. The code is organized into modules though; the mpd protocol interfaces with the player module and the groovebasin protocol interfaces with the player module. Supporting another protocol would be a matter of adding another module which also interfaces with the player module. It would either be easy and straightforward or require changing the way that GrooveBasin indexes data depending on how the protocol works.

There is a more complete example with my Clementine Node.js server here: https://github.com/emersion/node-clementine-server/blob/master/index.js#L26
But it may be easier for you to have a look to my PR ;-)
Here are the dev docs for Clementine Remote: https://github.com/clementine-player/Android-Remote/wiki/Developer-Documentation
A good point is that it's based on protobuf. You can see the .proto file here: https://github.com/clementine-player/Android-Remote/blob/master/app/src/main/java/de/qspool/clementineremote/backend/pb/remotecontrolmessages.proto
But the protocol has been designed for Clementine, so some features are missing now and some data format doesn't perfectly fit with groovebasin's (e.g. the songs list is downloaded once as a SQLite database). So it will require some work to make it work well (most of it is already implemented in clementine-remote).

Thanks, the .proto file was really helpful. It looks pretty on par with the MPD protocol. The client requests information and then the server returns it. I don't see a way to subscribe to changes, do you? This is one thing the Groove Basin protocol does better, I think. Instead of requesting information, you subscribe to it, and you are from then on notified whenever the thing you subscribed to changes.

I decided to not support the clementine protocol. I think it is not popular enough to care about, and it has similar flaws to the MPD protocol. Meanwhile, a first draft of the Groove Basin Protocol Specification is merged into master.

Wow, thanks a lot for your quick response and work. I understand your decision and I'll prefer to use Groove Basin protocol instead too.
On August 19, 2015 7:45:06 AM CEST, Andrew Kelley<EMAIL_ADDRESS>wrote:

I decided to not support the clementine protocol. I think it is not
popular enough to care about, and it has similar flaws to the MPD
protocol. Meanwhile, a first draft of the Groove Basin Protocol
Specification is merged into master.

Reply to this email directly or view it on GitHub:
https://github.com/andrewrk/groovebasin/issues/454#issuecomment-132453497

--
Simon Ser
http://emersion.fr

Cool, and if you run into something that is not very well designed in the Groove Basin protocol, please do file an issue and let's make it better :-)


Adding Cause to ClickContainerEvent method signature causes the event not to fire.

Affected Product(s)
SpongeVanilla
Version
SV 1.16.5-8.1.0-RC1213
Operating System
Windows
Java Version
JDK 11
Plugins/Mods
LuckPerms v5.4.0
My Test Plugin

Describe the bug
Using a method signature as follows:
@Listener
    public void onClick(ClickContainerEvent event, @Root ServerPlayer player){
        logger().info("called!");
        for(Object o : event.cause().all()){
            logger().info(o.toString());
        }
    }

Causes the above event to not be fired. However when removing the player parameter, the event is fired and the cause stack reveals the player is indeed in the cause stack:

[22:10:45] [Server thread/INFO] [plugin]: called!
[22:10:45] [Server thread/INFO] [plugin]: net.minecraft.world.inventory.ChestMenu@27c842aa
[22:10:45] [Server thread/INFO] [plugin]: ServerPlayer['doublehelix457'/251, l='ServerLevel[key=ResourceKey[minecraft:dimension / minecraft:overworld],worldType=minecraft:overworld]', x=32.35, y=67.00, z=138.91]
[22:10:45] [Server thread/INFO] [plugin]: net.minecraft.world.inventory.ChestMenu@27c842aa
[22:10:45] [Server thread/INFO] [plugin]: ServerPlayer['doublehelix457'/251, l='ServerLevel[key=ResourceKey[minecraft:dimension / minecraft:overworld],worldType=minecraft:overworld]', x=32.35, y=67.00, z=138.91]
[22:10:45] [Server thread/INFO] [plugin]: net.minecraft.server.TickTask@4aef49dd

I have not tested if this issues effects other causes/ annotations/ event classes.
Link to logs
No response

According to your logs, the root of the cause is a ChestMenu and not a ServerPlayer. Your filter is working as expected.
You have to use @First instead of @Root if you want to target all causes that contains a player.

As the ChestMenu is already part of the cause I disabled the part that adds it a second time.
That leaves the player being the root cause.


Link objects are not validated in Collections

We need to return link object to the json schema for collections

Link objects are validated in the catalog schema which the collection schema inherits.


Johtaylo/teamsextensions

adds Teams specific extension methods on TurnContext and Activity
fixes TeamsActivityHandler to return HTTP 501 Not Implemented as default on various Invoke calls

Pull Request Test Coverage Report for Build 80584

0 of 0   changed or added relevant lines in 0 files are covered.
28 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-5.6%) to 75.589%

Files with Coverage Reduction
New Missed Lines
%

/libraries/Microsoft.Bot.Builder.Teams/TeamsActivityHandler.cs
28
62.16%

Totals

Change from base Build 80548:
-5.6%

Covered Lines:
4137

Relevant Lines:
5473

💛  - Coveralls

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.3.1

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.3.1


Copilot Chat showing  raw HTML in the chat instead of rendering markdown

System details:

VS Code Version: 1.90.0-insider
OS Version: Linux x64 5.15.0-107-generic
Logs: No errors; seems to be a display issue.

Steps to Reproduce:

Ask any question that would result in an answer that would be wrapped in a "code" (triple backtick markdown) block. (E.g. ask it for a code snippet). See example provided in screenshot.
Notice how, instead of being formatted, the raw formatting HTML related to markdown shows up in the chat instead of being rendered.

Screenshot (I've highlighted the HTML with red):

*edit: title


Shallowly copy a collection before updating it and setting it to withOnyx state

Fixes https://github.com/Expensify/Expensify/issues/151770
To reproduce the bug and test this fix we can:

Navigate to a report
Add this diff to a react component subscribing to all reports via Onyx

componentDidUpdate(prevProps) {
    console.log(prevProps.reports);
    console.log(this.props.reports);
}

Toggle a report from pinned to unpinned or vice versa
Verify that the isPinned property on the active report is the different for both the prevProps and this.props

cc @tgolen found another pretty weird one while testing some other things out

cc @tgolen found another pretty weird one while testing some other things out


Deprecation error: getBuild() has been deprecated

I noticed I'm now getting the following deprecation warning when running the cheat-sheet:

craft()->getBuild() has been deprecated. As of Craft 2.6.2951, craft()->getVersion() returns the complete version number (X.Y.Z).	/home/staging7/public_html/ku/craft/templates/cheatsheet.html

I suspect it's a simple fix to update the template to use getVersion() although I don't think it will be backwards-compatible.
Simon.

Hey Simon,
We're getting it too. :)
We're on a holiday break right now but have plans to roll out a fix in the
first week of January. Thanks for posting it here to make sure we were
aware! I'll reply again when this is fixed up.
Erik
On December 22, 2016 at 1:05:05 AM, Simon East<EMAIL_ADDRESS>wrote:

I noticed I'm now getting the following deprecation warning when running
the cheat-sheet:
craft()->getBuild() has been deprecated. As of Craft 2.6.2951,
craft()->getVersion() returns the complete version number (X.Y.Z).
/home/staging7/public_html/ku/craft/templates/cheatsheet.html
I suspect it's a simple fix to update the template to use getVersion()
although I don't think it will be backwards-compatible.
Simon.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/focuslabllc/craft-field-cheat-sheet/issues/40, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AADiwHeQAFtzkLzy3gpAlVzhbjHsqVfPks5rKhMRgaJpZM4LTq0u
.

@SimonEast This should be all fixed up with the latest release. :)


alert report support config admin cluster multi servers

alert report support config admin cluster multi servers
shenyu:
  alert:
    enabled: true
    admins: localhost:9095,<IP_ADDRESS>:9095

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #5197 (3080f33) into master (6f64107) will decrease coverage by 0.70%.
The diff coverage is 7.14%.

@@             Coverage Diff              @@
##             master    #5197      +/-   ##
============================================
- Coverage     61.91%   61.22%   -0.70%
+ Complexity     8585     8512      -73
============================================
  Files          1245     1245
  Lines         37676    37692      +16
  Branches       3563     3563
============================================
- Hits          23327    23076     -251
- Misses        12310    12633     +323
+ Partials       2039     1983      -56

Files
Coverage Δ

...pringboot/starter/gateway/ShenyuConfiguration.java
89.28% <100.00%> (ø)

.../org/apache/shenyu/common/config/ShenyuConfig.java
66.66% <33.33%> (ø)

...che/shenyu/plugin/base/alert/AlarmServiceImpl.java
0.00% <0.00%> (ø)

... and 26 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Hi，@tomsun28, pls add add these configurations in Shenyu document

Hi，@tomsun28, pls add add these configurations in Shenyu document

hi https://github.com/apache/shenyu-website/pull/981 please help me review this pr.


Exception Messages

Please, write the exception messages in english.

Hi,
I checked the code and all messages seems to be in english-like.
If there's some mistakes or suggestions on a message, can you report which operation/exception you get a wrong message?

Hi, there are various Italian messages in LDAPUser.cs.
(Thanks for the creating this library, it's proving very useful).

Hi,
I have translate the italian messages in the file to English.
I'll keep this issue open in case of other language mistakes.
Comment here to signal what file need reviews.
Glad to see that someone find usefull my work


running with nohup causes unpacking error

This is the error:

File "/usr/local/lib/python2.7/dist-packages/pytube/cli.py", line 98, in get_terminal_size
rows, columns = os.popen('stty size', 'r').read().split()
ValueError: need more than 0 values to unpack

apparently "stty size" when ran under nohup returns

stty: standard input: Inappropriate ioctl for device

and not the with and the height of the terminal, which is what stty expects

When you do a nohup, the process is no longer attached to the terminal. As such, it is not able to get the height and width of the terminal.


How can I train segmentation using FCN-Alexnet with 360p images?

I'm following the examples of segmentation.
I don't have enough memory on my graphic card, so I want to train with 360p images. (When I try training with 720p images, I always meet the 'out of memory' error.)
After training with 360p images, the results on the host PC are very good and similar to tutorials.
But when I test on the jetson TX2, the results are not good.
Is there any additional work to use on my jetson TX2 when I train using 360p images?

What graphics card do you have? Are you using batches greater than 1? Maybe that's the issue. You shouldn't have problems to train with 720p

@bpinaya Thank you for your reply. My graphics card is GTX 1060Ti w/ 3GB RAM. I cannot sure what batch size was set, but the size was larger than one.
As I said, the test result is very good on my host PC. But the test result on Jetson TX2 is poor as you can see above. I cannot understand why the result is not the same even if I used the same deep learning model.

Uhm... don't worry, let's try to figure it out? What command are you using to deploy the network in the TX2? Maybe you are choosing a different network. also there will be some low resolution since Dustin is not using the deconvolution layer and just doing bilinear interpolation, even though the results should look better. From what I can see in your image it seems that the results are shifted since the slope seems to be the same.


Update dependencies

Update dependencies
Fixes remaining CVEs in #70 that were remaining after recent dependabot merges.
cc @marrobi

Hi @schristoff could you merge this one please?  thanks


Bump react-scripts from 3.4.1 to 4.0.3 in /modules/lti

This PR is superseding #2356  as this dependency update requires more changes.
I checked the changelog for breaking changes and tried to check our code for everything that needs to be adjusted. I think I got everything important, but I'm not 100% sure as some points in the changelog confuse me.
Your pull request should…

[x] have a concise title
[ ] close an accompanying issue if one exists
[x] be against the correct branch (features can only go into develop)
[x] include migration scripts and documentation, if appropriate
[x] pass automated tests
[ ] have a clean commit history
[ ] have proper commit messages (title and body) for all commits

Since @kristofkeppens already checked this out (thanks btw :D) and so did Lars, I'm gonna go ahead and merge this. :D


Failures on Fix bug in Completer.complete.

There are new test failures on Fix bug in Completer.complete..
The tests
pkg/vm_snapshot_analysis/test/instruction_sizes_test RuntimeError (expected Pass)

are failing on configurations
unittest-asserts-release-win

The test analysis/test/instruction_sizes_test  had some issues which were fixed in
https://dart-review.googlesource.com/c/sdk/+/266820
https://dart-review.googlesource.com/c/sdk/+/267244


preference selector + tests

Selector for filtering pois based on category.

At: 'Neighbourhood sports facilities and parks' there is some problem looking into it right now

now "ALL" yields same result as all separately selected.


Stripped logs use default texture when chopped

Chopping a stripped log will make it use the stripped oak texture instead of its own. Also, sideways stripped logs will use the texture of an upright log when chopped (top left chopped log in picture).

All logs in this tree were either Acacia or Stripped Acacia before chopping.
Minecraft: 1.18.1
Forge: 39.0.59
Mods: TreeChop-1.18.1-0.15.5

Egads that’s ugly. Thanks for reporting, I’ll get it fixed


Fix FuzzedDataProvider::ConsumeSmallIntInRange

FuzzedDataProvider:
ConsumeIntInRange invokes ConsumeSmallIntInRange which generated int64 from tail of remained bytes and did not shift the buffer.
Byte order is keep the same. It consumes the same value from saved seeds when the bytes are in end of data.
Some stored seeds might provide different values.

Hi babanek,
This code was based off this function from the equivalent FuzzedDataProvider in LLVM:
https://github.com/llvm-mirror/compiler-rt/blob/master/include/fuzzer/FuzzedDataProvider.h#L93
Essentially, it pops off the end rather than the beginning, but it should still remove bytes from the data. (The --remaining_bytes_; being the relevant line).
Although, I never did actually test it to see if LLVM's pop-off-the-end strategy produces better results; I just assumed their comment was correct.
Is there a bug in the Atheris implementation? Does your more standard implementation produce better results?

Thank you for point to code reference.
Current approach is quickly and works very well.
I cannot find any profit of my code except common sequence in bytes.
It could help a bit to generate seeds manually.


Visibility of scroll indicator

In my app, I am encountering a scroll indicator on horizontal scrolling, which I don't want to display.

https://pub.dev/documentation/data_table_2/latest/data_table_2/DataTable2/isHorizontalScrollBarVisible.html


Using "prompt editing" ([from:to:when]) breaks prompt travel

When traveling between prompts that use prompt editing, it appears as if it's switching completely over to the original prompt when the prompt edit threshold is reached.  If the prompt edit happens very early on (like [red:blue:0.2]), barely anything changes until the last image.

Regrettably but technically this extension cannot support [from:to:when] syntax in semantic sense (it just not getting error though), the condition must be a constant for each stage :(
To interpolate on a mutable condition requires step by step tracing at lower sampler/CFGDenoiser level, which is resource consuming and need more hard code hack (current webui hooks cannot do it), it be exhausted to maintain in face of webui's frequent updates.


Table of Contents shows undefined for Firefox

Originally reported here: https://www.reddit.com/r/firefox/comments/3dqo6p/firefox_behaving_poorly_in_some_websites/
The reason is because generateTableOfContentsForPage uses non-standard innerText, rather than textContent.
Changing:
$('#tableOfContents').append("
" + alignment +
          this.innerText + "
");

to
$('#tableOfContents').append("
" + alignment +
          this.textContent + "
");

Will fix it for all modern browsers.

This should be fixed. Thanks for the report. Let us know if you still experience issues.

Thanks for the quick fix!


limit retries and send metrics if S3 files cannot be uploaded

Checklist

[x] Update changelog in CHANGELOG.md.

I'll also create a new tag from this PR without adding the changes @whites11 made, because we need to have more IAM permissions

we currently don't get pages for clusters where s3 objects cannot be uploaded. also the retry should be limited because it's blocking.


kubectl get rc,pods should invoke in that order

SplitResourceArguments should not use a golang map

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1208008

LGTM

Got a green travis, self-merging


Filters defined on base entity are not apllied when querying the child

Describe the bug
If you define Filter on entity then use that filter in entity manager's method such as findAndCount, Filter does not affect on count result.
Stack trace
N/A
To Reproduce

Define Entity and Filter

enum Status {
  OPEN = 'open',
  CLOSED = 'closed',
  MERGED = 'merged',
}

@Filter({
  name: 'closed',
  cond: {
    status: Status.CLOSED,
  },
})

@Entity()
export class PullRequest {
  @PrimaryKey({ type: 'uuid' })
  id = v4();

  @Property()
  title!: string;

  @Index()
  @Property({ columnType: 'timestamp' })
  createdAt = new Date();

  @Enum()
  status: Status = Status.OPEN;
}

Let's imagine we have 50 closed, 20 merged, 30 open PR (100)

Fetching Entities

...
const [entities, totalCount] = await pullRequestRepository.findAndCount(
  {},
  {
    orderBy: { createdAt: QueryOrder.DESC },
    limit: 25,
    offset: 25,
    filters: ['closed'],
  },
);
...

The total count result is equal to the count of all PRs

Expected behavior
Count result of the findAndCount method with Filter must be equal to the count of all filtered entities not all of them.
Versions

Dependency
Version

node
15.14.0

typescript
4.2.3

mikro-orm
4.5.6

postgres
13.2-1

That's hard to believe, the very same condition object is used in both find and count methods, as well as the very same helper that applies filters is used inside those. Tried to reproduce it this test and it works as expected, the condition is part of both queries.
select "e0".* from "benefit" as "e0" where "e0"."benefit_status" = $1
select count(distinct("e0"."id")) as "count" from "benefit" as "e0" where "e0"."benefit_status" = $1

Please provide executable repro, preferrably as a test case like in the https://github.com/mikro-orm/mikro-orm/tree/master/tests/issues folder.
And start with enabling debug mode and verifying what are the actual queries.

@B4nan thank you for your fast response and also @Langstra thank you for your interest.
Sorry for the misinformation.
I also attempted to create a reproduction for my problem. You can check repro here https://github.com/nozgurozturk/mikro-orm/blob/issue/1979/tests/issues/GH1979.test.ts
I guess the bug is about single table inheritance.
These are SQL queries
With Filter
select "e0".* from "benefit" as "e0" where "e0"."type" = 'Profit'
select count(distinct("e0"."id")) as "count" from "benefit" as "e0" where "e0"."type" = 'Profit'

Without Filter
select "e0".* from "benefit" as "e0" where "e0"."benefit_status" = 'A' and "e0"."created_at" <= '2021-06-28T21:11:34.884Z' and "e0"."type" = 'Profit'
select count(distinct("e0"."id")) as "count" from "benefit" as "e0" where "e0"."benefit_status" = 'A' and "e0"."created_at" <= '2021-06-28T21:11:34.884Z' and "e0"."type" = 'Profit'

Thanks for the repro!
If you look at the queries, the problem is not just with the count query, the condition is missing in both queries:
[query] select "e0".* from "benefit" as "e0" where "e0"."type" = 'Profit' [took 4 ms]
[query] select count(distinct("e0"."id")) as "count" from "benefit" as "e0" where "e0"."type" = 'Profit' [took 13 ms]

The issue is more generic, its about STI vs filters, nothing em.findAndCount() or even em.count() specific.
Also note that your filter as it is defined will use constant date value, you might want to use callback so the value is taken when filter is applied:
@Filter({
  name: 'isActive',
  cond: () => ({ benefitStatus: 'A', createdAt: { $lte: new Date() } }), // here the date will be dynamic
//  cond: { benefitStatus: 'A', createdAt: { $lte: new Date() } }, // here the date is constant, computed on require time
})

Thank you @B4nan for the fast response and fix, I investigated the issue and planned to open PR about that but you did, Thanks 🙏.


Approval required for every transaction 1 week after log in on Safari

We're having an issue on Safari desktop with approvalRequired on the React web app we're building:
Given that I'm using Safari
And I logged in 1 week ago with access level 4
When I attempt to buy a coin
Identity requires me to Approve Transaction
And it requires me to approve every single transaction following that
Despite the fact that the seed-hex-key in Cookies is now correctly updated to last another week (i.e. now to expire 2 weeks from when I originally logged in)
Deleting my local storage manually and re-logging in means I don't have to approve each transaction, at least for another week. Really we want users to be able to log into the web app once at access level 4 and only have to approve a transaction when absolutely necessary. I'm not sure if I'm missing something?

i have the same experience on bitclout.com where i have to sign a transaction ones a week.
ITP wipes non cookie data after 7 days for first party domains
see https://webkit.org/tracking-prevention/
7 day cap section:

Therefore, ITP caps the expiry of all cookies created in JavaScript to 7 days and deletes all other script-writeable storage after 7 days of no user interaction with the website.

i have the same experience on bitclout.com where i have to sign a transaction ones a week.
ITP wipes non cookie data after 7 days for first party domains
see https://webkit.org/tracking-prevention/
7 day cap section:

Therefore, ITP caps the expiry of all cookies created in JavaScript to 7 days and deletes all other script-writeable storage after 7 days of no user interaction with the website.

Understood, the issue I'm reporting is that even when I approve a transaction after 1 week, every transaction following that also requires approval.

For future reference this issue was moved https://github.com/bitclout/identity/issues/49


add (require 'compile)

I needed to add (require 'compile) to not get an error of compilation-error-regexp-alist-alist being uninitialized or nil
Thanks for the pull request!

If you care, my PR preferences are at https://github.com/ndmitchell/neil#contributions, but they're all guidelines, and I'm not too fussy - you don't have to read them.

Thanks!