[force_zero_scaling] Context menus open first in the wrong place

Hyprland Version
Hyprland, built from branch main at commit 51cda87fe47efec25265b3b9f6bebf9a0882aa08 dirty (hyprctl: rerender on cursor_zoom_factor dynamic calls). Tag: v0.27.2-64-g51cda87f
Bug or Regression?
Bug
Description
Opening a XWayland context menu when using force_zero_scaling, it shows up in the wrong place. If I close and reopen it, the menu appears in the correct place.
How to reproduce

Open Steam with force_zero_scaling
try to open a context menu
observe wrong place
close and reopen
observe correct place

Crash reports, logs, images, videos
Logs for hovering over Profile (opens at wrong position), unhovering, and rehovering (opens at correct position):
[LOG] Set keyboard focus to surface 555fbaa0a7c0, with window name: Steam
[LOG] Registered signal for owner 555fb99b5270: 555fb9553be0 -> 555fb99b52d8 (owner: XWayland Window)
[LOG] Registered signal for owner 555fb99b5a90: 555fb9553c10 -> 555fb99b5a98 (owner: CWLSurface)
[LOG] CWLSurface 555fb99b5a90 called init()
[LOG] Registered signal for owner 555fb99b5270: 555fb9553bf0 -> 555fb99b5340 (owner: CWindow)
[LOG] Searching for matching rules for steam (title: )
[LOG] Window got assigned a surfaceTreeNode 0
[LOG] Registered signal for owner 555fb99b5270: 555fb94fde30 -> 555fb99b54e0 (owner: XWayland Window Late)
[LOG] Registered signal for owner 555fb99b5270: 555fb94fde40 -> 555fb99b5750 (owner: XWayland Window Late)
[LOG] Registered signal for owner 555fb99b5270: 555fb94fde70 -> 555fb99b5410 (owner: XWayland Window Late)
[LOG] Registered signal for owner 555fb99b5270: 555fb94fde10 -> 555fb99b5618 (owner: Xwayland Window Late)
[LOG] Registered signal for owner 555fb99b5270: 555fb94fde20 -> 555fb99b5680 (owner: Xwayland Window Late)
[LOG] Registered signal for owner 555fb99b5270: 555fb94fdf20 -> 555fb99b5478 (owner: XWayland Window Late)
[LOG] Registered signal for owner 555fb995d850: 555fb9553c00 -> 555fb995d8c8 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 555fb995d850: 555fb9553bd0 -> 555fb995d930 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 555fb995d850: 555fb9553c10 -> 555fb995d998 (owner: SurfaceTreeNode)
[LOG] Creating a surfaceTree Root! (pWindow: 555fb99b5270)
[LOG] Map request dispatched, monitor eDP-2, xywh: 454.400000 408.800000 72.000000 184.800000
[LOG] Unmanaged window 555fb99b5270 requests geometry update to 575 511 90 231
[LOG] Window 555fb99b5270 unmapped (class steam)
[LOG] Unregistered late callbacks XWL
[LOG] Callback 555fb99b5508 -> 555fb99b5500, XWayland Window Late removed.
[LOG] Callback 555fb99b5778 -> 555fb99b5770, XWayland Window Late removed.
[LOG] Callback 555fb99b5438 -> 555fb99b5430, XWayland Window Late removed.
[LOG] Callback 555fb99b54a0 -> 555fb99b5498, XWayland Window Late removed.
[LOG] Callback 555fb99b56a8 -> 555fb99b56a0, Xwayland Window Late removed.
[LOG] Callback 555fb99b5640 -> 555fb99b5638, Xwayland Window Late removed.
[LOG] Unmapped was not focused, ignoring a refocus.
[LOG] Destroying the SubSurface tree of unmapped window 555fb99b5270
[LOG] Callback 555fb995d958 -> 555fb995d950, SurfaceTreeNode removed.
[LOG] Callback 555fb995d9c0 -> 555fb995d9b8, SurfaceTreeNode removed.
[LOG] Callback 555fb995d8f0 -> 555fb995d8e8, SurfaceTreeNode removed.
[LOG] SurfaceTree Node removed
[LOG] Callback 555fb99b5ac0 -> 555fb99b5ab8, CWLSurface removed.
[LOG] CWLSurface 555fb99b5a90 called destroy()
[LOG] Callback 555fb99b5368 -> 555fb99b5360, CWindow removed.
[LOG] Callback 555fb99b5300 -> 555fb99b52f8, XWayland Window removed.
[LOG] Registered signal for owner 555fb99b5270: 555fb9553be0 -> 555fb99b52d8 (owner: XWayland Window)
[LOG] Registered signal for owner 555fb99b5a90: 555fb9553c10 -> 555fb99b5a98 (owner: CWLSurface)
[LOG] CWLSurface 555fb99b5a90 called init()
[LOG] Registered signal for owner 555fb99b5270: 555fb9553bf0 -> 555fb99b5340 (owner: CWindow)
[LOG] Searching for matching rules for steam (title: )
[LOG] Window got assigned a surfaceTreeNode 0
[LOG] Registered signal for owner 555fb99b5270: 555fb94fde30 -> 555fb99b54e0 (owner: XWayland Window Late)
[LOG] Registered signal for owner 555fb99b5270: 555fb94fde40 -> 555fb99b5750 (owner: XWayland Window Late)
[LOG] Registered signal for owner 555fb99b5270: 555fb94fde70 -> 555fb99b5410 (owner: XWayland Window Late)
[LOG] Registered signal for owner 555fb99b5270: 555fb94fde10 -> 555fb99b5618 (owner: Xwayland Window Late)
[LOG] Registered signal for owner 555fb99b5270: 555fb94fde20 -> 555fb99b5680 (owner: Xwayland Window Late)
[LOG] Registered signal for owner 555fb99b5270: 555fb94fdf20 -> 555fb99b5478 (owner: XWayland Window Late)
[LOG] Registered signal for owner 555fb995d850: 555fb9553c00 -> 555fb995d8c8 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 555fb995d850: 555fb9553bd0 -> 555fb995d930 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 555fb995d850: 555fb9553c10 -> 555fb995d998 (owner: SurfaceTreeNode)
[LOG] Creating a surfaceTree Root! (pWindow: 555fb99b5270)
[LOG] Map request dispatched, monitor eDP-2, xywh: 460.000000 408.800000 72.000000 184.800000
[LOG] Window 555fb99b5270 unmapped (class steam)
[LOG] Unregistered late callbacks XWL
[LOG] Callback 555fb99b5508 -> 555fb99b5500, XWayland Window Late removed.
[LOG] Callback 555fb99b5778 -> 555fb99b5770, XWayland Window Late removed.
[LOG] Callback 555fb99b5438 -> 555fb99b5430, XWayland Window Late removed.
[LOG] Callback 555fb99b54a0 -> 555fb99b5498, XWayland Window Late removed.
[LOG] Callback 555fb99b56a8 -> 555fb99b56a0, Xwayland Window Late removed.
[LOG] Callback 555fb99b5640 -> 555fb99b5638, Xwayland Window Late removed.
[LOG] Unmapped was not focused, ignoring a refocus.
[LOG] Destroying the SubSurface tree of unmapped window 555fb99b5270
[LOG] Callback 555fb995d958 -> 555fb995d950, SurfaceTreeNode removed.
[LOG] Callback 555fb995d9c0 -> 555fb995d9b8, SurfaceTreeNode removed.
[LOG] Callback 555fb995d8f0 -> 555fb995d8e8, SurfaceTreeNode removed.
[LOG] SurfaceTree Node removed
[LOG] Callback 555fb99b5ac0 -> 555fb99b5ab8, CWLSurface removed.
[LOG] CWLSurface 555fb99b5a90 called destroy()
[LOG] Callback 555fb99b5368 -> 555fb99b5360, CWindow removed.
[LOG] Callback 555fb99b5300 -> 555fb99b52f8, XWayland Window removed.

Video showing the issue:
https://github.com/hyprwm/Hyprland/assets/44881120/03b0db7a-de19-4882-ba9b-4f28f6130a27

Focusing the window and resizing it (fullscreen toggle for instance) fixes the issue.  I see it with minecraft launcher all the time.

This is not happening anymore. Closing.


Trouble enabling MSAA in cube example

While trying to enable anti aliasing in the piston engine cube example I've narrowed the issue I've been having to GFX's own cube example.
Here is the attempt, along with the apitrace output:
https://github.com/da-x/gfx/commit/6c7935ee16c4a989a718b33ee91ffe3f605af3c1
(the aa branch under my gfx clone).
@kvark suggested I should post it. I have seen GLX_SAMPLES = 4 in glXChooseVisual and glXChooseFBConfig under piston but not under this trace, but I am not sure which other function calls to look for in the GFX-only trace.
At any case, maybe its worth having an gfx example that enables AA.

