include AddFile() in TemplateSignatureRequest

TemplateSignatureRequest should include the ability to add appended files (or file_urls).

I need this feature, will implement today

Hi @radhack and @quanlee, thanks for letting us know. Our team will look into this and create an internal ticket to work on this.


Can't rename request from Bruno Windows on WSL .bru files

I have checked the following:

[X] I use the newest version of bruno.
[X] I've searched existing issues and found nothing related to my issue.

Describe the bug
I use Bruno Windows on my project that is store inside WSL. I code from VS Code Windows that is remotely connected to my WSL.
I get this error while trying to modify a request name.
Error invoking remote method 'renderer:rename-item': Error: ENOENT: no such file or directory, open '/wsl.localhost/Ubuntu/home/mat/documents/odoo-dev-env/addons/ERASED-odoo-addons/API/DEMO AUTH.bru'

.bru file to reproduce the bug
meta {
  name: AUTH
  type: http
  seq: 7
}

post {
  url: {{BASE_URL}}/auth
  body: json
  auth: none
}

headers {
  Content-Type: application/json
}

body:json {
  {
    "params": {
      "login": "demo",
      "password": "demo",
      "db": "{{DB}}"
    }
  }
}

Screenshots/Live demo link

EDIT: Mea culpa, I just found out another person had the same issue recently : #2269
As a current workaround, I modify the .bru file from VS Code, but it is less than optimal. Saving cause no issues, creating new request as well, so I guess we can write inside the file without issue but can't rename a .bru file from Bruno.

Just merged the PR for the fix.
This will go out in v1.26.2 release


feat(protocol-designer): correct step count in create file wizard

closes RAUT-775
Overview
Now that a staging area slot tile was created for the Flex, the step count at the top of the create file wizard was incorrect for the Ot-2. This PR fixes that as well as fixing the go back button from the last page of the wizard.
NOTE: the total step counts stay as 7 for Flex and 6 for OT-2 regardless of if you end up skipping steps (if you don't add a 2nd pipette or if you add the 96-channel). I opted for this because a user will be aware of the total steps possible for the certain robot. Please let me know if you have any questions/concerns about this though!
Test Plan

turn on the deck modification & 96-channel feature flags. Create a Flex protocol and go thorugh the file wizard, make sure the step count work as expected for a total of 7 steps. See that if you add a 96-channel or don't add a 2nd pipette that the wizard skips to the appropriate page but the total step count remains at 7. Try to go back on the Additional Items (last page) and see that it goes to the appropriate page depending on if you have a 2nd pipette or not.

now follow those steps for an Ot-2 protocol. See that the total number of steps is 6 and that the Staging Area tile is skipped. Try the variations of adding a 2nd pipette/not adding a 2nd pipette. Make sure the step counts work as expected.

now turn off the deck modification feature flag and create a Flex protocol, see that it skips the Staging Area tile.

Changelog

add goback logic for the ModulesAndOtherTile
add logic for wizard step and total step count
add test coverage
fix the console warning for the flexMap component by adding keys to the children

Review requests
see test plan
Risk assessment
low

probably use overflow-y: auto; would solve this.

Question about the last case in the test plan
The wizard skips staging area as expected but step jumps up from 4/7 to 7/7.
Is that an expected behavior?

Question about the last case in the test plan The wizard skips staging area as expected but step jumps up from 4/7 to 7/7. Is that an expected behavior?

@koji ya that happens if you select a 96-channel because you skip the 2nd pipette type and 2nd pipette tip tiles and the staging area tile. So it jumps from step 4 to 7. This might be confusing without the feature flag but hoping 7.1 removes the ff 😅


Python script to calculate GPA for any semester or overall in college

Developer Checklist

[ ] Adhered to the guidelines outlined in the README & Contributing file.
[ ] Maintained the correct directory structure (e.g., ProjectName/...yourfiles).
[ ] Please ensure to include a README file for enhanced project clarity.
[ ] Starred ⭐ the repository (optional).

Summary
Please provide a brief summary here.
Screenshot
Attach any relevant screenshots or GIFs here.
Live Project Link
Include a link to the live project here.

Hi @gundeep77 ,
I wanted to check in regarding the feedback provided in the last review. Do you have any updates on the changes? I’m looking forward to your progress!

Hi @gundeep77 ,
I wanted to check in regarding the feedback provided in the last review. Do you have any updates on the changes? I’m looking forward to your progress!

Hey Aman,
I am really sorry man!
Got too busy with work. I wont be continuing this.
You can reject my PR
Sorry once again!

It's okay @gundeep77 , thanks for the update.


task(ui): Improve file attachment UI by adding a loading indicator

Task:

When sending a file, we should display a progress bar under the input bar representing each file that is being uploaded. (put progress bar with name on the bottom left under the bar and the progress percent / elapsed time on the right under the bar) We should move the preview of the file to above the chatbar like discord and other apps do. This isn't loading stuff but this is something we should (doesn't have to be you) work on. I can help with styling this. I just am worried i'll hit a bunch of issues trying to get the functionality, though it should be quite simple.

Screenshot:

linking to keep track of it:
https://github.com/Satellite-im/Warp/issues/246

still valid


[Enhancement]: More configurable logs

Description
Currently if we want to update the logs' groups info such as sink, log level and so on we need to update core/log/configurator.cpp file.
Instead we should be able to just provide this config via the yaml file and command line interface
Motivation
More convenient logging management. Ultimate goal is to configure logs so that we can have different log levels for std output and file sinks
Additional context
No response
Are you planning to do it yourself in a pull request ?
No

Implemented in #2226


v8worker2 won't load modules with specifiers already used

If modules imports files using the same specifier -- say import * from './foo', from files in different directories -- v8worker2 will assume that the first import satisfies any subsequent imports, because it caches modules using the specifier (rather than, e.g., a canonical file path, which it doesn't have).
It would be nice to be able to fix this within the jk code, but I suspect it will require changes to v8worker2. jk could, for example, keep its own record of which file paths have been loaded, and skip any that are already present -- but v8worker2 will look for the module using the specifier afterward, and won't find it. So I think this needs a change to the module loading protocol, so that the resolver (in Go) returns a canonical specifier to v8worker2, somehow.

The flip side of this issue is that the same module loaded with two different names will be instantiated twice. This is especially a problem for std (std_deferred.js), which can be loaded either as 'std' or as '@jkcfg/std'. (So note to self: the static module importer in https://github.com/jkcfg/v8worker2/pull/2 should make sure it returns a canonical name for 'std').

Fixed by jkcfg/v8worker2#2 and #138


Audio gets scrambled when using multiple workers

Hello revideo,
I noticed that with my use case with multiple audios, the audio starts overlapping randomly when I render with multiple workers. I would really like to use multiple workers to speed up my workflow. I can provide an example to reproduce if you want.

@Pita Hey, I'd love to take a look at this. Can you give me an example?

Closing this due to inactivity. We also did a lot of work around audio processing so I'm assuming this is fixed. If not, feel free to reopen with reproduction steps :)

your posts are worth reading, though we are not following each other, please kindly follow back, I want us to be friends and you can share some of your thoughtful ideas with me. Thanks

I just tried it again using the latest revideo, somehow now the audio gets much louder when using multiple workers and clips and is distorted. It appears that it overlayed the audio multiple times.
I can show you tomorrow in person


ImportError: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/sotamak1r/anaconda3/envs/py38/lib/python3.8/site-packages/dearpygui/_dearpygui.so)

Description
I ran the command below:
python main.py --text "a hamburger" --workspace trial -O --gui
and the whole error is:
File "main.py", line 8, in
from nerf.gui import NeRFGUI
File "/nvme/chenjunyi/dreamfusion/stable-dreamfusion/nerf/gui.py", line 4, in
import dearpygui.dearpygui as dpg
File "/nvme/chenjunyi/anaconda3/envs/dreamfusion/lib/python3.8/site-packages/dearpygui/dearpygui.py", line 22, in
import dearpygui._dearpygui as internal_dpg
ImportError: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/chenjunyi/anaconda3/envs/py38/lib/python3.8/site-packages/dearpygui/_dearpygui.so)
please help me!
Steps to Reproduce

python main.py --text "a hamburger" --workspace trial -O --gui

Expected Behavior
please help me solve this error
Environment
dearpygui Version: 1.8.0
Operating System: CentOS Linux 7 (Core)

@ashawkey
Thanks for your answer! I tried to use docker, but there is a new error:
Traceback (most recent call last):   File "main.py", line 146, in <module>     trainer.train(train_loader, valid_loader, max_epoch)   File "/app/stable-dreamfusion/nerf/utils.py", line 456, in train     self.train_one_epoch(train_loader)   File "/app/stable-dreamfusion/nerf/utils.py", line 668, in train_one_epoch     self.model.update_extra_state()   File "/usr/local/lib/python3.8/dist-packages/torch/autograd/grad_mode.py", line 27, in decorate_context     return func(*args, **kwargs)   File "/app/stable-dreamfusion/nerf/renderer.py", line 586, in update_extra_state     sigmas = self.density(cas_xyzs)['sigma'].reshape(-1).detach()   File "/app/stable-dreamfusion/nerf/network_grid.py", line 150, in density     sigma, albedo = self.common_forward(x)   File "/app/stable-dreamfusion/nerf/network_grid.py", line 80, in common_forward     h = self.encoder(x, bound=self.bound)   File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1130, in _call_impl     return forward_call(*input, **kwargs)   File "/app/stable-dreamfusion/gridencoder/grid.py", line 149, in forward     outputs = grid_encode(inputs, self.embeddings, self.offsets, self.per_level_scale, self.base_resolution, inputs.requires_grad, self.gridtype_id, self.align_corners)   File "/usr/local/lib/python3.8/dist-packages/torch/cuda/amp/autocast_mode.py", line 110, in decorate_fwd     return fwd(*args, **kwargs)   File "/app/stable-dreamfusion/gridencoder/grid.py", line 52, in forward     outputs = outputs.permute(1, 0, 2).reshape(B, L * C) RuntimeError: CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
The resolvement on the Internet is the dismatch between GPU and cuda. However this cannot solve my problem. My GPU is:
NVIDIA A100-SXM4-80GB. Have you ever meet this problem? Please help me.


Added functionality for Terra dApps: SPEC and APOLLO

Added functionality for:

SPEC staking / withdraws
APOLLO community farming event claims.

Applied a few changes to PR into separate PR: https://github.com/hodgerpodger/staketaxcsv/pull/100
Merged.
Thanks!


Part 3: feature/air pressure measurement cluster

Problem
The matter project has only a pressure measurement cluster which is not suitable for air pressure. The value range is too big. To solve this we introduce a cluster which is specific to air pressure measurement.
Change overview

