Cannot use toSql or subquery with innerJoin, joinEager?

Unable to use a query built with eagerOptions with innerJoin and joinEager ..
const search = 'something'

const query = Model.query()
  .eagerOptions({ joinOperation: 'innerJoin' })
  .joinEager('identity')

console.log(query.toSql()) // outputs 'This query cannot be built synchronously. Consider using debug() method instead.'

await Model.query()
  .count(this.Model.raw(1))
  .from(query.as('results'))
/*
Throws:
        "TypeError: Cannot read property 'columns' of null",
        "    at RelationJoinBuilder.buildSelects (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/operations/eager/RelationJoinBuilder.js:319:9)",
        "    at RelationJoinBuilder.doBuild (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/operations/eager/RelationJoinBuilder.js:218:12)",
        "    at RelationJoinBuilder.build (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/operations/eager/RelationJoinBuilder.js:72:10)",
        "    at JoinEagerOperation.onBuild (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/operations/eager/JoinEagerOperation.js:37:22)",
        "    at CustomQueryBuilder.executeOnBuild (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilderOperationSupport.js:259:11)",
        "    at CustomQueryBuilder.buildInto (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilderOperationSupport.js:232:10)",
        "    at buildInto (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilder.js:1275:25)",
        "    at CustomQueryBuilder.build (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilder.js:578:19)",
        "    at convertQueryBuilderBase (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/operations/ObjectionToKnexConvertingOperation.js:93:35)",
        "    at convertArgs (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/operations/ObjectionToKnexConvertingOperation.js:59:16)",
        "    at FromOperation.onBuild (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/operations/ObjectionToKnexConvertingOperation.js:25:17)",
        "    at CustomQueryBuilder.executeOnBuild (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilderOperationSupport.js:259:11)",
        "    at CustomQueryBuilder.buildInto (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilderOperationSupport.js:232:10)",
        "    at buildInto (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilder.js:1275:25)",
        "    at doExecute (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilder.js:1177:23)",
        "    at Promise.try.then (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilder.js:595:19)",
        "    at runCallback (timers.js:781:20)",
        "    at tryOnImmediate (timers.js:743:5)",
        "    at processImmediate [as _immediateCallback] (timers.js:714:5)",
        "From previous event:",
        "    at CustomQueryBuilder.execute (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilder.js:595:8)",
        "    at CustomQueryBuilder.then (/Users/heisian/Web/ethos/ethos/node_modules/objection/lib/queryBuilder/QueryBuilder.js:501:26)"
*/

Actually, can't reproduce this when doing the same thing in the node REPL, so may be app logic-related.. closing until further notice..

Strange.. seems to be non-deterministic behaviour, as a successive session in the NODE repl produces the error again:
> db.TermPolicy.query().eagerOptions({ joinOperation: 'innerJoin' }).joinEager('identity').toSql()
'This query cannot be built synchronously. Consider using debug() method instead.'

joinEager makes no  sens as a subquery. You should use joinRelation instead.

I'm not sure I agree, because below is the SQL string generated by Objection/Knex placed inside a SELECT .. FROM(...) as a subquery:
SELECT COUNT(1) FROM (
SELECT     "policy"."term_policies"."id"                       AS "id",
           "policy"."term_policies"."identity_id"              AS "identity_id",
           "policy"."term_policies"."carrier"                  AS "carrier",
           "policy"."term_policies"."carrier_status"           AS "carrier_status",
           "policy"."term_policies"."carrier_case_id"          AS "carrier_case_id",
           "policy"."term_policies"."carrier_policy_number"    AS "carrier_policy_number",
           "policy"."term_policies"."carrier_data"             AS "carrier_data",
           "policy"."term_policies"."docusign_status"          AS "docusign_status",
           "policy"."term_policies"."docusign_envelope_id"     AS "docusign_envelope_id",
           "policy"."term_policies"."purpose_of_insurance"     AS "purpose_of_insurance",
           "policy"."term_policies"."intent_to_sell"           AS "intent_to_sell",
           "policy"."term_policies"."manual_underwriting"      AS "manual_underwriting",
           "policy"."term_policies"."manual_state_replacement" AS "manual_state_replacement",
           "policy"."term_policies"."payment_plan"             AS "payment_plan",
           "policy"."term_policies"."client_data"              AS "client_data",
           "policy"."term_policies"."object_id"                AS "object_id",
           "policy"."term_policies"."created_at"               AS "created_at",
           "policy"."term_policies"."updated_at"               AS "updated_at",
           "policy"."term_policies"."case_created_at"          AS "case_created_at",
           "policy"."term_policies"."submitted_at"             AS "submitted_at",
           "policy"."term_policies"."carrier_submitted_at"     AS "carrier_submitted_at",
           "policy"."term_policies"."approved_at"              AS "approved_at",
           "policy"."term_policies"."issued_at"                AS "issued_at",
           "policy"."term_policies"."activated_at"             AS "activated_at",
           "policy"."term_policies"."effective_at"             AS "effective_at",
           "policy"."term_policies"."expires_at"               AS "expires_at",
           "policy"."term_policies"."closed_at"                AS "closed_at",
           "policy"."term_policies"."deleted_at"               AS "deleted_at",
           "policy"."term_policies"."close_reason"             AS "close_reason",
           "policy"."term_policies"."intent_to_sell_agreement" AS "intent_to_sell_agreement",
           "identity"."id"                                     AS "identity:id",
           "identity"."user_id"                                AS "identity:user_id",
           "identity"."primary"                                AS "identity:primary",
           "identity"."name_first"                             AS "identity:name_first",
           "identity"."name_middle"                            AS "identity:name_middle",
           "identity"."name_last"                              AS "identity:name_last",
           "identity"."gender"                                 AS "identity:gender",
           "identity"."birth_date"                             AS "identity:birth_date",
           "identity"."birth_country"                          AS "identity:birth_country",
           "identity"."created_at"                             AS "identity:created_at",
           "identity"."updated_at"                             AS "identity:updated_at",
           "identity"."deleted_at"                             AS "identity:deleted_at",
           "identity"."allow_lead_share"                       AS "identity:allow_lead_share",
           "identity"."birth_state"                            AS "identity:birth_state",
           "identity:user"."id"                                AS "identity:user:id",
           "identity:user"."lead_id"                           AS "identity:user:lead_id",
           "identity:user"."password"                          AS "identity:user:password",
           "identity:user"."object_id"                         AS "identity:user:object_id",
           "identity:user"."lead_object_id"                    AS "identity:user:lead_object_id",
           "identity:user"."referrer_object_id"                AS "identity:user:referrer_object_id",
           "identity:user"."created_at"                        AS "identity:user:created_at",
           "identity:user"."updated_at"                        AS "identity:user:updated_at",
           "identity:user"."deleted_at"                        AS "identity:user:deleted_at",
           "identity:user:emails"."id"                         AS "identity:user:emails:id",
           "identity:user:emails"."user_id"                    AS "identity:user:emails:user_id",
           "identity:user:emails"."email"                      AS "identity:user:emails:email",
           "identity:user:emails"."primary"                    AS "identity:user:emails:primary",
           "identity:user:emails"."verified"                   AS "identity:user:emails:verified",
           "identity:user:emails"."created_at"                 AS "identity:user:emails:created_at",
           "identity:user:emails"."updated_at"                 AS "identity:user:emails:updated_at",
           "identity:user:emails"."deleted_at"                 AS "identity:user:emails:deleted_at"
FROM       "policy"."term_policies"
inner join
           (
                  SELECT "identity"."identities".*
                  FROM   "identity"."identities"
                  WHERE  Concat_ws(' ', name_first, name_last) ilike '%tim%'
                  OR     concat_ws(' ', name_first, name_middle, name_last) ilike '%tim%') AS "identity"
ON         "identity"."id" = "policy"."term_policies"."identity_id"
inner join "auth"."users" AS "identity:user"
ON         "identity:user"."id" = "identity"."user_id"
inner join
           (
                  SELECT "auth"."emails".*
                  FROM   "auth"."emails"
                  WHERE  "email" ilike '%tim%') AS "identity:user:emails"
ON         "identity:user:emails".user_id = "identity:user".id
WHERE      "policy"."term_policies"."deleted_at" IS NULL
ORDER BY   "policy"."term_policies"."updated_at" DESC
) AS results;

The subquery was a direct copy from the debug output of my joinEager query being run.

Additionally, your response doesn't explain why toSql() fails, and I'm not sure how to get any visibility beyond the stack-traceless This query cannot be built synchronously. Consider using debug() method instead. error.

Also, the issue with joinRelation is that it places the related data in the top level of the returned object.

toSql should only be used for debugging. Interpolating a query in SQL is dangerous because no escaping is done. Your queries will be very prone to injection attacks.
joinEager basically runs leftJoinRelation and in addition to that, it builds the select clauses so that the data can be parsed into a tree structure. The select clause building requires a metadata query, which cannot be ran synchronously. That's why toSql doesn't work. But you should not be using it anyways. I should probably remove the method.

Each SQL join "places the data on the top level of the query". joinEager simply parses that data into a tree structure, but since you are using it as a subquery, the result data never reaches your application. No parsing is done ever.

Got it - so there's essentially not an easy way to retrieve the record count of this (semi) complex join without writing raw SQL. Which is what I wanted toSql for.
I understand the sanitization aspects of the method - but if my only option here to get the COUNT of this join is to run raw SQL, it seems that is what I must do, unless you have another suggestion.

And for the record, this does work:
TermPolicy.query()
  .eagerOptions({ joinOperation: 'innerJoin' })
  .joinEager('identity')
  .context({
    onBuild: (b) => { process.stdout.write(b.toSql()) }
  })

