[FEATURE REQUEST] - Pre Drafted Tweet for community joiners

What would you like to share?
Create a pre-drafted Tweet or LinkedIn post for joiners to share on their feed. This will increase our reach and membership numbers.
Additional information
For the basic Template we can use the following:
Tweet your joining

Suggest using also an hashtag with hashtag= attribute
https://twitter.com/intent/tweet?hashtags=eddiehub&text=Hello, I am thrilled to be a part of the EddieHub Community. You can join too.

oh wow I really like this idea 🔥

Some addition in features:

We also can add the issue link from where other people can join the Org.
Can add pre-drafted Linkedin Post for the same.


MDNS support

What feature would you like to see added to TallyArbiter?
We should have the server broadcast itself to help clients more easily connect. We should also implement an mdns browser client so the server can search for things like ATEM etc on the network.

Should be simple enough. I'll work on this with a new M5 client over the next week or so.

Midi relay does it if you want something to copy 😃

I'll leave this open until #228 is closed.


Support Open AP?

Thanks for your great script! This works like a charm!
By the way, how can we setup open AP without password?

You can edit any settings of the AP in this config file  /etc/hostapd/hostapd.conf
Here are some example configurations https://wiki.gentoo.org/wiki/Hostapd or just search on google Hostapd configuration.
To remove password from AP, just comment all lines starting wpa and I haven't tested it but you might also need to comment the auth_algs line.


x/jub: jet for jub:by

jub:by is a variant of jab:by, which applies a gate to a value at a certain key. It crashes if it's not there, and also does not allow it to be deleted. This variant allows a create, update, or delete operation with one gate call and one tree traversal. The gate passed to jub takes a unit and returns a unit. The unit it is passed is ~ if the kv pair does not exist, and `val if it does. The unit returned causes a deletion if it is ~, and inserts otherwise.
https://github.com/urbit/urbit/pull/6782 is the corresponding PR with the hoon.
I added a jet for jib, referenced in the PR by amsden these pair of PR's would replace. I haven't written the hoon for it yet. Maybe we don't want to add it, as jub is exhaustive and would only be an ergonomic addition.
I'm not sure if I have the reference hygiene right. Notably regarding the transfer/retain semantics.

@xiphiness This PR is pending a final decision on https://github.com/urbit/urbit/pull/6782, is that correct?


[question]: what is the correct way to add other architectures?

Hi, i need to work with a good chunk of AVR, ARM and other embedded style assembly, what would be the correct way for me to the opcodes and registers for em?
Should i just add em as new xml files in opcodes/ and registers/' or is there another way to do it?
Example of the assembly im talking about
000000cc <micros>:
micros():
  cc:	9f b7       	in	r25, 0x3f	; 63
  ce:	f8 94       	cli
  d0:	88 e0       	ldi	r24, 0x08	; 8
  d2:	80 93 84 0a 	sts	0x0A84, r24	; 0x800a84 <digital_pin_to_bit_mask+0x7f7be0>
  d6:	80 91 8e 0a 	lds	r24, 0x0A8E	; 0x800a8e <digital_pin_to_bit_mask+0x7f7bea>
  da:	81 ff       	sbrs	r24, 1
  dc:	fc cf       	rjmp	.-8      	; 0xd6 <micros+0xa>
  de:	80 91 8d 0a 	lds	r24, 0x0A8D	; 0x800a8d <digital_pin_to_bit_mask+0x7f7be9>
  e2:	e0 91 a2 0a 	lds	r30, 0x0AA2	; 0x800aa2 <digital_pin_to_bit_mask+0x7f7bfe>
  e6:	f0 91 a3 0a 	lds	r31, 0x0AA3	; 0x800aa3 <digital_pin_to_bit_mask+0x7f7bff>
  ea:	20 91 20 38 	lds	r18, 0x3820	; 0x803820 <timingStruct+0x6>
  ee:	30 91 21 38 	lds	r19, 0x3821	; 0x803821 <timingStruct+0x7>
  f2:	40 91 22 38 	lds	r20, 0x3822	; 0x803822 <timingStruct+0x8>
  f6:	50 91 23 38 	lds	r21, 0x3823	; 0x803823 <timingStruct+0x9>
  fa:	9f bf       	out	0x3f, r25	; 63
  fc:	80 ff       	sbrs	r24, 0
  fe:	07 c0       	rjmp	.+14     	; 0x10e <__EEPROM_REGION_LENGTH__+0xe>
 100:	e7 30       	cpi	r30, 0x07	; 7
 102:	f1 05       	cpc	r31, r1
 104:	20 f4       	brcc	.+8      	; 0x10e <__EEPROM_REGION_LENGTH__+0xe>
 106:	2f 5f       	subi	r18, 0xFF	; 255
 108:	3f 4f       	sbci	r19, 0xFF	; 255
 10a:	4f 4f       	sbci	r20, 0xFF	; 255
 10c:	5f 4f       	sbci	r21, 0xFF	; 255
 10e:	bf 01       	movw	r22, r30
 110:	76 95       	lsr	r23
 112:	67 95       	ror	r22
 114:	cf 01       	movw	r24, r30
 116:	86 0f       	add	r24, r22
 118:	91 1d       	adc	r25, r1
 11a:	e6 2f       	mov	r30, r22
 11c:	e6 95       	lsr	r30
 11e:	e6 95       	lsr	r30
 120:	76 2f       	mov	r23, r22
 122:	72 95       	swap	r23
 124:	7f 70       	andi	r23, 0x0F	; 15
 126:	e7 1b       	sub	r30, r23
 128:	ff 0b       	sbc	r31, r31
 12a:	67 fd       	sbrc	r22, 7
 12c:	31 96       	adiw	r30, 0x01	; 1
 12e:	e8 0f       	add	r30, r24
 130:	f9 1f       	adc	r31, r25
 132:	a0 e3       	ldi	r26, 0x30	; 48
 134:	b3 e0       	ldi	r27, 0x03	; 3
 136:	ea d5       	rcall	.+3028   	; 0xd0c <__muluhisi3>
 138:	6e 0f       	add	r22, r30
 13a:	7f 1f       	adc	r23, r31
 13c:	81 1d       	adc	r24, r1
 13e:	91 1d       	adc	r25, r1
 140:	08 95       	ret

I tried just using the default configuration, but it couldn't resolve almost any of the opcodes or registers :/
It only recognized a few like nop, movw and ret, but none of the other opcodes, not even add :/

Hi! Unfortunately the project doesn't support ARM instructions yet. The instructions it is recognizing (e.g. nop, movw, etc. just happen to be instructions of the same name in x86 and/or x86-64. We currently have a #17 serving as a placeholder issue for this. The basic building blocks to add support would be:

Design a new/ modify the existing Instruction struct to properly represent the relevant pieces of information for each ARM instruction.
Find a reliable source/ means to generate xml files for the ARM specification. This repo's README has instructions on how to download and generate xml files for an older version of the specification. I'm not sure if/ how we would have to modify it to make it work with newer releases.
Write an XML parser similar to what we currently have for x86 and x86-64 to convert ARM's description of their instructions into the above struct.
Some very minor configuration/ control flow tweaks to support the new architecture option.

Finding a reliable way to pull down, generate xml files for, and parse the most recent version of the specification is definitely something we'd like to do, but just haven't had time to really dig into yet. Any relevant docs/information you have for this would be greatly appreciated :)

Thanks for the info, i'll do that when i catch enough free time to actually implement that, didn't know updating the Instruction struct was also needed :sweat_smile:

Thanks for the info, i'll do that when i catch enough free time to actually implement that,

Sounds good! I'm hoping to take another look at it as well after school wraps up, but we'll see.

didn't know updating the Instruction struct was also needed 😅

I'm not entirely sure if that's the case, just haven't given it a close enough look yet. To be more specific, I was looking at the InstructionForm field, which is currently defined as follows:
pub struct InstructionForm {
    pub gas_name: Option<String>,
    pub go_name: Option<String>,
    pub mmx_mode: Option<MMXMode>,
    pub xmm_mode: Option<XMMMode>,
    pub cancelling_inputs: Option<bool>,
    pub nacl_version: Option<u8>,
    pub nacl_zero_extends_outputs: Option<bool>,
    pub isa: Option<ISA>,
    pub operands: Vec<Operand>,
}

Depending on what kind of information would be helpful for ARM instructions specifically, it may make sense to add or modify some of these fields. I just haven't had a chance to really look into it yet :)

Support for ARM was just added in #118. Would adding AVR to the project also be helpful to you? Taking a quick look online, I imagine I could probably extract the necessary information from here. Are there any other resources you think would be helpful?

Just commenting to say I would love AVR support added as well if it wouldn't be too hard :)

Just commenting to say I would love AVR support added as well if it wouldn't be too hard :)

I'm planning on adding AVR (and Power ISA) after we get through the config overhaul. Thanks for commenting, it's helpful to know what people would find useful :)

Just a quick update here. As mentioned in #170, @Svarshick is working on some python code to parse the AVR opcodes documentation into an xml format that the server can then process. I'm very excited for this to land once his end is ready (no rush though!), thanks so much for your patience everyone. 🙂


Updated user guide with outdated codes indicators

Note: I will add to this PR the 508-compliant PDF when the editor makes it for me.

I believe this is complete. Let me know if you have any concerns.


Component gets disposed too early

I am having this issue: after calling StateHasChanged() or when putting the component inside an inline modal (like mudblazor dialog) and opening/closing the modal once, the component gets disposed and I get an objectdisposedexception when trying to access the component either by clicking on it or via code. Here's a sample of the code I'm using:
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="ShowDialog">Add Items from Excel</MudButton>

<MudDialog @bind-IsVisible="dialogVisible" Options="dialogOptions" Style="overflow-y:unset">
    <TitleContent>
        <MudText Typo="Typo.h6">
            <MudIcon<EMAIL_ADDRESS>Class="mr-3" /> Add items from Excel
        </MudText>
    </TitleContent>
    <DialogContent>
        <Datasheet Sheet="sheet" />
    </DialogContent>
    <DialogActions>
        <MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="AddMassive" Class="px-10">Add items</MudButton>
    </DialogActions>
</MudDialog>

    private void ShowDialog()     {         dialogVisible = true;     }

Hi @matteo-mosca which version of the package are you using? It may be related to #135. Can you try the pre-release version of the package (<IP_ADDRESS>-alpha) to see if that fixes your issue?

I tried the prerelease but it didn't fix the problem. After reading #135 it looks like it's not strictly related. The old issue mentions problems about dispose behavior. The problem I am encountering is about dispose being called when it shouldn't.

Digging a bit deeper I noticed that I can go "around" the problem by instantiating a new sheet (not the datasheet component, but the sheet it uses) every time before repainting the datasheet on screen. Weird thing is, the Sheet class does not implement IDisposable or IAsyncDisposable, so even if the datasheet dispose is called it cannot be propagated. But I'm not even sure it gets called now. Looks more like something that is used inside Sheet is disposable and its dispose method gets called. I get the exception when visually clicking on any cell.

Thanks for the info. Can you please copy the whole exception here?


路由传递对象的时候，对象不为空，但是会出现空指针异常

Look at here

→ Did you read the doc carefully
→ Did you add annotation above target activity
→ Did you add annotation processor dependence
→ Receive only bugs and suggestions

