data format of pkl file。

Hello, after test.py I got the result of pkl, I am not very clear about the meaning of the data in it.
array([[1.3752729e+03, 1.1199866e+03, 1.5722281e+03, 1.2992040e+03,         8.1477785e-01],        [3.0036993e+02, 6.8101062e+02, 4.9576505e+02, 7.7623981e+02,         7.3781604e-01],        [6.7083923e+02, 7.1467334e+02, 8.7755341e+02, 8.1159210e+02,         6.0810643e-01],        [3.0029367e+02, 5.0993063e+02, 5.7482227e+02, 9.2245630e+02,         1.4301512e-01],        [1.3688911e+03, 9.0238489e+02, 1.7092655e+03, 1.3637494e+03,         1.2723200e-01],        [6.8269800e+02, 6.8559869e+02, 8.7965503e+02, 8.8512146e+02,         9.5620982e-02],        [2.9998203e+02, 7.0169330e+02, 4.7295639e+02, 8.3117084e+02,         8.4888592e-02]], dtype=float32),
How to get the data of the final prediction box, with the data and labels of the prediction box, for example,   xmin, ymin, xman, ymax,  class_label,        then I can calculate recall and precision by myself

list[ list[ xmin, ymin, xmax, ymax, score], list[...] ]. The index of the first list is the class id. also, we proposed eval, you can use --eval bbox (for coco) or --eval mAP (for VOC)

thank you.


Error while updating property 'width' in shadow node of type: RNSVGSvgView

Bug

Environment info

I am getting below error in the android application.
 "react-native": "0.55.4",

Library version: "react-native-svg": "^8.0.10",

Can you try upgrading to the latest version?

Have this issue after upgrading to RN 0.61.1

Can you post a reproduction?


Improve error handling

The goal of this PR is to reduce the number of panics, by returning Results wherever feasible.
Here is the current state of things:

[ ] src/backends/udev.rs (-2/47)
[ ] src/backends/winit.rs (-3/13)
[x] src/config/mod.rs (0/9) - (9/9 exempted[^1])
[ ] src/debug.rs (0/5)
[ ] src/handlers/input.rs (0/10)
[ ] src/handlers/mod.rs (0/3)
[ ] src/handlers/xdg_shell.rs (0/10)
[ ] src/protocols/screencopy/frame.rs (0/1)
[ ] src/protocols/screencopy/mod.rs (0/3)
[ ] src/state.rs (0/10)
[ ] src/utils/focus.rs (0/1)
[ ] src/utils/log.rs (0/3)
[x] src/utils/render/border.rs (5/5)
[ ] src/utils/tiling.rs (0/3)

[^1]: None of the panics in the config module could reasonably be recovered from, so returning them as errors is pointless.

I've decided this is not the way to approach this. A single monolithic PR that changes every file will create a nightmare of merge conflicts.


Behavior of GridFunction::ProjectCoefficient(Coefficient &coeff) in a Vector FiniteElementSpace (VDim > 1)

Hello,
I have a hopefully quick question as it has been unclear to me: Is GridFunction::ProjectCoefficient(Coefficient &coeff) supposed to project the scalar-valued coefficient onto each component if the GridFunction is defined on a vector FiniteElementSpace (vdim > 1)? Or just the first component?
When looking at the source code, it seems to me that it should be projecting the scalar coefficient onto each component, as it grabs an elements vdofs:
https://github.com/mfem/mfem/blob/70941b49b1217b638f4dfbb46b67662f86b54d10/fem/gridfunc.cpp#L2346-L2376
But I am not seeing this occur - here is a simple code that shows it only seeming to project onto component 0:
Mesh mesh = Mesh::MakeCartesian2D(5, 5, Element::TRIANGLE, true, 1.0, 1.0);
ParMesh pmesh(MPI_COMM_WORLD, mesh);
mesh.Clear();

H1_FECollection fec(1, pmesh.Dimension());
ParFiniteElementSpace fespace(&pmesh, &fec, 2);

ParGridFunction test_pgf(&fespace);
ConstantCoefficient coeff(1.0);
test_pgf.ProjectCoefficient(coeff);
test_pgf.SetTrueVector();
test_pgf.GetTrueVector().Print();

Thank you!

I think the basic answer is: GridFunction::ProjectCoefficient(Coefficient &coeff) is not meant to be used with multi-component (vdim > 1) GridFunctions. This also applied to GridFunctions that use vector finite elements (like Nedelec or Raviart-Thomas FEs) even when vdim = 1.
Instead, in these cases, use GridFunction::ProjectCoefficient(VectorCoefficient &vcoeff), or (in the case scalar FEs with vdim > 1) GridFunction::ProjectCoefficient(Coefficient *coeff[]).

@v-dobrev Thank you!


Suggest using cwltool make template to make input json

We currently use CWL avro to create an input json for cwl documents. There is also the option to use cwltool directly with cwltool --make-template. There is a difference. The make-template command will create a yaml file, and it also won't have the outputs. We should investigate why they do not include outputs but we do.
Ideally we would have both commands present in the UI to give users some options, though we should specify any caveats.

I think the reason why we have outputs is to allow for provision out to s3/synapse/etc.
I think default cwltool leaves outputs where they are.


[Bug]-[480]:Tree select widget - dropdown flickers when we click on the default selection area and filter has text entered.

Is there an existing issue for this?

[X] I have searched the existing issues

Description
In tree select widget, in the dropdown on attempt to filter, with the text entered, if we click on the tree select default field, dropdown flickers and does not get expanded.
Steps To Reproduce

Drag and drop a tree select widget
Click on the dropdown arrow
Enter a letter to filter. The options having that letter will get highlighted
Now click on the default selection area. Dropdown gets closed
Again click on the default selection area.
The dropdown flickers. It does not get displayed completely. Only when user clicks on the arrow to the right of the select area, the dropdown appears properly.

Expected behaviour - dropdown should get displayed even on clicking on default selection area, with filter applied.

Public Sample App
No response
Version
Release

Stats

Stat
Values

Reach
120

Effort (months)
0.5

@techbhavin This is happening in release
https://loom.com/share/245d775f2be74ebdbec01e531a974beb

@YogeshJayaseelan  @vivekverma2312
I am not able to reproduce this issue in release.
https://user-images.githubusercontent.com/58818598/166624176-ea94cf1e-414d-423d-ac6c-81ab8db84fcf.mov

Unable to reproduce on release now (9th May 2022). Probably some other change has resolved this issue.

Tested and found to be fine


Uncaught Error: dlopen(/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/...

[Enter steps to reproduce:]

...
...

Atom: 1.54.0 x64
Electron: 6.1.12
OS: Mac OS X 10.15.7
Thrown From: Atom Core
Stack Trace
Uncaught Error: dlopen(/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/1A86BB9B-759D-4BDA-B42F-6C3D2E26B05C/d/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node, 1): image not found
At electron/js2c/asar.js:138

Error: dlopen(/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/1A86BB9B-759D-4BDA-B42F-6C3D2E26B05C/d/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node, 1): image not found
    at process.func (electron/js2c/asar.js:138:31)
    at process.func [as dlopen] (electron/js2c/asar.js:138:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
    at Object.func (electron/js2c/asar.js:138:31)
    at Object.func [as .node] (electron/js2c/asar.js:147:18)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:16:16)
    at customRequire (/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/1A86BB9B-759D-4BDA-B42F-6C3D2E26B05C/d/Atom.app/Contents/Resources/app/static/<embedded>:1:696987)
    at get_KeyboardLayoutManager (/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/1A86BB9B-759D-4BDA-B42F-6C3D2E26B05C/d/Atom.app/Contents/Resources/app/static/<embedded>:14:2796761)
    at get_manager (/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/1A86BB9B-759D-4BDA-B42F-6C3D2E26B05C/d/Atom.app/Contents/Resources/app/static/<embedded>:14:2796863)
    at Object.getCurrentKeyboardLayout (/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/1A86BB9B-759D-4BDA-B42F-6C3D2E26B05C/d/Atom.app/Contents/Resources/app/static/<embedded>:14:2796989)
    at e.keystrokeForKeyboardEvent (/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/1A86BB9B-759D-4BDA-B42F-6C3D2E26B05C/d/Atom.app/Contents/Resources/app/static/<embedded>:14:1057808)
    at KeymapManager.keystrokeForKeyboardEvent (/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/1A86BB9B-759D-4BDA-B42F-6C3D2E26B05C/d/Atom.app/Contents/Resources/app/static/<embedded>:11:1228079)
    at KeymapManager.handleKeyboardEvent (/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/1A86BB9B-759D-4BDA-B42F-6C3D2E26B05C/d/Atom.app/Contents/Resources/app/static/<embedded>:11:1226064)
    at WindowEventHandler.handleDocumentKeyEvent (/private/var/folders/6v/vswjlsfd2j1chdtz1l9n5bpm0000gn/T/AppTranslocation/1A86BB9B-759D-4BDA-B42F-6C3D2E26B05C/d/Atom.app/Contents/Resources/app/static/<embedded>:11:284879)

Commands
     -5:34.7.0 github:toggle-git-tab (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -0:02.0 core:select-all (input.hidden-input)

Non-Core Packages

Thanks for taking the time to contribute!
We noticed that this is a duplicate of https://github.com/atom/atom/issues/21285. You may want to subscribe there for updates.
Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


Release/3.3.4

Bittensor V3.3.4 Update

external flags #887
CI fixes #920
seed, cuda solver #916 , #893
Deserialization update #921

@Eugene-hu just a comment/reminder. Note that this branch would have to be merged back into nobunaga as well.


Add code generation for Istio types

This is awesome. Tested locally, works great.
It looks like we still need to re-run update-codegen.sh and check-in the updated bits for Kubernetes types, but we can do that in a follow up.

Sorry, I had commented out the part that generates the kube types, so I forgot to check that part in. It's there now

Cool. Yeah, looks good to me. I think we can merge this whenever.


Fixjavadocs

@Sanne This should fix the javadocs errors.
Could you have  a look at the link I changed? I'm not sure I've added the right class

Thanks! yes that's the right types.. merged.


create university02 page

create a page called
cusat.html under src/studies/universities/
with headers and footers from
src/contact.html
and then include that in webpack.config.js accordingly.

create folders as needed

Make sure you change the title in html page to Cochin University of Science and Technology | CEA

If anyone is on this, first say it here!

i'm now on this one

@mahis929 feel free to take it.

check my pull request

check my pull request
On Wed, Oct 10, 2018 at 1:02 AM Abhijith V<EMAIL_ADDRESS>wrote:

@mahis929 https://github.com/mahis929 feel free to take it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ceadoor/cea.ac.in/issues/164#issuecomment-428321603,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYxyRvnWSG--AkBl_97F0ez9L8KCUHm3ks5ujPnmgaJpZM4XT8i-
.

[Merged] #169
Closing.


Catch parameter and lexically defined variable

Describe the bug:
Rename Variable fails in the following situation
Code:
try {

} catch (a){
    let b;
}

Output:
try{}catch(I2W3L20){let I2W3L20}

Error:
(node:17661) UnhandledPromiseRejectionWarning: SyntaxError: Identifier 'I2W3L20' has already been declared

Fixed in 1.5.5


If npm install fails, use "npm run reinstall" to ensure we start at clean slate

This addresses issue #158, but only when you are in trouble.
This approach has a tradeoff: Firstly it is not done automatically, which requires the use to think after being in trouble
On the other hand, this approach saves time since a full clearing of caches and installation of all modules takes time.
Furthermore, adding the command as "npm run reinstall" makes it explicit what should and could be done

Travis error is unrelated.
See #176 tsd reinstall fails with 'Github rate exceeded'

@jesperronn LGTM. Would you revert back the README? I'm generating the contributors' list with https://github.com/mgechev/github-contributors-list

@mgechev sorry, my bad! I had a markdown table formatter installed in my editor. New update on its way

@mgechev if you don't mind, I will do a 'push --force' to replace history in this branch.
(pretty history after merge)

Yes, sounds good

done, @mgechev, merge?

Yep, looks good! I'll update the contributors list tomorrow.


AttributeError: 'module' object has no attribute 'filename_to_title'

Hi.
I have a error.
pip install git+https://github.com/twardoch/mkdocs-combine.git
mkdocscombine -o mydocs.pd
Traceback (most recent call last):
  File "/usr/local/bin/mkdocscombine", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/mkdocs_combine/cli/mkdocscombine.py", line 160, in main
    mkdocs_combiner.combine()
  File "/usr/local/lib/python2.7/site-packages/mkdocs_combine/mkdocs_combiner.py", line 169, in combine
    pages = self.flatten_pages(self.config[u'nav'])
  File "/usr/local/lib/python2.7/site-packages/mkdocs_combine/mkdocs_combiner.py", line 150, in flatten_pages
    level + 1)
  File "/usr/local/lib/python2.7/site-packages/mkdocs_combine/mkdocs_combiner.py", line 120, in flatten_pages
    u'title': u'%s {: .page-title}' % mkdocs.utils.filename_to_title(page),
AttributeError: 'module' object has no attribute 'filename_to_title'

backports-abc==0.5
Click==7.0
futures==3.2.0
Jinja2==2.10
livereload==2.5.2
Markdown==3.0.1
MarkupSafe==1.0
mkdocs==1.0.4
PyYAML==3.13
singledispatch==<IP_ADDRESS>
six==1.11.0
tornado==5.1.1

i think you should try python3

I move project to sphinx =)

