WIFI disconnected issue

Hi,
I used shadow demo as the template to develop a small application which works with the shadow document of one virtual device on my iot console. However, I encountered a problem is that after a period of time, the wifi connection will disconnect automatically. Because the error log is derived from lower layer,I don't understand what does that mean and how to fix it.
My board is ESP32 devkit, and the error log is shown as below:
......
I (2158684) wifi: state: run -> init (1c0)
I (2158694) wifi: pm stop, total sleep time:<PHONE_NUMBER> us /<PHONE_NUMBER> us

I (2158694) wifi: n:11 0, o:11 0, ap:255 255, sta:11 0, prof:1
I (2158694) WIFI: SYSTEM_EVENT_STA_DISCONNECTED: 200
I (2164684) wifi: bcn_timout,ap_probe_send_start
I (2165184) wifi: ap_probe_send over, resett wifi status to disassoc
I (2165184) wifi: state: init -> init (100)
12208 218235 [iot_thread] [INFO ][MQTT][2182350] (MQTT connection 0x3fff8880) UNSUBSCRIBE operation scheduled.
12209 218235 [iot_thread] [INFO ][MQTT][2182350] (MQTT connection 0x3fff8880, UNSUBSCRIBE operation 0x3ffd435c) Waiting for operation completion.
12210 218735 [iot_thread] [INFO ][MQTT][2187350] (MQTT connection 0x3fff8880, UNSUBSCRIBE operation 0x3ffd435c) Wait complete with result TIMEOUT.
12211 218735 [iot_thread] [ERROR][Shadow][2187350] Failed to unsubscribe from $aws/things/esp32/shadow/get/accepted, error TIMEOUT.
12212 218735 [iot_thread] [INFO ][MQTT][2187350] (MQTT connection 0x3fff8880) UNSUBSCRIBE operation scheduled.
12213 218735 [iot_thread] [INFO ][MQTT][2187350] (MQTT connection 0x3fff8880, UNSUBSCRIBE operation 0x3fffa9a8) Waiting for operation completion.
12214 219235 [iot_thread] [INFO ][MQTT][2192350] (MQTT connection 0x3fff8880, UNSUBSCRIBE operation 0x3fffa9a8) Wait complete with result TIMEOUT.
12215 219235 [iot_thread] [ERROR][Shadow][2192350] Failed to unsubscribe from $aws/things/esp32/shadow/get/rejected, error TIMEOUT.
12216 219235 [iot_thread] [INFO ][DEMO][2192350] finished the shadow operation
12217 219285 [iot_thread] [INFO ][MQTT][2192850] (MQTT connection 0x3fff8880) SUBSCRIBE operation scheduled.
12218 219285 [iot_thread] [INFO ][MQTT][2192850] (MQTT connection 0x3fff8880, SUBSCRIBE operation 0x3ffd435c) Waiting for operation completion.
12219 219785 [iot_thread] [INFO ][MQTT][2197850] (MQTT connection 0x3fff8880, SUBSCRIBE operation 0x3ffd435c) Wait complete with result TIMEOUT.
12220 219785 [iot_thread] [ERROR][Shadow][2197850] Failed to subscribe to $aws/things/esp32/shadow/get/accepted, error TIMEOUT.
12221 219785 [iot_thread] [INFO ][DEMO][2197850] finished the shadow operation
12222 219819 [iot_thread] [ERROR][MQTT][2198190] (MQTT connection 0x3fff8880) Failed to receive PINGRESP within 10000 ms.
12223 219819 [iot_thread] [WARN ][NET][2198190] Failed to close connection.
12224 219819 [iot_thread] [INFO ][MQTT][2198190] (MQTT connection 0x3fff8880) Network connection closed.
12225 219835 [iot_thread] [WARN ][MQTT][2198350] (MQTT connection 0x3fff8880) Attempt to use closed connection.
12226 219835 [iot_thread] [ERROR][MQTT][2198350] (MQTT connection 0x3fff8880) New operation record cannot be created for a closed connection
12227 219835 [iot_thread] [ERROR][Shadow][2198350] Failed to subscribe to $aws/things/esp32/shadow/get/accepted, error NETWORK ERROR.
12228 219835 [iot_thread] [INFO ][DEMO][2198350] finished the shadow operation
12229 219885 [iot_thread] [WARN ][MQTT][2198850] (MQTT connection 0x3fff8880) Attempt to use closed connection.
12230 219885 [iot_thread] [ERROR][MQTT][2198850] (MQTT connection 0x3fff8880) New operation record cannot be created for a closed connection
12231 219885 [iot_thread] [ERROR][Shadow][2198850] Failed to subscribe to $aws/things/esp32/shadow/get/accepted, error NETWORK ERROR.
12232 219885 [iot_thread] [INFO ][DEMO][2198850] finished the shadow operation
.....

Hi,
WIFI: SYSTEM_EVENT_STA_DISCONNECTED: 200 is for beacon timeout from the ESP-IDF programming guide. This means the device lost continuous 60 beacons from access point.
This could be due to a jittery network or access point or from device itself such as due to a memory leak issue.
Does the disconnect happens at random timing from the start or exactly after a constant period of time. If the issue occurs always at the same time, then it could be worthwhile to print the available heap size at the time of disconnection. You can use FreeRTOS API xPortGetFreeHeapSize() to print the free heap size and  xPortGetMinimumEverFreeHeapSize()  to know minimum free heap size ever from start.
Also, if you can capture the packets over WIFI link, that will help to isolate the issue to either access point or the device.

Hi,
Thank you very much for your reply.
I tested the program using the functions you gave me, and it turns out the program itself is ok, the memory wasn't leaking.
I think the internet connection is the main problem because the disconnecting time is not fixed, sometimes it lasts a very long period, but sometimes it just disconnects right after the program start running.
By the way, is there any methods that I can use to change the timeout period of the mqtt subscribe operation? I am in China so sometimes I cannot connect to AWS server.
Thank you !

You can use IotMqtt_TimedSubscribe()  to pass a timeout value in Milliseconds to the subscribe operation.

Hi sheldon123z,
Closing this issue now , please reopen it if you still have issues.


Update our rollup version

Updates to rollup >=4.22.4, which should help reduce our vulnerability to DOM clobbering attacks
My internet connection is astonishingly crummy right now and I get like 5 kpbs so I can't successfully pull and build containers; can someone clone this branch and try and install SocialPredict?

Let me try this today as my internet connection has stabilised

update: yes, works on dev


fix: generate variants on fails base64 image

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[x] Bugfix
[ ] Feature
[ ] Refactoring

Context

[x] Fix failed to load image https://github.com/kodadot/nft-gallery/issues/9559#issuecomment-1968954266. This PR will trigger "new variants" again if base64 on the image only returns 'data:,'

Did your issue had any of the "$" label on it?

[x] My DOT address: Payout

Screenshot 📸

[ ] My fix has changed UI

appeared only once, then i cleared cache and it no longer showed, i hope its fixed, ty @preschian
@yangwao please include this in release

seems it was worth to wait

Thanks!
pay 30 usd


Is pygame the way to go?

Pygame was ok to get started.  Investigate whether there are other (better?) audio libraries that we can use.


Local storage getting eaten up on compute nodes

Find out what is taking space on compute nodes get rid of it, remove it, etc.

Weka saves traces (i.e. logs of what happened or went wrong in /opt/weka/traces).  By default the storage takes up a lot of space and it is configured to leave only 3 GB free space.
Went through and reconfigured the storage to only save 20 GB of data and allow for 10 GB of free space by default.
Command to be run on one of the compute nodes.
weka debug traces retention set --server-max 20GiB --client-max 20GiB --server-ensure-free 10GiB --client-ensure-free 10GiB


[Feature Request] Sort unread chapters separately at top of list when sort by unread is selected

Why/User Benefit/User Problem
In the case of large categories, having to scroll to the very bottom of the list to see the unread series is rather annoying.
What/Requirements
I think it was even doing it before the most recent update 2.1.3, though I'm not sure how it changed. When sorting within a category by Unread the unread chapters are sorted among themselves at the bottom of the list, and the rest of the list is default sorting of some kind. Tachiyomi's current behavior is to sort the unread chapters to the top, and then sort within that grouping. I find this far more sensible, and more convenient.

https://github.com/CarlosEsco/Neko/issues/278


Fix Elasticsearch example

Provide a description of what has been changed
Checklist

[x] Commits are signed with Developer Certificate of Origin (DCO)

Fixes #

nice catch!
Could you update other versions as well? I think that this happens on all of them

nice catch! Could you update other versions as well? I think that this happens on all of them

Sure, did it for 2.5+


Avoid opening multiple modals

I have a button in a blade file that is triggering an event on a livewire that is triggering the opening of the modal.
If I click multiple times, the modal will be opened 2-3 times.
Is there a way to avoid the opening of the same modal with the same parameters?

If the modal parameters are the same only one modal should open, for example, if I execute this 10 times in a row only one modal will open:
Livewire.emit("openModal", "edit-user", {"edit":"ad961710-9120-4099-9a7c-11e7e6ca7fec"});

I've this:
onclick="Livewire.emit('openModal', 'admin.master-search')"
and clicking 3 times (quickly) on the same button is opening me 3 modals, only one is opened at a time but if i close one, the other one is displayed.
I tried to edit this line https://github.com/livewire-ui/modal/blob/0fe7036574868758f328e2266ecf27d3b30b7555/src/Modal.php#L33 by adding a check if $id is already in the component array and it is ok, only one modal is opened.
Can it be the fix?

I'm unable to replicate this issue, I even did a network throttle and clicked the button 10 times.
$this->components[$id] already 'checks' if the id is already in the component array as it will simply overwrite the component with the same ID so only one can exist at any given time.
If I check the DOM I can only see one component as well:

If you have 2-3 modals in the DOM this means some value is unique every time you click the button which results in a different component id.

Hello Phil,
here is a video of the issue, hope it will help.
https://user-images.githubusercontent.com/179987/135866850-35593d97-acd1-4de9-b26d-9059b7402519.mov

Thanks for the video. Unfortunately, without any actual code, I'm unable to replicate this issue. If you can share some existing code you are using in the video, I can take another look.

Strange, this is what is triggering the opening:
<button wire:click="openNewBooking" class="ml-4 inline-block relative bg-rdv-blue p-1 rounded-full text-white hover:text-gray-100 hover:bg-rdv-blueribbon focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-rdv-blue">             {{ trans('rdv.nouveau_rendezvous') }}             <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">                 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"/>             </svg>         </button>
livewire:
public function openNewBooking(){         $this->isLoading=true;         $this->emit('openModal', 'admin.booking.create');     }


Improve 'usage' and fix error handling for unknown IDs

Fixes #1520

I had a hard time understanding what a "resource" is, since really it just has to be the word "benchmark(s)", which is optional. So I made the "usage" more explicit, and used the not-very-official POSIX specification for the args: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html