我也遇到了 注解加了  名字也对了一遍 还是空指针


crypto: constant time AES and GCM

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
1.7.4
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/home/dobenour/archives/go"
GOTOOLDIR="/home/dobenour/archives/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build902131924=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

What did you do?
Looked at the Go docs for crypto/aes
What did you expect to see?
That the AES implementation uses bitslicing to make it constant time.
What did you see instead?
That the AES-GCM implementation is not constatn time and is vulnerable to timing attacks.

This is pretty much a dup of #16821 (initially titled: "crypto: non-constant time arithmetic").
gri wrote on that issue:

We certainly can't change the implementation in the near-term - there's too much to change and it's subtle. I let [@]agl weigh in regarding the need to do so in the first place (or not).

At the end it was decided to update the documentation to make clear what is (or isn't) constant-time.

Yeah, the docs in 850e55b8c028440f2fe282858b332cb810a06864 are sufficient for now.
We can leave this open as a tracking bug, though.


[Backport 1.x] Fix javadocs and improve javadoc CI

Backport e53d40a35302c40a69f82c75040c3f025091a580 from #697.

Codecov Report

Merging #701 (b2c8752) into 1.x (62900cb) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff            @@
##                1.x     #701   +/-   ##
=========================================
  Coverage     65.99%   65.99%
  Complexity      301      301
=========================================
  Files            55       55
  Lines          1235     1235
  Branches         41       41
=========================================
  Hits            815      815
  Misses          408      408
  Partials         12       12

Impacted Files
Coverage Δ

...ch/sdk/handlers/ExtensionActionRequestHandler.java
7.27% <ø> (ø)

...h/sdk/handlers/ExtensionActionResponseHandler.java
0.00% <ø> (ø)

...rch/sdk/handlers/ExtensionsRestRequestHandler.java
40.00% <ø> (ø)

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


Panel is not closed when active output channel is disposed

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.65.2 (user setup)
OS Version: Windows_NT x64 10.0.19044

Steps to Reproduce:

Create an extension that runs the following code:

const logOutputChannel = vscode.window.createOutputChannel('MyOutputChannel');
logOutputChannel.show();

setTimeout(() => {
	logOutputChannel.dispose();
	vscode.commands.executeCommand('workbench.action.closePanel');
	setTimeout(() => {
		vscode.commands.executeCommand('workbench.action.closePanel');
	}, 2000);
}, 2000);

Observe that the first workbench.action.closePanel command has no effect, and the panel closes after 4 seconds, not 2.

This looks like a race condition and it affects my extension. Reproduces on latest nightly.

@gjsjohnmurray it didn't help, it looks like disposing the currently selected output channel makes the panel visible if it's hidden.

To verify, make sure extension with following code shows the MyOutputChannel channel and after 2s output view is hidden. Opening the output view shall not show the MyOutputChannel
const logOutputChannel = vscode.window.createOutputChannel('MyOutputChannel');
    logOutputChannel.show();
    setTimeout(() => {
        logOutputChannel.dispose();
        vscode.commands.executeCommand('workbench.action.closePanel');
    }, 2000);


drop_col gives error?

When I try to use data augmentation with drop_col, I get the error below. I did not change anything about the model or data, is there something I'm missing?

When I try to use data augmentation with drop_col, I get the error below. I did not change anything about the model or data, is there something I'm missing?

me too I got the same error

When I try to use data augmentation with drop_col, I get the error below. I did not change anything about the model or data, is there something I'm missing?

did you solve the problem?

Sadly no, I'm hoping someone can help.

Sadly no, I'm hoping someone can help.

They added the ditto light on their code, and after this changes, this error happens. I hope authors answer this question

I do not think the issue is caused by using \t instead of [SEP] as that is also used in the other data augmentation functions. I noticed a different pattern; if the column before the separator is the one to be removed, it also removes the [SEP] indicator from the resulting tokens.
I'll attempt to fix the algorithm for dropping columns, I'll keep you posted.


settings: Temporarily revert Django password hash salt upgrade

I think we can close this, since we've decided to go ahead with the Django hash salt upgrade.


[C++] list-view are not supported by "array_take" and "array_filter"

Describe the bug, including details regarding any error messages, version, and platform.
You can't select values from a list-view-typed array.
Component(s)
C++

Issue resolved by pull request 42117
https://github.com/apache/arrow/pull/42117


Question: How is the pow stream computed from the EEG ?

Everything is in the title. What are the bands (in Hz) that you use ? what is you extraction method ? On what time window are you extracting it ? Couldn't find anything in the API documentation.

Hi @nathanLaubeuf , actually we are using hanning windows with size 2 seconds to calculate the band in the frequency 4.0 to 45.0 Hz.


Add ability to share /var/lib/containers in the ostree dual boot

To allow the two stateroots to share the same directory for /var/lib/containers, we need to:

Create a directory /sysroot/containers
mount -o bind that directory in /var/lib/containers
remount it readwrite, because since /sysroot is mounted readonly, it will be readonly, and I dont know how to bindmount + change it to read-only in one operation
restore SELinux contexts to /var/lib/containers

More detailed explanation is in the comments of the ostree-var-lib-containers-machineconfig.yaml file

Can you give a brief overview of how it's done? All the systemd / lsattr / chattr / mount / unmount / remount stuff and why it's done

Can you give a brief overview of what's being done? All the systemd / lsattr / chattr / mount / unmount / remount stuff and why it's done

I commented extensively the ostree-var-lib-containers-machineconfig.yaml and gave a brief explanation in the description of the PR

Thank you, that helps

Why do we need the MC to add systemd services?
Can't we do the configuration while running the pre-upgrade host?

Why do we need the MC to add systemd services? Can't we do the configuration while running the pre-upgrade host?

The first service/script is only needed once, that's why if the directory exists already, it does nothing. This will be created once in the pre-upgrade host, and from that moment on, it wont be needed anymore. Anyways I think it's cleaner to have the whole pack in the same MC, but we can make two MCs one with to be run in the pre-upgrade host, and another one without this one to be run in subsequent runs (and in the golden image one)
The next one is needed because it remounts readwrite the containers directory. It would be great if we can do this from the .mount unit, but I did not find how to do that
And the last one is the SELinux restorecon, I dont know if we could avoid this once everything is prepared for the first time, as it happens with the first one I mentioned


dynamoDB / direct access

How can I use the same dynamodb which is created/used by AppSync Emulator to write/read from a normal lambda function called by serverless-offline?
On which local port can I directly access the dynamodb?
Thanks
Andreas
ps. Thanks for creating the AppSync emulator - great work!

Great question.  Will follow up with update to README.
You'll note here that we pass environment variables to the process invoking the lambda method.
So, in your lambda method you can:
const dynamodb = new DynamoDB({
  endpoint: process.env.DYNAMODB_ENDPOINT,
  region: 'us-fake-1',
  accessKeyId: 'fake',
  secretAccessKey: 'fake',
});
const client = new DynamoDB.DocumentClient({ service: dynamodb });
const TableName = process.env.DYNAMODB_TABLE_YOURTABLENAME;

I am not talking about lambda functions which are invoked by the emulator.
I need to access the database from a lambda function which is invoked by serverless-offline or serverless-offline-sns
Have you thought to add a parameter to use an existing external dynamodb (e.g. serverless-dynamodb-local) or to convert your emulator to a serverless plugin to support a better integration?

Have you thought to add a parameter to use an existing external dynamodb (e.g. serverless-dynamodb-local) or to convert your emulator to a serverless plugin to support a better integration?

Got it.  We will consider adding this feature in a future iteration.  In the meantime, feel free to put up a PR.


fix(tags): fixing hyphen issue with spring boot 2.6

I think it requires approval as part of the workflow
@christosarvanitis @manuelaguir


Google colab debug

# you can also use this prediction function to get result
prediction = predict(exp, setting, True)

it will report error for not defined os and np
solution:
import os
import numpy as np

In file Informer.ipynb

Could you please check the enviroment?


[Deploy] Threema

Service
Threema
Link to your repository
https://github.com/Arany/franz-recipe-threema
Additional Information
I did not find a publicly available big enough icon, so I took the svg from https://github.com/FortAwesome/Font-Awesome/issues/7057#issuecomment-154059526 and then changed the colors a bit.
Also, the login is not saved between sessions. I guess it COULD be done, but it would decrease security, as some data is apparently saved encrypted in local storage. Setting a password automatically and using it to login..

Deployed, thanks for your contribution.


Support cabal 2.2

Relatively low priority, but should be done at some point. Hopefully be able to keep compatibility with 1.24.2, and 2.0.

Most of the work is done here: https://github.com/haskell-mafia/mafia/pull/234
Remaining issue is just sorting out the failing chaos integration test.

#234 has been merged a year ago, should this issue be closed?


Password stored as plain text

When you give the program your password for your google account for auto-login, it stores the password as plaintext in the JSON file, which anyone can read

@jeffrypig23 Agreed, I was thinking of doing encryption but I didn't really get to it. I'll do this when I get the chance to do a rewrite. Right now, it's not a full "release" and more of an alpha than anything else, the code is messy and it's badly written. But yeah, agreed.


Documentation: link to tarball; add Quick Win section

This is a documentation-only update.
Added tarball links to the Distribution section.
Added a Quick Win section so users could get started straight away with doing a conversion, whether that's the end goal, or to get an idea of how the results would look after integrating the API.

Thanks! 🎉


[Bug]: Middleware with Prisma Adapter (PrismaClient) is not working

Package
lucia
Describe the bug
Hello,
First of all, I am using Prisma (with Lucia adapter) and Next.js 14.
So, when I try to call the following function in middleware.ts, it returns the error: Error: PrismaClient is unable to run in Vercel Edge Functions or Edge Middleware. As an alternative, try Accelerate: https://pris.ly/d/accelerate. (screenshot provided below).
I think this is because you shouldn't use the PrismaClient in middleware, rather to use PrismaClient from @prisma/client/edge. Check this issue for more details: https://github.com/prisma/prisma/issues/21310
export const validateRequest = cache(
  async (): Promise<
    { user: User; session: Session } | { user: null; session: null }
  > => {
    const sessionId = cookies().get(lucia.sessionCookieName)?.value ?? null;
    if (!sessionId) {
      return {
        user: null,
        session: null,
      };
    }

    const result = await lucia.validateSession(sessionId);
    try {
      if (result.session && result.session.fresh) {
        const sessionCookie = lucia.createSessionCookie(result.session.id);
        cookies().set(
          sessionCookie.name,
          sessionCookie.value,
          sessionCookie.attributes,
        );
      }
      if (!result.session) {
        const sessionCookie = lucia.createBlankSessionCookie();
        cookies().set(
          sessionCookie.name,
          sessionCookie.value,
          sessionCookie.attributes,
        );
      }
    } catch {}
    return result;
  },
);

This isn't a bug, nor is it related to Lucia (?)


Install Plugins error: Registry not found on yarn/npm

Summary
Trying to add any of the 3 packages (backstage-plugin-dql, backstage-plugin-dql-backend, backstage-plugin-dql-common), a "Not found" error is received.
I have change the repository to npm: also unsuccessful
Expected Behavior
>yarn --cwd packages/app add @dynatrace/backstage-plugin-dql
[n/n] Building fresh packages...
success Saved 1 new dependency.
info Direct dependencies
info All dependencies
└─<EMAIL_ADDRESS>Done in tt.tts.

Current Behavior
>yarn --cwd packages/app add @dynatrace/backstage-plugin-dql
error Error: https://registry.yarnpkg.com/@dynatrace%2fbackstage-plugin-dql: Not found`

Steps to Reproduce

run:

cd packages/app; yarn add @dynatrace/backstage-plugin-dql

Possible Solution

Context

user@hostname:~/backstage$ cd packages/app
user@hostname:~/backstage/packages/app$ yarn add @dynatrace/backstage-plugin-dql --verbose
yarn add v1.22.22
verbose 0.208621221 Checking for configuration file "/home/user/backstage/packages/app/.npmrc".
verbose 0.209068736 Checking for configuration file "/home/user/.npmrc".
verbose 0.209471744 Found configuration file "/home/user/.npmrc".
verbose 0.210322772 Checking for configuration file "/home/user/.nvm/versions/node/v20.11.0/etc/npmrc".
verbose 0.210725502 Checking for configuration file "/home/user/backstage/packages/app/.npmrc".
verbose 0.210919876 Checking for configuration file "/home/user/backstage/packages/.npmrc".
verbose 0.211062098 Checking for configuration file "/home/user/backstage/.npmrc".
verbose 0.211240306 Checking for configuration file "/home/user/.npmrc".
verbose 0.211461927 Found configuration file "/home/user/.npmrc".
verbose 0.212027556 Checking for configuration file "/home/.npmrc".
verbose 0.213230323 Checking for configuration file "/home/user/backstage/packages/app/.yarnrc".
verbose 0.213606957 Checking for configuration file "/home/user/.yarnrc".
verbose 0.21384815 Found configuration file "/home/user/.yarnrc".
verbose 0.214231051 Checking for configuration file "/home/user/.nvm/versions/node/v20.11.0/etc/yarnrc".
verbose 0.214367723 Checking for configuration file "/home/user/backstage/packages/app/.yarnrc".
verbose 0.214465126 Checking for configuration file "/home/user/backstage/packages/.yarnrc".
verbose 0.214549226 Checking for configuration file "/home/user/backstage/.yarnrc".
verbose 0.214668267 Checking for configuration file "/home/user/.yarnrc".
verbose 0.214760191 Found configuration file "/home/user/.yarnrc".
verbose 0.215451003 Checking for configuration file "/home/.yarnrc".
verbose 0.223513062 current time: 2024-05-20T13:54:25.323Z
[1/4] Resolving packages...
verbose 0.684119727 Performing "GET" request to "https://registry.yarnpkg.com/@dynatrace%2fbackstage-plugin-dql".
verbose 1.577293128 Request "https://registry.yarnpkg.com/@dynatrace%2fbackstage-plugin-dql" finished with status code 404.
verbose 1.587709245 Error: https://registry.yarnpkg.com/@dynatrace%2fbackstage-plugin-dql: Not found
    at params.callback [as _callback] (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:66680:18)
    at self.callback (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:141410:22)
    at Request.emit (node:events:518:28)
    at Request.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142382:10)
    at Request.emit (node:events:518:28)
    at IncomingMessage.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142304:12)
    at Object.onceWrapper (node:events:632:28)
    at IncomingMessage.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
