feat: add new design for saved resources

You can view the figma file here.

The design should be responsive.

ℹ We recommend updating the styling of existing components, otherwise you can add extra components if there is a need.

You have to design the resources page as shown above.
You also have to design the page in case no resources have been saved.

You need to implement the functionality of remove all

You need to redesign the card component

Any changes to the above design are welcome. Please feel free to share your thoughts, and we will discuss them thoroughly.

⚠ Make sure to push all the changes into dev branch

I would like to work on this.

I would like to work on this.

Sure, assigning to you!

@Vidip-Ghosh any updates? Are you still willing to work on this?

@Vidip-Ghosh any updates? Are you still willing to work on this?

@rupali-codes actually I have been assigned the firebase auth issue so even working on that + I was busy in my academics this week so I wasn't able to start this issue. But I am willing to work on this issue.

But bookmark was not going to be there, right? Or will it be.

But bookmark was not going to be there, right? Or will it be.

Even confused of this. I think we should save the resources on the basis of resource upvoted. Will that be feasible?

But bookmark was not going to be there, right? Or will it be.

Even confused of this. I think we should save the resources on the basis of resource upvoted and display in saved resources. Will that be feasible?

yep, sounds good though

Has anyone worked on it? I would like to!

Has anyone worked on it? I would like to!

This is assigned to vidip. Please create new issue or comment with issues having label: up for grabs


Introduction Chapter updated

1.Title updated for each html sketch
2.Screenshots added for each sketch
3.Comments added so that even an absolute beginner can understand
4. Reimplemented code of noise walk without using vectors and as mentioned in the book.
5. p5 js link updated for each sketch

@shiffman  Further do you have any plans of adding assignments/exercises. I got stuck at final exercise of first chapter. Probably many more people could have got stuck or have merely skip. I can add them  if they are not yet created although it may take a while.

Yes, ideally I'd like answers to all the exercises here just slow to get around to it.

@shiffman  Will get it done by feb 2018. I hope that's not too slow

@VRamazing Are you interested in revisiting this? I am in the process of updating the book this summer with the hopes of publishing a 2nd edition this fall! No worries if not, I can try to resolve conflicts and pull useful bits from here if I can!

Gotcha. I will do this today. I am going through your book again so it might be a good revision for me.


[rust panic] assertion failed: cons_expr.returns && alt_expr.returns (on if else)

The rust/src/minify/pass1.rs file panics at line 422:13 when encountering an if else block. Encountered this on version V0.6.0 while running RUST_BACKTRACE=1 minify-js-cli --mode module ifElse.js --output ifElse.small.js. Running that gives the following stack trace;
thread 'main' panicked at rust/src/minify/pass1.rs:331:13:
assertion failed: cons_expr.returns && alt_expr.returns
stack backtrace:
   0: rust_begin_unwind
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/panicking.rs:647:5
   1: core::panicking::panic_fmt
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/panicking.rs:72:14
   2: core::panicking::panic
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/panicking.rs:144:5
   3: <minify_js::minify::pass1::Pass1 as parse_js::visit::Visitor>::on_syntax_up
             at /usr/local/cargo/git/checkouts/minify-js-4f5cda0ad742d80b/d0b2fa9/rust/src/minify/pass1.rs:331:13
   4: parse_js::visit::Visitor::visit
             at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/parse-js-0.20.1/src/visit.rs:475:7
   5: parse_js::visit::Visitor::visit
             at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/parse-js-0.20.1/src/visit.rs:134:11
   6: parse_js::visit::Visitor::visit
             at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/parse-js-0.20.1/src/visit.rs:278:11
   7: parse_js::visit::Visitor::visit
             at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/parse-js-0.20.1/src/visit.rs:77:11
   8: minify_js::minify::minify_js
             at /usr/local/cargo/git/checkouts/minify-js-4f5cda0ad742d80b/d0b2fa9/rust/src/minify/mod.rs:36:3
   9: minify_js::minify
             at /usr/local/cargo/git/checkouts/minify-js-4f5cda0ad742d80b/d0b2fa9/rust/src/lib.rs:50:3
  10: minify_js_cli::main
             at /usr/local/cargo/git/checkouts/minify-js-4f5cda0ad742d80b/d0b2fa9/cli/src/main.rs:38:3
  11: core::ops::function::FnOnce::call_once
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

The input file for this was quite a simple JS file;
if ("a" === "a")
	console.log("a")
else if ("b" === "b")
	console.log("b")
else
	console.log("c")

It paniced becouse of the assertion at the line given within the stacktrace. Which is here in the code;
https://github.com/wilsonzlin/minify-js/blob/d0b2fa9a70abae6d80afd8e34910d932b805d2dc/rust/src/minify/pass1.rs#L331
This failed assertion also persists through to the latest main commit.

Yes, the problem also extends, of course, to use within Node.js.

thread '' panicked at rust\src\minify\pass1.rs:331:13:
assertion failed: cons_expr.returns && alt_expr.returns

Not that that should be surprising, but it may be nice to have that squared away for sanity checking.
Also this is me adding my +1.

See just now that this is probably related to #21. Looks like the same problem as they have there


Move Microsoft.AspNetCore.Authorization.Policy types

Addresses #9208

We could, but changing the namespace would be a breaking change.


Is it possible to build as a DLL?

I'm trying to build raudio as a DLL to use in my project with GCC 12.2.0 on MSYS2 mingw64:
gcc -DRAUDIO_STANDALONE -DSUPPORT_FILEFORMAT_WAV -DSUPPORT_FILEFORMAT_OGG -DSUPPORT_FILEFORMAT_MP3 -DSUPPORT_FILEFORMAT_FLAC -Wall raudio.c -shared -o raudio.dll
However, the result DLL doesn't have any exports according to dumpbin:
  Section contains the following exports for raudio.dll

    00000000 characteristics
    64C4D182 time date stamp Sat Jul 29 10:44:50 2023
        0.00 version
           1 ordinal base
           0 number of functions
           0 number of names

What would be the correct way to build it as a shared DLL?

Turns out I have to define SUPPORT_MODULE_RAUDIO as well

@sokolas Oh, actually it should be enabled automatically in standalone mode!


Enabling cross-currency trading is given weird Bid/Ask values in USD

Hi There,
I have setup the wlox from the @mbassan repository and have been able to do most of the configuration although with multiple attempts. There are few things which I am still struggling to get on.

I enabled the cross-currency trades and have a conversion fee in place. The USD amount is 2762.95 USD but when I place the order in another currency, the converted USD amount is increased drastically to 3565. The conversion fee is 1% and the USD to INR conversion is 0.0155 and it is updating from the Yahoo api. I am bit baffled at getting this weird numbers

Another area I am confused is the Deficit. I have settled all the orders and also the withdrawals/deposit transactions are settled correctly, still there is a deficit shown on the Status page. I had thought that this might be because that there was no hot wallet setup(is this not setup automatically??). I created a new address using bitcoin-cli and market it as system and hot. But still the deficity remains. Also, there is nothing in the 'Pending Withdrawals' section.

Any idea/inputs on the above two points?
Thanks
Irshad

Hello I am facing another problem that you seem to have already solved.
I would like to email you with these points. Can you help me with this? Could I have your email for me to send the situations?
Best regards


CRACO

Implements #59
I definitely enjoyed working with the new version of CRACO because of the new TypeScript support and great documentation. However, the last setup that we had isn't working anymore, so I had to do a few changes:

removed Babel presets. No preset now, wondering if that's ok, or if we could use another one or find a solution for the metro-react-native-babel-preset to work but I believe react-scripts is using babel-preset-react-app behind the scenes.

Added metro-react-native-babel-preset.


(fix) prefer primitive boolean over Boolean

As recommended by official TypeScript documentation https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#the-primitives-string-number-and-boolean
Issue found:

I will adjust the tests :)


pre-start script is failing on dbmigrate

