Integrate with node's event loop

This is a tough one... But basically since node maintains it's own event loop, it makes it rather hard to make Objective-C's NSRunLoop or CFRunLoop integrate with it.
Currently, some code as simple as this will crash your terminal tab, since node repl runs in raw mode and we're subsequently starting a new event loop on the main thread, even Ctrl+C won't get you out:
var $ = require('NodObjC')
$.import('Foundation')
$.NSRunLoop('currentRunLoop')('run')

There is only one solution that I can think of: Write a Cocoa backend for libev (or libuv) so that it's underlying event loop is NSRunLoop. So far I have not looked into what that would entail, but I'm assuming it's not a trivial task...
Any additional insight on the subject would be appreciated in the meantime.
/cc @ry

Doing this right -- having access to a single tick in libuv -- is probably not that hard to add to libuv

What about the inverse? Apple doesn't offer a run_once() type of function, but the various games on iOS probably have to integrate with the event loop somehow. Here looks like one example: http://www.71squared.com/2009/04/maingameloop-changes/
I'm currently playing around with some workaround code like:
function tick () {
  while ($.CFRunLoopRunInMode($.kCFRunLoopDefaultMode, 0.02, 1) == $.kCFRunLoopRunHandledSource);
  process.nextTick(tick)
}
// Begin the ghetto event loop
tick();

It actually seems like it's working! I'm going to do some more experimenting. The only downside with a technique like this is that it would require some NodObjC-specific way of starting the event loop, like $.startLoop() or something...
I would also like to experiment with the inverse, like you're talking about @aredridel, but that looks like it will be a little bit tougher, especially if I want to support node <= 0.6.x (node 0.7.x already has uv_run_once()).

That makes sense.
You could special-case that API and do it behind the scenes... Or just document that NodObjC needs a special main loop.

Some non-UI NSMetadataSearch example code leveraging the working event loop made possible by pull request 56. The example monkey patches in the absence of the pull request being applied.

@shanewholloway Have you figured out a way to make this EventLoop class replace app('run'), i.e. in the NodeCocoaHelloWorld.app example app?

Sure. Updated pull request #56 with revised NodeCocoaHelloWorld.app example app powered by EventLoop module.

Are you a god?

Thanks for the high-praise! I've just been here before in a cross-platform C/C++ library with bindings for Node and Python. ;) Most of the work is in learning Node's ffi, ref, and NodObjC specifics. Happy to help out – the knowledge isn't doing anyone good stuck in my head! Can't wait to see what the community does with it.

@shanewholloway VERY impressive. Your'e the type of guy who if he has a few hours of free time runs a 100 mile marathon, saves a bald eagle... from a shark.
Well done.
+1 for merge.

@shanewholloway I'm curious as to why on your gist example, the "applicationDidFinishLaunching" callback never gets invoked. Any thoughts there?

Apologies for the oversight. Forgot to add the call to app('finishLaunching') toward the end. Revised by iPhone, so gist change not yet verified. See other gist I put together for question in pull request #56 that did work last night.

Closing. Thanks again @shanewholloway :)

I played with Shane's gist of Jan 14, replaced setInterval by setTimeout to just verify that it works, but not add more load. I observed that helloworld2.js sitting there waiting consumes about 42% of my CPU (Core i7 mac mini) using the EventLoop appraoch.
Moving back to app('run') - obviously the timeout log does not appear any more - the CPU is more or less 0%
Is it expected that the integrated event loop is as "busy"?
The event loop integration works really well, but it seem quite expensive ...

Yes, a CPU-intensive event loop is the expected behavior of this implementation example. The specific combination I put together for the sample is written to go "flat-out", running the Cocoa event loop non-blocking. This will return control of the process to NodeJS for additional javascript-land processing.
A real GUI app will want to tweak untilDate argument in eventLoopCore to a date a little into the future so the process blocks politely in the Cocoa event loop, providing a responsive GUI. You can try this by setting the value to $.NSDate('distantFuture') – you should see your CPU utilization drop to low single digits. However, doing so will starve out the NodeJS event loop.
This balance is why I put EventLoop implementation forward as an example, but not yet as a package. The code is good enough, hopefully, to be forked and improved upon. But I wasn't able to put enough care and thought into the API to provide control over that balance yet. (That pesky day job…) And there are other concerns as well – for instance, I'd suggest looking into cluster module style forking approach to separate GUI and server processes.

Ideally we would be able to have libuv poll the Cocoa event loop fd and be notified by a JavaScript event whenever there's Cocoa events to process. This would give the optimal CPU usage / responsiveness.
@shanewholloway Do you know if there's any possible way to poll the event loop file descriptor, or something equivalent to that?

Possibly related: http://www.cocoabuilder.com/archive/cocoa/224547-questions-about-nsapplication-run.html#224616

If you can require Leopard, take a look at CFFileDescriptor.  Prior to
Leopard, you can use CFSocket with any file descriptor, so long as you don't
use the socket-specific parts of that interface.

I do indeed require Leopard for other reasons (my Cocoa bridge uses
the Objective C 2.0 runtime API) so that's not an issue. This should
be an easy fix, since my non-blocking I/O code has pluggable backends;
I can use the Core Foundation run loop on OS X and select() on other
Unices. Looks I can solve the Exposé problem I mentioned in my
original e-mail, as well as the pesky 1-3% CPU usage when idle, and
get rid of some hackish code, in one fell swoop.

@TooTallNate I do not know. I would suspect a collection of descriptors.

@shanewholloway I played around with untilDate but did not find a great balance between CPU usage (let's say 1 digit percentage) and GUI responsiveness.
I like your idea about cluster module so I started looking into it. One problem is that server process and GUI process need to communicate. The first idea of using a rpc library like dnode does not work, since GUI process does not react on sockets driven by node eventloop.
Looks like one needs some rpc approach that leverages Cocoa for network connectivity in GUI process and can use some standard node stuff  in server process. Need to do some further research ...

I know this is old but for anyone else wondering how to integrate node/xxx event loop with cocoa:

you need something like setImmediate to "tick" forever (in non-blocking way)
you get next timeout/interval (libuv_backend_timeout)
you wait for cocoa events with that timeout (block) like this
you have a thread which will do kevent(libuv_fd, null, empty_dest_kevent, 1, null)
and if it returns anything >0 you know there's a pending nodejs/libuv event (I/O is ready, etc.) so you need to wakeup cocoa (with glfw its glfwPostEmptyEvent and here's how they do it)

It took me a while but it actually works perfectly and it has very low CPU overhead.


Mossy: Aggregate view edit table headings

Can delete the "Grouped by" and "Table of node"

Updated table heading in Aggregate View. Change deployed to mossy.


Upgrade maturin to 0.13.0

Everything works fine: https://github.com/samuelcolvin/pydantic-core/actions/runs/2645171602

Thanks


Local package collection

@cruhland @larioj
Wohoo!! PR is finally ready for review. Let me know if we should look at it in person.

Thanks for the review @cruhland. I'll be pushing my changes ASAP.

Thanks for the review @cruhland. Back to you :)

@jsancio one minor comment, LGTM whenever you're ready!


Fix Start and Stop instances button still enabled after being clicked once

Description
Currently when clicking Start or Stop button on a cluster instance, when loading is terminated the button is still in enabled state.
The issue is rooted in the fact that instances is continuously fetched from the backend, its content changes, but the selectedInstances keeps a reference to the old/stale value.
This PR aims at solving this issue by obtaining selectedInstances value directly from instances through a filter operation.
How Has This Been Tested?

Verified that when clicking Stop button after the loading state the button is disabled
Verified that when clicking Start button after the loading state the button is disabled

Screenshots

PR Quality Checklist

[ ] I added tests to new or existing code
[ ] I removed hardcoded strings and used react-i18next library (useTranslation hook and/or Trans component), see an example here
[ ] I made sure no sensitive info gets logged at any time in the codebase (see here) (e.g. no user info or details, no stacktraces, etc.)
[ ] I checked that infrastructure/update_infrastructure.sh runs without any error
[x] I checked that npm run build builds without any error
[x] I checked that clusters are listed correctly
[x] I checked that a new cluster can be created (config is produced and dry run passes)
[ ] I checked that login and logout work as expected

In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This solves issue #39


Consider adding support for NTRU algorithm (sntrup761)

release: openssl-3.0.5
Hello. Post-quantum cryptographic primitives<EMAIL_ADDRESS>and<EMAIL_ADDRESS>were introduced in OpenSSH respectively in v. 8.5, now as default in v. 9.0, and v. 6.5, promoted default cipher in v. 6.9. Could that existing support for this NTRU algorithm, paired with the X25519 ECDH key exchange, be a source of motivation justified to add native support for KEM in TLS v. 1.3 to OpenSSL? The latter appears to lack that support as it can be attested by openssl list -kem-algorithms.

We only accept algorithm implementations which have been standardised by a recognised national or internal standards body. AFAIK there is no such standard for NTRU. It's also worth noting that NIST has recently decided NOT to standardise NTRU and have instead selected CRYSTALS-Kyber for standardisation. So it doesn't seem appropriate for us to incorporate NTRU any time soon.

Correction needed; my fault, i should have noticed it. chacha20-poly1305 isn't part of the PQ algorithm family but an AEAD. AFAIK it is out of scope for PQ work.

Do note that it's always possible to put together a provider for what you want.

OpenSSLNTRU makes it possible. It also supports a second NTRU Prime parameter set, sntrup857. As a technical demonstration it could be experimented.

When thinking to it; chacha20-poly1305, not a PQ algorithm. Is that even so? The assertion that it is one as well as any other symmetric cipher, might find support in the following observation: None of known quantum attacks against them are statically more efficient than the Grover search. That implies the following assumptions: a suitable key size (bit value not too small), and no known specific Quantum attacks against them.

When thinking to it; chacha20-poly1305, not a PQ algorithm. Is that even so? The assertion that it is one as well as any other symmetric cipher, might find support in the following observation: None of known quantum attacks against them are statistically more efficient than the Grover search. That implies the following assumptions: a suitable key size (bit value not too small), and no known specific Quantum attacks against them.

We only accept algorithm implementations which have been standardised by a recognised national or internal standards body. AFAIK there is no such standard for NTRU. It's also worth noting that NIST has recently decided NOT to standardise NTRU and have instead selected CRYSTALS-Kyber for standardisation. So it doesn't seem appropriate for us to incorporate NTRU any time soon.

Would an IETF standards-track RFC qualify for this?

Would an IETF standards-track RFC qualify for this?

Yes. Although note that we'd also have to make a decision to incorporate NTRU on its own merits, i.e. having a standard is a necessary pre-condition but not the only condition required to incorporate this.