error Error: https://registry.yarnpkg.com/@dynatrace%2fbackstage-plugin-dql: Not found
    at params.callback [as _callback] (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:66680:18)
    at self.callback (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:141410:22)
    at Request.emit (node:events:518:28)
    at Request.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142382:10)
    at Request.emit (node:events:518:28)
    at IncomingMessage.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142304:12)
    at Object.onceWrapper (node:events:632:28)
    at IncomingMessage.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

user@hostname:~/backstage/packages/app$ yarn config set registry https://registry.npmjs.org/
yarn config v1.22.22
success Set "registry" to "https://registry.npmjs.org/".
Done in 0.04s.
user@hostname:~/backstage/packages/app$ yarn add @dynatrace/backstage-plugin-dql
yarn add v1.22.22
[1/4] Resolving packages...
error Error: https://registry.npmjs.org/@dynatrace%2fbackstage-plugin-dql: Not found
    at params.callback [as _callback] (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:66680:18)
    at self.callback (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:141410:22)
    at Request.emit (node:events:518:28)
    at Request.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142382:10)
    at Request.emit (node:events:518:28)
    at IncomingMessage.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142304:12)
    at Object.onceWrapper (node:events:632:28)
    at IncomingMessage.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Your Environment

@dynatrace/backstage-plugin-dql-backend version: still any
@dynatrace/backstage-plugin-dql version: still any

yarn v1.22.22
backstage v1.26.0

Unfortunately, our plugin is still not on npm yet but on github instead.
Could you try the following as described here?
https://github.com/Dynatrace/backstage-plugin/issues/68#issuecomment-2060655833

The plugin(s) are now available on npm 👍

@JohnYunez can you please confirm that the issue is resolved?

It works!
Thanks a lot @Kirdock @johannes-b
├─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>Done in 13.94s.

├─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>Done in 13.74s.

├─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>Done in 11.83s.


fix: boxes boostrap dont use ts-node directly and add .prettierignore

since ts-node is available in subpackage, but not in yarn-packages in general

Benchmark results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit d7b7fb1d and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
128 txs

l1_rollup_calldata_size_in_bytes
45,444
179,588
716,132

l1_rollup_calldata_gas
222,996
868,172
3,449,432

l1_rollup_execution_gas
842,083
3,595,280
22,204,801

l2_block_processing_time_in_ms
:warning: 1,253 (+24%)
:warning: 4,748 (+23%)
:warning: 18,814 (+22%)

note_successful_decrypting_time_in_ms
:warning: 397 (+21%)
:warning: 1,291 (+27%)
:warning: 5,077 (+28%)

note_trial_decrypting_time_in_ms
:warning: 101 (+206%)
109 (+1%)
146 (+6%)

l2_block_building_time_in_ms
:warning: 11,092 (+25%)
:warning: 44,257 (+23%)
:warning: 199,604 (+27%)

l2_block_rollup_simulation_time_in_ms
:warning: 8,250 (+26%)
:warning: 32,909 (+24%)
:warning: 131,276 (+25%)