added support for zap tool
added emberAfAirPressureMeasurementClusterServerInitCallback support
added air pressure measurement cluster support to chip-device-clt
added air-pressure-measurement-server.cpp impl.

Testing
Tested on custom accessory with air pressure sensor. Test setup was similar to TE2.
HW Platform
Nordic nRF52840
Notes
Related PRs

https://github.com/project-chip/connectedhomeip/pull/7026
https://github.com/project-chip/connectedhomeip/pull/7028
https://github.com/project-chip/connectedhomeip/pull/7032

This sounds like a spec issue, no?  That is, the new cluster would need to be added to the spec.
@CamWms in case there is an existing ZCL cluster that is appropriate here.

@bzbarsky-apple It's not only the value range of pressure measurement. We have also added altitude to the air pressure measurement cluster to correlate the air pressure according to the height above / below see level.

I think that we need to keep the Pressure Measurement quite simple and generic. The client that gets pressure and altitude can do the calculation for the application solution, not the sensor. For pressure measurement we should use the pattern of the Concentration Measurement cluster (ZCL8) where we use the same cluster, but use Alias cluster IDs that add semantics to measurement: Air Pressure, Water Pressure, etc.

The min / max values where intended to indicate the possible value range of the atmospheric pressure.

Right, I understand the intent.  I am asking:

What are the deployment situations expected for this cluster?
Do these values make sense given those deployment situations?

So I would e.g. suggest 8000 for min and 12000 for max.

Would you expect these sensors to be used in airplane cabins?  If so, would you expect their altitude to be changed as the plane's pressurization setpoint changes, or would you expect them to read the "actual" pressure (which I understand can be below 800 millibars)?

I don't know how this could be related to submersible applications? Could you provide an example.

Air pressure sensor in a submarine, say.  Which are generally kept at 1 atmosphere or so, but I'm not sure how much variation is within spec there.

We will withdraw the current air pressure measurement cluster for TE3, due to time constrains and some concerns state here. We will consider the pressure measurement cluster as suggested by @CamWms and see if this will fit our needs.


Vitest v24+ appears to break some default exports