inxi: add pciutils

Motivation for this change
No pciutils
 inxi -G
Graphics:  Message: No Device data found.
           Display: wayland server: X.Org 1.20.8 driver: N/A resolution: 1: 2560x1440~144Hz 2: 1080x1920~60Hz
           3: 1920x1080~60Hz
           OpenGL: renderer: Radeon RX Vega (VEGA10 DRM 3.39.0 5.9.1 LLVM 9.0.1) v: 4.6 Mesa 20.1.9

With pciutils
inxi -G
Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics driver: i915 v: kernel
           Device-2: Advanced Micro Devices [AMD/ATI] Vega 10 XL/XT [Radeon RX Vega 56/64] driver: amdgpu v: kernel
           Display: wayland server: X.Org 1.20.8 driver: amdgpu note: display driver n/a resolution: 1: 2560x1440~144Hz
           2: 1080x1920~60Hz 3: 1920x1080~60Hz
           OpenGL: renderer: Radeon RX Vega (VEGA10 DRM 3.39.0 5.9.1 LLVM 9.0.1) v: 4.6 Mesa 20.1.9

i put pciutils in recommendedSystemPrograms instead of recommendedDisplayInformationPrograms because inxi -G can also be used in a tty to show devices
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"

Idk how to do this since pciutils is hidden under a option

[ ] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

i think i messed that up?

cc @primeos who is listed as mantainer

cc @primeos who is listed as mantainer


blender: enable WebP support

Description of changes
Enables the WebP image format support in Blender. It has been supported since Blender 3.2 but was disabled due to libwebp missing from the build inputs.
$ nix build nixpkgs#blender
$ nix log (realpath result)
...
-- Could NOT find WebP (missing: _webp_LIBRARIES WEBP_INCLUDE_DIR)
CMake Warning at build_files/cmake/platform/platform_unix.cmake:407 (message):
  WebP not found, disabling WITH_IMAGE_WEBP
Call Stack (most recent call first):
  CMakeLists.txt:1058 (include)

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

So nice PR message, would love to see stuff like that when reading git log.
Tip: if you start with the commit, github copies that message to the PR.


proxy: export errors

Partially addresses: #1140
Exports errors for proxy package.

fyi your code is fine the test that failed is known-bad

Thanks @Halimao ❤ minor comments about naming

@melekes Suggestion changes addressed~


new $q(executor) does not catch exceptions

The following code prints UErr.
    try{
        $q(function (res, rej) {
            throw new Error('Wrong.');
        }).then(function () { $log.info('OK?');
        }).catch(function (e) { $log.info('Err', e);
        });
    } catch (e) { $log.info('UErr'); }

I'm not sure I understand the ES6 specs but in BlueBird (new Promise(executor)) and in Q (new Q.Promise(executor)) this prints Err [Error: Wrong.].

Does not seem related to #3174 and could probably be solved in q.js#L558 like this:
try {
    resolver(resolveFn, rejectFn);
} catch (e) {
    deferred.reject(e);
}

I think you might be right. From the ES6 spec:
10. Let completion be Call(executor, undefined, «resolvingFunctions.[[Resolve]], resolvingFunctions.[[Reject]]»).
11. If completion is an abrupt completion, then
  a. Let status be Call(resolvingFunctions.[[Reject]], undefined, «completion.[[value]]»).
  b. ReturnIfAbrupt(status).

My reading of this is that if the call of executor returns abruplty, e.g. throws, then it should call the reject function.
@caitp - you know about this stuff. Does that sound right to you?

@petebacondarwin technically yes, per spec, this should be a rejection.
It shouldn't be a rejection for a lot of better reasons (early errors are less likely to be missed if they explicitly throw).
Native promises in Chromium work around this now by reporting uncaught rejections (and Bluebird does this as well), but it wasn't popular with Igor.
I think it's better to leave it as-is, because A) we avoid the try/catch deopt, and B) we make it possible for developers to catch their early errors.

I agree with @caitp - we should leave it throwing. It is simple enough to work around this in application code if you wish by wrapping your own executor function:
    try{
        $q(function (res, rej) {
            try {
              throw new Error('Wrong.');
            } catch(x) {
              rej(x);
            }
        }).then(function () { $log.info('OK?');
        }).catch(function (e) { $log.info('Err', e);
        });
    } catch (e) { $log.info('UErr'); }

@IgorMinar do you want to chime in here too?

I'm not strongly opposed to a patch to fix it though, I just worry that it might lead people to ignore incorrect code

If it is chosen not to adhere to the ES6 specs, I'd suggest to add some comment in the documentation, to avoid the "unexpected" factor. (or at least, unexpected behavior could still bite people, but then they could check the docs and find the reason)

@caitp just to clarify, I wasn't a big fan of the implementation we had. I do like the feature.
I think for now we should document the deviation from the spec as well as the workaround. In 1.5 we can take a look at this and see if we can do better.

Raised PR #13101 to document this.


Optimize Button Animation for Improved User Experience

Description:
The current button animation on the submit button element can be improved to provide a smoother and more visually appealing user experience. The existing CSS code for the button animation has some issues, and we need to optimize it. This issue aims to update the button animation styles for better user interaction.
Before Code:
button.submit-button[type="submit"] {
  /* background-color: #7b2fff; */
  background: linear-gradient(to right, #141e30, #243b55);
  color: #fff;
  border: none;
  letter-spacing: 1px;
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  border-radius: 45px;
  padding: 12px 45px;
  margin: 10px 0;
  transition: all 0.3s ease;
  font-weight: 400;
  color: white;
}

button.submit-button[type="submit"]:hover {
  background: white;
  box-shadow: 0px 0 20px 5px #5081b9;
  color: black;
  font-weight: 400;
  font-family: cursive;
  transform: translateY(-2px);
}

After Code:
button.submit-button[type="submit"] {
  /* background-color: #7b2fff; */
  background: linear-gradient(to right, #141e30, #243b55);
  color: #fff;
  border: none;
  letter-spacing: 1px;
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  border-radius: 45px;
  padding: 12px 45px;
  margin: 10px 0;
  transition: all 0.3s ease;
  font-weight: 400;
  color: white;
}

button.submit-button[type="submit"]:hover {
  transition: all 1.5s ease; /* Updated: Extend the transition duration for smoother animation */
  background: white;
  box-shadow: 0px 0 20px 5px #5081b9;
  color: black;
  font-weight: 400;
  font-family: cursive;
  transform: translate(0.8); /* Updated: Use translate instead of translateY for better effect */
}

button.submit-button:focus {
  transform: translate(0.8); /* Updated: Add focus state transformation for consistency */
}

Proposed Changes:

Hover Animation Duration: The transition duration for the hover animation should be increased from 0.3s to 1.5s for a smoother and more gradual transition.

Hover Animation Effect: Instead of using translateY, which moves the button up, we will use translate along the X-axis with a value of 0.8 to achieve a subtle shift effect. This will improve the button's visual appeal during hover.

Focus State Animation: A new focus state transformation is added to the button to maintain consistency with the hover effect.

Hey @vaibhavi-d18  Please assign me this issue I am optimized the login button CSS ✨


Dataset link is down

Hi,
Thanks so much for sharing the code of the great works! I find that the links of downloading the dataset is down like
wget https://data.vision.ee.ethz.ch/brdavid/atrc/NYUDv2.tar.gz
wget https://data.vision.ee.ethz.ch/brdavid/atrc/PASCALContext.tar.gz
Could you please share your dataset copy somewhere else? Because I find the dataset on the Google Drive https://drive.google.com/file/d/14EAEMXmd3zs2hIMY63UhHPSFPDAkiTzw/view?usp=sharing might have some difference with the one you used in the paper. When using the dataset on the Google Drive, there would be resolution issue like the test data is of resolution 480640, but we need it to be 448576 during evaluation. However, in the code for preprocessing the NYU test data, we use  "transforms.PadImage(size=p.TEST.SCALE)" which requires the raw test image to be smaller than 448*576.
Thanks!

Hi,
These datasets were provided by ETH (authors of ATRC). Now I upload them
here for research purpose:
NYUDv2.tar.gz
https://hkustconnect-my.sharepoint.com/:u:/g/personal/hyeae_connect_ust_hk/EZ-2tWIDYSFKk7SCcHRimskBhgecungms4WFa_L-255GrQ?e=iZSHDg
PASCALContext.tar.gz
https://hkustconnect-my.sharepoint.com/:u:/g/personal/hyeae_connect_ust_hk/ER57KyZdEdxPtgMCai7ioV0BXCmAhYzwFftCwkTiMmuM7w?e=09dCcQ
Thanks,
Hanrong
On Tue, Sep 19, 2023 at 12:28 AM zsh2000 @.***> wrote:

Hi,
Thanks so much for sharing the code of the great works! I find that the
links of downloading the dataset is down like
wget https://data.vision.ee.ethz.ch/brdavid/atrc/NYUDv2.tar.gz
wget https://data.vision.ee.ethz.ch/brdavid/atrc/PASCALContext.tar.gz
Could you please share your dataset copy somewhere else? Because I find
the dataset on the Google Drive
https://drive.google.com/file/d/14EAEMXmd3zs2hIMY63UhHPSFPDAkiTzw/view?usp=sharing
might have some difference with the one you used in the paper. When using
the dataset on the Google Drive, there would be resolution issue like the
test data is of resolution 480640, but we need it to be 448576 during
evaluation. However, in the code for preprocessing the NYU test data, we
use "transforms.PadImage(size=p.TEST.SCALE)" which requires the raw test
image to be smaller than 448*576.
Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/prismformore/Multi-Task-Transformer/issues/22, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ADLPY6TUPHW43M3K3SLKN7LX3BZC3ANCNFSM6AAAAAA447SQWI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Thanks so much for your quick reply!


feat: Enter Key will submit forms

Fixes #50
Using the onKeyPress() and click(), it will programmatically redirect the user to the required page on pressing Enter key

Works fine. @anhushree  But we gotta put a validation check on the name too. @kothariji

maybe we have that as a separate issue?

Yes, I understood. I Will work on it. Sorry for the delay. @kothariji

Basically, this room doesn't exist
When I enter the Room Id and trigger the mouse click, it redirects me to the respective page.
Hence I would suggest taking this up as an individual issue, cuz this has a different problem in its root and not just as a bug.
Images for reference (mouse click)

Preview: https://syntaxmeets.vercel.app/

what you can try is
in your on Key Press function
onKeyPress={(ev) => {
                      if(ev.key === 'Enter') {
                        ev.preventDefault();
                        createRoomButton.current.click();
                      }
                    }}

you can add an if condition inside line 3 that
if disabledName || disabledRoomId is true...then don't click the button.
Hope it would work

I understand the functionality you just explained, but I believe that it should be a part of another issue. The existing codebase has no validation when the create a room/join room buttons are pressed. The issue that I created talks only about implementing the same functionality as the button press when a user hits the enter button. It doesn't talk about the absence of validation in the codebase at all. I would be happy to work on validation, but I think it should be in a separate issue.

I understand the functionality you just explained, but I believe that it should be a part of another issue. The existing codebase has no validation when the create a room/join room buttons are pressed. The issue that I created talks only about implementing the same functionality as the button press when a user hits the enter button. It doesn't talk about the absence of validation in the codebase at all. I would be happy to work on validation, but I think it should be in a separate issue.

@anhushree the existing codebase has validations for name and room id. But actually, we can't push a code that has a bug to production. But no issues I had added validation check to your code. Feel free to check that 🙌 .


Wavesurfer.js integration

Hey thank you for this amazing component really like the design and simplicity of it.
I would like to be able to listen to the audio Context so that i can attach a Wavesurfer.js to get some visiualization of the audio being recorded or selected.
is there any possible way that can be easily done?
thanks.

@threeel You can use some callbacks  select-record & after-recording. All of them are returned a record.

@grishkovelli i think the select-record & after-recording would be good to render the audio once it is done. What am trying to do is pick the live audio as it is being recorded and render that.
thank you.


feat: allow teachers to update grades

This  pull request is to add a feature of updating grades. This feature allows teacher to remove/update/add grades for students in their class.
The changes are:

Add a table to the database

This branch is perfect!


Fix ::User Profile Page - Project/Packages Tabs Have Inconsistent Layout and Style

Fix ::User Profile Page  Project Tab Have Inconsistent Layout and Style
Added the big_avator for consistency in the all header_items tabs.
https://github.com/go-gitea/gitea/issues/24871

Description
in the user profile page the Packages and Projects tab have small icons for user but other tabs have bigger profile picture with user info:
Screenshots
For Packages And Projects:

For Other Tabs:

Before

After changes
Project View

Packages View

Org view for projects page

Org view for packages page

@silverwind

So this PR introduces 3 big template files, without removing the content anywhere else, so I assume this must by copy-pasted content, which we should avoid as it hurts maintainability having to do a change in many copy-pasted files (and often forgetting some places).
Instead of copying, is it possible to move only the reusable parts into shared folder in templates, and then importing it in 2 places? You can use the dict helper to pass context and if there are differences, the same helper can be used to add additional values into the dict.

Yes you are correct. I took the basic approach to fix this. But I like you suggestion on reusability. I will work on the reformatting and reducing the duplicate code.
💯

Moved to https://github.com/go-gitea/gitea/pull/25108


Close chan asap

Current behavior: teardown() conflates pusher disconnect, and ack.
Since #379 ack should happen after resource download, however chan disconnect should happen asap, just after the message dispatch.

Implemented: Close channel right after message received (maze-cast), in case of single message.

Possible drawback: in the hypothetical sequence

maze-cast
maze-scan with thumb
resource finishes downloading

We would not have any opportunity to see the thumb :(


Update scio-core, scio-test to 0.12.8

About this PR
📦 Updates

com.spotify:scio-core
com.spotify:scio-test

from 0.10.4 to 0.12.8
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.spotify" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.spotify" }
}]

