[Bug Report]  required indicator on wrong side for label-position top or left

Element UI version
2.4.1
OS/Browsers version
All
Vue version
2.5.17-beta.0
Reproduction Link
https://jsfiddle.net/bahc1Lve/ (includes a fix in the SCSS)
https://elementui.github.io/issue-generator/#/en-US Your own issue generator has label-position top
Steps to reproduce
Have a <el-form-item> inside a <el-form> with a label-position of top or left. This <el-form-item> has a label and is required.
<el-form label-position="top">
  <el-form-item label="Name" required></el-form-item>
</el-form>

What is Expected?
The required indicator (the red *) should be on the right side of the label.
What is actually happening?
The required indicator is on the left side of the label.

According to the doc, the label-position attribute decides how labels align. This does not affect how the identifier is placed.

I think users can decide the position of the indicator by using CSS.


feat: allow operation handlers to match on json payloads

Proposed changes
The extension of custom operation handler makes it easy to use c8y custom operations in thin-edge. Users no longer have to create custom SmartREST templates.
Changes:

custom operation handler can accept JSON over MQTT topic
command field accepts arguments from JSON payload, same format as operation workflow
supporting 504-506 messages to update operation status
added skip_status_update = true option

Todo:

[x] add skip_status_update option
[x] error handling
[x] unit/system test

Will be done in follow-up:

[ ] user guide
[ ] quick refactoring https://github.com/thin-edge/thin-edge.io/pull/3144#discussion_r1785941656

Example usage:
Install c8y-command-plugin and modify /etc/tedge/operations/c8y/c8y_Command as below.
[exec]
topic = "c8y/devicecontrol/notifications"
on_fragment = "c8y_Command"
command = "/usr/bin/c8y-command ${.payload.c8y_Command.text}"
skip_status_update = true

Then, try Shell tab in c8y.
Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
[ ] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue
#3095 "Drop 1"
Checklist

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA (in all commits with git commit -s)
[x] I ran cargo fmt as mentioned in CODING_GUIDELINES
[x] I used cargo clippy as mentioned in CODING_GUIDELINES
[x] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments

If there is a custom operation handlers with invalid contents, you may see multiple times of the same warning message as below.
WARN c8y_api::smartrest::operations: ''command' is missing in the JSON custom operation handler mapping 'my_CustomOperation'

This is caused by too many loadings of the /etc/tedge/operations/c8y directory by c8y-mapper. Reported in https://github.com/thin-edge/thin-edge.io/issues/3160.

Review done, implemented as described, the tests/RobotFramework/tests/cumulocity/custom_operation/custom_operation_command/custom_operation_command.robot
is doing what it is intended for. Checked for flakines.


aks-preview: Release aks-preview 0.4.67

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it mcr.microsoft.com/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/bowang-666/azure-cli-extensions.git@bowang/rel-467#subdirectory=src/$EXT&egg=$EXT"


Publish a plugin in the plugin directory

Hi @fguillot
The Relationgraph plugin is available for all users and working in the latest kanboard version.
What I need to do to publish this plugin in the plugin directory?
The URL is: https://github.com/xavividal/kanboard-plugin-relationgraph
Thanks !

@xavividal please read the bottom of the plugins page:
"To publish your own plugin on this page, send a pull-request to this repository."

Thanks


Item Request Service Authentication

In order to provide continuity of service an existing library user can sign in to use the Item Request Service.
There are outstanding questions as to whether this should be a user migration or integrate with existing authentication mechanisms.

Dupe of https://github.com/wellcomecollection/item-requests-service/issues/7


Feature request: Recognize bot username automatically

Right one defines the agent tag @bot
Ideally the tag should be to the real username behind the agent wallet @cointoss instead of being hardcoded

https://github.com/ephemeraHQ/message-kit/pull/158


fix: build on windows

Currently foyer fails to compile on windows systems. This fixes the errors by adding some line that are cross platform or by adding crates that provide cross platform functionality.

[x] I have written the necessary rustdoc comments
[x] I have added the necessary unit tests and integration tests
[ ] I have passed make all (or make fast instead if the old tests are not modified) in my local environment.

the specific steps in the makefile are not compatible with windows. Ran cargo test though*

close #263

Hi, @spector-9 . Thank you very much for your contribution! It would be great to have foyer run on Windows. But I cannot get bandwidth to do it. This PR helps a lot!!
I'll review it tomorrow. Thank you again for this PR. 🥰

the specific steps in the makefile are not compatible with windows. Ran cargo test though*

BTW, what build system is most widely used on Windows? Is powershell script okay to replace Makefile?

the specific steps in the makefile are not compatible with windows. Ran cargo test though*

BTW, what build system is most widely used on Windows? Is powershell script okay to replace Makefile?

Honestly I would suggest since this is a rust project use something like nurfile so script/shell is cross-platform. Atleast that's what I use for my projects. If not then I can take a look at makefile and see what can be done to make it work on windows in separate PR.

@MrCroxx Let me know if I need to do something else. Thanks for your help.

@MrCroxx Let me know if I need to do something else. Thanks for your help.

Hi @spector-9 , Thank you a lot for the contribution. I'll update this branch to try to setup CI on Windows to see if it works.
I'm sorry that this may bring you some inconvenience. You need to update your local branch if needed.
If this CI passed, this PR will be merged ASAP.
Thank you again. 🥰 Wish you enjoy using and developing foyer ~


Support @throws {@link SomeException} some text for undocumented throws and @exception

Summary
See example.
Lint Name
JAVADOC_UNDOCUMENTED_THROWS
Reproducer
class FalsePositive {
    /**
     * Does something
     *
     * @param a the value that should be passed
     * @throws {@link IllegalStateException} triggered if a is true, otherwise nothing happens
     */
    public void doSomething(boolean a) {
        if (a) {
            throw new IllegalStateException("something went wrong");
        }
    }
}

Turns out spoon does return for getParam {@link which makes it hard to parse. Not worth the effort.


source gvimrc if XDG_CONFIG_HOME is used

Fixes #14567
Probably needs test case added?

Thanks, yes a test would be helpful. Something similar to Test_xdg_runtime_files() in test_gui.vim/setup_gui.vim?

I have the following patch now, If you could please have a look into how to check that the gvimrc file is loaded please?
diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt
index 6e0875281..795f1faa2 100644
--- a/runtime/doc/gui.txt
+++ b/runtime/doc/gui.txt
@@ -70,6 +70,8 @@ When the GUI starts up initializations are carried out, in this order:
   - For Win32, $HOME is set by Vim if needed, see |$HOME-windows|.
   - When a "_gvimrc" file is not found, ".gvimrc" is tried too.  And vice
     versa.
+  - On Unix, if "~/.config/vim/gvimrc" or "$XDG_CONFIG_HOME/vim/gvimrc" is
+    exists, it is source.  You can check this with ":version".
   The name of the first file found is stored in $MYGVIMRC, unless it was
   already set.
 - If the 'exrc' option is set (which is NOT the default) the file ./.gvimrc
diff --git a/src/gui.c b/src/gui.c
index 195369102..4180a7b06 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -578,6 +578,10 @@ gui_init(void)
 #ifdef USR_GVIMRC_FILE3
                 && do_source((char_u *)USR_GVIMRC_FILE3, TRUE,
                                                     DOSO_GVIMRC, NULL) == FAIL
+#endif
+#ifdef XDG_GVIMRC_FILE
+                && do_source((char_u *)XDG_GVIMRC_FILE, TRUE,
+                                                    DOSO_GVIMRC, NULL) == FAIL
 #endif
                                )
            {
diff --git a/src/os_unix.h b/src/os_unix.h
index 67dad2e68..8f9d88e1f 100644
--- a/src/os_unix.h
+++ b/src/os_unix.h
@@ -281,6 +281,12 @@ typedef struct dsc$descriptor   DESC;
 # endif
 #endif

+#ifndef XDG_GVIMRC_FILE
+# define XDG_GVIMRC_FILE (mch_getenv("XDG_CONFIG_HOME") \
+       ? "$XDG_CONFIG_HOME/vim/gvimrc" \
+       : "~/.config/vim/gvimrc")
+#endif
+
 #ifndef VIM_DEFAULTS_FILE
 # define VIM_DEFAULTS_FILE "$VIMRUNTIME/defaults.vim"
 #endif
diff --git a/src/testdir/test_xdg.vim b/src/testdir/test_xdg.vim
index 557864e25..9dc981874 100644
--- a/src/testdir/test_xdg.vim
+++ b/src/testdir/test_xdg.vim
@@ -147,14 +147,22 @@ func Test_xdg_version()
   unlet $XDG_CONFIG_HOME
   let a = execute(':version')->split('\n')
   let a = filter(a, { _, val -> val =~ '\.config\|XDG_CONFIG_HOME' })
-  call assert_equal(1, len(a))
-  call assert_match('\~/.config/vim/vimrc', a[0])
+  " There should be 1 entry for gvimrc and 1 entry for vimrc,
+  " but only if Vim was compiled with gui support
+  call assert_equal(1 + has("gui"), len(a))
+  call assert_match('\~/\.config/vim/vimrc', a[0])
+  if has("gui")
+    call assert_match('\~/\.config/vim/gvimrc', a[1])
+  endif

   let $XDG_CONFIG_HOME = expand('~/.xdg')
   let a = execute(':version')->split('\n')
   let a = filter(a, { _, val -> val =~ '\.config\|XDG_CONFIG_HOME' })
-  call assert_equal(1, len(a))
+  call assert_equal(1 + has("gui"), len(a))
   call assert_match('XDG_CONFIG_HOME/vim/vimrc', a[0])
+  if has("gui")
+    call assert_match('XDG_CONFIG_HOME/vim/gvimrc', a[1])
+  endif
   unlet $XDG_CONFIG_HOME
 endfunc

diff --git a/src/version.c b/src/version.c
index 68b58b0b4..78523c338 100644
--- a/src/version.c
+++ b/src/version.c
@@ -1795,11 +1795,18 @@ list_version(void)
     version_msg(USR_GVIMRC_FILE2);
     version_msg("\"\n");
 # endif
+    // USR_GVIMRC_FILE3 is defined on Amiga,
+    // XDG_GVIMRC_FILE is defined on Unix
 # ifdef USR_GVIMRC_FILE3
     version_msg(_("3rd user gvimrc file: \""));
     version_msg(USR_GVIMRC_FILE3);
     version_msg("\"\n");
 # endif
+# ifdef XDG_GVIMRC_FILE
+    version_msg(_("3rd user gvimrc file: \""));
+    version_msg(XDG_GVIMRC_FILE);
+    version_msg("\"\n");
+# endif
 #endif
     version_msg(_("       defaults file: \""));
     version_msg(VIM_DEFAULTS_FILE);

might not be perfect yet, the USR_GVIMRC_FILE3