Outputs
select "policy"."term_policies"."id" as "id", "policy"."term_policies"."identity_id" as "identity_id", "policy"."term_policies"."carrier" as "carrier", "policy"."term_policies"."carrier_status" as "carrier_status", "policy"."term_policies"."carrier_case_id" as "carrier_case_id", "policy"."term_policies"."carrier_policy_number" as "carrier_policy_number", "policy"."term_policies"."carrier_data" as "carrier_data", "policy"."term_policies"."docusign_status" as "docusign_status", "policy"."term_policies"."docusign_envelope_id" as "docusign_envelope_id", "policy"."term_policies"."purpose_of_insurance" as "purpose_of_insurance", "policy"."term_policies"."intent_to_sell" as "intent_to_sell", "policy"."term_policies"."manual_underwriting" as "manual_underwriting", "policy"."term_policies"."manual_state_replacement" as "manual_state_replacement", "policy"."term_policies"."payment_plan" as "payment_plan", "policy"."term_policies"."client_data" as "client_data", "policy"."term_policies"."object_id" as "object_id", "policy"."term_policies"."created_at" as "created_at", "policy"."term_policies"."updated_at" as "updated_at", "policy"."term_policies"."case_created_at" as "case_created_at", "policy"."term_policies"."submitted_at" as "submitted_at", "policy"."term_policies"."carrier_submitted_at" as "carrier_submitted_at", "policy"."term_policies"."approved_at" as "approved_at", "policy"."term_policies"."issued_at" as "issued_at", "policy"."term_policies"."activated_at" as "activated_at", "policy"."term_policies"."effective_at" as "effective_at", "policy"."term_policies"."expires_at" as "expires_at", "policy"."term_policies"."closed_at" as "closed_at", "policy"."term_policies"."deleted_at" as "deleted_at", "policy"."term_policies"."close_reason" as "close_reason", "policy"."term_policies"."intent_to_sell_agreement" as "intent_to_sell_agreement", "identity"."id" as "identity:id", "identity"."user_id" as "identity:user_id", "identity"."primary" as "identity:primary", "identity"."name_first" as "identity:name_first", "identity"."name_middle" as "identity:name_middle", "identity"."name_last" as "identity:name_last", "identity"."gender" as "identity:gender", "identity"."birth_date" as "identity:birth_date", "identity"."birth_country" as "identity:birth_country", "identity"."created_at" as "identity:created_at", "identity"."updated_at" as "identity:updated_at", "identity"."deleted_at" as "identity:deleted_at", "identity"."allow_lead_share" as "identity:allow_lead_share", "identity"."birth_state" as "identity:birth_state" from "policy"."term_policies" inner join "identity"."identities" as "identity" on "identity"."id" = "policy"."term_policies"."identity_id"

Also I don't understand why you don't just do this:
const query = Model.query()
  .joinRelation('identity')
  .count()

you don't need the subquery. If you think using the subquery will cause the query to count the non-flattened results, you are wrong. The non-flattening is done in the javascript side. There is no way to return anything but flat rows from the database.

You should probably try running those queries using a pgadmin, psql or some other tool and you'd see what kind of data joins always return.

Yes, I've already run the queries against my db via the psql console and verified that everything I wrote works. BTW pgadmin is terrible, https://pgmodeler.io is much better.

@koskimas

it is excatly the same subquery in all possible ways
Makes sense, I get it now, thank you

you don't need the subquery. If you think using the subquery will cause the query to count the non-flattened results, you are wrong. The non-flattening (turning flat rows into a tree structure) is done in the javascript side. There is no way to return anything but flat rows from the database.

Yup, I was ignoring that fact and only thinking in the ORM context without connecting the dots of what the actual results are - thanks for that.

@koskimas And actually using the filters byIdentity and byEmail to create subqueries with the joins as in the SQL I posted produced incorrect results - so because of your explanation it now works better than before - thanks for your patience and I apologize for my own confusion.


Flutter 3.0 error

I think this is a new error after upgrading to flutter 3.0. when i downgrade to flutter 2.10.5 the error goes away. is this new request permissions something new in flutter 3?
`
Flutter 3.0.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ee4e09cce0 (7 days ago) • 2022-05-09 16:45:18 -0700
Engine • revision d1b9a6938a
Tools • Dart 2.17.0 • DevTools 2.12.2
Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.0, on Microsoft Windows [Version 10.0.19044.1706], locale en-US)
X cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.14)
[√] Android Studio (version 2021.1)
[√] VS Code (version 1.67.1)
[√] Connected device (3 available)
[√] HTTP Host Availability
! Doctor found issues in 1 category.
PS C:\Users\sirca\OneDrive\Documents\GitHub\tw_food2> flutter run -d emulator-5554
No supported devices found with name or id matching 'emulator-5554'.
The following devices were found:
Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1706]
Chrome (web)      • chrome  • web-javascript • Google Chrome 101.0.4951.54
PS C:\Users\sirca\OneDrive\Documents\GitHub\tw_food2> flutter run -d emulator-5554
Using hardware rendering with device sdk gphone64 x86 64. If you notice graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
e: C:\Users\sirca\Downloads\flutter_windows_2.10.5-stable\flutter.pub-cache\hosted\pub.dartlang.org\tflite_flutter_helper-0.3.1\android\src\main\kotlin\com\tfliteflutter\tflite_flutter_helper\TfliteFlutterHelperPlugin.kt: (43, 1): Class 'TfliteFlutterHelperPlugin' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
e: C:\Users\sirca\Downloads\flutter_windows_2.10.5-stable\flutter.pub-cache\hosted\pub.dartlang.org\tflite_flutter_helper-0.3.1\android\src\main\kotlin\com\tfliteflutter\tflite_flutter_helper\TfliteFlutterHelperPlugin.kt: (143, 2): 'onRequestPermissionsResult' overrides nothing
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':tflite_flutter_helper:compileDebugKotlin'.

Compilation error. See log for more details

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full
insights.

Get more help at https://help.gradle.org

BUILD FAILED in 8s
Running Gradle task 'assembleDebug'...                              8.8s
Exception: Gradle task assembleDebug failed with exit code 1`

#58 I opened a PR with fix.

Having the same issue...

#58 I opened a PR with fix.
You can use this fork until my PR is merged.
tflite_flutter_helper:
    git:
      url: https://github.com/filofan1/tflite_flutter_helper.git
      ref: 783f15e5a87126159147d8ea30b98eea9207ac70

thanks for the fix! I tried out your github PR and the issue went away.
now the issue for me is that tflite_flutter_helper depends on camera ^0.8.1+3, which doesnt compile in flutter 3!

This issue did not occur for me.
Have You tried running flutter pub upgrade ?

@filofan1 same here, camera 0.8.1+7 fails to build to on fresh flutter install

@filofan1 I forked your fork and updated camera dependency.
Everything seems to compile and work fine.
https://github.com/elephantum/tflite_flutter_helper/commit/a7d7a59a33f7cffa0a2a12ab05625807622cc97a

@sircambridge you can try
  url: https://github.com/elephantum/tflite_flutter_helper.git
  ref: a7d7a59a33f7cffa0a2a12ab05625807622cc97a

@elephantum Nice
Thanks for the update.

@sircambridge you can try
  url: https://github.com/elephantum/tflite_flutter_helper.git
  ref: a7d7a59a33f7cffa0a2a12ab05625807622cc97a

thanx man.

@elephantum Nice Thanks for the update.

GeneratedPluginRegistrant.java:121: error: cannot find symbol
flutterEngine.getPlugins().add(new com.tfliteflutter.tflite_flutter_helper.TfliteFlutterHelperPlugin());
^
symbol:   class TfliteFlutterHelperPlugin
location: package com.tfliteflutter.tflite_flutter_helper
1 error
FAILURE: Build failed with an exception.
android 12 failed

@sircambridge you can try
  url: https://github.com/elephantum/tflite_flutter_helper.git
  ref: a7d7a59a33f7cffa0a2a12ab05625807622cc97a

Thank you! This works on Flutter 3.3.9, camera 0.9.8+1, Android 13 (33), and iOS 16.1. Cool.

Kindly help. The above comments did not work for me.

After downloading the package from git, and directing pubspec.yaml to the local copy, pubspec run successfully but again got this error

FAILURE: Build failed with an exception.

What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':tflite_flutter_helper' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 1s
Exception: Gradle task assembleDebug failed with exit code 1

Try to change the ext.kotlin_version to 1.7.10 in the tflite_flutter_helper's build.gradle
which should be in %LOCALAPPDATA%\Pub\Cache\hosted\tflite_flutter_helper or if u use git it's in \Cache\git\tflite_flutter_helperxxx
(For Mac or Linux is $HOME/. pub-cache)


Review SI deployment docs

The SI deployment docs in API-M and its structure needs to be reviewed.

Need SME help to get the SI deployment docs reviewed.


Improve on WCAG "Perceivable" category - a11y audit

Go through the following criteria for WCAG's Perceivable section and improve their issues to meet WCAG requirements:
Level A

1.1.1 Non-text Content:

[x] Let's get alt tags onto the thumbnails of the board members listing page table. The committee pages have listing tables and those have alt tags
[x] Figure out an accessible alternative to the maps on person detail pages. I've tried adding an alt tag to the map div directly, but VoiceOver didn't read it. Maybe using a caption underneath?
[x] The Metro logo in the nav needs an empty alt tag
[x] The DataMade logo on the About Us page needs an alt
[x] Many icons have an aria-hidden attribute for screen readers, but double check that all of them are taken care of, or given a label if screen readers do need to see them.

1.3.1 Info and Relationships:

[x] Various "Show More/Less" buttons can use the vocabulary of the thing they’re manipulating to make it clearer. Some people navigate using a list of all buttons or links on a page or view, so they might not encounter the surrounding context.
[x] Maybe under the board members listing page, the list of links of meetings that just say “Regular Board Meeting” can also include the date in the link?
[x] Change search results to use ul tags. Here's a relevant SO answer
[x] The a tags that are being used by the board members listing page and the search tooltip don't have an href attribute. We can just put #. Also check the rest of the a tags on the site.

1.3.3 Sensory Characteristics:

[x] Instructions use positional words like “below”. Positions can’t easily be determined by screen readers, so we can try using different language there.

1.4.1 Use of Color:

[x] We have a lot of links that are identified solely by color, we should consider making them distinct if, say, the user saw the page in grayscale. Changing the lightness of the links or marking them with underlines would be potential solutions. Though I'm not sure if having every one of those be underlined would look great.

Level AA