labels: library-update, early-semver-major, semver-spec-minor, commit-count:1

Superseded by #272.


Simplify domain model

Hi,
I've recently started working on integrating ldap to gogs (https://github.com/gogits/gogs/issues/662) While I have studied the source code, I've noted that current domain model for access control might just be overly complicated for self-hosted service. For me this rises concerns about security. While I think there's no point in reinventing the wheel and copying features from products such as github/gitlub is not a terribly bad idea, you should focus on keeping the product as 'painless' for both end-users and developers.
From my perspective, the obvious flaw is having multiple organizations in gogs. Self-hosted implies that there is just single organization. From administrative perspective, having multiple organizations working on single gogs does not really work as it is. Each organization has most likely their own administrators, separate authentication methods and access policies. Plugging support for all this will just make things overly complicated for most users and most developers (it is just much easier to do multiple installations) :-) Also, I'm quite sure, you do not want to compete with gitlab/github from userbase.
What I suggest is that you change your domain model (user management / security) to something simple as this: http://imgur.com/a/5nisb . Basicly you replace organization with concept of 'workarea' (or view, similar to jenkins) Change would make things fundamentally easier. Workarea does not contain users or groups, workarea is just an aggregate of repositories. Also, you will most likely want to remove concept of teams and introduce groups. You want to do this to prevent possible recursion - having both groups and teams will make things harder to grasp for everyone (team could consist of multiple groups). Keep it simple and focus on features that really matter (e.g. high availability / replication?) :-)

To clarify, domain model current looks like this (actually organization is subclass of user, but to keep things simple I wrote as it different entity):

And I would like it to more like this:

This is inline what I described before. Just think both entities team and collaboration as permissions. Whether user owner should be modeled as a permission (collaborator), depends on point of view. I would probably do so, to simply queries. If it would, model would be this:

The work I did in #662 helps in this goal. Access entities no longer need to be created/updated (nor do they need to exist at all), because same information can be derived using relatively simple queries (this is what I did, to get ldap groups working). This removes tons of extra code and makes gogs more robust and extensible in the future (jwt tokens?)


Tutorial for creating new built-in datasets

After this is merged, I think we'll be able to delegate adding / refactoring built-in datasets much more easily.

@bartvm @dwf With this tutorial, I think we'll have all we need to start assigning the task of refactoring an existing built-in dataset or add a new commonly-used dataset to Fuel.

Looks good to me! The only thing I would consider adding is basically turning the entire tutorial in a series of unit tests (basically just copy and paste the tutorial I guess?). However, we can refer that to a later date if you prefer merging this soon.

I'd prefer merging sooner. I'll create an issue for that.