I have the following patch now: https://github.com/chrisbra/vim/commit/ba89d66bc6fb6567c4784a62847cea7c4b061b3e, If you could please have a look into how to check that the gvimrc file is loaded please?

Looks fine, gvimrc is loaded

Okay, let me try to find a way to test this change for GUI env.


[Error] Sequelize CLI

Hi.
When I tried to enter the command  npx sequelize db:migrate the error appeared, do you know hot to solve it?
~/whaticket/backend$ npx sequelize db:migrate

Sequelize CLI [Node: 12.19.0, CLI: 5.5.1, ORM: 5.22.3]

Loaded configuration file "dist/config/database.js".

ERROR: Dialect needs to be explicitly supplied as of v4.0.0

Dialect needs to be explicitly supplied as of v4.0.0

put the dialet right here, like, sql, mongodb or mysql

@alvares , @srgoogle23 solution works for you?
Remember to build backend again after changes.

mine had given this error and I solved it like this, did the solution solve for you? @alvares

Yes, Thank very much!


Switching to version with needed cyvcf2 library

Added a PR to the repo for future reference, I'll follow the pattern Tom suggested next time: genome/docker-annotation_table-cwl#2


Transferable support

Hello,
I'm trying to use "Transferable objects" but no luck. Should it work?
// worker
import rnd from 'random-int';
// Dependencies get bundled into the worker:

// Export as you would in a normal module:
export function meaningOfLife(): number {
  return 42;
}

export class MyClass {
    private value: number;

  constructor(value: number = rnd()) {
    this.value = value;
  }
  public increment() {
    this.value++;
  }

  public gimmeABuffer(value: Uint8Array) {
    return value;
  }

  // Tip: async functions make the interface identical
  public async getValue() {
    return this.value;
  }
}

// main
      async function init() {
        const inst = new worker2();
        // our module exports are exposed on the instance:
        await inst.meaningOfLife(); // 42

        const data = new Uint8Array([1, 2, 3, 4, 5]);
        await inst.gimeABuffer(Comlink.transfer(data, [data.buffer]));

        // instantiate a class in the worker (does not create a new worker).
        // notice the `await` here:
        const obj = await new inst.MyClass(42);

        await obj.increment();

        const value = await obj.getValue();  // 43
        window.console.log(value);
      }
      init();

The problematic line:
        const data = new Uint8Array([1, 2, 3, 4, 5]);
        inst.gimeABuffer(Comlink.transfer(data, [data.buffer]));

and the error:
  151 |   break;
  152 | case MessageType.APPLY:
  153 |   {
> 154 |     returnValue = rawValue.apply(parent, argumentList);
      | ^  155 |   }
  156 |   break;
  157 | case MessageType.CONSTRUCT:

Thanks!

FYI - using the worker-loader with comlink seems to do the trick

Did you solve this issue? Could you provide some details if yes?

In the worker, I expose the function with:
Comlink.expose(generateAttributes);

On the main thread:
/* eslint-disable import/no-webpack-loader-syntax */
import ThresholdingWorker from 'worker-loader!./ThresholdingWorker';

...

// instancing stuff
    const thresholdingWorker = new ThresholdingWorker();
    this.thresholdingWorkerWrap = Comlink.wrap<ThresholdingWorkerType>(thresholdingWorker);

...

// running the worker
  public run({ dimX, imageData, rangeX, rangeY, rangeZ, rangeThreshold }: ThresholdingPayload) {
    return this.thresholdingWorkerWrap(dimX, imageData, rangeX, rangeY, rangeZ, rangeThreshold);
  }


Remove the parameters from examples/bulk_si

I removed the symmetry parameters from the example input file input_si_(sc|lr|ms).inp to avoid the missleading of users (which is discussed in the previous meeting). And removed nksplit and nxysplit which is useless in the present version.

I'm checking but a lr calculation is so heavy. It doesn't end within 30 minites even if I use 512 nodes on the K computer. Could you wait for a moment, @uemoto1 san?

Thank you for comment @mn2007 . I also feel the calculation without using the symmetry is a bit heavy to use in the example calculation...  I have couple of the plans for the symmetry parameters in the examples:

Remove isym in the sample with reducing the R/K grid points.
Keep  isym in the sample but does not explain this in the web tutorials.

I will discuss this point with Prof. @yabana. Please wait a moment.

Thank you for considering the problem, @uemoto1 san. I wait until you decide.

@mn2007 san, we will change the exchange correlation and Nk parameter to speed up. I will send the bug fix later.

I'll try with these input files. Please wait for a moment.

Both calculations ended within 30 minites with 64 nodes on the K computer. (A multi-scale calculation ends within 30 minites with 8 nodes.) And calculated results are the ones which are supposed to be. So I merge this PR. Thank you for preparing files, @uemoto1 san.

Thank you @mn2007 san, for quick checking and merging!


Improve code actions support for optional fields, union typed fields & query expressions

Description:
In data mapper, we are planning to reuse code actions from LS side to let user fix errors appear after mapping some fields (or convert some expressions) from Data Mapper UI itself.
Example :

type Input record {
    string fieldIn?;
}

type Output record {
     string fieldOut;
}

function transform(Input input) returns Output => {
    fieldOut: input.fieldIn
}

Scenario: User maps an optional field from the input record variable to output.
UX: A link will be drawn between the input field and out put field - but since there's an error - link will be rendered in red.
User can click on Fix Icon on link and see available code actions to fix.
User clicks "Add type Cast" option and code gets updated.
Error goes away.
Below is an screenshot of code view experience for this use case ATM.

Describe your problem(s)
For the mentioned experience, we are in need of several other code actions initially (the list can grow if we find any other common uses cases as we move on with Data Mapper features)

Suggest Elvis operator as a fix for accessing optional fields - similar to provided example above.
Currently type cast is suggested as the only fix for that use case.
Elvis lets user define a default value which is used in most of the mapping scenarios for missing data.
Fixed code for this use case will be similar to below.

Suggest converting an array to array mapping into a query expression.

There are two cases here.

member types of the two arrays are equal
member types are different

When member types are equal, user won't see any errors after mapping, but still can convert that field access/name reference expression into a query expression to further process the array (filter, etc).
When member types different, there will be compiler errors and converting to query will be the only solution possible.
Describe your solution(s)
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

The convert to query expression code is tracked under #37350


why g_objects[id_ch[i]].max() > 0.5 ?

you are using generator last layer tanh(-1~1)
i think it shoud be g_objects[id_ch[i]].max() > 0
isn't it?

Hey Thanks for the PR.
You are correct on the tanh part that it should be >0 and not >0.5, but when I plotted the output for >0, there was a lot of noise around the objects.
I used 0.5 just as a threshold to display only the "high confidence" voxels in the plot.
I know for a fact that the threshold will be 0 if you train it longer. If you have GPUs available and get good results with 0 as the threshold, please feel free to share them so that I can merge this PR.

i'm sorry

i'm sorry g_objects[id_ch[i]].max() > 0.5 is right
generator's output tends to positive because all image have positive value


Add Target and Plan File arguments to bundle

Allow the bundle command to process one or more target names and/or plan file names, rather than the default target and plan. This will allow users to bundle just specific plans or multiple plans. Depends on #153.

add done in 0c7237c, and with reference to #201.

Did tag in 2ba5ee80b321491b369bf34e11e7a9f918495d8a.

Did rework in 0b128e7. That should do it.


[PERF] Out-of-order execution of actor pool tasks and lazy actor pool initialization

How are we testing/verifying this fix?

How are we testing/verifying this fix?

I plan on replicating Kyle's UDF workload and measure the improvement + look at the chrome trace

closing for now because it is stale


Disable time - when not found, just rounds up

Hi all, please take a look at this demo code link: https://codepen.io/anon/pen/QPaJoE
As you can see, the interval is 15 minutes. I want to disable 1:20 am. Since 1:20 am is not a valid/found time, it automatically disables the next time on there, which is 1:30 am.
Does anyone have a solution to this? If the time is not found, then don't disable anything for that time.

Hi,

Since 1:20 am is not a valid/found time, it automatically disables the next time on there, which is 1:30 am.

This looks correct to me as you use the interval of 15 minutes.
And the next valid time is disabled. See https://github.com/amsul/pickadate.js/blob/master/lib/picker.time.js#L419-L420

Hi,

Since 1:20 am is not a valid/found time, it automatically disables the next time on there, which is 1:30 am.

This looks correct to me as you use the interval of 15 minutes.
And the next valid time is disabled. See https://github.com/amsul/pickadate.js/blob/master/lib/picker.time.js#L419-L420

It would be the same with # of minutes... Is there any way to disable it so that if the time is not found, it doesn't select the next one?

No, see the marked lines. It searches for the next available time.


Decide whether I want to put files at the top level of the repo into their own packages

must.go, numbers.go, strings.go

IntMax() in numbers.go could be moved into a package called integers or intmath or similar, which doesn't conflict with anything in the Go standard library.


Parser preventing from build

Hello,
we are a team trying to work using you nice pkg.
The problem is that it is impossible to build for us.
Indeed, it looks like the Parser can't be used as it is in the package.
Here are the errors when we build our project after importing yours:
node_modules/f1-telemetry-client/build/src/index.d.ts:33:71 - error TS2702: 'Parser' only refers to a type, but is being used as a namespace here.
33     static parsePacketHeader(buffer: Buffer, bigintEnabled: boolean): Parser.Parsed<any>;
                                                                         ~~
node_modules/f1-telemetry-client/build/src/parsers/F1Parser.d.ts:8:33 - error TS2702: 'Parser' only refers to a type, but is being used as a namespace here.
8     fromBuffer(buffer: Buffer): Parser.Parsed<any>;
                                  ~~
Found 2 errors.

error Command failed with exit code 2.

Any idea on how to fix it?

the quick fix is to change the e line fromBuffer(buffer: Buffer): Parser.Parsed<any>;  to fromBuffer(buffer: Buffer): Parser; or fromBuffer(buffer: Buffer): any; in the node modules folder.
thank you for reporting, I will look into this.

updated types and did a quick test, it should work now in the 1.0.6 version


Crash when deserializing unknown field in struct

Hey there! Not sure if working with unknown fields is unsupported in simd-json-derive, but often I'm working with public external REST APIs that return a lot of JSON data. I only want to deserialize some fields that I'm going to work with and ignore unknown ones.
I've noticed that if the data includes an unknown field before the fields I've defined, there is a crash.
use simd_json_derive::Deserialize;
use std::error::Error;

#[derive(Debug, Deserialize)]
struct Model<'de> {
    text: &'de str,
}