1.4.3 Contrast (Minimum) (This section might be a fix as you go situation, but here's some places to start):

[x] Text color for links don't have enough contrast, including the ones in the index hero section
[x] Same for text color for search facet numbers
[x] Same for the background color of primary buttons, including the ones in the index hero section
[x] The facet section headers in the search results page also fail, but those can be bumped up to 14pt to make them pass
[x] Regular text font also doesn't pass. All regular gray fonts can be changed from #777777 to #6B6B6B and be okay when they're against other gray or white bg’s

1.4.11 Non-text Contrast:

[x] UI/button contrast issues are described in 1.4.3

1.4.13 Content on Hover or Focus:

[x]  Text in the tooltip on the home search bar cannot be hovered over because moving away from the icon despawns it. The map tooltip persists, so maybe take some cues from that?

Connected to #1012

Closed by #1042


Feature/fix save as es lint warnings

fix save as esLint warnings added by [590e6be335a0fe3e8d95be4028178b531249a348]

Coverage remained the same at 3.856% when pulling 3dd6726e2c585ec7d48d355578c182b9e00cd864 on adreyfus:feature/fix_saveAs_esLint_Warnings into 339f877d45cb953f05dc79d30df7f60a8fb9515c on chafey:master.


sourcemap

Describe the feature
Has the problem of sourcemap not been resolved yet? Is there any good way? I don't know much about this part. I tried to turn on the sourcemap option of esbuild and commonjs, but it didn't work.
Additional information

[X] Would you be willing to help implement this feature?

Hi. I have moved it to #236 to track progress and move to the top.


Add Replicate demo and API

Hey @jquesnelle  ! 👋
Very cool implementation of getting high-resolution images from stable-diffusion!
This pull request makes it possible to run your model inside a Docker environment, which makes it easier for other people to run it.  We're using an open source tool called Cog to make this process easier.
This also means we can make a web page where other people can run your model! View it here: https://replicate.com/cjwbw/stable-diffusion-high-resolution
Replicate also have an API, so people can easily run your model from their code:
import replicate
model = replicate.models.get("cjwbw/stable-diffusion-high-resolution")
output = model.predict(prompt="...")

You are more than welcome to modify and update new versions to the Replicate page, let me know and I can transfer ownership to your Replicate account.
In case you're wondering who I am, I'm from Replicate, where we're trying to make machine learning reproducible. We got frustrated that we couldn't run all the really interesting ML work being done. So, we're going round implementing models we like. 😊

Hey, interesting project! Thanks for helping make this more accessible 🙂


yahoo_finance.py errors out in initialization

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
Using hassio 0.51.2 (HA 0.52.0 not yet available...)
Python release (python3 --version):
Component/platform:
yahoo_finance
Description of problem:
Getting errors for several days.  See traceback
Expected:
Problem-relevant configuration.yaml entries and steps to reproduce:
- platform: yahoo_finance
  symbols:
    - S
    - AAPL
    - GOOGL

No longer works, errors out during initialization

Traceback (if applicable):
2017-08-26 10:01:16 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform yahoo_finance
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/yahoo_finance.py", line 52, in setup_platform
    data = YahooFinanceData(symbol)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/yahoo_finance.py", line 119, in __init__
    self.stock = Share(self._symbol)
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 178, in __init__
    self.refresh()
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 142, in refresh
    self.data_set = self._fetch()
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 181, in _fetch
    data = super(Share, self)._fetch()
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 134, in _fetch
    data = self._request(query)
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 118, in _request
    response = yql.YQLQuery().execute(query)
  File "/usr/lib/python3.6/site-packages/yahoo_finance/yql.py", line 61, in execute
    'env': DATATABLES_URL
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

Additional info:

Added the component (also Hass.io .51.2) and can confirm the same error.

Seems to be an issue with the module we use:
$ python3
>>> from yahoo_finance import Share
>>> yahoo = Share('YHOO')
[...]
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

The errors are back!
2017-11-03 22:17:05 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform yahoo_finance
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 120, in _request
    _, results = response['query']['results'].popitem()
AttributeError: 'NoneType' object has no attribute 'popitem'

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 123, in _request
    raise YQLQueryError(response['error']['description'])
KeyError: 'error'

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 170, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/yahoo_finance.py", line 49, in setup_platform
    if Share(symbol).get_price() is None:
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 178, in __init__
    self.refresh()
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 142, in refresh
    self.data_set = self._fetch()
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 181, in _fetch
    data = super(Share, self)._fetch()
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 134, in _fetch
    data = self._request(query)
  File "/usr/lib/python3.6/site-packages/yahoo_finance/__init__.py", line 125, in _request
    raise YQLResponseMalformedError()
yahoo_finance.YQLResponseMalformedError: Response malformed.

#10873 is a replacement.


Collapsible table

via @sandruparo
Design

design URL
Features

Ability to collapse / expand a particular row
Ability to collapse all
Tags column support
Text color column support

Needs discussion: How important is the row collapse / expand icon with the lines design (img below) as opposed to default Fluent one? Asking since it is not impossible, but can take more time.
@lo5 I feel like this could be just an extension to our existing ui.table component. Wdyt? This way, we could leverage search / sort / filter and even maybe download if that makes sense. The table would display normal / grouped mode based on data provided - either rows or a new prop groups that would contain rows per each group.

Yeah, I would stick to the Fluent table in the interest of time, including expand/collapse behavior, in the interest of time. Also, we should do a design review before implementation (for instance, the expand/collapse controls are far too low-contrast - almost invisible to me).

@lo5 there are 2 ways we can tackle this API-wise when integrating to our existing ui.table component.
The Fluent way
The Fluent tackles this via decoupling data rows and groups completely. Each group has to specify a start (startIndex) and end index (count) so that Fluent knows how many rows should the group span. However, I consider this API to be a bit of mental gymnastics when it comes to real world scenarios. If we take this road, the API would look like
/**
 * Make rows within table collapsible / expandable.
 *
 * This type of table is best used for cases when your data
 */
interface Group {
  /** The title of the group. */
  label: S
  /** Index of the first row to be included within this group. */
  start_index: U
  /** Index of the last row to be included within this group. */
  end_index: U
}

export interface Table {
  /** An identifying name for this component. */
  name: Id
  /** The columns in this table. */
  columns: TableColumn[]
  /** The rows in this table. */
  rows: TableRow[]
  /** True to allow multiple rows to be selected. */
  multiple?: B
  /** True to allow group by feature. */
  groupable?: B
  /** Indicates whether the contents of this table can be downloaded and saved as a CSV file. Defaults to False. */
  downloadable?: B
  /** Indicates whether a Reset button should be displayed to reset search / filter / group-by values to their defaults. Defaults to False. */
  resettable?: B
  /** The height of the table, e.g. '400px', '50%', etc. */
  height?: S
  /** The width of the table, e.g. '100px'. Defaults to '100%'. */
  width?: S
  /** The names of the selected rows. If this parameter is set, multiple selections will be allowed (`multiple` is assumed to be `True`). */
  values?: S[]
  /** Controls visibility of table rows when `multiple` is set to `True`. Defaults to 'on-hover'. */
  checkbox_visibility?: 'always' | 'on-hover' | 'hidden'
  /** True if the component should be visible. Defaults to true. */
  visible?: B
  /** An optional tooltip message displayed when a user clicks the help icon to the right of the component. */
  tooltip?: S
  /** Creates collapsible / expandable groups of data rows. */
  groups?: Group[]
}

Alternative
A better alternative from DX perspective would probably be to couple groups with data.
/**
 * Make rows within table collapsible / expandable.
 *
 * This type of table is best used for cases when your data makes sense to be presented in chunks rather than  a single flat list.
 */
interface Group {
  /** The title of the group. */
  label: S
  /** The rows in this group. */
  rows: TableRow[]
}

export interface Table {
  /** An identifying name for this component. */
  name: Id
  /** The columns in this table. */
  columns: TableColumn[]
  /** The rows in this table. */
  rows: TableRow[]
  /** True to allow multiple rows to be selected. */
  multiple?: B
  /** True to allow group by feature. */
  groupable?: B
  /** Indicates whether the contents of this table can be downloaded and saved as a CSV file. Defaults to False. */
  downloadable?: B
  /** Indicates whether a Reset button should be displayed to reset search / filter / group-by values to their defaults. Defaults to False. */
  resettable?: B
  /** The height of the table, e.g. '400px', '50%', etc. */
  height?: S
  /** The width of the table, e.g. '100px'. Defaults to '100%'. */
  width?: S
  /** The names of the selected rows. If this parameter is set, multiple selections will be allowed (`multiple` is assumed to be `True`). */
  values?: S[]
  /** Controls visibility of table rows when `multiple` is set to `True`. Defaults to 'on-hover'. */
  checkbox_visibility?: 'always' | 'on-hover' | 'hidden'
  /** True if the component should be visible. Defaults to true. */
  visible?: B
  /** An optional tooltip message displayed when a user clicks the help icon to the right of the component. */
  tooltip?: S
  /** Creates collapsible / expandable groups of data rows. Mutually exclusive with `rows` attr. */
  groups?: Group[]
}

Note that with this API, the groups prop is mutually exclusive with rows.
Please, let me know what you think about this ^^.

I like the alternative proposal.

Taking pagination and server-side (#730 #646) of things coming in the future, I feel like decoupling the rows from groups (like Fluent does) is the way to go since it will allow us to have just a single source of truth data-wise.

We can document that groups will be ignored if automatic pagination is turned on. Grouping might not make sense combined with pagination anyway. This way we'll have a more intuitive API in the non-paginated case instead of making grouping painful all the time.


Allow custom self-clsoing tags

Is there some solution to use custom self-closing tags more than img, br, hr and so on)?

Like <CustomComponent /> or <div /> or <x-something-we-component />?

Right, or when dealing with generating x(ht)ml.

For example instead of <img ... /> I want to generate the string <f:image ... /> (Fluid template engine for TYPO3).

@DanielRuf are you rendering using preact, or preact-render-to-string?  preact doesn't have a list of self-closing tags, but here's preact-render-to-string's list.

Ah, that makes sense. Thanks for the hint.


Suggestion to improve the bidding when error 461 occurs

I noticed that when error 461 occurs the auction is then lost almost all the times. I think that this is due to the fact that somebody else has already placed a bid higher than the bot, during the time between operations, which is quite high unless one increases the RPM a lot.
Maybe a good strategy could be that, right after a 461, the bot looks immediately (bypassing the rpm cycle) for the current bid and places immediately an appropriate bid?
What do you think, @hunterjm ?

in my hopinion this feature make a serious risk of ban

yes that's possible, maybe an intermediate solution would be to give priority to the auction that gets a 461, in the sense that the next action of the bot (while respecting the rpm time) would be to update that auction and then bid on that. This shouldn't make a huge difference in terms of risk of ban, since the action would be delayed normally, it would just get priority with respect to other actions that the bot wants to perform...

This should actually be fixed in the latest version as well. Right before a bid action is made, we immediately refresh the current status of the trade.
The AB still waits based on the RPM before attempting to bid, but the current price is updated. The Web app already does this, so we should be ok on the ban front.


Chef Infra Server test matrix

Confidence that Chef Infra Server and Automate Infra API distributions do not contain regressions
Automated testing for the different topologies of Chef Infra Server.
The supported topologies for chef-server are:

Standalone
Tiered
External Postgres
External elasticsearch

The supported configurations are:

FIPS
With SSL for external postgres or elasticsearch
With Addons (manage + push-jobs)
Ipv6
Ldap

Please find more details in: https://docs.google.com/document/d/1l4fOu_zohLvWjKTFYs3-lgyqWzDwJ7WK35Eehj-DFs4/edit
A cross matrix of with scenarios from above topologies and configurations: (Sheet: test release plan) https://docs.google.com/spreadsheets/d/1_gwxdrMnUiV8t2noi8zs1HyGivtIGMEx9KbYriIw7BY/edit#gid=1411321437
Acceptance Criteria:

Developer / Release engineer is able to run a test suite testing different topologies in various configurations easily before release.
The tests give a clear indication incase of a failure with a certain topology or configuration.
The infrastructure is modular, it is easy to add/ change scenarios for testing. (A scenario is a combination of topologies and configurations)
If possible there is an ease of updating the package to stable after the test suite is run.
The pipeline can be run once a week perhaps or when desired?

Aha! Link: https://chef.aha.io/epics/CHEF-E-64

The integration tests have been in place for some time with the exception of habitat artifacts.
Testing of habitat artifacts will be tracked in #1744


Can you please Explain me three things : SpreadEntry, Spread Target, Trailing spread? & Why spread > 100 %

Hi I am attaching a screenshot of blackbird in demo mode. I dont understand why is Poloniex/Bitfinex spread so large and what does min max mean here? Is it that Min spread which should pe there before we start trading something like that? And what does Spread Entry, Target, trailing spread mean? Help would be really appreciated.

Poloniex shouldn't been shown in Demo mode when the legs are USD/BTC. I'll fix that.
The parameters are explained on the README file.

Why only bitfinex supports short and not other platforms, do you have an idea about this?

I cannot reproduce your issue with Poloniex showed in Demo mode, at least not with the current version.
Other platforms now support short selling, but Bitfinex was the first one. Moreover, the short selling is easily accessible through their API, which is not always the case with other exchanges.
I don't think I understand your other questions. Please see #100 for more information about the mechanism implemented.

Okay Thanks I get it now.
Thanks for the link, i read it earlier only and it's a hats off to this project. Maybe i have framed it incorrectly, I read it somewhere in the issues that blackbird waits if the spread keeps increasing. Tell me if i understand this correctly or not :

Before entering any trade, Blackbird checks for threshold target value. If current spread % is greater between exchanges, it enters.
Volume of BTC is decided by exposure (minimum of the two account).
I wanted to ask : When will it go long and when short? When will it exit the market? Also i want to understand : blackbird waits if the spread keeps increasing. :)