Seems like needing to specify "benchmark" may have been leftover from some plan for kubectl-mtb to run things other than benchmarks.  Should we just remove that arg all together since it's optional anyway?

Made filterBenchmarks return an error if the user specified an ID that didn't exist. Without this check, you get a nil element in the variable benchmark which causes segfaults elsewhere in the code.

/ok-to-test

/lgtm
/approved


xarray v 2023.9.0: ValueError: unable to infer dtype on variable 'time'; xarray cannot serialize arbitrary Python objects

What happened?
I tried to save an xarray dataset with datetimes as data for its time dimension to a nc file with to_netcdf and got the error ValueError: unable to infer dtype on variable 'time'; xarray cannot serialize arbitrary Python objects.
What did you expect to happen?
I expected xarray to automatically detect these were datetimes, and convert them to whatever format xarray likes to work with internally to dump it into a CF compatible file, following what is described at https://github.com/pydata/xarray/issues/2512 .
Minimal Complete Verifiable Example
import xarray as xr
import datetime

times = [datetime.datetime(2024, 1, 1, 1, 1, 1, tzinfo=datetime.timezone.utc), datetime.datetime(2024, 1, 1, 1, 1, 2, tzinfo=datetime.timezone.utc)]

data = [1, 2]

xr_result = xr.Dataset(
    {
        'time':
        xr.DataArray(dims=["time"],
                     data=times,
                     attrs={
                         "standard_name": "time",
                     }),
        #
        'data':
        xr.DataArray(dims=["time"],
                     data=data,
                     attrs={
                         "_FillValue": "NaN",
                         "standard_name": "some_data",
                     }),
    }
)

xr_result.to_netcdf("test.nc")

MVCE confirmation

[ ] Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
[X] Complete example — the example is self-contained, including all data and the text of any traceback.
[ ] Verifiable example — the example copy & pastes into an IPython prompt or Binder notebook, returning the result.
[ ] New issue — a search of GitHub Issues suggests this is not a duplicate.
[ ] Recent environment — the issue occurs with the latest version of xarray and its dependencies.

Relevant log output
No response
Anything else we need to know?

The issue already manifests in the DataArray (Variable) creation. The given list of timezone aware datetimes is converted into pandas._libs.tslibs.timestamps.Timestamp (wrapped as numpy 'O'). This happens in https://github.com/pydata/xarray/blob/c9ba2be2690564594a89eb93fb5d5c4ae7a9253c/xarray/core/variable.py#L213
In the further course there is no way of conversion to some numpy datetime64[ns] or similar to correctly serialize.
Same happens if you wrap your data as numpy array. This only works when stripping the tzinfo from the array (either by not adding tzinfo in the first place or casting to a proper type):
times = np.array(times).astype("<M8[ns]")
I'm not versed in that special part of DataArray/Variable creation with timezone aware datetimes and how to properly solve that issue.


Add support for nested types

I.e. given two derived structs Foo and Bar on which Foo uses Bar, Foo's schema should use Bar's schema to be derived.

HI @jorgecarleitao great work with arrow2. I wanted to use it with my existing structures so I ended up modifying this crate to add support for nested structs, nested lists, and custom types.
I followed a serde-like trait-based approach, but did not use serde itself.
If you're interested in taking a look, here's a modification of your example.
I may missed some of the conventions, and the code probably needs a lot of cleanup and documentation. If you think this functionality will be useful either in this crate, or elsewhere I'd be happy to incorporate the appropriate feedback, and integrate or publish it. Thanks!

I went through it and it looks freaking awesome!! Amazing work, @ncpenke !
Let me know what you prefer. For now, I invite you to have access to this repo. :)
One idea would be to PR and merge it here so that we can work on it together here and publish this to arrow2-derive in crates.io.

Thank you @jorgecarleitao, working on this together would be awesome!
Here's PR https://github.com/DataEngineeringLabs/arrow2-derive/pull/10. I'll push one more commit to the PR to update the README/docs, and to tweak the top-level API.
I'll also open tickets for some remaining work (union, testing, i64 offset, etc).

Closed by #10


hideControls option; possibility to hide them on load

Would be great if the hideControls would also make sure that the controls are initially invisible as well. Or an extra option for that maybe.
Thanks for considering 👍

For other people who are looking to achieve this behaviour: I've worked around it atm like this:
JS:
`
$('.plyr').on('ready', function(event) {
    $(this).addClass('plyr--init-hide-controls');

}).on('play', function(event) {

    $(this).removeClass('plyr--init-hide-controls');

});

`
and CSS:
.plyr--init-hide-controls .plyr__controls {     opacity: 0; }

Actually; this is a far better solution (CSS only):
    .plyr--stopped .plyr__controls {

        opacity: 0;

    }

I think this one can be closed now. Good idea with the CSS class hook usage 👍

I would add pointer-events: none; as well so you can click on controls even when they're invisible:
.plyr--stopped .plyr__controls {
  opacity: 0;
  pointer-events: none;
}

I didn't like having controls hidden always when stopped. I just wanted them hidden until they started playing the video. So my final implementation hides the controls by default on stopped, but then allows you to see the controls as normal (when stopped and on hover) after playing the video:
js
plyr.setup();
$('.plyr').on('play', function(event) {
  $(this).addClass('plyr--init-play');
});

scss
.plyr--stopped {
  .plyr__controls {
    opacity: 0;
    pointer-events: none;
  }
  &.plyr--init-play {
    .plyr__controls {
      opacity: 1;
      pointer-events: inherit;
    }
  }
}


Sani/contextmenugroupicon

Description of Change

Todos

[x] I have tested on an Android device.
[x] I have tested on an iOS device.
[ ] I have supported accessibility

@SanderNico , skal denne merges? :)

@SanderNico  , skal denne merges? :)

@Vetle444 @haavamoa denne hadde jeg glemt 😅  Tenkte det! Skal ta den


missing published extension

publish-vscode-extension Version
Operating System

v1.1.0
Ubuntu  20.04.5  LTS

Description
Hi Leo,
I can't publish my extension to OpenVSX.
I'm not sure if it's an issue with your extension or OpenVSX.
The publishing was successful but the extension is missing on OpenVSX.
##[debug]Evaluating condition for step: 'Publish to Open VSX Registry'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Publish to Open VSX Registry
##[debug]Loading inputs
##[debug]Evaluating: secrets.OPEN_VSX_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'OPEN_VSX_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run HaaLeo/publish-vscode-extension@v1
Specifically, running GitHub Action<EMAIL_ADDRESS>##[debug]Start action with options="{"pat":"***","registryUrl":"https://open-vsx.org","packagePath":"./","yarn":false,"dryRun":false,"noVerify":false,"preRelease":false}".
::group::Package the Extension
Package the Extension
::group::Publish the Extension
Publish the Extension
  ::endgroup::
##[debug]Node Action run completed with exit code 0
##[debug]Set output vsixPath = explicit-folding-0.23.0.vsix
##[debug]Finishing: Publish to Open VSX Registry

Is it possible to output the logs of the command?

I was able to publish the extension and I did get the log:

🚀  Published zokugun.explicit-folding v0.23.1

I just wonder why the action didn't fail if there were a error somewhere...

Hi @daiyam thx for reporting this bug. The action should definitely fail when errors occur.
Without being able to reproduce the behavior consistently this will be hard to debug. Can you reproduce this one or it just went away the next try?

I tried to publish my extension v0.23.0 3 times:

1: I stopped the workflow since it was running for already 6 minutes
2: 5 minutes later, I re-run the workflow, the action takes 100s but there is no output and is marked successful.
3: 12 minutes later, I re-run the workflow, the action takes 0s still no output and still successful.
4: 3h30 later, I have a new minor version, it publish without any issue...

So I can't reproduce the error. Sorry. But I don't think the issue is due to your extension.
You might just want to capture the output and verify if it match the expect output...

The same happens to me, the ovsx CLI output is a success message, but no new version is published, so I guess the issue lies in their CLI

My output:
Run HaaLeo/publish-vscode-extension@v1
  with:
    pat: ***
    extensionFile: color-picker-universal.vsix
    registryUrl: https://open-vsx.org
    packagePath: ./
    yarn: false
    dryRun: false
    noVerify: false
    preRelease: false