Describe the bug
While upgrading to Vite 4 I also needed to upgrade vitest which was at 0.23.4.
Upgrading to any version of 0.24.x appears to break imports of modules that use a default export. I personally encountered this with react-dropzone and react-router-navigation-prompt.
Reproduction
This stackblitz (https://stackblitz.com/edit/github-w9fjy7-juwvvx) has vitest at 0.23.4 and it renders the dropzone.
This one (https://stackblitz.com/edit/github-w9fjy7-9uzxfy) fails because the import from react-dropzone ends up being an object, not the functional component. The only different is vitest at 0.24.4
I am not an expert in all the clashes with different module types etc. but the changelog doesn't seem to indicate that this would be an issue.
System Info
System:
    OS: macOS 12.6.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.17 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
  Browsers:
    Chrome: 108.0.5359.98
    Safari: 16.2
  npmPackages:
    @vitejs/plugin-react: ^3.0.0 => 3.0.0
    vite: ^4.0.0 => 4.0.1
    vitest: ^0.24.4 => 0.24.4

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

I'm seeing this with named exports. Using 0.23.4 solves the issue.


Extra validation

Added validation for parameters, and for reaching max resources on a template. Fixes #634

Nice! Thanks!


pyliftover won't map some locations on chr1 from hg38 to hg19

pyliftover returns an empty list when trying to map these two locations on chr1 from hg38 to hg19:

lo.convert_coordinate('chr1', 120342125)
[]
lo.convert_coordinate('chr1', 145215897)
[]
However, these map OK on the web tool: https://genome.ucsc.edu/cgi-bin/hgLiftOver
chr1:120342125-120342125 -> chr1:144521182-144521182
chr1:145215897-145215897 -> chr1:144340784-144340784

Here are some more examples:
lo.convert_coordinate(chr14, 19130878) -> []
lo.convert_coordinate(chr21, 8260971) -> []
lo.convert_coordinate(chr10, 39011975) -> []
lo.convert_coordinate(chr5, 73447472) -> []
lo.convert_coordinate(chr21, 8397975) -> []
lo.convert_coordinate(chr9, 41679540) -> []


CodeCopy plugin doesn't work on Firefox in new portal workshop platform

The CodeCopy plugin doesn't work on Firefox in new portal workshop platform.
The default browser was Chromium on old platform.  But it looks like CodeCopy is supported on Firefox too.
https://addons.mozilla.org/en-US/firefox/addon/codecopy/

restart Firefox if needed. Also, you can go to Firefox extension and verify the extension is enabled (and then restart the browser again)

This is no longer an issue.


Swap button

There should be a button on the right-hand side that allows the user to swap the contents of the input/output boxes, because it's easy to click the link on the bottom, which effectively swaps the content up one way.

No longer need a swap button -- I disabled clicking the link (can still click-drag and right-click-copy).


Update navicat-for-mysql to 12.0.2

After making all changes to the cask:

[x] `brew cask audit --download {{cask_file}}` is error-free.
[x] `brew cask style --fix {{cask_file}}` left no offenses.
[x] The commit message includes the cask’s name and version.

Thank you for the contribution. It was merged directly as 28c6ef546cbaffdca59c8b988fd5b754041e9cea. Your contribution is still credited to you.


Bugfix deviceTZ undefined case error

Upgrading to version 0.0.14 caused the format function to malfunction.
I believe the issue lies within this piece of code.
src/format.ts
  // We need to apply an offset to the date so that it can be formatted as UTC.
  tz ??= deviceTZ()
  if (tz.toLowerCase() !== "utc") {
    inputDateOrOptions = removeOffset(
      inputDateOrOptions,
      offset(inputDateOrOptions, tz, "utc")
    )
  }

The content of deviceTZ is obtained from Intl.DateTimeFormat().resolvedOptions().timeZone, and this function requires the TZ environment variable to be set when executed in the local environment. If TZ is not set, deviceTZ will return undefined, causing tz to also become undefined, which results in an error when attempting to use tz.toLowerCase().
Also, if deviceTZ is undefined, tz needs to be specified in the FormatOptions, which means it can only be used in the FormatOptions pattern.
I think it would be beneficial to include a branching condition for cases where deviceTZ is undefined but tz is not set to UTC.

It sounds like you were working in a Docker container environment for development (VSCode's devcontainer).
I see, the issue was that you didn't specify the TZ environment variable in the Dockerfile. This became problematic when upgrading to version 0.0.14 because the code depended on the TZ environment variable, which wasn't set. This realization occurred because the code was working fine in version 0.0.13, but started failing after the upgrade to 0.0.14 due to the dependency on TZ.

If it's necessary to register the TZ environment variable in advance to use tempo, I thought it would be good to write about it in the documentation!


Revert "Automated pvotal update"

👋 terraform-provider-k3d maintainers! First contribution time, please bear with me 😄
It seems to me go.mod/go.sum were inadvertedly removed from this project, indeed, it does not build any longer.
This PR reverts the removing commit, in the hope that will be useful for future contributions.
HTH!

It is indeed problematic. Thanks for pointing that out!

Shamelessly plugging my own PR :smile:
https://github.com/pvotal-tech/terraform-provider-k3d/pull/8
While investigating why tests were failing, I figured it would be a good thing to bump all the dated dependencies.
I'll be closing your PR in favor of the other one.
If for some reason you need to locally build the golang 1.16 version, I'd recommend to target the last working commit


Rethink declarations of interfaces

Suggestion from:

https://gophers.slack.com/archives/C02A3DRK6/p1723727810004509
https://gophers.slack.com/archives/C02A3DRK6/p1723727836654709
https://gophers.slack.com/archives/C02A3DRK6/p1723727877036769

Closing with #7.


Elaborate over TODO file and API changes

I see that a couple of the checkboxes in the TODO section are not checked even though they are implemented. (e.g https://github.com/octokit/go-octokit/blame/master/TODO.md#L82-L87 and https://github.com/octokit/go-octokit/blob/master/octokit/issue_comments.go)
Also, with the discussion on https://github.com/octokit/go-octokit/issues/119 and the PR https://github.com/octokit/go-octokit/pull/120
Are you looking for PRs to close unfinished checks on the TODO with the current API approach or with the new approach? I'd be glad to tackle some of them and I do like the proposal for the new API.

I see that a couple of the checkboxes in the TODO section are not checked even though they are implemented.

Oops, we should check those off.

Are you looking for PRs to close unfinished checks on the TODO with the current API approach or with the new approach?

If you're up for it, let's try the new proposal. Looking forward to your patch.


Update bokeh dependency

from dependencies.txt:

pyviz/label/earthsim::bokeh=1.0.0            # Update when available from conda-forge

pyviz/label/earthsim and pyviz channel in general is still on 1.0.0 but bokeh and conda-forge channels have moved onto 1.0.3.
Just a note: If the env is built with a forced dependency on 1.0.0 (given the above), then geoviews is installed via python setup.py develop from master, the geoviews requirements will force a pip install of the newer version of Bokeh which results in the conda env have two different Bokeh versions - 1.0.0 conda installed and 1.0.3 pip installed from pypi.

Closing.


Update output error message (more clear output)

This PR updates output message to make it more clear and easy to read.
BEFORE:

AFTER:

Other changes

ci: update project settings configuration (pyproject.toml)

Related

https://github.com/espressif/conventional-precommit-linter/issues/8

@hfudev PTAL


vendor: Update virtcontainers vendoring

This commit updates virtcontainers vendoring relying on version 0.7.0.

Coverage remained the same at 70.614% when pulling 8254e63e60da4036adaaf1385c26bb2fff737be9 on sboeuf/update_virtcontainers_vendoring into 97333f2389aa6f703fc8322a2d619129845a0222 on master.

lgtm

@sboeuf  that the go dep you have doesn't seem to do pruning (remove all the packages the proxy doesn't need from the vendoring directory). We always end up with the whole world but only depend on the hyperstart package (ciao-vendor was doing things right in that regard).
Good news though, it seems that pruning is now in go dep: https://github.com/golang/dep/blob/master/cmd/dep/prune.go. Worth trying to update your go dep?

@dlespiau let me try this right now.

@dlespiau go dep changed the way they manage the repo. It now expects a Gopkg.lock and a Gopkg.toml. This means we have to use dep init once again.
Does that sound okay to reset the vendoring ?

Sure, that's the downside of using an unstable tool, we were warned.

Sorry I thought it was more "stable" than this...

My bad, actually we can dep -update which adds new files and then we can prune. But note that prune does not remove the unused go files unfortunately.


In the genstep code add 1000*ns times the EventID.

Hence we code the eventID into the ray/hit time. This enables running multiple G4Events in a single Opticks simulation call.
Tested with 1000 events for now, works.

How did you test this? Can we add the test to this repository?


Typescript cannot support paths in other local projects referenced in the package

🔍 Search Terms
I have a project A, which has path: "@" configured in it. Then this alais is used in this project. Another project B references the code in project A, and it prompts
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@/syntax'
How can I solve this situation?
✅ Viability Checklist

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
[x] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

⭐ Suggestion
none
📃 Motivating Example
none
💻 Use Cases
none

who "prompts Error [ERR_MODULE_NOT_FOUND]"? the typescript compiler, or the runtime?

who "prompts Error [ERR_MODULE_NOT_FOUND]"? the typescript compiler, or the runtime?

../../testa/src/TestA.ts:1:20 - error TS2307: Cannot find module<EMAIL_ADDRESS>or its corresponding type declarations.
1 import TestAA from<EMAIL_ADDRESS>~~~~~~~~~~~~~
TestB.ts:1:19 - error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
1 import TestA from "testa/src/TestA.ts";
When I compile ts files using tsc I get the error

It looks like this is a question rather than a bug report. This issue tracker is for tracking bugs and active work on TypeScript itself, rather than a general forum for programmers using TypeScript to get help or ask questions.
You can ask questions on sites like Stack Overflow. We are not able to provide one-on-one support on the issue tracker. Please read the issue template carefully - it has important information on what kinds of reports can be acted on here, as well as links to useful TypeScript resources. Thanks!


Bevy 0.11

Currently blocked waiting for bevy-inspector-egui to be updated for Bevy 0.11

Seems like that bevy-inspector-egui update has been merged!


Existing histogram slices are broken

Testing what's on master, I noticed that all of our existing histogram slices are broken with the error message Must have at least one numeric column specified. This error shows up when there's no data in all_columns_x (Numeric Columns). In the params they all have all_columns_x set as a string. It looks like in the PR here this was changed to a multi field where the value would be a list.
@mistercrunch would changing a SelectControl to multi: true break existing slices? Do we need a db migration for this or is there some other way we can catch this?

[x] I have checked the superset logs for python stacktraces and included it here as text if any
[x] I have reproduced the issue with at least the latest released version of superset
[x] I have checked the issue tracker for the same issue and I haven't found one similar

Expected results
Existing histograms load correctly
Actual results
Existing histograms load with the error
Steps to reproduce
Load a histogram created before this PR was introduced.
@mistercrunch @ArielStv

@mistercrunch thoughts on this? do we need a db migration to handle this case where a single value select was changed to multi: true?

I should have caught this in code review. So either we do a db migration or do some magic around SelectControl that would wrap value if it's not an array and multi: true


Pass bisection tool using pass_instrument infrastructure

This tool allows the user to bisect a run of passes via the tvm pass instrumentation infrastructure.
Invocation is:
from tvm.relay.debug import PassBisection
with tvm.transform.PassContext(instruments=[PassBisection(limit=N)]):
        ...

In addition to the python debugging tool, an additional member has been added to PassInfoNode in order to facilitate prioritizing passes that MUST run in order for Relay/TIR to compile. That is, passes marked with the new run_always flag will ALWAYS run, regardless of the limit. Below is a list of the passes that were marked with this new attribute.
["sequential",
"InferType",
"LowerTE",
"LowerTensorExpr",
"FuseOps",
"PlanDevices",
"PlanDevicesCore",
"BindTarget",
"Filter",
"FoldConstant",
"DynamicToStatic",
"SimplifyInference",
"tir.LowerIntrin",
"tir.LowerTVMBuiltin",
"tir.Simplify",
"tir.MakePackedAPI",
"tir.VectorizeLoop",
"tir.StorageFlatten",
"tir.StorageFlattener",
"tir.StorageFlatten_impl",
"tir.BufferShapeLegalize",
"tir.BufferStrideLegalize"]
These passes were arrived at via trial and error compiling a resnet50 caffe model until it ran with limit=1 (only the first pass runs). It may  not be exhaustive.

Personally I've found just letting compilation run and looking at the debug dump (eg using TVM_LOG_DEBUG="DEFAULT=1") is enough to help me find where things have gone off the rails. However I can see having a hard stop would also be valuable.
The required vs optional distinction is probably going to be fragile, especially since passes often build on each other. But tackling that issue is a design problem on its own (eg can me label passes with 'requires' and have a pass list validation or completion step to 'resolve interpass dependencies'). Would you consider dumbing down this instrument to simply count passes and not try to take on the opt vs req distinction?
Thanks!

That fragility is something I was worried about as well. I think it makes sense to tackle that in a separate PR. I'll go ahead and limit this code to just printing debug info.

@mbs-octoml I went ahead and stripped the instrumentation down to just print debug info..

@joshherr-quic @mbs-octoml can you update this one, CI is red, thanks!

cc @mbs-octoml


500 error when providing app_key without app_id

When apicast is set up to authenticate with the keypair of app_id and app_key, providing the app_key without the app_id causes a lua abort and returns a 500 error to client.
Version
CentOS Linux release 7.3.1611 (Core)
nginx version: openresty/<IP_ADDRESS>
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
built with OpenSSL 1.0.2k  26 Jan 2017
TLS SNI support enabled
(configure arguments removed but will be supplied upon request)
Steps To Reproduce
curl -v https://api.example.com/api/v1/abc/def/ghi/5?app_key=abcdefghijklmnopqrstuvwxyz
Current Result
500 Internal Server Error
Expected Result
403 Authentication failed or 403 Authentication parameters missing
Additional Information
Relevant log lines:
2017/07/24 22:00:09 [error] 9534#9534: *221532 lua entry thread aborted: runtime error: /usr/local/apicast-3.0.0/apicast/src/proxy.lua:347: attempt to use a non-string key in the "args" option table
stack traceback:
coroutine 0:
[C]: in function 'encode_args'
/usr/local/apicast-3.0.0/apicast/src/proxy.lua:347: in function 'access'
/usr/local/apicast-3.0.0/apicast/src/apicast.lua:103: in function 'access'
access_by_lua(apicast.conf:77):1: in function <access_by_lua(apicast.conf:77):1>, client: <IP_ADDRESS>, server: _, request: "GET /api/v1/abc/def/ghi/5?app_key=abcdefghijklmnopqrstuvwxyz HTTP/1.1", host: "api.example.com"

I'm sorry, even though it can be inferred from the log message, I forgot to specify that this is with apicast 3.0.0 release. Thanks.

@doctorray117 thanks for the report. I can see the issue and plan to fix it in the next release.


Update task status in frontend when restarting the service

When restarting the service while a browser window is open, the status of tasks are not "reset" or "updated". When trying to start a task that is already running, you will get the error that this task is already running... The browser has to be refreshed to get the current status.
To fix this, I would probably have to push the status of all tasks to connected clients when the service starts.

I might just push the serialization of the service once a client connects. This way, all information will be pushed to every client that connects to the restarted service, not only the status of tasks.


Add "live" clusters [moved]

This is Issue 937 moved from a Google Code project.
Added by 2012-07-06T08:05:31.000Z by<EMAIL_ADDRESS>Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Low, v2.2.0
Original description
Current state :
We can create up to 32000 clusters. These clusters are well designed for "structural clusters". I mean the clusters count is application
dependent. For example one cluster by table, etc.

The needs :
We need something like "dynamic cluster" or "live
cluster". I mean clusters depending on the life of the
application, not its structure. Examples :
- one cluster for each project in a large collaborative application :
perhaps 200 000 projects, at least one by user, etc.
- one new cluster per day or per hour on each table for logs purposes...

Why ?
- No 32000 clusters limit.
- Performance. Live clusters will match very closely the application logic (with one data file per live cluster) : load / unload / delete / synchronize / browse / backup / sharding (...) a live cluster will be very easy and fast.
- Memory management. "Structural clusters" are loaded at startup. Live clusters should be loaded on demand. OMemoryWatchDog could automatically manage unloading live clusters.

How ?
- Cluster id : structural clusters use 0-32000 range and live clusters use 32001-2147483647 range.

Problems ?
- The biggest problem I see : RID serialization must be changed with an int for cluster id instead of a short.

Not relevant anymore. Closing it.


Version workflows and store value in JSON Bundle when validating

This issue was moved to PsychoinformaticsLab/neuroscout-cli#5

I'm going to repoen this one, because it also involves the backend. Anything labeled backend its probably good to keep reference to it here.


operation/control: rename Group to And

This operation has side effects and this is a better name to use when
combining this operation with test/if.

bors r+


TAU - Behavior Driven Python with pytest-bdd - Ch.7 - images

Hi Andrew,
I do not know if it is already mentioned but in TAU - Behavior Driven Python with pytest-bdd (https://testautomationu.applitools.com/behavior-driven-python-with-pytest-bdd/chapter7.html#test-web-steps-py) I see that the definition of files with the releated images in Transcripted Summary, Chapter 7, "test_web_steps.py" comes with the screenshot of "web.feature" and "web.feature" with the one of "test_web_steps.py". Please check.

Hope this is the right way to declare this issue. ( I am new in this  :-) )
Best Regards,
Nikos

Thanks for letting me know. I'll see what I can do to get this fixed.

Update request submitted to TAU.


select2-container on WordPress customizer

When using select2 in WordPress customizer, the select2-container falls behind the wrapper element of the customizer that has a z-index of 500000, so it's not visible unless I change the z-index. What's the best solution to fix this? Should I just add a z-index via CSS?
Thank you!

that has a z-index of 50000

And this is why we previously had a z-index that was incredibly high.

What's the best solution to fix this?

Save everyone who relies on z-index some trouble, get them to lower it.

Should I just add a z-index via CSS?

That's a reasonable solution for now.


Suggestion: icon parameter, default preview style

There is no ability to add an icon in the attribute. Adding a material icon above the placeholder text in ngx-mat-dropzone would help

I know the documentation says there is intentionally no default preview, but optionally having a default one would help save time from reinventing the wheel of building this to show the preview, styling it etc. If anyone wants to use the default one, they can use it and then override its default styling if necessary. I think this is a much better choice. Could this be added?

Hi @MilanObrenovic,
you're right, rendering an icon within the dropzone should be possible. I will add that.
I am really struggling about the file preview though. What would be a good default preview for you personally?
I mean we have elements like the Material Chips which are easily usable for this.

Hi @MilanObrenovic,
you're right, rendering an icon within the dropzone should be possible. I will add that.
I am really struggling about the file preview though. What would be a good default preview for you personally? I mean we have elements like the Material Chips which are easily usable for this.

How about something like this?
Within a card, there can be a preview image which illustrates what the user is expected to upload, and below it is the dropzone. A very useful default functionality would be:

Drag and drop file to upload (or click and choose)
The text region that said "drag and drop..." gets replaced with the actual file that was just uploaded
Below the card, the filename + extension gets written
A Delete icon gets shown (perhaps on top right corner of the uploaded document), and when clicked, the uploaded file just gets reset back to null, and "drag and drop..." text gets shown again, basically reset the dropzone back to default

Hi there,
sounds like a great idea UX-wise, although I think the use case is a little too specific for my library.
A more generic solution would be to provide a simple file preview, so behaviors like yours can easily be implemented by the consumer.

[ ] Allow icons within dropzone
[ ] Add file preview with filename and extension
[ ] Add file preview for actual content like images
[ ] Update documentation

Hi there,
I just released the latest version for Angular v17 which includes support for chips-based file previews (see readme).
Please let me know if this helps you. After thinking about it, I decided to leave anything like image previews to the consumer.
Releases


Rending issue on production

everything works localy but when i go live there is nothing rendering.

@3lonious Hi 👋 , caught your notes from your comments on other issues, sorry to hear you're getting blocked here!
You may have caught it from the other thread https://github.com/rive-app/rive-react/issues/97#issuecomment-1168748311
But this library does need to make a request out to retrieve a WASM file that really drives the rendering for the JS/React libs. I think it makes sense to look at a solution to make it so you can retrieve the file/store the file on your own and supply it to the high-level API, but until then, I'd be curious to learn more about why it's not rendering when you build/deploy. Do you have any network request issues when it tries to retrieve the WASM in logs of any kind (i.e is it getting blocked by your web server?)

ok so here are screen shots.. both localy, you can see it render.. and then production where it wont render, but network requests look like they are comming thru 200...
Also ive set this up with useRive, and useStateMachine or whatever and exact same issue...
is there anything on the backend that needs setting up? im deploying thru github actions and amplify aws, would love to get these animiations working..

Production

@3lonious Rive doesn't require any server-side or "backend" work, as it's a library meant to work with your client-side. So a few follow-ups:
Do you mind sharing any snippets of code on how you're setting it up?
Any console errors?

import Turbo from "../../../assets/rive/65-358-iron-giant-demo.riv";
import Rive, { useRive, useStateMachineInput } from "rive-react";
const { rive, RiveComponent } = useRive({
src: Mixer,
autoplay: true,
})

import Turbo from "../../../assets/rive/65-358-iron-giant-demo.riv";
import Rive, { useRive, useStateMachineInput } from "rive-react";
const { rive, RiveComponent } = useRive({
src: Mixer,
autoplay: true,
})

ok i found errors in console

n Shot 2022-07-01 at 7 27 43 PM" src="https://user-images.github

usercontent.com/46793692/176983428-3201162e-4e5e-4622-901a-7b03d42aa06b.png">

also links to our audio mastering platform if it helps
https://chosenmasters.com/
https://pro.chosenmasters.com/register

Any luck here? is there something that needs extra config?

just realized you put this on the other thread... im gonna give this a try thanks :)

my solution
import Rive from "rive-react";
            <Rive  autoplay="true" src="https://public.rive.app/community/runtime-files/65-358-iron-giant-demo.riv" />

            you can get the url for src="" by looking thru community animations, inspect element, go to network tab and copy .riv url from network request

Closing this since the issue seems to have been resolved


Refactor service container and dependency resolution implementation

Refactor the implementation of the service container and dependency resolution

Codecov Report
Attention: Patch coverage is 76.12903% with 37 lines in your changes are missing coverage. Please review.

Project coverage is 53.54%. Comparing base (1fe299f) to head (c6816f8).
Report is 1 commits behind head on main.

Files
Patch %
Lines

src/services/notification/novu.js
45.45%
23 Missing and 1 partial :warning:

src/services/notification/console.js
25.00%
6 Missing :warning:

src/repositories/user-repository/mongoose/index.js
64.28%
5 Missing :warning:

src/service-providers/app-service-provider.js
94.44%
1 Missing :warning:

...service-providers/notification-service-provider.js
91.66%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   50.07%   53.54%   +3.46%
==========================================
  Files          53       57       +4
  Lines        1258     1313      +55
  Branches      210      210
==========================================
+ Hits          630      703      +73
+ Misses        548      539       -9
+ Partials       80       71       -9

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


Possible ROT.Display._data memory leak?

Hi!
I've been using ROT for a while, and for my particular game it seems I've run into some memory leaks. I definitely have some of my own at the moment, but internally ROT seems to be eating a ton of memory.
You can find my project here live if you want to profile it, and here is the code.
I've asked some folks to take a look at it and it was suggested to me that ROT.Display._data keeps increasing in size, but personally I've not made heads or tails of heap snapshots.
The way the game works is that a dungeon is generated, you go through it, die, and then the game automatically regenerates and spawns a new dungeon.  I could be completely wrong, but I'd rather get verification if possible of where the problem is.
Thanks in advance!

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28267217-possible-rot-display-_data-memory-leak?utm_campaign=plugin&utm_content=tracker%2F297828&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F297828&utm_medium=issues&utm_source=github).

Hi @seiyria,
I am no memory profiling guru, but the Chrome memory tool seems to show a constant memory usage -- no leaks as time passes by. Can you elaborate on how do you measure your leaks?
ROT.Display._data is a hashmap used to store/cache all drawn cells, so its size directly corresponds to that display's dimensions. For a display of MxN, _data shall have at most MxN items. You can easily measure that variable's size by dumping Object.keys(display._data).length. This number shall be +- constant. Also, every time you do Display::clear(), the _data member is completely emptied.
How many instances of ROT.Display are you using? Are you creating more of them at runtime, or just those 4 created initially?

I'm not either, which makes this difficult.
The problem is that the game runs out of memory after ... well, the time varies. Eventually, in chrome, the tab just goes white and stops rendering anything. Note that I am also using angular, but this has happened whether or not angular was present.
For mreasuring, I use the profiler tool to measure the heap allocations over time. I think that when specific entries don't get fully grayed out, they're not GC'd. However, I'm not sure why. I'm also not entirely sure if this is in ROT, but I wanted to see if you knew of or could think of anything that could narrow this down. Also, the heap profiles are annoyingly difficult to understand :(
Good to know that it does clear itself when I do display.clear... I do that rather frequently, so I don't know why this is even happening.
I'm only using one ROT.Display, actually, and splitting it into 4 sections (the number of sections depends on the number of characters - it could be anywhere from 1 to 4).

Good news, I'm pretty sure it was just Chrome and hardware acceleration breaking. I'm testing it now. It's likely not ROT as I've been running this in firefox with no noticeable problems. Sorry about the bother!

So I'm also running into this issue, and I'm not sure why this bug has been closed.
If you clear the display often, rot.js has a memory leak in chrome when running with hardware acceleration. On my machine, the memory usage increases steadily for 15 minutes, and then the browser tab crashes entirely.
This issue is entirely caused by Chrome - but hardware acceleration is enabled by default in the latest version, and there are no work arounds short of asking users to manually turn it off and restart their browser.

@jboyle would you mind providing a sample (jsfiddle or similar)? The issue is closed because I was unable to find any particular fix or code bug that would be the source/solution for this problem. As far as I can tell, rot.js itself is not leaking anything (evidence by other browsers) and fixing a browser-specific bug might be close to imposible from within the JS itself.

Here's a basic jsfiddle showing the issue: https://jsfiddle.net/u43phtxy/14/
You can see the memory increasing in the Chrome Task Manager.
This goes slower than my project but memory increases steadily.
Not sure if there's anything you can really do about it other than letting people know it exists. I'm making a realtime game with scrolling environments, which requires a lot of refreshes - so ROT.js might not be the right framework for my project. But if I'd known this early on I could have saved myself some headaches.
FYI - the framework is awesome. Thanks for providing it!

I cannot really reproduce this. Just tried on Chrome 53, using the "Record allocation timeline" devtool profiler. The memory usage is almost constant, showing tiny variations during those scheduled repaints. Nothing that would look like a leak at all.
I agree that the memory amount in the Chrome Task Manager is going slowly up, but that can be caused by many other things (probably also including your OS's memory management) -- and it is almost certainly out of my reach.
Maybe the Chrome Devtools are periodically generating canvas snapshots for later inspection? I really have no idea.


setDrawColor sets incorrect color with CMYK input

When using setDrawColor with CMYK input, the color gets set incorrectly.
Reproduced on the live demo using the following code:
var doc = new jsPDF();

doc.setDrawColor(0.0, 0.0, 0.0, 1.0); // Should set draw color to black
doc.rect(20, 20, 10, 10);

The resulting output on the PDF displays a square with white borders.
The issue revolves around the encodeColorString function. When the "assume CMYK" branch is reached, the color values passed in are divided by 255 so they're being treated like RGB values. The documentation specifies that if using CMYK, the values passed in should be between 0.0 (0%) to 1.0 (100%) so there is no need to divide the parameters by anything to get the correct CMYK output.
Exact code snippet:
// assume CMYK
if (typeof ch1 === 'string') {
	color = [ch1, ch2, ch3, ch4, letterArray[2]].join(" ");
} else {
	switch (options.precision) {
		case 2:
                        // ** These should not be divided by 255 **
			color = [f2(ch1 / 255), f2(ch2 / 255), f2(ch3 / 255), f2(ch4 / 255), letterArray[2]].join(" ");
			break;

		case 3:
		default:
                        // ** These should not be divided by 255 **
			color = [f3(ch1 / 255), f3(ch2 / 255), f3(ch3 / 255), f3(ch4 / 255), letterArray[2]].join(" ");
	}
}

What did you expect as a result?

I expect to see a black square.

did you use setFillColor for the filling?

No, I used setDrawColor for the borders. I'm not calling rect with the fill styling so it should just draw the borders!

Oh and The Last value gets 1/255 resulting in a wrong color?

Yes, but all the values gets divided by 255 resulting in the wrong color.
So from what I can tell, when the encodeColorString function assumes it's CMYK input, it should be handled like so:
// assume CMYK
if (typeof ch1 === 'string') {
	color = [ch1, ch2, ch3, ch4, letterArray[2]].join(" ");
} else {
	switch (options.precision) {
		case 2:
			color = [f2(ch1), f2(ch2), f2(ch3), f2(ch4), letterArray[2]].join(" ");
			break;
		case 3:
		default:
			color = [f3(ch1), f3(ch2), f3(ch3), f3(ch4), letterArray[2]].join(" ");
	}
}

This was the behaviour in 1.4.1.

OK, I confirm this as a bug.

@arasabbasi just wondering if you could take a look at the pull request, maybe let me know why the build fails if the tests look like they're all green. Thanks!


feat: add tagging to image releases

Description
Please explain the changes you made here.

Adds tagging to image releases

Adds a git tag based on the root package.json version on every release
Adds the git tag to the image build process

Adds a nightly image

Which issue(s) does this PR fix

Fixes https://github.com/janus-idp/backstage-showcase/issues/102
Fixes https://github.com/janus-idp/backstage-showcase/issues/311

PR acceptance criteria
Please make sure that the following steps are complete:

GitHub Actions are completed and successful
Unit Tests are updated and passing
E2E Tests are updated and passing
Documentation is updated if necessary
Add a screenshot if the change is UX/UI related

How to test changes / Special notes to the reviewer

Release GH actions are now broken since this commit.
https://github.com/janus-idp/backstage-showcase/actions/runs/5883772144


OS X building?

I've installed boost and cmake through homebrew and ./install.sh seems to go through without a hitch.
$ ./install.sh
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   program_options
-- Configuring done
CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   cpsm_py

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/mrak/.local/share/vim/bundle/cpsm/build
[ 42%] Built target cpsm_core
[ 57%] Built target cpsm_cli
[ 85%] Built target cpsm_py
[100%] Built target matcher_test
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/mrak/.local/share/vim/bundle/cpsm/autoload/cpsm_py.so
-- Installing: /Users/mrak/.local/share/vim/bundle/cpsm/test/cpsm_py.so
-- Up-to-date: /Users/mrak/.local/share/vim/bundle/cpsm/test/cpsm_cli.bin
-- Up-to-date: /Users/mrak/.local/share/vim/bundle/cpsm/test/matcher_test.bin

When I load up vim and try to use CtrlP, vim crashes with the following:
Vim: Caught deadly signal ABRT
Vim: Finished.

I get the same problem:
(fr5.1)~/.vim/bundle/cpsm (master) :) Fatal Python error: PyThreadState_Get: no current thread
Vim: Caught deadly signal ABRT
Vim: Finished.

Same here!

Do you all have Python (2 or 3) installed through Homebrew? Some Googling around seems to indicate that there is an upstream CMake problem where CMake incorrectly selects Mac OS X's Python libraries over other Python libraries (Homebrew is the usual culprit); http://www.itk.org/Bug/view.php?id=14809 is the CMake tracking bug, and https://github.com/Homebrew/homebrew/issues/25118 is a Homebrew bug with some discussion.
I've committed https://github.com/nixprime/cpsm/commit/01e2392af323640674ef58134b26f8746bfad74a to master to fix this. However, even without that commit I haven't been able to reproduce a crash, even after brew install python and brew install python3. Can you please try and let me know?

Hi,
Still crashes, i removed the build directory and compiled again after pulling last version. The build process output is here: https://gist.github.com/gonzaloserrano/11b4f25ac5057748526d
As you can see i'm using python 2.7.9 from homebrew.

I'm not sure this big external Find.cmake module is required. After all, YouCompleteMe also only uses the systemlibs. The commit broke systems that use Python 3 as a default system lib.

Looking at FindPythonLibrary.cmake now, I don't think you're really fixing any problems by using it because it uses FindPythonInterp which is supplied by CMake and will still find the wrong versions of Python on a badly configured OSX.

gonzaloserrano, can you provide the output of otool -L $(which vim) and otool -L ~/.vim/bundle/cpsm/autoload/cpsm_py.so?
svenstaro, according to the CMake bug report, FindPythonInterp may find a different Python than FindPythonLibs since it honors PATH.

Yep looks like cpsm uses the system python and homebrewed vim the corresponding homebrew python one: https://gist.github.com/gonzaloserrano/f1a70e42069c8815b875

Can you run which python and brew doctor? Probably /usr/bin is before /usr/local/bin in your path, causing the system Python interpreter to be selected over the Homebrew Python interpreter, which is now what's used to select the Python libraries used to build cpsm.

AFAIK in my env /usr/local/bin has precedence over /usr/bin in $PATH:
╰─○ type -a python
python is /usr/local/bin/python
python is /usr/bin/python

brew doctordoesn't show anything related to python.
I'll try to dig further tomorrow. Thanks four your help!

Did you come upon a solution here @gonzaloserrano? I'm having the same issue.

Not yet, this week has been so busy. Sorry! :-(

This appears to be a solution to the same/related problem: https://github.com/Valloric/YouCompleteMe/issues/8

I tried this: $ EXTRA_CMAKE_ARGS='-DPYTHON_EXECUTABLE=/usr/local/bin/python' bash install.sh without luck. What did you end up doing to make it work?

Well, I actually haven't solved it entirely, though it of course works by flattening namespaces:
DYLD_FORCE_FLAT_NAMESPACE=1 vim

jedverity, can you provide the output of the following:

otool -L $(which vim)

otool -L ~/.vim/bundle/cpsm/autoload/cpsm_py.so

which python

brew doctor

I do have the problem of cpsm using System python
(/System/Library/Frameworks/Python.framework/Versions/2.7) and vim using
homebrew python
(/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7,
which is also first on PATH).
On Wed, Jun 10, 2015 at 11:01 PM, Jamie Liu<EMAIL_ADDRESS>wrote:

jedverity, can you provide the output of the following:

otool -L $(which vim)
otool -L ~/.vim/bundle/cpsm/autoload/cpsm_py.so
which python
brew doctor
—
Reply to this email directly or view it on GitHub
https://github.com/nixprime/cpsm/issues/3#issuecomment-110982576.

Anyone on OSX with home brew python gotten this working?

@nixprime
In OS X, In some cases it will be linked to the system Python (/System/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython.dylib) with -framework Python flag.
but, If installed Python use Homebrew, .dylib (in Linux .so) path is /usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib.
In the current state,
e.g.

PYTHON_EXECUTABLE=/usr/local/bin/python
PYTHON_INCLUDE_PATH=/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/include/python2.7
PYTHON_LIBRARY=/System/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython.dylib

Since the {exe | include} and lib is different python, an error will occur.
Simple hack solution is -framework Python to /usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib
https://github.com/nixprime/cpsm/blob/master/cmake/FindPythonLibrary.cmake#L88
but, It's likely to be a little more concise.
I do not know how to write CMakefile, I can not post the PR. Sorry.

@nixprime FYI,
Not fix
> otool -L autoload/cpsm_py.dylib
autoload/cpsm_py.dylib:
        cpsm_py.dylib (compatibility version 0.0.0, current version 0.0.0)
        /System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.10)
        /usr/local/opt/icu4c/lib/libicuuc.55.dylib (compatibility version 55.0.0, current version 55.1.0)
        /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)