I opened the issue (#87) for the unit tests, I'll merge now and we'll address this later.


Update versions

Bump version of client in main to provide better error message
cargo update
Update zkevm-demo to revm 3.5
Pin sppark to specific git commit
Split external/substrate to separate workspace
Add serde support for u128/i128 data types

Tagging @Wollac to take a look at the zkevm-demo updates.


Automated Package Upgrade

:tada: This PR is included in version 5.0.489 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fix Tests

Hi Everaldo, for this test config, my latest changes are in the test_github_actions branch: https://github.com/biothings/mygeneset.info/blob/test_github_actions/.github/workflows/user_geneset_tests.yml. You are right that I missed Pip installing a few packages. The main issue I was having is that Elasticsearch is not accessible/not creating the required index.
I think this tool can be useful for debugging: https://github.com/mxschmitt/action-tmate

Fixing tests in another PR: https://github.com/biothings/mygeneset.info/pull/81


[Feature Request] Use separate window for each server

I think it would help my workflows to have different windows for each server that I'm connected to.
Switching between work workspace and personal workspaces can get a little jarring, specifically for spatial memory of where the window is on my desktop.
This would also enable much better integration with "multiple desktop" features. For instance, I keep a separate "desktop" (on my one Windows 10 machine) for each personal project & work client. This makes it easier (for me) to keep the various clutters compartmentalized.
This feels like it should be easy to implement in Electron, especially since this is more like the webapp interface anyway.

I did see #699 but, as I see it, that is a different request


blinking notification icon in taskbar

Please make an option to let the icon blink in the taskbar for new messages- maybe as in jabber (yellow blinking)
thanks
St.

Duplicate of #39


Event frame detection does not work at very low framerates

If the delta step is too high, the current frame detection to trigger events will only trigger the frame it changes to and disregards any potential frames inbetween.
Even if fixed, special care needs to be taken by the application developer. If events are related (e.g. activating/deactivating hitbox), the systems that handle the action need to be scheduled in a way that allows processing of those events (e.g. activate->handle->deactivate).

Also frame 0 doesn't trigger any events, I don't know if we discussed this in #33 or not, I kinda lost track there, but I thought I tested this but seems like I didn't.

Thanks for the report. I thought this would be covered when frame was moved to Option. For frame 0 I thought it would see None->Some(0) as a change trigger for event sending.
Will need to take a closer look.

@PraxTube Do you have a reproducable example?
The events example has an event on frame 0 and I see it get triggered there.

Ahh woopsie, I was on an older branch :upside_down_face: on main it works just fine. Though I am not sure about the warn.
                    warn!(
                        "Event {0:?} was triggered, but AssetId {1:?} does not yield an asset.",
                        asset_event, id
                    );

it triggers every time on startup in my case, for all of my events. So the log is just spammed with these. In the older branch I had this failing silently. Shouldn't this pretty much always be valid except sometimes on startup? Your initial draft had an unwrap here, maybe we can just remove the else?

I don't really want to remove it because I don't understand why it happens. But a warning is also quite useless if it is unclear what the user can do to fix it.
At the very least I will reduce it to a debug message or something like that so it does not spam the console by default.

Okay yeah that sounds like a good compromise.


After this it seems like default script will be required again (see description in #33 ), we might want to patch this at some point.

some packages to fix because this did land

[ ] amtoine/nu-git-manager in https://github.com/amtoine/nu-git-manager/pull/140
[ ] amtoine/scripts
[ ] amtoine/zellij-layouts
[ ] nushell/nu_scripts
[x] nushell/nupm (already done by construction)

all the packages have been fixed or have a PR in the queue that will fix them :+1:


,##[error]The remote provider was unable to process the request.

Description
We have set up CI/CD deployment in azure and working from past 2 year with it.
Now whenever release using CI /CD getting error like remote provider was unable to process the request.
please check to snap :
https://prnt.sc/1y1xjvm
Getting this error from past 7 days :
##[warning]An image label with the label ubuntu-16.04 does not exist.
,##[error]The remote provider was unable to process the request.
Check error snap :
https://prnt.sc/1y1xped
Thanks,
Sushma Tiwari
Virtual environments affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[ ] Windows Server 2016
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
https://prnt.sc/1y1xjvm
Is it regression?
No response
Expected behavior
No response
Actual behavior
No response
Repro steps
We have set up CI/CD deployment in azure and working from past 2 year with it.
Now whenever release using CI /CD getting error like remote provider was unable to process the request.
please check to snap :
https://prnt.sc/1y1xjvm

Hello @Sushma-tiwari. Thank you for your report. Could you please provide minimal repro steps with full description.

@Sushma-tiwari please follow advice from this issue https://github.com/actions/virtual-environments/issues/3287

I'm going to close the issue, feel free to contact us if you have any concerns.
Thank you!


Unresposive

Type: Bug
Performance issue is there with this extension. VScode in running slow due to this.

Open VSCode
It will take a lot of time
Check all runnning extensions in ncode using f1. It will show the issue

VS Code version: Code 1.78.0 (252e5463d60e63238250799aef7375787f68b4ee, 2023-05-03T20:09:00.748Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 1690)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
15.73GB (6.29GB free)

Process Argv
--crash-reporter-id 88bef144-399a-4de4-93f4-719fd9bcb409

Screen Reader
no

VM
0%

Extensions (18)

Extension
Author (truncated)
Version

chrome-extension-developer-tools
aar
2.0.4

html-snippets
abu
0.2.1

macos-modern-theme
dav
2.3.19

gitlens
eam
13.5.0

prettier-vscode
esb
9.12.0

live-sass
gle
6.0.5

dotenv
mik
1.0.1

isort
ms-
2022.8.0

python
ms-
2023.8.0

vscode-pylance
ms-
2023.5.10

jupyter
ms-
2023.4.1011241018

jupyter-keymap
ms-
1.1.0

jupyter-renderers
ms-
1.0.15

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

vetur
oct
0.37.3

LiveServer
rit
5.7.9

vscode-icons
vsc
12.4.0

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
2i9eh265:30646982
6233i204:30730053
azdwalk:30721579
pythonms35:30701012
pythonfmttext:30731395
pythoncmvfstrcf:30731970
fixhidewlkth:30730051
pythongtdpath:30731978

This command has disabled all the extensions so it has to stop it. Need to
figure out why it is slowing.
On Fri, May 5, 2023 at 4:50 PM John Murray @.***> wrote:

Which extension? Please use the Start Extension Bisect command to
investigate.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/181625#issuecomment-1536111183,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEL6LPQ647KCOGR73FLHUBTXETO7FANCNFSM6AAAAAAXW6QZKU
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Tarun Kumar
9958563290

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


API Gateway - Implement Stage deletion

Fixes #2521
Also adds validation for common issues when creating methods/deployment/stages

Coverage decreased (-0.1%) to 93.503% when pulling 2d32ee18a6551fb2d32d3c634d790e03409c0021 on bblommers:feature/2521 into e00af2f73cb7d27c3755f18b2161b9acbd8ca8aa on spulec:master.

This is awesome; thanks for the help!


forc-crypto: Vanity Address generation

Related Component
another forc plugin
Problem you are trying to solve
Common wallet CLI tools such as cast and solana-keygen support vanity address/pubkey generation given desired prefix and/or suffix.
The forc tooling should also support such a feature such that users can bruteforce (at the expense of their own compute) vanity addresses for fuel network.
Requirements

Must be able to specify a prefix
Must be able to specify a suffix
The mnemonic phrase should be displayed in plaintext (not hash or ciphertext) to stdout
The private key should be displayed in plaintext to stdout
The vanity constraints apply to the final checksummed address
Use the CLI subcommand forc-crypto vanity

Constraints

Either the prefix or suffix must be provided
The prefix and suffix must be valid hexadecimal strings

Future improvements or stretch goals

--json flag can be provided, this will display a JSON object with the following structure:

{
    "accounts": [
        {
            "address": "<vanity_address>",
            "private_key": "<vanity_private_key>",
            "mnemonic": "<vanity_mnemonic>"
        }
    ]
}

This is useful to simply output stdout to json file.

Support for regular expression that can be matched by the generated address

Hey @zees-dev I think we should close this issue as #6661 is merged. Feel free to re-open if I am missing something :)
Maybe we can open a follow-up issue in forc-wallet to discuss further incorporating this feature into there, that is if we still plan to do so, (instead of this issue which seems solved to me!)


Uitests page model object

📲 What

This is a proof of concept showing how to write UITests using the Page Object Model pattern.
Here are some links to help understand a little better about the pattern:

Note - The tests currently live in the BaseTest file. This file should contain simply the functions that will be shared with all UITestCase classes (in this case setup and tearDown), and the tests should live on their own UITestCase files.
https://alexilyenko.github.io/xcuitest-page-object/
https://medium.com/@danielcarlosce/some-good-practices-for-xcuitest-807bfe6b720d
https://medium.com/@SunXiaoShan/uitest-page-object-module-703564351f88 (You may need to use the Chrome's translation tool for this one :) )
👀 See
Search test (Searching and tapping  the Cancel button):

This work was as a spike to POM and it served its purpose...closing for now.


0.56.11 fails to install correctly

Hi, I cannot get 0.56.11 to install.
The following command
npm install --save<EMAIL_ADDRESS>runs successfully, however, semantic-ui-react does not seem to actually be built thereafter. (There is no dist directory in ./node_modules/semantic-ui-react)
Steps

Install version 0.56.11

npm install --save<EMAIL_ADDRESS>Expected Result
semantic-ui-react to have been importable.
Actual Result
Cannot import from semantic-ui-react.
> require('semantic-ui-react')
Error: Cannot find module 'semantic-ui-react'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at repl:1:1
    at sigintHandlersWrap (vm.js:22:35)
    at sigintHandlersWrap (vm.js:96:12)
    at ContextifyScript.Script.runInThisContext (vm.js:21:12)
    at REPLServer.defaultEval (repl.js:313:29)
    at bound (domain.js:280:14)
>

Version
0.56.11

Same here - for now I am referencing the /src directory and running it through babel.

Looks like the dist is missing. I'm away from a computer at the moment but I'll publish a fix shortly.

This issue is fixed however, I'm wrestling a suddenly failing test.  Hang tight.

<EMAIL_ADDRESS>is published.


Maintenance

Changes:

CI: Fix base image
CI: Use NodeJS 16 instead of 8
Add .nvmrc file
Update most dependencies
Upgrade to TypeScript 4
Get rid of all vulnerability warnings

@lgrahl not sure if you want to take a look. Otherwise I'll merge as-is.
There should be no breaking changes 🤞🏻


Issue-Update Selector component to generate periods with additional option

Automated Review Comments
Issues in src/components/Selector.js:

(2, 'Hardcoded string found')
(3, 'Hardcoded string found')
(7, 'Line exceeds 80 characters')
(7, 'Hardcoded string found')
Issues in src/pages/index.js:
(1, 'Hardcoded string found')
(21, 'Line exceeds 80 characters')
(21, 'Hardcoded string found')
(22, 'Line exceeds 80 characters')
(22, 'Hardcoded string found')
(23, 'Line exceeds 80 characters')
(23, 'Hardcoded string found')
(24, 'Line exceeds 80 characters')
(24, 'Hardcoded string found')
(25, 'Line exceeds 80 characters')
(25, 'Hardcoded string found')
(26, 'Line exceeds 80 characters')
(26, 'Hardcoded string found')
(27, 'Line exceeds 80 characters')
(27, 'Hardcoded string found')
(31, 'Line exceeds 80 characters')
(31, 'Hardcoded string found')
(32, 'Hardcoded string found')
(33, 'Line exceeds 80 characters')
(33, 'Hardcoded string found')
(35, 'Hardcoded string found')
(36, 'Line exceeds 80 characters')
(36, 'Hardcoded string found')
(39, 'Line exceeds 80 characters')
(39, 'Hardcoded string found')
(42, 'Line exceeds 80 characters')
(42, 'Hardcoded string found')
(45, 'Line exceeds 80 characters')
(45, 'Hardcoded string found')
(46, 'Line exceeds 80 characters')
(46, 'Hardcoded string found')
(49, 'Hardcoded string found')
(51, 'Line exceeds 80 characters')
(55, 'Line exceeds 80 characters')
(55, 'Hardcoded string found')
(56, 'Line exceeds 80 characters')
(56, 'Hardcoded string found')
(57, 'Line exceeds 80 characters')
(57, 'Hardcoded string found')
(59, 'Line exceeds 80 characters')
(59, 'Hardcoded string found')
(60, 'Line exceeds 80 characters')
(60, 'Hardcoded string found')
Issues in src/utils/index.js:
(2, 'Hardcoded string found')
(3, 'Hardcoded string found')
(4, 'Hardcoded string found')
(5, 'Hardcoded string found')
(6, 'Hardcoded string found')

I got it.


Remove FileImport wrapper class

Notes

Taking a crack at #1146 to improve the legibility and error-resiliency of the data import process by removing the FileImport class.


Overhaul site-kit

Closes #6677
Closes #7544 ('on this page' comes in at 1200px)

kit.svelte.dev uses site-kit, but overrides a lot of styles. In order to have maintainable, consistent styles and utilities between kit.svelte.dev and svelte.dev (and possibly others in future? who knows) we need to do some spring cleaning.
I figured the easiest way to do that would be to just copy site-kit into this repo for now, so that we don't need to muck around with linked packages etc. Once it's in a good enough place, we can move it back to the sites repo and apply it to svelte.dev.
I'd like to move as much of the docs handling logic etc to site-kit as possible (and I'd like to make the Svelte docs much more like the Kit docs).
The most obvious change here is that the docs CSS has been overhauled. I think it looks much nicer, particularly on large screens: https://kit-svelte-dev-git-site-kit-svelte.vercel.app/docs/introduction
Still more that can be done, though it doesn't all need to happen in this PR.

I'm seeing 160px of left margin on a 27" iMac.
I don't think it looks good, too unusual to my eyes, but of course that's totally subjective.

I hope: https://github.com/sveltejs/kit/issues/7544
I'd like that too, but maybe it's too much: https://github.com/sveltejs/kit/issues/3948

Little missing in dark mode:
"NO RESULTS" in the search engine is on a white background.

Is there a way to toggle dark mode, or is it just up to system preferences?

Yes, system preferences are the dark mode toggle.


Make android buidls fail, if some error occurs in checkstyle

Currently, i am able to make the builds, even if there is some error found by checkstyle. So basically i wanted to abort the builds if there is any error reproted by checkstyle with android studio.

Hi,
Please check if your checkstyle is consistent with config/quality/checkstyle/checkstyle.xml and if suppressions in config/quality/checkstyle/suppressions.xml files are consistent with your suppressions. You can adjust these files to your needs. E.g. if you want to have more strict or liberal checkstyle rules. I think you should add more rules to the checkstyle.xml if you want the build to fail, but it's not failing.
Regards,

AnyWay, i found answer,
apply plugin: 'checkstyle'
preBuild.dependsOn('checkstyle')
assemble.dependsOn('lint')
check.dependsOn('checkstyle')
configurations {
checksytleOverride
}
Just paste the above code in app level build.gradle, it will stop the build from being generated.. I request you to kindly add this line in your readme.

When you go to the quality.gradle file, you can notice that checkstyle is applied there and
check.dependsOn 'checkstyle', 'findbugs', 'pmd', 'lint'

In the README.md it's written that you need to add line:
apply from: '../config/quality.gradle'

to the build.gradle file. When you are done, you need to execute:
./gradlew check

and it should work.
It's strange that it didn't worked for you, but it's great you solved the problem :).

It worked but it didn't abort the builds from getting generated i have to manually check the checkstyle violation error by "./gradlew check" from terminal


Unable to join without named select

I have these schemas (simplified for this issue):
var mediaSchema = `
CREATE TABLE IF NOT EXISTS media (
	hash VARCHAR(64) PRIMARY KEY,
	title TEXT,
	plot TEXT
);`

var movieSchema = `
CREATE TABLE IF NOT EXISTS movie (
 	id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
 	belongs_to TEXT,
 	tagline TEXT,
);`

I have these models:
type Media struct {
	Hash     string `json:"hash" db:"hash"`
	Title    string `json:"title" db:"title"`
	Plot     string `json:"plot" db:"plot"`
	Movie    `json:"movie" db:"movie"`
}

type Movie struct {
	BelongsTo   string `db:"belongs_to"`
	Tagline     string `db:"tagline"`
}

Trying to join these with
media := []Media{}
db.Select(&media, `SELECT media.*, movie.* FROM media INNER JOIN movie ON media.hash = movie.belongs_to ORDER BY title DESC`)

fails with the error missing destination name belongs_to in *[]Media
Using a join table like
type JoinMedia struct {
	Media `db:"media"`
	Movie `db:"movie"`
}

fails with the same above mentioned error.
The join only works if I write my query like:
db.Select(&media, `SELECT media.*, movie_, movie.belongs_to "movie.belongs_to", movie.tagline "movie.tagline" FROM media INNER JOIN movie ON media.hash = movie.belongs_to ORDER BY title DESC`)

It surely cannot be intended behaviour to make a join work with named selects only. Anyting I am missing here?

#131 Okay apparently this isn't possible. Are there any future plans to improve the usability @jmoiron ?

@Techassi you closed the ticket, did you find any solution?:)