Specifically, running GitHub Action HaaLeo/publish-vscode-extension@v1.[2](https://github.com/jeronimoek/color-picker-universal/actions/runs/4200887871/jobs/7287390587#step:9:2).0.
Package the Extension
  The extension was already packaged. Skip packaging.
Publish the Extension
  🚀  Published JeronimoEkerdt.color-picker-universal v1.[7](https://github.com/jeronimoek/color-picker-universal/actions/runs/4200887871/jobs/7287390587#step:9:7).1

Never mind, I just checked again, and after 1 hour approx. the extension was suddenly published. Looks like ovsx servers are struggling

As it seems to be an upstream issue I will mark it as "wontfix". If you find any hints which suggest this is a problem of this action feel free to reopen this issue.


Add query remarks

Query remarks are a useful option to get information about the context of the query. It is defined in https://github.com/metabase/metabase/blob/dc676e1e649249c4ddb2ff9ee3752682596b0f23/src/metabase/query_processor/util.clj#L54 and then overriden by the driver, e.g. Redshift https://github.com/metabase/metabase/blob/dc676e1e649249c4ddb2ff9ee3752682596b0f23/modules/drivers/redshift/src/metabase/driver/redshift.clj#L312

Is there any particular information you believe should be passed? The extra information passed by Redshift doesn't seem to be relevant for us.

I was thinking about the same information as redshift (dashboard, user, chart and filter being used). Why aren’t the redshift ones relevant?

If I use the same method than Redshift the values are mostly null. Are those supposed to be filled in when performing particular operations?

Never mind, I was able to generate some chart ID and dashboard ID.


Remove code about PS_Ready

Questions
Answers

Description?
Remove code about PS_Ready

Type?
refacto

BC breaks?
no

Deprecations?
no

Fixed ticket?
N/A

How to test?
N/A

Thank you @Progi1984


[zh] Accurate explanation for the calculation of number of failures in Job

Apply PR #33536 corrections to Chinese content.
signed-off-by: X723166587<EMAIL_ADDRESS>

If you are referring a PR or issue, make sure you use #33536 format instead of just the number.

#33536

/label tide/merge-method-squash

/lgtm
/approve


RPiHQ vs Zwo

Hi all
Before ordering new cam , I wonder if sensitivity of RPIHQ is enaught for AllSky.
Is it possible to setup exposure to 10s or 20s , like for Zwo cam ?
l'm interrested to see some AllSky pictures with this
Thanks for your feedback
Pascal

My setup is with the RPIHQ with the red filter removed.
Site is at http://www.dentonknifeworks.com/allsky/

Thank you !

How did you manage to remove the red filter? I did remove the IR-filter and now all my pictures are in deep red!
iPhone

Am 26.12.2020 um 19:10 schrieb Dentonknifeworks<EMAIL_ADDRESS>
My setup is with the RPIHQ with the red filter removed.
Site is at http://www.dentonknifeworks.com/allsky/
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

http://www.dentonknifeworks.com/HQpiCam.html
My Settings are on this page that I use the trees will still be red but not bad.


Debug doesn't work from launch.json, but works from button on the panel

Xmake Version
2.9.3
Operating System Version and Architecture
Windows 11 23H2 22631.3880
Describe Bug
Debug doesn't work from launch.json, but works from button on the panel.
This reproduced with MinGW only. With MSVC it works fine in both ways.
See the .gif where I:

Started debug with xmake using launch.json, but it failed
Then I started debug with xmake via button on the panel. In this case, debug started successfully

NOTE: I am also able to start debug via cpptools vscode extension. So there are no problem with .exe which I want to debug. The problem here is handling xmake debug config in launch.json.
Expected Behavior
Debug session with xmake configuration from launch.json starts fine.
Project Configuration
Basic xmake C++ project. Can be even without Qt.
xmake f -p mingw -m debug
xmake
launch.json:
{
    "version": "0.2.0",
    "configurations":
    [
        {
            "name": "xmake",
            "type": "xmake",
            "request": "launch",
            "target": "qt-app"
        }
    ]
}

Additional Information and Error Logs
DEBUG CONSOLE:
=thread-group-added,id="i1"
GNU gdb (GDB for MinGW-W64 x86_64, built by Brecht Sanders, r1) 14.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
[New Thread 4144.0xca0]
[New Thread 4144.0x22dc]
[New Thread 4144.0x1098]
[Thread 4144.0x1098 exited with code<PHONE_NUMBER>]
[Thread 4144.0x22dc exited with code<PHONE_NUMBER>]
[Thread 4144.0x22b0 exited with code<PHONE_NUMBER>]
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". During startup program exited with code 0xc0000135.
The program 'd:\dev\cpp\qt6-example\build\qt-app.exe' has exited with code 0 (0x00000000).

TERMINAL:
PS D:\dev\cpp\qt6-example>  & 'c:\Users\Y\.vscode\extensions\ms-vscode.cpptools-1.21.3-win32-x64\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-uv3xm3uu.3if' '--stdout=Microsoft-MIEngine-Out-fblpadg0.kry' '--stderr=Microsoft-MIEngine-Error-zcpj40gi.o20' '--pid=Microsoft-MIEngine-Pid-31dqf3uo.isy' '--dbgExe=C:\Program Files\mydevtools\MinGW-w64\bin\gdb.exe' '--interpreter=mi

xmake-vscode does not use launch.json, it will generate it and pass to debugger. It is not a bug.
if you want to custom some launch configs, you should use xmake.customDebugConfig
https://github.com/xmake-io/xmake-vscode/issues/77
https://github.com/xmake-io/xmake-vscode/issues/246


feat: adding the ability to not fail if the file is not found

This PR resolves issue #21 by adding a new, optional input called fail-on-file-not-found
When fail-on-file-not-found is not present, or set to true the action behaves the way it did prior to this change.
When fail-on-file-not-found is set to false the action will gracefully exit without failing the workflow.

LGTM!


Broken typescript typing in fela-4.2.6

Version: 4.2.6
Environment: Both
Type: Bug

Description
Typescript typing for IRenderer.renderRule broken in this commit: https://github.com/rofrischmann/fela/commit/566401158e092989b951e69bb655891872071a73#commitcomment-21166401
Steps to reproduce
Try to compile this typescript code:
import * as Fela from 'fela';
const renderer = Fela.createRenderer();
const clazz: string = renderer.renderRule(rule, props);
//return value of renderRule in 4.2.6 is void, not string

Expected Behavior
no compile errors in typescript
Actual Behavior
compile errors in typescript: Type 'void' is not assignable to type 'string'

Feel free to send a PR to fix it

I modified my https://github.com/PavelPZ/fela fork.
Could you please merge once more? Or new PR is necessary?

Oh, my bad. We already got it merged. Should be pushed next days.


How can I add one more member node and orion node in docker template ?

Hi , I wanna create a one more backup node on member1 and orion1 . Those backup are sharing same key and config ,
here is my config file
member1backorion:
<< : *orion-def
environment:
- ORION_OTHERNODES=http://member2orion:8080/,http://member3orion:8080/,http://member1orion:8080/
- ORION_NODEURL=http://member1backorion:8080
- ORION_CLIENTURL=http://member1backorion:8888
- LOG4J_CONFIGURATION_FILE=/config/log-config.xml
volumes:
- ./config/orion/orion.conf:/config/orion.conf
- ./config/orion/networkFiles/orion1:/keys/
- ./logs/orion:/var/log/
- ./config/orion/log-config.xml:/config/log-config.xml
networks:
quorum-dev-quickstart:
ipv4_address: <IP_ADDRESS>
member1backbesu:
<< : *besu-def
entrypoint:
- /bin/bash
- -c
- |
while [ ! -f "/opt/besu/public-keys/bootnode_pubkey" ]; do sleep 5; done ;
/opt/besu/bin/besu
--config-file=/config/config.toml
--p2p-host=$$(hostname -i)
--genesis-file=/config/genesis.json
--node-private-key-file=/opt/besu/keys/key
--min-gas-price=0
--privacy-enabled
--privacy-url=http://member1backorion:8888
--privacy-public-key-file=/config/orion/orion.pub
--privacy-onchain-groups-enabled=${PRIVACY_ONCHAIN_GROUPS_ENABLED:-false}
--rpc-http-api=EEA,WEB3,ETH,NET,PRIV,PERM,${BESU_CONS_API:-IBFT}
--rpc-ws-api=EEA,WEB3,ETH,NET,PRIV,PERM,${BESU_CONS_API:-IBFT} ;
volumes:
- public-keys:/opt/besu/public-keys/
- ./config/besu/config.toml:/config/config.toml
- ./config/besu/permissions_config.toml:/config/permissions_config.toml
- ./config/besu/log-config.xml:/config/log-config.xml
- ./logs/besu:/var/log/
- ./config/besu/${BESU_CONS_ALGO:-ibft2}Genesis.json:/config/genesis.json
- ./config/besu/networkFiles/member1/keys:/opt/besu/keys
- ./config/orion/networkFiles/orion1/nodeKey.pub:/config/orion/orion.pub
depends_on:
- validator1
- member1backorion
ports:
- 20010:8545/tcp
- 20011:8546/tcp
networks:
quorum-dev-quickstart:
ipv4_address: <IP_ADDRESS>
But when I shoot a command resume.sh then it report a error when start.
Beside that how can I add the member1backorion to the node-whitelist ?
Thanks
DaDa

Hello @DavidSunGoldhub
What is the error that you see?
To add another node edit the compose file and add them in there. You will likely need to create new keys for both Orion and Besu and then run ./run.sh, and then you can stop.sh and resume.sh
To add the Besu node:
Do you mean host-whitelist - if so that is set to * and doesn't need to be changed. https://github.com/ConsenSys/quorum-dev-quickstart/blob/master/templates/besu/config/besu/config.toml#L4
If you are running permissions, you can add nodes to an existing network like so: https://besu.hyperledger.org/en/stable/Tutorials/Permissioning/Create-Permissioned-Network/#8-add-enode-urls-for-nodes-to-permissions-configuration-file
To add the Orion node:
The ORION_OTHERNODES pointing to the other 2 nodes should take care of, Alternatively you can use the APIs
A privacy group is also a good option for a group of Orion nodes. https://docs.orion.consensys.net/en/latest/Concepts/Privacy-Groups/
And if you wanted to run Orion in HA https://docs.orion.consensys.net/en/latest/HowTo/High-Availability/
Cheers

Thanks for your help . please close this case.


Todo: Lockdown except only for tier 0 members

There should just be a way to mute users without a role, since Tier 0 doesn't have a role.

Yes I'm aware, I just need to do it, which is what this issue exists to remind me of

Shelving for now, as the use-case never really emerged again.


POST pg/columns throws 500

This is the code that i'm using to poke the POST endpoint for columns
curl --location --request POST 'localhost:8000/pg/columns' \
--header 'x-connection-encrypted: U2FsdGVkX19kzsnMCPnxnFX52fPxwv6VFR3s3H4gvkDpDlJgf6wut+ylfvicB902wOcbLET39WTrvh4oUmip6xshgm3x39Rq3x1uUhGNPMLdediIPwKlScqA7aqjufNxmYttetfC6h8V93E5BpaOWtmOH06ty4JKdkeUYGpPoR0=' \
--header 'apikey: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTU5NTQ3Njg3MiwiZXhwIjoyNTQyMTYxNjcyLCJhdWQiOiIiLCJzdWIiOiIiLCJyb2xlIjoicG9zdGdyZXMifQ.7wwVEyU4OFEWyoezDt6ud3cDQ-dbG3PlghGTCu8czz8' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
    "tableId": 16625,
    "name": "col_1",
    "type": "int4",
    "comment": "asd"
}'

Is this on develop? I recently changed all fields to be snake_case, so you'll need to use table_id instead of tableId.

Ahh okay, lemme pull in develop and try this again!

Okay just tested - alls good! Have written a helper function on the FE to parse all the payload to pg-api as snake case too. Thanks so much for the heads up Bobbie!

Quick thought though - perhaps the errors coming back from the API could be improved too, perhaps throw a 422 instead of a 500

Quick thought though - perhaps the errors coming back from the API could be improved too, perhaps throw a 422 instead of a 500

Noted @joshenlim, I'm planning to turn pg-api into an API-first design, which is ongoing in #36. You'll be able to see the OpenAPI docs in https://supabase.github.io/pg-api (it's currently the old one) once it's merged, which includes error response information. I might need your feedback for polishing it. :)
Anyway, 500 would mean "it's not you, it's on us, please report this as a bug".


Add support for RDF-Patch format

Related to #86, we're discussing in Apache Marmotta if the marmotta-util-rdfpatch could be of the interest of the project.
The official model is implemented for Sesame 2.7.x, but there is already an unofficial fork to RDF4J 2.0M2 (Marmotta plans to migrate to RDF4J in the next release).
I'd like to assert that both patch technologies, LDPatch and RDF-Patch, are very similar technologies. I do not want to discuss here what's better. But support for both would not introduce any conflict, but just more freedom to the users.
Therefore the Apache Marmotta community would be happy to contribute the module upstream.

Duplicates #193.


successful hyper rm reports error

➜  ~ hyper ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                      PORTS               NAMES                    PUBLIC IP
885006fe63b7        docker              "docker-entrypoint.sh"   21 minutes ago      Exited (0) 35 seconds ago                       docker
a6bc6d75475d        docker              "docker-entrypoint.sh"   27 minutes ago      Exited (0) 21 minutes ago                       big_swartz
14a47e722d4d        docker              "docker-entrypoint.sh"   28 minutes ago      Exited (0) 27 minutes ago                       gigantic_blackwell
a9b4c4b0f86d        ubuntu              "/bin/bash"              29 minutes ago      Exited (0) 28 minutes ago                       agitated_bartik
1a4aa2c4d845        ubuntu              "/bin/bash"              29 minutes ago      Exited (0) 29 minutes ago                       reverent_chandrasekhar

➜  ~ hyper rm 1a4aa2c4d845 a9b4c4b0f86d 14a47e722d4d a6bc6d75475d 885006fe63b7
Error response from daemon: No such container: 1a4aa2c4d845
Error response from daemon: No such container: a9b4c4b0f86d
Error response from daemon: No such container: 14a47e722d4d
Error response from daemon: No such container: a6bc6d75475d
Error response from daemon: No such container: 885006fe63b7

reopen this if you encounter this again.
thanks.


[Bug]: For goa-dropdown without native property, using keyboard to make a selection, SPACE key should not make selection or close

Describe the bug
This is a derivate issue form https://github.com/GovAlta/ui-components/issues/1237
it stated when using keyboard to control the dropdown space key should not make selection or close dropdown
Provide Code
TS Code
import { Component } from "@angular/core";
import { FormControl } from '@angular/forms';

@Component({
  selector: "abgov-styles",
  templateUrl: "./bug1237Page.component.html",
})
export class Bug1237PageComponent {
  public options = [
    { value: '', label: '' },
    { value: 'opt1', label: 'Option 1' },
    { value: 'opt2', label: 'Option 2' },
    { value: 'opt3', label: 'Option 3' },
    { value: 'opt4', label: 'Option 4' },
  ];

  public formControlNonNative = new FormControl<string | null>(null);

  constructor() {}

  ngOnInit(): void {

    this.formControlNonNative.valueChanges.subscribe((value) => {
      console.log(`formControlNonNative Received value: ${value}`);
      if (!value) {
        return;
      }
    });
  }
}

Html Code
  <goa-form-item label="Dropdown Non Native">
    <goa-dropdown
      goaValue
      [formControl]="formControlNonNative"
      [value]="formControlNonNative.value"
      id="dropdown-non-native"
      name='dropdown-non-native'
    >
      <goa-dropdown-item
        *ngFor="let opt of options"
        [value]="opt.value"
        [label]="opt.label"
      ></goa-dropdown-item>
    </goa-dropdown>
  </goa-form-item>

To Reproduce
using keyboard to control the dropdown,
when value is select using key up and key down
press SPACE key,
Expect, No action should happen, the popover should not close nor the value should select
Actual. Option is select, Popover is closed
Relevant console log output
No response
What browsers are you seeing the problem on?
No response
Additional context
No response

Closing, as we don't actually care what space is doing, so long as the enter key works as expected, space is also allowed to act in that manner as well.


Refactor global id module

Pull Request Test Coverage Report for Build 148612227

5 of 5 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.07%) to 96.61%