fn main() -> Result<(), Box<dyn Error>> {
    // Unknown field after, no problem
    let mut json = br#"{"text":"test","unknown":123}"#.to_vec();
    println!("{:#?}", Model::from_slice(&mut json)?);

    // Unknown field before, crashes with "internal error: entered unreachable code"
    json = br#"{"unknown":123,"text":"test"}"#.to_vec();
    println!("{:#?}", Model::from_slice(&mut json)?);

    Ok(())
}

What is the suggested way to handle this case? I thought about listing out all the possible fields ahead of my field, and maybe using something like Serde's IgnoreAny, but this isn't robust since the external API could add other fields in the future.

Ja that's a bug, by default unknown fields should be ignored, will fix :)


Support power levels

Description
Allows users to choose a game power level with, for example, !play power:7.

Resolves #8

Checklist

[x] Add tests for these changes
[ ] Test coverage is not decreased
[ ] Entire test suite passes

Codecov Report

Merging #23 into master will decrease coverage by 1.16%.
The diff coverage is 85.18%.

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
- Coverage   97.18%   96.02%   -1.17%
==========================================
  Files          10       11       +1
  Lines         533      578      +45
  Branches       71       82      +11
==========================================
+ Hits          518      555      +37
- Misses         12       15       +3
- Partials        3        8       +5

Impacted Files
Coverage Δ

src/spellbot/data.py
98.43% <75.00%> (-1.57%)
:arrow_down:

src/spellbot/__init__.py
93.61% <82.35%> (-1.42%)
:arrow_down:

...ions/versions/5576ee9d4270_support_power_levels.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Fix #709

This commit will fix #709.

Thanks for tracking this down! Could you please add a regression test -- something that fails before but passes afterwards? BaseNetCDF4Test looks like the right place: https://github.com/pydata/xarray/blob/eb8d179d344599f68a304e0ca1128398c235a81c/xray/test/test_backends.py#L408

I added a regression test for #709 in BaseNetCDF4. I confirmed that it fails before and passes after applying the fix.

it would be good to add a quick note in "what's new" also to mention the bug fix. Thanks!

My bad.. I put that back.


Disable absolute volume entirely?

I'm new to esp32 and i currently have a setup that included a esp32 and a pcm5102a.
Every time i change volume either on my phone or my laptop, the audio output seem to have some kind of spike sound that disrupt the audio. Disable absolute volume in Developer Setting on my phone helps it but i can't find something like that on my laptop.
Is it possible to set the volume on the board and then disable absolute volume?

Somehow change build_flags = -DCORE_DEBUG_LEVEL from 5 to 3 fixed it


dapp: fix correct match of build modes and paths

Fixes #2269
Short description
The commit message is huuuuge (sorry for that) and should basically explain everything. Checkout the below steps how to do a basic check of this fix gglocally.
Definition of Done

[x] Steps to manually test the change have been documented
[x] Acceptance criteria are met
[ ] Change has been manually tested by the reviewer (dApp)

Steps to manually test the change (dApp)