I'm running into the same issue.  It looks like there was a change in Mkdocs that removed this function.  https://github.com/mkdocs/mkdocs/commit/5e59af5ca3350fe2a5a555c0777940967a6b9fb4#diff-730512090b1f15175b2e4e521d35b776
Will this be fixed in a near release?

MkDocs has undergone major changes since I've worked on this tool. My work has been mostly forking the initial mkdocs-pandoc project, subsequent merging of various commits from different other forks, and some minor changes that I needed. But with the current MkDocs, I believe that the functionality of mkdocs-combine should be completely rewritten in form of an MkDocs plugin. This would have a number of advantages, including the fact that an MkDocs plugin world be more resilient to changes in MkDocs than this current tool is. I have no plans to update mkdocs-combine but if people contribute pull requests, I'll merge them.


(Onboarding): disable language selection

Type

Context

Parts of the app affected / Test plan

Fixed in pr mashup.

f784157a6 (HEAD, gre/mashup-2020-12-16) Merge branch 'revert/languages' into mashup-2020-12-16


coverage not collected from child_process APIs

If it's something I'm doing wrong, and there's some small config I need to pass and it will work as expected - I'll be delighted...
but for now - this is my reproduction:
reproduction
scenario

given a project that uses child_process for e2e test of CLI tools, and unit tests to cover paths that do not appear in the e2e
(full structure below):
Run vitest run --coverage

expected
100% coverage. for all files.
Found
all tests run, but only coverage collected using unit-tests is observed.
 RUN  v2.1.8 /home/user/ws/opensource/reproduction/vitest/child_process-not-covered
      Coverage enabled with v8

 ✓ test/calc.unit.mjs (1)
   ✓ calc (1)
     ✓ sub (1)
       ✓ should substract positive integers
 ✓ test/cli.e2e.mjs (2)
   ✓ fxgen command (2)
     ✓ when called with valid parameters (2)
       ✓ should not fail
       ✓ should return the right answer

 Test Files  2 passed (2)
      Tests  3 passed (3)
   Start at  17:13:40
   Duration  291ms (transform 18ms, setup 0ms, collect 16ms, tests 32ms, environment 1ms, prepare 128ms)

 % Coverage report from v8
-----------|---------|----------|---------|---------|-------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------|---------|----------|---------|---------|-------------------
All files  |   14.28 |    33.33 |      25 |   14.28 |
 bin       |       0 |        0 |       0 |       0 |
  cli.mjs  |       0 |        0 |       0 |       0 | 1-3
 lib       |   18.18 |       50 |   33.33 |   18.18 |
  calc.mjs |     100 |      100 |      50 |     100 |
  cli.mjs  |       0 |        0 |       0 |       0 | 1-9
-----------|---------|----------|---------|---------|-------------------

Project structure:

vitest.config.js
import { defineConfig } from 'vitest/config';
export default defineConfig({
  test: {
    globals: true,
    reporters: ['verbose'],
    include: [
      'test/**/*.unit.mjs',
      'test/**/*.e2e.mjs',
    ],
  },
});

