Upgrading Django 1.9.5 from DjangoCMS 3.2.3 to 3.2.4 causes South issue with migration

I just upgraded a working copy of DjangoCMS 3.2.3 to DjangoCMS 3.2.4. It looks like the migration "0009_added_meta_fields.py" has references to south, which no longer exists. This causes migrate to break. Migrate works with DjangoCMS 3.2.3.
>>> import south
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named south
>>> import django
>>> django.VERSION
(1, 9, 5, 'final', 0)
>>> import cms
>>> cms.__version__
'3.2.4'

/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/cms/migrations/0009_added_meta_fields.py
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

Here is the actual error:
./manage.py migrate --list
..

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 83, in handle
    verbosity=self.verbosity,
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/core/management/__init__.py", line 119, in call_command
    return command.execute(*args, **defaults)
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/core/management/commands/showmigrations.py", line 36, in handle
    return self.show_list(connection, options['app_labels'])
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/core/management/commands/showmigrations.py", line 44, in show_list
    loader = MigrationLoader(connection, ignore_no_migrations=True)
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/db/migrations/loader.py", line 49, in __init__
    self.build_graph()
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/db/migrations/loader.py", line 170, in build_graph
    self.load_disk()
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/django/db/migrations/loader.py", line 105, in load_disk
    migration_module = import_module("%s.%s" % (module_name, migration_name))
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Users/jjasinski/Sites/joejasinski/envs/joejasinski/lib/python2.7/site-packages/cms/migrations/0009_added_meta_fields.py", line 3, in <module>
    from south.db import db
ImportError: No module named south.db

Duplicate from https://github.com/divio/django-cms/issues/5220


Use new actions for CI/CD

Github Actions is enabled for Philips-software. Start using actions instead of travis-ci.
https://github.com/features/actions

See https://github.com/philips-software/node/pull/4 for example how to implement this.


Localize https://k8s.io/docs/contribute/ to Russian | Русский

This is a localization request
What would you like to be added
Localize https://k8s.io/docs/contribute/ into Russian | перевести https://k8s.io/docs/contribute/ на Русский.
Why is this needed
Readers who are looking at the Russian documentation, and who might want to contribute (for example, by reviewing changes) should see pages about how to contribute.
Comments
This issue is resolved once https://k8s.io/ru/docs/contribute/ exists and contains at least stub pages.
/language ru
/priority backlog
Connected to #16005

This issue has been fixed by #19022 and requested page is now exist: https://kubernetes.io/ru/docs/contribute/
/close


matrix::colAsVector function incorrectly using $this->row as multiplier

The colAsVector method clearly has a problem. Some simple code to illustrate:
require __DIR__ . '/vendor/autoload.php';
use Np\matrix;
$v = matrix::ar([
	[1,2,3,4,5,6],
	[7,8,9,10,11,12]
]);
echo $v, "\n";
$shape = $v->getShape();
for($i=0; $i<$shape->n; $i++) {
	$vect = $v->colAsVector($i);
	echo $vect, "\n";
}

The output is clearly wrong, and shows the second item in each column drifting off from the correct value.
Np\matrix
1.000000  2.000000  3.000000  4.000000  5.000000  6.000000
7.000000  8.000000  9.000000  10.000000  11.000000  12.000000

Np\vector
1.000000  3.000000

Np\vector
2.000000  4.000000

Np\vector
3.000000  5.000000

Np\vector
4.000000  6.000000

Np\vector
5.000000  7.000000

Np\vector
6.000000  8.000000

I believe this modified version of the function may remedy the problem:
    /**
     * Return a col as vector from the matrix.
     * @param int $index
     * @return \Np\vector
     */
    public function colAsVector(int $index): vector {
        $vr = vector::factory($this->row);
        for ($i = 0; $i < $this->row; $i++) {
            $vr->data[$i] = $this->data[($i *  $this->col) + $index];
        }
        return $vr;
    }

@sneakyimp
thanks for bring the issue,library is not fully tested. kindly join the project as i have very less time to maintain it.you can make pull request with your name tag.
i will update this issue in this winter breaks.


Unable to initiate resource with reserved keyword for/class/import

task = Task(for=Reference(reference='...'))

this code does not work due to reserved keyword for.

Fixed in #18


Add error messages

Please enter a valid six digit hexadecimal color
Please enter a font size between 10px and 42px

We'll the icons later


API docker properties-builder.sh is missing authentication properties

A number of properties are missing from the docker properties builder.
https://github.com/capitalone/Hygieia/blob/master/api/docker/properties-builder.sh

auth.expirationTime=[JWT expiration time in milliseconds]
auth.secret=[Secret Key used to validate the JWT tokens]
auth.ldapServerUrl=[LDAP Server Url, including port of your LDAP server]
auth.ldapUserDnPattern=[LDAP User Dn Pattern, where the username is replaced with '{0}']

@rob-miller-777 @nireeshT

@MarkRx @rob-miller-777 @nireeshT Planning a pr soon which will include the fixes.

Yeah, I am the worst when it comes to updating the docker props...

This was added in #1354.


Support EIP-2537

Description
This PR implements EIP-2037 which adds operation on BLS12-381 curve as a precompile in a set necessary to efficiently perform operations such as BLS signature verification and perform SNARKs verifications.
Tests
Test vectors are copied from go-ethereum.

@sorpaas @boundless-forest Please take a review at this pr.


WIP: Improvements for the implicit time schemes

I have been revisiting the implicit methods to make them more attractive. They are totally able to get the best accuracy, but in terms of speed they are still not able to outperform RK2. They are close now though...

I started including the CFL number to try to keep stability on the implicit schemes


[WIP] RYA-151 Rya Query benchmark tool implemented using JMH.

Please change this to point to the apache master branch.


📝 Document API to handle access requests to gated repositories

To be merged after https://github.com/huggingface/moon-landing/pull/6821

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Provide context for API error messages

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

The CMS passes along error messages from the individual backends, resulting in some pretty cryptic notifications. It would be nice to provide some context or instructions on how to deal with these errors, since the different ways to resolve them are often pretty straightforward.
Describe the solution you'd like

The error messages shouldn't disappear without being explicitly dismissed by the user. They should give a clear description as to why they occur, as well a way to resolve them. There is a bunch of different API errors:

API_ERROR: {"message":"404 File Not Found"}

As far as I know there are two scenarios that cause this error:

The collection folder or file property is missing a value (a dedicated file or folder, can't be blank or root). The file or folder should be relative to root (so src/posts for example).
There are subfolders within the collection folder

API_ERROR: Not Found

The media library folder is missing, or the value of the media library property within config.yml isn't correct.

Failed to load entries: API_ERROR: Not Found

Git Gateway is not enabled: Enable Git Gateway from the Netlify Identity settings or refresh the token
There aren't any entries for a given collection. Not sure if we should throw this error at all actually.

Failed to load entry: API_ERROR: Not Found

The collection folder or file property is missing a value (a dedicated file or folder, can't be blank or root). The file or folder should be relative to root (so src/posts for example).
There aren't any entries for a given collection.

Failed to persist entry: API_ERROR: Not Found

The org account needs to grant access to your Netlify CMS instance: https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/requesting-organization-approval-for-oauth-apps

Failed to persist entry: API_ERROR: Reference update failed

You're using the editorial workflow but already have a branch called cms. This error is fixed by removing the cms branch from the repo.

Not really an API error but pretty easy to resolve:
Failed to load settings from /.netlify/identity

Netlify Identity isn't enabled
config.yml has git-gateway as a backend on a site that isn't hosted on Netlify

FWIW I just ended up here after getting "API_ERROR: Reference update failed" - same fix. I had a branch called "cms" that I'd created to do all the cms setup in my repo!


Errors in Gromacs parsing after NOMAD rebase

Problem: Several gromacs tests fail after rebasing NOMAD.
More specifically, line 1094 of parser.py in gromacs/ throws an error having to do with converting a str input parameter like  '0     0     0' when running test_md_verbose (equivalently, you can simply try to parse the fe_test data under the gromacs test data folder, see error details below).
nb - This is specific to the gromacs parser, lammps tests work fine.
 I don't want to make changes to fix this single problem, because I don't really understand more generally all the possible cases.

It is kind of strange because the type for all of these x_gromacs_inout_control quantities is str and shape == 0. So it should not try to convert. Can you please try to remove the shape attribute in the metainfo defs? Otherwise, please create an issue in gitlab so Theodore can address it. It is coming from the metainfo.

oh ok, I see now. It is trying to convert because the metainfo says it should be a float of shape=[3]:
    x_gromacs_inout_control_acc = Quantity(
        type=np.dtype(np.float64),
        shape=[3],
        description='''
        Gromacs running environment and control parameters.
        ''',)

But I am not sure why either 1. The parameter is now initially being read as a string or 2. The conversion used to work but now does not (I guess this is more likely)?
Does this clarify anything for you in terms of what has changed? Or should I still talk to Theodore?

Ah I miss this, can you simply set it to string. Not sure why it was working before. It this solves the problem, there is no need to talk to him.

Ok, great. It works now. I will created a branch for this issue and then make the quick change before making a pull request.


Detect computed order declaration

If the user creates a computed field deriving value from another computed, the computed source should be declared first:
https://github.com/pmndrs/valtio/pull/84

That's a neat idea!!! Love it!
@thelinuxlich Would you like to work on it? (Or, leave it to someone??)
(Just noticed that @aslemammad is not watching this repo.)

@dai-shi @thelinuxlich Now I found out that it's not on the watching list, sorry. That's great, I'm waiting for @thelinuxlich response, if he won't work on it, I'm here.

I wish I could, I'm drowning in work right now :(

@dai-shi Could you give me an example of how it works?

@Aslemammad Wait a moment. We may introduce a breaking change. https://github.com/pmndrs/valtio/issues/86

Okay, I don't think we drop proxyWithComputed in any case.
So, what you would like to look at is:

https://github.com/pmndrs/valtio/pull/84/files
https://github.com/pmndrs/valtio/issues/82#issuecomment-778020202

So it should warn:
}, {
  quadrupled: (snap) => snap.doubled * 2,
  doubled: (snap) => snap.count * 2,
// We have to put the doubled upon the quadrupled
})

Like that?

yes, that's what i understand.


./spec: add more tests for #my_inject

Because

This adds tests for the #my_inject method to test whether it accepts all kinds of parameters that the built-in #inject method accepts. Currently the tests cover only the case where an initial operand and a block are passed, with these new ones I added it should cover the other possible parameters.
This PR

Test #my_inject when it receives only a symbol
Test #my_inject when it receives an initial value and a symbol..
Test #my_inject when it receives only a block.

