DOMException: setOptions failed on takePhoto()

Using your own Quick Start example in Chrome Version 64.0.3282.186 (Official Build) (64-bit), the error DOMException: setOptions failed is thrown when takePhoto() is called:
function gotMedia(mediaStream) {
  // Extract video track.
  videoDevice = mediaStream.getVideoTracks()[0];
  // Check if this device supports a picture mode...
  let captureDevice = new ImageCapture(videoDevice);
  if (captureDevice) {
    captureDevice.takePhoto().then(processPhoto).catch(stopCamera);
    captureDevice.grabFrame().then(processFrame).catch(stopCamera);
  }
}

the same issue, here also;
Version 65.0.3325.162 (Official Build) (64-bit)

Same Issue, Chrome 65.0.3325.162 (Official Build, 64-bit for Windows).
Example Code to reproduce:
navigator.mediaDevices.getUserMedia({audio: false, video: true}).then((stream) => {
   let track = stream.getVideoTracks()[0];
   console.log(track) // -> MediaStreamTrack Object
   let capture = new ImageCapture(track);
   return capture.takePhoto();
}).then(console.log).catch(console.error)
// -> throws error:
// DOMException: setOptions failed

For those who only need to get an Image while this is not fixed or explained, I used grabFrame, where this error does not occur and then reversed the hotfixed process a bit by drawing the resulting bitmap on a canvas and getting the Image as DataURL. If someone has a better way to converting the ImageBitmap to an Image, I would appreciate it very much. Samplecode:
navigator.mediaDevices.getUserMedia({audio: false, video: true}).then((stream) => {
   let track = stream.getVideoTracks()[0];
   console.log(track)
   let capture = new ImageCapture(track);
   console.log(capture)
   return capture.grabFrame();
}).then((bitmap) => {
   let canvas = document.createElement('canvas');
   let context = canvas.getContext('2d');
   context.drawImage(bitmap, 0, 0, bitmap.width, bitmap.height)
   return canvas.toDataURL();
}).then((src) => {
   // do something with the source
   console.log(src)
}).catch(console.error)

I have same issue, Version 68.0.3440.106 (Official Build) (64-bit) in Mas OS.

Does anybody know how to overcome this issue in Chrome 68? I'm getting the exact same error. Using the GrabFrame option isn't really an option for me, because taking full-resolution images is a requirement for my project.
I already tried this approach from the video.js library, which doesn't solve the problem and has been removed from their code in favor of the GrabFrame method as a workaround.
Does anybody know, which parameters are required in order to prevent the method from crashing?
@thijstriemstra  Maybe you?

I have the same thing.
Version 73.0.3683.103 (Official Build) (64-bit)

Experiencing same issue. Chrome 76.0.3809.111 , Android 8.1.0
Only grabFrame() works

Looks like nobody is working on this issue.

no updated ?

Any updates on this?

Any updates on this?

In the current Version of Chrome, it seems to work again.
Version:  Version 80.0.3987.149 (Offizieller Build) (64-Bit)
working code:
(async () =>{
  const stream = await navigator.mediaDevices.getUserMedia({video:true, audio:false});
  if(!stream.getVideoTracks().length) throw new Error('no webcam');
  const capture = new ImageCapture(stream.getVideoTracks()[0]);
  const photoBlob = await capture.takePhoto();
  console.log(photoBlob)
})()

If problems still exist, they might be bound to specific browser version. Close issue?

Any update on this?

Hi all!
With:
const capture = new ImageCapture(this.peer_stream.getVideoTracks()[0]);
if (capture) {
console.log(capture);
const photoBlob = capture.takePhoto();
console.log(photoBlob);
}
I get this error: Uncaught (in promise) DOMException: The associated Track is in an invalid state.

Any news about how to solve it?

Any news about how to solve it? Google Chrome 81.0.4044.138

Same
Error: InvalidStateError: The associated Track is in an invalid state.
Mozilla/5.0 (Linux; Android 10; RMX1971) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.101 Mobile Safari/537.36

:'(

same problem here. Any news on the issue?

the problem does not appear on Chrome android

hi. i'm jan. same issue on my end.
best regards

Any update on the issue?

Any update on the issue? Please don't abandon us.

i have the same issue in chrome Version 98.0.4758.102 (Offizieller Build) (64-Bit)

Hi everyone. While I'm the original creator of this library, I haven't been with Google for 3 years.
Could anyone from @GoogleChromeLabs take a look? @PaulKinlan / @paulirish ?

@GoogleChromeLabs - would be great to have some updates on this feature 🤔

@beaufortfrancois might be able to help.

The "InvalidStateError: The associated Track is in an invalid state." error is returned when TrackIsInactive() is true according to https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/imagecapture/image_capture.cc;l=252;drc=287fa204b78ccaa8da5c1a155c5fbfacafef31c8
bool TrackIsInactive(const MediaStreamTrack& track) {
  return track.readyState() != "live" || !track.enabled() || track.muted();
}

Can you look at readyState, muted, and enabled attributes from your video track and see if one is true?

While this is getting attention and it's over 3years I can remember what I
did that triggered the error. I will try to replicate
On Wed, May 4, 2022, 2:02 PM François Beaufort @.***>
wrote:

The "InvalidStateError: The associated Track is in an invalid state."
error is returned when TrackIsInactive() is true according to
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/imagecapture/image_capture.cc;l=252;drc=287fa204b78ccaa8da5c1a155c5fbfacafef31c8
bool TrackIsInactive(const MediaStreamTrack& track) {
return track.readyState() != "live" || !track.enabled() || track.muted();
}
Can you look at readyState, muted, and enabled attributes from your video
track and see if one is true?
—
Reply to this email directly, view it on GitHub
https://github.com/GoogleChromeLabs/imagecapture-polyfill/issues/15#issuecomment-1117286473,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEQKOJS7ST7G7AU5EXEKN53VIJYOVANCNFSM4ESFR3FQ
.
You are receiving this because you commented.Message ID:
@.***>

@beaufortfrancois Any updates on this? Would be nice to be able to easily screenshot streams in the browser. Right now the method to draw the imageBitmap to a canvas doesn't work if the stream is a portrait mode camera, as there is no way to infer whether or not the stream is in portrait/landscape mode from the MediaTrack methods, and the height and width of the imageBitmap stays the same when flipped leading to a skewed image.


Fixed DB example

Fixed error/index controller
Fixed test/ajax controller

Coverage decreased (-0.49%) to 25.37% when pulling 1d16eb43520b5ae86a7d63faeee2a94463456ca0 on AntonShevchuk:master into 4dc99b1dd3740fba05a9b97170eec912c0118fd7 on bluzphp:master.


crash on opening folder

Describe the bug
A clear and concise description of what the bug is.
So basically i open up a folder with my school project and app crashed. Then i restarted Files and folder opened.
To Reproduce
Steps to reproduce the behavior:

Dunno

Expected behavior
A clear and concise description of what you expected to happen.
Expected to open folder and not to crash xd
Screenshots
If applicable, add screenshots to help explain your problem.
Here's the screenshot of what's in folder.

Desktop (please complete the following information):

OS Version:Windows 10 20H2 19042.804
App version: v<IP_ADDRESS>

Additional context
Add any other context about the problem here. Does this problem occur again after restarting the app?
Log file
Please upload the log file here so that we can understand your issue better. You can access it from Settings->About->Open log location. You can also find this file by going to %localappdata%\Packages\49306atecsolution.FilesUWP_et10x9a9vyk8t\LocalState, you should see a file in this directory called debug.txt or/and debug_fulltrust.txt.
https://pastebin.com/pcHJKLvK

@a03z is this an issue in v2.0.34?


Add support for --silent

npm command has this --silent option to avoid npm test to spit out npm errors when running npm command as a script. I found that really nice.
Would be nice for npm-run-all to have this options too.

Thank you for this issue.
I confirmed npm run --silent foo hides lines which start with npm ERR!.
It's really nice!
I will add the option to npm-run-all.

I added it!
https://github.com/mysticatea/npm-run-all/releases/tag/v1.5.0

Great. Thank you


Cannot add same event to INI for both players and Pets

If you add it to EventsPet= and then to EventsPlayer= you will get an error about duplicate events. But sometimes you need the same event on an NPC as you do a Player.  Sphere used to function this way in the past as well.

Right now this would require a big update to CResourceRefArray which stores all events into the same container for other purposes. My best suggestion for the moment is to move all the code inside the triggers of these events to functions, then replicate the events with other name and the same triggers, but just calling the functions instead.

I have it sorted out with the same method you mention, using functions inside the triggers. I just wanted to make sure I reported this, it's not critical, but it was one of those things I constantly forgot to report. Thank you.

confirmed this is working, thank you!


Use NIO's primitive functions for flatMap and its siblings.

Also fixes a stack overflow in case of many nested flat maps (see the tests). Plus, it speeds up testFlatMapPerformance by about 20%:

Thanks to @weissi for finding the culprit and suggesting a fix as well as tests.

@tanner0101 would you mind reviewing this?

Thanks @MrLotU! Could anyone with merge rights merge this?

@MrMage There are a few issues with the tests. I'm currently working on resolving those and will merge & tag this once done 😄


Handle Qsys IPX file hierarchy

Allow IPX files in rtl_src_config.
Generate a master components.ipx, pointing to the sub-IPX files, in the Quartus build.

This finally fixes Qsys components problems. You can now afu_synth_setup and build anywhere, even the dma_afu. Instead of copying a static components.ipx file that depends on building in exactly one place, the new code gets a list of hierarchical ipx files and constructs a top-level file in the build directory.
Tested by building dma_afu successfully. ASE regressions test the changes to rtl_src_config: http://sw-pert.altera.com/pert/pert.php?test_run_id=2184050

@michael-adler In file platform_shim_ccip_std_afu.sv , you made the changes to:
       __avalon_mem_if#(.ENABLE_LOG(0))__

Good catch, but it's intentionally disabled there. Memory is still logged in ase_top. This was a secondary location at a clock crossing boundary. I decided it was both unnecessary for typical users and it was printing the wrong memory bank number due to convoluted SystemVerilog requirements. I have to revisit the bank numbering problem at some point.


feat(react-email): Add custom port configuration

Added option to command line for dev server.
Consolidated shell execution to a function as it was called in two places..

fixes https://github.com/resendlabs/react-email/issues/372

Awesome, thanks @FidelElie !


Hw6 parts 1,2,3

Codecov Report

Merging #15 (d3f87c9) into main (11401d8) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              main       #15    +/-   ##
==========================================
  Coverage   100.00%   100.00%
==========================================
  Files            9        10     +1
  Lines          402       604   +202
==========================================
+ Hits           402       604   +202

Impacted Files
Coverage Δ

splitinerary/event.py
100.00% <100.00%> (ø)

splitinerary/trip.py
100.00% <100.00%> (ø)

splitinerary/user.py
100.00% <100.00%> (ø)

