Major

fixes https://github.com/fastify/process-warning/issues/95, https://github.com/fastify/process-warning/issues/88
New Bench:
➜  process-warning git:(major) ✗ node benchmarks/warn.js
warn x 156,880,997 ops/sec ±0.26% (100 runs sampled)
(node:5524) [FST_ERROR_CODE_1] FastifyWarning: message
(Use `node --trace-warnings ...` to show where the warning was created)
(node:5524) [FST_ERROR_CODE_2] FastifyWarning: message

Master branch:
➜  process-warning git:(master) ✗ node benchmarks/warn.js
warn x 62,825,315 ops/sec ±0.21% (100 runs sampled)
(node:5718) [FST_ERROR_CODE_1] FastifyWarning: message
(Use `node --trace-warnings ...` to show where the warning was created)
(node:5718) [FST_ERROR_CODE_3] FastifyWarning: message

TODO

[x] docs
[ ] jsdocs
[ ] typescript

@Eomm
How about not using .emit() method at all but directly return the function?
const { createWarning } = require('..')

const CUSTDEP001 = createWarning('DeprecationWarning', 'CUSTDEP001', 'This is a deprecation warning')

CUSTDEP001()

?

And how do you check if it has been emitted?

CUSTDEP001.emitted ?

I don't think switching to a class is needed, using a closure or function would be sufficient and avoid less changes.

I don't think switching to a class is needed, using a closure or function would be sufficient and avoid less changes.

Did a quick test without class, and the performance was worse.
Here is the code and the results:

https://github.com/fastify/process-warning/blob/no-class/index.js

NO CLASS:
➜  process-warning git:(major) ✗ node benchmarks/warn.js
warn x 65,740,447 ops/sec ±0.13% (101 runs sampled)
(node:7193) [FST_ERROR_CODE_1] FastifyWarning: message
(Use `node --trace-warnings ...` to show where the warning was created)
(node:7193) [FST_ERROR_CODE_2] FastifyWarning: message

class:
➜  process-warning git:(major) ✗ node benchmarks/warn.js
warn x 152,302,444 ops/sec ±1.18% (97 runs sampled)
(node:8600) [FST_ERROR_CODE_1] FastifyWarning: message
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8600) [FST_ERROR_CODE_2] FastifyWarning: message

CUSTDEP001.emitted ?

TBH I don't like too much props attached to a function. I can't see any advantages, plus I expect the typings are more hard to write

TBH I don't like too much props attached to a function.

I find this odd when considering how JavaScript works. A function is an object like any other.

TBH I don't like too much props attached to a function.

I find this odd when considering how JavaScript works. A function is an object like any other.

Yeah, I like it too:

in this case, where we don't have constraints, and we are defining a new API, so I think that having a more expressive warninstance.emit() function is more evident than warn('foo', 'var') because it tells me what is happening and anyone that use it in whatever repository, can search for emit() to find where a warning is emitted.

Need help for TS 😅

Ok, will do now the TS part

@Eomm
Fixed typings

Good to go or strong against this API?

@Eomm
I think it the API is good.
Just wondering if we can have inheritance for unlimited? Maybe we should remove atleast unlimited from the typescript typings or use prefix it with # so that it is internal api and if we want to improve it, we dont have a semver major?
From 850823bd6f90284e1a9a1901632e1a9b256095d0 Mon Sep 17 00:00:00 2001
From: uzlopak<EMAIL_ADDRESS>Date: Sun, 10 Dec 2023 14:58:38 +0100
Subject: [PATCH] use inheritance

---
 index.js              | 34 ++++++++++++++++++++++++++--------
 types/index.d.ts      |  1 -
 types/index.test-d.ts |  4 +---
 3 files changed, 27 insertions(+), 12 deletions(-)

