Could not automatically diff shadow schema

Bug report
Describe the bug
After launching supabase via pnpm supabase start, the following script could not be executed properly.
pnpm supabase db diff -f test

The output is as follow:

When running in debug mode, there is some unknown error at the end of the debug log:

Expected behavior
The command should result in a success message, although there are no changes to the migration scripts and the local database.
System information

OS: Windows 11, Build 22621.1344
Version of supabase-js: 1.42.5
Version of Node.js: 19.7.0

The issue still exists on supabase v1.42.8.

I suspect this has something to do with docker's host network mode support on windows. Could you help post the error log again after upgrading to 1.43.1?

@sweatybridge This is my log with the version 1.43.1. Unfortunately looks the same to me. Let me know if posting the whole (very long) log could help. Thanks!
2023/03/21 14:36:54 PG Recv: {"Type":"ParseComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"BindComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"NoData"}
2023/03/21 14:36:54 PG Recv: {"Type":"CommandComplete","CommandTag":"ALTER TYPE"}
2023/03/21 14:36:54 PG Recv: {"Type":"ParseComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"BindComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"NoData"}
2023/03/21 14:36:54 PG Recv: {"Type":"CommandComplete","CommandTag":"ALTER TABLE"}
2023/03/21 14:36:54 PG Recv: {"Type":"ParseComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"BindComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"NoData"}
2023/03/21 14:36:54 PG Recv: {"Type":"CommandComplete","CommandTag":"ALTER TABLE"}
2023/03/21 14:36:54 PG Recv: {"Type":"ParseComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"BindComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"NoData"}
2023/03/21 14:36:54 PG Recv: {"Type":"CommandComplete","CommandTag":"ALTER TABLE"}
2023/03/21 14:36:54 PG Recv: {"Type":"ParseComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"BindComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"NoData"}
2023/03/21 14:36:54 PG Recv: {"Type":"CommandComplete","CommandTag":"ALTER TABLE"}
2023/03/21 14:36:54 PG Recv: {"Type":"ParseComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"BindComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"NoData"}
2023/03/21 14:36:54 PG Recv: {"Type":"CommandComplete","CommandTag":"ALTER TABLE"}
2023/03/21 14:36:54 PG Recv: {"Type":"ParseComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"BindComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"NoData"}
2023/03/21 14:36:54 PG Recv: {"Type":"CommandComplete","CommandTag":"ALTER TABLE"}
2023/03/21 14:36:54 PG Recv: {"Type":"ParseComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"BindComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"NoData"}
2023/03/21 14:36:54 PG Recv: {"Type":"CommandComplete","CommandTag":"ALTER TABLE"}
2023/03/21 14:36:54 PG Recv: {"Type":"ParseComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"BindComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"NoData"}
2023/03/21 14:36:54 PG Recv: {"Type":"CommandComplete","CommandTag":"ALTER TABLE"}
2023/03/21 14:36:54 PG Recv: {"Type":"ParseComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"BindComplete"}
2023/03/21 14:36:54 PG Recv: {"Type":"NoData"}
2023/03/21 14:36:54 PG Recv: {"Type":"CommandComplete","CommandTag":"ALTER TABLE"}
2023/03/21 14:36:54 PG Recv: {"Type":"ReadyForQuery","TxStatus":"I"}
Diffing schemas: auth,extensions,public,storage
2023/03/21 14:36:54 PG Send: {"Type":"Terminate"}
2023/03/21 14:36:54 Sent Header: Host [docker]
2023/03/21 14:36:54 Sent Header: User-Agent [Go-http-client/1.1]
2023/03/21 14:36:54 Send Done
2023/03/21 14:36:54 Recv First Byte
2023/03/21 14:36:54 Sent Header: Host [docker]
2023/03/21 14:36:54 Sent Header: User-Agent [Go-http-client/1.1]
2023/03/21 14:36:54 Sent Header: Content-Length [273]
2023/03/21 14:36:54 Sent Header: Content-Type [application/json]
2023/03/21 14:36:54 Send Done
2023/03/21 14:36:54 Recv First Byte
Error: error diffing schema:

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.```

$ docker --version
Docker version 20.10.17, build 100c701

May I check what's the output of your docker --version?

It's still an issue on v1.44.0.
The last few lines of running the same command with debug tag:
2023/03/22 12:02:54 PG Send: {"Type":"Bind","DestinationPortal":"","PreparedStatement":"","ParameterFormatCodes":null,"Parameters":[],"ResultFormatCodes":[]}
2023/03/22 12:02:54 PG Send: {"Type":"Describe","ObjectType":"P","Name":""}
2023/03/22 12:02:54 PG Send: {"Type":"Execute","Portal":"","MaxRows":0}
2023/03/22 12:02:54 PG Send: {"Type":"Sync"}
2023/03/22 12:02:54 PG Recv: {"Type":"ParseComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"BindComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"NoData"}
2023/03/22 12:02:54 PG Recv: {"Type":"CommandComplete","CommandTag":"DROP FUNCTION"}
2023/03/22 12:02:54 PG Recv: {"Type":"ParseComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"BindComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"NoData"}
2023/03/22 12:02:54 PG Recv: {"Type":"CommandComplete","CommandTag":"CREATE FUNCTION"}
2023/03/22 12:02:54 PG Recv: {"Type":"ParseComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"BindComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"NoData"}
2023/03/22 12:02:54 PG Recv: {"Type":"CommandComplete","CommandTag":"CREATE FUNCTION"}
2023/03/22 12:02:54 PG Recv: {"Type":"ParseComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"BindComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"NoData"}
2023/03/22 12:02:54 PG Recv: {"Type":"CommandComplete","CommandTag":"CREATE FUNCTION"}
2023/03/22 12:02:54 PG Recv: {"Type":"ParseComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"BindComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"NoData"}
2023/03/22 12:02:54 PG Recv: {"Type":"CommandComplete","CommandTag":"CREATE FUNCTION"}
2023/03/22 12:02:54 PG Recv: {"Type":"ParseComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"BindComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"NoData"}
2023/03/22 12:02:54 PG Recv: {"Type":"CommandComplete","CommandTag":"CREATE FUNCTION"}
2023/03/22 12:02:54 PG Recv: {"Type":"ParseComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"BindComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"NoData"}
2023/03/22 12:02:54 PG Recv: {"Type":"CommandComplete","CommandTag":"CREATE FUNCTION"}
2023/03/22 12:02:54 PG Recv: {"Type":"ParseComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"BindComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"NoData"}
2023/03/22 12:02:54 PG Recv: {"Severity":"NOTICE","SeverityUnlocalized":"NOTICE","Code":"00000","Message":"trigger \"update_product_units_amount_trigger\" for relation \"batch_products\" does not exist, skipping","Detail":"","Hint":"","Position":0,"InternalPosition":0,"InternalQuery":"","Where":"","SchemaName":"","TableName":"","ColumnName":"","DataTypeName":"","ConstraintName":"","File":"dropcmds.c","Line":492,"Routine":"does_not_exist_skipping","UnknownFields":null}
2023/03/22 12:02:54 PG Recv: {"Type":"CommandComplete","CommandTag":"DROP TRIGGER"}
2023/03/22 12:02:54 PG Recv: {"Type":"ParseComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"BindComplete"}
2023/03/22 12:02:54 PG Recv: {"Type":"NoData"}
2023/03/22 12:02:54 PG Recv: {"Type":"CommandComplete","CommandTag":"CREATE TRIGGER"}
2023/03/22 12:02:54 PG Recv: {"Type":"ReadyForQuery","TxStatus":"I"}
Diffing schemas: auth,extensions,public,storage
2023/03/22 12:02:54 PG Send: {"Type":"Terminate"}
2023/03/22 12:02:54 Sent Header: Host [docker]
2023/03/22 12:02:54 Sent Header: User-Agent [Go-http-client/1.1]
2023/03/22 12:02:54 Send Done
2023/03/22 12:02:54 Recv First Byte
2023/03/22 12:02:54 Sent Header: Host [docker]
2023/03/22 12:02:54 Sent Header: User-Agent [Go-http-client/1.1]
2023/03/22 12:02:54 Sent Header: Content-Length [275]
2023/03/22 12:02:54 Sent Header: Content-Type [application/json]
2023/03/22 12:02:54 Send Done
2023/03/22 12:02:54 Recv First Byte
Error: error diffing schema: Error response from daemon: operation is not permitted on predefined host network:

Node: v19.8.1
Docker: v20.10.23, build 7155243
Supabase CLI: v1.44.0

Thanks for logs. I managed to reproduce and come up with a fix. Will be released in 1.45.1


Create User Story “customers-digital-transformation/index”

This pull request it to create a new story for Alauda. There were issues submitting it from their end so I have compiled the content shared into a pull request for them.
Since I do not have some of the information readily available, this PR will allow us to collaborate and fill in any missing information.
@yuzp1996 I will be adding a few lines for information to be added and be sure to share what those are once I've submitted the changes to this PR. Also, if there is any information that needs to be updated, please share those changes/feedback here so that we can get everything aligned.

Hi @yuzp1996, I have added the programming_langauges, platforms, and build_tools areas but would need your assistance in filling those out. Additionally, if there are any other version control systems that should be added, please be sure to add them accordingly.
I also added an industry, but if that is incorrect please update it to what it should be.
Please let me know what other changes need to be made, and I can adjust things as needed.
Thank you very much for your interest in sharing and collaborating with the project!

Thank you soooooo much! I'll definitely check it and give feedback here as soon as I can! 😊

Hi @yuzp1996, I have added the programming_langauges, platforms, and build_tools areas but would need your assistance in filling those out. Additionally, if there are any other version control systems that should be added, please be sure to add them accordingly.
I also added an industry, but if that is incorrect please update it to what it should be.
Please let me know what other changes need to be made, and I can adjust things as needed.
Thank you very much for your interest in sharing and collaborating with the project!

Thank you soooooo much! I'll definitely check it and give feedback here as soon as I can! 😊

I adjust submitted_by programming_langauges platforms version_control_systems build_tools as below!
Thanks for your efforts! 🌹
title: Facilitating Customers' Digital Transformation Based on Jenkins
post_name: customers-digital-transformation
submitted_by: Zhipeng Yu
date: 2024-11-21T10:28.846-05:00
tag_line: "Alauda: The AI-Ready Cloud Native Solution"
image: alauda.png
metadata:
  organization: Alauda, [alauda.io](https://www.alauda.io/)
  industries:
    - DevOps
  programming_langauges:
    - Java
  platforms:
    - Linux
    - Docker
    - Kubernetes
  version_control_systems:
    - GitHub
    - Gitlab
  build_tools:
    - Make
    - Gradle
    - Maven
  community_supports:
    - Yes

Hi @yuzp1996, would you happen to have a non-transparent version of the alauda logo? When reviewing the deploy preview link on my browser (dark mode), the logo is barely visible except for the blue parts:
Everything else looks good, but if you would also be able to review the deploy site and provide any feedback, that would be great. https://deploy-preview-73--jenkins-is-the-way.netlify.app/user-story/customers-digital-transformation

Thanks here is the non-transparent version of the alauda logo


When emitting react code, replace HTML numeric entities with their encoded characters

Fixes #10492 and #10563
Redo of #10561 (now that transforms branch is in, had to move the changes)

:+1:


Time Series Reshaping is needed

It seems your code does not take into consideration stocks with different shapes due to time on market, etc.
For example, if you use a start date of 2009 and include Facebook ($FB) it will error because Facebook didn't start trading in 2009.

Thanks for this issue. Yes, currently, the programmer should pay attention to this and make sure that the historical dataset is complete.  We will address this issue later, or would you like to crack on it?

Would you like to join the slack channel for more discussions?

"Adding zeros at the beginning of a time series to make the target length"  would be a solution.


Error: Position is outside of file line range (Parameter: 'line')

Issue Type: Bug
After updating to ADS 1.39.0 I am getting the following error in certain query windows.
Execution failed due to an unexpected error:
	Position is outside of file line range (Parameter 'line')

To fix the issue, I have to close the entire window in order for queries to start running again. This seems to happen occur after writing insert statements. This is also new to 1.39.0 as I have not run into it previously. Problem seems sporadic and I am unable to reproduce consistently.
To the best of my ability, here are the steps I am taking when this seems to occur:

Open ADS and navigate to file explorer
Open a .sql file from folder and connect to database
Write an insert statment using the following syntax:

INSERT INTO dbo.Table
VALUES
(integer1,integer2,'string1','string2')

Attempt to execute insert. Hit error.
Any query you attempt to run will then hit same error
You need to open a new query window to solve problem.

https://user-images.githubusercontent.com/13876614/187506829-ce3fc82c-4a96-4855-a575-0b493792836d.mp4
Azure Data Studio version: azuredatastudio 1.39.0 (9fdb2161d49b4d4ab6798809faa042a898ca2eae, 2022-08-20T01:46:47.606Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.74GB (19.59GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (3)

Extension
Author (truncated)
Version

admin-tool-ext-win
Mic
0.0.4

import
Mic
1.5.0

sql-migration
Mic
1.0.4

@aborremans Could you try installing the latest insiders build and see if you still experience the issue there?
https://github.com/Microsoft/azuredatastudio#try-out-the-latest-insiders-build-from-main
We have a hotfix coming out for a different issue, but I'm wondering if the root cause is the same.

Also please follow the instructions above to enable logging so we can see if there's anything useful there.
You can start by looking yourself to see if the application logs caught anything (like a callstack) that might help us track this down. To do this run the Developer: Open Logs folder command, then go up a directory to the logs directory and zip up all the timestamp-named folders you see there and attach them here. (you can also try searching yourself for the error message Position is outside of file line range and only include the log files that contain that message if you want to keep the size smaller).

Attached are my zipped logs. I also just finished installing the insider build I am not readily reproducing in the insider build.
LogFolders.zip

Perfect, thanks! The hotfix should be out shortly, but in the meantime if you're OK using the insiders build that will help determine if this is still an issue.
Unfortunately your logs didn't provide anything useful - for some reason the Tools Service logs aren't even being created. Is there something about your environment that might be preventing those from being created?

@Charles-Gagnon I'm not sure why my Tool Service logs wouldn't be created. I'm not running anything special or weird other than updating ADS yesterday.
I am now readily able to reproduce in 1.39.0 with a specific insert command. I'd be more than happy to make another video or show if you if you need. I'm not able to find anything logged with this error in the Developer Logs folder in 1.39.0. I am attaching my console log from the above instructions from when I reproduce.
I have yet to reproduce in the insiders build. I'm cool using that build for a few days until the hotfix comes out. Let me know if you need anything or if there is anything else you need.
console.txt

Here is a video of the exact steps I am taking to reproduce. I am connecting to an Azure SQL DB.
https://user-images.githubusercontent.com/13876614/187515465-535600c3-ef9c-45bc-91a1-5aee584b22d2.mp4
Create Table Syntax
CREATE TABLE [qry].[Query](
	[QueryId] [smallint] IDENTITY(1,1) NOT NULL,
	[ParentId] [int] NULL,
	[EntityTypeId] [int] NOT NULL,
	[Label] [varchar](200) NOT NULL,
	[Description] [varchar](4000) NOT NULL,
	[SQLQuery] [varchar](max) NULL,
	[LayoutJSON] [nvarchar](max) NULL,
	[DisplayOrder] [smallint] NULL,
	[QueryTypeId] [tinyint] NULL,
	[CanEdit] [bit] NOT NULL,
	[CanSprayEvent] [bit] NOT NULL,
	[CanSprayRecurring] [bit] NOT NULL,
	[IsEnabled] [bit] NOT NULL,
	[GenerateLayout] [bit] NULL,
	[CanMap] [bit] NOT NULL,
	[GeoColumn] [varchar](50) NULL,
	[StyleId] [int] NULL,
	[DataQTypeId] [int] NULL,
	[DataMask] [nvarchar](max) NULL,
	[Links] [varchar](200) NULL,
	[OldQueryId] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [qry].[Query] ADD  CONSTRAINT [PK__Query] PRIMARY KEY CLUSTERED
(
	[QueryId] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]

Insert Query
INSERT INTO qry.Query
VALUES
(536,2020,'Query Name','Query Description',NULL,NULL,1,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,'Asset[Account]',NULL)

@aborremans I was still not able to repro it. We just released the hotfix for the other issue though, so I'm going to close this for now and if you still see it even after updating then let us know and we can investigate more!

Thanks for looking into it. I'll let you know if I run into it after the hotfix.


--with-sqlcipher option on Windows x64 UCRT

I'm currently porting my code to 64-bit, with 32-bit Ruby on windows I am able to run:
gem install -V sqlite3 -- --with-sqlcipher

and see Building native extensions with: '--with-sqlcipher'
Using Ruby 64-bit (ucrt) I don't see that message and the database I create is not encrypted.
For x86 environment the package was installed using pacman --noconfirm -S mingw-w64-i686-sqlcipher
For x64 environment the package was installed using pacman --noconfirm -S mingw-w64-ucrt-x86_64-sqlcipher
What am I doing wrong? Please help.

@ls5302 Sorry you're having problems. I'll try to help.
first try this
My best guess without more information: you're installing the precompiled version of the gem (which is not available for 32-bit systems, but is the default for 64-bit systems).
We've got instructions on how to avoid the precompiled gem at https://github.com/sparklemotion/sqlite3-ruby/blob/main/INSTALLATION.md#avoiding-the-precompiled-native-gem
TLDR, to make sure you compile against sqlcipher during gem installation, you need to specify --platform=ruby
So try:
gem install sqlite3 --platform=ruby -- --with-sqlcipher

Note that the --platform flag must be before the --, and the sqlcipher flag must be after the --.
else do this
If that doesn't work, I'll need more information in order to diagnose what's going on, so please reply with:

the output of gem env
the command you're running, and the full output of the command

Thank you for your reply.
gem install sqlite3 --platform=ruby -- --with-sqlcipher works, as does adding force_ruby_platform: true to the Gemfile which is what I've gone with.
Having double-checked the 32-bit version is not available which explains why I see different behaviour, and now need the extra flag for the 64-bit version which is available in the GEM repo.
Many thanks!


Eriks branch

merge Eriks' branch into master

master branch has classifier, Erik's branch has fix on lagging


[BEAM-10871] Fix FhirLROIT tests (again)

Please add a meaningful description for your change here
R: @TheNeuralBit
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Run Java PostCommit

Run Java PostCommit

Run Java PostCommit


Polyfills still included in modern build

Version
4.0.0-rc.3
Environment info
  System:
    OS: macOS 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  Binaries:
    Node: 10.15.3 - /usr/local/bin/node
    Yarn: 1.17.3 - ~/.npm-global/bin/yarn
    npm: 6.11.3 - ~/.npm-global/bin/npm
  Browsers:
    Chrome: 76.0.3809.132
    Firefox: 69.0
    Safari: 12.1.2
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0
    @vue/babel-plugin-transform-vue-jsx:  1.0.0
    @vue/babel-preset-app:  4.0.0-rc.3
    @vue/babel-preset-jsx:  1.1.0
    @vue/babel-sugar-functional-vue:  1.0.0
    @vue/babel-sugar-inject-h:  1.0.0
    @vue/babel-sugar-v-model:  1.0.0
    @vue/babel-sugar-v-on:  1.1.0
    @vue/cli-overlay:  4.0.0-rc.3
    @vue/cli-plugin-babel: ^4.0.0-rc.3 => 4.0.0-rc.3
    @vue/cli-plugin-eslint: ^4.0.0-rc.3 => 4.0.0-rc.3
    @vue/cli-service: ^4.0.0-rc.3 => 4.0.0-rc.3
    @vue/cli-shared-utils:  4.0.0-rc.3
    @vue/component-compiler-utils:  3.0.0
    @vue/preload-webpack-plugin:  1.1.1
    @vue/web-component-wrapper:  1.2.0
    eslint-plugin-vue: ^5.0.0 => 5.2.3
    vue: ^2.6.10 => 2.6.10
    vue-eslint-parser:  5.0.0
    vue-hot-reload-api:  2.3.4
    vue-loader:  15.7.1
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.6.10 => 2.6.10
    vue-template-es2015-compiler:  1.9.1
  npmGlobalPackages:
    @vue/cli: 4.0.0-rc.3

Steps to reproduce

vue create test with default babel preset
In src/main.js, insert the following code anywhere in the file:

Symbol();
new Promise();

node_modules/.bin/vue-cli-service build --modern --report
Open dist/report.html and note that a large amount of core-js code is included in the bundle

What is expected?
Since Symbol and Promise are supported by modern browsers, the modern bundle should not contain polyfills for these features.
What is actually happening?
The modern bundle does contain polyfills for these features.

Just tried with 4.0.5 and still an issue.
I had a look at the output in the compiled JS files (with --mode=development). As far as I can tell, the actual calling code (Symbol(); new Promise();) correctly remains untouched... but the core JS modules are still imported at the start of main.js and never used.

Not a bug.
https://github.com/babel/babel/blob/c7d8b8a37752f42163128cf4d5e8b54c2637cec4/packages/babel-preset-env/data/built-in-modules.json#L2-L10
https://github.com/zloirock/core-js/blob/306ba2ccfba32350f596ef80292ae56592145f06/packages/core-js-compat/src/data.js#L700-L704
Module support: Chrome >= 61
Full Promise support: Chrome >= 67
So the polyfill must be included.

@sodatea Ah I see. So right now "modern" means "browsers that support modules" (I guess because that makes it easy to implement legacy fallback loading). Surely at some point in the future this meaning will need to change though... is it possible to configure vue-cli to generate a modern build which targets an even more modern subset of browsers?

Not possible at the moment. You can file a separate feature request for this.

On second thoughts, I think it would defeat the purpose. The whole point of "modern" mode is that it can automatically load the legacy vs. modern bundle depending on the browser's support for modules. If the modern build was retargeted to more modern browsers, then all browsers with module support would still load it anyway, and those that don't support the newer features would break. If the intention is to not support older browsers at all, one can simply configure the normal build via browserslist.
Thanks for your help!


Create ng-smooth-scroll.d.ts

Added ng-smooth-scroll typedef for project: https://github.com/d-oliveros/ngSmoothScroll

angular-smooth-scroll/ng-smooth-scroll.d.ts
check list

[ ] is collect naming convention?

https://www.npmjs.com/package/angular-smooth-scroll
http://bower.io/search/?q=angular-smooth-scroll
others?

[ ] has a test file? (angular-smooth-scroll/ng-smooth-scroll-tests.ts or others)
[ ] pass the Travic-CI test?

@goosefraba thank you for your contributions.
please rename ngSmoothScroll/ngSmoothScroll.d.ts.
http://bower.io/search/?q=ngSmoothScroll
https://github.com/d-oliveros/ngSmoothScroll/blob/master/bower.json#L2

@vvakame Renamed files!

@goosefraba and add tests... http://definitelytyped.org/guides/contributing.html#tests

Hello and thank you for your contribution!
Due to an excessively long queue of pull requests that have become stale, we are "declaring bankruptcy" and closing all PRs opened before May 1, 2016. If you'd still like to merge this code in, please open a new PR that has been merged and rebased with the master branch.
Going forward, we are committing to review or merge all PRs on a regular basis so this bankruptcy will not occur again. We apologize for the incovenience and hope you will continue to contribute to DefinitelyTyped in the future.
Thanks
The TypeScript and DefinitelyTyped teams


Azure AD CORS policy issue after upgrading to 5.0 on Blazor Hosted Wasm

After upgrading from .NET Core 3.1 to .NET 5.0 I cannot login to my application successfully using Azure AD. Other than changing the project target sdks, the code has not been changed since .NET Core 3.1.
The following is displayed in the browser console after logging in once redirected back to the app:
Access to fetch at 'https://login.microsoftonline.com/[X]/oauth2/v2.0/token' from origin 'https://localhost:44396' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

AuthenticationService.js:32
POST https://login.microsoftonline.com/[X]/oauth2/v2.0/token net::ERR_FAILED

Client ID is replaced with [X]
The wasm app gets stuck on Completing login... when this happens.

Hello @adds39939 ... It's best to open issues from the bottom of the topic that you're following. No worries tho ... I'll add the metadata manually to the issue.
Are you working with a standalone AAD app or a hosted AAD app?
WRT your app migration, the migration guidance is here ...
https://docs.microsoft.com/aspnet/core/migration/31-to-50?view=aspnetcore-5.0&tabs=visual-studio#update-blazor-webassembly-projects
... and the topics have been updated for 5.0 ...

Standalone: https://docs.microsoft.com/aspnet/core/blazor/security/webassembly/standalone-with-azure-active-directory?view=aspnetcore-5.0
Hosted: https://docs.microsoft.com/aspnet/core/blazor/security/webassembly/hosted-with-azure-active-directory?view=aspnetcore-5.0

Hi there,
Apologies about the placement of the issue, I'll be more careful next time.
The app is ASP.NET Core Hosted Blazor Wasm. I have followed the migration guidance as stated above, however, placing the 3.1 app and the 5.0 app side by side presents the issue stated.

side by side

That seems a little scary. 🎃
Lingering cookies across sessions while testing can break these apps fairly easily. Are you using a new in-private/incognito browser for every test run no matter how small the change (either app change or Azure portal change)? It's important to rule out lingering cookie problems. If you look at the Troubleshoot section of any of the Blazor WASM security topics, there's guidance there on configuring VS to do it automatically for you while testing.

Sorry, I should have been more clear. After running the apps in succession, clearling all cache/data/cookies, I get the issue. Tested across Chrome, Firefox and Edge.

What about that auto-generated port for IIS Express? Did you have that registered in the callback address in the Azure portal for this app (44396)?
Also note that ...

clearling all cache/data/cookies

... is hit or miss. I know it seems like you'd be able to get it clean like that; but imo after working with these scenarios quite a bit, you're far better off with a fresh in-private/incognito browser for every test run no matter how small the change on either side. It always yields a nice, clean testing environment while troubleshooting.
Oh ... and you just reminded me of something that I need to add to the migration topic that I forgot about yesterday: The packages are different now. It's covered in the WASM topics, but the migration topic needs a touch for the Sever app of these hosted scnearios ...
<PackageReference Include="Microsoft.Identity.Web" Version="{VERSION}" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="{VERSION}" />

I'll do that right now. 🏃

Yes I have tried this prior to submitting the issue. I have configured the Server and Client with the new MS Identity packages and ensured that the login callback address matches that of IIS. The issue still remains the same.

Let me dig around a bit and get back to you. I didn't see that error here during migration, but I may have seen it in a product unit issue. I'll get back to you shortly.

Thanks 😊

Did you change over to the SPA platform config in the Azure portal for this app, or is it still Web?

I have tried both, it was originally web so I changed to to SPA and the issue still persisted.

I see that when we did the updates to the migration topic, we only indicated the change for standalone, but the correct platform config for standalone and the client app of a hosted solution is SPA. I'm fixing that now.

What's the scheme of your App ID URI? ... is it https:// like this ...
https://contoso.onmicrosoft.com/41451fa7-82d9-4673-8fa5-69eff5a761fd/API.Access

... or api:// like this ...
api://41451fa7-82d9-4673-8fa5-69eff5a761fd/API.Access

I have just created a new project using this template and I'm facing the same issue. Here is a screenshot of what happens after I login. Please note I can definitely login, the issue happens after the login-callback. I also have my Azure portal configured like this.

I have also tried the following App ID URI forms:
api://41451fa7-82d9-4673-8fa5-69eff5a761fd/API.Access
41451fa7-82d9-4673-8fa5-69eff5a761fd/API.Access

You might be hitting this ...
https://docs.microsoft.com/en-us/aspnet/core/migration/31-to-50?view=aspnetcore-3.1&tabs=visual-studio#unauthorized-client-for-azure-active-directory-aad
... check the app's manifest.

btw --

api://

... that's good. You don't need the Authority with that type of App ID URI. :+1:

... and disable implicit grant.
Also, that redirect uri isn't right ... try ...
https://localhost:44327/authentication/login-callback

Ok ... I merged all of the updates and triggered a merge to the live branch. I was originally going to rely on cross-links to updated guidance sections in the topics, but there's just no way that would have worked. The info is scattered in a sea of complex content. I just placed all of the security updates into the migration topic ..... I think 🤞 ... there are a lot of updates. Those changes will go live in a few minutes.

allowPublicClient in the manifest was already set to null, I changed it to true but nothing has changed.
I have changed the redirect URI to what you advised, still nothing. And implicit grant is disabled.

Ok ... it's live here now. That was FAST! 🏃
https://docs.microsoft.com/en-us/aspnet/core/migration/31-to-50?view=aspnetcore-3.1&tabs=visual-studio#update-blazor-webassembly-projects

Hummmmmm ... well ... we're running out of options before having to open a formal engineering issue.
Let's clean everything up and try one more time before opening an issue with them ...
Bit of a longshot, but when you went with 5.0 GA today ... the new SDK and updated your package references in the apps of the hosted solution, did you do the normal ✨ magic things ✨ to ward off evil spiritis 😈? ... Try this ... probably won't work ... but let's just make sure .................

Delete the obj and bin folders of the projects in the solution (Client, Server, and Shared projects).
Nuke the package caches by executing dotnet nuget locals --clear all in a command shell.
Restore the solution ... compile and run it.

Oh ... and you are on VS 16.8, right?

Yeah that's right. Latest version of VS running .NET 5.0 released today. I have deleted the obj and bin folders in the template project and removed the nuget package caches. Same issue 😞. I do appreciate your help though 👍

Ugh ... well ... that's about all that I can think of.
Open a new issue for the product unit at ...
https://github.com/dotnet/aspnetcore/issues
... give them the basic rundown of what you did for the upgrade. Show the relevant parts of the app ... best to include code snippets of the Client Program.Main and Server Startup.ConfigureServices with the appsettings.json file (of course replacing sensitive info with placeholders), show the screenshot of the error in the dev tools console, and the screenshot of the Azure portal config. Note them that you did check on the allowPublicClient manifest setting.
Sorry we didn't reach a happy end here, but this could be a real 🐞. They'll help figure out what the problem is.
Leave this issue open for the time being. I'll close it if it turns out to be a framework 🐞. I'll use it to track docs work if we need to add something to the migration topic.
For your new engineering issue, please add a cc: @guardrex to your opening remark so that I can follow along.

HOLD a sec ... did you say "ClientId" in the Authority. That should be the TenantId there. Check that and confirm.

Example ...
{
  "AzureAd": {
    "Authority": "https://login.microsoftonline.com/{TENANT ID}",
    "ClientId": "{CLIENT APP CLIENT ID}",
    "ValidateAuthority": true
  }
}

{
  "AzureAd": {
    "Authority": "https://login.microsoftonline.com/e86c78e2-...-918e0565a45e",
    "ClientId": "4369008b-21fa-427c-abaa-9b53bf58e538",
    "ValidateAuthority": true
  }
}

}

  "AzureAd": {
    "Authority": "https://login.microsoftonline.com/e86c78e2-...-918e0565a45e",
    "ClientId": "4369008b-21fa-427c-abaa-9b53bf58e538",
    "ValidateAuthority": true
  }
}

Yeah that's definitely how mine is configured.

Ok ... it caught my :eye: when you had ...

Client ID is replaced with [X]

.... up there. You merely meant "Tenant ID" when you typed that. Ok, cool.

Ok this is interesting. I re-migrated the application from 3.1 to 5.0 on a different machine and the login works. I cloned the code over to the original machine and I have the CORS issue again. I guess you could say this is resolved? Though I have no clue on why it isn't working on the original machine despite everything being fine on 3.1.

Is there a difference in OS and/or browser versions between the two machines?

Both on Windows 10, the first is a work laptop and second is personal. Perhaps there is a policy or something on the work machine. Can't imagine why it would affect 3.1 -> 5.0 however.

You could open that for engineering if you want. It would be a heck of a lot faster and easier to open. You just need to tell them that situation with an upgraded hosted Blazor security app and show the dev tools console screenshot. I think you should ask them; but if you don't, I'll keep an :ear: open for similar reports as we go forward with 5.0.

Yeah I will do absolutely. Thanks for your help anyways!

Ok, cool.
Please add a cc: @guardrex to it.
Leave this open. We might need to call something out depending on what they say.

Hello,
I just did the migration from 3.1 to .Net 5. I have the same issue but with Azure B2c. Login page prompt and then after redirect I am still on "Completing login...". But I'm never properly login (even if I refresh...)
So I recreated a project from scratch by using the command line is here : https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/hosted-with-azure-active-directory-b2c?view=aspnetcore-5.0
And copy pasting my confs... Still the same :/

@morganc9 It will require investigation by engineering. When @adds39939 opens the issue over there, you can add a :+1: to it and/or a comment if there are any deltas between you or additional info that you'd like to add.

Hello,
I just did the migration from 3.1 to .Net 5. I have the same issue but with Azure B2c. Login page prompt and then after redirect I am still on "Completing login...". But I'm never properly login (even if I refresh...)
So I recreated a project from scratch by using the command line is here : https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/hosted-with-azure-active-directory-b2c?view=aspnetcore-5.0
And copy pasting my confs... Still the same :/

Mhhh I fixed my issue... Not sure we should keep my post then.
I followed that: https://docs.microsoft.com/en-gb/azure/active-directory/develop/scenario-spa-app-registration#create-the-app-registration
You have to go to the portal and upgraded the uri of my UI + disabled the grant types.
sorry for the inconvenience :/

No worries @morganc9 ... glad to hear it worked out. :tada:

I'm going to close given this is a support request at this point. @adds39939 ... If you get an answer that leads to an apparent need to call sometime out in the topic, either post it on this issue and I'll re-open this or open a new issue for triage here.


Cleanup Git config page

Applied style guide rules, and shortened text in a number of areas.
Updated image to reflect redesigned Web-UI, and added an additional screenshot to show where the + credentials button is on screen.
QA: Ran linkcheck, Vale, and examined rendered output.
No Jira issue to tag.
Signed-off-by: Katrina Prosise<EMAIL_ADDRESS>Readiness

[x] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Overview
General cleanup.
Checklist

[x] Run spelling and grammar check, preferably with linter.
[x] Avoid changing any header associated with a link/reference.
[ ] Step through instructions (or ask someone to do so).
[x] Review for wordiness
[x] Match tone and style of page/section.
[x] Run make linkcheck.
[x] View HTML in a browser to check rendering.
[x] Use semantic newlines.
[x] follow best practices for commits.

[x] Descriptive title written in the imperative.
[x] Include brief overview of QA steps taken.
[x] Mention any related issues numbers.
[x] End message with sign off/DCO line (-s, --signoff).
[x] Sign commit with your gpg key (-S, --gpg-sign).
[x] Squash commits if needed.

[x] Request PR review by a technical writer and at least one peer.

Docs for f2afbb291ece1e91932729357b8747ac2a9bd8ef are browsable at: https://ci.foundries.io/projects/fio-docs/builds/1910/docs/artifacts/html/index.html

Docs for add1bce39f43c4a1211b3a3d08e296cc2f846b1e are browsable at: https://ci.foundries.io/projects/fio-docs/builds/1911/docs/artifacts/html/index.html

Docs for 1b456d7a8d4ed7e28fa34aaf2697d0c8a403e049 are browsable at: https://ci.foundries.io/projects/fio-docs/builds/1913/docs/artifacts/html/index.html


bevy_reflect: Default attribute paths

Objective
Followup to #9322 but with a breaking change.
With syn2, it's a whole lot easier to customize attributes. One small improvement we could make would be to change the default attribute to take a type path directly instead of a stringified path.
Solution
Updated the parsing logic to take an ExprPath directly.

Changelog

Default functions passed to #[reflect(default)] no longer need to be string literals (i.e. they can specify the path directly like #[reflect(default = path::to::func)])

Migration Guide
The optional function passed to #[reflect(default)] is no longer a stringified path. It can now be a standard type path:
mod defaults {
  fn foo() -> i32 {
    123
  }
}

// BEFORE
#[derive(Reflect)]
struct Foo {
  #[reflect(default = "defaults::foo")]
  value: i32
}

// AFTER
#[derive(Reflect)]
struct Foo {
  #[reflect(default = defaults::foo)]
  value: i32
}

This should also allow autocomplete to work in these cases, right?

Ideally yes, but I can't speak for all editors.


[BUG] build longhorn-ui image error

Describe the bug
build longhorn-ui image error
To Reproduce
Steps to reproduce the behavior:

git clone  longhorn-ui
make

Expected behavior
Build success

cc @mantissahz

Yeah, that's what I encountered.

ref: https://github.com/xtuc/webassemblyjs/issues/1132

ref: https://github.com/longhorn/longhorn-ui/pull/522#issuecomment-1197856037

How to reproduce this issue? Please delete your local package-lock.json for reproducing, then rebuild by npm. Otherwise, npm will pick the locked versions in package-lock.json instead of packag.json, so you probably are unable to reproduce this.

This is a dev issue, closing to follow up with the e2e regression instead.


Add addresses in Nacogdoches, TX

Status:

[ ] Research sources and propose best source (and it's data license)
[ ] Review proposed source
[ ] Approve source based on review comments
[ ] Add to OpenAddresses

NOTE: Proposed source notes should include basic column mapping to OpenAddress data model.

http://co.nacogdoches.tx.us/maps/public_geodata_downloads/datasets/AddressPointsSHP.zip
Shapefile (File Size:1.34Mbs, Last Updated:11/04/2016)
Disclaimer:
By using this webpage you are confirming that you understand that all of the GIS data and resources avalable through this web-page are for informational purposes and may not have been prepared for or be suitable for legal, engineering, or surveying purposes. They do not represent an on-the-ground survey and represent only the approximate relative location of property boundaries. These datasets and resources are provided by the Nacogdoches County GIS & 911 Addressing Coordinator with the information available in the Nacogdoches County GIS & 911 Addressing databases. However, they are provided without guarantee of accuracy of data. They are not intended to imply property ownership. They are not intended to imply legal or contractual obligations in any respect; they are not an express or implied warranty.


Handle Metadata

We've discussed the idea of checking some high level aggregates / stats for targets as they are built by the pipeline, and I've been giving thought to the best way to do so.
I believe that for each separate workflow ( that is- a given extract version / dataset, with the filetree structure as follows:
root:
  logs: [ cmq_worker_^array_index^.log ] # etc
  pipeline:
   - drake_console.log
   - build_logs.log
   - raw:
       [ alert.csv, note_data_1.csv ] # etc
   - partition:
       [ alert.csv, note_data_1.csv] # etc
   # etc

we can add an extra file within root/pipeline, called metadata.yaml.
metadata.yaml should have the following fields, using the bulk 2013-2014 extract dataset as an example:
title: bulk_2013_2014
desc:
 | The preliminary bulk extract from 2013 to 2014 - there are
 some problems with the raw data- including that for some of the patient fields, the columns would be mis-aligned, and somehow one of the headers had a line-break
log_path: ./logs/workflows/bulk_2013_2014
log_root: .Rprojectroot # idk about this field, maybe?
# the idea of the log_root would be to explicitly assign a logging location to root the tree at
# The .Rprojectroot, or some similar keyword would refer to the return of here::here()

This metadata file can be read, and then the log_path value would determine the subdirectory where structured logging could be placed for that extract / workflow / dataset

Migrating to enterprise


upload logs for unit tests

Thank you for contributing to Coda! Please see CONTRIBUTING.md if you haven't
yet.
Explain your changes here.
Explain how you tested your changes here.
Checklist:

[ ] Tests were added for the new behavior
[ ] All tests pass (CI will check this if you didn't)
[ ] Serialized types are in stable-versioned modules
[ ] Does this close issues? List them:

Closes #0000
Closes #0000

It seems like Buildkite understands this!

Currently it's not uploading any artifacts because I haven't done the shared volume in the container to share the artifact directory.


Bricked my system

I installed this on Linux, but then it somehow messed up my bash so bad, I can't do anything anymore at all.
I have no way of troubleshooting this, as my system is bricked.

Can you give some more information?
 Or did you install with gem install denko?
What Ruby version?
Preinstalled system Ruby, rbenv or rvm?
The only thing this gem adds to your PATH is a "loader" script (provided by RubyGems itself, or a Ruby version manager), which dynamically loads and runs the script bin/denko from this repo. If you aren't trying to run it, it should have no effect on your bash session.

So, I found the issue :)
Error code: ID-10-T
I use Arch Linux  (Considered to be the most unstable distro )
I use a franken-PC, made of random spare parts.
Something, very, very specific can easily happen to brick my specific system, it's not the application's fault.


A-Frame / three.js support on Looking Glass Portrait

I have been able to successfully download and install the Chrome extension and use it on the webxr sample page as well as babylon.js with the portrait. I appreciate the view controls to find the perfect image in the scene, it's super useful.
I tried run the sample A-Frame "hello webvr" scene and when I click VR mode the scene becomes unresponsive and there is a new console message:
The optional feature 'bounded-floor' is not supported

When I run a three.js webxr sample scene the scene keeps animating after the button is pressed but no overlay appears to set holoplay view controls / settings. There are also messages on the console:
The optional feature 'bounded-floor' is not supported
VM79:7662 HoloPlayXRDevice.isFeatureSupported: feature not understood: hand-tracking
isFeatureSupported @ VM79:7662
requestSession @ VM79:936
button.onclick @ VRButton.js:72
VM79:937 The optional feature 'hand-tracking' is not supported
VM79:7662 HoloPlayXRDevice.isFeatureSupported: feature not understood: layers
isFeatureSupported @ VM79:7662
requestSession @ VM79:936
button.onclick @ VRButton.js:72
VM79:937 The optional feature 'layers' is not supported

Is there anything else I could do to help diagnose?

IIRC the bounded-floor message is not an issue. Three.js(/A-Frame) content should be able to handle devices that don't have bounded-floor.
Three.js doesn't work except with 2 views, at least last I checked (maybe it's more broken now). See the readme:

Three.js: Technically works, but can only handle 2 views.
Often fails to launch in Chrome, due to an unattributed DOMException.
(tested page)

The 2-view problem is a limitation of Three.js and will require a fix there. The other is mysterious still.

I managed to hack in a fix for three.js and also seemed to have fixed the issue with Chrome. I'm not sure if this change would be easy to get into three.js upstream though, since their WebXR implementation assumes there will only be two WebXR cameras, and this hack doesn't touch that code. I suppose a proper implementation would need to modify the rest of the three.js code to support an arbitrary number of cameras to begin with.
Here are the changes I made:

In webxr-polyfill, force injection of the polyfill, even if there is a native WebXR implementation (which there is in Chrome), and also forcefully polyfill the makeXRCompatible function on the webgl context. To be honest, I'm not sure exactly why this works, but it does. https://github.com/brianpeiris/webxr-polyfill/commit/948d201305746af7d11761b009489d6c17a70f84
In three.js, have the WebXR frame loop create cameras for the additional views, if they don't already exist: https://github.com/brianpeiris/three.js/commit/12a094fc16b7dd8e04ce355e26040058038d573f
In holoplay-webxr, just update the submodule to point to the fixed polyfill. https://github.com/brianpeiris/holoplay-webxr/commit/26d8169e4206b22250b25fb3c6ba2f665852177a
Finally, I pulled all those pieces into a sample app:

https://github.com/brianpeiris/holoplay-webxr-three/blob/main/index.js
https://github.com/brianpeiris/holoplay-webxr-three/blob/main/package.json
https://brianpeiris.github.io/holoplay-webxr-three


Bug ? ParserException: Unexpected tag name "endfor"

Hello
I have this error when I put {% endfor %} tag
com.mitchellbosecke.pebble.error.ParserException: Unexpected tag name "endfor" (home:820)
My stack is :
Spring Boot 2.0.4
Java 10
pebble-spring-boot-2-starter
And the html is :
{% for moment in moments %}       ....       {% endfor %}
Is it a bug ?

Sounds like a problem with your template. Can you provide the content of all your template ?

I forgot an {% endif %} before the endfor ... :/
thank to you


Hello, I am a novice, for yarn or pnpm managed projects, can I also use cyclonedx-npm to generate sbom, how to use it

Hello, I am a novice, for yarn or pnpm managed projects, can I also use cyclonedx-npm to generate sbom, how to use it


Using larger backbone of Dino Model

Hello @KevinWangHP,
How can we use the larger backbone of the dino model instead of the current dino_vitbase8 ones?
Thanks

To use a larger backbone for the DINO model instead of the current dino_vitbase8, you should first check which backbones are specifically supported under Anomaly-Clustering/Anomaly-Clustering/models/patchcore/backbone.py. However, note that larger DINO backbones are not natively supported in this project.
That said, theoretically, any backbone with feature extraction capabilities can be applied, but you would need to ensure the feature dimensions align with the project requirements. Be sure to verify compatibility before proceeding.

Okay, Thanks.


Need an option to add individual features after others have already been installed.

Currently, it is a manual process to install an additional feature after others have been installed.  An option should be added to allow for installing additional features on demand.

The following commits address this issue.
05c758fd9543097a0940fdf06d3395e31140312b
0289d291a8fe691f7ad0bbef22c37abc2ce1766d


how to visualize feature map?

Use this to open other questions or issues, and provide context here.
the viz.image and viz.images only support the channel with 3. but the channel in feature maps alwarys > 3.  for example,  n=1, c=32, h=128, w=128. then how to visualize this feature maps? thanks.

Hi @cjnewstar111 - there's no real agreed upon proper visualization for many channel feature maps like the one you're describing using images. I'd encourage you to look at some tutorials for visualizing feature maps elsewhere (such as this one) so that you can properly pre-process your features, and then you can plot the resultant images using the images pane.

Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Jack Urbanek<EMAIL_ADDRESS>Date: 8/22/19  1:05 PM  (GMT-06:00) To: facebookresearch/visdom<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: Re: [facebookresearch/visdom] how to visualize feature map? (#662) Hi @cjnewstar111 - there's no real agreed upon proper visualization for many channel feature maps like the one you're describing using images. I'd encourage you to look at some tutorials for visualizing feature maps elsewhere (such as this one) so that you can properly pre-process your features, and then you can plot the resultant images using the images pane.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/facebookresearch/visdom/issues/662?email_source=notifications\u0026email_token=AM36SSGB3ZB5OWOBFDKJKMDQF3IPBA5CNFSM4IOQIYFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD455JSI#issuecomment-524014793",
"url": "https://github.com/facebookresearch/visdom/issues/662?email_source=notifications\u0026email_token=AM36SSGB3ZB5OWOBFDKJKMDQF3IPBA5CNFSM4IOQIYFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD455JSI#issuecomment-524014793",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]


MoleculeNet support TODO list

Remainting task after https://github.com/pfnet-research/chainer-chemistry/pull/165
[Dataset support]

Support PDBBind dataset
Support SDF file
Support mat file?
Support "mix" type for bace dataset (classification + regfression multi-task training)
Transformation

[Splitting support]

Support no random splitting, return all dataset as is without split.
Stratified Splitting
Index Splitting

[miscs]

handling missing values in regression tasks
Advanced imputation techniques for missing data

[Evaluation support]

PRCAUCEvaluator
Model Evaluation script, if possible

Support scaler (standard scaler) for regression task
Currently model get nan. (maybe due to too big value for label prediction?)


ZuulGateway 401 Unathorized / 403 forbidden Error for all request OAuth2 Spring Security

I am an inexperienced programming learner.
I have implemented Oauth2 security system, can't able to call through Zuul-Gateway my security methods.
Tried several methods which i have found but couldn't achieve the solution

security.basic.enable: false (not worked)
security.basic.enable: false (not worked)
management.security.enabled: false.(not worked - even not identified by property file)

yml file;
zuul:
  ignoredServices: '*'
  routes:
    application:
      path: /**
      serviceId: auth-server
      sensitive-headers: Cookie,Set-Cookie
      ignore-security-headers: false
      ignored-headers: cookie,set-cookie

security:
  basic:
    enabled: false

user:
  path: /user-service/**
  sensitiveHeaders:
  serviceId: user-service

Thank you!

For me i've put sensitive-headers globally like this:
zuul: host:     connect-timeout-millis: 20000     socket-timeout-millis: 20000   sensitiveHeaders: Set-Cookie, Cookie

@tYigitYilmaz Please log this issue with the Spring Cloud Netflix repository.


Following extensions are not compiled: dbm

When attempting to install ruby and after executing make -j`nproc` , I'm presented with the following text:
*** Following extensions are not compiled:
dbm:
	Could not be configured. It will not be installed.
	Check ext/dbm/mkmf.log for more details.
*** Fix the problems, then remove these directories and try again if you want.

I'm unsure how to go about fixing this issue. How do I fix it?

I also encountered the same problem as above. I don't know how to solve it. The following is the log file mkmf.log.

mkmf.log

You might want to try installing old database compatibility headers first, then re-compile.
apt install libgdbm-compat-dev

You might want to try installing old database compatibility headers first, then re-compile Ruby.
apt install libgdbm-compat-dev
If this works generally and not just for me, then this issue probably needs to be reconsidered as "Instructions to install Ruby v2.6.9 as a Huginn pre-requisite on later versions of Ubuntu need to include instructions to install OS package ibgdbm-compat-dev first", or something similar.
It seems to work on Ubuntu v20 and v21; it might work on other versions as well (I haven't tested all versions). I found this potential workaround here, logged in 2013 and workaround logged in 2020.

Confirming on Ubuntu 18.04 I had the same issue and the above step mitigated it


Speed up unit tests

The Awa unit tests currently take minutes to run. A significant number of unit tests have arbitrary and explicit delays, often waiting for some action to complete. Some of these can be removed by the use of Server Events, or restructuring tests.

Tests are now significantly quicker to complete.


Fix new file command titles

New Untitled File opens up a new query. We changed the name in the file menu to New Query but not here
The title for the New Untitled Plain File command was set to the command ID - this should be using the label instead

After :

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
26267

Relevant Lines:
55703

💛  - Coveralls


Add rapidjson commit

There hasn't been a tag on this repo in 8 years, this pulls in the most
recent commit

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (rapidjson) have been updated in this PR. Please review the changes.


Improving the readme file

I would like to improve the readme.md of this project. Adding some features and making it engaging for the users.

I would like to work on this issue, please assign this issue to me under GSSoC'23.


Expect Continue

When curl sends a long POST body, it sends Expect: 100-continue header.
Content-Type: application/json
Content-Length: 4641
Expect: 100-continue

Without this patch - curl will wait for 1 second before sending the body (which is unreasonable delay).
It's easy to test - just curl -XPOST -d'(a few thousand bytes here)' and you will see the delay.

Looks good, can you add/update tests? :+1:

Thanks! Test added.

Any chance to get this merged?

Hah sorry, missed your previous message. Looks good merging it :+1:

Thanks for your PR @slava-vishnyakov, I very much appreciate your contribution :+1:
However, we're currently looking into reverting this PR as part of #59 because it introduces a BC break.
As per https://tools.ietf.org/html/rfc7231#section-5.1.1, HTTP clients are expected to support servers not handling the Expect: 100-continue header at all. This means that curl does it fact behave correctly by waiting for a small period of time and then continuing like normal.
This can currently be avoided like this:
$http->on('request', function ($request, $response) {
    if ($request->expectsContinue()) {
        $response->writeContinue().
    }
    $response->writeHead(200, array('Content-Type' => 'text/plain'));
    $response->end("Hello World!\n");
});

This is necessary because this block of code could implement some custom application logic to check the request headers and such and we can't really provide a "default implementation" here. However, this feature could certainly use some documentation!
I hope this doesn't come over as discouraging and we can agree that it makes sense to revert this until we can agree on a better solution here :+1:

@clue Hi Christian, sure, do what's best for the project. Although you also must understand that reverting this is also a BC for all customers who already use this :) I mean, libcurl is probably the most popular implementation of HTTP clients. Maybe a better way would be to add a configuration option somewhere as to whether use this logic or not?
Otherwise, sure, do what's best for the project 👍


🐛 Incorrect insertion of FragmentInterface parameters into WHERE IN queries

No duplicates 🥲.

[X] I have searched for a similar issue in our bug tracker and didn't find any solutions.

Database
MySQL
What happened?
Continue of #145
$products = $this->select()->andWhere('productGuid', 'IN', $productGuids)->fetchData();

with empty array $productGuids resulting the following sql:
AND `xxx`.`ProductGuid` IN()

and database error is raised, as there is nothing in IN
Version
database 2.8.1
PHP 8.3

Hi. What do you expect from ORM in case of passing an empty list?

Hi, maybe not to generate AND xxx.ProductGuid IN() at all?


GetKeyIndex is nop since 1.87+ and obsoleted from 1.90.5 b

include  for sqrt in TextEditor.h
include  for sqrt
GetKeyIndex is nop since 1.87+ and obsoleted from 1.90.5

The #27 should be closed!!

ok i just tested your changes, the commit message is currently cosmetic ((ImGui...)) -> (ImGui...), could you change it to something that makes more sense? maybe something like "move cmath header and stop using GetKeyIndex". Commands for this should be git commit --amend, then you get a text editor to modify the message, and then git push origin santa_master_imguikey --force

done.

thanks!


1-hello-world Directory won't exist

I was following this tutorial and as per the steps mentioned, there must be a folder named 1-hello-world inside the repo which I can't find here.
I think it's renamed to gce now but the docs must be updated.

Thanks for filing this! I'll look into see what we can do to fix this.

Filed internal change to update the docs.

The page has been updated to use the new directory name. Please re-open this issue for file another issue if there's any other issues :D


Possible improvement for the quadrature approximation routines.

In the code ported from the old MATLAB libraries referenced here the Gaussian-Legendre Quadrature approximation might not be optimal. When making this approximation we generate n legendre polynomials
From what the comments in the code suggest, for i = 1,...,n the function qnwlege(n::Int, a::Real, b::Real) takes its nodes to be the ith roots of the ith legendre polynomial, whereas the optimal approximation would take the n roots of the nth legendre polynomial. This happens in the lines:
        # p1 is now a vector of Legendre polynomials of degree 1..n
        # pp will be the deriative of each p1 at the nth zero of each
        pp = n*(z.*p1-p2)./(z.*z-1)
        z1 = z
        z = z1 - p1./pp  # newton's method

At first inspection I thought the comment was correct and the approximation was therefore bad, but now I think the actual code might be fine and we just need to change the comment. Perhaps someone a bit more experienced could check this out?
In the case that this code is however not optimal I have written a sketch of new code which would return the optimal nodes, and might look like this:
function GLQ_Nodes(n, steps)
    x = collect(linspace(-1, 1, steps))
    P = Matrix(n+1,steps)
    P[1,] = ones(steps)
    P[2,] = x

    for i in 3:n+1
        P[i,] =  ((2*(i-1)+1)*x.*P[i-1,]-(i-1)*P[i-2,])./(i)
    end

    nth_legendre = P[n+1,]
    y = []
    abs_legendre = abs.(nth_legendre)
    for i in 1:n
        y = append!(y, indmin(abs_legendre))
        abs_legendre = deleteat!(abs_legendre, indmin(abs_legendre))
    end

    return x[y]

end

GLQ_Nodes(10,1000)

Another issue is that on my setup the Gauss-Legendre Quadrature routine doesn't recognise the fix() function, and I instead replaced it with a ceiling function.


[Twig] allow stringable objects as attribute values

Q
A

Bug fix?
yes

New feature?
no

Issues
n/a

License
MIT

Allows passing a stringable objects as attribute values.
{# currently #}
<twig:Form :action="stringableUriObject"> {# error because stringableUriObject isn't scalar #}

{# with this PR #}
<twig:Form :action="stringableUriObject"> {# auto converts stringableUriObject to string #}

What will this change? :)

I've updated the PR description to show what will change.

Great ! Thanks you :)
Minor if you have time:
The description may be a bit missleading, as your PR has no impact on how you pass arguments to components, but how attributes are rendered.
Maybe illustrate with something in the "component view" instead of the "calling template" ?


fix: increase link hitbox size

This PR increases the size of the hitbox of the clickable header links by adding the href property to the dropdown, resolving #278.
Before:

After:

@thansidwell approved?


NonUniform decoration support

Occasionally, a shader variable requires the NonUniform decoration. One example of this is when doing a texture lookup in a ray-tracing shader, where the texture index might not be uniform with the neighbouring rays. See: https://github.com/expenses/ray-tracing-gallery/blob/cb0cb06cc60a5632150e606261a02ba26862ac09/shaders/closesthit.glsl#L136-L138.
I've attempted to do this with asm!:
#[spirv(descriptor_set = 0, binding = 1)] textures: &RuntimeArray<SampledImage<
    Image!(2D, type=f32, sampled=true),
>>,
...

unsafe {
    asm! {
        "OpDecorate {} NonUniform",
        in(reg) &texture_index
    }
};

let uv = Vec2::splat(0.0);
let texture = unsafe {
    textures.index(texture_index as usize)
};
let colour: Vec4 = unsafe { texture.sample_by_lod(uv, 0.0) };

but the decoration wasn't included in the final SPIR-V module. Perhaps it was optimized out? The u32 -> usize conversion that is needed for accessing indexing RuntimeArrays could be a problem as well.

I mentioned this on discord, but I believe the reason that the decoration is optimised out here is because the entry point is generated, which calls the actual function; this call of the function then gets inlined, removing the decoration.
That is, within the function context, your decoration is applying to the function argument, not the entry point variable.

@DJMcNab Right, thanks for investigating! And to clarify, this inlining happens in rust-gpu and not via the spirv-opt passes, correct?

I haven't checked it through either way. I'd be inclined to think it's a rust-gpu pass, but I can't be sure.
I suppose one algorithm we could use is to decorate entry point variables with any variables which apply to the entry point function arguments in entry point decoration. This would make the asm! workaround work, without having to try and work out a safe interface to these parts.

I did some testing by writing out the module between each pass. It seems that the DCE pass is removing the decoration. It's possible that it would get removed in other places as well.

Oh but before that, the inlining pass inlines the variable being decorated without updating the decoration. That should be the first thing to fix.

Just a quick note, I don't think decorating NonUniform via asm! is the way we want to support NonUniform - asm! is intended to be an internal implementation detail, rather than something users write. We probably want to look into properly designing something instead of trying to hack up asm! to do something it was not intended to do.

Just a quick note, I don't think decorating NonUniform via asm! is the way we want to support NonUniform - asm! is intended to be an internal implementation detail, rather than something users write. We probably want to look into properly designing something instead of trying to hack up asm! to do something it was not intended to do.

Yeah, I guess you want fn non_uniform<T>(value: T) -> T, similar to https://github.com/KhronosGroup/GLSL/blob/master/extensions/ext/GL_EXT_nonuniform_qualifier.txt.

What about uniformity analysis? We already do rather heavy block-graph analyses in linker
Assigning nonuniform automatically could be pretty useful wrt Just Working (will also help catch errors in places where non-uniform values are not actually supported)

I looked into implemented the support via an intrinsic and emit_global: https://github.com/EmbarkStudios/rust-gpu/compare/main...expenses:non-uniform-intrinsic but it seems that the decoration is still being silently ignored/removed. I don't know what I'm doing though and this could still be the right approach.

What about uniformity analysis? We already do rather heavy block-graph analyses in linker
Assigning nonuniform automatically could be pretty useful wrt Just Working (will also help catch errors in places where non-uniform values are not actually supported)

For that please see #49

I tried to find out why @expenses decoration was removed before. For that, I added a index_nonuniform function to RuntimeArray.
Apparently, the Inliner was responsible for removing the decoration. Since the decoration happens in an inlined function, the decoration's IDs need to be rewritten as well, not just the inlined part of the function. This is implemented here.
However, this does not fix everything. Unfortunately it is not enough to keep the NonUniform decoration just for the result of OpAccessChain. Image::sample does an OpLoad for the Image's ID. In our non-uniform case, this ID must be decorated with NonUniform as well. However, it seems non-trivial to find out when to decorate this load and when not. In my experience, the Image::sample function is often not inlined. So you'd need one version with a non-uniform decorated %image and one without. I'm not sure how that would be implemented. For now, I just added a special sample_nonuniform function here.
With all that in place, the correctly decorated code gets emitted for the following Rust code:
fn some_function(..., image_array: &mut RuntimeArray<Image!(2D, type = f32, sampled = true)>){
	let nonuniformly_calculated_index = ...;
	let value = image_array
		.index_nonuniform(nonuniformly_calculated_index)
		.sample_nonuniform(
		    some_sampler,
		    some_vec2,
		);
}

A fix for now could be to just decorate that OpLoad in all Image::sample-like functions. Together with the Inliner-fix that would enable some non-uniform access. AFAIK SpirT will track decorations better later anyway.
I didn't test RuntimeArrays of buffers (RuntimeArray<T> and RuntimeArray<TypedBuffer<T>> / RuntimeArray<TypedBuffer<[T]>>) but I think I could come up with a similar workaround for those.


Fix Mache invocations

Fix Mache invocations. Resolves #383.

@forsyth2, it seems like you're creating new MachineInfo objects a lot.  Are these separate scripts or should a machine_info object just be created and passed around or shared some other way?

@xylar They're all python files ultimately called from zppy/__main__.py, so it would be possible to pass a machine_info instance around, yes. It would just be another parameter to clutter up the parameter lists and I didn't think creating an instance had a huge overhead cost.

t would just be another parameter to clutter up the parameter lists and I didn't think creating an instance had a huge overhead cost.

It's not a big cost but it's a lot of places to modify when there's an issue, like here.  I'm guessing that's also why the machine name was supplied one time but missed all the rest.  I think it would be best from a development perspective to invoke mache once if you can get away with it.

Ran the complete-run test on Chrysalis (since NERSC queue times are so long). Tests passed, so this should be good.


improve: translate README into English

I know there is already an issue #19 to translate the README document, but it seems that there has been no progress for several months.
I am curious if the translation work is still in progress or not. If possible, it's OK to assign the translation task to me. I can provide the English translation of the project README.
btw Nolebase's presentation of the knowledge base is really great. I have already migrated the content which was originally deployed on GitBook. Thanks to the developers!

Hi, it's nice to see you here. And welcome to the Nolebase community.
Yes, another issue has been staled for long a while. I've already assigned you.
And for translation, it's fine if you would like to translate it progressively (means to translate the document partially and continuously).
And... Take you time!

Hi. I have completed the English translation of the README and submitted a PR. However, during the "构建预览" workflow, an error occurred at the "Set up job" stage with the following message:
Error: This request has been automatically failed because it uses a deprecated version of actions/upload-artifact: v2. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/

I am not that familiar with CI/CD, but based on the error message, it seems that the actions/upload-artifact: v2 tag in .github/workflows/preview-docs-build.yaml has been deprecated, and the website recommends using v4. The following is the content mentioned on the website in the error message:

In order to prevent issues for customers using GitHub Connect, the tags for v1 through v2 will not be removed from the actions/upload-artifact and actions/download-artifact project repositories. However, attempting to use a version of the actions after the announced deprecation date will result in a workflow failure.

Since I am not well-versed in this area, I would appreciate some guidance. Thanks!

No worries, thanks for telling me and notifying me that, already fixed.


Can @import 'susy' work without specific pathing?

I have a grunt setup based on the yeoman webapp generator.
I followed the instructions to install Susy with bower but always get the Error: File to import not found or unreadable: susy if I have @import "susy" in my main.scss as suggested by the docs.
I can make it work if I write the full path:
@import "../components/susy/sass/_susy.scss";
And that's great! but I'm perplexed about how/when the line that's written in the documentation would work... or is it just shorthand and I'm assuming there's more magic in the world than there really is?

@import "susy" works if you use the Susy ruby gem. Otherwise, you'll have to specify the path to Susy.

That's mostly true, but it's technically a bit more complex: @import susy works if you are using any sort of sass-aware package management — like compass. That should be available on libsass soon, using eyeglass.


ionic 1.0.0-beta.6 spinner, popover does not function

I have a serious problem in my Ionic project when I use the version 1.0.0-beta.6 the application works well but (spinner, popover) does not function and when I switch to version 1.0.0 (spinner, popover) works but I have a list when I selected an item the controller not charge

Greetings @dracula359!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Greetings @dracula359!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.


Add support for critical tasks

Is your feature request related to a problem? Please describe.
When defining tasks in a service, you cannot shut down the application once that task is done / has crashed. For the latter, the service would still run without doing anything (if it is the critical functionality).
Describe the solution you'd like
I am thinking of adding support for critical tasks. Once defined, the service will shutdown completely when (one of) the critical task is done / crashed.
CRITICAL_TASKS = ["critical_task_name1", "critical_task_name2"]  # Critical tasks would be defined by the user in the __init__ function of the DataService class

def task_done_callback(task: asyncio.Task, name: str) -> None:
    """Handles tasks that have finished."""

    # ... [rest of the existing code] ...

    # Check if the task is critical and either completed or crashed
    if name in CRITICAL_TASKS:
        if task.exception() is not None or task.done():
            shutdown_application()

def shutdown_application() -> None:
    """Shuts down the entire application."""
    # logic to gracefully shut down the application
    # e.g.
    asyncio.get_event_loop().stop()

I would like to add something like this:
import asyncio
import logging

from pydase import DataService, Server

logger = logging.getLogger(__name__)

class Channel(DataService):
    def __init__(self):
        self._readout_delay = 2.0
        self._value = 0
        self._autostart_tasks = {
            "read_sensor_data": {
                "args": (),  # defaults to ()
                "exit_when_stopped": False,  # defaults to False
                "exit_when_exception_raised": True,  # defaults to False
            }
        }
        super().__init__()

    def _read_from_sensor(self):
        logger.debug("Reading sensor data")
        self._value = 1.0

    @property
    def value(self):
        return self._value

    async def read_sensor_data(self):
        while True:
            self._read_from_sensor()
            await asyncio.sleep(1)

if __name__ == "__main__":
    service = Channel()
    Server(service).run()

The keyword arguments have default values and do not have to be specified. I want to still allow users to use the old way of defining autostart_tasks, namely providing a tuple, not a dictionary.

With the new task api, this could be as simple as this
import pydase
from pydase.task.decorator import task

class SensorService(pydase.DataService):
    @task(exit_on_exception=True)
    async def read_sensor_data(self):
        while True:
            # do the logic ...
            await asyncio.sleep(...)


Add new icons on buttons to improve visual appeal

For example, adding a paw icon or something like that on the elevated button.

I'll do this!


change structure so that CoTeTo can be used as a submodule in other git repositories

As discussed previously:
It would be nice to define one (additional) default path where CoTeTo is looking for Generators.
That path could be e.g. a directory named CoTeTo_Generators, placed next to CoTeTo.
That would allow us to have a private git repository that uses CoTeTo as submodule and only adds new generators.
Currently, we have several copies of CoTeTo in various repositories.

@jraedler Is this also done in PR #6 ?
If yes, this issue should be closed and it would be good to have one example usage of the feature.

Yes, this is implemented and tested. If a folder CoTeTo_Generators next to the CoTeTo main folder exists, it will be added to the generator search path. But I don't know how to include an example for this in CoTeTo, because it would need to reference a folder outside the CoTeTo folder structure.

There are now at least three examples of how to use CoTeTo as a submodule.

There are now three examples, but I am not yet sure how to use "Loaders" when using CoTeTo as submodule.

Closing for now.
Currently, loaders and filters have to be part of a generator.


Updated for Xcode 8 beta 4 compatibility.

We should also replace all usages of NSError with Error, to be consistent, but that can happen later down the line.

Cool, looks great! And yeah, I'll have to take a look at the NSError stuff in a bit; the current Swift 2 SDK is actually backwards compatible with Obj-C. I'll probably write some Obj-C tests against the SDK so we make sure Obj-C users can still use the SDK.


Problem with upload image, Cannot read property 'subscribe' of undefined

I have a simple create post function that and i want to create a post when i fill the title,content and image:

But when i upload an image the progress bar fills, the image is uploaded to firebase but it doesn't let me create a post and when i test it in console it has this error:

Here is the code for upload image and create post:

check usage of downloadURL  in other files .

I only have this:
downloadURL: Observable<string>
above the upload image and create post code.

you imported Observable ?

Yes I have :
import {observable} from 'rxjs/ observable';

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.


Drop invalid block

:clipboard: Add associated issues, tickets, docs URL here.
Overview
Describe what your Pull Request is about in a few sentences.
Changes
Describe your changes and implementation choices. More details make PRs easier to review.

Change 1
Change 2
...

Testing
Describe how to test your new feature/bug fix and if possible, a step by step guide on how to demo this.

Closed this PR for now


fix:  FluentDatePicker unable to bind to a non-nullable value?

🐛 Bug Report
Binding a non-nullable DateTime property to a standard Blazor InputDate component is allowed. However, if the component is replaced by a FluentDatePicker the code fails to compile.
💻 Repro or Code Sample
@page "/test"
@rendermode InteractiveServer
@using System.ComponentModel.DataAnnotations
@inject ILogger<Test> Logger

<PageTitle>Test</PageTitle>

<EditForm Enhance Model="Model" OnValidSubmit="Submit" FormName="Test">
    @* <InputDate @bind-Value="Model!.DueDate" /> *@
    <FluentDatePicker @bind-Value="Model!.DueDate" />
    <FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent">Submit</FluentButton>
</EditForm>

@code
{
    [SupplyParameterFromForm]
    public Foo? Model { get; set; }

    protected override void OnInitialized()
    {
        Model ??= new() { DueDate = DateTime.Today };
    }

    private void Submit()
    {
        Logger.LogInformation("DueDate = {DueDate}", Model!.DueDate);
    }

    public class Foo
    {
        [Required]
        public DateTime DueDate { get; set; }
    }
}

The code compiles and works correctly once the property is made nullable.
public class Foo
{
    [Required]
    public DateTime? DueDate { get; set; }
}

🤔 Expected Behavior
Component should support binding to a non-nullable property.
😯 Current Behavior
Compilation fails with the following error:
CS1503	Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<System.DateTime>' to 'Microsoft.AspNetCore.Components.EventCallback'

🌍 Your Environment
Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19045
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\8.0.100\
 Browser: Microsoft Edge

Microsoft.FluentUI.AspNetCore.Components Version="4.3.0"

We've already talked about it here: #846

True. I can see that this was mentioned in the issue you linked. The justification there for requiring the bound field to be nullable is so that it can be cleared, something that is not always desired. Moreover, it's different from the behavior of the built-in InputDate Blazor component and it's not immediately obvious, at least to me, that "Cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<System.DateTime>' to 'Microsoft.AspNetCore.Components.EventCallback'" means that I need to change the bound field to be nullable.
I watched your .NET Conf session and I'm just beginning to explore the FluentUI components. My, perhaps incorrect, assumption was that I would mostly be able to replace the standard components with the components in this library without significant effort, at least initially. Later, as I become more familiar with the library, I can start customizing the UI to take advantage of its features. Is that not the case?

Your assumption is/was indeed not entirely correct. I don't believe we have suggested anywhere that our input/form related components are drop in replacements for the standard Blazor components. If we did, please let us know where so we can correct it.

I don't believe we have suggested anywhere that our input/form related components are drop in replacements for the standard Blazor components.

No. I can't say that I can point to any specific place where you make such claim.  Perhaps it was my expectation and, in my opinion, highly desirable. At least, in cases such as this one where I fail to see an advantage in diverging from the behavior of the standard control.
In any case, thank you for building this library. Feel free to close the issue if this will not be considered.

We'll close this one. As discussed in the other issue, we will look into binding both nullable and non-nullable values.

Indeed, we try to be as close as possible to existing components. Sometimes it's not easy to maintain ease of use with innovative new features. In this particular case, we're probably going to make the component evolve to have this feature.

Any movement on this?

Any movement on this?

Not before v5


Make all user-visible strings localizable

For now we only do localization for errors in RequestStatusBox:
https://github.com/nearprotocol/near-wallet/blob/2e96e2b16572819607e77dd9bc42d1166967bf5c/src/components/common/RequestStatusBox.js#L56
Ideally all strings in our UI should be localizable using https://ryandrewjohnson.github.io/react-localize-redux-docs/ (we can also change the library if there are good reasons to do this).

@vgrichina @marcinbodnar Is this complete as a result of #217?

@kcole16 not yet, this was translations for buttons only.

@kcole16 @vgrichina final part is ready with #455, I did also change indentation for all files.


[Youtube] Merging fails with 2019.04.24

I'm using youtube-dl 2019.04.24 to download a youtube video. Im getting the error "debug" after the merge output:
youtube-dl https://www.youtube.com/watch?v=dbGS7gWmJZA [youtube] dbGS7gWmJZA: Downloading webpage [youtube] dbGS7gWmJZA: Downloading video info webpage [download] Destination: Sick Shoes-dbGS7gWmJZA.f248.webm [download] 100% of 4.00MiB in 00:05 [download] Destination: Sick Shoes-dbGS7gWmJZA.f171.webm [download] 100% of 2.24MiB in 00:03 [ffmpeg] Merging formats into "Sick Shoes-dbGS7gWmJZA.webm" ERROR: "debug"
With --verbose:
youtube-dl --verbose https://www.youtube.com/watch?v=dbGS7gWmJZA [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'--verbose', u'https://www.youtube.com/watch?v=dbGS7gWmJZA'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2019.04.24 [debug] Python version 2.7.6 (CPython) - Linux-3.13.0-108-generic-x86_64-with-Ubuntu-14.04-trusty [debug] exe versions: avconv 11.3-6, avprobe 11.3-6, ffmpeg 11.3-6 [debug] Proxy map: {} [youtube] dbGS7gWmJZA: Downloading webpage [youtube] dbGS7gWmJZA: Downloading video info webpage [youtube] {18} signature length 43.42, html5 player vflU6l_su [youtube] {137} signature length 43.42, html5 player vflU6l_su [youtube] {248} signature length 43.42, html5 player vflU6l_su [youtube] {136} signature length 43.42, html5 player vflU6l_su [youtube] {247} signature length 43.42, html5 player vflU6l_su [youtube] {135} signature length 43.42, html5 player vflU6l_su [youtube] {244} signature length 43.42, html5 player vflU6l_su [youtube] {134} signature length 43.42, html5 player vflU6l_su [youtube] {243} signature length 43.42, html5 player vflU6l_su [youtube] {133} signature length 43.42, html5 player vflU6l_su [youtube] {242} signature length 43.42, html5 player vflU6l_su [youtube] {160} signature length 43.42, html5 player vflU6l_su [youtube] {278} signature length 43.42, html5 player vflU6l_su [youtube] {140} signature length 43.42, html5 player vflU6l_su [youtube] {171} signature length 43.42, html5 player vflU6l_su [youtube] {249} signature length 43.42, html5 player vflU6l_su [youtube] {250} signature length 43.42, html5 player vflU6l_su [youtube] {251} signature length 43.42, html5 player vflU6l_su [debug] Default format spec: bestvideo+bestaudio/best [debug] Invoking downloader on u'https://r4---sn-4g5e6n7r.googlevideo.com/videoplayback?id=o-AIIq3a_x_iJfwuZyIGMRVpMKaAgT3CP1cFCAXS2dD98C&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&itag=248&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-4g5e6n7r%2Csn-4g5ednle&ms=au%2Crdu&mv=m&pl=20&ei=R5rFXPfiENS9gAfH0baoBg&gcr=de&initcwndbps=758750&mime=video%2Fwebm&gir=yes&clen=4191013&dur=141.000&lmt=1539718325458723&mt=1556453805&fvip=4&keepalive=yes&c=WEB&txp=2301222&ip=<IP_ADDRESS>&ipbits=0&expire=1556475559&sparams=ip%2Cipbits%2Cexpire%2Cid%2Caitags%2Csource%2Crequiressl%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cei%2Cgcr%2Cinitcwndbps%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&key=yt8&signature=F0FE510D228EA71A16A9988945039364F6D15735.B1E6126DC711B06EE445EBCB9C21A83CDC3154B6&ratebypass=yes' [download] Destination: Sick Shoes-dbGS7gWmJZA.f248.webm [download] 100% of 4.00MiB in 00:05 [debug] Invoking downloader on u'https://r4---sn-4g5e6n7r.googlevideo.com/videoplayback?id=o-AIIq3a_x_iJfwuZyIGMRVpMKaAgT3CP1cFCAXS2dD98C&itag=171&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-4g5e6n7r%2Csn-4g5ednle&ms=au%2Crdu&mv=m&pl=20&ei=R5rFXPfiENS9gAfH0baoBg&gcr=de&initcwndbps=758750&mime=audio%2Fwebm&gir=yes&clen=2345288&dur=141.056&lmt=1539717933516874&mt=1556453805&fvip=4&keepalive=yes&c=WEB&txp=2301222&ip=<IP_ADDRESS>&ipbits=0&expire=1556475559&sparams=ip%2Cipbits%2Cexpire%2Cid%2Citag%2Csource%2Crequiressl%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cei%2Cgcr%2Cinitcwndbps%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&key=yt8&signature=C821A85387AC7380C874287A44633E19C68AA464.914E99A1013EAF35DE183655957CED19F308388D&ratebypass=yes' [download] Destination: Sick Shoes-dbGS7gWmJZA.f171.webm [download] 100% of 2.24MiB in 00:03 [ffmpeg] Merging formats into "Sick Shoes-dbGS7gWmJZA.webm" [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Sick Shoes-dbGS7gWmJZA.f248.webm' -i 'file:Sick Shoes-dbGS7gWmJZA.f171.webm' -c copy -map '0:v:0' -map '1:a:0' 'file:Sick Shoes-dbGS7gWmJZA.temp.webm' ERROR: "debug" Traceback (most recent call last):   File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2054, in post_process     files_to_delete, info = pp.run(info)   File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 512, in run     self.run_ffmpeg_multiple_files(info['__files_to_merge'], temp_filename, args)   File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 235, in run_ffmpeg_multiple_files     raise FFmpegPostProcessorError(msg) FFmpegPostProcessorError: "debug"
This also happens with other videos.

Works perfectly here:
C:\Users\jaervinen>\ProgramData\Anaconda3\python.exe K:\_DOWNLOADS_\youtube-dl.pyc --verbose --ignore-config "https://www.youtube.com/watch?v=dbGS7gWmJZA"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--ignore-config', 'https://www.youtube.com/watch?v=dbGS7gWmJZA']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2019.04.24
[debug] Python version 3.7.2 (CPython) - Windows-10-10.0.17134-SP0
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] dbGS7gWmJZA: Downloading webpage
[youtube] dbGS7gWmJZA: Downloading video info webpage
[youtube] {18} signature length 43.42, html5 player vflU6l_su
[youtube] dbGS7gWmJZA: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vflU6l_su/en_US/base.js
[youtube] {137} signature length 43.42, html5 player vflU6l_su
[youtube] {248} signature length 43.42, html5 player vflU6l_su
[youtube] {136} signature length 43.42, html5 player vflU6l_su
[youtube] {247} signature length 43.42, html5 player vflU6l_su
[youtube] {135} signature length 43.42, html5 player vflU6l_su
[youtube] {244} signature length 43.42, html5 player vflU6l_su
[youtube] {134} signature length 43.42, html5 player vflU6l_su
[youtube] {243} signature length 43.42, html5 player vflU6l_su
[youtube] {133} signature length 43.42, html5 player vflU6l_su
[youtube] {242} signature length 43.42, html5 player vflU6l_su
[youtube] {160} signature length 43.42, html5 player vflU6l_su
[youtube] {278} signature length 43.42, html5 player vflU6l_su
[youtube] {140} signature length 43.42, html5 player vflU6l_su
[youtube] {171} signature length 43.42, html5 player vflU6l_su
[youtube] {249} signature length 43.42, html5 player vflU6l_su
[youtube] {250} signature length 43.42, html5 player vflU6l_su
[youtube] {251} signature length 43.42, html5 player vflU6l_su
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://r4---sn-qo5-ixas.googlevideo.com/videoplayback?id=o-AFTMCQ0DPlWE7uylFVQNqqcojFY9BcatVeKlAZyzVBJY&itag=18&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-qo5-ixas%2Csn-5go7ynez&ms=au%2Crdu&mv=m&pl=21&ei=T5zFXOHePIza7QT1vYGIDA&gcr=fi&initcwndbps=857500&mime=video%2Fmp4&gir=yes&clen=2783440&ratebypass=yes&dur=141.107&lmt=1539717126814503&mt=1556454385&fvip=4&c=WEB&txp=2311222&ip=<IP_ADDRESS>&ipbits=0&expire=1556476080&sparams=ip%2Cipbits%2Cexpire%2Cid%2Citag%2Csource%2Crequiressl%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cei%2Cgcr%2Cinitcwndbps%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&key=yt8&signature=8498D2A7C854A3C40B769E595B09B6758BABE290.C8DCB163284C8419C6E989909762CD088205E028'
[download] Destination: Sick Shoes-dbGS7gWmJZA.mp4
[download] 100% of 2.65MiB in 00:02

@dstftw Could you provide a link to the original issue as you closed this one as a duplicate? Thank you! :-)


only do relative requires when path starts with .

There are many other ways to require files which I didn't consider in https://github.com/bbatsov/rubocop/pull/2866
I tried doing (Pathname.new foo).absolute? but sadly that doesn't detect gems or URLs. I think this simple . prefix is a good balance between all the other methods and allowing relative includes.

How would you like me to deal with the metric error?
Offenses:
lib/rubocop/config_loader.rb:13:3: C: Class has too many lines. [167/166]
  class ConfigLoader ...
  ^^^^^^^^^^^^^^^^^^

Thanks @ptarjan for quick PR :) I also think doing relative requires only when path starts with . makes the most sense for require

How would you like me to deal with the metric error?

Find a way to squeeze down code size without sacrificing readability.
This cop prevents us from making classes bigger and bigger when really they should be split.

@alexdowad how do you do static helper methods then? Just top-level functions?

Please also consider #2937 when working on require.

@alexdowad Like I did here?

:+1: Thanks for the quick fix! Looking forward to 0.38.1.

Someone should test this to verify the problem at hand. Also:

The PR title doesn't follow our conventions
The commit messages don't follow our conventions
There are not tests verifying the changes
There's no changelog entry
This probably has to be mentioned somewhere in the README

@bbatsov hopefully I fulfilled all your bullets with the new commit. It not, please let me know.

Looks ok, but you'll have to rebase.

@bbatsov rebased

Thanks, @ptarjan and @bbatsov! When do you think a new release containing this commit can be cut?

You don't need a new release - you can build the gem straight from the github master. See http://bundler.io/git.html

@bbatsov Right, I'm fine with that myself for now.
Mostly I'm wondering about all the other folks who may have rubocop pinned to '~> 0.36' (or something similar) who automatically pick up 0.38.0 which breaks rubocop-rspec integration for anyone who had require: rubocop-rspec in .rubocop.yml.

Got it. I'll think about a new release tomorrow. I guess relatively few people are using rubocop-rspec, so the impact is this bug should be small.

@bbatsov :clap: thank you, sir.

@bbatsov I tested and master fixes the bug. Thanks!

@bbatsov Have you considered cutting a 0.38.1 release yet?


Use try for the multiplication with self["aggregate_all_vm_memory_on_disk]

Use try for the multiplication with self["aggregate_all_vm_memory_on_disk]
Links
https://bugzilla.redhat.com/show_bug.cgi?id=1435294
Steps for Testing/QA
Click on a service link in a VM summary page (or a Job)  summary page with zero memory on disk

@miq-bot add_label bug

@NickLaMuro - please review

@miq-bot add_label fine/yes

Spec added

@bdunne - let me now if there's anything needed to merge this

Fine backport details:
$ git log -1
commit c4c76095ad3476c7406814f7fccd6093b08e3dcc
Author: Brandon Dunne<EMAIL_ADDRESS>Date:   Mon Apr 24 17:18:34 2017 -0400

    Merge pull request #14834 from lgalis/check_for_nil_aggregate_all_vm_memory_on_disk

    Use try for the multiplication with self["aggregate_all_vm_memory_on_disk]
    (cherry picked from commit 5e6c001a5dfd8cf2b7f3ecbeebfd40f5416cf809)

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

@miq-bot add_label euwe/yes

Euwe backport details:
$ git log -1
commit 5c80d0e72933d92032e6a63725cc0b5feab05f3c
Author: Brandon Dunne<EMAIL_ADDRESS>Date:   Mon Apr 24 17:18:34 2017 -0400

    Merge pull request #14834 from lgalis/check_for_nil_aggregate_all_vm_memory_on_disk

    Use try for the multiplication with self["aggregate_all_vm_memory_on_disk]
    (cherry picked from commit 5e6c001a5dfd8cf2b7f3ecbeebfd40f5416cf809)

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