Fixed
> otool -L autoload/cpsm_py.dylib
autoload/cpsm_py.dylib:
        cpsm_py.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
        /usr/local/opt/icu4c/lib/libicuuc.55.dylib (compatibility version 55.0.0, current version 55.1.0)
        /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)


Unable to version package from SystemBrowser

PackageSelector (in PackagedClassSelector in SystemBrowserShell) has a context menu with the #'versionPackage' command (plus a couple others that don't work either). This method is implemented only in PackageBrowserShell, which is not present in SystemBrowserShell.

Fixed in commit.


Fix cni conf_template related code

What is the problem you're trying to solve
As commented by @samuelkarp here
https://github.com/containerd/containerd/issues/8596#issuecomment-1569280131
copying it here as well

As is, I think the code has a few races in it which can lead to inconsistency in reading the generated config file (no mutex around the logic in UpdateRuntimeConfig combined with not writing the file atomically). If we don't remove the logic, I'd at least like to get those issues fixed.

Describe the solution you'd like
Update the code to avoid race conditions
Additional context
No response

Writing the file atomically will fix both issues.  Opened https://github.com/containerd/containerd/pull/8609 for this.


just use ssh instead of srun to speed up core checks

just use ssh instead of srun to speed up core checks.  With INC0356579 scheduling 8 nodes (224 cores) Ansys will not start Fluent because all the srun commands take too long to execute (it needs to execute all 224 of them).
Running just ssh is faster so users can schedule 8 nodes on Owens and successfully start Fluent.

I still need to test this a bit on all the different versions.

This was tested and works across all versions 2020R1 down to 17.2 except 19.2.
The ansys/19.2 did throw me the old error once, but I rebuilt again and it worked. This might be something to watch out for if we see users experiencing this problem again, but possibly never attempting a second build before submitting the ticket. So there may be some timing issues to watch for still.


handle additional cases of multiple/overlapping node definitions

This adds error trapping to address NCT issue 252. Up to this change we only detect when two identical nodes are defined twice, not when two nodes overlap (e.g., two multivariate nodes or a multivariate and scalar node).
@danielturek @perrydv Let me know of any further thoughts about removing the message mentioned in issue 252. For the moment I've commented it out.
                    "If your model has macros or if-then-else blocks\n",
                    "you can inspect the processed model code by doing\n",
                    "nimbleOptions(stop_after_processing_model_code = TRUE)\n",
                    "before calling nimbleModel.\n"

@paciorek I'll just suggest per usual that we protect this new error-trap with a nimbleOptions toggle so that we can give people a way to get around it if it ever misfires.


Support multiple instances of Flux in Flux Runtime view

Short description
As a platform operator I want to see all Flux controllers on my cluster, when running multiple instances of Flux for multi-tenancy resource isolation, so that I can monitor their health and check their versions.
Acceptance criteria

[ ] Flux Runtime Controller view shows controllers from multiple namespaces with the part-of: flux label
[ ] New namespace column is added to the Controller tab

Reference doc: https://fluxcd.io/flux/security/best-practices/#resource-isolation
To set up a sample environment:

run flux install --watch-all-namespaces=false
then run flux install -n <different-namespace> --watch-all-namespaces=false

re-opening whilst verifying fix

Testing scenario :

OSS

One cluster & one flux version

WGE

multi clusters & diff flux versions

@TheGostKasper just to be clear those screenshots above are for one instance per cluster and this issue is for multiple instances per cluster

@sympatheticmoose  i can't see any other versions within the response in OSS, so could it be a BE issue ?

most likely - It doesnt work in WGE either for multiple namespaces on same cluster

@enekofb

applied manifest
---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/instance: flux-system
    app.kubernetes.io/part-of: flux
    app.kubernetes.io/version: v0.37.0
    control-plane: controller
  name: source-controller-v32
  namespace: flux-system
spec:
  replicas: 1
  selector:
    matchLabels:
      app: source-controller-v32
  strategy:
    type: Recreate
  template:
    metadata:
      annotations:
        prometheus.io/port: "8080"
        prometheus.io/scrape: "true"
      labels:
        app: source-controller-v32
    spec:
      containers:
        - args:
            - --events-addr=http://notification-controller.flux-system.svc.cluster.local./
            - --watch-all-namespaces=true
            - --log-level=info
            - --log-encoding=json
            - --storage-path=/data
            - --storage-adv-addr=source-controller-v32.$(RUNTIME_NAMESPACE).svc.cluster.local.
          env:
            - name: RUNTIME_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
          image: ghcr.io/fluxcd/source-controller:v0.32.1
          imagePullPolicy: IfNotPresent
          livenessProbe:
            httpGet:
              path: /healthz
              port: healthz
          name: manager
          ports:
            - containerPort: 9090
              name: http
              protocol: TCP
            - containerPort: 8080
              name: http-prom
              protocol: TCP
            - containerPort: 9440
              name: healthz
              protocol: TCP
          readinessProbe:
            httpGet:
              path: /
              port: http
          resources:
            limits:
              cpu: 1000m
              memory: 1Gi
            requests:
              cpu: 50m
              memory: 64Mi
          securityContext:
            allowPrivilegeEscalation: false
            capabilities:
              drop:
                - ALL
            readOnlyRootFilesystem: true
            runAsNonRoot: true
            seccompProfile:
              type: RuntimeDefault
          volumeMounts:
            - mountPath: /data
              name: data
            - mountPath: /tmp
              name: tmp
      nodeSelector:
        kubernetes.io/os: linux
      securityContext:
        fsGroup: 1337
      serviceAccountName: source-controller
      terminationGracePeriodSeconds: 10
      volumes:
        - emptyDir: {}
          name: data
        - emptyDir: {}
          name: tmp


Redo file rename fails

Testing #111015
Platform: macOS

Rename a file from a to b
cmd+z to undo, file name is reverted to a
cmd+shift+z to redo, it throws an error

Could not redo 'Rename test.ikqlnb to vscode.ikqlnb' across all files. The following files have been closed and modified on disk: /Users/penlv/code/prototype/notebook-test/kusto/test.ikqlnb.

@rebornix Works for me following your exact steps. Are you using some special files?
This might be coming from the Undo Redo Service, thus also assigning to @alexdima for ideas on how to repro

Let's also assign @jrieken for ideas

@rebornix What save settings do you use? auto save, after delay, or manual?

@rebornix I also could not reproduce:

I don't have a good way to reproduce again, other than seeing it once yesterday. Close it for now.

Okey, let us know if you see it again. Thanks


Added the 'spo list view set' command solving #662

Added the 'spo list view set' command solving #662

Coverage remained the same at 100.0% when pulling ea68a99889d401e7fbabe5dc159c2026ae20993a on waldekmastykarz:spo-list-view-set into 3214513a9a4b250f5b9d9db1db93f3bba599b82f on pnp:dev.

Merged manually.


Improve cache timeout for images

Set the Cache-Control header when uploading the image to gcloud-
storage to expire in 1 day.

Closes #138

LGTM


Fix "random book" popup don't open

After release of Hugo v0.124.1, this change can be rolled back.


replace Twist with TwistStamped

Replace Twist with TwistStamped. Related with TwistStamped transition https://github.com/ros-planning/navigation2/pull/3775

Way ahead of ya:
https://github.com/ros-controls/ros2_controllers/pull/812


Introduce integration test coverage with go1.20

See https://dustinspecker.com/posts/go-combined-unit-integration-code-coverage/

done in #1524


Spiders hangs with no exceptions raised.

If I have said anything impolite, please forgive me, as I have used a translator. My basic situation is the same as this issue Spiders hangs. I locate the problem to this setting item.
"DOWNLOAD_HANDLERS": {
    "https": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
    "http": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
},

Code
When I comment out DOWNLOAD_HANDLERS, the spider runs normally. Here is my code, you can directly run it and try.
from pathlib import Path
from scrapy.crawler import CrawlerProcess
import scrapy

class QuotesSpider(scrapy.Spider):
    name = "quotes"

    def start_requests(self):
        urls = [
            "https://quotes.toscrape.com/page/1/",
            "https://quotes.toscrape.com/page/2/",
        ]
        for url in urls:
            yield scrapy.Request(url=url, callback=self.parse,
                                  meta={"playwright": True},)

    def parse(self, response):
        page = response.url.split("/")[-2]
        filename = f"quotes-{page}.html"
        Path(filename).write_bytes(response.body)
        self.log(f"Saved file {filename}")

if __name__=="__main__":
    process = CrawlerProcess(
        settings={
            "TWISTED_REACTOR": "twisted.internet.asyncioreactor.AsyncioSelectorReactor",
            "DOWNLOAD_HANDLERS": {
                "https": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
                "http": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
            },
            "CONCURRENT_REQUESTS": 32,
        }
    )
    process.crawl(QuotesSpider)
    process.start()

Result
(env4gpt) D:\Repo\crawl>D:/anaconda3/envs/env4gpt/python.exe d:/Repo/crawl/main.py
2024-07-05 19:36:00 [scrapy.utils.log] INFO: Scrapy 2.11.2 started (bot: scrapybot)
2024-07-05 19:36:00 [scrapy.utils.log] INFO: Versions: lxml <IP_ADDRESS>, libxml2 2.11.7, cssselect 1.2.0, parsel 1.9.1, w3lib 2.2.0, Twisted 24.3.0, Python 3.9.18 (main, Sep 11 2023, 14:09:26) [MSC v.1916 64 bit (AMD64)], pyOpenSSL 24.1.0 (OpenSSL 3.2.2 4 Jun 2024), cryptography 42.0.8, Platform Windows-10-10.0.19045-SP0
2024-07-05 19:36:00 [scrapy.addons] INFO: Enabled addons:
[]
2024-07-05 19:36:00 [py.warnings] WARNING: D:\anaconda3\envs\env4gpt\lib\site-packages\scrapy\utils\request.py:254: ScrapyDeprecationWarning: '2.6' is a deprecated value for the 'REQUEST_FINGERPRINTER_IMPLEMENTATION' setting.

It is also the default value. In other words, it is normal to get this warning if you have not defined a value for the 'REQUEST_FINGERPRINTER_IMPLEMENTATION' setting. This is so for backward compatibility reasons, but it will change in a future version of Scrapy.

See the documentation of the 'REQUEST_FINGERPRINTER_IMPLEMENTATION' setting for information on how to handle this deprecation.
  return cls(crawler)

2024-07-05 19:36:00 [asyncio] DEBUG: Using selector: SelectSelector
2024-07-05 19:36:00 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.asyncioreactor.AsyncioSelectorReactor
2024-07-05 19:36:00 [scrapy.utils.log] DEBUG: Using asyncio event loop: asyncio.windows_events._WindowsSelectorEventLoop
2024-07-05 19:36:00 [scrapy.extensions.telnet] INFO: Telnet Password: 6b77837564f0d1cc
2024-07-05 19:36:00 [scrapy.middleware] INFO: Enabled extensions:
['scrapy.extensions.corestats.CoreStats',
 'scrapy.extensions.telnet.TelnetConsole',
 'scrapy.extensions.logstats.LogStats']
2024-07-05 19:36:00 [scrapy.crawler] INFO: Overridden settings:
{'CONCURRENT_REQUESTS': 32,
 'TWISTED_REACTOR': 'twisted.internet.asyncioreactor.AsyncioSelectorReactor'}
2024-07-05 19:36:01 [asyncio] DEBUG: Using proactor: IocpProactor
2024-07-05 19:36:01 [scrapy-playwright] INFO: Started loop on separate thread: <ProactorEventLoop
running=True closed=False debug=False>
2024-07-05 19:36:01 [asyncio] DEBUG: Using proactor: IocpProactor
2024-07-05 19:36:01 [scrapy-playwright] INFO: Started loop on separate thread: <ProactorEventLoop
running=True closed=False debug=False>
2024-07-05 19:36:01 [scrapy.middleware] INFO: Enabled downloader middlewares:
['scrapy.downloadermiddlewares.offsite.OffsiteMiddleware',
 'scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware',
 'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware',
 'scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware',
 'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware',
 'scrapy.downloadermiddlewares.retry.RetryMiddleware',
 'scrapy.downloadermiddlewares.redirect.MetaRefreshMiddleware',
 'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware',
 'scrapy.downloadermiddlewares.redirect.RedirectMiddleware',
 'scrapy.downloadermiddlewares.cookies.CookiesMiddleware',
 'scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware',
 'scrapy.downloadermiddlewares.stats.DownloaderStats']
2024-07-05 19:36:01 [scrapy.middleware] INFO: Enabled spider middlewares:
['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware',
 'scrapy.spidermiddlewares.referer.RefererMiddleware',
 'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware',
 'scrapy.spidermiddlewares.depth.DepthMiddleware']
2024-07-05 19:36:01 [scrapy.middleware] INFO: Enabled item pipelines:
[]
2024-07-05 19:36:01 [scrapy.core.engine] INFO: Spider opened
2024-07-05 19:36:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:36:01 [scrapy.extensions.telnet] INFO: Telnet console listening on <IP_ADDRESS>:6023
2024-07-05 19:37:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:38:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:39:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:40:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:41:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:42:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:43:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:44:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:45:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:46:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:47:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:48:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:49:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:50:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:51:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-05 19:52:01 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)

The log continues to repeat "[scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)".
Conda Environment
openpyxl=3.1.4
scrapy==2.11.2
lxml==5.2.2
python-dotenv==1.0.1
scrapy-playwright==0.0.37

System
Windows 10
Guess
Is it possible that it is related to the computer system? I currently do not have a computer with a Linux system and cannot verify this. Besides, I am in China, could it be related to the IP address? However, I checked the ScrapyPlaywrightDownloadHandler class and did not see any bugs. Thank you for your help.

Same issue for me, on windows 10, same components versions, seems that browser is not launched at all, if I add PLAYWRIGHT_LAUNCH_OPTIONS = {"headless": False} I see no browser

Same issue for me, on windows 10, same components versions, seems that browser is not launched at all, if I add PLAYWRIGHT_LAUNCH_OPTIONS = {"headless": False} I see no browser

The bug is not fixed yet, you can try python-playwright as a alternative solution to develop  your spider program.

I have been developing the package and testing crawls on Windows 11, installing packages with pip in a virtual environment (without Conda). I do not currently have access to a Windows 10 system, however the CI Windows build is running on windows-latest: according to the most recent docs on the images this is the same as windows-2022, which includes Windows 10.0.20348 Build 2529.
There was an earlier issue that involved Conda as well: #244. I could not reproduce it without Conda, given that and the above I'm inclined to believe that Conda might be the issue here.
Please try again without Conda to see if the issue is resolved.