I understood All of it. It's actually a brilliant work done @butor. Genuinely clapping for you. :)

Thanks @nasehim7! And your understanding is correct.
Regarding your last question:

Also i want to understand : blackbird waits if the spread keeps increasing.

This is also correct. It's not explained in details in the README file, but take a look at issue #12 for more details about how Blackbird waits for the spreads to increase before trading an opportunity. The related parameters are TrailingSpreadLim and TrailingSpreadCount.


[feature request] different list styles

Though not standard across all markdown (or CommonMark) "standards" [sic], one feature that pandoc offers is different numbering styles for lists. For example, in addition to the default 1, 2, 3, it also supports a, b, c, ... and i, ii, iii, iv, .... Additionally, it can have a dot after it (1., the default), but it also allows parentheses ((ii))  and a right parenthesis (3)).
Is there a chance either or both alternate numbering schemes can be added to MDH's parsing?
I've been turning peers to see the light of MDH. Thank you for making/maintaining it!
-bill

Half of what you're asking for is already supported by Markdown Here, and the other half isn't possible.
The good news: By customizing the "Primary Styling CSS" in the MDH options you can change the list numbering style. I actually plan on changing the default in the next release to match what Github does (number then alpha then roman). Like so:
ol ol,
ul ol {
  list-style-type: lower-alpha;
}

ul ul ol,
ul ol ol,
ol ul ol,
ol ol ol {
  list-style-type: lower-roman;
}

You can also have Greek letters and many others. (As of a few days ago, this info is in our Hints and Tips wiki page.)
The bad news: You can't use CSS pseudo-classes inline. And pseudo-classes are needed for the parentheses and dots. And MDH needs to use inline classes (because that's how you style email, etc.).
Cool? I'm going to be optimistic and close this issue.

That answers it, thanks!

@r2evans Could you please send me your email to<EMAIL_ADDRESS>I would like to consult you on a problem in optimization using R.


Feature request: set environmental variables

Requesting an easy way to set environmental variables for each executed experiment.
E.g. possibility to pass another string through run_cmd().

Add support for environment variables: 94805a5c38bed7914e4efe89d18310549eda9a83
Usage: https://github.com/mjasny/distexprunner/blob/94805a5c38bed7914e4efe89d18310549eda9a83/experiments/example.py#L59-L67


Is this project dead?

Not quite, but I've been away for a while and am no longer actively using this package in an app, so it's a bit tricky for me to maintain.


More memory managment.

Would be nice to be able to save revision history as a file (so it can be deleted from local storage and also backed up). It would also be nice to be able to request more local storage space.

With v0.31, now there is an option to save revision history as a file, and another to load from such a file, merging the revisions lists (i.e., skipping duplicate ones).
From the README.md file:
Backing up the revisions stored in local storage
The "Open" menu also has a "Save all revisions to file" option, which saves the
entire revision history to a JSON file (named exet-revisions-timestamp.json),
as a way of having a back-up beyond the browser's local storage. Apart from
using as a back-up mechanism, you can also use this to transfer all the
crosswords that you're working on to a different computer. The companion option,
"Merge saved revisions file," lets you read a saved JSON file, merging all
revision state from it. This allows limiting to just the latest version of each
crossword (instead of its full revision history). The revisions are merged: in
the sense that if a revision already exists then it is not duplicated.

Amazing. Thanks!

Closing this, thanks.


🐛 Console - TypeError: Failed to fetch

Cc: @bradystroud @tkapa

Hi Team,
Describe the Bug

This error TypeError: Failed to fetch is seen in console several time and also in Application Insights logs.
To Reproduce
Steps to reproduce the behavior:

Go to https://www.ssw.com.au/rules/
Open Dev tools
Check Console tab
See error

Expected Behavior

This error is fixed and it is not seen in Console, only log errors to Application Insights
Tasks

[ ] Investigate
[ ] Fix

Screenshots

Figure: Error seen in Console
Thanks!

This issue is not happening anymore after signin.js file was refactored on this PR

https://github.com/SSWConsulting/SSW.Rules/pull/1636


store history of searches/conversations

hey hey, a lot of users are asking for this simple feature. we need to save the history of the user's searches/conversations, provide a simple UI to navigate the history, and ask for more details in this thread.
/bounty 150

data-wise, how do we manage to handle this?
Will there be an API to call that returns the history from a database, or will the history be held locally? If locally, will we have cloud backups?
trying to learn more about the project so I can land my first contribution

just a simple history of search + AI
still need more exploration in terms of right UX

to give a bit more context: users search screenpipe and ask follow-up
questions from LLM, right now we don't save this interaction at all.
we should just store this search/conversation history in the same sqlite
database, and show it in the UI just like on the screenshot that Louis has
shared.
feel free to ask more questions
On Thu, Oct 10, 2024 at 10:40 AM Louis Beaumont @.***>
wrote:

Screenshot.2024-10-10.at.10.38.59.png (view on web)
https://github.com/user-attachments/assets/88db89f0-17db-47ab-ac4e-f691273f2268 Screenshot.2024-10-10.at.10.38.31.png
(view on web)
https://github.com/user-attachments/assets/99564f7e-f70b-48d7-9754-3ad66961c362
just a simple history of search + AI (like chatgpt has a history of chats)
still need more exploration in terms of right UX
—
Reply to this email directly, view it on GitHub
https://github.com/mediar-ai/screenpipe/issues/456#issuecomment-2405696743,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AY62CDFRYIHSNWFXWBLEARLZ2232PAVCNFSM6AAAAABPV5BGKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGY4TMNZUGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

does not have to be sqlite, i'd rather save it in localforage instead since it's unrelated to core codebase

i'd rather save it in localforage instead since it's unrelated to core codebase

While I agree that it simplifies it, I have some security concerns. Will we use plaintext/json for this?
Is it within the scope of this issue to encrypt or find some way of locking this data to avoid data leakage?

/attempt #456


Add Mapfile Support For Custom Data Sources

Description

Implements the ability to use map files for custom data.
This means that you can now apply rename events to custom data and be alerted when the symbol changes, and have the new updated symbol track the symbol at a given time T.
An example:
      AOL     ----------------------->     TWX

   2003-10-15                           2003-10-16

Previously, if you added your symbol as "TWX" (the current stock ticker), you would only receive data points for "TWX" before 2003-10-16. But now, when you add "TWX", through the map file system, we load data for "AOL" before 2003-10-16, and rename the symbol on 2003-10-16 to "TWX" in your backtest containing custom data.
This feature is opt-in via the SubscriptionDataConfig.MapFileTypes list. You can add your class to this list in order to enable mapping for your source of custom data
Related Issue

#3296
Motivation and Context