l2_block_public_tx_process_time_in_ms
:warning: 2,792 (+22%)
:warning: 11,198 (+22%)
:warning: 67,451 (+31%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
13,936
27,029 (+2%)

note_history_successful_decrypting_time_in_ms
3,054
6,022 (+1%)

note_history_trial_decrypting_time_in_ms
126 (-1%)
:warning: 248 (+58%)

node_database_size_in_bytes
1,662,836
1,198,676

pxe_database_size_in_bytes
27,188
54,187

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
:warning: 57.9 (+11%)
61,697
18,841

private-kernel-ordering
28.5 (+9%)
24,233
8,089

base-rollup
1,035 (+10%)
639,797
811

root-rollup
45.5 (+8%)
4,072
1,097

private-kernel-inner
51.7 (+10%)
81,504
18,841

public-kernel-private-input
:warning: 59.4 (+13%)
41,455
18,841

public-kernel-non-first-iteration
:warning: 38.7 (+13%)
41,497
18,841

merge-rollup
:warning: 1.14 (+13%)
2,592
873

Miscellaneous
Transaction sizes based on how many contracts are deployed in the tx.

Metric
0 deployed contracts
1 deployed contracts

tx_size_in_bytes
8,723
27,508

updated, initial PR was rushed on my side sorry!

Why just ignoring .ts file? The auto-generated json file also doesn't follow the formatting rule.


test_bisplev_integer_overflow: Segmentation fault (core dumped)

After scipy 1.4.1 instalation I have run the tests with
$ python3
>>> import scipy
>>> scipy.test()

and the 'test_bisplev_integer_overflow' test exited with Segmentation fault (core dumped). I added few prints that can help me to trace this issue (I do not have dev/debug tools on my target device), and what I figured out, the seg fault occurs on call:
scipy/interpolate/src/_fitpackmodule.c:198
197: else {
198:         BISPEV(tx, &nx, ty, &ny, c, &kx, &ky, x, &mx, y, &my, z, wrk, &lwrk,
199:                iwrk, &kwrk, &ier);
200: }

BISPEV is not NULL here and has an address assigned, but I could not debug it deeper, since seg fault occurs just after this call.
I have been testing this for a while and the bisplev function works in other cases (e.g. example codes from https://docs.scipy.org/doc/scipy-1.4.1/reference/tutorial/interpolate.html), I only noticed problem with input data from the mentioned test.
Error message:
When I run test_bisplev_integer_overflow line by line in python console:
On my intel host:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/lechnio/.local/lib/python3.6/site-packages/scipy/interpolate/_fitpack_impl.py", line 1054, in bisplev
    z, ier = _fitpack._bispev(tx, ty, c, kx, ky, x, y, dx, dy)
RuntimeError: Cannot produce output of size 2621440x2621440 (size too large)

I expect the same output for my target device.
On my target device:
>>> interpolate.bisplev(xp, yp, tck)
Segmentation fault (core dumped)

Target device info:
Hardware
Architecture:    armv7l
Vendor ID:       ARM
Model name:   Cortex-A9
Software
GCC:               9.2.0
Python:            3.7.7
Pybind11:        2.5.0
Scipy:              1.4.1
Numpy:           1.15.4

This was continued in gh-12471, so closing this issue.


JdbcEventStorageEngine: Use multiple IN lists if the number of gaps exceed 1000

This PR contains the fix proposed in https://github.com/AxonFramework/AxonFramework/issues/1010

Hi @lion7,
We had an internal discussion at AxonIQ and were thinking, although this fix looks good to us, whether we'd want to safeguard from having a lot of gaps in Tracking Token. The reason for this is that it usually hides some other problem. What is your opinion on this?

Actually we we're recently facing a few problems with these gaps. We had 2 commands running in parallel producing around 12000 events each. 1 of these commands was rolled back, leaving a very large gap in the token. We did increase the max gap offset to 100000 but that caused only OutOfMemoryErrors during event handling (we used a 8GB heap). I guess the root problem here is the amount of events that we produce in a single transaction. We already discussed about using saga's, but that gives us other trouble (such as reverting / undoing already produced events).
As a long-term solution we are migrating our code and events to AxonServer (hopefully soon Enterprise),  so that we no longer have gaps :)


bug: plugin key-auth not work as expected

Issue description
Environment

apisix version (cmd: apisix version):
OS:darwin/amd64

Minimal test code / Steps to reproduce the issue

add a router to upstream service(works as expected)
add key-auth plugin for above router
do not add apikey header field
response message is {"message":"Missing API key found in request"} as expected
add apikey in header
request again exception occurs

What's the actual result? (including assertion message & call stack if applicable)
response message 500 internal server error
call stack like this
coroutine 0:
        /Users/beixi/workspace/code/apisix/lua/apisix/consumer.lua: in function 'create_obj_fun'
        ...beixi/workspace/code/apisix/lua/apisix/core/lrucache.lua:50: in function 'global'
        /Users/beixi/workspace/code/apisix/lua/apisix/consumer.lua:47: in function 'plugin'
        ...xi/workspace/code/apisix/lua/apisix/plugins/key-auth.lua:53: in function 'phase_fun'
        /Users/beixi/workspace/code/apisix/lua/apisix.lua:115: in function 'run_plugin'
        /Users/beixi/workspace/code/apisix/lua/apisix.lua:312: in function 'http_access_phase'
        access_by_lua(nginx.conf:143):2: in main chunk, client: <IP_ADDRESS>, server: , request: "POST /smartcloud/v1.1.5/devicemanager/deviceinfo/list HTTP/1.1", host: "<IP_ADDRESS>:9081"

What's the expected result?

Can you supply more detailed infomation please?

Please give the apisix version(use command line apisix version can print the version)
More call stack log

When I try to reproduce this error, in step 6, I got this
HTTP/1.1 401 Unauthorized
Date: Wed, 27 Nov 2019 13:46:54 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX web server

{"message":"Missing related consumer"}

My apisix version is: 0.9-rc1

yes where I try to restart the apisix I got the same result like you
my apisix version is: 0.8

Can you supply more detailed infomation please?

Please give the apisix version(use command line apisix version can print the version)
More call stack log

When I try to reproduce this error, in step 6, I got this
HTTP/1.1 401 Unauthorized
Date: Wed, 27 Nov 2019 13:46:54 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX web server

{"message":"Missing related consumer"}

My apisix version is: 0.9-rc1

my apisix version is: 0.8

please update your apisix to latest version, it should be 0.9 now.


Make TS user friendly with custom tags and attributes

This PR aims to make typescript way less in the way.
Instead of having to maintain a bazillion of different use case, this allows us to use what already exist and default to any for the rest (custom attributes, tags, etc..)
Before merging it could be interesting to have @trusktr opinion, but from my POV, this would allow us to have a break with TS when 1.0 launch.

The origin of this is the recent release of windicss 3.0, which added custom attributes to style your markup https://windicss.org/posts/attributify.html. I expect people bumping into using tsx files and wondering why TS is all over them because they use custom attributes such as div text="green-500.
This also allows for custom element to at least not yield an error. It won't be typed but at least they will be usable.

I don't know if this is a good thing. It means that any misspelled attribute wouldn't warn you. I think most TS users would think this is undesirable. I may not be a big fan of TypeScript but I think extending interfaces probably makes more sense. I realize this is tedious, but so is TypeScript. That's why you use it.

Yeah that's totally understandable, I suppose this is also possible in user land to create a .d.ts file and extends the necessary interfaces.
I do however think that if we want to go down that path, we might need to document it. A typescript section in the doc with common typescript tricks and tips could be useful. Anyway, that's a discussion for another issue.

Probably. Although that is the same for every JSX based language. But people will hit it more with Solid (or Stencil) given how TS heavy we are.

Yeah I'm pretty confident this not the path forward. TS users seem to prefer strictness and explicit definitions.

Yeah that makes sense


Received unexpected error "gorethink: could not decode type []interface {} into Go value of type User"

I am trying to test my function GetUsers, using different result types
With the first data set I get the following error (which can make sense):
--- FAIL: TestGetUsers (0.00s)
        Error Trace:    user_test.go:48
	Error:  	Received unexpected error "gorethink: could not decode type []interface {} into Go value of type User"

        Error Trace:    user_test.go:49
	Error:  	Expected value not to be nil.

With the second I get:
--- FAIL: TestGetUsers (0.00s)
        Error Trace:    user_test.go:49
	Error:  	Received unexpected error "gorethink: could not decode type []User into Go value of type User"

        Error Trace:    user_test.go:50
	Error:  	Expected value not to be nil.

	mock.go:219: ✅	r.Table("test")

And with the third one the test passes, which makes no sense to me.
Here is the code I am using for the test.

type User struct {
	ID string `gorethink:"ID"`
	Name string `gorethink:"name"`
}

func GetUsers(mock gorethink.QueryExecutor) (*[]User, error){
	res, err := gorethink.Table("test").Run(mock)
	if err != nil {
		return nil, err
	}
	defer res.Close()

	var users []User
	if err := res.All(&users); err != nil {
		return nil, err
	}

	return &users, nil
}

func TestGetUsers(t *testing.T) {
	mock := gorethink.NewMock()

	expected := []interface{}{
		map[string]interface{}{"id": "1", "name": "John Smith"},
		map[string]interface{}{"id": "2", "name": "Jane Smith"},
	}

/*
	expected := []User{
		{ID: "1", Name:"test"},
		{ID: "2", Name:"test"},
	}

	expected := User{ID: "1", Name:"test"}
*/
	mock.On(gorethink.Table("test")).Return(expected, nil).Once()

	res, err := GetUsers(mock)

	assert.NoError(t, err)
	assert.NotNil(t, res)

	mock.AssertExpectations(t)
}

Is this an expected behavior?
Thanks

Hi @asiragusa, sorry for taking so long to reply. I tested this locally and discovered that there was a bug that meant when the mock session created a Cursor the All function did not work correctly. I have fixed this in develop which should hopefully be released to master in the next week or so.
Thanks for the clear bug report and sorry again for the problems this caused!

Hi @dancannon, thanks for the quick reply :) And no worries, I can wait the next week


Deleting VM with 'az vm delete' does not delete its disk

If I delete a VM with az vm delete I expect all dependent resources to be deleted too. But disks are not.
E.g. I have VM tw-001-westeurope
kristian@opossum:~$ az vm show -n tw-001-westeurope -g tw-rg-westeurope
{
  "availabilitySet": null,
  "diagnosticsProfile": null,
  "hardwareProfile": {
    "vmSize": "Basic_A1"
  },
  "id": "/subscriptions/***/resourceGroups/tw-rg-westeurope/providers/Microsoft.Compute/virtualMachines/tw-001-westeurope",
  "identity": null,
  "instanceView": null,
  "licenseType": null,
  "location": "westeurope",
  "name": "tw-001-westeurope",
  "networkProfile": {
    "networkInterfaces": [
      {
        "id": "/subscriptions/***/resourceGroups/tw-rg-westeurope/providers/Microsoft.Network/networkInterfaces/tw-001-westeuropeVMNic",
        "primary": null,
        "resourceGroup": "tw-rg-westeurope"
      }
    ]
  },
  "osProfile": {
    "adminPassword": null,
    "adminUsername": "azureuser",
    "computerName": "tw-001-westeurope",
    "customData": null,
    "linuxConfiguration": {
      "disablePasswordAuthentication": true,
      "ssh": {
        "publicKeys": [
          {
            "keyData": "***",
            "path": "/home/azureuser/.ssh/authorized_keys"
          }
        ]
      }
    },
    "secrets": [],
    "windowsConfiguration": null
  },
  "plan": null,
  "provisioningState": "Succeeded",
  "resourceGroup": "tw-rg-westeurope",
  "resources": null,
  "storageProfile": {
    "dataDisks": [],
    "imageReference": {
      "id": "/subscriptions/***/resourceGroups/tw-rg-westeurope/providers/Microsoft.Compute/images/tw-image-2017-11-13",
      "offer": null,
      "publisher": null,
      "resourceGroup": "tw-rg-westeurope",
      "sku": null,
      "version": null
    },
    "osDisk": {
      "caching": "None",
      "createOption": "FromImage",
      "diskSizeGb": 30,
      "encryptionSettings": null,
      "image": null,
      "managedDisk": {
        "id": "/subscriptions/***/resourceGroups/tw-rg-westeurope/providers/Microsoft.Compute/disks/tw-001-westeurope",
        "resourceGroup": "tw-rg-westeurope",
        "storageAccountType": "Standard_LRS"
      },
      "name": "tw-001-westeurope",
      "osType": "Linux",
      "vhd": null
    }
  },
  "tags": {},
  "type": "Microsoft.Compute/virtualMachines",
  "vmId": "abdaa320-2fef-4c22-aca1-339682f21bfd",
  "zones": null
}

and delete it with az vm delete:
kristian@opossum:~$ az vm delete -g tw-rg-westeurope -n tw-001-westeurope --yes
{
  "endTime": "2017-11-16T13:48:11.344229+00:00",
  "error": null,
  "name": "6a7b12f7-779d-4014-9794-720feb670f0f",
  "startTime": "2017-11-16T13:47:09.907105+00:00",
  "status": "Succeeded"
}

the disk that was attached to the VM is still there:
kristian@opossum:~$ az disk show -n tw-001-westeurope -g tw-rg-westeurope
{
  "creationData": {
    "createOption": "Copy",
    "imageReference": null,
    "sourceResourceId": "/subscriptions/***/resourceGroups/tw-rg-westeurope/providers/Microsoft.Compute/snapshots/tw-image-2017-11-13_envfb1jz4qg",
    "sourceUri": null,
    "storageAccountId": null
  },
  "diskSizeGb": 30,
  "encryptionSettings": null,
  "id": "/subscriptions/***/resourceGroups/tw-rg-westeurope/providers/Microsoft.Compute/disks/tw-001-westeurope",
  "location": "westeurope",
  "managedBy": null,
  "name": "tw-001-westeurope",
  "osType": "Linux",
  "provisioningState": "Succeeded",
  "resourceGroup": "tw-rg-westeurope",
  "sku": {
    "name": "Standard_LRS",
    "tier": "Standard"
  },
  "tags": {},
  "timeCreated": "2017-11-16T12:28:51.081460+00:00",
  "type": "Microsoft.Compute/disks",
  "zones": null
}

Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
azure-cli (2.0.20)

acr (2.0.14)
acs (2.0.18)
appservice (0.1.19)
backup (1.0.2)
batch (3.1.6)
batchai (0.1.2)
billing (0.1.6)
cdn (0.0.10)
cloud (2.0.9)
cognitiveservices (0.1.9)
command-modules-nspkg (2.0.1)
component (2.0.8)
configure (2.0.12)
consumption (0.1.6)
container (0.1.12)
core (2.0.20)
cosmosdb (0.1.14)
dla (0.0.13)
dls (0.0.16)
eventgrid (0.1.5)
extension (0.0.5)
feedback (2.0.6)
find (0.2.7)
interactive (0.3.11)
iot (0.1.13)
keyvault (2.0.13)
lab (0.0.12)
monitor (0.0.11)
network (2.0.17)
nspkg (3.0.1)
profile (2.0.15)
rdbms (0.0.8)
redis (0.2.10)
resource (2.0.17)
role (2.0.14)
servicefabric (0.0.5)
sql (2.0.14)
storage (2.0.18)
vm (2.0.17)

Python location '/opt/az/bin/python3'
Extensions directory '/home/kristian/.azure/cliextensions'

Python (Linux) 3.6.1 (default, Oct 18 2017, 20:41:18)
[GCC 4.8.4]

This is a reasonable ask, which i have hoped the compute service can expose such support. Note, deleting the os disk along with the VM might not always work out for users, particularly when disk is meant to be backed up so to recreate a fresh new vm later. Nevertheless, we should have such option there

I would like to see this provided as an option as well. The old "azure" cli did have a '-b' option to take care of the disk, but it's not available for az cli. It would be nice to have an option to clean up all the resources the VM is using when the VM is deleted (for example: nic, disk).

Indeed, at time of writing, one might say that by saying 'This will permanently delete the selected virtual machines and their related resources.' the Azure web console indicates that it will delete the disk too. (But I agree, it does not - I too have tested it.)

The above is displayed when selecting the VM and clicking the Delete button from the top button bar, but not when clicking the Delete option from the three dots 'context menu' which appears next to the VM when displaying VMs in the console. The latter way, it displays a different message simply asking for confirmation to delete the VM - no mention of selected or related resources. (Surely these ought to be consistent and behave identically?)

I would also like this feature.

100%. This is a huge issue for any kind of automated process when you have to manually go in and clean up after the VMs all the time.

@adewaleo, I suggest we provide

-b to take care of the os disk and data disk
-i to take care of the public ip

When you create a VM using --tags, all tags are propagated to any other created resources. So, one could clean up these resources by querying all resources with that VM's tag and deleting them.
Instead of adding special-case arguments to vm delete, I would recommend adding filters to the resource delete command.

@tjprescott @yugangw-msft. We can possibly document the tags approach somewhere to let users know this is a viable option. Perhaps here.
But given the customer demand and that the CLI did expose an option for deleting disks. I think it won't hurt to add such options as a convenience.

Deleting just the disk would not address either of the customer complaints:

I expect all dependent resources to be deleted too.

It would be nice to have an option to clean up all the resources the VM is using when the VM is deleted

100%. This is a huge issue for any kind of automated process when you have to manually go in and clean up after the VMs all the time.

Deleting all resources based on a tag would accomplish this (unless it was impossible). Additionally, it would provide generally useful utility instead of narrow, limited utility.

That's fair. I can add some help text and examples suggesting that a user use the az resource delete --tag approach instead. Again I think it would be helpful to add it into the protips doc.

No, there currently isn't a --tag filter on resource delete. I'm saying we should add it.

Though a better approach might be a delete_command template that adds filters to all delete commands, similar to wait_command and show_command.  However, if I ran az vm delete --tag foo=bar I would expect ONLY VMs to be deleted, not other resources.

Created #8532 to provide a work around to this issue.

I like the idea of az resource delete --tags! We should definitely do it.
The reason I recommended extra flags to delete the disk and public ip are based on a few facts:

Very very few users are using --tags with az vm create.
Tags are used to mark a fleet of resources, not an individual resources, so using --tags targets more to removing a few vms, say all created for financial department, instead of a specific one.
Disk and Public IP are the 2 main things should be cleaned up. Deleting vnet, subnet might not be users' preference as doing that likely fails anyway as there are other resources in the same subnet/vnet

3. Disk and Public IP are the 2 main things should be cleaned up

I think one could reasonably add the NIC and automatically created NSG (the one created if no --nsg param is given when creating the VM) to that list.

As a new user of the az CLI, the number of disks I just found after iterating on a vm create; test; vm delete cycle was extremely surprising! Please implement something to help in this space! :-)

@jpluscplusm, hopefully #8532 will help with this!

For now, here is a work around you can try out:

Create a vm with the desired tag. Please ensure this tag is unique.

az vm create -n mydebvm -g test-vm-delete --data-disk-sizes-gb 1 1 --image debian --tags for_test=True

{
  "fqdns": "",
  "id": "/subscriptions/00000/resourceGroups/test-vm-delete/providers/Microsoft.Compute/virtualMachines/mydebvm",
  "location": "westus",
  "macAddress": "00-00-00",
  "powerState": "VM running",
  "privateIpAddress": "<IP_ADDRESS>",
  "publicIpAddress": "<IP_ADDRESS>,
  "resourceGroup": "test-vm-delete",
  "zones": ""
}

Note that the tags are applied to every resource created by az vm create.

Number of lines are equal; all resources in the group have the tag.

az resource list -g test-vm-delete -otable
az resource list --tag for_test=True -otable
   ...
az resource list --tag for_test=True -otable | wc -l
    13
az resource list -g test-vm-delete -otable | wc -l
    13

Delete the resources by using the ids of resources that have the desired tag

az resource delete --ids $(az resource list --tag for_test=True -otable --query "[].id" -otsv)

or
az resource list --tag for_test=True -otable --query "[].id" -otsv > delete_ids.txt
az resource delete --ids $(delete_ids.txt)

(Or with a batch / bash / powershell script of your choosing)

Could we have an optional parameter in ARM template that signifies if the disks will be deleted or not. Much like cascade rule on databases.

I am no longer on the CLI team. Hmm, the CLI is a client of ARM / Compute, I think this would need to be a feature request to the Azure Compute Service.
cc: @qwordy @yonzhan
Do you think you could follow up on this issue?

I am no longer on the CLI team. Hmm, the CLI is a client of ARM / Compute, I think this would need to be a feature request to the Azure Compute Service.
cc: @qwordy @yonzhan
Do you think you could follow up on this issue?

Sure. I'll look into it after holiday (1st Oct ~ 7th Oct).

agree with @tjprescott , user problem is to cleanup all resources created with vm, a good solution is to delete all resources via filtering tags, by supporting az resource delete --tag.
duplicate with issue https://github.com/Azure/azure-cli/issues/8532

I'm running into an issue with the proposed workaround of using az resource delete --tag.
It seems the use of the --tag option is not compatible with either the --resource-group option nor having a location set.   That seems to make the request a lot more risky than I had hoped.
Am I missing some capability or is this the way it works?  It still is not very user friendly to have to use a different api (az resource) to delete the resources that were created automatically for you as part of az vm create.

@CraigRubendall I use:
az resource list -g MyResourceGroup --query "[?tags.id=='$AZURE_RESOURCE_TAG'].id" --output=tsv

and it works perfectly

the delete of OS disk along with the VM should be offered as an option.  What I want to give my client is a script that they can execute with their permission set to drop and recreate the VM.  I need to give them the permission to drop the VM, but I dont want to give them the permission to drop disk as a separate permission item.  If the option is there to delete the OS disk (and even all other disks attached to the VM), then I suppose I don't have to give them a separate permission to execute the deletion of disks.  IMHO.

I tried to use  the ephemeral OS disk as the workaround, but unfortunately, this is not supported for the machine size I am choosing.  However, this may be an option for some other folks here....
For me, I needed to choose Standard_D4_v4 as my machine size due to another silly Azure limitation (this is the machine size that can help me avoid having to have a D: drive as Temporary Storage.).  It seems most other machine sizes all come with a D drive "generously", but for my requirement I can't have that.  And then related to this, when I tried to do ephemeral OS disk with my machine size, Azure tells me it is not supported for Standard_D4_v4.... I am shut out from both ends.... 👎

Nice.  Thanks. I like this included in an “if” clause….and I like the combination of regular command shell together with Powershell to enable easy manipulation of variables and control clauses.
However, still, this would have been no issue if we are running this as a cloud admin with sufficient privileges….
My problem is, I need this to be a repeatable task given out to somebody who needs self-service capability…so I suppose I need to create a custom role for him to create/drop/start/deallocate/stop the VM, normally, that would have been the end of it.  But with the OS disk not auto deleted, then I have to include one more privilege in my custom role to drop the disk.  That is why I suggest the dropping of the os disk along with the dropping of the VM, as an option (or even as a default behavior….how often do we need the preserve the OS disk when the VM itself is dropped? :-) )
From: Mateusz Łoskot @.>
Sent: Tuesday, April 20, 2021 11:22 AM
To: Azure/azure-cli @.>
Cc: Shen, Sean @.>; Comment @.>
Subject: **** EXTERNAL EMAIL - USE CAUTION**** Re: [Azure/azure-cli] Deleting VM with 'az vm delete' does not delete its disk (#4897)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I delete VM with OS disk with this trivial PowerShell
$osDisk = (az vm show --resource-group MyRG --name MyVM --query "storageProfile.osDisk.name" --output tsv)
az vm delete --resource-group MyRG --name MyVM --yes
if ($osDisk) {
az disk delete --resource-group MyRG --name $osDisk --yes
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/Azure/azure-cli/issues/4897*issuecomment-823362035__;Iw!!OnbYIJ6QcFHw!YxAyuQqYI0T0mer7uh99XqAtHMhLN-svXeWNCrWmSQJtOP2PLbq2Bo55RbgeA8x-$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ARFVLORLOX2ZNJTDG4JTQZ3TJWLX5ANCNFSM4EECF5NA__;!!OnbYIJ6QcFHw!YxAyuQqYI0T0mer7uh99XqAtHMhLN-svXeWNCrWmSQJtOP2PLbq2Bo55RVxpwWMT$.


Get rid of nsenter

Currently we are using nsenter for both CNI plugin and port forword.
Ideally, we should be able to use NetNS.Do to run code inside a specific network namespace.
However, golang has an issue that it may spawn new threads from locked thread, which will inherit the network namespace. https://github.com/golang/go/issues/20676
We should be able to get rid of all nsenters after this is fixed.

Also ref https://github.com/kubernetes-incubator/cri-containerd/pull/139.

The other option would be to use ip netns exec provided we have our network namespaces created under /var/run/netns/....

golang 1.10 is released, golang/go#20676 should have been fixed.
We can get rid of nsenter and socat after switch to golang 1.10.

:tada:


Make dark mode render without javascript, make light mode possible

This makes it so browsers with javascript (or screen readers) will still render the site in dark mode. It also makes it possible to render in light mode again using the old images etc, so, a toggle could later be added to switch from darkmode/lightmode if wanted. This is just a better way to do it and doesn't break non-javascript browsers.

Also applied if #38 is merged

Closing in favor of #38


[lexical-table] Bug Fix: Selection in tables with merged cells

Description
Quickfix for #6515
As described in the issue currently changing the selection using the arrow keys can throw an error that crashes the editor.
(Error: Uncaught Error: Node at cords not TableCellNode.)

Describe the changes in this pull request

Closes #6515
Closes #6519 (duplicate)

This quickfix works quite well for merged cells at the end of a row (most common cases imo)
For merged cells at the beginning or the middle of a row this simple approach creates some unexpected cursor jumps. But instead of crashing the user can be easily adapt the position and the editor won't break.
(For a full fix the positions would need to consider the colspan everywhere in the table plugin, that would be a bigger refactoring I guess).
I did check where this function is used and did some manual testing and did not encounter unwanted side effects, but this is also my first glance inside the lexical codebase :)
Fingers crossed.
Test plan
Before

After

@elbotho thanks for helping out on this. I think the last surface when it comes to table bugs is 'merged cells selection'. If you are motivated to help out clear those issues (all tagged with 'tables') nicely with a better refactor, it would be very welcome.

@elbotho thanks for helping out on this. I think the last surface when it comes to table bugs is 'merged cells selection'. If you are motivated to help out clear those issues (all tagged with 'tables') nicely with a better refactor, it would be very welcome.

Is this a no to the quickfix?
I see 12 issues with the table tag and around 4-5 seem to relate directly to merged cells and or selection. Are you refering to those?

@elbotho thanks for helping out on this. I think the last surface when it comes to table bugs is 'merged cells selection'. If you are motivated to help out clear those issues (all tagged with 'tables') nicely with a better refactor, it would be very welcome.

Is this a no to the quickfix?
I see 12 issues with the table tag and around 4-5 seem to relate directly to merged cells and or selection. Are you refering to those?

I'm OK to merge this PR, despite the lack of tests, since it doesn't seem to make things worse, but it would be nice to have a proper fix, even if it takes longer.

Thank you @ivailop7!
I'll try to find some time for a proper refactor with additional test.


Don't include 'tests' in setup.py

Installing django-assets adds tests in site-packages since find_packages is finding it and shipping it to PyPi. Found this with some code doing relative imports.
Tested the find_packages change in python shell.

This is what I can currently do with the latest django-assets v 0.10 on my django project...
$ ipython
In [1]: import tests

In [2]: tests??
Type:        module
String form: <module 'tests' from '/opt/yplan/venv/local/lib/python2.7/site-packages/tests/__init__.pyc'>
File:        /opt/yplan/venv/local/lib/python2.7/site-packages/tests/__init__.py
Source:
from nose import SkipTest
try:
    from django.conf import settings
except ImportError:
    raise SkipTest()

# Setup a Django environment, before we do anything else.
#
# Most Django imports fail one way or another without an
# environment.
#
# We can't even use setup_package() here, because then
# module-global imports in our test submodules still run
# first.

from django.conf import settings
settings.configure(INSTALLED_APPS=['django_assets'])

:scream:

:smile_cat:


Add matchkey stats service MODMS-45

There are some code smells reported.
Looks like the stats are calculated during retrieval and not ingest? I guess this is OK if this rarely used. Anyway, this is a low-prio item and I think it's good as-is.

There are some code smells reported.
Looks like the stats are calculated during retrieval and not ingest? I guess this is OK if this rarely used. Anyway, this is a low-prio item and I think it's good as-is.

It's not complete yet. A deliberate TODO added.


Fullscreen symbol

... almost: Shouldn't the symbol

have arrows the other way round, indicating the video will get smaller when you exit fullscreen? Or use something like YouTube?

Done!
Demo: https://polimediaupv.github.io/paella-ethz/?id=belmar_16_9_hls

Perfect, but...


Problem with buid

I've got the catkin folder setup and all dependencies installed but I keep getting this same set of errors: (maybe a tutorial to set everything up could be helpful)
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_BmsCmd
[  0%] Built target _unitree_legged_msgs_generate_messages_check_deps_BmsCmd
Scanning dependencies of target sensor_msgs_generate_messages_nodejs
[  0%] Built target sensor_msgs_generate_messages_nodejs
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_BmsState
[  0%] Built target _unitree_legged_msgs_generate_messages_check_deps_BmsState
Scanning dependencies of target geometry_msgs_generate_messages_nodejs
[  0%] Built target geometry_msgs_generate_messages_nodejs
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_MotorState
[  0%] Built target _unitree_legged_msgs_generate_messages_check_deps_MotorState
Scanning dependencies of target std_msgs_generate_messages_nodejs
[  0%] Built target std_msgs_generate_messages_nodejs
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_LowState
[  0%] Built target _unitree_legged_msgs_generate_messages_check_deps_LowState
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_LowCmd
[  0%] Built target _unitree_legged_msgs_generate_messages_check_deps_LowCmd
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_HighState
[  0%] Built target _unitree_legged_msgs_generate_messages_check_deps_HighState
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_Cartesian
[  0%] Built target _unitree_legged_msgs_generate_messages_check_deps_Cartesian
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_MotorCmd
[  0%] Built target _unitree_legged_msgs_generate_messages_check_deps_MotorCmd
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_IMU
[  0%] Built target _unitree_legged_msgs_generate_messages_check_deps_IMU
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_HighCmd
[  0%] Built target _unitree_legged_msgs_generate_messages_check_deps_HighCmd
Scanning dependencies of target _unitree_legged_msgs_generate_messages_check_deps_LED
[  0%] Built target unitree_legged_msgs_generate_messages_check_deps_LED
Scanning dependencies of target unitree_legged_msgs_generate_messages_nodejs
[  1%] Generating Javascript code from unitree_legged_msgs/LowState.msg
[  2%] Generating Javascript code from unitree_legged_msgs/LowCmd.msg
[  4%] Generating Javascript code from unitree_legged_msgs/HighState.msg
[  5%] Generating Javascript code from unitree_legged_msgs/BmsCmd.msg
[  7%] Generating Javascript code from unitree_legged_msgs/MotorCmd.msg
[  8%] Generating Javascript code from unitree_legged_msgs/IMU.msg
[ 10%] Generating Javascript code from unitree_legged_msgs/Cartesian.msg
[ 11%] Generating Javascript code from unitree_legged_msgs/HighCmd.msg
[ 13%] Generating Javascript code from unitree_legged_msgs/LED.msg
[ 14%] Generating Javascript code from unitree_legged_msgs/BmsState.msg
[ 16%] Generating Javascript code from unitree_legged_msgs/MotorState.msg
[ 16%] Built target unitree_legged_msgs_generate_messages_nodejs
Scanning dependencies of target geometry_msgs_generate_messages_eus
[ 16%] Built target geometry_msgs_generate_messages_eus
Scanning dependencies of target sensor_msgs_generate_messages_eus
[ 16%] Built target sensor_msgs_generate_messages_eus
Scanning dependencies of target std_msgs_generate_messages_eus
[ 16%] Built target std_msgs_generate_messages_eus
Scanning dependencies of target unitree_legged_msgs_generate_messages_eus
[ 17%] Generating EusLisp code from unitree_legged_msgs/LowState.msg
[ 19%] Generating EusLisp code from unitree_legged_msgs/LowCmd.msg
[ 20%] Generating EusLisp code from unitree_legged_msgs/HighState.msg
[ 22%] Generating EusLisp code from unitree_legged_msgs/BmsCmd.msg
[ 23%] Generating EusLisp code from unitree_legged_msgs/MotorCmd.msg
[ 25%] Generating EusLisp code from unitree_legged_msgs/IMU.msg
[ 26%] Generating EusLisp code from unitree_legged_msgs/Cartesian.msg
[ 28%] Generating EusLisp code from unitree_legged_msgs/HighCmd.msg
[ 29%] Generating EusLisp code from unitree_legged_msgs/LED.msg
[ 31%] Generating EusLisp code from unitree_legged_msgs/BmsState.msg
[ 32%] Generating EusLisp code from unitree_legged_msgs/MotorState.msg
[ 34%] Generating EusLisp manifest code for unitree_legged_msgs
[ 34%] Built target unitree_legged_msgs_generate_messages_eus
Scanning dependencies of target geometry_msgs_generate_messages_py
[ 34%] Built target geometry_msgs_generate_messages_py
Scanning dependencies of target std_msgs_generate_messages_py
[ 34%] Built target std_msgs_generate_messages_py
Scanning dependencies of target sensor_msgs_generate_messages_py
[ 34%] Built target sensor_msgs_generate_messages_py
Scanning dependencies of target unitree_legged_msgs_generate_messages_py
[ 35%] Generating Python from MSG unitree_legged_msgs/LowState
[ 37%] Generating Python from MSG unitree_legged_msgs/LowCmd
[ 38%] Generating Python from MSG unitree_legged_msgs/HighState
[ 40%] Generating Python from MSG unitree_legged_msgs/BmsCmd
[ 41%] Generating Python from MSG unitree_legged_msgs/MotorCmd
[ 43%] Generating Python from MSG unitree_legged_msgs/IMU
[ 44%] Generating Python from MSG unitree_legged_msgs/Cartesian
[ 46%] Generating Python from MSG unitree_legged_msgs/HighCmd
[ 47%] Generating Python from MSG unitree_legged_msgs/LED
[ 49%] Generating Python from MSG unitree_legged_msgs/BmsState
[ 50%] Generating Python from MSG unitree_legged_msgs/MotorState
[ 52%] Generating Python msg init.py for unitree_legged_msgs
[ 52%] Built target unitree_legged_msgs_generate_messages_py
Scanning dependencies of target sensor_msgs_generate_messages_cpp
[ 52%] Built target sensor_msgs_generate_messages_cpp
Scanning dependencies of target geometry_msgs_generate_messages_cpp
[ 52%] Built target geometry_msgs_generate_messages_cpp
Scanning dependencies of target std_msgs_generate_messages_cpp
[ 52%] Built target std_msgs_generate_messages_cpp
Scanning dependencies of target unitree_legged_msgs_generate_messages_cpp
[ 53%] Generating C++ code from unitree_legged_msgs/LowState.msg
[ 55%] Generating C++ code from unitree_legged_msgs/LowCmd.msg
[ 56%] Generating C++ code from unitree_legged_msgs/HighState.msg
[ 58%] Generating C++ code from unitree_legged_msgs/BmsCmd.msg
[ 59%] Generating C++ code from unitree_legged_msgs/MotorCmd.msg
[ 61%] Generating C++ code from unitree_legged_msgs/IMU.msg
[ 62%] Generating C++ code from unitree_legged_msgs/Cartesian.msg
[ 64%] Generating C++ code from unitree_legged_msgs/HighCmd.msg
[ 65%] Generating C++ code from unitree_legged_msgs/LED.msg
[ 67%] Generating C++ code from unitree_legged_msgs/BmsState.msg
[ 68%] Generating C++ code from unitree_legged_msgs/MotorState.msg
[ 68%] Built target unitree_legged_msgs_generate_messages_cpp
Scanning dependencies of target sensor_msgs_generate_messages_lisp
[ 68%] Built target sensor_msgs_generate_messages_lisp
Scanning dependencies of target std_msgs_generate_messages_lisp
[ 68%] Built target std_msgs_generate_messages_lisp
Scanning dependencies of target geometry_msgs_generate_messages_lisp
[ 68%] Built target geometry_msgs_generate_messages_lisp
Scanning dependencies of target unitree_legged_msgs_generate_messages_lisp
[ 70%] Generating Lisp code from unitree_legged_msgs/LowState.msg
[ 71%] Generating Lisp code from unitree_legged_msgs/LowCmd.msg
[ 73%] Generating Lisp code from unitree_legged_msgs/HighState.msg
[ 74%] Generating Lisp code from unitree_legged_msgs/BmsCmd.msg
[ 76%] Generating Lisp code from unitree_legged_msgs/MotorCmd.msg
[ 77%] Generating Lisp code from unitree_legged_msgs/IMU.msg
[ 79%] Generating Lisp code from unitree_legged_msgs/Cartesian.msg
[ 80%] Generating Lisp code from unitree_legged_msgs/HighCmd.msg
[ 82%] Generating Lisp code from unitree_legged_msgs/LED.msg
[ 83%] Generating Lisp code from unitree_legged_msgs/BmsState.msg
[ 85%] Generating Lisp code from unitree_legged_msgs/MotorState.msg
[ 85%] Built target unitree_legged_msgs_generate_messages_lisp
Scanning dependencies of target unitree_legged_msgs_generate_messages
[ 85%] Built target unitree_legged_msgs_generate_messages
Scanning dependencies of target roscpp_generate_messages_nodejs
[ 85%] Built target roscpp_generate_messages_nodejs
Scanning dependencies of target roscpp_generate_messages_py
[ 85%] Built target roscpp_generate_messages_py
Scanning dependencies of target roscpp_generate_messages_eus
[ 85%] Built target roscpp_generate_messages_eus
Scanning dependencies of target roscpp_generate_messages_lisp
[ 85%] Built target roscpp_generate_messages_lisp
Scanning dependencies of target rosgraph_msgs_generate_messages_cpp
[ 85%] Built target rosgraph_msgs_generate_messages_cpp
Scanning dependencies of target rosgraph_msgs_generate_messages_eus
[ 85%] Built target rosgraph_msgs_generate_messages_eus
Scanning dependencies of target roscpp_generate_messages_cpp
[ 85%] Built target roscpp_generate_messages_cpp
Scanning dependencies of target rosgraph_msgs_generate_messages_lisp
[ 85%] Built target rosgraph_msgs_generate_messages_lisp
Scanning dependencies of target rosgraph_msgs_generate_messages_nodejs
[ 85%] Built target rosgraph_msgs_generate_messages_nodejs
Scanning dependencies of target rosgraph_msgs_generate_messages_py
[ 85%] Built target rosgraph_msgs_generate_messages_py
Scanning dependencies of target position_lcm
[ 86%] Building CXX object unitree_legged_real/CMakeFiles/position_lcm.dir/src/exe/position_mode.cpp.o
In file included from /home/jonathan/catkin_ws/src/unitree_legged_real/src/exe/position_mode.cpp:13:0:
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h: In function ‘unitree_legged_msgs::LowState ToRos(UNITREE_LEGGED_SDK::LowState&)’:
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:108:27: error: ‘struct UNITREE_LEGGED_SDK::LowState’ has no member named ‘commVersion’; did you mean ‘version’?
ros.commVersion = lcm.commVersion;
^~~~~~~~~~~
version
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:109:23: error: ‘struct UNITREE_LEGGED_SDK::LowState’ has no member named ‘robotID’
ros.robotID = lcm.robotID;
^~~~~~~
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:110:18: error: cannot convert ‘std::array<unsigned int, 2>’ to ‘unitree_legged_msgs::LowState<std::allocator >::SN_type {aka unsigned int}’ in assignment
ros.SN = lcm.SN;
^~
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h: In function ‘UNITREE_LEGGED_SDK::LowCmd ToLcm(unitree_legged_msgs::LowCmd&, UNITREE_LEGGED_SDK::LowCmd)’:
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:134:9: error: ‘struct UNITREE_LEGGED_SDK::LowCmd’ has no member named ‘commVersion’; did you mean ‘version’?
lcm.commVersion = ros.commVersion;
^~~~~~~~~~~
version
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:135:9: error: ‘struct UNITREE_LEGGED_SDK::LowCmd’ has no member named ‘robotID’
lcm.robotID = ros.robotID;
^~~~~~~
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:136:18: error: no match for ‘operator=’ (operand types are ‘std::array<unsigned int, 2>’ and ‘unitree_legged_msgs::LowCmd<std::allocator >::SN_type {aka unsigned int}’)
lcm.SN = ros.SN;
^~
In file included from /usr/include/c++/7/tuple:39:0,
from /usr/include/c++/7/bits/unique_ptr.h:37,
from /usr/include/c++/7/bits/locale_conv.h:41,
from /usr/include/c++/7/locale:43,
from /usr/include/c++/7/iomanip:43,
from /usr/include/boost/math/policies/error_handling.hpp:12,
from /usr/include/boost/math/special_functions/round.hpp:14,
from /opt/ros/melodic/include/ros/time.h:58,
from /opt/ros/melodic/include/ros/ros.h:38,
from /home/jonathan/catkin_ws/src/unitree_legged_real/src/exe/position_mode.cpp:6:
/usr/include/c++/7/array:94:12: note: candidate: std::array<unsigned int, 2>& std::array<unsigned int, 2>::operator=(const std::array<unsigned int, 2>&)
struct array
^~~~~
/usr/include/c++/7/array:94:12: note:   no known conversion for argument 1 from ‘unitree_legged_msgs::LowCmd<std::allocator >::SN_type {aka unsigned int}’ to ‘const std::array<unsigned int, 2>&’
/usr/include/c++/7/array:94:12: note: candidate: std::array<unsigned int, 2>& std::array<unsigned int, 2>::operator=(std::array<unsigned int, 2>&&)
/usr/include/c++/7/array:94:12: note:   no known conversion for argument 1 from ‘unitree_legged_msgs::LowCmd<std::allocator >::SN_type {aka unsigned int}’ to ‘std::array<unsigned int, 2>&&’
In file included from /home/jonathan/catkin_ws/src/unitree_legged_real/src/exe/position_mode.cpp:13:0:
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h: In function ‘unitree_legged_msgs::HighState ToRos(UNITREE_LEGGED_SDK::HighState&)’:
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:154:27: error: ‘struct UNITREE_LEGGED_SDK::HighState’ has no member named ‘commVersion’; did you mean ‘version’?
ros.commVersion = lcm.commVersion;
^~~~~~~~~~~
version
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:155:23: error: ‘struct UNITREE_LEGGED_SDK::HighState’ has no member named ‘robotID’
ros.robotID = lcm.robotID;
^~~~~~~
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:156:18: error: cannot convert ‘std::array<unsigned int, 2>’ to ‘unitree_legged_msgs::HighState<std::allocator >::SN_type {aka unsigned int}’ in assignment
ros.SN = lcm.SN;
^~
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h: In function ‘UNITREE_LEGGED_SDK::HighCmd ToLcm(unitree_legged_msgs::HighCmd&, UNITREE_LEGGED_SDK::HighCmd)’:
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:196:9: error: ‘struct UNITREE_LEGGED_SDK::HighCmd’ has no member named ‘commVersion’; did you mean ‘version’?
lcm.commVersion = ros.commVersion;
^~~~~~~~~~~
version
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:197:9: error: ‘struct UNITREE_LEGGED_SDK::HighCmd’ has no member named ‘robotID’
lcm.robotID = ros.robotID;
^~~~~~~
/home/jonathan/catkin_ws/src/unitree_legged_real/include/convert.h:198:18: error: no match for ‘operator=’ (operand types are ‘std::array<unsigned int, 2>’ and ‘unitree_legged_msgs::HighCmd<std::allocator >::SN_type {aka unsigned int}’)
lcm.SN = ros.SN;
^~
In file included from /usr/include/c++/7/tuple:39:0,
from /usr/include/c++/7/bits/unique_ptr.h:37,
from /usr/include/c++/7/bits/locale_conv.h:41,
from /usr/include/c++/7/locale:43,
from /usr/include/c++/7/iomanip:43,
from /usr/include/boost/math/policies/error_handling.hpp:12,
from /usr/include/boost/math/special_functions/round.hpp:14,
from /opt/ros/melodic/include/ros/time.h:58,
from /opt/ros/melodic/include/ros/ros.h:38,
from /home/jonathan/catkin_ws/src/unitree_legged_real/src/exe/position_mode.cpp:6:
/usr/include/c++/7/array:94:12: note: candidate: std::array<unsigned int, 2>& std::array<unsigned int, 2>::operator=(const std::array<unsigned int, 2>&)
struct array
^~~~~
/usr/include/c++/7/array:94:12: note:   no known conversion for argument 1 from ‘unitree_legged_msgs::HighCmd<std::allocator >::SN_type {aka unsigned int}’ to ‘const std::array<unsigned int, 2>&’
/usr/include/c++/7/array:94:12: note: candidate: std::array<unsigned int, 2>& std::array<unsigned int, 2>::operator=(std::array<unsigned int, 2>&&)
/usr/include/c++/7/array:94:12: note:   no known conversion for argument 1 from ‘unitree_legged_msgs::HighCmd<std::allocator >::_SN_type {aka unsigned int}’ to ‘std::array<unsigned int, 2>&&’
unitree_legged_real/CMakeFiles/position_lcm.dir/build.make:62: recipe for target 'unitree_legged_real/CMakeFiles/position_lcm.dir/src/exe/position_mode.cpp.o' failed
make[2]: *** [unitree_legged_real/CMakeFiles/position_lcm.dir/src/exe/position_mode.cpp.o] Error 1
CMakeFiles/Makefile2:1886: recipe for target 'unitree_legged_real/CMakeFiles/position_lcm.dir/all' failed
make[1]: *** [unitree_legged_real/CMakeFiles/position_lcm.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Maybe https://github.com/unitreerobotics/unitree_ros_to_real/pull/25 fixes your problem.
More specifically: unitreerobotics/unitree_ros_to_real@49acae3 (#25)

Checkout my responses on #53 these may help


come up with a working solution for version history

this solution should also allow to introduce old versions of an entity (eg for the OEBL version of apis)
django-simple-history seems like the better way forward than django-reversion
related to https://github.com/acdh-oeaw/apis-core-rdf/issues/242

As discussed at the JF, I'm adding this fefature request to this issue:
We'd want a way to display (minimal) information on if/when entities have been interacted with via forms, e.g. something like a "last modified" date, in list views.


Logging into sql from localhost

I'm trying to connect to SQL server from SSMS.
My setup looks like this
using Aspire.Hosting;

var builder = DistributedApplication.CreateBuilder(args);
// Service registration
var dbserver = builder
    .AddSqlServerContainer("sql", "P@ssw0rd", 1433)
    .AddDatabase("sqldata");

builder.AddProject<Projects.AwesomeProject>("ItsAwesome")
    .WithReference(dbserver);

builder.Build().Run();

The app sees the db just fine and now I would like to connect to the db from SSMS.
I see some information in the aspire dashboard

I have tried a few ways to log in with localhost:1433 or localhost,1433 and with the user being sa or

I noticed it has a different user in the containers "inspect" window on docker desktop

I tried that mssql user with no luck either. Any clues on what I'm doing wrong?

Try <IP_ADDRESS> instead of localhost.

That worked. Thanks

I will close this

@dotnetwizard can you give us the full repro (e.g. GH public repo)? I would like to investigate why it does not work with localhost--it should 🤔

@karolz-ms we have this same problem with our SQL server resource:
https://github.com/dotnet/aspire/blob/36e40f89e15f1b049bd81c4bffbe7ec7b5a29ece/src/Aspire.Hosting.SqlServer/SqlServerServerResource.cs#L41
It uses <IP_ADDRESS> to connect to SQL server, localhost doesn't work. It's been this way to a while now.
IPv4Host gets translated to <IP_ADDRESS>

@dotnetwizard can you give us the full repro (e.g. GH public repo)? I would like to investigate why it does not work with localhost--it should 🤔

I've had the same problem, and the same fix has worked.  I've tried running the DatabaseContainers project from the Aspire samples repository and it happens there too, so unless it's something weird about certain systems you should be able to repro using that.  I tried logging on with sqlcmd from the command line and wasn't able to log on with that either, although running the same command inside the Docker container console worked.  I can't remember everything we tried before looking here - I recall we tried disabling the (non-containerizer) SQL Server service in case it was interfering with the connection to the containerized one, had tried connecting to different ports since Docker seemed to show a different port number than the Aspire dashboard (though the one shown by Aspire now works with the <IP_ADDRESS> fix above), checked that it did appear to be listening in netstat through dcpctrl, and the project was working on another devs computer (a possible difference being that they were using Rider whereas I'm using Visual Studio Preview 17.10.0).

In reference to the comment above about investigating why it does not work with localhost, possibly related to the Hack comment?

It is, and we still don't fully understand it. @karolz-ms This is likely a dcp proxy issues with ipv4/6 that is unresolved. We don't fully get why the SQL container acts differently here.

I will take a look

Putting in 8.1

This isn't a dcp issue, it's a SQL server container issue https://stackoverflow.com/questions/47984603/using-sql-server-management-studio-to-remote-connect-to-docker-container.

I verified that both 127.0.01,12345 and [::1],12345 (the IPv6 loopback address) work when entered into SQL Server Management Studio (tried version 20.1, which was released just a few weeks ago). This was going through Aspire proxy (not directly to container host port), just like any part of Aspire application would. Also note that SQL Server wants a comma, not a colon, as a separator between the IP address and port.
For whatever reason localhost as a server name does not work with SSMS. I can only speculate that SSMS is trying to resolve localhost via network DNS, which won't work by spec (localhost is only resolvable locally), and so it fails to connect. That would be something for the SSMS developers to fix.
I am going to resolve this issue as "not planned" because it is external to Aspire.


Add Arduino IDE and Driver installation for Windows users to README

Fixes #49
If avrgirl-arduino is the first thing you're doing with your new Arduino on Windows, you can run into some trouble!  Windows can require extra steps before the Arduino is usable, including the installation of an Arduino IDE and Windows drivers.
Here's a small note for those users linking them to a guide for Windows setup and instructing them they only need to complete steps 1-4.

@byronhulcher Lovely work! :sparkles:
The only thing I'd suggest you do now is to push up an additional commit adding yourself to the list of contributors at the bottom of the README file, and I'll merge this :ok_hand:

Thank you again!


Profile: TypeError: 'type' object is not subscriptable

from ensta import Guest

ensta/containers/Profile.py", line 24, in Profile
pronouns: list[str] = None,
TypeError: 'type' object is not subscriptable
ensta: <IP_ADDRESS>
python: 3.8.10

this particular error is causing because you need to update your python version to the latest one.


Reduce package overhead & add events for synchronizing after CSS reflow events.

This PR includes the following changes:

reduces the package overhead by only including the cloneDeep function from lodash, not the entire library.
add module field to package.json
adds 'layout:begin' and 'layout:complete' events to API; this allows clients to synchronize CSS reflow tasks based on when the layout will be processed.

I guess merging this one will close #12 and #13?

If you merge #14, you can close #12 and #13. This is based on that branch of work.


Plot not rendering correctly

I'm encountering a strange condition where the embedded png of a plot seems to be truncated and mixed with what looks like CSS code in the rendered output.    I haven't been able to create a simple example yet.

What versions of ipython and pelican are you using?

~ > pelican --version
3.5.0
~ > ipython --version
2.3.1

You can see the post at
http://danielrsoto.com/blog/2015/02/01/debugging/

I just updated the plugin to support new versions of ipython and pelican and that might have fixed this issue since I was able to render a plot without issues: http://danielfrg.com/drafts/ipython-notebook-test.html

I'm seeing this issue on my recent download of master.
Here is a minimal example where the plot rendering seems to break and insert CSS around 120 plotting points.
http://danielrsoto.com/drafts/debugging-2.html

I cannot reproduce the error :(
I just did the same plot on my test post () but it renders fine for me.
Are you in the latest pelical and ipython? This is my environment:

Thank you very much.  I matched all versions in a conda environment and now I'm able to plot without issues.  If I find myself with enough time, I may try to isolate the offending package.

Good to know, let me know if you find out.
Closing now.


Add implicit function graphing functionality

I made this pull request because I wanted, for my own personal work, to be able to graph implicit functions that were not parameterizable, and there was no functionality to do so in the current manim library. I coded it up and thought it would, hopefully, be useful enough for other people to use, and so I thought I'd share it in this pull request!
Here are various screenshots of various implicit functions that demonstrate this actually works, alone with some videos to demonstrate its runtime efficiency.

Graphing x^2 + y^2 = 4:

Graphing y(x-y)^2 = 4x + 8

Graphing y^2 = x^3 - x

Animating y^2 = x^3 - x - b for b in [-1,1]

with runtime at around 4 minutes

Weirdly, the its/sec seemed to decrease over time for all of them, starting at around 2 its/sec and ending at 1.5 secs/it. I suspect something may be up with my generate_points algorithm, in that it bulks up memory somehow over time, but I haven't been able to find anything yet...

For some reason, the animation gif isn't animating so I think this will actually animate

For some reason, the animation gif isn't animating so I think this will actually animate

Can you please explain how to use this with an example?

Hi! Are you willing to port this over to the community version at ManimCommunity/manim?

Thanks for doing this :)
And it is implemented more effectively in #1727, so I'm closing this.


remove unneeded config in remote profile

We can't figure out why this is needed given MCP is not enabled by default.
[ ] Configuration Infrastructure
[ ] Docs
[ x] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@linsun: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

gencheck_istio
f1697937f5871ce65104c1e1c409dba093f4c1f2
link
/test gencheck_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

In response to a cherrypick label: new pull request created: #21267


Eval paper-qa 2 on lit qa 2

Hello,
Thanks for the great work!
I was looking for a way to eval paper-qa 2 on lit-qa 2 and was wondering if you can help me with a couple of queries:
i) Assuming I am able to get the pdfs from the dois in the dataset into a local folder, how do I go about at least running paper qa-2 end to end specifically on the lit-qa 2 multiple choice questions?
ii) Are the answers from paper-qa2 and other systems in the paper on lit-qa 2 questions available publicly?
iii) Lastly, the human and non RAG results on lit-qa 2 in the lab bench paper seem different that in paper-qa2 ... I am not sure if I am missing something, but can you please say a bit more on this?
Thanks!

Hello @amanpreet692 thanks for the questions.

i) Assuming I am able to get the pdfs from the dois in the dataset into a local folder, how do I go about at least running paper qa-2 end to end specifically on the lit-qa 2 multiple choice questions?

We have a bunch if tickets here on making some docs for end-to-end usage of the code. For now, you can look at the unit tests for direct access to the code.

ii) Are the answers from paper-qa2 and other systems in the paper on lit-qa 2 questions available publicly?

Yeah they are from the LAB-Bench paper, whose data is here: https://github.com/Future-House/lab-bench and https://huggingface.co/datasets/futurehouse/lab-bench/viewer/LitQA2
Let's have part of resolving this ticket be to document this better in the README.

iii) Lastly, the human and non RAG results on lit-qa 2 in the lab bench paper seem different that in paper-qa2 ... I am not sure if I am missing something, but can you please say a bit more on this?

Can you clarify what differences you're observing?

Thanks for the prompt reply!
Some follow ups please -

We have a bunch if tickets here on making some docs for end-to-end usage of the code. For now, you can look at the unit tests for direct access to the code.

Could you kindly point me to a relevant test case?

Yeah they are from the LAB-Bench paper, whose data is here: https://github.com/Future-House/lab-bench and https://huggingface.co/datasets/futurehouse/lab-bench/viewer/LitQA2

