[Bug]: CanMV v1.1 board doesn't seem to handle HDMI and/or primary camera properly

What happened
A vanilla canmv image built from sdk 1.4 works fine on 1.0 revision of the board (aka green pcb), but on 1.1 (brown pcb) i get a blank HDMI output (pink screen with occasional artifacts)
what am i doing wrong?
Reproduction steps
see above
Hardware board
canmv230 1.1  board (brown pcb)
Software version
1.4 (latest)
Bug frequency
No response
Anything else
I also noticed that there are now two CavMV board configs in menuconfig (one marked zero, second without suffixes) but they don't seem to make any difference in the codebase, i.e. the setting is presumably NOP in 1.4

i can confirm exact same result with the official image at https://kendryte-download.canaan-creative.com/developer/k230/k230_canmv_sdcard_v1.4_nncase_v2.8.0.img.gz
is my 1.1 board faulty?

fyi:

tried three different HDMI cables and two different HDMI viewports
tried to power the v1.1 board using a decent external 5v supply.
compared boot logs of bit/small cores (no visible differences).

nothing seems to help. what else can i try before i send the item back?

How did you get the v1.1 board ？ Please send a frontal photo of the board，I need to make sure the version of the board is correct。
If Canmv 1.0 boots fine,  then 1.1 boots fine too.

Here are both boards I have, hope this helps.
I can't affirm that 1.1 boots to default app at all - pink screen with horizontal jitter. I suspect either software HDMI issue or hardware fail. Should I return the item? The differences vs 1.0 seem to be minor, but nice to have - microphone is handy, love the pcb color too :) would be great to get it working, though.
Any ideas?

Data point:
I just tested https://kendryte-download.canaan-creative.com/developer/k230/k230_canmv_sdcard_v1.4_nncase_v2.8.0.img.gz on my V1.1 board.  It boots and display camera full screen.

have traced the 1.1 PCB against 1.0 and found two pretty brutal IC layout blunders, and was able to fix them.
In the meantime, the vendor was kind enough to offer me another board at symbolic cost.
Thank you all.
By the way, while comparing the boards I couldn’t find anything that would justify revision increment to me, except a nicer PCB color and much poorer reflow job. Does anyone know what the difference actually is?
Also, do I get it right that canmv230 is the ONLY commercially available k230 board atm? If you know something I don’t, please point me in the right direction. Not that canmv is a bad board, but I need my 4-lane CSI and a few other things which are not exposed.
On that note, I still have my KD233 eval board for k210, and I absolutely love it. Now, that was an eval board alright. Good old days.

blunders

Just in case:

a critical LDO was just not there
in another instance someone swapped orientation of two tiny ICs.

Happens to the best of us.

@zhaohu5188  since it happened to be a production line defect, which was fixable, and i also got a generous discount for another boards i guess the issue can be closed.
only I don't want to open another one with regard to my last question where to get a REAL eval board for k230 (CanMV is very cute, but is definitely not that.)
Any pointers? I can't be the only guy who's wondering about those other compilation targets which don't seem to be for sale for any kind of money anywhere.
Are they for sale?

Thanks for the heads up, May is right around the corner, v2.0 layout looks
terrific.
(Too bad I can’t make much use of two v1.1’s I have)
Regarding the amalgamated 4-lane CSI gizmo for 1.0 board - is it available
commercially, or is there a schematic I can use to conjure my own? I sort
of like my 1.0.
Thanks,
k.
k.
Sent from my Imperial Star Destroyer
On Thu, 25 Apr 2024 at 14:50, huangzhenming @.***>
wrote:

@kelas https://github.com/kelas The original purpose of the CanMV K230
design was to be compatible with Raspberry Pi sensor modules. As a result,
the K230 board features three single connectors, each equipped with a
2-lane MIPI interface. However, if you intend to connect the K230 board to
a 4-lane sensor module, you will need to create your own adapter board that
combines CSI0 and CSI1 into a single 4-lane interface.
Please refer to the attached reference picture. Unfortunately, in Version
1.1, CSI0 and CSI1 had different types of interfaces, resulting in some
limitations with the combination board. However, we have addressed this
issue in Version 2.0, which is scheduled for release in May.
image.png (view on web)
https://github.com/kendryte/k230_sdk/assets/20530915/18c64d7c-c51a-4540-8560-b33269cbe200
image.png (view on web)
https://github.com/kendryte/k230_sdk/assets/20530915/b07d4abb-edad-4cb9-a9a4-3065d56d07d5
—
Reply to this email directly, view it on GitHub
https://github.com/kendryte/k230_sdk/issues/60#issuecomment-2077105481,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALVXXXZ7UYYTBIN7CA6DX3Y7D3YNAVCNFSM6AAAAABEPNGLD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXGEYDKNBYGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

@kelas The original purpose of the CanMV K230 design was to be compatible with Raspberry Pi sensor modules. As a result, the K230 board features three single connectors, each equipped with a 2-lane MIPI interface. However, if you intend to connect the K230 board to a 4-lane sensor module, you will need to create your own adapter board that combines CSI0 and CSI1 into a single 4-lane interface.
Please refer to the attached reference picture. Unfortunately, in Version 1.1, CSI0 and CSI1 had different types of interfaces, resulting in some limitations with the combination board. However, we have addressed this issue in Version 2.0, which is scheduled for release in May.

Hello,
Just wanted to ask how 2.0 is doing. Are you guys on track with the release? Any pointers where to look for it when it hits the shelves?
Thanks
k.


set home screen wallpaper

This pull request aims to set the phone's home screen wallpaper as the generated trianglify view directly from the app, this pr will close #46

This pull request adds a sub module please remove it


chore(deps): update dependency firebaseabtesting to v10.24.0

This PR contains the following updates:

Package
Update
Change