Fulfills a requirement for sources of custom data based on equities
Requires Documentation Change

Yes. The tutorial teaching how to add custom data should consider adding a section detailing how to add a custom data class to the supported mapping (rename event) types.
How Has This Been Tested?

New regression tests and unit tests
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Non-functional change (xml comments/documentation/etc)

Checklist:

[x] My code follows the code style of this project.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

@gsalaz98  - This is awaiting response to the existing review comments.

Still a few more issues I managed to catch during my own code review. I'd like some feedback on the SecurityType.Option conditional statements that existed before @mchandschuh - git blame shows you as the author of two of these blocks, another one Stefano, and another user by the name of quant1729.

What are the commit ids of all of these? I can look into them.

Here's a link to the test algorithm I used to generate the following results:
https://gist.github.com/gsalaz98/4c131b1884955732f57f72a54c578275
And here are the differing History requests that get generated as a result of our changes:

Master: https://gist.github.com/gsalaz98/13ae6ca14459fc1bcf47f0a121c7ade4
This PR (rebased with master as well; similar output): https://gist.github.com/gsalaz98/39e4092beab48ce3698790f7c9a2325a

In master, when we submit a history request using the algorithm above, we get a few errors describing how we failed to load data for FOXA on 2013-06-28 even though FOXA didn't exist until 2013-06-29 or later. This most likely means that because we don't apply any sort of mapping, we will fail to load data for NWSA if a history request is submitted on the day of the rename. That is my understanding of the situation. If I'm wrong, please feel free to correct me.
I'm unsure which is the intended behavior, but some behavior we're not testing changed as a result of this PR. If I had to take a guess, I'd say this PR fixes a bug in History requests for options data since we previously were not applying any sort of mapping to options symbols, but we were for equities.
Let me know your thoughts y'all. CC @Martin-Molinero @StefanoRaggi since git blame shows you two have worked on SubscriptionDataReaderHistoryProvider before

Sperceeded by #3521


Swiper flickers when multiple pointers interact with the component

Check that this is really a bug

[X] I confirm

Reproduction link
https://swiperjs.com/demos
Bug description
Firstly - I need to state that I'm not sure if this is actually a bug or an inherent limitation. To show an example of expected behavior, In any swiper component in Instagram, when two pointers are on the screen swiping it behaves fine, as can be seen below.
https://user-images.githubusercontent.com/917752/125779954-ccfc58c8-ff62-407e-8dd6-efcd5cdc7746.mp4

When two pointers are on the screen, the swipe direction follows the moving pointer.
When both pointers move, I think it follows the direction of the first pointer move.
(Not in video) When there are more than 2 pointers, there aren't any glitches, the swiping follows the direction of the moving pointer(s).

Here is what happens when this same interaction is done with this library.
https://user-images.githubusercontent.com/917752/125780252-4c59d6d7-aad5-43db-a0cd-6708c71d7ff1.mp4
Observations:

There is clear flickering between the slides. It looks like it breaks it since the component is rendering based on each of the pointers, and it jumps back and forth between them.
(Not in video) If you keep the first pointer stationary and move the second pointer, there will be flickering.
(Not in video) With more than 2 pointers, there's more flickering as the rendering jumps between locking on to each pointers movement.

These are just some observations, but it's to be noted that nobody expects users to interact with the Swiper in this manner. But if they do, they can break the Swiper. This can be broken even more with nested swiping, the user could glitch out the interaction if they want.
Expected Behavior
The direction of movement of the swiper component should follow the moving pointer.
Swiper version
6.7.5
Platform/Target and Browser Versions
Chrome 91.0.4472.120
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

multiple pointers are not supported at the moment

same happens with touch screen even with just single touch and swipe it flickers a little not smooth any solution to make it smooth on phones

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.
If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with issue


undefined: google.CredentialsFromJSON

hi,
im getting
vendor/google.golang.org/api/internal/creds.go:36:10: undefined: google.CredentialsFromJSON
ive go get -u golang.org/x/oauth2/google, but with this error
sorry realize go get works, but dep ensure --add seems not get a version that does not contains go19.go

google.CredentialsFromJSON definitely exists, and you've found it when you run "go get", so this
might be a better question for a dep users mailing list or the dep bug tracker.


Media library -> Play Media - only opens popup

Describe the bug
I am pretty positive I have followed instructions properly (but still - lots of stuff :) ) I managed to play stream on dashboard on click, so maybe media screen is not supported yet?
https://ss.codeone.pl/ss-2022-06-17-09-06-55-1655449615-n58n2wAy.png
https://ss.codeone.pl/ss-2022-06-17-09-07-19-1655449639-BPRzlVa5.png
To Reproduce
Steps to reproduce the behavior:

Go to 'Media library'
Click on random camera play button
See popup instead of stream

Expected behavior
RTSP Stream to start
**Hardware Information about Cameras

eufy t8111
tried both rtsp & p2p

Keep up the great work!

this is a known and old issue: https://github.com/fuatakgun/eufy_security/issues/257
I have not used media library, I rely on WebRTC for lovelace views but it is not supported by media library. Please track the first issue but it has very low priority.

@fuatakgun thanks! I have used search but totally missed this one :)


Bug: Calling browser.waitForAngular does nothing when blocking proxy is enabled

Rarely would someone directly call browser.waitForAngular, but if they did, and blocking proxy were enabled, it wouldn't do anything.  We need to move the current implementation to a private browser.waitForAngular_ and make a public browser.waitForAngular that's just a blank executeScript or something.

Good point, waitForAngular should be private (which would be a breaking change).


allow vault economy

The config settings allowing the use of vault economy when I set to true does not actually use vault economy. Is there a way to not use the tokens so I can share vault economy with the upgrade options

was a slight typo in the code- checked for "use-token-economyy" instead of "use-token-economy"
fixed in 1.10r-1

when using vault economy, it doesnt takeaway the actual upgrade cost from the balance


nixf: 2.4.0 -> 2.5.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/nix-community/nixd/releases.
meta.description for nixf is: Nix language frontend, parser & semantic analysis
meta.homepage for nixf is: https://github.com/nix-community/nixd
meta.changelog for nixf is: https://github.com/nix-community/nixd/releases/tag/2.5.0
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.5.0 in filename of file in /nix/store/5c1f6i3p7vlm202p8rjqsa2qlp1f72pd-nixf-2.5.0

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

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath

nixd
nixf
nixt

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/d176127d9b4bb9edc1f47922c62838bb81f79571#nixf

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/5c1f6i3p7vlm202p8rjqsa2qlp1f72pd-nixf-2.5.0
ls -la /nix/store/5c1f6i3p7vlm202p8rjqsa2qlp1f72pd-nixf-2.5.0/bin

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

x86_64-linux

:x: 3 packages failed to build:

nixd
nixt
nixt.dev

:white_check_mark: 2 packages built:

nixf
nixf.dev

Maintainer pings
cc @inclyc @Ruixi-rebirth @Aleksanaa @redyf for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

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

--------- Report for 'aarch64-darwin' ---------
5 packages built:
nixd nixf nixf.dev nixt nixt.dev

--------- Report for 'x86_64-linux' ---------
5 packages built:
nixd nixf nixf.dev nixt nixt.dev


Create MIT-LICENSE

MIT License
Copyright (c) 2021 amanciojsilvjr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
 IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Covered in https://github.com/dogecoin/dogecoin/blob/master/COPYING


Update protocol docs according to on chain architecture changes

Update the  introduction, blocks, consensus and network section with respect to the following:

On-chain architecture changes, removal of transaction types and introduction of the module concept.
New transaction terminology.
Minor formulation improvements.

Closes #752

I closed the PR as I used a protected branch name by accident.


Z-Push container missing php-xml