Create somewhere a new directory which will later be used as root to serve static assets from
Build the dApp in production mode pnpm run build --filter raiden-dapp -- --mode production (lets be explicit with the mode)
Copy the build to the created directory cp -r raiden-dapp/dist/* /to/the/static/assets/dir
Build the dApp in staging mode pnpm run build --filter raiden-dapp -- --mode staging
Copy the build into the /staging sub-folder of the assets directory.
Serve the static assets locally (e.g. npx serve /to/the/static/assets/dir)
Visit the dApp in the browser on / and /staging, make sure that both work but both do not allow mainnet connecitions

Damn it. I think due to the parametrization the server script does not work anymore.

Fixed. Don't hesitate to give a try. :upside_down_face:

It works :wink:


Continue breakdown of test.py

@travs and I previously broke out many of the tests in test.py into their own suites.  There are a few tests remaining that we left alone because they had slightly more complicated dependencies.  We want to make standalone test suites for the remainder of these tests so that test.py is simply a loader file- we should probably rename it TestLoader.py or POWTestLoader.py.

@gsarma
I know the install wasn't going easy on you yesterday; did you get any time to work on this one?

With @travs:
Fixed by #173


Fix Wildtime benchmark_utils create_timestamp() timezone to be UTC

Bug
The create_timestamp() function in benchmark/wildtime_benchmarks/benchmark_utils.py uses the local timezone. The generated timestamp thus is not UTC.
However, modyn Storage assumes a UTC timestamp so that 1970/1/1 corresponds to 0.
Therefore, if the files are generated in Zurich local time, then 1970/1/1 is converted to -3600 in the files table.
Fix
Fix tzinfo to be UTC timezone in create_timestamp().

let's merge this!


Reranking

Employ a bit advance techniques for segmentation and reranking in 'ask_bharat' bot.
Reference can be https://lightning.ai/lightning-ai/studios/document-search-and-retrieval-using-rag?view=public&section=recent

Instead of  from langchain.llms import HuggingFaceHub you may need from langchain_community.llms import HuggingFaceEndpoint
Instead of from langchain.chains import LLMChain you may need LCEL way
# Old Code (using LLMChain)
from langchain.chains import LLMChain
from langchain_openai import OpenAI

prompt = "Write a poem about a cat"
llm_chain = LLMChain(prompt=prompt, llm=OpenAI())
result = llm_chain.invoke()

# New Code (using RunnableSequence)
from langchain_openai import OpenAI

prompt = "Write a poem about a cat"
llm = OpenAI()
result = prompt | llm


bug(cast): revert reason is not printed upon failed execution

Component
Cast
Describe the feature you would like
➜  foundry_test git:(master) ✗ cast send 0x5FbDB2315678afecb367f032d93F642f64180aa3  "customError()" --private-key $PK
Error:
server returned an error response: error code 3: execution reverted:

cast send result in execution revert with out reason(data) is hard to debug.
old version of cast send result would be like:
(code: 3, message: execution reverted: CustomError3333, data: Some(String("0x8d6ea8be0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000f437573746f6d4572726f72333333330000000000000000000000000000000000")))

it's good to make cast send print data like "0x8d6ea8be...".
Additional context
it's good to make cast send print data like "0x8d6ea8be...".

no longer the case, the err is not truncated anymore and displaying
Error: server returned an error response: error code 3: execution reverted: custom error 0x7a0e1985: ed, data: "0x7a0e198500000000000000000000000000000000000000000000000000000000000000650000000000000000000000000000000000000000000000000000000000000064"

please reopen if still issues. thank you!

@grandizzy seems like it's time to reopen the issue? Just got hit with
Error: Failed to send transaction

Context:
- Error #0: Failed to estimate gas for tx
- Error #1: server returned an error response: error code 3: execution reverted

I've been scratching my head about why the execution reverted, and found this issue.


Rename zenith crate to neon_local

Last time we talked consensus was that neon_local would be better than just neon.

neon_cli might be a bit more simple to grasp?

Agreed, neon_cli would be nicer. Or just neon. However, we might have a different CLI in the future, to act as the client for the cloud service. That's different from the current CLI, which controls a local test installation.
Maybe neon_ctl, as in "control local neon installation". And the other CLI could then be just neon.

Umm, actually, we already have a zenith_ctl binary, in compute_tools. That will presumably be renamed to neon_ctl.
I guess we're back to neon_local for this binary...

neon_local is better than staying with zenith, and it's easy to change.

Please also update the top-level README for the new name of the binary


Prepare for the 2.2.1 patch

Changes:

Generate 2.2.0 package baselines
Update dependencies to 2.2.0
Update branding to 2.2.1-servicing

Depends on https://github.com/aspnet/Templating/pull/832

FYI @jkotalik


chore: automate submodules with sparse-checkout, direnv and hooks

Island.is UI lib now inside dmr repo as submodule with symlinks to reference the library itself.
Adding typings needed for build to work
Adding logging lib back, after accidental deletion
Adding rest of the files
Renamed to dmr logging so it does not clash with islandis logging project name
Fix build errors in the quality.yml workflow.
Couple of components and mock version of front page
Shrunk package.json to only required depenendencies
Removed symlinks and unneccary code/references that are not needed.
chore: automate submodules with sparse-checkout, direnv and hooks

Is this PR ready or are we waiting on git commit hash requirement?


First few  functions frexp/ldexp for decimal32

This issue tracks the initial development of the first few <cmath> functions for the decmial32´ type. We begin with frexpandldexp` and the functions needed by these.

See also #40

Finished with 351a368ad0c685de1b4fa7aafa0271d433413f41
We still do, however, have lots to do for ranges, more funcs and constexpr/style-considerations. And we need more tests. These will follow in future issue(s).
Thanks Matt (@mborland) for kicking this off.

See also #51


Merging Schema/Properties result in the ID being the graphID when different ids are detected

current schema id = null
add schemaParentID = "a"
current schema id = "a"
add schemaFile = "b"
if(id "a" and id "b" are different.) //check the id are same else rename to graphID
{current schema id = "graphId"}
Also always check that id doesn't already exist in library. if it does then check is schema is the same?
if not throw exception.
similar for properties ids.

Friday thinking, needs elaboration.

So we need a method within Graph that will update the graphId before the Schema or StoreProperties are updated.  This graphId can then be used within the updateStoreProperties() and updateSchema() to set the id's, using the graphId.  This will solve the issue within Graph, although the issue will still remain if a Schema or StoreProperties is added to a graph library not related to a Graph.

Logic has been updated to merge schema/storeProperties ID's rather than set them to null and then allow the GraphLibrary to deal with the null ID (which will then use the graph ID).  This is because a schema/storeProperties can be merged and added to a GraphLibrary without the use of a graph.  This would then throw an IllegalArgumentException as the ID is null.

blocked whilst we consider removing schema and store properties IDs. See #1477.

Merged into develop.


3S26cel2fah

Start
|
—> "Input temp in Celsius (non-
negative no):"
GET cel
|
Loop
|
Yes    cel>=0 and Is Number
(cel)
|   NO
PUT Invalid input Try
again!"
|
—>     “Input temp in Celsius again
(non-negative no):"
GET cel
|
fah-cel 9/5 +32
|
PUT The temp in Fahrenheit
is: +fah                      —>
|
End

Start
|
—> "Input temp in Celsius (non-
negative no):"
GET cel
|
Loop
|
Yes cel>=0 and Is Number
(cel)
| NO
PUT Invalid input Try
again!"
|
—> “Input temp in Celsius again
(non-negative no):"
GET cel
|
fah-cel 9/5 +32
|
PUT The temp in Fahrenheit
is: +fah —>
|
End

Not clear what this issue is about. Closing.


netCDF4 does not function in Spyder (Windows)

When trying to import netCDF4 in spyder, it does not function. I have managed to fix the h5py issue myself but than other error messages appear:
_import netCDF4
Traceback (most recent call last):
File "", line 1, in
import netCDF4
File "C:\Python27\lib\site-packages\netCDF4_init_.py", line 5, in
from ._netCDF4 import doc, pdoc
ImportError: cannot import name pdoc
import pdoc
import netCDF4
Traceback (most recent call last):
File "", line 1, in
import netCDF4
File "C:\Python27\lib\site-packages\netCDF4_init_.py", line 5, in
from ._netCDF4 import doc, pdoc
ImportError: cannot import name pdoc_
This causes me to be unable to work with NC files locally and that is a big issue for my research.
I have Spyder <IP_ADDRESS> and Python2.7.10 32bits on windows 10(home edition)
For hours I have tried to google for a solution but I cannot find anything the actually solves this problem
Could somebody please help me out?
Dependencies:
IPython >=1.0   :  2.4.1 (OK)
jedi >=0.8.1    :  0.9.0 (OK)
matplotlib >=1.0:  1.4.3 (OK)
pandas >=0.13.1 :  0.16.2 (OK)
pep8 >=0.6      :  1.6.2 (OK)
pyflakes >=0.5.0:  0.9.2 (OK)
pygments >=1.6  :  2.0.2 (OK)
pylint >=0.25   :  1.4.3 (OK)
rope >=0.9.2    :  0.10.2 (OK)
sphinx >=0.6.6  :  1.3.2 (OK)
sympy >=0.7.3   :  1.0 (OK)
zmq >=2.1.11    :  14.7.0 (OK)

This seems an installation problem with netCDF4, so it's not related to Spyder.
How did you install netCDF4?

through easy_install netCDF4 in my windows shell. I have also tried pip install netCDF4 after uinstalling the previous version through easy_install, but the same problems occur

I'm sorry but we can't help you with this because the problem is not related to Spyder.
I'd recommend you to install the Anaconda Python distribution and try again.


7.0.x on Ubuntu 20.04 - amd64

Details of the Distribution

Name of the Distribution: Ubuntu
Version of the Distribution: 20.04
Package Types

[x] Deb
[ ] RPM
[x] Tar.gz
Snap - Please file issue in https://github.com/powershell/powershell-snap.  This issues type is unrelated to snap packages with a distribution neutral.

Processor Architecture (One per request):  amd64
The following is a requirement for supporting a distribution without exception.

[x] The version and architecture of the Distribution is supported by .NET Core.

The following are requirements for supporting a distribution.
Please write a justification for any exception where these criteria are not met and
the PowerShell committee will review the request.

[x] The version of the Distribution is supported for at least one year.
[x] The version of the Distribution is not an interim release or equivalent.

Progress

[x] An issues has been filed to create a Docker image in https://github.com/powershell/powershell-docker

For PowerShell Team ONLY

[ ] Docker image created - https://github.com/PowerShell/PowerShell-Docker/issues/558
[ ] Docker image published
[ ] Distribution tested
[ ] Update packages.microsoft.com deployment
[ ] Lifecycle updated
[ ] Documentation Updated

There is already an issue open for Ubuntu 20.04 - https://github.com/PowerShell/PowerShell/issues/12626 - but that one seems to target just 7.1.x and also close for comments.
Considering that net core 3.1 is the LTS and supported on Ubuntu 20.04, and PSCore 7.0.x is the LTS and based on the same .net core 3.1, I would expect that PSCore 7.0.x is supported also on Ubuntu 20.04 but there is no package available.
To add to the confusion, the information about supporting 7.0.x on Ubuntu 20.04 is conflictual in the documentation:

Here is mentioned as NOT supported: https://docs.microsoft.com/en-us/powershell/scripting/powershell-support-lifecycle?view=powershell-7
Here is mentioned as supported: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7

@anamnavi Can you create the docker image from the LTS channel?

This is already supported:
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.2#ubuntu


documentation missing multiple headers

Going through the documentation that doxygen builds, at least a few classes in the CesiumGltf namespace are missing, but the headers exist and have doxygen-style comments. Notably Model and NamedObject (which do not appear to be generated by generate-classes) are in the docs, but Mesh and MeshPrimitive are not (which are generated). Is it possible that headers generated by generate-classes are not making their way into some doxygen related config?

Yep, the generated include directories are probably missing from there:
https://github.com/CesiumGS/cesium-native/blob/main/doc/CMakeLists.txt


Export and Share with Document Title

Since you can name your documents, it would be very helpful avoiding additional work that those titles are used with exporting/sharing the document as pdf.
Currently there are just generated document titles?

@hoergen great idea! Will do that

@hoergen it has been added

Wow you are quick! Thank you very much.  :heart:
I close this feature request.


Fix Jest usages for mock

There are some jest related things which aren't optimum.
Example - https://github.com/okonet/lint-staged/blob/33a7a4ae6a89603eb929ffe70e3900021a78f307/test/mocks/npm-which.js#L1-L14
This isn't using jest.genMockFromModule correctly.
Docs - http://facebook.github.io/jest/docs/en/jest-object.html#jestgenmockfrommodulemodulename
Guide - http://facebook.github.io/jest/docs/en/manual-mocks.html
Another example for less optimal assertion - https://github.com/okonet/lint-staged/blob/33a7a4ae6a89603eb929ffe70e3900021a78f307/test/runScript-mock-pMap.spec.js#L21-L25

@okonet I see that this was prioritized as 'Most Important'. Should I work on this next?

I think it's a mistake. I'll move it to chores.


Planetcaver web pages now default to skiing

Ah... bug elsewhere in the Planetcaver website scripts. Fixed without action in Psgeo.


Localization relocation

Move all language and localization code into one folder (wirepod/localization)
Add some extra formatting and colors in log
Special case for if STT service is Vosk but language is blank. Setup initiated again if that is the case
A more user-friendly error in case of SSH setup error

Next up on the docket is a reimplementation of plugins. There are a couple of ways I can go about this.

gRPC. This would be the fastest, probably most correct way to do this. Ensures intercompatibility between languages, makes functions easy to implement. However, we have no real reason to use HTTP/2, unless we want to pipe the audio elsewhere. But, if you want to do that, you may as well create your own chipper implementation.
A normal REST API. wire-pod could hook into an API, with its endpoint configured in the web interface. It would send over the processed intent, transcribed text, bot serial, bot IP, and bot token (maybe), and the external API could do its SDK magic. It could also return a special intent/intentparams back to wire-pod and have that be given to the bot. This is essentially the same idea as gRPC, but more simple (at least for me).

Go has a plugins system. It is not great. It requires plugins to be built specifically for the Go version of the system, and with the same EXACT package versions. Because of this, the current plugin implementation is off the table. An external program (written in Python or something) could handle dynamic code addition instead. The goal of this is ease-of-use and the ability to be dynamic. Eventually, I want it to be as simple as a store added to the web interface, which the user can choose plugins from, and they would just work without any compilation or restart of the program.

I like the fastest and most correct way first (option 1). Less tech debt later.


Add support for collections/arrays

Using Microsoft.Framework.ConfigurationModel <IP_ADDRESS>-rc1-10693.
Trying to convert the Autofac configuration system over to use the new configuration mechanism. Current Autofac configuration allows for a collection of classes to be registered via config, sometimes with different parameter sets, like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <modules>
    <module type="ParameterizedModule">
      <parameters>
        <parameter name="message" value="First" />
      </parameters>
    </module>
    <module type="ParameterizedModule">
      <parameters>
        <parameter name="message" value="Second" />
      </parameters>
    </module>
  </modules>
</configuration>

Notice the module type is the same but the parameters provided are different.
This sort of configuration doesn't appear to be possible with the new XML or JSON implementations of configuration.
If I try loading this into the XML provider, I get an exception that the module type is duplicated.
For JSON, I'm not sure how I'd represent this without arrays. I originally thought it'd be something like this...
{
  "modules": [
    {
      "type": "ParameterizedModule",
      "parameters": [{ "name": "message", "value": "First"}]
    },
    {
      "type": "ParameterizedModule",
      "parameters": [{ "name": "message", "value": "Second"}]
    }
  ]
}

But the JSON support doesn't support arrays (i.e., the Load method in JsonConfigurationSource throws if it encounters an array)... and, as mentioned, XML throws on duplicate elements.
I've not seen anywhere in the docs how to handle this and I've not found any roadmap, but this seems like an important use case to me. Am I missing something? Is there a better way to handle this situation?

Curious if anyone's thought about this at all. I see it overlaps with #115 so I'd be OK with closing this one and just following there. Either way, it'd be nice to know if this is planned or not so I know what to do with my consuming code.

I see #115 is in planning so I'll close this one.

Unfortunately there is no way to read arrays from XML (FormatException). Arrays are supported in JSON and INI configs.
Does anybody plan to add support for Arrays in XML?

You can do arrays in XML, you just have to give the XML element a name with the array index, like:
<root>
  <node name="0" value="first array element" />
  <node name="1" value="second array element" />
</root>

@tillig Thanks for the answer, but what if I need to use "name" attribute for other purposes?

The name attribute is special. If you need array behavior, this how you do it. There's no "override" or configuration/customization for it.
The whole way arrays work is that the "name" of the element is the array index. Iterating through "arrays" in the configuration source can be done with a foreach, but if you look at each child you're iterating through, you'll see the "key" on the child property is actually the array index as a string. That's done so INI files can "fake" arrays ("ordinal collections"), so JSON array support works... and this is how XML support also works.
If that means you need to nest elements, do that.
<root>
  <node name="0">
    <value name="first" />
  </node>
  <node name="1">
    <value name="second" />
  </node>
</root>


Adapt elWigo to work on recent BW

Fixes #4
I know this is hacky, but at least it loads... and looks correct (at a glance):

Superseded by  3ace47debc4353e44fe0da4667411e3554374f26


Fix hadoop task failure when ignoreInvalidRows is null

This PR is intended to fix the behaviour where Index hadoop tasks would currently fail at https://github.com/apache/incubator-druid/blob/master/indexing-hadoop/src/main/java/org/apache/druid/indexer/IndexGeneratorJob.java#L289 if ignoreInvalidRows is not present in the tuning config.
Also minor fix in the index hadoop spec used for integration tests.

@jon-wei Could you please take a look?

+1 after CI


Add the Miou implementation of happy-eyeballs

This implementation provide an happy-eyeballs implementation with Miou with the idea proposed in #38 (with a protection to avoid to inject multiple a time a DNS resolver). This implementation is able to provide what is needed for dns-client then and handle UDP, TCP and TLS DNS resolution (the last one with tls-miou available here mirleft/ocaml-tls#494).
I tested the implementation with httpcats and see if I was able to resolve domain-names with UDP, TCP and TLS. Minor some timeout on uncensoreddns (used for TLS), everything seems to work.
The idea of this implementation is to launch a task in parallel which will care about its internal state and how to connect sockets to a given IP address. The daemon tries multiple connections and take the first one connected - other sub-tasks are cancelled and their file-descriptors are properly closed. The daemon works with a internal queue which aggregate user's actions and events from sub-tasks (when a socket is connected, we fill this queue with such event). The daemon can be suspended a certain amount of times (when happy-eyeballs returns  `Act) or suspended as long as nothing (user's actions or events) appears (when happy-eyeballs returns  `Suspend). Finally, the transfer of the file-descriptor is done via an atomic value. The user initiate a busy-loop and receive an error (if the happy-eyeballs say so) or the socket connected.
A documentation was written to explain the purpose of inject_resolver and to precise that the user must kill the daemon at the end of the process.

I added a new patch which takes the advantages of Miou_unix.Ownership and ensure that, in any situation, we don't leak file-descriptors. I added some comments to explain how Miou handles file-descriptors and cancellation.

I re-implemented happy-eyeballs with Miou (and no pin are required) to reflect the recent change made on the package and ocaml-dns. I think this PR is good to review and merge now.

Ok, we are done on this side. I checked that we don't have a file-descriptor leak. The Miou.Ownership design works like a charm and I improved this version by the deletion of a busy-waiting loop and replace it directly by Miou.Computation which take the advantage of the low-level API of Miou (inspired by picos). A little program is provided: happy-eyeballs-miou-unix.connect which can helps us to see how the library works via logs.


Round FixedPoint::operator*=

Coverage remained the same at 100.0% when pulling 79011b5283697b7f824a9871dd9fd69b912f07b7 on rounding-mul into de432be0682ffaf24f749f6276e41563bb588596 on master.

Coverage remained the same at 100.0% when pulling 61f3bf6617f52595f446e436754a5400bc6e70eb on rounding-mul into de432be0682ffaf24f749f6276e41563bb588596 on master.

Coverage remained the same at 100.0% when pulling 66d37f530a3cd588f4d18b79dce856457f3f512c on rounding-mul into de432be0682ffaf24f749f6276e41563bb588596 on master.


Statement Management Pluggability in infinite-red-app-template

We're team Redux.  Nothing wrong with that.
Mobx, rxjs, cycle, redux-loop.  I can't keep em all straight.
Question I have here is... do we want to support pluggability into ignite-infinite-red-app-template?  or do we encourage people to make their own boilerplates?
I vote the latter.  But what does everyone think?

So your idea is keep that problem at the boilerplate level?   I kinda like this solution.  It slides the scale in the other direction for simplicity.
Let's discuss and put our resulting convo here on github.

The current landscape of react-native boilerplates is zero-sum.  Everyone has their strong opinions and they start their own starter kit and we fragment more & more.
Ignite is now offering an end to that churn.  And it's not our opinions.  It'll be our plugins.
See, I think its sound advice to "create your own boilerplate".  You pick the right state management for you.  You pick the right styling components.  You pick the navigator you like.
But we all need maps.  Push notifications.  Vector Icons.  CodePush.
We have a way we build stuff at Infinite Red.  I think a lot of people will like that.  3,895 people if I were a betting man. But there's probably 10x that who don't.  Or outgrow it.  Or are curious to try another style.  Or want tweaks.
Now they don't have to go away because they use Ducks or whatever.  They can make their own boilerplate chock full of opinions.  Just like we did under 153 lines of code + a bunch o templates.
If we say, ignite-infinite-red-app-template is a redux stack, we can invest our time in other places: plugins.
With a custom ignite-*-app-template, people can get to work right now.  With ignite-infinite-red-app-template we have to move our code out of the way, negotiate a common ground with neighbours, maintain a dropdown list for their option, hope they don't go stale, hope we don't go stale....  boilerplates just seem more nimble.
^ The opinion of a man who just drank a lot of NeoCitran.

I'm fully on board with this. Let's make infinite-red-app-template the gold shining star of Redux React Native boilerplates, and encourage team MobX to make their own gold shining star Ignite boilerplate. (Almost certainly someone watching this thread is on that team -- we want you to make a boilerplate, so please join us and let's make this happen.)


add agorainvoicing

agorainvoicing.com

Why is it paid when everywhere written that it's free?

where did you see it's paid?
https://github.com/ladybirdweb/agorainvoicing

On website which you provided in first message.

Sorry, not enough stars: https://github.com/chiraggude/awesome-laravel/blob/master/CONTRIBUTING.md


Plans to support stdio?

I wondered if there are any plans to support stdio?
As per a discussion I was having here on the popular Neovim debugger plugin, nvim-dap, a lot of debuggers seem to work over stdio, tcp/ip but not sockets. So wondering if this is on the roadmap?
As an aside, I'm presume I could get rdbg running locally and attach to it via tcp/ip?

For DAP, the problem is how to handle programs input/output on stdio.
There is output event https://microsoft.github.io/debug-adapter-protocol/specification#Events_Output but I can't find how to handle input.

From what I've seen most debug adapters just don't support stdin for programs if the debug adapter itself is using DAP over stdio.
An exception is codelldb, which lets users configure redirection targets via properties in the launch configuration: https://github.com/vadimcn/vscode-lldb/blob/master/MANUAL.md#stdio-redirection

An exception is codelldb, which lets users configure redirection targets via properties in the launch configuration: https://github.com/vadimcn/vscode-lldb/blob/master/MANUAL.md#stdio-redirection

Ah, I see.

Could you try with TCP/IP?
Please reopen this if someone want to use stdio except that.

Sorry. I should have added that it works great with TCP/IP

The problem I'm having with TCP is that you then cant set any breakpoints because of
  def dap_setup bytes
      CONFIG.set_config no_color: true
      @seq = 0

      case self
      when UI_UnixDomainServer
        UI_DAP.local_fs_map_set true
      when UI_TcpServer
        # TODO: loopback address can be used to connect other FS env, like Docker containers
        # UI_DAP.local_fs_set if @local_addr.ipv4_loopback? || @local_addr.ipv6_loopback?
      end

@will Could you tell the your repr- steps? Are you using nvim?

Hi @ko1 ひさしぶり :)
Sorry I forgot to come back to this issue. I figured out from reading the source that if you send "localfs=true" as part of the attach request, then you can use breakpoints.
I am using neovim, this is my entire current setup:
local use = require("packer").use
use "mfussenegger/nvim-dap"
use "rcarriga/nvim-dap-ui"
use "theHamsta/nvim-dap-virtual-text"

local dap = require "dap"

dap.adapters.ruby = function(callback, config)
  callback {
    type = "server",
    host = "<IP_ADDRESS>",
    port = "${port}",
    executable = {
      command = "bundle",
      -- stylua: ignore
      args = { "exec", "rdbg", "-n", "--open", "--port", "${port}",
        "-c", "--", "bundle", "exec", config.command, config.script,
      },
    },
  }
end

dap.configurations.ruby = {
  {
    type = "ruby",
    name = "debug current file",
    request = "attach",
    localfs = true,
    command = "ruby",
    script = "${file}",
  },
  {
    type = "ruby",
    name = "run current spec file",
    request = "attach",
    localfs = true,
    command = "rspec",
    script = "${file}",
  },
}

Plus some keybindings, but those aren't important. Everything has been working great with this!
The virtual text plugin is particularly neat. It uses tree-sitter to know where local are defined, then shows the current values of variables where they live

お久しぶりです！
That is great you can achieve.
I'm completely newbe of neovim, but should I put your configs to ~/.config/nvim/... ?

Configs for neovim go in ~/.config/nvim/ by default, yes. It follows the XDG_ home direcotry things. So I tried to make this a minit config that is simple to do a first install for you to try.
In the video I'm changing all of the XDG_ directories to my temp dir to not conflict with my "real" config. You can set all the env vars too if you want, or just ignore them and have this as your nvim config in ~/.config/nvim. Either should be okay.
-- init.lua

-- packer setup
local fn = vim.fn

-- auto install packer if missing
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
  fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }
end

local ok, packer = pcall(require, "packer")
if not ok then
  vim.notify "just installed packer, please quit nvim and reopen"
  return
end

packer.init()
-- end packer setup

-- install plugins
local use = packer.use
use "wbthomason/packer.nvim"
use "mfussenegger/nvim-dap"
use "rcarriga/nvim-dap-ui"
use "theHamsta/nvim-dap-virtual-text"
-- this one is just for nicer colors
use {
  "rose-pine/neovim",
  as = "rose-pine",
  config = function()
    local ok, rp = pcall(require, "rose-pine")
    if ok then
      rp.setup()
      vim.cmd "colorscheme rose-pine"
    end
  end,
}
-- end install plugins

-- DAP setup
local ok, dap = pcall(require, "dap")
if not ok then
  -- I wouldn't normally do it this way, just to make it easier to test out neovim
  -- run packer sync if plugins are missing
  packer.sync()
  vim.notify "Plugins installed, please quit and reopen neovim"
  return
end

dap.adapters.ruby = function(callback, config)
  callback {
    type = "server",
    host = "<IP_ADDRESS>",
    port = "${port}",
    executable = {
      command = "bundle",
      args = { "exec", "rdbg", "--open", "--port", "${port}", "-c", "--", config.command, config.script },
    },
  }
end

dap.configurations.ruby = {
  {
    type = "ruby",
    name = "debug current file",
    request = "attach",
    localfs = true,
    command = "ruby",
    script = "${file}",
  },
}
-- end dap setup

-- dap ui is extra, you don’t need it but it's nice
local dapui = require "dapui"
dapui.setup()
-- these aren't necessary but make the dap ui just pop up automatically which is neat
dap.listeners.after.event_initialized["dapui_config"] = dapui.open
dap.listeners.before.event_terminated["dapui_config"] = dapui.close
dap.listeners.before.event_exited["dapui_config"] = dapui.close
-- end dap ui

require("nvim-dap-virtual-text").setup()

--keymaps
local set = vim.keymap.set
--Remap space as leader key
set("", "<Space>", "<Nop>")
vim.g.mapleader = " "
vim.g.maplocalleader = " "

-- these are just a few to make things nice
-- you can run any dap function with
-- :lua require'dap'.the_function()
-- inside nvim if you don’t map it
set("n", "<leader>c", dap.continue)
set("n", "<leader>s", dap.step_over)
set("n", "<leader>b", dap.toggle_breakpoint)

then start neovim one time, it should install packer. quit neovim
start neovim a second time, it should use packer to install all the plugins. quit neovim
now every time neovim should have the plugins, you can edit a ruby file and debug
Here is a demo video:
https://user-images.githubusercontent.com/1973/181347365-d1b961f3-8482-46ed-94b8-a3e62858412e.mp4

@will, FYI, I have RSpec debugging for the current line I'm on:
  dap.adapters.ruby = function(callback, config)
    local script

    if config.current_line then
      script = config.script .. ":" .. vim.fn.line(".")
    else
      script = config.script
    end

    callback({
      type = "server",
      host = "<IP_ADDRESS>",
      port = "${port}",
      executable = {
        command = "bundle",
        args = { "exec", "rdbg", "--open", "--port", "${port}", "-c", "--", config.command, script },
      },
    })
  end

  dap.configurations.ruby = {
    {
      type = "ruby",
      name = "debug rspec current_line",
      request = "attach",
      localfs = true,
      command = "rspec",
      script = "${file}",
      current_line = true,
    },
    {
      type = "ruby",
      name = "debug current file",
      request = "attach",
      localfs = true,
      command = "ruby",
      script = "${file}",
    },
  }


Docs: TLS_PORT not detailed, even though it exists in code for various sources

Within the different templates for various sources, the code checks for a TLS_PORT. For example:
SC4S_LISTEN_CISCO_ISE_TLS_PORT
When looking over existing docs (index.md), it never mentions these variables but rather regular UDP and TCP options.

Fixed in docs


Update the release process to support releases of individual modules

Having the option to have a separate version (and release) for each module would be very nice.
This would allow a particular service client to get updated independently (though we should probably
also update the gcloud-java "all" module).
/cc @mziccard

I did a bit of research on this and it seems to be doable. Basically this relies un bumping only the version of selected projects keeping in mind:

When any module's version increases the aggregator module's version has to increase
When any module's version increases all dependent modules versions must increase

We should be able to release only the modules that changed by using maven's -pl option:

Comma-delimited list of specified reactor projects to build instead of all projects. A project can be specified by [groupId]:artifactId or by its relative path.

My concerns are:

Which version should the aggregator have? Probably the lower version amongst sub-modules, or a totally different version?
Tagging: with which version should we tag the repo? The most reasonable approach is tagging with the aggregator's version but this causes my third concern
Tracking an artifact back to code in the repo becomes harder. A user using gcloud-java-storage v1.0.0 will not find any v1.0.0 tag in the repo. He would probably have to check the release notes and see that gcloud-java-storage v1.0.0 has been shipped with gcloud-java v0.42.0 and look for the v0.42.0 tag.
"Intuitivity": I imagine that a user familiar with gcloud-java-datastore v0.X.0 might try to add gcloud-java-storage v0.X.0 to his project which might not be the latest version and not even exist

Side notes: AWS java SDK is a multimodule project where all modules share the same version.

We are currently using three "version tracks" - GA clients, Beta clients, and Alpha clients. We updated our release scripts a while back to support this. We don't currently have any plans for completely independent versions.
There isn't anything additional in this issue that we intend to support, so I'm going to close it out.


What is the difference of this and ONNX?

Description
We can already convert sklearn models to onnx, even add extra metadata if we want, investigate the model intrinsics via https://netron.app/ (locally or on the browser). How is the functionality of pymilo different than ONNX?

Hi there, I hope you're doing great, here is a comprehensive answer:
ONNX is an open format that is built to represent machine learning models. ONNX defines a set of the building blocks of machine learning models. So, the models exported by ONNX are not exactly the same as the original model. In fact, before exporting, the models are reconstructed (approximately) by the building blocks provided by ONNX.

Thank you for the reply!


After updating an item, its weight and price vanishes

Repro: open actor sheet. Click "Equip" icon. See weight and price vanish.
Only happens when done through the actor sheet (seemingly).
https://github.com/foundryvtt/dnd5e/assets/50169243/d217959c-1023-49f5-bdb2-019d3be09a26

Recovery formula was/is still another field that is plagued by this in v2.2.2
If you update an item that has a Recovery Formula defined, an update sets the field to ''

Please raise a separate issue rather than commenting on an already closed one.


Enable unlisted_choice in LEAP hub

Ref https://github.com/2i2c-org/infrastructure/issues/2146
Just brings in @GeorgianaElena's work in https://github.com/jupyterhub/kubespawner/pull/769

This unfortunately still has the problem previously reported, where once you use an image as the other choice, you can't use any other image :( This shouldn't be deployed to the LEAP prod hub until we figure that out.

This unfortunately still has the problem previously reported, where once you use an image as the other choice, you can't use any other image :(

I reproduce this once before in staging.leap.2i2c.cloud earlier today, but I've not been able to reproduce it later or with a local k3s cluster with jupyterhub 4.0.2 + kubespawner's main branch.

I've just pushed a commit that I think fixes it. I've manually deployed it to staging https://staging.leap.2i2c.cloud and seems to be working.
It looks like it was the same bug, with the same fix as the one in https://github.com/jupyterhub/kubespawner/pull/766.  But because we were using a callable profile_list defined by us, that fix was not applying for our case.

Yesss, I can confirm that fixes it @GeorgianaElena!!!! \o/

Nice work @GeorgianaElena!!!
I think there is another fix to make in kubespawner also. I think this logic shouldn't just take the value returned by profile_list, but should make a copy of the value returned by a profile_list callable.
        if callable(self.profile_list):
            profile_list = await maybe_future(self.profile_list(self))
        else:
            # Use a copy of the self.profile_list dict,
            # otherwise we might unintentionally modify it
            profile_list = copy.deepcopy(self.profile_list)

        profile_list = self._populate_profile_list_defaults(profile_list)

This upstream fix isn't a problem if the callable profile_list returns a copy at all times as done in the leap hub - but we don't return a copy at all times, for example when we return this:
            # Only apply to GitHub Authenticator
            if not isinstance(spawner.authenticator, GitHubOAuthenticator):
                return original_profile_list

I'll submit a kubespawner PR to make a copy of the returned value, and then we should be fine - but we will need the fix in b62a46a as well I think.

@consideRatio I just looked into that, and I don't think that works - the problem is in

I agree that the problem we have for the leap hub is the specific one patched by @GeorgianaElena, and would be a problem even if we patched what I consider patching in KubeSpawner.
But, I think there is another bug, and I think we are exposed to it because we break the advice of "if you are using profile_list as a callable, make sure to make a copy!".

We end up with a callable profile_list
We end up storing a single reference to what the callable profile_list will return
KubeSpawner doesn't make a copy of the return value of a callable profile_list as it does for a non-callable dictionary config value


Web UI has Network timeout issue on macOS M1

I got everything up and running with the help of other threads with this:
docker run -p 8080:8080
-v /Users/jim/.cache/torch
-v /Users/jim/.cache/huggingface
--rm cwq1913/lama-cleaner:cpu-0.26.1 \
lama-cleaner --device=cpu --port=8080 --host=<IP_ADDRESS> --model=sd1.5 --sd-disable-nsfw --sd-run-local
After starting Lama-cleaner the Web UI opens at the local address and starts to diffuse, but after about 30 seconds there's an Network has stopped responding error in the Web UI, even though the Terminal powershell shows the SD is still running.
1 - How do I fix this?
2 - Where is the image output directory?

EDIT: It did exactly the same thing when installing with pip. I tried Docker without being fully familiar with how it works - which possibly answers my own question, as it does give a warning during install that the CPU didn't match what was expected, and in the Docker app it shows AMD64 instead of ARM64 (Apple M1).

pip install lama-cleander==0.30.0

But the process is still running in the command line:

So, presumably, somewhere on my computer there's an image of a Lego man sitting in a sports car, despite that the Web UI encountered a problem, but I have no idea where the Output directory is.

pytorch's package name is torch :smile: pip install torch==1.13.0
This is no output directory in lama-cleaner...If the model run successful, you can click download button on the bottom

Combine with cropper feature, sd1.5 run on M2 chip 1.5it/s (512x512) image size


different results in Chrome and IE

Hi,
for the same search, I get different results in Chrome and IE. in fact correct results in Chrome and some of them in IE. what shall be done? is it a known issue?

Hi,
From the images it looks like IE is with a differente encoding charset as we can see that most of the IE absent results have accentuation. Try check this and also the <html lang=""> and <meta charset="">.


Install circos on usegalaxy.org

Per galaxyproject/usegalaxy-playbook#346

Fixes galaxyproject/usegalaxy-playbook#346

@galaxybot deploy this

@davebx @hexylena Any ideas about what went wrong? Thanks!

This version of Circos (newest as of now) is already installed on .org.


FAT Filesystem: UTF8 support for long filenames, bugfixes.

Had been PR #1478, can't reopen, perhaps because of force push.
Summary
New CONFIG_FAT_LFN_UTF8: UTF8 strings are converted to UCS2-LFN
Bugfix in fat_createalias: space is now also converted to underbar.
Change (bugfix) in fat_getlfname: init characters (0xff) and '\0' are rewound as well.
Impact
When activating CONFIG_FAT_LFN_UTF8 the full 3byte UTF8 space is converted to UCS2 for long filenames, which allows e.g. for chinese characters in folder and file names.
The bug in createalias caused problems with names including space characters.
Testing
Tested with mkdir on nsh and with apps/testing/fatutf8 (seperate commit on nuttx-apps).

@xiaoxiang781216
For sure I thought about your proposed changes earlier, but this would force activating CONFIG_LIBC_WCHAR for a non exposed interface.
The usage of wide characters, in the case of the PR, is limited to only one file (fs_fat32dirent.c) and is not visible to the user.
Also I didn't want to override the multibyte to wchar (and vice versa) functions because this affects more aspects than only FAT filesystem, I didn't want to force users to use UTF8 all over the OS.
A clean approach would be adding locales with codepages or UTF8, which then control the behaviour multibyte to wchar functions.
As soon as there is locale support (for UTF8 as well as single byte codepages) I would be happy to fix and clean my current approach, but if there's consensus to use wchar lib and rewrite/add the multibyte to wchar functions already now, I'll do it as well.
Regards, Johannes

For sure I thought about your proposed changes earlier, but this would force activating CONFIG_LIBC_WCHAR for a non exposed interface.
I thought about it once again, and I could include only the two needed functions (wcslen and wcsrchr) in the build if it's ok to include libc functions by control of CONFIG_FAT_LFN_UTF8 (a little ugly, isn't it?). But if I'm correct, I'd have to write the wcsrchr anyway because it isn't yet implemented.

@xiaoxiang781216
For sure I thought about your proposed changes earlier, but this would force activating CONFIG_LIBC_WCHAR for a non exposed interface.

First, I think CONFIG_LIBC_WCHAR is redundant and can be removed because the linker is smart enough to bring in functions which are really called.

The usage of wide characters, in the case of the PR, is limited to only one file (fs_fat32dirent.c) and is not visible to the user.

wide char is a very useful feature, many user can get benefit if the implement is moved into libc.

Also I didn't want to override the multibyte to wchar (and vice versa) functions because this affects more aspects than only FAT filesystem, I didn't want to force users to use UTF8 all over the OS.
A clean approach would be adding locales with codepages or UTF8, which then control the behaviour multibyte to wchar functions.
As soon as there is locale support (for UTF8 as well as single byte codepages) I would be happy to fix and clean my current approach, but if there's consensus to use wchar lib and rewrite/add the multibyte to wchar functions already now, I'll do it as well.

The codepage is a legacy technology. It may enough to only support ANSI, UTF8, UTF16 and UTF32.

For sure I thought about your proposed changes earlier, but this would force activating CONFIG_LIBC_WCHAR for a non exposed interface.

I thought about it once again, and I could include only the two needed functions (wcslen and wcsrchr) in the build if it's ok to include libc functions by control of CONFIG_FAT_LFN_UTF8 (a little ugly, isn't it?)

CONFIG_LIBC_WCHAR make the configuration complex but don't give us any benefit. we can remove it.

. But if I'm correct, I'd have to write the wcsrchr anyway because it isn't yet implemented.

Yes, it's a big work to implement all wide char functions, but we can do it step by step.

@johannes-nivus https://github.com/apache/incubator-nuttx/pull/1500 remove CONFIG_LIBC_WCHAR


Keep darkvision mode always on

It's mostly inconsequential for the system, and dev8675309 requested it for PV compatibility.


HDFS-15006. Add OP_SWAP_BLOCK_LIST as an operation code in FSEditLogOpCodes.

Description of PR
https://issues.apache.org/jira/browse/HDFS-15006
sub task of https://issues.apache.org/jira/browse/HDFS-14978
How was this patch tested?
add unit test testSwapBlockListEditLog
For code changes:
add swapBlockListEditLog & Feature.SWAP_BLOCK_LIST for NameNodeLayoutVersion

@Hexiaoqiao  Hi, Do you have a time to trigger this jenkins test and review the patch?


feat: exclude third level dependencies

addresses https://github.com/floydspace/serverless-esbuild/issues/312

@floydspace can you have a look at this please? I still have to use patching for this with my deployment

Hey @deathemperor
Last time I checked, the tests were failing, and it is still the case, could you please fix tests
here is the error from Ci Expected '!==' and instead saw '!='

@floydspace I've updated the code, can you run the tests again please? thanks.

Curious about this PR and whether it would help us reduce the zip size when comparing the zip generated by serverless-webpack vs serverless-esbuild.
I can't see which tests are failing, but I assume that is the main thing preventing this PR from moving forward to code review?


Fix backtrack

This PR fixes the robots' backtracking behaviour. The calculation for destination_arrival_duration is modified to include the robot's deceleration, which was done in Interpolate.cpp.
Examples of backtracking:
https://user-images.githubusercontent.com/30265743/150392450-624fd7f3-5b19-4d0f-ad76-a2b384ea24fc.mp4
https://user-images.githubusercontent.com/30265743/150392460-114e4fa9-bd1e-452a-bc82-56ae5ecc5df8.mp4
**
This is still a WIP as there is still one specific lane where the backtracking persists (as shown in video).
https://user-images.githubusercontent.com/30265743/150392474-4eb08fd2-d8a8-4de4-b299-8bb7ad1e1127.mp4

requested to the wrong repo and branch!


Print Classrooms

Please confirm the following:

I have upgraded to the latest GAM release from https://github.com/GAM-team/GAM/releases and I still have this issue.
I am typing the command as described in the GAM Wiki at https://github.com/GAM-team/GAM/wiki

Full steps to reproduce the issue:

gam print courses todrive

Expected outcome (what are you trying to do?):
list of classrooms
Actual outcome (what errors or bad behavior do you see instead?):
C:\scripts\gam>gam print courses todrive
Traceback (most recent call last):
File "gam_main_.py", line 49, in
File "gam_main_.py", line 44, in main
File "gam_init_.py", line 11710, in ProcessGAMCommand
File "gam_init_.py", line 2310, in doPrintCourses
File "gam_init_.py", line 1009, in buildGAPIObject
File "gam_init_.py", line 937, in getValidOauth2TxtCredentials
File "gam\auth\oauth.py", line 474, in refresh
File "gam\auth\oauth.py", line 482, in _locked_refresh
File "google\oauth2\credentials.py", line 302, in refresh
File "google\oauth2\reauth.py", line 347, in refresh_grant
File "google\oauth2_client.py", line 62, in _handle_error_response
google.auth.exceptions.RefreshError: ('invalid_grant: Bad Request', {'error': 'invalid_grant', 'error_description': 'Bad Request'})
[6676] Failed to execute script 'main' due to unhandled exception!

Try running gam oauth create and ensure you have all the relevant scopes selected. The script you are running is correct anyway.

Thank you!
On Mon, Aug 22, 2022 at 12:39 PM GATLABS @.***> wrote:

Try running gam oauth create and ensure you have all the relevant scopes
selected. The script you are running is correct anyway.
—
Reply to this email directly, view it on GitHub
https://github.com/GAM-team/GAM/issues/1551#issuecomment-1222693505, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AWMWER2YDG4G3M4FO73JGPDV2O3MPANCNFSM57BJ6RNQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Do:
gam oauth delete
gam oauth create
Ross
On Fri, Aug 19, 2022 at 9:37 AM addavis98 @.***> wrote:

Please confirm the following:

I have upgraded to the latest GAM release from
https://github.com/GAM-team/GAM/releases and I still have this issue.
I am typing the command as described in the GAM Wiki at
https://github.com/GAM-team/GAM/wiki

Full steps to reproduce the issue:

gam print courses todrive

Expected outcome (what are you trying to do?):
list of classrooms
Actual outcome (what errors or bad behavior do you see instead?):
C:\scripts\gam>gam print courses todrive
Traceback (most recent call last):
File "gam_main.py", line 49, in
File "gammain.py", line 44, in main
File "gaminit.py", line 11710, in ProcessGAMCommand
File "gaminit.py", line 2310, in doPrintCourses
File "gaminit.py", line 1009, in buildGAPIObject
File "gaminit_.py", line 937, in getValidOauth2TxtCredentials
File "gam\auth\oauth.py", line 474, in refresh
File "gam\auth\oauth.py", line 482, in _locked_refresh
File "google\oauth2\credentials.py", line 302, in refresh
File "google\oauth2\reauth.py", line 347, in refresh_grant
File "google\oauth2_client.py", line 62, in _handle_error_response
google.auth.exceptions.RefreshError: ('invalid_grant: Bad Request',
{'error': 'invalid_grant', 'error_description': 'Bad Request'})
[6676] Failed to execute script 'main' due to unhandled exception!
—
Reply to this email directly, view it on GitHub
https://github.com/GAM-team/GAM/issues/1551, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACCTYL4NJMBRL6D2BRVIT6LVZ6Z45ANCNFSM57BJ6RNQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Ross Scroggs
@.***


Replace Buffer constructor with buffer-from

Adds a dependency on buffer-from

neat, thanks!

1.6.2

Tracking: https://github.com/nodejs/node/issues/19079


Woodpecker token is available to jobs

Metadata/userdata/cloud-init is accessible to everything running on the agent, not only root.
https://www.linode.com/docs/products/compute/compute-instances/guides/metadata/#access-the-metadata-service-api
So you should not save the woodpecker token in that.
Or alternatively, the server should should invalidate the tokens after first use.
Originally posted by @runephilosof-karnovgroup in https://github.com/woodpecker-ci/autoscaler/issues/15#issuecomment-1853696818

What is a valid use case of reusing agent specific registration tokens?

It's currently just "the specific" agent token which is also used to identify the agent again when re-connecting / after restarts. Woodpecker currently has nothing like a registration token.

My own autoscaler uses the global agent registration token, because of this problem. It then matches up the agents with their agent IDs using their hostnames.

How do you inject the global token then if not via cloud-init? As part of the image?


Make Redis.Cluster work when Buffer is used as a key with invalid utf-8 data

Completely unrelated to https://github.com/luin/ioredis/issues/1427 but discovered while investigating it
https://github.com/luin/ioredis/blob/f898672a29753774eeb6e166c28ed6f548533517/lib/command.ts#L194-L196
https://github.com/luin/ioredis/blob/f898672a29753774eeb6e166c28ed6f548533517/lib/autoPipelining.ts#L145-L148
the above snippet has been assuming key prefixes can be prepended to strings and that all values should be stringified
That's not 100% correct, since Buffers might be invalid utf-8
> x = Buffer.from('xyz')
<Buffer 78 79 7a>
> x = Buffer.from([0x80]);
<Buffer 80>
> console.log(`${x}`)
� // Literally the codepoint for unencodable data
> console.log(Buffer.from(`${x}`))
<Buffer ef bf bd>

It could be fixed by always converting to buffers and concatenating, or by conditionally everything that isn't already a buffer to a string then a Buffer then concatenating those Buffers into another Buffer.
> const clusterKeySlot = require('cluster-key-slot');
> clusterKeySlot('a')
15495
> clusterKeySlot(Buffer.from('a'))
15495

Very low priority to me since I don't have use cases for invalid utf-8.

👋 This should have been fixed in v5.0.0 so closing this.


*: Parameterize hotspot scheduling and adjust hot cache

Signed-off-by: nolouch<EMAIL_ADDRESS>
What problem does this PR solve?
Improve stability and let hot region configurable.
What is changed and how it works?

fix the hot cache problem
parameterize the schedule
adjust the pendings

Check List
Tests

Unit test

Codecov Report

Merging #2239 into master will increase coverage by 0.03%.
The diff coverage is 78.26%.

@@            Coverage Diff             @@
##           master    #2239      +/-   ##
==========================================
+ Coverage   76.66%   76.69%   +0.03%
==========================================
  Files         197      198       +1
  Lines       21290    21442     +152
==========================================
+ Hits        16321    16446     +125
- Misses       3761     3784      +23
- Partials     1208     1212       +4

Impacted Files
Coverage Δ

server/statistics/hot_peer.go
100% <ø> (ø)
:arrow_up:

server/statistics/hot_peer_cache.go
92.35% <100%> (+0.37%)
:arrow_up:

tools/pd-ctl/pdctl/command/scheduler.go
68.07% <51.85%> (-1.18%)
:arrow_down:

server/schedulers/hot_region_config.go
81.25% <81.25%> (ø)

server/schedulers/hot_region.go
81.91% <82%> (-1.29%)
:arrow_down:

server/schedulers/shuffle_hot_region.go
63.96% <0%> (-9.91%)
:arrow_down:

server/region_syncer/client.go
79.67% <0%> (-5.7%)
:arrow_down:

server/schedulers/random_merge.go
61.19% <0%> (-2.99%)
:arrow_down:

client/client.go
69.27% <0%> (-0.54%)
:arrow_down:

... and 12 more

Continue to review full report at Codecov.

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

ptal @disksing @rleungx

/rebuild

Hi, @lhy1024  I update the test result in the issue comment, you can check it now.

/merge


Error while grouping rows in datagrid

I am trying to group using ListViewCollection on Name of employee and everything works fine for the first time. When I go to a different view and come back to the same view, the code is throwing an error as mentioned below. I am using MVVM light libs to have single instance of my viewmodel.
If I remove the Expander from the group style then everything works fine.

<DataGrid.GroupStyle>

<GroupStyle.ContainerStyle>

</GroupStyle.ContainerStyle>

</DataGrid.GroupStyle>
<DataGrid.Columns>

<DataGridTemplateColumn.CellTemplate>

<materialDesign:PackIcon Kind="Delete" Width="15" Height="15" />

</DataGridTemplateColumn.CellTemplate>

<materialDesign:MaterialDataGridTextColumn Header="Vacation Type" MinWidth="100"
Binding="{Binding Path=VacationType, Converter={StaticResource EnumConverter}}" />
<materialDesign:MaterialDataGridTextColumn Header="Start Date" MinWidth="100"
Binding="{Binding Path=StartDate, StringFormat='MMM dd, yyyy'}" />
<materialDesign:MaterialDataGridTextColumn Header="End Date" MinWidth="100"
Binding="{Binding Path=EndDate, StringFormat='MMM dd, yyyy'}" />
<materialDesign:MaterialDataGridTextColumn Header="Days" MinWidth="100"
Binding="{Binding Path=NumberOfDays}" />
</DataGrid.Columns>

Error -
System.InvalidOperationException was unhandled
HResult=-2146233079
Message=The specified Visual is not an ancestor of this Visual.
Source=PresentationCore
StackTrace:
at System.Windows.Media.Visual.TrySimpleTransformToAncestor(Visual ancestor, Boolean inverse, GeneralTransform& generalTransform, Matrix& simpleTransform)
at System.Windows.Media.Visual.TransformToAncestor(Visual ancestor)
at System.Windows.Controls.DataGridCellsPanel.ComputeCellsPanelHorizontalOffset()
at System.Windows.Controls.DataGridHelper.GetParentCellsPanelHorizontalOffset(IProvideDataGridColumn cell)
at System.Windows.Controls.DataGrid.InvalidateCellsPanelHorizontalOffset(Object args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Paragon.App.Main() in C:\Projects\Paragon\Paragon\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Have you tried this without MD styles applied?
Can you post a  test repo please.

After removing the MD styles on datagrid, I can still reproduce this error. I am using MahApps.Metro along with MD styles in my application. The bound collection is a simple object with Name, StartDate, EndDate and NumberOfDays in it and I am grouping the collection on the Name property. I have also added a template column in datagrid which contains a button with Delete image to allow deletion of individual record

So this isn't a MD Toolkit error?

I am not entirely sure since entire application uses MD but based on the error it seems like it is only related to datagrid and removing the MD style from datagrid didn't resolve this issue

I can try to solve this by using ListView but I don't see a MD style which I can use for the same

I think you're going to have to post a test repository with repeatable steps.


Arm64/develop (multi-platform builds for most images)

Updates the following image builds to support amd64 and arm64 architectures:

Elasticsearch

Build for 6.13 has been dropped as ES 6.13 has reached EOL, will not receive any further path updates from vendor who does not plan to release arm64 binaries for this version of Elasticsearch
Builds now automatically build latest patch release of Elasticsearch images when executed
All current versions (i.e. 7.10 through 8.1) are now included in build matrix
Versions 7.0 through 7.9 were added temporarily to rebuild the older 7.x versions to include arm64 support

MailHog
MariaDB

MariaDB versions 10.6 and 10.7 are now included in build matrix

MySQL

Dropped builds for MySQL 5.6 and 5.7 as no Arm64 images for these exist
MySQL 8.0 image is now using the Oracle Linux base image as both community and Oracle maintained MySQL images only offer arm64 base images when using the Oracle Linux base OS

Nginx

Nginx versions 1.19, 1.20 and 1.21 are now included in build matrix

RabbitMQ

Version 3.9 now included in build matrix

Redis

Version 6.2 now included in build matrix

Varnish

Removes builds for versions 4.1 and 6.4 both of which are EOL and thus have no Arm64 binaries
Varnish 6.0 LTS, 6.5, and 6.6 remain with 7.0 and 7.1 images now included in build matrix

Huge shout out to both @ihor-sviziev, @drpayyne and others for the pioneering work foundational to these updates coming to fruition. Directly includes contents of open PRs #484, #488
To use these image updates, you will need to both pull the updated images and force-recreate containers for already running environments:
warden svc pull
warden svc up --force-recreate # ensure mailhog is running native image

warden env pull
warden env up --force-recreate # ensure all containers are running native on arm64 where available

So glad to see this. Thank you so much @davidalger! Appreciate your time and effort on this. 💯

When should we expect new release? :)

Great job @davidalger 🎉! Thank you so much!
PS: here is a typo in first part of upgrade instruction:
warden svc pull
warden svc up --force-recreate # ensure mailhog is running native image

Good job 🚀

@davidalger Do you have any ideas and estimates for php images?

When should we expect new release? :)

@dudzio12 No new release needed to use these since existing versions of Warden will pull and use the arm64 images, just need to:
a) Update svc containers:
warden svc pull
warden svc up --force-recreate # ensure mailhog is running native image

b) Update env containers:
warden env pull
warden env up --force-recreate # ensure all containers are running native on arm64 where available

@davidalger Do you have any ideas and estimates for php images?

@Den4ik I have ideas w/r/t php images, but no estimates (family, day job, other commitments, etc) since I do this in my spare time. Switching to Debian based images as has been done with @drpayyne's fork is a breaking change and will require a lot of care. First step though is updating the build process to use the Github actions that support multi-arch builds (and this is already in progress)

I have ideas w/r/t php images, but no estimates (family, day job, other commitments, etc) since I do this in my spare time.

@davidalger could you share your ideas on it, maybe we can send you a PR?


User Input

How can I get the user input text? I can't find that.

@tolya199178 I've added onChangeText for the next release.


Develop

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

Project coverage is 100.00%. Comparing base (2ec15d1) to head (9711116).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #28   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            8         8
  Lines          116       126   +10
  Branches        10        10
=========================================
+ Hits           116       126   +10

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


Suggestion: For the Autosuggest box, have tab accept the suggestion, as it is the industry standard.

Visual Studio and Gmail use 'tab' to accept a suggestion, so people won't be used to clicking 'right arrow'

Hi @AlexanderBlackman! Thanks for the feed back! I totally agree with you.
I think these are what happens when 'tab' is pressed.

Accept the suggestion if any
Go to the next control if there is no suggestion

Let me know if you have other thing in mind.
(I'm currently working on another feature for this AK.Toolkit, so I won't be able to work on your suggestion for a week maybe?)

@AlexanderBlackman Sorry this took this long.


Update badges

What this PR does

update licence badge

Codecov Report

Merging #5 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #5   +/-   ##
=======================================
  Coverage   96.66%   96.66%
=======================================
  Files           2        2
  Lines          90       90
  Branches       16       16
=======================================
  Hits           87       87
  Misses          3        3

Continue to review full report at Codecov.

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


[WIP]add batch insert of onConflict

Fixes #384

[ ] test case for MySQL/Postgress

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

Thank you for the fix!


Add PyPI classifiers

We should add PyPI classifiers. At least the ones for Python version support.
We can check how uvicorn, gunicorn, fastapi, flask, etc. add to their classifiers.

This is a very good idea. Thank you for the suggestion. I will have a read at the docs :D

If you need any help, let me know.

If you need any help, let me know.

Thank you. Will do! :D


Implement lexer int128 support

Supersedes #11196
Related to #8373
Closes #7915
Related to #5545
This PR implements int128 support in the lexer.
Probably requires #11551 to convert bin/oct/hex literals to base 10 on windows.

What is UInt64 doing here?
In src\lib_c\x86_64-windows-msvc\c\dbghelp.cr:6:33

 6 | SYMOPT_LOAD_LINES           = 0x00000010
                                   ^---------
Error: 0x00000010 doesn't fit in an UInt64

What is UInt64 doing here?
In src\lib_c\x86_64-windows-msvc\c\dbghelp.cr:6:33

 6 | SYMOPT_LOAD_LINES           = 0x00000010
                                   ^---------
Error: 0x00000010 doesn't fit in an UInt64

On Windows, the conversion from hex to dec fails, because the conversion is now handled using .to_u128?(base: 16).to_s (requires #11551).
The default error message when @token.value is nil and no suffix is given shows that it doesn't fit in the biggest integer (which should now be UInt128, I should change that).

I could also fall back to u64 on Windows and show that windows doesn't support u128 integers yet, but I think it's better to wait until it's supported everywhere.

Does this need to be changed to include U/Int128? (I don't really know much about codegen)
https://github.com/crystal-lang/crystal/blob/a9ee750a29bd5f7398e09733a88818494795384a/src/compiler/crystal/codegen/types.cr#L199

I think it's not fully obvious what type should be deduced for literals that don't have an explicit suffix.
I kicked off a discussion of that in the issue, please check it out:
https://github.com/crystal-lang/crystal/issues/8373#issuecomment-991891954

The newest commit allows constant math expressions to be interpreted at compile-time.
Basically, LLVM-IR before:
  call void @"~A:init"(), !dbg !24
  %57 = load i128, i128* @A, !dbg !24
  call void @"*puts<Int128>:Nil"(i128 %57), !dbg !91
  ret void, !dbg !91

After:
  call void @"*puts<Int128>:Nil"(i128 3), !dbg !97
  ret void, !dbg !97

Code:
A = 1_i128 + 2_i128
puts A

I hope the CI won't fail (except for windows)

Please move 128-bit math interpreter to a separate PR. It's unrelated to lexer support. And it needs specs.

The MathInterpreter changes (and a few more things) have been extracted to #11576

#11551 has been merged.

All specs pass with #11551 🎉


This solution is not working for me.

I tried creating a new Planner with a user that was not added to the security group, and there was nothing stopping him at all from doing that.
I checked the "GroupCreationAllowedGroupId" that the script outputs, and it's the correct group.
Also the "EnableGroupCreation" flag was correctly set to "False".
How long could it take for these changes to take effect?
Thanks in advance for the help.

@Artocol - Thank you for submitting feedback.
I think the best way forward is if you can open a service ticket in your tenant so this can get resolved ASAP. Based on outcome let me know if it is something that can be called out in the docs.
Please follow this link contact support for business products: https://docs.microsoft.com/office365/admin/contact-support-for-business-products
If you don't mind please keep us posted here on the resolution and I really want to get this information you are discovering back into the docs.
NOTE:  We used to use this link to a video explaining how to open a support ticket.
Here is a quick video on opening a ticket: https://www.youtube.com/watch?v=puuOy0sEg1Y

@AndreaBarr - This issue can be closed. Thank you.


chore(main): release 1.1.2

:robot: I have created a release beep boop
1.1.2 (2024-08-26)
Bug Fixes

anthropic: #123 consecutive roles error (c345c97)
chat: clearing of chat buffer (8588aed)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.1.2
:sunflower: