GPU does not clock down after test load

I ran the test from issue #519 on my Vega 64 (gfx900, Vega 10) under Ubuntu 18.04.3 LTS. Afterwards, the card stays in PState 3 (4 LEDs of GPUTach on and there is some coil whine). The issue is somewhat transient, as the pp_dpm_sclk reports PState 0 sometimes. The GPU should does not clock down like with exiting any other load.
Procedure to reproduce:
docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $HOME/dockerx:/dockerx rocm/tensorflow:rocm2.7-tf1.14-dev
python3 -m pip install scikit-image numpy keras efficientnet pytest
wget https://upload.wikimedia.org/wikipedia/commons/f/fe/Giant_Panda_in_Beijing_Zoo_1.JPG
wget https://gist.githubusercontent.com/Bengt/308c7d05dc755f1bfe0aeda9220e4eed/raw//test_efficientnet_gfx803.py
HIP_VISIBLE_DEVICES=0 python3 -m pytest -s test_efficientnet_gfx803.py
while true; do cat /sys/class/drm/card0/device/pp_dpm_sclk; sleep 1; clear; done

Output:
0: 852Mhz
1: 991Mhz
2: 1084Mhz
3: 1138Mhz *
4: 1200Mhz
5: 1401Mhz
6: 1536Mhz
7: 1630Mhz

Shutting down to container does not help:
$ exit
$ while true; do cat /sys/class/drm/card0/device/pp_dpm_sclk; sleep 1; clear; done
0: 852Mhz
1: 991Mhz
2: 1084Mhz
3: 1138Mhz *
4: 1200Mhz
5: 1401Mhz
6: 1536Mhz
7: 1630Mhz

Starting and ending a 3D-load does not help:
$ glxgears
<Ctrl+C>
$ while true; do cat /sys/class/drm/card0/device/pp_dpm_sclk; sleep 1; clear; done
0: 852Mhz
1: 991Mhz
2: 1084Mhz
3: 1138Mhz *
4: 1200Mhz
5: 1401Mhz
6: 1536Mhz
7: 1630Mhz

Only a reboot fixes the issue for me:
$ sudo reboot
$ while true; do cat /sys/class/drm/card0/device/pp_dpm_sclk; sleep 1; clear; done
0: 852Mhz *
1: 991Mhz
2: 1084Mhz
3: 1138Mhz
4: 1200Mhz
5: 1401Mhz
6: 1536Mhz
7: 1630Mhz

The workload mentioned in #432 triggers the same behavior.

Hi @Bengt , can you provide the log after setting the following:
/opt/rocm/bin/rocm-smi --setperf high

Hi @sunway513,
running /opt/rocm/bin/rocm-smi --setperf high turns on all the GPUTach LEDs of all installed GPUs. The log agrees:
0: 852Mhz
1: 991Mhz
2: 1084Mhz
3: 1138Mhz
4: 1200Mhz
5: 1401Mhz
6: 1536Mhz
7: 1630Mhz *
During the test run, the last LED of the Fury X turns off, indicating clocking down to pstate 6 (1018 MHz vs. 1050 MHz in pstate 7). During the test run of the Vega 64, none of the LEDs turn off, so I suspect the clock management does not hit a thermal or power limit. After the run, the Vega 64 stays in pstate 7 and produces horrible coil whine. Executing /opt/rocm/bin/rocm-smi --setperf low makes the GPU turn off all but one LED, indicating pstate 0. However, that makes the fan ramp up to 48.63% and never come down again. Even after idling a few minutes at about 31°C. After a reboot, everything is back to normal again.
Regards,
Bengt

Hi @Bengt , can you try to force the perf level to be "auto"?
FYI, you can also control the fan speed using rocm-smi, you can refer to the doc below:
https://github.com/RadeonOpenCompute/ROC-smi

With the performance level forced to auto, at times all LED turn on during the workload and the fan ramps up a bit. Afterwards the GPU gets stuck in pstate 3 (four LEDs), like before. Running /opt/rocm/bin/rocm-smi --setperf auto again afterwards does not help with clocking down.

@kentrussell, do you have any idea on this issue?

Not sure if it could be related to https://github.com/RadeonOpenCompute/ROC-smi/issues/62 , where Vega10 is having issues actually respecting voltage changes, especially after being at DPM7.
Out of curiousity, if you just ditch the middle DPM states and try to set the sclk to "0 6 7" or "0 5 6 7", do things still appear to be the same? That way it can still drop to DPM0, but skips the middling steps and only uses the top 2-3 levels as well. Just some spitballing. Hoping that once I finish my current task, I can get on these Vega10 issues

Hi @kentrussell,
as you suggested, I tried restricting the DPM states:
$ /opt/rocm/bin/rocm-smi --setsclk 0 6 7
 ========================ROCm System Management Interface========================
GPU[0] 		: Successfully set sclk frequency mask to Level 0 6 7
GPU[1] 		: Successfully set sclk frequency mask to Level 0 6 7
==============================End of ROCm SMI Log ==============================

When I run glxgears and resize the window, I can provoke any of the power states. So restricting them does not really seem to work.
However, yes, running the tensorflow workload with restricted DPM states, the power state does jump down to 0 (1 LED). So we might be on to something here.

I've been wondering about the dynamic DPM and how it has been changing its workloads. My concern is that if the levels are constantly changing between 8 potential levels, that things can be a little less stable. If keeping the clocks at high isn't an option (you cited coil whine and fans not returning), we can try to tweak things a bit. At least it might give a temporary workaround while we look into the issue more

Thanks for the offer of tweaking things, @kentrussell. I can however live with the current workaround of restricting the DPM states until a proper fix is released. @iszotic, do you have a different opinion or does this work for your use case, too?

This workaround works for clpeak, too.

@Bengt @kentrussell setting all states also fixes the issue /opt/rocm/bin/rocm-smi --setsclk 0 1 2 3 4 5 6 7, but if you set one--setperf profile then the issue comes back, it fixes again when all states are set while running a program, I'm fine with this workaround much better than manually setting each profile, and the default fan curve works too

@Bengt I'm going to close this issue since this is not tensorflow-rocm specific.

Folding at Home (F@H) can also trigger this behavior. Picture of the aftermath:


vite-plugin-require-transform  don't work

Related plugins

[X] plugin-vue

[ ] plugin-vue-jsx

Describe the bug
vite :   const Buffer = require('safe-buffer').Buffer; console.log(Buffer);   //undefined
webpack or node:  const Buffer = require('safe-buffer').Buffer; console.log(Buffer);  // Buffer
why?
Reproduction
https://vitejsvite8tnkvo-bed1--5173--810981ba.local-credentialless.webcontainer.io/
Steps to reproduce
No response
System Info
System:
    OS: Windows 11 10.0.22621
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i9-13900H
    Memory: 1.38 GB / 15.63 GB
  Binaries:
    Node: 20.11.1 - C:\Program Files\nvm\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nvm\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (114.0.1823.43)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @vitejs/plugin-vue: ^4.5.2 => 4.6.2
    vite: ^5.0.12 => 5.1.6

Used Package Manager
npm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

### Tasks

This is not the repository of vite-plugin-require-transform.


Feature/opends 0.4.0

PR with the new version of openDS based on the feedback we got during the Public Review.