Btw isnt there an error in SELECT media.*, movie_, - what does column movie_ stand for?


Fix order of AdventureHook and AdventureNPC in AdventureView

In the AdventureView the output of NPC and Hook seem to be swapped. I did not immediately find the bug.

Is this specific to a certain adventure, looks good to me as below, and matches what is in the db.


Publish only to certain clients

My application uses publish/subscribe with a many-to-many relationship, which means the sender can be a listener on the same channel. What this is for: I have two application instances and when some things are updated in one application, it needs to notify the second Redis client to do the same. Now I have a crutch with this. Is there a way to solve this with the library or the Redis commands themselves?

Why can't you use RTopic?

unless the topic is published to all clients?

unless the topic is published to all clients?

You could use topic per clients pair

how to do it?

how to do it?

RTopic topic = getTopic("client1client2")


Deploy azure pipelines

Summary
Describe your changes here.
Fixes #Issue_Number (if available)

Internal previews

📄 File
🔗 Preview link

docs/deployment/azure/aca-deployment-github-actions.md
Tutorial: Deploy a .NET Aspire app using the Azure Developer CLI and GitHub Actions

We should change the TOC to reflect that the article isn't specific to GitHub Actions. It could be generic, and the default to GitHub Actions, or you could have it be nested in the TOC:

Tutorial: Deploy using AZD

Deploy with GitHub Actions
Deploy with Azure Pipelines

And then link to them with the query string.

We should change the TOC to reflect that the article isn't specific to GitHub Actions. It could be generic, and the default to GitHub Actions, or you could have it be nested in the TOC:

Tutorial: Deploy using AZD

Deploy with GitHub Actions
Deploy with Azure Pipelines

And then link to them with the query string.

I changed it to "Deploy using AZD and CICD" to differentiate the doc from other local deployment techniques - if the top level node doesn't have CICD or similar verbiage, are we worried they won't expand the tab? Some users might be looking for CICD options but don't know about azd and skip over the node. Maybe I'm overthinking this.

Closes #104


feat: Add Flank version info to requests

Fixes #1925
Test Plan

How do we know the code works?

In user agent Flank, sends version and revision.
This change adds version and revision to user agent by setApplicationName method. Let me know if it's fine. We can also add a new header client_info by using setTestingRequestInitializer and setToolResultsRequestInitializer.

ah, this isn't the right approach.
application name should stay the same. otherwise google is unable to pull stats on the flank client.
version info should be sent using client info details (as mentioned on the ticket)

Thanks for the feedback, here is a current client_info example:

   "name":"Flank",
   "client_info_details":[
      {
         "key":"Flank Version",
         "value":"local_snapshot"
      },
      {
         "key":"Flank Revision",
         "value":"97854618886695c5005f9bc8d4e9a69eb7e922ed"
      }
   ]

I hope now everything is fine.