diff --git a/index.js b/index.js
index 47bfe86..082b4f5 100644
--- a/index.js
+++ b/index.js
@@ -62,7 +62,9 @@ function createWarning (name, code, message, { unlimited = false } = {}) {

   code = code.toUpperCase()

-  return new WarningItem(name, code, message, unlimited)
+  return unlimited
+    ? new WarningItemUnlimited(name, code, message)
+    : new WarningItem(name, code, message)
 }

 /**
@@ -75,11 +77,10 @@ function createWarning (name, code, message, { unlimited = false } = {}) {
  * @param {boolean} unlimited - If true, allows unlimited emissions of the warning.
  */
 class WarningItem {
-  constructor (name, code, message, unlimited) {
+  constructor (name, code, message) {
     this.name = name
     this.code = code
     this.message = message
-    this.unlimited = unlimited
     this.emitted = false
   }

@@ -90,12 +91,11 @@ class WarningItem {
    * @param {*} [c] Possible message interpolation value.
    */
   emit (a, b, c) {
-    if (this.emitted === true && this.unlimited === false) {
-      return
-    }
-    this.emitted = true
+    this.emit = () => {}

-    process.emitWarning(this.format(a, b, c), this.name, this.code)
+    process.emitWarning(this.format(a, b, c), this.name, this.code)
+
+    this.emitted = true
   }

   /**
@@ -120,6 +120,24 @@ class WarningItem {
   }
 }

+class WarningItemUnlimited extends WarningItem {
+  /**
+   * Emits the warning.
+   * @param {*} [a] Possible message interpolation value.
+   * @param {*} [b] Possible message interpolation value.
+   * @param {*} [c] Possible message interpolation value.
+   */
+  emit (a, b, c) {
+    this.emitted = true
+
+    process.emitWarning(this.format(a, b, c), this.name, this.code)
+    this.emit = () => {
+      process.emitWarning(this.format(a, b, c), this.name, this.code)
+    }
+  }
+
+}
+
 /**
  * Module exports containing the process warning functionality.
  * @namespace
diff --git a/types/index.d.ts b/types/index.d.ts
index 8cfe8f7..fed3e77 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -4,7 +4,6 @@ declare namespace processWarning {
     code: string;
     message: string;
     emitted: boolean;
-    unlimited: boolean;
     emit(a?: any, b?: any, c?: any): void;
     format(a?: any, b?: any, c?: any): string;
   }
diff --git a/types/index.test-d.ts b/types/index.test-d.ts
index 747e5a5..485516e 100644
--- a/types/index.test-d.ts
+++ b/types/index.test-d.ts
@@ -7,14 +7,12 @@ expectType<string>(WarnInstance.code)
 expectType<string>(WarnInstance.message)
 expectType<string>(WarnInstance.name)
 expectType<boolean>(WarnInstance.emitted)
-expectType<boolean>(WarnInstance.unlimited)

 expectType<void>(WarnInstance.emit())
 expectType<void>(WarnInstance.emit('foo'))
 expectType<void>(WarnInstance.emit('foo', 'bar'))

-const buildWarnUnlimited = createWarning('FastifyWarning', 'CODE', 'message', { unlimited: true })
-expectType<boolean>(buildWarnUnlimited.unlimited)
+createWarning('FastifyWarning', 'CODE', 'message', { unlimited: true })

 const DeprecationInstance = createDeprecation('CODE', 'message')
 expectType<string>(DeprecationInstance.code)
--
2.34.1

Imho object param for constructor is preferable
I am inconclusive regarding the payload. Could mean that we need to create unnecessary intermediary arrays.

I would generically prefer a functional pattern instead of a classical one:
const emit = createWarning(..)

emit(...)

if (emit.emitted) { ... }

This is just personal preference.

Me too, but There is a performance bottleneck to implement it as functional, because the function name has to be set via Object.defineProperty. So we get from 220 mio ops/s and get 86 mio ops/s on my machine.

I would generically prefer a functional pattern instead of a classical one:
const emit = createWarning(..)

emit(...)

if (emit.emitted) { ... }

This is just personal preference.

This is what the PR implements, correct?

Me too, but There is a performance bottleneck to implement it as functional, because the function name has to be set via Object.defineProperty. So we get from 220 mio ops/s and get 86 mio ops/s on my machine.

I don't follow. What has to be defined?
Personally, I don't think there is any need to sacrifice good api/developer experience in the name of "performance" here. These entities are going to be created at application initialization more often than not, and once created will perform as well as any other event emitter.

See here:
https://github.com/fastify/process-warning/pull/97

This is what the PR implements, correct?

A bit different, there is the emit method to call:
const warning = createWarning('FastifyWarning', 'FSTWRN001', 'Hello %s', { unlimited: true })
warning.emit('world')

if (warning.emitted) { ... }

Fixing the input object

I think the last open discussion point is if unlimited should be true by default or not.
I have no strong opinion on this.

@jsumners
Pardon me.
I closed some of your remarks regarding the FST_ prefix in the Readme.md, because I thought they were addressed already and were marked as Outdated.
Now i checked again and saw that some changes were not applied.
@Eomm
Can you please take care of them?

I'll do a pass on the docs and examples after this is merged. None of my feedback has been blocking.


Timeout cannot be specified on typescript definition of function EXPECT

What is your Test Scenario?
Filling a form of a SPA and pressing a submit button.
XHR request triggerd by submit button takes longer than 3 seconds and subsequent assertion fails.
What is the Current behavior?
There is documentation about waiting mechanisms:
https://devexpress.github.io/testcafe/documentation/test-api/built-in-waiting-mechanisms.html
// Wait with an assertion.
await t.expect(emptyLabel.exists, '', { timeout: 10000 });

... but in Typescript index.d.ts the signature is only:
expect<A>(actual: A | Promise<A>): Assertion<A>;

What is the Expected behavior?
Either provide expect  function with timeout options on Typescript or fix documentation if it exists somewhere else.
Your Environment details:

testcafe version:                  1.7.1
node.js version:                    10.17.0
command-line arguments:  testcafe "chrome" "src/appliance.spec.ts"
browser name and version: Chrome 79
platform and version:         Linux KDE neon, 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

From another issue ( https://github.com/DevExpress/testcafe/issues/3657#issuecomment-481204476 )
I got the information that the timeout is an option of the Selector. This should be reflected in the documentation.

Thank you for your report. There is a mistake in our documentation. We will correct it shortly.
You can define a timeout option both for Selector and for Assertion. Here is a correct example of using a timeout in assertion:
await t.expect(emptyLabel.exists).ok('', { timeout: 10000 });

Thank you for pointing out that the timeout can also be specified as AssertionOption.
Somehow I missed that when I checked the index.d.ts. It should indeed go to documentation.


Ponyfills for older browsers

use ponyfills for older browsers

[x] introduce ponyfills
[x] refactor

Coverage remained the same at 96.99% when pulling 24bab54b86d2aaef65f2e49ea560e10b8f7b627d on ponyfills into f9d1993fe7d85b6b921ce39fc5f458e845175660 on master.


Move support branches docs to team docs

The process for using a support branch is being moved into our team docs as part of https://github.com/alphagov/design-system-team-docs/pull/21.
Remove the existing documentation and add a reference to it in our standard docs on publishing releases.

Will we leave the v4 docs in place on support/4.x?
Aware we still have this PR to discuss/backport to bring them back in line:

https://github.com/alphagov/govuk-frontend/pull/4001

Hi @36degrees we noticed in the Design System standup today that this issue is in need of review and is labelled as cross-squad. Would it be ready for review?


Number of characters parsed

The parser parses only 1024 characters!what if my need to parse more.

The parser definitely parses more than 1024 characters!

Maybe you can describe the problems you are experiencing in more detail.

I am receiving a json message from a client through a socket which is being
stored in a buffer variable.
Now i am parsing the buffer but it is parsing only 1024 characters and it
shows an error in json after that(I have used the cJSON_GetErrorPtr() for
this)
I have verified that the json is valid.
Not understanding where exactly its going wrong.
Thanks.
On Thu, Jun 23, 2016 at 3:18 PM, Max Bruckner<EMAIL_ADDRESS>wrote:

Maybe you can describe the problems you are experiencing in more detail.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kbranigan/cJSON/issues/37#issuecomment-228002018, or mute
the thread
https://github.com/notifications/unsubscribe/AHUDYaH6YE6uxzGT0w3pVWiY9Qn3a2hSks5qOlZQgaJpZM4I8faJ
.

Could you provide the JSON that causes the error?

[{"profile_data": [{"uuid": "wgdk", "Profile_ID": "0001", "action": "du",
"ifIndex": "kdk", "model": "kk", "id": 2082}], "Inheritance": "false",
"Profile_ID": "0001", "Local_Trigger": "false", "Fault_Tolerant": "false",
"Profile_Name": "Terminal 1", "Profile_Desc": "Boarding in 10 mins"},
{"profile_data": [], "Inheritance": "false", "Profile_ID": "0002",
"Local_Trigger": "false", "Fault_Tolerant": "false", "Profile_Name":
"Terminal 2", "Profile_Desc": "Boarding in 20 mins"}, {"profile_data": [],
"Inheritance": "false", "Profile_ID": "0003", "Local_Trigger": "false",
"Fault_Tolerant": "false", "Profile_Name": "Terminal 3", "Profile_Desc":
"Boarding in 30 mins"}, {"profile_data": [], "Inheritance": "kk",
"Profile_ID": "ihfkhf", "Local_Trigger": "djddhd", "Fault_Tolerant":
"dvjdsj", "Profile_Name": "wgdk", "Profile_Desc": "kdk"}, {"profile_data":
[], "Inheritance": "kk", "Profile_ID": "ihfkgsjdgkjhf", "Local_Trigger":
"djddhd", "Fault_Tolerant": "dvjdsj", "Profile_Name": "wgdk",
"Profile_Desc": "kdk"}, {"profile_data": [{"uuid": "wgdk", "Profile_ID":
"1234f", "action": "dvjdsj", "ifIndex": "kdk", "model": "kk", "id": 2086},
{"uuid": "wgdk", "Profile_ID": "1234f", "action": "dvjdsj", "ifIndex":
"kdk", "model": "kk", "id": 2087}, {"uuid": "wgdk", "Profile_ID": "1234f",
"action": "dvjdsj", "ifIndex": "kdk", "model": "kk", "id": 2088}, {"uuid":
"wgdk", "Profile_ID": "1234f", "action": "dvjdsj", "ifIndex": "kdk",
"model": "kk", "id": 2089}, {"uuid": "wgdk", "Profile_ID": "1234f",
"action": "dvjdsj", "ifIndex": "kdk", "model": "kk", "id": 2090}, {"uuid":
"wgdk", "Profile_ID": "1234f", "action": "dvjdsj", "ifIndex": "kdk",
"model": "kk", "id": 2091}, {"uuid": "wgdk", "Profile_ID": "1234f",
"action": "dvjdsj", "ifIndex": "kdk", "model": "kk", "id": 2092}, {"uuid":
"wgdk", "Profile_ID": "1234f", "action": "dvjdsj", "ifIndex": "kdk",
"model": "kk", "id": 2093}], "Inheritance": "kk", "Profile_ID": "1234f",
"Local_Trigger": "djddhd", "Fault_Tolerant": "dvjdsj", "Profile_Name":
"wgdk", "Profile_Desc": "kdk"}, {"profile_data": [{"uuid": "wgdk",
"Profile_ID": "123f", "action": "du", "ifIndex": "kdk", "model": "kk",
"id": 2084}, {"uuid": "wgdk", "Profile_ID": "123f", "action": "du",
"ifIndex": "8kdk", "model": "kk", "id": 2085}], "Inheritance": "kk",
"Profile_ID": "123f", "Local_Trigger": "djddhd", "Fault_Tolerant":
"dvjdsj", "Profile_Name": "wgdk", "Profile_Desc": "kdk"}, {"profile_data":
[{"uuid": "wgdk", "Profile_ID": "123", "action": "du", "ifIndex": "kdk",
"model": "kk", "id": 2083}], "Inheritance": "kk", "Profile_ID": "123",
"Local_Trigger": "djddhd", "Fault_Tolerant": "dvjdsj", "Profile_Name":
"wgdk", "Profile_Desc": "kdk"}]
On Thu, Jun 23, 2016 at 9:17 PM, Max Bruckner<EMAIL_ADDRESS>wrote:

Could you provide the JSON that causes the error?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kbranigan/cJSON/issues/37#issuecomment-228093739, or mute
the thread
https://github.com/notifications/unsubscribe/AHUDYezWoVdc6YsDZxobpk48aB6WK9mWks5qOqqQgaJpZM4I8faJ
.

I've just checked. This JSON works just fine (I tested with the dofile function in test.c. Current master branch, commit c4e9c1d41fa38694a02ed2fdf25622fc39634ed8 ).
Maybe there is a problem with your buffer variable?

Ok i will check.Thank you so much!
On Jun 25, 2016 11:41 PM, "Max Bruckner"<EMAIL_ADDRESS>wrote:

I've just checked. This JSON works just fine (I tested with the dofile
function in test.c. Current master branch, commit
c4e9c1d41fa38694a02ed2fdf25622fc39634ed8).
Maybe there is a problem with your buffer variable?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kbranigan/cJSON/issues/37#issuecomment-228562889, or mute
the thread
https://github.com/notifications/unsubscribe/AHUDYdXKX-DLo6xjTzuQ1rH-LQOawCTaks5qPW9pgaJpZM4I8faJ
.

Good luck!


Json guidance functions

I changed all of the functions in _json_schema_to_grammar.py to @guidance decorated functions, using only public interfaces in the process, as recommended by @slundberg.
Consider this a work in progress, as I haven't quite wrapped my head around how to allow recursion without references to placeholder grammars yet. Hope this saves you some time :)

Just noticed this (after starting my own branch). Thanks for the array pattern... was quite useful.

Awesome, please feel free to steal as much or as little code as you want from this. I don't want to step on your toes -- I'm just really interested in getting these features into guidance ;)


Updated for latest Jenkins

Updates the Jenkins package to the latest available.

@johnypony3 thanks for getting this merged!  Are you in a position to push the new package to chocolatey.org?  Thanks

@johnypony3 Can you let myself or @gep13 know when you've submitted this package to chocolatey.org and we can get it approved? It's several versions out of date so a quick turnaround would be appreciated.


How to interpret the output of the baseline.inference

Hello,
 I eventually run the  FastRT project in fast-reid, and the output :

new 2.txt
I expect the model will give me and ID (int) like other re-id model such openvino. How ever, it gives me a lot of numbers, and I went through the whole site, the paper, the doc, I cannot understand the output and know not how to use them.

Or how can i get an ID like other re-id model when I get a person image to the model?

 Many thanks!

-Scott

Hi,
Those numbers are representing the input person's embedding features.
What you intend to get is called retrieval, you still have to calculate the feature embedding similarity between query image and dataset by yourself after get the numbers.
Currently FastRT haven't support yet.
Thanks for asking this, I'm considering to add this function for demonstrate this. :)

Got it. Could you please show us how to calculate the the feature embedding similarity between those images in FastRT? Thanks!

Thanks !  I will do it by myself. -Scott


Compilation failure related to new sha256t_hash_newtype

So I tried to use the cargo patch feature to patch in my rust-bitcoin dev branch in my rust-bitcoincore-rpc work. This branch is just master + two open MRs.
Somehow this broke compilation in a way that points like a problem with the macro for the TapLeafHash etc types and then resulting errors because these types are missing.
This seems to be the gist of the actual problem:
    Checking bitcoin v0.30.0 (https://github.com/stevenroose/rust-bitcoin?branch=dev#56737a58)
error: no rules expected the token `struct`
  --> /home/steven/.cargo/git/checkouts/rust-bitcoin-221c4b904b7f04d3/56737a5/bitcoin/src/crypto/sighash.rs:58:9
   |
58 |     pub struct TapSighashTag = hash_str("TapSighash");
   |         ^^^^^^ no rules expected this token in macro call

error: no rules expected the token `struct`
  --> /home/steven/.cargo/git/checkouts/rust-bitcoin-221c4b904b7f04d3/56737a5/bitcoin/src/taproot.rs:26:9
   |
26 |     pub struct TapLeafTag = hash_str("TapLeaf");
   |         ^^^^^^ no rules expected this token in macro call

I'm using rustc version 1.61.0.
Related: https://github.com/rust-bitcoin/rust-bitcoin/pull/1773, cc @Kixunil

Full log of compilation failure

If you want to try replicate this, checkout the syncasync branch of stevenroose/rust-bitcoincore-rpc and try to build it.

Oh I wonder if this is because your use of patch overrides the patch in rust-bitcoin so the wrong bitcoin_hashes is being used?

I'd say the branch you link to is using the released version of bitcoin_hashes not the code on master but you are using rust-bitcoin with code from master.

Ah you're right. I had to patch bitcoin_hashes too.


Response hided

VS Code Version: latest
OS Version: latest
Logs:

Steps to Reproduce:

In VS code editor, search something using Copilot chat, the response is not visible properly
Please refer the below image for reference

Note: I'm premium member of GitHub Copilot. Kindly provide the resolution ASAP.

@lramos15 - Working fine now.


[SQL] [MINOR] Mark LocalTableScanExec's input data transient

What changes were proposed in this pull request?
This PR is to mark the parameter rows and unsafeRow of LocalTableScanExec transient. It can avoid serializing the unneeded objects.
How was this patch tested?
N/A

cc @cloud-fan

Test build #79777 has started for PR 18686 at commit 662d377.

Test build #79777 has finished for PR 18686 at commit 662d377.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/79777/
Test PASSed.

LGTM, merging to master!

Oh, @gatorsmile .
I didn't find the right fix.
Could you backport this to branch-2.2, too?

I'm testing now.

Yes. This is the fix.
@gatorsmile and @cloud-fan . Can we have this in branch-2.2, too?

Sure. Will do it.

Thank you so much!


Convert Emacs documentation from XML DocBook to Commonmark

https://github.com/NixOS/nixpkgs/issues/105254

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@ryantm ping!

@AndersonTorres looks good thanks!


Custom Object Detection with TF & YOLOV3

Hey, thanks for the repo.
Is it possible for you to provide a tutorial or instruction sheet for custom object detection? I would like to use TF2.x and YOLOV3.
I'm a new learner and want to train with my custom dataset. Can you provide some insight also about real-time object detection with CPU or using a dedicated embedded system like Pi or Jetson Nano?
Thanks..

No worries! I am working on it...

Thanks. I'm actively looking forward to use it. I assume that you will provide the steps as soon as possible. Thanks..

Work Completed! but it seems that tf.keras is much slower than tf.  Do you have any idea about it ?

Actually I have got no idea about these things. I'm a beginner and starting now. Hope you find some help some how.

请问tf.keras比tf慢多少？现在可以用tf2.0训练自己的数据集吗，如果可以训练 步骤和1.x的一样吗

请问tf.keras比tf慢多少？现在可以用tf2.0训练自己的数据集吗，如果可以训练 步骤和1.x的一样吗

around 35%


Single activity architecture

Great repo. However, I didn't like the multiple activity design.
This version only uses a single MainActivity and three fragments.
I am relatively new to dependency injection and Dagger2 so I'd appreciate any feedback you might have.
If you want this to go into a separate branch, just let me know.

:+1:

Your approach is valid, I have no doubts. However I will not merge this pull request. Sorry, but what you can do is to fork the repo and create a tag with your approach.
In my opinion, an app should not have only one activity, imagine an app with 50 screens (50 fragments managed by only one activity will imply a lot of code to manipulate fragments flows and stacks. It adds way more complexity if you support tablets by the way).
I would definitely use an activity per feature, which will take care of the fragments involved within that feature. Thus, you can also make proper use of dagger by unloading elements not needed within the mentioned feature when the activity die.

@android10 I think that the title of the pull request is invalid. I suppose that PR of @wkarl is more related with a previous Issue https://github.com/android10/Android-CleanArchitecture/issues/32 .
I think that is related more with the situation of a dynamic params in a use case. @wkarl implemented a Fragment Context in order to be able (I suppose) to pass parameters dynamically.
eg. If I have a login form how I will pass dynamic params in UseCase when UserModule is injected with a constructor into the Activity context?
But I suppose that this will be fixed with plus injection of Dagger instead of creating a Fragment Context. Correct me if I am wrong @wkarl and @android10

@spirosoik This pull request wasn't aimed at #32, I just found it cleaner to have a single Activity.
IMO a Fragment can be used just like an Activity, it has its own lifecycle and is self contained.
My understanding was that the navigator class should take care of the Fragment flow, removing the need to do it all in the Activity.
It has also been a pain to share media with my last multi Activity app and deep linking was more complicated.
@android10 Those are just my thoughts on the topic, I suppose both approaches have their use cases.

@wkarl :+1:
@wkarl  for sure @android10 is right that you can't have a single activity with many fragments. The right thing is to plan how deep you want to got and how many activities (with fragments) you want to have. I absolutely agree with @android10 that per feature must be a separate activity. We follow the same approach here.

@spirosoik I think it is simply a question of philosophy. I personally don't want two separate stacks for activities and fragments.
By the way the reason I came up with this is that Jake Wharton has advocated a single activity approach and doesn't event use fragments (Views with Flow + Mortar).
It boils down to personal preference which is totally okay for me. Just my two cents :)

@wkarl Yes I've written this post by Jake Wharton, but this is a general problem with Fragments that's why Jake uses Flow + Mortar.

I guess this is a matter of taste. I completely agree that both approaches are valid :+1:

@wkarl @spirosoik btw I don't believe Jake uses Mortar or Flow https://twitter.com/jakewharton/status/442568257141100544

@caseykulm Huh, that's interesting. He clearly stated that he doesn't like to use fragments so I figured he'd use Flow for the view stack: https://twitter.com/jakewharton/status/471703632899887104

@wkarl Mortar+Flow are a little bit complicated that's why I suppose but I believe that Google maybe will resolve the problems with fragments. MVP is a good solution to face them.

By the way the reason I came up with this is that Jake Wharton has advocated a single activity approach and doesn't event use fragments (Views with Flow + Mortar).
@wkarl That shouldn't ever be a reason to use an architecture. You should analyze if it's convenient to your app (needs). I agree with @android10. I shouldn't ever use an architecture with a single activity because managing navigation in that specific situation can become a pain in the ass...

That shouldn't ever be a reason to use an architecture. You should analyze if it's convenient to your app (needs).
@cesards Look, I didn't just blindly use this architecture. I have used both approaches and evaluated the pros and cons. There is no silver bullet but for me the single activity approach worked better.

:+1: Oki!


Base Page: Issue with body column width

The layout for the base page looks a bit odd. Was there a layout change?
Desktop
The body content is stretched out of the grid.

Mobile
The padding on the body content is missing.

Fixed by #3313.


FileNotFoundError when trying to switch mode

I just updated to the latest version of Envycontrol (2.3.1-1) and now when I try to switch mode I get this error

Any idea why or how I can try to fix this?
Edit: Should note that I am using EndeavourOS and have been since before updating

My bad, this is related to 9c24c74dbf9acdc9fd3619d46328493db1a34698
Will add another check if the system is using dracut before running the command, please downgrade to 2.3 in the meanwhile ;)

Alright, thank you for the quick response


Cleanup and improvement to test coverage of PandasTools

Line length
Cleanup for pandas version checking and doc test execution
Improved unit test coverage
Moved excution of doctest as part of the unit test

Execution of UnitTestPandas will patch rdkit.Chem functions. In the next PR, functionality will be added to make sure that tests restore the default functions. The UnitTestPandas.py file has some code currently commented that will be enabled at this point.

IPython seems no longer to be available in the test environment.


v23.0.0 PROTOTYPE! [WIP] Authentication [front-end]

front-end moved there: https://github.com/eugene-matvejev/battleship-game-gui


k8s 1.18 can not be support now

test commit: d9d1af8af32884817c13be31bcc0bd9c802073a6
k8s 1.18 can not be support now
error 2021-03-04T06:14:08.382Z        ERROR   setup   cannot start manager    {"error": "no matches for kind \"Ingress\" in version \"networking.k8s.io/v1\""}

https://github.com/goharbor/harbor-operator/actions/runs/619774266

Fixes by https://github.com/goharbor/harbor-operator/pull/454


V2 : document changes

i believe these are supposed to be numbers, not vector3's. :smiley_cat:
All Submissions:

[ ] Have you followed the guidelines in our Contributing document?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[ ] Does your submission pass tests?

@ahdinosaur there are a few changes so please execute the test suites, and then fill in the questions above (Change [ ] to [X])

:heavy_check_mark:


Use class_names helper method to conditionally set classes

Before, classes were conditionally added by tapping an array of classes and
conditionally appending classes.
Now, the class_names helper is used consistently to add conditional classes.

Throwing this PR out there as a suggestion.
I think the class_names method is a nice way of conditionally adding classes.
If we prefer to keep things the way they are, then that is ok too.


[BUG] Creating a new integration does not refresh the integration list

What is the bug?
Creating an integration from the DataSource page will close the flyover and display the current integrations. This does not include the integration that was just created. Instead the page has to be refreshed to see the new integration.
How can one reproduce the bug?
Steps to reproduce the behavior:

Go to the overview page for a data source
Create a new integration
Verify the new integration is not in the list of integrations

What is the expected behavior?
The list of integrations should be updated to include the newly created one without refreshing the page
What is your host/environment?

Version: 2.13

Do you have any screenshots?

A new integration called waf_integration had been created immediately before this view was shown
Do you have any additional context?
Add any other context about the problem.

[Catch All Triage - 1, 2, 3, 4, 5]


For all c files, include <Python.h> first

Codecov Report

Merging #230 (d8269d5) into master (8846e9c) will decrease coverage by 2.52%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##            master     #230      +/-   ##
===========================================
- Coverage   100.00%   97.47%   -2.53%
===========================================
  Files           21       21
  Lines         2097     2096       -1
===========================================
- Hits          2097     2043      -54
- Misses           0       53      +53

Impacted Files
Coverage Δ

src/viztracer/cellmagic.py
40.00% <0.00%> (-60.00%)
:arrow_down:

src/viztracer/patch.py
82.65% <0.00%> (-17.35%)
:arrow_down:

src/viztracer/util.py
94.66% <0.00%> (-5.34%)
:arrow_down:

src/viztracer/viztracer.py
95.67% <0.00%> (-4.33%)
:arrow_down:

src/viztracer/main.py
97.55% <0.00%> (-2.45%)
:arrow_down:

src/viztracer/code_monkey.py
98.75% <0.00%> (-1.25%)
:arrow_down:

src/viztracer/viewer.py
99.61% <0.00%> (-0.39%)
: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 8846e9c...d8269d5. Read the comment docs.


Move to member function in Vector class

Overview
Move to member function in Vector class
Issue
https://github.com/ut-issl/s2e-core/issues/333
Details
The following functions for Vector class were moved to the member functions.

FillUp
Print
CalcNorm
Normalize

This function was renamed to CalcNormalizedVector.
This function was changed to nondestructive function.

Validation results
See CI.
Scope of influence
NA
Supplement
NA
Note
Review and Merge after https://github.com/ut-issl/s2e-core/pull/338
We need to change test codes in this PR.

We need to change test codes in https://github.com/ut-issl/s2e-core/pull/340.

Done


blender: error: unrecognized arguments: --background --python blender_script.py

Hi, I met the following problem:
Handling 3D object files:  36%|████████████████████████████████                                                        | 4/11 [00:02<00:04,  1.46it/s]usage: blender [-h] [--object_path OBJECT_PATH] [--output_dir OUTPUT_DIR]
               [--engine {CYCLES,BLENDER_EEVEE}] [--only_northern_hemisphere]
               [--num_renders NUM_RENDERS]
blender: error: unrecognized arguments: --background --python blender_script.py
2024-08-27 10:34:42.669 | ERROR    | __main__:handle_found_object:165 - Found object https://github.com/mattdeitke/objaverse-xl-test-files/blob/ead0bed6a76012452273bbe18d12e4d68a881956/example-linked.gltf was not rendered successfully!
Handling 3D object files:  45%|████████████████████████████████████████                                                | 5/11 [00:03<00:03,  1.51it/s]usage: blender [-h] [--object_path OBJECT_PATH] [--output_dir OUTPUT_DIR]
               [--engine {CYCLES,BLENDER_EEVEE}] [--only_northern_hemisphere]
               [--num_renders NUM_RENDERS]
blender: error: unrecognized arguments: --background --python blender_script.py
2024-08-27 10:34:43.287 | ERROR    | __main__:handle_found_object:165 - Found object https://github.com/mattdeitke/objaverse-xl-test-files/blob/ead0bed6a76012452273bbe18d12e4d68a881956/example.stl was not rendered successfully!

can some one help me

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

@amir1387aht  this file seems like for windows? my env is ubuntu12.04


Add for to state automation.

A first cut of https://github.com/balloob/home-assistant/issues/1095.
This add the ability to trigger an automation after an entity has been in a state for a specified amount of time. An example:-
automation:
  alias: 'Test delay"'
  trigger:
    - platform: state
      entity_id: input_boolean.input
      to: 'on'
      for:
        seconds: 10
  action:
    service: input_boolean.turn_on
    entity_id: input_boolean.result

I think the helper methods return the wrapped method so you can remove it, or else they should

@balloob I noticed that eventually. So now sorted - thanks.

Looks awesome! After the state debug removed this is good to go :dolphin:


NEED HELP

hi i have problem with king-phisher. My OS is Kali Linux
Linux kali 4.13.0-kali1-amd64 #1 SMP Debian 4.13.4-2kali1 (2017-10-16) x86_64 GNU/Linux
My PostgreSQL version is
psql --version
psql (PostgreSQL) 10.0
When i type
systemctl start king-phisher
Job for king-phisher.service failed because a timeout was exceeded.
See "systemctl  status king-phisher.service" and "journalctl  -xe" for details.
When i check status
systemctl  status king-phisher.service
● king-phisher.service - King Phisher Server
Loaded: loaded (/lib/systemd/system/king-phisher.service; disabled; vendor preset: disabled)
Active: failed (Result: timeout) since Tue 2017-10-17 15:20:31 EEST; 2min 43s ago
Process: 6654 ExecStart=/usr/bin/python3 /usr/share/king-phisher/KingPhisherServer /etc/king-phisher/server
Oct 17 15:19:10 kali python3[6654]:     return dialect.connect(*cargs, **cparams)
Oct 17 15:19:10 kali python3[6654]:   File "/usr/local/lib/python3.5/dist-packages/sqlalchemy/engine/default.
Oct 17 15:19:10 kali python3[6654]:     return self.dbapi.connect(*cargs, **cparams)
Oct 17 15:19:10 kali python3[6654]:   File "/usr/local/lib/python3.5/dist-packages/psycopg2/init.py", lin
Oct 17 15:19:10 kali python3[6654]:     conn = _connect(dsn, connection_factory=connection_factory, **kwasync
Oct 17 15:19:10 kali python3[6654]: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL:  pass
Oct 17 15:19:10 kali python3[6654]: FATAL:  password authentication failed for user "king_phisher"
Oct 17 15:20:31 kali systemd[1]: king-phisher.service: Start operation timed out. Terminating.
Oct 17 15:20:31 kali systemd[1]: king-phisher.service: Failed with result 'timeout'.
Oct 17 15:20:31 kali systemd[1]: Failed to start King Phisher Server.
and
journalctl  -xe
Oct 17 15:19:10 kali python3[6654]:   File "/usr/local/lib/python3.5/dist-packages/psycopg2/init.py", lin
Oct 17 15:19:10 kali python3[6654]:     conn = _connect(dsn, connection_factory=connection_factory, **kwasync
Oct 17 15:19:10 kali python3[6654]: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL:  pass
Oct 17 15:19:10 kali python3[6654]: FATAL:  password authentication failed for user "king_phisher"
Oct 17 15:20:31 kali systemd[1]: king-phisher.service: Start operation timed out. Terminating.
Oct 17 15:20:31 kali systemd[1]: king-phisher.service: Failed with result 'timeout'.
Oct 17 15:20:31 kali systemd[1]: Failed to start King Phisher Server.
-- Subject: Unit king-phisher.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- Unit king-phisher.service has failed.
-- The result is RESULT.
Oct 17 15:24:08 kali systemd[1]: Starting Cleanup of Temporary Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- Unit systemd-tmpfiles-clean.service has begun starting up.
Oct 17 15:24:08 kali systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- Unit systemd-tmpfiles-clean.service has finished starting up.
-- The start-up result is RESULT.
Oct 17 15:25:01 kali CRON[6761]: pam_unix(cron:session): session opened for user root by (uid=0)
Oct 17 15:25:01 kali CRON[6762]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Oct 17 15:25:01 kali CRON[6761]: pam_unix(cron:session): session closed for user root
Thank you
Issue Description
I get a stack trace when I...
Reproduction Steps

Start King Phisher
Do something to trigger the crash

Environment Details

Host OS: Ubuntu 15.10 GNOME, Kali 2, etc.
King Phisher Version: x.y.z
Error Details / Stack Trace

If you are opening an issue regarding the client, copy text from the "Error
Details" of the error dialog in the client here. If you are opening an issue
regarding the server copy the relevant lines from the logs here.

Thank you for opening an issue! To get a better understanding of what's going on, can you please complete the issue description, reproduction steps and environment details?
The formatting is making it difficult to determine where you're having a problem. I'd recommend using a gist for large stack traces for better readability.

when i want to start king-phisher i got this message
Job for king-phisher.service failed because a timeout was exceeded.
See "systemctl  status king-phisher.service" and "journalctl  -xe" for details.
so i'm checking the details with this command
systemctl  status king-phisher.service
and i get this
root@kali:~# systemctl  status king-phisher.service
● king-phisher.service - King Phisher Server
Loaded: loaded (/lib/systemd/system/king-phisher.service; disabled; vendor preset: disabled)
Active: failed (Result: timeout) since Tue 2017-10-17 16:04:19 EEST; 4min 24s ago
Process: 1538 ExecStart=/usr/bin/python3 /usr/share/king-phisher/KingPhisherServer /etc/king-phisher/server_
Oct 17 16:02:55 kali python3[1538]:     return dialect.connect(*cargs, **cparams)
Oct 17 16:02:55 kali python3[1538]:   File "/usr/local/lib/python3.5/dist-packages/sqlalchemy/engine/default.p
Oct 17 16:02:55 kali python3[1538]:     return self.dbapi.connect(*cargs, **cparams)
Oct 17 16:02:55 kali python3[1538]:   File "/usr/local/lib/python3.5/dist-packages/psycopg2/init.py", line
Oct 17 16:02:55 kali python3[1538]:     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
Oct 17 16:02:55 kali python3[1538]: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL:  passw
Oct 17 16:02:55 kali python3[1538]: FATAL:  password authentication failed for user "king_phisher"
Oct 17 16:04:19 kali systemd[1]: king-phisher.service: Start operation timed out. Terminating.
Oct 17 16:04:19 kali systemd[1]: king-phisher.service: Failed with result 'timeout'.
Oct 17 16:04:19 kali systemd[1]: Failed to start King Phisher Server.

Ah, I see. The key part of that stack trace is here:

Oct 17 16:02:55 kali python3[1538]: FATAL: password authentication failed for user "king_phisher"

This is referenced in the King-Phisher FAQ here. Basically, the king_phisher account needs to have the password reset in postgres and then the server_config.yml file needs to be updated with the new password.

Thank you :)

You got it!


Migration from mujoco-py to mujoco

Hi,
I'm a student and I'm trying to use MuJoCo for RL research.
I'm looking for some help with finding a migration guide for taking software written for mujoco-py to proper mujoco now that there are official bindings. If I just replace the (inherited) dependence on mujoco-py<1.50.2,>=1.50.1 with mujoco in the requirements.py file is there a chance it just works out of the box?
I did a quick search through the discussion pages and other open issues, but didn't see anything on this. I did find a migration guide from deepmind_mc to mujoco, but that wasn't what I was looking for.

There's a mini guide in the docs, hopefully that's helpful.

Wow. I don't know how I missed that. Thanks. I'll give that a read later today! Thank.
For now, I'll close this.


Performance: SingleSelectionMoveable slow render time Discovery

When performing an action like dragging a selected element to a new position, the SingleSelectionMoveable component seems to have the largest render time with a render of ~45ms:

Completion of this ticket involves finding out what's making this component take so long to render and documenting a possible solution

Seems to be a giant layout recalc causing this component to take so long to render:

The layout recalc thrashing is caused by useSnapping getting the bounding box off of canvasContainer and pageContainer every time it's re-rendered.
Tested a quick poc solution to this which included holding bounding box data inside the CanvasProvider and using a resize observer to update the bounding box instead of getBoundingClientRect. unlike getBoundingClientRect , resizeObserver shouldn't cause a style recalc and should avoid this layout thrashing.
The quick POC seems fruitful from performing the same interaction as before. Got SingleSelectionMoveable render time down to ~1.5ms from ~45ms using this approach:
before

after

Here's the follow up ticket to figure out an elegant approach using the method described above:
https://app.zenhub.com/workspaces/web-stories-5e94d3aced449034e1e9b226/issues/google/web-stories-wp/10065


Update docs style with new branding

We've got a style guide now. I've applied it to the docs. Hooray!
Also some minor tweaks:

reversed the version numbers
added a temporary style for code style background, I'll be writing an HCL parser so we can get proper highlighting soon.

LGTM!


Adds more information on the certificate

It would be great to have additional information on the certificate, especially:

serial
issuer
subject
timestamps.

Here is an example script doing that with androguard

Done via #3


Provide default value in a specific field for trait properties in CRD

Requirement
As a user I would like to have default value pre-filled
Problem
the default value is provided inside the description text which is not convenient to read from for tooling that want to read/display the display value more prohemitently
Proposal
No response
Open questions
No response

@apupier Just to clarify, you are expecting the default values only for trait fields declared in the documentation to be in the CRD ?

you are expecting the default values only for trait fields declared in the documentation to be in the CRD ?

From Camel Language Server point of view, I identified only these ones missing. But if there are other places that are missing default values, it would be better to add them too.

I added all the default values I could find/extract. Most of the others are either given by the Kubernetes Platform implementation either conditional.
@squakez this issue is fixed AFAIK.

We had to revert the change that fixed this issue. Still open.


Namespaces aren't recognised.

Within the 'src/api_authorisation_token/api/apple/music.py' class file we are unable to import the Scraper class without the IDE complaining the the 'api_authorisation_token' module cannot be found. I suspect the way we set up the environment and modules is incorrect.

Closed with #14


List user channels

adds enpoints:

/api/users/{}/channels
/api/paginated/users/{}/channels

@wolfv good to merge

@wolfv good to merge


Danganronpa2: Goodbye Despair [PCSB00514]

App summary

App name: Danganronpa2: Goodbye Despair
App serial: PCSB00514
App version: 1.00

Vita3K summary

Version: v0.1.8
Build number: 3323
Commit hash: https://github.com/vita3k/vita3k/commit/90255cdd
CPU backend: Dynarmic
GPU backend: Vulkan

Issues

Screenshots

Log
Recommended labels

playable
graphics bug
ingame +
vulkan issue

No open multiple issue for one game, update current exist


os/manual-rollbacks: Add note that arbitrary version selection is not supported

this PR has been moved to  #1034 . (I broke this one, and created 1034 to capture progress.)

closed superseded in https://github.com/coreos/docs/pull/1034


Improve filler value check for xml sub-types

Purpose
$subject
Fixes #35221
Approach
As per the spec, the only XML subtype that has a filler value is xml:Text. Currently, an empty XML value is added a filler value for all XML subtypes. This PR improves the filler value check for XML type depending on the subtype information.
Samples
    xml:Element[] x = [];
    x[1] = xml `<foo/>`;

This will throw the following runtime error after the fix.
error: {ballerina/lang.array}IllegalListInsertion {"message":"array of length 0 cannot be expanded into array of length 2 without filler values"}

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[x] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Patch coverage is 24.20%. Shall we check that. May be we need to sync with master

Patch coverage is 24.20%. Shall we check that. May be we need to sync with master

I'll merge with master and update


feat(app): Add support for claims in verifiable presentation flow android

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (c815e28) 89.10% compared to head (5d8f13b) 89.10%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #667   +/-   ##
=======================================
  Coverage   89.10%   89.10%
=======================================
  Files         103      103
  Lines        4150     4150
=======================================
  Hits         3698     3698
  Misses        308      308
  Partials      144      144

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


Compatibility Error

I am trying to use this:
<?php

require_once 'vendor/autoload.php';

$document = new Gt\Dom\HTMLDocument("<!doctype html>
Hello, World!
");
$h2 = $document->createElement("h2");
$h2->textContent = "Goodbye, World!";
$document->body->appendChild($h2);

echo $document;

But I get this error:
PS C:\Users\<username>\Downloads> php -f .\Untitled-2.php
PHP Fatal error:  Declaration of Gt\Dom\Document::isEqualNode(Gt\Dom\Node|Gt\Dom\Element|DOMNode $otherNode): bool must be compatible with DOMNode::isEqualNode(?DOMNode $otherNode): bool in C:\Users\<username>\Downloads\vendor\phpgt\dom\src\Document.php on line 341

Windows 10/PHP 8.3

Hi @superpoincare please can you let me know what version of this library you are using?

{
    "require": {
        "phpgt/dom": "^4.1"
    }
}

4.1 according to composer.json.
My bad. Somehow composer require didn't update to the latest version. But when I downloaded the repo and replaced the src folder, it started working. Should close the issue I guess.

Ah, that explains it. The latest release was made in order to fix this issue with the underlying libxml implementation, so I assumed there would be a version issue. Glad it's working fine for you now.
Feel free to ask any other questions you have here, I'm happy to help out where possible.


Fixed links to source code on GitHub from the documentation

With the current version, if you open e.g. this page, the ‹› links on the right side of the page will point to URLs like https://github.com/Python-Markdown/markdown/tree/3.6//home/runner/work/markdown/markdown/md/markdown/blockprocessors.py which are wrong (note the /home/runner/work/ part).
This commit fixes them by replacing filepath with relative_filepath. It seems to work locally for me, but needs to be tested on our main documentation website.

Thanks for this. I noticed the issue and hadn't yet had the opportunity to track it down.

I just did a manual deploy to update the documentation with the current master and this has resolved the issue. 👍


VS Scrollama

Hello, love your plugin Scrollama! I noticed a similar API, should we be using this framework instead?
Thank you :)

they have different goals - this library is quite literally what it sounds like, know when an element enters into the viewport. Scrollama is designed specifically for scroll-driven storytelling triggers with a few features/approaches tailored to that use case. They can be both be used for a lot of the same stuff with some different hacks and configurations since they are ultimately both more abstractly about detecting when an element is somewhere on the page.


Register Ballerina language for highlighting

Need to highlight code and syntax for Ballerina. This code can be found here:
The code for this can be found here: https://github.com/ballerina-platform/ballerina-www/blob/master/website/main-pages/ballerina.io-website-theme/js/ballerina-common.js#L79-L156

Currently code block displays as a single line when we use Ballerina syntax highlighting.

Resolved.


Extremely low "Elo" score or potential shadowban

Create new account
Use phone number because you didn't figure out how badly Tinder's email servers are overrun
Re-authenticate a lot of times in one day because of the above (delays of 5-10min)
Like about 800 profiles with a randomised delay between 2-3s and a rate of 72.5%
Don't get any matches whatsoever and be stuck at 4 likes

I guess either they fixed something, or this is some kind of filtering for newer profiles

Having the same problem here with a new account

They're always pretty strict on new Tinder accounts, opening a support ticket will remove you shadowban :)

Do you think? I mean, it's less noticeable than an actual ban, I'm not
even sure Tinder ever officially acknowledged the existence of
shadowbans. Anyway I started a new profile with a different phone number
and email and slightly altered photos, but I'm still having the same
issues (without having used Tinderbotz). I did use the same Google
account, which carried over the one month of Tinder Plus I purchased, so
that might be the issue. Or it's just that my profile is completely and
utterly unattractive, but I can't imagine it being so bad that it would
cause me to not receive a single like in 24h. I might just try this
though. Does anyone have any experience considering lifted shadowbans?
1 Apr 2021 14:59:12 Frederik @.***>:

They're always pretty strict on new Tinder accounts, opening a support
ticket will remove you shadowban :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on
GitHub[https://github.com/frederikme/TinderBotz/issues/31#issuecomment-811889447],
or
unsubscribe[https://github.com/notifications/unsubscribe-auth/ATO467VDKA4NFTJOBCNMQJLTGRUZXANCNFSM42CXE2ZQ].
[data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAkSURBVGiB7cExAQAAAMKg9U9tDQ+gAAAAAAAAAAAAAAAA4NQAMv0AAa3l6BAAAAAASUVORK5CYII=###24x24:true###][Tracking
image][https://github.com/notifications/beacon/ATO467VKHTBHGVRDK3TGAA3TGRUZXA5CNFSM42CXE2Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGBSHGJY.gif]

It was someone using the tinderbot as well whom informed me on instagram that opening a support ticket resolved the issue of having a shadowban for him.
I recommend opening a ticket and say that you noticed you haven't gotten any matches lately.

Alright, thanks for the tip. I've submitted a ticket now as you suggested
and will report back with my results. Do you think it might be safe to
use a bot after being un-shadowbanned? I personally would err on the side
of caution, but I'm still wondering.
2 Apr 2021 11:10:15 Frederik @.***>:

It was someone using the tinderbot as well whom informed me on
instagram that opening a support ticket resolved the issue of having a
shadowban for him.
I recommend opening a ticket and say that you noticed you haven't
gotten any matches lately.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on
GitHub[https://github.com/frederikme/TinderBotz/issues/31#issuecomment-812444306],
or
unsubscribe[https://github.com/notifications/unsubscribe-auth/ATO467WVJ245LFXAB7URWF3TGWCXFANCNFSM42CXE2ZQ].
[data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAkSURBVGiB7cExAQAAAMKg9U9tDQ+gAAAAAAAAAAAAAAAA4NQAMv0AAa3l6BAAAAAASUVORK5CYII=###24x24:true###][Tracking
image][https://github.com/notifications/beacon/ATO467SG63WSMY5R4JZBQXLTGWCXFA5CNFSM42CXE2Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGBWOVEQ.gif]

I'd personally think it's even safer now to use a bot, since (but this is pure speculation) you have been scratched off some kind of 'new accounts / possible bot'-list.

@revorch any update on the support ticket?

Oh yes, sorry. The issue doesn't seem to be resolved. I guess I'll
request deletion of my account and all data according to GDPR and wait
three months. Here's a copy of my ticket and the response for reference:
Hello [revorch],

Thanks for reaching out.

We're sorry to hear about the trouble you're experiencing. We've looked
at your account and everything seems to be working properly.

However, sometimes it’s only a matter of time! There are some things you
can do to help others notice your profile.

Try updating your photos, or turn on Smart Photos to make sure that
you’re always leading with the photo most likely to be swiped right.

Adding information to your bio could go a long way and will let potential
matches learn more about you. I’d also suggest connecting your Instagram
and Spotify accounts to your Tinder profile.

Also, please understand that you could see someone’s profile in your
recommendations again if they've deleted their account and decided to
come back, or if you've been swiping with poor cell reception.

I hope this is helpful! Please let me know if I can answer any other
questions.

Best,

Emily

[revorch]

To Whom It May Concern:

I've been having issues with both the discovery and matching/likes.
Specifically, since about 48 hours, I have not received a single like
according to the like teasers, despite having wide enough age and
distance settings and living right next to a few population centers, in
addition to a profile that shouldn't be absolutely appaling. Furthermore,
the discovery queue has not contained more than 3-4 people every time I
open the app. I would like to know if this could be a technical issue
resolvable on your end.

Sincerely
revorch

5 Apr 2021 22:46:27 Frederik @.***>:

@revorch[https://github.com/revorch] any update on the support ticket?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on
GitHub[https://github.com/frederikme/TinderBotz/issues/31#issuecomment-813639544],
or
unsubscribe[https://github.com/notifications/unsubscribe-auth/ATO467TMWPCG2E7PSKTMR7DTHIOR5ANCNFSM42CXE2ZQ].
[data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAkSURBVGiB7cExAQAAAMKg9U9tDQ+gAAAAAAAAAAAAAAAA4NQAMv0AAa3l6BAAAAAASUVORK5CYII=###24x24:true###][Tracking
image][https://github.com/notifications/beacon/ATO467WETUWY2BTEXZXJSG3THIOR5A5CNFSM42CXE2Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGB7SO6A.gif]


getting 400 without error message

Describe the bug
i am getting 400 without error message..
To Reproduce

fetch the latest update.
use the code  snippets provided

Code snippets
export class ChatGPTServiceImplemnt implements ChatGPTService {
  async sendMessage(message:string): Promise<string|undefined> {
    try {
      const respons = await openai.createChatCompletion({
        model: "gpt-3.5-turbo",
        messages: [{ role: "user", content: message }],
        temperature: 0,
        top_p: 1.0,
        n: 1,
        frequency_penalty: 0.0,
        presence_penalty: 0.0,
        stop: ["#", ";"],
      });
      return respons.data.choices[0].message?.content;
    } catch (error) {
      console.log(`this is the error from this ${error}`);
      throw error;
    }
  }
}

OS
macOs
Node version
v18.12.1
Library version
3.2.1

I have the same issue

now i am getting this error Request failed with status code 401

same with https://api.openai.com/v1/embeddings
message: Request failed with status code 400

same with https://api.openai.com/v1/embeddings message: Request failed with status code 400

can you push your code ?

im getting this error too

Our new v4 should include more helpful error messages. Please open a new issue if you run into continued problems with it.


feat(format): Add more canonical options

Adding canonical option names for URI, Username and Password.
This also adds these definitions to the Go and Java implementations along with the spec docs.

This got folded into 1.1.0, so I'm going to close this.


Bug delete be Configuration enable_storage_vectorization

Proposed changes
Issue Number: close #20419
delete be Configuration enable_storage_vectorization
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

build runall

1.2 branch not changed any more. because not many people report this error and we will remove it in 2.0


MissingResult State data is missing.

Occurs when a worker's memory overflows (with_get_dask_client is commented out)
import dask.dataframe
import dask.distributed
from prefect import flow, task
from prefect_dask import DaskTaskRunner, get_dask_client

client = dask.distributed.Client()

@task
def read_data(start: str, end: str) -> dask.dataframe.DataFrame:
    df = dask.datasets.timeseries(start, end, partition_freq="4w")
    return df

@task
def process_data(df) -> dask.dataframe.DataFrame:
    # with get_dask_client():
    df_yearly_avg = df.groupby(df.index.year).mean()
    return df_yearly_avg.compute()

@flow(task_runner=DaskTaskRunner(address=client.scheduler.address))
def dask_flow():
    df = read_data.submit("1988", "2022")
    df_yearly_average = process_data.submit(df)
    return df_yearly_average

dask_flow()

Logs:

15:23:47.601 | INFO    | Task run 'read_data-5bc97744-0' - Finished in state Completed()
2023-01-10 15:23:51,373 - distributed.nanny.memory - WARNING - Worker tcp://<IP_ADDRESS>:51660 (pid=5119) exceeded 95% memory budget. Restarting...
15:23:51.373 | WARNING | distributed.nanny.memory - Worker tcp://<IP_ADDRESS>:51660 (pid=5119) exceeded 95% memory budget. Restarting...
15:23:51.463 | INFO    | distributed.nanny - Worker process 5119 was killed by signal 15
15:23:51.465 | INFO    | distributed.core - Connection to tcp://<IP_ADDRESS>:51668 has been closed.
15:23:51.466 | INFO    | distributed.scheduler - Remove worker <WorkerState 'tcp://<IP_ADDRESS>:51660', name: 1, status: running, memory: 1, processing: 1>
15:23:51.466 | INFO    | distributed.core - Removing comms to tcp://<IP_ADDRESS>:51660
2023-01-10 15:23:51,469 - distributed.nanny - WARNING - Restarting worker
15:23:51.469 | WARNING | distributed.nanny - Restarting worker
15:23:51.890 | INFO    | distributed.scheduler - Register worker <WorkerState 'tcp://<IP_ADDRESS>:53762', name: 1, status: init, memory: 0, processing: 0>
15:23:51.892 | INFO    | distributed.scheduler - Starting worker compute stream, tcp://<IP_ADDRESS>:53762
15:23:51.893 | INFO    | distributed.core - Starting established connection to tcp://<IP_ADDRESS>:53765
15:23:52.804 | INFO    | Task run 'read_data-5bc97744-0' - Task run '9b5215ca-1822-4c6e-930d-34480fca578e' already finished.
15:23:53.025 | ERROR   | Task run 'process_data-090555ba-0' - Crash detected! Execution was interrupted by an unexpected exception: MissingResult: State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API.

2023-01-10 15:23:53,499 - distributed.worker - WARNING - Compute Failed
Key:       process_data-090555ba-0-fa34a3b0fd834a6aa2fd9ece3d2c233c-1
Function:  begin_task_run
args:      ()
kwargs:    {'task': <prefect.tasks.Task object at 0x10cc5b6d0>, 'task_run': TaskRun(id=UUID('fa34a3b0-fd83-4a6a-a2fd-9ece3d2c233c'), name='process_data-090555ba-0', flow_run_id=UUID('51a4a2f7-bdbe-4433-b54f-bb0b60b9e95a'), task_key='__main__.process_data', dynamic_key='0', cache_key=None, cache_expiration=None, task_version=None, empirical_policy=TaskRunPolicy(max_retries=0, retry_delay_seconds=0.0, retries=0, retry_delay=0, retry_jitter_factor=None), tags=[], state_id=UUID('3a84e6eb-1a87-487f-8956-7a268a8fb1c3'), task_inputs={'df': [TaskRunResult(input_type='task_run', id=UUID('9b5215ca-1822-4c6e-930d-34480fca578e'))]}, state_type=StateType.PENDING, state_name='Pending', run_count=0, flow_run_run_count=0, expected_start_time=DateTime(2023, 1, 10, 23, 23, 46, 173061, tzinfo=Timezone('+00:00')), next_scheduled_start_time=None, start_time=None, end_time=None, total_run_time=datetime.timedelta(0), estimated_run_time=datetime.timedelta(0), estimated_start_time_delta=datetime.timedelta(microseconds=41
Exception: "MissingResult('State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API.')"

15:23:53.499 | WARNING | distributed.worker - Compute Failed
Key:       process_data-090555ba-0-fa34a3b0fd834a6aa2fd9ece3d2c233c-1
Function:  begin_task_run
args:      ()
kwargs:    {'task': <prefect.tasks.Task object at 0x10cc5b6d0>, 'task_run': TaskRun(id=UUID('fa34a3b0-fd83-4a6a-a2fd-9ece3d2c233c'), name='process_data-090555ba-0', flow_run_id=UUID('51a4a2f7-bdbe-4433-b54f-bb0b60b9e95a'), task_key='__main__.process_data', dynamic_key='0', cache_key=None, cache_expiration=None, task_version=None, empirical_policy=TaskRunPolicy(max_retries=0, retry_delay_seconds=0.0, retries=0, retry_delay=0, retry_jitter_factor=None), tags=[], state_id=UUID('3a84e6eb-1a87-487f-8956-7a268a8fb1c3'), task_inputs={'df': [TaskRunResult(input_type='task_run', id=UUID('9b5215ca-1822-4c6e-930d-34480fca578e'))]}, state_type=StateType.PENDING, state_name='Pending', run_count=0, flow_run_run_count=0, expected_start_time=DateTime(2023, 1, 10, 23, 23, 46, 173061, tzinfo=Timezone('+00:00')), next_scheduled_start_time=None, start_time=None, end_time=None, total_run_time=datetime.timedelta(0), estimated_run_time=datetime.timedelta(0), estimated_start_time_delta=datetime.timedelta(microseconds=41
Exception: "MissingResult('State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API.')"

Traceback:
---------------------------------------------------------------------------
MissingResult                             Traceback (most recent call last)
Cell In[1], line 24
     21     df_yearly_average = process_data.submit(df)
     22     return df_yearly_average
---> 24 dask_flow()

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/flows.py:448, in Flow.__call__(self, return_state, wait_for, *args, **kwargs)
    444 parameters = get_call_parameters(self.fn, args, kwargs)
    446 return_type = "state" if return_state else "result"
--> 448 return enter_flow_run_engine_from_flow_call(
    449     self,
    450     parameters,
    451     wait_for=wait_for,
    452     return_type=return_type,
    453 )

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/engine.py:161, in enter_flow_run_engine_from_flow_call(flow, parameters, wait_for, return_type)
    157 elif in_async_main_thread():
    158     # An event loop is already running and we must create a blocking portal to
    159     # run async code from this synchronous context
    160     with start_blocking_portal() as portal:
--> 161         return portal.call(begin_run)
    162 else:
    163     # An event loop is not running so we will create one
    164     return anyio.run(begin_run)

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/anyio/from_thread.py:283, in BlockingPortal.call(self, func, *args)
    268 def call(
    269     self,
    270     func: Callable[..., Union[Coroutine[Any, Any, T_Retval], T_Retval]],
    271     *args: object
    272 ) -> T_Retval:
    273     """
    274     Call the given function in the event loop thread.
    275
   (...)
    281
    282     """
--> 283     return cast(T_Retval, self.start_task_soon(func, *args).result())

File ~/mambaforge/envs/dask/lib/python3.9/concurrent/futures/_base.py:446, in Future.result(self, timeout)
    444     raise CancelledError()
    445 elif self._state == FINISHED:
--> 446     return self.__get_result()
    447 else:
    448     raise TimeoutError()

File ~/mambaforge/envs/dask/lib/python3.9/concurrent/futures/_base.py:391, in Future.__get_result(self)
    389 if self._exception:
    390     try:
--> 391         raise self._exception
    392     finally:
    393         # Break a reference cycle with the exception in self._exception
    394         self = None

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/anyio/from_thread.py:219, in BlockingPortal._call_func(self, func, args, kwargs, future)
    216             else:
    217                 future.add_done_callback(callback)
--> 219             retval = await retval
    220 except self._cancelled_exc_class:
    221     future.cancel()

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/client/utilities.py:47, in inject_client.<locals>.with_injected_client(*args, **kwargs)
     45 async with client_context as new_client:
     46     kwargs.setdefault("client", new_client or client)
---> 47     return await fn(*args, **kwargs)

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/engine.py:244, in create_then_begin_flow_run(flow, parameters, wait_for, return_type, client)
    242     return state
    243 elif return_type == "result":
--> 244     return await state.result(fetch=True)
    245 else:
    246     raise ValueError(f"Invalid return type for flow engine {return_type!r}.")

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/states.py:89, in _get_state_result(state, raise_on_failure)
     84     raise PausedRun("Run paused.")
     86 if raise_on_failure and (
     87     state.is_crashed() or state.is_failed() or state.is_cancelled()
     88 ):
---> 89     raise await get_state_exception(state)
     91 if isinstance(state.data, DataDocument):
     92     result = result_from_state_with_data_document(
     93         state, raise_on_failure=raise_on_failure
     94     )

File ~/Applications/python/prefect-dask/prefect_dask/task_runners.py:269, in DaskTaskRunner.wait(self, key, timeout)
    267 future = self._get_dask_future(key)
    268 try:
--> 269     return await future.result(timeout=timeout)
    270 except distributed.TimeoutError:
    271     return None

File ~/Applications/python/test/distributed/distributed/client.py:296, in Future._result(self, raiseit)
    294 if raiseit:
    295     typ, exc, tb = exc
--> 296     raise exc.with_traceback(tb)
    297 else:
    298     return exc

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/engine.py:1303, in begin_task_run()
   1297     raise RuntimeError(
   1298         f"Cannot orchestrate task run '{task_run.id}'. "
   1299         f"Failed to connect to API at {client.api_url}."
   1300     ) from connect_error
   1302 try:
-> 1303     state = await orchestrate_task_run(
   1304         task=task,
   1305         task_run=task_run,
   1306         parameters=parameters,
   1307         wait_for=wait_for,
   1308         result_factory=result_factory,
   1309         log_prints=log_prints,
   1310         interruptible=interruptible,
   1311         client=client,
   1312     )
   1314     if not maybe_flow_run_context:
   1315         # When a a task run finishes on a remote worker flush logs to prevent
   1316         # loss if the process exits
   1317         OrionHandler.flush(block=True)

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/engine.py:1378, in orchestrate_task_run()
   1367 partial_task_run_context = PartialModel(
   1368     TaskRunContext,
   1369     task_run=task_run,
   (...)
   1373     log_prints=log_prints,
   1374 )
   1376 try:
   1377     # Resolve futures in parameters into data
-> 1378     resolved_parameters = await resolve_inputs(parameters)
   1379     # Resolve futures in any non-data dependencies to ensure they are ready
   1380     await resolve_inputs(wait_for, return_data=False)

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/engine.py:1671, in resolve_inputs()
   1668     # Only retrieve the result if requested as it may be expensive
   1669     return state.result(raise_on_failure=False, fetch=True) if return_data else None
-> 1671 return await run_sync_in_worker_thread(
   1672     visit_collection,
   1673     parameters,
   1674     visit_fn=resolve_input,
   1675     return_data=return_data,
   1676     max_depth=max_depth,
   1677     remove_annotations=True,
   1678     context={},
   1679 )

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/utilities/asyncutils.py:91, in run_sync_in_worker_thread()
     80 """
     81 Runs a sync function in a new worker thread so that the main thread's event loop
     82 is not blocked
   (...)
     88 thread may continue running — the outcome will just be ignored.
     89 """
     90 call = partial(__fn, *args, **kwargs)
---> 91 return await anyio.to_thread.run_sync(
     92     call, cancellable=True, limiter=get_thread_limiter()
     93 )

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/anyio/to_thread.py:31, in run_sync()
     10 async def run_sync(
     11     func: Callable[..., T_Retval],
     12     *args: object,
     13     cancellable: bool = False,
     14     limiter: Optional[CapacityLimiter] = None
     15 ) -> T_Retval:
     16     """
     17     Call the given function with the given arguments in a worker thread.
     18
   (...)
     29
     30     """
---> 31     return await get_asynclib().run_sync_in_worker_thread(
     32         func, *args, cancellable=cancellable, limiter=limiter
     33     )

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/anyio/_backends/_asyncio.py:937, in run_sync_in_worker_thread()
    935 context.run(sniffio.current_async_library_cvar.set, None)
    936 worker.queue.put_nowait((context, func, args, future))
--> 937 return await future

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/anyio/_backends/_asyncio.py:867, in run()
    865 exception: Optional[BaseException] = None
    866 try:
--> 867     result = context.run(func, *args)
    868 except BaseException as exc:
    869     exception = exc

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/utilities/collections.py:318, in visit_collection()
    316 elif typ in (dict, OrderedDict):
    317     assert isinstance(expr, (dict, OrderedDict))  # typecheck assertion
--> 318     items = [(visit_nested(k), visit_nested(v)) for k, v in expr.items()]
    319     result = typ(items) if return_data else None
    321 elif is_dataclass(expr) and not isinstance(expr, type):

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/utilities/collections.py:318, in <listcomp>()
    316 elif typ in (dict, OrderedDict):
    317     assert isinstance(expr, (dict, OrderedDict))  # typecheck assertion
--> 318     items = [(visit_nested(k), visit_nested(v)) for k, v in expr.items()]
    319     result = typ(items) if return_data else None
    321 elif is_dataclass(expr) and not isinstance(expr, type):

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/utilities/collections.py:264, in visit_nested()
    262 def visit_nested(expr):
    263     # Utility for a recursive call, preserving options and updating the depth.
--> 264     return visit_collection(
    265         expr,
    266         visit_fn=visit_fn,
    267         return_data=return_data,
    268         remove_annotations=remove_annotations,
    269         max_depth=max_depth - 1,
    270         # Copy the context on nested calls so it does not "propagate up"
    271         context=context.copy() if context is not None else None,
    272     )

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/utilities/collections.py:281, in visit_collection()
    278         return visit_fn(expr)
    280 # Visit every expression
--> 281 result = visit_expression(expr)
    283 if return_data:
    284     # Only mutate the expression while returning data, otherwise it could be null
    285     expr = result

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/utilities/collections.py:276, in visit_expression()
    274 def visit_expression(expr):
    275     if context is not None:
--> 276         return visit_fn(expr, context)
    277     else:
    278         return visit_fn(expr)

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/engine.py:1669, in resolve_input()
   1664     raise UpstreamTaskError(
   1665         f"Upstream task run '{state.state_details.task_run_id}' did not reach a 'COMPLETED' state."
   1666     )
   1668 # Only retrieve the result if requested as it may be expensive
-> 1669 return state.result(raise_on_failure=False, fetch=True) if return_data else None

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/client/schemas.py:107, in result()
     35 """
     36 Retrieve the result attached to this state.
     37
   (...)
    103     hello
    104 """
    105 from prefect.states import get_state_result
--> 107 return get_state_result(self, raise_on_failure=raise_on_failure, fetch=fetch)

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/states.py:74, in get_state_result()
     72         return state.data
     73 else:
---> 74     return _get_state_result(state, raise_on_failure=raise_on_failure)

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/utilities/asyncutils.py:226, in coroutine_wrapper()
    222     return async_fn(*args, **kwargs)
    223 elif in_async_worker_thread():
    224     # In a sync context but we can access the event loop thread; send the async
    225     # call to the parent
--> 226     return run_async_from_worker_thread(async_fn, *args, **kwargs)
    227 else:
    228     # In a sync context and there is no event loop; just create an event loop
    229     # to run the async code then tear it down
    230     return run_async_in_new_loop(async_fn, *args, **kwargs)

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/utilities/asyncutils.py:177, in run_async_from_worker_thread()
    172 """
    173 Runs an async function in the main thread's event loop, blocking the worker
    174 thread until completion
    175 """
    176 call = partial(__fn, *args, **kwargs)
--> 177 return anyio.from_thread.run(call)

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/anyio/from_thread.py:49, in run()
     46 except AttributeError:
     47     raise RuntimeError("This function can only be run from an AnyIO worker thread")
---> 49 return asynclib.run_async_from_thread(func, *args)

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/anyio/_backends/_asyncio.py:970, in run_async_from_thread()
    964 def run_async_from_thread(
    965     func: Callable[..., Coroutine[Any, Any, T_Retval]], *args: object
    966 ) -> T_Retval:
    967     f: concurrent.futures.Future[T_Retval] = asyncio.run_coroutine_threadsafe(
    968         func(*args), threadlocals.loop
    969     )
--> 970     return f.result()

File ~/mambaforge/envs/dask/lib/python3.9/concurrent/futures/_base.py:446, in result()
    444     raise CancelledError()
    445 elif self._state == FINISHED:
--> 446     return self.__get_result()
    447 else:
    448     raise TimeoutError()

File ~/mambaforge/envs/dask/lib/python3.9/concurrent/futures/_base.py:391, in __get_result()
    389 if self._exception:
    390     try:
--> 391         raise self._exception
    392     finally:
    393         # Break a reference cycle with the exception in self._exception
    394         self = None

File ~/mambaforge/envs/dask/lib/python3.9/site-packages/prefect/states.py:101, in _get_state_result()
     99         return await get_state_exception(state)
    100     else:
--> 101         raise MissingResult(
    102             "State data is missing. "
    103             "Typically, this occurs when result persistence is disabled and the "
    104             "state has been retrieved from the API."
    105         )
    107 else:
    108     # The result is attached directly
    109     result = state.data

MissingResult: State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API.

@ahuang11, @madkinsz  hello, Did you resolve this issue?
I have met the same issue :(
And it seems to be a little bit random, sometimes my flows are executed without this problem.


Check if serving all CSS styles from external file will improve page speed results

What is the motivation for adding / enhancing this feature?

Currently, we're outputting all the styles (extracted from Vue components) in the HTML - which
causes pretty huge HTML bundle (but also let us avoid additional network calls).
We could do a PoC of mini-css-extract-plugin and keep it as an option for the production mode compiles for users to just .. well uncomment in the webpack config or enable by VS configuration parameter
more on this:
https://forum.vuestorefront.io/t/remove-internal-css-from-page/579

Hi, I'll try to work on this during the hackathon 👍


ImportError: Building module benepar.chart_decoder failed: ["distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n"]

import benepar
/home/jhy/.pyxbld/temp.linux-x86_64-3.6/pyrex/benepar/chart_decoder.c:598:31: fatal error: numpy/arrayobject.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
File "/usr/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jhy/py3.6/lib/python3.6/site-packages/pyximport/pyximport.py", line 215, in load_module
inplace=build_inplace, language_level=language_level)
File "/home/jhy/py3.6/lib/python3.6/site-packages/pyximport/pyximport.py", line 191, in build_module
reload_support=pyxargs.reload_support)
File "/home/jhy/py3.6/lib/python3.6/site-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/jhy/py3.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/home/jhy/py3.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
self.build_extension(ext)
File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
depends=ext.depends)
File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/jhy/project/self-attentive-parser-master/benepar/init.py", line 6, in
from .nltk_plugin import Parser
File "/home/jhy/project/self-attentive-parser-master/benepar/nltk_plugin.py", line 4, in
from .base_parser import BaseParser, IS_PY2, STRING_TYPES, PTB_TOKEN_ESCAPE
File "/home/jhy/project/self-attentive-parser-master/benepar/base_parser.py", line 8, in
from . import chart_decoder
File "/home/jhy/py3.6/lib/python3.6/site-packages/pyximport/pyximport.py", line 462, in load_module
language_level=self.language_level)
File "/home/jhy/py3.6/lib/python3.6/site-packages/pyximport/pyximport.py", line 231, in load_module
raise exc.with_traceback(tb)
File "/home/jhy/py3.6/lib/python3.6/site-packages/pyximport/pyximport.py", line 215, in load_module
inplace=build_inplace, language_level=language_level)
File "/home/jhy/py3.6/lib/python3.6/site-packages/pyximport/pyximport.py", line 191, in build_module
reload_support=pyxargs.reload_support)
File "/home/jhy/py3.6/lib/python3.6/site-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/jhy/py3.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/home/jhy/py3.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
self.build_extension(ext)
File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
depends=ext.depends)
File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
ImportError: Building module benepar.chart_decoder failed: ["distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n"]

Do you have numpy already installed?