ModuleNotFoundError: No module named 'losses'

Describe the question

A clear and concise description of what the question is.

$ python run.py
Traceback (most recent call last):
File "run.py", line 14, in
import deepke.relation_extraction.standard.models as models
File "/home/rj/FG/lib/python3.6/site-packages/deepke/init.py", line 2, in
from .relation_extraction import *
File "/home/rj/FG/lib/python3.6/site-packages/deepke/relation_extraction/init.py", line 2, in
from .document import *
File "/home/rj/FG/lib/python3.6/site-packages/deepke/relation_extraction/document/init.py", line 1, in
from .model import *
File "/home/rj/FG/lib/python3.6/site-packages/deepke/relation_extraction/document/model.py", line 4, in
from losses import ATLoss
ModuleNotFoundError: No module named 'losses'

找到该路径文件 losses前加个.


How to refine union with a function type?

How can I refine a value of the following Value type for the third case (() => Value)?
type Value =
  | number
  | string
  | () => Value;

For now I'm refining by being exhaustive and putting my code in the last branch, like follow, but it's not always practical:
if (typeof value === "number")
  ...
else if (typeof value === "string")
  ...
else
  code for () => Value values here

How about typeof value === "function"

@MrHus thanks! Isn't there any way to be more precise? For example I can have multiple function signatures in my union. I thought of using disjoint unions with sentinels, but I'm wondering if there is a way to refine using the signature instead of a sentinel.

There isn't a way to directly tell the argument or return types of funvtions via type checks at runtime, so I think wrapping them in objects with sentinels is a better approach.
Given that and the lack of activity on this issue, I'm going to close it. Happy to reopen if there's something more to discuss.


Bill of material for opensimmo

@ranranking do you remember if we had the BOM for this project already somewhere? If not, I can try to come up with that.
All the STLs and stuff are in the opensimmo repo, right?

it not a really BOM available, i pushed a sheet on the repo which contains some parts inside

i put it here docs/Supp

Cool. Will use this for the website then, ok?

sure, go for it

Done. If you want, you can go ahead and add additional links ;)

If you want, you can update it @ranranking ;)


docker_run.sh doesn't work in a path with spaces

If you clone Vitis AI in a folder where the full path contains spaces, the docker_run.sh script fails.
For example:
/home/user/Folder with spaces/Vitis/Vitis-AI

Hi @barbiomalefico，
please avoid of using home directory as the workspace of launching Vitis AI docker, as it might have some permission problem with mounting directory from the host into container.
also folders with space is not support as you mentioned

It's not a problem related to the home directory or permissions. It's a problem related to a path that includes spaces.

I can't comment on the concern about volume mounting the repository cloned to the home directory into the container.
The issue with spaces in the path to the repository could probably be fixed with some simple quoting around the volume mount in the docker run command  -v "$DOCKER_RUN_DIR" :/vitis_ai_home \


Location-Based Data Viewer Example

Link Voronoi diagram from codex. Calculate nearest neighbor cell type breakdown. Make heatmap of nearest neighbor breakdown and combine with marker levels.
Look into Kepler.gl widget for Voronoi plots.

This example has been made here: https://github.com/ismms-himc/codex_dashboard
We need to improve the Voronoi plotting and make it in WebGL to be able to handle more cells and zooming.


Remove .DS_Store files from repo

Sorry about picking all this low hanging fruit :smile:
Tested Zulip-Desktop 0.3.2 (based upon 4119f12) on Windows 7 Enterprise SP1

@steele every contribution counts 💯 .


Avoid multiple questions in migrate:refresh

Currently if you perform migrate:refresh or migrate:fresh in production environment it will ask to confirm operation multiple times.
Each question does not add any information about what step it relates to, so currently the extra copies are pointless.
This pull request modifies migrate:refresh and migrate:fresh so that after the initial question will pass, each subcommand will be called with --force=true making their behavior similar to migrate command that already is passing --force=true.

Considering how infrequently people should be performing this in a production environment, I feel like having to confirm multiple times is not the worst thing in the world.
Could you maybe upload a screen grab so we could see what you're seeing when you do this?

Please re-submit with passing tests.

@browner12
I believe its not as infrequent. I am using it to seed the staging server from time to time.
I have env set to production there, to keep it as close to production as possible (including env and debug variables)
For the output here is how it looks currently:
# php artisan migrate:refresh --seed
**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 > yes

**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 > yes

Rolling back: 2014_10_12_100000_create_password_resets_table
Rolled back:  2014_10_12_100000_create_password_resets_table
Rolling back: 2014_10_12_000000_create_users_table
Rolled back:  2014_10_12_000000_create_users_table
**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 > yes

Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table
**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 > yes

Seeding: AdministratorUserSeeder
Seeding: RandomUsersSeeder
Database seeding completed successfully.

And after my fix:
# php artisan migrate:refresh --seed
**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 > yes

Rolling back: 2014_10_12_100000_create_password_resets_table
Rolled back:  2014_10_12_100000_create_password_resets_table
Rolling back: 2014_10_12_000000_create_users_table
Rolled back:  2014_10_12_000000_create_users_table
Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table
Seeding: AdministratorUserSeeder
Seeding: RandomUsersSeeder
Database seeding completed successfully.

I reduced the output to only a few lines for simplicity.
@taylorotwell
Ok


ui-select2 and directives

Is there anything I need to consider while wrapping ui-select2 inside a custom directive? I am trying to set the select2Options in the link function but those settings never get picked up. Is there anything i am missing?
link: function(scope, elem, attrs) {
                    scope.select2Options = {
                        'placeholder': 'myplaceholder'
                    };
                }

and my html looks like this:
<select style="width:100%;" ui-select2="select2Options" multiple ng-model="select2">

Wrap ui-select2 inside a custom directive is not work.
It can be work like this:

    ... ...

app.controller('CountryController', ['$scope',
function ($scope) {
$scope.getCountry = {
...
};
}
]);


Add action for partially updating the state of the active editor tab

Description
In #2265, the actions for resetting and updating the workspace state had their type signatures changed as such:

Note that some instances of Partial were updated to DeepPartial. This is because Partial only makes the top-level properties of any object optional, meaning that nested properties are still required. DeepPartial from the redux library solves this issue by recursively making all nested properties optional.

Upon closer inspection into how the workspace state is partially updated, this change was incorrect and should not have been made. This is because nested objects in an array cannot be partially updated. As such, this change was reverted.
However, there are instances which require for partial updating of the active editor tab, such as in mission control, when adding prependValue and postpendValue to programming questions. To satisfy this need, a new UPDATE_ACTIVE_EDITOR_TAB action was added which partially updates the active editor tab.
Fixes #2284.
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[x] Code quality improvements

How to test
Navigate to the assessment workspace and verify that it is able to load programming questions without crashing. Additionally, under mission control, try to prepend/postpend values to a programming question and verify that the functionality is working (such as by writing a program that depends on something defined in the prepended value).

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

9 of 12 (75.0%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.04%) to 32.913%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/commons/editingWorkspace/EditingWorkspaceContainer.ts
0
1
0.0%

src/commons/editingWorkspaceSideContent/EditingWorkspaceSideContentProgrammingQuestionTemplateTab.tsx
0
2
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.04%

Covered Lines:
4351

Relevant Lines:
12296

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

9 of 12 (75.0%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.04%) to 32.913%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/commons/editingWorkspace/EditingWorkspaceContainer.ts
0
1
0.0%

src/commons/editingWorkspaceSideContent/EditingWorkspaceSideContentProgrammingQuestionTemplateTab.tsx
0
2
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.04%

Covered Lines:
4351

Relevant Lines:
12296

💛  - Coveralls


Fixed the correct initial calculation of the offset.

Fixes
It fixes for my project the issues with the initial calculation of the offsets
Proposed Changes

Change
Initial stickyStart calculation
Offset used for sticky state, is the offset calculated in the computeScrollOffsets function

Read about referenced issues here. Replace words with this Pull Request's context.

Resolves #455

@FrankMerema thanks for this PR. I will think about this update.

Just a note from me, with this fix everything works fine in IE11 for me.

@yowainwright Any thoughts on this PR already?

@FrankMerema I'll look into this today. Sorry for the wait.


Remove hardcoding of versions in workflow

Signed-off-by: Peter Zhu<EMAIL_ADDRESS>Description
Remove hardcoding of versions in workflow
Issues Resolved
#103
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Give it a second as I think the workflow did not fail properly.

Codecov Report

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

@@           Coverage Diff           @@
##             main     #120   +/-   ##
=======================================
  Coverage        ?   83.56%
  Complexity      ?      555
=======================================
  Files           ?       61
  Lines           ?     2050
  Branches        ?      146
=======================================
  Hits            ?     1713
  Misses          ?      232
  Partials        ?      105

Continue to review full report at Codecov.

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


fix: handle safari z-indexing drag elements; hls defaults

:tada: This PR is included in version 11.2.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Bug]: Coolify doesn't work after installing it - Error: EHOSTUNREACH

Is there an existing issue for this?

[X] I have searched the existing issues