As stated in the title a dependency for z-push is missing and therefor autodiscover won't work
Sat Jun 13 00:42:01 2020 "POST /autodiscover/autodiscover.xml HTTP/1.1" 500 - "-" "Android-Mail/2<IP_ADDRESS>3130477.Release"
13/06/2020 00:42:01 [   58] [ INFO] [#unknown] Z-Push version='2.5.2+0-0'
[Sat Jun 13 00:42:01.826052 2020] [php7:error] [pid 58] [client x.x.x.x:57608] PHP Fatal error:  Uncaught Error: Call to undefined function simplexml_load_string() in /usr/share/z-push/autodiscover/autodiscover.php:157
Stack trace:
	#0 /usr/share/z-push/autodiscover/autodiscover.php(84): ZPushAutodiscover->getIncomingXml()
	#1 /usr/share/z-push/autodiscover/autodiscover.php(68): ZPushAutodiscover->DoAutodiscover()
	#2 /usr/share/z-push/autodiscover/autodiscover.php(387): ZPushAutodiscover::DoZPushAutodiscover()
	#3 {main}
	thrown in /usr/share/z-push/autodiscover/autodiscover.php on line 157

By making the contaianer rw I could confirm the following fixes it.
apt update
apt install php-xml -y
apachectl -k restart

Hi @engelant,
yes that seems reasonable. I would recommend to report this issue with Z-Push directly -> https://jira.z-hub.io/projects/ZP/issues/
For a workaround we could temporarily install the package manually.

@fbartels I don't quite get it, is simplexml_load_string() not supposed to be used any more?
I was thinking of adding php-xml around here.

I am not a php developer so I don't know of the downsides of this functionality.
Agree with the place to add, you linked to the exact line where a package is already installed for a similar reason.


Final Tests

After all's ready, someone else to enroll the LWC on mobile and on Desktop to make sure I didn't mess up something obvious.

This one is ready to roll!

Suggested this task to some ppl. Hopefully at least one will go through it. I'm closing this.


Allow running each bundle multiple times for debugging and profiling.

I found this useful for debugging the memory leak, and it could also be useful for profiling.

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---

R: @tweise

Thanks. This is easier for attaching profilers, debuggers, logging, etc. On the other hand the Flink one has the advantage of doing multi-threading and isolating inspection to just the worker bits.
Most of these changes (everything but the loop) is generally useful (e.g. for supporting bundle retry on failure in the future, not re-registering bundles when firing timers, and not re-windowing if a GBK is read multiple times).


Error Running Demo.R with test dataset: Error in signif(nevergrad_hp_val[[co]][index], 6): non-numeric argument to mathematical function

Project Robyn
Describe issue
When I run the Demo.R example with test data, 5% of the time the model code works and 95% of the time I get an error. It looks like some sort of test dataset non-numeric issue but I'm unable to track down exactly what is going on... any tips? I'm surprised to be the only one with this problem. The error occurs when running Step 3: Build initial model with the standard simulated test dataset.
Error in signif(nevergrad_hp_val[[co]][index], 6): non-numeric argument to mathematical function.
Environment & Robyn version
I run everything from the demo.R file up until this point using Dev Robyn <IP_ADDRESS>00, tidyverse 1.3.2, reticulate ver 1.29, cli 3.6.1, R version: 4.1.3
Reproducible example code:
#LOADING
options(timeout=400)
install.packages("remotes")
remotes::install_github("facebookexperimental/Robyn")
library(Robyn)
library(tidyverse)
packageVersion("tidyverse")
packageVersion("reticulate") #1.28
create_files <- TRUE
INSTALL NEVERGRAD
library("reticulate")
install_miniconda()
conda_create("r-reticulate")
use_condaenv("r-reticulate")
Sys.setenv(RETICULATE_PYTHON = "~/Library/r-miniconda-arm64/envs/r-reticulate/bin/python")
py_config() # If the first path is not as 5, do 7
conda_install("r-reticulate", "numpy", pip=TRUE)
conda_install("r-reticulate", "nevergrad", pip=TRUE)
#Step 1: Load data
data("dt_simulated_weekly")
data("dt_prophet_holidays")
robyn_directory <- "~/Documents/ROutput"
#Step 2a: For first time user: Model specification in 4 steps
InputCollect <- robyn_inputs(
dt_input = dt_simulated_weekly,
dt_holidays = dt_prophet_holidays,
date_var = "DATE", # date format must be "2020-01-01"
dep_var = "revenue", # there should be only one dependent variable
dep_var_type = "revenue", # "revenue" (ROI) or "conversion" (CPA)
prophet_vars = c("trend", "season", "holiday"), # "trend","season", "weekday" & "holiday"
prophet_country = "DE", # input one country. dt_prophet_holidays includes 59 countries by default
context_vars = c("competitor_sales_B", "events"), # e.g. competitors, discount, unemployment etc
paid_media_spends = c("tv_S", "ooh_S", "print_S", "facebook_S", "search_S"), # mandatory input
paid_media_vars = c("tv_S", "ooh_S", "print_S", "facebook_I", "search_clicks_P"), # mandatory.
paid_media_vars must have same order as paid_media_spends. Use media exposure metrics like
impressions, GRP etc. If not applicable, use spend instead.
organic_vars = "newsletter", # marketing activity without media spend
factor_vars = c("events"), # force variables in context_vars or organic_vars to be categorical
window_start = "2016-01-01",
window_end = "2018-12-31",
adstock = "geometric" # geometric, weibull_cdf or weibull_pdf.
)
print(InputCollect)
2a-2: Second, define and add hyperparameters
hyper_names(adstock = InputCollect$adstock, all_media = InputCollect$all_media)
plot_adstock(plot = FALSE)
plot_saturation(plot = FALSE)
4. Set individual hyperparameter bounds.
hyper_limits()
hyperparameters <- list(
facebook_S_alphas = c(0.5, 3),
facebook_S_gammas = c(0.3, 1),
facebook_S_thetas = c(0, 0.3),
print_S_alphas = c(0.5, 3),
print_S_gammas = c(0.3, 1),
print_S_thetas = c(0.1, 0.4),
tv_S_alphas = c(0.5, 3),
tv_S_gammas = c(0.3, 1),
tv_S_thetas = c(0.3, 0.8),
search_S_alphas = c(0.5, 3),
search_S_gammas = c(0.3, 1),
search_S_thetas = c(0, 0.3),
ooh_S_alphas = c(0.5, 3),
ooh_S_gammas = c(0.3, 1),
ooh_S_thetas = c(0.1, 0.4),
newsletter_alphas = c(0.5, 3),
newsletter_gammas = c(0.3, 1),
newsletter_thetas = c(0.1, 0.4),
train_size = c(0.5, 0.8)
)
2a-3: Third, add hyperparameters into robyn_inputs()
InputCollect <- robyn_inputs(InputCollect = InputCollect, hyperparameters = hyperparameters)
if (length(InputCollect$exposure_vars) > 0) {
lapply(InputCollect$modNLS$plots, plot)
}
Step 3: Build initial model
OutputModels <- robyn_run(
InputCollect = InputCollect, # feed in all model specification
cores = NULL, # NULL defaults to (max available - 1)
iterations = 2000, # 2000 recommended for the dummy dataset with no calibration
trials = 5, # 5 recommended for the dummy dataset
ts_validation = TRUE, # 3-way-split time series for NRMSE validation.
add_penalty_factor = FALSE # Experimental feature. Use with caution.
)
print(OutputModels)
###################################ERROR:
Input data has 208 weeks in total: 2014-11-23 to 2019-11-11 inital model is built on rolling window of 157 week: 2016-01-04 to 2018-12-31 Time-series validation with train_size range of 50-80% of the data... Using geometric adstocking with 20 hyperparameters (20 to iterate + 0 fixed) on 31 cores >>> Starting 5 trials with 2000 iterations each using TwoPointsDE nevergrad algorithm... Running trial 1 of 5 || 0% Timing stopped at: 0.003 0 0.003
Error in signif(nevergrad_hp_val[[co]][index], 6): non-numeric argument to mathematical function.

This is unusual. Have you also updated all dependencies?

I had the same error!

Yes, updated all dependencies with this "update.packages(checkBuilt=TRUE, ask=FALSE)". It actually ran successfully after using this the first time but has not run since.

So you still have the error after the update?
Anything you've changed? I can't reproduce your error

I believe it was something in the nevergrad install. I did the steps again to install nevergrad and it worked.

It happend to me as well... Apparently the numpy installation wasn't recognized when running py_config(), and maybe nevergrad as well. It started working after restarting the computer.
I was also using miniconda to create the environment...


Add Logout Callback Functionality

Overview
This PR introduces the ability to register and execute callback functions upon user logout in the SimpleLogin class. This enhancement allows users to perform custom actions, such as logging events or clearing additional session data, immediately after a user logs out.
Changes

Modified logout Method:

The logout method now iterates over a list of registered callbacks and executes each one after clearing the session and flashing the logout message.

New Method register_on_logout_callback:

Added a new method register_on_logout_callback to allow users to register their custom callback functions.

Updated Tests:

Enhanced the existing logout test to verify that the registered callbacks are executed upon logout.

Code Example
Here's how users can register their custom callbacks:
def my_post_logout_callback():
    print("User has logged out")

def another_post_logout_callback():
    print("Another action after logout")

app = Flask(__name__)
simple_login = SimpleLogin(app)
simple_login.register_on_logout_callback(my_post_logout_callback)
simple_login.register_on_logout_callback(another_post_logout_callback)

Testing

Manual Testing:

Verified the functionality by running a local Flask application and observing the console output upon logout.

Automated Testing:

Updated the test suite to include checks for the new callback functionality.
Ran the tests using pytest to ensure all tests pass successfully.

Additional Notes

Users can register multiple callbacks, and they will be executed in the order they were registered.

This PR addresses issue #36

Hello @cuducos please review this pr 😄

Thank you for the great PR description! I appreciate the effort you put into it.
I kindly ask that you refrain from commenting for reviews, as it adds unnecessary noise to my inbox. I have a full-time job and a personal life, along with my involvement in this and other open-source projects. Please rest assured that I will review your code as soon as possible, but I do have other priorities now. Thank you for your understanding 💜

Hey, I am really sorry, I do understand... Please take your time to review this PR 😀

This PR is great, thank you so much.
Before moving forward, I would like to ask you two things:

Can you add something about the new feature to the docs? You have great content as the PR description you could just move there
Are you familiar with unittest.mock? I suggest we refactor the test you added

None of my comments are blocking, I just wanna you to let me know if you are ki to address them, so I can keep this PR open. Otherwise, I'll merge and fix them in follow up work.

Hey @cuducos thank you for reviewing my PR, I would like to fix all of the issues 😄

@cuducos could you please specify which part of the existing documentation should I add the docs about this feature and which things do I need to mention there?

I was thinking about a section in Configuring. The examples there should give you an idea about what to include, right?

Hello @cuducos I resolved all of the issues and updated the documentation too, please re-evaluate the PR.... Thank you for your time 😄

Hello @cuducos , sorry but any updates on this PR?

@Zingzy your excessive notifications are disturbing. I am blocking you temporarily until I can get back to this PR.

Looks great ✨  Thank you so much, @Zingzy 💜


add composer.json

Hi!
This file lets you register the pivottable plugin in https://packagist.org, so everyone using php and composer can install and follow the library updates.
I think you have to create an account in https://packagist.org and change line 2 to your_username/pivottable. Also, you can setup Github webook to notify packagist.org about modifications, so you don't need to worry about editing this file on every release.
Thanks!

Thanks for the PR!

All done! https://packagist.org/packages/nicolaskruchten/pivottable


METEOR in eval.py

Hi! I am currently using this code (and it's really great by the way) and I started training the abstract model and there was a KeyError: 'METEOR' in the eval.py file. To get rid of the error, I commented out line 72 print (‘METEOR:\t’, final_scores [‘METEOR’]) in the eval.py file, but I was just wondering if METEOR is important and how to fix the training code and implement METEOR?

@dara1822 I have fixed the bug, it is not important for training. Thank you very much for your suggestion.

got similar error
system: win8.1 + cuda10.1 + python 3.7 + pytorch1.1
C:\greenSoft\PaperRobot-master\New paper writing>python train.py --data_path dat a/pubmed_abstract --model_dp abstract_model/ --batch_size=10
`Model location: abstract_model/memory,lower=False,freq=5,word_dim=128,h=8,hop=3,
input_dropout_p=0.2,layer_dropout=0.2,gpu=True,batch_size=10,max_len=150,lr_meth
od=adam,lr_rate=0.001
Model parameters:
lower=False
freq=5
word_dim=128
h=8
hop=3
pre_emb=
input_dropout_p=0.2
layer_dropout=0.2
gpu=True
batch_size=10
max_len=150
lr_method=adam
lr_rate=0.001
data_path=data/pubmed_abstract
Found 25133 unique words (16508545 in total)
22811 / 2095 pairs in train / dev.
train batches 2282
Epoch 0/99
2281 batches processed. current batch loss: 6.061568
Finished epoch 0: Train Avg NLLLoss: 6.4136
Traceback (most recent call last):
File "train.py", line 261, in
eval_f = Evaluate()
File "C:\greenSoft\PaperRobot-master\New paper writing\eval.py", line 15, in _
init_
(Meteor(), "METEOR"),
File "C:\greenSoft\PaperRobot-master\New paper writing\pycocoevalcap\meteor\me
teor.py", line 20, in init
stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, buf
size=1)
File "C:\Users\MyPC\AppData\Local\Programs\Python\Python37\lib\subprocess.py",
line 775, in init
restore_signals, start_new_session)
File "C:\Users\MyPC\AppData\Local\Programs\Python\Python37\lib\subprocess.py",
line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2]。
Exception ignored in: <function Meteor.del at 0x0000000FECFBDD90>
Traceback (most recent call last):
File "C:\greenSoft\PaperRobot-master\New paper writing\pycocoevalcap\meteor\me
teor.py", line 59, in del
self.lock.acquire()
AttributeError: 'Meteor' object has no attribute 'lock'     `
Thought the training already finished, the METEOR error does not matter?

I think you should run it under ubuntu. The meteor package might not function well under windows. Also I recommend to use python3.6.
Actually you can comment out the eval.py Line 15, since we don’t use meteor in train.
On Tue, Jul 9, 2019 at 7:58 AM demonlj <notifications<EMAIL_ADDRESS>wrote:
got similar error
system: win8.1 + cuda10.1 + python 3.7 + pytorch1.1
C:\greenSoft\PaperRobot-master\New paper writing>python train.py --data_path dat a/pubmed_abstract --model_dp abstract_model/ --batch_size=10
`Model location: abstract_model/memory,lower=False,freq=5,word_dim=128,h=8,hop=3,
input_dropout_p=0.2,layer_dropout=0.2,gpu=True,batch_size=10,max_len=150,lr_meth
od=adam,lr_rate=0.001
Model parameters:
lower=False
freq=5
word_dim=128
h=8
hop=3
pre_emb=
input_dropout_p=0.2
layer_dropout=0.2
gpu=True
batch_size=10
max_len=150
lr_method=adam
lr_rate=0.001
data_path=data/pubmed_abstract
Found 25133 unique words (16508545 in total)
22811 / 2095 pairs in train / dev.
train batches 2282
Epoch 0/99
2281 batches processed. current batch loss: 6.061568
Finished epoch 0: Train Avg NLLLoss: 6.4136
Traceback (most recent call last):
File "train.py", line 261, in
eval_f = Evaluate()
File "C:\greenSoft\PaperRobot-master\New paper writing\eval.py", line 15, in _
init_
(Meteor(), "METEOR"),
File "C:\greenSoft\PaperRobot-master\New paper writing\pycocoevalcap\meteor\me
teor.py", line 20, in init
stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, buf
size=1)
File "C:\Users\MyPC\AppData\Local\Programs\Python\Python37\lib\subprocess.py",
line 775, in init
restore_signals, start_new_session)
File "C:\Users\MyPC\AppData\Local\Programs\Python\Python37\lib\subprocess.py",
line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2]。
Exception ignored in: <function Meteor.del at 0x0000000FECFBDD90>
Traceback (most recent call last):
File "C:\greenSoft\PaperRobot-master\New paper writing\pycocoevalcap\meteor\me
teor.py", line 59, in del
self.lock.acquire()
AttributeError: 'Meteor' object has no attribute 'lock' `
Thought the training already finished, the METEOR error does not matter?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/EagleW/PaperRobot/issues/4?email_source=notifications&email_token=ADNENRPMAOSNDUXS73CZSETP6PIA7A5CNFSM4HYNR7QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZOV3IQ#issuecomment-509435298, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADNENRP3NWRLRP3I66STXK3P6PIA7ANCNFSM4HYNR7QA.
--
Warm regards,
Qingyun

I have commented out meteor in current version, you can try to pull it again. @demonlj


ENH: Use pixi to maintain lock file

Add pixi project configuration and pixi lock file.

Add export task to pixi project.

Use pixi project export conda-explicit-spec . to generate a Conda explicit specification file.

c.f. https://docs.conda.io/projects/conda/en/stable/user-guide/tasks/manage-environments.html#building-identical-conda-environments

Use the default_linux-64_conda_spec.txt explicit spec file in the Dockerfile to build the same environment defined in pixi.lock.
Remove the conda-lock files and the Docker based locking workflow.
Update Action container image to mambaorg/micromamba:1.5.9-bookworm-slim.

Nitpicking: @matthewfeickert could we follow a fork-based workflow here in the future, so the main repo won't be peppered with feature branches?

I also don't find a transient feature branch terrible

The issue is that some of the branches are not exactly transient, but are around for a while when part of some experimenting or draft PR.

Re CI: I think it's OK to separate the current workflow into two, one that runs all the anaconda upload/cleanup checks, and one that does everything else. Then we can run most of the tests from forks, too, and in practice those would cover most of the PR cases anyway.

Re CI: I think it's OK to separate the current workflow into two, one that runs all the anaconda upload/cleanup checks, and one that does everything else. Then we can run most of the tests from forks, too, and in practice those would cover most of the PR cases anyway.

@bsipocz I don't think that will work for the reasons I describe in the two previous responses I've linked, as you'll need secrets to run the upload and a secret to delete the files and neither can be run on a fork safely. But can you make an Issue to describe more what you have in mind here?

Cool 👍 Just a fly by comment. What do you think about uv otherwise? Looks like this is going to be the thing sooner than later.

I don't think that will work for the reasons I describe in the two previous responses I've linked, as you'll need secrets to run the upload and a secret to delete the files and neither can be run on a fork safely.

Yes, my point is to separate those that need the secret in a separate workflow/job, so 1) tests can pass on forks with the acknowledgement that the secret-requiring ones are skipped.
But also, something is broken with the current setup as e.g. #86 failed even though it run from a feature branch here.

What do you think about uv otherwise? Looks like this is going to be the thing sooner than later.

@tupui I like uv a lot and I use it on many projects. uv pip compile is excellent and I use it in container runtimes where I don't have control over the Python runtime given the base image environment (this is actually one area/thing that pixi doesn't really allow you to do as it needs to control the entire environment — some caveats there if you export the shell activation though and manually use it.)
That being said, I like pixi more in general, and I think for something like this where you want to have hash level reproducibility of the entire stack and not just of the Python packages then pixi is a clear winner (well really more just "locked conda installs in an isolated/containerized environment" is the winner).