Totals

Change from base Build 148611823:
-0.07%

Covered Lines:
138

Relevant Lines:
140

💛  - Coveralls

Pull Request Test Coverage Report for Build 148612227
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

5 of 5 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.08%) to 96.61%

Totals

Change from base Build 148611823:
-0.08%

Covered Lines:
138

Relevant Lines:
140

💛  - Coveralls


Add Firefox addon to the Firefox explore site

https://addons.mozilla.org/en-US/firefox/search/?platform=mac&q=github+profile+fluency

There is no Firefox version of the extension... sorry :(

@KyroChi Have you taken a look at Firefox Quantum yet? I wonder if the addon API has improved enough that you would want to make d9d0ab92db4edbc7de8bead2962b8f2370b03a58 work again. 😀

@aleclarson I have not, did not realize they had updated the API! I will take a look when I have some free time and see if the development is less frustrating this time around :)


Short solution needed: "How to install ufw on centos 7" (ufw)

Please help us write most modern and shortest code solution for this issue:
How to install ufw on centos 7 (technology: ufw)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments to make solution explained.
Link to this issue in comments of pull request.

How to install ufw on Centos CENTOS_VERSION


[hmac, testutils] Refactor testutils to return status_t for all hmac

Description
No response

estimate range: 2 - 4
@engdoreis please correct me if the estimate is not accurate :)

Hi @cindychip there's a PR https://github.com/lowRISC/opentitan/pull/17626 waiting for CI that will close this issue, so we don't need to estimate it :)


simplify AMI publish name

No need for github sha, is part of the tags
No need for arch its already in there as part of ec2
No need for character substitution, we no longer use + signs in
versions

Signed-off-by: Itxaka<EMAIL_ADDRESS>

no need to expend cpu cycles on tests for this


GStreamerMediaPlayer users linear volume instead of cubic

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:
As specified when setting volume in GStreamer ( https://gstreamer.freedesktop.org/documentation/audio/gststreamvolume.html?gi-language=c#gststreamvolume-page ) the inputted value should be converted from cubic to linear. If this is not done, a "slider" will not sound like it is equally increasing in volume. This also stops very low volumes from playing softly. If someone is attempting to play music at bedtime at 5% volume (0.05) it effectively sounds like 37% of maximum.
What is the expected behavior?
If you implement the SDK to have more granularity in the volume controls, allowing for percentages like 5%, it should play the music very softly. Also, if you increase the volume from 10% to 20% the user should experience the same amount of increase as from 60% to 70%. If the UI is implemented as a volume slider, it should sound like the volume is constantly increasing as the user constantly increases the slider.
What behavior are you observing?
You hear an inverse log scaled increase. The difference between 10% and 20% is far greater than the increase between 60% and 70% (which is barely noticeable). Also very small percentages are still very loud.
Provide the steps to reproduce the issue, if applicable:
set a channel volume to 1 (1%, not 10%) and notice how it is still audible. 1% volume should be very hard to hear.
I fixed this in code and tested using available GStreamer routines you can find here: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/blob/1.0/gst-libs/gst/audio/streamvolume.h . I attached my git diff files (basically just a 2 line change to the MediaPlayer.cpp to covert the audio scaling)
MediaPlayer.cmake.patch.txt
MediaPlayer.cpp.patch.txt
Tell us about your environment:

What version of the AVS Device SDK are you using?
  <1.24.0>

Tell us what hardware you're using:

[x] Desktop / Laptop
[ ] Raspberry Pi
[ ] Other - tell us more:

Tell us about your OS (Type & version):

[x] Linux
[ ] MacOS
[ ] Raspbian Stretch
[ ] Raspbian Jessy
[ ] Other - tell us more:

found this which does a better job of explaining the problem:
https://www.dr-lex.be/info-stuff/volumecontrols.html

Hello @brett-lynnes,
Thank you for bringing this issue to our attention. A formal fix for this issue is being investigated internally.


How to do a right click context menu on the connection links

I need to create conditions on the links between nodes.
Do you already have such functionality?
If not, how can I add a right-click context menu on a link and not just have the delete option?
I am using it to design a workflow and the "exported" JSON is used to update the database.
I want to somehow link multiple conditions to a link and have it exported as part of the node's data property.

View:

https://github.com/jerosoler/Drawflow/issues/523
https://github.com/jerosoler/Drawflow/issues/390


DDC mock method tearoffs do not work dynamically

Consider the following:
abstract class A {
  bar(int x);
}

class C implements A {
  foo(int x);

  noSuchMethod(i) {
    print('noSuchMethod memberName: ${i.memberName}, isGetter: ${i.isGetter}');
    return 42;
  }
}

main() {
  dynamic c = new C();

  c.foo('hi'); // works because param type signature is not generated.

  var foo = c.foo; // fails to tearoff, calls nSM instead
  print(foo);      // 42 (incorrect)
  print(foo());    // throws because 42 is not callable

  var bar = c.bar; // similar incorrect behavior as `foo`
  print(bar);
  print(bar());
}

These tearoffs do not work because DDC does not generate signature data for the methods. This also allows type safety to be violated. You can probably do other things like call generic methods as non-generic, and will not get correct type args filled in.
The fix is to generate signature data for these.
EDIT: another consequence, not illustrated by the above code, is that even static tearoffs are likely broken. They will not have signature data attached, so they will not work correctly in type casts or dcalls.

Will be fixed in https://dart-review.googlesource.com/c/sdk/+/45960

Still need to address Kernel backend, however.

Fix for DDK: https://dart-review.googlesource.com/c/sdk/+/45964


Allow loading of resources from an unpacked directory.

This is to facilitate easier development - it's easier to just edit a tilesheet and have the engine load it without having to repack every time during development.

For sure, great idea. :) I'll be sure to update the Resource class so it can read from zips and directories alike. It is certainly very annoying to have to repack every time. :p

Already beat you to it. :shipit:

Oh awesome, I didn't even see that. Thank you so much. I won't be available for programming for a bit (week or so), but I did review your code--excellent stuff! Exactly how I would've done it! <3 Thank you so much for your quality commit. <3 I'll merge in the future. :)

Seems this issue is resolved. Thanks for your contributions~

Thank you for your hard work~ <3


CSS updated for Explore.tsx and updated Readme

I've updated the CSS for Explore.tsx applying several properties to the textarea and fieldtextarea. Have also referred the following link Looker/Components for the styling of the tags given. One limitation with the

Sorry @Abhilash42069, we merged your Pull Request by mistake and had to revert it.
Can you please reopen this pull request?
Thanks

Yes on it
On Wed, 13 Mar, 2024, 7:38 pm kaue, @.***> wrote:

Sorry @Abhilash42069 https://github.com/Abhilash42069, we merged your
Pull Request by mistake and had to revert it.
Can you please reopen this pull request?
Thanks
—
Reply to this email directly, view it on GitHub
https://github.com/looker-open-source/extension-gen-ai/pull/26#issuecomment-1994491522,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOE6DRGJQAMVTSEEDHRJC5DYYBMUHAVCNFSM6AAAAABESXJEV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUGQ4TCNJSGI
.
You are receiving this because you were mentioned.Message ID:
@.***>


Relation problem (source key and target key)

Issue
Can i define source key and target key manually? i cant use @Primary for parent Model because the parent model have more than 1 key
Versions
^1.1.0

sequelize: ^5.21.5
sequelize-typescript: ^1.1.0
typescript: ^3.8.3

Issue type

[ ] bug report
[x ] feature request

YES! Like to second this issue.
@ForeignKey annotation always targets the primary key. Need to be able to specify an alternate.
Constraint will look like:
FOREIGN KEY (changable_localfield_FK) REFERENCES distantTable (FIXED_primaryKey) ON DELETE SET NULL ON UPDATE CASCADE,
While we can change what field is used in the local table to hold the foreign key, we can't seem to specify anything other than the primary key on the "Linked" table.
Quite a few legit scenarios where you may have more than one unique key in the table.
e.g. you want to use autoincrement (forces use of Primary key), but you also need to capture a GUID, to ensure unique values across tables.