Thanks! However, the data set only consists of the ground truth answers if I am not mistaken?
I was more interested in comparing another RAG based QA system with Paper QA 2; since all 248 questions are not public and the paper reports the cumulative score. I'd really appreciate if you have any pointers for the same.

Can you clarify what differences you're observing?

Sure! One instance would be that Human accuracy in Fig 1B in paper qa 2 is reported to be 63.1 whereas it's reported 70 in the lab bench paper Table 2 in the appendix.
Thanks again for the great work!

Hello @amanpreet692 thanks again for the good questions.
We've just updated the LAB-Bench docs to include reasoning for the holdout subset: https://github.com/Future-House/LAB-Bench/commit/fc87dfdb53e05726f5d7e6f4d02e1392457acde1

Thanks! However, the data set only consists of the ground truth answers if I am not mistaken?

The dataset contains, questions, distractors and answers. So if you want to make a hold out subset yourself, just filter out the answers. Am I missing something here?

Could you kindly point me to a relevant test case?

Yeah sure here it is:

Unit test: https://github.com/Future-House/paper-qa/blob/v5.0.5/tests/test_task.py#L76
Docs: https://github.com/Future-House/paper-qa/tree/v5.0.5#running-on-litqa-v2

We are working on making it really easy to reproduce our results, both from PaperQA and LAB-Bench side. You will have to stay tuned a bit for an end-to-end repro to come available.
Please let me know if you have any other questions

Hi @amanpreet692 one relevant tidbit to note now is https://github.com/Future-House/LAB-Bench/tree/main/LitQA2 notates open papers using is_opensource tags. Maybe that helps you


[Question] Why livekit-server require internet connection for local developing?

Hey, I am new in livekit infra.
Currently I am doing my first steps.
I notice strange for me behavior. I can not work with livekit-server with out internet connection.
Step for reproduce:

install livekit  - brew install livekit
run livekit-server --dev
clone and run locally meet example
turn off internet

Logs:
livekit-server_logs.json
client-logs.json
Versions:
livekit-server version 1.7.0
meet example from  commit bcd855178204864fba47c727ee6e246a19147e06 Jul 20 11:57:07 2024

the server doesn't receive any client candidates in the log, livekit-server doesn't require internet connection but the browser needs to connect to the stun server to gather candidates.

the server doesn't receive any client candidates in the log, livekit-server doesn't require internet connection but the browser needs to connect to the stun server to gather candidates.

Can we customize the STUN server address to fully run LiveKit locally?


Pypi description has incorrect links

The "project description" on the lmctl pypi repository here: https://pypi.org/project/lmctl/ is using the same description as the github repo which includes links that aren't valid for the pypi site. A description just for Pypi should be added that doesn't include the github specific links

#60


Major Issue with Data Consent Feature when User Delete Action is configured

Description of bug
I just stumbled upon a potentially major issue with the Data Consent feature when a User Delete Action is configured.
If the end user clicks on the "Delete Me" button, their account will be deleted whether they confirm the action in the popup notice or not.
Steps to reproduce
List the precise steps to reproduce the bug:

Enable "Data Consent" on the portal
Set "Hard Delete" option to anything other than "Off"
Reset the Terms & Conditions (optional)
Sign out and sign in as a standard user
Click the "Delete Me" button when the Data Consent prompt appears.
Click "Cancel" in the browser dialog that opens

Current behavior
User account is deleted or scheduled to be deleted and cannot login.
Expected behavior
User account status remains unchanged unless they click "OK"
Screenshots
If applicable, provide screenshots to help explain the bug.
Error information
No errors are thrown. However "User Deleted" entries are shown in the admin logs.
Additional context
The same system appears to be in place under the user account settings for the "UnRegister" button.
However, instead of using a browser prompt, it opens a DNN modal window and functions properly.
Affected version

[ ] 10.00.00 alpha build
[X ] 09.11.00 release candidate
[ ] 09.10.02 release candidate
[ ] 09.10.01 latest supported release

Affected browser

[ X] Chrome
[X ] Firefox
[X ] Safari
[X ] Internet Explorer 11
[X ] Microsoft Edge (Classic)
[X ] Microsoft Edge Chromium

These settings are in Settings, Site Settings, Site Behavior (tab), Privacy (sub tab) under the section, Data Consent Settings.
If this gets fixed, I believe the wording (English) could be improved. Instead of "Data Consent Active", I believe "Data Consent Required" is more accurate.