Issue

Closes #XXXXX
Additional Information

Pull Request Requirements

[x] I have thoroughly read and understand The Odin Project Contributing Guide
[x] The title of this PR follows the location of change: brief description of change format, e.g. Intro to HTML and CSS lesson: Fix link text
[x] The Because section summarizes the reason for this PR
[x] The This PR section has a bullet point list describing the changes in this PR
[x] If this PR addresses an open issue, it is linked in the Issue section

Hey @Jee-El
Thanks for your PR.
We're hesitant to add this because this is already a complicated area for learners to arrive at. We aren't trying to test the exact behaviour of the Ruby core methods we're trying to mirror.
Is there a reason you feel strongly this should be added? We'd be happy to reconsider any additional information you want to provide

Hey @Jee-El
Thanks for your PR.
We're hesitant to add this because this is already a complicated area for learners to arrive at. We aren't trying to test the exact behaviour of the Ruby core methods we're trying to mirror.
Is there a reason you feel strongly this should be added? We'd be happy to reconsider any additional information you want to provide

Hello, thanks for your reply!
I thought of making this PR because the #inject method can be built cleanly using the new pattern matching that was added in ruby 3.c which was explained 1-2 lessons before this project, so trying to replicate the core #inject method seems like a good exercise to practice all kinds of pattern matching that were explained in that lesson.
I also couldn't really understand the utility of the pattern matching until I tried to use it to implement #my_inject, that was when I realized that it can make a clean and clear solution for some problems.

Maybe we could pend the more complicated tests and clarify that they don't necessarily have to pass, but if the learner is interested in taking it as a challenge, they could make them non-pending and try to get them to pass?


Update Meltano UI Postgres Config to prevent users from editing it

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1391
Originally created by @bencodezen on 2019-12-06 19:58:20

Problem
Postgres credentials are now configured at the SSH level for MeltanoData.com projects and should not be editable by the user on the UI.
Proposed Solution
I'd like to avoid locking it out for everyone. Maybe there's a way to configure it from the server side to lock out the frontend with a config flag? Not sure what to do yet, but putting something here to start discussion.

View 28 previous comments from the original issue on GitLab


Fix fixed stake reward check

The stake reward, even if fixed, includes the fees of the transactions included in the block.
The removed check does not take the fees making the network reject all the blocks which include a transaction. At this point of the function, the total amount of fees is still unknown.
This is safely removed as the check is properly done in line 3322.

@aguycalled do we want to write a test that tries to construct a block which has an incorrect stake amount and test whether it is accepted on the network, or are we confident this is covered correctly by line 3322?

Line 3322 covers correctly the check, but we need general tests for our whole POS implementation, there's none currently.


Layout Configuration: Viewer Button

This is a two step issue:

First, implement a "viewer button" that displays the user assigned short name of the current book collection.

When interacting with this button, the CollectionSelector modal will be displayed. Think of it as an alternative to the icon above it. A user can have both of these enabled at the same time.
Second, add SAB configuration support using config.mainFeatures["layout-config-change-viewer-button"];

Pulls colors from Pane1NameTextColor and Pane1BackgroundColor and PaneNameBorderColor.


Add function to_unixtime_second

Right now, to_unixdate() returns seconds in double type. These two functions return seconds in bigint type.

We are trying to keep down the number of scalar functions in presto, and in this case you can achieve the same by casting to_unixtime to a bigint


[dif/uart] remove non-global return results

This partially addresses #8142, which deprecates non-global DIF return
codes to aid autogeneration of some DIF code.

Do you want to make another pass to use CHECK_DIF_OK (merged now)?

Do you want to make another pass to use CHECK_DIF_OK (merged now)?

Fixed.


replace transform: none to transform: translate3d(0,0,0)

I find (in mobile) when fadeInRight down, the element touch event is not working and some absolute element disappeared if transform is none.

same prob

You’ll have to change the files in source for this change to persist. Make that update and recompile, and I’ll happily merge!

@daneden  I changed the files in source and recompiled

What’s the ./idea file introduced on gitignore? And could you address the merge conflicts?

@daneden  .idea/  directory is my IDEA editor generated

@mrp0xy, can you address the merge conflict? Would be good to have this fix on the next release.


probably need url parameters and headers as criteria for dtoMappingContext

create own Class for more complex matching and allow user to supply instance of it

example when findAll with parentFilter is executed might need diff dto


What's the implication of Mochi releasing the original decoder?

I'm not too versed in ML, what can we now do that we previously couldn't?

Encoder is what they released now, decoder is what we already had. It allows doing video to video workflows.

@kijai Can you please share sample workflow on how to use Encoder?

@kijai Is this correct workflow?

Because when I try to start I'm getting an error:
size mismatch for output_proj.weight: copying a param with shape torch.Size([3, 128]) from checkpoint, the shape in current model is torch.Size([24, 384])

Still figuring it out myself, for now you can get started with this:

The encoder is a different model from the decoder, which was what the first VAE only was. You can get the bf16 version of the encoder from here:
https://huggingface.co/Kijai/Mochi_preview_comfy/blob/main/mochi_preview_vae_encoder_bf16_.safetensors

!!!  Exception during processing !!! object of type 'float' has no len()
Traceback (most recent call last):
  File "F:\Comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\Comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\Comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "F:\Comfy\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MochiWrapper\nodes.py", line 512, in process
    latents = model.run(args)
              ^^^^^^^^^^^^^^^
  File "F:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MochiWrapper\mochi_preview\t2v_synth_mochi.py", line 241, in run
    len(cfg_schedule) == sample_steps
    ^^^^^^^^^^^^^^^^^
TypeError: object of type 'float' has no len()

I think you need to remake that sampler node as it looks wrong, there are more inputs now so old workflows need updating.

i thought that and rebulided with new nodes ty
but i keep gettin the error

Have you refreshed your browser? The cfg_schedule is supposed to be an input, not widget:

yeah thats what i supposed to be the problem but looks bugged or something
look

ok now magically solved after restart  again.

yeah thats what i supposed to be the problem but looks bugged or something
look

Restart and refresh the browser, then recreate the node.

OK O GOT THIS.

experimenting with this sigmas. looks like higher sigma steps value gives better results
trying to understand if theres some sort of denoise level to change

OK I GOT THIS.
experimenting with this sigmas. looks like higher sigma steps value gives better results trying to understand if theres some sort of denoise level to change

Denoise is what affects the sigmas, but yeah it may be simpler to use it like that, so I added it as option to the node:

woah that was so fast! beautiful!
now i wonder if there's a way to trick this and make it work as a IMAGE to video, providing only the first frame and then only latent so mochi can continue

i tryed to use this and got a psycadelic result. nope😁
i think this need some different approach to make Image to Video works

image to video needs a specific model finetuned for it

image to video needs a specific model finetuned for it

I can imagin ... i just desperately want it so much that i tryed everything achieve something even remotely similar to I2V😁


When quiting nvim the pwsh prompt show exta chars

Windows Terminal version
1.14.1432.0
Windows build number
10.0.19044.0
Other Software
NVIM v0.7.0
Steps to reproduce
open a file, then quit
Expected Behavior
No response
Actual Behavior

This issue was not there with same nvim and previous terminal preview.

Did not repro with vim


Dynamically changing the Alarm Threshold not picked up.

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ X] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

I am using Skywalking 8.5 and need to change the alarm setting dynamically, And for this i changed the Service Instance Response Time Rule Threshold value. But it didn't picked up .
As per the document alarm.default.alarm-settings this needs to be set. But not sure how this parameter to be set in Application.yml, so that dynamic changes can be reflected.
Please guide.
Thanks and Regards,
Jayesh Muley

I am not sure about your question. Application.yml has nothing related to the alarm. And the dynamic alarm setting is actually overriding the whole alarm context.

As per the document alarm.default.alarm-settings this needs to be set

The value is the latest content of all alarm rules. Same format as alarm-settings.yml.

This means the Alarm should picked up the latest value setup in alarm-setting.yml.  But in my case I need to restart OAP server in order to reflect the latest value.

This means the Alarm should picked up the latest value setup in alarm-setting.yml. But in my case I need to restart OAP server in order to reflect the latest value.

No, it doesn't mean that. The dynamic content should be updated through the dynamic config center. Not through the original file. https://skywalking.apache.org/docs/main/v8.5.0/en/setup/backend/dynamic-config/


chore(sdk): trim trailing / from issuer-url for metadata endpoint construction

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

Comparison is base (ffd89f9) 89.06% compared to head (b582dc4) 89.06%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #672   +/-   ##
=======================================
  Coverage   89.06%   89.06%
=======================================
  Files         103      103
  Lines        4150     4150
=======================================
  Hits         3696     3696
  Misses        310      310
  Partials      144      144

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


Can we destructuring useContextSelector?

I avoid it will not optimize performance or re-render. So, Can I  destructuring useContextSelector or not. thanks you
const { loadingLogOut, loadingUserProfile } = useContextSelector(ctxAuth, (v) => v[0]);

If I understand your question correctly:

destructuring doesn't help optimizing re-renders with useContextSelector.
what you are looking for is react-tracked, which is based on use-context-selector.

Closing this, but feel free to add more comments.

If I understand your question correctly:

destructuring doesn't help optimizing re-renders with useContextSelector.
what you are looking for is react-tracked, which is based on use-context-selector.

Closing this, but feel free to add more comments.

Thanks you for your answer and the answer is  destructuring doesn't help optimizing re-renders right?

Yes, and that what react-tracked is for. I call it render optimization with state usage tracking.
Ref: https://blog.axlight.com/posts/what-is-state-usage-tracking-a-novel-approach-to-intuitive-and-performant-api-with-react-hooks-and-proxy/
Historically, I developed react-tracked at first, and later extracted non-tracking part to create use-context-selector.


noop system with commands argument added to Render schedule exhibits racing behavior

Bevy version
0.13
[Optional] Relevant system information
AdapterInfo { name: "D3D12 (NVIDIA GeForce GTX 1080 Ti)", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "", backend: Gl }
1.78.0-nightly (7065f0ef4 2024-03-12)

What you did
I updated to Bevy 0.13 from Bevy 0.12. I attempted to render a tilemap using bevy-ecs-tilemap in a WASM/singlethreaded environment.
What went wrong
Nothing rendered. The issue occurs approximately 1 in every 5 loads of the app.
Additional information
MRE: https://github.com/MeoMix/bevy_bug_example/blob/master/src/main.rs
// This code should draw a white square in the center of the window if it runs properly.
// One in every 5-10 runs no white square will render.
// If the `multithreaded` feature is enabled in bevy's Cargo.toml then the square "always" renders (if it's a timing issue it becomes sufficiently difficult to surface with multithreading)
use bevy::prelude::*;
use bevy::render::{Render, RenderApp, RenderSet};
use bevy_ecs_tilemap::prelude::*;

fn main() {
    App::new()
    .add_plugins((DefaultPlugins, TilemapPlugin))
    .add_systems(Startup, (spawn_camera, spawn_tilemap).chain())
    .add_plugins(ExamplePlugin)
    .run();
}

fn spawn_camera(mut commands: Commands) {
    commands.spawn(Camera2dBundle::default());
}

pub fn spawn_tilemap(mut commands: Commands) {
    let tilemap_entity = commands.spawn_empty().id();
    let map_size =  TilemapSize { x: 144, y: 144 };
    let mut tile_storage = TileStorage::empty(map_size);

    let tile_pos = TilePos { x: 0, y: 0 };

    let tile_entity = commands.spawn(TileBundle {
        position: tile_pos,
        tilemap_id: TilemapId(tilemap_entity),
        ..default()
    }).id();

    tile_storage.set(&tile_pos, tile_entity);

    commands.entity(tilemap_entity).insert(
        TilemapBundle {
            size: map_size,
            storage: tile_storage,
            tile_size: TilemapTileSize { x: 128.0, y: 128.0 },
            ..default()
        },
    );
}

pub struct ExamplePlugin;

impl Plugin for ExamplePlugin {
    fn build(&self, app: &mut App) {
    }

    fn finish(&self, app: &mut App) {
        if let Ok(render_app) = app.get_sub_app_mut(RenderApp) {
            render_app.add_systems(Render, test_system.in_set(RenderSet::Queue));
        }
    }
}

// IMPORTANT: need to have commands as an argument here or bug doesn't reproduce!
pub fn test_system(mut commands: Commands) {}

The crucial thing to note about the MRE is that test_system accepts mut commands: Commands but is otherwise empty. test_system is added to RenderApp in the set RenderSet::Queue.
The issue does not reproduce if I remove the unused argument.
I see that bevy-ecs-tilemap also inserts a system into the set RenderSet::Queue here: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/src/render/material.rs#L130
My assumption is that this bug relates to https://github.com/bevyengine/bevy/pull/9822 but only because I have awareness of this change and lack awareness of all changes made in Bevy 0.13.
Correct Output:

Incorrect Output:

Perhaps this isn't actually a bug in Bevy and is just considered a breaking change. I'll explore configuring auto_insert_sync_points to mitigate the issue. It seems scary though because the need only arises when multiple, independent plugins introduce systems dependent on commands to the same schedule.

I agree that adding a noop system shouldn't change anything
I don't know that Bevy is smart enough to detect the system is noop, or if seeing Commands in arguments is enough to insert a sync point even if the command queue is untouched/empty at the end of the system run

I'd add as a side note that we recently found a similar bug in 🎆 Hanabi due to weak ordering (under-constrained systems) and it's entirely possible seeing the symptoms that bevy-ecs-tilemap has a bug which 0.13 now exposes (the 🎆 Hanabi bug predates 0.13 I think, bur changes in 0.13 made it prominent, once every few runs).

I agree that adding a noop system shouldn't change anything
I don't know that Bevy is smart enough to detect the system is noop, or if seeing Commands in arguments is enough to insert a sync point even if the command queue is untouched/empty at the end of the system run

I'd add as a side note that we recently found a similar bug in 🎆 Hanabi due to weak ordering (under-constrained systems) and it's entirely possible seeing the symptoms that bevy-ecs-tilemap has a bug which 0.13 now exposes (the 🎆 Hanabi bug predates 0.13 I think, but changes in 0.13 made it prominent, once every few runs).

I'm not expecting Bevy to be smart enough to detect the noop system. I think it's fine to assume that the signature defined in the system's arguments is indicative of the systems side-effects.
I just don't think there is an intent to apply command buffers automatically in an unordered set of systems. If test_system were added to a schedule, and made use of .before, .after, or .chain to fix its ordering relative to other systems in that schedule, then I would expect to see behavior similar to what is occurring as that's the intent of https://github.com/bevyengine/bevy/pull/9822
In the above code, test_system has been added to a set and that set contains other systems, but the ordering of those systems is not fixed. In this scenario, I expect no change in behavior from bevy 0.12.
It's possible that my understanding here is wrong though. If you could share the Hanabi weak ordering code that might be illuminating to me.

Am confident this isn't an issue with Bevy at this point

Hanabi had a system in RenderSet::Prepare, and another in RenderSet::Queue which depended on the first one, but without any explicit ordering. At the time of writing (Bevy 0.6 or so) those sets where strictly ordered. Today in Bevy 0.13, not only are sets not ordered since stageless landed, as I understand Queue is now typically for systems running before Prepare (the order was swapped). Adding an explicit system ordering .after() solved the issue.

In the MRE's code, test_system has been added to a set and that set contains other systems, but the ordering of those systems is not fixed. In this scenario, I expect no change in behavior from bevy 0.12.

Agreed.

So Queue has its ordering chained relative to other sets, but the systems being added to that set (test_system and queue_material_tilemap_meshes aren't ordered relative to each other)

I don't know what sets being ordered means or does,  but yes, systems in those sets are not ordered. That was the Hanabi bug, and that behavior was confirmed with the rendering team.
So yes this looks like the same kind of bug in bevy-ecs-tilemap than in Hanabi.


[Snyk] Upgrade material-icons from 0.3.1 to 0.7.7

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade material-icons from 0.3.1 to 0.7.7.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 20 versions ahead of your current version.
The recommended version was released 2 years ago, on 2021-07-22.

Release notes

Package name: material-icons

0.7.7 - 2021-07-22No content.

0.7.6 - 2021-07-06No content.

0.7.5 - 2021-07-04No content.

0.7.4 - 2021-06-23Changes

Update fonts and codepoints
Add interpreter_mode, playlist_add_check_circle, playlist_add_circle, south_america, vaccines icons

0.7.3 - 2021-06-21Changes

Use :: for CSS pseudo-elements
Change download script

0.7.2 - 2021-06-11Changes

Update fonts and codepoints
Add switch_access_shortcut, switch_access_shortcut_add icons
Refactor Sass mixins

0.7.1 - 2021-06-05Changes

Add separate CSS and Sass files for each font to reduce build size. Learn more
Refactor Sass mixins

0.7.0 - 2021-05-29Major Changes

Remove eot font files as they are only required for IE6-8
Remove ttf and otf font files as woff2 and woff font files should be enough for modern browsers
Rename font files to match their CSS class names (MaterialIconsOutlined-Regular → material-icons-outlined)
Refactor Sass mixins and remove unused Sass variables ($material-icons-font-name, $material-icons-font-family)

Other Changes

Delete unused svg font file
Remove local() font references in css as they may cause issues with locally installed fonts
Add files field to package.json to include only css, scss and font files in package
Switch to dart-sass as node-sass is deprecated
Update fonts and codepoints
Add airline_stops, airlines, apps_outage, browser_updated, connecting_airports, expand_circle_down, flight_class, interests, mode_of_travel, soup_kitchen icons

0.6.4 - 2021-05-20Changes

Update font files and codepoints
Add co2, comments_disabled, gif_box, group_remove, workspace_premium icons

0.6.3 - 2021-05-08Changes

Update script to get codepoints from font files
Update codepoints

0.6.2 - 2021-05-02

0.6.1 - 2021-04-09

0.6.0 - 2021-04-05

0.5.5 - 2021-04-05

0.5.4 - 2021-03-03

0.5.3 - 2021-02-02

0.5.2 - 2021-01-03

0.5.1 - 2020-12-10

0.5.0 - 2020-12-09

0.4.0 - 2020-12-09

0.3.1 - 2019-04-04

    from material-icons GitHub release notes

Commit messages

Package name: material-icons

cd00582 0.7.7
d5a028a Auto Update
e83a356 0.7.6
fb2cb80 Auto Update
0d44d20 Update versions.json
7b77c00 Update deps
8bfcb52 Update deps
c44a37b 0.7.5
2180da4 Update README
8173b98 Add workflows to auto update, publish and release
7551a2c Update and pin deps
837fca0 Update README
ec92b42 0.7.4
6fdccde Update codepoints
77d1de7 Update fonts
cceaf45 0.7.3
0d72cd8 Update deps
a2a413c Update README
2551c82 Use '::' for CSS pseudo-elements
17e8307 Use versions.json instead of codepoints.json for demo
19ebd71 Change download script
25bca1e Update demo search
3ddf0f4 0.7.2
2ac342f Update codepoints

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Checkmarx One – Scan Summary & Details – a6c8de76-eecc-4ad1-8661-8cee4f5267e6
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

CVE-2023-46233
Npm-crypto-js-3.3.0
Vulnerable Package

Passwords And Secrets - Generic Password
/users.yml: 195
Query to find passwords and secrets in infrastructure code.

Passwords And Secrets - Generic Password
/users.yml: 186
Query to find passwords and secrets in infrastructure code.

Passwords And Secrets - Generic Password
/users.yml: 132
Query to find passwords and secrets in infrastructure code.

CVE-2023-44270
Npm-postcss-7.0.39
Vulnerable Package

Fixed Issues

Severity
Issue
Source File / Package

CVE-2023-2251
Npm-yaml-1.10.2

Cx6b921f00-d395
Npm-vm2-3.9.11


New version of sasview (stable v5.0.0)

Successfully built in a Docker container locally.
Corresponding conda-forge PR: https://github.com/conda-forge/sasview-feedstock/pull/3.

SMI claims the existing beta2 version is buggy. Need to build this stable v5.0.0 for them to test.

Conda-forge's equivalent was built successfully. Merging here.


Description is less optional than I thought

A lot of the data types treat description fields as optional. This seems to be incorrect, I run into errors if they don't exist.

Fixed


bug: Trying to set the trpc context for expo

Provide environment information
in Next it uses Session but I do not believe next/auth and expo mix so I am not sure how to set up the context and the docs are still using next, session.
Is there anyone who can show me sample code or a repo that has used this with next and expo because I am just new to this and not understanding how to connect everything.
Describe the bug
I do not have access to session when calling from expo (i dont think)  I do have an auth store in redux that has the token, userId etc that maybe I could plug in but I have no idea how or which direction to go.
Link to reproduction
https://www.prisma.io/docs/guides/other/troubleshooting-orm/help-articles/nextjs-prisma-client-monorepo
To reproduce
start a mono repo, write your schema,  try to access ctx in your mutation ctx to do things like connect a new mutation to a userId in  your prisma model
Additional information
No response

You need to use the express adapter provided by the tRPC and host the backend separately. I am trying myself to do this still. I will update here once I complete it.
https://trpc.io/docs/server/adapters/express

next-auth doesnt support expo yet. Hopeful we can put something together once they have released v5.
I did some stuff here which sort of works, so the plan is to get some of that merged upstream in v5 https://github.com/t3-oss/create-t3-turbo/pull/133


Freshdesk schema update

Description
In freshdesk streams, "Tickets" table schema has "custom_fields" column in the code, as you can see here

But the column "custom_fields" is not visible in the tickets stream, as shown here

Expected behavior
Want custom_fields column in the "tickets" stream

How can I test this ? I pulled the latest repo and tested it on my local, I did not get the column


⚠ Thumbnails API Endpoint has degraded performance

In 1d2ef10, Thumbnails API Endpoint (https://thumbnails.roblox.com/v1/assets?assetIds=82738847&format=Png&isCircular=false&size=30x30) experienced degraded performance:

HTTP code: 200
Response time: 5180 ms

Resolved: Thumbnails API Endpoint performance has improved in 5842353 after 3 minutes.


Added an ensure block in the MongoPool so it does not leak connection…

…s in case of non-local returns that are used in the same driver.

I need to read it more thoroughly. Maybe I have the wrong context. But:

I don't get the statement of @zecke that #on:do: is called before #ensure: If ensure: is the inner block it will come first
I also don't see that analysis with the dropped packets. That would lead to an unacknowledged tcp window which will make the server to send that again. I doubt in the case of TCP it is easy to screw the packet sequence order. Or did I miss the point?

Indeed I did not spend a lot of time thinking about it. To my current knowledge there are three possible things that could happend:

a successful execution. In this case the current code is vulnerable to non local returns and the mongo driver uses exactly these. So the leakage of connections is sure. I did it at a high rate and exhausted my semaphore count within a short time frame
a non-network error occurs. This is the uncovered variant. The current code will skip the returning to the pool although the error is not connection related. It will also skip a lot of functionality the stack above for any error that might occur
a network error occurs. The on:do: block just resets the pool

For 1. the ensure block only matters for non-local returns. For 2. the ensure: block enables returning a connection for non connection related errors. But it means that there is an error in the voyage code and the sense of either way is questionable. Or there is a place where domain code gets executed and that should be avoided. For 3. the ensure: block will be executed first and returns the connection to the pool and then the on:do: block will reset it.
This is my opinion.

I need to read it more thoroughly. Maybe I have the wrong context. But:

I don't get the statement of @zecke that #on:do: is called before #ensure: If ensure: is the inner block it will come first

What I probably wanted to write is that we first return a connection to the pool and then reset the pool.

a non-network error occurs. This is the uncovered variant. The current code will skip the returning to the pool although the error is not connection related. It will also skip a lot of functionality the stack above for any error that might occur

Oh. What I missed is a race condition. We might return a connection to the pool (and hand it out) that is somehow broken ("wire protocol error", didn't read the entire result from the socket and might get confused on the next iteration). I was focussed about the reset after return case that I missed that.


Upgrade to angular 7 to angular 8

Hello,
I made the upgrade angular 7 to angular 8 on my project.
And the error is occurring when the AOT compile at the production mode:
ERROR in ..\angular4-material-table\src\app.module.ts(4,2): Error during template compile of 'AppModule'
Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'NgModule'
'NgModule' calls 'ɵmakeDecorator'.
Please, can you help?

WIth Angular 8 i have another error :
  Type '() => import("./node_modules/@angular/forms/forms").FormGroup' is not assignable to type '() => import("./node_modules/angular4-material-table/node_modules/@angular/forms/src/model").FormGroup'.

I think a simple recompilation with this PR will fix this.

Merged and created v0.8.0 with it. Thank you @blavenie for your help!

Hello.
Is npm linked automatically to the latest version on github or should I do something different than npm install --save angular4-material-table?


[BUG]  cli_demo.py 使用 Qwen-14B-Chat-Int4，出现RuntimeError: "addmm_impl_cpu_" not implemented for 'Half'

是否已有关于该错误的issue或讨论？ | Is there an existing issue / discussion for this?

[X] 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答？ | Is there an existing answer for this in FAQ?

[X] 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior
错误：RuntimeError: "addmm_impl_cpu_" not implemented for 'Half'
模型：Qwen-14B-Chat-Int4
代码：cli_demo.py
环境： python 3.9
硬件： GPU
/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/cuda/init.py:138: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 11000). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:108.)
return torch._C._cuda_getDeviceCount() > 0
Using disable_exllama is deprecated and will be removed in version 4.37. Use use_exllama instead and specify the version with exllama_config.The value of use_exllama will be overwritten by disable_exllama passed in GPTQConfig or stored in your config file.
Warning: please make sure that you are using the latest codes and checkpoints, especially if you used Qwen-7B before 09.25.2023.请使用最新模型和代码，尤其如果你在9月25日前已经开始使用Qwen-7B，千万注意不要使用错误代码和模型。
Try importing flash-attention for faster inference...
Warning: import flash_attn rotary fail, please install FlashAttention rotary to get higher efficiency https://github.com/Dao-AILab/flash-attention/tree/main/csrc/rotary
Warning: import flash_attn rms_norm fail, please install FlashAttention layer_norm to get higher efficiency https://github.com/Dao-AILab/flash-attention/tree/main/csrc/layer_norm
Warning: import flash_attn fail, please install FlashAttention to get higher efficiency https://github.com/Dao-AILab/flash-attention
Loading checkpoint shards: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00,  5.36it/s]
Welcome to use Qwen-Chat model, type text to start chat, type :h to show command help.
(欢迎使用 Qwen-Chat 模型，输入内容即可进行对话，:h 显示命令帮助。)
Note: This demo is governed by the original license of Qwen.
We strongly advise users not to knowingly generate or allow others to knowingly generate harmful content, including hate speech, violence, pornography, deception, etc.
(注：本演示受Qwen的许可协议限制。我们强烈建议，用户不应传播及不应允许他人传播以下内容，包括但不限于仇恨言论、暴力、色情、欺诈相关的有害信息。)
User> [ERROR] Query is empty
User> [ERROR] Query is empty
User> [ERROR] Query is empty
User> 你好
Traceback (most recent call last):
File "/home/haitaiwork/gptllm/gen/Qwen/cli_demo.py", line 212, in
main()
File "/home/haitaiwork/gptllm/gen/Qwen/cli_demo.py", line 200, in main
for response in model.chat_stream(tokenizer, query, history=history, generation_config=config):
File "/home/haitaiwork/gptllm/.cache/huggingface/modules/transformers_modules/Qwen-14B-Chat-Int4/modeling_qwen.py", line 1273, in stream_generator
for token in self.generate_stream(
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 35, in generator_context
response = gen.send(None)
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/transformers_stream_generator/main.py", line 931, in sample_stream
outputs = self(
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/haitaiwork/gptllm/.cache/huggingface/modules/transformers_modules/Qwen-14B-Chat-Int4/modeling_qwen.py", line 1108, in forward
transformer_outputs = self.transformer(
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/haitaiwork/gptllm/.cache/huggingface/modules/transformers_modules/Qwen-14B-Chat-Int4/modeling_qwen.py", line 938, in forward
outputs = block(
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/haitaiwork/gptllm/.cache/huggingface/modules/transformers_modules/Qwen-14B-Chat-Int4/modeling_qwen.py", line 639, in forward
attn_outputs = self.attn(
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/haitaiwork/gptllm/.cache/huggingface/modules/transformers_modules/Qwen-14B-Chat-Int4/modeling_qwen.py", line 464, in forward
mixed_x_layer = self.c_attn(hidden_states)
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in call_impl
return forward_call(*args, **kwargs)
File "/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/auto_gptq/nn_modules/qlinear/qlinear_cuda_old.py", line 273, in forward
out = torch.matmul(x, weight)
RuntimeError: "addmm_impl_cpu" not implemented for 'Half'
期望行为 | Expected Behavior
运行正常
复现方法 | Steps To Reproduce
No response
运行环境 | Environment
- OS:Ubuntu 18.04
- Python:3.9
- Transformers:4.35.0
- PyTorch:2.1.0
- CUDA (`python -c 'import torch; print(torch.version.cuda)'`):12.1
(llm) ~/gen/Qwen$ python -c 'import torch; print(torch.version.cuda)'
12.1

备注 | Anything else?
No response

根据错误提示，调用CUDA失败，实际在CPU执行了（量化模型依赖autogptq，autogptq<5.0不支持CPU执行）
/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/cuda/init.py:138: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 11000). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org/ to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:108.)

需要按您的实际情况，升级nvidia驱动或者使用低版本的CUDA

根据错误提示，调用CUDA失败，实际在CPU执行了（量化模型依赖autogptq，autogptq<5.0不支持CPU执行）
/home/haitaiwork/gptllm/anaconda3/envs/llm/lib/python3.9/site-packages/torch/cuda/init.py:138: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 11000). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org/ to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:108.)

需要按您的实际情况，升级nvidia驱动或者使用低版本的CUDA

请问下我用openai_api.py部署Qwen-7B-Chat-Int4，请求api的时候也报错"addmm_impl_cpu_" not implemented for 'Half'，AutoGPTQ版本是最新的0.6.0，最新的支持在CPU上运行了吗


Feature: candle coloring based on previous candle

Would like FinancialMapper to provide a predicate for Fill and Stroke, which would contain current or previous index. When I color a candle, I want to know if it's Close value is higher or lower than the previous Close's value. That would be a green or red Stroke depending.
Then fill could be determined on whether or not the Close is higher than Open
I am using

Live-Charts version
0.9.7

.Net Version
4.5

Windows
10

Same with OhlcSeries, except we don't need a Fill value since open and close are clearly represented

FiniancialColoringRule to the rescue, once I figure out why they throw IndexOutOfBoundsException... In any case, this issue is moot.


Fast tap on CollectionView prints a warnning on Android

In the latest dev-app from Play Store (tabris.js 2.0-rc2 and above) relatively fast tab on CollectionView cell leads to the following warning in the console:
Could not call method "insert" on tabris.CollectionView (Reason: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference)

Sometimes during the same fast tap operation the select event is fired with index -1. Is it possible the index property of the event to be -1?!

The problem appears to be a name clash between the recently added native insert method (2792ad555bfea362226388ff15976cffe35a9e41) and the native method of the same name in CollectionView.

The clash has been resolved. @ifurnadjiev Could you try again with the latest nightly?

yes... the warning in the console is gone. Thanks... but I still get event.index -1 on fast tap in select event. But probably this is a completely different issue, which has to be addressed in the native code.

Thanks Ivan. Closing this issue as the warning is gone. The -1 index should be tracked by another issue.


Add option to overwrite (or importing current one) access entry.

Is your request related to a new offering from AWS?
partially
Is your request related to a problem? Please describe.
On the road to the latest version, from 19 to 20.+ there were some small steps done.
at some point module created access point for runner. And now it is not possible to use latest versions for module, as it can't use already created role.
│ Error: creating EKS Access Entry (prj:arn:aws:iam::<<ID>>:role/github-runner): operation error EKS: CreateAccessEntry, https response error StatusCode: 409, RequestID: 3378c596-fb49-4cee-bc32-31ffdea9056f, ResourceInUseException: The specified access entry resource is already in use on this cluster.
│
│   with module.eks.aws_eks_access_entry.this["cluster_creator_admin"],
│   on .terraform/modules/eks/main.tf line 191, in resource "aws_eks_access_entry" "this":
│  191: resource "aws_eks_access_entry" "this" {
│
╵
Error: Process completed with exit code 1.

Describe the solution you'd like.
Would be good to have option to import current access entry.
Describe alternatives you've considered.
atm i manually added record in tfstate (which is strongly not recommended), and it worked well.

you can use https://developer.hashicorp.com/terraform/language/import

We're running into the same issue. Simply using terraform import is not ideal and not a complete solution - we need something that will work for new and existing clusters created by this module.
We have a company-standard terraform module containing this one. We are creating clusters everyday and maintaining existing clusters with this same module. For existing clusters, we could just set authenticationMode to API_AND_CONFIGMAP with no access_entries and let the EKS API set the two default access entries for cluster creator and worker nodes. This is what EKS automatically does when making this transition. Because of this, we cannot use the import block because those resources don't exist when starting a terraform apply.
So when we have an access entry defined (either manually or via the enable_cluster_creator_admin_permissions property), this has to be a multi-step operation with the first one resulting in failure:

Upgrade the module w/ new EKS Access Entries
Run terraform apply, fully expecting it to fail with the error mentioned in this thread.
Run terraform import, as prescribed.
Re-run terraform apply to complete the operation.

Another option could be manually going through the clusters and running:
aws eks update-cluster-config \
   --name <CLUSTER_NAME> \
   --access-config authenticationMode=API_AND_CONFIG_MAP

before running terraform apply. Coupled with the addition of a import block in the module, this could avoid running into the error.
I think this will be our game plan. Thank you @yaroslav-nakonechnikov for raising this issue! This helped me think through this problem better 😄

Because of this, we cannot use the import block because those resources don't exist when starting a terraform apply

which is exactly why we cannot support it in this module

we need something that will work for new and existing clusters created by this module

I am open to thoughts, but I cannot do anything about resources created outside of this module. I don't know when they will or will not exist, I don't know what they will be named or what users will name their resources - its an unknown of unknowns problem
Have you seen the upgrade guide? If you followed the upgrade guide, you still have a multi-part process but without errors. Using https://github.com/clowdhaus/terraform-aws-eks-migrate-v19-to-v20 which was created specifically for aiding in the upgrade process will avoid the apply error you listed above in step 2

@bryantbiggs  https://github.com/clowdhaus/terraform-aws-eks-migrate-v19-to-v20 mentioned only ones, with a note to have terraform 1.7+.
so it can't be used by all, and looks like a workaround.
still, i'd lile to see option, which won't force adding/removing access entries.
not all using single runner to run terraform deploy, so there is a possibility to utilize different roles.
and atm it looks like each role will be overriden by others.
Would be good if i'm wrong, so keeping process of upgrading further.

I think you need to familiarized yourself with how EKS provided access to clusters prior to cluster access entry, and what EKS is doing when you opt into cluster access entry on those clusters

@bryantbiggs thanks for your thoughts on all this! I had not seen your upgrade guide, only the changelog in this repo. Thank you for pointing that out.

just to be clear, this is the upgrade guide which we store under the docs/ directory https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/docs/UPGRADE-20.0.md
in there, it refers to this one off repo used to aid in migrating from v19 to v20


similar to how it was on i3? :) samedir fwt! :D

I dunno, I keep pressing mod+s for scratchpad all the time :D and I simply can't live without samedir :dagger: :dagger: :dagger:  also spcalc exists in floating rules, but it was under the spranger command

except for the proposed key bindings which you don't have to merge,  I have changed the spranger variable to spcalc, as in your keybindings it's called spcalc while up in the config where you define the scratchpads and what they run it's called spranger


Add links to documentation and demo app in README

Add links to documentation and demo app.
This PR also fixes #5.

lgtm


Add generification of crypto provider;

What is this pull request?
Now possible to use cryptography without explicit configuration of algorithm;
Why do you implement it? Why do we need this pull request?
This PR provides separation of crypto_provider with Signer and Verifier. And make default algorithm specialization of it.
Additional changes:

Rework hashable documentation
Fix warnings in seed and keypair files
Reworked crypto providers with static context
Fix CMake dependencies
Add usage tests

Codecov Report

Merging #716 into feature/shared_model will decrease coverage by 0.24%.
The diff coverage is 52%.

@@                   Coverage Diff                    @@
##           feature/shared_model     #716      +/-   ##
========================================================
- Coverage                 43.49%   43.25%   -0.25%
========================================================
  Files                       298      313      +15
  Lines                     12022    12154     +132
  Branches                   6599     6661      +62
========================================================
+ Hits                       5229     5257      +28
- Misses                      721      796      +75
- Partials                   6072     6101      +29

Impacted Files
Coverage Δ

..._model/cryptography/ed25519_sha3_impl/verifier.cpp
25% <ø> (ø)

shared_model/cryptography/seed.hpp
0% <ø> (ø)

shared_model/cryptography/keypair.hpp
16.66% <0%> (ø)

...ed_model/cryptography/ed25519_sha3_impl/signer.cpp
42.85% <100%> (ø)

...l/cryptography/crypto_provider/crypto_verifier.hpp
100% <100%> (ø)

...del/cryptography/crypto_provider/crypto_signer.hpp
100% <100%> (ø)

test/module/shared_model/crypto_usage_test.cpp
30% <30%> (ø)

...cryptography/ed25519_sha3_impl/crypto_provider.cpp
37.5% <62.5%> (ø)

shared_model/interfaces/primitive.hpp
0% <0%> (ø)

... and 13 more

Continue to review full report at Codecov.

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


Switch to JDK 21

This updates the build JDK to 21, since Elasticsearch@main now requires 21 to build. I bumped the github action versions too at the same time

juts noticed the errors in the build:

s = '[ERROR] Cannot build. Neither JAVA21_HOME nor JAVA_HOME point to a JDK 21 installation.', cls = None, object_hook = None, parse_float = None
  | parse_int = None, parse_constant = None, object_pairs_hook = None, kw = {}

<br class="Apple-interchange-newline">

Unrelated but do we also need to update something here:
https://github.com/elastic/rally/blob/5dc558f8741e483e853ca2131ad374f610b0bad1/.buildkite/it/run.sh#L35?

Just serverless thats waiting, but that test isnt touched by this PR


Better Discord Functions Not Appearing

None of the functions are appearing, and the emotes don't appear either. When going through the auto installer, it said there was no errors.

maybe corrupt emote data.I am in process of making a Vanilla Discord PTB that has the normal files + modified app.asar files with BetterDiscord Embedded in it. Downside is that when PTB updates dont update unless I tell you too or Vanilla PTB RIP.

In my case BD is loading, plugins are loading but BD settings tab don't appear.

ctrl+shift+i on windows to check for errors
On Mac OSX won't work if you're using the top menu for accessing preferences. Only the button from the application (the browser interface) triggers the display of BetterDiscord menu. Also you can use ctrl+opt +i for chromium console

After Ctrl+R I saw BD what's new 1.59 dialog and settings tab works now.

Sometimes it fails to load for one reason or another and there's no feedback for it. Will be made more stable when I have time.


Can you provide the pretrained_encoder: /data5/ziweicui/semi_supervised_resnet50-08389792.pth file from config.yaml?

Can you provide the pretrained_encoder: /data5/ziweicui/semi_supervised_resnet50-08389792.pth file from config.yaml?
semi_supervised_resnet50-08389792.pth and the Pre-trained UnirepLKNet models you provide in your GitHub: Is unireplkNet-models the same thing?
Your reply is very important to me, thank you.

Can you provide the pretrained_encoder: /data5/ziweicui/semi_supervised_resnet50-08389792.pth file from config.yaml? semi_supervised_resnet50-08389792.pth and the Pre-trained UnirepLKNet models you provide in your GitHub: Is unireplkNet-models the same thing? Your reply is very important to me, thank you.

Yes, they are the same thing. Sorry for the inaccurate description. We will speed up the process of improving it.

The pretrained_encoder: /data5/ziweicui/semi_supervised_resnet50-08389792.pth file from config.yaml,  is used for our ablation. So, you just need to change this path to the path including unireplkNet-models. Thanks for the reminder.


ctrl+E not reload extension but open search bar?

To Reproduce
pnpx wxt@latest init <project-name>
pnpm i
pnpm dev

learn-wxt.zip
Steps to reproduce the bug using the reproduction:

Install dependencies: pnpm i
Start dev mode: pnpm dev
Press Ctrl+E on Windows it focus on the search bar but do nothing with the extension

  System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-12500H
    Memory: 3.82 GB / 15.73 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.21 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.14.1 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (120.0.2210.121)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    wxt: ^0.13.0 => 0.13.5

Hmm, ctrl+E is a keyboard shortcut on windows... Ok, we'll have to change it.
Thoughts on ctrl+shift+E?

Hmm, ctrl+E is a keyboard shortcut on windows... Ok, we'll have to change it.
Thoughts on ctrl+shift+E?

I don't think ctrl+shift+E would make it more complicated, rather click on Extension reloader add-ons on the store faster. Maybe shift+E or shift+space+E

I think Alt | Ctrl is required, maybe Ctrl+B?

On Firefox, ctrl+B opens bookmarks :/ So that's not a perfect solution either. Better, since it solves the problems for Wincdows+Chrome, a more common combo.
I think we need to use ctrl+shift if we want it to work the same on all OS and browsers.

Does ctrl+shift+F or ctrl+shift+H work on Firefox?
F stands for Fresh would make sense.

On mac, cmd+shift+F toggles fullscreen for a window, and ctrl+shift+H opens a history panel lol

What about ctrl+;? Doesn't stand for anything, but it might be unique?

Ugh

Why does Mac have so many shortcuts? lol. It would work and finger-friendly. if that check document does nothing seriously...

RIP doesn't like non-alphanumerics...

Wait, your original suggestion of Alt+E might work. Works on mac, for Firefox and Chrome. Can you check it on windows?

nah, it open the menu setting

Maybe Alt+B ? worked for me

Alt+B works, but it's a little far from the option key on my keyboard. What about Alt+R?

Seem worked for me.

Alright, I'll update it to Alt+R! That was a nightmare lol

np, glad to help!

Released in [v0.14.1](https://github.com/wxt-dev/wxt/releases/tag/v0.14.1]


Use asyncio.run to execute graphql coroutine

Avoid manual set-up of event loop which caused warnings in
aiodataloader.DataLoader.init() for Python >= 3.10.
See also https://docs.python.org/3/library/asyncio-task.html#running-an-asyncio-program
Issue
The DataLoader class in the aiodataloader package calls
asyncio.get_event_loop() in its __init__() method (i.e. when a new
class instance is constructed).
asyncio.get_event_loop()
is deprecated in Python 3.10 and when used without a running event loop,
a warning is emitted. This comes a bit as a surprise since in
boxtribute_server.routes the
execute_async()
function explicitly sets up a new event loop. However it's only
activated when loop.run_until_complete() is called which is after
the data loaders are constructed.
Solution
The official
docs
advise to use the high-level asyncio.run to run coroutines instead of
manually dealing with event loop setup etc. Setting up dataloaders
happens within the coroutine. Because an event loop exists the warning
is not displayed anymore.

 2.0 Fix warnings when running pytest


Issue with PyOpenGL on macOS since Big Sur

@agramfort ran into this issue:
https://github.com/mcfletch/pyopengl/issues/55
https://github.com/mcfletch/pyopengl/issues/72
It appears to me PyOpenGL maintenance could be in a better shape … I suppose we could monkey-patch it for now?

If the project is inactive and there are fixes I think this would be a viable solution. However, I'd still make sure to make upstream PRs with our changes (hoping that the maintainers will merge them at some point).

I agree @cbrnr
Just thought that maybe pushing out a hotfix plus nee installers could make sense

The problem does not occur with Python 3.9 and newer. So the easiest "fix" is to just update Python!


Fix commonpath in read-only filesystem

Description
When downloading a model, commonpath is defined as the LCA (Lowest Common Ancestor) of huggingface's cachedir and target output directory. When this ends-up being a directory that is not read-only (e.g. /), an OSError (errno: 30) is thrown.
This PR catches that error and tries to check symlink creation in the destination directory.
To reproduce
model_path = snapshot_download(repo_id=model,
                               local_dir='/tmp',
                               cache_dir=None, # TRANSFORMERS_CACHE default (i.e. ~/.cache/huggingface/hub/)
                               token=os.environ.get('HF_TOKEN', None))

Original behaviour
Tested on MacOS 14.1.2 and python 3.11.4, the output was:
OSError: [Errno 30] Read-only file system: '/tmpzeu59eox'

New behaviour
The model is persisted as intended.

I am not even sure why symlinks are originally tested on commonpath, but tried to stay as close as possible to the initial functionality.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


[Request] Remove the $ being automatically added into the buy and sell price string.

Hi,
I am using a different symbol my server's economy but there seems to be no way to remove the $ from the %BUY-PRICE% and %SELL-PRICE% placeholders. Could they be removed so that we can add our own into the configuration?

AFAIK, Vault is responsible for adding the economy sign which is gotten from the economy plugin itself.


Adjust Subtitles

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

A way to automatically adjust/fix subtitles to be more in line with TED guidelines.
Describe the solution you'd like

A checkbox, on by default, that runs a separate function to provide a second pass to add those fixes programmatically.
Describe alternatives you've considered

NA
Additional context

[ ] There is a subfixer9 executable that provides those changes. which can be used as ./subfixer9 -file TestFile.srt 20.999 -speed_epsilon 0.5 however it be good to look a the code, and see if this can be brought into the app as a node/js module, to keep consistency with the rest of the project.

Request by Michele Gianella

$ ./subfixer9

./subfixer9: Available parameters are below
  -chars_per_line int
        Perfection Check - No. of characters/line (default 42)
  -expand_closer_than float
        Expand two subtitles closer than n seconds (default 0.5)
  -file string
        Subtitle Input File (Required)
  -forbidden_chars string
        Perfection Check - Forbidden Characters (default "{./;/!/?/,:}")
  -join_shorter_than int
        Join two lines shorter in length than (default 42)
  -limit_to string
        Limit to range or list of subtitle id's (1-2,4-10,14-16,18)
  -line_balance float
        Perfection Check - Length Balance (%) (default 50)
  -max_lines int
        Perfection Check - Max. lines (default 2)
  -min_length float
        Minimum Length for each subtitle (default 1)
  -mode string
        Operation Mode (normal/perfection) (default "normal")
  -newlines_as_chars
        Perfection Check - Treat newlines as characters
  -prefer_compact
        Perfection Check - Prefer Compact Subtitles (default true)
  -reading_speed float
        Perfection Check - Reading Speed (ch/sec) (default 21)
  -shrink_longer_than float
        Shrink a single line subtitle longer than n seconds (default 7)
  -spaces_as_chars
        Perfection Check - Treat Spaces as characters (default true)
  -speed float
        Desired Characters Per Second (default 21)
  -speed_epsilon float
        Epsilon in % of Speed value (default 1)
  -split_longer_than float
        Proportionately split a two line subtitle longer than n seconds (default 7)
  -trim_spaces int
        Trim space to left & right of each subtitle (default 1)


Optimize fs::copy

Currently, FileSystem::copy
https://github.com/rust-osdev/uefi-rs/blob/1b969948b188e74f0f98b50c9865ea9dec852bad/uefi/src/fs/file_system/fs.rs#L36-L45
is inefficient. It should be refactored to use a 2 MiB buffer or so to avoid allocations of possibly multiple gigabytes.

 I'd recommend 1MiB buffers like the kernel does.


Removing implemented proposals.

What's the motivation behind this? These are a record of design decisions and dev documentation that I think should be kept around.

I think the word proposals isn't an accurate reflection.
Happy to move them to another directory called design-decisions if necessary.

Removing as have re-worked this in PR #1029


100% or 0 for non-available stats

Addresses https://github.com/aconrad/pycobertura/issues/144.
Can you please review, @aconrad ?

Thanks for this! I'm sorry it took so long to review.


We gotta change the description of nuitka

3.12 -> 3.13

elaborate.

I updated it, but I didn't even state its support in the changelog, behind on those things.


Correct prop names in docs

These were plural when they're singular in the code :)

I was looking at the wrong section :man_facepalming:


Add LICENSE file

Can you please add a full text license file to this project?
https://help.github.com/articles/adding-a-license-to-a-repository/

Done, thanks for reminding me!


Why did we use the threshold of 2.9

execuse mei just wanna ask you one simple question, why did you drop the 'Time'. data = df.drop(['Time'], axis=1)
could you please response to this question


"unexpected keyword argument: visibility" on attempted Bazel build

Hi,
I have tried to add abseil as a dependency to my project. I followed the official tutorial on how to do this, just using a newer version of abseil.
This is what I added to my WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# other dependencies ...

http_archive(
  name = "absl",
  urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.tar.gz"],
  strip_prefix = "abseil-cpp-20220623.1",
  sha256 = "91ac87d30cc6d79f9ab974c51874a704de9c2647c40f6932597329a282217ba8"
)

# used by absl
http_archive(
    name = "bazel_skylib",
    urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz"],
    sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728",
)

When I try to build a target with @absl//absl/time:time as a dependency or build that lib directly with bazel build @absl//absl/time:time command, I get the following error:
ERROR: Traceback (most recent call last):
        File "/home/user/.cache/bazel/_bazel_user/feaafeaf3ae6967f05cf4a7aa3a87089/external/absl/absl/BUILD.bazel", line 100, column 29, in <toplevel>
                selects.config_setting_group(
        File "/home/user/.cache/bazel/_bazel_user/feaafeaf3ae6967f05cf4a7aa3a87089/external/bazel_skylib/lib/selects.bzl", line 79, column 5, in _config_setting_group
                def _config_setting_group(name, match_any = [], match_all = []):
Error: _config_setting_group() got unexpected keyword argument: visibility
ERROR: /home/user/.cache/bazel/_bazel_user/feaafeaf3ae6967f05cf4a7aa3a87089/external/absl/absl/time/BUILD.bazel:28:11: errors encountered resolving select() keys for @absl//absl/time:time
ERROR: Analysis of target '@absl//absl/time:time' failed; build aborted:

Could you please help me resolve this build problem? Is it a problem with my WORKSPACE or something's wrong with absl Bazel files?

We cannot offer help without a complete reproduction. Try filling out all the information in https://github.com/abseil/abseil-cpp/blob/master/.github/ISSUE_TEMPLATE/00-bug_report.md and including all code in your report.

I have found the problem when I was preparing the minimal reproducible example. Below, I'm providing the explanation of the problem and solution for those who find this issue in Google search.
For me, reordering of some rules in my WORKSPACE solved the problem. This is a minimal WORKSPACE, that fails the build:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

_RULES_BOOST_COMMIT = "652b21e35e4eeed5579e696da0facbe8dba52b1f"

http_archive(
    name = "com_github_nelhage_rules_boost",
    sha256 = "c1b8b2adc3b4201683cf94dda7eef3fc0f4f4c0ea5caa3ed3feffe07e1fb5b15",
    strip_prefix = "rules_boost-%s" % _RULES_BOOST_COMMIT,
    urls = [
        "https://github.com/nelhage/rules_boost/archive/%s.tar.gz" % _RULES_BOOST_COMMIT,
    ],
)

load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
boost_deps()

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

# Here I had a rule calling "git_respository" loaded above.
# However, the problem occurs even when "git_repository" is not called - just loading it is enough to fail the build.

# used by absl
http_archive(
    name = "bazel_skylib",
    urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz"],
    sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728",
)

http_archive(
  name = "absl",
  urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.tar.gz"],
  strip_prefix = "abseil-cpp-20220623.1",
  sha256 = "91ac87d30cc6d79f9ab974c51874a704de9c2647c40f6932597329a282217ba8"
)

And a simple BUILD
cc_binary(
    name = "main_test",
    srcs = ["main_test.cpp"],
    deps = [
        "@absl//absl/time"
    ]
)

With the above WORKSPACE and BUILD, bazel :main_test fails with the error from my original post.
After some investigation, I've found that rules from com_github_nelhage_rules_boost and from @bazel_tools//tools/build_defs/repo:git.bzl use bazel_skylib in a different version than 1.2.1 that I import for abseil.
After moving bazel_skylib import to the top of the WORKSPACE, the build succeeded:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# used by absl
# must come before the Boost rules and load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
http_archive(
    name = "bazel_skylib",
    urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz"],
    sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728",
)

_RULES_BOOST_COMMIT = "652b21e35e4eeed5579e696da0facbe8dba52b1f"

http_archive(
    name = "com_github_nelhage_rules_boost",
    sha256 = "c1b8b2adc3b4201683cf94dda7eef3fc0f4f4c0ea5caa3ed3feffe07e1fb5b15",
    strip_prefix = "rules_boost-%s" % _RULES_BOOST_COMMIT,
    urls = [
        "https://github.com/nelhage/rules_boost/archive/%s.tar.gz" % _RULES_BOOST_COMMIT,
    ],
)

load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
boost_deps()

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

http_archive(
  name = "absl",
  urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.tar.gz"],
  strip_prefix = "abseil-cpp-20220623.1",
  sha256 = "91ac87d30cc6d79f9ab974c51874a704de9c2647c40f6932597329a282217ba8"
)


EMR cluster discovery and visualization.

Feature name
EMR cluster discovery and vizualization.
Is your feature request related to a problem? Please describe.
I'd like to be able to visualize EMR clusters and their relationships to other discovered resources, like VPC, Route53, S3, Glue Data Catalog, and other resources,
Describe the feature you'd like to see implemented
Discovery and rendering in diagrams just like the existing resources.
Describe the value this feature will add to AWS Perspective
This feature will make AWS Perspective usable by customers that are primarily using the AWS big data stack and specifically using EMR for data ingestion and pipeline processing.
Describe alternatives you've considered
We've looked 10's of commercial and open source product that do AWS resource visualization and they all fall short in 1 or 2 specific areas of keen interest to analytics and big data stack AWS customers:

Visualizing the big data stack service resource, like Redshift and EMR.
Completely visualizing the networking components of VPC, including VPCs, subnets, all gateways, ELBs, and connecting resources.

We've evaluated this request and added it to our backlog but it is not prioritised in the immediate roadmap for the solution.


Change HTML entity to simple ampersand

Current Behavior
The current behavior of the success message on this page is that "You agreed with T&C :)" is returned if the checkbox is checked.

Proposed Change
Since the value of the text is escaped, the plain ampersand character can be sent without using the entity.

JS Fiddle of Proposed Change
https://jsfiddle.net/mgxrL5jy/

Thanks @CoeusCC!


Problems installing ohmyzsh ("command not found: ^M")

I have problems while installing Oh my zsh. The console is giving me the following errors (screenshot). How can I install oh my zsh properly without errors?

Please post what commands have you run to install oh-my-zsh and what's the output of git config core.autocrlf

Thank you for this note on git. I actually imported my git configuration from windows, which caused this problem. I now deleted the oh my zsh folder and its config, and the gitconfig file as well. I read while looking for a solution about the Windows-line endings, which are bad for oh my zsh.


New submit tx endpoint

adp-1171

[x] swagger extended
[x] added impl scaffolding
[x] added submitTransaction link
[x] add first impl for submitTransaction
[x] add integration testing
[x] add impl for submitTransaction using decodeTransaction

Comments
This PR depends on https://github.com/input-output-hk/cardano-wallet/pull/3028 in a sense that should be merged after

Issue Number

@paweljakubas I found 1 issue/corner case playing on the branch. (Planning to add an integration test for that in https://github.com/input-output-hk/cardano-wallet/pull/3079).
To reproduce:

construct and sign transaction using wallet A
submit it from wallet B

Expected:
I'd expect an error message from the API saying that the transaction does not belong to this wallet
Actual:
Transaction is submitted successfully but it is constantly in pending until it goes to expired.

@piotr-iohk  Well, this behavior is expected in a sense that it is possible for any wallet to send any tx. And wallet B should have here pending->expired as it does not affect it, wallet A should experience balance change after the tx is sent via wallet B.
Nevertheless, we can add check and disallow it. So it will be not possible if in tx there is no inputs/outputs/withdrawals belonging to a given wallet. We have this information as we use decodeTransaction inside. @Anviking are you in favor of this check? I am inclined to agree we should have it as Piotr suggested.

Yes, this may be misleading/confusing if someone makes a mistake submitting tx from another wallet than it originates from, therefore I'm for forbidding it (with proper error message).

@Anviking are you in favor of this check? I am inclined to agree we should have it as Piotr suggested.

Transaction is submitted successfully but it is constantly in pending until it goes to expired.

I'd agree. So If I understand correctly, a transaction can be submitted using a wallet to which it is foreign, and the tx may make it on chain, but the wallet will never notice? This seems like a big potential source of confusion, so seems better to forbid it.

We have this information as we use decodeTransaction inside.

I came to think about, if guaranteeing things like all txs that can be submitted to be pending, can also transition to in_ledger are desirable, perhaps we could re-use the discovery logic from Primitive.Model.
https://github.com/input-output-hk/cardano-wallet/blob/25ef435c6e6a30d9d8ce3e454ee20845bdc4ae10/lib/core/src/Cardano/Wallet/Primitive/Model.hs#L598
However I don't feel strongly about it. Possibly in the realm of multiple wallet instances and inter-dependent txs, your approach might be more reliable (it would discover txs which only spend inputs which are not yet in the wallet utxo) 🤷♂
@paweljakubas what do you think about a property test along the lines of the above? (all txs that can be submitted to be pending, can also transition to in_ledger) Possibly a bit tricky, but also possibly very good to have.

Maybe something like this (just scaffold code)
-- | 'submitTransaction' should accept exactly those
-- transactions which are discoverable on-chain.
--
-- If it were to accept a tx which cannot be discovered, we would not
-- find out when it transitions from `pending` to `in_ledger`.
--
-- If it were to reject a tx which can be discovered, we
-- probably should have accepted it.
prop_submitTransactionAcceptsDiscoverableTxs tx w0 = do
    let (res, w1) = submitTransaction tx
    case res of
      Right _ -> label "success" $ do
        listTransactions w1 `containsPending` tx
        let w2 = applyBlock (mockBlock [tx]) w1
        listTransactions w2 `containsInLedger` tx
      Left  _ -> label "failure (tx unrelated to wallet)" $ do
        listTransactions w1 === []
        let w2 = applyBlock (mockBlock [tx]) w1
        listTransactions w2 === []

The above assumes pure submitTransaction and listTransaction which is unrealistic atm. But with monadicIO, a no-op dummy NetworkLayer and either Sqlite or MVar DBLayer... maybe something like that could work...

bors try


Only RSP1A?

Would it be possible to add support for the other SDRPlay models? They all use the same driver. I tried to run it with a RSPdx but everytime I tried it I got an error message that no device was found.

As far as I know there shouldn't be anything causing an RSPdx not to work.
Some quick troubleshooting questions:

Can you use the device on the host machine?
Is the device properly passed into the Docker container?
Is the device already in use by some other software?
Have you tried the soapyMiri driver or the sdrplay api v3 release?

The system is a Raspberry Pi5 that has the Bookworm OS and it is up-to-date. If I swap the RSPdx for a RSP1A, the software finds the RSP1A and runs. The RSPdx was used on that Pi earlier for dumphfdl also via soapy. The docker-compose.yml has the SOAPY=driver=sdrplay,serial= with the serial number of the RSPdx. Change it to the serial of the RSP1A was all that was needed to use it but with the RSPdx and it's serial number it doesn't work.
On the Pi5 nothing else runs that uses the soapy system so the RSPdx is not in use by any other software.
The sdrplay 3.14 api is installed on the pi when it was installed, the soapyMiri driver I didn't try.

If you run SoapySDRUtil - -probe or - -find on the host, does it find the rspdx? The latest version of the container uses sdrplay api v2 because v3 doesn't play nice with multiple containers. Try disabling the api service on the host, and if that alone doesn't work, try using the api v3 version, the tag to pin to is on the releases page of the repo.

Can you post the result of lsusb and ls - l /dev/bus/usb/* and your compose file?

In the yml file I commented out most parts as I wanted to take a step by step approach.
john@Pi5a:~ $ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 1df7:3030 SDRplay RSPdx
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
john@Pi5a:~ $ ls -l /dev/bus/usb/*
/dev/bus/usb/001:
total 0
crw-rw-r-- 1 root root 189, 0 Mar 15 15:07 001
crw-rw-rw- 1 root root 189, 1 Mar 15 15:07 002
/dev/bus/usb/002:
total 0
crw-rw-r-- 1 root root 189, 128 Mar 15 15:07 001
/dev/bus/usb/003:
total 0
crw-rw-r-- 1 root root 189, 256 Mar 15 15:07 001
/dev/bus/usb/004:
total 0
crw-rw-r-- 1 root root 189, 384 Mar 15 15:07 001
john@Pi5a:/opt/adsb $ cat docker-compose.yml
version: '3.8'

services:
  soapy2chans:
    container_name: soapy2chans
    hostname: soapy2chans
    image: ghcr.io/rpatel3001/docker-soapy2tcp-channels
    restart: always
#    device_cgroup_rules:
#      - 'c 189:* rwm'
    devices:
      - /dev/bus/usb
    environment:
      - TZ=${FEEDER_TZ}
      - SOAPY=driver=sdrplay,serial=223405D447
      - RATE=8400000
      - FREQ=133500000
      - GAIN=agc=true
      - BASEPORT=1234
      - CHANS=131000000,4;136600000,4;133500000,1
      - EXIT_ON_ERROR=true
    volumes:
      - /dev:/dev:ro

  acarsmuxer:
    container_name: acarsmuxer
    hostname: acarsmuxer
    image: ghcr.io/rpatel3001/docker-rtlmuxer
    restart: always
    depends_on:
      - soapy2chans
    ports:
      - 7374:7374
    environment:
      - TZ=${FEEDER_TZ}
      - SRC_ADDR=soapy2chans
      - SRC_PORT=1234

  vdlm2muxer:
    container_name: vdlm2muxer
    hostname: vdlm2muxer
    image: ghcr.io/rpatel3001/docker-rtlmuxer
    restart: always
    depends_on:
      - soapy2chans
    ports:
      - 7375:7374
    environment:
      - TZ=${FEEDER_TZ}
      - SRC_ADDR=soapy2chans
      - SRC_PORT=1235

#  airbandmuxer:
#    container_name: airbandmuxer
#    hostname: airbandmuxer
#    image: ghcr.io/rpatel3001/docker-rtlmuxer
#    restart: always
#    depends_on:
#      - soapy2chans
#    ports:
#      - 7376:7374
#    environment:
#      - TZ=${FEEDER_TZ}
#      - SRC_ADDR=soapy2chans
#      - SRC_PORT=1236

  dumpvdl2:
    container_name: dumpvdl2
    hostname: dumpvdl2
    image: ghcr.io/sdr-enthusiasts/docker-dumpvdl2
    restart: always
    depends_on:
      - vdlm2muxer
    environment:
      - TZ=${FEEDER_TZ}
      - SOAPYSDR=driver=rtltcp,rtltcp=vdlm2muxer:7374
      - CENTER_FREQ=136600000
      - FREQUENCIES=136725000;136775000;136800000;136825000;136875000;136975000
      - FEED_ID=JK_EHEH
      - VDLM_FILTER_ENABLE=true
#      - ZMQ_MODE=server
#      - ZMQ_ENDPOINT=tcp://<IP_ADDRESS>:45555
    tmpfs:
      - /run:exec,size=64M
      - /var/log
#
#  acarsdec:
#    container_name: acarsdec
#    hostname: acarsdec
#    image: ghcr.io/sdr-enthusiasts/docker-acarsdec:latest
#    restart: always
#    depends_on:
#      - acarsmuxer
#    environment:
#      - TZ=${FEEDER_TZ}
#      - SOAPYSDR=driver=rtltcp,rtltcp=acarsmuxer:7374
##      - FREQUENCIES=130.825;130.850;131.525;131.550;131.725;131.850;131.825;131.475
##      - FREQUENCIES=129.950;130.025;130.425
#      - FREQUENCIES=130.825;130.850;131.525;131.550;131.725;131.850;131.825;131.475
#      - RTLMULT=168
#      - FEED_ID=RG_EGHQA
#      - CENTER_FREQ=131000000
#      - OUTPUT_SERVER=acars_router
#      - OUTPUT_SERVER_PORT=5550
#      - QUIET_LOGS=false
#    tmpfs:
#      - /run:exec,size=64M
#      - /var/log,size=64M
#
#  acars_router:
#    image: ghcr.io/sdr-enthusiasts/acars_router:test
#    labels:
#      - "autoheal=true"
#    tty: true
#    ports:
#      - 55556:15556
#      - 55555:15555
#      - 55550:15550
#    container_name: acars_router
#    restart: always
#    environment:
#      - TZ=${FEEDER_TZ}
#      - AR_SEND_UDP_HFDL=acarshub:5556;<IP_ADDRESS>:5556
#      - AR_SEND_TCP_HFDL=feed.airframes.io:5556
#
#      # The line below should be uncommented if you are receiving acars data from acarsdec AND want to feed airframes
#      #- AR_SEND_UDP_ACARS=acarshub:5550;feed.airframes.io:5550;feed.adsb.one:5550;<IP_ADDRESS>:5550
#      # The line below should uncommented if you are receiving VDLM, using dumpvdl2 AND want to feed airframes
#      #- AR_SEND_UDP_VDLM2=acarshub:5555;feed.airframes.io:5552;feed.adsb.one:5555;<IP_ADDRESS>:5555
#      # The line below should uncommented if you are receiving dumpvdl2 AND using ZMQ (recommended)
#      #- AR_RECV_ZMQ_VDLM2=dumpvdl2:45555
#      #- AR_RECV_ZMQ_HFDL=<IP_ADDRESS>:20556;<IP_ADDRESS>:20557;<IP_ADDRESS>:20558;<IP_ADDRESS>:20559;<IP_ADDRESS>:20560
#    tmpfs:
#      - /run:exec,size=64M
#      - /var/log
#
#
#  acarshub:
#    image: ghcr.io/sdr-enthusiasts/docker-acarshub:latest
#    tty: true
#    container_name: acarshub
#    restart: always
#    devices:
#      - /dev/bus/usb:/dev/bus/usb
#    ports:
#      - 81:80
#      - 5550:5550/udp
#      - 5555:5555/udp
#      - 15550:15550
#      - 15555:15555
#    volumes:
#      - /opt/adsb/acarsdata:/run/acars
#    tmpfs:
#      - /database:exec,size=64M
#      - /run:exec,size=64M
#      - /var/log,size=64M
#    environment:
#      - TZ=${FEEDER_TZ}
#      - ENABLE_HFDL=EXTERNAL
#      - ENABLE_VDLM=external
#      - ENABLE_ACARS=external
#      - FEED=true
#      - MIN_LOG_LEVEL=3
#      - TAR1090_URL=http://<IP_ADDRESS>/tar1090
#  #      - IATA_OVERRIDE=UP|UPS|United Parcel Service;GS|FTH|Mountain Aviation (Foothills);GS|EJA|ExecJet
#      - ENABLE_ADSB=true
#      - ADSB_LAT=${FEEDER_LAT}
#      - ADSB_LON=${FEEDER_LONG}
#      - ADSB_URL=http://<IP_ADDRESS>/tar1090/data/aircraft.json

Stupid question, Jon. Have you still got dumpHFDL running as a service in the background?

No. dumphfdl is not present in the output of top and also not as a service.

try removing the devices: section, uncomment the device_cgroup_rules section, and make the /dev mount rw

Done that but still the same result. No I've got other problems. The soapy configuration that was on the Pi crashed. Re-installing leaves the RSPdx inoperative. I'm going to reinstall everything starting with the OS and than the rest and try again. I'll keep you posted.

Started with a fresh installation of Bookworm. Installed docker and tried again. Same results as before both with the V2 and the V3 version. Swapped the RSPdx with another RSPdx but that also did not make any difference. The swapped the RSPdx for an RSP1A and that was found and succesfully started. I don't know what else I can try. Somehow the RSPdx isn't picked up.

Seems like you definitely need to be using the v3 image: https://github.com/jopohl/urh/issues/783#issuecomment-663493414
Can you share the compose you used for testing that?

I'm confused, the docker-compose.yml is the only file I used. I executed the command below with the container down and then start the container. Does that mean I did something wrong? I'm not that familiar with the ins and outs of the docker system.
Can you give an example how to use the version with the V3 API please?
$ docker pull ghcr.io/rpatel3001/docker-soapy2tcp-channels:23-78fafd4c5a8b59d26bd16fa249bbff3220eaf3e5@sha256:b482e9e289ab3b40974e48553896201632ca307d2a3f9dd981a2a50da3ef4efa

you need to replace the line that says
image: ghcr.io/rpatel3001/docker-soapy2tcp-channels
with
image: ghcr.io/rpatel3001/docker-soapy2tcp-channels:20-797e0e12ec9b03539ca805b9fde40459a0ddb93a
if docker complains about that you may need to use one of
linux/arm/v7
ghcr.io/rpatel3001/docker-soapy2tcp-channels:20-797e0e12ec9b03539ca805b9fde40459a0ddb93a@sha256:48b6d20419e7f4c72392562bf7b5056112f666d0e80bef19ced5927687194517

or
linux/arm64
ghcr.io/rpatel3001/docker-soapy2tcp-channels:20-797e0e12ec9b03539ca805b9fde40459a0ddb93a@sha256:363bd3f45703ea8f636601dca9920d55a3f7115197c70376a9531d6a82f787ea

i think older pis used armv7 but the pi 5 may use arm64

YES! The RSPdx is found. Now I can proceed to the next step(s).
Thank you very much indeed for the help Rajan!!

awesome, glad I could help


Parallelization

Perhaps via https://github.com/grosser/parallel or some other gem.
Parsing files (in particular large Ruby files) is slow, so parallelizing it would be a big speed-up on multi-core systems.

I gave this a try over the past few days, utilizing Parallel.each for parsing the AST, such as:
    def add_files(files)
      Parallel.each do |file|
        @output.extra("Adding `#{file}`")
        parse_file(file)
      end
    end

Unfortunately, since parsing the AST depends upon db's @table and @meta instance variables, putting the parsing into threads via parallel meant that those instance variables were not shared across threading contexts. Unwinding this is probably possible, but wasn't dead-simple. I think using https://github.com/ruby-concurrency/concurrent-ruby may require less surgery within starscope.

Yeah, that's possible.
In practice I've found, for very large ruby projects, https://github.com/eapache/starscope/issues/95 and https://github.com/eapache/starscope/issues/154 dominate as performance issues anyway. If I had the time to do performance surgery, that's where I'd start.


Incorrect logs associated with test failures

Required Information
Type: Bug
Enter Task Name: VSTestV2
Environment
Server: Azure Pipelines
Account Name: Not sure. This is the domain: skype.visualstudio.com
Team Project Name: SCC
Build Definition Id: 2431
Agent: Private
Agent OS: 10.0.18362
Agent Version: 2.163.1
Issue Description
Sometimes, the console output attached to failed tests doesn't match with the test that failed.
It is not consistent between builds (doesn't always happen) and is not consistent within builds (some have correct output and some have incorrect output).
I know the output is incorrect because the test name is logged at the end of each test run.
This issue was discovered when we started seeing logs with all success metrics for failed tests.
The impact of this issue is the inability to debug failed tests.
This is one such build: https://skype.visualstudio.com/SCC/_build/results?buildId=25332813&view=ms.vss-test-web.build-test-results-tab&runId=35790602&resultId=100545&paneView=attachments
The test “TestReplayThread_TeamDoesNotExist_Exists_ReplayMessageBefore" has the output of test “TestReplayReplyChain_ReplayReplyThenPost_VersionSameAsId_Success”.
The test “TestReplayMessage_ThreadDoesNotExistMessageReplay_Success” has the output of test “GetGenericTeamThread_ByMemberNotOnTeam_Fails”.

Somewhat related, sometimes we don't get any console output at all attached to failed tests.
Here is an example of that: https://skype.visualstudio.com/SCC/_build/results?buildId=25317819&view=ms.vss-test-web.build-test-results-tab&runId=35743224&resultId=100514&paneView=attachments
The logs should not have been rotated out in this case. It has happened multiple times and the logs are missing on test failures less than a day old.

 <MSTest>
    <Parallelize>
      <Workers>2</Workers>
      <Scope>ClassLevel</Scope>
    </Parallelize>
  </MSTest>

You have enabled parallelization in Mstest. This causes stdout stream to be shared between multiple threads causing the test output to be jumbled.
Use TestContext.WriteLine to correctly map output to tests when running them in parallel.