FirebaseABTesting
minor
10.23.0 -> 10.24.0

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update (10.24.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.


Obsoletion notice: GO:0044405 Detection of host

GO:0044405 detection of host
No annotations, not a specific process

Hi,
I realize that this term doesn't have any annotations, but I know that there are genes that are involved in this process from back in the PAMGO days.
(And, if we were to keep it, I don't think it should be under 'response to host' but should just be out under 'biological process involved in interaction with host'.)
Are you thinking that proteins involved in binding to one host but not another would be annotated under some kind of receptor binding under Function? And then that the partner identified in the With field would be from a different species?
I think the process can be more complex than just plain binding in some cases, although I'd have to look for examples.
Will you also be planning to obsolete 'detection of symbiont'?
adding @dsiegele and @genegodbold for their thoughts.

Hi Michelle,
If this term is referring to which host a symbiont interacts with, would 'entry into host' be more appropriate as a BP, and indeed the MF would be some kind of protein binding between a symbiont and a host protein?
Were you thinking of other situations as well ?

Hi Pascale,
The thing is that not all symbionts enter their hosts so entry won't always work. And even when they enter, entry doesn't happen until one finds the correct host- but I see how finding can be considered part of entry.
I'm trying to find some of the examples that I remember from PAMGO days.

@mgiglio99, have you been able to find some examples?

This paper describes various ways in which parasitic worms detect their hosts:
Parasitic worms: strategies of host finding, recognition and invasion
https://www.sciencedirect.com/science/article/abs/pii/S0944200604701105
https://pubmed.ncbi.nlm.nih.gov/16351919/
This is a 20-year old review, so I am sure there has been a lot of follow up work.

@addiehl @mgiglio99  @dsiegele @genegodbold do you have any concrete recommendations/reasonings for keeping this broad term?

Since it has no annotations AND it has problems, I'd obsolete it.

I did look for some examples a while back and couldn't find the ones that I remember from PAMGO days.
Since I can't come up with anything, best thing is to obsolete - we can always bring it back if examples arise.

Thanks everyone for the feedback. Let's go ahead with the obsoletion.


Update Readme

Current readme doesn't reflect all the files that are used within the same version. Clinvar and HGMD versions are old.

Closed by: https://github.com/eastgenomics/eggd_vep_TWE_config/pull/19


Is it possible to run the app from XCode project

Describe the bug
I've been following the Tutorial 5 successfully ( https://docs.beeware.org/en/latest/tutorial/tutorial-5/index.html ). The app run fine if I run it with Briefcase.
Is it possible to run the App with XCode instead? If I open XCode and I run the app in a device, the app will crash in the line:
UIApplicationMain(argc, argv, nil, @"PythonAppDelegate");

With an error: Thread 1: EXC_BAD_ACCESS (code=2, address=0x10302be08)
Screenshots

Environment:
Operating System: 12.2.1
Python version: 3.8

Software versions:

Briefcase: 0.3.6
Toga: toga-cocoa>=0.3.0.dev3
...

Update: 22/04/22
I've also tried with python 3.7 and everything works fine, so it seems the original problem only happens with python 3.8

Thanks for the report. I'm fairly certain you're hitting beeware/Python-Apple-support#131 - apps are currently running fine on the simulator, but they fail on physical devices.
On that basis, I'm going to close this bug report; follow the above linked ticket for details. I'm hoping to be able to take a look  at the problem in the coming week or two.

Thanks for pointing to that issue. I will keep an eye in the progress.
Unfortunately I'm also in a M1 so it won't make the simulator to work because of this: https://github.com/beeware/Python-Apple-support/issues/133

You're getting this on the simulator as well? That's definitely not expected - I'm on an M1, and I haven't seen any problems running in the simulator. Can you confirm the exact version of Python, and the version of the Python support library that you're using (the latter should be mentioned in the log when you're creating the app)

Just to clarify, the error log why I can't use the simulator is the following one:
ld: in /Users/myuser/dev/myProject/PythonHelloWorld/beeware-tutorial/beeware-venv/helloworld/iOS/Xcode/Hello World/Support/Python/libPython.a(pythonrun.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Which I believe is the same problem than https://github.com/beeware/Python-Apple-support/issues/133

Can you confirm the exact version of Python

python3 --version
Python 3.8.9

Python support library that you're using

[helloworld] Installing support package...
Using support package https://briefcase-support.org/python?platform=iOS&version=3.8
... using most recent revision
Python-3.8-iOS-support.b7.tar.gz already downloaded
Unpacking support package...

Ah - thanks for clarifying. It is possible to run in the simulator; however, you need to tweak the "VALID_ARCHS" setting to ensure you don't compile your app for ARM. This results in the simulated iOS app running in x86 emulation mode. That's still a bug - but there is a workaround.

Nice, thanks for the tip.
Just to add more details ( in case anyone else who needed ).
With XCode 13 the parameter to use is Excluded Architectures it seems VALID_ARCHS was deprecated from XCode 12
With this settings, now seems to work:

Thanks!


ARTEMIS-1352 auto-create MULTICAST queue when AMQP client sends to topic

@tabish121, I fixed the variable name.


fixing making plot_city look nicer

Summary
Working on #2322 (making the plot_city look nicer)
Details and comments

make rho the latex version - done
use standard version of imag and real - done
set the size of real/imag to be the same for both plots (0.25, 0.5, 0.75, 1) depending on the largest element - need some clarification on this... does this mean the maximum height of both graphs going to be set strictly at 0.25, 0.5, 0.75, or 1?
add the z axis to the bottom left - I do not think this can be easily achieved at the moment; there currently exists a request on the matplotlib github (https://github.com/matplotlib/matplotlib/issues/10767) to have this feature implemented. The current solution would be to change the plot private attributes, but this would be hard coded.

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

@1ucian0 @nonhermitian @mtreinish I've spoken with Dennis about this issue. As he indicates in his comment, 2 of the fixes are easy, 1 will be fixed when matplotlib itself is fixed, and the final request is a bit confusing.
For the last request, I see at least 2 ways of solving it:

Fixing the scales to be (0, .25, .75, 1) absolutely.
Dividing each element of \rho by max_{jk} |Re[\rho_{jk}]| (or Im[]), and then plotting that.

The latter solution would require labeling the z-axis  "normalized" or something to that effect.

dont divide just choose the hight that is ceiling of the largest value over real and imag.

@jaygambetta Understood.
@dennis-liu-1 In the code, identify the parameters that control the z-axis scale and set them such that the largest value displayed on the axis is the ceiling of max(max(Re[rho]), max(Imag[rho])).
Please DM on Slack with questions.


Replace deprecated ioctl crate with nix

@birkenfeld Could you have a look at the used nix macros? At the moment I can't test the code :-\

The ioctl-sys crate doesn't seem to be actually deprecated. Only ioctl is (but they are unaffiliated, strangely).

The ioctl-sys crate doesn't seem to be actually deprecated. Only ioctl is (but they are unaffiliated, strangely).

You're right, ioctl-sys is officially not deprecated but the latest release was  Mar 17, 2017 and the latest commit was 20 Apr 2017 whereas the latest nix was released Feb 4, 2020 and is maintained by a large number of contributors.

Sure, but it's small and stable, there's no outstanding issues in the repo, and I don't believe that you have to put out releases just to show activity. nix's scope is much, much broader so there's no surprise it needs (and gets) much more maintenance.
Still, maybe we'll need nix for other things in the future, so I'm fine with this (after comments are addressed).  (Can't test with real HW at the moment either, though.)

Sure, but it's small and stable, there's no outstanding issues in the repo

You're right. So lets ignore my PR ;-)
If there will be any problems in the future we can discuss again.


Update the wiki for better navigation

@minrk @jhamrick I've updated the JupyterHub wiki to have better navigation and discoverability. I have loosely based the design and layout on the d3.js GitHub wiki since it was one of the top rated wikis on GitHub. If you see something missing or would like additional changes, please let me know.
FYI. The notes section of the wiki has an outline of all submitted pages that are not authenticators or spawners.

Terrific, thanks!


Implement configurable hiding of internal spec properties

Instead of setting the internal properties within Cypress environment, which gets reported to the recording dashboard, set a reference instance that is ignored when serializing.

Fixes #908

Using a reference object allows for the environment object itself to be simpler, not even holding a reference to the huge internal properties object, meaning that a user (or third-party library) can even call console.log(inspect(Cypress.env(), {depth: null})) and the huge internal properties won't be shown.
The previous behavior, with the entire object being added to the cypress environment and reported to the recording dashboard, can be enabled by using the tag @reportInternalCucumberState

Ping @badeball 😄
Any takes on this?

Many thanks!


Stack vs sample proposal and outer loop proposal

Signed-off-by: eyuen<EMAIL_ADDRESS>What does this PR do?
Move design doc from gdoc (https://docs.google.com/document/d/1tbzZK9aWtpw5AtoZmUl1Jy8x8w9N5hhjXu3c26VYiYY/edit?usp=sharing and https://docs.google.com/document/d/1SL3ZJyAy8lp973EzQpY36VjTJHoyGXl2zUXokPiXwK8/edit?usp=sharing) to design doc in repo for public access.
What issues does this PR fix or reference?
Design doc for https://github.com/devfile/api/issues/279 and https://github.com/devfile/api/issues/51
Is your PR tested? Consider putting some instruction how to test your changes
Design doc changes only
Docs PR
Design doc changes only
Note: I accidentally closed the original PR https://github.com/devfile/api/pull/474 so this new one replaces it with all the review comments addressed.

I'm concerned we're providing too many options at once and overloading our definitions. It looks like the image component type has a lot of fields that have specific use cases, which may be hard to use/document.

This PR is supposed to convert the existing design proposal spec so that everyone has access. The specification has been gone through a couple of rounds of discussions in the cabal call. Therefore, I am only addressing formatting issues in this PR. If there are suggestions on spec changes, please open a separate item to discuss and bring up to the cabal call for discussion.


Restitution coefficients are ignored by the implementation of ConstructSdfCollision in dartsim-plugin

The dartsim plugin currently doesn't apply restitution coefficients when creating collisions using the ConstructSdfCollision feature, which is the feature used by ign-gazebo.

Closed by #139


jpg image hitting an endless loop in jpegReader::nextMarker

I have an image from a Nikon scanner that's somehow hitting an endless loop in the nextMarker method. jr.err = nil, and jr.pos = 0, it's passing the isMarkerFirstByte check, failing the isSOIMarker check, and then as jr.pos is still 0, the loop continues indefinitely.
The nature of this loop means I can't recover from this situation without changing the code in some possibly unhelpful way, like naively setting a max loop count or something like that. Someone want to take a whack at figuring out the correct way to limit this loop?

Kindly send the file and I will take a look. Thanks.

@smurfless1 please check your file with the bug fix. Please open the issue if unresolved.

Will do. I have about a hundred of these that trigger that so I should be able to check it pretty across more than one.
Dave Brown
On Apr 5, 2023 at 12:09 PM -0500, evanoberholster @.***>, wrote:

Closed #54 as completed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


win 报错

Cannot remove temporary socket:  remove C:\Users\ADMINI~1\AppData\Local\Temp/iotfast_plugin: The system cannot find the file specified.
using proto:unix, netAddr:C:\Users\ADMINI~1\AppData\Local\Temp/iotfast_plugin ,err:listen unix C:\Users\ADMINI~1\AppData\Local\Temp/iotfast_plugin: socket: An address incompatible with the requested protocol was used., creat server failed
using proto:unix, netAddr:C:\Users\ADMINI~1\AppData\Local\Temp/iotfast_plugin ,err:listen unix C:\Users\ADMINI~1\AppData\Local\Temp/iotfast_plugin: socket: An address incompatible with the requested protocol was used., creat server failed
using proto:unix, netAddr:C:\Users\ADMINI~1\AppData\Local\Temp/iotfast_plugin ,err:listen unix C:\Users\ADMINI~1\AppData\Local\Temp/iotfast_plugin: socket: An address incompatible with the requested protocol was used., creat server failed
using proto:unix, netAddr:C:\Users\ADMINI~1\AppData\Local\Temp/iotfast_plugin ,err:listen unix C:\Users\ADMINI~1\AppData\Local\Temp/iotfast_plugin: socket: An address incompatible with the requested protocol was used., creat server failed
server plugin start successful
panic: runtime error: invalid memory address or nil pointer dereference
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x28 pc=0x10db6e9]
goroutine 59 [running]:
github.com/xiaodingding/iotfast/plugin/server.(*server).serveTCP.func1(0x0, 0x0, 0xc000bd8000)
E:/src/iotfast/plugin/server/server.go:231 +0x29
panic(0x14a8a00, 0x279f180)
D:/ProgramFiles/Go/src/runtime/panic.go:965 +0x1c7
github.com/xiaodingding/iotfast/plugin/server.(*server).serveTCP(0xc000bd8000, 0x0, 0x0)
E:/src/iotfast/plugin/server/server.go:239 +0x133
github.com/xiaodingding/iotfast/plugin/server.(*server).Start(0xc000bd8000)
E:/src/iotfast/plugin/server/server.go:385 +0x3cf
github.com/xiaodingding/iotfast/internal/cmd.glob..func3(0x1e25fd8, 0xc000146870, 0xc000134700, 0x11, 0x0)
E:/src/iotfast/internal/cmd/cmd.go:93 +0x65
created by github.com/xiaodingding/iotfast/internal/cmd.glob..func4
E:/src/iotfast/internal/cmd/cmd.go:105 +0xf9

哦哦，你可以不用unix协议


Upgrade OpenTelemetry to use the latest packages which include Metrics v1 GA

Earlier this week the OpenTelemetry Javascript maintainers have released a new version of otel-js which included the major release of Metrics v1 and I was wondering if the dependencies could be updated so it uses the latest versions, such as @opentelemetry/api. In the latest version of this package the maintainers merged @opentelemetry/metrics-api package

fixed in #248


⚠ GitHub has degraded performance

In 026e51f, GitHub (https://www.githubstatus.com/api/v2/status.json) experienced degraded performance:

HTTP code: 200
Response time: 307 ms

Resolved: GitHub performance has improved in 6aab7a1.


irmin-pack: refactor Index reconstruction implementation

... using the improved size_of functions provided by https://github.com/mirage/repr/pull/69.
The new implementation avoids decoding Inode / Node values from the read buffer, which avoids needing to use the path dictionary and reduces the number of allocations significantly. (As a result, certain corruptions of the data file itself will no longer be noticed during index reconstruction, but we have other integrity checks for those.)
Also exposes an index_log_size parameter to allow the user to override the default. To compensate for using very large log sizes during reconstruction, we now attempt a manual merge at the end of the process.

Testing on a 30 GiB store from Tezos mainnet. The old implementation took 7.5 hours to reconstruct the index:
; dune exec tezos-node -- storage --data-dir /bench/craig/2021-06-12 reconstruct-index
Reconstructing index    30.7 GiB  446:55  [################################] 100%

(This used the default irmin-pack log size of 500_000, which is way too conservative when the reconstruction is the only thing going on.) The implementation in this PR, with log_size set to 10 million, uses 7.3 GB of RAM and takes just under an hour:
; dune exec tezos-node -- storage --data-dir ... reconstruct-index --index-log-size 10_000_000
Beginning index reconstruction with parameters: { log_size = 10000000 }
Reconstructing index    30.7 GiB  54:10  [################################] 100%
Completed indexing of pack entries. Running a final merge ...
Success in 57min26s. Store statistics:
  { "Contents" = 33929666;
    "Commit" = 1060550;
    "Node" = 250204414;
    "Inode" = 45885111 }

Other values of --log-size tested:

40_000_000: 24.5 GB RAM and completed in 39 minutes;
400_000_000: 40 GB RAM and completed in 35 minutes (with this much RAM, the entire index fits in memory, so there is only one merge at the end).

It seems that 10_000_000 is the right order of magnitude for an average machine; large servers can increase this for some marginal gains.

Thanks @icristescu for the review :-)


Bug report

Bug description
the program can be compiled under debug, but failed under release.

I saw many users met this error, but there is not a certain method to sovle this.
error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [FAST_SUBS]

Can you share the full text from your "output window" instead of the "error list"?

Which branch are you trying to compile?

Can you share the full text from your "output window" instead of the "error list"?

Dear jjonkman
I successful compiled the program without any change of the code today, and I didn't meet the errors again.
Although I don't know the reason, my problem has been solved. Thank you for your help.
Best regards,
Yao

Which branch are you trying to compile?

Dear andrew-platt
I compiled branch of rc-3.5.1, and I compiled it successfully.
thanks for your help.
Kind regards,
Yao


Hang Chrome while loading snippets

We've found out that the Snippets plugin hangs Chrome for all the time it loads the snippets with Ajax.
This is OK if you have only a few snippets and working with a fast connexions but we have tons of snippets and some of my colleagues are sometimes working over a slow connection and Mantis bugs pages can take up to 15 seconds to load.
We have other plugins with Ajax loading and they do not hang the browser while loading, even if it takes several seconds to load.
I haven't tested other browsers.
To reproduce the issue:

add tons of snippets in Mantis, probably with a script or SQL query
test from a slow connection or simulate a slow connection with a sleep in the foreach loop of pages/snippet_list.php

Hello Cyril,
Can you please be more accurate in describing what the issue is ? what is a "ton" of snippets ? what is a "slow" connection ? What page(s) are slow to load ?
I tested this locally with 1'000 randomly generated snippets and the page (view.php) loaded just fine in < 0.3s

Very sorry about that but after a long investigation, this weird issue was coming from a memory leak in a totally unrelated Chrome Extension that only caused problem in Snippets.

Thanks for the feedback.


Issues with CigarII and Minions

Hello there!
It seems like it is not possible to control minions with CigarII. Once I click Q, it is supposed that I can control the minion (use space to split it, or Q to reject its mass), however, it does not work at all.

Yeah, I removed the q key method of controlling minions, because they're already the ert method of controlling them.

Yeah, I removed the q key method of controlling minions, because they're already the ert method of controlling them.


Verify nsaccountlock before sending password reset email

If the user account is disabled, changing the password is not possible and if the user tries to reset its password he will get a fatal error message and Mokey logs the following message:
timestamp level=error msg="failed to set user password in FreeIPA" error="ipa: change password failed. Unknown status" uid=username

This patches verify nsaccountlock before sending the email, and notify the user his account is disabled is nsaccountlock is true while not sending any email.

Looks good. Thanks!


Printing incorrectly on label printer with small page size

I am using Firefox 52 x32 on Windows 10 x64 to try and print a small PDF on a Zebra LP 2844 label printer. The PDF is generating to be a 3"x2" PDF, which is the printable size on the label printer. When printing the PDF from Firefox inside of PDF.js, the content appears shifted to the left and the label printer spits out enough labels to make the height of a standard 8.5"x11" sheet of paper (plus a little extra to finish spitting out the last label). When I print the PDF from the builtin viewers in Chrome or Edge, the label comes out fine.
The source PDF is here and I have uploaded a picture of the labels with a small pencil labeling of which one was printed from which application here. All data is randomly generated test data, so don't worry about the contents.

PDF in the first link looks fine on Firefox 67.0.1 (64-bit), PDF.js (2.2.71). Second link is broken.

I fixed the second link (it was missing the https:// prefix).

@stephenross Source PDF link is broken/unavailable.
Is this still broken?

@stephenross Thanks for your update. :)
I'll leave the "Closing" decision to Mozilla collaborators as this might still be valid and/or related to bug #13264 and worthy of keeping open

Given the above, let's just mark this as a duplicate of #13264


[Errno 13] Permission denied: u'./docker-compose.yml

Hi there,
I followed the guide step by step on using docker for the first time on ubuntu core 16
But I came across with this message every time i try to run the containers from the yml
docker.compose up

It gives me ERROR: Couldn't connect to Docker daemon - you might need to run docker-machine start default.
While
sudo docker.compose up

It gives me ERROR: .IOError: [Errno 13] Permission denied: u'./docker-compose.yml'

The whole repository even the docker-compose.yml file is set to my user:user. Moreover the docker-compose.yml has 777 permission

Hi @marcossegovia
Thanks for your report, you hit the AppArmor denials due to the strict confinement in the snappy world.
In short, you need to

make home plug connected if you put the whole repository under $HOME
make sure the whole repository(docker project folder and files) owned by root instead of your login user i.e Dockerfile, docker-compose.yml.

Here is how I build an image with docker build command in ubuntu core. It applies to docker compose command too.
https://paste.ubuntu.com/25814535/
For more details, please refer to
https://forum.snapcraft.io/t/docker-load-fails-with-permission-denied/1227
Please let us know if it works for you with the above approach.
Thanks for your interests in docker snap.
BR
Gary

Hey @adglkh
Thank you for your quickly and accurate response.
I think that sudo chown root.root -R on the whole repository made the deal. Although having executed sudo chown root:root -R previously.
Now I got problems pulling the images
`$ sudo docker.compose up`
Pulling db (mongo:latest)...
latest: Pulling from library/mongo
ERROR: no matching manifest for linux/arm in the manifest list entries

If you have any idea would be nice, otherwise I think we can close this. :)

Well actually I'm seeing docker has a restricted number of images: https://hub.docker.com/u/arm64v8/ on the raspberry architecture :(


HOSTEDCP-1994: Remove infra create MI for Azure NP

What this PR does / why we need it:
Remove infra code to create a managed identity (MI) for the Azure NodePool. This is not needed in ARO HCP. This was needed previously when we were using MI per https://capz.sigs.k8s.io/topics/identities#assigning-vm-identities-for-cloud-provider-authentication-self-managed
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #
Checklist

[ ] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/lgtm

/test e2e-aks


QPDGate serialization meta-issue

There are still some issues with QPDGate serialization via qiskit.qpy once #417 is resolved by #442.  I'm opening this issue to collect them and to create a space for centralized discussion.  (These issues are closely related to one another, and it is likely that they should be considered together for any potential solution, as @caleb-johnson suggested at https://github.com/Qiskit-Extensions/circuit-knitting-toolbox/issues/417#issuecomment-1783418207.)

TwoQubitQPDGate with basis_id=None gets serialized into two SingleQubitQPDGates: #443
SingleQubitQPDGate with basis is not None gets realized into concrete gates during serialization (@caleb-johnson's comment)
deserializing a QPDGate results instead in a concrete instantiation of an object of type Instruction: #444

After some further discussion, it's possible that users should really be using pickle instead of qpy if they need things to work as suggested above.  Closing for now, and will re-open if necessary.


Changes in proxy settings

Add switch "enable/disable proxy"
On "disable proxy" send "proxy": null to DSC

Implemented in bae1910


FAQ has typo in link to default_base_image.md

Environment:
N/A
Description of the issue:
FAQ typo where linking to default_base_image.md
Expected behavior:
Markdown should be valid ;)
Steps to reproduce:

Search for default_base_image.md
Note it's not a link

@ericsmalling thanks again!


Building Issue [Minit 18.04 MATE / Manjaro 18.04 XFCE]

I followed these instructions:
https://github.com/Tencent/ncnn/wiki/how-to-build
and files needed to build waifu2x-ncnn-vulkan were not appearing where they were needed. However, using the AUR package, the files appeared correctly.
Ubuntu
I did this on a fresh build on Mint 18.04, and I took screenshots of the process.
Did I do something wrong? I annotated each picture of what I was doing.
https://imgur.com/a/mPRtiOP
Manjaro
The same issue applied when I tried to follow the build instructions on Manjaro, where the files needed to build the cmake were not there.
When I moved over to Manjaro [arch linux],  and I was able to 'solve' the issue by installing ncnn via the AUR package (which worked flawlessly), and then copying over the missing files and folders.
Specifically, the waifu2x-ncnn-cmake errors were telling me the following files were missing in their respective directories, so I copied the files over from the AUR built NCNN into the tutorial-built NCNN.
['export/lib/cmake/ncnn/ncnnConfig.cmake', 'export/lib/libcnn.a', 'export/include/ncnn']
Then I built it waifu2x-ncnn-vulkan using the tutorial-built NCNN, which seemed to fix the issue.
TL;DR
I tried following the ncnn build instructions on ubuntu/arch linux for waifu2x-ncnn-vulkan but ran into issues. I installed the AUR package (which worked) to find what was missing on the instructions-built version, and copied the files over, which fixed the problem.

 I'm sort of confused as to what's causing the issue here.

On Fedora 31, I got further by installing ncnn to /usr/local like this:
# In the root `ncnn` folder:
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
cmake --build build
sudo cmake --build build --target install

# In `waifu2x-ncnn-vulkan`:
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build

However, I get this error while building waifu2x-ncnn-vulkan:
❯ cmake --build build -j1
[1/3] Building CXX object CMakeFiles/waifu2x-ncnn-vulkan.dir/main.cpp.o
FAILED: CMakeFiles/waifu2x-ncnn-vulkan.dir/main.cpp.o
/usr/lib64/ccache/c++   -I. -isystem /usr/local/include/ncnn -fopenmp -O2 -DNDEBUG -fPIE   -fopenmp -MD -MT CMakeFiles/waifu2x-ncnn-vulkan.dir/main.cpp.o -MF CMakeFiles/waifu2x-ncnn-vulkan.dir/main.cpp.o.d -o CMakeFiles/waifu2x-ncnn-vulkan.dir/main.cpp.o -c ../main.cpp
In file included from ../main.cpp:63:
../waifu2x.h:35:11: error: ‘Pipeline’ in namespace ‘ncnn’ does not name a type
   35 |     ncnn::Pipeline* waifu2x_preproc;
      |           ^~~~~~~~
../waifu2x.h:36:11: error: ‘Pipeline’ in namespace ‘ncnn’ does not name a type
   36 |     ncnn::Pipeline* waifu2x_postproc;
      |           ^~~~~~~~
../main.cpp: In function ‘int main(int, char**)’:
../main.cpp:524:11: error: ‘create_gpu_instance’ is not a member of ‘ncnn’
  524 |     ncnn::create_gpu_instance();
      |           ^~~~~~~~~~~~~~~~~~~
../main.cpp:530:27: error: ‘get_gpu_count’ is not a member of ‘ncnn’; did you mean ‘get_cpu_count’?
  530 |     int gpu_count = ncnn::get_gpu_count();
      |                           ^~~~~~~~~~~~~
      |                           get_cpu_count
../main.cpp:535:15: error: ‘destroy_gpu_instance’ is not a member of ‘ncnn’
  535 |         ncnn::destroy_gpu_instance();
      |               ^~~~~~~~~~~~~~~~~~~~
../main.cpp:539:33: error: ‘get_gpu_info’ is not a member of ‘ncnn’
  539 |     int gpu_queue_count = ncnn::get_gpu_info(gpuid).compute_queue_count;
      |                                 ^~~~~~~~~~~~
../main.cpp:613:11: error: ‘destroy_gpu_instance’ is not a member of ‘ncnn’
  613 |     ncnn::destroy_gpu_instance();
      |           ^~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.

I add a small build guide in README
https://github.com/nihui/waifu2x-ncnn-vulkan#build-from-source


new version of the rocket does not work

well the new version of the rocket does not work <IP_ADDRESS> I install update everything and says this server is running a modified of version of the game help pls epic bug and if and actualize the game and it happens to everyone sorry for my english and the <IP_ADDRESS> :3

Having the same problem.

My server is also currently experiencing this issue.

I found out a server reinstall helped me and Rocket is now working, it should be all good now.


New View Part

I was new guys about BFT ,
this code have pacemaker part ?
Do you implement this part in your code ?
sorry ,just want to read this

You can find the pacemaker in consensus/eventdriven/pacemaker.go


Allow multiple models when testing a pipeline

@Narsil WDYT of this approach? If it looks good I'll change the common templates as well.

Friendly ping @Narsil


Chaos operator changes for https://github.com/litmuschaos/litmus/issues/1421

What this PR does / why we need it: Addresssing issue : https://github.com/litmuschaos/litmus/issues/1421
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
https://github.com/litmuschaos/litmus/issues/1421
Special notes for your reviewer:
Tried to adhere to karthik's comments on the issue above, still would be good to check it
Checklist:

[ ] Fixes #
[ ] Labelled this PR & related issue with documentation tag
[ ] PR messages has document related information
[ ] Labelled this PR & related issue with breaking-changes tag
[ ] PR messages has breaking changes related information
[ ] Labelled this PR & related issue with requires-upgrade tag
[ ] PR messages has upgrade related information
[ ] Commit has unit tests
[ ] Commit has integration tests

Thank you for the PR @vijayto ! Will get back with the reviews shortly.

These schema enhancements might need the deepcopy changes. To generate the deepcopy changes for this, please use the following steps:

Step.1: Since we have used operator-sdk framework to bootstrap this repo/controller,  we are using a utility provided by them to generate deepcopy functions. First, download the operator-sdk binary into your workspace. Ref: https://github.com/operator-framework/operator-sdk/blob/master/doc/user/install-operator-sdk.md

Step.2: Once it is placed in your $GOBIN, you can execute the following command while at the root of the chaos-operator repo.
operator-sdk generate k8s

An additional step we have been doing of late is using the code-gen utility to check for any generated code needs with schema changes. To do this step:

Navigate to litmuschaos/chaos-operator/hack folder
Run command ./update-codegen.sh

Step.3:  On performing git status we may see changes to this file: https://github.com/litmuschaos/chaos-operator/blob/master/pkg/apis/litmuschaos/v1alpha1/zz_generated.deepcopy.go

With this we are good to go. Please push the updated files into PR.

@vijayto also would be great if you could make sign the commits (git commit -s).

@ksatchit that was awesome! thanks for such detailed explanation, will add it soon

Thanks for addressing all the review comments @vijayto . Tested the following sample engine with locally built images (with Vijay's changes on operator and runner) and annotations are getting added to the pod as expected:
Sample Engine Spec:
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
  name: nginx-chaos
  namespace: default
spec:
  appinfo:
    appns: 'default'
    applabel: 'run=nginx'
    appkind: 'deployment'
  # It can be true/false
  annotationCheck: 'true'
  # It can be active/stop
  engineState: 'active'
  #ex. values: ns1:name=percona,ns2:run=nginx
  auxiliaryAppInfo: ''
  chaosServiceAccount: pod-delete-sa
  monitoring: false
  components:
    runner:
      runnerannotation:
        testrunner.io/chaos: "true"
  # It can be delete/retain
  jobCleanUpPolicy: 'retain'
  experiments:
    - name: pod-delete
      spec:
        components:
          experimentannotation:
            testexp.io/chaos: "true"
          env:
            # set chaos duration (in sec) as desired
            - name: TOTAL_CHAOS_DURATION
              value: '30'


Consider extending invite to DSIT?

What
Why
Who needs to work on this
Who needs to review this
Done when

[ ] Thing to do

Messaged SMT and comms lead for MOG. Didn't get any takers so closing this now.


[QA] about config

描述问题

i want to finetune internlm-chat-7b ,  but I can't find a detailed answer about the configuration file items。 can you provide it ?
by the way, There are some errors in the 7B_sft.py

Thanks for raising this question. If you want to finetune internlm-chat-7b, you can set load_ckpt_info = dict(path="/your/internlm-7b-chat/model/path", content=["model"], ckpt_type="internlm")

Are there any bugs when loading the sft model?

no,it works well. but i think the annotations should be modified

no,it works well. but i think the annotations should be modified

Thanks for the reminder. We will update it soon.


hit-test every element

There's a bug when you click between the comments count & timeago (item is not selected)

[ ] if/else for background color in webrender::render_surface() (to render something every time)

fixed in #119


keep the indentation on new line

It will be better looking and keep the visual flow of text blocks.

Most text editors that do line-wrapping don't do this.
Codemirror has code available for it here: view-source:https://codemirror.net/demo/indentwrap.html which I have tried in FromScratch before, but took out because in usage it doesn't work very well wheb you start editing and otherwise interacting with the text, which is the thing I want to make the easiest.
I'm not bringing this into FromScratch because while I agree it looks better, it doesn't work better and that's more important to me.

I was speaking from dropbox paper UX point of view that I currently use as a scratchpad. It makes more sense for note taking involving list too.

Ah, right. I thought you meant a long sentence that runs over into the next line, my bad.
FromScratch does already automatically preserve the indentation for newlines, so that use case is covered :)


[BUG]  The resources of the system namespace should not be displayed

Describe the bug

To Reproduce
Steps to reproduce the behavior:

Go to volume page
resources belonging to the cattle-monitoring-system namespace exist

Expected behavior

The volume in cattle-monitoring-system should not be displayed
Support bundle

Environment:

Harvester ISO version:
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630):

Additional context
Add any other context about the problem here.

Verified fixed on master-119c2c48-head. Close this issue.
Result
Now there is no cattle-monitoring-system volume show up on the volumes page

Test Information

Test Environment: 3 nodes harvester on provo bare machine
Harvester version: master-119c2c48-head

Verify Steps

Create several volumes or keep empty
Open Volumes page

Additional Context
None


[WIP] Improved token transfer.

Pull Request Test Coverage Report for Build 476

7 of 33 (21.21%)  changed or added relevant lines in 5 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.3%) to 53.028%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

common/features/schedule/actions.ts
2
4
50.0%

common/features/schedule/selectors.ts
2
4
50.0%

common/features/schedule/reducer.ts
0
7
0.0%

common/features/schedule/sagas.ts
0
15
0.0%

Files with Coverage Reduction
New Missed Lines
%

common/features/schedule/sagas.ts
2
13.94%

Totals

Change from base Build 474:
-0.3%

Covered Lines:
2322

Relevant Lines:
4089

💛  - Coveralls


validFrom and validUntil?

Should these properties be supported in the data model?
Should they be mandatory?
How do they relate to versions?

Inspired by trust registry work here -- https://github.com/trustoverip/tswg-trust-registry-tf/tree/main/docs

From 9/19: from should be required, until may be optional?


Unable to run easily on Mac 10.13.6 (17G65)

I have configured a simple test and a job to run this test. When I run it with easypy, I have socket.gaierror: [Errno 8] nodename nor servname provided, or not known error and the test is not executed.
Environment setup:

python 3.6.5
pyats 4.1.0

Pip log:
pip list
Package              Version
-------------------- ---------
asynctest            0.12.2
blinker              1.4
certifi              2018.8.13
chardet              3.0.4
graphviz             0.9
httplib2             0.11.3
idna                 2.7
Jinja2               2.10
junit-xml            1.8
MarkupSafe           1.0
pip                  18.0
psutil               5.4.7
pyats                4.1.0
pyats.aereport       4.1.0
pyats.aetest         4.1.3
pyats.async          4.1.0
pyats.connections    4.1.0
pyats.datastructures 4.1.0
pyats.easypy         4.1.10
pyats.examples       4.1.0
pyats.kleenex        4.1.0
pyats.log            4.1.0
pyats.results        4.1.0
pyats.tcl            4.1.1
pyats.templates      4.1.0
pyats.topology       4.1.2
pyats.utils          4.1.4
PyYAML               3.13
requests             2.19.1
setproctitle         1.1.10
setuptools           40.2.0
six                  1.11.0
unicon               3.2.0
urllib3              1.23
wheel                0.31.1

The tests:
# smoke_test.py
from ats import aetest

from ats.aetest import test

class Smoke(aetest.Testcase):
    @test
    def test_one(self):
        print('Smoke test is passed')

# smore_job.py
import os
from ats import easypy

def main():
    script_path = os.path.dirname(os.path.abspath(__file__))
    testscript = os.path.join(script_path, 'smoke_test.py')
    easypy.run(testscript=testscript)

Execution log:
$ easypy smoke_job.py
Process ForkProcess-2:
Traceback (most recent call last):
  File "/python/3.6.5/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/python/3.6.5/lib/python3.6/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "src/ats/aereport/toplevel/decorators.py", line 43, in ats.aereport.toplevel.decorators.log_it.inner
  File "src/ats/aereport/toplevel/decorators.py", line 36, in ats.aereport.toplevel.decorators.log_it.inner
  File "src/ats/aereport/aerunner.py", line 5336, in ats.aereport.aerunner.AERunner.run_server
  File "src/ats/aereport/aerunner.py", line 5933, in ats.aereport.aerunner.OrphanFreeSimpleXMLRPCServer.__init__
  File "/python/3.6.5/lib/python3.6/xmlrpc/server.py", line 598, in __init__
    socketserver.TCPServer.__init__(self, addr, requestHandler, bind_and_activate)
  File "/python/3.6.5/lib/python3.6/socketserver.py", line 453, in __init__
    self.server_bind()
  File "/python/3.6.5/lib/python3.6/socketserver.py", line 467, in server_bind
    self.socket.bind(self.server_address)
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
2018-08-22T12:44:49: %EASYPY-ERROR: !!! an unhandled exception has interrupted execution !!!
2018-08-22T12:44:49: %EASYPY-ERROR:
2018-08-22T12:44:49: %EASYPY-ERROR: This may be caused by:
2018-08-22T12:44:49: %EASYPY-ERROR:     - keyboard interrupts (ctrl+c)
2018-08-22T12:44:49: %EASYPY-ERROR:     - job file issues
2018-08-22T12:44:49: %EASYPY-ERROR:     - unexpected exceptions from your plugins
2018-08-22T12:44:49: %EASYPY-ERROR:
2018-08-22T12:44:49: %EASYPY-ERROR: As a consequence:
2018-08-22T12:44:49: %EASYPY-ERROR:     - execution crashed and the environment may not be cleaned up
2018-08-22T12:44:49: %EASYPY-ERROR:     - TRADE/TIMS uploading will likely not occur
2018-08-22T12:44:49: %EASYPY-ERROR:
2018-08-22T12:44:49: %EASYPY-ERROR: Please investigate the traceback below before raising issue to pyats-support.
2018-08-22T12:44:49: %EASYPY-ERROR:
2018-08-22T12:44:49: %EASYPY-ERROR: --------------------------------------------------------------------------------
2018-08-22T12:44:49: %EASYPY-ERROR:
2018-08-22T12:44:49: %EASYPY-ERROR: pyATS Instance   : /python/3.6.5/envs/pyats
2018-08-22T12:44:49: %EASYPY-ERROR: Python Version   : cpython-3.6.5 (64bit)
2018-08-22T12:44:49: %EASYPY-ERROR: CLI Arguments    : /python/pyats/bin/easypy smoke_job.py
2018-08-22T12:44:49: %EASYPY-ERROR: User             : user
2018-08-22T12:44:49: %EASYPY-ERROR: Host Server      : mac
2018-08-22T12:44:49: %EASYPY-ERROR: Host OS Version  : Mac OSX 10.13.6 (x86_64)
2018-08-22T12:44:49: %EASYPY-ERROR:
2018-08-22T12:44:49: %EASYPY-ERROR: Traceback (most recent call last):
2018-08-22T12:44:49: %EASYPY-ERROR:   File "src/ats/easypy/reporter/ae.py", line 114, in ats.easypy.reporter.ae.AEReporter.start
2018-08-22T12:44:49: %EASYPY-ERROR:   File "src/ats/aereport/aerunner.py", line 5256, in ats.aereport.aerunner.AERunner.start_server
2018-08-22T12:44:49: %EASYPY-ERROR: ats.aereport.exceptions.aereport_errors.ServerNotStarted: 'Server could not be started. AEReport server will not be started'
2018-08-22T12:44:49: %EASYPY-INFO: No SMTP server information configured, ignoring sending notification email.
2018-08-22T12:44:49: %EASYPY-INFO: Done!

this is a common issue with Python XMLRPCServer (which we use in the reporting).
The fix is to add your hostname behind <IP_ADDRESS> in /etc/hosts file
Eg from this
<IP_ADDRESS>	localhost

to this
<IP_ADDRESS>	localhost my-mbp

@siming85 is it possible to add this somewhere in the documentation?

it's the first thing that comes up with that exception...
it's not exactly pyATS specific:
https://stackoverflow.com/questions/39970606/gaierror-errno-8-nodename-nor-servname-provided-or-not-known-with-macos-sie

@siming85 got it.


Add variables

[ ] Player time elapsed
[ ] Player time remaining
[ ] Player current track
[ ] Channel level
[ ] Channel names

Feedback in companion for Channel names would be great!

@Lukastaraba The mute state of a channel would be somtehing you'd rather solve with feedbacks. This is already possible! is there any reason why you need this as a variable?

@fmalcher Thanks for the tip I had overlooked that


Elasticsearch ingestion example added

Nice!
For readability, can you hide/clean up the outputs that are really long like the pip install or the embeddings results?


Adds new metric kubevirt_vmi_memory_unused_bytes

Signed-off-by: arthursens<EMAIL_ADDRESS>
What this PR does / why we need it:
Alongside with the already existing metric kubevirt_vmi_memory_available_bytes, this new metric allows users to calculate realtime usage percentage of the VMIs memory
Use cases solved by this metric:

I want to keep track of memory usage percentage in order to know if the VMIs deployed are being over dimensioned or under dimensioned for my solutions

(100 * kubevirt_vmi_memory_unused_bytes) / kubevirt_vmi_memory_available_bytes

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

Adds new metric kubevirt_vmi_memory_unused_bytes

\lgtm
Do we need to update docs?

Oh right, forgot about that
just added a new entry for the new metric

/lgtm
/retest

/retest

@ArthurSens, @xpivarc
Hi Arture, This doesn't look correct to me.
We should update the metrics to be
metric name: "kubevirt_vmi_memory_bytes"
labels:  type: unused, available, rss,...

Hi @sradco ,
we have already these metrics.
Do you suggest to merge already existing metrics(concretely memory metrics) to one kubevirt_vmi_memory_bytes? This would require some depreciation notification so we don't break existing dashboards.
Can you give why this would be a better approach? Is this Prometheus approach?

From the Prometheus side, we would have the exact same amount of time series.
Metric names are handled as a label called __name__

If we create a new metric for each memory type, we would have the following time series(Using as examples the unused and available types):

{"__name__": "kubevirt_vmi_memory_unused_bytes"}
{"__name__": "kubevirt_vmi_memory_available_bytes"}

If we create a new label type:

{"__name__": "kubevirt_vmi_memory_bytes", "type": "unused"}
{"__name__": "kubevirt_vmi_memory_bytes", "type": "available"}

I'm not really sure if having more labels for each time series would have performance issues, but, as discussed in one of sig-observability issues, new labels are created when there is a need to aggregate metrics around that new label.
Personally, I don't use Kubevirt so I'm not in a good place to say if there is a need to aggregate memory metrics around its type, but, if it is decided to do so, I think we could merge this PR and then work on another one to create the type label(with a breaking change note). WDYT @xpivarc @sradco ?

@ArthurSens, @xpivarc
I looked at the container and node metrics.
They seem to be in the same format as here.
So I take back my comment.
/lgtm

e2e test added

Is there anything else you would like me to change here? @xpivarc @sradco @davidvossel @rmohr

/lgtm

/retest


myapp does not run due to Kotlin's failure to locate JDK tools

Steps to Reproduce

"Install" flutter by cloning this repo.
unpack the Android SDK command line tools to $HOME/Android and set it up, installing platform-tools, build-tools etc.
install JDK 8 (I'm on Ubuntu 18.04; the package here is openjdk-8-jdk).
all looks in order (including connected-device detection):

$ export ANDROID_HOME=~/Android && <path-to-flutter> doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.21.0-8.0.pre.98, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[!] Android Studio (not installed)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

create test-drive app as per the terminal-and-editor instructions: in my home directory:

<path-to-flutter> create myapp
---
...
...
Running "flutter pub get" in myapp...                               0.8s
Wrote 71 files.

All done!
[✓] Flutter: is fully installed. (Channel master, 1.21.0-8.0.pre.98, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices: is fully installed. (Android SDK version 28.0.3)
[!] Android Studio: is not available. (not installed)
[✓] Connected device: is fully installed. (1 available)

Run "flutter doctor" for information about installing additional components.

In order to run your application, type:

  $ cd myapp
  $ flutter run

Your application code is in myapp/lib/main.dart.

change dir to myapp and run:

cd myapp && <path-to-flutter> run

Expected results:
Presumably, an app should pop up on my phone (where I have enabled USB debugging, etc.).
Actual results:
A Gradle error:
~/myapp$ ANDROID_HOME=~/Android JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 ~/repos/flutter/bin/flutter run
---
Launching lib/main.dart on ONEPLUS A6013 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Kotlin could not find the required JDK tools in the Java installation '/usr/lib/jvm/java-8-openjdk-amd64/jre' used by Gradle. Make sure Gradle is running on a JDK, not JRE.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        11.0s
Exception: Gradle task assembleDebug failed with exit code 1

As you can see, I am even exporting the right JAVA_HOME variable. I have found occurrences of this  elsewhere, but the suggestions do not fix this: I have openjdk-8-jdk installed, the right JAVA_HOME, and the file tools.jar in $JAVA_HOME/lib/.

Edit
For what it's worth, if, in the myapp directory, I run ./Android/gradlew build the project does build successfully:
~/myapp$ ./android/gradlew build
---
> Task :buildEnvironment

------------------------------------------------------------
Root project
------------------------------------------------------------

classpath
No dependencies

A web-based, searchable dependency report is available by adding the --scan option.

BUILD SUCCESSFUL in 319ms
1 actionable task: 1 executed

Logs

Output of <path-to-flutter> doctor -v:
[✓] Flutter (Channel master, 1.21.0-8.0.pre.98, on Linux, locale en_US.UTF-8)
    • Flutter version 1.21.0-8.0.pre.98 at /home/chirvasitua/repos/flutter
    • Framework revision 77b4505c80 (22 hours ago), 2020-08-06 18:51:02 -0700
    • Engine revision cd3ea1e839
    • Dart version 2.10.0 (build 2.10.0-3.0.dev fcafd43f2c)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/chirvasitua/Android
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /home/chirvasitua/Android
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_265-8u265-b01-0ubuntu2~18.04-b01)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • ONEPLUS A6013 (mobile) • 141a3b63 • android-arm64 • Android 10 (API 29)

! Doctor found issues in 1 category.

Setting the relevant paths appropriately seems to solve this. In my case, I inserted the following snippet into a file sourced by .bashrc (I use bash as my shell):
# Java
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64

# Android
export ANDROID_HOME=${HOME}/Android
export ANDROID_SDK_ROOT=${HOME}/Android

# Flutter
export FLUTTER_HOME=${HOME}/repos/flutter
PATH=${FLUTTER_HOME}/bin:$PATH; export PATH

Hi @stuart-little,
Given your last message, do you feel this issue can be closed ?
Thanks.

Absolutely yes, and thank you for the fast reply!

Closing this as fixed.


Unable to build Marvin

ISSUE TYPE

Bug Report

COMPONENT NAME

TEST-TOOL

CLOUDSTACK VERSION

main branch

CONFIGURATION

OS / ENVIRONMENT

ArchLinux
SUMMARY

Marvin fails to build
STEPS TO REPRODUCE

rp@frami /tmp » git clone https://github.com/apache/cloudstack.git
Cloning into 'cloudstack'...
remote: Enumerating objects: 799392, done.
remote: Counting objects: 100% (592/592), done.
remote: Compressing objects: 100% (417/417), done.
remote: Total 799392 (delta 107), reused 442 (delta 60), pack-reused 798800
Receiving objects: 100% (799392/799392), 572.64 MiB | 19.77 MiB/s, done.
Resolving deltas: 100% (480675/480675), done.
rp@frami /tmp » cd cloudstack
rp@frami /tmp/cloudstack ±main » export JAVA_HOME=/usr/lib/jvm/java-11-openjdk                                                                                1 ↵
rp@frami /tmp/cloudstack ±main » mvn -P developer -pl :cloud-marvin
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< org.apache.cloudstack:cloud-marvin >-----------------
[INFO] Building Apache CloudStack marvin <IP_ADDRESS>-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[WARNING] The POM for org.apache.cloudstack:cloud-apidoc:pom:<IP_ADDRESS>-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.485 s
[INFO] Finished at: 2024-03-19T09:10:59+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cloud-marvin: Could not resolve dependencies for project org.apache.cloudstack:cloud-marvin:pom:<IP_ADDRESS>-SNAPSHOT: org.apache.cloudstack:cloud-apidoc:pom:<IP_ADDRESS>-SNAPSHOT was not found in https://repo.jenkins-ci.org/public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of repo.jenkins-ci.org.public has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

EXPECTED RESULTS

Marin successfully built

ACTUAL RESULTS

[ERROR] Failed to execute goal on project cloud-marvin: Could not resolve dependencies for project org.apache.cloudstack:cloud-marvin:pom:<IP_ADDRESS>-SNAPSHOT: org.apache.cloudstack:cloud-apidoc:pom:<IP_ADDRESS>-SNAPSHOT was not found in https://repo.jenkins-ci.org/public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of repo.jenkins-ci.org.public has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

[INFO] Apache CloudStack Plugin - Stratosphere SSP ........ SUCCESS [  4.379 s]
[INFO] Apache CloudStack Plugin - Network Brocade VCS ..... SUCCESS [  7.096 s]
[INFO] Apache CloudStack Plugin - Network VXLAN ........... SUCCESS [  4.194 s]
[INFO] Apache CloudStack Plugin - NSX Network ............. FAILURE [ 16.137 s]
[INFO] Apache CloudStack Plugin - Power Management Driver ipmitool SKIPPED
[INFO] Apache CloudStack Plugin - Power Management Driver nested-cloudstack SKIPPED
[INFO] Apache CloudStack Plugin - Power Management Driver Redfish SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image default provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image S3 provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image sample provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image Swift provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume CloudByte Provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume Datera Provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume Nexenta Provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume sample provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume Linstor provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume StorPool provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume Adaptive Base Provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume - Pure Flash Array SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume - HPE Primera SKIPPED
[INFO] Apache CloudStack Plugin - MinIO object storage provider SKIPPED
[INFO] Apache CloudStack Plugin - Simulator object storage provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Allocator Random  SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator LDAP . SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator MD5 .. SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator OAuth2 SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator PBKDF2-SHA-256 SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator Plain Text SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator SAML2  SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted SKIPPED
[INFO] Apache CloudStack Plugin - User Two Factor Authenticator TOTP SKIPPED
[INFO] Apache CloudStack Plugin - User Two Factor Authenticator Static Pin SKIPPED
[INFO] Apache CloudStack Framework - Spring Module ........ SKIPPED
[INFO] Apache CloudStack Secondary Storage Controller ..... SKIPPED
[INFO] Apache CloudStack Console Proxy .................... SKIPPED
[INFO] Apache CloudStack Console Proxy - RDP Client ....... SKIPPED
[INFO] Apache CloudStack Console Proxy - Server ........... SKIPPED
[INFO] Apache CloudStack System VM ........................ SKIPPED
[INFO] Apache CloudStack Client UI ........................ SKIPPED
[INFO] Apache CloudStack Framework - QuickCloud ........... SKIPPED
[INFO] Apache CloudStack Test ............................. SKIPPED
[INFO] Apache CloudStack Developer Mode ................... SKIPPED
[INFO] Apache CloudStack Developer Tools .................. SKIPPED
[INFO] Apache CloudStack apidocs .......................... SKIPPED
[INFO] Apache CloudStack marvin ........................... SKIPPED
[INFO] Apache CloudStack DevCloud4 ........................ SKIPPED
[INFO] Apache CloudStack DevCloud-KVM ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10:23 min
[INFO] Finished at: 2024-03-19T10:37:02+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cloud-plugin-network-nsx: Could not resolve dependencies for project org.apache.cloudstack:cloud-plugin-network-nsx:jar:<IP_ADDRESS>-SNAPSHOT: The following artifacts could not be resolved: com.vmware:nsx-java-sdk:jar:<IP_ADDRESS>.0, com.vmware:nsx-gpm-java-sdk:jar:<IP_ADDRESS>.0, com.vmware:nsx-policy-java-sdk:jar:<IP_ADDRESS>.0, com.vmware.vapi:vapi-authentication:jar:2.40.0, com.vmware.vapi:vapi-runtime:jar:2.40.0: Could not find artifact com.vmware:nsx-java-sdk:jar:<IP_ADDRESS>.0 in repo.jenkins-ci.org.releases (https://repo.jenkins-ci.org/releases/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :cloud-plugin-network-nsx

@rp-
can you try #8772 ?

@weizhouapache
After that it worked and now also
mvn -P developer -pl :cloud-marvin
works.

But the question for me is, isn't Marvin just a python tool/package? What has it todo with apidoc? or why is apidoc failing in the beginning.

@rp-
the marvin module automatically generates the python files for CloudStack APIs.
the list of CloudStack APIs is generated by apidoc module which has dependencies on cloud-server and cloud-client-ui, so you need to compile the whole project at first.

Then this should maybe added to the Marvin wiki page

added full build info to the wiki


View multiple subreddits in tabs

It would be great if we could have tabs for keeping different subreddits loaded/opened all the time and quickly switch between them.
Futhermore, rtv could run as a "single instance" and it could load the reddit links/urls to separate tabs. This way we could handle reddit links coming from external applications and also the rtv -l  command could open the link in a new tab (in the already running rtv instance).
Example image (see the top bar, it could be the tab list) (optional: every tab could be numbered automatically, like in some Vim-like browsers). (note: the image is just a quick mockup I made with GIMP).

Hi, thanks for the feedback!

It would be great if we could have tabs for keeping different subreddits loaded/opened all the time and quickly switch between them.

If you're doing that, why not just use tmux to manage the windows/tabs? On the other hand, I could see adding something like a subscription toolbar to make it easier to select from your favorite subreddits.

Futhermore, rtv could run as a "single instance" and it could load the reddit links/urls to separate tabs. This way we could handle reddit links coming from external applications and also the rtv -l command could open the link in a new tab (in the already running rtv instance).

I'm not sure I understand what you mean by a "single instance". Do you mean like a daemon? It sounds like your proposal would mean that you wouldn't be able to open two instances of rtv at once.

Yes, tmux could be used, but not everyone uses tmux, I just thought a "native" tab handling would a be better solution. And despite of using tmux, every rtv instance is running in a separate process using "extra" resources. Maybe a tabbed mode could use a single process but I guess that would mean a "daemon" mode.
For the "single instance": I mean, like a web browser. It's running, using tabs, and for example when I click on a link in an external application it gets opened in the already running browser, in a tab, instead of opening a new window. So for example when I launch this command: rtv -l redditlink it would be opened in a tab in the already running rtv instance.
If this would be difficult to implement and can't be done without drastic code changes then feel free to close this issue, I just had this idea and I thought I would share it. :)

On the other hand, I could see adding something like a subscription toolbar to make it easier to select from your favorite subreddits.

I think that would be nice.


Timer setup for DMA mode

Hi Maudeve,
When I enable the timer it says its undeclared in z_display_ILI94XXX.h during compiling.
../Core/Inc/z_displ_ILI9XXX.h:124:41: error: 'htim14' undeclared (first use in this function); did you mean 'htim'?
124 | #define TGFX_T                          htim14
|                                         ^~~~~~
../Core/Src/z_displ_ILI9XXX.c:1189:20: note: in expansion of macro 'TGFX_T'
1189 |         if (htim==&TGFX_T){
|                    ^~~~~~
../Core/Inc/z_displ_ILI9XXX.h:124:41: note: each undeclared identifier is reported only once for each function it appears in
124 | #define TGFX_T                          htim14
|                                         ^~~~~~
../Core/Src/z_displ_ILI9XXX.c:1189:20: note: in expansion of macro 'TGFX_T'
1189 |         if (htim==&TGFX_T){
The main.cpp has the declaration
TIM_HandleTypeDef htim14;
//--------------Solution-------------------
You need to extern define the timer inside z_displ_ILI9XXX.c
Add the lines at the top under the spi declaration
#ifdef TGFX_TIMER
extern TIM_HandleTypeDef TGFX_T;
#endif
// Also change the Lines in z_displ_ILI9XXX.h to (sub in your timer port)
#ifdef DISPLAY_SPI_DMA_MODE
#define TGFX_TIMER	TIM14
#endif
#define TGFX_T		htim14

Hi kmacriver,
that sound strange because I never got the error you mention.
After some search I found the reason why!
On top of "z_displ_ILI94XX.c", you should see:
#ifdef DISPLAY_DIMMING_MODE
extern TIM_HandleTypeDef BKLIT_T;
extern TIM_HandleTypeDef TGFX_T;
#endif

That's a mistake: the extern declaration of TGFX_T is submitted to the dimming backlight.
It seems I didn't tested last updates with no "dimming".
And I suppose you didn't use it.
declarations have be changed to:
#ifdef DISPLAY_DIMMING_MODE
extern TIM_HandleTypeDef BKLIT_T;
#endif
extern TIM_HandleTypeDef TGFX_T;

Fixed.
Thank you!

Hi Maudeve,
I am looking at the differences between in ILI9488 and the ILI9486. Both are the same resolution (320X480). The ili9488 does only RGB666 and the ILI9486 does both RGB565 and RGB666. This might explain what you are seeing with the V2/V1 issue, one of your displays may be a ILI9486 which are relatively new. There is a command: Read display identification information (04h) that might help explain what you are seeing. I don't have a ILI9486 display so unfortunately I can't do this.


Use case: Multiple applications per single Identity Server

Hello,
We have a scenario in which we want to use Identity Server to give access to multiple applications to a set of APIs. Each Application has one or more clients, and its own roles and claims (ex: a user can be administrator for one of the applications and regular customer for others).
The login flow would be as follows:

User requests login for client X
IdentityServer proceses the login and checks the user's roles for the application to which Client X belongs. It then adds to the generated token only those claims that the user has according to the roles for Client X's parent aplication.

I tried to figure out a way in which I could achieve this using the built-in functionality, but I could not find anything. If there is something that I am missing please let me know, but it seems that multiple parent applications are not supported. After some research I came to the conclusion that the following changes are needed:

Create an Application class
Create a custom IdentityUserRole class that also contains the application ID
Create a custom Client class that also references the application to which it belongs
Create a custom `IProfileService' class that will only return the claims for user's roles in the application to which the current Client belongs

All of these are doable, but the problems come when I am trying to extend the Client class, and add an extra column. There is no way to specify my custom implementation of the class in the configuration of IdentityServer. Besides that, because Client is part of the ConfigurationDbContext, and the derived class is part of my own DB Context, the migrations are not generated properly.
It would be nice to have something like ConfigurationDbContext<TClient> and to be able to specify the custom ConfigurationDbContext when configuring IdentityServer like so: AddConfigurationStore<ConfigurationDbContext<TClient>>(connStr, options)

In short: you don't.
IdentityServer emits identity - no permission. Check the permission in the app/api
https://leastprivilege.com/2016/12/16/identity-vs-permissions/

Hi, and thanks for your response. I understand the idea that Identity Server is just a token provider service. However, I wasn't talking about setting permissions, but rather to be able to host multiple applications on a single IdentityServer. We would be able to define roles on a "per-application" basis, and when a token is generated to only contain the claims for the app for which it is requested.
Example:

I have 2 services, IdentityServer and TranslationServer and 2 apps running on them:

App1 for which I have roles: Administrator (claims "edit-translation") and Customer. App 1 has 2 clients:
* Web App 1
* Mobile App 1
App2 for which I am only a customer, and only has a "Web app 2" client

When I request a login from Web App 1 or Mobile App 1 I want to have returned a token that contains the "edit-translation" claim. When I request a login from Web App 2 I want to have a token that doesn't contain "edit-translation".
With the current situation, I can only be an Administrator for both apps, or a customer for both apps.

No - what I said is that IdentityServer emits identity information - not permissions. Your applications check the permissions based on the identity.
That said - you have the client id in the profile service - so you can emit whatever claim you want.

I have a question on what you said:
"IdentityServer emits identity - no permission. Check the permission in the app/api"
Do you have an example of how to extend the User.Identity to add permissions specific for this API?
Do we extend the authorize attribute to get the permissions for the user / client from our API DB or is there some other hook to use?

Try to use something like in the following example:
https://youtu.be/5OUQZAvxZuA?t=30m40s

Do you have an example of how to extend the User.Identity to add permissions specific for this API?

I think you're missing the point. User.Identity models the identity of the user, which should be different than the user's permissions. As for how you check authorization, that's up to your app.

Are we good to close this, or do we have something pending for this issue?

Hello,
Yes, it's ok to close. I read your article on Identity vs Permissions and i understood your point.
Thank you

j


wf step create process bug

http://ojs.dev/journal/1/step/create

error not appears on prod mode but i can not create step on dev mode.

fixed with workflow bundle


feat: run starknet-devnet in the background when not found.

Feature Request
When starting the RPC server, it will be interesting if there is no need to run the starknet-devnet and deploy Kakarot when the STARKNET_NETWORK == "devnet".
This has already been done for the sandbox here.
The above feature makes it a smooth and fast experience for the end-user.
Describe Preferred Solution
We can run this in a subprocess and stop it when our RPC service is stopped.
If the feature request is approved, would you be willing to submit a PR?
Yes

Thanks for opening the issue:)! Assigned you


Github guideline for branching and release process

🗣 Description
This issue covers documenting the Github guideline for branching strategy, issue creation and review process.
Closes #357
Closes #358
Closes #364
💭 Motivation and context

Document a standard process for creating issues and reviewing PRs
Maintain a branching strategy closely aligned with Gitflow for code and baseline updates during development and release process

🧪 Testing

Review the Github guideline and Branching structure document
Link to docs:
https://github.com/cisagov/ScubaGoggles/blob/357-document-the-github-guidelines/DEVELOPMENTGUIDE.md
https://github.com/cisagov/ScubaGoggles/blob/357-document-the-github-guidelines/BRANCHINGSTRUCTURE.md

✅ Pre-approval checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] If applicable, All future TODOs are captured in issues, which are referenced in the PR description.
[x] The relevant issues PR resolves are linked preferably via closing keywords.
[x] All relevant type-of-change labels have been added.
[x] I have read and agree to the CONTRIBUTING.md document.
[x] These code changes follow cisagov code standards.
[x] All relevant repo and/or project documentation has been updated to reflect the changes in this PR.
[x] Tests have been added and/or modified to cover the changes in this PR.
[x] All new and existing tests pass.

✅ Pre-merge Checklist

[x] This PR has been smoke tested to ensure main is in a functional state when this PR is merged.
[ ] Squash all commits into one PR level commit using the Squash and merge button.

✅ Post-merge Checklist

[ ] Delete the branch to clean up.
[ ] Close issues resolved by this PR if the closing keywords did not activate.

NOTE: only the reviewer should click the "Resolve conversation" button for the feedack.

One exception to this we might want to call out: if a review makes suggested backs and you click "apply suggestion," GitHub will automatically resolve the conversation.


Episerver AdminUI JSON import does not work if language not active

We have the setup that in development environment  we have only 2 languages activated in Episerver CMS, but in production 14. We need to synchronise the resources in both ways. If we export JSON on production and try to import in development, we get the following message and the import is not possible:
'Importing language cs, da, fr, hr, hu, it, nl, pl, ro, sk, sl, tr is not available in current EPiServer installation.'
It seems to be an extra check, I do not really understand the reason for this, but it makes the import impossible with JSON. We do not want to activate the same set of languages in the target environment? All the resources in all languages were imported in development environment with the migration tool, so they are there and there should be no reason not to be able to import then.
Using DbLocalizationProvider.AdminUI.EPiServer version 5.6.0.

hi,
there was a reasoning behind this once import was available also for editors. idea was that you wouldn't be able to modify resource translations for languages that are not enabled / or you don't have permissions to. now when import is available for admins only - this limitation does not make sense anymore.
will be fixed in upcoming v5.7
thx!

hi,
Great, thank you!

Hi,
I updated the packages in our project to version 5.7.0, now I get the following error message when I try to import JSON: 'Import failed! Reason: Object reference not set to an instance of an object.'. I also get this message if the enabled languages are the same between systems, and also version 5.6.0 (I did not tested this scenario earlier).
Should I create a new issue? Where can I get some logs which can help you, in our Episerver Log I could not find anything.
Thanks.


[textanalytics] Improve/fix documentation

Models should have better descriptions in the reference documentation.
Keyword arguments are not showing up in docs.microsoft.com? see here: https://docs.microsoft.com/en-us/python/api/azure-ai-textanalytics/azure.ai.textanalytics.textanalyticsclient?view=azure-python-preview
(issue #9562 )
Service limitations should be in the reference documentation -- batch size limits, document length limit, encoding, etc.
Be more clear about language and id in the ref docs
Add more specific type annotations for credential

Closed with #9630


Content not showing when printing

When printing newly loaded page, content outside of viewport is not printing

Look at #105

Ah, this is worth considering to fix in css. Right now I'm not checking for print media query and just hide anything with data-aos when those elements don't have aos-animate class.
Good point @DavidMarekCZ. Thanks for pointing this! :)

Came across the same issue in my last project and solved it with a wildcard rule like this
@media print{
		*[data-aos*=""] {
		display: block !important
	}
}

Adapting burnaDLX's solution (many thanks for that), I am using the following to reset the scaling and transformation so it prints as if the animations have finished:
@media print{ 	[data-aos] { 		display: block !important; 		opacity: 1 !important; 		transform: translate(0) scale(1) !important; 	} }

The above workaround doesn't work in my case, since I've got very specific CSS rules for print which removes most images entirely to print my site as a classic book-style document.
Is there a way to disable AOS entirely for print?
I experiented by wrapping an @import rule for aos.css in a @media screen but it doesn't seem to work.

I wrapped all AOS styles inside @media screen {} in v3.0.0-beta.3. Enjoy!
If you'll encounter any issues let me know :)


array_get when not used with Laravel

Hi, I want to used you library in a PHP script without using Laravel. In the TPLinkDevice.php class you use array_get on line 81.
I'have create a similar function to the the job of the array_get, I don't know if you can add it to the repo or if it make sense.
Thanks

Ah yes. I did not notice I had used a laravel function in there.
Do you want to send a PR and I can add it to the library?
Is the library working for you otherwise?

I can make the PR (first time!).
I want to add some information to ElasticSearch, so I will test better when everything in done and collecting data.

Fixed with #2


`require': cannot load such file -- redis (LoadError)

I had use Redis-dump to dump remote Redis Server data, but i got this error

the same issue

same issue here.

gem install redis


Stop curl at specific point

Im interested if its possible to stop the curl when parts of it where fetched
let v:Arc<Mutex<String>> = Arc::new(Mutex::new(String::new()));
    let temp = v.clone();
    easy.write_function(move |data| {
        temp.lock().unwrap().push_str(std::str::from_utf8(data).unwrap());
        if temp.lock().unwrap().contains("var ...") {
            //TODO: stop the request
        }
        Ok(data.len())
    }).unwrap();
    easy.perform().unwrap();
    ```

No, libcurl is not designed to be interrupted during a transfer when using the easy API; however, you can halt a transfer at any time when using the multi API. I recommend looking up some guides on using the curl multi API. The entrypoint to the multi API in the Rust bindings is the aptly-named Multi type.
Hope that helps!


[Castle Falkenstein] Add translation strings to placeholders + minor fixes

Submission Checklist
Required

[ ] The pull request title clearly contains the name of the sheet I am editing.
[ ] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[ ] The pull request makes changes to files in only one sub-folder.
[ ] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

Changes / Description

Add translation strings to placeholders and some minor typo fixes on HTML and Translation.JSON

Character Sheet Info Roll20 Internal Use only.


Error adding OSC source in V2.0.4

Hi,
I'm new to Tally Arbitor and have just installed 2.0.4
Trying to add a OSC source and I keep getting the error "Not all fields filled out!"
It's either a bug or I'm doing something wrong. Here is what I'm doing....
I've logged into the settings page.
Next to "Sources" I click "+Add"
Dialogue box pops up.
Under "--Choose Source Type--" I scroll down and select "Open sound control (OSC)"
Under "Source Name" I call it "Arduino" (Pretty sure this a label for me and doesn't matter)
Under "Port" I enter "8000" (have tried lots of different port numbers)
Click "Ass Source"
I get an "Error" dialog box "Not all fields filled out!"
I've got no other fields to fill out?? What am I doing wrong? Does the Port field need to be in a special format?
I've also tried this from my phone logged into [server laptop IP]:4455 and get the same result.

TA Config.zip

Would you mind uploading for config.json file (located in appdata) so I can mirror your config on my end?

Would you mind uploading for config.json file (located in appdata) so I can mirror your config on my end?

Yep have done that.
Also forgot to mention that I have successfully added other source types.

Wow. I must be blind. Sorry about that.

Wow. I must be blind. Sorry about that.

Nope I just added it.

Well.... now that that's behind us. It appears that it's an issue on our end. I'm working on a fix for that now and should have one here soon.

ok perfect, good to know I am smart enough to fill in two fields! :-)

Yep! Just PRed a fix for the issue. If you want to have a look: #138

@rgw132 Version 2.0.5 is live! It contains the bug fix for your OSC problem.


[Feature Request] Activity specific worker tuning

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

My application is a batch-oriented ETL pipeline. There are different async activities that interact with a different third-party API throughout the workflow. For example, the geocoding activity uses Google Places API, another activity might use the OpenAI API, etc.
Each activity is subject to external rate limits.
While I can control rate limiting within my code, I can't easily control the concurrency of activities executed by the worker. This means when multiple activities of the same type are running, they are in contention for the rate limit, and simply take longer to finish or worse the activity can end up timing out due to the global throttling.
My solution so far has been to deploy a separate worker for each activity and set the max_concurrent_activities worker option to control the concurrency and allow one or two activities to complete as quick as possible. However, this has created a lot of DevOps overhead and it can be hard for people on the team to set the worker up correctly when they add a new activity that has a rate limit.
Describe the solution you'd like

I saw the experimental WorkerTuner option added in this PR: https://github.com/temporalio/sdk-python/pull/559.
It would be great for this to support tuning for specific activities, e.g. defining the number of slots for a given activity name. This would allow a single async worker to handle all of my activities but only let a controllable number of each type run at any given time.
Additional context

I saw there is a Go- (and Java I think) based example for creating a Mutex Workflow that could control concurrency globally. This might be a better overall solution, but I struggled to apply this pattern in Python. I wouldn't expect the worker tuning to prevent contention if you scaled out the number of workers. However, in my solution, I have specifically disabled autoscaling on this worker for this reason, so controlling this at the worker level would be a lot more simple.

This will not work with how slots are used. You should use separate task queues if you need separate tuning options.
A slot is a reserved spot to request work from a task queue from the server (and if no slot available, we don't ask for work). The activity name is not known at slot reservation time. Granted when we expand the slot supplier interface in Python to allow custom implementations, you can use the existing scheduled activities to help you derive the next slot reservation, but it will still always be per task queue because Temporal distributes work to workers at the task queue level not the activity name level.

Thanks, @cretz that does make sense.
I think then the only other option is the mutex workflow (at least if I understand it). Basically, I just need to avoid scheduling an activity altogether if there's already a given number of them executing already.
If I have a workflow and the next activity to schedule is geocoding, I assume the mutex workflow would allow me to simply make the calling workflow wait until the resource can be acquired before it can schedule it.
I can't allow the workflow to schedule the activity and make the activity wait on a semaphore because it would eventually timeout if 100s of these activities were scheduled during a short period.
Happy for you to close the issue 👍🏻

I think then the only other option is the mutex workflow

I think you should use separate task queues (i.e. separate workers) for activities that need to have their concurrency limited separately.


Update cmd palette tooltip

Context
Command palette support was added in #14 #102.
There are a few minor shortcomings with it, though:

The tooltip text says, "Open command palette (CMD+k)".
Although the text says 'CMD', the code actually uses [Meta Key] + k, where Meta Key is CMD on mac or WINDOWS KEY on windows. Without knowing that, however, Windows users might suspect that the command palette only works for mac users.
The cmd palette wasn't tested on Windows
I'm on Mac and have never tested that the command palette works on Windows.

Tasks

[ ] Update tooltip text so that it shows "[CMD key] + k" for mac users and "[Windows key] + k" for windows users*

where [CMD key] is the the command icon and [Windows key] is the windows icon -- not the actual text of "CMD" or "Windows key". Try using a <span> that contains an <SVG> of either the windows or mac icon.
Since we're switching to an icon library (#129), please wait on this part until we decide what icon library to use.

If you're a Windows user:

[ ] Test it works on Windows and post a comment here to confirm

See the  'custom' section below for an example of how to use navigator.platform to accomplish this
https://github.com/albingroen/react-cmdk


Should we use 'T' instead of 'BT' here? I'm not sure either

https://github.com/karpathy/llm.c/blob/4c27dd923b1e93ee74d4d8abb5d6b6f617081cef/dev/cuda/matmul_forward.cu#L75

Yeah I think so. I was looking at the same thing trying to wrap my head around why the matmult does not report any errors when int b = bt / BT; is used. Maybe because it's a simple summation we don't notice it?
/w int b = bt / BT; Wrong indexing
``
matmul_forward_cpu_0:
[0, 0]
[0, 1]
[0, 2]
[1, 0]
[1, 1]
[1, 2]
[2, 0]
[2, 1]
[2, 2]
matmul_forward_cpu_1:
[0, 0]
[0, 1]
[0, 2]
[0, 3]
[0, 4]
[0, 5]
[0, 6]
[0, 7]
[0, 8]

/w **int b = bt / T;** Proper indexing

matmul_forward_cpu_0:
[0, 0]
[0, 1]
[0, 2]
[1, 0]
[1, 1]
[1, 2]
[2, 0]
[2, 1]
[2, 2]
matmul_forward_cpu_1:
[0, 0]
[0, 1]
[0, 2]
[1, 0]
[1, 1]
[1, 2]
[2, 0]
[2, 1]
[2, 2]

```c
    /*  Reference Implementation */

    void matmul_forward_cpu_kernel(int b,
                                          int t,
                                          float* _Out,
                                          float* _In,
                                          float* _Weight,
                                          float* _Bias,
                                          int T,
                                          int C,
                                          int OC) {
        float* x = _In + b * T * C + t * C;
        float* y = _Out + b * T * OC + t * OC;
        for (int o = 0; o < OC; o++) {
            float val = (_Bias != null) ? _Bias[o] : 0.0f;
            float* w = _Weight + o * C;
            for (int i = 0; i < C; i++) {
                val += x[i] * w[i];
            }
            y[o] = val;
        }
    }

    static void matmul_forward_cpu_0(float* _Out,
                                       float* _In,
                                       float* _Weight,
                                       float* _Bias,
                                       int B,
                                       int T,
                                       int C,
                                       int OC) {
        printf("matmul_forward_cpu_0:\n");
        for (int b = 0; b < B; b++) {
            for (int t = 0; t < T; t++) {
                printf("    [%d, %d]\n", b, t);
                matmul_forward_cpu_kernel(
                    b,
                    t,
                    _Out,
                    _In,
                    _Weight,
                    _Bias,
                    T,
                    C,
                    OC);
            }
        }
    }

    void matmul_forward_cpu_1(float* _Out,
                               float* _In,
                               float* _Weight,
                               float* _Bias,
                               int B,
                               int T,
                               int C,
                               int OC) {
        int BT = B * T;
        printf("matmul_forward_cpu_1:\n");
        for (int bt = 0; bt < B * T; bt++) {
            int b = bt / BT; // This should be bt / T yet validate_result passes!?
            int t = bt % BT;
            printf("    [%d, %d]\n", b, t);
            matmul_forward_cpu_kernel(
                    b,
                    t,
                    _Out,
                    _In,
                    _Weight,
                    _Bias,
                    T,
                    C,
                    OC);
        }
    }

    void validate_result(float* device_result, float* cpu_reference,
        string name, int num_elements, float tolerance=1e-4f) {
        for (int i = 0; i < num_elements; i++) {
            // print the first few comparisons
            if (i < 5) {
                printf("%f %f\n", cpu_reference[i], device_result[i]);
            }
            // ensure correctness for all elements
            if (Math.Abs(cpu_reference[i] - device_result[i]) > tolerance) {
                printf("Mismatch of %s at %d: %f vs %f\n", name, i, cpu_reference[i], device_result[i]);
                return;
            }
        }
        memset(device_result, 0, num_elements * sizeof(float));
        printf("OK");
    }

float* h_Out = (float*)malloc(B * T * OC * sizeof(float));
float* h_In = (float*)malloc(B * T * C * sizeof(float));
float* h_Weight = (float*)malloc(OC * C * sizeof(float));
float* h_Bias = (float*)malloc(OC * sizeof(float));

for (int i = 0; i < B * T * OC; i++) { h_Out[i] = randf(&seed); }
for (int i = 0; i < B * T * C; i++) { h_In[i] = randf(&seed); }
for (int i = 0; i < OC * C; i++) { h_Weight[i] = randf(&seed); }
for (int i = 0; i < OC; i++) { h_Bias[i] = randf(&seed); }

float* d_Out = (float*)malloc(B * T * OC * sizeof(float));
float* d_In = (float*)malloc(B * T * C * sizeof(float));
float* d_Weight = (float*)malloc(OC * C * sizeof(float));
float* d_Bias = (float*)malloc(OC * sizeof(float));

for (int i = 0; i < B * T * OC; i++) { d_Out[i] = randf(&seed); }
CopyMemory(d_In, h_In, B * T * C * sizeof(float));
CopyMemory(d_Weight, h_Weight, C * OC * sizeof(float));
CopyMemory(d_Bias, h_Bias, OC * sizeof(float));

matmul_forward_cpu_0(h_Out, h_In, h_Weight, h_Bias, B, T, C, OC);
matmul_forward_cpu_1(d_Out, d_In, d_Weight, d_Bias, B, T, C, OC);
validate_result(d_Out, h_Out, "d_Out", B * T * OC, 1e-1f);

        float* x = _In + b * T * C + t * C;
        float* y = _Out + b * T * OC + t * OC;

with b = bt / BT &  t = bt % BT, b is always zero but t increases so we end up in the same index. So naturally matmul will produce the same thing.

Your answer cleared up some of my doubts.
https://github.com/karpathy/llm.c/blob/eef92c3fbe7e2787bf7c73c07effaa5a4e951427/dev/cuda/matmul_forward.cu#L83
out[bt * OC + oc] = val;
I think the term in bold is still problematic.

thanks, your detailed analysis solved my doubts


[SwiftSyntax] Make traits conform to Syntax

Previously, traits didn't require conformance to Syntax, so you couldn't return a ParenthesizedSyntax from a visitor that returned Syntax. This just ensures all the traits are also Syntax.

@swift-ci please smoke test

@swift-ci Please clean test Linux platform

@swift-ci please smoke test and merge

Oops we overlapped @nkcsgexi 😅


no @Basic(optional = false)

I'm having a field in the model file that is not optional and thus not nullable. When i now generate the source code then field receives the annotation @Column(nullable = false) and also a @Basic annotation - but not @Column(nullable = false. Is there a reason for that behaviour? As far as i understand from this post adding this would lead to validating the value at runtime.

May you please attach the jpa modeler file and explain in more details.

@Basic(optional = false) Issue has been fixed , please install the v2.6.2 for NetBeans 8.2 from here http://jpamodeler.github.io/page.html?l=p/download


Uplift and v1beta1 channel

Fixes #35

/lgtm /hold Giving others a chance to take a look

/hold /lgtm

/lgtm

Holding to allow others a chance to look at the PR

/unhold