@scientific-python/nightly-wheels-developers this is now ready for review. As I had this in draft before to figure things out I've intentionally squashed and rebased this so that it will be easier to follow my actual intended changes from both the GitHub UI and from a local checkout.
@pavelzw @ruben-arts as you've contributed the most to the setup-pixi action if you're able to review this as well that would be very much appreciated.

Thanks for reviewing for @scientific-python/nightly-wheels-developers, @MridulS! :pray: If we're able to get one more review from another @scientific-python/nightly-wheels-developers person that would be great, but if no one else reviews by Tuesday (2024-10-01) I'll go ahead and squash and merge.

Thanks @bsipocz!
I'm going to do a relock and it there's any changes to a rebase and push and then squash and merge this. I'll then update the v0.5.0 info in the repo to v0.6.0 and make a new release on GitHub.


10634: Added the capability to inject boto3 client in SagemakerEndpointEmbeddings

Description: Allow to inject boto3 client for Cross account access type of scenarios in using SagemakerEndpointEmbeddings and also updated the documentation for same in the sample notebook
Issue:SagemakerEndpointEmbeddings cross account capability #10634 #10184
Dependencies: None
Tag maintainer:
Twitter handle:lethargicoder

thanks @vikramshitole!


Fix typo

choosen --> chosen

Thanks!

Thanks to you! I've just published my first package (although still making lots of tweaks) - couldn't have done it without you!

@adamhopkinson Great to hear! Thanks for the nice words 😀


Add Config subclass with immutable Equalizer

When extending Dry::Configurable, the default is to initialize a Dry::Equalizer without immutability on the hash method.
When Dry::View fetches or stores a template, Dry::Core::Cache uses a hash of the arguments. Since this hashing will occur for every nested template, it can be quite computationally demanding. In the case of fetching or storing templates, the values being hashed shouldn't change and so the result can be memoized.
In my benchmarks, I'm using a highly contrived template that loads 100 nested templates that do nothing more than print out their name as well a couple of random numbers to ensure values aren't being cached so, while it is designed somewhat to replicate a site with many components, it's far from true to life. Saying this,  my tests have found this has given me a roughly 75% performance increase:
Calculating -------------------------------------
              Before    100.263  (± 6.0%) i/s -      1.008k in  10.076792s
               After    174.497  (± 3.4%) i/s -      1.751k in  10.047389s

It's tricky to solve this elegantly so I'm very open to discussing alternative approaches.
One thing I considered was if there is support for adjusting these values at runtime. I couldn't think of any legitimate reason to do that but, if such a reason exists, I'm sure we could find a solution

Thank you so much for this (and #157), Adam!
Am definitely conscious that dry-view (and soon to be, hanami-view) is in need of some performance tuning, and your work here is a great start!
This is also good timing in that I've been doing work in dry-configurable lately. This has mostly been with a view to improving memory usage as much as possible, but it's a good moment to revisit overall performance and make sure I haven't swung the pendulum too far. (It's also doubly good timing in that dry-configurable will probably hit 1.0 in the next ~6 weeks, so we still have a window open for larger changes if required).
To this end, I'd be interested in exploring whether we can do work inside dry-configurable itself to make some of these changes in dry-view unnecessary. I'd like dry-configurable to be a library someone can pick up without having to worry about performance, even if it is used in more performance-sensitive situations like you point out for dry-view.
So: would you mind sharing the benchmark you used for assessing your changes to dry-view? I'd love to be able to give it a run while looking for dry-configuring and compare the results.