I have been developing the package and testing crawls on Windows 11, installing packages with pip in a virtual environment (without Conda). I do not currently have access to a Windows 10 system, however the CI Windows build is running on windows-latest: according to the most recent docs on the images this is the same as windows-2022, which includes Windows 10.0.20348 Build 2529. There was an earlier issue that involved Conda as well: #244. I could not reproduce it without Conda, given that and the above I'm inclined to believe that Conda might be the issue here. Please try again without Conda to see if the issue is resolved.

Thank you for your help. It looks like not the problem of conda in my situation. I closed the conda environment and used the default python.exe on my computer, then downloaded the scrapy-playwright library. Even after ensuring that I'm running the program with the default python.exe rather than the python.exe from the conda environment, the issue persists.
D:\Repo\crawl>C:/Python312/python.exe d:/Repo/crawl/main.py
2024-07-09 01:59:19 [scrapy.utils.log] INFO: Scrapy 2.11.2 started (bot: scrapybot)
2024-07-09 01:59:19 [scrapy.utils.log] INFO: Versions: lxml <IP_ADDRESS>, libxml2 2.11.7, cssselect 1.2.0, parsel 1.9.1, w3lib 2.2.1, Twisted 24.3.0, Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct  2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)], pyOpenSSL 24.1.0 (OpenSSL 3.2.2 4 Jun 2024), cryptography 42.0.8, Platform Windows-10-10.0.19045-SP0
2024-07-09 01:59:19 [scrapy.addons] INFO: Enabled addons:
[]
2024-07-09 01:59:19 [py.warnings] WARNING: C:\Python312\Lib\site-packages\scrapy\utils\request.py:254: ScrapyDeprecationWarning: '2.6' is a deprecated value for the 'REQUEST_FINGERPRINTER_IMPLEMENTATION' setting.

It is also the default value. In other words, it is normal to get this warning if you have not defined a value for the 'REQUEST_FINGERPRINTER_IMPLEMENTATION' setting. This is so for backward compatibility reasons, but it will change in
a future version of Scrapy.

See the documentation of the 'REQUEST_FINGERPRINTER_IMPLEMENTATION' setting for information on how to handle this deprecation.
  return cls(crawler)

2024-07-09 01:59:19 [asyncio] DEBUG: Using selector: SelectSelector
2024-07-09 01:59:19 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.asyncioreactor.AsyncioSelectorReactor
2024-07-09 01:59:19 [scrapy.utils.log] DEBUG: Using asyncio event loop: asyncio.windows_events._WindowsSelectorEventLoop
2024-07-09 01:59:19 [scrapy.extensions.telnet] INFO: Telnet Password: e6ffaca82a959077
2024-07-09 01:59:19 [scrapy.middleware] INFO: Enabled extensions:
['scrapy.extensions.corestats.CoreStats',
 'scrapy.extensions.telnet.TelnetConsole',
 'scrapy.extensions.logstats.LogStats']
2024-07-09 01:59:19 [scrapy.crawler] INFO: Overridden settings:
{'TWISTED_REACTOR': 'twisted.internet.asyncioreactor.AsyncioSelectorReactor'}
2024-07-09 01:59:19 [asyncio] DEBUG: Using proactor: IocpProactor
2024-07-09 01:59:19 [scrapy-playwright] INFO: Started loop on separate thread: <ProactorEventLoop running=True closed=False debug=False>
2024-07-09 01:59:19 [asyncio] DEBUG: Using proactor: IocpProactor
2024-07-09 01:59:19 [scrapy-playwright] INFO: Started loop on separate thread: <ProactorEventLoop running=True closed=False debug=False>
2024-07-09 01:59:20 [scrapy.middleware] INFO: Enabled downloader middlewares:
['scrapy.downloadermiddlewares.offsite.OffsiteMiddleware',
 'scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware',
 'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware',
 'scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware',
 'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware',
 'scrapy.downloadermiddlewares.retry.RetryMiddleware',
 'scrapy.downloadermiddlewares.redirect.MetaRefreshMiddleware',
 'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware',
 'scrapy.downloadermiddlewares.redirect.RedirectMiddleware',
 'scrapy.downloadermiddlewares.cookies.CookiesMiddleware',
 'scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware',
 'scrapy.downloadermiddlewares.stats.DownloaderStats']
2024-07-09 01:59:20 [scrapy.middleware] INFO: Enabled spider middlewares:
['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware',
 'scrapy.spidermiddlewares.referer.RefererMiddleware',
 'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware',
 'scrapy.spidermiddlewares.depth.DepthMiddleware']
2024-07-09 01:59:20 [scrapy.middleware] INFO: Enabled item pipelines:
[]
2024-07-09 01:59:20 [scrapy.core.engine] INFO: Spider opened
2024-07-09 01:59:20 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-09 01:59:20 [scrapy.extensions.telnet] INFO: Telnet console listening on <IP_ADDRESS>:6023
2024-07-09 02:00:20 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-09 02:01:20 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-09 02:02:20 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2024-07-09 02:03:20 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)

I was wrong about Conda, I was able to reproduce the issue in Windows 11 as well. What I found is that the spider works correctly if only one of the schemas is set in the DOWNLOAD_HANDLERS settings, e.g.:
"DOWNLOAD_HANDLERS": {
    "https": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
    # "http": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
},

Fortunately plaintext http is falling out of favor nowadays, so only enabling the handler for the https schema should be enough for most sites.
I do not know why this is happening, I will need to check in more depth.

I was wrong about Conda, I was able to reproduce the issue in Windows 11 as well. What I found is that the spider works correctly if only one of the schemas is set in the DOWNLOAD_HANDLERS settings, e.g.:
"DOWNLOAD_HANDLERS": {
    "https": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
    # "http": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
},

Fortunately plaintext http is rare nowadays, so only enabling the handler for the https schema should be enough for most sites. I do not know why this is happening, I will need to check in more depth.

Use conda and set single https schema ❌
Dont use conda and set single https schema ✅
Yes, you are right. I use my default python.exe(venv also works) and delete the http schema and the spider runs successfully.
The bug has been circumvented, but the cause remains unknown.

Fixed as of v0.0.40.


Exclude Target apps for Keyboard Manager!!!!!!!!!

Please describe your problems or  requirements in detail.

@tianjiyuan
You can set a target app for your remapping. Please see https://docs.microsoft.com/en-us/windows/powertoys/keyboard-manager#app-specific-shortcuts for more details.

Duplicate of https://github.com/microsoft/PowerToys/issues/8809


how to change the gitea uri (first call of the freshly installed application) AFTER set it...?

how to change the gitea uri (first call of the freshly installed application) AFTER set it...?

You can edit you app.ini file and restart gitea to take effect. Please have a look at the documentation : https://docs.gitea.io/en-us/config-cheat-sheet/

thx!!


Adding button listeners

Hi,
Are you planning on adding an opton to add button listeners with Builder instead of implementing thom on Activity level?

Sorry that's not possible with DialogFragments. Your listener would stop working after user rotates the device.


Is it possible pass Native class object to js ?

I added description here below link
https://stackoverflow.com/questions/51481575/web-apps-in-webview-android

https://stackoverflow.com/questions/51481575/web-apps-in-webview-android

@mksantoki   Sorry，Currently not support returning object to js。
I thought about how to support this situation by modify the code, I briefly talk about the idea.
Step1
@JSBridgeMethod
    public JBMap testReturnObject() {
        WritableJBMap jbMap = new WritableJBMap.Create();
        jbMap.putString("data", "abc");
        jbMap.putCallback("toast", new JBCallback() {
            @Override
            public void apply(Object... args) {

            }
        });
        return jbMap;
    }

Note: WritableJBMap not support JBCallback  convert to JS function now
Step2
modify com/apkfuns/jsbridge/JBUtilMethodFactory.java#CallMethod, parse r.msg to js Object and return
buffer.append("var r = _callJava(id, moduleName, methodName, args);");
buffer.append("if (r && r.success){");
buffer.append("if(ret)return r.msg");

When I am free, I will think deeply about the concrete implementation.


Crash during script creation when searching for custom base class with template defining inheriting class

Godot version
4.0.2 stable
System information
Ubuntu 22.04.2 LTS
Issue description
I stumbled upon this bug when creating a class "State" and exploring how to set up a template for inheriting scripts, making a script template including the lines
extends State
class_name MyState

as example usage. Then, intending to make a specialized state class script, as I searched the class hierarchy for my original "State" class to be the new script's inherited class, getting only as far as typing "s" (or at most "sta"), the editor crashed. Further testing revealed that the leading "M" of the "MyState" name was the triggering factor; changing that to "YState", because "Y" comes after "S", made the crash go away.
This appears to only occur if the offending script is a script template. (Or more accurately, if the script was a script template when loading the project or when the script was created . Moving it out from the script_templates folder did not stop the editor from crashing, and conversely, having it outside that folder when loading the project, and then moving it inside the script_templates folder, failed to trigger the crash.)
I was unsure whether defining a class inside a script template was allowed, or whether it would simply be ignored by the editor and the class hierarchy, but did not expect a crash. Having class definitions inside script templates be ignored by the rest of the project would be my preference, though resolving the crash and the naming dependent inconsistency is more important.
Steps to reproduce
As a minimal example, a project might contain the following script res://b.gd
extends Node
class_name B

and a script template for the above class, res://script_templates/B/b_template.gd
extends B
class_name AB

(Note that "AB" both lexicographically precedes, and contains the whole or the start of, the name of the base class, "B".)
To trigger the crash, open the dialog for creating a new script, click the button to search the class hierarchy for which class to inherit from, and type "b".
As far as I can tell, the following, which is true in the above example, must be true for the crash to occur:

the second script must be a script template and must extend the base class
the template's class name must lexicographically come before the base class name
the template's class name must contain what is typed when searching for the base class during the creation of a new script

Minimal reproduction project
This is the above minimal example in the form of a godot project:
minimal_example.zip