Thanks for submitting an issue to cloud_controller_ng. We are always trying to improve! To help us, please fill out the following template.
Issue
We are upgrading from capi  1.21.34 to capi 1.44.29  and when the pre-start script runs we get and error out a table already exisiting
Context
[2018-05-04 01:21:35+0000] Tasks: TOP => db:migrate
[2018-05-04 01:21:35+0000] (See full trace by running task with --trace)
[2018-05-04 01:21:35+0000] + result=1
[2018-05-04 01:21:35+0000] + [[ 1 -eq 0 ]]
[2018-05-04 01:21:35+0000] + sleep 5
[2018-05-04 01:21:40+0000] + (( counter++ ))
[2018-05-04 01:21:40+0000] + [[ 3 -le 3 ]]
[2018-05-04 01:21:40+0000] + echo 'Running migration try number 3 of 3'
[2018-05-04 01:21:40+0000] + bundle exec rake db:migrate
[2018-05-04 01:21:43+0000] rake aborted!
[2018-05-04 01:21:43+0000] Sequel::DatabaseError: Mysql2::Error: Table 'staging_security_groups_spaces' already exists
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.8/lib/mysql2/client.rb:120:in _query' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.8/lib/mysql2/client.rb:120:in block in query'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.8/lib/mysql2/client.rb:119:in handle_interrupt' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.8/lib/mysql2/client.rb:119:in query'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/adapters/mysql2.rb:141:in block in _execute' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/logging.rb:49:in log_connection_yield'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/adapters/mysql2.rb:136:in _execute' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/adapters/utils/mysql_mysql2.rb:37:in block in execute'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/connecting.rb:301:in block in synchronize' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/connection_pool/threaded.rb:107:in hold'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/connecting.rb:301:in synchronize' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/adapters/utils/mysql_mysql2.rb:37:in execute'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/adapters/mysql2.rb:71:in execute_dui' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/query.rb:47:in execute_ddl'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/schema_methods.rb:697:in create_table_from_generator' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/schema_methods.rb:213:in create_table'
[2018-05-04 01:21:43+0000] /var/vcap/data/packages/cloud_controller_ng/ecc5b5c2e755c52b9e3c548d34e49edb6549a0ec/cloud_controller_ng/db/migrations/20161104184720_create_staging_security_groups_spaces.rb:3:in block (2 levels) in <top (required)>' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:106:in instance_eval'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:106:in apply' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:705:in block (2 levels) in run'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:479:in checked_transaction' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:704:in block in run'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:701:in each' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:701:in run'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:404:in run' [2018-05-04 01:21:43+0000] /var/vcap/data/packages/cloud_controller_ng/ecc5b5c2e755c52b9e3c548d34e49edb6549a0ec/cloud_controller_ng/lib/cloud_controller/db_migrator.rb:18:in apply_migrations'
[2018-05-04 01:21:43+0000] /var/vcap/data/packages/cloud_controller_ng/ecc5b5c2e755c52b9e3c548d34e49edb6549a0ec/cloud_controller_ng/lib/tasks/db.rake:50:in migrate' [2018-05-04 01:21:43+0000] /var/vcap/data/packages/cloud_controller_ng/ecc5b5c2e755c52b9e3c548d34e49edb6549a0ec/cloud_controller_ng/lib/tasks/db.rake:57:in block (2 levels) in <top (required)>'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/exe/rake:27:in <top (required)>' [2018-05-04 01:21:43+0000] /var/vcap/packages/ruby-2.4/bin/bundle:23:in load'
[2018-05-04 01:21:43+0000] /var/vcap/packages/ruby-2.4/bin/bundle:23:in <main>' [2018-05-04 01:21:43+0000] Mysql2::Error: Table 'staging_security_groups_spaces' already exists [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.8/lib/mysql2/client.rb:120:in _query'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.8/lib/mysql2/client.rb:120:in block in query' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.8/lib/mysql2/client.rb:119:in handle_interrupt'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.8/lib/mysql2/client.rb:119:in query' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/adapters/mysql2.rb:141:in block in _execute'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/logging.rb:49:in log_connection_yield' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/adapters/mysql2.rb:136:in _execute'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/adapters/utils/mysql_mysql2.rb:37:in block in execute' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/connecting.rb:301:in block in synchronize'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/connection_pool/threaded.rb:107:in hold' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/connecting.rb:301:in synchronize'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/adapters/utils/mysql_mysql2.rb:37:in execute' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/adapters/mysql2.rb:71:in execute_dui'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/query.rb:47:in execute_ddl' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/schema_methods.rb:697:in create_table_from_generator'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/database/schema_methods.rb:213:in create_table' [2018-05-04 01:21:43+0000] /var/vcap/data/packages/cloud_controller_ng/ecc5b5c2e755c52b9e3c548d34e49edb6549a0ec/cloud_controller_ng/db/migrations/20161104184720_create_staging_security_groups_spaces.rb:3:in block (2 levels) in <top (required)>'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:106:in instance_eval' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:106:in apply'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:705:in block (2 levels) in run' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:479:in checked_transaction'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:704:in block in run' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:701:in each'
[2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:701:in run' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/sequel-4.49.0/lib/sequel/extensions/migration.rb:404:in run'
[2018-05-04 01:21:43+0000] /var/vcap/data/packages/cloud_controller_ng/ecc5b5c2e755c52b9e3c548d34e49edb6549a0ec/cloud_controller_ng/lib/cloud_controller/db_migrator.rb:18:in apply_migrations' [2018-05-04 01:21:43+0000] /var/vcap/data/packages/cloud_controller_ng/ecc5b5c2e755c52b9e3c548d34e49edb6549a0ec/cloud_controller_ng/lib/tasks/db.rake:50:in migrate'
[2018-05-04 01:21:43+0000] /var/vcap/data/packages/cloud_controller_ng/ecc5b5c2e755c52b9e3c548d34e49edb6549a0ec/cloud_controller_ng/lib/tasks/db.rake:57:in block (2 levels) in <top (required)>' [2018-05-04 01:21:43+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/exe/rake:27:in <top (required)>'
[2018-05-04 01:21:43+0000] /var/vcap/packages/ruby-2.4/bin/bundle:23:in load' [2018-05-04 01:21:43+0000] /var/vcap/packages/ruby-2.4/bin/bundle:23:in '
Steps to Reproduce
we are using Pivotal bits so we are doing and upgrade from 1.10.22 to 2.0.10, this databse was first deployed using 1.7?
Expected result
db migration to work successfully
Current result
the cloud_controller_ng pre-start script is failing

@lerytke have you contacted Pivotal support?
@bingosummer Is your issue resolved?
Thanks,
@selzoc && Davis

@infews Thanks for asking. We just upgraded to new version. Currently, we use v4.0.0 and didn't hit the issue.

Thank you for following up, @bingosummer !

@lerytke we haven't heard from you in over 2 weeks, closing this issue for now.   Please feel free to re-open if you're still having the issue.
Thanks,
Chris


On the architecture page the link to choosing an installation method is broke

On this page: https://rancher.com/docs/rancher/v2.x/en/overview/architecture/ the link to choosing an installation method points to: https://rancher.com/docs/rancher/v2.x/en/installation/choosing-installation
However that link returns a 404. I'd happily put in a PR but I'm not sure where it's supposed to be pointing.

Closing this issue because it is addressed by https://github.com/rancher/docs/pull/2123


titleTemplate is not working properly and repeats itself multiple times

Version
v2.9.2
Reproduction link
https://gitlab.com/matobeno1/nuxt-title-issue/
Steps to reproduce

start the dev server
open any link in the new tab and watch the site title
go to the opened tab and try reloading (alternatively hard reloading)

What is expected ?
The site title for each route should be the way it is defined in the nuxt.config.js
head: {
    titleTemplate: '%s - MyApp',
    title: 'TheTitle',
    // ...
}

So the site title should be e.g. TheTitle - MyApp
What is actually happening?
After several reloads the "- MyApp"  is appended so the final look
of the site title is e.g.
TheTitle - MyApp - MyApp
or even
TheTitle - MyApp - MyApp - MyApp - MyApp - MyApp - MyApp (multiple times repeated based on how many times I reload)
Additional comments?
I don't really know how exactly to reproduce this, there is a GIF image in the Reproduction link repo, sometimes you might
need to reload several times, try opening several routes and reloading / hard reloading the site, clicking on route-links and reloading. After a while you should see that the site title is repeating itself. It happens in the production build and development build as well.
Tried to reproduce on Firefox Dev, Edge, Chrome, happens on all of those.
Any help appreciated

This bug report is available on Nuxt community (#c9768)

Transferred the issue back to nuxt.js, cause I realized its a Nuxt issue.

Fix willl be available in next release (and also latest nuxt-edge)


refactor(workload): query with GUID per upstream API change

Depends on: newrelic-client-go PR #261

Resolved in #220


Mount read only shared data volume

Fixes #35.
Mount the /srv/data volume in the user containers.

[x] Update the documentation to mention this volume
[x] Update the overview diagram

Could it be the /data directory instead of /src/data?

Why not /srv/data as recommended in http://tljh.jupyter.org/en/latest/howto/content/share-data.html#option-2-create-a-read-only-shared-folder-for-data?

OK. Let's go with /srv/data

Good!


Allow debugging of bricked imodels.

This change allows looking into failing changeset where the cause is a foreign key violation.

The flag can be enabled by insert into be_local(name,val)values('DebugAllowFkViolations',1);
PRAGMA foreign_key_check will then give you the list of violations.

/azp imodel-native

/azp run imodel-native


Fix java tests

The fact that the cursorId endianess problem only appeared on Java isn't clear to me yet.


AC: FOOTER has text a/o icon links to GitHub/LinkedIn profiles + a 3rd platform

WHEN I view the footer
THEN I am presented with text or icon links to the developer’s GitHub and LinkedIn profiles, and their profile on a third platform (Stack Overflow, Twitter)

done


Don't depend on lsp-mode for treesit

I think requiring treesit and treesit-auto configuration to be evaluated  after lsp-mode is excessive. I'm not using the latter (eglot fan here), and because of neither of these configurations loads for me.
I also updated a SPEC form in when-let - i.e., only the (VALUEFORM) can be used without creating a binding.

I'll try this out, but I recall that lsp and treesit got into trouble about who was doing certain operations. But now I don't remember the details beyond that.

@steve-downey Have you had a chance to follow up on this?

Finally got some time to use this branch, and it looks like lsp-mode has managed to fix the problem where they get into a must be first fight with treesit.


Weight function implementations unnecessarily verbose

Several of the Weight implementations are (as the title states) unnecessarily verbose:

checked_* functions could be made much more succinct by using the ? operator not possible, see https://github.com/rust-lang/rust/issues/74935

the any_*/all_* functions all follow the same pattern:
// all_*
self.ref_time OP other.ref_time && self.proof_size OP other.proof_size

// any_*
self.ref_time OP other.ref_time || self.proof_size OP other.proof_size

which could very easily be implemented with a macro_rules!, and would reduce maintenance burden of any fields added in the future.

the scalar arithmetic ops have their implementation duplicated, for example mul here:

~~https://github.com/paritytech/substrate/blob/master/primitives/weights/src/weight_v2.rs#L274-L276~~
~~https://github.com/paritytech/substrate/blob/master/primitives/weights/src/weight_v2.rs#L365-L373~~

unfortunately not possible due to the current trait bounds on <Weight as Mul<T>>::mul

Also, Weight doesn't impl CheckedMul, which I think it should. not possible either
As always, happy to pick this up if it's accepted :slightly_smiling_face:

which could very easily be implemented with a macro_rules!, and would reduce maintenance burden of any fields added in the future.

I'm not convinced by this, because this isn't changing that often.

the scalar arithmetic ops have their implementation duplicated, for example mul here:
* https://github.com/paritytech/substrate/blob/master/primitives/weights/src/weight_v2.rs#L274-L276

* https://github.com/paritytech/substrate/blob/master/primitives/weights/src/weight_v2.rs#L365-L373

Fine point, the trait could call the const method.

Also, Weight doesn't impl CheckedMul, which I think it should.

Also okay.

For the first point, I was thinking that it would be nice to define those through a sort of "pseudo-function-composition", and cut down on the boilerplate a bit (the maintenance cost was just a nice bonus), like this: https://gist.github.com/benluelo/07d58471716ef211cd359b915bea4021.
Some unfortunate issues:

For CheckedMul, Weight doesn't impl Mul<Weight> (which makes sense - I originally read the scalar impls incorrectly, my bad there). My need for this stemmed from #13262, since I couldn't use DefensiveSaturating::defensive_saturating_add with Weight. num_traits::CheckedMul expects Mul<Self, Output = Self> (annoyingly), so a scalar CheckedMul impl isn't possible anyways.

<Weight as Mul>::mul can't call into const Weight::mul since since that fn expects a u64.

? isn't stable in const contexts yet (I tend to have this feature enabled in my personal projects, I forgot it wasn't stable :( ), so something like this could be done: https://gist.github.com/benluelo/aa63c166398f5f74b123081ed7da7e58

Also, for add and sub, what are your thoughts on separating the scalar methods' naming? As of right now, the non-scalar add and sub fns aren't const (as they're trait methods), and said const impls can't be added without choosing a different name for them. It's also slightly confusing to have two add methods that work differently.

For the first point, I was thinking that it would be nice to define those through a sort of "pseudo-function-composition", and cut down on the boilerplate a bit (the maintenance cost was just a nice bonus)

About the syntax: We actually want less syntax magic and more data driven so that downstream tooling can easier parse it: https://github.com/paritytech/substrate/issues/12580
Something similar to the WeightToFeeCoefficients maybe.
Going to re-read your issue tomorrow and answer the other points :smile:


icon of UX label in bug tracker broken

The issue label for UX issues is broken. Most labels in the issue tracker have an emoticon embedded, and the "blonde_man" in the UX label seems to be gone, that's why it is not rendered in the link in the next line:
https://github.com/pitest/pitclipse/labels/impacts%3A ux %3Ablonde_man%3A

I've just replaced that with a smile... if you have a better suggestion we can re-open this ;)
thanks!


Link to the most popular implementation for Emacs

Several solarized implementations (and a fork) exist for Emacs:
http://www.melpa.org/#/?q=solar&sort=downloads&asc=false
The implementation that this repository used to link to is the least
popular among those.  Link to the most popular one instead.  I am a
bit surprised that it is not at least a magnitude more popular than
the second most popular one, but it is much more actively maintained
(68 vs 6 contributors, 601 vs 194 commits).
This also removes the bundled copy of the the older implementation
without bundling a copy of the newer implementation.  It seems those
bundled copies are not getting updated and I don't volunteer to do
it, so it seems better to just link to the up-to-date standalone
repository.
I have contacted the maintainers of the other implementations, last
here: https://github.com/melpa/melpa/pull/5780 (which also provides
some background information in case you are interested).  @sellout,
the author of the implementation previously linked to, never replied.

Friendly ping!

Closing because this repository is not maintained anymore.


Can configure wgpu max tasks

We could use an AtomicUsize to accomplish the same thing. I just think that not having to recompile the project and play with an environment variable is more advantageous in this case. We could offer both ways of modifying this setting. @antimora, what do you think? Do you have any other suggestions?

I'm okay with not requiring compilation; it's simply the manner in which the value is passed that concerns me. It's analogous to passing a global variable but worse. Using global variables in the middle of code will inherit all associated problems (testing, debugging, etc).
It's acceptable if we use an environment variable from the place where we construct the server. It provides an opportunity to override the value from other sources. Perhaps we can even add a conditional feature flag for no_std compilation.
However, I acknowledge that your function interface will change for this parameter (and any downstream interfaces).
Maybe this is a good opportunity to think about some config structure for wgpu, as I am seeing many hardcoded values that might go through similar adjustments. If your interface already takes a config struct, you won't have to modify the function interfaces. What do you think?


allow optional assign to policy on create token modal

Overview
In the UI, after creating a token it has zero permissions. Folks then have to navigate to policies to assign it to a policy. This puts a lot of extra effort on the user and requires folks to have this knowledge. This also changed from IAM v1, where creating a token automatically had ingest permissions. Let's make this better!
Design Details
Note: sections have been cut from this issue, and will be done in #3439

Add a multi-select dropdown of current policies, that folks can add the token to on token creation
Policies should be order alphabetically
~Two sections, chef-managed and custom~

~chef managed order: Ingest, Administrator, Editors, Viewers~
~custom order: alphabetical~
~if they are filtering and there are no results in a section, the section header should be hidden~

The list of policies should display the policy name
Front-end filtering capabilities, same as the project assignment dropdown
This should be optional, so folks can still create a token without assigning a policy
If nothing is selected, the top should display None, if 1 policy is selected the top should display that policies name, if multiple are selected it should display n policies, this is the same behaviour as the project assignment dropdown
Only folks with permissions to assign tokens to policies should see this dropdown, more than likely only admins unless they have some custom policies that give more access to creating tokens and managing policies
If they are filtering and there are zero results, display No policies found.

 You don't have access to any policies that match your search.

Visual Design

Reuse the project assignment styles
Update the projects label and this new policies label to have padding-bottom: .75em; which all the other labels have
~Section headers use chef-dark-gray, and font-size 11px, and should be h3s~
~24px between the chef-managed and custom sections~
~10px between the section label and the first checkbox~

Screenshots
Closed, 0 selected

Open, 0 selected

Open, no results

i moved the section stuff to #3439, but im not gonna update the screenshots

Micro-requirements:

Upon opening token modal

shows a policy dropdown if user has permission to assign tokens to policies
does not show a policy dropdown if user does not have permission to assign tokens to policies

With no filter and no custom policies

displays 4 system policies by name
order of policies is fixed: Ingest, Administrator, Editors, Viewers

With no filter and some custom policies

displays 4 system policies plus custom policies
order of policies is system policies in fixed order (Ingest, Administrator, Editors, Viewers), then custom policies alphabetically

With filter applied

list should be reduced; system or custom policies treated the same
if list is reduced to zero entries, should see a "No policies found..." message

Create Token

is successful without selecting any policies
is successful when selecting one policies and token is added to the policy
is successful when selecting some policies and token is added to those policies
is successful when selecting all policies and token is added to those policies
with no policies selected displays "None"
with one policy selected displays the policy name
with more than one policy selected displays "n policies"


Upgrade pdf kit version

This will update FluentReports to use the latest version of PDFKit, it fixes font registration in this new version, and it standardizes the layout of Report.error() parameters.  I made a couple of fixes to the PDFKit engine as well while testing this upgrade, but I don't know when they will be reviewed and (hopefully) merged.  Testing indicates that these fixes are not necessary for the latest version of PDFKit to function though, though they do fix a couple of corner-case issues.
I will follow up with another pull request that will change the PDFKit version to an NPM Scoped package that has the rest of the fixes.  These changes include fixes for a long-running loop and a fix for a \n display issue.

Ahh, good point.  Yes, that approach sounds great to me.  I'll look into making that change now.  Thanks!

Something else that comes to mind that I probably should have mentioned in the initial message - I added an error code to the message on line 822:
Report.error("REPORTAPI: Your footer starts with printing some text, then uses an absolute move of greater than a third of the page. Please move first, then print!", '', '', 33);

This is useful for us because we want to be able to differentiate that error in our custom error-handling function.  This approach of having an Object be the final entry would support this just fine, but I realize that you may have a preference as to how this is approached.  I mean, only having 1 error with an error code could seem odd.

Hi there, Nathanael!
The above commit should fix the logging to work as you described.  I removed the error code as well - that approach didn't sit well with me so I am going to look into some other options.
Please let me know if there is anything that you would like changed with the commit, or added to this message chain.  Thank you!

Thanks, looks good!

v1.18 has been published to npm.  :grinning:


Add Mamba language training script to pytorch examples folder

After checking this repository I've found a lack of example training script for Language processing on a custom dataset. Because of that I've created an initial version of such script for the pytorch version. It allows for training custom Mamba model or fine tuning pretrained one on a custom text dataset. I've added it to the examples folder with comments in the code for better readibility.

Thank you!


Update scodec-bits to 1.1.28

Updates org.scodec:scodec-bits from 1.1.13 to 1.1.28.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scodec", artifactId = "scodec-bits" } ]

labels: library-update, semver-patch

Superseded by #333.


Widget width not adjusting

Hello,
I am using the version 1 https://almsaeedstudio.com/themes/AdminLTE/index.html.
The problem is that if you drag the widget (SALES) to the right column which has a different sizes, the graph inside will remain on the same dimensions. This means for the Sales graph, loosing half of the information.
If I change the size of the browser window the error gets fixed automatically.
Maybe this code block is the reason for it?
.chart svg, .chart canvas {
width: 100% !important;
}
I would appreciate a push for this fix. thanks.

Its not so hard to fix,
i changed the sortable function in dashboard.js to:
  $(".connectedSortable").sortable({
    placeholder: "sort-highlight",
    connectWith: ".connectedSortable",
    handle: ".box-header, .nav-tabs",
    forcePlaceholderSize: true,
    zIndex: 999999,
    update: function (event, ui) {
      area.redraw();
      donut.redraw();
      line.redraw();
    }
  });


Add support for k8s 1.13 on EKS

What kind of request is this (question/bug/enhancement/feature request):
feature request
Steps to reproduce (least amount of steps as possible):
Add support for k8s 1.13 on EKS as described on https://github.com/aws/containers-roadmap/issues/30#issuecomment-503370718

Somewhat related: https://github.com/rancher/rancher/issues/20759

Version: master-head (6/26/19)
Validated new UI option to pick 1.13 k8s version for EKS, new regions, allowed instance type values, etc. Validated amazonElasticContainerServiceConfig. Smoke tested creating various EKS clusters including older k8s versions (make sure 1.12 creates 1.12, 1.11 creates 1.11, etc).
Validated that UI shows correct k8s version for the cluster and nodes.
HTTP looks good, API looks good, compare to AWS console looks good, all checks passed. I was not able to test all regions as our account does not have access to them all (cannot fully test those) but the PR looks good to me.
I also did some spot checks to ensure AMI id's are correct for each k8s version (for regions I have access to via aws console).
Regions:

Allowed values for instances too large to fit in screenshot but looks correct.
UI does not pick latest as default, but this is a separate issue tracked in #20759

Version: master-head (6/26/19)
Validated new UI option to pick 1.13 k8s version for EKS, new regions, allowed instance type values, etc. Validated amazonElasticContainerServiceConfig. Smoke tested creating various EKS clusters including older k8s versions (make sure 1.12 creates 1.12, 1.11 creates 1.11, etc).
Validated that UI shows correct k8s version for the cluster and nodes.
HTTP looks good, API looks good, compare to AWS console looks good, all checks passed. I was not able to test all regions as our account does not have access to them all (cannot fully test those) but the PR looks good to me.
I also did some spot checks to ensure AMI id's are correct for each k8s version (for regions I have access to via aws console).
Regions:

Allowed values for instances too large to fit in screenshot but looks correct.
UI does not pick latest as default, but this is a separate issue tracked in #20759

UI issue: https://github.com/rancher/rancher/issues/21136
The UI issue did all these checks and so I copied over my comment. I carefully checked all areas of the PR.


Added more Chest protection functionalities

This will add a /chest command, with this command the player will be able to protect/deprotect chest via command and the player can make the chest public and can add friends that can opens the chest

You forgot to commit the ChestInfo.cs file since there are references to members of ChestManager class like Pending or AddPending() which don't exist now.
Please use LF style when you commit next time.

@bdfzchen2015 Please review these commits.


Tighten up fetching of overnight files

Next_Day_Actual_Gen files are being fetched at strange times. going backwards over the last few days: 7.12am, 6.25pm, 8.20pm, 1.24am, 6.28pm, 8.28am…
the files generally come out at around 4.10am, rarely more than 2 minutes afterwards.
i suspect we have a generic mechanism for fetching periodically published files. it should take retry parameters, and aim to minimise the interval between publishing and fetching without putting undue load on the file host.
in this case, we could poll at 4:10:00 and poll again with backoff intervals something like:

every 15 seconds for 12 attempts (taking us to 4:13:00)
every 60 seconds for 12 attempts (taking us to 4:30)
every 300 seconds thereafter, until the task expires

on most days the host would be hit less than half a dozen times, and we'd have data less than 15 seconds of it being published.

based on the benchmark script I believe I have a better timer now .. I'm going to merge it in

~6.5 hours to process the overnight records — given this finished at 8.47am, it must have started at ~2.15am.
i thought it couldn’t start before 4am?

also, the day should be 2023-02-24, not 2023-02-24 04:00:00+10:00.


Add mypy and pytest-cov

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@dff68b7). Click here to learn what that means.
Patch has no changes to coverable lines.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff            @@
##             master       #2   +/-   ##
=========================================
  Coverage          ?   97.39%
=========================================
  Files             ?        5
  Lines             ?     1074
  Branches          ?        0
=========================================
  Hits              ?     1046
  Misses            ?       28
  Partials          ?        0

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


Script to list all CWEs that are part of CVEs that are in c_repos

Sounds like this one is done too!


Zeropoint and zeropoint_airmass references

This PR aims to update the zeropoint references (especially the speclite ones) and to add the zeropoint_airmass references that were missing.
(I did not update Euclid as it is done in its corresponding PR #49)

Currently the zeropoint_airmass is an optional parameter.
I think we should ignore it instead of writing zeropoint_airmass=0.0 for space surveys so we can test for instance :
for surveys in available_surveys:
    if survey.zeropoint_airmass is not None:
        ...

What do you think ?

I think we should ignore it instead of writing zeropoint_airmass=0.0 for space surveys so we can test for instance :

I'm usually in favor of avoiding if statements and branching in code if possible. Could you tell us a little more of why testing this with an if statement might be useful?

Thanks for your comment @ismael-mendoza.
After some thoughts I agree with you.
In that specific case, putting 0.0 makes sense and is not just a "fill value".
So since we have values for all surveys I'll make this parameter not optional in an upcoming PR and merge this one.


Upgrade the project to django>=3.1

I was fix this

Django in requirements.txt is 3.1 but the project is actually using 3.0.7.
It's better to upgrade early to avoid headaches along the journey in future.


Refactor network/libp2p initialization

Motivation
See discussion in #4856
Initializing libp2p inside the network class, rather than inside the cli, is a first step towards moving the network into a separate thread.
Description

Refactor the Network class to use the async initialization pattern used elsewhere in the codebase (eg: BeaconNode)

await Network.init(...)
await network.close()

Initialize libp2p inside Network.init
A circular dependency was uncovered between the attnetsService and gossipsub. Resolved by adding a level of indirection rather than passing the entire network class around.

:tada: This PR is included in v1.6.0 :tada:


Download html

Is there a way to download html as string for analysis - seems like something very basic but I cannot find example in the documentation.

Download the entire html of the page you are looking at?
If so this should work:
let html = (js "return $('*').html();").ToString()
this assumes you have jquery, due the $, if you don't you would have to figure out what the javascript to get the entire dom is.

Thank you very much, that worked!

Also, is there any way to download arbitrary (.txt .xls) files? I am getting "System.InvalidOperationException: unknown error: $ is not defined" assume is it because there is no javascript on the page ...

Are you going to the page and its rending the .txt or .xls file for you? then you are trying to do the js trick above?
If thats the case, the rendering is some special browser specific thing probably so that trick won't work.
You would just need to write some code to do an http get and download the file to disk so you can open it and read it.  Check out http.fs https://github.com/relentless/Http.fs

fwiw - I had some partial success with
element "" |> elementsWithin "" |> List.map (fun x-> x.Text)

If that works then it may be creating a webpage to reprsent the txt file and you can add jquery by running this script
            var jq = document.createElement('script');
            jq.src = '//code.jquery.com/jquery-2.2.1.min.js';
            document.getElementsByTagName('head')[0].appendChild(jq);

You can also try a built in property that I just learned about:
browser.PageSource


Could not fetch table

There is cross-database table access in MSSQL, and extracting data in the analyzer results in an error
{metadata_usage.py:185} WARNING - Could not fetch table [database.shcmea.table_name]

@tianlulalala, please use Slack to get help with questions and open issues only for confirmed bugs.


Auth-upgrade - eliminate HTML Links

There are several places in SolidOS where we use HTML links rather than gotoSubject() links.  The HTML links open new web pages and thereby destroy any existing login information.  The root index.html does this with "gotto X's files".  Creating a new meeting offers you a "open newly created meeting" button which likewise jumps to a new page.  There may be more places.

@jeff-zucker with html links do you mean code like <a href? or windows.location or...?

We need to test both of the href and windows.location because it is unclear if they will work in the new auth.  This issue is specifically about links (a href) so perhaps raise a separate one about window.location - I am not aware of that being a problem but you may have found someplace that it is.
The "goto Xs files" that occurs when a user is not logged in and visits a pod root is the problem since it is a href link.  In Data Kitchen, clicking on it destroys the Data Kitchen context and opens a non-data-kitchen page .  Rather than an HTML link to the public folder,   In the data-browser as stand-alone web app, it also will not behave as expected since it uses a relative link which can only work in the server-side databrowser.
I think the way to solve this is to have a more sophisticated link generator - so that it uses an absolute URL and wraps it in the proper address of the app. So instead of a lnk to "/public/" it should be a link to https://my-data-kitchen-host;3000/?uri="https://some-other-host/public/".

I have tested using the above mentioned solution (generate a full link) and it works fine.  I am marking this solved but leaving it open until a PR is ready (not sure which branch to submit it to).


Set log path via config file

Hi,
Is it possible to set the logging path for Cerebro via the config file to something other than the default logs/application.log?

@iyuvalk The logger is configurable by editing conf/logback.xml. Hopefully that is what you are looking for, it is very flexible, and changing the path should be as simple as replacing logs/application.log as necessary.

@tlied2 is right. This is the best solution (at least for now) .
Thanks!


When will release full training code?

Hello, when the full training code will be released, as you said six months ago?

We've released the full training code for the tracker:  To train your tracker with generated images, please follow the instruction here
If you want to generate the training images by yourself, please follow the guide here.

Excellent work, thank you very much!


Bad name in the request: not a legal PLSQL identifer

Hello guys, relatively new to python. Met with this error while trying to use request POST to extra information. Header and data are directly copied and paste from using google chrome when the POST is made. Couldn't identify any wrong with the formData. Am i missing out on something?

import requests

formData = {
'acadsem':'2017_1',
'r_course_yr':'ACC%3BGB%3B2%3BF',
' r_subj_code':'Enter+Keywords+or+Course+Code',
'boption':'CLoad',
'semester':'1',
'acadsem':'2017_1'
}
url = "'www.example.com/"
response  = requests.post(url, data = formData)
print(response.content)

You're passing urlencoded form data to our data parameter which will in turn urlencode it. You will want to decode r_course_yr's value.
In the future, please use StackOverflow for questions of this type.


'@' mentions for users does not work

Describe the bug
When I use @user.name, it comes out as plain text in the JIRA UI.  When I fetch an issue with an At mentioned member, I see the user prefixed with /~, However when I try to also put in /~user.name it comes out as plain text in the UI and \/~user.name in my jira-cli.
Please provide following details

JiraCLI Version:

(Version="v1.0.0", GitCommit="", CommitDate="", GoVersion="go1.18.3", Compiler="gc", Platform="darwin/arm64")

Are you using Jira cloud or on-premise jira server? Also mention the version for on-premise installation.

v8.13.20#813020

What operating system are you using? Also mention version.

macOS Montery 12.4

What terminal are you using? Also mention version.

MacOS Terminal w/ `zsh`

To Reproduce
Steps to reproduce the behavior:

jira issue create
try to @user.name` mention someone in the description or comments
notice that the user is not @ mentioned and the @user.name is plain text

Expected behavior
@ mention binds to a user and notifies them as in the JIRA UI.

Hi @integrii, on-premises installation use jira api v2 and it expects the data in this format [~displayname]. For example, the input below should render fine in Jira UI.
Please reach out to [~ankit] for clarification!

Note that you'll need to use display name if its available. If you are unsure about the display name you can check it from jira issue assign command. The string inside the parenthesis ( is a display name.

But yeah there seem to be some problem with escaping, I will check that. However tagging a user should work for valid input.

Hello. I'm having the same issue. I'm not sure if it's because the username has spaces. I've tried two versions of this (with quotes and without) and still no luck. (This is a cloud Jira installation btw)

Here's my version info:
(Version="1.1.0", GitCommit="3b93e147eac468ad985bdece27469153b4bb2814", CommitDate="2022-08-14T08:10:40+00:00", GoVersion="go1.18.3", Compiler="gc", Platform="linux/amd64")
Let me know if you need anything else.
Thanks!

I tried to put [~displayname] into a comment, but it is turned into  \[](\~displayname\) when I view it via "jira issue view". On the web page, it is displayed as \[\~displayname\] when viewed as text.
$ jira version
(Version="1.4.0", GitCommit="eb842e18014303a575fde8e19508b3c7c13982c5", CommitDate="2023-05-09T07:09:45+00:00", GoVersion="go1.19.4", Compiler="gc", Platform="darwin/amd64")

SERVER INFO
-----------

Version:         8.20.15
Build Number:    820015
Deployment Type: Server
Default Locale:```

I have the same problem !
1 - Jira issue assign does not show the user name, only the full display name
2 - Enviando [~full display name] It appears literally like this in Jira

I'm missing something ?

It's seems on long ongoing issue, I've the same problem here
$ jira version
(Version="1.5.1", GitCommit="0e0f82d52ef5a775d2cc662fbe38d9732b9b5c59", CommitDate="2024-01-20T10:48:06+00:00", GoVersion="go1.21.5", Compiler="gc", Platform="darwin/arm64")

Cloud version


chore(master): release 1.0.0

:robot: I have created a release beep boop
1.0.0 (2024-11-30)
Features

@ConstructionMock (71028cb7) (e060d2f)
@StaticMock (71028cb7) (e060d2f)

Bug Fixes

ConstructionMockHandler mockInitializer method search (dc4097c)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

1.0.0
:sunflower:


mission:reset mission after finished

vehicle could reset mission after mission finished, change the flight mode to others and back to mission mode, no need disarm, the mission will reset.

Great! This looks like a safe and simple way to do it.

I realize this is old and closed, but after a recent conversation with @jinchengde and after thinking about this a lot, I think this proposed change makes a lot of sense.  @jinchengde I recommend you rebase and reopen this PR.  I can't comment intelligently on the code, but the functionality makes sense.


Updated to work with Turbolinks 5

Changed the headers to support Turbolink. To be more specific on all redirects adding "Turbolinks-Location".

Any reason this can't be merged?

I tried this and it didn't work as I expected it when I had an action that returned a RedirectResult. The reason was that the turbolinks location header needs to be added at the last request(i.e. the GET request, after the REDIRECT) I am working on getting this to work

At the end, it resulted in something different, so I created my own implementation: https://github.com/dmorganb/TurboLinks/blob/master/src/Turbolinks/TurbolinksMiddleware.cs


Assert TASK_WORKSPACE_DIRECTORY is included in env_to_inherit

What
Assert TASK_WORKSPACE_DIRECTORY is included in env_to_inherit.
Currently, when env_to_inherit is None (by default), TASK_WORKSPACE_DIRECTORY is automatically added.
However, when user specifies some values for it, there is no guarantee that TASK_WORKSPACE_DIRECTORY is included.
Since TASK_WORKSPACE_DIRECTORY is essential, it should be asserted.

Deprecated after #39 is accepted.

The specific environment variable TASK_WORKSPACE_DIRECTORY is no longer required in kannon library.
Instead, users are responsible to inheriting required env vars via env_to_inherit if they use env vars in some ways.


fix typo in docs/language/operators/join.md

fix typo

@nwt you'll need to merge this

Thanks, @henridf!


[MacOS] When used native tabs, title bar style changes

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.65.2
OS Version: macOS Monterey 12.3

Steps to Reproduce:

When I set the setting   window.nativeTabs to true, the title bar style changes. Even thought I set the titleBarStyle to custom, it does not get updated.

A (when native tabs is true):

B (when false):

I basically want it to show like B even though I set the nativeTabs to true.
(In some themes, it looks even more weirder)

This is expected and described in the setting description:

Enables macOS Sierra window tabs. Note that changes require a full restart to apply and that native tabs will disable a custom title bar style if configured.

This is expected and described in the setting description:

Enables macOS Sierra window tabs. Note that changes require a full restart to apply and that native tabs will disable a custom title bar style if configured.

I see but isn't there any way to enable custom title bar again? Even a workaround would be amazing.

cc @bpasero in case anything has changed since this was disabled.


Optimize_Images_for_Better_Performance

We need to optimize images on our website to improve loading speed and overall performance. This includes compressing existing images and converting them to more efficient formats like WebP.
Compress Images:
Use tools like TinyPNG or ImageOptim to reduce the file size of current images without sacrificing quality.
Convert to WebP Format:
Change image formats from JPEG/PNG to WebP where appropriate to enhance performance.

@Vimall03

@smog-root, There are some places where the images load dynamically from the server. Please make sure that feature works properly after your implementation

@smog-root I will assign the labels during the PR


Remove simplejson as a dependency for python 2.6+

Python 2.6 introduced the json module into the core language and so simplejson is only required in python versions prior to python 2.6. This fix ensures that pip will only install simplejson if the version of python being run is less than 2.6. This stops the un-needed installation of a library that won't ever actually get used by authy if a newer version of python is running.

Looks good, thanks for the PR and for catching the unused django import!


a 'no longer running' job reports as 'running' before and after a job cancel

I set up a job to run update the_geom. Everything looked good in the POST, and checking on the status:
peschbacher:Desktop $ curl -X GET "http://envisage.cartodb.com/api/v2/sql/job/19b90278-9391-42f5-8e3b-de6c1b12fb98?api_key=abcdefghijklmnopqrstuvwxyz"
{"job_id":"19b90278-9391-42f5-8e3b-de6c1b12fb98","user":"envisage","status":"running","query":"UPDATE zillow_zhvi_2015_2016 SET the_geom = cdb_observatory.OBS_GetBoundaryById(zcta5,'\"us.census.tiger\".zcta5')","created_at":"2016-05-03T16:32:10.915Z","updated_at":"2016-05-03T16:32:59.967Z"}

The job ran for much longer that I expected, so I decided cancel it.  Doing so gives "Query is not running currently":
peschbacher:Desktop $ curl -X DELETE "http://envisage.cartodb.com/api/v2/sql/job/19b90278-9391-42f5-8e3b-de6c1b12fb98?api_key=abcdefghijklmnopqrstuvwxyz"
{"error":["Query is not running currently"]}

But getting the status again gives:
peschbacher:Desktop $ curl -X GET "http://envisage.cartodb.com/api/v2/sql/job/19b90278-9391-42f5-8e3b-de6c1b12fb98?api_key=abcdefghijklmnopqrstuvwxyz"
{"job_id":"19b90278-9391-42f5-8e3b-de6c1b12fb98","user":"envisage","status":"running","query":"UPDATE zillow_zhvi_2015_2016 SET the_geom = cdb_observatory.OBS_GetBoundaryById(zcta5,'\"us.census.tiger\".zcta5')","created_at":"2016-05-03T16:32:10.915Z","updated_at":"2016-05-03T16:32:59.967Z"}

Which says that the query is still running.

Thanks @ohasselblad for the detailed description.
Actually there are two issues here, first one is why a job status is still running in spite of isn't running in Postgres, and second one don't allow to cancel a job even though is not running on Postgres but its status is.
The first one is really hard to debug, because it depends on connections, drivers and so on (in production). I'm going to research if is something unsual (it should be), or not. Anyway, I'm going to allow to cancel job regardless if the job is running on Postgres, making sure is going to be cancelled.


fix tracer, isolate termination and v8::Locker on callbacks

There was more to do in the code than I had expected.
The v8::Locker was causing issues with recursive calls between Go and JavaScript, using v8::Unlocker solved this. Thanks be to God for the showing me how to solve those issues.
There is more work to do on the Isolate termination.

This has solved all the issues I could find in locks caused on termination. There is now a benchmark which passes on a 5m run (executing up to 2000 isolates at a time.)


why deploy with python？

May i ask why you deploy this model with python rather than c++?
It seems like deploying with c++ is more suitable for realtime control.

I trained the model with too many configurations, which is not flexible enough when loading the model in C++ and configurations.
Probably because I'm not familiar enough with C++ to match all possible configurations I used during training.

I personally don't think there be much computation time difference between PyTorch with CUDA and C++.


Line 36 - v0.14-cü versiyadan başlayaraq,
Line 39 - Hadisə Pulinqi
Line 54 - Aşağıdakı işləməyəcək.


Delete Contacts and RawContacts using a WHERE clause

From this discussion with @amoshalava, https://github.com/vestrel00/contacts-android/discussions/157#discussioncomment-1892601, I realized that it might be useful for consumers to be able to delete Contacts or RawContacts without having to fetch them first.
Problem
Currently, the only way to delete Contacts or RawContacts is...
Contacts(context)
    .delete()
    .contacts(contacts)
    .rawContacts(rawContacts)
    .commit()

The above code snippet will delete the given contacts and rawContacts, which have been retrieved using Query or BroadQuery. This requires two separate queries to perform the deletion!
Solution
We can simplify and optimize deletion to,
Contacts(context)
    .delete()
    .contactsWhere { DisplayNamePrimary startsWith "a" }
    .rawContactsWhere { Id `in` setOf(1, 2, 3) }
    .commit()

The above code snippet should delete the Contacts with display name  starting with "a" and RawContacts with ID of either 1, 2, or 3.
This comes in very handy when attempting to delete RawContacts based on a certain criteria.
So, instead of,
fun deleteAllRawContactsThatHasCompanyNameEqualTo(context: Context, companyName: String) {
    val contactsApi = Contacts(context)

    val rawContactsToDelete = contactsApi
        .query()
        .include(Fields.Organization.Company)
        .where { Organization.Company equalToIgnoreCase companyName }
        .find()
        .flatMap { it.rawContacts }
        .filter {
            it.organization?.company?.equals(companyName, ignoreCase = true) == true
        }

    contactsApi
        .delete()
        .rawContacts(rawContactsToDelete)
        .commit()
}

It would be simplified to,
fun deleteAllRawContactsThatHasCompanyNameEqualTo(context: Context, companyName: String) {
    Contacts(context)
        .delete()
        .rawContactsWhereData { Organization.Company equalToIgnoreCase companyName }
        .commit()
}

This has the following benefits,

Less code.
Faster and more memory efficient.
No duplicate filter logic required.

This is included in release https://github.com/vestrel00/contacts-android/releases/tag/0.2.2


Add files for Universidad Yacambu.

Name:
Universidad Yacambu
Website:
https://www.uny.edu.ve/
Emails
@micorreo.uny.edu.ve
Used by:
Students
Level:
University

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

@yqtronto Thank you for your patience while waiting for a review and processing your request. Pull request merged.
I corrected the pull request to include a parent domain uny.edu.ve only to the trusted list. All subdomains of the domain are included in the trusted list by default in this case.


Difference in the paper and code implementation about agents encoding

Hi
First of all, thank you for sharing the code, which is very helpful to the community!
When I'm reading your code, I found a major difference between the code implementation and the paper: the encoding process of surrounding agents.

the paper
Both raw feature of vehicles and pedestrians are s_t^i which including an indicator I^i with value 1 for a pedestrian and 0 for a vehicle

And you use the same GRU to encode both vehicles and pedestrians
So there are 3 GRUs in total: one for lane nodes, one for target agent, and one for surrounding agents

but the code implementation is different

Code
There is no indicator in the raw feature of vehicles and pedestrians
And you use 2 independent GRUs to encode vehicles and pedestrians:

https://github.com/nachiket92/PGP/blob/eb24e1904d4eae15200a02089992718aeb7a8149/models/encoders/pgp_encoder.py#L47-L51
then cat them together:
https://github.com/nachiket92/PGP/blob/eb24e1904d4eae15200a02089992718aeb7a8149/models/encoders/pgp_encoder.py#L119
So there are 4 GRUs in total: one for lane nodes, one for target agent,  one for surrounding vehicles and one for surrounding pedestrians

They are two different encoding methods, have you tried both? And what's the reason for choosing the latter?
Many greetings

Thanks for bringing this up. This was an oversight on my part while re-implementing. For what it's worth, the results are practically the same. This is what I got.
With separate encoders for surrounding pedestrians and vehicles. Use main branch and trained weights to reproduce.
MinADE_5:  1.30
MinADE_10:  0.97
MissRate_5:  0.54
MissRate_10:  0.35
MinFDE_1:  7.50
Off-road rate:  0.03
With common encoder and indicator feature, as per the paper. Use branch nbr_enc_issue1 and trained weights to reproduce.
MinADE_5:  1.30
MinADE_10:  0.97
MissRate_5:  0.54
MissRate_10:  0.35
MinFDE_1:  7.34
Off-road rate:  0.02
Since the common encoder model achieves comparable performance with fewer parameters and matches the paper, I'll merge the branch shortly.

Are these weights pre-trained using the ground truth traversal for some epochs or just trained from scratch with ramdom traversals?

Both trained from scratch. Turns out this works just fine, and also simplifies training.

Thanks for the quick response.

I'm merging the PR and closing the issue. Thanks again!


Handle commands in replies without changing message.content

Pull request summary

At the moment, the message that is stored in a commands context will be changed. With this PR, the bug with replies will be fixed without changing the message itself.
Checklist

[x] If code changes were made then they have been tested.

[ ] I have updated the documentation to reflect the changes.
[x] I have updated the changelog with a quick recap of my changes.

[x] This PR fixes an issue.
[ ] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)

My last commit is after running through black, as I noticed the fail. So at that commit the lint check shoulg pass.


Add Mimir Integration

What new integration do you require?
we use grafana mimir to store and query metrics.
Having an integration for mimir with Playbook will help us add more context during investigation of an issue.
Describe what all querying / actions you need to perform with this integration
Do your need this integration to start using Playbooks or expand your usage?
Additional context
Add any other context about the new integration here.
Thank you for your new integration request!

PR -> https://github.com/DrDroidLab/PlayBooks/pull/118


GetPixel bug

Settings.cs#L365
Take the X as example,
 int xPx = (int)((locationX - axis[0]) * xAxisScale);
should be
 int xPx = (int)((locationX - axis[0]) * xAxisScale)+ dataOrigin.X;
？
This fix cause new problem when render new graph. Sad!

Hi @plumforest. It seems you found that the GetPixel function is working well, and that changing it causes graphs to malfunction. Note that all cookbook examples produce their graphs without having to interact with the settings module: https://github.com/swharden/ScottPlot/blob/master/doc/cookbook/
In response to this ticket I added inline comments to clarify what these functions do and what tasks they were designed for:
https://github.com/swharden/ScottPlot/blob/8e6b8fac9e735733f71b34194df8101ab5ce43f3/src/ScottPlot/Settings.cs#L365-L372
https://github.com/swharden/ScottPlot/blob/8e6b8fac9e735733f71b34194df8101ab5ce43f3/src/ScottPlot/Settings.cs#L374-L381


Need anatomy data

In defining a clinical pathway, one of the nodes is cell type / tissue.  This can more generically be called "anatomy" as it is in biolink.
We need a source for some kind of information like this.  Maybe we can use chemotext?  I'm not sure we can get to mesh terms....
We also need to be able to make links between anatomy and pathways, and between anatomy and phenotype.
Note that the UBERON ontology does contain a lot of interesting terms, but I don't know what it's used for...

@stevencox points to http://het.io/
It contains anatomy nodes.  They are linked to genes and diseases, which is the closest thing yet to what we want.  Maybe if we had pathway directly to phenotype (possible?) then we could connect gene-anatomy-disease?


Fix types and export react provider

Exports the provider which is not currently possible to import
Adds the types to the exports map in the package.json so that typescript is allowed to resolve the types (exports maps overwrites the "types" property in package.json)

Fixes error:

There are types at<EMAIL_ADDRESS>but this result could not be resolved when respecting package.json "exports". The @rwh/react-keystrokes' library may need to update its package.json or typings.

Ah thanks you for catching and fixing this @bradennapier. Much appreciated. I'll roll out a patch release.

Ok, released as v1.5.1. Thanks again!


[DOC] Fix miscellaneous doc typos

Why are the changes needed?

Some spelling & grammar format fix.
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

Codecov Report

Merging #1347 (db3fa96) into master (f9b933a) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1347      +/-   ##
============================================
- Coverage     79.03%   79.00%   -0.03%
  Complexity      110      110
============================================
  Files           179      179
  Lines          7494     7494
  Branches        917      917
============================================
- Hits           5923     5921       -2
  Misses         1082     1082
- Partials        489      491       +2

Impacted Files
Coverage Δ

...ain/scala/org/apache/kyuubi/engine/EngineRef.scala
78.49% <0.00%> (-1.08%)
:arrow_down:

...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala
89.89% <0.00%> (-1.02%)
:arrow_down:

Continue to review full report at Codecov.

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

thanks, merging to master


Set up parallel dev cluster

Once Illume v2 is in production, use the old network and some spare resources to set up a dev cluster to test changes before pushing them

Implemented; follow the how-to guide in the readme to set it up.


Implement Teleportation stones

TODO:

[x] Spawn teleportation stones
[x] Stones' display name
[x] Open inventory when interacting with a teleportation stone
[x] Use items representing each available teleportation stone
[x] Prevent any interaction with the inventory
[x] Teleport to the corresponding teleportation stone when clicking on an item

Nice, the player should have his unlocked stones in his state so that he can't teleport to the undiscovered ones

Yep :thumbups: I think after merging we can open an issue for that do implement it in a followup pull request

Rebased in #230


[New Hotkey] A Hotkey for a manual typing

Introduction to a New Feature
The Hotkey default combination, for opening Translate Man: CTRL + Q

Which would open Translate Man translator
and you could type in the word for translation.

Why in need of such Feature?
This is the most useful while listening to a video or an audio.
As this Hotkey will allow you to quickly access translator, and type in a word for clarified translation. (That you didn't understood while listening to an audio or a video)
This is one of the crucial features, that keeps me stay with a Chrome browser.
Additional functionality for this Feature
If the text is selected and CTRL + Q  is pressed:

Translate Man would open up
And pastes the selected content into the Translate Man

done use ctrl + q


Release 2.0.1

Questions
Answers

Description?
Release 2.0.1.

Type?
improvement

Hello @PierreRambaud :)
I can't perform the upgrade on this module. could you check please ?

Thanks!

@florine2623 Should be better right now!

Hello @PierreRambaud ,
Thanks for the PR, LGTM !
QA ✅

Thanks @PierreRambaud & @florine2623


Add questions through discord?

Would be cool to add questions and stuff through discord. we would need an approval process so we don't end up with weird stuff.

Starting on this one


Pagination on all() or list()

Hey All,
Thanks for the great work on the project!  Keep it up!
I was wondering what the preferred method to implement paging is.
It seems like Couchdb (the HTTP/API supports paging via the "startkey" and "count" parameters.  I wonder if these could be added as optional arguments on either all() or list().
Cheers,
-Rob

it's supported now! yay!
db.all({limit: 100}, function(err, result) { ... });

@nothingmn @anton-107 This is fixed in<EMAIL_ADDRESS>

How exactly would we go about pagination with cradle? I can't completely figure out how to implement the startkey and nextkey in all that. Do we just call db.all({limit: 30}, function(err, result{...}); and the previous and next links will magically appear?

ok I did a little digging in the code and figured that we could use things like start_key and limit to implement pagination. We have to implement it ourselves by playing with the start_key, next_key and limit (i.e: db.all({limit: 30, start_key: NEXT_KEY_STORED}, function(err, result){...}); etc...) That's how i'm approaching the problem.
If it doesn't seem fine, or there might a better solution please let me know.

@mabounassif Yup. We try not to abstract away from pure CouchDB APIs too much.


Add manual mode support

Creating time entries after the event.
Show icon on supported pages. On hover show two choices ("Timer"/"Add")
Pilot project Google Calendar and Wakatime

Doesn't show accurate info. Shows only time spent coding.


No support for features in DeviceDescriptor

Hi!
I was attempting to use some of the WebGPU features (specifically WGPUFeatureName_Float32Filterable) when I noticed that there is currently no support for any additional feature requests in the device implementation. Is that something that you have added elsewhere, or should I put together a PR to add support for them?
Thanks!

@JeffreyPalmer Currently we lack basic api to query features in adapter.jl file, choose device, and request feature in device.jl.
Choosing device is a separate issue here https://github.com/JuliaWGPU/WGPUgfx.jl/issues/29.  (Should have been raised in WGPUCore)
Our approach so far has been need-basis. We are filling API as we need them. We would definitely want to have this and I will add that to the feature tracking list here https://github.com/orgs/JuliaWGPU/projects/1. If you have bandwidth to work on it PR would be great.

Thanks for the feedback. I'm relatively new to Julia FFI stuff, but I think I can probably solve my immediate need and go from there. I'll take a look. 🙏

Sorry I ghosted this conversation. I ended up using OpenGL for my immediate needs, due to the stability of the package, but I'm still very interested in this work as it moves forward. 🙏
Please feel free to close this issue if you'd like.

There was 3-5 months gap in our contributions to JuliaWGPU (I was busy with my startup). Since we are lagging with upstream WGPU version, We will start working on WGPUNative updates soon anyways. It will then be ripe time to address this issue too. Until then lets keep it open. Hopefully it can be addressed in 1-2 weeks. Apologies for keeping you wait on it.


Add support for OEM and other minor improvements

Found some issues with this, rework coming soon.

LGTM after small nits and squash.

Squashed


Lazyloading hidden and position fixed elements

We had two issues implementing lazysizes in our site:

We have position: fixed background  tags that are contained by a parent with overflow: hidden. Lazysizes thinks these are always visible because their offsetTop is always zero, despite not actually being visible for several thousands pixels down the page. (FYI, we originally had CSS background images, but ran into several issue requiring us to change to  tags)

We have some other  elements that aren't always visible, and get dynamically shown with JS. Lazysizes doesn't load these hidden images until their shown by our JS, which is too late.

I've gotten around both of these issue by writing a small library called lazyload-children. It allows you to watch for the visibility of a parent element, and when it gets close enough to the viewport, it will load the specified children.
Add data-lazyload-children attribute on the parent container to watch, and the value is a CSS selector matching the children to be lazyloaded.

Dynamic images example

These images were lazyloaded once their parent element was close to the viewport

Is there any better solutions inside lazySizes to handle these scenarios? If not, should I formalise the plugin and submit a PR?

About 1:

FYI, we originally had CSS background images, but ran into several issue requiring us to change to  tags

I assume perf problems while scrolling, especially in Chrome?
lazysizes should detect here, that the image is not really in view, but fals-y assumes later that it is soon in view. Which means the images should not be loaded, while the window is still loading after that, lazysizes will load them in a queue of max 3 images at the same time. If these images are loaded earlier, it is a bug.
About 2:
Yes, if you hide images or the container of them via display: none;, you remove them from the render tree and lazysizes can't detect where there are. Another possible solution is to use visibility: hidden; in combination with position: absolute; and/or height: 0; overflow: hidden;. This also gives you the possibility to easily animate them via CSS transitions.
All this said: Yes, you script is a valuable workaround/fix for those kind of problems. If you want full control, you can also host them yourself and just add a link to my repository. If you don't need/want full control over the plugin you can request a PR with the full code into the master branch.

I assume perf problems while scrolling, especially in Chrome?

Yes that, but mainly because background-attachment: fixed doesn't work on mobile. And much harder to do LQIP.

lazysizes should detect here, that the image is not really in view, but fals-y assumes later that it is soon in view. Which means the images should not be loaded, while the window is still loading after that, lazysizes will load them in a queue of max 3 images at the same time. If these images are loaded earlier, it is a bug.

All fixed  elements were being loaded upfront (like they weren't lazy at all). Not sure how lazysizes does visibility calculation, but if it's calculated from the .lazyload element's offsetTop/getBoundingClientRect().top, that's always 0 for fixed elements (assuming you've got top: 0 in your CSS, which I do).

Yes, if you hide images or the container of them via display: none;, you remove them from the render tree and lazysizes can't detect where there are. Another possible solution is to use visibility: hidden; in combination with position: absolute; and/or height: 0; overflow: hidden;. This also gives you the possibility to easily animate them via CSS transitions.

Yes, was considering tweaking our code so that they weren't display: none, but realised my original fix for the fixed backgrounds would solve this too!
My code will need a bit of work to make it an actual plugin because it doesn't use/respect any of lazySizes config and does it's own visibility detection. I've made a gist if you want to check it out.

About your code:
(function(){
	'use strict';
	var slice = [].slice;
	document.addEventListener('lazybeforeunveil', function(e){
		var children = e.target.getAttribute('data-lazyload-children');
		if(children){
			slice.call(e.target.querySelectorAll(children)).forEach(lazySizes.loader.unveil);
		}
	});
})();

Should work with:

Dynamic images example

These images were lazyloaded once their parent element was close to the viewport


Question about multi-output GPR

Hi, everyone,
I'm working to find a way for multi-output GP with multi-fidelity model. I wonder if GPyMultiOutputWrapper in emukit can be used to solve it? If then, how can I start from the original Nonlinear multi-fidelity model (NARGP) ?
I just got confused with GPyMultiOutputWrapper used in Linear multi-fidelity modeling notebook. Is that just a multi-output(or multi-task) GP to model the correlation between the two fidelities(tasks)? That seems to be different from the general coregionalisation model?

Hi, apaleyes~ Thank you for your answers. It seems that your multi-output for multi-fidelity in Emukit is a specifically pre-defined correlation between two fidelities with some hyperparameters, which may not be suitable for a commonly used multi-output modelling.
Also, I wonder if a commonly used multi-output regression method like in GPy https://nbviewer.org/github/SheffieldML/notebook/blob/master/GPy/coregionalized_regression_tutorial.ipynb, GPflow https://gpflow.github.io/GPflow/2.7.1/notebooks/advanced/multioutput.html and https://docs.gpytorch.ai/en/latest/examples/03_Multitask_Exact_GPs/Multitask_GP_Regression.html in your schedule?

Unfortunately we don't have any further extensions of our multi-fidelity package planned at the moment. Although PRs are always welcome!

Hi there,
I have another question that fits under this title:
Is there a way to use a "GPyMultiOutputWrapper" model (that wrapped a GPy.models.MultioutputGP) for an "Experimental Design"?
It would for example suggest points where the combined uncertainty is maximum?
The wrapper specifies that "X inputs should have the corresponding output index as the last column in the array". But in the case of the Emukit Experimental Design and BO the X that is passed to the model is defined by the parameter space correct?
If you could point me towards a way to make it work that would be great!
Thank you!

In theory there is nothing that prevents you from using GPyMultiOutputWrapper for experimental design. This wrapper exists to support multi-fidelity use cases, so it all depends on the nature of your data. "the X that is passed to the model is defined by the parameter space correct"  - that is correct and defined by your objective. So if you are dealing with let's say two simulations, one is a more precise version of the other, then you should be able to use GPyMultiOutputWrapper  with it.

@apaleyes 2, Thank you so much for taking the time to reply. Below is my toy example trying to leverage GPyMultiOutputWrapper for experimental design.
I will let you look into it and tell me how i'm using it wrong but I feel like the issue is that the wrapped model is expecting [one dimensional input + the index referring to one of the 2 outputs], but the parameter space is only "pushing" the value of the one dimension input. Ultimately we would want the experimental design loop to probe both outputs for the given input and combine somehow the uncertainty of its prediction on both outputs.
Here is the code, your help would be greatly appreciated:
#begining of code is heavily inspired from GPY tutorial: https://nbviewer.org/github/SheffieldML/notebook/blob/master/GPy/coregionalized_regression_tutorial.ipynb
import GPy
import numpy as np
import matplotlib.pyplot as plt
Setuping the GPy moodel
1 input dimension
2 outputs
#This functions generate data corresponding to two outputs
f_output1 = lambda x: 4. * np.cos(x/5.) - .4x - 35. + np.random.rand(x.size)[:,None] * 2.
f_output2 = lambda x: 6. * np.cos(x/5.) + .2x + 35. + np.random.rand(x.size)[:,None] * 8.
#{X,Y} training set for each output
X1 = np.random.rand(100)[:,None]; X1=X175
X2 = np.random.rand(100)[:,None]; X2=X270 + 30
Y1 = f_output1(X1)
Y2 = f_output2(X2)
#{X,Y} test set for each output
Xt1 = np.random.rand(100)[:,None]*100
Xt2 = np.random.rand(100)[:,None]*100
Yt1 = f_output1(Xt1)
Yt2 = f_output2(Xt2)
#let's create seperate models for each output (the point to this is to be able to easily use tailored kernels to predict each outputs)
K = GPy.kern.Matern32(1)
m1 = GPy.models.GPRegression(X1,Y1,kernel=K.copy())
m1.optimize()
m2 = GPy.models.GPRegression(X2,Y2,kernel=K.copy())
m2.optimize()
fig = plt.figure(figsize=(12,8))
xlim = (0,100)#; ylim = (0,50)
#Output 1
ax1 = fig.add_subplot(211)
m1.plot(plot_limits=xlim,ax=ax1)
ax1.plot(Xt1[:,:1],Yt1,'rx',mew=1.5)
ax1.set_title('Output 1')
#Output 2
ax2 = fig.add_subplot(212)
m2.plot(plot_limits=xlim,ax=ax2)
ax2.plot(Xt2[:,:1],Yt2,'rx',mew=1.5)
ax2.set_title('Output 2')
#now we will wrap both models into one multiouput model
m3=GPy.models.MultioutputGP(X_list=[m1.X,m2.X],
Y_list=[m1.Y,m2.Y],
kernel_list=[m1.kern,m2.kern],
likelihood_list=[m1.likelihood,m2.likelihood])
Experimental design to efficiently explore the parameter space and decrease the overall model uncertainty on its prediction
#1 input dimension
from emukit.core import ParameterSpace, ContinuousParameter
parameter_space = ParameterSpace([ContinuousParameter('x1', 0, 100)])
#Wrapping the multioupt GPy model
from emukit.model_wrappers import GPyMultiOutputWrapper
model_emukit = GPyMultiOutputWrapper(gpy_model=m3,n_outputs=2,n_optimization_restarts=10)
model_emukit.optimize()
#probing the model
from emukit.experimental_design.acquisitions import ModelVariance
model_variance = ModelVariance(model = model_emukit)
from emukit.experimental_design import ExperimentalDesignLoop
expdesign_loop = ExperimentalDesignLoop(model = model_emukit,
space = parameter_space,
acquisition = model_variance,
batch_size = 5)
results=None
next_points=expdesign_loop.get_next_points(results)

Ultimately we would want the experimental design loop to probe both outputs for the given input and combine somehow the uncertainty of its prediction on both outputs.

I guess this is where you are going wrong. The way MF works in Emukit is that at every step it chooses which fidelity to probe. And the main idea is to save time/money/effort running high fidelity function where low (and cheaper) fidelity would do. What you are describing is interesting, and can probably be useful when one wants to quantify the gap between the fidelities, but we haven't explored this in Emukit yet. It's just a matter of writing an acquisition function that can do those things though, if you feel like doing it.
Code-wise you are exactly right, parameter space only defines one parameter, input variable itself, but shall also contain a parameter that informs the model about the fidelity level.


Multi schema support for Migrate

Within the multiSchema preview feature, the migrate and db push commands should be aware of multiple schemas and diff accordingly.

We need some TS tests in prisma/prisma repo.

I believe multiSchema support for postgres and sqlserver is already included in the migration-engine shipped with<EMAIL_ADDRESS>The TS tests mentioned above have also been merged already. Am I missing something here? Can we close this issue? @tomhoule @Jolg42


Week 7 Requirements

Update AboutUs.md
Update User Guide descriptions for methods add  and  delete with new corresponding tags of role, salary and hours worked.
Update User Guide terminology of persons to employees.
Add Use case for adding tags to a specific employee and adding tags to a group of employees.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ba53b8c). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #31   +/-   ##
=========================================
  Coverage          ?   72.15%
  Complexity        ?      399
=========================================
  Files             ?       70
  Lines             ?     1232
  Branches          ?      125
=========================================
  Hits              ?      889
  Misses            ?      311
  Partials          ?       32

Continue to review full report at Codecov.

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


:bug: Syncer: remove upstream finalizer when the resource is deleted downstream.

Summary
When a resource is deleted downstream, the status syncer will remove the finalizer from the upstream resource to better reflect the current state. (This could be triggered by either a user or process deleting the downstream resource)

Includes some refactoring of the "EnsureUpstreamFinalizerRemoved" function, as it has been split into two different funcs.

Additional checks in tests to avoid flakyness.

Related issue(s)
Related to https://github.com/kcp-dev/kcp/issues/1787

/hold

after discussion we don't want to go into that direction, this issue has a better fix in https://github.com/kcp-dev/kcp/pull/2096


Moon failed to copy videos to S3 Minio local bucket

Problem: after recording video it couldn't be copied to the bucket.
How it could be solved?
Moon
Deployed moon version 1.9.4 with necessary credentials:
...
---
apiVersion: v1
kind: Secret
metadata:
  name: credentials
  namespace: moon
stringData:
  s3.accessKey: "minioadmin"
  s3.secretKey: "minioadmin"

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: config
  namespace: moon
data:
  service.json: |
    {
      "kernelCaps": [ "SYS_ADMIN" ],
      "s3": {
        "endpoint": "http://video-minio.{{cluster-domain}}",
        "bucketName": "moon-test",
        "version": "s3v4"
      },
      "images": {
        "defender": {
          "image": "{{docker-registry}}/aerokube/defender:1.9.4"
        },
        "logger": {
          "image": "{{docker-registry}}/aerokube/logger:1.9.4"
        },
        "videoRecorder": {
          "image": "{{docker-registry}}/aerokube/moon-video-recorder:1.9.4"
        }
      }
    }
...

S3 was initialised correctly:
2022/01/18 15:12:39 [INIT] [Will add kernel capability "SYS_ADMIN" to every browser pod]
2022/01/18 15:12:39 [INIT] [Will upload data to S3 storage with the following parameters: endpoint = http://video-minio.<local-subdomains>, bucketName = moon-test, version = s3v4]

Logs

logger

Added `s3` successfully.
mc: <ERROR> Unable to write to one or more targets. Bucket `moon-test` does not exist.

video-recorder

Command [ffmpeg -f pulse -i default -y -nostdin -f x11grab -draw_mouse 0 -video_size 1920x1080 -r 20 -i localhost:99 -codec:v mpeg4 -pix_fmt yuv420p -filter:v pad=ceil(iw/2)*2:ceil(ih/2)*2 /tmp/ae9316a7-02be-44af-b3bb-47e3acd2bbf5.mp4] finished with status: exit status 255
`/tmp/ae9316a7-02be-44af-b3bb-47e3acd2bbf5.mp4` -> `s3/moon-test/chrome-96-0-6c9e940f-88cd-412f-9cf6-197c19964793/ae9316a7-02be-44af-b3bb-47e3acd2bbf5.mp4`
Total: 0 B, Transferred: 0 B, Speed: 0 B/s
mc: <ERROR> Failed to copy `/tmp/ae9316a7-02be-44af-b3bb-47e3acd2bbf5.mp4`. Bucket `moon-test` does not exist.
Command [mc --quiet cp /tmp/ae9316a7-02be-44af-b3bb-47e3acd2bbf5.mp4 s3/moon-test/chrome-96-0-6c9e940f-88cd-412f-9cf6-197c19964793/ae9316a7-02be-44af-b3bb-47e3acd2bbf5.mp4] finished with status: exit status 1

Minio
minio.yml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: video-minio
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 100Mi

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: video-minio
spec:
  selector:
    matchLabels:
      app: video-minio
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: video-minio
    spec:
      volumes:
        - name: data
          persistentVolumeClaim:
            claimName: video-minio
      containers:
        - name: minio
          volumeMounts:
            - name: data
              mountPath: "/data"
          image: "{{docker-registry}}/bitnami/minio:latest"
          env:
            - name: MINIO_ROOT_USER
              value: "{{minio-access-key}}"
            - name: MINIO_ROOT_PASSWORD
              value: "{{minio-secret-key}}"
          ports:
            - name: api
              containerPort: 9000
            - name: console
              containerPort: 9001
          resources:
            requests:
              cpu: "0.1"
              memory: "100Mi"
            limits:
              cpu: "1"
              memory: "512Mi"
          startupProbe:
            httpGet:
              path: /minio/health/ready
              port: 9000
            failureThreshold: 60
            periodSeconds: 5
          livenessProbe:
            httpGet:
              path: /minio/health/live
              port: 9000
            periodSeconds: 60
          readinessProbe:
            failureThreshold: 2
            httpGet:
              path: /minio/health/ready
              port: 9000
            periodSeconds: 30

---
apiVersion: v1
kind: Service
metadata:
  name: video-minio
  labels:
    app: video-minio
  annotations:
    ingress.kubernetes.io/service-upstream: "true"
spec:
  type: ClusterIP
  ports:
    - name: api
      port: 9000
    - name: console
      port: 9001
  selector:
    app: video-minio

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    ingress.kubernetes.io/ssl-redirect: "false"
    kubernetes.io/ingress.class: kong
    konghq.com/strip-path: "true"
  name: video-minio
  labels:
    app: video-minio
spec:
  rules:
    - host: video-minio.{{cluster-domain}}
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: video-minio
                port:
                  number: 9000

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    ingress.kubernetes.io/ssl-redirect: "false"
    kubernetes.io/ingress.class: kong
    konghq.com/strip-path: "true"
  name: video-minio
  labels:
    app: video-minio
spec:
  rules:
    - host: video-minio-ui.{{cluster-domain}}
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: video-minio
                port:
                  number: 9001

Bucket exists as local:

@harbesh are you able to access the same S3 bucket from the outside of minio pod using any standard S3 client?

@vania-pooh you are absolutely right. Minio was unavailable. Reason - Ingress rules were with error and rewrite each others.
Sorry for waste your time.


Error=(duplicate field (https://github.com/steebchen/prisma-client-go/issues/1095): "lt"

This error occurs when I use the query below...
oneWeekLater := now.AddDate(0, 0, 7)

getAllNewContentsQuery := client.Content.FindMany(

		db.Content.And(

			db.Content.ReleaseDate.Lt(

				time.Now(),
			),

			db.Content.ReleaseDate.Lt(

				oneWeekLater,
			),
		),
	).ExtractQuery()

The idea behind the query above is to get all new contents. Less than 7 days

You can't use the same query twice. You can probably just query as follows:
oneWeekAgo := now.Add(-time.Hour * 24 * 7)
// ...

db.Content.ReleaseDate.Gt(
	oneWeekBefore,
),


Ambiguity in SPDX documentation in relation b/w files and filesAnalyzed fields

As per the below code snippet, if filesAnalyzed is true, files array must contain any files related to the package.
No clear correlation between the files and the filesAnalyzed field has been mentioned in the SPDX document.

@Moullisha - We are switching over to a new version of the utility https://github.com/spdx/tools-java and the library https://github.com/spdx/spdx-java-library
Could you check and see if the same issue is in the new version?  It's unlikely this utility will be updated except for critical security issues.