BUILD-401: add an openshift build using entitlements via shared resources example

/assign @coreydaley
for general code review
/assign @jitendar-singh
/assign @prietyc123
for qe approved label - the doc here are my instructions on how to manually verify this scenario
/assign @rolfedh
for docs approved label - this doc here is my input for the "connecting of the dots" item that @siamaksade opened against you for explaining how to use insights operator, shared resource operator, and openshift builds to do entitled buidls WITHOUT copying the subscription credentials into a secret in the same namespace as the build config, as we currently document as the way to do entitlements with openshift builds in https://docs.openshift.com/container-platform/4.9/cicd/builds/running-entitled-builds.html
@openshift/openshift-team-build-api-maintainers FYI
As I understood @adambkaplan during planning today, the next story where we actually create the blog post is where we "officially" engage with PX and get their comfort level / reqs on all this, so
/label px-approved

/approve

@gabemontero a note regarding PR descriptions - both the PR title and description are used to generate customer-facing changelogs. Therefore, please update the PR title and description so that it is readable to an end-user.
Team member mentions should be placed in separate comments.

updates made @adambkaplan PTAL thanks

I'll have to do your suggested commits manually @coreydaley since I moved that content to a new file per @adambkaplan but I'll get that started soon thanks

@adambkaplan hold a bit on reviewing for you comments ... @coreydaley 's comments made me realize I need to move some doc content from the old file to the new one

ok @adambkaplan @coreydaley I think I have both your sets of comments reconciled and applied together ... PTAL when you get the chance - thanks

bump @rolfedh
for doc approve label ... the new markdowns serve as my input to you for https://issues.redhat.com/browse/RHDEVDOCS-3631