================================================================
CrashHandlerException: Program crashed
Engine version: Godot Engine v4.1.dev.custom_build (ee865051367a78bf20f50500520af13ef8f1097b)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[0] CowData<TreeItem::Cell>::_get_size ({godot_path}\core\templates\cowdata.h:81)
[1] CowData<TreeItem::Cell>::size ({godot_path}\core\templates\cowdata.h:131)
[2] Vector<TreeItem::Cell>::size ({godot_path}\core\templates\vector.h:90)
[3] TreeItem::select ({godot_path}\scene\gui\tree.cpp:1043)
[4] CreateDialog::select_type ({godot_path}\editor\create_dialog.cpp:482)
[5] CreateDialog::_update_search ({godot_path}\editor\create_dialog.cpp:197)
[6] CreateDialog::_text_changed ({godot_path}\editor\create_dialog.cpp:420)
[7] call_with_variant_args_helper<CreateDialog,String const &,0> ({godot_path}\core\variant\binder_common.h:293)
[8] call_with_variant_args<CreateDialog,String const &> ({godot_path}\core\variant\binder_common.h:408)
[9] CallableCustomMethodPointer<CreateDialog,String const &>::call ({godot_path}\core\object\callable_method_pointer.h:105)
[10] Callable::callp ({godot_path}\core\variant\callable.cpp:51)
[11] Object::emit_signalp ({godot_path}\core\object\object.cpp:1056)
[12] Object::emit_signal<String> ({godot_path}\core\object\object.h:868)
[13] LineEdit::_emit_text_change ({godot_path}\scene\gui\line_edit.cpp:2255)
[14] LineEdit::_text_changed ({godot_path}\scene\gui\line_edit.cpp:2250)
[15] LineEdit::gui_input ({godot_path}\scene\gui\line_edit.cpp:619)
[16] Control::_call_gui_input ({godot_path}\scene\gui\control.cpp:1752)
[17] Viewport::_gui_input_event ({godot_path}\scene\main\viewport.cpp:2090)
[18] Viewport::push_input ({godot_path}\scene\main\viewport.cpp:2863)
[19] Window::_window_input ({godot_path}\scene\main\window.cpp:1388)
[20] call_with_variant_args_helper<Window,Ref<InputEvent> const &,0> ({godot_path}\core\variant\binder_common.h:293)
[21] call_with_variant_args<Window,Ref<InputEvent> const &> ({godot_path}\core\variant\binder_common.h:408)
[22] CallableCustomMethodPointer<Window,Ref<InputEvent> const &>::call ({godot_path}\core\object\callable_method_pointer.h:105)
[23] Callable::callp ({godot_path}\core\variant\callable.cpp:51)
[24] DisplayServerWindows::_dispatch_input_event ({godot_path}\platform\windows\display_server_windows.cpp:2297)
[25] DisplayServerWindows::_dispatch_input_events ({godot_path}\platform\windows\display_server_windows.cpp:2262)
[26] Input::_parse_input_event_impl ({godot_path}\core\input\input.cpp:690)
[27] Input::flush_buffered_events ({godot_path}\core\input\input.cpp:941)
[28] DisplayServerWindows::process_events ({godot_path}\platform\windows\display_server_windows.cpp:1991)
[29] OS_Windows::run ({godot_path}\platform\windows\os_windows.cpp:1475)
[30] widechar_main ({godot_path}\platform\windows\godot_windows.cpp:181)
[31] _main ({godot_path}\platform\windows\godot_windows.cpp:203)
[32] main ({godot_path}\platform\windows\godot_windows.cpp:217)
[33] WinMain ({godot_path}\platform\windows\godot_windows.cpp:231)
[34] __scrt_common_main_seh (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
[35] <couldn't map PC to fn name>
-- END OF BACKTRACE --
================================================================
Segmentation fault

seems like these lines are the culprit:
https://github.com/godotengine/godot/blob/bd1bc68ba07e330e814af19faf87d59da3f0ce6f/editor/create_dialog.cpp#L248-L249
global classes inside of script_templates folder are being added via _add_type.
these classes don't return the base script, so it goes through this pass and simply assumes the class it extends to comes from CPP side. this behavior registers null to search_options_types, and searching for that item leads to null pointer access.
wrapping line 249 with if(ClassDB::class_exists(inherits)) fixes the crash itself, but I'm not sure if template appearing in the "inherit object" dialog is an intended behavior to begin with.


The /EXI command is not permitted in server mode.  v24x issue

🤓 Before submitting the issue

[X] I have visited the Troubleshooting section.
[X] I have searched among the existing issues.
[X] I am using a Python virtual environment.
[X] I am using the latest version of PyMAPDL and its dependencies (fully updated virtual environment). You can update them using pip install --upgrade --upgrade-strategy eager ansys-mapdl-core in your activated virtual environment.

🔍 Description of the bug
The current pymapdl version I am using uses a recent version of apdl (24.1) and that causes an issue when trying to exit a pymapdl session.
The mapdl.exit() will give an error:
*** ERROR ***                           CP =       2.141   TIME= 14:55:21  The /EXI command is not permitted in server mode.                          The /EXI command is ignored.
🕵 Steps To Reproduce
from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl()
mapdl.exit()

💻 Which Operating System are you using?
Windows
🐍 Which Python version are you using?
3.11
📝 PyMAPDL Report
na
📝 Installed packages
na
📝 Logger output file
na

Trueeeeee.

I think this related to version not being properly parsed. I will have to tests agains 24.1 and 24.2.
I will need a Windows laptop.

Closing. Delaying until 24.2 release.


Fix panics when updating with nil fields

This is against the API directly, as meradm itself will generally preset
fields so we didn't catch the issue there.

@totahuanocotl when you get a chance, please have another look. Cheers.


Update guideline.svg

Converted to actual circles (for usability), rounded colours

cx and cy should be at 256

My bad!

I forgive you :-)


Adding HMAC support for token Id generation

Adding HMAC signing support

https://wso2.org/jira/browse/IDENTITY-6913

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Android crashing

hi, Sorry for the flurry of issues. I'm unable to get the Facebook plugin to initialize for Android. The following error crops up:
TypeError: Cannot read property 'FacebookSdk' of undefined
File: "/data/data/com.ladeezfirstmedia.ThisOrThat/files/app/tns_modules/nativescript-facebook-login/facebook-handler.js line: 9 column:16
Not sure what's going on here!
thanks,
Jen

Sometimes the .aar library with the sdk for android don't get linked to the platform after installing the plugin. In a few words android can not find .aar library and this end up in the error:
TypeError: Cannot read property 'FacebookSdk' of undefined
File: "/data/data/com.ladeezfirstmedia.ThisOrThat/files/app/tns_modules/nativescript-facebook-login/facebook-handler.js line: 9 column:16
As a workarround for now till the cause is found you can add the facebook sdk dependency manually by changing the build.gradle (platforms/android/build.gradle) like so:
dependencies {
	....
        ....
    compile "com.android.support:support-v4:$suppotVer"
    compile "com.android.support:appcompat-v7:$suppotVer"

    //Facebook sdk
    compile 'com.facebook.android:facebook-android-sdk:4.6.0'
     	....
        ....

}

same here - even after adding the line to build.gradle.

okay - i used livesync --watch. after using run android it went well. maybe this info should be added to the doc? best regards

This error means that the plugin didn't plug. Is the native library what is undefined. I have noticed with all the plugins that the platform sometimes doesn't get the libraries exposes. I can only suggest to remove the plugin, remove the platform, add the plugin and add the platform in that order : -/  hope it starts working after that

Added to the doc


XBPM feedback

Set transmission to 100%
Check that feedback is in position (with some settle time)
Stop feedback
Move to transimission for data collection
Do data collection
Start feedback
Set back to 100% transmission

This is what's used to tell if we have beam so we can just wait on it.
For testing when we have no beam it might be useful to turn this on/off but don't want this accidentally

The checking with settle time relies on https://github.com/bluesky/ophyd/issues/1142

The code used in GDA currently is:
def waitWhileBusy():
	logger.debug("waitWhileBusy()")

	if is_unavailable():
		logger.debug("waitWhileBusy() skipped as feedback unavailable")
		return

	if is_enabled() and not is_paused():
		if isI03():
			if expt_shutter() == 'Closed':
				return
			# if beam already in position, then great!
			if not beam_position_feedback.isBusy():
				return
			# else, get it in position for 3 seconds
			beam_position_feedback.waitWhileBusy()
			beam_in_position = False
			time_to_wait_for_beam = 3 # beam must be in position for this many consecutive seconds
			logger.info("Waiting for beam in position for "+str(time_to_wait_for_beam)+" seconds")
			while not beam_in_position:
				for n in range(time_to_wait_for_beam):
					if not beam_position_feedback.isBusy():
						sleep(1)
						beam_in_position = True
					else:
						sleep(1)
						beam_in_position = False
						break
		if isI04():
			beam_position_feedback.waitWhileBusy()

As discussed with @neil-i03, the reason we want to run with the XBPM on and transmission at 100% for most of the time and turn it off for collections are:

Objects crossing the beam that illuminates the feedback xbpm (e.g. attenuators)  risk a feedback event while crossing - this leads to the feedback motor heading to an extreme and it may not recover ( seen many times)
At higher energies the signal reduces. So low transmission/high energy risks hitting a point where feedback on the xbpms is unreliable. There is a gain change feature, but it can cause the XBPM readback to hang and then it just sits there forever.


Add registry override to apiServer and frontend

Allow the common image registry to be overridden.
Because of the use of internal CAs, I need to rebuild the api server image.
Thus, it ends up in a different registry than the frontend image (which I don’t need to touch).
This PR enables the image registry to be changed for the api server and frontend independently and keeps the registry set in .Values.common.image.registry as default.
Known limitations:
Someone else might find it useful to also define per image pull secrets. I did not implement this, because I don’t have a good way to test it.

@davidr-bgp Thanks for the PR! Do you mind signing off your commits so the DCO check passes?


Suggestion - Add last updated date to Map

It's difficult, while looking at the Website Map to get an indication of when it was last updated.  Is it possible to add in the legend box, the date it was last updated?

I didn't want to add it to dropdown but it is now listed in the bottom right corner


bug-fix: account for gradient accumulation steps in !sample_packing_eff_est sample_packing case

This addresses issues e.g. with warmup_ratio becoming a multiple of the gradient accumulation steps.
See also #977.

Actually I'm not comfortable enough to say this is ready for merging, but I'm using this patch locally to address warmup ratio being off. Perhaps it should be specifically applied there for now until this is sorted out.

@kallewoof warmup_ratio is the total number of steps over all epochs/the entire training run. how many gpus are you using, what hyperparams are you using and what step are you seeing warmup peak at?

@winglian I can post more detailed examples in some days, but this is what I get, with the above patch applied:

Peak learning rate (warmup endpoint, where learning rate = the specified value in axolotl.yml): epoch 1.0
Gradient accumulation steps: 2
Micro batch size: 2
Epochs: 4
Warmup ratio: 0.25

On main I hit peak learning rate at epoch 2.0.
I will try other gas values with and without the patch and post more details if needed (but as noted, it will be some days before I get to it, I'm afraid).

Will revisit this later unless someone fixes in the meantime.