package.json
{
  "name": "child_process-not-covered",
  "version": "1.0.0",
  "bin": {
    "calc": "bin/calc.mjs"
  },
  "scripts": {
    "test": "vitest run --coverage"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "description": "",
  "devDependencies": {
    "@vitest/coverage-v8": "^2.1.8",
    "vitest": "^2.1.8"
  }
}

bin/cli
#!/usr/bin/env node
import cli from '../lib/cli.mjs';
cli({ process, console });

lib/cli
import * as calc from './calc.mjs';
export default ({ process, console }) => {
  const { argv: [ ,, a, b ] } = process;
  const result = calc.add(Number(a), Number(b));
  console.log(result)
}

lib/calc
export const add = (a, b) => a + b;
export const sub = (a, b) => a - b;

test/calc.unit.mjs
import * as calc from '../lib/calc.mjs';

describe('calc', () => {
  describe('sub', () => {
    it('should substract positive integers', () => {
      expect(calc.sub(44,2)).toEqual(42);
    });
  });
});

test/cli.e2e.mjs
import { execSync } from 'node:child_process';

describe('fxgen command', () => {
  describe('when called with two integers', () => {
    const ctx = {};
    beforeAll(() => {
      try {
        ctx.result = execSync('node bin/cli.mjs 20 22').toString().trim();
      } catch(err) {
        ctx.err = err;
      }
    });

    it('should not fail', () => expect(ctx.err).toBeFalsy());
    it('should return their sum', () => expect(ctx.result).toEqual('42'));
  });
});

version info
$ vitest --version
vitest/2.1.8 linux-x64 node-v20.18.0

disclaimer
Feels like de j'avoux.
I encountered this before while trying to migrating a moch+nyc project, and that effort turned away from vitest.
If I opened such a ticket before - excuse me, for some reason I cannot find it :(
This is a new customer - new chance.

This issue is not related to the vitest eslint plugin. I'm going to transfer to vitest's main repo.

oups. sorry. wrong place in deed :o


Bug/546 docker compose properties path wrong

This does not work for us right now. The application will exit with 0. We are looking into it.

We have a problem in the buildpipeline with the latest tag. We will fix that in the pr with the number #549


Bluetooth: Channel Sounding: Add several channel sounding HCI commands

Adds HCI support for:

LE CS Read Remote Supported Capabilities
LE CS Read Remote FAE Table
LE CS Test

I'd like to see some kind of high-level architectural picture/plan for this feature. At the moment it seems like you're mapping HCI 1:1 to new Zephyr Bluetooth APIs, but that's not necessarily the most suitable or convenient abstraction for higher-level users (e.g. GATT services or whatever else will be the consumer of these APIs).

I'd like to see some kind of high-level architectural picture/plan for this feature. At the moment it seems like you're mapping HCI 1:1 to new Zephyr Bluetooth APIs, but that's not necessarily the most suitable or convenient abstraction for higher-level users (e.g. GATT services or whatever else will be the consumer of these APIs).

From my understanding it's best to have a direct access to those HCI commands like that, the "real" work will be done by the profile. It's best to avoid doing too much magic in the Host so it can stay as simple as possible.

From my understanding it's best to have a direct access to those HCI commands like that, the "real" work will be done by the profile. It's best to avoid doing too much magic in the Host so it can stay as simple as possible.

I agree that it's often the case, but not necessarily always. It'd help a lot to see the API used in practice (not just in the shell). What we have now is a new API with no in-tree users (not counting the shell commands). There are no sample applications or tests in this PR. This is the second CS PR, and I assume there are still more to come - I just wonder at what point the "big picture" will start to emerge.

I agree that it's often the case, but not necessarily always. It'd help a lot to see the API used in practice (not just in the shell). What we have now is a new API with no in-tree users (not counting the shell commands). There are no sample applications or tests in this PR. This is the second CS PR, and I assume there are still more to come - I just wonder at what point the "big picture" will start to emerge.

I understand your concern and that's exactly why imo, the less the Host do, the more it will be able to fit in the different use cases that the users will come with. I agree with you, having use cases from user would be better but CS is quite new and until someone implement the profile there will be no real users.
In the worst case the API is marked as experimental and can be changed at any time if we realize that there is something fundamentally wrong with what we have done.

I'd like to see some kind of high-level architectural picture/plan for this feature. At the moment it seems like you're mapping HCI 1:1 to new Zephyr Bluetooth APIs, but that's not necessarily the most suitable or convenient abstraction for higher-level users (e.g. GATT services or whatever else will be the consumer of these APIs).

For the LE CS Test command at least, there's no upper layers that build upon it afaik. It's largely independent from the rest of the feature. I expect it will be used for demo applications and regression/interop testing (or similar) so I expect this part of the API to be used directly in apps.
But let me try to give some more info about our plans so that it's hopefully more clear what comes next after this PR. In general our vision for this work is to implement relatively little logic in the zephyr BLE host for this feature. We're implementing:

HCI wrappers and callbacks for the commands and events
Subevent result recombination
Some basic samples to demonstrate setting up CS Test and ACL-based CS.

In the nordic fork we'll be implementing the Ranging Profile (RAP https://www.bluetooth.com/specifications/specs/ranging-profile/ ) and Ranging Service (RAS https://www.bluetooth.com/specifications/specs/ranging-service/) used to exchange CS data over ACLs, so we will also be working to ensure these APIs are as useful as possible to upper layers. There are some good diagrams in those documents showing some interactions between host and controller


Support RTL

Hi,
I just change layoutDirection of recycler view to rtl but this option didn't support in the CardSliderLayoutManager. how can I add this feature?

Hello, @bkhezry. Right now there is no such feature in cardslider-android. If you need RTL, you customize the source code of this lib. Try inverting some of the values, responsible for laying out the cards in layout manager.

Hello, @golovin47 Could you mention for any functions we need to change


Typescript support

Hi, do you have any plans to support typescript?

I've thought about that long time ago but not sure what kind of typings could be provided by the library.


Drop semigroups on GHC > 8.0

Data.Semigroup has been part of base since GHC 8.0
See https://prime.haskell.org/wiki/Libraries/Proposals/SemigroupMonoid#Writingcompatiblecode

Rebased on master.
Is there a reason for not merging this? It improves the experience for people using GHC 8 or later, and has no effect for people using GHC versions < 8.

I'm just slow. :smile:


Test on Django 4.2

Update tests to run with Python 3.11 and Django 4.2. Checked for warnings by adding -W all to the test run, one appeared:
/.../site-packages/django/conf/__init__.py:241: RemovedInDjango50Warning: The default value of USE_TZ will change from False to True in Django 5.0. Set USE_TZ to False in your project settings if you want to keep the current default behavior.
  warnings.warn(

...which I fixed.
I also upgraded the GitHub Actions actions.

Hey! thanks for the update and sorry for the delay, could you please remove 3.6 and 3.7 from github actions?

Done. (Did you know you maintainers push changes to PR branches?)

No, I didn't know, I'll do it next time. Thanks for all!

You'll need a new release, right? If so, I'll be releasing it later today

I don't need it, since the code was compatible without changes. But to show your project is active and definitely works on the latest version, you can release.


Access line in env_ function

I want to assign automatically generated figures names that depend on the line where they are defined in my markdown source. This is also necessary so that I know the order in which these were defined. Is that information accessible within env_ functions somehow?

Errr no that's not exposed to the user, we could expose internals where you get the position of a block in the parent string but that's pretty tricky to interpret as scopes can be arbitrarily nested.
At the risk of being annoying, could I ask you to describe more precisely what you'd like to achieve and possibly an example of how stuff would look like in the markdown + what you expect the effect to look like?

Well I currently have pages where I use my env_examplefigure function to wrap blocks that result in figures. I currently name these blocks and figures either with explicitly given names, or with hashes calculated from the block string. Then, in a delayed hfun, these images are looked up in the output folders and compiled into overview pages. But from the example names, I don't know in what order they were defined in the page.
Maybe it's easier to read the page output and sort the images by their appearance there?

Right well you can always use page variables to keep track of the ordering of these code blocks and their names so that function you use could append all the figure names from the page in order to a page variable that you can recuperate elsewhere in order to do the sorting.


build takes too long.

Need to look at the docker dependencies and avoid any duplicated builds.

Explore possibility of make -j
As talked with Xintian, behaviour was seen similar. Parallel docker build does not work.
Docker storage driver does not handle multiple builds in parallel.
Two parts to this ticket:

Slow local build. WIP for improvising docker caching by streamlining layers among different images
Travis CI build. currently each component on travis is a separate job. Need to enable inter job caching


yml

May I ask if running main.py generates a txt file, and how should I do to obtain my own yml file?

Could you please explain your issues clearly?

May I ask if running main.py generates a txt file?

Which text file are you referring to? If you just ask wether a text file will be generated, the answer is yes. And the text files should be placed in anto_getter/temp.

How should I do to obtain my own yml file?

If you want to generate your own profile, changing the auto_getter/config.yml will do the trick.
For more details you can explore the document website (in chinese).


Constructor 'LoadModelOptions' has 0 parameter(s) but is invoked with 4 argument(s)

The code snippet under "Add the following modified LoadModel method to RemoteRenderingCoordinator just below the current LoadModel method:" has the following line:
var loadModelParams = new LoadModelOptions($"{storageAccountName}.blob.core.windows.net", blobName, modelPath, modelEntity);

This gives the error in the title. I believe the following code should be used instead:
var loadModelParams = LoadModelOptions.CreateForBlobStorage($"{storageAccountName}.blob.core.windows.net",
            blobName, modelPath, modelEntity);

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: c0218c7d-f699-f118-925c-b05a0eefb89a
Version Independent ID: 00f75616-28ef-7e05-9b1e-94d44760df77
Content: Securing Azure Remote Rendering and model storage - Azure Remote Rendering
Content Source: articles/remote-rendering/tutorials/unity/security/security.md
Service: azure-remote-rendering
GitHub Login: @FlorianBorn71
Microsoft Alias: flborn

@captainafk , you are absolutely right about the bug - we'll fix it.
Thanks for raising this!
Florian

@captainafk
Thanks for your feedback! We will investigate and update as appropriate.

#please-close


Added ReplicateBlobRequest protocol and ReplicateBlobResponse protocol.

Further split the On-Demand replication PR.
This is the first one of the Server side change.
Added the ReplicateBlobRequest and ReplicateBlobResponse protocol.

Codecov Report
Base: 0.00% // Head: 14.87% // Increases project coverage by +14.87% :tada:

Coverage data is based on head (7552c20) compared to base (8d3014e).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #2228       +/-   ##
=============================================
+ Coverage          0   14.87%   +14.87%
- Complexity        0     2316     +2316
=============================================
  Files             0      749      +749
  Lines             0    56836    +56836
  Branches          0     6984     +6984
=============================================
+ Hits              0     8454     +8454
- Misses            0    47890    +47890
- Partials          0      492      +492

Impacted Files
Coverage Δ

...ain/java/com/github/ambry/protocol/RequestAPI.java
0.00% <ø> (ø)

.../main/java/com/github/ambry/cloud/VcrRequests.java
0.00% <0.00%> (ø)

.../java/com/github/ambry/protocol/AmbryRequests.java
0.00% <0.00%> (ø)

...om/github/ambry/protocol/ReplicateBlobRequest.java
0.00% <0.00%> (ø)

...m/github/ambry/protocol/ReplicateBlobResponse.java
0.00% <0.00%> (ø)

...m/github/ambry/protocol/RequestOrResponseType.java
0.00% <0.00%> (ø)

...ithub/ambry/router/SingleKeyManagementService.java
0.00% <0.00%> (ø)

...ain/java/com/github/ambry/router/PutOperation.java
0.00% <0.00%> (ø)

...java/com/github/ambry/store/CompactionManager.java
93.18% <0.00%> (ø)

...mbry/commons/ReadableStreamChannelInputStream.java
0.00% <0.00%> (ø)

... and 743 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Added gnosisDao safesnap address to constants

What it solves
Resolves #2548
Not sure how to test this issue

Since the module seems to work only on mainnet, I just took Richard's advice and checked the safe he proposed which has tx done with the module already.
In the PR the new module is properly identified
https://gnosis-safe.io/app/#/safes/0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe/transactions

https://pr2663--safereact.review.gnosisdev.com/mainnet/app/#/safes/0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe/transactions

Looks good to me


Add ability to use Proc as 'expires_in' key

Sometimes calculation of expires_in can spend a lot of time, so, will be great to do it only if it needed.
Example:
[19] pry(main)> x = Rails.cache.fetch('test', expires_in: -> { (1..5).each{ |i| puts(i); sleep(1) }; 10  }) { 'hello' }
Cache read: test ({:expires_in=>#<Proc:0x0000010f058d08@(pry):9 (lambda)>})
Cache generate: test ({:expires_in=>#<Proc:0x0000010f058d08@(pry):9 (lambda)>})
Cache write: test ({:expires_in=>#<Proc:0x0000010f058d08@(pry):9 (lambda)>})
1
2
3
4
5
=> "hello"
[20] pry(main)> x = Rails.cache.fetch('test', expires_in: -> { (1..5).each{ |i| puts(i); sleep(1) }; 10  }) { 'hello' }
Cache read: test ({:expires_in=>#<Proc:0x0000010f1b8f90@(pry):10 (lambda)>})
Cache fetch_hit: test ({:expires_in=>#<Proc:0x0000010f1b8f90@(pry):10 (lambda)>})
=> "hello"

:+1:

:+1:

Not sure what happens on travis-ci, but locally oall tests passes for Rails 3.2.21 and jruby 1.7.19, see log

If I'm understanding the goal of this code correctly, then I'm inclined not to merge it.  Essentially this PR is  only useful in the Rails cache case.  In the case where the Dalli::Client is being accessed directly, the TTL can be passed in explicitly, so none of this complexity is required to control the cost of the TTL calculation.  It's only in the case of Rails Cache that the TTL is controlled exclusively through the expires_in initialization option.
In this case, I'll defer to Rails to determine the allowed types for the expires_in option.  Looking at the docs, there's no mention of using a Proc as you describe.  See here - http://guides.rubyonrails.org/caching_with_rails.html
If you really want this, I'd attempt to get a PR into Rails.


Update JWT library

Description
Update JWT library
Type of change

Bump-up dependent library (no changes in the code)

Testing steps
Done on CI
Checklist

[ ] updated documentation wherever necessary
[ ] added or modified tests if necessary

Ok

actually was not, now it should be ok


[C++][Parquet] Executable tools do not get installed

I have the following build script:

mkdir -p build-debug
pushd build-debug

cmake -DCMAKE_BUILD_TYPE=debug \
      -DCMAKE_INSTALL_PREFIX=$PARQUET_HOME \
      -DPARQUET_BUILD_BENCHMARKS=off \
      -DPARQUET_BUILD_EXECUTABLES=on \
      -DPARQUET_BUILD_TESTS=on \
      ..

make -j16
make install
popd

parquet_reader does get built:

$ find -name parquet_reader
./build-debug/debug/parquet_reader

but it isn't installed:

$ find $PARQUET_HOME -name parquet_reader
$

Reporter: Antoine Pitrou / @pitrou
Assignee: Antoine Pitrou](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=apitrou) / @pitrou
PRs and other links:

GitHub Pull Request #455

Note: This issue was originally created as PARQUET-1270. Please see the migration documentation for further details.

Uwe Korn / @xhochy:
Issue resolved by pull request 455
https://github.com/apache/parquet-cpp/pull/455


Do not cache the system's jvm

As seen in #278, caching the system's JVM can be tricky because updating JAVA_HOME will have no effect as the cache entry remains and the new JAVA_HOME is unused.
Closes https://github.com/oyvindberg/bleep/issues/278
Created as a draft because I'm not sure if you'd like test for this and I still need to manually test this here.

Thanks, seems straightforward to me :)


Duplicate shows up with only 1 language setup

I've setup only 1 language in my configuration and when I open a menu I still see the "duplicate" button, the panel behind the button is unusable as the language field won't display options for me to select. I couldn't find a way to hide it in the documentation or in the code itself.
Config:
'locales' => ['nl' => 'Nederlands'],

When I add another language to the configuration file, everything works as expected.

Heya! I improved the copy logic with one menu and/or locale setups in version 6.1.1. Please try it out. Thanks and good luck! :)

@Tarpsvo seems to be working perfectly now! Thanks a lot. :-)


Add Euclidean distance transform for images/volumes

Overview
closes #319
This PR adds an implementation of scipy.ndimage.distance_transform_edt. For each foreground pixel in a binary image, this function computes the minimal Euclidean distance to reach a background pixel. This is a SciPy function rather than a scikit-image one so I have put it under cucim.core instead of cucim.skimage. Longer term we could move this upstream to CuPy, but I think we want to have a copy here so that we can use it in the near term to implement some of the missing scikit-image functionality. This function is used by the following functions in the scikit-image API, so this PR will help us implement these in future PRs:
skimage.morphology.medial_axis
skimage.segmentation.expand_labels
skimage.segmentation.chan_vese
It is also used in examples related to skimage.segmentation.watershed and is needed for implementation of ITK's SignedMaurerDistanceMapImageFilter for itk-cucim.
The algorithm used here is adapted from the C++ code in the PBA+ repository (MIT-licensed)
extensions made to PBA+ kernel source

larger sizes can be supported due to runtime code generation of the integer datatypes and encode/decode functions.

current known limitations

2D and 3D only (this should cover the most common use cases)
The sampling argument is not fully supported. This can likely be done with a bit of effort, but will require modifications to the CUDA kernels
User-specified output arguments are not currently supported. We can potentially add this in the future
The indices returned by return_indices=True are equally valid, but not always identical to those returned by SciPy. This is because there can be multiple indices with an identical distance, so which one gets chosen in that case is implementation-dependent.

initial benchmarks relative to SciPy
Here % true is the percentage of the image that corresponds to foreground pixels. Even for fairly small images there is some benefit, with the benefit becoming two orders of magnitude at larger sizes.

shape
% true
cuCIM
SciPy
acceleration

(256, 256)
5
0.00108
0.00353
3.25

(512, 512)
5
0.00108
0.01552
14.42

(2048, 2048)
5
0.00252
0.34434
136.86

(4096, 4096)
5
0.00765
1.58948
207.88

(32, 32, 32)
5
0.00103
0.00305
2.98

(128, 128, 128)
5
0.00153
0.30103
196.26

(256, 256, 256)
5
0.00763
3.17872
416.37

(384, 384, 384)
5
0.02460
14.28779
580.89

(256, 256)
50
0.00107
0.00430
4.01

(512, 512)
50
0.00109
0.01878
17.30

(2048, 2048)
50
0.00299
0.39304
131.60

(4096, 4096)
50
0.00896
1.84686
206.19

(32, 32, 32)
50
0.00102
0.00361
3.53

(128, 128, 128)
50
0.00163
0.31657
194.66

(256, 256, 256)
50
0.00914
3.35914
367.49

(384, 384, 384)
50
0.03005
13.83219
460.30

(256, 256)
95
0.00107
0.00344
3.22

(512, 512)
95
0.00108
0.01638
15.17

(2048, 2048)
95
0.00314
0.36996
117.81

(4096, 4096)
95
0.00943
1.90475
202.05

(32, 32, 32)
95
0.00102
0.00314
3.07

(128, 128, 128)
95
0.00180
0.28843
159.80

(256, 256, 256)
95
0.01073
3.23450
301.41

(384, 384, 384)
95
0.03577
12.40526
346.82

other comments

can likely reduce memory overhead and improve performance a bit by refactoring some of the pre/post-processing code into elementwise kernels. (e.g. encode3d/decode3d, etc.)

The failure here is due to use of math.lcm in a helper function. Apparently this function was only recently introduced in Python 3.9, so will need to introduce a workaround for that.

I don't understand detailed algorithms so I feel I am not capable of reviewing this patch in detail.
Overall, it looks good to me.

Thanks @gigony. I think the kernels are pretty well tested both here and in the original PBA+ repo, so probably doesn't need to much review in the details of the kernels in the .h files. I can hopefully revisit adding support for non-uniform values for sampling in a follow-up PR (for a future release).
This PR is a bit unique for cuCIM in that I kept the bulk of the kernel code in the form of CUDA C++ header files so that it is easier to view than if it was stored within a Python string. The file gets loaded into a string for purposes of runtime compilation, but keeping it in a separate file makes it easier to view with proper code highlighting either on GitHub or in an IDE.

Made an edit to the OP to xref the related upstream CuPy issue. Hope that is ok 🙂

@gpucibot merge

Filed upstream issue ( https://github.com/cupy/cupy/issues/7400 ) about moving this to CuPy


Use with custom:secondaryinfo-entity-row cause error

Upgrading to version 8 causes "Custom element doesn't exist: hui-default-entity-row." error in cards with type: custom:secondaryinfo-entity-row
Needed to roll back to 2.3  version.

Sorry, that was secondaryinfo-entity-row bug, already fixed in updated version.


Docs cleanup: Removes reference to unused import

Small docs eslint-ish fix. The example code was importing fork but the code isn't referencing it.

thanks


Parser doesn't eagerly consume brackets in expressions

public fun main() {
  let x: Int[2]
}

The parse sees two statements (i.e., let x: Int; [2]) instead of one (i.e., let x: Int[2]).

Issue was fixed.


Build issure(v3.0.1)

I am on Ubuntu18.04 with gcc 7.4.0. before installing the control-toolbox, I have installed the kindr by Building with cmake.  I used the the scripts install_cppadcg.sh , install_hpipm.sh, and install_deps.sh to install all the dependencies.  Then, I run the build script:
cd your_workspace/control-toolbox/ct
chmod 775 build_ct.sh
chmod 775 build_doc.sh
./build_ct.sh -DCMAKE_BUILD_TYPE=Release
I'm getting a compilation error now:
In file included from /usr/local/include/ct/core/internal/autodiff/CGHelpers.h:9:0,
                 from /usr/local/include/ct/core/systems/linearizer/DynamicsLinearizerADCG.h:8,
                 from /usr/local/include/ct/core/Systems:19,
                 from /usr/local/include/ct/core/core.h:32,
                 from /home/junli/software/control-toolbox/ct_models/include/ct/models/InvertedPendulum/codegen/InvertedPendulumActDynLinearizedForward.h:8,
                 from /home/junli/software/control-toolbox/ct_models/include/ct/models/InvertedPendulum/codegen/InvertedPendulumActDynLinearizedForward.cpp:6:
/usr/local/include/ct/external/cppad/local/jacobian.hpp:200:45: error: invalid use of incomplete type ‘class CppAD::ADFun<Base>’
 Vector ADFun<Base>::Jacobian(const Vector &x)
                                             ^
compilation terminated due to -Wfatal-errors.
CMakeFiles/InvertedPendulumActDynLinearizedForward.dir/build.make:62: recipe for target 'CMakeFiles/InvertedPendulumActDynLinearizedForward.dir/include/ct/models/InvertedPendulum/codegen/InvertedPendulumActDynLinearizedForward.cpp.o' failed
make[2]: *** [CMakeFiles/InvertedPendulumActDynLinearizedForward.dir/include/ct/models/InvertedPendulum/codegen/InvertedPendulumActDynLinearizedForward.cpp.o] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/InvertedPendulumActDynLinearizedForward.dir/all' failed
make[1]: *** [CMakeFiles/InvertedPendulumActDynLinearizedForward.dir/all] Error 2
In file included from /usr/local/include/ct/core/internal/autodiff/CGHelpers.h:9:0,
                 from /usr/local/include/ct/core/systems/linearizer/DynamicsLinearizerADCG.h:8,
                 from /usr/local/include/ct/core/Systems:19,
                 from /usr/local/include/ct/core/core.h:32,
                 from /home/junli/software/control-toolbox/ct_models/include/ct/models/HyA/codegen/HyALinearizedForward.h:8,
                 from /home/junli/software/control-toolbox/ct_models/include/ct/models/HyA/codegen/HyALinearizedForward.cpp:6:
/usr/local/include/ct/external/cppad/local/jacobian.hpp:200:45: error: invalid use of incomplete type ‘class CppAD::ADFun<Base>’
 Vector ADFun<Base>::Jacobian(const Vector &x)
                                             ^
compilation terminated due to -Wfatal-errors.
CMakeFiles/HyALinearizedForward.dir/build.make:62: recipe for target 'CMakeFiles/HyALinearizedForward.dir/include/ct/models/HyA/codegen/HyALinearizedForward.cpp.o' failed
make[2]: *** [CMakeFiles/HyALinearizedForward.dir/include/ct/models/HyA/codegen/HyALinearizedForward.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/HyALinearizedForward.dir/all' failed
make[1]: *** [CMakeFiles/HyALinearizedForward.dir/all] Error 2
In file included from /usr/local/include/ct/core/internal/autodiff/CGHelpers.h:9:0,
                 from /usr/local/include/ct/core/systems/linearizer/DynamicsLinearizerADCG.h:8,
                 from /usr/local/include/ct/core/Systems:19,
                 from /usr/local/include/ct/core/core.h:32,
                 from /home/junli/software/control-toolbox/ct_models/src/InvertedPendulum/codegen/InvertedPendulumWithActuatorCodeGen.cpp:10:
/usr/local/include/ct/external/cppad/local/jacobian.hpp:200:45: error: invalid use of incomplete type ‘class CppAD::ADFun<Base>’
 Vector ADFun<Base>::Jacobian(const Vector &x)
                                             ^
compilation terminated due to -Wfatal-errors.
CMakeFiles/InvertedPendulumWithActuatorCodeGen.dir/build.make:62: recipe for target 'CMakeFiles/InvertedPendulumWithActuatorCodeGen.dir/src/InvertedPendulum/codegen/InvertedPendulumWithActuatorCodeGen.cpp.o' failed
make[2]: *** [CMakeFiles/InvertedPendulumWithActuatorCodeGen.dir/src/InvertedPendulum/codegen/InvertedPendulumWithActuatorCodeGen.cpp.o] Error 1
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/InvertedPendulumWithActuatorCodeGen.dir/all' failed
make[1]: *** [CMakeFiles/InvertedPendulumWithActuatorCodeGen.dir/all] Error 2
In file included from /usr/local/include/ct/core/internal/autodiff/CGHelpers.h:9:0,
                 from /usr/local/include/ct/core/systems/linearizer/DynamicsLinearizerADCG.h:8,
                 from /usr/local/include/ct/core/Systems:19,
                 from /usr/local/include/ct/core/core.h:32,
                 from /home/junli/software/control-toolbox/ct_models/src/HyA/codegen/HyALinearizationCodeGen.cpp:7:
/usr/local/include/ct/external/cppad/local/jacobian.hpp:200:45: error: invalid use of incomplete type ‘class CppAD::ADFun<Base>’
 Vector ADFun<Base>::Jacobian(const Vector &x)
                                             ^
compilation terminated due to -Wfatal-errors.
CMakeFiles/HyALinearizationCodegen.dir/build.make:62: recipe for target 'CMakeFiles/HyALinearizationCodegen.dir/src/HyA/codegen/HyALinearizationCodeGen.cpp.o' failed
make[2]: *** [CMakeFiles/HyALinearizationCodegen.dir/src/HyA/codegen/HyALinearizationCodeGen.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/HyALinearizationCodegen.dir/all' failed
make[1]: *** [CMakeFiles/HyALinearizationCodegen.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
In file included from /usr/local/include/ct/core/internal/autodiff/CGHelpers.h:9:0,
                 from /usr/local/include/ct/core/systems/linearizer/DynamicsLinearizerADCG.h:8,
                 from /usr/local/include/ct/core/Systems:19,
                 from /usr/local/include/ct/core/core.h:32,
                 from /home/junli/software/control-toolbox/ct_models/include/ct/models/HyA/codegen/HyALinearizedForward.h:8,
                 from /home/junli/software/control-toolbox/ct_models/include/ct/models/HyA/codegen/HyALinearizedForward.cpp:6:
/usr/local/include/ct/external/cppad/local/jacobian.hpp:200:45: error: invalid use of incomplete type ‘class CppAD::ADFun<Base>’
 Vector ADFun<Base>::Jacobian(const Vector &x)
                                             ^
compilation terminated due to -Wfatal-errors.
make[2]: *** [CMakeFiles/HyALinearizedForward.dir/include/ct/models/HyA/codegen/HyALinearizedForward.cpp.o] Error 1
make[1]: *** [CMakeFiles/HyALinearizedForward.dir/all] Error 2
make: *** [all] Error 2
 === completed  ct_models  ===

Could you give me some advice on how to solve them?

Dear @JunLi-HIT, my first guess would be the following ... did you run the scripts for installing dependencies in the correct oder? I.e. first the script "install_deps" and then the others?

Dear @markusgft , I have tested your guess. I installed a new Ubuntu 18.04.3 LTS system in a Desktop computer, and installed  these software again by running the following commands.
sudo apt-get update sudo apt-get install libeigen3-dev sudo apt-get install libboost-all-dev mkdir SwInstSrc cd SwInstSrc/ git clone https://github.com/ANYbotics/kindr.git cd kindr/ mkdir build cd build cmake .. sudo make install
Then, the kindr has been imstalled sucessfully.
I downloaded the CT 3.0.1 manually, moved it to the worspace SwInstSrc, extracted it in the workspace, renamed it from control-toolbox-3.0.1 to control-toolbox. Then, I copied the install_cppadcg.sh and install_hpipm.sh in CT v3.0.2 to  ~/SwInstSrc/control-toolbox/ct , opened a new terminal and ran these scripts.
cd ~/SwInstSrc/control-toolbox/ct/ sudo sh install_deps.sh sudo sh install_hpipm.sh sudo sh install_cppadcg.sh
No errores appeared.
I continued to run the following commands and scripts.
chmod 775 build_ct.sh chmod 775 build_doc.sh ./build_ct.sh -DCMAKE_BUILD_TYPE=Release
Unfortunately, the same compilation errors appeared again. I believe it is not caused the execution order of these .sh files.

close due to inactivity.


samples: userspace: hello_world_user: exclude qemu_xtensa_mmu

Exclude the qemu_xtensa_mmu platform from this sample until #66029 is fixed.

+1 since this is just a sample

Merging as hotfix while keeping https://github.com/zephyrproject-rtos/zephyr/issues/66029 open.


Deployment errors from subchart dependencies aren't bubbled up

An install/upgrade can fail silently if the underlying Grafana Agent chart is passed invalid arguments; no warnings are given even though the underlying chart will throw these errors, and the chart claims successful deployment.
For example, given the following configuration snippet:
traces:
  enabled: true
grafana-agent:
  agent:
    extraPorts:
      - name: "jaeger-thrift-compact"
        port: 6831
        targetPort: 6831
        protocol: "TCP"
      - name: "jaeger-thrift-binary"
        port: 6832
        targetPort: 6832
        protocol: "TCP"
      - name: "jaeger-thrift-http"
        port: 14268
        targetPort: 14268
        protocol: "TCP"
extraConfig: |-
   ...

an install of the Helm chart will show:
heds@Ahsoka ~/Work/tmp/quick-install-test $ helm upgrade --install -f values-k8s.yaml grafana-k8s-monitoring grafana/k8s-monitoring -n agent
Release "grafana-k8s-monitoring" does not exist. Installing it now.
NAME: grafana-k8s-monitoring
LAST DEPLOYED: Wed Nov 22 17:46:52 2023
NAMESPACE: agent
STATUS: deployed
REVISION: 1

However, whilst the logs and metrics Daemonsets will successfull be deployed, the traces instance is not.
By using the same snippet of configuration for extra port opening with the underlying Grafana Agent chart and attempting a Helm install, we see:
heds@Ahsoka ~/Work/Docs-With-Kim/FederationFrontend/agent-test $ helm install -f values.yaml agent-test grafana/grafana-agent -n agent
Error: INSTALLATION FAILED: 1 error occurred:
        * DaemonSet.apps "agent-test-grafana-agent" is invalid: [spec.template.spec.containers[0].ports[3].name: Invalid value: "jaeger-thrift-compact": must be no more than 15 characters, spec.template.spec.containers[0].ports[4].name: Invalid value: "jaeger-thrift-binary": must be no more than 15 characters, spec.template.spec.containers[0].ports[5].name: Invalid value: "jaeger-thrift-http": must be no more than 15 characters]

This shows the underlying issue, the names for the Jaeger ports are actually too long and need to be shortened. If we change the config for the k8s monitoring install and try with shorter names, the install works as expected.
Underlying errors for subchart dependencies should be bubbled up to ensure that users do not run into quiet failures that otherwise claim successul deployment.

This seems to be an issue with helm and I'm not sure how to get the installation errors to be bubbled-up. However, this article talks about the use of the --atomic flag which looks like a decent workaround for at least not leaving you in a broken state:
helm repo add grafana https://grafana.github.io/helm-charts &&
  helm repo update &&
  helm upgrade --install --atomic --timeout 120s grafana-k8s-monitoring grafana/k8s-monitoring \
    --namespace "default" --create-namespace --values - <<EOF
... your values ...
EOF


Use default timeout when none provided

Hi there, nice theme!
I was getting a syntax error that there was no value on the left-hand side of the > 2 expression (prompt_pure_async_callback:18: bad math expression: operand expected at '> 2 '), and in my cursory search I found a typo in the variable declaration. However, fixing the name did not remove the runtime error
So I added a default value to the variable use that corresponds to the 5-second default timeout mentioned in the documentation.
I don't know the root-cause of why $3 is empty in the else-block, but this fix makes the experience a lot smoother on my system.

This seems to still throw the error in a git repo with unstaged changes, investigating

Ok, fixed that too. Just disabling the local binding in the else clause seems to make all the functionality work without errors

Yes, absolutely
However the prompt was still functional without $3 being assigned to exec_time (although an error was printed to stdout along with every PS1) -- so binding it here has the potential to introduce other behavior, which it sure did... in dirty git repositories
When $3 is assigned to exec_time in a git repository with unstaged changes, it contains a string like %F{red}... which is not valid syntax in the (( ${exec_time} > 2 )) comparison and thus prints a different error message
So to fix the original problem, we need the left-hand side of the > 2 comparison to be a valid number, which I suppose with the aggregate changes in this PR could be (( 5 > 2 )), since exec_time is never assigned a number at this point.

I think this is an issue with zsh-async which has a fix in the upstream source (sindresorhus/pure).


uniq: avoid building list of duplicate lines

Could you please share more details on the why? thanks

This reduces memory usage by only storing two lines of the input file at a time. The current implementation first builds a list of all duplicate lines ('group') and then decides which lines of the group should be printed.
Also added this in commit description.


Spelling fix

Thanks.  Spell check did not catch this one, since "doe" is a word too.  Waiting until the review is over to merge.


Conditions to check which files triggered the build

Can I use conditions to check if a specific file triggered the build? I am working on an application where I have to publish a NuGet package whenever I make changes to its C# project. Then while building the solution I am consuming the package. I need two separate pipelines for these, and I want to make sure the NuGet package is run first. For the moment, I just run it no matter what, and when it finishes I trigger the main application pipeline. It would be awesome if I could skip tasks within the NuGet package generation pipeline by checking that the files that triggered the build do not affect the NuGet package generation

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3f151218-9a11-0078-e038-f96198a76143
Version Independent ID: 09c4d032-62f3-d97c-79d7-6fbfd89910e9
Content: Conditions - Azure Pipelines
Content Source: docs/pipelines/process/conditions.md
Product: devops
Technology: devops-cicd-process
GitHub Login: @juliakm
Microsoft Alias: jukullam

Thanks for your question. It looks like you're working through an issue with your scenario or implementation. Here are a couple of options where you might consider asking your question:

Azure DevOps Support Bot
Azure DevOps on Stack Overflow


Random delay distribution showing a 'normal' distribution behaviour

Hi,
We've been doing some load tests with Wiremock and after some strange delay readings, we did a simple load test (very simple GET stub, no extensions added, just plain old wiremock) using a random distribution with a minimum of 10 ms and max of 300 ms.
We got these results from the delay:

As you can see, from a 30 minute run, apart from the initial 5 minutes, all the delays were between 120ms and 200 ms, which is an odd result for a random distribution between 10 and 300 ms (a consistent spread between these values is expected).
The delay frequency graph is the following:

this graph shows the number of hits per delay. It peaks at 155ms, with more than 350 requests getting a response with that delay, and the overall distribution seems normal, with the average at 155 and a variance of about 40ms (not exactly, as the graph doesn't give you a perfect bell).
Looking at the distribution code, it seems to be simply using the local thread next random function, which when tested on it's own shows the expected behaviour (a consistent spread between 10 and 300ms). I didn't look that deeply at the wiremock mechanics, but the delay logic doesn't seem to be working as expected.
Don't know if it's a bug or a feature :)

Thanks for sharing your analysis. I think leaning towards "bug" from what you've shown, but I'll need to take a deeper look.
Just to confirm - you're using the uniform distribution?

Yep, that's the one.
Thanks for looking into it.


[Go] Add documentation for Go data plane SDK generation

With the move to our new doc site, there is no information about how a team can generate a Go data plane sdk.
Instructions will need to be added:

[ ] (generate): https://eng.ms/docs/products/azure-developer-experience/develop/sdk-generate?tabs=dataplane
[ ] (test): https://eng.ms/docs/products/azure-developer-experience/develop/sdk-test?tabs=dataplane
[ ] (samples): https://eng.ms/docs/products/azure-developer-experience/develop/sdk-samples?tabs=dataplane

PR that covers generate SDK and tests: https://dev.azure.com/azure-sdk/internal/_git/azure-sdk-docs-eng.ms/pullrequest/846

Generate

https://eng.ms/docs/products/azure-developer-experience/develop/sdk-generate

Test

https://eng.ms/docs/products/azure-developer-experience/develop/sdk-test?tabs=dataplane

@jhendrixMSFT do you have an estimate of when the sample information could be added to the documentation?

We do have this which the WebPubSub folks used to on-board their data-plane SDK. Does this work?

Does the Go SDK need to have samples in order to ship? are the samples handled in a specific way that will be good to add in the document you linked?

Yes, I've opened https://github.com/Azure/azure-sdk-for-go/pull/22084 to add a section on testable examples.

Thank you!


is there an example using Spring Cloud Kubernetes Configuration Watcher?

Is your feature request related to a problem? Please describe.
I see there is an example using yaml config, but you guys recommended using watcher instead and I couldn't find example.
cloud:
kubernetes:
reload:
enabled: true
mode: polling
strategy: refresh
period: 60000
config:
sources:

See https://docs.spring.io/spring-cloud-kubernetes/docs/2.0.1/reference/html/#spring-cloud-kubernetes-configuration-watcher

I do set my configmap the same name with my springboot application name. but when I changed the configMaps, no actuator/refresh is POSTed by spring-cloud-kubernetes-configuration-watcher. Can I change spring-cloud-kubernetes-configuration-watcher's loglevel somehow to see if it knew the configMaps is changed and did it send POST or not?

you can set logging.level.org.springframework.cloud.kubernetes=DEBUG

thanks, now I can see more logs.
and I am seeing this log
spring-cloud-kubernetes-configuration-watcher-deployment-7v7rfn spring-cloud-kubernetes-configuration-watcher 2021-02-25 05:02:14.298 DEBUG 1 --- [/<IP_ADDRESS>/...] .w.HttpBasedConfigMapWatchChangeDetector : Scheduling remote refresh event to be published for ConfigMap celerx-backend to be published in 120000 milliseconds
why is a configmap changed event needs to be published in 2 mins later?

Because it can take up to 2 minutes for the configmap changes to be reflected in the mounted volume

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

Because it can take up to 2 minutes for the configmap changes to be reflected in the mounted volume

Is there any ways to make changes reflected faster?

Its a limitation of Kubernetes, i am not sure

See https://docs.spring.io/spring-cloud-kubernetes/docs/2.0.1/reference/html/#spring-cloud-kubernetes-configuration-watcher

this is not an example, could you please share a sample? I cannot find a sample configuration for config watcher.

@zhangyuxuan1992 hi, I'm trying to create a sample using config watcher with no success, I noticed you have successfully set it up according to your logs above, would you mind sharing your sample code with me?

@zhangyuxuan1992 hi, I'm trying to create a sample using config watcher with no success, I noticed you have successfully set it up according to your logs above, would you mind sharing your sample code with me?

sure. I assume you are chinese too. You can give me you wechat account on private so that I can share my code with you

@zhangyuxuan1992 hi, I'm trying to create a sample using config watcher with no success, I noticed you have successfully set it up according to your logs above, would you mind sharing your sample code with me?

sure. I assume you are chinese too. You can give me you wechat account on private so that I can share my code with you

private message was removed by GitHub, please drop a message to my email<EMAIL_ADDRESS>and I'll send you wechat id


MythicMobs v5.0.1 no compatibility

I am trying to install the Mythicmobs plugin with the latest update and it does not recognize the new version of the plugin.

```
"Your MythicMobs version is not supported by Jobs! Supported versions: 4.9.1+"
```
Jobs version: <IP_ADDRESS>
Server Type : Paper
Server Version : git-Paper-235 (MC: 1.18.2)
Relevant plugins : MythicsMobs v5.0.1-e876be12

I'm having the same issue with MythicMobs version 5.0.3-SNAPSHOT-06d9297c
on Paper git-Paper-259 (MC: 1.18.2)
and Jobs version <IP_ADDRESS>

a984589dce93d78176b0f42d470fa2783b44146e


Database connection timeouts not configured correctly

We are using Spring-Cloud connector with Spring-Boot on an application deployed to Pivotal Web Services. Spring-Cloud-Cloudfoundry configures us to talk to our cleardb database automatically.
We are also using the Hikari Connection pool.
We get frequent warnings in our log files from Hikari that our connections have timed out. This appears to be because our server is used infrequently, so clearDb closes our connections on their side, then the connection pool discovers this and a huge stack trace is logged.
I found other people having similar issues online. Although they may not be with Spring, or even PWS, I would suggest this indicates a general problem which could be solved more gracefully by having the connector provide more information, or at least reasonable defaults.
Here is how we are configuring our connection:
@Configuration
@Profile("mysql-cloud")
public class MysqlCloudConfiguration extends AbstractCloudConfig {

    @Bean
    public DataSource dataSource() {
        return connectionFactory().dataSource();
    }
}

I have tried to set our connection parameters directly, but they don't seem to take effect. I think that is a Spring-Boot issue.
Here are the connection parameters we end up using from Hikari. These are the defaults, and I think that the connector should be setting connectionTimeout and idleTimeout.
DEBUG com.zaxxer.hikari.HikariConfig - connectionInitSql...............
DEBUG com.zaxxer.hikari.HikariConfig - connectionTestQuery............./* ping */ SELECT 1
DEBUG com.zaxxer.hikari.HikariConfig - connectionTimeout...............30000
DEBUG com.zaxxer.hikari.HikariConfig - dataSource......................
DEBUG com.zaxxer.hikari.HikariConfig - dataSourceClassName.............
DEBUG com.zaxxer.hikari.HikariConfig - dataSourceJNDI..................
DEBUG com.zaxxer.hikari.HikariConfig - dataSourceProperties............{password=<masked>}
DEBUG com.zaxxer.hikari.HikariConfig - driverClassName.................
DEBUG com.zaxxer.hikari.HikariConfig - idleTimeout.....................600000
DEBUG com.zaxxer.hikari.HikariConfig - initializationFailFast..........false
DEBUG com.zaxxer.hikari.HikariConfig - isolateInternalQueries..........false
DEBUG com.zaxxer.hikari.HikariConfig - jdbc4ConnectionTest.............false
DEBUG com.zaxxer.hikari.HikariConfig - jdbcUrl.........................jdbc:mysql://us-cdbr-iron-east-01.cleardb.net:3306/<redacted>&reconnect=true
DEBUG com.zaxxer.hikari.HikariConfig - leakDetectionThreshold..........0
DEBUG com.zaxxer.hikari.HikariConfig - maxLifetime.....................1800000
DEBUG com.zaxxer.hikari.HikariConfig - maximumPoolSize.................4
DEBUG com.zaxxer.hikari.HikariConfig - metricsTrackerClassName.........com.zaxxer.hikari.metrics.CodaHaleMetricsTracker
DEBUG com.zaxxer.hikari.HikariConfig - minimumIdle.....................4

Here are some similar online issues:
http://support.run.pivotal.io/entries/24868832-Network-problems-with-MySQL
http://stackoverflow.com/questions/24046843/connection-closed-error-in-heroku-cleardb-addon
https://getsatisfaction.com/cleardb/topics/connection_error_mysql2_error_mysql_server_has_gone_away
Here is the exception we are getting:
Here is the exception:

20:52:30.178 01:52:29.980 [http-nio-61032-exec-6] WARN com.zaxxer.hikari.pool.HikariPool - Exception during keep alive check, that means the connection (com.mysql.jdbc.JDBC4Connection@62fc8df6) must be dead.

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet successfully received from the server was 349,959 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_31-]

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_31-]

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_31-]

at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ~[na:1.8.0_31-]

at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) ~[mysql-connector-java-5.1.34.jar!/:5.1.34]

at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1036) ~[mysql-connector-java-5.1.34.jar!/:5.1.34]

at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3427) ~[mysql-connector-java-5.1.34.jar!/:5.1.34]

at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3327) ~[mysql-connector-java-5.1.34.jar!/:5.1.34]

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814) ~[mysql-connector-java-5.1.34.jar!/:5.1.34]

at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435) ~[mysql-connector-java-5.1.34.jar!/:5.1.34]

at com.mysql.jdbc.ConnectionImpl.pingInternal(ConnectionImpl.java:3971) ~[mysql-connector-java-5.1.34.jar!/:5.1.34]

at com.mysql.jdbc.ConnectionImpl.ping(ConnectionImpl.java:3951) ~[mysql-connector-java-5.1.34.jar!/:5.1.34]

at com.mysql.jdbc.StatementImpl.doPingInstead(StatementImpl.java:1509) ~[mysql-connector-java-5.1.34.jar!/:5.1.34]

at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1395) ~[mysql-connector-java-5.1.34.jar!/:5.1.34]

at com.zaxxer.hikari.pool.HikariPool.isConnectionAlive(HikariPool.java:460) [HikariCP-2.1.0.jar!/:na]

at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:175) [HikariCP-2.1.0.jar!/:na]

at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:111) [HikariCP-2.1.0.jar!/:na]

at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:139) [hibernate-core-4.3.7.Final.jar!/:4.3.7.Final]