bump @jitendar-singh @prietyc123
for qe approve label
this pr provides the yaml and instructions for you to try entitled builds yourself as part of manual verification (along with an associated feature file in the smoke dir for https://issues.redhat.com/browse/BUILD-400

@adambkaplan @jitendar-singh @prietyc123 how do you all want to handle the assignment of https://issues.redhat.com/browse/BUILD-400 ? ... it is currently unassigned

https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_csi-driver-shared-resource/83/pull-ci-openshift-csi-driver-shared-resource-master-e2e-aws-csi-driver-disruptive/1481256911906017280 was an AWS fail

/label docs-approved

link added thanks @coreydaley
ptal @coreydaley @adambkaplan

aws flake on https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_csi-driver-shared-resource/83/pull-ci-openshift-csi-driver-shared-resource-master-e2e-aws-csi-driver-slow/1481360209472393216
/retest

no more flakes - all tests are green
@adambkaplan @coreydaley PTAL

@rolfedh - I've added a section to the google doc input into the new "Shared Resources" docs that is a starting point for its "connect the docs" piece ...i.e. connecting the dots between the doc articles around Shared Resources, Builds, and Insight Operator/Simple Content Access.

/lgtm

ok @coreydaley rebase handled (it was simple, an existing file was renamed in this PR)
PTAL / retag for merge

/lgtm

/assign @prietyc123 @jitendar-singh
for qe approval.

/label qe-approved


update strsim and move to Rust 2018

cc @ignatenkobrain

This PR is in docopt 1.1.0 on crates.io.


Stats fixes

[ ] add up all candlesticks volume for a market, doesn’t match with market’s total volume (not all of it is included in the candles for some reason), so there is some issue here
[ ] show liquidity score for markets on cards if available
[ ] Time Period based volume wrong on Augur Stats
[x] display the affiliate fee percentage in the UI per market

Related to #5731

show liquidity score for markets on cards if available - this number will ne converted into a % or a ranking (and if so Overall market ranking or ranking within its category)...it is some long number with a bunch of 0s.....Would need to design all this out.... This should be pushed t a later release

looks like candlestick charts match market trade history volume per outcome.
I think market total volume is showing high. I'll investigate


fud stage for NTT pipeline generator

Defines an external fud stage for the NTT pipeline generator.

Very clean. Thanks!


Fixes #31 (fix lookup_evolve)

Fixes #31 and changes mutation_rate to mutation_probability to conform to the Population genetic algorithm class.

Thanks! I presume you ran it locally since it looks like we didn't have a broken test.

Yes -- due to limited compute I ran it like this:
$ python lookup_evolve.py --turns 1 --generations 1
which yields
 Scoring Generation 1 Generation 1 | Best Score: 2.34536231884058 2:2:2:[C, C]:CDDDCDDCDCCCCCCCCDCCDDDCCDDDDDDDCDCCDDCDDDDDDDCDDCDDDCDDCDCCCCDC

Looks good, just two questions

I've just released v4.3.0 of Axelrod on Pypi so now the ordered actions are in the latest release of Axelrod.
@jsafyan could you bump https://github.com/Axelrod-Python/axelrod-dojo/blob/master/requirements.txt#L1 to be:
axelrod>=4.3.0

:+1:
Side question: any trouble that CI passed even when it would have been using a version of the Axelrod library without ordered actions?

Side question: any trouble that CI passed even when it would have been using a version of the Axelrod library without ordered actions?

We don't have a test that makes sure that the pattern representation is sorted, but we need it for reproducibility and reloading previously evolved strategies.

LGTM (thanks @jsafyan :+1:)


Relicense under dual MIT/Apache-2.0

Fixes #82

review? @cmr
Did I miss anything?

Looks good
On January 11, 2016 11:50:34 AM EST, Sean Griffin<EMAIL_ADDRESS>wrote:

review? @cmr
Did I miss anything?

Reply to this email directly or view it on GitHub:
https://github.com/sgrif/diesel/pull/85#issuecomment-170615164

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


hashtable and hashmap-repeated-word

Code Challenge: Class 30 and Code Challenge: Class 31

[ ] Top-level README “Table of Contents” is updated
[ ] README for this challenge is complete
- [ ] Summary, Description, Approach & Efficiency, Solution
- [ ] Picture of whiteboard
- [ ] Link to code
[ ] Feature tasks for this challenge are completed
[ ] Unit tests written and passing
- [ ] “Happy Path” - Expected outcome
- [ ] Expected failure
- [ ] Edge Case (if applicable/obvious)


[TEST] Add P1 test cases for system backup restore feature.

What's the test to develop? Please describe
Add below test cases in our automation.

Test the changes in the settings are restored properly.
Test the changes in the volumes properties like replica count, data locality etc restored properly.

https://github.com/longhorn/longhorn/issues/1455

cc @longhorn/qa


Implement Graphics API

This is a tracking PR for the graphics API.
It is currently functional, however there are a lot of things that still need to be implemented:

element arrays
textures
a significant number of vertex array functions
a number of other functions

This is functional and tested enough that I am confident it can be merged into the main branch.


Flutter HTTP post [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: Failed host lookup: 'api.qrmoney.ml' (OS Error: No address associated with hostname, errno = 7)

static Future postLogin(String mail, String sifre) async {
    String url = 'http://api.qrmoney.ml/UserCheck.php';
    Map<String, String> headers = {"Content-type": "application/x-www-form-urlencoded"};
    String bodyJson = '{"email": "$mail", "password": "$sifre"}';
    Response response= await http.post(url, headers: headers, body: bodyJson);
    String body = response.body;
    return json.decode(body);
  }

I add this
<uses-permission android:name="android.permission.INTERNET"/>
but problem not solved
>[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: Failed host lookup: 'api.qrmoney.ml' (OS Error: No address associated with hostname, errno = 7)
>E/flutter ( 8536): #0      IOClient.send (package:http/src/io_client.dart:33:23)
>E/flutter ( 8536): <asynchronous suspension>
E/flutter ( 8536): #1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:169:38)
E/flutter ( 8536): <asynchronous suspension>
E/flutter ( 8536): #2      BaseClient.post (package:http/src/base_client.dart:54:7)
E/flutter ( 8536): #3      post.<anonymous closure> (package:http/http.dart:70:16)
E/flutter ( 8536): #4      _withClient (package:http/http.dart:166:20)
E/flutter ( 8536): <asynchronous suspension>
E/flutter ( 8536): #5      post (package:http/http.dart:69:5)
E/flutter ( 8536): #6      JsonApi.postLogin (package:flutter_ui_collections/utils/json.dart:27:24)
E/flutter ( 8536): <asynchronous suspension>
E/flutter ( 8536): #7      _LoginPageState._loginButtonWidget.<anonymous closure> (package:flutter_ui_collections/ui/page_login.dart:193:21)
E/flutter ( 8536): #17     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter ( 8536): #18     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter ( 8536): #19     _rootRunUnary (dart:async/zone.dart:1136:13)
E/flutter ( 8536): #20     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter ( 8536): #21     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter ( 8536): #22     _invoke1 (dart:ui/hooks.dart:263:10)
E/flutter ( 8536): #23     _dispatchPointerDataPacket (dart:ui/hooks.dart:172:5)

Flutter doctor
>[√] Flutter (Channel stable, v1.9.1+hotfix.5, on Microsoft Windows [Version 10.0.18362.295], locale >tr-TR)
>
>[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
>[√] Android Studio (version 3.5)
>[√] VS Code (version 1.39.2)
>[√] Connected device (1 available)
>
>• No issues found!

flutter analyze
>Analyzing qrMoney...
>No issues found! (ran in 24.1s)

This would happen when the DNS server can't be reached or when the host in question is not in DNS. I don't think this is a Flutter problem. Can you elaborate on what you are seeing, @Abdusin ?

This would happen when the DNS server can't be reached or when the host in question is not in DNS. I don't think this is a Flutter problem. Can you elaborate on what you are seeing, @Abdusin ?

we switched to a different DNS server and the system is running

I solved my problem by turning off my VPN.

add internet permissions to your android manifest


When ignore whitespace, should also ignore added / deleted blank lines

Implemented as part of 0.1.2


Breaking changes with v1

Updating to v 1.0.2 results the following error:
[Vue warn]: Extraneous non-props attributes (position, pause-on-hover) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
With version 0.9.4 it works, and no error is visible.
Was there any change between the two versions? Position and pause-on-hover is now not the props of the component?
I'm using nuxt 3.6.1

Hi Peter. Yes, I released a new major version, therefore there are some breaking changes in the API.
I was planning on writing a migration guide, but I think the best thing to do is to read the new documentation and then adapt your code.
Regarding your issue, configuration props have been moved to plugin options, which in your case are now located in plugins/notivue.client.ts:
import { notivue } from 'notivue'

export default defineNuxtPlugin(({ vueApp }) => {
  vueApp.use(notivue, {
    pauseOnHover: true
    // ... Other options
  })
})

If you need to update the above options dynamically, use the useNotivue composable:
<script setup>
import { useNotivue } from 'notivue'

const config = useNotivue()

function updateConfig() {
  config.position.value = 'top-left'
  config.pauseOnTouch.value = true
}
</script>

In addition to that, there are new configuration options such as pauseOnTabChange and limit.  The options prop, has been renamed to notifications and can be found in the configuration object as well.
But the most important change is that starting from v1.0.0 <Notivue /> exposes the notification item via v-slot making a hundred times easier using custom components:
<script setup>
import { Notivue, Notifications } from 'notivue'
</script>

<template>
  <Notivue v-slot="item">
    <Notifications :item="item" />
    <!-- Or use your component in place of Notifications -->
  </Notivue>
</template>

Please take a look at the new documentation, which contains all the information you need.
Of course, let me know if you need any further assistance.

Hi @smastrom , many thanks for the help - I have successfully managed to update my custom notification component, and it works.
The only problem still is the exported types are not available:

Is there any chance to fix them?
Another question, which I cannot find in the new documentation was how to make a composable which renders a custom component?
There was something like this in the previous doc:
const methods = ['success', 'error', 'warning', 'info'] as const

  methods.forEach((method) => {
    customPush[method] = ({ props = {}, ...options }) =>
      push[method]({
        ...options,
        render: {
          component: () => Toast,
          props: ({ notivueProps }) => ({
            ...notivueProps,
            ...props,
          }),
        },
      })
  })

I'm not sure what is the designated way to pass all the props to the custom component? Maybe if you have an example included in the doc, that would be a great help I believe.

Hi @peterbud, types are exported. The import name is NotivueSlot and not NotivueItem, my bad for not updating the documentation, which I did now.
Regarding the other question, as I told you in the previous answer, v1 brings breaking changes on how custom components are handled.
I'll try to write an example here, but you can find it on the docs section as well.
Starting from v1, the render property of the UserPushOptions interface (which is the object you pass as only parameter to push) doesn't exist anymore. Instead, custom components are passed as default slot inside <Notivue />. This keeps your custom components in a single place and is a way better DX as being more declarative.
app.vue
<script setup lang="ts">
import { Notivue } from 'notivue';

import Custom from './components/Custom.vue';
</script>

<template>
  <Notivue v-slot="item">
    <Custom :item="item" />
  </Notivue>
</template>

Out of curiosity, you can try to see the data that are exposed by serializing the notification item (NotivueSlot interface):
<template>
  <Notivue v-slot="item">
    <div> {{ JSON.stringify(item) }} </div>
  </Notivue>
</template>

This object contains the data needed to render the notification content.
Always starting from v1, UserPushOptions interface has now a props property which can be used to pass any kind of data you want to include in the notification object (NotivueSlot).
So let's say you call push with:
push.success({
   message: 'This is a success message',
   props: {
      customName: 'Giovanni',
      isCriticalToast: true,
   },
})

You can now get the value of item.props.customName inside your custom component along with item.message, item.type etc.
According to that, you can use the same props to render different components, for example:
<script setup>
import { Notivue, Notifications } from 'notivue'

import MyToast from './MyToast.vue'
import MyOtherToast from './MyOtherToast.vue'
</script>

<template>
  <Notivue v-slot="item">
    <MyToast
      v-if="item.props.isCriticalToast"
      :item="item"
    />
    <MyOtherToast
      v-else-if="item.props.isOtherToast"
      :item="item"
    />
    <!-- Use default notifications -->
    <Notifications
      v-else
      :item="item"
    />
  </Notivue>
</template>

So regarding your specific case, you don't need anymore to create a custom composable for a custom component. You simply call any push method and that's it.
For example, if you're only using one single custom component, that's how you would do it:
push.success('This is a success message')
<script setup>
import { Notivue } from 'notivue'

import Toast from './Toast.vue'
</script>

<template>
  <Notivue v-slot="item">
    <Toast
      :item="item"
    />
  </Notivue>
</template>

Let me know if everything's clear and if you need further assistance.
Simone

Thanks @smastrom - based on your explanation I have managed to fix it and it works now.
However the type exports are not working properly.
Here is a small minimal repro at stackblitz to see the issue for yourself:
https://stackblitz.com/edit/github-zqfp5c-xrihfa?file=push.ts
Open the project in your browser, let it start up, and you will see the squiggle line:

There you go @peterbud. Unfortunately, this bug was happening only in some scenarios like StackBlitz. Now types will work 100%.
Please update using:
pnpm add notivue@latest

Many thanks - perfect!!


bump version 0.8.1

Hello! Would you mind including my nullable float pull request in the 0.8.1 version?

hi @vovavili. It looks like #721 still needs unit tests, and there are some linting issues with it. I'm planning on pushing this release out tomorrow, so if you can address these issues by then I'll fold it into the 0.8.1 release. If need it'll just have to wait until the release after 0.8.1


clonable scope

Hi I would like to do some multi thread testing using the cloned Scope which stores a basic set of data but will be mutated in other threads.
Just found Clone hasn't been implemented for Scope, can we implement Clone for it?

Well, you cannot clone a Scope because the data it holds may not be clonable.  You can basically throw in any type at all, even non-clonable ones, and Rhai will happily process it.
Maybe a clone implementation that just clones the data that is clonable and replace the non-clonable ones with ()?

Yes it can be made Clone.  I think I was experimenting with some fields in the structures and so removed the Clone derive.  I can put it back in.

https://github.com/jonathandturner/rhai/pull/152
This now has Scope that is Clone.

@schungx thanks~


Unable to Run

Windows 10 x64
Lazarus 2.2.0RC2 (built via fpcupdeluxe)
OPM: Installed Ray4Laz
Receiving "raylib.dll not found..." error. Rebuilding ray4laz_designtime v.4.0 removes this error. However, I still get the "Execution stopped with exit-code<PHONE_NUMBER>" error. See screenshots for specific error messages.
Admittedly, this may be completely user error. Nonetheless, your work is invaluable and in the event someone else might get this fringe error it may be worth documenting.

Which version of raylib did you put in mingw or gcc?
I would recommend trying gcc. https://github.com/raysan5/raylib/releases/download/4.0.0/raylib-4.0.0_win64_msvc16.zip

Just wanted to post for future reference:
Adding these references did indeed cause the app to function as intended!


XML file error

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
ddgwfgarxdvb5
AWS Region
us-east-1
Amplify Hosting feature
Manual deploys
Describe the bug
https://no.ddgwfgarxdvb5.amplifyapp.com/
It says this :
This XML file does not appear to have any style information associated with it. The document tree is shown below.

AccessDenied
Access Denied
FDCZWTAACBX7C2WN
gngMM8HLNVQ8hQDc32fY9FepDyqVhirspawgJ73o+bd7cQBU2og9PriqOpivvPj0z3rxU2q2ASA=

Expected behavior
My project won't work,
Reproduction steps

git clone https://github.com/amethystnetwork-dev/Incognito.git
npm install
npm start

Build Settings
No response
Log output

# Put your logs below this line

Additional information
I am testing aws on a web proxy to see how it works

Hi @StopGuardianDev, thanks for raising this issue.
For manually deployed apps, you would need to run a build locally of your application and then zip the contents of that folder so it can be deployed with Amplify. Please see this guide for further details: https://docs.aws.amazon.com/amplify/latest/userguide/manual-deploys.html.
Also, Amplify provides hosting for static websites but according to this documentation, the application you are trying to deploy cannot be deployed with static site hosting providers. That can also be why the site is not properly deployed.


Hability for intercepting broker events

Discussion for these changes started at moquette list (https://groups.google.com/d/topic/moquette-mqtt/yvShxpQqza0/discussion)

Sorry, I used as executor the unique Executors that was introduced in Java 8. I'm going to rewrite and start a new PR.


refactor: use strings for GRPC uint64 fields

This PR is a big refactoring to use strings to transmit large numbers via GRPC and big.js for large numeric variables within the application. This resolves issues with JS number overflow.
Since many of the GRPC field types changed from number to string, a large portion of the codebase needed to be updated for it to even compile. The commits are broken down based on the section of the code that was updated. Each commit will not compile on its own except for the last one.
There are no functional changes in the app. To test, just navigate around and perform some Loop and Pool actions to confirm that no errors occur.

Thanks for the feedback and testing. The suggested changes have been made.


unrecognized versions, modules

Describe the bug
please recognize that 6.5.2 exists, and that it has module qtactiveqt.
To Reproduce
Steps to reproduce the behavior:
aqt install-qt windows desktop 6.5.2 win64_msvc2019_64 -O C:Qt -m qt3d qt5compat qtactiveqt qtconnectivity qtgrpc qthttpserver qtimageformats qtlanguageserver qtlocation qtmultimedia qtpdf qtpositioning qtquickeffectmaker qtremoteobjects qtscxml qtsensors qtserialbus qtserialport qtspeech qtwebchannel qtwebengine qtwebsockets qtwebview
Expected behavior
no warnings shown below
aqt output
INFO    : aqtinstall(aqt) v3.1.6 on Python 3.9.13 [CPython MSC v.1929 64 bit (AMD64)]
WARNING : Specified Qt version "6.5.2" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.
WARNING : Specified modules ['qtactiveqt'] did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.
paste program output here

Desktop (please complete the following information):

OS: [e.g. windows]
aqt version [paste the output from the command aqt version or python -m aqt version]

Additional context
Add any other context about the problem here.

Hello.
Here I'm going to explain about the warning about Qt versions:

WARNING : Specified Qt version "6.5.2" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.

This warning means that when aqtinstall v3.1.6 was released, Qt 6.5.2 has not been released yet, so aqtinstall doesn't know it. This is not an error.

@tsteven4, is your qt installation broken in any way? Are you unable to build a qt project that uses qtactiveqt? If so, there may be something to fix here. Otherwise, I'm not sure we can do anything.
The warning messages you mention are meant as a coarse-grain screen to catch obvious mistakes in the user's aqt command. Aqt checks the arguments against known arguments in an auto-generated combinations.json file. It's a low-overhead compromise that gives reasonably good feedback, without running aqt list-qt before every command to validate the argument (which would be very slow). If you are really worried that you gave aqtinstall an argument that it can't handle, you can always check it with aqt list-qt, like so:
$ aqt list-qt windows desktop --modules 6.5.2 win64_msvc2019_64
debug_info qt3d qt5compat qtactiveqt qtcharts qtconnectivity ...

Warning messages:

WARNING : Specified Qt version "6.5.2" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.

I am not able to reproduce this one with aqt 3.1.7. It's likely the .github/workflows/check-combinations.yml action fixed this automatically.

WARNING : Specified modules ['qtactiveqt'] did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.

I am able to reproduce this one. Unfortunately, given the structure of the aqt.combinations.json file, we don't have a place to put qtactiveqt. This is a module that only exists on Windows, and the list of modules maintained in aqt.combinations.json is multiplatform. If we add qtactiveqt to that list, then Mac and Linux users won't be warned about qtactiveqt not being present in the aqt.combinations.json file. If we start adding enough information to that file to cover every edge case like this (there are plenty), the file will grow exponentially. I have a project that scrapes the relevant data at download.qt.io at qt-repo-cache; right now, it's 20MB and growing, and you would need most of it to cover these edge cases. You don't want to have to download all that when you're installing aqt.


VULCAN-126/Override default message

Problem and Screenshot:
As a user I want to show different message to the users if the data is not available for the given query. So we have given an option in the settings to override default message if the query status is NO_DATA.

Note:
For us it is only used for table and graph chart type. So I implemented this feature for the same. You can see if it can be used for other reports as well.
NOTICE:
The program was tested solely for our own use cases, which might differ from yours.
Author Info: Monish<EMAIL_ADDRESS>on behalf of Mercedes-Benz Research and Development India
https://github.com/mercedes-benz/mercedes-benz-foss/blob/master/PROVIDER_INFORMATION.md

Made some small adjustments to naming and docs. Since I couldn't push to the feature branch, I've recreated this PR here:
https://github.com/neo4j-labs/neodash/pull/683


JavaScript Syntax check error

Whenever one writes code in the Editor, it starts checking it and shows the red error mark even before that line of code is complete.So this results in a irritating red mark.
So is this intentional?
If not , Can I take the liberty of fixing it?

Hi @aviral1701
Thanks a lot for reporting.
Well, unless we can propose to cleverly guess when the code is actually ready before parsing for the check, I would consider this to be a bikeshedding issue.
Nevertheless, it's the standard code mirror config that we use.
Please feel free to take a look, and suggest alternatives though. We would definitely consider if it will not introduce a bug.

@aviral1701 I would agree with @raisedadead. I want to say this editor UX behavior is fairly standard so it is something I've gotten used to as well. You could propose some feature where you can turn that feature off. However, given the current demands of the freeCodecamp team, that kind of feature would be fairly low priority. So again, if you can propose a solution, I think the community would be open to it 👍

Thanks, @erictleung and @aviral1701
I am closing this for now, but please feel free to continue on this thread with your suggestions.


Example coroutine server triggers ubsan

This example C++20 coroutine server triggers ubsan when being tested with wrk.
Version of Beast
345, boost 1.81

Steps necessary to reproduce the problem
clang++-16 -std=c++20 -ggdb3 -fsanitize=undefined http_server_awaitable.cpp -o beast
./beast <IP_ADDRESS> 8080 . 4
dd if=/dev/zero of=test bs=10M count=1
wrk -c 1000 -d 60 -t 4 http://<IP_ADDRESS>:8080/test

All relevant compiler information
Debian 13 testing
Debian clang version 16.0.6 (10)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

The same behavior can be reproduced with gcc 13.2.0, clang 15.0.7.
ubsan output
ubsan.txt
wrk output
Running 1m test @ http://<IP_ADDRESS>:8080/test
4 threads and 1000 connections
Thread Stats   Avg      Stdev     Max   +/- Stdev
Latency     0.00us    0.00us   0.00us    -nan%
Req/Sec    28.26     92.06   610.00     96.55%
213 requests in 1.00m, 4.48GB read
Socket errors: connect 0, read 743, write 1726390, timeout 213
Non-2xx or 3xx responses: 1
Requests/sec:      3.54
Transfer/sec:     76.38MB

@uvxwx I couldn't reproduce the mentioned sanitizer error. I tested it with Clang 16.0.4, Clang 15.0.7, and GCC 12.3.0.
There is a good chance that this is a bug in the libstdc++ on your platform. Have you tried using libc++ or updating the existing libstdc++?


Refactor the fields keyword to 'record' for proper validation.

Issue
Currently, the Kalix-Study branch does not validate and therefore also fail in generating the static files. It turns out that the "fields" keyword has been changed such that projections require "records".
Changes

refactor 'fields' keywords to 'record fields'

@miguelTaningcoYoppworks - See the comments by James and me above. Your "Validate RIDDL" failed because of a syntax error. The run log also indicates, with this error:
Error:  Error: tenantProjections.riddl(9:5): Expected one of ("}" | "invariant" | "handler" | "include" | "term" | "{" | "fields" | "option" | "options" | "???"):
    record fields {

That the validator is using an old version of riddlc.  I will have to make a new release. This is a result of very new feature changes.  So we'll leave this sit until the new release can be configured.

@miguelTaningcoYoppworks - I have released riddlc 0.18.1 which includes the projection parsing fixes and corrected the get-riddlc action to use it. The "validate-riddl" workflow should now use 0.18.1 and require the use of at least one "record" definition in a projection.  If you push the fix suggested by me in response to James' comment, it should all work! :)


Update better-files to 3.9.1

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

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.github.pathikrit", artifactId = "better-files" } ]

labels: test-library-update, semver-minor

Codecov Report

Merging #534 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #534      +/-   ##
==========================================
- Coverage   78.85%   78.80%   -0.06%
==========================================
  Files         122      122
  Lines        3926     3926
  Branches       91       91
==========================================
- Hits         3096     3094       -2
- Misses        830      832       +2

Impacted Files
Coverage Δ

...rotomappings/SensoryEventStatusMappingHelper.scala
76.92% <0.00%> (-15.39%)
:arrow_down:

Continue to review full report at Codecov.

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

Done in #587


Boris Krant DS-Unit-2-Sprint-2-Regression

Great work on regression! This tool will be very valuable in many prediction models. Keep working with regression as well as model diagnosis to gain an intuition for the terminology. We will also get more practice feature engineering throughout the course. Keep up the great work !


[Quick Accent] Add € to Croatian

Description of the new feature / enhancement
Add the Euro sign (€) to the Croatian character set
Scenario when this would be used?
Croatia uses €
Supporting information
All other languages that use the Euro have € in QuickAccent.

I am working on this in #29597


Without trailing slash, our gridsome site is getting completely or partly broken

Description
We have built a Gridsome headless ecommerce store by using the Gridsome Shopify Starter boilerplate. The inner pages(collection, product pages) are completely or partly getting broken without trailing slash.
Deployed on Netlify
Steps to reproduce
Visit https://brooksandgrant.com and navigate to a collection page. it will load the collection page fine with the g-link navigation. but if you refresh the page, then the page is getting broken(getting 404 errors on a bunch of JS files). and if you add trailing slash and then refresh again, it will load the page with the right assets again.
Expected result
All pages should be loaded without trailing slash even when we refresh the page.
Actual result
All inner pages are completely or partly getting broken without trailing slash. but first time with g-link navigation was ok.
Environment
  System:
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
  Binaries:
    Node: 12.18.4 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.964.0), Chromium (90.0.818.66), Chrome (90.0.4430.212)
  npmPackages:
    @gridsome/plugin-google-analytics: ^0.1.1 => 0.1.2
    @gridsome/plugin-sitemap: ^0.3.0 => 0.3.0
    gridsome: ^0.7.19 => 0.7.23
    gridsome-plugin-flexsearch: ^1.0.1 => 1.1.0
    gridsome-plugin-pwa: ^0.0.18 => 0.0.18
    gridsome-plugin-robots: ^0.2.1 => 0.2.1
    gridsome-plugin-tailwindcss: ^4.1.0 => 4.1.1
    gridsome-source-shopify: ^0.1.13 => 0.1.13

I tried going to https://www.brooksandgrant.com/collection/gold-flat-back-earrings and refreshing the page and don't see any errors in console:

I was able to solve the issue by enabling the pretty URL option in Netlify. Enabling pretty URL in the asset optimization In Netlify gives it the ability to redirect users from non-trailing slash to trailing slash URL.
But I am still not sure why the non-trailing slash URLs don't load the assets properly. we were getting 404 errors on a bunch of assets most likely JS files.

I just know that this states that you should always include trailing slashes for internal links, although the explanation as to why exactly is a bit shallow. :thinking: Maybe it’s connected to how Gridsome interacts with vue-router?

I believe it's because the directory structure of the files served is a directory for each page.

Yup, that’s the reason given in the documentation linked above.


syntax error returns [object Object]

Hi,
If the source code is
span{ color:red;
minify result is
span{:[object Object]}
I think there may be some error message,but has been stringified, so return "object"
The output may return a error message or just return
span{color:red;"
Thanks.

@feifeipan it's already fixed on master, see #449. It's going to be released in 3.1 soon.


IPLS not loading on a custom map

Hello, I've downloaded Vice City for my FiveM server. Vice City disables Los Santos but the problem is, it also disables all of the IPLS. Does anyone know a fix for that issue ? The creator of the map told me it has something to do with a .meta file but I haven't been able to find any solution yet.

Its not an issue of that resource, ask for support on fivem forum: https://forum.cfx.re/c/server-development/resource-support/47


class= in interlude VI doesn't work in neither malt nor malt/learner mode

Use malt:
#lang racket
(require malt)
(require malt/examples/iris)

;; Use argmax to detect class
(define class=-1
  (lambda (t u)
    (cond
      ((= (argmax-1 u) (argmax-1 u)) 1.0)
      (else 0.0))))

(define class= (ext2 class=-1 1 1)) ;; =>  class=-1: arity mismatch; expecte 2, given 1

(define class=
  (ext2-ρ class=-1 1 1)) ;; definition form executed successfully, but
(class= iris-test-ys iris-test-ys) ;; => class=-1: arity mismatch; expecte 2, given 9.
;; 9 is a strange number, I suspect it is given the flat tensor implementation internals instead of the values?

Use malt/learner:
#lang racket
(require malt/learner)
(require malt/examples/iris)

;; Use argmax to detect class
(define class=-1
  (lambda (t u)
    (cond
      ((= (argmax-1 u) (argmax-1 u)) 1.0)
      (else 0.0))))

(define class=
  (ext2 class=-1 1 1)) ;; works as expected

(class= iris-test-ys iris-test-ys) ;; failed

; vector-ref: contract violation
;   expected: vector?
;   given: #<procedure:flat>
; Context (plain; to see better errortrace context, re-run with C-u prefix):
;   /Users/steveyang/Library/Racket/8.8/pkgs/malt/learner/tensors/D-extend.rkt:50:2 body of top-level
;   /Users/steveyang/Library/Racket/8.8/pkgs/malt/learner/tensors/D-extend.rkt:23:4
;   /Applications/Racket v8.8/collects/racket/vector.rkt:62:0 vector-map/update

Thanks for reporting. I'll fix it for flat-tensor. For a temporary workaround, please switch completely to the learner representation.

@themetaschemer thanks for your timely response. I am eventually getting to the part which implements tensor!
I also couldn't find a place where operations like +/-/*... are replaced by the one defined in the malt collection, could you point me to the right place or some Racket documentation to see how this happens?

@yangchenyun Thanks for your patience. I have just pushed a new commit c8220b5 where I have set the default implementation to be learner, and added some other mechanisms to switch implementations more easily (the README is correspondingly updated). This should avoid future problems with trying to use ext1 and ext2 examples from the book.


Bevy Logo & Identity Iteration

According to @cart via the discord:

im always open to iterative improvements to the logo. the general concept should remain the same, but if somebody can make something i like better i wont say no.

This issue captures infomration about requirements for new logo.

First draft sketch concept

Something that was discussed earlier in discord was defining the branding before doing any UX/website redesign work. Part of that was settling on color choices and brand aesthetic. That might be something that we could work on here at the same time as the logo design itself, instead of having an issue for every branding subtask.

I think I like the original logo a bit more in some ways. I like that the first bird is flying with its chest out. It makes it look kinda like a bold super hero pose.

@aevyrie that's a good point. I hesitated whether I should try make the issue broader scope to include branding. Slightly edited the title to reflect that.
Agree that typeface and color palettes are important considerations too that will need to be discussed as part of a whole

I think this is a case of "I'll know the next logo when I see it".
In general logo design requires a lot of experimentation to find what feels "right". And side-by-side comparison helps you "rank" logos in a way that is really hard when done individually.
To lift the veil on the process I used for the current logo, here is my "bevy logo scratch" file. Note that many of the designs don't work, but this style of brainstorming really gets the creative juices flowing.

svg:
bevy_logo_scratch.zip

I was wondering if you tried tessellating them to make an Escher-like design; looks like some of the concepts in the top right were in that vein. The current logo/type has a playful feel, is that something that's important to retain if it does change?
I like the dynamic pose of the current design, like @awulkan pointed out.

I highly value the "playful feel", but if the logo finds "character" with a different tone, I'm down. I'd also like to point out that I'm currently decently satisfied with the current design, so I won't be expending any effort constructing new designs. But if other people want to continue experimenting thats totally fine. I'll be watching this thread.

Experimented around a bit, ended up with these possible designs.
My focuses were simple, hint at a "b" shape, make the birds look up right always and have the flock in perspective as opposed to just downward rotation.
Am considering getting rid of the tails of the background birds though, as they just seem to clutter up the overall silhouette.

Not to discourage other attempts, but I am very happy with the current logo. I think it's pretty much perfect. :slightly_smiling_face:

There is the question floating aroud of "Do we even need a new logo (and brand indentity)"?
This will be subjective: to me the current logo looks like "programmer" art (no offense to cart). I think that is totally fine whilst Bevy's primary audience is, well programmers. The Rust Logo, GNU logo strike a similar utilitarian asthetic and do just fine.
However game dev is a broad (and colourful) church. People do use aethestics as a shorthand for quailty and trust. What conclusions would artists and game designers draw when Bevy eventually has an editor and they're looking for the next thing? I mean I assume so, but is that an audience we'd ever want to appeal to?

I personally quite like the current logo, I was just a bit bothered by the jagged lines visible when the logo is big enough (like in the website header) and the mix of straight lines and curves. So I removed the excessive nodes, and made it a bit curvier:

svgs

@tamasfe I really like those small changes!

I think @regexident has come close to nailing it.
I wanted to try something similar, with a few differences

Original logo's head and beak shape
Sharp wing tips
Round tail.
Each of the 3 birds "proudly holding their head up high"
Happy eyes

What I ultimately produced is garbage due to being incompetent at inkscape (third bird's head is mangled), but I think the eyes may be an improvement at least. Less of a death-stare feel.

I think @regexident has come close to nailing it.
I wanted to try something similar, with a few differences

Original logo's head and beak shape
Sharp wing tips
Round tail.
Each of the 3 birds "proudly holding their head up high"
Happy eyes

What I ultimately produced is garbage due to being incompetent at inkscape (third bird's head is mangled), but I think the eyes may be an improvement at least. Less of a death-stare feel.

@rparrett I like that one, great job. It looks much better when all birds are facing up, unlike the current logo where the last bird is facing down.

@rparrett I like that one, great job. It looks much better when all birds are facing up, unlike the current logo where the last bird is facing down.

In tweaking my version a bit further, I've really come to appreciate @regexident 's design must have evolved.
The overall proportions, head shape, and simplified geometry make sense when laying the birds out horizontally and making the logo legible at small sizes.
It's a great logo as-is. The only thing I'm not crazy about is that from front-to-back, if I attempt to assign emotions to the birds, I see:

Proud
Indifferent
Bored

In my version, I rotated the body of the bird but kept the heads/beaks oriented the same way, and the third bird ends up with a  sort of determined / soaring look.
I think that tweaking the eyes alone might help with that too.

In tweaking my version a bit further, I've really come to appreciate @regexident 's design must have evolved.
The overall proportions, head shape, and simplified geometry make sense when laying the birds out horizontally and making the logo legible at small sizes.
It's a great logo as-is. The only thing I'm not crazy about is that from front-to-back, if I attempt to assign emotions to the birds, I see:

Proud
Indifferent
Bored

In my version, I rotated the body of the bird but kept the heads/beaks oriented the same way, and the third bird ends up with a  sort of determined / soaring look.
I think that tweaking the eyes alone might help with that too.

@cart are we okay to close this one out? I think that the logo is fine / stable now, and we can re-open or create a new issue or discussion as the need arises.

I'd actually prefer to keep this open. I am still very happy with the current logo, but I'm also happy to provide an outlet for people to express themselves. Every so often someone wants to take a whack at it (there have been some semi-recent iterations on discord and twitter). And theres always a chance that someone will propose something that should clearly be "the next bevy logo".

(and a consolidated thread helps us keep this type of exploration centralized / easily scannable by interested people).

Hi! I made some really rough WIP logo sketches back in January that I wanted to share.

Closing out: we have merchandise now so any rebranding would be a very significant effort.

Opening because I still like this thread and want people to have an outlet for logo iteration.

I know this diverges from the feel of the original logo, but here's a direction I was exploring - trying to make the logo scalable to small sizes with a more distinct silhouette.

FWIW I've had people ask me if my bevy sweatshirt was the Twitter logo.


Coerce Dictionary types for scalar functions

Which issue does this PR close?

Closes #10076.
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Thank you @alamb @jayzhan211

Thank you @andygrove


added new module and JS target

I have added a new function suspend fun Document.selectFilesFromDisk, which creates HTMLInputElement in order to trigger the dialog, was researching a lot but could not find anything better.
This was also suggested here: https://kotlinlang.slack.com/archives/C01F2HV7868/p1674571571679729
main function does not have run button so to run the JS target use gradle task browserDevelopmentRun from the new module

I got stuck...
So on web, when I select a file I do not have path, but file name and its content, it is a type from org.w3c.files.File. For Android and Desktop a path is returned.
my solution now is to have a sealed class, which will return some generic class for all platforms and clients will consume it like
when (file) {
   is Web -> doSomethingThatWillHappenForWeb()
   is Android -> file.someAndroidHandlingHere()
}

have not added it yet. Do you have ideas? you can take a look at suspend fun Document.selectFilesFromDisk to see what is exactly going on...

I have added a sealed interface
sealed interface MPFile {

    // on JS this will be a file name, on other platforms it will be a file path
    val fileNameOrPath: String?

    data class Web(
        override val fileNameOrPath: String,
        private val fileReader: suspend () -> String
    ) : MPFile {
        suspend fun getFileContents() = fileReader()
    }

    data class Other(override val fileNameOrPath: String?) : MPFile
}

in the last few commits it is all working. If you run browserDevelopmentRun it will open browser with the website. There will be one button by which it is possible to trigger File Chooser, pick a file and see it's file name and contents

Also had to change the API a lot, actually I need to change it more... :D
The thing is that on web it is also possible to specify if user can pick one or multiple files.
so Im going to add something like
@Composable
expect fun FilePicker(
    show: Boolean,
    initialDirectory: String? = null,
    fileExtensions: List<String> = emptyList(),
    isMultiple: Boolean, // new argument here
    onFileSelected: (MPFile?) -> Unit // new MPFile type here
)

Right now I need some directions. Is what I am doing acceptable? Need feedback...

hey @shalva97 I'll take a look at this this weekend

Hello, any updates here?

@shalva97 Hey ya I made some changes on top of yours and opened a PR to your fork: https://github.com/shalva97/compose-multiplatform-file-picker/pull/1
Pull them in and update this branch if you're happy with them, and I'll merge it.


dart language-server can return an invalid range

I first encountered this at the tip of the Flutter tree (https://github.com/flutter/flutter/commit/56a54d6d100ea394d32f713bb2c15dd568ec04dc), but produced the following reproduction on the latest Flutter Stable release to make reproduction easier. The behavior is the same.
With the Flutter stable 3.7.5 and the corresponding Dart SDK version:
$ flutter --version
Flutter 3.7.5 • channel stable • git@github.com:flutter/flutter.git
Framework • revision c07f788888 (25 hours ago) • 2023-02-22 17:52:33 -0600
Engine • revision 0f359063c4
Tools • Dart 2.19.2 • DevTools 2.20.1

And the LSP server invoked via:
dart language-server --protocol=lsp --protocol-traffic-log=/home/fujino/git/flutter/packages/flutter_tools/flutter_100.log
And triggering the textDocument/implementation method from my editor on the DeviceManager.deviceDiscoverers getter, the following exchange was logged:
1677197575303:Req:{
"id"::2,"jsonrpc"::"2.0",
"params"::{"textDocument"::{"uri"::"file::\/\/\/home\/fujino\/git\/flutter\/packages\/flutter_tools\/lib\/src\/device.dart"},
"position"::{"character"::28,"line"::88}},"method"::"textDocument\/implementation"}

1677197575712:Res:{
"id"::2,"jsonrpc"::"2.0","result"::[
{"range"::{"end"::{"character"::45,"line"::235},"start"::{"character"::28,"line"::235}},"uri"::"file::///home/fujino/git/flutter/packages/flutter_tools/test/src/context.dart"},
{"range"::{"end"::{"character"::45,"line"::1081},"start"::{"character"::28,"line"::1081}},"uri"::"file::///home/fujino/git/flutter/packages/flutter_tools/test/commands.shard/hermetic/attach_test.dart"},
{"range"::{"end"::{"character"::45,"line"::893},"start"::{"character"::28,"line"::893}},"uri"::"file::///home/fujino/git/flutter/packages/flutter_tools/test/commands.shard/hermetic/run_test.dart"},
{"range"::{"end"::{"character"::45,"line"::885},"start"::{"character"::28,"line"::885}},"uri"::"file::///home/fujino/git/flutter/packages/flutter_tools/test/commands.shard/hermetic/test_test.dart"},
{"range"::{"end"::{"character"::45,"line"::163},"start"::{"character"::28,"line"::163}},"uri"::"file::///home/fujino/git/flutter/packages/flutter_tools/test/commands.shard/hermetic/devices_test.dart"},
{"range"::{"end"::{"character"::45,"line"::149},"start"::{"character"::28,"line"::149}},"uri"::"file::///home/fujino/git/flutter/packages/flutter_tools/test/commands.shard/hermetic/devices_test.dart"},
{"range"::{"end"::{"character"::45,"line"::711},"start"::{"character"::28,"line"::711}},"uri"::"file::///home/fujino/git/flutter/packages/flutter_tools/test/general.shard/device_test.dart"},
{"range"::{"end"::{"character"::16,"line"::0},"start"::{"character"::-1,"line"::0}},"uri"::"file::///home/fujino/git/flutter/packages/flutter_tools/lib/src/flutter_device_manager.dart"}]}

Note the last line, where start.character == -1. I believe this violates the LSP spec, where a range (https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#range) is defined as:

A range in a text document expressed as (zero-based) start and end positions.

and a position (https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position) is defined as

Position in a text document expressed as zero-based line and zero-based character offset. A position is between two characters like an ‘insert’ cursor in an editor. Special values like for example -1 to denote the end of a line are not supported.

I have included my full protocol-traffic-log flutter_100.log

cc @DanTup


Added script for automatic AUR release & added steps in .drone.yml

Finally had some time for the AUR integration.
What is done:

Added 2 new steps to .drone.yml, one for normal release-aur and one for the pre-elease versions pre-release-aur.
Both run the deploy-aur.sh script, located at the root directory, via an archlinux image. They also depend on release/pre-release, so the AUR package waits for the release pipepline to create the github release.
The deploy-aur.sh takes care of the archlinux bootstrap (installation of git, ssh etc.). After that, it puts the configured private key (saved in base64-format to the drone secrets) to a file and starts pulling the AUR Package repo. Via a some magic environment substition tricks, it then fetches all new sha256sums and finally generates a new PKGBUILD, which gets commited and pushed to the AUR.

TODO for you guys:

Create an account on https://aur.archlinux.org/
Generate a private/public key pair

Upload the public part to your AUR account
base64 the private key (cat ~/.ssh/your_key | base64 -w0) and add it as a secret to your drone installation

Once that's done, I will add you as the maintainer to both packages and we should be good to go :) If you don't want a third party (me) having access to the packages, we can also transfer the packages to your account. Maybe complicates debugging in case of problems, but I would completely understand.

Looking forward to your thoughts! Also, feel free to make necessary additions/corrections or just tell me 👍 :)

Reference Issue: #230
BTW, just saw my YAML formatter removed some extra lines. If that's unwanted, ping me and I will revert them 😅

Hi @JohnnyCrazy , thanks for this PR! .. and sorry for my late reply, I was off for a while now.
For this, I have to check with the RancherLabs folks, if they maybe already have an account on AUR and if they can add this secret to their drone environment.

No problem, take your time and feel free to ping me if you want anything updated/changed :)

Just giving you a quick update here: so far I don't have a "go" here :confused:

Just giving you a quick update here: so far I don't have a "go" here 😕

No worries, if it's not possible due to policies or other complications, I will find another automated solution, off the main repo :)

Hi @JohnnyCrazy , so it seems that Rancher doesn't own an AUR repo/account and probably won't create one only for k3d.
However, I just did so with an extra account only for k3d.
So let's just continue work on this :+1: Did you test this pipeline with drone already? Especially the substitution parts around $NEW_RELEASE?

Hi again 👋
I already tested on a private drone instance, if you give me tomorrow/the day after tomorrow I will give it an additional run and see if everything works out! 👍
Added you as maintainer as well!

I already tested on a private drone instance, if you give me tomorrow/the day after tomorrow I will give it an additional run and see if everything works out! +1

Sure! I'll talk to the Rancher folks today to get the private key added to their drone instance. If that doesn't work out, we might have to move this part of the pipeline to Travis (or GitHub Actions) though :thinking:

Added you as maintainer as well!

Received the mails, thank you!

It's me again @JohnnyCrazy :wave:
Unfortunately, Rancher cannot prioritize creating their own AUR Account right now, but it's in their backlog.
Additionally, internal policy forbids them to add the third-party (me) key for AUR to their (Drone) infrastructure.
So to get this going now, let's migrate this part of the pipeline to either Travis CI or GitHub Actions :+1:

Okay, this probably needs some additional checks if the release is already uploaded and available, since it probably runs in parallel with drone.
If it's okay for you time-wise, I could migrate it till sunday :)

superseded by #391


.3mf in File Explorer add-on

Description of the new feature / enhancement
In the File Explorer add-on the preview of .3mf should also be available

Scenario when this would be used?
.3mf files are as important for CAD modeling as .stl files and serve a similar purpose.
.3mf files are becoming more and more popular.
Supporting information
No response

3MF is already supported in Windows as long as you install 3D Viewer, so there is no need for Powertoys to add support for it.


chore(final_chain): fix cyclic dependency issues

I still dont understand how exactly are those segfaults happening but if it is related to the circular dependency that is somehow related to tha shared_ptr, this seems like it does not really fix it, it only reduces the time during which we hold shared_ptr inside packet handlers so it should not happen that often but the bug is still there isnt it ?

I still dont understand how exactly are those segfaults happening but if it is related to the circular dependency that is somehow related to the shared_ptr< Host >, this seems like it does not really fix it, it only reduces the time during which we hold shared_ptr< Host > inside packet handlers so it should not happen that often but the bug is still there isnt it ?

Yes, we have bad design so we end up with cyclic dependencies and this is only easy way to mitigate this "bad" behavior in our tests. The best would be to change our architecture so this kind of things never happened

Merging this through admin rights. We were talking about this on call that we need it asap so people should do review. Nobody did....

prnet cleaned-up successfully


RayCast2D gives wrong collisions if properties are changed in code immediately before

Godot version:
v3.2.2.stable.official
OS/device including version:
Windows 10
Issue description:
Changing a property of RayCast2D (e.g. cast_to) in code then immediately trying to get collisions (e.g. get_collider()) causes the ray to use the previous, unupdated value to calculate collisions.
Steps to reproduce:

Create a new 2D scene
Add a RayCast2D at (100, 100) and select "Enabled" and "Collide With > Areas"
Add two Area2D's at (150, 100) and (100, 150) and give them CollisionShape2D's with RectangleShape2D
Add a GDScript script to Node2D and paste in the following,

extends Node2D

onready var ray_cast = $RayCast2D

func _physics_process(delta: float) -> void:
	if Input.is_action_just_pressed("ui_accept"):
		ray_cast.cast_to = Vector2(50, 0)

		var hit_object = ray_cast.get_collider()
		if hit_object:
			print("hit an object at ", hit_object.position)

Select "Debug > Visible Collision Shapes"
Play and press enter twice.

The raycast changes direction as intended, but the output is wrong.
Expected output:
hit an object at (150, 100)
hit an object at (150, 100)

Actual output:
hit an object at (100, 150)
hit an object at (150, 100)

Minimal reproduction project:
Implementation of the aforementioned steps:
RayCast2D_Minimal_Reproduction.zip

There's a special method for this purpose: force_raycast_update(), I think this should resolve your issue.

Yep adding ray_cast.force_raycast_update() works. Thanks!


Added S2I example application

Added content for the example application
@jawnsy please review

Closing PR as new example application will be added based on asp.net core


[feat] Provide wheels for Python 3.11

In order to support aim for Python 3.11 we need to provide binary wheels for aimrocks. Original request: https://github.com/aimhubio/aim/issues/2472


TensorFlow 1.5 API : Error : 'DatasetV1Adapter' object does not support indexing

System information

Have I written custom code: Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04.4
TensorFlow installed from : Binary (from docker image)
TensorFlow version : 1.15
Python version: 2.7.17
CUDA/cuDNN version:
GPU model and memory:

Describe the current behavior
Error emitted by TensorFlow API:
TypeError: 'DatasetV1Adapter' object does not support indexing
Describe the expected behavior
No error
Standalone code to reproduce the issue
images, labels = read_list ( data_dir, data_list ) <= here data_dir is full path of dir. containing image & label files. data_list is a text file, 2 column containing names of image file and label file.
The output is an array consisting of full path of images & corresponding labels.
queue = tf.data.Dataset.from_tensor_slices([images, labels])
img_contents = tf.io.read_file(queue[0]) <= Error location
label_contents = tf.io.read_file(queue[1])
TypeError: 'DatasetV1Adapter' object does not support indexing
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
Here is the traceback of the real code -
Traceback (most recent call last):
File "wasr_train_noimu.py", line 462, in
main()
File "wasr_train_noimu.py", line 315, in main
coord)
File "/wasr/wasr_models/image_reader.py", line 249, in init
self.image, self.label, self.imu = read_images_from_disk(self.queue, self.input_size, random_scale, random_mirror, ignore_label, img_mean)
File "/wasr/wasr_models/image_reader.py", line 180, in read_images_from_disk
img_contents = tf.io.read_file(input_queue[0])
TypeError: 'DatasetV1Adapter' object does not support indexing
The code in 'Standalone code' section is a gist of the actual code.
I have looked at various posts including this one where it is mentioned that the issue is fixed in version 1.5 but I am still encountering it. I have also gone through the TensorFlow 1.5 documentation but could not understand why I am seeing this issue or what is the correct way to use the API if my code is not correct.
Any help will be highly appreciated.
Thanks,
-Shailesh

@ssnirgudkar
Can you please share colab link or simple standalone code with supporting files to reproduce the issue in our environment.It helps us in localizing the issue faster. Thanks!

Here you go -
import tensorflow as tf
imageList=[]
imageList.append("a.png")
imageList.append("b.png")
imageT=tf.convert_to_tensor(imageList, dtype=tf.string)
queue = tf.data.Dataset.from_tensor_slices(imageT)
img_contents = tf.io.read_file(queue[0])
Traceback (most recent call last):
File "", line 1, in
TypeError: 'DatasetV1Adapter' object does not support indexing
I may be making some silly mistake but I do not what!

@ssnirgudkar
Can you please upgrade to latest stable TF version 2.4 , nightly version and see if the issue still persists. Thanks!

I cannot easily upgrade to TF 2.4 because there are other dependencies which have to managed as well. It will take me number of days to do so with significant efforts.
I will appreciate if you can acknowledge that this is a bug & it exists in TF 1.5 & can be fixed in 1.5.

Also with the steps which I have provided you should be able to verify if the code works in TF 2.4 or not.

We only patch old releases for security issues. 1.15 is too old and we cannot build it effectively if we are to patch other issues (since then they can cause further damage, so we'd need to test 100% of the test suite but this is impossible at the moment)

@mihaimaruseac  Thank you for your response. Could you please kindly look at the conflicting doc string in the same issue here https://github.com/tensorflow/tensorflow/issues/28995

@mihaimaruseac  Thank you for your response. Could you please kindly look at the conflicting doc string in the same issue here https://github.com/tensorflow/tensorflow/issues/28995


enable issues on go-prompt repo

Can you enable issues in the go-prompt fork?

ping

ping @Verseth

Yeah sure. I didn't notice they had been turned off.
I've enabled them.


error test point cloud and single camera tracking on installation step 7.1 and 7.2

i test openkinect library libfreenect2 and got it working, display four image on test ir, rgb etc.

but when i install libfreenect2 it create folder libfreenect2 on home directory. but whe i execute "kinect2_install.sh" step 6.2 on installation part. the folder libfreenect2 removed. then the installation is finished without error and when i execute : "roslaunch kinect2_bridge kinect2_bridge.launch"
i got error :
[kinect2_head_kinect2_bridge-2] restarting process
process[kinect2_head_kinect2_bridge-2]: started with pid [12722]
[DepthRegistration::New] Using OpenCL registration method!
[DepthRegistration::New] Using OpenCL registration method!
[OpenGLContext] failed to initialize glew for the current context!
[kinect2_head_kinect2_bridge-2] process has died [pid 12722, exit code -11, cmd /home/motionserver/workspace/ros/catkin/devel/lib/kinect2_bridge/kinect2_bridge __name:=kinect2_head_kinect2_bridge __log:=/home/motionserver/.ros/log/4500df9c-b911-11e5-9b08-14cc201d6ae0/kinect2_head_kinect2_bridge-2.log].
log file: /home/motionserver/.ros/log/4500df9c-b911-11e5-9b08-14cc201d6ae0/kinect2_head_kinect2_bridge-2*.log
and when i execute : "rosrun rviz rviz"
i got error :

and when i execute : "roslaunch tracking detection_and_tracking_kinect2.launch" (single camera tracking)
i got this :

can someone figuring out the solution ?

@motionagus,
it seems to me that you probably should have skipped some passages in the installation guide. Anyway, if libfreenect2 works as it seems, you should fix the glew issue following this commit from the original repository of iai_kinect2 (the instruction you need are the glfwInit()  ):
https://github.com/code-iai/iai_kinect2/commit/efd26792504ffe88aae8f7f6d53698e8b4af5a8f.
Regarding the rviz error, take care that the libfreenect2 library has nothing to do with ROS so you should not need rviz. Anyway, the rosrun command requires a rosmaster running which is implicitly run by the roslaunch command (or you can simply run roscore on another terminal).

see #59


HPA support for graphd

From customer:

Theortically Graphd is a stateless service. But in k8s setup it is still desgined as statefulset… So ideally this can be migrated to Deployment rather than statefulset. But this can be done as a separate task.
The ask here is to enable HPA for graphd… I don’t see it currently being supported in nebula operator.
https://github.com/vesoft-inc/nebula-operator/blob/v1.5.0/charts/nebula-cluster/templates/nebula-cluster.yaml#L10C51-L10C51

Please consider scaling with CPU resource only for the first release.

https://github.com/vesoft-inc/nebula-operator/pull/302


UWSGIChunkedBody and itertools.cycle

currently UWSGIChunkedBody keeps track of where it is and resets, but I might be able to use itertools.cycle instead?

I removed chunked support in 7f34bb4319de56a3222f2784ab9a5cb98afbce07 (the last commit to contain the chunked code is 04084a76a1220ba64a8db2b43c10c2cb8934ac7a) so this issue no longer applies


feat: delete user and his inventory

Change goal: Adaptacija Backend
Database change: /

:tada: This issue has been resolved in version 1.8.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Feature Request: Hash Table Optimization for Event Handling

Background
I am currently using StateSmith to develop state machines on low-power embedded platforms, specifically an STM32F103 microcontroller with a 72MHz clock speed.
The xxxSm_dispatch_event function utilizes a switch statement to handle events. When dealing with a large number of events and a high polling frequency, such as a state machine with over a hundred events or states being polled at 500Hz, the current implementation can become a significant demand on CPU resources. This has led to resource starvation for other threads running on the same microcontroller.
Request
To address this issue, I would like to request the addition of an option during code generation that allows the use of a hash table to optimize event handling functions. The goal is to reduce the computational overhead associated with event dispatching, especially in scenarios where there are many events and a high polling rate.
The idea is to have a configuration option within StateSmith that, when enabled, generates event handling code using a hash table instead of switch statements. The hash table would map event IDs to their corresponding handler functions, allowing for more efficient event processing.
More
I used to write my own switch statements for very simple state machines, but it was neither intuitive nor easy to maintain, often leading to confusion. Since adopting StateSmith, my productivity has significantly increased, and I am truly grateful for the hard work and dedication of your team. It would be a great honor and a pleasure for me if you could consider my suggestion, as it would further enhance the efficiency and performance of StateSmith in resource-constrained environments.
Due to my limited English proficiency, I have had this message polished by an AI. I hope for your understanding and consideration :)

Hello @DGYin. Interesting suggestion! I've never seen a design with a hundred events! Interesting! Is this for a parser or something? We should be able to find a good solution to your problem.
What programming language are you using? Most languages implement switch statements fairly efficiently. They compute an offset into a table and then jump into that table. Python's match statements are more like a bunch of if, else if, else if statements and much lower performance.
Do you have optimizations enabled?
Switch Statements
If you are using C/C++ and have optimizations enabled, a switch statement over the state IDs is usually very fast. About 6 assembly instructions on a Cortex M3. See here: https://gcc.godbolt.org/z/ThGe71MKb
Without optimizations enabled, it will take about 12 assembly instructions. See here: https://gcc.godbolt.org/z/qYKbsbrfM
It will then take another 6 or 12 assembly instructions for the event switch.
In total, the event dispatch function will take around 12 to 24 assembly instructions. At 72 MHz, this should complete very quickly. Have you tried measuring the dispatch function time or looking at the assembly?
State & Event Table
One potential solution is a constant table of function pointers. Like a 2 dimensional array. 1 dimension is for the state ID, the other dimension is for the event ID. This approach can waste a fair amount of ROM though if you have many events that are ignored my most states.
Hash table
I'll think about the hash table suggestion too. My immediate thought is that it will likely require much more CPU time than switch statements or an event table unless StateSmith searches for a perfect hashing algorithm.


Auto height on 100% width videos.

This function is helpful when using a 100% width on your iFrames for YouTube or Vimeo videos to automatically adjust the height.  Can be seen in use at http://craiggoodwill.com/WP/.  Then resize the window or make it mobile width etc.

I think this was tackled in 2.1.4 - is that correct?

Not fully, I didn't see te javascript for the resizing nor are the videos percentage based in width.

The way we implemented it doesn't actually use JS, only CSS. You have to wrap your elements in an element with .flex-video for it to work, but it should scale them according to common ratios and players.


Run buildbot with Python 3.7

~ I have installed 3.8 in the server via pyenv~
We can not use 3.8 because it seems that the version of SSL is too old :/
Is there any possibility of upgrading the Ubuntu in the server?

Closing this as the Ubuntu that we have in the server does not support anything newer than 3.6 :/