Example public repository
coolify
Description
I installed coolify on a fresh ubuntu 22.04 installation.
After running the install command, the message correctly tells me to go to port :3000, however this then just keeps hanging.
I already tried pinging from inside the terminal and from within docker, but both also keep hanging.
When looking into the docker logs I see the error:
Coolify's API is listening on <IP_ADDRESS>:3000
[001] Initializing server...
[002] Cleanup stucked builds...
[003] Cleaning up old build sources under /tmp/build-sources/...
Couldn't get latest templates.
RequestError: connect EHOSTUNREACH <IP_ADDRESS>:443
    at ClientRequest.<anonymous> (file:///app/node_modules/.pnpm/got@12.5.3/node_modules/got/dist/source/core/index.js:789:107)
    at Object.onceWrapper (node:events:628:26)
    at ClientRequest.emit (node:events:525:35)
    at ClientRequest.emit (node:domain:489:12)
    at TLSSocket.socketErrorListener (node:_http_client:502:9)
    at TLSSocket.emit (node:events:513:28)
    at TLSSocket.emit (node:domain:489:12)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
  input: undefined,
  code: 'EHOSTUNREACH',

I also tried running the install with docker manually installed.
Pinging the url '<IP_ADDRESS>:443' from within my linux environment gives no issues
Steps To Reproduce

Install Ubuntu 22.04
Run install command: wget -q https://get.coollabs.io/coolify/install.sh -O install.sh; sudo bash ./install.sh
Accept installing docker
Try reaching the ip:3000 url

See error at:
4. Get the docker image id with docker ps
6. Check the docker logs for coolify using docker logs <id>
Version
3.12.31

Turned out to be an issue with my server provider. The docker instances created didn't get proper network settings passed on, resulting in docker instances without internet. I switched to Debian and this solved it.


Transitive dependencies are not found when using composite builds with custom publish metadata

Given the following three projects (foo, bar, and app), where app depends on bar depends on foo, I'd like to be able to simply install bar in project app and have library foo automatically installed as well.  This does work correctly with the following scripts:
Project 'foo' build.gradle
plugins {
  id "maven-publish"
}

repositories {
  mavenLocal()
}

group = "com.test2.foo"
version = "0.0.1"

def distZip = file("${buildDir}/dist.zip")
def distFile = file("${buildDir}/Foo.txt")

tasks.register("createDistFile") {
  outputs.file(distFile)
  doLast {
    distFile.delete()
    distFile.parentFile.mkdirs()
    distFile.text = "foo output 1"
  }
}

tasks.register("assembleZip", Zip) {
  dependsOn "createDistFile"
  from distFile
  archiveName = distZip.name
  destinationDir distZip.parentFile
}

publishing {
  publications {
    main(MavenPublication) {
      artifact(distZip) {
        builtBy tasks.named("assembleZip")
      }
    }
  }

  repositories {
    mavenLocal()
  }
}

Project 'bar' build.gradle
plugins {
  id "maven-publish"
  id "base"
}

repositories {
  mavenLocal()
}

group = "com.test2.bar"
version = "0.0.1"

def distZip = file("${buildDir}/dist.zip")
def distFile = file("${buildDir}/Bar.txt")

tasks.register("createDistFile") {
  outputs.file(distFile)
  doLast {
    distFile.delete()
    distFile.parentFile.mkdirs()
    distFile.text = "bar output 2"
  }
}

tasks.register("assembleZip", Zip) {
  dependsOn "createDistFile"
  from distFile
  archiveName = distZip.name
  destinationDir distZip.parentFile
}

artifacts {
  "default" distZip, {
    builtBy tasks.named("assembleZip")
  }
}

publishing {
  publications {
    main(MavenPublication) {
      artifact(distZip) {
        builtBy tasks.named("assembleZip")
        pom.withXml {
          def dependenciesNode = asNode().appendNode('dependencies')

          def dependencyNode = dependenciesNode.appendNode('dependency')
          dependencyNode.appendNode('groupId', "com.test2.foo")
          dependencyNode.appendNode('artifactId', "foo")
          dependencyNode.appendNode('version', "0.0.1")
        }
      }
    }
  }

  repositories {
    mavenLocal()
  }
}

Project 'app' build.gradle
repositories {
  mavenLocal()
}

configurations {
  api
}

dependencies {
  api "com.test2.bar:bar:0.0.1"
  // This should be automatically installed when bar is installed
  // api "com.test2.foo:foo:0.0.1"
}

tasks.register("installLibs", Copy) {
  dependsOn configurations.api
  destinationDir = file("${buildDir}/libs")
  configurations.api.each { config ->
    from zipTree(config)
  }
  doFirst {
    destinationDir.deleteDir()
  }
}

The Problem
When using the above scripts, this can be verified by running installLibs in project app and verifying that both Bar.txt and Foo.txt are installed into the build/libs directory.
However, if I change the settings.gradle file in project 'app' to be this:
rootProject.name = 'app'

includeBuild '[PATH TO BAR PROJECT]'

Then if I run ./gradle installLibs again for the app project, I find that Foo.txt is no longer installed.  Is there a way to manually specify this build metadata for project bar, so then when it is used with includeBuild that its transtive dependencies get included?
I noticed that transitive dependencies + composite builds works fine with java projects, so this must be possible somehow already, but I see no way to do this

@svermeulen this does not work using pom.withXml. The information you add there is only for tweaking the POM file. Gradle does not add it to its model of the project.
Instead you should use Gradle's dependency management. Since you are not using the "java-library" plugin, you need to define your own Configuration. If you also want to publish you need to define your own Component for publishing. There you define how the dependencies are mapped to the POM.
configurations {
  myConfiguration
}
dependencies {
   myConfiguration("com.test2.foo:foo:0.0.1")
}
...

You can read up more about the topics here:

https://docs.gradle.org/current/userguide/cross_project_publications.html
https://docs.gradle.org/current/userguide/publishing_customization.html#sec:publishing-custom-components

Closing as an answer has been provided and there is nothing to do on the Gradle side.


State doesn’t change to paused when paused

I don’t know if this is a Jellyfin server issue but when I pause media the state in Home Assistant remains as “Playing”. The state changes to “Idle” if I stop playing the media completely.
The client is NVIDIA Shield

Well status updates are no more working since few weeks without any evident reasons :(


Tableau server 2018.2

Do you test it with tableau server 2018.2 ?

I have not. At the time the 2018.2 version of the automated installer was not available, I can see that it is now (https://github.com/tableau/server-install-script-samples/tree/master/linux/automated-installer/packages) so would be worth giving it a try.


Vascular Disease - onset date/time given related Lifelines variables

Pairing rule issue
Description
Some variables have no question regarding onset of disease, which would lead to an imperfect description of 'onset'. In particular, it seems that the following variables do not have a related 'onset' age/date. @squareb Is this correct?
                                              [1A][1B][1C][2A][3A][3B]
           heartattack_followup_adu_q_1:      [  ][X ][X ][X ][X ][X ]
           carotid_stenosis_adu_q_1:          [X ][  ][  ][  ][  ][  ]
           claudication_followup_adu_q_1:     [  ][  ][  ][X ][X ][X ]
           cvd_followup_adu_q_1:              [  ][X ][X ][X ][X ][X ]

Only heartattack_startage_adu_q_1 and angioplasty_bypass_adu_q_1a would be considered for the onset date (otherwise, the onset date won't be included).
https://github.com/MyDigiTwinNL/Lifelines2Medmij-Mapping-tool/blob/6c17f756e86c952d80fb382c2fb043ce5e1fc745/src/lifelines/VascularDisease.ts#L143-L168

Hello, @baukearends and @squareb. I'm resuming this thread now that we have more clues about issue #3. After revisiting the discussion of both issues (#3 and #4) and double-checking Lifelines' catalog and wiki, the conclusions are:

atherosclerosis_presence_adu_q_1 (a categorical variable) would be one of the indicators of an active CVD only when its value is 'atherosclerosis'. When the variable has any of the other potential values, namely 'heart valve problems', 'thrombosis', and 'pulmonary embolism', it won't be considered.
As this variable is a potential indicator for CVD, so it should also be considered in the calculation of the starting year.
Regarding the cvd_followup_adu_q_1 variable (a yes/no question), it should be considered as indicator of CVD, only when it is related to 'heart infarction' or 'clogged arteries in the legs (intermittent claudication)'

The rule for the condition status would be:
*  @pairingrule
 *     if any of the following variables (if collected on any of the assessments) has a 'yes' value, return 'active':
 *                  heartattack_presence_adu_q_1
 *                  heartattack_followup_adu_q_1
 *                  angioplasty_bypass_adu_q_1
 *                  carotid_stenosis_adu_q_1
 *                  claudication_followup_adu_q_1
 *     or
 *                  cvd_followup_adu_q_1 has a 'yes' and it is related to 'heart infarction' or 'clogged arteries in the legs (intermittent claudication)'
 *     or
 *                  atherosclerosis_presence_adu_q_1 == 'atherosclerosis' (not the other options: heart valve problems, thrombosis, pulmonary embolism)
 *     else
 *          Empty result (there is no such thing as an  inactive' CVD)

And the one for the onset-date would be:
 * @pairingrule
 *
 *      if there is a 'yes' value in 'heartattack_presence_adu_q_1' @ 1A, or in 'angioplasty_bypass_adu_q_1' @ 1A or there is 'atheresclerosis' value on 'atherosclerosis_presence_adu_q_q' @ 1A => earliest date of the three
 *      else
 *          if there is a 'yes' in any heartattack_followup_adu_q_1 => mean date between the date of the assessment
 *              where heartattack_followup_adu_q_1 = yes, and the date of the preceding one.
 *          else if there is a 'yes' in any claudication_followup_adu_q_1 after 1B assessment => mean date between the date of the assessment
 *              where claudication_followup_adu_q_1 = yes, and the date of the preceding one.
 *          else if there is a 'yes' on any cvd_followup_adu_q_1, and it is related to 'heart infarction' or 'clogged arteries in the legs (intermittent claudication)' => mean date between the date of the assessment where cvd_followup_adu_q_1 = yes, and the date of the proceeding one or the baseline assessment (if there is no proceeding assessment)
 *          else
 *              NaN (no onset year would be reported)

Would this interpretation be correct? However, as cvd_followup_adu_q_1 is a yes/no question, I'm still not sure how to check to which particular category it is linked to.


refactor(icon): update dialtone icons usage

Refactor (Icon): Dialtone icons usage
:hammer_and_wrench: Type Of Change

[ ] Fix
[ ] Feature
[x] Refactoring
[ ] Documentation

:book: Description
Refactored the usage of dialtone-icons now that icons are just exporting SVG's instead of vue components to avoid having to compile vue 2 and vue 3 library.
The usage of the dtIcon remains the same, it's just the implementation under the hood that changes.
This might also impact performance positively due to the icons are being imported just on usage and not at once.
:bulb: Context
Dialtone icons v4 had a breaking change that made the library export SVG's instead of Vue components, this change is to update its usage.
:pencil: Checklist

[x] I have reviewed my changes
[ ] I have added tests
[ ] I have added all relevant documentation
[ ] I have validated components with a screen reader
[ ] I have validated components keyboard navigation
[x] I have considered the performance impact of my change
[ ] I have checked that my change did not significantly increase bundle size
[ ] I am exporting any new components or constants in the index.js in the component directory
[ ] I am exporting any new components or constants in the index.js in the root

:camera: Screenshots / GIFs

Some problems in the visual tests it seems.


Blog post on trying out Web5 in a personal project

A short post sharing a personal project using Web5 technology

@nearlyjuly what name should we use for the author byline? can be a username if you'd prefer.

@nearlyjuly what name should we use for the author byline? can be a username if you'd prefer.

I put longform but feel free to change that


Ray open multiple windows for the same project

Describe the bug
I use ray in Docker on my Mac. If I open one ray instance, sometime ray open a multiple window (The first without Project title) and the issues are in the new one. How can I prevent ray to open multiple windows only if it is an other project?
I try the Setting "for every server" and "For every project".
Versions
2.7.5
You can use composer show to get the version numbers of:

spatie/ray package version: * 1.41.2
spatie/laravel-ray package version (if applicable): * 1.36.1

PHP version: 8.3.6
Laravel version (if applicable): 11.0.7
Screenshots

Desktop (please complete the following information):

OS: MacOS
Version Sonoma 14.4.1

I also experience this issue using Docker.

I think I'm hitting the same issue with remote connections: https://github.com/spatie/ray/issues/948
Does anyone monitor these issues? I just bought the product and it seems no one is responding to support requests...

Sorry for the late response. Answer provided in a similar issue: #948. We'll investigate this further!


[SPARK-25638][SQL] Adding new function - to_csv()

What changes were proposed in this pull request?
New functions takes a struct and converts it to a CSV strings using passed CSV options. It accepts the same CSV options as CSV data source does.
How was this patch tested?
Added CsvExpressionsSuite, CsvFunctionsSuite as well as R, Python and SQL tests similar to tests for to_json()

Test build #96931 has started for PR 22626 at commit 91512d7.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

ok to test

add to whitelist

Test build #96933 has finished for PR 22626 at commit 91512d7.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

Test build #96931 has finished for PR 22626 at commit 91512d7.

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

Merged build finished. Test PASSed.

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

@HyukjinKwon Could you look at this PR one more time, please.

@cloud-fan @gatorsmile Could you look at the PR, please.

Test build #98336 has started for PR 22626 at commit 39f6899.

Test build #98336 has finished for PR 22626 at commit 39f6899.

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

Merged build finished. Test PASSed.

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

This needs to be rebased.

Test build #98349 has started for PR 22626 at commit 142e8a2.

@MaxGekk, BTW, I added schema_of_csv at R side. You can add schema_of_json at R side in a similar way.

Test build #98349 has finished for PR 22626 at commit 142e8a2.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

Test build #98352 has started for PR 22626 at commit ee330ba.

Test build #98352 has finished for PR 22626 at commit ee330ba.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

Test build #98405 has started for PR 22626 at commit 230f789.

Test build #98405 has finished for PR 22626 at commit 230f789.

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

Merged build finished. Test PASSed.

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

Test build #98428 has started for PR 22626 at commit 6969b49.

Test build #98431 has started for PR 22626 at commit 1895cdc.

Test build #98431 has finished for PR 22626 at commit 1895cdc.

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

Merged build finished. Test PASSed.

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

Merged to master.

Any way to backport it to 2.4 there seems to be staying power in 2.4, and this function is really needed

This is a new feature for 3.0, so we don't do so basically.


Go initial code

commit 1: Adds initial go library code for cap alerts and atom feeds.
commit 2: Adds initial vendor.

how much of this is new vs adapted from the existing lib?
completely rewritten from ground up..

@MHBauer Comments addressed. Cheers!

@MHBauer added the command to captn that Srinivas suggested in the call.


Use test-log instead of test-env-log

The test-env-log crate has been renamed to test-log to better reflect
its intent of not only catering to env_logger specific initialization
but also tracing (and potentially others in the future).
This change updates the crate to use test-log instead of the now
deprecated test-env-log.

Codecov Report

Merging #1248 (6eead61) into main (17e00df) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1248      +/-   ##
==========================================
- Coverage   94.18%   94.18%   -0.01%
==========================================
  Files         206      206
  Lines       34962    34962
==========================================
- Hits        32930    32929       -1
- Misses       2032     2033       +1

Impacted Files
Coverage Δ

src/fastfield/multivalued/mod.rs
96.96% <ø> (ø)

src/directory/directory.rs
94.11% <0.00%> (-1.48%)
:arrow_down:

src/indexer/segment_manager.rs
80.95% <0.00%> (-1.37%)
:arrow_down:

src/indexer/segment_updater.rs
94.45% <0.00%> (-0.13%)
:arrow_down:

src/query/boolean_query/block_wand.rs
97.06% <0.00%> (+0.20%)
:arrow_up:

src/postings/stacker/expull.rs
94.29% <0.00%> (+0.43%)
:arrow_up:

src/fastfield/reader.rs
94.91% <0.00%> (+0.84%)
:arrow_up:

Continue to review full report at Codecov.

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


Error issue

[CRITICAL] error: <urlopen error [Errno 60] Operation timed out>
How can i fix it?

Increase the timeout value by using --timeout=300

thanks


Linux CPU smoke tests failing due to merged API change

This commit appears to break the Linux CPU tests (at least for me).  It seems that when the smoke tests passed for this commit, the Linux CPU tests didn't include the api_compatibility_test, but now they do.  However, the golden API and the real API have already diverged, so there isn't any possibility of successful passing any more.
commit e6f58186363279496c46563e6f065ce7ea16c501
Author: Bo Wang<EMAIL_ADDRESS>Date:   Mon Jun 5 11:41:32 2017 -0700

@gunan, please take a look.

The goldens are supposed to be updated with each API change.
The test seems to be back to healthy now:
http://ci.tensorflow.org/job/tensorflow-master-cpu/2449/


claim all tokens implemented

https://github.com/steem-engine-exchange/steem-engine-dex/issues/99


Remove clone/copy bounds on From impls by using pattern matching

Looks reasonable, thank you!
bors r+


Fix the issue when the attribute has the same key and value

Purpose
$Subject
Fixes: https://github.com/ballerina-platform/ballerina-standard-library/issues/2835
Examples
Checklist

[x] Linked to an issue
[ ] Updated the changelog
[ ] Added tests
[ ] Updated the spec

Created new PR instead of this.


Wrong QueryAccess for Or as FilterQuery

Bevy version
commit cf5f3b500820344fc9162084da4fa9a884f155a3
Operating system & version
Ubuntu 20.04
What you did
Run the system
fn sys(_q1: Query<&A, Or<(Without<C>, Without<B>)>>, _q2: Query<(&mut A, &B, &C)>) {}

with world and resources
let mut world = World::default();
let mut resources = Resources::default();
world.spawn((A,));
world.spawn((A, B));
world.spawn((A, C));
world.spawn((A, B, C));

What you expected to happen
No panic, as the two queries can not overlap (_q1 should not run on the last entity and _q2 should only run only on the last entity).
What actually happened
Panicked with
thread 'system::into_system::tests::nonconflicting_query_or' panicked at 'System &bevy_ecs::system::into_system::tests::nonconflicting_query_or::sys has conflicting queries. (&mut bevy_ecs::system::into_system::tests::A, &bevy_ecs::system::into_system::tests::B, &bevy_ecs::system::into_system::tests::C) conflicts with the component access [bevy_ecs::system::into_system::tests::A] in this prior query: &bevy_ecs::system::into_system::tests::A.', crates/bevy_ecs/src/system/into_system.rs:103:17

Additional information
This is because the FilterQuery declares its access as
QueryAccess::Union(vec![QueryAccess::Optional( ... without C ... ), QueryAccess::Optional( ... without B ... )])

which applies to the archetype (C, B).
To solve this there would have to be a new variant QueryAccess::Or.

I could write a fix for this. Just wanted to check if my solution is welcome. I would create a new variant
QueryAcces::Or(Vec<QueryAccess>)

The Option variant could then be removed and replaced by
QueryAccess::Or(vec![query_access, QueryAccess::None])

or be kept for backwards compatability.

Have you tried QuerySets?
fn sys(_qs: QuerySet<(Query<&A, Or<(Without<C>, Without<B>)>>,
                      Query<(&mut A, &B, &C)>)>) {}

Thank you, it does work with QuerySet.
Still the QueryAccess is more strict that it should be. This is not a huge problem, but in my opinion it still should be rewritten to reflect the actual access (which would allow more valid systems and maybe allow a better execution schedule).

Yup I agree that this is worth fixing. Thanks for identifying this!  I'm (serendipitously) currently in the process of reworking query access for my Bevy ECS core rewrite, so hopefully we can just make this work right out of the gate there.

I can confirm that this has been fixed in 0.5and can be closed.
My test:
use bevy::prelude::*;

struct A;
struct B;
struct C;

fn main() {
    App::build().add_startup_system(setup.system()).add_system(sys.system()).run();
}

fn setup(mut commands: Commands) {
    commands.spawn_bundle((A,));
    commands.spawn_bundle((A,B));
    commands.spawn_bundle((A,C));
    commands.spawn_bundle((A,B,C));
}

fn sys(_q1: Query<&A, Or<(Without<C>, Without<B>)>>, _q2: Query<(&mut A, &B, &C)>) {}```

Closing per @MinerSebas; this lines up with my own knowledge of the code base as well :)


weights files of modules/Grouping_legend_mapping

Could you please share the  weight files of modules/Grouping_legend_mapping/ckpts/mlp_ckpt.t7 and modules/Grouping_legend_mapping/ckpts/ckpt_30.t7, thanks

Hi @limaopeng1 ,
The previous link had expired it seems, the README has been updated with a temporary link containing all weights.

Resolved by https://github.com/Shiva-sankaran/LineEX/commit/2bad80769aaeb6cad9104e0c8a6d24f902c68589


typo

"    a radiodns:BeaererDAB;" in https://github.com/bbc/radio-service-vocab/blob/master/examples/bbc_radio_fourfm.ttl

The same typo appears in the readme, in the Service properties table.

Fixed in 4a5ef44a7bb31c3a8654c939df33afb00d54f583


riscv/esp32c3: Initialize the BLE Mac

Summary
Initialize the BLE static Address when initializing the Bluetooth Controller.
Impact
Testing

Hi @xiewenxiang it is returning an error:
riscv64-unknown-elf-ld: /github/workspace/sources/nuttx/staging/libarch.a(esp32c3_ble_adapter.o): in function `read_mac_wrapper':
esp32c3_ble_adapter.c:(.iram1+0x98): undefined reference to `esp_read_mac'

In IDF it is defined at components/esp_common/src/mac_addr.c

@xiewenxiang please fix this warning:
/home/runner/work/incubator-nuttx/incubator-nuttx/nuttx/arch/risc-v/src/esp32c3/esp32c3_wireless.c:353:7: error: Right brace must be followed by a blank line

Hi @xiewenxiang it is returning an error:
riscv64-unknown-elf-ld: /github/workspace/sources/nuttx/staging/libarch.a(esp32c3_ble_adapter.o): in function `read_mac_wrapper':
esp32c3_ble_adapter.c:(.iram1+0x98): undefined reference to `esp_read_mac'

In IDF it is defined at components/esp_common/src/mac_addr.c

I have modified it.

@xiewenxiang please fix this warning:
/home/runner/work/incubator-nuttx/incubator-nuttx/nuttx/arch/risc-v/src/esp32c3/esp32c3_wireless.c:353:7: error: Right brace must be followed by a blank line

@xiaoxiang781216  OK, I have fixed it.

Hi @xiaoxiang781216 @gustavonihei
Could you please merge this PR..


Update Nameservers to vd1 and vd2.

Update nameserver to vd1 and vd2 (these are cwp nameservers, we're using [long time deleted] DirectAdmin ones.)

@TwilyHoney Can we also have our premium nameservers listed for our Premium customers?
dns10.infinitzhost.com and dns11.infinitzhost.com

Please merge #10 instead.


ERT restore failed. Failed to backup database running restore on elastic-runtime

OpsManager 1.9.2
ERT 1.9.2
Trying to restore ERT. Getting below errors from cfops restore
017/02/08 16:53:06 E0208 16:53:06.296638 10271 execute_list.go:16] Process exited with status 1
2017/02/08 16:53:06 E0208 16:53:06.296778 10271 elasticruntime.go:69] Error backing up db Process exited with status 1
2017/02/08 16:53:06 E0208 16:53:06.29682 10271 createCliCommand.go:49] there was an error: failed to backup database running restore on elastic-runtime tile:tile
Here is the mysql log..
2017-02-08 21:53:04<PHONE_NUMBER>85376 [Note] WSREP: cluster conflict due to high priority abort for threads:
2017-02-08 21:53:04<PHONE_NUMBER>85376 [Note] WSREP: Winning thread:
THD: 17029, mode: total order, state: executing, conflict: no conflict, seqno: 79655
SQL: DROP TABLE IF EXISTS scaling_events
2017-02-08 21:53:04<PHONE_NUMBER>85376 [Note] WSREP: Victim thread:
THD: 17025, mode: local, state: idle, conflict: no conflict, seqno: -1
SQL: (null)
2017-02-08 21:53:04<PHONE_NUMBER>85376 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=4 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>26336 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=8 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>26336 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=8 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>52512 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=8 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>61824 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=8 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>71136 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=8 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>85376 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=4 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>85376 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=4 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>85376 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=4 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>52512 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=4 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>52512 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=4 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>71136 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=4 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>17696 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=7 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>91584 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=7 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>58720 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=7 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>85376 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=7 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>85376 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=7 solved by abort
2017-02-08 21:53:04<PHONE_NUMBER>85376 [Note] WSREP: MDL conflict db=autoscale table=scaling_events ticket=7 solved by abort
InnoDB: Error: trying to create a MySQL system table mysql/db of type InnoDB.
InnoDB: MySQL system tables must be of the MyISAM type!
Any idea?
Thanks,

Hi @cloudm9,
Thanks for raising this issue. We'd advise you to contact Pivotal GSS for support - they will able to help you with this.

Ok, thank you!

@cloudm9 were you able to get assistance from Pivotal GSS for this issue? I'd like to go ahead and close out this issue.

@mxplusb has there been any update/fix on this issue? Just ran into this issue.

Came across this issue. Here are the notes from the investigation.
PCF 1.8 uses MariaDB 10.0.17
PCF 1.9.7 uses MariaDB 10.1.18 (checked on vm)
MariaDB 10.1.4 introduced a new property called enforce_storage_engine
This controls the ability to set engines beyond the default. In MariaDB 10.1.7 this includes the default sql_mode NO_ENGINE_SUBSTITUTION.
This appears to cause the command to fail.
To workaround this, I ran the cli sudo -i /var/vcap/packages/mariadb/bin/mysql -u root -h localhost --password=<pass> and then  set global enforce_storage_engine=NULL;.
Rerunning the backup then seemed to work and all system tables were recreated successfully.
SHOW TABLES from mysql;
+---------------------------+
| Tables_in_mysql           |
+---------------------------+
| column_stats              |
| columns_priv              |
| db                        |
| event                     |
| func                      |
| general_log               |
| gtid_slave_pos            |
| help_category             |
| help_keyword              |
| help_relation             |
| help_topic                |
| host                      |
| index_stats               |
| innodb_index_stats        |
| innodb_table_stats        |
| plugin                    |
| proc                      |
| procs_priv                |
| proxies_priv              |
| roles_mapping             |
| servers                   |
| slow_log                  |
| table_stats               |
| tables_priv               |
| time_zone                 |
| time_zone_leap_second     |
| time_zone_name            |
| time_zone_transition      |
| time_zone_transition_type |
| user                      |
+---------------------------+
30 rows in set (0.00 sec)

@Samze workaround worked!!! Thanks.

This is now documented at http://www.cfops.io/#restoring-ert-on-pcf-1-9.

@henryaj Looks like this breaks database replication. So, to make database replication work, you have to put the enforce_storage_engine value back what it was. It would be great to add this to the doc

Thanks @anwarchk - that's noted in the docs on cfops.io.


[RELEASE-v1.8] Revert "upgrade k8s autoscaling to v2

https://github.com/openshift/knative-serving/pull/1314

/lgtm


Add CI

#12 checks that the sqlite-web example builds, but we also want to make sure that it runs successfully (especially in light of absence of #2). What's the best way to do this?


Add support for other chrome profiles in reactdevtools.js

This adds support for other profiles. For example, I don't have .../User Data/Default but have .../User Data/Profile 5.

This does not stick to our ESLinting configuration and styleguide https://github.com/rauenzi/BetterDiscordApp/blob/main/CONTRIBUTING.md#javascript-styleguide
Please update that and I will take another look


43 | Multiply Strings (Medium) | C++

Title - Multiply Strings (Medium)
What will change - A new C++ solution will be added.
Type of Issue -

[x] Adding New Code

Programming Language

[x] C++

Self Check

Ask for issue assignment and wait to get assigned to it before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Discord server ✉ - https://discord.gg/CXksGdn
Happy Coding,

@Yashica7 @SSKale1 please assign this issue to me!

Please assign it to me.

nikhil05-code I will highly suggest you find issues yourself as they are assigned on preferences.


is Sea orm Json type can't insert  text [] type

Description
is Sea orm Json type can't insert  text [] type
hello i'm trying to add a record into postgres database,which contain a json value,and i got problem when insert happen
// enum definiton
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "recipe_type")]
pub enum EnumType {
    #[sea_orm(string_value = "a")]
    A,
    #[sea_orm(string_value = "b")]
    B
}

//table
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
#[sea_orm(table_name = "table_name")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub id: i32,
    #[sea_orm(column_type = "JsonBinary")]
    pub name: Vec<EnumType>
}

// insert action
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct InsertType {
     id:i32,
     pub name: Vec<EnumType>
}

i got:
{ severity: Error, code: "42804", message: "column \"type\" is of type jsonb but expression is of type text[]", detail: None, hint: Some("You will need to rewrite or cast the expression."), position: Some(Original(186)), where: None, schema: None, table: None, column: None, data_type: None, constraint: None, file: Some("parse_target.c"), line: Some(586), routine: Some("transformAssignedExpr") }

it's seems text[] was not supported by seaorm ?
thanks for read,i did this follow issue 1517
https://github.com/SeaQL/sea-orm/issues/1517

@joebnb Can you also provide the sea-orm version you're using?

@joebnb Please also share the code where you're inserting the record.


README generator fix

Shame, could have caught this with some command tests pretty easily. This might be an easy one to cover in the future.

          1 Warning

:warning:
Tests were not updated

  Generated by :no_entry_sign: danger


Levels created in game have the same title "New Level"

Steps to reproduce

Start game
Press N
Press Tab
Press S
Type level name
Press Enter
Repeat several times from step 1.
Move created levels to assets dir

Observed
All new levels have the same name "New Level".

Expected
List of level names which was typed while saving new levels.

Level titles were removed in #1203


Santa is cut in two halves in Russian version of letter

valid point. We'll have a look at this

@anastas-makar is this on a specific email client?

That was web-version (opened in Chrome, then in Firefox). In Thunderbird quite the same.

*email service: mail.ru
*OS: Ubuntu Linux

Fixed


Unhandled error in apple-touch-icon rule

I'm finding a crash in the apple-touch-icon rule when trying to run against my website. This was done off a base install of sonar as a local node module (rather than a global).
Environment

Windows 10 16281
sonar: 0.6.3
node: 8.4.0
npm: 5.3.0

sonar configuration
{
    "browserslist": [],
    "connector": {
        "name": "chrome",
        "options": {
            "waitFor": 1000
        }
    },
    "formatter": "stylish",
    "ignoredUrls": {},
    "rules": {
        "apple-touch-icons": "error",
        "axe": "error",
        "content-type": "error",
        "disown-opener": "error",
        "highest-available-document-mode": "error",
        "html-checker": "error",
        "manifest-app-name": "error",
        "manifest-exists": "error",
        "manifest-file-extension": "error",
        "manifest-is-valid": "error",
        "meta-charset-utf-8": "error",
        "meta-viewport": "error",
        "no-disallowed-headers": "error",
        "no-friendly-error-pages": "error",
        "no-html-only-headers": "error",
        "no-protocol-relative-urls": "error",
        "no-vulnerable-javascript-libraries": "error",
        "ssllabs": "off",
        "strict-transport-security": "error",
        "validate-set-cookie-header": "error",
        "x-content-type-options": "error"
    },
    "rulesTimeout": 120000
}

URL for which sonar failed

https://www.aaron-powell.com

Output
| Traversing finishedTypeError: unsupported file type: undefined (file: undefined)
    at lookup (C:\_Projects\github\aaronpowell.github.io\node_modules\@sonarwhal\sonar\node_modules\image-size\lib\index.js:34:9)
    at module.exports (C:\_Projects\github\aaronpowell.github.io\node_modules\@sonarwhal\sonar\node_modules\image-size\lib\index.js:75:12)
    at checkImage (C:\_Projects\github\aaronpowell.github.io\node_modules\@sonarwhal\sonar\dist\src\lib\rules\apple-touch-icons\apple-touch-icons.js:89:27)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Thank you for the issue, @aaronpowell!

at module.exports (C:_Projects\github\aaronpowell.github.io\node_modules@sonarwhal\sonar\node_modules\image-size\lib\index.js:75:12)

The problem is that the apple-touch-icon returns an HTML page (404 page) and image-size just chokes.
Will update the rule do some checks before using image-size.

@alrra yeah I figured it was probably a 404, so naturally telling you which URL it was would help 😉.
Interestingly enough @molant ran on his machine against the URL and didn't get the issue, but maybe he had a dev version, or the rule turned off.

@aaronpowell my .sonarrc didn't have that rule activated because it was generated with a previous version of sonar 😟

yeah I figured it was probably a 404, so naturally telling you which URL it was would help 😉.

@aaronpowell The problem is that the site is responding with a HTML page AND the status code of 200 for an image request.
Should be fixed by #519. Thanks again for the report, keep them coming!

Ah good catch @alrra, I must have an overly aggressive bit of 404 handling, I should fix that on my site too!


Base docker image with flakes support

Currently the default base image is built with latest stable nix. Since more and more users use flakes and stable nix does not have flakes support a new docker image should be created.
Create a separate tagged image that has flakes support. Also create an example, so developers know how to use that image.

Github actions now build image with flakes support.

It seems that it needs updating. Flakes are quite useful, would you mind update this repo based on flakes? Thx!


x800 File upload viewing

User story
As a TS (Katy) I would like to view the files uploaded in x808 on the history page, so users and customers can view and download the files

@seenanair the files don't appearing to be appearing on the history page

Ohh! I think I missed that link to be included. I will do it

@KatyTudor  Do you have any preference for ‘files’ table column order  in history page ?

@seenanair is it possible to download the files from the history page too? Otherwise the customers would need to log in and we need that feature to be for people not logged in. but keep the file manager page to be logged in users only?


[Question] Syntax

Why does viewmodel use commas in data-bind to separate bindings instead of semicolons?
As an idea, what about allowing multiple arguments for bindings?
Like
data-bind="if:selectedA, selectedB; click: doSomething, doSomethingElse; class: { selected: selectedA, selectedB }"

would only show the element if both values === true, and trigger both functions.

And a second question, which has to do with https://github.com/ManuelDeLeon/viewmodel/issues/38.
Is there a way to do something like the following things?
data-bind="class: { selected:  selection=1 }"

or
data-bind="class: { selected: _selection(1) }"

template.viewmodel
  selection: 0
  _selection: (val) ->
    val is @selection()

I don't think this exists, but it would be really helpful. The syntax is not so important here, it's more about the idea :)

About the commas, to be honest (for once), it's not going to change because it would require major rewrite of the parser. Then there's the ambiguity of it (is it going to be AND or OR?) In that particular case the solution is to allow functions to run: data-bind="if: function() { return optionA() && optionB(); }" I couldn't find it any uglier so don't wait for it. In the meantime just bind to one property and put your logic in the view model.
Regarding the second question, you can do that already. I'll reuse the example on #38
html

One

Two

  Selected:

coffee
Template.body.viewmodel
  selection: 0
  selected: (n) -> n is @selection()

css
.selected {
    color: red;
}

I see, I didn't think about it. Allowing to pass functions looks bad, I agree. What do you think about this syntax?

Not visible

Visible

I've tried to write these helpers:
  and: ->
    result = _.find arguments, (property) ->
      not (property?() ? property)

    result isnt false

  or: ->
    !!_.find arguments, (property) ->
      !!(property?() ? property)

Code works, but only for text bindings, and only when I pass true and false values directly. Passing viewmodel properties doesn't work ([Log] Error: ReferenceError: Can't find variable: x).

The more I think about it, the better I like this syntax.
Back to a previous comment,
data-bind="class: { selected:  selection=1 }"

is ugly, while
data-bind="class: { selected:  is(selection, 1) }"
is clean.

is: ->
a = arguments[0]
b = arguments[1]
(a?() ? a) is (b?() ? b)


Scale in 2 dimensions changes a Rectangle from PLANE to BSPLINE

with bd.BuildSketch() as s:
    bd.Rectangle(1,2)
    bd.Scale(by=(2,1,0))

returns
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In [3], line 5
      3 with bd.BuildSketch() as s:
      4     bd.Rectangle(1,2)
----> 5     bd.Scale(by=(2,1,0))

File ~/Development/build123d/src/build123d/build_generic.py:520, in Scale.__init__(self, by, mode, *objects)
    515         new_object = obj_at_origin.transform_geometry(scale_matrix).locate(
    516             current_location
    517         )
    518     new_objects.append(new_object)
--> 520 context._add_to_context(*new_objects, mode=mode)
    522 super().__init__(Compound.make_compound(new_objects).wrapped)

File ~/Development/build123d/src/build123d/build_sketch.py:140, in BuildSketch._add_to_context(self, mode, *objects)
    138         obj.position = obj.position - Vector(0, 0, obj.position.Z)
    139     if isinstance(obj, Face) and not obj.is_coplanar(Plane.XY):
--> 140         raise ValueError("Face not coplanar with sketch")
    142 pre_vertices = (
    143     set()
    144     if self.sketch_local is None
    145     else set(self.sketch_local.vertices())
    146 )
    147 pre_edges = (
    148     set() if self.sketch_local is None else set(self.sketch_local.edges())
    149 )

ValueError: Face not coplanar with sketch

If you debug it, you see that it is coplanar, however a BSPLINE instead of a PLANE.
I think it is the same problem as https://github.com/gumyr/build123d/issues/80

Thanks! It's a pain that transform_geometry changes the object the way it does.  I'll have to change Face.is_coplanar() to not use the geometry.

Fixed with 8b3141bcee7f1cae283a563363e96e4773941b29


Disabled spelling in documentation

Removed sphinxcontrib-spelling from docs/requirements.txt, as it
was causing build errors on Read the Docs.
This will need to be reinstated in due course.

Coverage remained the same at 77.778% when pulling 8d15aa709ae523987dd5ceaaf40415d4b1ecb676 on test-docs into fe553bcc45af101cae9f31b4d05a9a12fddf6325 on release/3.5.x.


Fix Kubernetes typo

Spotted typo in recently updated text

Sorry to bother you again @sftim, @tengqm, just spotted a typo in the last commit after it was merged.
Thanks

/lgtm
Fix the typo,thanks

Sorry to bother you again @sftim, @tengqm, just spotted a typo in the last commit after it was merged.

You don't need to mention any reviewers in your PR unless you believe there is a need for someone to review it.
/lgtm
/approve


Running predefined reports displays "no datapoints" even though data is displayed

Setup: Kubernetes, Sockshop, on Ubuntu 10.06
When I run a one of the reports in the Prometheus System Queries section, they are all returning "No data points", yet data is being returned.  I am not seeing the same issue in the Kubernetes section.

I see what's happening here.  There are no datapoints, this is true, but the screen is not refreshing from any prior graph that was displayed.

Could you file this in service-ui if its a UI bug please?

moved


toNumber is lenient

Version
3.0.2
Steps to reproduce
toNumber (defined in @vue/shared) uses parseFloat, which is very lenient and will succeed if the first non-whitespace character is a digit (or sign).
So toNumber("1234abc") will succeed and return 1234.
toNumber is used by the .number modifier, so this surfaces in very observable ways to the end-user.
A simple alternative would be Number("1234abc"), which does fail if the complete string isn't a valid number.  Like parseFloat it does accept spaces at the beginning and end of string.
What is expected?
<input v-model.number="x" />

If I input "12abc", given the behavior of v-model.number, I expect x to be the string 12abc, which can then be handled as a validation error in user code.
What is actually happening?
12 is assigned to x.

I would say this is expected. It is consistent with Vue 2. Changing it would create trouble for users when migrating.
If you want to handle the string yourself, then it's better not to use the v-model number modifier and use a computed property instead to format the value as you wish.
You can also use custom v-model modifiers to create a behavior that better fits your specific needs.

Migration might be a concern, yes.
Although I don't see how this could be a "feature". It's strange that typing - 2 doesn't parse but 1.2.3 does.
As it is, I'd say the modifier is only useful in contexts where you know this input will be correct and you don't care about error handling.
I am working around this by not using the modifier, as you suggest. If you need this repeatedly it's annoying.
Could you please tell me more about custom v-model modifiers? I am very interested into those (e.g. a .null, .date and more) but had the impression that Vue did not support them?

I'd say this being javascript it's consistent with javascript behaviour and I agree with @posva that one should just handle the value as string manually instead :thinking:

@vhoyer saying it's consistent with JS is implying you know the underlying implementation.
Javascript has Number() ctor, which is a far better tool to parse numbers.
How is it consistent with javascript that .number returns a different result from Number()?
The modifier isn't called .parseFloat so I'd say I find it pretty inconsistent with javascript.

well, your right about that, but looking at the parsing behavior from Number I'd say instead of return x as a string, if we end up updating this, maybe it's better to return a NaN?

I agree with you, it's strange that .number returns a string, sometimes, and I'd also prefer NaN.
But that would be massively breaking for v2 users, much more so that just being more strict at parsing bogus inputs.
Fun fact: v-model implicitly use .number if your input is of type="number". Given that this input type is supported way back to IE10, a simpler, more efficient strategy now could be to read valueAsNumber instead, for that specific input type.

That's where pipes shined, but they were removed from Vue 3.

I assume you're referring to filters. Anything you used to do with filters you should now be able to do with methods instead. See:
https://v3.vuejs.org/guide/migration/filters.html#migration-strategy

Could you please tell me more about custom v-model modifiers? I am very interested into those (e.g. a .null, .date and more) but had the impression that Vue did not support them?

I believe the relevant docs are here:
https://v3.vuejs.org/guide/component-custom-events.html#handling-v-model-modifiers

@skirtles-code Thanks for the pointers, much appreciated!

I assume you're referring to filters. Anything you used to do with filters you should now be able to do with methods instead.

Yes, I'm referring to filters. Sorry for the confusion, they are called pipes in Angular; Value Converters in Aurelia.
Functions are a good enough replacement for (one-way) bindings and they'll be even more so when JS gets the pipe operator |> and you could write :value="name |> uppercase".
They are not usable in (two-way) v-model, though and that's really where their power was lost.

I believe the relevant [modifiers] docs are here:

Thank you, I thought custom modifiers weren't a thing!
I'll have good uses for them.
It's no silver bullet, though. It only works on components and is defined per-component.
That can make sense but it turns them into poor substitute for a custom .number (or any generic filter for that matter), as they wouldn't work on <input> for example.
Another limitation is that they don't take arguments, they're just booleans. This is also pretty limiting compared to filters, that may for example accept a date format, a default value, a rounding factor.
It's amusing that the recommended way to manipulate a value updated by a v-model is to use a property setter. From what I read, the main argument against filters is that they may create instable loops when a value changes between reading and writing it. But that same thing can exactly happen if you set up a property setter, there's no difference.
On the other hand, you have to use a cumbersome syntax (that won't play nice with <script setup> if you don't rely on a computed) and most of all it's not easily composable/reusable.
A basic example that has been mentioned before is wanting to convert empty strings to null in your model. Why would .trim be something that's supported everywhere and there's no way to achieve something similar for a .null (or a filter syntax)? What makes trim so different?
A good design should enable users to create .trim or .number without relying on Vue Core.
It looks like the focus of that issue has shifted from a .number implementation detail to filters 😆

They are not usable in (two-way) v-model, though and that's really where their power was lost.

In fact, Vue 2 supports filters only inside mustache expressions ({{ ... }}).
The last Vue version that supports filters inside v-bind, v-model, v-for, etc. was v1. As per migration guide, the most suitable replacement for filters is computed getters/setters.

I particularly like to use computed properties factories for reusing these logics, although typing them may be tricky in some cases.
In Option API:
function trim (key) {
  return {
    get () {
      const val = this[key]
      return typeof val === 'string' ? val.trim() : ''
    },
    set (val) {
      this[key] = val.trim()
    }
  }
}

In Composition API:
function trim(originalRef) {
    return computed({
      get: () => {
        const val = originalRef.value
        return typeof val === 'string' ? val.trim() : ''
      },
      set: (val) => {
        originalRef.value = val.trim()
      }
    })
}

I wasn't aware Vue 2 only had one-way filters. Yeah, it's just functions then.
Interesting it never had two-way filters as that's a nice useful primitive that everyone else (who does 2-way bindings) has: e.g. WPF (binding converters), Angular (pipes), Aurelia (value converters).
ref factories is ok-ish. Although if you start stacking them it's crazy to have 3 computeds nested on top of a ref for something like v-model="name | trim | upper | null" (bonus points if you build a slightly more complex abstraction, like a ref factory that takes a list of transforms).
Also declaring them as global template resources make them super-easy to use in any place (such as the previous example), whereas you'd need to import them in JS.
But yeah, they'll do the trick for now.

This behavior causes bug. But compatibility is important. So I suggest adding this feature request as a option.

From what I read, the main argument against filters is that they may create instable loops when a value changes between reading and writing it.

@jods4 That's not really the reason I am aware of. What little value the one-way filters that we had them in Vue 2 added did not justify the compiler-problems that this custom non-JS compatible Syntax added, when compared to simple functions that can do the same in a way that any JS parser is fine with.

@LinusBorg 100% agree with that.
It's only if you support them in 2-way scenarios that they bring something new to the table.


[Model] Support Mamba

This is closely based on vLLM's Jamba implementation. It also has several changes and fixes to deal with the fact that there is no KV cache at all. This PR adds a placeholder attention backend, and adapts and renames EmbeddingModelBlockManager to handle cases like Mamba as well.
TODO before landing:

[x] Fix issues with enforce_eager=True (this issue simply vanished after merging)
[ ] Factor out common code between Jamba and Mamba
[x] Added a unit test.

I will also try to get Codestral Mamba working as well. The transformers-compatible Mamba models seem to be working. However, the mamba2 models unfortunately are not transformers-compatible and don't work out of the box. Codestral https://huggingface.co/mistralai/mamba-codestral-7B-v0.1 has the same issue.
See also https://github.com/vllm-project/vllm/issues/6479

 PR Checklist (Click to Expand)
Thank you for your contribution to vLLM! Before submitting the pull request, please ensure the PR meets the following criteria. This helps vLLM maintain the code quality and improve the efficiency of the review process.
PR Title and Classification
Only specific types of PRs will be reviewed. The PR title is prefixed appropriately to indicate the type of change. Please use one of the following:

[Bugfix] for bug fixes.
[CI/Build] for build or continuous integration improvements.
[Doc] for documentation fixes and improvements.
[Model] for adding a new model or improving an existing model. Model name should appear in the title.
[Frontend] For changes on the vLLM frontend (e.g., OpenAI API server, LLM class, etc.)
[Kernel] for changes affecting CUDA kernels or other compute kernels.
[Core] for changes in the core vLLM logic (e.g., LLMEngine, AsyncLLMEngine, Scheduler, etc.)
[Hardware][Vendor] for hardware-specific changes. Vendor name should appear in the prefix (e.g., [Hardware][AMD]).
[Misc] for PRs that do not fit the above categories. Please use this sparingly.

Note: If the PR spans more than one category, please include all relevant prefixes.
Code Quality
The PR need to meet the following code quality standards:

We adhere to Google Python style guide and Google C++ style guide.
Pass all linter checks. Please use format.sh to format your code.
The code need to be well-documented to ensure future contributors can easily understand the code.
Include sufficient tests to ensure the project to stay correct and robust. This includes both unit tests and integration tests.
Please add documentation to docs/source/ if the PR modifies the user-facing behaviors of vLLM. It helps vLLM user understand and utilize the new features or changes.

Notes for Large Changes
Please keep the changes as concise as possible. For major architectural changes (>500 LOC excluding kernel/data/config/test), we would expect a GitHub issue (RFC) discussing the technical design and justification. Otherwise, we will tag it with rfc-required and might not go through the PR.
What to Expect for the Reviews
The goal of the vLLM team is to be a transparent reviewing machine. We would like to make the review process transparent and efficient and make sure no contributor feel confused or frustrated. However, the vLLM team is small, so we need to prioritize some PRs over others. Here is what you can expect from the review process:

 After the PR is submitted, the PR will be assigned to a reviewer. Every reviewer will pick up the PRs based on their expertise and availability.
 After the PR is assigned, the reviewer will provide status update every 2-3 days. If the PR is not reviewed within 7 days, please feel free to ping the reviewer or the vLLM team.
 After the review, the reviewer will put an  action-required label on the PR if there are changes required. The contributor should address the comments and ping the reviewer to re-review the PR.
 Please respond to all comments within a reasonable time frame. If a comment isn't clear or you disagree with a suggestion, feel free to ask for clarification or discuss the suggestion.

Thank You
 Finally, thank you for taking the time to read these guidelines and for your interest in contributing to vLLM. Your contributions make vLLM a great tool for everyone!

Thank you very much for your work, I want to implement the vllm feature for RWKV, your implementation gives me a great reference

Hey @uniartisan, sure I can work with you to implement support for RWKV. Perhaps you could you start a draft PR, and we can talk there. Could you link your native pytorch implementation?
I think it would be a good idea to start with CUDA support -- for Mamba, for instance, we depend on kernels that require CUDA, and you may run into that as well.

Hey @uniartisan, sure I can work with you to implement support for RWKV. Perhaps you could you start a draft PR, and we can talk there. Could you link your native pytorch implementation?
I think it would be a good idea to start with CUDA support -- for Mamba, for instance, we depend on kernels that require CUDA, and you may run into that as well.

I have submitted an implementation of the model code (without any adaptation for vllm; I may come back to do this in the coming week).
I will create a new draft and mention you. Thank you!
My draft is available here: https://github.com/vllm-project/vllm/pull/6749
It's a native PyTorch implementation. I will first try to adapt it for vllm, and then port the CUDA kernel and Triton kernel.

This is closely based on vLLM's Jamba implementation. It also has several changes and fixes to deal with the fact that there is no KV cache at all. This PR adds a placeholder attention backend, and adapts and renames EmbeddingModelBlockManager to handle cases like Mamba as well. TODO before landing:

[x]  Fix issues with enforce_eager=True (this issue simply vanished after merging)
[ ]  Factor out common code between Jamba and Mamba
[x]  Added a unit test.

I will also try to get Codestral Mamba working as well. The transformers-compatible Mamba models seem to be working. However, the mamba2 models unfortunately are not transformers-compatible and don't work out of the box. Codestral https://huggingface.co/mistralai/mamba-codestral-7B-v0.1 has the same issue.
See also #6479
PR Checklist (Click to Expand)

Hi @tlrmchlsmth, thanks for your work! Does the current state of this PR support Codestral Mamba on vLLM yet? If so, how do you run it?

However, the mamba2 models unfortunately are not transformers-compatible and don't work out of the box.

Huggingface transformers 4.40.0 supports Mamba-2 (codestral mamba) https://github.com/huggingface/transformers/pull/32080

@anguswangrv, Unfortunately, the Mamba-Codestral released by Mistral is not transformers-compatible. You can see here https://huggingface.co/mistralai/Mamba-Codestral-7B-v0.1/tree/main, there is no config.json file and so won't work out of the box in vLLM.
@learning-chip thanks for the pointer. Given that https://github.com/huggingface/transformers/pull/32080 added modeling_mamba2.py, I'll likely need do some additional work to get mamba2 working in vLLM. If anyone knows of a transformers-compatible mamba2 on huggingface, that would help me to get it working.

Hi @tlrmchlsmth , codestral is indeed compatible with HF transformers! I uploaded the converted files, there is a PR open on refs/pr/9, you can use it as such
from transformers import MambaConfig, MambaForCausalLM, AutoTokenizer
import torch
model_id = 'mistralai/Mamba-Codestral-7B-v0.1'
tokenizer = AutoTokenizer.from_pretrained(model_id, revision='refs/pr/9', from_slow=True, legacy=False)
model = MambaForCausalLM.from_pretrained(model_id, revision='refs/pr/9')
input_ids = tokenizer("Hey how are you doing?", return_tensors= "pt")["input_ids"]

out = model.generate(input_ids, max_new_tokens=10)
print(tokenizer.batch_decode(out))

So you just need to check out the correct revision and it should work :)

@molbap Very nice! I will get that working in this PR :)

Going to add support for Mamba2 and Mamba-Codestral in a subsequent PR partially due to interactions with https://github.com/vllm-project/vllm/pull/7651, and partially to minimize the changes in this PR. I do have it working in another branch, so can follow pretty quickly.

A quick heads-up that the new locations of the model tests have been adjusted in #7820, so please merge from main.

Remember to add this to the Supported Models page!


[8.x] Fix returns with Mail & Notification components

These methods were incorrectly returning values. Since nothing was returned in the first place and the proper DocBlocks were already in place, this should be a general safe thing to do. If you instead want me to send this to master let me know.

@itxshakil can you please stop approving PR's? In general we don't need approvals from people other than maintainers. We appreciate you trying to be helpful but atm this is just spamming our notifications.

@driesvints , Sorry 'bout that, I haven't thought about the spam thing (unneeded notifications).


loadConfig documentation is out of date

https://github.com/platformatic/platformatic/blob/main/docs/reference/start/programmatic.md is badly out of date as most of that functionality was moved to @platformatic/runtime and @platformatic/config.
This doc needs a cleanup.

This was done in #1469


many write error while using oss (s3-like) remote bucket storage

what could be the cause here, and how to deal with it?
(BTW, it's downloading 15m+ images)
img2dataset --url_list=oss://aigc-models-training/data/raw/crawler/ --output_folder=simplecache::oss://aigc-models-training/data/raw/img2dataset/ --processes_count=4 --thread_count=4 --resize_mode=no --output_format=webdataset --input_format=csv--url_col=url --caption_col=title --save_additional_columns="[detail]" --retries=5 —enable_wandb=True  --disallowed_header_directives="[]"

...

0it [00:00, ?it/s]

error code
retrying to write to file due to error: [Errno 5] {'status': -2, 'x-oss-request-id': '', 'details': "RequestError: ('Connection aborted.', timeout('timed out'))"}
error code
retrying to write to file due to error: [Errno 5] {'status': -2, 'x-oss-request-id': '', 'details': "RequestError: ('Connection aborted.', timeout('timed out'))"}
error code
retrying to write to file due to error: [Errno 5] {'status': -2, 'x-oss-request-id': '', 'details': "RequestError: ('Connection aborted.', timeout('timed out'))"}

Also, the perf looks extrememly slow (considerably slower than local disk)... Is this expected?

This is not expected. What are the characteristics of your storage in term
of latency and bandwidth?
Can you test fsspec works well with it ?
On Sun, Jul 2, 2023, 08:18 Dian FAN @.***> wrote:

Also, the perf looks extrememly slow (considerably slower than local
disk)... Is this expected?
—
Reply to this email directly, view it on GitHub
https://github.com/rom1504/img2dataset/issues/327#issuecomment-1616396672,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAR437W67Z5KM67IEJORX5TXOEHBTANCNFSM6AAAAAAZ3HETQ4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

This is not expected. What are the characteristics of your storage in term of latency and bandwidth? Can you test fsspec works well with it ?
…
On Sun, Jul 2, 2023, 08:18 Dian FAN @.> wrote: Also, the perf looks extrememly slow (considerably slower than local disk)... Is this expected? — Reply to this email directly, view it on GitHub <#327 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437W67Z5KM67IEJORX5TXOEHBTANCNFSM6AAAAAAZ3HETQ4 . You are receiving this because you are subscribed to this thread.Message ID: @.>

Thanks for the quick response.
I guess it is my bad... I used a "4 vcpu + 8G mem" small ec2 box, and I guess the network bandwidth or CPU is exhausted for the requests.
Neverthemind, what's the recommend machine configuration for downloading large dataset like laion2b-int or wukong dataset ?


Add ability to easily add adsense

Below the title and above the content. This would be great!

I need help to integrate Adsense. I don't have an Adsense account and it is difficult for me to test.

https://support.google.com/adsense/answer/181950?hl=en-GB
That should help you out 🙂

Ok, but  I need to visually see the ads for aesthetic reasons on implementation.

Ah, I am not sure about that. I think you would have to get your own ID, sorry.

Yes,  I thought so too unfortunately. Maybe someone will work on this if interested.

I will take a look on my site once I get my larger site authorized with it :)

Got my application approved so will look at adding this over the weekend.
Thanks

That's great news! Looking forward to. Here's a good article if you need inspiration: https://mycyberuniverse.com/add-google-adsense-matched-content-jekyll-website.html

Thanks! Will create a request if I get it figured out.

You will implement Adsense ads in the post (After Starting article and End of the Article) by doing a simple method.

Thanks @rahulkumarsingh73690 , I am waiting for @GiacomoLaw for a live demo on website to see how it looks in matter of design (paddings, margins etc).

Thanks, I am waiting for my site to be approved.

Ok, so I made an Adsense account for this. Where do you think it's best to place the ad?  Under title?

Yes, under the header before content would be good.

Ok, done. I only added one under header. If others will find useful, I'll add more places with time.
Change to "enabled" in yml and change pub id + slot to track.

Awesome, thank you!


Incorrect examples in docs Flaskr tutorial

Expected Behavior
Flaskr tutorial docs: https://flask.palletsprojects.com/en/1.1.x/tutorial/views/
The Flaskr Blueprints and Views tutorial explains how you can create a View in your Blueprint. It show the following code snippet on the page:
@bp.route('/register', methods=('GET', 'POST'))
I believe this is incorrect, because methods is argument that expects an array, thus this example will result into an error. This code snippet should be this @bp.route('/register', methods=['GET', 'POST']) I believe.
Environment:

Python version: 3.7.7
Flask version: latest

Did you try it?


Added EvaWiki and Lain Wiki to IWB + possible implementation for Puella Magi Wiki

Decided to add EvaWiki and Lain wiki to Indie Wiki Buddy after considering it for a long time, and tried adding Puella Magi wiki as well, even though I highly doubt these will work out of the box.
Feel free to tell me if I've done something wrong!

Thanks for the submissions! I removed Puella Magi as it's already been added.
The independent EvaWiki seems to be falling a bit behind the Fandom wiki when it comes to activity and coverage. Despite this, do you think it's worth including?

Will add the EvaGeeks wiki in the next release (thank you @memmam and @frozenpandaman) for the feedback. Closing this PR since it is stale.


Handling points not on the network

Clearly this is known and in hand, just logging here to track it (apologies if this is spamming the issue tracker Dustin).

Duplicate of #9


Complete support for bytes paths in nt

Thanks for early feedback!

I think this may solve some of the failures in test_glob.

I have kept it on hold because some things can get simplified once we have support for keyword-only arguments. But since I am preoccupied with other stuff right now, I can't say when this will be. So if it helps, this PR can be merged as is. I can always revisit it later on.

Thanks. I'll merge it in as-is. Better to have incremental progress than wait indefinitely. 😄


Trying to send image from M5 TimerCamera

I need some help while I also would like to make PR to enable sending images or files to webhook. Tried using base64 image but I got error from DC that the limit is 2000 chars. Well now I struggle to send raw image from my camera. Any help is appreciated and I would like to help expand this awesome library.

Okaaay so payed github copilot helped me A LOT while I'm completely braindead from trying to find solutions to this :D Here is the code to add for sending images:
Header file:
bool sendFile(uint8_t* imageData, size_t imageLength, const String& filename, const String& contentType = "image/jpeg");
CPP file:
`bool Discord_Webhook::sendFile(uint8_t* fileData, size_t fileLength, const String& filename, const String& contentType) {
WiFiClientSecure *client = new WiFiClientSecure; // Create a WiFiClientSecure
bool ok = false;
if (client) {
client->setInsecure(); // Disable SSL certificate verification
HTTPClient https; // Create HTTPClient
String boundary = "----WebKitFormBoundary7MA4YWxkTrZu0gW";
String bodyStart = "--" + boundary + "\r\n";
bodyStart += "Content-Disposition: form-data; name=\"file\"; filename=\"" + filename + "\"\r\n";
bodyStart += "Content-Type: " + contentType + "\r\n\r\n";

String bodyEnd = "\r\n--" + boundary + "--\r\n";

int contentLength = bodyStart.length() + fileLength + bodyEnd.length();

if (Discord_Webhook::debug) {
  Serial.println("[HTTP] Connecting to Discord...");
  Serial.println("[HTTP] Content-Length: " + String(contentLength));
}

// Begin HTTPS requests
if (https.begin(*client, Discord_Webhook::webhook_url)) {
  https.addHeader("Content-Type", "multipart/form-data; boundary=" + boundary);
  https.addHeader("Content-Length", String(contentLength));

  // Create the full body
  String body = bodyStart;
  body += String((char*)fileData, fileLength);
  body += bodyEnd;

  // Send POST request
  int httpCode = https.POST((uint8_t*)body.c_str(), body.length());
  if (httpCode > 0) {
    if (Discord_Webhook::debug) {
      Serial.printf("[HTTP] POST... code: %d\n", httpCode);
      if (httpCode == HTTP_CODE_OK) {
        Serial.println("[HTTP] POST... success");
        ok = true;
      } else {
        Serial.printf("[HTTP] ERROR: %s\n", https.getString().c_str());
      }
    }
  } else {
    if (Discord_Webhook::debug) {
      Serial.printf("[HTTP] POST... failed, error: %s\n", https.errorToString(httpCode).c_str());
    }
  }
  https.end();
} else {
  if (Discord_Webhook::debug) {
    Serial.println("[HTTP] Unable to connect");
  }
}

} else {
if (Discord_Webhook::debug) {
Serial.println("[HTTP] Unable to create client");
}
}
delete client;
return ok;
}
`

Didn't test it with another file formats so I added image content-type by default for ease of use.

Thanks 👍 I'll check it out


Make @ProvidedBy take a javax.inject.Provider.

Fixes https://github.com/google/guice/issues/808.

Thanks Tavian!


CoroutineCrudRepository and Reactive Support

Hi! Does kotlin-jdsl support spring data reactive queries? We are using Spring Data R2DBC with Postgres with CoroutineCrudRepository to query our database asynchronously. We are considering using kotlin-jdsl and I'm wondering if it is possible. We have found that you have support for JpaRepository with KotlinJdslJpqlExecutor, but how could we use it with our CoroutineCrudRepository?

Hi Henko!
Unfortunately, Kotlin JDSL only supports JPQL in version 3.0.X. As far as I can find, R2DBC does not support JPA. Therefore, asynchronous cannot be supported.
Kotlin JDSL has the roadmap to support a native query. When native query is supported, support for CoroutineCrudRepository may be possible. However, this will be available next year at the earliest.
And in the roadmap, I only wrote support for mysql, Oracle, but it seems like a lot of people are using Postgres. It seems more beneficial to have Postgres support than Oracle support, so I'll think about Postgres support as well.

Whether it's correct or not aside, according to the link above https://stackoverflow.com/questions/18383946/how-to-convert-hql-to-sql-query-programmatically-without-logging (it appears to be an older version of the HQL generator. Recently It seems that it will not work in this version, so it is better to look for the code for the latest 6.x version separately) HQL queries created through JDSL can be changed to native queries if the Hibernate library and JPA entity are defined. However, you need to be careful about adding dependencies without using Hibernate. If you first create an HQL query like in the link using a JDSL query, you can create it as follows.
val context = JpqlRenderContext()

val query = jpql {
     select(
         path(Author::authorId);
     ).from(
         entity(Author::class);
         join(BookAuthor::class).on(path(Author::authorId).equal(path(BookAuthor::authorId)));
     ).groupBy(
         path(Author::authorId);
     ).orderBy(
         count(Author::authorId).desc();
     )
}

val renderer = JpqlRenderer()

val rendered = renderer.render(query, context)
val hqlQueryString = rendered.query
val params = rendered.params

With the hql and parameters created above, you can create native sql through hibernate's query generator. Please look for the 6.x code separately.
Again, I do not recommend the above code, but if jdsl's native sql version DSL is released in the future, it is expected that the above code can be reused in almost the same way, so I will guide you through a roundabout method.

Thank you! Unfortunately I wasn't able to find a way with Hibernate 6 to translate HQL to Native SQL yet. However I found that Hibernate now has a reactive implementation which supports running HQL directly on a reactive hibernate session. See: https://hibernate.org/reactive/documentation/2.2/reference/html_single/#_queries
I'm now trying to set this up with kotlin-jdsl. Do you think it could work?

Of course it is. Hibernate reactive is officially supported by kotlin-jdsl. I hope you try it.

I assume you are using Coroutine because you asked for the CoroutineCrudRepository.
Since Kotlin JDSL generates a JPQL, you can run that JPQL with Hibernate Reactive. Kotlin JDSL also supports the hibernate-reactive-support module for this.
However, Hibernate Reactive doesn't work well with coroutines.
JPA has a specification for lazy loading of properties. Since lazy loading is blocking, the property itself must be suspendable, which is difficult.
Therefore, Hibernate Reactive also requires a separate fetch method to be called in the context of the session object for lazy loading.
For these reasons, I don't recommend Hibernate Reactive.
If you don't use JPA Entity as a domain and limit your use to the persistence layer, I think you can make do with Hibernate Reactive because the scope of the session or transaction is limited.

For these reasons, I'm not looking for a way to run JPA asynchronously, but rather how I can easily create native queries to integrate with R2DBC.


FIX: Wallet Drawer

No wallet connected
0 Assets

Probably fixed in this commit
https://github.com/vetherasset/vether-dapp/commit/81198cc46c533ce7c852c2ca2ae1385ee3166322
We now have to introduce a proper way to display it or wallet balances in general.


Enhancement: Add Travis CI build status badge to README.md

This PR

[x] adds a Travis CI build status badge to README.md

Do we need this if we take #714? (Which I plan on accepting as soon as we get good builds)

@svpernova09
As long as we don't have it yet, it's useful!

You're not wrong :D

Thank you, @svpernova09!


How to pass filter options in new API?

You can send a reactive function instead of a collection in $meteorCollection's first parameter.
You can look at the example here (stickyTodos):
http://angularjs.meteor.com/api/meteorCollection
Or here in the tutorial in step 15:
https://github.com/Urigo/meteor-angular-socially/blob/step_15/client/parties/controllers/partiesList.js#L13

here is a sample for clean understanding :)
$scope.cities = $meteorCollection(function() {
return Cities.find({
companyId: $rootScope.currentUser.profile.companyId
})
}, true);

Cool :)
By the way, no need for the last true parameter, true is now the default

yeap my mistake sorry :)

Closing for now, @rclai please re-open if there are more questions

Thanks guys.


timeline issue, when adding a new animation, it starts from the beginning

Describe the bug
I want to use the timeline and animate my elements, based on some logic. I would run an algorithm, which adds animation to the timeline and in the end, I can play around with a slider and the seek function. The main issue is now, when I add a new animation to the timeline, the timeline animation starts from the beginning of the timeline, and not from the last position.
I added a simple code snippet here, to demonstrate it. The code below, shows the minimum I came up with, that demonstrate that behavior.
To Reproduce

Expected behavior
I thought, that I could simple continue from the point, where the animation finished, but it restarts everytime I add a new animation to the timeline. Even, if I set seek to a specific time, it would restart from the beginning.
Version

anime: 3.2.1

Desktop (please complete the following information):

OS: Windows
Browser [e.g. chrome, firefox]
Version [e.g. 22]

Additional context
I need to use await, because I actually do some other logic besides the animation, and I like to synchronize both.

I came across the same issue. Are there any workaround?

I did work on this in my fork in the feature-continue-branch. You can have a look there. I have also added a markdown file where I describe what I did.
https://github.com/Manuelbaun/anime/blob/feature-continue/changes.md
Maybe @juliangarnier can have a look and if he sees it fit, he could add it to the library.

Thanks