I also have this need to customize the foreignkey other than using the primary key


Write README

Hi there. It would be great if this issue could be completed. In the meantime, can you share what default localhost port this app is running on?

@MarventusWP The default port is 3000.

Hey HoneyMaro, I really appreciated the comment on the default port. I'm working on a testnet to work with Terra classic. I was curious to know what node_module is used for the interaction with smart contracts on the web-app?


Issues with a jpg

Im trying to load the 2 JPGs metadata from the following urls as buffers
http://artwork-cdn.vubiquity.com/P/V_EPIK_POST0000000003281596.jpg
http://artwork-cdn.vubiquity.com/P/H_EPIK_TVNC0000000001049578.jpg
the first one works perfectly but the second one throws this error
Error: Input buffer contains unsupported image format
I have no idea whats going on, can someone help me?

Hello, the second image is in the BMP format (rather than JPG).
$ file H_EPIK_TVNC0000000001049578.jpg
H_EPIK_TVNC0000000001049578.jpg: PC bitmap, Windows 3.x format, 320 x 240 x 24

is there anything i could do for it to work with sharp? ( i just need to retrieve the height and width )

Support for the BMP format is available in sharp if there's a globally-installed copy of libvips that has been compiled with *magick support.

would it work on heroku if i added this buildpack?
https://github.com/alex88/heroku-buildpack-vips
it seems a bit outdated

Perhaps try a fork, e.g. https://github.com/the-grid/heroku-buildpack-vips/tree/update-vips-8.4.5

@lovell Thanks for this module!
I to am having a similar issue:

I to am using heroku and when running sharp.versions I get the same result with or without the buildpacks (both alex88 and the-grid#update-vips-8.4.5). Seems like it's using the binaries that come with node and ignoring the buildpacks binaries.
Running from my mac this never happens.
I noticed that "jpeg": "8.4" is different then "jpeg”: "1.5.1" which I get on heroku.
Perhaps you have advice?
Thanks in advance

@sagivf Is your input image in BMP format? My best guess for the version difference would be that you've run npm install on an OS X machine then checked in node_modules and are attempting/failing to use them on Linux/Heroku.

@sagivf This issue was about a BMP input file that required the use of a buildpack with libvips compiled with *magick. The sharp.versions logic is pretty simple. Please open a new issue if you're still having problems.

OK, from sharp.versions logic I understand that the buildpack should install the libs inside the node_modules/sharp/vendor/lib right? Maybe https://github.com/alex88/heroku-buildpack-vips/pull/26 fixes the issue.
I will do some more tests and see if there is a need for a new issue, thanks 👍

@lovell just a quick FYI.

Seems like my issue was the Heroku server piping an image from a url resource to the s3 via sharp. The connections was being cut off, not sure why this was the result. Switching to a dedicated server fixed the issue.
I'm not sure regarding the described heroku buildpack, not that it's really up to you but:
a) It works without them
b) If the buildpacks are there for using different vendor versions I couldn't get it to work, not very
clear how to use it.

Thanks again for you time :)

"It works without them"

Thank you, that's good feedback, a PR to update the docs would be most welcome.

Closing as I hope the original question has been answered.

@lovell was going to add a pull request, but then I saw you already did it https://github.com/lovell/sharp/commit/5e015cc3ca6f66237d75a5f3a1f13ecd1ccfd1e2
Sorry took me to long to get to it 😄  added some more info - https://github.com/lovell/sharp/pull/748


Assign Different Characters?

Hey there, thanks for working on this :-) I'm just setting up waybar on Hyprland and it looks great.
However I'm wondering if there is a config hidden somewhere where I can change the default characters used for the different weather states (sun emoji, rain emoji, etc) and replace with custom ones that match the theme of my waybar?

There isn't really anything like that, but I'm assuming you can configure Waybar to use whichever emoji font you want

Okay, no worries :-)
Yes you can change the font, but I wanted to change the emogis to icons/

I don't think that would be technically possible, as Waybar doesn't support getting images in the tooltip content AFAIK.

I don't think they support images at all, although I may be mistaken, I meant non standard icons from Font Awesome for example, not technically images.


Return a NaN when using operator ( ** ) on Windows version with GPU

Description
I find a bug when using ** operator to compute grad clipping (using gpu)，like this:

p=nd.array([-7.11766724e-03,-1.11747989e-02,-3.17790220e-03,-2.94371421e-04],ctx=mx.gpu(0))
print(p)
print(p**2)

result as following：

[-0.00711767 -0.0111748 -0.0031779 -0.00029437]
<NDArray 4 @gpu(0)>

[ nan nan nan nan]
<NDArray 4 @gpu(0)>
But it is ok on CPU , like that:

a=nd.array([-7.11766724e-03,-1.11747989e-02,-3.17790220e-03,-2.94371421e-04])
print(a)
print(a**2)
result as following:

[-0.00711767 -0.0111748 -0.0031779 -0.00029437]
<NDArray 4 @cpu(0)>

[  5.06611868e-05   1.24876125e-04   1.00990619e-05   8.66545307e-08]
<NDArray 4 @cpu(0)>
Environment info (Required)

----------Python Info----------
Version      : 3.6.1
Compiler     : MSC v.1900 64 bit (AMD64)
Build        : ('default', 'May 11 2017 13:25:24')
Arch         : ('64bit', 'WindowsPE')
------------Pip Info-----------
Version      : 9.0.1
Directory    : E:\Anaconda2\envs\gluon\lib\site-packages\pip
----------MXNet Info-----------
Version      : 1.0.0
Directory    : E:\Anaconda2\envs\gluon\lib\site-packages\mxnet
Hashtag not found. Not installed from pre-built package.
----------System Info----------
Platform     : Windows-10-10.0.15063-SP0
system       : Windows
node         : DESKTOP-OALBEUS
release      : 10
version      : 10.0.15063
----------Hardware Info----------
machine      : AMD64
processor    : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
Name
Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz

Package used (Python/R/Scala/Julia):
(I'm using Python 3.6.1)
PS: error also find in （win_amd64）：

mxnet-cu80-1.0.1b20180102
mxnet-cu80-1.0.0
mxnet-cu80-1.0.0b20171213

python version： 3.6.0

@Feywell @zhreshold Is the issue still there? I tested on linux gpu and cpu with both mx version 1.0.0 and master version. There is no issue. The behavior on cpu and gpu are also same. If the issue still there, have you tried upgraded the mxnet?

sorry for later,The problem has come back, and I'll try to find out.

@cgraywang I find the issue still exist.
I upgraded the mxnet-cu80 windows version to

1.1.0b20180212

@Feywell ok, I will be looking into it. Since I will need to setting up the windows, it may take sometime. But I will get back to you asap.

@Feywell just follow up, for now we can reproduce the error with mxnet-cu80 version 1.1.0. We are working on fixing the issue in the new release.

@cgraywang That's great! Hope the new release.

It is now determined to be the result of fastmath


Add default message fields

all messages should have a set of default fields such as ID, Error, and ErrorMessage.  These are common enough that the user shouldn't necessarily have to define them in each message.

This can be addressed by utilizing standard ros messages now that External Definitions is a thing. 41accc4a2eb047900c0a4d8ea0fa4bd071c9ab08


Codemod: Support iTwinUI Dialog

Write a codemod for moving from core-react Dialog to itwinui-react Dialog. Similar codemods should be written for core-react GlobalDialog and ModelessDialog.
List of unsupported* core-react Dialog attributes:

inset [can be just removed]
buttonCluster [will be handled initially but it is highly recommended for the user to manually parse buttons contained in the button cluster]
alignment [itwinui-react Dialog has attribute "placement" but it supports only 4 sides of the screen when core-dialog supports 8]
x & y [could probably be achieved through Dialog.Main style changes to "top" and "left"]
modelessId [should just be removed or integrated in some other way]
onModelessPointerDown [should just be removed or integrated in some other way]
onEscape [should be changed to "closeOnEsc={true}" if relevant]
spread operator [there is no way for codemod to discern what attributes the spread operator contains, attributes should be written explicitly for codemod to work]

codemod will not affect these attributes and will leave them unmodified (api will break if these attributes were present) - consumer will have to decide how to handle these attributes

Related WIP branch: https://github.com/iTwin/appui/tree/dialog-codemod

It seems like the codemod conversion of the dialogs is too complicated, let's avoid that for now.


fixed a broken class selector

noticed a missing "." on a class selector and fixed it.

I'd also like to use this opportunity to say "thank you" for creating flatpickr! :100:

That somehow slipped through.
And thanks!


Syntax for space

Add syntax for a space, like LaTeX's \,.

A double underscore (__) might work well.

This is actually already solved using a backslash and space.


Add support for 'having' queries

Should we support having in queries? Like this:
select count(value) from some_series
group by time(5m)
having count(value) > 23

+1

+1, this can be avoided by creating a continious query which not seems to be a dificult solution.

+1

+1

+1

+1

+1

+1
Any news on this feature?

+1
Any news on this feature?

+1
This would be very much needed.

:+1: this would be extremely useful!

How's going on?

+1

Hi @pauldix, any update on the status of the having feature?
I noticed you and @chobie had a discussion in the pull request, but it is not clear whether the feature has made it in and if not, do you have any estimate of when it would be available?
The use case you mention in one of your comments at the top of this thread is very powerful and necessary for exploring time series data – how the top n items instead of top 10 values for every item.

+1

+1

+2

+1

+1

+1
On my first foray with Influx and very quickly ran into multiple cases where I need this kind of behaviour. How are people working round this currently, with CQs?

+1

+1

+1
I need this.  Need to exclude certain values in a continuous query and can't find another way to do it.

+1 please support HAVING clause
I encountered another issue in Grafana https://github.com/grafana/grafana/issues/4623
The problem is Grafana displays all GROUP BY results, lots of zeros can not be hidden.
We hope Influxdb can filter those zeros out, the best method so far is to have a GROUP BY ... HAVING clause.

+1

+1

+2019

+2021

+2021

+1

+1

+1

With the introduction of InfluxDB 3.0 and SQL support, HAVING queries are available. You can currently use them in InfluxDB Cloud Serverless, InfluxDB Cloud Dedicated, and-soon-to be released InfluxDB Clustered. SQL support will also release with InfluxDB OSS 3.0 in the near future.
I may be wrong, but I don't really see HAVING support being added to InfluxQL.


fix: Remove target availability event listener on dispose (#29)

Fix for issue #29.
This commit removes the "webkitplaybacktargetavailabilitychanged" event listener when the component is disposed. It also provides a test case demo in which the user can remove (dispose) the AirPlay component from the videoJS player.

Coverage remained the same at 0.0% when pulling d20dc68cf705e09e52a0d1ff1b1147c9be8ecc40 on izkmdz:ismendoza/fix-dispose-listener into 63a3908dd13dc0e92ef8755ca9acd8afd575dbb2 on silvermine:master.


CNF-11524: Log error list of deletebackuprequest

Instead of creating deletebackuprequest for each backup and then wait for the backups to be deleted, poll the deletebackuprequest CRs themselves and wait for them to be processed and log the error list if there is any.
After that check all the backups are deleted.

/hold

/retest

/retest

/unhold

/lgtm

/lgtm

/approve

/test

/retest

/test integration


Update docs for running frontend apps to include govuk-docker

View rendered file here

Thanks both! Kelvin has actually added some govuk-docker steps already, so I'm going to close this PR and open a new one based off his changes.

Superseded by https://github.com/alphagov/govuk-developer-docs/pull/2210


Swashbuckle.AspNetCore.Cli "servers" part no appearing in swagger.json

In my startup I have
			app.UseSwagger(c =>
			{
				c.PreSerializeFilters.Add((swagger, httpReq) =>
				{
					// api gateway
					swagger.Servers = new List<OpenApiServer> { new OpenApiServer { Url = "__API-SCHEME__://__API-URL__" } }; // pipelines variables
				});
			});

When I run my application and visit /swagger.json I see the server array in my json
{
  "openapi": "3.0.1",
  "info": {
    "title": "MY API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "__API-SCHEME__://__API-URL__"
    }
  ],

However when using the CLI tool (dotnet swagger tofile --output swagger.json $(OutputPath)$(AssemblyName).dll v1 )
The servers part is missing from my json.
{
  "openapi": "3.0.1",
  "info": {
    "title": "my API",
    "version": "v1"
  },
  "paths": {
    "/api/v{version}/something/something": {
      "get": {
        "tags": [
          "test"
        ],

Am I doing something wrong?

We're having basically the same issue - code that is set up to modify the generated OpenAPI doc within the app.UseSwagger() method isn't being executed when we generate the document using the CLI

PreSerializeFilters is a setting specifically for the Swagger middleware - i.e. the Swashbuckle component that serves up the generated Swagger as a JSON endpoint. It's meant for the use-case where you want to enrich the generated Swagger doc with incoming request context. For example, assigning the server metadata base on "X-Forwarded-*" headers in the request.
It's not applicable when using the CLI tool. If you want a solution that works in the CLI case, use an IDocumentFilter (see readme) instead.


My First Blog - 张峰源的博客 | ZFY Blog

https://fy-zhang.github.io/2018/12/26/My-First-Blog/
I feel strongly that I can make it.

1


Receive It cannot be used as a key. warning for column specified in extra_columns

Describe the bug
I receive the following message about a column specified in the extra_columns:
WARNING:database:Mixed Alphanum/Non-Alphanum values detected in column <column identifier>. It cannot be used as a key.

I find the warning confusing since the column is an extra_columns and not a key_columns
Describe the environment

Python 3.9.13
data-diff==0.3.1

Hi @JCZuurmond , I understand the confusion. We'll improve the warning. Anyway, if you're not using it as a key, you can ignore the warning.

👆

👆

@JCZuurmond are you able to reproduce this on a more recent version? I believe this has been fixed, but it seems the PR was not linked

Hi @dlawin , unfortunately I can not verify this easily. Let's close the issue for now


An unhandled exception has occurred: Request timed out. Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Request timed out.

SEEMS TO BE FIXED WITH 2.0.5 CLOSE PLEASE
I am running the latest version of asp.net core 2.0.3 on IIS 10
My log file on my production server is getting filled with these errors, I am running the site off windows 2016.
Also here is my error logger middleware
``    class SerilogMiddleware
{
const string MessageTemplate = "HTTP {RequestMethod} {RequestPath} responded {StatusCode} in {Elapsed:0.0000} ms";
    static readonly ILogger Log = Serilog.Log.ForContext<SerilogMiddleware>();

    readonly RequestDelegate _next;

    public SerilogMiddleware(RequestDelegate next)
    {
        if (next == null) throw new ArgumentNullException(nameof(next));
        _next = next;
    }

    public async Task Invoke(HttpContext httpContext)
    {
        if (httpContext == null) throw new ArgumentNullException(nameof(httpContext));

        var start = Stopwatch.GetTimestamp();
        try
        {
            await _next(httpContext);
            var elapsedMs = GetElapsedMilliseconds(start, Stopwatch.GetTimestamp());

            var statusCode = httpContext.Response?.StatusCode;
            var level = statusCode > 499 ? LogEventLevel.Error : LogEventLevel.Information;

            var log = level == LogEventLevel.Error ? LogForErrorContext(httpContext) : Log;
            log.Write(level, MessageTemplate, httpContext.Request.Method, httpContext.Request.Path, statusCode, elapsedMs);
        }
        // Never caught, because `LogException()` returns false.
        catch (Exception ex) when (LogException(httpContext, GetElapsedMilliseconds(start, Stopwatch.GetTimestamp()), ex)) { }
    }

    static bool LogException(HttpContext httpContext, double elapsedMs, Exception ex)
    {
        LogForErrorContext(httpContext)
            .Error(ex, MessageTemplate, httpContext.Request.Method, httpContext.Request.Path, 500, elapsedMs);

        return false;
    }

    static ILogger LogForErrorContext(HttpContext httpContext)
    {
        var request = httpContext.Request;

        var result = Log
            .ForContext("RequestHeaders", request.Headers.ToDictionary(h => h.Key, h => h.Value.ToString()), destructureObjects: true)
            .ForContext("RequestHost", request.Host)
            .ForContext("RequestProtocol", request.Protocol);

        if (request.HasFormContentType)
            result = result.ForContext("RequestForm", request.Form.ToDictionary(v => v.Key, v => v.Value.ToString()));

        return result;
    }

    static double GetElapsedMilliseconds(long start, long stop)
    {
        return (stop - start) * 1000 / (double)Stopwatch.Frequency;
    }

``
Line 42 referred to in the error log is
catch (Exception ex) when (LogException(httpContext, GetElapsedMilliseconds(start, Stopwatch.GetTimestamp()), ex)) { }
My log file also has a lot of these as well
ERR Connection id ""0HLAOQ9LIG5UR"", Request id ""0HLAOQ9LIG5UR:000001EF"": An unhandled exception was thrown by the application. Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Request timed out.
I am not sure if they are related  or not.
Errors
[11/01/18 07:20:54.498 -5] ERR An unhandled exception has occurred: Request timed out. Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Request timed out.    at Microsoft.AspNetCore.Server.Kestrel.Internal.System.IO.Pipelines.PipeCompletion.ThrowFailed()    at Microsoft.AspNetCore.Server.Kestrel.Internal.System.IO.Pipelines.Pipe.GetResult(ReadResult& result)    at Microsoft.AspNetCore.Server.Kestrel.Internal.System.IO.Pipelines.Pipe.Microsoft.AspNetCore.Server.Kestrel.Internal.System.IO.Pipelines.IReadableBufferAwaiter.GetResult()    at Microsoft.AspNetCore.Server.Kestrel.Internal.System.IO.Pipelines.ReadableBufferAwaitable.GetResult()    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.MessageBody.<ReadAsync>d__22.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.FrameRequestStream.<ReadAsyncInternal>d__21.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()    at System.IO.StreamReader.<ReadBufferAsync>d__65.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()    at System.IO.StreamReader.<ReadAsyncInternal>d__63.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()    at Microsoft.AspNetCore.WebUtilities.FormReader.<BufferAsync>d__41.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.AspNetCore.WebUtilities.FormReader.<ReadNextPairAsyncImpl>d__34.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.AspNetCore.WebUtilities.FormReader.<ReadFormAsync>d__43.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()    at Microsoft.AspNetCore.Http.Features.FormFeature.<InnerReadFormAsync>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()    at Microsoft.AspNetCore.Http.Features.FormFeature.ReadForm()    at Microsoft.AspNetCore.Http.Internal.DefaultHttpRequest.get_Form()    at cryptocal.ui.Support.SerilogMiddleware.LogForErrorContext(HttpContext httpContext) in D:\projects\Crypto\cryptocal.ui\Support\ErrorHandlingMiddleware.cs:line 63    at cryptocal.ui.Support.SerilogMiddleware.LogException(HttpContext httpContext, Double elapsedMs, Exception ex) in D:\projects\Project1\Support\ErrorHandlingMiddleware.cs:line 47    at cryptocal.ui.Support.SerilogMiddleware.<Invoke>d__4.MoveNext() in D:\projects\Project1\Support\ErrorHandlingMiddleware.cs:line 42 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>d__6.MoveNext()

Thanks @zoinkydoink !


Update community supported README: legal disclaimer

Added legal disclaimer to README, as requested by Product.

@hanzei - Legal's updated guidance and language for the legal disclaimer for community-supported integrations has been applied to this PR.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (88d91e6) 2.46% compared to head (4111f51) 2.46%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main     #93   +/-   ##
=====================================
  Coverage   2.46%   2.46%
=====================================
  Files         21      21
  Lines       2027    2027
=====================================
  Hits          50      50
  Misses      1971    1971
  Partials       6       6

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

@hanzei - This PR is ready for your final approval.

@hanzei - This PR is ready for your final approval.


Fix all compiler warnings

Summary: Fix all warnings of unused variables, unused imports and others.

@ethereumproject/etcdev-team Please review.

_lgtm ;)


osd: add pg autoscaler support

This commit adds the pg autoscaler support.
The structure for pool definition has now two additional attributes
pg_autoscale_mode and target_size_ratio, eg:
    test:
      name: "test"
      pg_num: "{{ osd_pool_default_pg_num }}"
      pgp_num: "{{ osd_pool_default_pg_num }}"
      rule_name: "replicated_rule"
      application: "rbd"
      type: 1
      erasure_profile: ""
      expected_num_objects: ""
      size: "{{ osd_pool_default_size }}"
      min_size: "{{ osd_pool_default_min_size }}"
      pg_autoscale_mode: False
      target_size_ratio: 0.1

when pg_autoscale_mode is True user has to set a decent value in
target_size_ratio.
Given that it's a new feature, it's still disabled by default.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1782253
Signed-off-by: Guillaume Abrioux<EMAIL_ADDRESS>

@dsavineau I'm unsure whether we should set target_size_ratio everywhere by default. The idea was just to show as a sample this is a value that should be present in combination with pg_autoscale_mode but providing default values each time could be a bad idea.
WDYT?

jenkins test centos-non_container-all_daemons

jenkins test centos-non_container-update

jenkins test centos-container-update

jenkins test centos-non_container-switch_to_containers

jenkins test centos-container-ooo_collocation

jenkins test centos-container-ooo_collocation

jenkins test centos-non_container-switch_to_containers

jenkins test centos-container-update

jenkins test centos-non_container-update

jenkins test centos-non_container-all_daemons

jenkins test centos-non_container-purge

jenkins test centos-non_container-all_daemons

jenkins test centos-non_container-all_daemons

jenkins test centos-non_container-switch_to_containers

jenkins test centos-non_container-all_daemons

jenkins test centos-non_container-switch_to_containers

jenkins test centos-non_container-switch_to_containers


Edit Event Width Error

Width of the edit event page is half of the service edit page. It should be full.

Unnecessary div opening is deleted.


Add runActionsInState and runActionsInStateBracket.

Both functions are similar to runActions and runActionsBracket. They only differ in that the former can be passed custom initial states to run actions on.
Also: updated tested-with ghc versions in the .cabal file and CI.
The one thing I am unsure about is that quickcheck-dynamic has removed runActionsInState in version 3.0.*, so we are introducing something that we know will break when/if we update the quickcheck-dynamic dependency to 3.0.*.

After discussing this we decided that this function isn't quite right, and so we will not add it.


OPC Twin > Only one OPC UA Server

Describe the bug
Hi, I've got only one OPC Server UA and one IoT Edge device configured with OPC Publisher. I want to use OPC Twin module, but there is missing documentation in https://github.com/Azure/Industrial-IoT/blob/main/docs/architecture-flow.md.
How is the simple way to configure this scenario? How are the steps to best configure this scenario?

@felixmondelo I assume you have the cloud microservices deployed, since using the modules standalone is only supported for OPC Publisher, but not for OPC Twin.
You may also want  to check the operations manual for some details: https://azure.github.io/Industrial-IoT/manual/

@felixmondelo, indeed, before making any browse/read/write, etc operations with the twin you need to discover the endpoint and then activate it. Activation operation instructs the twin to create and activate a session into the OPC UA Server so the other service calls are possible.

Please reactivate if further help is needed.


Add missing package.json fields and upgrade dev dependencies

NPM Install complained about no license or repository fields, so I added those in.
Many dev dependencies were producing errors about unsatisfied peer dependencies in the upcoming NPM 3 world, so those were also added (phantomjs, mocha and karma, notably).

Made you a collab, feel free to merge once this passes.

@tbranyen The sauce labs check is failing, and I'm not familiar with that part. Any ideas what might be going wrong?
Also, thanks!

Yeah, that's fine.  For whatever reason SauceLabs won't run unless I'm the committer.


Border-radius challenge done correctly , but freecodecamp will not pass test Help

Challenge add-rounded-corners-with-a-border-radius has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; rv:47.0) Gecko/20100101 Firefox/47.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

    ```

Hey there @VarCI-bot this isn't a help chat room issue. The challenge was broken by the changes pushed to production last night. The solution the OP posted is a correct solution. It should pass.

@maliekbr closing as duplicate issue https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9697. Happy coding!

@erictleung How is this a duplicate of a language translation bug?

@P1xt whoops. Copy-pasting too hard this morning 😄 I meant to link to https://github.com/FreeCodeCamp/FreeCodeCamp/issues/10539.


Refactor controllers to use "getState" action, "stateChange" event types defined in base-controller

Motivation

The "getState" action and "stateChange" event are defined in base-controller, and are common to all controllers.
https://github.com/MetaMask/core/pull/1890 defines polymorphic types ControllerGetStateAction and ControllerStateChangeEvent.

Explanation

This PR refactors all controllers in core so that their respective "getState" action and "stateChange" event types are defined using the ControllerGetStateAction and ControllerStateChangeEvent types from base-controller.
The redefined type definitions are exactly equivalent to the previous typings with no breaking changes introduced.

Impact

This accomplishes code de-duplication.
It makes it possible to propagate any future updates to these types from a single source.
All controllers now expect a "getState" action and a "stateChange" event, and can accept them without requiring type casting in base-controller.
immer can now be removed as a dependency from 7 packages.

References

Extracted from https://github.com/MetaMask/core/pull/1890

Changelog
@metamask/base-controller

ADDED: Exports ControllerGetStateAction, ControllerStateChangeEvent types

Checklist

[x] I've updated the test suite for new or updated code as appropriate
[x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
[x] I've highlighted breaking changes using the "BREAKING" category above as appropriate

@mcmire I removed some changes in network-controller that were irrelevant to the scope of this PR (replacing string literal controller names with dynamic template strings).

Maybe better to wait until after v91 is merged before merging this, to avoid complicating that release

@Gudahtt Good call! Holding off for now.


FIX: API key Error only on windows

Description
Api ethplorer key error on windows version only
Both build files reference GH secrets.. sooo hmm
TODO

Find out why this bug is happening on windows and not on Mac
Fix issue.
...

This seems to be fixed. Ie v1.20.5 shows no api key error for usdc


build: Ephemeral environments for PRs via slash command

SUMMARY
Github Actions that provide the ability to create an ephemeral environment running a PR's latest merge commit via a command executed via PR comment. The Docker build is run in a virtual environment created via AWS ECS, using the Fargate container runtime. This functionality is sponsored by @preset-io.

Adds an additional Docker build target (ci) which includes additional scripts to initialize and run the container instance
Builds the Docker ci target on pull_request events (utilizing the cache from previous docker build runs) and saves the build as a workflow artifact.
Adds a Push ephmereral env image (workflow_run) workflow to tag and push the Docker ci image to AWS ECR.
Adds an Ephemeral env workflow (issue_comment) workflow to evaluate PR comments for the /testenv up or /testenv down commands and deploy ECS services accordingly.
Adds new secrets to the repo: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. These credentials correspond to an AWS IAM user with appropriate ECS privileges. An Apache INFRA ticket is pending to add these secrets to the repo.

Running

When a PR is opened or updated, a Docker ci build of the merge commit will be saved and uploaded to ECR.

Posting a comment on the PR containing /testenv up (and nothing else) will trigger the ephemeral environment creation or update. Note: this functionality is currently restricted to members of the apache Github organization.

When the environment is created, a comment will be posted to the PR with the relevant details:

Note that the environment will take several minutes to become available, as all DB migrations and example data loading is performed upon startup.

If the environment fails to startup, for example, if the Docker image is not yet built and pushed to ECR, a comment will also be posted to the PR:

Security
The enclosed workflows follow Github's security guidelines for builds. Docker images are built via the read-only pull_request event, preventing malicious code from accessing tokens with repo write access. workflow_run and issue_comment privileged workflows are limited to uploading and interacting with the AWS API, not building or running any of the untrusted code.
TEST PLAN

Follow the procedure in Running, above. Note that the workflow_run and issue_comment workflows will not run until they are merged to master.
These workflows have been tested pretty extensively on my fork of Superset.

TODO (in future PRs)

Add handler for /testenv down command to manually shutdown environments
Automate shutting down server resources after ~48h
Shutdown and cleanup on PR close
Add support for celery and async jobs
Add support for feature flag and configuration overrides

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

Super exciting for this!

Thanks for setting this up; it's going to improve the manual testing process vastly.  🙂

Since issue_comment event also has access to all the base repo secrets, would it make sense to bypass the workflow_run step and upload artifacts to ECR in the issue_comment workflow, too?

Ideally, yes, but there's no way (that I've found) for an issue_comment event to reference workflow runs for a PR, making it impossible to retrieve the uploaded build artifacts.

The built docker image is kind of large, too. I'm wondering whether it's possible to use the latest released apache/superset:master as the base image and build a new image just for ECR? (I'd imagine the saved docker build will only contain the new layers with pip package, python file, and static assets overrides.)

Not sure how this would work in a PR context, as the standard docker builds are not pushed to Dockerhub for PRs from forked repos (no secrets access). The current CI (ephemeral env) build is leveraging the cache from the current Docker build process, but agreed that the image size is large. I'm working on getting the overall image size down, but on first pass there's not a whole lot of wasted space here.

Ideally, yes, but there's no way (that I've found) for an issue_comment event to reference workflow runs for a PR, making it impossible to retrieve the uploaded build artifacts.

You can potentially get the branch name of the PR first, then find the workflow runs by branch name. I've done that in the cancel_github_workflow script:
https://github.com/apache/superset/blob/2456a2eb99d0abdeec12a5e5c889d418f27e2c74/scripts/cancel_github_workflows.py#L176-L183

Not sure how this would work in a PR context, as the standard docker builds are not pushed to Dockerhub for PRs from forked repos (no secrets access). The current CI (ephemeral env) build is leveraging the cache from the current Docker build process, but agreed that the image size is large. I'm working on getting the overall image size down, but on first pass there's not a whole lot of wasted space here.

I'm not familiar with Docker, but I was imaging if you have a Dockerfile like this:
FROM apache/superset:master

# copy latest file contents
...

# re-install dependencies
...

# rebuild assets
...

The saved docker image will contain only the additional layers on top of apache/superset, so the image you uploaded to Amazon would be smaller than building Superset from scratch.

The saved docker image will contain only the additional layers on top of apache/superset, so the image you uploaded to Amazon would be smaller than building Superset from scratch.

Reinstalling dependencies and rebuilding assets would add significant time to the build of the CI image. Running webpack is the most expensive operation in the build.

Apache INFRA ticket: https://issues.apache.org/jira/browse/INFRA-21442

Secrets have been added by Apache infra.

@robdiciuccio thanks again for improving the process. Do you mind adding a non-technical user friendly tutorial, so our designers and PMs can all benefit from it? 🙏

@junlincc yes, I'll be adding some documentation once the feature has gone through some testing on the repo (merging this PR is required for testing due to the security model of GitHub Action).


Springify kafka-producer. Object pool is still static, and some

SpringConfig tests still need to be written.

Coverage remained the same at 100.0% when pulling 474fbd8a3353288af47e2a1c924338e23cd1c75c on SpringifyKafkaProducer into 0af360699ec88bdee2f6a2122a1a4858583d017d on master.


lcc-inspector

Hi,
where can download lcc-inspector for test it?
thanks a lot

Lcc inspector is compiled when you compile the library. There is no downloadable version of it.
It is thougt to be sent to a client to verify its licenses independently from the software he is using. You have one lcc inspector per (lcc)project, because it contains the public key of the license you want to verify.


Include output of nlp.embedding.list_sources() in API docs

Description
Previously the API docs only explain how to obtain the list of supported sources. Users must run this themselves. Instead, with this PR, include output of nlp.embedding.list_sources() in API docs.
Checklist
Essentials

[X] Changes are complete (i.e. I finished coding on this PR)
[X] All changes have test coverage
[X] Code is well-documented

Changes

[X] Include output of nlp.embedding.list_sources() in API docs

Comments
Fixes https://github.com/dmlc/gluon-nlp/issues/396

Job PR-421/1 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-421/1/index.html


Enhance SimpleSeqPlay

@nim65s can this be released in 2.3.1 ?

sure

It would be great to have a simple unit test for this

The penultimate commit should do the job.

I added a commit. If this can go in the next release, that would be wonderful. Otherwise, I will find a workaround.

Merged manually


[DOC]: Update to be made to the README file.

The README file needs to updated.

[x] Write about what the project is about.
[x] Add instructions on how to get it working locally.
[x] Add screenshots of what the project currently looks like.
[x] Add current contributors list, linking to their github
[x] Add link to github Pages

README for the project has been updated.


Invalid kwarg fused passed to bitsandbytes AdamW8bit

Hi, when running the following command:
tune run lora_finetune_single_device --config llama3/8B_lora_single_device model.lora_rank=16 optimizer=bitsandbytes.optim.AdamW8bit gradient_accumulation_steps=4 tokenizer.max_seq_len=2048 max_steps_per_epoch=100 model.lora_attn_modules="['q_proj','k_proj','v_proj','output_proj']" model.apply_lora_to_mlp=True log_peak_memory_stats=True compile=True checkpointer.checkpoint_dir=checkpoints/original tokenizer.path=checkpoints/original/tokenizer.model checkpointer.output_dir=checkpoints/original
Which returns this stack trace.
It looks like we unconditionally pass fused as a kwarg to the optimizer even though the bits and bytes optimizer doesn't have this kwarg
Related issue:https://github.com/pytorch/torchtune/issues/1998
Version info:
Pytorch: 1b3f8b75896720e88362cbec7db32abc52afa83e
Torchtune: f2bd4bc25b24587aef40f486087412b9da8f1d94
Torchao: 039cef4ad546716aa04cd54c461feb173f7fe403

You probably have to manually delete the fused: True key in the config file. Don't think torchtune CLI can remove a specific key from the config?
https://github.com/pytorch/torchtune/blob/9cfa28835246a4c1ac4449e703eae8f49227db55/recipes/configs/llama3/8B_lora_single_device.yaml#L60

Makes sense, but shouldn't you throw a nicer error in this case (maybe giving the instructions you just gave)? Or just not pass fused by default? If you're compiling the optimizer I wouldn't expect fused to matter.

thats a good feedback @mlazos . I will check what we can do to make it more intuitive. We add fused as default because it is faster is some scenarios.
To remove it in the cli, you can do tune run <config> ~optimizer.fused
the '~' will delete it.

(Wanted to tag @felipemello1 but saw that you have already replied so I will skip my comment on UX issue)
PyTorch optimizers use for-each implementation by default (https://pytorch.org/docs/stable/optim.html#algorithms, after the list of optimizers, you can see the description for for-each and fused implementations).
For-each implementation actually consumes quite a lot more VRAM because it materializes some intermediate tensors (and slightly slower than fused). This is especially bad for big models like LLMs nowadays (though for this specific LoRA recipe, it wouldn't be much). I don't exactly have the historical context, but I'm guessing the for-each implementation was for CNNs in the past where you have a lot of small tensors, so for-each implementation cuts down the launch overhead significantly. Still waiting for fused implementation to be the new default :smile:

@gau-nernst yeah agreed that foreach is not as performant as a fully fused kernel. The crux of my comment is that we could torch.compile the foreach optimizer and generate fused kernels automatically today, even for the optimizers that don't have a fused implementation, might be worth adding an option for that as well in the config. (I'm tooting my own horn because I added that capability to torch.compile 😉)
Other than that thanks for the quick replies!

@mlazos , n00b questions: how can we do it? Would torch.compile(optimizer) work?

@mlazos , n00b question: how can we do it? Would torch.compile(optimizer) work?

Since the optimize isn't a module this doesn't work, you compile the step so torch.compile(optim.step)


(feature) implement input validation across each step

input validation
util functions
error messages
user hints when incorrect input

There are some bugs with PR:

it is impossible to change values of date&time fields at step 3
it is possible to leave empty fields “rate” and “supply” at step 4 and move next step

Hey Victor,  Everything seems to work, but there is an estimated gas callback error that is thrown.
It is in the deployContract function of utils/web3.js
web3.js:236 errrrrrrrrrrrrrrrrr Error: Transaction execution error.
at Object.InvalidResponse (errors.js:38)
at requestmanager.js:86
at inpage.js:174
at inpage.js:8175


feat(module): support i18n in components

🔗 Linked issue

Resolves https://github.com/nuxt/ui/issues/2512
❓ Type of change

[ ] 📖 Documentation (updates to the documentation or readme)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality)
[x] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

It's easy to use:
<script setup lang="ts">
import { de } from '#ui/locale'
</script>

<template>
  <UApp :locale="de">
    <NuxtPage />
  </UApp>
</template>

📝 Checklist

[x] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

There's a way to override. I'm just now in the process of writing documentation to make it clear how to work with this. It's very simple.
Nuxt I18n or Vue I18n will work in parallel, that's no problem. Using them internally I consider overkill. But if sometime later you want to migrate to these packages, you can do it very quickly

Looked @nuxt/i18n there is an option there to quickly integrate into a 3rd party module. I think I will rewrite the code on i18n to make full use of the Nuxt ecosystem

You want to install @nuxtjs/i18n in @nuxt/ui?

While making the Internationalization page on the docs, it could be nice to add a few concepts from https://www.radix-vue.com/guides/i18n.html I think.

You want to install @nuxtjs/i18n in @nuxt/ui? Not sure it's the best idea because we have to handle it for Vue as well. Making a system that integrates well with both is the way to go I think.

Then leave the current implementation in place? It is universal and will work as it should

Could we pass a string to the locale prop of the UApp component instead? This would make it easy to do:
<script setup>
const { locale } = useI18n()
</script>

<template>
  <UApp :locale="locale" />
</template>

And maybe we could use the App Config to change the locales? 🤔

Could we pass a string to the locale prop of the UApp component instead? This would make it easy to do:

It will increase the build. Not everyone needs a lot of languages, usually 2-3.

And maybe we could use the App Config to change the locales? 🤔

I don't think there's much point to it. Again, not to inflate the build.

I'll get back to this PR tomorrow, I'll add examples in several languages to the documentation

@benjamincanac has split the documentation into Nuxt and Vue. The differences are minimal, but they are there

@hywax I've pushed 4 commits with updated docs and exposed @nuxt/ui/locale if you want to double check!

Already checked it out, everything looks great!

Would it be a good idea to expose a UiLocale type that provides the schema of the built-in locales? This would allow users to create a custom locale overrides file for the component with type-safety and then pass it to the UApp.
// uiLocaleOverrides.ts
import type { UILocale} from `@nuxt/ui/locale'`

const myLocaleOverrides: UILocale {
  name: 'custom',
  ui: {
    inputMenu: {
      noMatch: 'My custom message',
    }
  }
}

export default myLocaleOverrides;

<script setup>
import uiLocaleOverrides from './uiLocaleOverrides'
</script>

<template>
  <UApp :locale="uiLocaleOverrides">
    <NuxtPage />
  </UApp>
</template>

Good idea! I think it's very easy to do. I'll add it tonight

Should I wait to merge this?

Yes 😉

@benjamincanac @hywax
i suggest add file ar

@Malik-Jouda Feel free to open a PR that targets this 😊

@benjamincanac I added a defineLocale helper to help in creating locales. Can you tell me the best way to export it from the package?

Done! All that's left is to write the documentation

Thanks a lot!! 😊

@hywax Now that I think of it, is the useLocale composable not supposed to be a singleton? We can achieve this using createSharedComposable: https://github.com/nuxt/ui/blob/v3/src/runtime/composables/useKbd.ts#L70


Remove personal blogs referenced in official documentation

Example of personal blogs referenced in the documentation [1].
[1] https://is.docs.wso2.com/en/5.11.0/learn/openid-connect-scopes-and-claims/#how-does-op

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


CLI tool that uses this?

Is there a CLI tool that already utilizes this parser for validating JSON files?

I'm not aware of such a cli frontend...

I've created a cli here: https://www.npmjs.com/package/jsonc-cli


Update KubeFedConfig API time fields

Fixes: https://github.com/kubernetes-sigs/kubefed/issues/975
/cc @font @marun @xunpan

what about successThreshold and failureThreshold?

They are threshold and not time based. their unit in count (int) and does not need change.

helm chart related item should be updated accordingly.

missed it earlier. Added a new commit to update them.
PTAL again. Thanks !

LGTM

Thank you!
/lgtm


I cannot trigger any snippet :(

I don't know what I did wrong, but none of my keymaps cannot trigger a single snip. I also did all the default setup provided by the README of nvim-cmp, doesn't help.
return function (use)
  -------------------------------------------------------------------------------------------------
  -- Fun.
  -------------------------------------------------------------------------------------------------
  use {
    'L3MON4D3/LuaSnip',
    -- follow latest release.
    -- version = 'v1.*', -- Replace <CurrentMajor> by the latest released major (first number of latest release)
    -- install jsregexp (optional!).
    -- build = 'make install_jsregexp',
    config = function ()
      -- require('luasnip').setup {
      -- }
      local luasnip = require('luasnip')
      local types = require('luasnip.util.types')

      vim.keymap.set({ 'i', 's' }, '<C-j>', function ()
        if luasnip.expand_or_jumpable() then
          luasnip.expand_or_jump()
        end
      end)
      vim.keymap.set({ 'i', 's' }, '<M-k>', function () pcall(luasnip.jump, -1) end)
      vim.keymap.set({ 'i', 's' }, '<M-l>', function () pcall(luasnip.change_choice, 1) end)
      luasnip.config.set_config {
        history = true,
        updateevents = 'TextChanged,TextChangedI',

        ext_opts = {
          [types.choiceNode] = {
            active = {
              virt_text = { { '󱦱', 'Error' } }
            }
          }
        }
      }
      local events = require "luasnip.util.events"
      local t = luasnip.text_node
      local c = luasnip.choice_node
      local toexpand_count = 0
      luasnip.add_snippets(nil, {
        -- basic, don't need to know anything else
        --    arg 1: string
        --    arg 2: a node
        luasnip.s("simple", t "wow, you were right!"),

        -- callbacks table
        luasnip.s("toexpand", c(1, { t "hello", t "world", t "last" }), {
          callbacks = {
            [1] = {
              [events.enter] = function(--[[ node ]])
                toexpand_count = toexpand_count + 1
                print("Number of times entered:", toexpand_count)
              end,
            },
          },
        }),
      })
    end
  }
end

Mhm, the add_snippets call is a bit wrong, if it gets nil for the filetype, the snippet-table should have the format {ft1 = {<snippets>}, ft2 = {<snippets>}}.
Try passing "all" instead of nil

@L3MON4D3 Lol, thank you! That's the config I copy-pasted from TJ. Now it works:

I'm not sure whether you know TJ made a video to promote your plugin, but you definitely need to notify him and the viewers(e.g. me) maybe from the comment section to let them know that some of the syntaxes are deprecated.
That is: I followed the video before I created this issue. Apparently, it didn't work for me.

Nice :+1:
Yeah, we do mention that in the README, but I guess that's not suuuper discoverable :sweat_smile:

OK, I'm blind: https://github.com/L3MON4D3/LuaSnip#resources-for-new-users. 🤣  Closing this!