No worries, @timriley, I've pushed up this repo


High CPU utilization issue

When rendering entities, I used a higher accuracy model, but encountered a CPU utilization problem of 99%
CPU: I7-11800H
Why is this happening?

Generally speaking, higher poly count model should not cause high CPU usage. Because the vertex data of the model have been loaded into GPU VRAM before the game startup complete. No need to upload vertex data in each frame.
But in these case that involve heavily vector/matrix calculation, high CPU usage is currently unavoidable.

Too many node/bone. (Need to calculate the global transformation for each node before rendering.)
Too many vetex need to morphing.
High complexity of animation.

The current vector/matrix math of MCglTF are done by CPU without any support from SIMD. This is the root of causing CPU bottleneck.
The use of SIMD through JVMCI is planning, but neither me or Protoxy22 can't guarrantee when will it can be done.


Locol WG Monthly: Mar 20th @ 6pm GMT / 10am PST

We will be holding our next working group monthly on March 20th - feel free to add agenda items you'd like to discuss in the notes doc: https://docs.google.com/document/d/1Mol6epw0sbj5FqS6akD-X5KJkGF0MwsOZQ5t1ehOGiM/edit#!
Zoom: https://protocol.zoom.us/j/9049149336

We will hopefully have @nicopace with us on Mar 20 to talk more about his research on the dweb in global south communities.
Some new folks in the ipfs community who might be interested include @creationix @jorropo @onggunhao @gozala. Looking forward to also seeing our regular attendees like @raulk @terichadbourne @whyrusleeping @djdv @jedahan @jimpick and others.

Reminder to everyone that this is happening tomorrow at 10am PST! Looking forward to learning from @nicopace about his global south research and also hearing any updates from others working in the space - maybe @gozala re the PWAs over IPFS work that @jimpick mentioned last month, or @jorropo about his prototypes for p2p app downloads in his bandwidth-constrained school.

@momack2 I wish I could attend, so I could  share details of work I’ve being doing, but sadly it overlaps with a meeting at work that I can’t skip.
Could you please cc me on next one, I’ll make sure to make it then


build(fix): missing @pinia/nuxt

Pinia Nuxt.js

Thank you very much for support - already got fixed. : )
Also I think @nuxtjs/composition-api/module is only needed for nuxt-2.

Thanks a lot for what a handy start template you had done!
Hope a jest test example can come soon.

I will add vitest soon - since Nuxt is able to run on Vite, Vitest seemed to be the better option (since it is optimized for Vite - if you're used to Jest, the changeover to Vitest should not be too much of a challenge ... Vitest provides a compatible API that allows you to use it as a drop-in replacement in most projects. It also includes the most common features required when setting up your unit tests (mocking, snapshots, coverage). : )


WIP: Pick up default and nullable values from model and DB

Coverage decreased (-0.07%) to 98.117% when pulling 3e88646cfcea5771026a35c27079cd74a670231b on CyberiaResurrection:TransmitNullability into b4f96c844f53c6f3f694228c08e4c22993db3373 on Algo-Web:master.

Coverage decreased (-0.07%) to 98.117% when pulling 6e4d8a0cf7c15467d402fd34564d836263b10089 on CyberiaResurrection:TransmitNullability into b4f96c844f53c6f3f694228c08e4c22993db3373 on Algo-Web:master.


fix(modal): modal position when keyboard appears

Closes: #2837
Closes: #2838
Closes: #3241

📝 Description
If there is input in modal where the position is bottom, when the keyboard is open, it covers the input which results in bad UX.
⛳ Current behavior (updates)

🚀 New behavior

💣 Is this a breaking change (Yes/No):
No
📝 Additional Information

@jrgarciadev Please Junior, approve this PR... It fixes the major modal bugs right now!


SSH access logging omits username and IP information in access logs

Description
When gitea access log is enabled (ENABLE_ACCESS_LOG=true) and you access the server via HTTP, it provides username and IP information in access logs. But when you access the server via SSH and enable SSH acces log (ENABLE_SSH_LOG=true), we can not see these information in access.log.
When we look at the users "Settings -> SSH/GPG keys" page, we can see that gitea understands and processes the relevant user information(date and SSH key), and so it can show us when the SSH key is last used.. But not seeing that information details in the access.log file, makes very hard to determine SSH access problems.
And as I mentioned above, it is clear that Gitea has the means to process the information, but simply it does not show the information in the SSH access logs.
[log]
MODE              = console,file
LEVEL             = debug
ROOT_PATH         = /opt/git/server/log
ROUTER            = console,file
ENABLE_ACCESS_LOG = true
ACCESS            = file
ENABLE_SSH_LOG    = true

[log.file.access]
LEVEL             = debug

[log.file.router]
LEVEL             = debug

Gitea Version
1.17.2
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
HTTP access logs
<IP_ADDRESS>:0 - - [19/Sep/2022:16:56:32 +0300] "GET /MYORGANISATION/myapp-bundle-docker.git/info/refs?service=git-upload-pack HTTP/1.0" 401 13 "\" \"git/2.27.0"
<IP_ADDRESS>:0 - - [19/Sep/2022:16:56:32 +0300] "GET /MYORGANISATION/myapp-bundle-docker.git/info/refs?service=git-upload-pack HTTP/1.0" 401 13 "\" \"git/2.27.0"
<IP_ADDRESS>:0 - myuser [19/Sep/2022:16:56:40 +0300] "GET /MYORGANISATION/myapp-bundle-docker.git/info/refs?service=git-upload-pack HTTP/1.0" 200 935 "\" \"git/2.27.0"
<IP_ADDRESS>:0 - myuser [19/Sep/2022:16:56:40 +0300] "POST /MYORGANISATION/myapp-bundle-docker.git/git-upload-pack HTTP/1.0"<PHONE_NUMBER>39 "\" \"git/2.27.0"

SSH access logs
<IP_ADDRESS>:59694 - - [19/Sep/2022:16:58:33 +0300] "GET /api/internal/serv/command/5/myorganisation/myapp-bundle-docker?mode=1&verb=git-upload-pack HTTP/1.1" 200 217 "\" \"GiteaServer"
<IP_ADDRESS>:59730 - - [19/Sep/2022:16:58:53 +0300] "POST /api/internal/ssh/5/update/5 HTTP/1.1" 200 7 "\" \"GiteaServer"

Screenshots
No response
Git Version
2.27.0
Operating System
RHEL 8
How are you running Gitea?
We are running " gitea-1.17.2-linux-amd64 " as a systemd service.
Database
SQLite

Router logs also suffering from similar problem, IP information is seen as <IP_ADDRESS>
HTTP router logs
2022/09/19 16:56:32 [63287510] router: completed GET /MYORGANISATION/myapp-bundle-docker.git/info/refs?service=git-upload-pack for <IP_ADDRESS>:0, 401 Unauthorized in 1.6ms @ repo/http.go:532(repo.GetInfoRefs)
2022/09/19 16:56:32 [63287510-2] router: completed GET /MYORGANISATION/myapp-bundle-docker.git/info/refs?service=git-upload-pack for <IP_ADDRESS>:0, 401 Unauthorized in 17.9ms @ repo/http.go:532(repo.GetInfoRefs)
2022/09/19 16:56:40 [63287518] router: completed GET /MYORGANISATION/myapp-bundle-docker.git/info/refs?service=git-upload-pack for <IP_ADDRESS>:0, 200 OK in 27.7ms @ repo/http.go:532(repo.GetInfoRefs)
2022/09/19 16:56:44 [63286d42-52] router: slow      POST /MYORGANISATION/myapp-bundle-docker.git/git-upload-pack for <IP_ADDRESS>:0, elapsed 3722.6ms @ repo/http.go:492(repo.ServiceUploadPack)
2022/09/19 16:57:00 [63287518-3] router: completed POST /MYORGANISATION/myapp-bundle-docker.git/git-upload-pack for <IP_ADDRESS>:0, 200 OK in 20083.2ms @ repo/http.go:492(repo.ServiceUploadPack)

SSH router logs
2022/09/19 16:58:33 [63287589] router: completed GET /api/internal/serv/command/5/myorganisation/myapp-bundle-docker?mode=1&verb=git-upload-pack for <IP_ADDRESS>:59694, 200 OK in 3.1ms @ private/serv.go:81(private.ServCommand)
2022/09/19 16:58:54 [6328759d] router: completed POST /api/internal/ssh/5/update/5 for <IP_ADDRESS>:59730, 200 OK in 14.6ms @ private/key.go:18(private.UpdatePublicKeyInRepo)

You are looking at internal API calls, which are made from the Gitea process itself hence the <IP_ADDRESS> showing up. SSH has a non-router logger you can refer to if you wish to use fail2ban or some such, although I suspect you are using opensshd which 100% doesn't have an x-forwarded-for http header (as it isn't http but triggers a local binary), if that is indeed the case you would need to refer to opensshd for IP information as it is not passed to Gitea so we would be unable to log it.


Fix potential double unlock

In order to prevent a potential unknown behavior occurring on a second mutex unlock  (triggered by the defer block), the potential second unlock is triggered after verifying the mutex is locked.

After some discussion:
Since this use case only expected to occur in case another panic has already happened, I'm not certain that the risk of introducing new code overcomes the risk of the problem it should solve- closing this PR


Properly expose easy auth provider

Hey, I just made a Pull Request!
#16108 added support for Azure easy auth, however the provider wasn't properly exposed so it can't be used. This PR fixes that by properly exposing the provider
One remaining issue I can't work out - the docs aren't showing up on the docs site.  It's listed in the mkdocs.yml file, but doesn't show up in the sidebar. I guess combined with the above issue, the docs being missing for a broken feature wasn't a problem, but that shouldn't be the case after this PR.
https://github.com/backstage/backstage/blob/99a6dfa9646909d2c0f71d32abea4b6474b109cc/mkdocs.yml#L157

:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

@afscrome the MkDocs.yaml doesn’t drive the Backstage.io docs, that’s done by this: https://github.com/backstage/backstage/blob/master/microsite/sidebars.json

Thanks @ahhhndre - I was looking for files with the a .md extension, which explains why I couldn't find the sidebar json.

Thanks!