```python
return self._messages.TestMatrix(
        testSpecification=spec,
        environmentMatrix=environment_matrix,
        clientInfo=client_info,
        resultStorage=results,
        flakyTestAttempts=self._args.num_flaky_test_attempts or 0)

https://github.com/Flank/gcloud_cli/blob/55ba35ba9d631096f05f3c0bfa5cf1182134b47e/google-cloud-sdk/lib/googlecloudsdk/api_lib/firebase/test/ios/matrix_creator.py#L177
https://github.com/Flank/gcloud_cli/blob/55ba35ba9d631096f05f3c0bfa5cf1182134b47e/google-cloud-sdk/lib/googlecloudsdk/api_lib/firebase/test/matrix_creator_common.py#L25
I looked at the code in gcloud and we're suppose to set clientInfo on the TestMatrix object, not via a testing request initializer.

Right, thanks! I changed my implementation to using client info on the TestMatrix.


cFE_ES Commands that do not increment the Error Counter when an error occurs

While testing Bootes on VxWorks, I issued the following commands that generated an Error Event but did not increment the ES CMDEC counter: SCX_CPU1_ES_WRITEERLOG2FILE and SCX_CPU1_ES_STOPPERF.
To Reproduce
Steps to reproduce the behavior:

Issue the command SCX_CPU1_ES_WRITEERLOG2FILE ERLOGFILENAME="nopathname.log"
Error Event ID=56 is generated but the ES.CMDPC is not incremented
Issue the SCX_CPU1_ES_STOPPERF DATAFILENAME="nopathname"
Debug EID=60 is generated which makes me think the command was accepted as valid.
Also, Error Event ID=67 is generated but again the CMDEC did not increment,

Expected behavior
cFE 6.7.0 testing incremented the CMDEC for these 2 cases.
System observed on:

MCP750 running VxWorks 6.9. cFE Version <IP_ADDRESS> OSAL <IP_ADDRESS>

Walt Moleski/GSFC 582
scx_cpu1_es_logging-2020-311-12h27m15s.log

This happens because the file is now opened in the background task so it's reported as an error from that context.  This pattern is not unique to this command, there's others that can fail in later processing, while the command counter is still incremented.  Closing as-is (test should be updated).

This happens because the file is now opened in the background task so it's reported as an error from that context.  This pattern is not unique to this command, there's others that can fail in later processing, while the command counter is still incremented.  Closing as-is (test should be updated).


91% additional chunk assets processing

Version
3.1.3
Node and OS info
node 10.7.0/npm 6.4.1/masOs Mojave 10.14.1
Steps to reproduce
vue-cli-service serve
What is expected?
success
What is actually happening?
91% additional chunk assets processing ERROR  Failed to compile with 1 errors

hello @LinusBorg ,
Sorry. I have been changing my code for 8 hours and I already lost the code with this issue. Cant reproduce it now :( I think the problem was because of i18n or iview plugins.


Add bug reporter for 3.7 changelog

Before submitting, please confirm you've

[X] read and understood our Contributing Guidelines
[X] completed Mattermost Contributor Agreement
[N/A] executed npm run lint:js for proper code formatting

Please provide the following information:
Summary
Add bug reporter for 3.7

Thanks! What about https://github.com/mattermost/desktop/issues/516#issuecomment-298357555 ?

Good point! Updated

Thanks!


Light white grid appearing on editing photos

I am noticing light white grid lines appearing on some of my photographs, especially after editing, in browse view.  When I edit these files, even when viewing at 1:1, the gridlines disappear, but reappear when changing to browse mode.
When uploading these photos to various forums and flickr, the gridlines still appear.
I am running 4.1.3 for Ubuntu Linux.

Could you upload sample images somewhere I can download from?

Hi, and thanks for responding.  Here are some
  that have the faint gridmarks near the top part of the
  photographs:

https://www.flickr.com/photos/135022931@N08/22444212594/in/photostream/
https://www.flickr.com/photos/135022931@N08/22475137014/in/dateposted-public/
  Thanks!

  merlin

On 11/24/2015 05:33 AM, ktgw0316 wrote:

  Could you upload sample images somewhere I can download from?
  —
    Reply to this email directly or view
      it on GitHub.

Thank you for the samples. I'll look into this problem. Which tools did you apply on these images in LightZone? Could you upload original RAW and edited *_lzn.jpg files, too? I'd like to test and debug with it on my side.
Masahiro

Hi.  I do not have those two anymore.  But here
  is another one.

https://www.flickr.com/photos/135022931@N08/23330376106/in/dateposted-public/
  I only used Local Contrast and ReLight.

  The RAW file is too big to upload, but here is the original jpeg
  from which this one was edited.

https://www.flickr.com/photos/135022931@N08/23248216722/in/dateposted-public/
  merlin

On 11/27/2015 07:10 AM, ktgw0316 wrote:

  Thank you for the samples. I'll look into this problem. Which
    tools did you apply on these images in LightZone? Could you
    upload original RAW and edited *_lzn.jpg files, too? I'd like to
    test and debug with it on my side.
  Masahiro
  —
    Reply to this email directly or view
      it on GitHub.

Any solution to this problem?  Grid is visible on certain backgrounds (ex. sky) when saving as jpeg.


Mules Return Null Wares

Mules searching for trades return NULL wares.
Causes infinite trade search bug as reported on workshop and nexus.

fixed in https://github.com/Misunderstood-Wookiee/Mules-and-Warehosues-Extended/commit/4f8afb41daf56b4448b783df4505006e624af7d7


Use unicode literals when parsing super/subtext

Also uses format rather than string concatenation
This should resolve #347.

Coverage increased (+0.001%) to 91.757% when pulling 588983addd7b5df847f289c2735fda33d690ff71 on cmc333333:347-atf-fixes into 45a05d7fccb8da735430100aeb497a2279571537 on eregs:master.


use edge animation

Now that the-graph-editor has an edge animation api, we should decide when to trigger it.

+1

Two cases where this might be good to use:

There are packets on the edge that user hasn't seen yet (the packet inspector not open, etc)
When hovering over that edge's packets / edge inspector (to highlight "this is the edge you're looking at")


Update zstd to 1.3.4

Thanks!

Will not cherry-pick for 3.0.x, there is no clear gain and we should avoid changes that may impact its stability.


HIVE-27453: Backport of HIVE-21498: Thrift version upgrade to 0.13.0

JIRA link : https://issues.apache.org/jira/browse/HIVE-27453

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

Is the change a dependency upgrade?

How was this patch tested?

@saihemanth-cloudera Can you please review this

@nrg4878 Can you please also review this.

@vihangk1 Can you please review this.

@saihemanth-cloudera  Can you please review when you have a chance? Thank you

@saihemanth-cloudera The tests have passed. Please review this.

Thanks for the review @saihemanth-cloudera. Can you please merge this ticket.

I'm planning on waiting for 24hrs to see if anyone has concerns. If not I'll merge it.


Add registrable version formats

Version Formats are a new registrable interface for validating and comparing version strings.
Namespaces enforce that all Features use the same Version Format.
This PR adds the following formats:

dpkg
rpm

Fixes #222

Other than https://github.com/coreos/clair/pull/298/files/8bedd0a3670dfe2bc60d3b750c981441f91d32c8#r94456926, LGTM.


refactor(routes): Rename indexRoute and loadIndexRoute

BREAKING CHANGE:
indexRoute is now index and loadIndexRoute is now loadIndex
BEFORE:
const routes: Routes = [
  {
    path: '/',
    component: MarketingTemplateComponent,
    indexRoute: {
      component: HomePageComponent,
    }
  },
  {
    path: '/blog',
    component: BlogComponent,
    loadIndexRoute: () => System.import('app/routes/blog')
  }
];

AFTER:
const routes: Routes = [
  {
    path: '/',
    component: MarketingTemplateComponent,
    index: {
      component: HomePageComponent
    }
  },
  {
    path: '/blog',
    component: BlogComponent,
    loadIndex: () => System.import('app/routes/blog')
  }
];

Docs updated before next release?


Dispose of images after using them

Description
This patch should close the image disposal saga.
Does the following:

Adds ImageInfo.clone and ImageInfo.isCloneOf.
Makes all stateful holders of ui.Image objects properly clone and dispose of them.
Behavior change for ImageStreamCompleter: Removing the last listener after registering at least one listener results in the object being disposed, and new listeners cannot be added.
Allow ImageStreamCompleter to have "passive" listeners, which are listeners that do not drive frames forward but keep the stream alive and get updates if there are other "active" listeners. For example, the image cache listens to the stream this way.
Makes all non-stateful holders of ui.Image (i.e. paintImage and RawImage) assert that whoever gave the image to them has not disposed it on them.

Related Issues
Fixes https://github.com/flutter/flutter/issues/56482 for real this time, by only triggering additional GCs if we've disposed an image large enough to get the VM's attention.
A previous, rejected attempt here: https://github.com/flutter/flutter/pull/64582
Related engine patches:
https://github.com/flutter/engine/pull/21057 (adds Image.clone
https://github.com/flutter/engine/pull/20746 (an overly aggressive attempt to use Dart_HintFreed to achieve this goal, got reverted).
https://github.com/flutter/engine/pull/20754 (uses HintFreed specifically in CanvasImage::dispose)
Tests
I added the following tests:
A bunch of tests for image, image cache, image stream, image stream completer, to make sure we dispose of the right things at the right times.
There is also a devicelab memory benchmark for this use case that was added in https://github.com/flutter/flutter/pull/64762
Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.

[x] No, no existing tests failed, so this is not a breaking change.

Apparently this broke something in gallery - marking as draft while I figure that out.

It's a bug in dart:ui. Fix will be posted shortly.

Blocked by https://github.com/flutter/engine/pull/21422

Engine fix has been rolled in, this is ready for review again.

Ok, tests area ll passing now :)

My idea to refactor Rawimage doesn't quite work, because it still involves trying to make a Widget hold on to a stateful object.  The basic problem is if we give RawImage a clone of the image, it will never know when to dispose of it. State.dispose isn't correct because it might create multiple states.

(LGTM)

Before the revert, we detected a big reduction in max memory usage. Look forward to the reland!


Get rid of .morphology error encountering nans

fixing https://github.com/kavli-ntnu/opexebo/issues/12, according to recommendations from https://github.com/scikit-image/scikit-image/issues/4078. Need to watch that scikit image issue to see what's happening on their front (ideally NaNs should be handled quietly).

Update, replacing nans with minima does not run into any obvious problems / field detection mistakes at the moment.


Update Wire clutch. Fixes: #2123

This shouldn't be necessary, that table should always exist as it's created in Init and never remove.

This shouldn't be necessary, that table should always exist as it's created in Init and never remove.

@bigdogmat
Sure. If you say so ;)

@bigdogmat
Sure. If you say so ;)

Will try to reproduce with https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/sandbox/gamemode/persistence.lua#L57
before merging

Will try to reproduce with https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/sandbox/gamemode/persistence.lua#L57
before merging

Couldn't reproduce

Couldn't reproduce


collie foundation docs does not refresh the sidebar

The documentation page do not change the sidebar when you will switch between platform or kit. There still the entry sidebar of the Foundation. Only a refresh of the page solve the problem temporary.
This makes the overall impression somewhat error-prone. We should solve the whole thing a little faster because LZ101 also uses the --preview function.
reproducible in a very early stage of collie. You need only a kit the docs and a foundation.
collie foundation docs --preview

https://github.com/meshcloud/collie-hub/blob/main/kit/foundation/docs/template/docs/.vuepress/config.ts its regarding to the docs kit instead of the --preview. I this after i created the Issue

https://github.com/meshcloud/collie-hub/pull/127/files solved in PR


Create test_001

I’m not quite sure what you’re going for, do you need any help?

You appear to have successfully added a file to git. But seemingly to the wrong repo. Should this have went to your Github-test-push-and-pull repo?


Documentation

Will there be documentation for all available classes to use? Also, adding less/sass files for seperation of specific elements would be great.

The documentation is available for both versions of Kathamo. For Kathamo 2.0.0, the documentation part is in "README.md" file and for Kathamo 3.0.0, documentation (with example) is provided in the "demo.html". You can also refer to http://www.debashisbarman.in/2015/04/03/Kathamo-Means-Framework.html for documentation.
Regarding less/sass files, I am also planning to add. Soon I will be adding those files.
Thank you.

Great! I will be watching this repo.

Glad to hear that! Thanks.


Any plan to support python 3

Error when try to build on python 3
File "sinaweibopy/weibo.py", line 12, in <module>
        from cStringIO import StringIO
    ModuleNotFoundError: No module named 'cStringIO'

I have modified this code to support python3. You can get it from https://github.com/fengh16/sinaweibopy/blob/37b31103a04db7268ad14e0e802d826158f81a23/weibo.py

Awesome 👍
Thank you very much


macOS: avoid use of proctools' /usr/local/bin/pkill

Looks OK. Please check the wikipage and verify the mac/linux test status (if possible).

Updated.
Unfortunately, my main laptop running Ubuntu computer is broken for now, so I'll test on Linux later, maybe in a month.
It's time to release 0.1.1!

OK 😊
Od: Wataru Ashihara
Wysłano: sobota, 17 marca 2018 13:17
Do: rogalmic/vscode-bash-debug
DW: Michał; State change
Temat: Re: [rogalmic/vscode-bash-debug] macOS: avoid use of proctools'/usr/local/bin/pkill (#60)
Updated.
Unfortunately, my main laptop running Ubuntu computer is broken for now, so I'll test on Linux later, maybe in a month.
It's time to release 0.1.1!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.


Change some grammar and spelling

Hopefully reads a better with these changes.

@carsonmcdonald awesome job! thank you very much!


Holistic Model flickers in the latest release

System information

OS Platform and Distribution (e.g., Linux Ubuntu 20.04): Windows 10
Target Platform: Default (pc)
Mobile Device (if the target is Android or iOS): NA
MediaPipeUnityPlugin version or commit id: Latest 0.6.2   commit a754416741d4a16ce8b49c2adee77196bd762a47
Bazel version: 4.0.0
GCC/G++ version: NA
Android NDK version (if the target platform is Android):NA
Xcode version (if the target platform is iOS):NA

Describe the current behavior
The Holistic model flickers a lot in the latest commit. Earlier it worked very well.
Describe the expected behavior
Earlier it was much more stable.
Steps to reproduce the issue
I just cloned it and ran the build.py commands  python build.py build --desktop cpu --include_opencv_libs -v
Full logs

Additional context
Below is a screen recording of how it is going,
https://photos.app.goo.gl/6rQbLjrTLPXxeUPe7
What do you think have gone wrong here? Rest of the solutions/graphs are running well as they were working in older versions.

In addition, the following snippet seems to be unused. Could you please make a small documentation on how to use the world landmarks from this graph? That would be much helpful.
private LandmarkList FetchNextPoseWorldLandmarks()  {     return FetchNext(poseWorldLandmarksStreamPoller, poseWorldLandmarksPacket, poseWorldLandmarksStream);   }
https://github.com/homuler/MediaPipeUnityPlugin/blob/master/Assets/Mediapipe/Samples/Graphs/Holistic/Scripts/HolisticGraph.cs#L146-L148

In addition, the following snippet seems to be unused. Could you please make a small documentation on how to use the world landmarks from this graph? That would be much helpful.
private LandmarkList FetchNextPoseWorldLandmarks() { return FetchNext(poseWorldLandmarksStreamPoller, poseWorldLandmarksPacket, poseWorldLandmarksStream); }
https://github.com/homuler/MediaPipeUnityPlugin/blob/master/Assets/Mediapipe/Samples/Graphs/Holistic/Scripts/HolisticGraph.cs#L146-L148

@homuler Is there any example of how to use the world landmarks? I am trying to figure this out currently but the HolisticValue output only supports NormalizedLandMarkList rather than the returned LandmarkList. Just trying to get the world points from the 3d pose using the code in this push - https://github.com/homuler/MediaPipeUnityPlugin/commit/abbade082cbed35209f5c28ca5790f6c59c5e045

@ROBYER1 definitely documentation is required. BTW, If you get it running, please do mention the process in this issue!

Similar results here also, finding that the holistic graph, after running for about 60 seconds is lagging behind the user's body, this behaviour is consistent in Editor on Windows and on Android builds. Other graphs like the facemesh (solo) and pose track fine

AFAIK, world landmarks are only available for the pose tracking graph and not for holistic. I hope @homuler knows about this?
References:- https://codepen.io/mediapipe/

AFAIK, world landmarks are only available for the pose tracking graph and not for holistic. I hope @homuler knows about this?
References:- https://codepen.io/mediapipe/

Nope, available for holistic too, see here in the docs: https://google.github.io/mediapipe/solutions/holistic.html
Can you confirm you are getting similar latency/lag and drift with Holistic after 60 secs or so of running?

But holistic was running okay on an earlier version before? I may have to roll back if so but also the 3d pose points are something we may need...

Yes, it did worked well before
I am using the previous version only for my demonstrations.

Thanks, pulling that down to take a look and compare now

I can verify the latency issue is gone when rolling back to Mediapipe version 0.8.4 with this commit, seems in 0.8.6 at least the Holistic tracking has some latency after 30-60seconds for us on windows and android

I think #296 fixed this issue.
If the problem still continues, please reopen it.


Confusion on Ledger connection

When X is waiting for the user to sign the transaction, the popup keeps showing the following screen.

It gives users an impression that the Desmos Ledger app is not opened even the message has already been sent to the Ledger and the Ledger is able to sign the message and broadcast the tx.
Better to have clearer prompts of the following two states.

the app is being connected and waiting the user to the sign the message.
the message is signed and tx is being sent.

@Rooty help to prepare the screen

Hey team! Please add your planning poker estimate with ZenHub @Rooty2020 @rachelhox

@rachelhox
Sign with Ledger
https://www.figma.com/proto/w7LpoB8DejNVumjJPDrp7j/Forbole-X-_web-app_1.0-2021-04?page-id=192%3A2&node-id=3767%3A227407&viewport=241%2C48%2C0.11&scaling=scale-down&starting-point-node-id=3767%3A226342&show-proto-sidebar=1
Ledger image can be download on google drive:
https://drive.google.com/drive/folders/1OXRkJL58ql_TWDGbVnLgVmraifZ_Zcp4?usp=sharing


cargo-deny

cargo-deny is an amazing tool that protects from:

duplicated crates (code bloat)
copy-left licenses in the dependency tree
RUSTSEC advisories

…and more!
In this case I noticed that three-d brought in two copies of the image crate, which means a lot of extra code, which is in particularly worrisome when compiling to Wasm.

I think you mentioned it earlier, at least I looked at it but didn't get any further. Looks really good! 👍


System requirement

Thanks for the great work! Would you mind share the system requirement to run inference? Can I run it on free google colab T4 gpu with 15G GPU RAM?

diffusion_transformer_768p and bf16 OOM in my 4090 with 24G GPU RAM.

diffusion_transformer_384p runs fine, which takes about 17G GPU RAM.

diffusion_transformer_384p got OOM too..

Thanks for your attention! We are optimizing the usage of GPU memory now.

Thanks for your attention! We are optimizing the usage of GPU memory now.
Specifically, we use a tiled VAE decoding strategy, where the current setting of tile_sample_min_size prioritizes speed, but it can be changed to significantly reduce GPU memory usage:
https://github.com/jy0205/Pyramid-Flow/blob/e3389908eb34f08253f5f1e2c72f383ec052629d/pyramid_dit/pyramid_dit_for_video_gen_pipeline.py#L623

Thanks for the tip! tile_sample_min_size=128 seems to be a proper value for my 4090.

Thanks! and tile_sample_min_size=256 is great for A6000 (it went to near 40gb).

Thanks for your attention! We are optimizing the usage of GPU memory now.
Specifically, we use a tiled VAE decoding strategy, where the current setting of tile_sample_min_size prioritizes speed, but it can be changed to significantly reduce GPU memory usage:
https://github.com/jy0205/Pyramid-Flow/blob/e3389908eb34f08253f5f1e2c72f383ec052629d/pyramid_dit/pyramid_dit_for_video_gen_pipeline.py#L623

Thanks for the tip! tile_sample_min_size=128 seems to be a proper value for my 4090.

What kind of speeds are you getting with this setup?

Thanks for your attention! We are optimizing the usage of GPU memory now.
Specifically, we use a tiled VAE decoding strategy, where the current setting of tile_sample_min_size prioritizes speed, but it can be changed to significantly reduce GPU memory usage:
https://github.com/jy0205/Pyramid-Flow/blob/e3389908eb34f08253f5f1e2c72f383ec052629d/pyramid_dit/pyramid_dit_for_video_gen_pipeline.py#L623

Thanks for the tip! tile_sample_min_size=128 seems to be a proper value for my 4090.

What kind of speeds are you getting with this setup?

About one minute per clip.

@jy0205 awesome can you add all these parameters to gradio demo please?

how to run it on 2x RTX3090?

Why is it taking 1,5 hours to render a 5 seconds clip on a A6000?

how to run it on 2x RTX3090?
or maybe a better solution will be to buy a desktop with a dual processor, 12 memory channels each, ddr5, and total memory bandwidth 800GB/s ? single card with 48gb vram is too expensive and have similar memory bandwidth.. I'm wondering who could answer this question?

You may need to assign the cuda device manually for different part of the network, if you are familiar with pytorch. Just check the cpu offload code, it's similar.

Is it normal to render a 5 seconds video for 1,5 hours on an A6000?

It's not normal, please check the code and GPU usage. It would be better if you could share where the code is stuck.

how to run it on 2x RTX3090?
or maybe a better solution will be to buy a desktop with a dual processor, 12 memory channels each, ddr5, and total memory bandwidth 800GB/s ? single card with 48gb vram is too expensive and have similar memory bandwidth.. I'm wondering who could answer this question?

We are working on a solution for multi-GPU inference. Stay tuned.

Is it normal to render a 5 seconds video for 1,5 hours on an A6000?

It's not normal, please check the code and GPU usage. Maybe you have turned on CPU offloading. It would be better if you could share where the code is stuck at.

I will make a new issue for this topic. Or I will use my old one...

how to run it on 2x RTX3090?
or maybe a better solution will be to buy a desktop with a dual processor, 12 memory channels each, ddr5, and total memory bandwidth 800GB/s ? single card with 48gb vram is too expensive and have similar memory bandwidth.. I'm wondering who could answer this question?

We are working on a solution for multi-GPU inference. Stay tuned.

any predictions, how long will this take? 🤔

Is it normal to render a 5 seconds video for 1,5 hours on an A6000?

It's not normal, please check the code and GPU usage. Maybe you have turned on CPU offloading. It would be better if you could share where the code is stuck at.

I will make a new issue for this topic. Or I will use my old one...

Feel free to raise a new issue.

[INFO] Model initialized successfully.
[INFO] Starting text-to-video generation...
[ERROR] Error during text-to-video generation: Torch not compiled with CUDA enabled

it worked for me:
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=12.4 -c pytorch -c nvidia

If you see  this error [INFO] Model initialized successfully.
[INFO] Starting text-to-video generation...
[ERROR] Error during text-to-video generation: Torch not compiled with CUDA enabled
You can use this to fix this issue
conda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 pytorch-cuda=11.8 -c pytorch -c nvidia

My memory usage is around 24GB during gen and then spikes to 65GB during decode. I tried lowering tile_sample_min_size to 32, but it didn't reduce memory usage at all. Anyone have an idea what I am missing?

Thanks for your attention! We are optimizing the usage of GPU memory now.
Specifically, we use a tiled VAE decoding strategy, where the current setting of tile_sample_min_size prioritizes speed, but it can be changed to significantly reduce GPU memory usage:
https://github.com/jy0205/Pyramid-Flow/blob/e3389908eb34f08253f5f1e2c72f383ec052629d/pyramid_dit/pyramid_dit_for_video_gen_pipeline.py#L623

Thanks for the tip! tile_sample_min_size=128 seems to be a proper value for my 4090.

tile_sample_min_size=128 Worked like a charm on my 2x2080ti, still waiting for a way to get those 2 woeking together....


Ensure includes are html files

What's changed, or what was fixed?

Ensures that {% include %} tags are .html files

Target Live Date: ASAP

[ ] This has been reviewed and approved by (NAME)
[ ] I have run gulp test locally and all tests pass.
[X] I have added the appropriate type-something label.
[X] I've staged the site and manually verified that my content displays correctly.

CC: @petele

This'll break the build until @gauntface updates the existing md files that are includes.

:+1:

:tada: This has been pushed live to https://developers.google.com/web/


Better Board Encoding

I should probably implement something like run-length encoding for the grid storage.
This might be difficult with stacked tiles, so investigate if they can be efficiently stacked and/or just ignored. For some "blocker" sprites, these can probably always be used (and set to y=0 when loaded). Maybe shifting stacks into relative layers and slicing that way would be most optimal.
Another option to consider would be trying both horizontal and vertical slicing, then choosing the best option. It doubles the initial compression time, but storage and decompression probably gain a lot overall.

As a side-note, this would probably enhance initial render times by more easily allowing the use of createPattern.


cmd: refactor table printing code

convert 2-column printing code to general-purpose table printer (printTable)
deduplicate tabwriter calls from list/version/search into printTable
do not discard errors from printTable in cmds (return from RunE)
cmd/version: do not sort fields (looks more organized)

Codecov Report

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

@@           Coverage Diff           @@
##           master      #82   +/-   ##
=======================================
  Coverage   47.44%   47.44%
=======================================
  Files          12       12
  Lines         588      588
=======================================
  Hits          279      279
  Misses        262      262
  Partials       47       47

Continue to review full report at Codecov.

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

I'll add sorting back. installation.ListInstalledPlugins was already returning sorted but it's not a guarantee of the function.


Undefined index: expires_in in Google_Client->isAccessTokenExpired()

When checking if the access token is expired, it appears that the token only has the access token and the index "expires_in" doesn't exist.  My code:
    $client = new Google_Client();
    $client->setApplicationName("Name");
    $client->setScopes(array('https://apps-apis.google.com/a/feeds/groups/'));
    $client->setAuthConfig('client_secrets.json');
    $client->setRedirectUri($redirect_uri);
    $client->setAccessType('offline');
$client->setAccessToken($access_token);
      if ($client->isAccessTokenExpired()) {
//process
}

the error I get is:
Notice: Undefined index: expires_in in Google_Client->isAccessTokenExpired() (line 480 of google-api-php-client/vendor/google/apiclient/src/Google/Client.php).
a printout of the $this->token is only the access token, no other indexes.  Am I missing something?

isAccessTokenExpired is testing value usually passed in by $client->setAccessToken(…). Make sure you are passing the entire JSON string, not only the token part.
Typically this string is either fetched from the server $client->fetchAccessTokenWithAuthCode(…) or retrieved from a cache on disk json_decode(file_get_contents($credentialsPath), true).

Thank you!  I was trying to update older code when it wasn't returned all at once.


Support run FL courses when the server doesn't have data

In the current version, we need the server_data for building a model and getting a trainer, but in some cases, the server doesn't have the data or only has test data.
Furthermore, does the server really need a trainer?  I find that the server's trainer is only used for evaluation.

In some way, the aggregator is the training routine within the server, but it cannot support the test routine.

The data indicate some information like input dim, h/w in CNN. If no data is provided,  the users should set the specific number for each args of the model.


Multiselect close button

Hello Team,

Could anyone please assist how could I close the pop-up for multiselct on close button click.

It doesn't look like this bug report has enough info for one of us to reproduce it.
Please provide a CodeSandbox (https://material-ui.com/r/issue-template), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

This wasn't a bug report, it was a plea for help, I think we can all see what they were asking about, why not just give them the answer:
https://mui.com/components/selects/#controlling-the-open-state
And tell them about the onOpen event:
https://mui.com/api/select/#props
Here's the working example:
https://codesandbox.io/s/material-demo-forked-68pmi?file=/demo.tsx


Tweak namespace filter (in header of explorer) behavior

Empty value means All Namespaces (instead of Only User)
But the default value of the preference is now "only user", so a new user initially sees the same result as before.
If you pick any one of the 5 special options at the top, all other values are removed so you have just that one special value.
If you pick any regular ns/project below the special 5, those selections add together, and any of selected special view options are removed from the selection.

This: eliminates the oddity of selecting "all namespaces" selects more than the default empty filter.  And disallows all sorts of odd combinations of selecting multiple conflicting special views or a special + some namespaces that didn't really make sense.

Fixed


Multiple events of different payloads

Hi @dimitri-br
I like the simplicity of this event bus, I tried to add a feature to but got stranded. That probably because I am quite new to Rust.
My idea was to add the ability to have different events with any type of payload, so that you could do something like this:
fn main() {
  let mut event_bus = EventBus::new();

  // Add each subscriber to the event bus, two for the "foo" and one for the "bar" event
  event_bus.subscribe_listener("foo".to_string(), FooOneSubscriber::new("Foo Subscriber 1".to_string()));
  event_bus.subscribe_listener("foo".to_string(), FooTwoSubscriber::new("Foo Subscriber 2".to_string()));
  event_bus.subscribe_listener("bar".to_string(), BarSubscriber::new("Foo Subscriber 1".to_string()));

  // publish two events, one for each.
  event_bus.publish("foo".to_string(), Event::new("hello".to_string()));  // takes a String as payload/message
  event_bus.publish("bar".to_string(), Event::new(42)); // takes a Number/u32 as payload/message

  // Run through each event
  event_bus.run();
}

The event name (foo/bar) is always a String but it should be able to take any kind of payload/message, e.g. String, u32, Struct/Trait
I started with changing the event of EventBus into a HashMap, but got into a conflict where I could only payloads of either a String or u32, not both. And got lost while trying to refactor everything into a Trait.
Any pointers that you can give me are very welcome!
This is the changed event_bus:
#![allow(dead_code)]

use std::collections::HashMap;
use super::Event;
use super::Subscriber;

pub struct EventBus<T> {
    /// A vec of events that have been published to the event bus.
    events: HashMap<String, Vec<Box<Event<T>>>>,
    /// A vec of all subscribers that are linked to the event bus.
    subscribers: HashMap<String, Vec<Box<dyn Subscriber<Input = T>>>>,
}

impl<T> EventBus<T> {

    pub fn new() -> EventBus<T> {
        EventBus {
            events: HashMap::new(),
            subscribers: HashMap::new(),
        }
    }

    pub fn publish(&mut self, event_name: String, message: Event<T>) {
        if self.events.contains_key(&event_name) {
            self.events.get_mut(&event_name).unwrap()
                .push(Box::new(message));
        } else {
            self.events.insert(event_name, vec![Box::new(message)]);
        }
    }

    pub fn subscribe_listener<R: Subscriber<Input = T> + 'static>(&mut self, event_name:String, listener: R) {
        if self.subscribers.contains_key(&event_name) {
            self.subscribers.get_mut(&event_name).unwrap()
                .push(Box::new(listener));
        } else {
            self.subscribers.insert(event_name, vec![Box::new(listener)]);
        }
    }

    pub fn run(&mut self) {
        for (event, messages) in self.events.drain() {
            if self.subscribers.contains_key(&event) {
                for listener in self.subscribers.get_mut(&event).unwrap().iter_mut() {
                    for message in &messages {
                        listener.on_event(message);
                    }
                }
            } else {
                println!("No event subscribers for '{}'", event);
            }
        }
    }
...
}

// Default
impl<T> Default for EventBus<T> {
...
}

And this is the Example to test it
use simple_event_bus::{Event, EventBus, Subscriber};

struct ExampleSubscriber {
    pub name: String,
}

impl ExampleSubscriber {
    pub fn new(name: String) -> ExampleSubscriber {
        ExampleSubscriber { name }
    }
}

impl Subscriber for ExampleSubscriber {
    type Input = String;

    fn on_event(&mut self, event: &Event<Self::Input>) {
        println!("{} received message: {}", self.name, event.get_data());
    }
}

struct NumberSubscriber {
    pub name: String,
}

impl NumberSubscriber {
    pub fn new(name: String) -> NumberSubscriber {
        NumberSubscriber { name }
    }
}

impl Subscriber for NumberSubscriber {
    type Input = u32;

    fn on_event(&mut self, event: &Event<Self::Input>) {
        println!("{} received message: {}", self.name, event.get_data());
    }
}

fn main() {
    let mut event_bus = EventBus::new();

    // We have to manually create and add each subscriber to the event bus.
    // event_bus.subscribe_listener("bar".to_string(), ExampleSubscriber::new("Subscriber 1".to_string()));
    // event_bus.subscribe_listener("bar".to_string(), ExampleSubscriber::new("Subscriber 2".to_string()));
    event_bus.subscribe_listener("foo".to_string(), NumberSubscriber::new("Number Subscriber".to_string()));

    // We can manually define an event and publish it to the event bus.
    // event_bus.publish(Event::new("hello".to_string()));
    let number: u32 = 32;
    event_bus.publish("foo".to_string(), Event::new(number));
    // event_bus.publish("bar".to_string(), Event::new("hello".to_string()));

    // Runs through each event, and calls each listener's on_event method.
    event_bus.run();
}

It works, but I can't use both ExampleSubscriber and NumberSubscriber at the same time...

Yep that makes sense! This is how rust works, it's very finicky when it comes to types and generics. There's a few ways you can work around this, but most of them involve casting to a generic type (such as Any), then downcasting back to the type you want.
You'd need to change how the structs and traits are formulated, I'll make a full example tomorrow and get it uploaded. But the gist of it is to avoid using generics for the simplest and imo, cleanest option.
Something like
pub struct Event {
    /// The data that is held by the event.
    pub data: Box<dyn Any>,
}

impl Event {
    /// # New
    ///
    /// Creates a new event.
    pub fn new<T: 'static>(data: T) -> Event {
        let data = Box::new(data);
        Event { data }
    }

    pub fn get_data<T: 'static>(&self) -> Option<&T> {
        self.data.downcast_ref::<T>()
    }
}

for the event and
pub trait Subscriber {
    fn on_event(&mut self, event: &Event);
}

for the subscriber
This should be a good start. You'll need to adjust the rest of the code, and it's probably a good idea to try and expand it further. You can look into downcasting for getting a type out of the Any value. This will mean that you'll need to do a bit more work to get any meaningful types out of it, and it could potentially have issues if you downcast the wrong type - if both Subscribers are listening to "foo" and recieve an integer, they'll have a garbage output and it'll cause issues for example.
You can do a simple check for this though. Something like this could work:
impl Subscriber for NumberSubscriber {
    fn on_event(&mut self, event: &Event) {

        // Here we can do whatever we want with the event.
        // Downcast to a string, as we know that the event is a string.
        let event = event.get_data::<i32>().unwrap_or_else(|| {
            panic!("{} received an event that was not a number!", self.name);
        });

        println!("{} received number: {}", self.name, event);
    }
}

this is really just one way to do it, and it's very simple too. It involves a bit of manual work when it comes to using it, but I think it could be extended too if you want to do more with it!
Hope that's helped, let me know if you need anything else :)

@dimitri-br Thank you so much!
I now managed to get it working. It was indeed one of those small Rust things that blocked me.
Now, I have changed it into payloads of Any type and with event names with separate sets of subscribers.
I forked your repo here and added the change there.
Would you want it included in your repo that I raise a PR or do you rather want to keep what you have?


[Bug]: Delivery orders out of delivery area are allowed

What happened?

Go to the menu page.
Enter an address out of the delivery area.
An error message will show up saying unable to deliver to this address.
Ignore the message and continue adding items.
Check out as normal.
Order goes through at default delivery charge.

What did you expect to happen?
Orders out of the delivery area should be rejected.
Version
3.2.x
What browser are you seeing the problem on?
No response
Relevant log output
No response

Fixed :)


"morphemes" array may contain strings

If the string is a lexeme key.

See #141 for a broader treatment of reference data.


Hadamard of size 12

Could you add support for
h12 = """
+-++++++++++
--+-+-+-+-+-
+++-++----++
+---+--+-++-
+++++-++----
+-+---+--+-+
++--+++-++--
+--++---+--+
++----+++-++
+--+-++---+-
++++----+++-
+-+--+-++---
"""

This is constructed using the Paley II construction for q=5.
It is a symmetric matrix.

Do you want to send a PR?

If it's as simple as copying what's there for 20 and 28, I can try. Anything else I should pay attention to?

I think it's just copying what's there for 20 and 28.


Provider assets

This pull request adds static assets support for providers. It uses a new static_assets method in Provider that returns a HashMap with filenames as keys and file contents as values. It puts files into /assets in the Docker container, and you can get the path to an asset by calling app.asset_path(name: &str).
See #158

Should all hopefully be resolved now.


MasterASKey rollover

Currently, that MasterASKey cannot be changed. According to the SCION book this key should change every couple of days. The current proposal to do this having at most two keys active (to enable seemless key rollover) and adding a 'keyslot' bit to each HopField that indicates which key slot is used for the hop field.

The BS would be in charge of master key rollover. The BR doesn't actually need the master key, it only needs the hopfield MAC key if i remember correctly. In that case the BS would send a command to the BR saying "update your hopfield MAC key on slot [01]", and the BR needs to persist this to disk to survive restarting the process.


Tag 1.9 not published on NPM

The v1.9 is not available yet on npm: https://www.npmjs.com/package/vue-table-component

Fixed :)