To enable multisampling in gfx, you also need to enable multisampling for the backbuffer (the rendertarget in the cube example). Adding with_mutlisampling(4) at window creation (https://github.com/gfx-rs/gfx/blob/master/src/lib.rs#L122) works for me on Windows 10.

@da-x thank you for the report! Very nice to see the test code and an apitrace capture.
I cleaned up your code a bit and tried it on my side (https://github.com/kvark/gfx/commit/63e0dd7f3cb18b0e9b63635eee4daef6e46e1233). You are not seeing GLX_SAMPLES = 4 simply because you didn't change the app launcher to pass the MSAA parameters to glutin. You can see it in my code, and the anti-aliasing works as expected. Btw, no need to use the draw_state crate, since it's re-exported as gfx::state.
Since it works as expected here, the problem with piston lies elsewhere. I'm closing the issue, would be happy to help you investigate further on piston territory. cc @bvssvni
If you could provide the code you are testing with, that would be great. Creating an issue in https://github.com/PistonDevelopers/gfx_graphics would help as well, assuming you use gfx-rs backend in Piston.

It might be as simple as enabling MSAA in the opaque PSOs that gfx_graphics creates, given that this will have no effect if the target FBO is not multisampled.

Thanks, I now verified that the Piston cube example works SDL2Window and multisampling. I'll probably send them a fix along with the cleanup.


Rename PerformCBSSegmentation CLI to PerformSegmentation

We should not commit to CBS.  In the future, we probably will want the same CLI, but the implementation will likely be different.
The recapseg-hb-eval scala must be updated as well.

[ ] Update in hellbender-protected code
[ ] Update in recapseg-hb-eval
[ ] Update in README.md of hellbender-protected.  (See issue #150 for exact location)

Did not close automatically, closing it now.


i found many backticks in password simple，is it right？

root@07d198dcd43f:/notebooks# tail  /mnt/passgan/samples/samples_172900.txt
Baugedd*76
ashas#1```
r.macj````
AvirTAbN``
dice@35```
Salderr65`
Ml4pann```
Ep044j8```
s?j009````
koph@9306`

您好，我在运行train.py文件时显示错误output-o需要参数，可是我不知道在哪加，请您解答感谢

@tjw960414, are you referencing this issue or do you have a new question? If this is unrelated would you mind opening a new issue and providing more information about your problem?
Thanks.


Update SwiftTemplate's cacheKey to use hash instead of modification date for included files

Background

#1042

In #1042, I solved #889 by including the modification date of each include file in order to correctly invalidate the cache when these files were modified, however today while trying to optimise caching on my CI, I noticed that our .swifttemplate binaries were being recompiled even though I had been preserving the ~/Library/Caches/Sourcery directory.
After a little amount of digging, I realised that this was because Git doesn't preserve modification dates. It's likely that this isn't an issue for most uses, but it prevents the cache from being useful in the scenario that I described above.
Changes
To overcome the issue, I've instead updated the cacheKey implementation to include a SHA256 hash of each included file. I opted against this before because checking the modification date was more efficient, but given that this option is out of the question (should we want to support the CI use case), I figure that hashing the files should be the next best thing.
Rendering only happens once per template anyway and I can't see included files ever being big enough for this to cause a performance issue so let me know what you think! If I'm being too naive here then let me know... This change is based on my limited personal usage so I'd love some feedback.
I haven't updated tests since the existing ones capture the change:
https://github.com/krzysztofzablocki/Sourcery/blob/d441f56ba972d04014c6de0f48ac17861ce629f3/SourceryTests/Generating/SwiftTemplateSpecs.swift#L232-L249

Looks like the CI failure is just bundle exec rake validate_docs, which builds fine locally.. I saw in another PR that it's something that you're looking into so I assume that this PR is good to go 👍

thanks @liamnichols, I'm ok with the sha for includes


CassandraSinkCluster system.peers rewrite

Introduced a new integration test test_cluster_multi_rack it tests all the same cases as test_cluster but each cassandra node is on a different rack and each cassandra node has its own shotover instance in front of it.
The existing test_cluster was renamed to test_cluster_single_rack and now runs two shotover test cases against the cassandra cluster.
One to test an empty peers list and one to test a consistent peers list.
The derived fields of system.peers should be non controversial as its the same as system.local.
Config design thoughts
This PR configures the configurable fields with the following configuration:
    - CassandraSinkCluster:
        first_contact_points: ["<IP_ADDRESS>:9042", "<IP_ADDRESS>:9042"]
        data_center: "dc1"
        rack: "rack1"
        host_id: "2dd022d6-2937-4754-89d6-02d2933a8f7a"
        shotover_peers:
          - address: "<IP_ADDRESS>:9042"
            data_center: "dc1"
            rack: "rack2"
            host_id: "3c3c4e2d-ba74-4f76-b52e-fb5bcee6a9f4"
          - address: "<IP_ADDRESS>:9042"
            data_center: "dc2"
            rack: "rack1"
            host_id: "fa74d7ec-1223-472b-97de-04a32ccdb70b"

I am strongly considering changing this such that each config specifies a complete list of nodes and then specifies which node is the local node:
    - CassandraSinkCluster:
        first_contact_points: ["<IP_ADDRESS>:9042", "<IP_ADDRESS>:9042"]
        local_host_id: "2dd022d6-2937-4754-89d6-02d2933a8f7a"
        nodes:
          - address: "<IP_ADDRESS>:9042"
            data_center: "dc1"
            rack: "rack1"
            host_id: "2dd022d6-2937-4754-89d6-02d2933a8f7a"
          - address: "<IP_ADDRESS>:9042"
            data_center: "dc1"
            rack: "rack2"
            host_id: "3c3c4e2d-ba74-4f76-b52e-fb5bcee6a9f4"
          - address: "<IP_ADDRESS>:9042"
            data_center: "dc2"
            rack: "rack1"
            host_id: "fa74d7ec-1223-472b-97de-04a32ccdb70b"

This should make config generation/authoring drastically simpler for multi shotover instance setups but at the cost of some complexity for single shotover instance setups.
However I would like to land this PR with the first implementation as its a lot simpler to implement, then we can move to the second implementation (if we agree) post MVP.

I ended up rewriting to use the second config approach because:

I realized it was actually pretty simple implement
I wanted to use this approach eventually so may as well just use it now
I realized we lacked any kind of local ip rewriting and this was an elegant way to include it

It is added as a separate commit so its easy to back out and revert to the previous implementation.


feat(publish): build destination path with project-xx repository topic

add a step in publish process
This step will look for a project-xxx topic in the event repository
And use it in the destination path of the doc.
Examples
Repository with topics (project-xxx included)
repo: repo_name
topics: [team-software,type-delivery,project-pod]

result path: "docs/source/projects/POD/repo_name/"

Repository with topics (bu no project-xxx)
repo: repo_name
topics: [team-software,type-delivery]

result path: "docs/source/projects/repo_name/"

No topic in repository
repo: repo_name
topics: []

result path: "docs/source/projects/repo_name/"

Great addition! I was thinking bout this kind of automation too!
Could you test it on a branch? I am not sure how the sphinx navigation tree will behave with an additional subfolder.

Great addition! I was thinking bout this kind of automation too! Could you test it on a branch? I am not sure how the sphinx navigation tree will behave with an additional subfolder.

planned 😉

@Wharenn
tested with notification project: https://meero-engineering-documentation.readthedocs-hosted.com/en/latest/projects/project-notification/index.html


Feat: Update network selector

Description of change

Updated network selector based on newest figma designs (grouped by network types)
Refactored file structure regarding some models
Move protocolVersion.ts from db to config folder

Configured networks now have strict appearance ordering:
Legacy Mainnet > Mainnet > Devnet > Shimmer > Testnet > Alphanet
The network property value, in a network configuration JSON, is not arbitrary anymore. I must have one of these values:
"legacy-mainnet", "mainnet", "devnet", "shimmer", "testnet", "alphanet", "custom".
The "custom" value can be used for any network that doesn't fall in one of the other categories.
Desktop:

Mobile:

Aims to complete https://github.com/iotaledger/explorer/issues/295
Type of change

Enhancement (a non-breaking change which adds functionality)

How the change has been tested
Add or remove networks in .localstorage and rebuild the project to see the changes.

The enforced network ordering


Search: Add searchbar to global header (toggle)

link to sketch file

link to sketch file
The menu probably won't look exactly like the above right away, but for this ticket, let's ensure the search is made available from the Header.
The CTA under the open searchbox is TBC.

Would we like some extra tracking events in here? We'll already have the query changes in the URL we can track, but do we want something on the opening of the search bar/Clicking the X to close it (I'm also making it close on "clicking the overlay" so could merge those events)? @taceybadgerbrook @jtweed

Moving to ready for review, but still need to discuss analytics and confirm copy under the input field

Analytics part of this ticket moved to https://github.com/wellcomecollection/wellcomecollection.org/issues/9238 and assigned to @taceybadgerbrook

@jtweed Had a chat with Evie Jeffreys (and @paul-butcher) yesterday, she raised a very good point that people would probably think the search in header was general site search (so looking for "jobs" and "contact" and things like that). And even they'll surely be looking for events & exhibitions. I know you're writing copy for that, but thought I'd raise if we want to hint to the very specifics?


Questions

Hi,
i have many questions, do you have an email or a discord where we can talk ?
Thank you.

We got in touch via twitter 👍


Error while starting the Webcam mode.

`cxc@cxc-Latitude-5580:~$ sudo gopro webcam -i <IP_ADDRESS>
Running GoPro Webcam Util for Linux [0.0.3]
   Launch Options

==========================

Non-interactive:  0
Autostart:        0
Preview:          0
Resolution:       1080p
FOV:              linear
IP Address:       <IP_ADDRESS>
==========================

v4l2loopback is loaded!
v4l2loopback was unloaded successfully.
v4l2loopback was successfully loaded.
Please plug in your GoPro and switch it on. If it booted successfully (Charger icon on screen), hit Return51
To control the GoPro, we need to contact another interface (GOPRO_IP ending with .51).. Adapting internally..
Now using this GOPRO_IP internally: <IP_ADDRESS>
Error while starting the Webcam mode. # TODO Useful message.
`
Hi, i receive this messages and this error... can you help me?
i have a gopro 5 black with Ubuntu 22.04.1 LTS
thank's a lot.
ciao
Carlo A.

Your GoPro is too old, this works for 8+ models.

I thought README says that this script does not support those models 8,9,10 because they have this function natively.
I have the same issue with my GoPro Black 5

Hi, I have a hero black 8 and getting the same error
/usr/local/sbin$ sudo gopro webcam -i <IP_ADDRESS>
Running GoPro Webcam Util for Linux [0.0.3]
   Launch Options

==========================

Non-interactive:  0
Autostart:        0
Preview:          0
Resolution:       1080p
FOV:              linear
IP Address:       <IP_ADDRESS>
==========================

v4l2loopback is loaded!
v4l2loopback was unloaded successfully.
v4l2loopback was successfully loaded.
Please plug in your GoPro and switch it on. If it booted successfully (Charger icon on screen), hit Return
To control the GoPro, we need to contact another interface (GOPRO_IP ending with .51).. Adapting internally..
Now using this GOPRO_IP internally: <IP_ADDRESS>
Error while starting the Webcam mode. # TODO Useful message.

Hi, I have a hero black 8 and get the same error. I use Ubuntu 23.10
/usr/local/sbin$ sudo gopro webcam -i <IP_ADDRESS> Running GoPro Webcam Util for Linux [0.0.3]
   Launch Options

==========================

Non-interactive:  0
Autostart:        0
Preview:          0
Resolution:       1080p
FOV:              linear

IP Address:       <IP_ADDRESS>

v4l2loopback is loaded! v4l2loopback was unloaded successfully. v4l2loopback was successfully loaded. Please plug in your GoPro and switch it on. If it booted successfully (Charger icon on screen), hit Return To control the GoPro, we need to contact another interface (GOPRO_IP ending with .51).. Adapting internally.. Now using this GOPRO_IP internally: <IP_ADDRESS> Error while starting the Webcam mode. # TODO Useful message.

Hey, have you managed to something with it? I have the hero 8 black, and it fails at the same line...


Db fix

I only changed the db setup script and updated address data and the sqlite database. The former database flawed?!
Please merge and push to vercel.

woopwoop


CORS on localhost

Describe the bug or question
Even though the bug does not originate from single-spa it does affect how the system works, so I am posting it here as well in hopes someone already experienced it and found a solution or can help.
After updating Angular 12 to Angular 13 we are no longer able to access our app served on localhost from outside of it, the request is being blocked by CORS.
this is what worked in Angular 12
ng s --project app-search --disable-host-check --port 4207 --deploy-url https://localhost:4207/ --ssl --public-host https://localhost:4207/
and stopped working in Angular 13.
When in development mode we are accessing our https://localhost:4207/ app from our public domain
We were looking into the docs around Webpack 4 and Webpack 5 and we can see that the disableHostCheck flag is removed from webpack 5 doc but is in webpack 4 docs. We tried playing around with disable host check and allowed hosts passing it to ng serve per official docs (https://angular.io/cli/serve) but with no luck.
Thank you
To Reproduce
We have tested this behavior on a clean Angular 13 project without including single-spa and we are aware that this is not a single-spa issue.
Expected behavior
Either disable host check or allow hosts should work.
Screenshots and/or console output

Additional context
We have opened to issue under angular/cli
https://github.com/angular/angular-cli/issues/22992
and under Webpack
https://github.com/webpack/webpack/issues/15752
we did try several ways to pass our domain to allowed hosts
   "serve:single-spa:app-search": "cross-env NODE_ENV=development ng s --project app-search --allowed-hosts domain.com --port 4207 --ssl --public-host https://localhost:4207/"
As well as in the extra webpack config, although not sure if the flag is passed in the correct place in the config object
const singleSpaAngularWebpack = require('single-spa-angular/lib/webpack').default;
const webpackMerge = require('webpack-merge');

module.exports = (angularWebpackConfig, options) => {
  const singleSpaWebpackConfig = singleSpaAngularWebpack(angularWebpackConfig, options);

//https://github.com/single-spa/single-spa-angular/issues/328
  singleSpaWebpackConfig.entry.main = [...new Set(singleSpaWebpackConfig.entry.main)];

  singleSpaWebpackConfig.externals = [...];

  const merged = webpackMerge.merge(singleSpaWebpackConfig, {
    devServer: {
      allowedHosts: 'all',
    },
    module: {
      rules: [
        {
          test: /\.scss$/,
          loader: 'postcss-loader',
          options: {
            postcssOptions: {
              ident: 'postcss',
              syntax: 'postcss-scss',
              plugins: [
                require('postcss-import'),
                require('tailwindcss'),
                require('autoprefixer'),
              ],
            },
          },
        },
      ],
    },
  })
  return merged
};

I have the same issue, Angular 13 drop support of --deploy-url and there is no way to redirect assets without CORS errors.

@szymonworld if it helps, we are now providing the --deploy-url flag inside angular.json under architect->build->options
      "architect": {
        "build": {
          "builder": "@angular-builders/custom-webpack:browser",
          "options": {
            "outputPath": "dist",
            "index": "src/index.html",
            "main": "src/main.single-spa.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.app.json",
            "preserveSymlinks": true,
            "assets": ["src/favicon.ico", "src/assets"],
            "styles"<EMAIL_ADDRESS>"src/styles.scss"],
            "scripts": [],
            "customWebpackConfig": {
              "path": "extra-webpack.config.js",
              "libraryName": "app-search",
              "libraryTarget": "umd"
            },
            "deployUrl": "https://localhost:4207/"
          },

changes can be found here async function updateDeployUrl
https://github.com/single-spa/single-spa-angular/commit/c5b46e7854bc37b6197228db90bf0e4295be778f

Hi @joeldenning ,
Do you have any idea how to fix above issue.
We are getting CORS issue after migrating to angular 13 version.
FYI:
Only below node modules were updated and there were no code changes.
"@angular-builders/custom-webpack": "13.0.0", "ng-packagr": "^13.0.0", "single-spa-angular": "6.3.1",

Hello,
I'm having a similar issue but from what I gathered, the CORS fails because the pre-flight OPTIONS request returns an HTTP 404 status even though the response has the Access-Control-Allow-Origin: * header:

The issue seem to lie within @angular-builders/custom-webpack (or possibly single-spa-angular's webpack config) as I was able to reproduce the issue with it: just-jeb/angular-builders#1240

After further investigation, I'm finally not sure that the issue comes from angular-builders, as I was able to reproduce the issue with @angular-devkit/build-angular:dev-server.
I'm going to open an issue on the Angular project.

Apparently, the issue lies in webpack-dev-server: webpack/webpack-dev-server#4180

I encountered this today after upgrading all angular projects from 12 to 14.
Fortunately it doesn't affect builds, only development. In which case we (for now) develop in a no CORS chrome instance.

A fix has been merged in angular-cli (angular/angular-cli#23642), hopefully the next release of @angular-devkit/build-angular will fix the issue (I have yet to try with a snapshot build).

Finally got to try, updating @angular-devkit/build-angular to 14.1.1 fixes the issue.

@axeleroy
That's so good to hear,
I tried with @angular-devkit/build-angular yet got the same CORS error.
Could you share more details to fix above like package.json or angular.json if you modified?
Appreciate your time.

ng update @angular/core@14 @angular/cli@14 --force
After that I updated most if not all of my dependencies
    "single-spa": "^5.9.4",
    "single-spa-angular": "^7.1.0",

paste your package json/angular json if you can.

Well, I wonder if you shouldn't upgrade to Angular 14 (or at least angular-cli 14) in order to use the latest build-angular. The Angular team did not backport the fix to angular-cli 13.

The fix is released in version 14.
    "@angular-devkit/build-angular": "^14.2.1",
    "@angular-builders/custom-webpack": "^14.0.1",

Any fix we can have with Angular 13 for this? I have the same issue. http://localhost:4201/main.js is loading but not the json file. It gives the CORS issue.

I don't think the fix has been (or will ever be) backported to Angular 13. There shouldn't be anything stopping you from upgrading to Angular 14, the API has been pretty stable between 13 and 14 and versions <15 are no longer supported .


Table Designer preview add column fails on SYS_VER table

Is your feature request related to a problem? Please describe.

Start with a table.  Add Period columns and enable SYSTEM_VERSIONING.
Open table designer on the table.
Add a column, drag to 2nd column in the table.
Click "generate script".

The script disables SYSTEM_VERSIONING correctly but doesn't add the column to the history table, so re-enabling history fails.
Describe the solution or feature you'd like
Consider including in the script adding the column to the history table too.
Describe alternatives you've considered
Alternative 1. Ask user if they would like to drop and re-create empty _History table.
Alternative 1b. Instead of dropping, give user the option to rename history table with a unique suffix, like _20220627, _20220627b, _20220627c, etc.
Additional context
11:24:02 AMStarted executing query at Line 73
Msg 13523, Level 16, State 1, Line 79
Setting SYSTEM_VERSIONING to ON failed because table 'FooOffice.sm.tmp_ms_xx_MyTable' has 15 columns and table 'FooOffice.sm.MyTable_History' has 14 columns.
Batch execution time: 00:00:00.254
An error was encountered during execution of batch. Exiting.
Total execution time: 00:00:01.814
In first step, my SYSTEM_VERSIONING columns and history table looks like:
    [PeriodStart]   DATETIME2 (7) GENERATED ALWAYS AS ROW START HIDDEN NOT NULL,
    [PeriodEnd]     DATETIME2 (7) GENERATED ALWAYS AS ROW END HIDDEN   NOT NULL,
    PERIOD FOR SYSTEM_TIME ([PeriodStart], [PeriodEnd]),
-- PK here
) WITH (SYSTEM_VERSIONING = ON (HISTORY_TABLE=[sm].[MyTable_History], DATA_CONSISTENCY_CHECK=ON));

Fixed by STS vbump in #20031


Only Video Rewards work. Banners and Interstitial don't load.

I am currently using Godot 3.0.2 on Windows 10. I am testing it for android. Can anyone upload a working custom export template for Godot 3.0.2

If it's working with rewarded video, it should work with the others types too.
You should try using adb for debugging:
adb logcat -s godot
and post the output here.


Consider "Representation" naming.

This is linked to #13.
Naming is the key thing here, I believe we want to provide toolsets that make providing flattened representations of things to the view layer easy to understand. "forms" and "serializers" don't always provide this context so well.
This could be a way where we're able to define the difference between the asymmetrical use cases.

Agreed, naming things is also hard. Shaper is another name I've got knocking around. See #15 for some discussion of what the output of this layer is "allowed" to be.


Fix type error found by dartanalyzer --strong

We were declaring that the function passed to setState should return a
Function. In reality, we want the function to return void (and everyone calls
it with a function that returns void).

lgm

Yay!


How many labeled data are used in SGAN.py?

As we know, semi-supervised GANs focus on small portion labeled data. In MNIST task, people often use 1000 label examples vs 59000 unlabel examples. But in SGAN.py, it looks like all label are used?

Please go through following lines:
d_loss_real = self.discriminator.train_on_batch(imgs, [valid, labels], class_weight=[cw1, cw2])
d_loss_fake = self.discriminator.train_on_batch(gen_imgs, [fake, fake_labels], class_weight=[cw1, cw2])
In first training, valid labels are used, in second, fake labels are used.


Directory contents should be also tracked in the database.

This improvement would allow the NSRR to better reply to queries from external sites and help in being a better file storage system.

Moving to future release focused on dataset file structure


⚠ Bofrost.fr has degraded performance

In 73ccb60, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1637 ms

Resolved: Bofrost.fr performance has improved in 73cd3b5 after 311 days, 8 hours, 55 minutes.


Add behavior api

extracted from #966 and #1149
builds on #1148 #1145 #1147 #1144
What was wrong?
In order to get rid of the Peer classes, we need a way to define units of functionality that are "conditionally" applied to a ConnectionAPI.
How was it fixed?
This introduces the "Behavior" API.  A BehaviorAPI is a unit of functionality that applies to a ConnectionAPI.
One of the simplest behaviors is the p2p.behaviors.CommandHandler.  This behavior installs a handler function via ConnectionAPI.add_command_handler.  Here's an example that uses this to implement a "send a pong anytime I get a ping"
class PongWhenPinged(CommandHandler):
    cmd_type = Ping
    async def handle(self, connection, msg):
        connection.get_base_protocol().send_pong()

# or if you like decorators and functions
@command_handler(Ping)
async def send_pong_when_pinged(connection, msg):
    connection.get_base_protocol().send_pong()

Here's one that triggers the ConnectionAPI.cancel_token when it receives a Disconnect msg.
class TriggerCancelOnDisconnect(CommandHandler):
    cmd_type = Disconnect
    disconnect_reason = None
    async def handle(self, connection, msg):
        self.disconnect_reason = DisconnectReason(msg['reason'])
        await connection.cancel()

Another built-in helper is the p2p.behaviors.Application.  These are designed to be containers of multiple behaviors, typically exposing a public API of some sort.
class P2PAPI(Application):
    def get_behaviors():
        return (PongWhenPonged(), TriggerCancelOnDisconnect)
    def disconnect(self, reason):
        ...
    def send_ping(self):
        ...

The class above combines usage of both some custom local functions as well as wrapping up some other behaviors.
For a look in how these APIs are actually used, see https://github.com/ethereum/trinity/pull/1149
To-Do

[x] Clean up commit history

[x] Add entry to the release notes

Cute Animal Picture

@lithp this builds on multiple other PRs so feel free to either only review the latest commit or wait for the other PRs to be merged before looking this over.

One thing that I've considered changing...
Right now you have to have some long-running code somewhere that does this.
my_behavior = MyBehavior
async with my_behavior.apply(connection):
    ...  # wait for exit condition

The "wait for exit condition" looks like it will almost always be "wait for cancellation of the connection".  Under this paradigm, it might make sense to have a simpler API like:
my_behavior = MyBehavior()
connection.add_behavior(my_behavior)

I don't think this needs to be addressed in this PR but it's something I've considered.  A case for keeping it as-is would be that the current API is going to be friendly towards trio where-as the Connection.add_behavior won't since it will have to run something in the background (which doens't make it impossible, just against the basic ethos of trio).

might be worth a quick call to talk about what your eventual plan is

:+1: sounds like a good plan.  I'm available anytime after 9am (my time) tomorrow.


fixes grails/grails-wrapper#5

This changes trigger the CLI succesfully but grails-shell is also failing because of the repository change.

We're not currently open to changing the URL. Waiting on a response from JFrog to see the options

You realize that the wrapper is currently unusable ? In our case our pipeline is not working. This one, even with the old URL, will give the ability to override through properties...

You realize that the wrapper is currently unusable

Yes

@cosenmarco Thank you, I cherry-picked some of the changes from this PR in #8

You're welcome. Glad to help.


All possible first level errors ?

Please report all possible simple errors that we can put as milestone for AutoCompiler.

Semicolon missing
bracket errors
arrays []

Please discuss them here !

When a curly brace is missing the compiler error is

reached end of file while parsing

new commit with new methods and new error handling
RandomWriter commentLine()// for comment specific line in file

Currently working on public class name and not matching with file name.

https://github.com/pawarashish564/AutoCompiler/commit/4a0cdb6318d22ff14a7e974b71a9331d36d22f3f

package system does not exist !

??


Don't scroll beyond the top offset

Stops SLKTextViewController from scrolling beyond the top offset when showing the keyboard. There was an issue for this I think? I'll dig it up.

#1068

Might also unblock #1167, I will check


Bug on ui bootstrap modal

Hi guys,
First want to say is a great job with this lib.
I got a problem with the display inside a ui bootstrap modal, the crop selector get stuck on the left bottom corner and can't be dragged anywhere, seems like the background layer of the modal is overlying the canvas.
I'm using the test example with angular 1.3.15 and angular ui bootstrap.

hi @dakairus :). Did you resolve it?

Hello, Did you resolve it?

@franbueno Did you resolve it? Thanks!


2048AI

Hi there,
I saw your 2048AI and am very impressed.
My father has been playing the game for a few years now and he has gotten the 32768 tile quite a few times. He's curious to know how your 2048 AI works  so that he can better understand the odds of getting 65536. For instance, out of 100,000 games how many times can CGI-2048 get 65536?
Would you be open to chatting with us over email<EMAIL_ADDRESS>Thanks a lot!
Tracy

@tachou
Hi,
Thanks for the compliment.
The odds to have 65536-tile in 100,000 It's less then 0.01%...
Hopefully, Szubert and Jaskowski has done a very great job on the 2048 AI as well.
Sincerely,
Kun-Hao Yeh


Add Contact section

Generally, on a portfolio website, we have the option to contact the person directly using the website form.
So, it will be great if we can add that section and perhaps link the form response to the email.

It can be something along the line of this.

Hey @RashikaKarki  can you assign this to me and @hkaur008


CSIP83 - should/must/must not/ the root package folder be identified in structMap/div

https://dilcisboard.github.io/E-ARK-CSIP/specification/implementation/metadata/#536-use-of-the-mets-structural-map-element-structmap
Related to #153

CSIP83 | Structural divisions | structMap/div | Each folder (and sub-folder) within the package must be represented by an occurrence of the
 element. Please note that sub-folders must be represented as nested div elements. Example: <structMap TYPE="physical" LABEL="CS IP StructMap">

 | 0..n

CSIP83 wording is

within the package

But the example in the specification row and the example below the spc. table does not limit itself to folders within the package. It includes the root package folder itself - with the label "Package123" in the example in the spec. row and with the label  "uuid-4422c185-5407-4918-83b1-7abfa77de182" in the example below the spec. table.
<mets:structMap ID="uuid-1465D250-0A24-4714-9555-5C1211722FB7" TYPE="physical" LABEL="CS IP StructMap">
    <mets:div ID="uuid-638362BC-65D9-4DA7-9457-5156B3965A17" LABEL="uuid-4422c185-5407-4918-83b1-7abfa77de182">
        <mets:div ID="uuid-A4E1C5B6-CD9B-43EF-8F0C-3FD3AB688F80" LABEL="metadata">

It does seem beneficial to specify the full folder structure - and if so we should change the wording about

within the package

Next, we have to clarify the relationsship between the ID of the IP,  the value of the mets/@OBJID and the value of the structMap/div/@ID and the name of folder  - see CSIP2

Text update will be made in the METS profile.

Handled


test: htmlplus file header and footer sections

Fixes https://github.com/batunpc/palpatine/issues/16

Thank you @saminarp the CI workflow seems happy


Allow Access to All Files

Hello, how to remove this 'allow access to all files' request from app? (Version 0.3.3)

@ErsinDemirbas we are currently using the storage permission to store the image after a successful scan. For this, you will have to modify the existing permissions that concern WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE.

Thank you so much 👍


confused about broadcast() method

Description
Hi, I'm confused about the broadcast() method in level 5. I understand that the output is supposed to come from the terminals so my "pager1:beep" is generated by calling a method in the pager class, then I capture all the beeps and string it together in broadcast() method in my host classes. However, the error below occurs. I am confused what this means? is the output not supposed to be string type?
Screenshots (if any):

Have you tried System.out.println() ?

oh.. haha I forgot about that, it worked, thank u!


one or more projects in the solution were not loaded correctly

I cloned the prop, then open the lvgl.sln in vs2022. vs2022 pop the window below.

press the ok , it turn to the window below

You should clone this repository with submodule.
Kenji Mouri

I have used two commands all below. they came with same results.

maybe it was

it was a network

You should clone this repository with submodule.

this is right


Incorrect Query format when using formatQuery on a rule group with a singular rule

When formatting for JSON logic via formatQuery(query, 'jsonlogic'), if the query object only contains a singular rule, and looks like so:
{
    "combinator": "and",
    "rules": [
        {
            "field": "teams.name",
            "operator": "=",
            "value": "bob",
            "id": ...
        }
    ],
    "id": ...
}

Then the output of the formatQuery function will look like appear in the following (incorrect) format:
{
    "==": [
        {
            "var": "teams.name"
        },
        "bob"
    ]
}

As shown by the object above, the output from formatQuery is missing a layer of nesting, where the key of the array containing the rules objects is the combinator for that rule group level. The expected output is shown below:
{
    "and": [
        {
            "==": [
                {
                    "var": "teams.name"
                },
                "bob"
            ]
        }
    ]
}

It appears that the formatQuery object should return rules objects, within an array, keyed by the combinator selection, regardless of how many rules are selected.

I know I said in the Discord chat that I would fix this, but after thinking about it I'm not sure I should change the current behavior.
The resulting object from formatQuery is a valid JsonLogic rule, and parsing that same rule object with parseJsonLogic results in a valid RQB query object.
This codesandbox demonstrates everything. Code:
import { apply, is_logic } from "json-logic-js";
import { parseJsonLogic } from "react-querybuilder/parseJsonLogic";
import "./styles.css";

const rule = {
  "==": [{ var: "teams.name" }, "bob"],
};

const data = { teams: { name: "bob" } };

document.getElementById("app")!.innerHTML = `

rule === ${JSON.stringify(rule, null, 2)}

data === ${JSON.stringify(data, null, 2)}

is_logic(rule) === ${is_logic(rule)}

apply(rule) === ${apply(rule, data)}

query === ${JSON.stringify(parseJsonLogic(rule), null, 2)}

`;

If your use case requires the "==" rule be wrapped in an "and" array to be valid, I would suggest that be done in your own code when necessary.

Closing this issue based upon the comment above.

I would like to reopen this issue due to the following:
Query:

The resulting jsonLogic is:
{
  "and": [
    {
      "startsWith": [
        {
          "var": "firstName"
        },
        "Stev"
      ]
    },
    {
      "in": [
        {
          "var": "lastName"
        },
        [
          "Vai",
          "Vaughan"
        ]
      ]
    },
    {
      ">": [
        {
          "var": "age"
        },
        "28"
      ]
    },
    {
      "==": [
        {
          "var": "firstName"
        },
        "oi"
      ]
    }
  ]
}

Please correct me if I'm wrong, but I believe it should be:
{
  "and": [
    {
      "startsWith": [
        {
          "var": "firstName"
        },
        "Stev"
      ]
    },
    {
      "in": [
        {
          "var": "lastName"
        },
        ["Vai", "Vaughan"]
      ]
    },
    {
      ">": [
        {
          "var": "age"
        },
        "28"
      ]
    },
    {
      "or": [
        {
          "==": [
            {
              "var": "firstName"
            },
            "oi"
          ]
        }
      ]
    }
  ]
}

@Coooi yeah that's a little different than the other use case, and I can see why you'd want to retain the grouping since the query would end up being different after parsing it back to an RQB object.
What if it maintained the grouping for subgroups with a single rule, but not for the outermost group?

@jakeboone02 That's right, I can't parse it back like that.
Could you maybe give an example of what you mean based on the data I provided?
In fact, the inner grouping (OR) belongs to the outermost one (AND), so I think to reconstruct the whole query we should ideally follow the RQB structure, right?

@Coooi Right, the "and" group (the query itself) has multiple rules so that would stay the same even with the current logic. The "or" group gets collapsed to a single rule with the current logic, but what I'm proposing is that the collapsing only happens when there is only one rule in the entire query (no subgroups).

@Coooi Yeah, sorry I was on mobile when I posted my last comment.
Current logic is that this...
{
  "combinator": "and",
  "rules": [
    { "field": "firstName", "operator": "=", "value": "oi" }
  ]
}

...becomes this:
{
  "==": [
    { "var": "firstName" },
    "oi"
  ]
}

The full RQB query is collapsed to a single JsonLogic rule, which (to me) seems ok since parseJsonLogic will reproduce the same query on the way back (unless the combinator is "or"/"xor").
The problem you've spotted is that all groups with a single rule get collapsed, which does not reproduce the same query when parsed.
What I'm proposing is that a query with a single rule will collapse as it does today, but subgroups never collapse, even if they only contain a single rule. So this:
{
  "combinator": "and",
  "rules": [
    { "field": "firstName", "operator": "=", "value": "oi" },
    {
      "combinator": "or",
      "rules": [
        { "field": "lastName", "operator": "=", "value": "io" }
      ]
    }
  ]
}

...would become this:
{
  "and": [
    {
      "==": [
        { "var": "firstName" },
        "oi"
      ]
    },
    {
      "or": [
        {
          "==": [
            { "var": "lastName" },
            "io"
          ]
        }
      ]
    }
  ]
}

If you agree with this I'll create a new issue for it (or you can).

@jakeboone02 There you go: https://github.com/react-querybuilder/react-querybuilder/issues/664


QoL improvements in the form of an extesion/CLI

Specific Demand

[x] Translate HTML to RSX with extraction

[x] Identify repitition and do some mapping

[ ] Extract some rsx to its own component
[ ] Extract repetitive rsx and convert it to an array map
[x] Add some linting for improper use of hooks
[x] Add linting for hooks, keys, and memoization
[x] publish the vscode extension and promote it more in the docs
[x] Autoformat rsx (and handlers/internal code with prettyplease)
[ ] hover to preview rsx calls (like slint)

Autoformat rsx (and handlers/internal code with prettyplease)

Would be cool if this also respected the tab_spaces setting in the project's rustfmt.toml if present :)

Closing this since it's not super descriptive - will split these out into their own features.


test(engine): some integration tests fail to check job status

What did you do?
make engine_integration_test
What did you expect to see?
Run normally
What did you see instead?
Run fail because original status has been changed to state for job state.
Versions of the cluster
Dataflow Engine version (run tiflow version):
master@4a97c45

/severity minor


Improved documentation [docs-dev]

Some links in the mfem website are not what we would like to show I think:
http://mfem.org
http://mfem.org/features

finite element:
spaces:
bilinear:
linear:
transformations:
elements:
surface: https://github.com/mfem/mfem/blob/master/data/square-disc-surf.mesh not sure we want to look at the file
vectors:
sparse matrices:
AME: http://mfem.org/examples/?ame is not updated
time integrators:

https://github.com/mfem/mfem/blob/docs-dev/CONTRIBUTING.md

# One time only) push extra ')'?

The hypre build process is also working better with cmake to find the MPI headers and libs, rather than the configure in the src directory


Getting "Undefined API"

Hi,
I'm trying to get comfortable with the Rubrik API.
I followed the getting started guide for Postman.
If I enter https:///api/v1/cluster/me I get a valid response.
But for all other commands, like https:///api/v1/node I get "Undefined API".
Am I missing some configuration?
Any advise is appreciated.
Thank you,
Caroline

Sorry, my fault. I didn't understand, I had to change the API path to "internal".
Sorry for the misunderstanding.


Unable to connect automatically

Just like my title, I would like to ask you, I now use Swift native for Bluetooth connection, and the connection is successful, killing APP. Then move the phone away from the peripheral device. When you approach it again, the Bluetooth of the iPhone cannot reconnect with the peripheral device. How does this framework work?
self.centralManager.connect(peripheral, options: nil)

connectToDeviceViaAddressAsync(){
  readFileAsync("bluetoothDevice.txt").then((file) {
    if(file != "" &&file != "NULL"){
      flutterBlue.connectedDevices.then((value) {
        if(value.isEmpty){
          connectToDeviceViaAddress(file.split("\n")[1]);
        }
      });
    }
  });
}

Future<String> readFileAsync(String fileName) async{
  try{
    Directory appDir = await getApplicationDocumentsDirectory();
    String path = appDir.path;
    File file = File('$path/$fileName');
    String stringFile = file.readAsStringSync(encoding: const SystemEncoding()).toString();
    return stringFile;
  } catch(e){
    return "NULL";
  }
}

void connectToDeviceViaAddress(String deviceAddress){
  flutterBlue.scan(timeout: Duration(seconds: 5)).listen((scanResult) {
    // Check if the device found matches the address we want to connect to
    if (scanResult.device.id.id == deviceAddress) {
      // Stop scanning for devices
      flutterBlue.stopScan();

      // Connect to the device
      scanResult.device.connect().then((value) {
        return;
      });
    }
  });

}

                    connectToDeviceViaAddress(scannedDevices[index].getAddress());
                    flutterBlue.connectedDevices.then((value) {
                      try{
                        var test = value[0].id.id == scannedDevices[index].getAddress();
                        if(test){
                          writeToFile("bluetoothDevice.txt", "${scannedDevices[index].getName()}\n${scannedDevices[index].getAddress()}");
                          Fluttertoast.showToast(msg: "Your device is connected");
                          Navigator.pop(context);
                        }
                      }catch(e){
                        Fluttertoast.showToast(msg: "Can't connect to this device");
                      }
                    });


perf: add an 'asm' feature to crypto to use optimized hashes

The sha3 dependency allows passing an asm feature to use optimized implementations of hashing primitives.
This adds a feature to lambdaworks-crypto that forwards to sha3, enabled by default.
A quick check with 0.11.0-pre3 (as 0.10 doesn't implement this for ARMv8) shows a 20% improvement in criterion_merkle on my M1.
Type of change
Please delete options that are not relevant.

[x] New feature
[ ] Bug fix
[x] Optimization

Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

[x] This change is an Optimization

[x] Benchmarks added/run

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

Project coverage is 72.03%. Comparing base (07657e9) to head (fd44c0c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #873   +/-   ##
=======================================
  Coverage   72.03%   72.03%
=======================================
  Files         149      149
  Lines       33407    33407
=======================================
  Hits        24066    24066
  Misses       9341     9341

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


Fix the version scanner working directory

The big problem here is that the version scanner now reads the yml files to figure out what builds in a given sdk/ServiceDirectory but, the yml files were never added to the sparse-checkout. Thankfully, outside of the library that surfaced this issue, there are no issues in the repository.
I've added code to the script to fail and report an error if it can't find any ci.yml files as well as some additional diagnostics when verbose logging is turned on.

Some suggestions, LGTM either way.

Yes, I took all of the suggestions.


Cross compiling openssl3.0, there are some errors when running on ARM platform

hello，openssl  team
I cross-compiled openssl3.0 on ubuntu, the compilation process:
1. ./Configure linux-armv4 --cross-compile-prefix=arm-himix200-linux- --prefix=/data/work/openssl_instasll
2. make
3. sudo make install
I need to use the openssl tool on the 32-bit ARM platform, so the target of cross-compilation is the 32-bit ARM platform, the compilation is passed, and then the openssl binary under the bin file is ported to the ARM platform and the dynamic library under the lib library is ported to the ARM platform, I can run openssl applications like openss help, but when I want to generate RSA keys, I get an error, as follows:
root@au:~# openssl genrsa -out cl_key.pem
genrsa: Error generating RSA key
What is the reason for this?
    I cross-compiled 64-bit openssl3.0, ported it to 64-bit ARM platform, I can use openssl tools normally, and can generate RSA keys normally, etc.

This really is not a lot to go on.  Can you provide anything further?
Try setting a break point in EVP_PKEY_keygen and stepping through to find out what fails?

This really is not a lot to go on. Can you provide anything further?
Try setting a break point in EVP_PKEY_keygen and stepping through to find out what fails?
If you are only after the openssl tool, have you tried a static build?

I just cross-compile openssl3.0, and then transplant the generated bin file and lib library file to the corresponding directory of the ARM platform. I can run commands such as openssl version or openssl help, but I want to generate an RSA private key, but it cannot be generated.
I don't quite understand what you mean. The 32-bit ARM platform has insufficient performance to generate RSA private keys.
Where is EVP_PKEY_keygen and how to do it

Do you have a debugger on the 32-bit ARM platform?  Can you use it to set breakpoints in the executable?  EVP_PKEY_keygen() is the function that generates an RSA key in OpenSSL, it is failing for reasons that are not possible to determine at this stage.
The reason for trying a static build is to remove all dependencies on shared libraries.  Getting the shared library installation incorrect is very easy, this would indicate if it is the problem or not.

strace may give us some clues as well:
strace openssl genrsa -out cl_key.pem 2> stderr.log

Do you have a debugger on the 32-bit ARM platform? Can you use it to set breakpoints in the executable? EVP_PKEY_keygen() is the function that generates an RSA key in OpenSSL, it is failing for reasons that are not possible to determine at this stage.
The reason for trying a static build is to remove all dependencies on shared libraries. Getting the shared library installation incorrect is very easy, this would indicate if it is the problem or not.

I don't know what static build is, can you provide a method

Configure with the no-shared option.

Configure with the no-shared option.

Tried many ways, still can't solve

Did you try configuring with no-asm? We would need a debug build and running the command in the debugger to see where the error is generated, unfortunately we cannot help you without more information provided.

Thanks, I tried no-asm, but it still fails. What information do I need to provide? i can provide it to you。

Did you try configuring with no-asm? We would need a debug build and running the command in the debugger to see where the error is generated, unfortunately we cannot help you without more information provided.

But why does the 64-bit ARM platform work fine？

Do you have a debugger on the 32-bit ARM platform? Can you use it to set breakpoints in the executable? EVP_PKEY_keygen() is the function that generates an RSA key in OpenSSL, it is failing for reasons that are not possible to determine at this stage.
The reason for trying a static build is to remove all dependencies on shared libraries. Getting the shared library installation incorrect is very easy, this would indicate if it is the problem or not.

Thanks, I don't have tools to debug online, I can only see by printing the information:
1.

into this function
3.

The value of ret is modified here, resulting in an RSA private key error。

The execution should eventually reach the ossl_rsa_fips186_4_gen_prob_primes() function in rsa_sp800_56b_gen.c. You can try to look where it errors out. You can also call ERR_print_errors_fp(stderr) to print out the error stack. Unfortunately without a debugger it would be very hard to find out what's happening.

Configure with --debug even if you do not have access to debuggers. IIRC this sets the compiler optimization level as -O0. It is not uncommon that a code is miscompiled with some compiler optimizations due to bugs in either the compiler or the code. Alternatively you can explicitly specify -O0 as the optimization level.
The target arm-himix200-linux is obscure to me but googling that target name I find some information about the toolchain, indicating that the GCC version is 6.3.0, which is fairly old.
FYI, this issue does not reproduce on Android (with Android NDK r24) nor user-space emulated Gentoo musl environment (with GCC 11.3.0), implying that this is difficult to reproduce without access to the toolchain for arm-himix200-linux.

The cross compiler I use is arm-xilinx-linux-gnueabi-gcc
The gcc version is 4.9.2, I guess the bottom layer of my ARM platform does not support openssl3.0。

The execution should eventually reach the ossl_rsa_fips186_4_gen_prob_primes() function in rsa_sp800_56b_gen.c. You can try to look where it errors out. You can also call ERR_print_errors_fp(stderr) to print out the error stack. Unfortunately without a debugger it would be very hard to find out what's happening.

thanks，This error has not yet been executed in the rsa_sp800_56b_gen.c file. It has failed in the app_keygen function. The app_keygen function is called in the genrsa_main function. If it fails, the RSA private key will not be generated.

Configure with --debug even if you do not have access to debuggers. IIRC this sets the compiler optimization level as -O0. It is not uncommon that a code is miscompiled with some compiler optimizations due to bugs in either the compiler or the code. Alternatively you can explicitly specify -O0 as the optimization level.
The target arm-himix200-linux is obscure to me but googling that target name I find some information about the toolchain, indicating that the GCC version is 6.3.0, which is fairly old.
FYI, this issue does not reproduce on Android (with Android NDK r24) nor user-space emulated Gentoo musl environment (with GCC 11.3.0), implying that this is difficult to reproduce without access to the toolchain for arm-himix200-linux.

Because I cross-compile openssl1.0.0 and port it to the 32-bit ARM platform, functions such as RSA private keys can be generated normally. So it should be that the openssl version configured in the bottom layer can only be openssl1.0, and the openssl3.0 version is too high to support

This error has not yet been executed in the rsa_sp800_56b_gen.c file. It has failed in the app_keygen function.

This does not make much sense to me. The output as you printscreened above shows that some generation is being performed but then it fails.
Do you see the execution reaching rsa_gen() in rsa_keymgmt.c?
Then it should reach RSA_generate_multi_prime_key() function and from that into the rsa_keygen() function in rsa_gen.c.
Do you possibly have some openssl engine in place?

This error has not yet been executed in the rsa_sp800_56b_gen.c file. It has failed in the app_keygen function.

This does not make much sense to me. The output as you printscreened above shows that some generation is being performed but then it fails. Do you see the execution reaching rsa_gen() in rsa_keymgmt.c? Then it should reach RSA_generate_multi_prime_key() function and from that into the rsa_keygen() function in rsa_gen.c.
Do you possibly have some openssl engine in place?

Thank you, there should be some problems with the ARM platform

Thanks, it's resolved. When cross-compiling openssl3.0, after configuration, you need to modify the compilation optimization level in the Makefile. The default is -O3, modify it to -O0 to succeed.
Excuse me, can you simulate cmp server in openssl3.0?

Thanks, it's resolved. When cross-compiling openssl3.0, after configuration, you need to modify the compilation optimization level in the Makefile. The default is -O3, modify it to -O0 to succeed.
Excuse me, can you simulate cmp server in openssl3.0?

Thanks, it's resolved. When cross-compiling openssl3.0, after configuration, you need to modify the compilation optimization level in the Makefile. The default is -O3, modify it to -O0 to succeed.
Excuse me, can you simulate cmp server in openssl3.0?

Thanks, it's resolved. [...] modify the compilation optimization level in the Makefile. The default is -O3, modify it to -O0 to succeed

That's a workaround, not a resolution, to anything from a compiler bug to a bug in an assembler implementation :(

Yes, and either the error can be fixed (preferred) or at least some diagnostics/warning should be given that the workaround is needed and why.

Just looking at the sequence of the output '.+' you can get a general idea of where it failed...
Inside ossl_bn_rsa_fips186_4_gen_prob_primes() it has got past the 2 calls to bn_rsa_fips186_4_find_aux_prob_prime()
since each call to this function will  output a sequence of [. 65{+}] (it gets 65 pluses and a * when is_prime passes).
So it must be hitting an error inside ossl_bn_rsa_fips186_4_derive_prime()

Could you please try a recent snapshot? There was the fix in #22272 committed, that could possibly fix the issue.

marking as inactive, will be closed at the end of 3.4 dev barring further input


TC-ACL-x-x Access control Verification Steps requires valid and invalid TLV data

[TC-ACL-2.3] Extension attribute
Test  Plan link: https://github.com/CHIP-Specifications/chip-test-plans/blob/master/src/cluster/AccessControl.adoc#323-tc-acl-23-extension-attribute

D_OK_EMPTY is an octstr of length 2 containing valid TLV: - top-level anonymous list (empty).

D_OK_SINGLE is an octstr of length 50-100 containing valid TLV: - top-level anonymous list, containing - one element with profile-specific tag in fully qualified form.

D_OK_FULL is an octstr of length 128 containing valid TLV: - top-level anonymous list, containing - two elements with profile-specific tag in fully qualified form.

D_BAD_LENGTH is an octstr of length 129 containing valid TLV: - top-level anonymous list, containing - one element with profile-specific tag in fully qualified form.

D_BAD_STRUCT is an octstr of length 2 containing valid TLV: - top-level anonymous struct, empty.

D_BAD_LIST is an octstr of length 50-100 containing valid TLV: - top-level list with context-specific tag, containing - one element with profile-specific tag in fully qualified form.

D_BAD_ELEM is an octstr of length 50-100 containing valid TLV: - top-level anonymous list, containing - one element with anonymous tag.

D_BAD_OVERFLOW is an octstr of length 50-100 containing valid TLV: - top-level anonymous list, containing - one element with profile-specific tag in fully qualified form - but having extra bytes after the top-level list end-of-container.

D_BAD_UNDERFLOW is an octstr of length 50-100 containing invalid TLV: - top-level anonymous list, containing - one element with profile-specific tag in fully qualified form - but lacking the top-level list end-of-container.

D_BAD_NONE is an octstr of length 0.

@aswathygrl What exactly is the SDK issue here?

@bzbarsky-apple  This is not an SDK Issue ,we need the support from SDK to generate the TLV data listed in the above issue.

@aswathygrl What exact support are you looking for?  Do you need to generate a single static set of payloads, or do you need to be generating these on the fly based on some input parameters?  If the latter, what input parameters?  What form do you need the data in (raw bytes, hex, base64, something else)?

My understanding of the ACL extension is that an ACL extension contains arbitrary TLV encoded data with the following constraints:
The contents SHALL consist of a top-level anonymous list; each list element SHALL include a [profile-specific] tag encoded in fully-qualified form.
So I suspect that there is no need to generates content on the fly, just static payloads.

@vivien-apple do we have tools to generate these payloads or do we need to build one ? Also does current chip-tool sending these TLV payloads ? Wondering if this test should be covered in unit tests or should this be a cert test. Since there is no SHALL requirement in the spec for these scenarios, I think these scenarios should be covered in unit tests rather than certification tests

Also does current chip-tool sending these TLV payloads ?

If you mean "support sending", then yes., you can set ACL extensions via chip-tool.

We have means to generate this TLV. Both in Python and C++. Someone just has to do it once.
This is not a unit-test case --> The processing of extensions is per product and the core SDK does not itself process it, so we need to test the assumptions in cert

Closing this issue as the it is resoved and Updated the Test plan.


Added necessary environment variables

Resolved compilation error
What
server port listening error   ,fixed  through simple change
Checklist ✅

New backend functionality has been unit-tested.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hey @Bharaththop! Thanks for the pull request. What was the error that caused you to open this?

Hey @Bharaththop! Thanks for the pull request. What was the error that caused you to open this?

Yeah, If we go through the flow of commits which I raised for the pull request :

Added variables to Docker files which are necessary for the image to run.
And in this file  (scripts/scaffold/nginx/templates/default.conf.template) changed  script as compiler not recognising ssl certificate .


Fixed wrongly typed "cmesh" argument.

Closes https://github.com/DLR-AMR/T8code.jl/issues/47

@ranocha I think this is a problem on t8code side. The associated header file
https://github.com/DLR-AMR/t8code/blob/main/src/t8_geometry/t8_geometry_with_vertices.h
does not include t8_cmesh.h where t8_cmesh_t is defined.
Instead of throwing an error Clang.jl seems to default to a Cint instead.


Strata variable insted of ageGroup and sex

Would it be interesting to have a strata variable (as summariseCharacteristics) instead of specify ageGroup and sex?

@catalamarti

Or at least to have ageGroup & sex variable?

in which function?
so strata is nice if they can easily add stuff, which I dont hink it is the case @martaalcalde


New event: Approaching unknown shuttle

About the PR
The game adds a series of events united by a common idea - a ship with ghostly roles is approaching the station, and the station's sensors notice it.
Views of the approaching shuttles:

[x] Lone Nuke Operative: redesigned for the new system by a lone nuke ops. Gameplay is unchanged. arrives silently.
[x] Lost Cargo technical: A cargo shuttle from another station lost coordinates and arrived at our station. It's a regular cargo shuttle filled with random resources and 1 ghost role as a regular cargo technical. With a 10% chance this is a traitor.
[ ] An escape pod. A surviving escape pod from another station coming to us. It has 1 ghost role as a random crew member.
[ ] Pirate shuttle. A small pirate shuttle is approaching to plunder the station. Has 2-3 ghost pirate roles and some armament. (#24438)
[ ] The skeleton pirate shuttle! A poorer and stripped down version of the shuttle with no atmosphere with skeleton pirates!
[ ] A syndicate ship. A space cannon armed fighter with 2-3 syndicate agents. (Discussion needed, idea is alternative to SoloNuke)
[ ] Maybe some more ideas will come up

Why / Balance
making the cosmos more alive.
Increasing the number of interesting ghost roles.
Media
https://github.com/space-wizards/space-station-14/assets/96445749/c88fe31b-a167-43cc-a19b-0b8d990b1e7a

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog
:cl:

add: New events added to the game: Random ships with new ghost roles can now come to the station.

-vox traders
-vox "traders"

I think encountering unrelated/civilian ships would be cool, would make people more immersed in the idea that space is large. Heres some ideas to think about.
Interplanetary Pizza Delivery - A ship with 2 chef ghostroles, enough ingredients for like 12 pizzas, microwave and regent grinder, and 2 emergency pizza delivery crates.
Traveling Medical Ship - 2/3 ghost roles (doctors/parameds and maybe one engi?), some emergency med kits, body bags, med lockers, defib and cell charger, a cryo bed and a normal med bed and maybe a chemvend (probs too much)
Mercenary for hire ship - (finally, a use for merc gear other than drip) 1/3 Mercenary ghost roles, should all have AKM's with ammo, note explaining prices for service (for rp), EVA suits, probably some smoke/shrapnel nades. (probably not though because having armed people arrive to the station may create diet-nukie shitters.)

Also im up for mapping shuttles for this, done some cool ones in the past.

Any suggestions of shuttle ideas are welcome!

shuttle idea: lost syndie crew shuttle: regular 9-5 syndies working for some random syndie corporation that got very, very, lost. (they don't have tc)

A clown troupe (2 clowns and possibly 1 mime) with a performance and a small zoo with animals including a clown spider (possibly no hostile faction).

A clown troupe (2 clowns and possibly 1 mime) with a performance and a small zoo with animals including a clown spider (possibly no hostile faction).

one of those animals could be a caged urist in tider drip

Science ship with dangerous artifacts and actice/critted anoms
Damaged escape pod or derelict ships
Transport with cryosleeper ghost roles
Zombie pirate ship with meat tiles and space morb (Space Pirates and Zombies reference :trollface: )

Medieval shuttle with a jester and a knight

one of those animals could be a caged urist in tider drip

With recycled Spirate code? Rabid tider lol

I actually love this idea, the non-hostile ships would need to be much much much likely though to stop the ever-present threat of external forces. Maybe one of them could be an empty ship with signs of a struggle, and a dead body.

My problem with this atm is it's going to lag the server for several seconds midround which isn't good.

We don't notice outside of our shitty internet and server lagspikes :trollface:

Does solo nuker make the server lag?

Maybe instead of a syndicate ship... Add a syndicate warship with 1 commander and 2 operatives with a chance of about 5%?  It will look better than regular syndicate agents.
Or a ship of agitators for joining the syndicate. :trollface:

Rev endround ship (after 1 hour)

Может быть, вместо корабля синдиката... Добавить боевой корабль синдиката с 1 командиром и 2 оперативниками с шансом около 5%? Это будет выглядеть лучше, чем обычные агенты синдиката. Или корабль агитаторов за вступление в синдикат.:Тролль:

на тот момент это просто звучало как ядерное оружие, я думаю, что корабль синдиката не должен быть де-факто кораблём плохих парней, а вместо этого должен быть способом РП быть врагом корпорации без убийств, у меня были специальные посетители синдиката-администратора на Ньяно до его смерти, и это было так весело просто играть по такому сценарию

Maybe instead of a syndicate ship... Add a syndicate warship with 1 commander and 2 operatives with a chance of about 5%? It will look better than regular syndicate agents. Or a ship of agitators for joining the syndicate. :trollface:

that just sounds like nukies at that point, i think a syndicate ship shouldnt be the defacto bad guy ship but instead a way to RP being the enemy of the corperation without murderboning, ive had custom admin syndicate visitors on Nyano before it died and it was so fun just roleplaying with that scenario

All antags (those who are against NT) are validhunted...

Maybe instead of a syndicate ship... Add a syndicate warship with 1 commander and 2 operatives with a chance of about 5%? It will look better than regular syndicate agents. Or a ship of agitators for joining the syndicate. :trollface:

that just sounds like nukies at that point, i think a syndicate ship shouldnt be the defacto bad guy ship but instead a way to RP being the enemy of the corperation without murderboning, ive had custom admin syndicate visitors on Nyano before it died and it was so fun just roleplaying with that scenario

All antags (those who are against NT) are validhunted...

Maybe instead of a syndicate ship... Add a syndicate warship with 1 commander and 2 operatives with a chance of about 5%? It will look better than regular syndicate agents. Or a ship of agitators for joining the syndicate. :trollface:

that just sounds like nukies at that point, i think a syndicate ship shouldnt be the defacto bad guy ship but instead a way to RP being the enemy of the corperation without murderboning, ive had custom admin syndicate visitors on Nyano before it died and it was so fun just roleplaying with that scenario

All antags (those who are against NT) are validhunted...

i was thinking MRP, LRP is obviously bloodthristy

Does solo nuker make the server lag?

Yeah and I also don't like loneops code either.

Yes to all of these shuttles! Make the space station feel like an actual space station with traffic coming in at times.

shuttle taken over by hostile borgs?

Would mix nicely with the space-wizards/docs#129 ghost role - that role is meant to arrive more covertly, but I could imagine a shuttle full of Tourist party-bros who plan to raid the bar.

All antags (those who are against NT) are validhunted...

i was thinking MRP, LRP is obviously bloodthristy

trickle-down balance doesn't work for ss14 and we only have one MRP server, so I don't understand why things are balanced around MRP. the clear solution is to make leviathan MRP :trollface:

a ruined candy factory with gingerbread men :trollface:

Would mix nicely with the space-wizards/docs#129 ghost role - that role is meant to arrive more covertly, but I could imagine a shuttle full of Tourist party-bros who plan to raid the bar.
EDIT: Would also work excellently as the system to which the normal Tourist role arrive, as it supports silent shuttle arrivals. Very good!

Or a bunch of drunk ERT or marines on shore leave

Would mix nicely with the space-wizards/docs#129 ghost role - that role is meant to arrive more covertly, but I could imagine a shuttle full of Tourist party-bros who plan to raid the bar.
EDIT: Would also work excellently as the system to which the normal Tourist role arrive, as it supports silent shuttle arrivals. Very good!

Added traveling cuisin shuttle with 2 chef ghost roles

Maybe add an alternative to a solo operative - a crashed ERT shuttle?  With 1 person in a spacesuit waiting to be rescued before the oxygen runs out (adds wide scope for roleplay and interaction with the Central Commander)

Just added a smashed evacpod with a random head

I've decided not to add enemy shuttles to this pr yet. I'll add them separately, along with their discussion. Only friendly shuttles will be included in this pr.

Just added a smashed evacpod with a random head
Regular station heads are very boring... like a bureaucratic error, but worse.

a bureaucratic error doesn't give the role of ghosts. It prevents those who died from returning to the game

hi, im willing to volunteer mapping a trade ship if you're willing to implement it

hey, I think you can easily add it as a separate pr!  it will be really simple.  I don't want to inflate the size of this pr, and because of this there is a limitation that I cannot add other new mechanics.
so, you can wait and add new merchant shuttles, with some trading mechanics right away

hey, I think you can easily add it as a separate pr! it will be really simple. I don't want to inflate the size of this pr, and because of this there is a limitation that I cannot add other new mechanics.
so, you can wait and add new merchant shuttles, with some trading mechanics right away

oooh okay no worries

I think it would be nice to increase the weight of the event to 10, because it doesn't bring destruction to the station and contains a lot of variety.

How about a shuttle with only borg crew onboard, all crew dead except borgs basically.

only if the Borg can use the console to make the jump to the station map.

только если Борг сможет использовать консоль, чтобы перейти на карту станции.

only if the Borg can use the console to make the jump to the station map.

Assault borg?

only if the Borg can use the console to make the jump to the station map.

Assault borg?

only if the Borg can use the console to make the jump to the station map.

that totally feels like a wyci moment

only if the Borg can use the console to make the jump to the station map.

there was a PR merged that made them able to use shuttle consoles, though i haven't tested whether or how fully it works
so they should be able to, easy to test too

only if the Borg can use the console to make the jump to the station map.

there was a PR merged that made them able to use shuttle consoles, though i haven't tested whether or how fully it works so they should be able to, easy to test too

probably best to maybe make a module for it and spawn them with the module. Or have special borgs with this ability. I dont think it should be available to all borgs.

Gentlemen! Once this pr is merged, you will be able to add whatever shuttles you want, and you will have a lot more options than I do now because I am limited by the scope mechanic of adding shuttles. I don't add anything beyond these mechanics and simple shuttles for examples.

The tests failed, it's true, I don't know what to do about it yet.

Oh boy. I place to PR all of my admeme shuttle events. I like this very much.
I've already got stuff for cylon-style assault borgs,
A CentCom Texas ranger
Some random passenger shuttles.
Sounds like a very good feature.

Are the announcements customizable? Also might want to make the default announcement header say "Mass Scanner" instead of "Central Command" because Im not sure why centcom would tell you the radar got a ping.

Can we have an overview of the possible shuttle spawns? Like a SS of them

maybe pod shittle should have a gyro so you can at least dock it if you have the skill

maybe pod shittle should have a gyro so you can at least dock it if you have the skill to pilot an 1-thruster+gyro ship

thistbh

Where...?
Literally 1 empty tile for spawner in it

Where...? Literally 1 empty tile for spawner in it

the left empty lattice on the screenshot

Pretty sure the fire cabinet is the wrong orientation on that pod too.

Oh my god I love these ideas. I've got a few:
-Tour bus with 2-3 musician roles and instruments
-"Lost Expedition" salvage shuttle trashed, overgrown, filled with carps/xenos/dead salvagers
-Traveling animal shelter with several animals and 1 zookeeper
This is also a GREAT framework to give Pirates some love. A couple pirate roles in a dingy wooden pirate ship would be a blast.

clown shuttle should have bananium

clown shuttle should have bananium

might kill the clowns

clown shuttle should have bananium

might kill the clowns

Even better

Judging by the sloth's responses, this PR requires Engine PR. Can't get into that right now.

o7

@TheShuEd will this ever be revived?

yes, by @metalgearsloth

hope so cause the clown shuttle is fire.

will work on fixing this up rq

Should we add security shuttles to all stations? Security have shuttle weapons that used only by antags (Friendship Incident), because they didn't have they own shuttle, and with this PR i think they need it.

Should we add security shuttles to all stations? Security have shuttle weapons that used only by antags (Friendship Incident), because they didn't have they own shuttle, and with this PR i think they need it.

dont see this as relevant to the pr

okay, ready for review again
things added/changed from original:

LoadoutComponent now supports RoleLoadoutPrototype, so roles spawn with job gear properly (this can be used to fix setoutfit later)
UnknownShuttleRule replaced with existing LoadMapRule, support for grid preloading added to LoadMapRule

also allows for adding antag roles to these in the future very easily

grid preloading is now a singleton map created at first gamemap load rather than being tied to stations
unknown shuttle events split into separate rules to allow for diff announcements + separate weighting
ran FixGridAtmos on the shuttles since the cargo one didnt have air
all ghostroles added have at least short raffling

after weighting changes this is roughly the incidence of these rules as well as comparison to other rules (per 1k rounds):
[INFO] CON: > stationevent:simulate 1000 80 80 20
[INFO] CON: (GasLeak, 547),
(BluespaceArtifact, 538),
(AnomalySpawn, 536),
(SolarFlare, 530),
(IonStorm, 513),
(MimicVendorRule, 478),
(BreakerFlip, 477),
(MassHallucinations, 477),
(CockroachMigration, 407),
(ClosetSkeleton, 394),
(RandomSentience, 394),
(UnknownShuttleDisasterEvacPod, 392),
(KudzuGrowth, 390),
(GiftsMedical, 382),
(SleeperAgentsRule, 365),
(PowerGridCheck, 335),
(MouseMigration, 330),
(ClericalError, 325),
(GiftsJanitor, 307),
(GiftsPizzaPartySmall, 277),
(UnknownShuttleCargoLost, 270),
(MeteorSwarm, 269),
(VentClog, 256),
(UnknownShuttleTravelingCuisine, 245),
(BluespaceLocker, 243),
(SpiderSpawn, 242),
(SlimesSpawn, 240),
(NinjaSpawn, 232),
(BureaucraticError, 207),
(GiftsSpacingSupplies, 207),
(RevenantSpawn, 202),
(GiftsFireProtection, 188),
(GiftsEngineering, 185),
(DragonSpawn, 181),
(GiftsVendingRestock, 161),
(GiftsSecurityGuns, 159),
(LoneOpsSpawn, 148),
(UnknownShuttleHonki, 145),
(GiftsSecurityRiot, 141),
(UnknownShuttleSyndieEvacPod, 124),
(ImmovableRodSpawn, 110),
(GiftsPizzaPartyLarge, 103),
(ZombieOutbreak, 51),
(SpiderClownSpawn, 38)

test fail is real idk what is breaking that exactly

nvm fixed


Update pip

Can we update pip on the execute server to get rid of this message?
@jstac should we have this here anyway? It looks like joblib comes with anaconda

It does?  It's not in my local installation, which is quite recent...

It's listed on the Anaconda page: https://docs.anaconda.com/anaconda/packages/py3.7_linux-64/
Also seems to be installed on colab already:

I just reinstalled anaconda to test this and import joblib fails.
I guess for now we should continue the convention of supposing that users have plain vanilla anaconda.

The build server is currently showing

is this still an issue?

We should keep the pip install but suppress output.  Could someone please implement and then close this issue?

Also, please remove "start Jupyter and" as well as "from within a notebook"

@mmcky can this be closed?


[DO NOT MERGE] changed lang value

this is to test OPS syntax highlighting

ping @joelmartinez -- do you have any need for this?

...and, did we ever figure out the correct syntax to get the syntax highlighting!?

No, I don't have a need for it … however, It was actually brought up while I was at HQ as one of the items we reviewed on the backlog; so there's still some dev/work that needs to happen on the OPS/template side, but it's not forgotten!


Fixing couple of bugs in profiler

Description

Fixes issue where thread id can be hex, and the hex symbols are not recognized by chrome tracing tool. Using hash to convert it to an integer

The json file has some missing commas because of the first_flag condition. The reason for this seems lost at this point. Removing it bring back the comma necessary for a valid json. Verified that it does generate valid jsons by training a network.

Checklist
Essentials

[ ] Passed code style checking (make lint)
[x] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

See description

@marcoabreu Looks like this test test_gluon_model_zoo_gpu.test_training is failing. My PR should not have anything to do with that.
Have you seen this test fail before?

Yes it's flaky unfortunately. Please just push a new commit to trigger CI

Hi, the community has passed to vote about associating the code changes with JIRA<EMAIL_ADDRESS>We have updated the guidelines for contributors in https://cwiki.apache.org/confluence/display/MXNET/Development+Process, please ensure that you have created a JIRA at https://issues.apache.org/jira/projects/MXNET/issues/ to describe your work in this pull request and include the JIRA title in your PR as [MXNET-xxxx] your title where MXNET-xxxx is the JIRA id
Thanks!

@cjolivier01 ping


Rework package frames

main change: Frame is now just a []byte

I think package frames is much better and more fun to use now. I've also added tests.
There are still some changes required in cmd/sync/accelerometer.go and cmd/sync/sync.go – @dsonyy maybe clone this PR locally and fix them? Or we can just merge this and then you'll fix it on master.


⚠ UdeS website (prod) has degraded performance

In 34f7c70, UdeS website (prod) (https://www.usherbrooke.ca/) experienced degraded performance:

HTTP code: 200
Response time: 884 ms

Resolved: UdeS website (prod) performance has improved in f7caf16.


Feature Request: Support managing item attributes that have their own lifecycle

Summary
Add several resources so that the username, password, sections, tags, and fields of an item can have their own lifecycles.
Use cases

Generate a new password for an item every day. For example,

An automated process to change the SQL Server sa user every day at 11 am since it's a privileged account.  In this case, the lifecycle of the password is separate from that of the item that represents the specific host.

Permit partial updates to an item. For example

updating a token that was generated elsewhere for an existing item.
updating the URL of an item
updating the SSH keys of an item (when it was generated via automation) without changing other metadata
update any "secret" fields

Managing tags on an item

Proposed solution
Create a resource for fields that may have a different lifecycle.
resource "random_password" "example" {
  length           = 16
  special          = true
  override_special = "!#$%&*()-_=+[]{}<>:?"
}

resource "onepassword_item_password" "example" {
    item = "<itemuuid">
    password = random_password.example.result
}

Regenerate a new password for every item in the vault (maybe we had an "incident", and need to force passwords change everywhere; and other automation will read the new passwords and update systems).  This requires another data source, onepassword_items which doesn't exist today (according to documentation)
data "onepassword_items" "example" {
    vault = "uuid"
}

resource "random_password" "example" {
  for_each = data.onepassword_items.example.uuids
  length           = 16
  special          = true
  override_special = "!#$%&*()-_=+[]{}<>:?"
}

resource "onepassword_item_password" "example" {
    for_each = data.onepassword_items.example.uuids
    item = each.key
    password = random_password.example[each.key].result
}

We want to "tag" items to indicate them so other automation can discover them later. For example, in AWS, someone may tag a system with a "restricted" classification (it contains HR data or whatever), and we need to sync that fact with an item in 1Password so that a nightly task can change the root password more frequently.
data "aws_instances" "example" {
  instance_tags = {
    Classification = "restricted"
  }
}

data "aws_instance" "example" {
  for_each = toset(data.aws_instances.example.ids)
  instance_id = each.key
}

resource "onepassword_item_tag" "example" {
    for_each = toset(data.aws_instances.example.ids)
    item    = each.key
    value  = "restricted"
}

Is there a workaround to accomplish this today?

1Password CLI - lacks state management, authentication challenges etc.
Write a bespoke program - more overhead for 1Password customer

References & Prior Work

ec2_tag - heed the warning about resources (e.g. tags) being defined on the parent (aws_vpc), or as a separate resource.
Update a subset of item attributes - seems to make it possible to PATCH an item, and thus update a single field or three.

Thanks for raising!👍 We'll consider this for future releases!

Partial updates to existing items would be very useful. E.g. we have a "secrets" item per project. It might have things like db credentials, api keys to different integrations and what not.
We create databases and users with Terraform/OpenTofu, so it would be nice to be able to add just db creds to existing item without interfering with other data in the item.


work towards a 4.x release

add DataProvider interface
implement Iterator, Countable

It looks like \Iterator has a bug on all of reset(), current() where it returns the current key before the operation, rather than the key after it.
You could use \IteratorAggregate which doesn't have this issue, like:
    public function getIterator()
    {
        $data = [];

        foreach ($this->countries as $country) {
            $data[$country[$this->iteratorKey]] = $country;
        }

        return new \ArrayIterator($data);
    }

That doesn't pass your tests...but it looks like you're just using the iterator as a simple array like object, so it might be made to work.


Update Globals “theme”

Automatically generated by Netlify CMS

👷 Deploy Preview for tech-works-for-us processing.

Name
Link

🔨 Latest commit
602683f0e9f3d557ea429bdf96f8db1bf7ebbba8

🔍 Latest deploy log
https://app.netlify.com/sites/tech-works-for-us/deploys/6376b7bdcc27c30008a63d75


Material-UI broken with external React

Problem description
I'm working on a Biomedical project that uses material-ui for many components, some of which are shipped as separate npm modules. We have made React an external in webpack:
  externals: {
    "react":"React",
    "react-dom":"ReactDOM",
    'react-addons-transition-group': 'var React.addons.TransitionGroup',
    'react-addons-pure-render-mixin': 'var React.addons.PureRenderMixin',
    'react-addons-create-fragment': 'var React.addons.createFragment',
    'react-addons-update': 'var React.addons.update'
  },

This breaks React-Tap-Event-Plugin which is looking for specific React subfiles, for example:
ERROR in ./~/react-tap-event-plugin/src/injectTapEventPlugin.js
Module not found: Error: Cannot resolve module 'react/lib/EventPluginHub' in /root/Code/src/NDExValetUser/node_modules/react-tap-event-plugin/src
 @ ./~/react-tap-event-plugin/src/injectTapEventPlugin.js 7:2-37

We've spent some time looking for a solution to this problem, and we desperately need a fix for this. This project is used by several cancer research laboratories who depend on our timely releases.

Material-UI: 0.15.2
React: 15.0.2
React-Tap-Event-Plugin: 1.0
Browser: Chrome

@ericsage Check out the setup in this pull request https://github.com/callemall/material-ui/pull/4342

@nathanmarks Yes, this would fix the problem, I would love to see this merged into a release as soon as possible.

@ericsage Can you just use the tap event plugin the same way until then? O

@nathanmarks @ericsage What did you do in this case? The references issue does not look like it will be merge soon :disappointed:

@nathanmarks @ericsage @ricardopolo also having the same issue. did you find a fix for this? if you bump down the versions for those packages do you still see problems?

So I've come back to this because our code base broke again because of the tap event plugin. The new release of React (15.4.0) has this to say about tap event using the React internal APIS

If you only use the official and documented React APIs you won't need to change anything in your application.
However, there is a possibility that you imported private APIs from react/lib/*, or that a package you rely on might use them. We would like to remind you that this was never supported, and that your apps should not rely on internal APIs. The React internals will keep changing as we work to make React better.

The plugin says it only supports up to 15.4.0, and will break because of the above reason when used with 15.4.0. This is a serious bug that needs to be fixed ASAP, and tap event plugin needs to be moved inside of material-ui so that we can stop suffering from this hack.

I got this trace (related to the above comment) when I tried updating from react 15.3 to 15.4:
1:03:18 PM web.1 |  Error: Cannot find module 'react/lib/ReactDOM'
1:03:18 PM web.1 |      at Function.Module._resolveFilename (module.js:469:15)
1:03:18 PM web.1 |      at Function.Module._load (module.js:417:25)
1:03:18 PM web.1 |      at Module.require (module.js:497:17)
1:03:18 PM web.1 |      at require (internal/module.js:20:19)
1:03:18 PM web.1 |      at Object.<anonymous> (/Users/oliviercolot/dev/hazaway/node_modules/react-dom/index.js:3:18)
1:03:18 PM web.1 |      at Module._compile (module.js:570:32)
1:03:18 PM web.1 |      at Module._extensions..js (module.js:579:10)
1:03:18 PM web.1 |      at Object.require.extensions.(anonymous function) [as .js] (/Users/oliviercolot/dev/hazaway/node_modules/babel-register/lib/node.js:152:7)
1:03:18 PM web.1 |      at Module.load (module.js:487:32)
1:03:18 PM web.1 |      at tryModuleLoad (module.js:446:12)
1:03:18 PM web.1 |      at Function.Module._load (module.js:438:3)
1:03:18 PM web.1 |      at Module.require (module.js:497:17)
1:03:18 PM web.1 |      at require (internal/module.js:20:19)
1:03:18 PM web.1 |      at Object.<anonymous> (/Users/oliviercolot/dev/hazaway/node_modules/material-ui/internal/FocusRipple.js:35:17)
1:03:18 PM web.1 |      at Module._compile (module.js:570:32)
1:03:18 PM web.1 |      at Module._extensions..js (module.js:579:10)
1:03:18 PM web.1 |      at Object.require.extensions.(anonymous function) [as .js] (/Users/oliviercolot/dev/hazaway/node_modules/babel-register/lib/node.js:152:7)

@ericsage @ocolot I believe your issue is related to an update with react breaking react-tap-event-plugin. see this issue. the PR was merged in so as long as you use "react-tap-event-plugin": "git+https://github.com/zilverline/react-tap-event-plugin.git#master" you should be good to go. Things are working for me and I'm using the following set up
"react": "^15.4.0",
"react-dom": "^15.4.0",
"material-ui": "^0.15.4",
"react-tap-event-plugin": "git+https://github.com/zilverline/react-tap-event-plugin.git#master",

@samrispaud thx!
It's now working with the following versions:
"react": "^15.4.1",
"react-dom": "^15.4.1",
"material-ui": "^0.16.4",
"react-tap-event-plugin": "^2.0.1",

@codingneat look at this.... is what we need!! 😄
Would you please schedule to check if this work? Thanks!

@ocolot
I use the same versions as you but still I get the error Uncaught Error: Cannot find module 'react-dom/lib/ReactPerf' from 'react/lib/ReactAddonsDOMDependencies.js'
How to fix this?

@radik909 Did you get it working? I just came across this as installing the material-ui package followed by the react-tap-event-plugin (after I realized it was required, getting started docs are a bit inconsistent/unclear to that regard), however, after uninstalling the packages @ocolot mentioned, then installing those exact versions, I'm off to the races.

@gotdibbs Sorry for the late reply. Nope. I didn't get it working, so just dumped the versions.

We have removed the react-tap-event-plugin dependency on the v1-beta branch. People can rely on the onClick callback instead. We can close :).