test/unit/test_event.py
100.00% <100.00%> (ø)

test/unit/test_transportation.py
100.00% <100.00%> (ø)

test/unit/test_trip.py
100.00% <100.00%> (ø)

test/unit/test_user.py
100.00% <100.00%> (ø)

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


[🐛 Bug]: Using starter toolkit does not work using yarn

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

WebdriverIO Version
latest
Node.js Version
16.14.2
Mode
Standalone Mode
Which capabilities are you using?
No response
What happened?
While trying to use the starter toolkit, I keep getting this error.
marccaballero@LM-SJC-11016683 checkout % yarn create wdio .
yarn create v1.22.11
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Installed<EMAIL_ADDRESS>with binaries:
      - create-wdio
[#############] 13/13
                 -:...........................-:.
                 +                              +
              `` +      `...`        `...`      + `
            ./+/ +    .:://:::`    `::///::`  ` + ++/.
           .+oo+ +    /:+ooo+-/    /-+ooo+-/ ./ + +oo+.
           -ooo+ +    /-+ooo+-/    /-+ooo+-/ .: + +ooo.
            -+o+ +    `::///:-`    `::///::`    + +o+-
             ``. /.     `````        `````     .: .``
                  .----------------------------.
           `-::::::::::::::::::::::::::::::::::::::::-`
          .+oooo/:------------------------------:/oooo+.
      `.--/oooo-                                  :oooo/--.`
    .::-``:oooo`                                  .oooo-``-::.
  ./-`    -oooo`--.: :.--                         .oooo-    `-/.
 -/`    `-/oooo////////////////////////////////////oooo/.`    `/-
`+`   `/+oooooooooooooooooooooooooooooooooooooooooooooooo+:`   .+`
-/    +o/.:oooooooooooooooooooooooooooooooooooooooooooo:-/o/    +.
-/   .o+  -oooosoooososssssooooo------------------:oooo- `oo`   +.
-/   .o+  -oooodooohyyssosshoooo`                 .oooo-  oo.   +.
-/   .o+  -oooodooysdooooooyyooo` `.--.``     .:::-oooo-  oo.   +.
-/   .o+  -oooodoyyodsoooooyyooo.//-..-:/:.`.//.`./oooo-  oo.   +.
-/   .o+  -oooohsyoooyysssysoooo+-`     `-:::.    .oooo-  oo.   +.
-/   .o+  -ooooosooooooosooooooo+//////////////////oooo-  oo.   +.
-/   .o+  -oooooooooooooooooooooooooooooooooooooooooooo-  oo.   +.
-/   .o+  -oooooooooooooooooooooooooooooooooooooooooooo-  oo.   +.
-+////o+` -oooo---:///:----://::------------------:oooo- `oo////+-
+ooooooo/`-oooo``:-```.:`.:.`.+/-    .::::::::::` .oooo-`+ooooooo+
oooooooo+`-oooo`-- `/` .:+  -/-`/`   .::::::::::  .oooo-.+oooooooo
+-/+://-/ -oooo-`:`.o-`:.:-````.:    .///:``````  -oooo-`/-//:+:-+
: :..--:-:.+ooo+/://o+/-.-:////:-....-::::-....--/+ooo+.:.:--.-- /
- /./`-:-` .:///+/ooooo/+///////////////+++ooooo/+///:. .-:.`+./ :
:-:/.           :`ooooo`/`              .:.ooooo :           ./---
                :`ooooo`/`              .:.ooooo :
                :`ooooo./`              .:-ooooo :
                :`ooooo./`              .:-ooooo :
            `...:-+++++:/.              ./:+++++-:...`
           :-.````````/../              /.-:````````.:-
          -/::::::::://:/+             `+/:+::::::::::+.
          :oooooooooooo++/              +++oooooooooooo-

                           Webdriver.IO
              Next-gen browser and mobile automation
                    test framework for Node.js

Installing @wdio/cli to initialize project...
file:///Users/marccaballero/.config/yarn/global/node_modules/create-wdio/build/utils.js:16
                return reject(new Error((error && error.message) ||
                              ^

Error: Error calling: npm install --save-dev --loglevel error @wdio/cli@latest
    at ChildProcess.<anonymous> (file:///Users/marccaballero/.config/yarn/global/node_modules/create-wdio/build/utils.js:16:31)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
error Command failed.
Exit code: 1
Command: /Users/marccaballero/.yarn/bin/create-wdio
Arguments: .
Directory: /Users/marccaballero/checkout/checkout
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

Initially I though it may be related to the M1 chip since I have noticed multiple libraries have had issue with this chip, but I tested in a previous version of a mac pro and it is still failing for the same reason, as you can see there's no output message shown in the error so this is what I can deliver
What is your expected behavior?
That the toolkit works or having documentation to manually integrate the library
How to reproduce the bug.
Using node v16.14.2
running yarn create wdio .
Relevant log output
marccaballero@LM-SJC-11016683 checkout % yarn create wdio .
yarn create v1.22.11
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Installed<EMAIL_ADDRESS>with binaries:
      - create-wdio
[#############] 13/13
                 -:...........................-:.
                 +                              +
              `` +      `...`        `...`      + `
            ./+/ +    .:://:::`    `::///::`  ` + ++/.
           .+oo+ +    /:+ooo+-/    /-+ooo+-/ ./ + +oo+.
           -ooo+ +    /-+ooo+-/    /-+ooo+-/ .: + +ooo.
            -+o+ +    `::///:-`    `::///::`    + +o+-
             ``. /.     `````        `````     .: .``
                  .----------------------------.
           `-::::::::::::::::::::::::::::::::::::::::-`
          .+oooo/:------------------------------:/oooo+.
      `.--/oooo-                                  :oooo/--.`
    .::-``:oooo`                                  .oooo-``-::.
  ./-`    -oooo`--.: :.--                         .oooo-    `-/.
 -/`    `-/oooo////////////////////////////////////oooo/.`    `/-
`+`   `/+oooooooooooooooooooooooooooooooooooooooooooooooo+:`   .+`
-/    +o/.:oooooooooooooooooooooooooooooooooooooooooooo:-/o/    +.
-/   .o+  -oooosoooososssssooooo------------------:oooo- `oo`   +.
-/   .o+  -oooodooohyyssosshoooo`                 .oooo-  oo.   +.
-/   .o+  -oooodooysdooooooyyooo` `.--.``     .:::-oooo-  oo.   +.
-/   .o+  -oooodoyyodsoooooyyooo.//-..-:/:.`.//.`./oooo-  oo.   +.
-/   .o+  -oooohsyoooyysssysoooo+-`     `-:::.    .oooo-  oo.   +.
-/   .o+  -ooooosooooooosooooooo+//////////////////oooo-  oo.   +.
-/   .o+  -oooooooooooooooooooooooooooooooooooooooooooo-  oo.   +.
-/   .o+  -oooooooooooooooooooooooooooooooooooooooooooo-  oo.   +.
-+////o+` -oooo---:///:----://::------------------:oooo- `oo////+-
+ooooooo/`-oooo``:-```.:`.:.`.+/-    .::::::::::` .oooo-`+ooooooo+
oooooooo+`-oooo`-- `/` .:+  -/-`/`   .::::::::::  .oooo-.+oooooooo
+-/+://-/ -oooo-`:`.o-`:.:-````.:    .///:``````  -oooo-`/-//:+:-+
: :..--:-:.+ooo+/://o+/-.-:////:-....-::::-....--/+ooo+.:.:--.-- /
- /./`-:-` .:///+/ooooo/+///////////////+++ooooo/+///:. .-:.`+./ :
:-:/.           :`ooooo`/`              .:.ooooo :           ./---
                :`ooooo`/`              .:.ooooo :
                :`ooooo./`              .:-ooooo :
                :`ooooo./`              .:-ooooo :
            `...:-+++++:/.              ./:+++++-:...`
           :-.````````/../              /.-:````````.:-
          -/::::::::://:/+             `+/:+::::::::::+.
          :oooooooooooo++/              +++oooooooooooo-

                           Webdriver.IO
              Next-gen browser and mobile automation
                    test framework for Node.js

Installing @wdio/cli to initialize project...
file:///Users/marccaballero/.config/yarn/global/node_modules/create-wdio/build/utils.js:16
                return reject(new Error((error && error.message) ||
                              ^

Error: Error calling: npm install --save-dev --loglevel error @wdio/cli@latest
    at ChildProcess.<anonymous> (file:///Users/marccaballero/.config/yarn/global/node_modules/create-wdio/build/utils.js:16:31)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
error Command failed.
Exit code: 1
Command: /Users/marccaballero/.yarn/bin/create-wdio
Arguments: .
Directory: /Users/marccaballero/checkout/checkout
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

### Is there an existing issue for this?

- [X] I have searched the existing issues

The problem is our shouldUseYarn helper which currently is very dump and could be improved to use Yarn when other factors play in.

@marcial199545 after looking into this, it seems that it is unrelated to whether Yarn is installed or not. I wonder why npm install --save-dev --loglevel error @wdio/cli@latest is failing for you, have you tried to run it manually? Do you have NPM for some reasons not installed?

Hello, I'm running into the exact same issue with yarn - NPM is installed and I am running on node v18.12.1, also a Macbook M1 Pro. Are there any updates on this by any chance?

Are there any updates on this by any chance?

As you can see there are no updates. Any help on this issue would be appreciated.

Hello! I realised this is due to incorrect peer dependencies in the project installation. This only triggers some warnings when running with yarn but fails completely when using npm. After solving the incorrect peer dependencies, the installation is working properly.
However, I think the ultimate issue is that despite my project being setup with yarn, the installation steps through create-wdio are done with npm. This leads to the creation of a package-lock.json which I believe is incorrect (I would expect an update of my yarn.lock).
I see there was a commit here to better detect yarn project but it looks like the pipeline has failed. I'm wondering if this was intended to solve similar issues that we have been facing?
I haven't had the chance to really dig into the project, so please let me know if this sounds incorrect!

I see there was a commit here to better detect yarn project but it looks like the pipeline has failed. I'm wondering if this was intended to solve similar issues that we have been facing?

The change was released with the latest version.

However, I think the ultimate issue is that despite my project being setup with yarn, the installation steps through create-wdio are done with npm.

Can you provide a way to reproduce this? There might be some approaches we have missed. Afaik it should not use NPM if Yarn is detected.

Closing due to inactivity.


Missing release folder in the NPM package

Why in the NPM package the release folder is no more included with the recent versions?

Was never meant to be included


Fix issue with GitLens extension not working

Currently GitLens is not working. Previously this was working as expected but stopped since the update of theia to version 1.40.
Replication steps

Open a new devtainer
Go to the extensions tab
Search for GitLens
Click install
The gitlens tab will automatically be open but be missing its icon.
An error will appear when you hover over the tab saying something similar to … server IP address could not be found.

As we believe this issue is actually fixed in the latest release of Dockside, we are closing this.


mariadb: unlink withNuma from withEmbedded

mariadb: unlink withNuma from withEmbedded

Numa and Embedded is/seems unrelated.

https://dev.mysql.com/doc/refman/8.0/en/source-configuration-options.html#option_cmake_with_numa

Embedded was deprecated.

I'm not removing it because as ajs124 said, amarok is still using it.

This PR targets staging because it would conflict in staging if targeted master. (Another staging PR changed same parts of file.)

this is used in nixpkgs by amarok since #195644, so we can't easily get rid of this

this is used in nixpkgs by amarok since #195644, so we can't easily get rid of this

Thanks. Won't change.
As NUMA is unrelated to embedded. I'm repurposing PR to reflect it.
https://dev.mysql.com/doc/refman/5.7/en/source-configuration-options.html#option_cmake_with_numa

@ajs124  Can you review/approve this?

forgot about this, sorry. can't this go to master?

Last time I checked, it would create a merge conflict in staging, unless maria PR is already at master.  Will re-check.


If "EPA Waste"true, federal waste required

If the epaWaste value for a waste line is true, then a federal waste code is required.

closed with #584


Document management command for activating history module

There's a management command which needs to be run to "initialise" history when VersionMixin is introduced to models with existing data.
The docs currently don't make mention of that.

there is a PR and review just came


Ported library to Netty 4.1.4, fixed a bug in Server.java and general code cleanup.

Hi
I ported the PacketLib library to Netty 4.1.4 (latest release) because Netty 5 has been discontinued since November 2015 and we previously encountered thread leaks when using it.
I also added my suggested fix for the "bug" in Server.java with isListening() and removed some unused imports. Finally I updated the versions of the Maven plugins in the pom file.

Can you fix some of the indentation in the pom.xml? If you look in the commit diff, you'll see that some of it got broken.

Will go ahead and fix manually in a follow up.

Sorry about that, it looked fine in Notepad++. Must have mixed up spaces and tabs or something.


setting the mock location on the device and android emulator.

Fix:
The code fix addresses the issue [https://github.com/appium/appium/issues/4309] on appium 1.5 to set the Location on the Android Devices and Android Emulators.It is linked with the [appium/io.appium.settings#6] .This feature will work once the settings apk is published to npm.
Commit summary:
set Location uses Android Service (in the settings apk )is invoked in the case of device.
Need to enable Allow mock locations option in the Developer Options in Device/Emulator

io.appium.settings v2.1.0 published with the required changes.

One small style change, then it looks good!

Two other things to do:

Update the version of io.appium.settings in package.json to 2.1.0, so the settings app has everything that is needed.

Add a test. I've taken the liberty to write one, which you can put into this PR: https://gist.github.com/imurchie/6fdfa7b90717916e23d1

@imurchie Thanks for your review. I have updated the commit.

@jlipps @imurchie
Ideally to execute this test we need to enable Allow mock locations option in the Developer Options. Do you think we have to check this option in the Device/Emulator against which the test is getting executing ?

Ah! Hadn't thought of that.

I've spent a bit trying to automate turning on mock location privileges on the CI machines, to no avail. I will try to get the image changed so it is just on.
In the meantime, I think you ought to just mark this to skip (i.e., describe.skip("geo-location", function () {) and we'll revisit when the CI has been fixed.

@imurchie or we could put "@skip-ci" in the text as we have done in other places

I don't think gulp e2e-test respects @skip-ci.

ahhh, good point

+1

@imurchie can we proceed with this?

Revisiting.


[UI][API Key] Restore API key not longer functions

v0.16.0

Set Auth on
Create API key
Go to container and click View in API
Use key
Go back and Deactivate, Delete then restore API key
Go to Container and click View in API
Use key

Results:
Key no longer works
Expected:
If after delete the key will no longer work, we shouldn't give them the option to restore it.

The key is inactive after being restored.  You have to activate it before it can be used.

I'm a dork.


IMP: Tweak CF CDN and fix redirects for speed

Issue 1: HTML is not cached
fetching HTML doc alone take ~1s (location SG) and it is because CF cache by default contents with extensions like .html.

FIx: Create page rule to cache everything
Follow this guide >> https://support.cloudflare.com/hc/en-us/articles/236166048. Post doing this you can verify fix by inspecting http header cf-cache-status: HIT
Issue 2: Redirects causing to fetch from origin 2 times and doubles latency
For example /request is redirecting (301) to origin /requests/ and it is easy to fix.

@actuallyKasi - please submit a PR ( https://help.github.com/articles/about-pull-requests/)

Also note that issue 1 can be fixed by someone with Cloudflare control panel access.

PR for (2) made at pull #294
Admins, please fix (1)

@naveenpf   - #294  can be merged.

@biswaz Can you ask someone with Cloudflare access to setup html caching? That can save a lot in terms of latency


Please invite me to the GitHub Community Organization

Name
Isha
Discord Username (if applicable)
ahsi#7583
Additional Context
I got the invitation and came to know about this community through email.

You have received an email to join, or press this link - https://github.com/JaidevStudio - , and you'll see a banner, for you to join the organisation! 🎉
You can also show that you are part of this org, by making yourself public. This will show our profile org on your profile:
Follow This:

After you join the organisation, search your name in the list of people. 🔍
Follow this below: ⬇

🎉🎊Welcome to Jaidev Studio🎉🎊!!

Why not contribute to...
Unique-Github-Profiles!

If you need anything- help or support - please reopen this issue. Thank you.


added CLI tool for deleting file

Adds command line tool for deleting project specific file
General Checkups

[x] Have you checked that there aren't other open pull requests for the same issue/update/change?
[ ] If your code includes new features and not just bug fixes/copy editing: Did you include new tests?

Description

Related Issue

Example

@gedankenstuecke @mcescalante I have added the command line tool for deleting file. Please review. Thanks :D


Bug: Inablity to select same value multiple times for a list of Enum parameter in get request

Description
I want to be able to select the same option multiple times in the array of Enum type but I am unable to do so as shown in the screenshot.

URL to code causing the issue
No response
MCVE
from enum import Enum

from litestar import Litestar, get

class A(Enum):
    x = "x"
    y = "y"
    z = "z"

@get("/")
def select_multiple_enums(a_list: list[A]) -> list[A]:
    return a_list

app = Litestar(route_handlers=[select_multiple_enums])

Steps to reproduce
1. Write the above code in a file called `app.py`
2. Run it using `litestar run -dr`

Screenshots
No response
Logs
No response
Litestar Version
litestar==2.12.1
Platform

[X] Linux
[ ] Mac
[ ] Windows
[ ] Other (Please specify in the description above)

[!NOTE]
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard

If you would like to see an issue prioritized, make a pledge towards it!
We receive the pledge once the issue is completed & verified
This, along with engagement in the community, helps us know which features are a priority to our users.

This is not a bug in Litestar but a limitation of Swagger: https://github.com/swagger-api/swagger-ui/issues/8583


fix(package): add webpack peerDependency

Fixes #168

Sry, sloppy from my side I missed test !== travis :)


feat: Add .sol Solidity Smart contract used for integration testing and benchmarking files to our repo

Feature Request
Describe the Feature Request
As discussed with @ClementWalter:

in the context of open contribution and shared results, we really need to record everything, and be able to reproduce any claimed result with 100% confidence. No one outside of this telegram will give any credit to a result that is not properly documented with a way to clearly reproduce it

Add .sol Solidity Smart contract used for integration testing and benchmarking files to our repo

Describe Preferred Solution

Describe Alternatives

Related Code

Additional Context

If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)

I think @abdelhamidbakhta is starting an implementation

Clement is currently working on this

Fixed in https://github.com/sayajin-labs/kakarot/pull/245


fix crash when callback is nil

Fix crash When callback is nil

Exception Type:  SIGSEGV
Exception Codes: SEGV_ACCERR at 0x10
Triggered by Thread:  30
Thread 30 Crashed:
0   Demo                   0x00000001032ccedc -[WXStorageModule setObject:forKey:persistent:callback:] WXStorageModule.m:203 (in Taobao4iPhone)
1   Demo                   0x00000001032cc2fc -[WXStorageModule setItem:value:callback:] WXStorageModule.m:113 (in Taobao4iPhone)
2   Demo                  0x0000000182987150 invoking :144 (in CoreFoundation)
3   Demo                  0x0000000182879eac -[NSInvocation invoke] :284 (in CoreFoundation)

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.明义 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

https://github.com/alibaba/weex/pull/2483 已提交


Fix for torch.Tensor.to

For the yolov5 model, we do not invoke pre_processing. Thus, batch in that case is not a torch.Tensor.
The error can be reproducible via https://github.com/da-tubi/rikai-example
$ python yolov5_mlflow.py

21/08/30 14:01:01 ERROR TaskSetManager: Task 0 in stage 0.0 failed 1 times; aborting job
Traceback (most recent call last):
  File "yolov5_mlflow.py", line 59, in <module>
    result.show(1, vertical=False, truncate=False)
  File "/Users/da/.pyenv/versions/rikai-example/lib/python3.8/site-packages/pyspark/sql/dataframe.py", line 486, in show
    print(self._jdf.showString(n, int(truncate), vertical))
  File "/Users/da/.pyenv/versions/rikai-example/lib/python3.8/site-packages/py4j/java_gateway.py", line 1304, in __call__
    return_value = get_return_value(
  File "/Users/da/.pyenv/versions/rikai-example/lib/python3.8/site-packages/pyspark/sql/utils.py", line 117, in deco
    raise converted from None
pyspark.sql.utils.PythonException:
  An exception was thrown from the Python worker. Please see the stack trace below.
Traceback (most recent call last):
  File "/Users/da/.pyenv/versions/3.8.10/envs/rikai-example/lib/python3.8/site-packages/pyspark/python/lib/pyspark.zip/pyspark/worker.py", line 604, in main
    process()
  File "/Users/da/.pyenv/versions/3.8.10/envs/rikai-example/lib/python3.8/site-packages/pyspark/python/lib/pyspark.zip/pyspark/worker.py", line 596, in process
    serializer.dump_stream(out_iter, outfile)
  File "/Users/da/.pyenv/versions/3.8.10/envs/rikai-example/lib/python3.8/site-packages/pyspark/python/lib/pyspark.zip/pyspark/sql/pandas/serializers.py", line 273, in dump_stream
    return ArrowStreamSerializer.dump_stream(self, init_stream_yield_batches(), stream)
  File "/Users/da/.pyenv/versions/3.8.10/envs/rikai-example/lib/python3.8/site-packages/pyspark/python/lib/pyspark.zip/pyspark/sql/pandas/serializers.py", line 81, in dump_stream
    for batch in iterator:
  File "/Users/da/.pyenv/versions/3.8.10/envs/rikai-example/lib/python3.8/site-packages/pyspark/python/lib/pyspark.zip/pyspark/sql/pandas/serializers.py", line 266, in init_stream_yield_batches
    for series in iterator:
  File "/Users/da/.pyenv/versions/3.8.10/envs/rikai-example/lib/python3.8/site-packages/pyspark/python/lib/pyspark.zip/pyspark/worker.py", line 356, in func
    for result_batch, result_type in result_iter:
  File "/Users/da/.pyenv/versions/rikai-example/lib/python3.8/site-packages/rikai/spark/sql/codegen/pytorch.py", line 74, in torch_inference_udf
    batch = batch.to(device)
AttributeError: 'list' object has no attribute 'to'

For GPU:
https://github.com/fcakyon/yolov5-pip/blob/4aaf354d8a7f66bb8baa4e5ba73e83b960d8f2d1/yolov5/models/common.py#L330-331

I tried to split
https://github.com/fcakyon/yolov5-pip/blob/4aaf354d8a7f66bb8baa4e5ba73e83b960d8f2d1/yolov5/models/common.py#L291
into pre_processing and post_processing but failed because there are dependencies on the model for pre_processing and post_processing.

Here are steps to test this PR with GPU:
git clone https://github.com/da-tubi/rikai-example.git
cd rikai-example
pip install -r requirements.txt


django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet

For django >=2.1.0:
Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File ".../.virtualenv/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File ".../.virtualenv/lib/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute
    django.setup()
  File ".../.virtualenv/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File ".../.virtualenv/lib/python3.7/site-packages/django/apps/registry.py", line 89, in populate
    app_config = AppConfig.create(entry)
  File ".../.virtualenv/lib/python3.7/site-packages/django/apps/config.py", line 90, in create
    module = import_module(entry)
  File ".../.virtualenv/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File ".../.virtualenv/lib/python3.7/site-packages/admin_reports/__init__.py", line 3, in <module>
    from .sites import AdminReportSite, site
  File ".../.virtualenv/lib/python3.7/site-packages/admin_reports/sites.py", line 3, in <module>
    from .views import ReportView
  File ".../.virtualenv/lib/python3.7/site-packages/admin_reports/views.py", line 21, in <module>
    admin_view_m = method_decorator(site.admin_view)
  File ".../.virtualenv/lib/python3.7/site-packages/django/utils/functional.py", line 213, in inner
    self._setup()
  File ".../.virtualenv/lib/python3.7/site-packages/django/contrib/admin/sites.py", line 526, in _setup
    AdminSiteClass = import_string(apps.get_app_config('admin').default_site)
  File ".../.virtualenv/lib/python3.7/site-packages/django/apps/registry.py", line 150, in get_app_config
    self.check_apps_ready()
  File ".../.virtualenv/lib/python3.7/site-packages/django/apps/registry.py", line 132, in check_apps_ready
    raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

Appears to be a result of the site imports in admin_reports/__init__.py.

Issue seems to have been fixed on a new package named django-admin-reports.
Follow these steps:
pip uninstall admin-reports
pip install django-admin-reports
You will get django-admin-reports v0.11.0 working properly.

Yes, the package has been renamed both because it was very hard to keep it backward compatible with django < 1.11, and I needed a compatible package, and to comply to the naming convention for django packages in pypi
thanks for highlighting this


Faraday::SSLError in Communication::Website::Page#sync_with_git_without_delay

Error in Osuny
Faraday::SSLError in Communication::Website::Page#sync_with_git_without_delay
SSL_connect returned=1 errno=107 peeraddr=(null) state=error: unexpected eof while reading
View on Bugsnag
Stacktrace
app/services/git/providers/github.rb:119 - default_branch
app/services/git/providers/github.rb:123 - branch_sha
app/services/git/providers/github.rb:150 - tree
app/services/git/providers/github.rb:137 - tree_items_by_path
app/services/git/providers/github.rb:131 - tree_item_at_path
app/services/git/providers/github.rb:89 - git_sha
app/services/git/repository.rb:41 - git_sha
app/services/git/analyzer.rb:68 - exists_on_git?
app/services/git/analyzer.rb:11 - should_create?
app/services/git/repository.rb:73 - block in sync_git_files
app/services/git/repository.rb:71 - each
app/services/git/repository.rb:71 - sync_git_files
app/services/git/repository.rb:25 - sync!
app/models/concerns/with_git.rb:37 - sync_with_git
bin/bundle:113 - load
bin/bundle:113 - <main>

View full stacktrace
Created automatically via Bugsnag

An error linked to this issue has been marked as fixed in Bugsnag
Faraday::SSLError in Communication::Website::IndirectObject::SyncWithGitJob@elephant


console.log only shows the first parameter

console.log with multi parameters only shows the first
console.log('first', 'NEVER SHOWS') //=> first

an alternative way is to use Template literals
console.log(`this works, 1 + 1 = ${1 + 1}`)  //=> this works, 1 + 1 = 2

Added a basic solution in v0.14.0. Full console spec may be implemented in future versions. https://console.spec.whatwg.org/


Removal of Authorization header on redirects

Hi everyone!
It appears like that the change that was pushed in #1184 isn't part of the code base anymore? I'm having trouble with some code that fails because of the forwarding of the header.
Is there a reason why this has been removed?
Cheers,
Dominik

The tests that were added to cover this behavior are still passing, can you include a failing test or reproduction case that we can run to reproduce?


Make methods that close handles private

@vbfox: can you cast your opinion on this as well?

Completely agreed, the only cases where someone would need to call this is because they have additional custom wrappers in their code. But then they can convert to the SafeHandle types easily (And should send a PR to add them here)

That should be part of the contributing help document.

@jmelosegui What should? This PR itself includes an enhancement to the contributing document. Is that what you meant, or something more?

Never mind, sorry.


add Hatch Sport/Sport Touring & 2019 Civic Sedan+ more filter tables

added 5 cars =-) look at what you started.


New App Submission (DID Wallet)

App Logo (Required)

App Details (Required)
Type: Wallet
Name: DID Wallet
Homepage Url: https://www.abtwallet.io/en/
Chains supported: Ethereum
App Url (Required - at least one)
iOS Url: https://itunes.apple.com/app/id1460083542
Android Url: https://play.google.com/store/apps/details?id=com.arcblock.wallet.app.product
Mobile Linking (Optional)
Deep Link: abt://
Metadata (Optional)
Short Name: DID Wallet
Primary Color:  #4598FA
Secondary Color: #53A8F4

@pedrouid please review our wallet, thanks.


Add Fulton Public Schools

Fulton Public Schools in Fulton, Missouri, USA

@CollectivelyCode Pull request merged. Thank you!


feat(node): support l2 plus value transfer

This PR builds on previous PR but instead enables the value transfer in cross network messages.
Update 27/12/24:

If the message is topdown, lock the value from the supply source of the NEXT child subnet: https://github.com/consensus-shipyard/ipc/pull/1240/files#diff-71559bfe927afaf1a3980c01ffe9f4d15c77d58650b2d850bbae821de9c009d0R76
Fix postbox key index issue: https://github.com/consensus-shipyard/ipc/pull/1240/files#diff-b26838f2cc5f8bf764313ca069618747d9171766dc768ece47de2d9c38ffddfbR699
A simple test framework to simulate xnet message flow: https://github.com/consensus-shipyard/ipc/pull/1240/files#diff-53695b3660cd8c2d5418a61e61a1abda1cd2ba05dcc0f607ddd3251b9cc8f57dR466

@raulk New updates:

If the message is topdown, lock the value from the supply source of the NEXT child subnet: https://github.com/consensus-shipyard/ipc/pull/1240/files#diff-71559bfe927afaf1a3980c01ffe9f4d15c77d58650b2d850bbae821de9c009d0R76
Fix postbox key index issue: https://github.com/consensus-shipyard/ipc/pull/1240/files#diff-b26838f2cc5f8bf764313ca069618747d9171766dc768ece47de2d9c38ffddfbR699
A simple test framework to simulate xnet message flow: https://github.com/consensus-shipyard/ipc/pull/1240/files#diff-53695b3660cd8c2d5418a61e61a1abda1cd2ba05dcc0f607ddd3251b9cc8f57dR466


Dapr SDK

Hi,
I wanted to share my thoughts on the Dapr SDK and wanted to hear your feedback or even plans for the SDK :) So far only .NET and Java seem to be well supported compared to the other languages. For both of them, an HTTP and gRPC client is available. Nevertheless, they look completely different to me (meaning the project structure and the internal language agnostic architecture parts). For the others languages only the autogenerated gRPC code from the Dapr protobuf files exists in its "raw" form (which has unfortunately not a good quality in case of JavaScript).
My wish for the Dapr SDK would be that all supported languages are first-class citizens of Dapr with feature parity between the language-specific SDK variants and that each variant offers a great UX (in terms of usability for the developers/users) and have more or less the same "look and feel" (naming, project structure, internal architecture, ...). Also, it shouldn't take weeks or months until a certain feature arrives in all variants, that should be a matter of days.
The completely reworked Azure SDK is a great example of how modern SDKs should look like. All of their language-specific SDK variants share the same base in the form of an HTTP client that gets auto-generated from the same REST API spec (https://github.com/Azure/azure-rest-api-specs) via their AutoRest (https://github.com/Azure/AutoRest) tool. And on top of that, they're adding a nice handcrafted layer so that their clients have a great UX and are following the best practices for each language. And somehow they've managed that you can easily translate a e.g. .NET sample into as JS sample because they share a common naming/structure. I think in the case of the Azure SDK the refactoring was not an easy task and caused also initially a lot of confusion among the users. For the success of Dapr, I think it's essential to get this right from the start. Otherwise, users might avoid it.
In my ideal world, e.g. the Dapr SDK for JS provides the following 4 packages:

@dapr/grpcclient: Dapr gRPC client with a nice API  that exposes async functions. Not sure how much you can avoid boilerplate code by adding some abstraction/helpers on top of it. The base is the auto-generated code via protoc.
@dapr/grpcservice: Dapr gRPC service for the client, also coming with an async API. The base is the auto-generated code via protoc.
@dapr/httpclient: Dapr HTTP client with async API. The base is the auto-generated code from a common REST API spec. The generated code should also offer different policies like a retry-policy and connection keep-alive handling.
@dapr/httpservice: A ready-to-use Dapr HTTP server for the client which comes with a modern HTTP server (not Express, maybe Fastify ;)) Not sure if there are parts that can be auto-generated, but at least there could be helpers like addInputBinding(name, handlerfct).

Why this split? If I'm only interested in the HTTP variant, I don't want to install the gRPC dependencies. The other language-specific SDK variants should have the same package split to be consistent.
Would be very interesting to hear your plans and thoughts on it :)

Hi @subesokun, we are working towards normalizing all the language SDKs to have a thin hand crafted layer wrapping the gRPC proto libraries.
In terms of the differences between the Java/Dotnet SDKs, the Dotnet SDK is undergoing a change that will make it similar to the Java SDK.
We expect to have a single client, not separate grpc and http clients, as developers shouldn't want to know how the client talks to Dapr. meaning, a developer wants to save state using Dapr, and the way Dapr does it (gRPC or HTTP) is an implementation detail of the SDK. This is especially true given Dapr has 1:1 feature parity with gRPC and HTTP APIs.
If you were referring to HTTP and gRPC in terms of the SDK opening a local server to get callbacks from Dapr, those might become separate packages.
It is fairly easy and trivial to code these SDKs: they are simple wrappers for gRPC or HTTP calls. The only feature that takes a little longer to bring is the Actor functionality, as that is slightly more involved than simply calling Dapr over gRPC and HTTP.

Thanks for your feedback :) Glad to hear that you're going to normalize the SDKs!

We expect to have a single client, not separate grpc and http clients, as developers shouldn't want to know how the client talks to Dapr. meaning, a developer wants to save state using Dapr, and the way the SDK does it (gRPC or HTTP) is an implementation detail of the SDK. This is especially true given Dapr has 1:1 feature parity with gRPC and HTTP APIs.

I see this means that there will be a single client API in the SDK that abstracts away the HTTP and gRPC client or? It sounds like a good idea because working with the gRPC objects was not straight forward if you're not familiar yet with gRPC. The reason why I've proposed the split was that in the case of JavasScript the default gRPC client is not implemented in vanilla JS. Meaning that in some environments no pre-build binary for gRPC exists and NPM will compile it during install time but this also means that you need to have a compiler etc. installed in the given environment. So some users might want to choose the HTTP client over the gRPC client to avoid compiling gRPC but this might be also an uncommon edge case though... But yes, if there is a single generic client API it doesn't make sense to split up those two packages. If there are two client APIs available in the SDK instead of the single generic one, then I'd personally prefer to split them up into dedicated SDKs.

If you were referring to HTTP and gRPC in terms of the SDK opening a local server to get callbacks from Dapr, those might become separate packages.

IMHO, if there is a generic client SDK then there should be also a generic server library to be consistent.

@yaron2 We expect to have a single client, not separate grpc and http clients, as developers shouldn't want to know how the client talks to Dapr. meaning, a developer wants to save state using Dapr, and the way the SDK does it (gRPC or HTTP) is an implementation detail of the SDK. This is especially true given Dapr has 1:1 feature parity with gRPC and HTTP APIs.

While it's true that underlying communication mechanism of the SDK should be an implementation detail of the SDK, @subesokun is correct in that there are significant differences in the dependency chains of one or the other mechanism (i.e. gRPC vs. HTTP), and these dependencies can significantly impact or limit the use of the SDK in certain scenarios.  As a practical example, VS Code has moved onto 6.1.x of Electron, but no pre-built grpc binaries exist yet for that version, and building those binaries from scratch has proven problematic, which effectively means grpc (and libraries which depend upon it) cannot be used in a VS Code extension.  Maybe with some effort we'll be able to sort out those build issues, or grpc will eventually add 6.1 flavors of the binaries, but as soon as VS Code moves to 6.2 (an event for which we don't have much control), we may be in that same situation.  In this case, it may simply be easier to use HTTP (given performance isn't likely to be a significant factor).

All the custom SDKs that are generated are based on auto-generated gRPC clients


Alpha scroll compatibility

http://codepen.io/mikelucid/pen/mqzLc
See http://www.aliok.com.tr/projects/2015-04-17-ion-affix.html#comment-2011485043

This project is not maintained anymore. We cancelled our free-time hobby project with Ionic because of too much changed recently in our personal lives and we don't have enough time at all.
I would be happy to reference anyone who would fork the project and maintain it.


Ignoring a component of loss while training

When training a GAN for example your discriminator may take a batch of images (either generated or real), and then multiple expected outputs for these images [is_image_real, image_label].
In my case I have real images, some of which I have label's and others do not have labels. I want to use all of these images when training my GAN. This leads me to:
disc.train_on_batch(image_batch_has_labels, [y_real, label_batch])
disc.train_on_batch(image_batch_no_labels, [y_real, no_labels_so_ignore_this_loss])

where y_real = np.ones(shape=(batch_size, )).
The problem I am running into is how to specify the no_labels_so_ignore_this_loss. I don't want the discriminator to be penalized for predicting these labels since I don't have any ground truth label to evaluate against.
What is the most 'keras' way to accomplish this? The only thing I can really think of at this point is to somehow make the class weights 0 for the case of no labels.

The way I am solving this right now is:
disc.train_on_batch(image_batch_has_labels, [y_real, label_batch])

# since this batch of images has no labels, `label_batch` serves as a placeholder and it's values are garbage.
disc.train_on_batch(image_batch_no_labels, [y_real, label_batch], sample_weight=[None, np.zeros(batch_size)])

But I'm not sure this is a correct solution and haven't evaluated it if seems to get desired results yet.

Are you trying to make a catGAN or something? Why does your discriminator predict labels as well? A standard discriminator input is an image and output is real/fake. A catGAN discriminator output is a set of categories. Are you trying to combine them?
If your problem decomposes, break the model up. Have a discriminator that predicts real/fake and a categorizer that predicts a category possibly based on some hidden layers of your discriminator. Then you just train the discriminator on all of the data and the categorizer on some of the data.
Another way of looking at it, just build a second model disc2.train_on_batch(image_batch_no_labels, [y_real]) and it will share weights with the full model.
Cheers,
Ben

What I'm implementing is similar to this (you can just look at the README to get an idea): https://github.com/buriburisuri/ac-gan. It looks like I'm having success with the sample_weights method I'm using although I want to verify that this makes sense.
Not only does my discriminator predict real/fake and the label of image, but it also predicts some of the noise that the generator used to generate the image. In the case of a real image there is no noise generating it so this loss should not be evaluated. I explained it with missing labels to simplify the problem since it is essentially the same thing.
I'd prefer not to have multiple models but what you suggested does sound like a valid solution. I just think a single model would perform better (takes a long time to fully train my GAN) and be cleaner.

Let's say you create all your inputs and outputs using the functional API. You could create two models relatively easily, one that includes the extra target and one that doesn't. Both models share weights so you can train one a bit and train the other a bit. Just model1=Model(x, [y,z]) and model2=Model(x,[y,z,w]).
The downside of using two models is that you're using two different optimizers so they don't share momentum. Shouldn't make a huge difference but you could hack around it if it bothers you.
The downside of setting weights to 0 is that during those iterations, the gradient due to the loss is 0, but you are still training, so the regularization loss will control everything. During the iterations when part of the network has 0 output weights, the parameters of that network will go to 0 due to regularization.
If you have two different models, the weights that aren't part of the model won't decay.
Haven't tried this model, so can't confirm yet, but worth testing. Please let me know how everything works out. I've been doing a ton of GANs recently:
https://github.com/bstriner/keras_adversarial

By share weights, I mean they use the same layer instances, so everything is shared.
You might also get better results if you mix batches instead of alternating.
You can build a model that does the supervised and the unsupervised training and run them simultaneously. For example, if you have some model with one input and two targets:
x1 = Input(...)
x2 = Input(...)
m1 = model(x1)
m2 = model(x2)
mymodel = Model([x1, x2],[m1[0],m1[1],m2[0]])

So if your supervised data is x1 and the unsupervised data is x2, you could train batches including both.  Might be interesting to see if this makes training any better. You would want to run off equal batches of real and fake data, which is what you're probably doing anyways.

OK, that makes sense. The solution you suggested will work for me I think, thanks! w.r.t. the regularization loss, are you referring to l1/l2 regularization? I see why that could cause trouble with my current solution of setting sample weights to 0. But if I'm not using l1/l2 reg is there anything I need to watch out for? I would expect things like dropout, batch normalization to be safe. I don't have great understanding of optimizers so not sure if this could mess up learning rates/momentum. Or where else this could have effects. If you know could you explain those cases?
But I do think this explains some weird behavior where losses looked strange in training and very different than when testing (where losses looked like I would expect them to).
As for the functionality of sample_weights I expected to specify sample(s) which have no effect on updating the weights but I guess this isn't the case? Is this the case by design or is it worth looking into implementing this?

@bstriner your suggestion: 'Just model1=Model(x, [y,z]) and model2=Model(x,[y,z,w]).' is actually much cleaner to implement than what I had before. I'll let you know how the results look after some test runs.


Link Cart to Customer Account Profile

How can I link the products added to cart to the customer account if the user is already login in the browser?

Hi @akhilgoel95, apologies but I'm not 100% sure what you're asking here. I'm going to close this out but feel free to reopen if you're able to provide more detail.


chore(main): release volcano-data-deconvolution 1.0.3

:robot: I have created a release beep boop
1.0.3 (2024-06-03)
Bug Fixes

zenodo: correctly specify zenodo metadata (26349fb)
zenodo: only use the name field (d05f086)

Tests

zenodo: test that the zenodo json schema is correct (26349fb)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/engeir/volcano-data-deconvolution/releases/tag/volcano-data-deconvolution-v1.0.3 :sunflower:


The step of pitch filtering

Hi Noah,
I have been working on the PercepNet project recently, and I read the code in denoise.cpp.
I am not sure the code about "comb filtering" below:
for (k=-COMB_M;k<COMB_M+1; k++){
    for (i=0;i<WINDOW_SIZE;i++)
     p[i] += st->comb_buf[COMB_BUF_SIZE-FRAME_SIZE*(FRAME_LOOKAHEAD)-WINDOW_SIZE-pitch_index*k+i]*common.comb_hann_window[k+COMB_M];   }
I was wondering that the pitch needs to compute with the previous frames and how it works?
Thank you!

there is code buffering input to comb_buf on denoise.cpp L350~L351
  RNN_MOVE(st->comb_buf, &st->comb_buf[FRAME_SIZE], COMB_BUF_SIZE-FRAME_SIZE);
  RNN_COPY(&st->comb_buf[COMB_BUF_SIZE-FRAME_SIZE], in, FRAME_SIZE);

so comb_buf will have previous and forward both frame

Hi Noah,
I convert the filter to the time sequence is
.
I was wondering that is the p[i] does the time-domain convolution? Because I am not sure why need to run the second for loop(i=0~480).
Thanks

we are processing for one window and it's size is 960 on this project
and pitch filtering is working like image above
that's why we need second loop

Thanks, Noah! But if T is not equal to 480, I am still confused.
If T <480, will the processed frames overlap as shown in the figure below?


Layer breaker in snippetsService.ts

Product code should not import /test/ code. Please remove the import.
https://github.com/microsoft/vscode/blob/6997390c367a5aa05285473e0a6409a3e74691cc/src/vs/workbench/contrib/snippets/browser/snippetsService.ts#L32-L35
This import came in via https://github.com/microsoft/vscode/commit/7170786e0f6e49802e774b35ff91e0ef97a5b092 .
(ref #140857 #140874)

I just pushed a fix, as this was the last one left here:


Converting checkpoints to HF post surgery Algos

Trying to pretrain the Replit1_5v model https://huggingface.co/replit/replit-code-v1_5-3b which uses prefix LM.
I am able to load and train the model but am having trouble converting the Trainer checkpoints to HF. I'm getting this error when I try to convert.
##############################
HF checkpoint folder successfully created at 2B-firstpass/HF/.
Loading model from 2B-firstpass/HF/
construction
<class 'llmfoundry.models.layers.norm.LPLayerNorm'>
construction
<class 'llmfoundry.models.layers.attention.GroupedQueryAttention'>
Traceback (most recent call last):
  File "/bit-replit/scripts/inference/convert_composer_to_hf.py", line 347, in <module>
    convert_composer_to_hf(parse_args())
  File "/bit-replit/scripts/inference/convert_composer_to_hf.py", line 338, in convert_composer_to_hf
    raise e
  File "/bit-replit/scripts/inference/convert_composer_to_hf.py", line 336, in convert_composer_to_hf
    _convert_composer_to_hf(args)
  File "/bit-replit/scripts/inference/convert_composer_to_hf.py", line 212, in _convert_composer_to_hf
    loaded_hf_model = MPTForCausalLM.from_pretrained(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/transformers/modeling_utils.py", line 3798, in from_pretrained
    model = cls(config, *model_args, **model_kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/bit-replit/llmfoundry/models/mpt/modeling_mpt.py", line 1040, in __init__
    self.transformer: MPTModel = self.backbone_model_class(config)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/bit-replit/llmfoundry/models/mpt/modeling_mpt.py", line 414, in __init__
    self.blocks = self.construct_blocks(config=config,)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/bit-replit/llmfoundry/models/mpt/modeling_mpt.py", line 506, in construct_blocks
    return nn.ModuleList([
                         ^
  File "/bit-replit/llmfoundry/models/mpt/modeling_mpt.py", line 507, in <listcomp>
    self.block_class(
  File "/bit-replit/llmfoundry/models/layers/blocks.py", line 107, in __init__
    self.attn = build_attention_layer(
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/bit-replit/llmfoundry/models/layers/layer_builders.py", line 95, in build_attention_layer
    return construct_from_registry(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/bit-replit/llmfoundry/utils/registry_utils.py", line 162, in construct_from_registry
    constructed_item = registered_constructor(**kwargs)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: GroupedQueryAttention.__init__() got an unexpected keyword argument 'prefix_lm'

When looking at the convert_composer_to_hf.py file, it warns
note:: This function will not work properly if you used surgery algorithms when you trained your model. In that case you will want to
load the model weights using the Composer :class:~composer.Trainer with the load_path argument.
Could you provide an example with this?

We removed support for prefixlm in llmfoundry, so you'll need to back to a commit that still supports it. I believe v0.6.0 should work


Android-Java 3.4: Android-Share-App-Data

Description
What is sharing app data in android and how we can do it?
ACTION_SEND and Example of ACTION_SEND in android
What is ShareActionProvider?
Sending data through links, URL, html text, text, images, multiple types, api etc. to other apps.
Share in Facebook and other social media
Receiving data from other apps
Domain
Android Dev (Java)
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

@VikasPandey121 I want to work on this issue.


Error using ngOptions with objects containing circular references

The new ngOptions in Angular 1.4-beta doesn't handle objects containing circular references well.
Steps to reproduce:

Define a ng-options with ng-model. At least one of the items in the source array must be a recursive object (such as a Breeze entity).
Select the recursive object.
Uncaught RangeError: Maximum call stack size exceeded is printed on the console.

http://jsfiddle.net/dubejf/tn102eh8/    (using 1.4.0-beta6)
The watcher of ngModel, set by the ngOptionsDirective, compares the selected item with the last value by deep equality (using angular.equals). When a recursive object is selected, this causes the stack to blow up (as described in #7724).
Using track by doesn't alleviate the problem.
This error is not reproducible in Angular 1.3.

I can confirm and reproduce this error with Breeze entities, it was working correctly in beta5 but beta6 displays this behavior

You're right, it was broken by this commit: 6a03ca274314352052c3082163367a146bb11c2d

#11448 offers a way to work around this issue, provided you aren't trying to use track by

Having landed #11448 I can see that this bug appears to be fixed: http://jsfiddle.net/L9vqc9ew/

Yes, this bug is fixed in 1.4.0-rc.0, as long as you are not using track by. track by with cyclic objects still gives an error, but that regression seems less important.
In any case, with the recent performance optimizations to ngOptions (identity comparison, no copies), is it fair to say to track by should be avoided when using objects with ngOptions? As opposed to ngRepeat, where the guideline appears to be to use track by whenever possible.

:+1:

I think this is a better fix #11743

@petebacondarwin - I think the select documentation also needs to be updated as well - https://github.com/angular/angular.js/blob/abf59c285c3ff6af20dbf4236eba5204ae735abb/src/ng/directive/select.js#L131-L133

Yes that block is not valid in that directive anyway, since it references ngOptions

@booleanbetrayal - Would you like to put together a PR with it removed/changed?

Sure thing

@petebacondarwin - https://github.com/angular/angular.js/pull/11758


ionic-cli

by removing cordova will it affect any of the changes in npm and nodejs or ionic

What exactly is the issue here?

Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Thanks for using Ionic!


Prevent achievement grinding through multiple characters

Right now you can generate 5000 bolts quickly by:

Create character
Somehow get 1 bolt
Somehow die and lose the bolt
Get 5000 bolts for Boltless Wanderer
Move the bolts to another character somehow
Delete character, go back to step 1

I'm thinking of 2 possible ways to solve this:

[x] Disable the ability to have multiple characters
[x] Make achievements per-player instead of per-character

Although the latter is easier to implement, I'm thinking of also limiting the ability to create multiple characters. This because with the seasons and leaderboards I have in mind, it would be counter-productive to manage multiple characters anyway.
Additionally it would improve the new/returning-player experience by reducing the amount of clicks they have to make ('New Characer'/'Load Character').
I'll probably solve it both ways, so if we reactivate multiple characters in the future, this exploit is fixed.

While I think achieving the 2nd option is easy by tracking that specific achievement per user rather than per character (it would be achieved on all their characters after they achieve it once), I also can't think of many pros of keeping multiple characters. I can think of:

You could have different characters in separate clans.
You could have one character with good, and one with bad karma for different perk sets.
Admin accounts to show people admins don't exploit their access on their RP accounts (which is just a facade that doesn't prove anything lol)
Different characters for different RP personalities.
Character for extra locker storage beyond tardis upgrade.

I don't think these are such big use cases so getting rid of multiple characters would be okay if it improves general user experience with seemless logging in and simplicity.


(maint) adding in netdev_stdlib as a fixture

Codecov Report

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

@@           Coverage Diff           @@
##           puppet6      #5   +/-   ##
=======================================
  Coverage      0.3%    0.3%
=======================================
  Files          170     170
  Lines        21703   21703
=======================================
  Hits            67      67
  Misses       21636   21636

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 918ba83...51dff1f. Read the comment docs.


fix csv write unicode bug

Have you seen this: https://docs.python.org/2/library/csv.html ?
btw, it's enough to mention "fixes #XYZ" in a comment

"have you seen this" - posts entire documentation article for csv xD what part of it exactly?

It's not that much and most of it is about utf-8 anyway :)

but csv.writer is from csv... What I meant to say is that I don't know what you mean by "this" :D

fixes #197


Usage with storybook

Hey, I appreciate the work you've been doing on this package and can't wait to get a demo up and running with it!
It works amazingly well in NextJS, so I'm trying to use the plugin with Storybook.js so we can use it with our component library.
I'm extending the storybook webpack config as recommended like this:
// .storybook/main.js

{
  webpackFinal: async (config) => {
    config.module.rules.push({
      test: /\.(png|jpe?g|gif|svg|webp|ico)$/i,
      use: [
        {
          loader: 'optimized-images-loader',
          options: {
            includeStrategy: 'react'
          },
        },
      ],
    });
    return config;
  }
}

And I have it configured in babel like so;
// babel.config.js

module.exports = {
  presets: ['next/babel'],
  plugins: ['react-optimized-image/plugin']
}

And I'm trying to use it like this in my components:
// components/Header/Header.tsx

import { Svg } from 'react-optimized-image'
import Logo from './assets/logo.svg'

export function Header(): JSX.Element {
  return (<Svg src={Logo} />)
}

And like this in my story file:
// components/Header/Header.stories.tsx

import { Meta, Story } from '@storybook/react'
import React from 'react'
import { Header } from './Header'

const config: Meta = { title: 'Components/Header', component: Header }
const Template: Story = (args) => <Header {...args} />

export default config
export const Default = Template.bind({})

When i run start-storybook, i get the following error:
Error: No react component generated. Please set `includeStrategy` option of optimized-images-loader to 'react'
    at Svg (http://localhost:6006/vendors~main.2430c86930fd7a1bab86.bundle.js:71140:11)
    at renderWithHooks

I've tried adding options and changing the order of the loaders with no luck, any ideas?

For anyone else who might be having this issue, I've got a (totally hacky) workaround...
File loader seems to be taking precedence over optimized-images-loader.
So, in the below example, we override the file matching regex for file-loader by first finding out it's position in the rules array, and then adjusting the regex so that it doesn't handle all of the usual images.
This is unlikely to work for everyone, but it has worked for me!
To figure out the index of file loader, run webpack with a command like so, and just dig through it by searching for rules:.
Please note, there are two sets of rules:, one for the webpack UI, and one for your stories. We want the file-loader index of the stories config (the second one).
yarn start-storybook --debug-webpack > ./webpacklog.txt

Then update your .storybook/main.js with a custom webpack config like so:
// .storybook/main.js
module.exports = {
  webpackFinal: async (config) => {
    // Override the images handler of file-loader to stop it
    // stealing file types away from optimized-images-loader
    config.module.rules[7].test = /\.(eot|otf|webp|ttf|woff|woff2|cur|ani|pdf)(\?.*)?$/;

    // Add optimized-images-loader to handle those file
    config.module.rules.push({
      test: /\.(png|jpg|jpeg|gif|svg|webp|ico)$/i,
      use: [
        {
          loader: 'optimized-images-loader',
          options: {
            includeStrategy: 'react'
          },
        },
      ],
    });
    return config;
  },
}

Hope this helps someone!


feat: test trl's autounwrap

For testing currently!
Based on this https://github.com/huggingface/trl/blob/104a02d207b63a4a062882aaff68f2d275493399/trl/trainer/dpo_trainer.py#L691 , trl would unwrap the model if it's a peft model. This should reduce the need to load the model twice.

@winglian , what do you think the state should be for this PR? Do we need a new config to specify not passing model_ref for adapters?

@winglian , what do you think the state should be for this PR? Do we need a new config to specify not passing model_ref for adapters?

Your fix should be the default and if someone really wants a second full ref model loaded then there should be a separate option for that.


Getting rid of allocations in the lll function

After writing a quick LLL implementation (gist here) using Householder reflections to get better aquainted with lattice problems while learning lattice-based cryptography, I started to benchmark the available LLL implementations.
The LLL function in this package is fairly well optimized but it does seem to make a bunch of allocations that can probably be done away with, and there may be a ~2x speedup available from getting rid of them. Tracking them down may be somewhat nontrivial but it should be a low-hanging fruit for further optimization.

Thanks for the comment!
The gist you point to seems to be for Givens rotations; did you mean to point to another gist which has a Householder implementation?
This library sees so little use that optimizing it is not high on my priorities.  I confess that it's not clear to me why minimizing the number of allocations would lead to a speedup; could you explain this?

Ah, I ended up switching to just using Givens rotations in that gist since that turned out to be simpler. Reducing memory allocations is just a generic suggestion that often helps Julia since allocations are usually more expensive in Julia than in runtimes that have a compacting GC so that they can use bump allocation.
But I understand not prioitizing this too much because I can't think of a lot of applications where LLL performance is the actual bottleneck as long as it's fast enough, since the bottleneck in lattice problems is usually the steps you do after having reduced the bases.


Remove extra closing parentheses

Typographical error in the markdown

Docs Build status updates of commit 5806736:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/develop/persisting-add-in-state-and-settings.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add a flag for using k8s secrets when running in cluster.

This makes using the Kubernetes credential manager an explicit choice when running inside Kubernetes, and also allows you to use a different credential manager when running in cluster.

ping @farcaller @vito. The helm chart recent added Vault support, so we can't force k8s secrets as the credential manager when running in cluster.

thanks!


[BUG] cannot mount NFSv4 after update from master-head to v1.4.1

Describe the bug (🐛 if you encounter this issue)

I have a HA cluster running 2 Master 5 Worker.
I upgraded from longhorn-engine:master-head to longhorn-engine:v1.4.1
After the upgrade I did the usual "Engine Upgrade" on the Volumes
than I saw some Volumes are stuck in either

or

So I wanted to try and restore a Backup and there I saw the error message above
Expected behavior
See and create Backups
Log or Support bundle
supportbundle_cf330071-3915-4950-a919-2a9294554885_2023-03-13T13-51-15Z.zip
Environment

Longhorn version:
1.4.1

Installation method (e.g. Rancher C
supportbundle_cf330071-3915-4950-a919-2a9294554885_2023-03-13T13-51-15Z.zip
atalog App/Helm/Kubectl):
Kubectl

Kubernetes distro (e.g. RKE/K3s/EKS/OpenShift) and version:
K8s with kubeadm - all 1.24.0

Number of management node in the cluster:
2
Number of worker node in the cluster:
5

Node config

OS type and version:
Ubuntu 22.04 and Ubuntu 20.04
CPU per node:
~20-40 depends on the nodes
Memory per node:
~ 300GB

Disk type(e.g. SSD/NVMe):
HDD over SAN

Network bandwidth between the nodes:
~4-10G

Underlying Infrastructure (e.g. on AWS/GCE, EKS/GKE, VMWare/KVM, Baremetal):
Baremetal

Number of Longhorn volumes in the cluster:
14

Additional context
Add any other context about the problem here.
I updated the control plane yesterday from 1.23.X to 1.24.0 and had some troubles, because I switched from Docker to containerd.

I upgraded from longhorn-engine:master-head to longhorn-engine:v1.4.1

Is your previous longhorn-engine version master-head?
master-head is for development. We cannot guarantee downgrade from master-head to v1.4.1 if safe.
For the backup error, you can mount the remote nfs folder in the longhorn-manager pod and check if it works.

Can you check both server and client sides support NFSv4.0, v4.1 or v4.2?
Ref: https://longhorn.io/kb/troubleshooting-unable-to-mount-an-nfs-backup-target/

You can try

Set backup target setting to empty
Enter each longhorn-manager pod and unmount the NFS backup target monntpoint by force unmount umount -f
Set backup target setting to your remote NFS server

Sorry, in the Second step, can you login into each longhorn-manager pod and check the mountpoint by mount | grep nfs?

Do you have any idea? @mantissahz @weizhe0422

@Razorbob Can you provide the support bundle? Thank you.

@Razorbob had you run curl -sSfL https://raw.githubusercontent.com/longhorn/longhorn/v1.4.1/scripts/environment_check.sh | bash this script before?

Sorry, updated the command.

I think it was a typo -> Longhon instead of Longhorn

Oh, yeah. You're right.
Except for mars4, all nodes looks work well. Can you check dmesg of the mars4 host and see if there is any clue?

[1402749.847295] nfs: server <IP_ADDRESS> not responding, timed out
[1402749.847316] NFS: state manager: lease expired failed on NFSv4 server <IP_ADDRESS> with error 110

I think the next step we can troubleshooting why the sever is not responding.

Its a Qnap NAS with 3.4.6 Kernel

Do you mean the backup target is a QNAP NAS?
Will update if I have any idea.

Hey Guys any ideas? I don't know why, but I feel like the NAS is not the problem here - cause I can mount the share manually just fine.

I still have no idea why the NFS client is somehow stuck on the mars4 node, but it looks not related to Longhorn itself. Would you mind trying to restart this node and see if the issue still remains?

@Razorbob Everything is back to normal, right?


[1.19] Enchanted Tooltips crashing when used with optifabric/OptiFine

When loading just Optifine (which requires optifabric)

adding EnchantedToolTips-1.3.6-1.19.jar causes the following crash:

however it runs fine without EnchantedToolTips-1.3.6-1.19.jar
Sorry I know this isn't a ton to go on, however it doesn't generate any sort of report in my crash-reports directory either.

in case it helps, here's the links to all the files, so anybody can reproduce my results:
EnchantedToolTips-1.3.6-1.19
fabric-api-0.57.0+1.19
optifabric-1.13.8
OptiFine_1.19_HD_U_H8

(sorry I used the wrong account on this ticket 🤦♂)


[WIP] Allow restarting autoScope counter with isolate.reset()

In order to hot reload code, we need to get the same results from isolate each time we run the main function. To do that, cycle-restart needs to be able to reset the counter.

Let's not worry about merging this until all the issues mentioned here are addressed, our approach might change in the meantime.

Ah, for some reason Github didn't notify me of this PR. Thanks!


Creating typography styles don't respect font size

Describe the bug
When creating a typography style, the font size set in that style doesn't convert to to created Figma text styles. The Figma text style just defaults to a size of 12.
To Reproduce
Steps to reproduce the behavior:

Create a typography style with a custom font size
Click on Styles > Create styles
Check the generated styles and see that the font size is 12

Expected behavior
Expected to defined font-size to be converted to the Figma text style.
Screenshots or Screencasts

This is most probably becaues your font family / weight combination doesn't exist in Figma.
Can you check the Console and post your full JSON here? Make sure that Font family and Weight exist in Figma (not 500 but Regular for example). Those are case sensitive.

Closing this, as it's most probably related to your family/weight combination.


Also include test suite stdout/stderr in annotation details

#358 added stdout/stderr of testcases which is very nice. However, tools like bazel has the capability to generate a JUnit XML in which the stdout of the test program is attached as an attribute under testsuite. This is especially true in the following cases:

the test is a general program whose structure bazel does not understand -- it treats the program as a testsuite
the test is a python test, but it failed to run (like there's an import error, etc -- the test program died before the test infrastructure was able to run any test).

An example of such a JUnit XML output is like the following:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
  <testsuite name="bazel/failing_absl_test" tests="1" failures="0" errors="1">
    <testcase name="bazel/failing_absl_test" status="run" duration="0" time="0"><error message="exited with error code 1"></error></testcase>
      <system-out>
Generated test.log (if the file is not UTF-8, then this may be unreadable):
<![CDATA[exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //bazel:failing_absl_test
-----------------------------------------------------------------------------
Traceback (most recent call last):
  File "<reducted>", line 3, in <module>
    import non_existent_package
ModuleNotFoundError: No module named 'non_existent_package']]>
      </system-out>
    </testsuite>
</testsuites>

Does it make sense to also attach the system-out of testsuite to the annotation details?

Yes, it makes sense. Thanks for the example XML.
I am wondering how that test suite output should be reported. Should it be added to all test-case annotations of the respective suite?

I guess so. Bazel's output (the example) is just a special case where there is one test case. There could be no test case (only a test suite)  in some cases (if that's valid)?

Since it is difficult to reason about which test case to associate the test suite stdout/stderr, I'd say an individual annotation would work best. Stdout could be info, stderr could be warning. But that would mean there is one or two annotations per testsuite, so this should be an opt-in.

@sfc-gh-zpeng what do you think: #392


Merge sapphirepy signed queries from org branch

https://github.com/oasisprotocol/sapphire-paratime/pull/396

Does this mean we can close #396 in favor of this PR?

Does this mean we can close #396 in favor of this PR?
I wanted to test out the merge conflicts, so I changed the branch source for this PR. Will close it soon, so we can retain #396.


[e2e]: container schedule main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/10650517343
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.container.schedule.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.container.schedule.main.default.slsa3.yml
Trigger: schedule
Branch: main
Date: Sun Sep  1 03:13:19 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/10660030752
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.container.schedule.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.container.schedule.main.default.slsa3.yml
Trigger: schedule
Branch: main
Date: Mon Sep  2 03:08:10 UTC 2024
Tests are passing now. Closing this issue.


Internal cluster

Related #54
We need to support internal clusters as well as external (default). This is an attempt to define what and how an internal cluster look like.
What is an internal cluster
This is cloud provider dependant, but let's focus on AWS for now. An internal cluster is one with:

ASGs without public IPs, behind a NAT
Internal kube API ELB

Internal cluster pre-prerequisite (not managed by keto)

Properly configured subnets and a NAT gateway
Access to internal VPC networks, can be done via VPN or a bastion host

Questions

Should --internal=true flag only be available during keto create cluster --internal=true?

Yes. Additional pools or pools that are recreated will be automatically made as internal.

Will we ever need to create an external compute pool for internal cluster?

No, at this point. We'll review this once we have a use case or when we implement other clouds.

Would the Platform Hub fall under the requirement of being hosted within an internal cluster and having an external compute pool (open endpoint allowing users to download a VPN profile)?

As `--internal' only applicable to cluster creation (As the ELB is created during CreateClusterInfra), without much more work, this is fine until we have to support anything else.
Not sure about an external compute pool. Seems like a risk and again not required. Trying to think through ingress @gambol99

Would the Platform Hub fall under the requirement of being hosted within an internal cluster and having an external compute pool

Applications hosted within a cluster will be able to be accessed via an ingress ELB that is separate from kube API ELB, so no need to take apps into consideration.

Not sure about an external compute pool. Seems like a risk and again not required.

I am with you on this. I cannot think of any reason to have a compute pool with public IPs if the rest of the cluster is internal.

Shall we just have "kube_elb_internal" flag as from dsp 1.0 then instead of "--internal=true"?

Shall we just have "kube_elb_internal" flag

Probably not. Internal cluster is not just about its ELB, also ELB is AWS specific. We should keep keto as cloud agnostic as possible.

Are you considering ipv6 support? If so, how internal/external would be defined on ipv6 address space?

Are you considering ipv6 support?

No IPv6 yet, but would be interesting to see it working!

Done by #72


Product creation with metaobject_reference metafield raising INTERNAL_SERVER_ERROR in GraphQL API

Issue summary
When creating a Product with the new Metafield types metaobject_reference or mixed_reference (and their respective list types) productCreate mutation is returning an INTERNAL_SERVER_ERROR_RESPONSE.

shopify_api version: 12.4
Shopiy API version : 2023-01
Ruby version: 3.0
Operating system: MacOS

Expected behavior

If metaobject exists Product with metafields should be successfully created.
If metaobject don't exists Product with metafields is not created and error message with a status code 404 (or some internal representation) is sent back.

Actual behavior
Mutation result is:
{"errors"=>[{"message"=>"Internal error. Looks like something went wrong on our end.\nRequest ID: d5c2e144-66dc-42ba-99d2-738978fe9c83 (include this in support requests).", "extensions"=>{"code"=>"INTERNAL_SERVER_ERROR", "requestId"=>"d5c2e144-66dc-42ba-99d2-738978fe9c83"}}]}

Steps to reproduce the problem
The bug should be reproducible by running the following mutation:
query = <<~QUERY
  mutation createProductMetafields($input: ProductInput!) {
    productCreate(input: $input) {
      product {
        id
        metafields(first: 3) {
          edges {
            node {
              id
              namespace
              key
              value
            }
          }
        }
      }
      userErrors {
        message
        field
      }
    }
  }
QUERY

variables = {
  "input": {
    "metafields": [
       {
          "namespace"=>"my_field",
          "key"=>"superduper_metaobject",
          "type"=>"metaobject_reference",
           "value"=>"gid://shopify/Metaobject/123"
        }
    ],
    "title": "Hiking Boots"
  }
}

client.query(query: query, variables: variables)

Seeing the issue as well when creating a metafield of type metaobject_reference directly on an existing product using REST API

on further examination, the internal server error is thrown if no metafield definition of type metaobject_reference exists for the namespace+key combo


Some of the type hints are off for default values

An example is insider trading
def insider_trading(
    apikey: str,
    symbol: str = None,
    reporting_cik: int = None,
    company_cik: int = None,
    limit: int = DEFAULT_LIMIT,
) -> typing.Optional[typing.List[typing.Dict]]:

the above should be change to have | None to more representative types.  I'm using signatures to dynamically call the funciton, so its causing a bit of issues.
def insider_trading(
    apikey: str,
    symbol: str | None= None,
    reporting_cik: int | None = None,
    company_cik: int | None = None,
    limit: int = DEFAULT_LIMIT,
) -> typing.Optional[typing.List[typing.Dict]]:

Can you issue a pull request for this?  Additionally, I'm looking for someone to help maintain this project as I'm no longer able to do it consistently.


Add support for guard variables and transaction clones

Adds support for the mentioned types of special name, and associated tests

Thanks!


April Tags

When we get a camera (which will hopefully be in the next week), we should write code to identify our position on the field using April Tags. I believe there is information on the FIRST website about how to do this, and the library we use is OpenCV I believe.

We have a camera now so we can begin working on getting april tag functionality setup. In the absence of.
Because we don't have odometry pods we will do what is called "Dead reckoning" to determine our speed/displacement. This is highly inaccurate, but if we also use april tags to correct our estimations of position/speed, we should be able to move around the field in autonomous with acceptable accuracy.
The way this will work is while moving the wheels, we will estimate our speed based on measurements we take prior to the competition (friction, motor speed) and use our speed to estimate our position using distance = speed * time (more or less). Whenever an april tag is in the cameras FOV, we will update our position to reflect what it tells us.
There are six april tags on the field, meaning that if we strategically ensure the robot is almost always facing 1 or 2 of them, we can reliably maintain an accurate position value.


How does "match net size to input size" work?

I'm using DepthAnthing with the "match net size to input size" checkbox enabled and the depth it generates is very good.  I would like like know exactly what net height and width values get use with that option.  I'm asking because if I manually set the net width and height to match my input image dimension (1080p) it takes much longer to process than if I use "match net size to input size".   How is that "net size" calculated when "match net size to input size" is enabled?

Better documentation needed....
Match size is to ensure that image effective size matches the image size (height and width). Useful to set to false if depthmaps are weird, useful to set to true if they need to be sharper. Could have been a "match resolution" button, but current impl. plays well with batch processing.


Adding Response format for GET /libraries/sections [getLibraries]

Hi there! Unsure of the format you'd like here, but I found the spec and am hoping to use it to build a Ruby gem! Ty so much for your work! Please let me know if there are any changes that I should make before requesting a merge.
Intent
Add the response body for the getLibraries operationId.
Work completed

Updated /pms/paths/libraries.yaml and added a content for the 200 response.

I crafted this content section using https://swagger-toolbox.firebaseapp.com/ and the raw body from a request to my local Plex server.

Updated the dereferenced yaml file for pms

I did this using the command
swagger-cli bundle --dereference pms/pms-spec.yaml -t yaml -o plex-media-server-spec-dereferenced.yaml

Downstream Ruby SDK Generation Proof
To prove that the sdk generation is working and includes the new changes, I am building a ruby gem and using it in a test project.
Setup Test Ruby Project with Built Gem Files

Build ruby gem files using the command:

openapi-generator generate -i plex-media-server-spec-dereferenced.yaml -g ruby -o ../pms-api-ruby

Reference built gem in test project Gemfile

I did this by creating a Gemfile as follows:
source 'https://rubygems.org'

gem 'openapi_client', path: '/path/to/pms-api-ruby'

Include gem in project

In my project file, I include the built gem files as such:
# Load the gem
require 'bundler/setup'
require 'openapi_client'

Call the getLibraries endpoint

Example Ruby code used:
OpenapiClient.configure do |config|
  config.host = '192.168.x.x:32400'
  config.debugging = true
  # Configure API key authorization: accessToken
  config.api_key['accessToken'] = 'xxxxxxxxxxxxxxxxxxxxxx'
end

api_instance = OpenapiClient::LibraryApi.new

begin
  section = LIBRARY_SECTIONS[0]
rescue OpenapiClient::ApiError => e
  puts "Exception when calling LibraryApi->get_libraries: #{e}"
end

Test Out With New Gem File Changes
Now, to test if the change (adding the response body) is reflected.
To do this, I ran the example ruby file above before and after the changes and compared the output.
Output before changes
Before the change, the output showed nil for the Data value and a status code of 200
D, [2024-01-18T15:23:33.968923 #30434] DEBUG -- : Calling API: LibraryApi.get_libraries ...
GET /library/sections HTTP/1.1

HTTP/1.1 200 OK
D, [2024-01-18T15:23:34.034092 #30434] DEBUG -- : API called: LibraryApi#get_libraries
Data: nil
Status code: 200

Output after changes
After the change, the output showed the expected body data for the Data value and a status code of 200
D, [2024-01-18T15:23:33.968923 #30434] DEBUG -- : Calling API: LibraryApi.get_libraries ...
GET /library/sections HTTP/1.1

HTTP/1.1 200 OK
D, [2024-01-18T15:23:34.034092 #30434] DEBUG -- : API called: LibraryApi#get_libraries
Data: #<OpenapiClient::GetLibraries200Response:0x000000015944d810 @media_container=# ...... shortened for brevity, but the data is here! >
Status code: 200

tagging @LukeHagar. Thank you!

Hey @johnhebron, This is so fantastic to see, and Thank you so much for the PR!!!
A couple of things to note that may make it easier, I built out a tool for easily converting JSON responses to Open API schemas, I just throw my responses from my server in there and then we still get the example values populated in the schema as well.
Additionally, I am ALSO working on a ruby gem, and mine would also be auto-generated, but it would be through the AMAZING platform Speakeasy has built, that I am a huge fan of so far.
I welcome input and feedback on that as it becomes available, which will be hosted in this repo
I'm going to make a small change to this PR, just to adjust the formatting and add the examples, and them I'm going to merge it in.

And after fixes to my fixes (lol)
Its live: https://plexapi.dev/docs/plex/get-libraries


Add type checking to encoding

In most cases, attempting to encode the wrong data type will fail, but the error message is inconsistent: encodeUInt(-1) raises a struct.error, encodeUnicode(-1) raises an AttributeError, etc. It would be better if the types were explicitly checked and a more appropriate TypeError or ValueError was raised.
Since this is mainly about error reporting, to save time, the actual conversion could be placed in a try in most cases. The type check could be done in the except just before raising the more appropriate exception.
Not sure which exception type should be raised. Probably ValueError, since that's what gets raised when doing a bad type cast (e.g., int('foo') or bytes to str w/o encoding).

Addressed in PR #118


Universidad Politécnica de Madrid (UPM)

Engineering university in Madrid, Spain
URL: https://www.upm.es/
IT course details: Computer Engineering (offered since 2009) (etsiinf prefix corresponds to the Computer Science faculty)
Software Engineering, Hardware Engineering, Data Science and many other IT courses offered.
Proof of domain:

Current students have<EMAIL_ADDRESS>domain is shown in email login portal ('alumnos' means students in Spanish)
Faculty has<EMAIL_ADDRESS>domain also shown in email login portal
Alumni are not given an email address

Thus, "upm.es" has been added in the pull request as is shared by students and faculty.

@rotentor Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.


Template not retrieving data

Checklist

[ 6.2.6 ] I'm using the latest Zabbix Server Release.
[ X ] I'm using a local UniFi Account with at least RO permission on Zabbix.
[ X ] I have configured the template following README.md instruction.

Describe the Bug
First of all, thanks for your incredible work, I'm craving to see it working.
I've just started trying to configure the template on a Unifi Network VM, I've tested the credentials (user named zabbix with RO) with Postman receiving an OK in the API request but Zabbix is telling me that error and is not working:

Do you even mind why it is failing?
I would appreciate your help with that.
MACROS

Context

Zabbix Template Release: ex. main
Zabbix Server Release: ex. 6.2.6
UniFi Network Release: ex. 8.0.26
UniFi Network Type: VM

Hi @rpgmanx,
from your screenshot it appear API requests are working correctly otherwise you would see an error on Item with tags 'Application: raw' and UAP items would not be generated.
You are facing this issue only on one host? From your screen the error could be only on one UAP host.