at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:380) [hibernate-core-4.3.7.Final.jar!/:4.3.7.Final]

at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:228) [hibernate-core-4.3.7.Final.jar!/:4.3.7.Final]

at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:171) [hibernate-core-4.3.7.Final.jar!/:4.3.7.Final]

at org.hibernate.internal.SessionImpl.connection(SessionImpl.java:450) [hibernate-core-4.3.7.Final.jar!/:4.3.7.Final]

at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source) ~[na:na]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_31-]

at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0_31-]

at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:202) [spring-core-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:187) [spring-core-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.orm.jpa.vendor.HibernateJpaDialect$HibernateConnectionHandle.doGetConnection(HibernateJpaDialect.java:378) [spring-orm-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:146) [spring-orm-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:380) [spring-orm-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373) [spring-tx-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:457) [spring-tx-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276) [spring-tx-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) [spring-tx-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) [spring-tx-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.1.4.RELEASE.jar!/:4.1.4.RELEASE]

@jbcpollak I think this issue belongs over in the Spring Cloud Connectors project, but we can have a discussion here and create any necessary issues there.
I assume you are using your fork of SCC that has your (unmerged) Hikari PR included?
I don't think SCC should be guessing at defaults for config parameters, but should just use the libraries' built-in defaults and rely on apps to customize that as needed. Connection parameters like the ones you are describing should be set using the form of connectionFactory().dataSource() that takes a ServiceConnectorConfig argument.
DataSourceConfig, with its ConnectionConfig parameter, supports setting arbitrary bean values on the connection object if that works. Additional parameters could be added to DataSourceConfig or PooledServiceConnectorConfig also if necessary.

@scottfrederick - Wow, I had totally forgotten about the PR until I started digging through the code to make sure my answer was sensible.  I suspect you may be right that SCC is a better forum, I had totally forgotten which library the customized code was in (or even that I had any) until now.

I don't think SCC should be guessing at defaults for config parameters, but should just use the libraries' built-in defaults and rely on apps to customize that as needed. Connection parameters like the ones you are describing should be set using the form of connectionFactory().dataSource() that takes a ServiceConnectorConfig argument.

But it does exactly that:
		    // choose sensible values so that we set max connection pool size to what
		    // free tier services on Cloud Foundry and Heroku allow
		    serviceConnectorConfig = new DataSourceConfig(new PoolConfig(4, 30000), null);

is from:
https://github.com/spring-cloud/spring-cloud-connectors/blob/master/spring-cloud-spring-service-connector/src/main/java/org/springframework/cloud/service/relational/DbcpLikePooledDataSourceCreator.java
(I based my Hikari code in the pull request off this code, so it has the same comment)
I agree SCC should not be guessing at parameters, but rather than using the libraries built-in defaults, I would argue that if the PaaS has specific restrictions (like Cloud Foundry and Heroku impose on maximum number of connections or timeout limits), the PaaS should be providing those settings and SCC should be passing them to the application.
Since SCC seems to already be making (handy) assumptions about the maximum number of connections, shouldn't it also help configure the timeouts correctly?
If the point of SCC and Spring Boot is to provide an "it just works" platform for writing code, shouldn't all important parameters be provided / suggested by that platform?
Thanks for the tips on providing customization. Is there a way to adapt the Spring-Boot DataSource configuration (see DataSourceConfigMetadata in that project) to a DataSourceConfig in SCC so that we don't have to have duplicate configuration in our properties files?

BTW: that comment from DbcpLikePooledDataSourceCreator specifically mentions Cloud Foundry and Heroku in a more generic project... That implies to me maybe this project should be providing those settings to the main project, ideally by reading them from the PaaS itself.

Please move this discussion to SCC.


Gen IV: Accuracy should be checked before Ability immunities

Known Mechanics Bugs #2367
Gen IV, Accuracy of a move is checked before Immunities granted via Abilities such as Dry Skin and Flash Fire

Travis tests have failed
Hey Jordan Low,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/data/scripts.js
  352:1   error  Trailing spaces not allowed          no-trailing-spaces
  353:16  error  Expected '!==' and instead saw '!='  eqeqeq
  427:1   error  Trailing spaces not allowed          no-trailing-spaces
  428:16  error  Expected '===' and instead saw '=='  eqeqeq

✖ 4 problems (4 errors, 0 warnings)
  2 errors, 0 warnings potentially fixable with the `--fix` option.

npm ERR! Test failed.  See above for more details.

Are ability immunities actually implemented in the Immunity event? It was my understanding that it's done in TryHit.

It is done in TryHit. That's why I put the TryHit event after the accuracy check if this.gen is 4.

Oh, I see. Yeah, that looks like it should work. @Marty-D?

This particular mechanic also exists in Gen 3, but it's slightly different.

Gen 3: natural immunity -> accuracy -> Ability immunity even if natural immunity would have otherwise stopped the attack
Gen 4: natural immunity -> accuracy -> Ability immunity
Gen 5-6: natural immunity -> Ability immunity -> accuracy
Gen 7: Ability immunity -> natural immunity -> accuracy

However, it becomes less and less obvious what's going on in the current gen's scripts file as past gen exceptions are added. I think it's worth doing this in the Gen 3 & 4 mods for scripts, especially since there are a dozen other things that still need tweaking between gens. I'm also wary of changing past gens during SPL, since bugs are unlikely to be caught on the main server before they potentially ruin a tournament match.

Travis tests have failed
Hey Jordan Low,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/mods/gen4/scripts.js
   91:1  error  Trailing spaces not allowed  no-trailing-spaces
  185:1  error  Trailing spaces not allowed  no-trailing-spaces

✖ 2 problems (2 errors, 0 warnings)
  2 errors, 0 warnings potentially fixable with the `--fix` option.

npm ERR! Test failed.  See above for more details.

Travis tests have failed
Hey Jordan Low,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/mods/gen3/scripts.js
  119:3   error  Expected space(s) after "if"        keyword-spacing
  119:31  error  Missing space before opening brace  space-before-blocks

✖ 2 problems (2 errors, 0 warnings)
  2 errors, 0 warnings potentially fixable with the `--fix` option.

npm ERR! Test failed.  See above for more details.

I think that should be it. @Marty-D ?

For Gen 3, the natural immunity message is shown even if the move would miss. It's only when the Pokemon is both naturally immune and immune by Ability that it can show either the immunity message (if it missed) or the Ability activation (if it hit).
Also feel free to drop useless stuff that doesn't exist in Gens 3 and 4, like the powder or stealsBoosts checks.

Travis tests have failed
Hey Jordan Low,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/mods/gen3/scripts.js
  115:33  error  Missing space before opening brace  space-before-blocks

✖ 1 problem (1 error, 0 warnings)
  1 error, 0 warnings potentially fixable with the `--fix` option.

npm ERR! Test failed.  See above for more details.

Travis tests have failed
Hey Jordan Low,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/mods/gen3/scripts.js
  115:33  error  Missing space before opening brace  space-before-blocks

✖ 1 problem (1 error, 0 warnings)
  1 error, 0 warnings potentially fixable with the `--fix` option.

npm ERR! Test failed.  See above for more details.

I think this works

Have you considered learning how to use Git and how to run npm test? That would save a lot of commit clutter here.

I know how to use Git, but it never crossed my mind to use npm test. I'll do that next time.

Well I am using the GitHub online editor to do this PR. I'll use Git for future commits.

As for the current situation, are the changes fine?

I'll let Marty assess that.

@Marty-D ?

Not going to review this until SPL is over.

Did you test your latest changes? You're getting two immunity messages and a failure message when you "hit" an immunity in Gen 3.


Check function call operands and return type agree with the called function type

Is the SPIR-V spec missing this validation rule?

Fixed with eb7d2534d


implement Format for char

this should work but triggers a compiler error right now:
defmt::info!("x={:?}", 'a');

the {:char} format specifier would also need to be implemented

the easiest implementation could cast char to u32 and send the 4 bytes
a better implementation would use invariants around UTF-8 to compress the data
alternative implementation: send the char as [u8]; would not compress as much as option 2

Seems like we could also leb128-encode the char. That way, any ASCII characters will only take up 1 Byte. I guess this is similar to using UTF-8.


LBRY app quits with daemon already running error

The Issue
This happens mostly between upgrades when the LBRY app is updated but the lbrynet-daemon process continues to run/get stuck in the background. When attempting to run LBRY, it looks like it's starting and then will close out with an "daemon unexpectly quit" error. In the logs, you see:
2017-12-30 17:47:39,213 INFO     lbrynet.daemon.DaemonControl:65: lbrynet-daemon is already running
This usually requires the daemon to be killed manually and LBRY restarted. Sometimes you can restart just the app and it picks it up the 2nd time.
Sort of related to https://github.com/lbryio/lbry-app/issues/298 as that should shut down any running daemons.
Steps to reproduce

Get daemon stuck in background when closing LBRY (not easily reproducible)
Start LBRY
Notice error in log / LBRY app shuts down

System Configuration

LBRY Daemon version: 0.18.0
LBRY App version: 0.19.3
LBRY Installation ID:
Operating system:

Anything Else

Screenshots

I get this when installing LBRY for the first time.  I am a developer and I suspect there is some interaction with some of the SDKs I develop with.
Error message "Daemon has Exited" "The daemon may have encountered an unexpected error, or another daemon instance is already running.  For more information please visit:
https://lbry.com/faq/startup-troubleshooting"

LBRY Version: 0.33.2
OS: MacOS Mojave: 10.14.5
Console output:
Current system appearance, (HLTB: 2), (SLS: 1  Post-registration system appearance: (HLTB: 2)  NSApp cache appearance: -NSRequiresAquaSystemAppearance: 1 -appearance: (null) -effectiveAppearance: <NSCompositeAppearance: 0x600003feb840 (   "<NSAquaAppearance: 0x6000009f9fc0>",   "<NSSystemAppearance: 0x6000009fa1c0>" )> nw_path_close_fd Failed to close guarded necp fd 37 [9: Bad file descriptor] GVA info: preferred scaler idx 1 UNIX error exception: 17  [repeated 7 times] skipping upgrade for locked keychain /Users/*****/Library/Keychains/1Password.keychain  UNIX error exception: 17  LSExceptions shared instance invalidated for timeout. LSExceptions shared instance invalidated for timeout. AggregateDictionary is not supported on this platform

Just a user... Got this the first time installing it. Just want to provide some data since ticket describe this was hard to reproduce.
2020-12-14 13:04:35,417 INFO     lbry.extras.daemon.daemon:501: RPC server listening on TCP ::1:5279
2020-12-14 13:04:35,418 ERROR    lbry.extras.daemon.daemon:514: media server failed to bind TCP localhost:5280
2020-12-14 13:04:35,419 INFO     lbry.extras.daemon.daemon:568: stopped api components
2020-12-14 13:04:35,419 INFO     lbry.extras.daemon.daemon:572: stopped api server
2020-12-14 13:04:35,419 INFO     lbry.extras.daemon.daemon:575: finished shutting down
2020-12-14 13:04:45,197 INFO     lbry.extras.daemon.daemon:485: Starting LBRYNet Daemon
2020-12-14 13:04:45,198 INFO     lbry.extras.daemon.daemon:487: Platform: {
"processor": "Intel64 Family 6 Model 60 Stepping 3, GenuineIntel",
"python_version": "3.7.4",
"platform": "Windows-10-10.0.19041-SP0",
"os_release": "10",
"os_system": "Windows",
"lbrynet_version": "0.86.1",
"version": "0.86.1",
"build": "release"
}

Hi there. I am having this same issue after installing 0.52.0 on Mint 18.1
Previous version was working just fine.  Tried sudo sysctl kernel.unprivileged_userns_clone=1, restarted computer and reinstalled package but no avail.
I get the following error from console
Starting SDK (node:7372) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information Sandbox listening on port 5278. Daemon: [7447] Error loading Python lib '/tmp/_MEIBbUvDj/libpython3.7m.so.1.0': dlopen: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.25' not found (required by /tmp/_MEIBbUvDj/libpython3.7m.so.1.0)
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.`
Any help is appreciated.
Thanks.


sudo bash startauth.sh does not work for me

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:
when i run the command:
sudo bash startauth.sh
from /home/pi  I get an error of sudo bash startauth.sh: no such file or directory
What is the expected behavior?
I expect it to allow me to generate an authorization token
What behavior are you observing?
I get an error of sudo bash startauth.sh: no such file or directory
Provide the steps to reproduce the issue, if applicable:
simply run the following command:
sudo bash startauth.sh
Tell us about your environment:

What version of the AVS Device SDK are you using?
Not sure.   Just following the guide for this project.
Tell us what hardware you're using:

[ ] Desktop / Laptop
[X ] Raspberry Pi
[ ] Other - tell us more:

Tell us about your OS (Type & version):

[ ] Linux
[ ] MacOS
[X ] Raspbian Stretch
[ ] Raspbian Jessy
[ ] Other - tell us more:

Did you used the Quick Start Guide with Script?
Maybe you can try it without sudo: e.g. just simply bash startauth.sh... But I think there will be no difference...
And as your error says: no such file or directory: Are you sure that the file startauth.sh exists in the directory /home/pi?

I did use the script, and modified my config.text file.  followed the steps precisely.
There is no startauth.sh in the directory, no.    It seems it was never created.    so not sure whats up with that.

But there is a setup.sh file?
Even if it exists, I would recommend to follow the steps of the quick start guide again.

I have the same error

I bailed out of it and started a different process to do this project.
Which still has its own problems.    But it's working better that this one
did.
On Mar 14, 2018 9:44 PM, "Linux00"<EMAIL_ADDRESS>wrote:

I have the same error
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/alexa/avs-device-sdk/issues/557#issuecomment-373242331,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZkFvbYIDRJedBVOZn617_H6g7VJUJSdks5tedWhgaJpZM4SqwTQ
.

How did you do that? Following the detailed guide about how to install the SDK?
And if your issue is now fixed, this issue can be closed, can not it?

Yes.  Close it.     I followed different instructions from Lifehacker.com
for this project.     Thank you
On Mar 16, 2018 12:49 AM, "ENT8R"<EMAIL_ADDRESS>wrote:

How did you do that? Following the detailed guide about how to install the
SDK?
And if your issue is now fixed, this issue can be closed, can not it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/alexa/avs-device-sdk/issues/557#issuecomment-373610389,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZkFvWU6FguQ1Kizyi79DNCAfwMktFENks5te1JMgaJpZM4SqwTQ
.

I don't have the ability to close this issue, but you can do this by simply clicking on the button "Close issue" below the comment input box...

I'm closing this issue based on the comments above. Thank you!

I have also same issue. How can get startauth.sh file?


Grammar mistakes were corrected

Description of your changes

Checklist

I have:

[ ] Run make reviewable to ensure this PR is ready for review.
[ ] Ensured this PR contains a neat, self documenting set of commits.
[ ] Updated any relevant documentation, examples, or release notes.
[ ] Updated the RBAC permissions in clusterrole.yaml to include any new types.

We appreciate the attention to detail, but since we haven't heard back from you about the DCO for over a week I'm going to close this PR. Please do open a new PR with the DCO signed off and we'll be happy to accept this change.


wip: use precise tile for measure tool

When double clicking to finish the measurement the line jumps to the terrain level

yes, it is a draft, we will work on this in a future issue


wallabag is not loading and console does not work

Describe the bug
Wallabag is not working (the bug could also be me...)
Steps To Reproduce

setup phpfpm for wallabag
create a config
rebuild nixos

Expected behavior
Wallabag should work and console should also work.
For the php environment I use and how I call the console see additional details.
Console output I get:
Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "DoctrineFixturesBundle" from namespace "Doctrine\Bundle\FixturesBundle".
Did you forget a "use" statement for another namespace? in /nix/store/s0f8n75h4wraami6fz6l5b1rs58a1x3m-wallabag-2.4.2/app/AppKernel.php:52
Stack trace:
#0 /nix/store/s0f8n75h4wraami6fz6l5b1rs58a1x3m-wallabag-2.4.2/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(493): AppKernel->registerBundles()
#1 /nix/store/s0f8n75h4wraami6fz6l5b1rs58a1x3m-wallabag-2.4.2/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(132): Symfony\Component\HttpKernel\Kernel->initializeBundles()
#2 /nix/store/s0f8n75h4wraami6fz6l5b1rs58a1x3m-wallabag-2.4.2/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(64): Symfony\Component\HttpKernel\Kernel->boot()
#3 /nix/store/s0f8n75h4wraami6fz6l5b1rs58a1x3m-wallabag-2.4.2/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(148): Symfony\Bundle\Framew in /nix/store/s0f8n75h4wraami6fz6l5b1rs58a1x3m-wallabag-2.4.2/app/AppKernel.php on line 52

Additional context
https://git.tissot.de/benneti/nixos/src/branch/master/profiles/server/wallabag/default.nix
Notify maintainers

Metadata

system: "x86_64-linux"
host os: Linux 5.14.6, NixOS, 21.05.20210923.d22c3a6 (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.4pre20210830_50a3586
nixpkgs: /nix/store/05w190gfgrvid91gqs68wj8arnbyxqd0-source

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: @mweinelt @schneefux
# a list of nixos modules affected by the problem
module:

nevermind I forgot the --env=prod argument...


Clarification on formal vs informal addressing

Which way of addressing people should be used for languages containing formal and informal ways to address a person in this application?
For example German has the more informal "Du" to address singular "You", while the formal way would use "Sie".
(For German) The informal way would usually be preferred in a younger audience and gaming, while professional areas still use the formal way - although this seems to slowly be fading as well now.
Alternatively, an alternate language could also be added to cover both usecases, as some people also would prefer one over the other.

@jackthefoxotter helped us make most of the translations in German so I want to tag them to bring them to the conversation.

The German one currently uses the formal version and I remember seeing somewhere that that was an intentional decision since Resonite (back then Neos) could also be used in professional contexts.

Basically the current plan - at least for the German version - is the following:
Since there is no solution that satisfies everyone, we'll split the locale into two files: de.json -> Informal Version de-formal.json -> Formal Version
Currently, de.json is (after my currently pending PR) the most up-to-date version we have, 100% formal. Soon, we'll have two versions! But I'm not doing that today.

Question is just if the locale implementation supports that on the app-side, as it currently seemingly uses locale tags, like de or zh-ch

That why I'm waiting to talk to @Frooxius about this before doing it. I would assume it should be possible tho, as en-gb.json does the same, only listing the keys that are different and "inheriting" the rest from en.json

Small update on this - tested it with some examples - this works. Following IETF Language Standard (as Psychpsyo pointed out to me), the correct name for the overload file would be de-x-formal.json. (https://en.wikipedia.org/wiki/IETF_language_tag)
For the German locale this would mean we'll end up with two files:

de.json -> All German locale strings, direct addressing is done the informal way ("Du")
de-x-formal.json -> Only locale strings that contain direct addressing, using the formal way ("Sie")

This pretty much just works out of the box, the only thing that's missing would be the localized name of the language file in the settings menu. That should be "Deutsch (Formell)" for the German version, and "German (Formal)" for the international one. This will likely only make it into the game post-release, but Froox said it should be possible.
I already started a branch on my forked version of the repo, and will work on splitting the file up into two versions later today.


[request] ReadContext.jsonString(String path) and jsonString(String path, Predicate... filters)

Hi, could you consider to provide these two method:
public interface ReadContext {
    ...
    String jsonString(String path);

    String jsonString(String path, Predicate... filters);
}

If the json string too complex, i can use jsonpath to extract the sub json string, then use Gson or Jackson to deserialize to complex DTO structure.
Now sometimes i can use <T> T read(JsonPath path); instead. But it not always run ok. i must add test case to ensure it run ok.

Hi, I think there has been a String jsonString() method in ReadContext interface. So you can try:
DocumentContext context = JsonPath.parse(JSON);
String jsonString = context.jsonString();

But it would be better if <T> T read(JsonPath path, Class<T> type) supports String class. I'd like to make a PR for that.


Rust Lisbon Live Jan 2020

Please help us by filling out the text below. All answers are optional
Rust Lisbon Live Jan 2020
Where
Onfido
R. Alexandre Herculano 38 · Lisboa
What
Kick-off of Rust Lisbon regular meetups, ie. a place for programmers of all levels and skills who share a burning passion or mere curiosity for the Rust programming language. The aim is to build and bring together Lisbon's Rust developer community and give it a voice to exchange ideas, learn, debate and socialize.

[ x] Meetup with talks

Links: https://www.meetup.com/Rust-Lisbon/events/266629066/
When
9th January 2020, 18:00

[ x] I'd like the event to be on the public calendar
[ x] It's a repeating event, I would like to have access to the calender to do things on my own

Support

[ x] I need coaching or help to get started faster
[ x] I would like to be introduced to fellow meetup organizers in my area
[ x] I need help promoting

You can promote your event by advertising it on Twitter, Reddit and other channels. We understand that the breadth of this may be overwhelming for organizers and would offer to advertise the event for you. If you already have an active Twitter account and/or regularly announce your meetup through other channels you might not need this option.

[ x] I need additional help promoting my event

[ x] I'd like to have swag (e.g. stickers)

If you're interested in obtaining stickers and/or swag, please send a short email to the community team, providing

Your physical mail address and phone number
The projected number of attendees for your event
How many events you're planning to run in the future
Optionally, if you're interested in a certain type of swag for specific reasons (e.g. you're running a T-Shirt give away)

CoC
The Rust project uses a Code of Conduct and we generally recommend you to as well. We also give advice on motivations and which one could be fitting for your project.

[ ] We use a Code of Conduct
[ x] We need a recommendation for one

Contact details

[ x] I filled out the form at https://docs.google.com/forms/d/e/1FAIpQLSf52YXGhqBaHtCXtVna4iHYMK7IQaTqUW6V-ztsZC8C2TBInQ/viewform and would like you to contact me with news.

Added the meetup to the calendar. Unfortunately we don't have any resources for swag at the moment.

Hey @razvih!
I'm closing this issue to clean up the repo, but if you have any thoughts or comments (or links/blogposts etc.) to share about how the event went we would be happy to hear about them!


can't rename HTML tag in jsx by F2

@mjbvz @rzhao271
Version: 1.71.0-insider (Universal)
Commit: 16faaf4eb07424d5d7dba7d12bffd64309c283f7
Date: 2022-08-29T15:28:34.899Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 21.6.0
Sandboxed: Yes

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!

Why has this been marked out of scope? This is a feature that was supported already.

facing the same

To verify:

Default renames should rename  matching tags now. Test on both html tag names (<div>) and custom components (<Button>)

If you change typescript.preferences.renameMatchingJsxTags, then renaming custom components should instead  renaming all references to that component