Heavier use of 'ods:hasAgents
Remove ods:ID for an existing term (schema or dcterms)
More explicit and extensive descriptions
Split object into separate files
Change naming convention of object (single nested object hasXXX multiple nested objects hasXXXs
renamed ods:MaterialEntity -> ods:SpecimenPart
A lot of other small changes.

Please focus on the schemas, the examples haven't all been validated yet as the schema's I need the schemas online for that.

one more thing: with ISO 639-2 it would be better to use the terminological codes, so ISO 639-2/T and not  ISO 639-2/B (bibliographic) variant in cases where there is a variant, which is mainly there for legacy bibliographic catalog purposes. So the code for Dutch should be "nld" not "dut" for example. The first one is  ISO 639-2/T  and the second one is ISO 639-2/B.

one more thing: with ISO 639-2 it would be better to use the terminological codes, so ISO 639-2/T and not ISO 639-2/B (bibliographic) variant in cases where there is a variant, which is mainly there for legacy bibliographic catalog purposes. So the code for Dutch should be "nld" not "dut" for example. The first one is ISO 639-2/T and the second one is ISO 639-2/B.

I tried to keep in line with Audoban Core with this, which just accepts any ISO 639-2 standard and points to a controlled vocab which puts Dutch -> dut. We could deviate, but I am unsure if we can then still use ac:metadataLanguage and ac:metadataLanguageLiteral.  We could also scrap the metadataLanguages as we already has a discussion about it usefullness. We would then keep only dcterms:language which we could limit to ISO 639-2/T.


chore: replace case conversion with equal fold

What kind of change does this PR introduce?
Bug fix, feature, docs update, ...
What is the current behavior?
Please link any relevant issues here.
What is the new behavior?
Feel free to include screenshots if it includes visual changes.
Additional context
Add any other context or screenshots.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>5
Details

5 of 9 (55.56%)  changed or added relevant lines in 4 files are covered.
5 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 59.788%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cmd/bootstrap.go
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

internal/gen/keys/keys.go
5
12.9%

Totals

Change from base Build<PHONE_NUMBER>0:
-0.03%

Covered Lines:
6383

Relevant Lines:
10676

💛  - Coveralls


Suggestion: Allow "Auto Move to ITOPOD" to use Manual combat

Currently the only way to use manual combat in ITOPOD is to select Combat Enabled on the Adventure tab and then select ITOPOD. This supersedes and prevents some tasks that use adventure mode, like manual questing via Auto Quest. Auto Quest, if enabled, even tees up a Major quest and sits on it at 0 as long as Adventure is enabled.
Since manual ITOPOD is more efficient than idle for generating PP (especially at high respawn in late game), it would be desirable to have this option. One way to accomplish this would be to make Auto Move to ITOPOD follow the settings for ITOPOD in the Adventure tab, whether Combat Enabled is selected or not.
Alternately, having all other tasks (Auto Quest, gold snipe, etc.) take priority over Adventure - Combat Enabled would also solve this issue.

You seem to be running into some kind of weird behavior, because adventure is the lowest priority for anything right now. Everything takes priority over it, including questing and gold snipe. I've had that setup in place for a long time and its consistently behaved the way it should

You seem to be running into some kind of weird behavior, because adventure is the lowest priority for anything right now. Everything takes priority over it, including questing and gold snipe. I've had that setup in place for a long time and its consistently behaved the way it should

May have been a bug - I have had to restart the injector a few times. Just tested again and it looks like you're correct, so I will close this one.

May have been a bug - I have had to restart the injector a few times. Just tested again and it looks like you're correct, so I will close this one.


telegraf does not have an influxdb input plugin

influxdb can be a difficult thing to manage, but telegraf does not have a plugin to monitor influxdb. InfluxDB has server monitoring features built in (https://influxdb.com/docs/v0.9/administration/statistics.html) and it could be useful to use telegraf to consolidate influxdb metrics from many clusters into a single cluster.
Expected behavior: telegraf should have an influxdb input.

I agree. PRs welcome. :-)

closed by #449


docs: describe storage limitations in hybrid and Konnect for ACME plugin

Summary
Updating the ACME plugin's config.storage parameter description to:

Mention that shm is not supported in hybrid, and kong storage is not supported in Konnect.
Remove the line about supported backends, as those as listed in the one_of field in the schema.

Resolves the last piece of https://konghq.atlassian.net/browse/DOCU-2910. Issue recently came up with a user, see link to slack convo in ticket.
Checklist

[ N/ A ] The Pull Request has tests
[x] A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
[x] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - https://github.com/Kong/docs.konghq.com/pull/7996

@kikito I think we should get this merged into 3.9, please let me know if you have a different opinion.


Validate HTTP routes are unique

Spin currently permits non-unique HTTP routes, e.g. this loads without complaint:
[[component]]
id = "hello1"
source = "target/wasm32-wasi/release/spinhelloworld.wasm"
[component.trigger]
route = "/hello"

[[component]]
id = "hello2"
source = "target/wasm32-wasi/release/spinhelloworld.wasm"
[component.trigger]
route = "/hello"

This is overwhelmingly likely to be an error, and should be rejected, or at the very least should receive a trace message at an on-by-default level.
(~We should also document the behaviour of overlapping routes, e.g. /... and /static/... - I don't think we have that yet, though could be wrong!~  [ETA: I was, indeed, wrong.]  It would also be good to error or warn if a route can never be matched.)

You are right, this is part of the larger discussion around how we handle exact and wildcard routes.
There is a brief mention in the HTTP trigger docs about what happens in the case of overlapping routes:
https://github.com/fermyon/spin/blob/ea7f8ee197128d455aeeae3a0f460d2652b77602/docs/content/http-trigger.md?plain=1#L65-L86

👍  Thanks - removed that remark from the issue!

One path would be to essentially duplicate the work from https://github.com/fermyon/spin/pull/370 and add a constraint for unique routes. There’s probably an opportunity there to generalize the idea of constraints which may be useful in the future depending on how the Spin configuration evolves (but maybe out of scope for this task?)
If any other new contributors are interested I’d be happy to help - otherwise I can tackle this later.
I am curious to hear thoughts on whether a refactor to add a generalized configuration constraint mechanism is desirable.

@0xcodeboi Some sort of infrastructure that would allow a manifest to be run through a set of validators seems sensible.  As you note, it might be more long term, though I don't think it would create significant extra work or complexity to do something simple on day one.  A good infrastructure would set us up to do good things like accumulate a full list of failures (rather than stopping on the first one) so that new validations would just play into that good behaviour; but yes, this does bring up questions of scope!
This particular validation would be specific to the trigger, so we would likely need (at least) two sets of validations: one for the bits the Spin loader/engine cares about (like the component IDs), and one for the bits the current trigger cares about (like the HTTP trigger cares about routes).  I can see it making sense for host component and dependency configurations too.  We'd need to figure out how to organise those in an intelligible way.
Are you keen to tackle this?  If not, I might look at it with a view to setting up a generaliseed infrastructure.  But if you're keen, then I'm happy to leave it for you!  I certainly have plenty of other stuff on my plate right now...!


[AutoPR eventhub/resource-manager] EventHub: 2018-preview - added new API for NetworkRuleSet

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4748

Build output:

Build output:

Build output:

This PR has been merged into https://github.com/Azure/azure-sdk-for-java/pull/2153


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: c74ec7d35c0732a61db026ce421293359663751a
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Export common ABIs which are already in source code

I'm trying surf for the first time and it is unclear as beginner to how to use aptos-wallet-adapter with surf?
Also I see COIN_ABI in source code and used in examples in readme but how do I import them to use? I know it is not gud idea to include ABIs with this but I think common ABIs can be exported along with this package to make it easy to get started for common features like fetching balances and transferring tokens.

In example there is transfer example which uses account from private key but that will not be the case in production dapp, its going to be signer(account) from connected wallet.
It would be helpful to have such example.

@itsmnthn please look at this file about how to use with wallet: https://github.com/ThalaLabs/surf/blob/main/example/app/page.tsx

@itsmnthn I agree, we should export common ABIs from this package. It's also mentioned in #8. I will add it, maybe this week.


Script "clean" fails on windows

The rm command line utility does not exist on Windows, so all scripts that require "clean" fail on Windows.

Related, compile fails with the following error:
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.

Another Windows batch difference, I imagine.

For the first issue, I've seen people use yarn add --dev rimraf and yarn add --dev trash to get around that.  If you're feeling up for a PR, that'd be sweet.
For the 2nd issue, I'm not sure how windows sets their environment variables. hmmm... I'll have to look into that one.  Unless you know?


Optolink remains busy after first write

using v1.00 P300 I use this routine for reading / writing:
bool readWriteDP (word address, byte Len, uint8_t* rawdata, bool Write = false ){
  unsigned long now = millis();
  while (myOptolink.isBusy() && ((millis()-now) < 3000))
        delay(10);  // wait for optolink to become available
  if (myOptolink.isBusy() ) {
      Serial1.print(F("optolink busy "));
      return false;
  }

  if (!Write)
      myOptolink.readFromDP( address, Len);  // issue read command
  else
      return myOptolink.writeToDP( address, Len, rawdata);

  while (((millis()-now) < 3000)){
        myOptolink.loop();
        if (myOptolink.available() > 0) {
          myOptolink.read(rawdata);
             return true;
        }
        if (myOptolink.available() < 0) {
          Serial1.println(myOptolink.readError());
          return false;
        }
  }
  return false;
}

This works for reading quite fine until the first write attempt. I then get the message "optolink busy" . The write succeeded but blocks the optolink from then on. Serial output is:
READ<PHONE_NUMBER>00042a
ack
RCV<PHONE_NUMBER>0004dc00b400bf
ack
Address 2000 has value DC00B400 (<--this is my read access)
Address 2000 data DC00 (<--this is my write access)
WRITE<PHONE_NUMBER>0002dc0007
ack
RCV<PHONE_NUMBER>00022a
ack

Could you do me a favour and try  with the print commands in setState and setAction uncommented in the lib source code? I can give only limited support untill monday as I haven't got access to my computer.

Successful read

Optolink action: 1
Optolink state: 5
Optolink state: 6
READ<PHONE_NUMBER>01020a
ack
Optolink state: 7
RCV<PHONE_NUMBER>0102250133
Optolink state: 8
ack
Optolink state: 4
Optolink action: 2
Optolink action: 0
Address 101 has value 2501
29.30

successful write
Address 2000 data E600
Optolink action: 1
Optolink state: 5
Optolink state: 6
WRITE<PHONE_NUMBER>0002e60011
ack
Optolink state: 7
RCV<PHONE_NUMBER>00022a
Optolink state: 8
ack

failing reads since then
Optolink state: 4
Optolink action: 2
optolink busy timeout

Optolink state: 2
Optolink state: 3
Optolink state: 4
optolink busy timeout

optolink busy timeout

Optolink state: 2
Optolink state: 3
Optolink state: 4
optolink busy timeout

Optolink state: 2
Optolink state: 3
Optolink state: 4
optolink busy timeout

enum OptolinkState : uint8_t { RESET = 0, RESET_ACK, INIT, INIT_ACK, IDLE, SEND, SEND_ACK, RECEIVE, RECEIVE_ACK } _state;
enum OptolinkAction : uint8_t { WAIT = 0, PROCESS, RETURN, RETURN_ERROR } _action;

2 pint I should try:

change delay(10); to myOptolink.loop();
just waiting could fill the UART buffer but VitoWiFi doesn't do anything with the data untill loop() is called.
don't return at return myOptolink.writeToDP( address, Len, rawdata);. Just do the same as when reading.

I removed the return and added loop() below the delay.
read gives now:
WiFi connected
IP address:
<IP_ADDRESS>
Setup finished...
Optolink state: 1
Attempting MQTT connection...connected
Optolink state: 0
Optolink state: 1
Optolink state: 0
Optolink state: 1
Optolink state: 2
Optolink state: 3
Optolink state: 4
Optolink action: 1
Optolink state: 5
Optolink state: 6
READ<PHONE_NUMBER>00040f
ack
Optolink state: 7
RCV<PHONE_NUMBER>0004092000003d
Optolink state: 8
ack
Optolink state: 4
Optolink action: 2
Optolink action: 0
Address 500 has value 09200000
8201.00

after some time:
Optolink state: 2
Optolink state: 3
Optolink state: 4
Optolink state: 2
Optolink state: 3
Optolink state: 4
Optolink state: 2
Optolink state: 3
Optolink state: 4

writing gives:
Address 2000 data E600
Optolink action: 1
Optolink state: 5
Optolink state: 6
WRITE<PHONE_NUMBER>0002e60011
ack
Optolink state: 7
RCV<PHONE_NUMBER>00022a
Optolink state: 8
ack
Optolink state: 4
Optolink action: 2
Optolink action: 0
Address 2000 has value E600

then reading :

Optolink state: 2
Optolink state: 3
Optolink state: 4
Optolink state: 2
Optolink state: 3
Optolink state: 4
Optolink action: 1
Optolink state: 5
Optolink state: 6
WRITE<PHONE_NUMBER>7004e60000007b
ack
Optolink state: 7
RCV<PHONE_NUMBER>700120
Optolink state: 8
nack, length
Optolink state: 4
Optolink action: 3
Optolink action: 0
4
timeout

puh, it writes now the address it should have read.

but that is determined outside this code block?
VitoWiFi handles correct right? you cannot write to that address and timeouts.
Am I missing something?
Changing between states 2-4 is automatically for syncing.

There is something The library writes when it should read. It says so at least. Not sure what it actually does. I inserted some printfs just to make sure what I call:
The *** watch... line I inserted manually ;-)

   if (!Write) {
        Serial1.println("calling readFromDP");
        myOptolink.readFromDP( address, Len);  // issue read command
        }
    else
        {
          Serial1.println("calling writeToDP");
         myOptolink.writeToDP( address, Len, rawdata);
        }

The output of a boot, a read and a write is this:
WiFi connected
IP address:
<IP_ADDRESS>
Setup finished...
Optolink state: 1
Attempting MQTT connection...connected
Optolink state: 0
Optolink state: 1
Address: 1670 Len: 4 data: 00000000
calling readFromDP
Optolink action: 1
Optolink state: 0
Optolink state: 1
Optolink state: 2
Optolink state: 3
Optolink state: 4
Optolink state: 5
Optolink state: 6
READ<PHONE_NUMBER>700490
ack
Optolink state: 7
RCV<PHONE_NUMBER>7004f21400009b
Optolink state: 8
ack
Optolink state: 4
Optolink action: 2
Optolink action: 0
Address 1670 has value F2140000
TempL:  536.20
TempS:  242.00
STAT:   true
CountL: 5362.00
CountS: 5362.00
Mode:   242.00
Hours:  1.49
CoP:    24.20
Raw:    f2140000

Address: 2000 Len: 2 data: E600
calling writeToDP
Optolink action: 1
Optolink state: 5
Optolink state: 6
WRITE<PHONE_NUMBER>0002e60011
ack
Optolink state: 7
RCV<PHONE_NUMBER>00022a
Optolink state: 8
ack
Optolink state: 4
Optolink action: 2
Optolink action: 0
Address 2000 has value E600
Address: 1670 Len: 4 data: E6000000

***** watch this: ********

calling readFromDP
Optolink action: 1
Optolink state: 5
Optolink state: 6
WRITE<PHONE_NUMBER>7004e60000007b
ack
Optolink state: 7
RCV<PHONE_NUMBER>700120
Optolink state: 8
nack, length
Optolink state: 4
Optolink action: 3
Optolink action: 0
4
timeout

In OptolinkP300.cpp change lines 320-323
  if (write) {
    memcpy(_value, value, _length);
    _writeMessageType = true;
  }

to
  _writeMessageType = write;
  if (write) {
    memcpy(_value, value, _length);
  }

That did the trick.
Thanks.

PR #46


How to disable dimension of crop area and make available only dragging?

Hi. Thanks for this repo.
I would like to use reac-image-crop for setting cover image. That means i need fixed crop size in pixel, let's say 500 x 300 px. So, i don't need ability to change crop width or height. User should only have ability to drag pre-defined crop area to capture certain part of image.
How can i achive this? i know there is maxWidth prop, but it use percentage and hence it doesn't allow me to get immutable 500 x 300 crop zone.
Is there any other solution for my case?  Thanks!

Hi, you can only set the crop using percentages, you may find another cropping library which is based on pixels more useful to you - but if you know the width + height of the image you should be able to derive the percentage - e.g. if the crop image is 1500 wide, then you know that the % to use is 33.3333% (500/1500*100). If you set disabled to true then they won't be able to modify the crop, you might also want to hide the drag handles (the squares) with css.

Thank u for ur response. I'll left the feedback if I get luck with resolving this issue


Using the sample images for a comparison

Hey Evan,
Cool project. :)
I was curious how thumbhash would compare to just ripping out the scan out of a single block (8x8) JPEG, similar to the potato WebP examples.
I hacked together a very quick demo of it. Could I reuse your images for a comparison? How are they licensed?

Yeah, sure thing. Thanks for asking. All of the non-transparent images are mine, and you can do whatever you want with them. The transparent images originate from here and here.

@jwagner if you can share your findings that would be awesome.

@signalwerk
My preliminary results looked really promising. Then I realized that I had ignored the custom huffman tables when ripping out the JPEG block out of the file. Successfully fooled myself until I tried decoding the blocks, at which point I realized my error rather quickly. ;)
After switching to a JPEG implementation with static huffman tables the results weren't quite so stellar anymore.  The next step would now be to optimize the static huffman tables used to see how close that gets to the dynamic/per image ones. I haven't decided whether I want to climb down that rabbit hole yet. :)
The jpeg approach has a nice side effect though - turning the thumbnail back into a jpeg or data uri is just string concatenation. Even when turned into a JPEG in an API (so clients would get back ready to use data uris), the resulting images will still compress quite nicely since they all share exactly the same prefix and suffix.
Over all though, I think thumbhash is pretty sweet as is. The implementation is simple enough, the good compression is good there isn't much more to ask for. :)
An even simpler approach which I've implemented in dont-crop is just fitting a linear gradient. That is even more compact, and looks quite clean.

@jwagner thank you for the explanation and the tests! I like the ThumbHash idea a lot. But for my use case I often want to inline a file without dealing with an external library to make it then readable for the browser. Therefore, I thought it would be nice to have the minimal JPEG and even if it's a bit bigger in file-size, I wouldn't mind.
If you do any further research on it, I'm trust on the github-follower-functionality, so I will get a notification if you create a repo. 🤓


📢 [Notification] New Products

New products will be announced on this issue. You can subscribe to this issue using GitHub, or using its RSS Feed.
(For now, this is manual but we can automate this later)

Recently listed new products on https://endoflife.date:

Hashicorp Packer is a community tool for creating identical machine images for multiple platforms from a single source configuration.

Svelte is a UI framework that lets you write breathtakingly concise components. 5.4 is the only currently supported version, and there is no extended support available.

Amazon RDS for MariaDB is a PaaS offering from Amazon for creating managed MariaDB databases.  Recommended versions are 10.5 and above, with 10.4 becoming unsupported in Feb 2025.

Google Pixel Watches is Google’s current line of wearable watches. All variants are currently supported.

There's some work to be done on Hashicorp Products due to recent clarity on how Enterprise and Community variants differ in support, help is welcome.


[5.9][Distributed] AST test was too picky about asserting the shape

Cherry-pick #64809 #64833 to release/5.9

@swift-ci Please test

Force merging to unblock CI. This is a test-only change and the test passed in this PR testing.


Suggestion: Don't refetch already included relations

Heya, first of all thanks a lot for a ll the hard work you are putting into nexus and nexus-prisma!
With the way things currently are, resolver performance has a tendency to go down the drain with nested queries, since the dataloader isn't here yet and prisma2 is only able to handle one request at a time.
One way I found to speed thing up a little is by overriding the most widely used relations resolve function to include a check whether root/parent already includes the relevant field ( if, for example they were already fetched by photons eager loading select/include), and manually fetch them otherwise.
import { objectType } from 'nexus'

export const Post = objectType({
  name: 'Post',
  definition(t) {
    t.model.id()
    t.model.createdAt()
    t.model.updatedAt()

    t.model.name()
    t.field('comments', {
      type: 'Event',
      list: true,
      resolve: async (root, args, { photon }) => {
        //@ts-ignore
        return root.events || photon.comments.findMany({ where: { post: { id: root.id } } })
      },
    })
  },
})

I think making this behaviour baseline could help bridging the gap until the prisma2 binary supports concurrency and both prismaa & nexus-prisma had time to implement their own dataloader.
If you could point me in the right direction I'd also be more than happy to take a look at this myself.

@luhagel @Weakky What is the best solution now?


Added size to index management plugin

Updated the index management to keep track of size statistics

Side note: I haven't run the plugin locally yet, but based on the code, it looks like you figured out how to dynamically adjust space so that if there's a Size column, it won't wrap to the next line 💪

@brimoor done ✅


StartCallAction Issue

StartCallAction transaction request failed: The operation couldn’t be completed. (com.apple.CallKit.error.requesttransaction error 7.)

@hpsolver can you provide a version of SDK and the client logs?


Can't get the string from an AttributeValue

Describe the issue
val response = client.userInTable(tableName, username)
response.items?.first()?.let { user ->
val pwd = "${user["password"]}".replace(")","").replace("S(value=","")
Can't simply get user["password"].toString()  or getString()  it remains and attribute value
So I have to drop the       S(value=      and    )   to be left with string
Requesting an item from dynamoDB table
Steps to Reproduce
request an item from dynamoDB  can change the data returned into a normal type  in the case string
Current behavior
Won't convert to string  have to string replace to manipulate
AWS Kotlin SDK version used
aws.sdk.kotlin:dynamodb:0.13.1-beta
Platform (JVM/JS/Native)
JVM (desktop application)
Operating System and version
Mac OS 12.1

Hi @TheBearF8.
I can't see the definition of userInTable in your code snippet but I presume it's fetching items using something like Scan or Query. If so, please note that items are maps of attribute names (strings) to values (AttributeValue) which support a variety of data types.
AttributeValue in the Kotlin SDK is a sealed data class with nested subclasses for each supported data type, including AttributeValue.S for strings. If you know the data type of your password attribute is a string at build time, you can cast it to get the value:
val pwd = (user["password"] as AttributeValue.S).value

In other cases where the data type of an attribute is not known at build time, you can use pattern matching to handle every possible case:
val foo = when (val attr = user["foo"]) {
    is AttributeValue.S -> attr.value
    is AttributeValue.N -> ...
    is AttributeValue.Bool -> ...
    ...
}

Does that answer your question?

Thank You  !! and yes userInTable is doing a QueryRequest and returns  query(request)

Mapping items to custom data classes is not something the SDK provides (although a later add-on library similar to DynamoDBMapper may provide it in the future). Thus, data mapping needs to be done in your own business logic.
For example:
data class User(val name: String, val password: String)

suspend fun DynamoDbClient.userInTable(table: String, user: String): List<User> {
    val request = QueryRequest {
        tableName = table
        keyConditionExpression    = "#user = :name"
        expressionAttributeNames  = mapOf("#user" to "username")
        expressionAttributeValues = mapOf(":name" to AttributeValue.S(user))
    }
    val items = query(request).items ?: listOf()
    return items.map { item ->
        User(
            name     = (item["name"] as AttributeValue.S).value,
            password = (item["password"] as AttributeValue.S).value,
        )
    }
}

FWIW, we have a feature proposal that may make retrieving attribute values easier (#393). If you feel this may be useful in your code, feel free to add a 👍 reaction to that issue.
Resolving this issue as the requested guidance has been provided. @TheBearF8 feel free to re-open and ask further questions if you need.


I wish to add more features in notes app

Is your feature request related to a problem? Please describe.
I wish to add a Clear button, as user sometimes want to clear all text and restart typing.

Describe the solution you'd like
Adding a Clear Button beside Add Note button might help.
Additional context
Also want to improve some UI
Steps Followed✅
Check the box with [x] If you followed all the steps.

[x] Is your feature request related to a problem? Please describe.
[x] Describe the solution you'd like
[x] Describe alternatives you've considered
[x] Additional context

Code of Conduct✅

[x] I agree to follow this project's Code of Conduct.
[x] I checked the current issues for duplicate problems.
[x] I have gone through project README.

Please assign this issue under hacktoberfest tag.

@Astrodevil can you please add hacktoberfest label😊

@Astrodevil why my greeting checks showing failed in PR🤔?


Odysee Exclusive Conent - Badge

It would be cool if there was a badge for Odysee Exclusive Content. Currently, it's very hard for new users to find really active channels that put more effort into growing on the platform. Many channels just use the Youtube sync to post content, but don't really comment.
This doesn't really encourage activity on the platform and isn't conducive to a community feel.
You would then also have the opportunity to better promote "Odysee Exclusive" creators.

We don't plan to do this as there would be no way to confirm what's exclusive or not. But membership, creator, and verified badges will be coming in the future.


TypeError: must be string or buffer, not None

 3000 user to press the getfile interface(http),   after 3 min later.

the slave locust occurs the error:  "TypeError: must be string or buffer, not None",
and then  the  server has no pressure.   the usage  of  cpu, and network  is  almost  zero
what happened  and how can i fix it ?

3000 user to press the getfile interface(http),   after 3 min later.

do you have more details?  a stacktrace?  I have no idea what the above means.
at minimum, please post:

what version of Locust you are using
how you are starting locust on master and slaves
a sample Locust file that reproduces the issue

Please make sure you fill out the provided template in order to make bug reports more answerable.


Maven Build not working out the box?

I just did a git clone and a mvn install. and I get this...
Is there some repository where these artifacts are hosted?

[ERROR] Failed to execute goal on project ha-bridge: Could not resolve dependencies for project com.bwssystems.HABridge:ha-bridge:jar:3.5.1b: The following artifacts could not be resolved: com.github.bwssytems:harmony-java-client:jar:1.1.1, com.github.bwssytems:nest-controller:jar:1.0.9: Could not find artifact com.github.bwssytems:harmony-java-client:jar:1.1.1

Those are coming from jitpack.io within the maven build, don't know why that is not completing. I do this within in eclipse and it pulls the libraries through jitpack.io.


Update version: ncyxie.Notepad-DOT-Qt version 1.1.0-s1

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/115200&drop=dogfoodAlpha

@wingetbot run


"Bârsești" is listed in the drop-down menu

Description:
"Bârsești" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Bârsești" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Bârsești, GORJ (TÂRGU JIU)".


[improve][client] AuthenticationAthenz supports Copper Argos

Motivation
Athenz has a mechanism called Copper Argos. This means that ZTS distributes an X.509 certificate and private key pair to each service, which it can use to identify itself to other services within the organization.
https://github.com/AthenZ/athenz/blob/master/docs/copper_argos.md
However, the current Pulsar's authentication plugin for Athenz cannot accept X.509 certificates as parameters, so we cannot use Copper Argos.
Modifications
Add the parameters x509CertChain and caCert to the AuthenticationAthenz class of the Athenz authentication plugin. If an X.509 certificate is passed as a parameter, it assumes Copper Argos is used and instantiates an SSLContext and creates a ZTSClient based on it. Existing users of this plugin will not be affected by this change.
Verifying this change

[x] Make sure that the change passes the CI checks.

Documentation

[ ] doc
[x] doc-required
[ ] doc-not-needed
[ ] doc-complete

Codecov Report

Merging #19445 (735f848) into master (aa7af10) will decrease coverage by 1.69%.
The diff coverage is 27.39%.

@@             Coverage Diff              @@
##             master   #19445      +/-   ##
============================================
- Coverage     64.20%   62.52%   -1.69%
+ Complexity    26265    25739     -526
============================================
  Files          1832     1832
  Lines        134067   134141      +74
  Branches      14753    14758       +5
============================================
- Hits          86077    83866    -2211
- Misses        40135    42604    +2469
+ Partials       7855     7671     -184

Flag
Coverage Δ

inttests
24.83% <0.98%> (-0.08%)
:arrow_down:

systests
25.40% <2.94%> (-0.08%)
:arrow_down:

unittests
59.86% <27.39%> (-1.60%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...xtensions/channel/ServiceUnitStateChannelImpl.java
0.85% <0.00%> (-0.12%)
:arrow_down:

...rg/apache/pulsar/broker/service/BrokerService.java
59.90% <0.00%> (-0.48%)
:arrow_down:

.../pulsar/client/impl/auth/AuthenticationAthenz.java
59.45% <50.00%> (-0.04%)
:arrow_down:

...che/bookkeeper/mledger/impl/ManagedCursorImpl.java
78.22% <100.00%> (+0.30%)
:arrow_up:

...va/org/apache/pulsar/broker/service/ServerCnx.java
55.27% <100.00%> (+0.83%)
:arrow_up:

...ain/java/org/apache/pulsar/broker/rest/Topics.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...ar/broker/stats/prometheus/ManagedLedgerStats.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...oker/stats/prometheus/PrometheusMetricStreams.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../stats/prometheus/AggregatedSubscriptionStats.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...metheus/AggregatedTransactionCoordinatorStats.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 145 more

Hi @massakam, It will help users a lot if you can add the docs for this improvement. Do you have any planned updates on that?

@momo-jun Yes, I will make a pull-request to the pulsar-site repository later.


Add Awakener

Awakener allows cross-thread waking of Poll.
This is aport of Gaea's Awakener.
Updates #968.

@asomers Can you check kqueue's side of this?

I forgot to run Rustfmt, will do after some initial feedback.

Builds are failing because of fmt and various warnings not related to this change. I'll fix that in another pr I'm currently working on.

Solaris is Linux like right? Does that mean it has eventfd?

This also need the suppression of warnings in #970 for the tests to pass.

I've rebased this on #970, so hopefully the CI will be green.

I've used a unix pipe for Solaris. Now all that is left is Windows. It seems to get the wrong token: https://dev.azure.com/tokio-rs/Tokio/_build/results?buildId=867&view=logs&jobId=429a383f-e486-57ac-3982-9ac65641a32a.

It strikes me that in the spirit of slimming mio down, Awakener could be moved to a separate crate. I'm not going to insist upon it, though.

@asomers You're right but it's fairly common to require this behaviour. And it does need add to the Selector internal on kqueue. So even if this would go into a separate crate it would be rather tightly coupled.
I'll address the comments and rebase on master.

It strikes me that in the spirit of slimming mio down, Awakener could be moved to a separate crate. I'm not going to insist upon it, though.

@asomers You're right but it's fairly common to require this behaviour. And it does need add to the Selector internal on kqueue. So even if this would go into a separate crate it would be rather tightly coupled.
I'll address the comments and rebase on master.

Makes sense.

I've force pushed the changes, the last commit addresses @asomers comments.

@asomers What to include in mio proper is a bit of a balance. Should TCP / UDP be included? It is common enough it seems like it. What about UDS? It is part of stdlib, i think we should consider it.

"Slimming down" is equally about maintenance as well as code in the hot path.

@asomers Sorry about the force push.
Windows doesn't work (see https://dev.azure.com/tokio-rs/Tokio/_build/results?buildId=894&view=logs&jobId=429a383f-e486-57ac-3982-9ac65641a32a), it returns the incorrect token. It seems to return the max value of usize.

Who has a Windows machine that can help out with getting the Windows side working?

@carllerche suggested the name Waker instead of Awakener, any thoughts @asomers?

@carllerche suggested the name Waker instead of Awakener, any thoughts @asomers?

Either name is fine by me.

Ok then I'll rename it to Waker, but that means I'll also have to rename some files to I'll leave if we're all on agreement on the other stuff.

Ok that worked! It just broke other tests on Windows :)

CI is finally green.

Don't want me to rename it to Waker?

@Thomasdezeeuw follow up PR? I mostly wanted to get it in to fix the merge conflicts

Sure

Pr for renaming: https://github.com/tokio-rs/mio/pull/976.


[kubelet] Fix SSL when specifying certificates files

What does this PR do?
Support a setup with the insecure options but still provide certificates.
Currently with this stack trace occuring:
2018-05-02 23:18:40 UTC | ERROR | (runner.go:276 in work) | Error running check kubelet: [{"message": "401 Client Error: Unauthorized for url: https://<IP_ADDRESS>:10250/metrics/cadvisor", "traceback": "Traceback (most recent call last):\n  File \"/opt/datadog-agent/bin/agent/dist/checks/__init__.py\", line 332, in run\n    self.check(copy.deepcopy(self.instances[0]))\n  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/kubelet/kubelet.py\", line 151, in check\n    self.process(self.metrics_url, send_histograms_buckets=send_buckets, instance=instance)\n  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/checks/prometheus/mixins.py\", line 356, in process\n    for metric in self.scrape_metrics(endpoint):\n  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/checks/prometheus/mixins.py\", line 320, in scrape_metrics\n    response = self.poll(endpoint)\n  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/checks/prometheus/mixins.py\", line 492, in poll\n    response.raise_for_status()\n  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/models.py\", line 935, in raise_for_status\n    raise HTTPError(http_error_msg, response=self)\nHTTPError: 401 Client Error: Unauthorized for url: https://<IP_ADDRESS>:10250/metrics/cadvisor\n"}]

Motivation
Setup where using self signed certificate without providing the certificate authority.
Testing Guidelines
An overview on testing
is available in our contribution guidelines.
Versioning

[ ] Bumped the check version in manifest.json
[ ] Bumped the check version in datadog_checks/{integration}/__init__.py
[x] Updated CHANGELOG.md. Please use Unreleased as the date in the title
for the new section.
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes
Anything else we should know when reviewing?

Is this already included in version 6.2.0-rc.4 of datadog-agent?

@masci it seems that docker image is not pushed yet? (https://hub.docker.com/r/datadog/agent/tags/)

@jakolehm the tag is here: https://hub.docker.com/r/datadog/agent-dev/tags/
use docker run datadog/agent-dev:6-2-0-rc-4 we're still adjusting the release process, sorry for the confusion.

Ok, thanks for the info. Tested datadog/agent-dev:6-2-0-rc-4 and it seems to work without issues.


assignment two

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
What did you learn from the changes you have made?
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist

[ ] I can confirm that my changes are working as intended

changed

Thank you for completing section 1 of assignment 2.
I modify your point: 70/70


feat: allows custom name for keypair generation

Closes #1076
Summary
Adds --name option for cosign generate-key-pair command that allows to specify a custom name for the key pair that's generated. Also added some updates to the README.md that details how to run lint and test for contributors.
Release Note

adds --name option for cosign generate-key-pair command that allows to specify a custom name for the key pair that's generated.

Signed-off-by: ChrisJBurns<EMAIL_ADDRESS>

I'm glad you said this, I was thinking the same. I'll put a step in there for docgen too 👍

Codecov Report

Merging #2561 (13cdd25) into main (564a11d) will increase coverage by 0.15%.
The diff coverage is 45.83%.

@@            Coverage Diff             @@
##             main    #2561      +/-   ##
==========================================
+ Coverage   30.04%   30.20%   +0.15%
==========================================
  Files         140      140
  Lines        8671     8685      +14
==========================================
+ Hits         2605     2623      +18
+ Misses       5687     5676      -11
- Partials      379      386       +7

Impacted Files
Coverage Δ

cmd/cosign/cli/generate_key_pair.go
0.00% <0.00%> (ø)

cmd/cosign/cli/options/generate_key_pair.go
0.00% <0.00%> (ø)

cmd/cosign/cli/generate/generate_key_pair.go
28.08% <61.11%> (+19.33%)
:arrow_up:

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

@znewman01 hi bud, hope your holidays are going well. Just pushed up the new changes with docgen and also splitting things into a Contributing.md, let me know your thoughts. I'm not entirely sure on the full details of what folks have to do when developing cosign (this is moreso around the e2e tests if anything), but I've put some basic starter steps in the docs around running unit tests, lint etc - just so we have something in there.
let me know you're thoughts :+1:

@znewman01  @cpanato  have addressed comments, I think I need an adult to help start the workflows :D

I require supervision myself usually but it seems I can click the button!

Thanks @dlorenc , they should all pass now I believe. If not, I'll have to figure out why I get different results locally. Fingers crossed 🤞


updated changelog

sanity check on formatting. my buildprocess is breaking on
.venv/lib/python3.10/site-packages/sphinx_immaterial/object_toc.py", line 33, in _make_section_from_desc
    for child in source._traverse():
AttributeError: 'desc' object has no attribute '_traverse'

can't check myself

Thanks :+1:


Missing regexTypes.d.ts in distributed module

There seems to be a problem with the distribution of the regexTypes.d.ts file in the module available on npm.
When typescripts checks a project using the library, it complains:
node_modules/sql-formatter/lib/src/lexer/Tokenizer.d.ts:2:29 - error TS2307: Cannot find module './regexTypes' or its corresponding type declarations.

2 import * as regexTypes from "./regexTypes";
                              ~~~~~~~~~~~~~~

Found 1 error in node_modules/sql-formatter/lib/src/lexer/Tokenizer.d.ts:2

lib/src/lexer indeed does not contain the requisite file. It appears that the compilation step considers it as a plain typescript file and emits an (empty) module in lib/lexer instead:
$ find node_modules/sql-formatter -name 'regexTypes.*'
node_modules/sql-formatter/lib/lexer/regexTypes.d.js
node_modules/sql-formatter/lib/lexer/regexTypes.d.js.map

The issue appears in (at least) 8.2 and 8.1.

Quick workaround, for those using yarn 2+ and its patch feature:
Add the following resolution to your package.json (note that the version specifier in resolutions and dependencies must match exactly):
 {
   "dependencies": {
     "sql-formatter": "^8.2.0"
   },
   "resolutions": {
+<EMAIL_ADDRESS>"patch:sql-formatter@npm:8.2.0#.yarn/patches/sql-formatter-npm-8.2.0-cee6286818.patch"
   }
}

Patch file .yarn/patches/sql-formatter-npm-8.2.0-cee6286818.patch
diff --git a/lib/src/lexer/regexTypes.d.ts b/lib/src/lexer/regexTypes.d.ts
new file mode 100644
index<PHONE_NUMBER>000000000000000000000000000000..71fa1306c6bb19eef9745397999eac3a8a34b43a
--- /dev/null
+++ b/lib/src/lexer/regexTypes.d.ts
@@ -0,0 +1,29 @@
+import { quotePatterns } from './regexFactory';
+
+export interface IdentChars {
+  // Additional characters that can be used as first character of an identifier.
+  // That is: in addition to letters and underscore.
+  first?: string;
+  // Additional characters that can appear after the first character of identifier.
+  // That is: in addition to letters, numbers and underscore.
+  rest?: string;
+  // True to allow single dashes (-) inside identifiers, but not at the beginning or end
+  dashes?: boolean;
+}
+
+export type PlainQuoteType = keyof typeof quotePatterns;
+
+export type PrefixedQuoteType = {
+  quote: PlainQuoteType;
+  prefixes: string[];
+  requirePrefix?: boolean; // True when prefix is required
+};
+
+export type QuoteType = PlainQuoteType | PrefixedQuoteType;
+
+export interface VariableRegex {
+  regex: string;
+}
+
+export type VariableType = VariableRegex | PrefixedQuoteType;
+

Fix for this is now released in 9.0.0-beta.6


Is my label pre-training normal?

@ChanganVR
Thank you, I appreciate your wonderful work.
I tried to rerun your savi experiments following the usage you wrote. I have 1 GPU.
The accuracy of my training curve was high at first, but it has been declining since then.

The training parameters have not been modified.

Is my label pre-training normal?

This is weird. Did you use the pretraine weights for training? Why would the training classifier accuracy start at such a high value?
When I trained label predictor, the performance increased over time and converged eventually.

Thank you, I will try again.

Hi @yyf17 @ChanganVR  thanks for the discussion, hope you are doing good! I'm new to this repo and had some trouble training this label predictor with the given parameter settings and hope to get some suggestions. I'm in the same situation here with accuracy, @yyf17 could you give some tips about what is the problem?

Also about runtime, I'm wondering why the first epoch is so slow with 20% cpu util and 0% gpu util. In other epochs, cpu util stays around 100% but gpu util keeps jumping between 0 to 100%. I'm training via Slurm with 1 node, 1024 batch size and 8 workers. I guess it has something to do with the cpu IO bottleneck in dataloader? Do you have any workaround advice?


General: Codestyle fixes to comply with PSR-12

Fixes #8

You'll have to rebase on master now.

And you'll have to rebase again for CI to pass. As part of this review, can you disable continue-on-error in the github workflow for PHPCS? Since it should be failing otherwise.

Thanks @Martijnsvb !


Cleanup NetBeans license header for module spi.editor.hints.projects

Review and cleanup the license header in spi.editor.hints.projects
Oracle donated NetBeans to the Apache Software Foundation.
Your task now is to replace the old license header that has Oracle (and/or Sun Microsystems
and/or NetBeans) in it with the standard Apache Software Foundation license header.
For an empty file that supports headers you must add the Apache license header.
Note that you have to use the proper license header for Java, .properties or HTML files.
Look at the nearby files for templates and copy-paste the license header.
When done commit the changes with a commit message that starts with first line
"[NETBEANS-54] Module Review " and a message body describing your review.
See a longer explanation about what we are doing here: https://cwiki.apache.org/confluence/display/NETBEANS/List+of+Modules+to+Review
Please announce in a comment when you have started work.
Files that need to be looked at in spi.editor.hints.projects:
spi.editor.hints.projects/apichanges.xml
spi.editor.hints.projects/src/org/netbeans/spi/editor/hints/projects/Bundle.properties
spi.editor.hints.projects/src/org/netbeans/spi/editor/hints/projects/support/Bundle.properties

Working on

OK.
Updated https://cwiki.apache.org/confluence/display/NETBEANS/List+of+Modules+to+Review for spi.editor.hints.projects

Done PR #249


where do I paste in the API key?

I see no extension option page and right click menu doesn't give a place to put it that worked

Hi @alok , you can find it in the icon of the extension. In the upper right side of chrome you can find the (pinned) icons of extension of chrome. There is also an icon shaped like a puzzle piece that show the remaining extension unpinned, the first time you installed it will be there unpinned. Click on it and you will find easily where to insert the API key


When add a .form-control to a date input, the height will increase unexpectedly

Hi there,
I was trying out the v4-alpha and using Chrome (Haven't test for other browsers.)
I found that whenever we add .form-control class to a date tag, the control layout will mess up like this:

According to the Dev tool, it is due to following media query.

We can fix that by force the height back to 1.5rem again like other normal text input controls.
But still, there is a 2px difference.

Is it an expected behavior? Also, how can we get around that?
O_o

please provide an example as noted in CONTRIBUTING.md

Assuming you're using v4.0.0-alpha.2 and not the current v4-dev branch, duplicate of #17308 and #18842. Please search more in the future. Thanks.

So sorry... I searched but I didn't find the #18842, I thought it's new. :cry:


Aurora 0.6.0 rainbow effect

Hi, just trying the pre-release and I loving it, but I set my keyboard up like in the previous version of aurora but with layers instead, I had a rainbow effect scrolling across the keyboard, so I created a new layer , gradient layer set it to rainbow & the animation is very clunky for want of a better word the transition form color to color is not smooth like it was if you use color zones, this only happens with the rainbow effect, it's smooth if i have a single color gradient, if I go back to using color zones its fine but that overrides the layer effects

I looked into the gradient layer vs color zones, and I noticed little difference. What are the settings you are setting on the layer, so I could recreate the issue here?
The two are running fairly smoothly. Top is Gradient Layer with seamless rainbow at 2x speed. Bottom is Color Zone rainbow (horizontal) at 2x speed.

Are you perhaps referring to the fact that current pre-release's animation speed is faster at 1x than Color Zone at 1x. Because that was fixed on dev ( https://github.com/antonpup/Aurora/commit/81768818eff57034b1f5c181d856efde739487e5 ) just waiting until I can push a proper update.

I didn't change any settings, just selected the rainbow seamless setting and left it at that, looking at your keyboard bitmap, it is not the same on mine. here's mine(sorry for the phone vid)

Yours is choppy like that because you selected a sequence of keys. I selected a freestyle region. The result is the same either way, the choppiness doesn't affect the final result on the keyboard. As the keyboard eventually has to sample out a single color to choose from (which is equivalent to what you see on your bitmap).


Accessibility on Browse Page

#REF: #MOBILEAPPS-1513

 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.Ankit Goyal 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.You have signed the CLA already but the status is still pending? Let us recheck it.


Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Description
a new React Native project using the React Native CLI and Gluestack UI, along with other related dependencies. During the  building, I encountered a "JavaScript heap out of memory" error. However, after reloading, the error resolved. i get same error when i clone repo in my other  PC
CodeSandbox/Snack link
using react-native CLI
Steps to reproduce

create New  project with react-native CLI
add all depedency
add all gluestack component --all
just build app using react-native run-android

gluestack-ui Version
2
Platform

[ ] Expo
[X] React Native CLI
[ ] Next
[ ] Web
[ ] Android
[ ] iOS

Other Platform
No response
Additional Information

hi @KartikDevarde2601 thanks for reporting the issue. We will have a look.

hii @rajat693  i try with  expo  go it working fine  problem came when using bare-react-native

Hi @KartikDevarde2601, we attempted to debug the issue you reported, but everything seems to be working fine on our end. Could you please share a minimal codebase or GitHub repository that demonstrates the issue? This will help us better understand and address the problem.
Thank you!

Hey @KartikDevarde2601  We are closing this issue for now, if you still have any query please feel free to reopen it.

hii @rajat693 @sra1kumar-NULL  i really sorry for not active may be I just miss the email notification .  I will  the test that again and send you minimum codebase as soon as possible.


[Inventory] Disable inventory test for Barreleye/ Palmetto

These 2 systems are non MRW systems so the inventory wouldnt be populated.. so until Dev add the fix for it, please add to the skip list

Add tag in the tests/test_inventory.robot   file
Force Tags   inventory

Add in skip list file

-rw-rw-r-- 1 rango rango 2066 Mar 17 00:12 test_lists/skip_test   <--- DONT change here
-rw-rw-r-- 1 rango rango 2153 Mar 17 00:12 test_lists/skip_test_barreleye
-rw-rw-r-- 1 rango rango 2103 Mar 17 00:12 test_lists/skip_test_palmetto
-rw-rw-r-- 1 rango rango 2119 Mar 17 00:12 test_lists/skip_test_witherspoon

add this line in the files
-e inventory

Closing this as code is already pushed for it using https://github.com/openbmc/openbmc-test-automation/issues/441


Correction for raw affiliation MoISA, Univ Montpellier, CIRAD, CIHEAM-IAMM, INRAE, Institut Agro, IRD, Montpellier, France.

Correction needed for raw affiliation MoISA, Univ Montpellier, CIRAD, CIHEAM-IAMM, INRAE, Institut Agro, IRD, Montpellier, France.
raw_affiliation_name: MoISA, Univ Montpellier, CIRAD, CIHEAM-IAMM, INRAE, Institut Agro, IRD, Montpellier, France.
new_rors: 05kpkpg04;04abkkz03;051escj72;003vg9w96;05q3vnk25;03rnk6m14;0005r2j17;011xg1225
previous_rors: 05kpkpg04;04abkkz03;051escj72;003vg9w96;05q3vnk25;03rnk6m14;0005r2j17
works_examples: W4396746567;W4404906152
contact: 3cef65e89f511fc44e5e58ca44b82adc:6dcd8917bff7b361 @ supagro.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


Filter the headers when redirecting

Some headers should be removed when redirecting to a different domain:

Cookie
Authorization

@seanmonstar can I work on this? Rust beginner here :)

Definitely! All issues can always be worked on.

@seanmonstar yay. I'll jump in right away.

@seanmonstar I went through the code and I guess I'll need to call some headers.remove in this part of the client.rs - https://github.com/seanmonstar/reqwest/blob/master/src/client.rs#L308 after checking if we're being sent to a different domain. Is that okay?
Also, I'm wondering how we can write tests for this as the $HOST is always <IP_ADDRESS>:PORT. Any pointers on how I can proceed here? Thanks :)

Yes, definitely, headers.remove is the correct thing to do.
For the tests, I suppose we would just want to unit tests in client.rs. With the addition of proxies (from #30), we could easily setup some proxies that still connect to the localhost server while seeming like different domains...

Oh jeez, this is an enormous security hole. I can't believe reqwest was considered release-worth with this bug still open. :imp:


Update NL translation

Restored original Laravel format. Also begin all sentences with a capital (:attribute => :Attribute). Added few custom validation attributes.

Pff, why is this kind of styling mandatory...

Changed styling back, ready to merge.

Thank you


Update mod.xml to fix issue with chars

Fixes a bug with xml file having spaces at the start

Code wise looks good, but there seems to be some CICD issues


I am unclear where I am supposed to place my API key

Where does my API go in your script?

<script src="https://maps.googleapis.com/maps/api/js?libraries=places&key=xxxxxxxxxxx"></script>

is it safe to use this link in ionic app...i heard its apple store doesn't allow this. Please confirm i am using this in an ionic app and need to confirm.

Better to use the native google map SDK implementation in ionic with cordova as you can see here : https://ionicframework.com/docs/v2/native/google-maps/
and the instruction there : https://github.com/mapsplugin/cordova-plugin-googlemaps


Example of creating a user in Active Directory

This has been raised in a couple of issues and while people can probably piece together a solution I thought this might be handy to have in one space.

I'd be willing to help create some ActiveDirectory documentation as well, since it has its quirks compared to LDAP.
Would it make sense to maybe add a specific ActiveDirectory examples / docs?

@tastypackets yes, that would be fine. Thank you.

⚠ This issue has been locked due to age. If you have encountered a recent
problem that seems to be covered by this issue, please open a new issue.
Please include a minimal reproducible example
when opening a new issue.


curling the api endpoints results in 400

curl -v "http://localhost:8080/api/content?type=Article"
*   Trying ::1:8080...
* TCP_NODELAY set
* connect to ::1 port 8080 failed: Connection refused
*   Trying <IP_ADDRESS>:8080...
* TCP_NODELAY set
* Connected to localhost (<IP_ADDRESS>) port 8080 (#0)
> GET /api/content?type=Article HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.65.3
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 400 Bad Request
< Access-Control-Allow-Headers: Accept, Authorization, Content-Type
< Access-Control-Allow-Origin: *
< Cache-Control: max-age=2592000, public
< Etag: MTU2NzE4OTIyNA==
< Date: Fri, 30 Aug 2019 18:24:25 GMT
< Content-Length: 0
<
* Connection #0 to host localhost left intact

doing the same in any browser results in a dropped connection
Are there any headers missing I should be aware of? Because there is nothing in the documentation

I believe you're missing a char in your URL.
curl -v "http://localhost:8080/api/contents?type=Article"  ("contents" , plural, when no id param is set)
curl -v "http://localhost:8080/api/content?type=Article&id=1"  ("content", singular, when an id param is set)

Ok that works, thanks


Board Review: Azure Load Testing (GA)

Thank you for submitting this review request. Thorough review of your client library ensures that your APIs are consistent with the guidelines and the consumers of your client library have a consistently good experience when using Azure.
The Architecture Board reviews Track 2 libraries only. If your library does not meet this requirement, please reach out to Architecture Board before creating the issue.
Please reference our review process guidelines to understand what is being asked for in the issue template.
To ensure consistency, all Tier-1 languages (C#, TypeScript, Java, Python) will generally be reviewed together.  In expansive libraries, we will pair dynamic languages (Python, TypeScript) together, and strongly typed languages (C#, Java) together in separate meetings.
For Tier-2 languages (C, C++, Go, Android, iOS), the review will be on an as-needed basis.
Before submitting, ensure you adjust the title of the issue appropriately.
Note that the required material must be included before a meeting can be scheduled.
Contacts and Timeline

Responsible service team: Azure Load Testing
Main contacts<EMAIL_ADDRESS><EMAIL_ADDRESS>Expected code complete date: 11/04/2022
Expected release date: 11/30/2022

About the Service

Link to documentation introducing/describing the service: https://learn.microsoft.com/en-us/azure/load-testing/
Link to the service REST APIs:  https://github.com/Azure/azure-rest-api-specs/tree/main/specification/loadtestservice
Link to GitHub issue for previous review sessions, if applicable:  https://github.com/Azure/azure-sdk/issues/4476

About the client library

Name of the client library: Azure Load Testing
Languages for this review: .NET, Java, typescript, Python

Artifacts required (per language)
Please read through “API Review” section here to understand how these artifacts are generated. It is critical that these artifacts are present and are in the right format. If not, the language architects cannot review them with the SDK Team’s API review tool.
.NET

APIView Link: TODO
Link to Champion Scenarios/Quickstart samples: TODO

Java

APIView Link: TODO
Link to Champion Scenarios/Quickstart samples: TODO

Python

APIView Link: TODO
Link to Champion Scenarios/Quickstart samples: TODO

TypeScript

APIView Link: TODO
Link to Champion Scenarios/Quickstart samples: TODO

For all other languages, send a request to the Architecture Board to discuss the best format on individual basis.
Thank you!

@kyle-patterson The product team is based in India. Could you please help schedule this for the week of 11/7?

Drafted

Scheduled: Nov 7th 2022, 10:05AM - 12:00PM PST.

@ninallam We need the API view and Champion Scenario links adde to this issues ASAP if we want to hold the board review session early Monday morning next week.

Rescheduled to Nov 23rd from 9:05AM - 11AM PST.

Typescript PR - https://github.com/Azure/azure-sdk-for-js/pull/23842,
Typescript API View - https://apiview.dev/Assemblies/Review/a95ad4657f904f6485d61ff4b6aed23b

Java PR - https://github.com/Azure/azure-sdk-for-java/pull/31755/
Java API View - https://apiview.dev/Assemblies/Review/cd72e6a5038d48558489e0380645fecb
Java Samples - https://github.com/Harshan01/azure-sdk-for-java/tree/loadtestservice-ga/sdk/loadtestservice/azure-developer-loadtesting/src/samples

@ninallam Can you please add the other language API View's and Samples to this issue so the architects have time to review them before the session on the 23rd. Thank you.

API View:
C#: https://apiview.dev/Assemblies/Review/4200a804f382479bb4d2bb4a3323b8c7
Python: azure-developer-loadtesting - Created for PR #27274 - apiview.dev
PRs:
C#: GA SDK for Azure LoadTesting by NiveditJain · Pull Request #32268 · Azure/azure-sdk-for-net (github.com)
Python: GA SDK Azure LoadTesting by NiveditJain · Pull Request #27274 · Azure/azure-sdk-for-python (github.com)

Recording (MS INTERNAL ONLY)

Updated API View:
C#: https://apiview.dev/Assemblies/Review/4200a804f382479bb4d2bb4a3323b8c7
Java: https://apiview.dev/Assemblies/Review/cd72e6a5038d48558489e0380645fecb
Python: https://apiview.dev/Assemblies/Review/fc0755250d5e4c59b4b0a9e4d20dee53
JS RLC: https://apiview.dev/Assemblies/Review/528a55645b4746caa5618af352f9075e
Pull Requests:
C#: https://github.com/Azure/azure-sdk-for-net/pull/32268
Java: https://github.com/Azure/azure-sdk-for-java/pull/31755
Python:
https://github.com/Azure/azure-sdk-for-python/pull/27274
https://github.com/Azure/azure-sdk-for-python/pull/28417
JS RLC: https://github.com/Azure/azure-sdk-for-js/pull/23842


case studies form and browse all broken

eg. https://wiki.creativecommons.org/wiki/Special:BrowseData/Casestudy?_single
and when pulling from a single case study to display on pages like https://wiki.creativecommons.org/wiki/OER_Case_Studies

BrowseData is a Semantic MediaWiki extension. Semantic MediaWiki has been removed from the wiki, which means we cannot support that functionality in precisely the same way.
We can support similar functionality by linking to category pages.

I've updated the page to remove the broken markup. Sadly we cannot automatically restore the lost images.
I've updated the case study template so the individual pages render nicely again now.
Thank you for reporting this.


Thanks

Pat and the beanshell team,
I have been using beanshell since version 1.27. I am
testing the 2.0 beta.
I write to express my sincere thanks and appreciation
for a very fine product you have produced.  It is nothing
short of brilliant.
Please keep up the good work.
Ben
Reported by: *anonymous
Original Ticket: "beanshell/support-requests/1":https://sourceforge.net/p/beanshell/support-requests/1

Pat deserves this one :)