Please Add Latest MediaTek Firmware For Edge Kernel

Description
Howdie, have a finicky new-ish WiFi module that's refusing to be detected correctly by the Alpine Image.
It revolves  around a (new?) MediaTek MT7922 module, that should be detected as the port lists MT79** as supported. I suspect it requires newer firmware perhaps.
I built the wifibox-alpine image with both the vanilla 6.1.* & 'edge' 6.5.* kernels, neither of which contained latest-greatest firmware.
Old instruction broadly outlined by https://github.com/pgj/freebsd-wifibox/issues/6#issuecomment-1003378323  no longer work in the latest iteration of wifibox using http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/linux-firmware-mediatek-20230919-r2.apk
What's the correct way to inject newer firmware into the Alpine image?
Host operating system
FreeBSD 13.2-STABLE / 14-STABLE

Wireless NIC
ppt0@pci0:8:0:0:	class=0x028000 rev=0x00 hdr=0x00 vendor=0x14c3 device=0x0616 subvendor=0x105b subdevice=0xe0cd
    vendor     = 'MEDIATEK Corp.'
    device     = 'MT7922 802.11ax PCI Express Wireless Network Adapter'
    class      = network

Wifibox version
wifibox-1.3.0
wifibox-alpine-20230926
wifibox-core-0.12.0

Disk image type and version
Latest
Changes to the default configuration files
No response
Logs
N/A

Additional context
No response
Have you tried to turn it on and off?

[X] Yes, I have read all the manual pages first!

Hi @thesunexpress, long time no see!  Yes, you are right, the Alpine-based image is now based on different foundations.  You can find the details of that in the definition of the net/wifibox-alpine port.
As a consequence, no Alpine packages are used for installing the firmware files.  They are instead directly added from the linux-firwmare repository, depending on the configuration options of the net/wifibox-alpine port.
In theory, the MT7922 cards are handled by the mt7921e driver which should be available in the image.  However, by looking at the firmware files what the driver expects, there is a problem.  Output from the wifibox console:
# modinfo mt7921e
filename:       /lib/modules/6.5.4-0-edge/kernel/drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko.xz
author:         Lorenzo Bianconi<EMAIL_ADDRESS>author:         Sean Wang<EMAIL_ADDRESS>license:        Dual BSD/GPL
parm:           disable_aspm:disable PCI ASPM support
alias:          pci:v000014C3d00000616sv*sd*bc*sc*i*
alias:          pci:v000014C3d00000608sv*sd*bc*sc*i*
alias:          pci:v000014C3d00007922sv*sd*bc*sc*i*
alias:          pci:v000014C3d00007961sv*sd*bc*sc*i*
depends:        mt76,mt7921-common,mt76-connac-lib
intree:         Y
vermagic:       6.5.4-0-edge mod_unload
firmware:       mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin
firmware:       mediatek/WIFI_RAM_CODE_MT7922_1.bin
firmware:       mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
firmware:       mediatek/WIFI_RAM_CODE_MT7961_1.bin

But the port adds the MT76xx files only.  I will create a version that changes this so you could test it.

Hrmm, apparently I was wrong.  On selecting the FW_MEDIATEK option, or using the mediatek flavor, all the Mediatek firmware files are installed under /lib/firmware.  Which means that the driver should just work in this case.
Could you please share output the following commands?  They should issued on the guest, using the wifibox console command.

dmesg
lsmod
ls -h /lib/firmware/mediatek/WIFI_*.bin
modprobe mt7921e

@thesunexpress ?

@thesunexpress ?

Hi, sorry for the delay. I'm in/out of hospital a lot lately. Recent stay was certainly totally unplanned & didn't think of bringing my laptop or anything... which wouldn't have helped much since I had shutdown the system with the target hardware. I was totally useless for the first week+ after operation anyways.
I'm getting back up to speed again now, have large backlog to deal with still.
Just fired up the machine & looks like I need to do much more debugging before anything, as loading vmm.ko hardlocks the OS immediately now.
Looks like somebody else is dealing with something very similar at issue #73 https://github.com/pgj/freebsd-wifibox/issues/73
IIRC I noticed some error while building the firmware when I last compiled from weeks ago.
I'll get back to you ASAP.

@thesunexpress ?

Right, back to work!
Finally getting back to normalcy here. Spent yesterday & today staring at digital assaults from my console terminal -- tried a bunch of different things / configs when compiling wifibox-alpine:
/usr/bin/env LD_LIBRARY_PATH=/usr/ports/net/wifibox-alpine/work-default/freebsd-wifibox-alpine-2646128d92561b62fe4ea863aee9cad4b5fa8eda/work/bootstrap/lib  /usr/ports/net/wifibox-alpine/work-default/freebsd-wifibox-alpine-2646128d92561b62fe4ea863aee9cad4b5fa8eda/work/bootstrap/sbin/apk add  --initdb  --no-network  --no-cache  --force-non-repository  --allow-untrusted  --no-progress  --clean-protected  --root /usr/ports/net/wifibox-alpine/work-default/freebsd-wifibox-alpine-2646128d92561b62fe4ea863aee9cad4b5fa8eda/work/image-contents  --no-scripts  --no-chown  /usr/ports/distfiles/wifibox-alpine/baselayout-3.4.3-r1.apk /usr/ports/distfiles/wifibox-alpine/busybox-1.36.1-r1.apk /usr/ports/distfiles/wifibox-alpine/ifupdown-ng-0.12.1-r1.apk /usr/ports/distfiles/wifibox-alpine/iptables-1.8.9-r1.apk /usr/ports/distfiles/wifibox-alpine/iw-5.19-r1.apk /usr/ports/distfiles/wifibox-alpine/libcap2-2.69-r0.apk /usr/ports/distfiles/wifibox-alpine/libcap-utils-2.69-r0.apk /usr/ports/distfiles/wifibox-alpine/libcrypto3-3.1.2-r0.apk /usr/ports/distfiles/wifibox-alpine/libmnl-1.0.5-r1.apk /usr/ports/distfiles/wifibox-alpine/libnftnl-1.2.5-r1.apk /usr/ports/distfiles/wifibox-alpine/libnl3-3.7.0-r1.apk /usr/ports/distfiles/wifibox-alpine/libssl3-3.1.2-r0.apk /usr/ports/distfiles/wifibox-alpine/musl-1.2.4-r1.apk /usr/ports/distfiles/wifibox-alpine/openrc-0.48-r0.apk /usr/ports/distfiles/wifibox-alpine/socat-<IP_ADDRESS>-r1.apk /usr/ports/distfiles/wifibox-alpine/uds_passthru-0.1.1-r2.apk /usr/ports/distfiles/wifibox-alpine/radvd-2.19-r0.apk /usr/ports/distfiles/wifibox-alpine/dhcpcd-10.0.2-r0.apk /usr/ports/distfiles/wifibox-alpine/pcsc-lite-libs-1.9.9-r3.apk /usr/ports/distfiles/wifibox-alpine/wpa_supplicant-2.10-r5.apk /usr/ports/distfiles/wifibox-alpine/linux-lts-6.1.54-r0.apk
Abort trap
*** [/usr/ports/net/wifibox-alpine/work-default/freebsd-wifibox-alpine-2646128d92561b62fe4ea863aee9cad4b5fa8eda/work/image-contents/.done] Error code 134

make[2]: stopped in /usr/ports/net/wifibox-alpine/work-default/freebsd-wifibox-alpine-2646128d92561b62fe4ea863aee9cad4b5fa8eda
1 error

make[2]: stopped in /usr/ports/net/wifibox-alpine/work-default/freebsd-wifibox-alpine-2646128d92561b62fe4ea863aee9cad4b5fa8eda
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net/wifibox-alpine
*** Error code 1

Stop.
make: stopped in /usr/ports/net/wifibox-alpine

Both linux.ko & linux64.ko are kldload'ed. Needless to say, I'm so far not successful at getting wifibox to run on the Ryzen 7000 platform. The abort trap is a bit cryptic to me & the error code is most unfamiliar.
For what it is worth, and probably not related, we are having some significant issues with running btop++ on Ryzen 7000 as well. The code compiles fine, without any notable issues, but when the binary is executed, we've been confronted with different cryptic errors, aborts & core dumps. A fellow dev on a Ryzen 7000 platform with Fedora Linux OS was having very similar btop++ issues. The odd thing is, I have a Ryzen 7700 (non-X cpu), where both wifibox & btop++ ran fine previously. Really curious stuff. But again, probably unrelated, and just coincidental that these problems started around the same time.
In any case, the binary pkg of wifibox etc installs & runs fine, just cannot compile it with custom switches. Any ideas?

I think "Abort trap" above signals a crash of the given program, which is the native Linux (ELF64) APK utility.  This is run through the Linux compatibility layer of FreeBSD and the issue is probably associated it with servicing one of the (emulated) system calls.  There shall either be a core dump somewhere around, which could give use some insights about the location of the crash, or a log message on the crash in the FreeBSD dmesg output.
Could you please try to find those for me?
The fact that other programs crash on this CPU also let me believe that it is either a hardware issue or something that the base OS does not (yet) handle well.  In such cases the application itself cannot do too much, perhaps only hope for user-space workarounds.  Running 64-bit Linux of recent versions over FreeBSD's emulation layer is a gamble anyway, I simply consider myself lucky that I have been able to get away with this trick :-P

I think "Abort trap" above signals a crash of the given program, which is the native Linux (ELF64) APK utility. This is run through the Linux compatibility layer of FreeBSD and the issue is probably associated it with servicing one of the (emulated) system calls. There shall either be a core dump somewhere around, which could give use some insights about the location of the crash, or a log message on the crash in the FreeBSD dmesg output.
Could you please try to find those for me?
The fact that other programs crash on this CPU also let me believe that it is either a hardware issue or something that the base OS does not (yet) handle well. In such cases the application itself cannot do too much, perhaps only hope for user-space workarounds. Running 64-bit Linux of recent versions over FreeBSD's emulation layer is a gamble anyway, I simply consider myself lucky that I have been able to get away with this trick :-P

Good hints!
Have tested & can confirm build failure on:   AMD Ryzen 7700 (non-X model, this is recent, worked previously), AMD Ryzen 7950X3D, Intel Core i7-8565U (WTF?!?! Worked fine before...using it right now). All of which are either FreeBSD-13.2 STABLE or FreeBSD-14.0 STABLE.
I managed successful builds on i9-7940X & i9-8920X for both FreeBSD13.2 STABLE & FreeBSD-14.0 STABLE. Ditto AMD Ryzen 5950X (luckily?). I will now use these machines now to generate workable packages, I hope. Will try this approach to get the Edge Kernel build -- to get most recent firmware(s) working.
The build failures are all the same cryptic Abort trap -- which I can assure you, provides no useful dumps of any kind to analyze. I'll have to try some virtual environment(s) to see I can catch it in the act. Nothing is reported to dmesg or anywhere else.
FYI: The build environments I use are all identical, for consistency among the different systems I run. By necessity.
The issue we had with btop is likely 99.9999999% totally UNrelated.  It is looking more & more like recent FreeBSD base system libs/includes in cmake-files update. The older version of btop works fine still, where the most recent git pull would fail to enumerate cpus etc when the compiled binary is executed. Have been working with the btop devs to ferret-out what the heck the actual cause is -- as we have a hacky fix in place at the moment.

Here we go...
dmesg  :  https://pastebin.com/See0QQ9k
lsmod  :
wifibox:~# lsmod
Module                  Size  Used by    Not tainted
mt7921e                16384  0
mt7921_common          61440  1 mt7921e
mt76_connac_lib        53248  2 mt7921e,mt7921_common
mt76                   65536  3 mt7921e,mt7921_common,mt76_connac_lib
iptable_nat            12288  1
ip6table_nat           12288  1
ip6table_filter        12288  1
ip6_tables             20480  2 ip6table_nat,ip6table_filter
ipv6                  454656 12 [permanent]
wifibox:~#

ls -h /lib/firmware/mediatek/WIFI_*.bin  :
/lib/firmware/mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin
/lib/firmware/mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
/lib/firmware/mediatek/WIFI_RAM_CODE_MT7922_1.bin
/lib/firmware/mediatek/WIFI_RAM_CODE_MT7961_1.bin

and finally,  modprobe mt7921e  :
crickets
screenie:

And here is my wifibox-alpine package as built & installed on this machine.
Note:  I can confirm this custom compiled package is functional, as I use the exact same packages on my laptop -- where it works wonderfully.

Thanks for the feedback!  A couple of comments:

I was talking about the dmesg of the FreeBSD host.  When a program crashes (which is the Linux-native apk in our case) there shall be a log message about that in the logs.  Something like that, which is not a crash per se but a notice from the OS:

linux: jid 0 pid 57037 (apk): unsupported umount2 flags 0xa

Here is a log line on a crash, which happened for a FreeBSD-native binary:
pid 12666 (pulseaudio), jid 0, uid 1001: exited on signal 6

The modprobe mt7921e command on the Wifibox guest should not produce any output if everything goes well.  It simply loads the module and all of its dependencies to the memory.  The output of lsmod clearly shows that it happened as expected.

The behavior of the mt7921e module could be traced through the messages it sends to the dmesg of the Wifibox guest.  The lack of those messages indicates that the driver did not think that any supported device is available.  You may want to use the lspci -k command on the Wifibox guest to see if your wireless device is available there and the driver was successfully attached to that.  For example, this is the output from my instance where the line with iwlwifi and the associated device is the matter of interest:

# lspci -k
00:1f.0 Class 0601: 8086:7000
00:04.2 Class 0100: 1af4:1009 virtio-pci
00:04.0 Class 0100: 1af4:1001 virtio-pci
00:00.0 Class 0600: 1275:1275
00:04.3 Class 0100: 1af4:1009 virtio-pci
00:06.0 Class 0280: 8086:24f3 iwlwifi
00:04.1 Class 0100: 1af4:1009 virtio-pci
00:05.0 Class 0200: 8086:100f e1000

Sorry, I am not sure I understood your last comment right -- is it working, has the issue been solved?


Disposable analyzer

Added an disposable analyzer and fixing the disposing warnings
This is to fix Memory Leaks and Native Resource Leaks

@inforithmics Impressive! The analyzer allows a more fundamental approach to the dispose problem.
It is unfortunate this dispose is needed in so many places, but that is not the problem of this PR. We should look for ways in which we can limit the number of disposable classes.
btw, in general failing to call calling dispose does not immediately cause a memory leak. In most cases it will be called by the garbage collector at some point. For instance a pointer to a native byte array needs an IDispose because for the garbage collector it is not possible to see the size of the byte array, therefore it can not properly determine how urgently it should be disposed, but it will get disposed at some point.
The timer is an exception. It is not disposed at all. Something related to threading.

Another thing we need to do is to add a unit test for a memory leak in the mapcontrol. Something like this: https://stackoverflow.com/a/24871092/85325


Add OpenStack as a provider

+1 to this request please.

Doesn't tempest and rally tackle this already?

@alvico - What do me mean by tackle?  Do you have links so I can understand
what these are?
On Wed, Feb 18, 2015 at 3:57 AM, alvico<EMAIL_ADDRESS>wrote:

Doesn't tempest and rally tackle this already?
--
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/issues/58#issuecomment-74852889
.

--
Anthony F. Voellm (aka Tony)
Google Voice:<PHONE_NUMBER>
https://www.google.com/voice/b/0?pli=1#phones
Blog: http://perfguy.blogspot.com/

@voellm sure: Openstack tempest is the oficial Openstack testing suit: https://github.com/openstack/tempest/tree/master/tempest and Rally is kind of benchmarking tool for openstack as well https://wiki.openstack.org/wiki/Rally

Ok these look related but PerfKit is focused on performance only -and-
making it so workloads run on any Platform for easy comparisons.
./pkb.py --cloud=OpenStack --benchmarks=iperf
should run just as easily as
./pkb.py --cloud=GCP --benchmarks=iperf
We might be able to use some of the parts from tempest and or Rally to do
the automation.
Thanks for the pointers.
On Wed, Feb 18, 2015 at 4:20 AM, alvico<EMAIL_ADDRESS>wrote:

@voellm https://github.com/voellm sure: Openstack tempest is the
oficial Openstack testing suit:
https://github.com/openstack/tempest/tree/master/tempest and Rally is
kind of benchmarking tool for openstack as well
https://wiki.openstack.org/wiki/Rally
--
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/issues/58#issuecomment-74855500
.

--
Anthony F. Voellm (aka Tony)
Google Voice:<PHONE_NUMBER>
https://www.google.com/voice/b/0?pli=1#phones
Blog: http://perfguy.blogspot.com/

Running workloads on different platforms it's very interesting. Probably you should just use https://libcloud.apache.org/ for easy integration with any cloud provider, instead of custom drivers.

We looked at libcloud and its pretty cool.  If you are really interested we
surveyed about 50+ such libs in various forms.  A design point we've stuck
with however is to use the CLI.  With the CLI you get a full audit log that
can be copied and pasted to repro.  It also aids developers when tuning
workloads or debugging.
If you want the background on this check out the community meeting slides
here -
https://docs.google.com/presentation/d/1nRO9Cfn6ADX3ueSdvCiPP3fk03f7rDDHdzNvofd2zfs/edit#slide=id.g432b0946a_00
On Wed, Feb 18, 2015 at 3:24 PM, alvico<EMAIL_ADDRESS>wrote:

Running workloads on different platforms it's very interesting. Probably
you should just use https://libcloud.apache.org/ for easy integration
with any cloud provider, instead of custom drivers.
--
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/issues/58#issuecomment-74871209
.

--
Anthony F. Voellm (aka Tony)
Google Voice:<PHONE_NUMBER>
https://www.google.com/voice/b/0?pli=1#phones
Blog: http://perfguy.blogspot.com/

Awesome, thanks!!

Sorry, to bump in. I just wanted to add to the conversation, since I'm a contributor to both projects (PerfKit, and Rally), and I'm using Rally to run several workloads against some OpentStack private clouds.  As far as I am aware, tempest is more of a unit test framework, than a performance framework, so I won't compare it to any of these other two.
I'd say as it stands right now, and besides the point that Rally is only for OpenStack, Rally is currently very good at control-plane benchmarks (APIs, etc), such as measuring time to boot and delete instances, creating/deleting volumes, uploading images, etc, while it is still somewhat lacking at data-plane benchmarks (iperf, unixbench, spec*, etc), which I find is where PerfKit excels at.
Rally does have in its roadmap[1] to improve data-plane benchmarking, and I know there's already some support built-in for it.  Also, I believe that PerfKit also wants to improve at including more of these control-plane scenarios.
The way I see it, for what is worth, is that they complement each other. PerfKit has to take a common denominator since it's built to run against multiple cloud providers, and might lack the coverage of some control-plane benchmarks that we see in Rally, but it's awesome at data-plane benchmarks. The fact remains is that Rally is, still today and for the short term future, only for OpenStack.
[1] https://docs.google.com/spreadsheets/d/16DXpfbqvlzMFaqaXAcJsBzzpowb_XpymaK2aFY2gA2g/edit#gid=0
[2] Up to date docs for Rally: http://rally.readthedocs.org/en/latest/

I definitely will not call tempest unit testing... right now it's the basis for testing and QAing openstack deployments, any way. I think we need more open frameworks for cloud testing no matter what so we can establish proper metrics beyond marketing data, I'm totally in favour of more initiatives on that direction.
cheers

+1000 this:
" I think we need more open frameworks for cloud testing no matter what so we can establish proper metrics beyond marketing data, ..."

+1, I need this for sure.

Hi guys, I'm working on that! I think simple version of that can be done to end of next week.

Nice!

klvio - Can you please assign the issue to yourself?  I may need to add you to an access group in GitHub so if it does not work please let me know.
In the meantime to indicate it is being worked I assigned it to me as a proxy.
One last step... to take the code into dev/master please sign the CLA here as per the CONTRIBUTING.md file - https://cla.developers.google.com/about/google-individual?csw=1
Many thanks for contributing!

Marcin - It looks like you work at Intel (?) which has signed the CLA so you should be able to as well.

@voellm i don't have option to assign this issue to me. Yes, I'm working in Intel.

Marcin - I'll get you added to a collaborators list which will give you
some extra permissions to the project.  That will allow me to assign the
feature bug to you properly.  Please accept the PerfKit-Collaborators@
invite when you see it.
On Mon, Mar 23, 2015 at 1:31 AM, Marcin Karkocha<EMAIL_ADDRESS>wrote:

@voellm https://github.com/voellm i don't have option to assign this
issue to me. Yes, I'm working in Intel.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/issues/58#issuecomment-84883904
.

--
Anthony F. Voellm (aka Tony)
Google Voice:<PHONE_NUMBER>
https://www.google.com/voice/b/0?pli=1#phones
Blog: http://perfguy.blogspot.com/

Marcin - Thanks for doing this.  I've assigned it to you not that we have the right permissions in place.  if you have an idea of when it might land you can mark the milestone now as well.

+1 for this feature.
@kivio do you already have the code ? i'm willing to test it

@ytsarev Yes, i have part of code in my fork on branch openstack-integration. This code is little old but i plan to rebase it to new version of dev branch in short time. Currently i have proper runned 16 tests on my OpenStack setup.

Cool. Thanks for working on this. We have DigitalOcean pretty close to
check-in a branch off dev (done by klausw) and Rackspace has their provider
pretty close as well.
If you need help please feel free to ping me.
On Jun 3, 2015 6:21 AM, "Marcin Karkocha"<EMAIL_ADDRESS>wrote:

@ytsarev https://github.com/ytsarev Yes, i have part of code in my fork
on branch openstack-integration. This code is little old but i plan to
rebase it to new version of dev branch in short time. Currently i have
proper runned 16 tests on my OpenStack setup.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/issues/58#issuecomment-108406354
.

@voellm currently i'm going for honeymoon vacations for 4 weeks @mateusz-blaszkowski and @emaeliena will be my backup. Please add their to CLA

Time to close this issue?

I think yes. I have few fixes for that driver but it's separate subject


New version, no Photos > Nature

What happend? :( it was great feature, and very fast
Is there any chance to connect to any other API?

@halol you can use flickr keywords

@timuric I was loving that function too: much more faster than the flickr option and the pics where in a higher resolution. It's a dream that it will come back?

@halol @iperdiscount one of the goal of this refactoring was to reduce the size of the plugin. However Nature plugin was providing collection of photos from https://unsplash.com which is also available as a plugin https://github.com/fhuel/unsplash-it-sketch
which I can add the the Photos section without increasing the size of the overall package, since it is fetching content from the website

:+1: I miss the old one. Urban/Nature etc, etc.

I really miss the old one

I definitely understand trying to get the plugin size down, but the photos the plugin is now pulling from Flickr are low-res and almost always pixelated beyond recognition. Any chance we could pull in higher-res versions from the Flickr API?

I miss the old one too :( Flikr always comes out super blurry

I would look into adding high res photos from unsplash


Replace current system with cookies

Since Bob has approved these changes, I'm going to merge. YEEET


Pico - long press, possible?

Pretty sure if it doesn't work now, it's because it's not possible but we never know...
Is there any way to have long press considered as a different function than single press on the Pico remote?

Lutron does not have any explicit support for double press, long press etc. If you press too long on certain buttons it will go into pairing or other modes for trim adjustments. Ra2 Select also uses double press to go to 100% instead of last level.
I think some potential is there to do it based on events in HA, but I think that is better left outside of the component. There is already a lot of feature creep in this component.

There was already some discussion on this topic here:
https://github.com/upsert/lutron-caseta-pro/issues/15#issuecomment-450537367
I implemented a very simple approach to provide short vs long press for turning my Receiver (& Bluetooth adapter to automatically connect my Amazon Echo) on/off for easy music and volume adjustment (e.g. Dimmer buttons of the pico are my volume control) . . . it made a very useful and slick Wall mounted volume control via Lutron Pico remotes.
Also some more info. on my implementation here:
https://community.home-assistant.io/t/fixed-delay-between-hass-services-call-s-in-a-python-script/21121/8?u=raerae1616
Hope this helps!

I realized this is closed but I would like to integrate a dim up and down feature when long pressed from the pico remote and perhaps take advantage of the new light dimming feature in .106.

@silfa718 here is a small sample code that I use to implement Long Press via Python Script.  It's not built in, but it works . . . hopefully this helps:
#Obtain status of the Pico Remote
PICO_ENTITY_ID = "sensor.living_room_audio_pico";

pico_status = hass.states.get(PICO_ENTITY_ID)
pico_state_value = int(pico_status.state)

#DEBUG Notification via Pushover
#hass.services.call("notify", "pushover", {"message": "Pico Switch Debug: [Pico={0}]".format(pico_state_value)})

long_press_secs = 3  #How many seconds is a Long Press
wait_refresh_secs = .25 #How often do we want to check for Long Press status
wait_total_count = long_press_secs / wait_refresh_secs

#NOTE: Center scene button == 2 (Center Scene Button)
if pico_state_value == 2:
	is_long_press = False
	wait_counter = 0

	#We wait and watch for a long press...but to be responsive we check our status in short intervals until we know either
	#	if the button was released (short-press/aborting a long press), or eventually the long-press threshold is exceeded...
	#NOTE: We loop in a timed increment to provide a balance between quick response whenever the button is released
	#		and the tight loop element... htough the Python Script will copmletely block the HomeAssistant processing
	#		thread during the sleep() time.
	#NOTE: we need to refresh from the HASS States to know if it's still pressed
	while wait_counter < wait_total_count and int(hass.states.get(PICO_ENTITY_ID).state) == pico_state_value:
		wait_counter = wait_counter + 1
		#NOTE: time.sleep() param is in Seconds!
		time.sleep(wait_refresh_secs)

	#After we're done watching for long press, initialize long_press based on how long the button was pressed.
	is_long_press = wait_counter >= wait_total_count

	if is_long_press:
		#When the center scene button is long-pressed, we will turn the entire Home Theater Off!
		hass.services.call("light", "turn_on", {
			"entity_id": "light.some_light_to_dim",
			"brightness_step_pct": 25
		})


directions for building and deploying the RI

We need to create a "getting started" doc that explains:

[ ] source artifacts (folders, script, etc.)
[ ] how to provision using the scripts
[ ] how to build the source
[ ] how to run the sample

@lbrader provide an outline for @JohnPWSharp

Added outline yesterday.  Working on the validation section with Streaming Analytic's and Hive Query

I have a couple of initial comments from writing a step-by-step guide for building and deploying the code:

IMHO it is inadvisable to provide default values for the service bus namespace (fabrikam-ns01) and the storage account (fabrikamstorage01) because they could cause clashes (they are used to generate URLs so they need to be unique)

Provisioning the event hub (Provision-EventHub.ps1) fails. The CreateEventHubIfNotExists seems to fall over (it retries several times before giving up). I have tried creating the event hub manually first (eventhub01) but the script still falls over at this point.

Additional information about the failure in CreateEventHubIfNotExists. If you try running the script enough times, it eventually succeeds! (is there a timing issue?)

opened #65 per @JohnPWSharp's recommendation.

updated @JohnPWSharp   updated larry/doc-provision-run/build-deploy-iot.md validation sections using Streaming Analytics and Hive query.

Provisioning the event hub seems to work today (it times out at most once with a 401 Unauthorized exception but works ok on retry). I guess something was just feeling a little off-colour yesterday!

Yay! (I think.)


vue的tags组件router-link标签跳转已打开页面不重新加载数据,有什么好方法吗？

What problem does this feature solve?
需要让页面不进行重新加载
What does the proposed API look like?

                {{item.title}}

                标签选项

关闭其他
关闭所有

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.

set router parms ，if true update component key value


[flake] An error occurred during the fetch of repository... return code 256, stderr: Timed out

seen once on 2020-07-28 in macos bazel build: log
Many failures like this due to timeouts - maybe just a transient network problem?  Build duration ~15 minutes
Loading: 101 packages loaded
INFO: Repository local_config_cc instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule cc_autoconf defined at:
  /Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/cc_configure.bzl:143:30: in <toplevel>
ERROR: An error occurred during the fetch of repository 'local_config_cc':
   Traceback (most recent call last):
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/cc_configure.bzl", line 123
		configure_osx_toolchain(<2 more arguments>)
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/osx_cc_configure.bzl", line 138, in configure_osx_toolchain
		fail(<1 more arguments>)
wrapped_clang failed to generate. Please file an issue at https://github.com/bazelbuild/bazel/issues with the following:
return code 256, stderr: Timed out, stdout:
ERROR: /Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/BUILD:93:6: no such package '@local_config_cc//': Traceback (most recent call last):
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/cc_configure.bzl", line 123
		configure_osx_toolchain(<2 more arguments>)
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/osx_cc_configure.bzl", line 138, in configure_osx_toolchain
		fail(<1 more arguments>)
wrapped_clang failed to generate. Please file an issue at https://github.com/bazelbuild/bazel/issues with the following:
return code 256, stderr: Timed out, stdout:  and referenced by '@bazel_tools//tools/cpp:toolchain'
ERROR: /Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/BUILD:93:6: no such package '@local_config_cc//': Traceback (most recent call last):
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/cc_configure.bzl", line 123
		configure_osx_toolchain(<2 more arguments>)
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/osx_cc_configure.bzl", line 138, in configure_osx_toolchain
		fail(<1 more arguments>)
wrapped_clang failed to generate. Please file an issue at https://github.com/bazelbuild/bazel/issues with the following:
return code 256, stderr: Timed out, stdout:  and referenced by '@bazel_tools//tools/cpp:toolchain'
ERROR: Evaluation of query "deps(//google/cloud/...)" failed: errors were encountered while computing transitive closure
Loading: 103 packages loaded
Loading: 103 packages loaded
2020-07-28T17:26:11Z: bazel fetch failed with 2
2020-07-28T17:26:11Z: Fetch bazel dependencies [2/3].
Loading: 0 packages loaded
INFO: Repository local_config_cc instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule cc_autoconf defined at:
  /Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/cc_configure.bzl:143:30: in <toplevel>
Loading: 0 packages loaded
ERROR: An error occurred during the fetch of repository 'local_config_cc':
   Traceback (most recent call last):
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/cc_configure.bzl", line 123
		configure_osx_toolchain(<2 more arguments>)
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/osx_cc_configure.bzl", line 138, in configure_osx_toolchain
		fail(<1 more arguments>)
wrapped_clang failed to generate. Please file an issue at https://github.com/bazelbuild/bazel/issues with the following:
return code 256, stderr: Timed out, stdout:
ERROR: /Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/BUILD:93:6: no such package '@local_config_cc//': Traceback (most recent call last):
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/cc_configure.bzl", line 123
		configure_osx_toolchain(<2 more arguments>)
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/osx_cc_configure.bzl", line 138, in configure_osx_toolchain
		fail(<1 more arguments>)
wrapped_clang failed to generate. Please file an issue at https://github.com/bazelbuild/bazel/issues with the following:
return code 256, stderr: Timed out, stdout:  and referenced by '@bazel_tools//tools/cpp:toolchain'
ERROR: /Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/BUILD:93:6: no such package '@local_config_cc//': Traceback (most recent call last):
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/cc_configure.bzl", line 123
		configure_osx_toolchain(<2 more arguments>)
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/osx_cc_configure.bzl", line 138, in configure_osx_toolchain
		fail(<1 more arguments>)
wrapped_clang failed to generate. Please file an issue at https://github.com/bazelbuild/bazel/issues with the following:
return code 256, stderr: Timed out, stdout:  and referenced by '@bazel_tools//tools/cpp:toolchain'
ERROR: Evaluation of query "deps(//google/cloud/...)" failed: errors were encountered while computing transitive closure
Loading: 0 packages loaded
Loading: 0 packages loaded
2020-07-28T17:27:36Z: bazel fetch failed with 2

[...]

INFO: Analysis succeeded for only 1 of 422 top-level targets
INFO: Analyzed 422 targets (10 packages loaded, 4062 targets configured).
INFO: Found 1 target and 0 test targets...
[0 / 2] [Prepa] BazelWorkspaceStatusAction stable-status.txt
Target //google/cloud/storage:nlohmann_json_include_hierarchy up-to-date:
  bazel-bin/google/cloud/storage/google/cloud/storage/internal/nlohmann_json.hpp
ERROR: command succeeded, but there were loading phase errors
INFO: Elapsed time: 907.894s, Critical Path: 2.66s
INFO: 1 process: 1 darwin-sandbox.
FAILED: Build did NOT complete successfully
ERROR: No test targets were found, yet testing was requested
FAILED: Build did NOT complete successfully
2020-07-28T17:44:02Z: build script reported errors.

[ID: 1732382] Build finished after 2350 secs, exit value: 1

Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
[10:44:04] Collecting build artifacts from build VM
Build script failed with exit code: 1

Actually, we must have seen this before, at least @devjgm filed a bug with the Bazel folks:
https://github.com/bazelbuild/bazel/issues/11520

No repeats for 90d, closing.

This happened again on 2020-12-14: https://source.cloud.google.com/results/invocations/01bb3e86-c6ef-4942-9fe5-c3b0d993f1c4/targets/cloud-cpp%2Fgithub%2Fgoogle-cloud-cpp%2Fmaster%2Fmacos%2Fbazel/log
https://github.com/bazelbuild/bazel/issues/11520 suggests using a custom bazel binary with a higher timeout... we could try that, although making the timeout configurable seems better.

also, they suggest the timeout is 30 seconds but the only timestamps in the log around the initial error are 30 minutes (+20 seconds) apart, which is kind of fishy...  and hard to analyze without more granular timestamps; I asked the bazel folks about additional debugging.

Again on 2020-12-17: https://source.cloud.google.com/results/invocations/74adf92d-d27f-41a0-8efb-4d9756e7c5fa/targets/cloud-cpp%2Fgithub%2Fgoogle-cloud-cpp%2Fmaster%2Fmacos%2Fquickstart-bazel/log
interval between the 2 surrounding timestamps is a bit under 30 minutes (29:20)

This is a CI test flake, not a user-facing bug. Relabeled as cleanup.

No repeat in 90d, closing.


bug: Fix all the TODOs on "to_eth_transaction" function

Bug Report
Kakarot RPC version:

Current behavior:
Missing many parts for the full EthTransaction type
https://github.com/kkrt-labs/kakarot-rpc/blob/f5b79eac889c2665bc854fadfbe39b7e9e50af98/crates/core/src/models/mod.rs#L349
Expected behavior:
Improve real data from the Blockchain
Steps to reproduce:

Related code:

insert short code snippets here

Other information:

This issue's scope is not well-defined. As such, I've made it a timebox-1day
What does it mean? It means this issue has some amount of research and exploration linked with it.
Developer will have to:
Go through the to_eth_transaction in the models folder and investigate each TODO.
And propose in this issue which fields can be fixed.


Parse date, add placeholder links in nav/footer

I tried deploying this but it didn't seem to have any effect. It's possible that this was a cdn cashing issue again. I'll try again tomorrow.

I tried revering this and the client works again. So I'll revert it for now.


[CT-1671] [Bug] Nested macro in if is_incremental() block results in false negative state:modified selection when macro is modified

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
If you have a macro that's nested in an if is_incremental() block - it is not added to the model's depends_on node manifest
Expected Behavior
Model that depends on a modified macro should be executed even if the macro is nested in the is_incremental() condition.
Steps To Reproduce

Setup models and macros:

-- macros/cond.sql
{% macro cond() %}
    where 1 = 1
{% endmacro %}

-- models/foo.sql
{{ config(materialized = 'incremental') }}

select 1 as id
{% if is_incremental() %}
{{ cond() }}
{% endif %}

-- models/bar.sql
{{ config(materialized = 'incremental') }}

select 1 as id
{{ cond() }}

dbt_project.yml has nothing significant.

Run dbt and move state file for a subsequent run.

$ dbt run --full-refresh
20:28:57  Running with dbt=1.3.0
20:28:58  Found 2 models, 0 tests, 0 snapshots, 0 analyses, 304 macros, 0 operations, 0 seed files, 0 sources, 0 exposures, 0 metrics
20:28:58
20:29:02  Concurrency: 8 threads (target='dev')
20:29:02
20:29:02  1 of 2 START sql incremental model dbt_jyeo.bar ................................ [RUN]
20:29:02  2 of 2 START sql incremental model dbt_jyeo.foo ................................ [RUN]
20:29:05  2 of 2 OK created sql incremental model dbt_jyeo.foo ........................... [SUCCESS 1 in 3.44s]
20:29:15  1 of 2 OK created sql incremental model dbt_jyeo.bar ........................... [SUCCESS 1 in 13.19s]
20:29:15
20:29:15  Finished running 2 incremental models in 0 hours 0 minutes and 17.04 seconds (17.04s).
20:29:15
20:29:15  Completed successfully
20:29:15
20:29:15  Done. PASS=2 WARN=0 ERROR=0 SKIP=0 TOTAL=2

$ mv target target_old

Modify macro:

-- macros/cond.sql
{% macro cond() %}
    where 2 = 2
{% endmacro %}

Run dbt comparing state to the above run.

$ dbt run -s state:modified --defer --state target_old
20:31:50  Running with dbt=1.3.0
20:31:51  Found 2 models, 0 tests, 0 snapshots, 0 analyses, 304 macros, 0 operations, 0 seed files, 0 sources, 0 exposures, 0 metrics
20:31:51
20:31:55  Concurrency: 8 threads (target='dev')
20:31:55
20:31:55  1 of 1 START sql incremental model dbt_jyeo.bar ................................ [RUN]
20:31:59  1 of 1 OK created sql incremental model dbt_jyeo.bar ........................... [SUCCESS 1 in 4.30s]
20:31:59
20:31:59  Finished running 1 incremental model in 0 hours 0 minutes and 8.10 seconds (8.10s).
20:31:59
20:31:59  Completed successfully
20:31:59
20:31:59  Done. PASS=1 WARN=0 ERROR=0 SKIP=0 TOTAL=1

Notice model foo which has cond() nested in the is_incremental() block is not selected even though the macro it uses has been modified.
Relevant log output
No response
Environment
- OS: macOS
- Python: 3.8.7
- dbt: 1.3, 1.2

Which database adapter are you using with dbt?
snowflake
Additional Context
Interestingly if we peek at both manifest.json files - we see that the depends_on for model foo has a missing macro.my_project.cond string in the macros key in the current state - I think this should actually flag it for state:modified yes? The macro.my_project.cond appearing after macro.dbt.is_incremental in the previous / deferred to state is reminiscent of https://github.com/dbt-labs/dbt-core/issues/5202

Related to https://github.com/dbt-labs/dbt-core/issues/5922

Another related (older) issue: https://github.com/dbt-labs/dbt-core/issues/5079
The right move for now might just be to document this as a known limitation here: https://docs.getdbt.com/reference/node-selection/state-comparison-caveats
Workaround
-- models/foo.sql
{{ config(materialized = 'incremental') }}

-- force this model to take a dependency on the 'cond()' macro
-- {{ cond() }}

select 1 as id
{% if is_incremental() %}
{{ cond() }}
{% endif %}

Explanation
This has to do with some deep-down fundamentals of how we parse models today, which is actually by rendering Jinja. Any instances of {% if execute %} act as a "logic gate" that gets completely skipped over at parse time. is_incremental() contains an implicit if execute check here: https://github.com/dbt-labs/dbt-core/blob/748a9328117d601560f056f3186e6a52572ff7a2/core/dbt/include/global_project/macros/materializations/models/incremental/is_incremental.sql#L4
dbt does Jinja rendering at parse time to capture macro calls, principally for ref/source/config, but for also to populate depends_on.macros. If there are logic gates at parse time that the Jinja skips over, parsing completes without dbt knowing they're there. To get around this, we'd need to fundamentally change how we parse complex Jinja models, and switch to statically analyzing the code, whether with Jinja's AST or another mechanism we build.


Several paper typos

Fixing these would help better formula understanding:

In Definition 1. in the last sentence, the summation is from i to n_c not n
In Problem 1. in the last sentence, the summation is from j to n_p not K
What is Figure. 11? It is not described in text.

Thank you.

Hello, thank you for pointing out that. For Figure 11, we should have described in the discussion about distance alignment, but we wrongly referred to Figure 12. We will fix it.


ctkBackTrace compilation warning

C:\work\D\MSVTK\MSVTK-Superbuild-Debug-64bits-nightly-4.7.3-CMake 2.8.8\CTK\Libs\Core\ctkBackTrace.cpp(92): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data

Closing. Most likely fixed by https://github.com/commontk/CTK/commit/d6c078190f8ec8bd68a7320e8b2d8eff5fa4964a


Fleece.Redis

[x] First iteration of codec for redis
[x] fieldStr
[x] fieldInt64
[x] fieldBool
[x] Tests of simple mappings

First step to Redis compatible Fleece. Thought here is that this would actually be sweet to max with ofJson/toJson.

It's not generic enough due to the type constraints on how redis works


ratelimitpolicy: new action types

What
Added rate limit action types:

metadata
remote_address
request_headers

Added CRD validation oneOf validation type as from here:
Precisely one of source_cluster, destination_cluster, request_headers, remote_address, generic_key, header_value_match, dynamic_metadata, metadata, extension must be set.
Why
Currently only generic_key was available. Still other types are missing, for example, header_value_match
New action types provide features for the configuration of the rate limit service
Verification Steps
make local-setup

Create RateLimitPolicy and one virtual Service (toystory)
k apply -f examples/toystore

Annotate the VS to reference the RLP
k annotate virtualservice toystore kuadrant.io/ratelimitpolicy=toystore

Check gateway for injected rate limit configuration
$ istioctl proxy-config routes $(kubectl get pods -l istio=kuadrant-system -n kuadrant-system -o jsonpath='{.items[0].metadata.name}') -n kuadrant-system -o json | yq e -P '.[] | select(.name == "http.8080") | .virtualHosts[] | select(.name == "*.toystore.com:80") | .rateLimits' -
- stage: 0
  actions:
    - genericKey:
        descriptorValue: yes
        descriptorKey: vhaction
    - requestHeaders:
        headerName: :path
        descriptorKey: path
    - remoteAddress: {}
- stage: 1
  actions:
    - metadata:
        descriptorKey: user_id
        metadataKey:
          key: envoy.filters.http.ext_authz
          path:
            - key: ext_auth_data
            - key: user_id

Check invalid ratelimit policy is rejected

The  following rate limit policy spec is invalid because it does not comply with the oneOf action validation. Trying to create it should be rejected:
k apply -f - <<EOF
---
apiVersion: apim.kuadrant.io/v1alpha1
kind: RateLimitPolicy
metadata:
  name: toystore
spec:
  routes:
    - name: add-toy
      rateLimits:
        - stage: POSTAUTH
          actions:
            - remote_address: {}
              generic_key:
                descriptor_key: add-toy
                descriptor_value: "yes"
  limits: []

EOF

The RateLimitPolicy "toystore" is invalid: <nil>: Invalid value: "": "spec.routes.rateLimits.actions" must validate one and only one schema (oneOf). Found 2 valid alternatives

Verified steps locally. So changes look good to me. In the example is there a reason we put the metadata descriptor in the preauth stage?

good catch. Does not make any sense to have that metadata action fetching userID from the ext-authz filter before the ext-authz filter is run

Fixed, metadata action moved to POSTAUTH stage


DateTime picker opens with wrong values on certain conditions

Ionic version:  (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
DateTime picker opens with wrong values when both of these conditions are met:

model has time value between '00:00' and '00:59' (e.g. '00:27', '00:27Z', '2017-03-24T00:27')
picker format is an 12-hour format (e.g. 'h:mm A', 'h:mm a', 'YYYY-MM-DD h:mm A')

example:
when data bound to ngModel is '00:27' and picker format is 'h:mm A', picker opens as '1:27 am'
Expected behavior:
when data bound to ngModel is '00:27' and picker format is 'h:mm A', picker should open as '12:27 am'
Steps to reproduce:

plunkr with reproducer
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
iIonic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v7.7.2
Xcode version: Xcode 8.2.1 Build version 8C1002

Thanks for opening an issue with us, we will look into this (:

Fyi, this issue also resolved by:
https://github.com/driftyco/ionic/pull/10812
@jgw96 - I would love if someone could take a look at this pull request.


very promising

very promising project. unfortunately i dont use gnome. what you think, is it possible to get this tor run on plasma as well?

you should mention to first git clone, than change in the directory and than run the commands for install.
i tried it, but it dont work for my keyboard.
i get this error:
Traceback (most recent call last):
  File "/home/lupo/Downloads/ite8291r3-gui/../../.local/share/ite8291r3_gui/ite_tray.py", line 201, in <module>
    ite = ite8291r3.get()
  File "/home/lupo/.local/lib/python3.9/site-packages/ite8291r3_ctl/ite8291r3.py", line 298, in get
    raise FileNotFoundError("no suitable device found")
FileNotFoundError: no suitable device found

i have a tuxedo book xp17 gen12. its a CLEVO PC70DS-D.
lsusb -d 048d:
Bus 001 Device 002: ID 048d:8910 Integrated Technology Express, Inc. ITE Device(829x)

i have tuxedo-keyboard and tuxedo-keyboard-ite installed. the fn key toggle works with this.
but this option is very very limited. i have high hopes in this project.

This app uses ite8291r3-ctl which only supports 048d:6004 and 048d:ce00. For your device check the OpenRGB project: https://gitlab.com/CalcProgrammer1/OpenRGB/-/wikis/Clevo-Per-Key-Keyboard . Also this one https://github.com/matheusmoreira/ite-829x . If you have problems while using the device try uninstalling/disabling tuxedo-keyboard module.

Also thanks for your comments, I will modify installation section. Also I can add some checks if user has compatible devices.


needs a proper hex value

cinnamon-settings backgrounds shits the bed otherwise.

Thank you!

Sure thing! Glad to help :)


⚠ Bofrost.lu has degraded performance

In eea93b7, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2046 ms

Resolved: Bofrost.lu performance has improved in da2c1a0 after 32 minutes.


Allow customising the HTTP Cache-Control defaults.

This is my proposed fix for #3501. It allows the default Cache-Control header to be customised using a yaml config array. You can choose true/false to enable or disable control settings, or you can set values.
For example:
HTTP:
  CacheControl:
    max-age: 0
    must-revalidate: true
    no-transform: false

Would produce Cache-Control: max-age=0, must-revalidate
EDIT: I've noticed that this would actually produce: Cache-Control: must-revalidate, because 0 is treated as false. Keen to hear thoughts before attempting to fix.

@jedateach any progress on this?

@dhensby no sorry - this is one of quite a few PRs to sort out at some stage.

e766658ee3b9e70988b79d99d75124857f2a7ccc

TESTS :(


Fixed code indentation in ParquetCachedBatchSerializer

Signed-off-by: Raza Jafri<EMAIL_ADDRESS>

I had made it a draft because of https://github.com/NVIDIA/spark-rapids/pull/2459 PR. But now that I have to rework https://github.com/NVIDIA/spark-rapids/pull/2459. Its fine for this to go in first, I will change it

build


aur-search: Fix order of fields so that votes are correctly shown

One more bug:

Right, whenever I change the jq part the short options need changing too... maybe some more robust approach (another array with read -a) would be useful. Until then, thanks for the fix. :+1:


History Repeats Itself

I'm in love with myself so I visit my site often, thus I see the same stuff in history every few rows:

Some consolidation logic would be really nice.

I bet those are different urls. Can you confirm?

Damn, you're right...but the <title> tags on each of those pages isn't "DWB - JavaScript Consultant", it's "Modernization of Reactivity" (incorrect), "DWB - JavaScript Consultant" (correct), and "JavaScript Bind Function" (incorrect)

Oh, you know what?  Maybe this is because I do AJAX page loads.  Process goes like:

Load site initially
Click to other page on site:
preventDefault and then do an XHR to get that URL's full content (no API or anything)
Update the URL via History API, then parse out the contents of <title> and content DIV to place those items

I'm pulling some naive stuff so it's probably my fault.

Feel free to close, I think this may just be the way I do things.

Should investigate. It's possible that we're not updating the page title in time when navigations occur and history is added to the profile service.


Bower components is not ignored

Why is that?

I have to take a look at it. I forget to add it to the .gitignore file I guess.

Fixed! Thanks!


Adding a new key with UID

https://www.meilisearch.com/docs/reference/api/keys#body
The UI is missing the ability to set the uid field.

@rbozan
The new version v0.7.1 has been published. Hope you can try it.


fix it

https://github.com/oddlama/vane/blob/2a32f52124c60459e0a6e5597f69fc24b8e248e4/build.gradle#L50
with remapped sh file

https://github.com/oddlama/vane/blob/2a32f52124c60459e0a6e5597f69fc24b8e248e4/build.gradle#L37
it too

It is unclear what you are asking and probably related to your second issue (#45). Please don't open multiple issues for the same problem. This isn't a forum but an issue tracker. Please try to provide the necessary information in a concise way in the top level post, and not as comments in unrelated issues.


client has run out of available brokers to talk to

Versions
Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.

Sarama
Kafka
Go

Configuration
What configuration values are you using for Sarama and Kafka?

Logs
When filing an issue please provide logs from Sarama and Kafka if at all
possible. You can set sarama.Logger to a log.Logger to capture Sarama debug
output.
logs: CLICK ME

Problem Description

@leo-zj We're experiencing the same issue, did you find a solution for this?

@leo-zj We're experiencing the same issue, did you find a solution for this?


feat: add info servicer and endpoint with version details

What this PR does / why we need it:
Expose caikit version via API for ease of debugging from users
Special notes for your reviewer:
If applicable:

[x] this PR contains documentation
[X] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

I don't have merge powers so if @gabe-l-hart or @gkumbhat you can merge this in, that would be much appreciated!

@anhuong Seems to be some test syntax errors, otherwise can help merge

Thanks @evaline-ju ! Fixed the issue and thanks Gabe for rerunning the build that failed


ARTEMIS-3075 Skip temporary queues scale down

One of the benefits of scale-down as opposed to normal fail-over is that non-persistent messages are preserved. In normal fail-over only persistent messages are preserved.
It is, of course, normal for temporary queues to disappear when a client disconnects, but it also might be nice for scale-down to preserve these temporary queues so clients can reconnect and continue their work since the client itself was not responsible for the disconnect. For normal clients using temporary queues who get disconnect because some kind of spurious network issue they are able to reconnect back to their temporary queue unless the connection ttl has elapsed and the broker has cleaned up the queue. This is discussed in the documentation.

@jbertram I see your point my only concern is that the scale-down transforms temporary queues in not temporary queues. If no client will consume those queues after the scale-down they will never be cleaned up.

@brusdev, that's definitely a problem. If we decide to support temporary queues we would need to fix that.
I also just realized that any temporary queue created during scale-down would not be directly tied to a client connection which means we'd have to clean them up some other way. We already have org.apache.activemq.artemis.core.postoffice.impl.PostOfficeImpl.AddressQueueReaper which could probably do the work, but it might be kind of fragile.
At this point it's probably best to just skip the temp queues as you've done. Keeping them would be nice, but it would almost certainly be a mess to implement.


Add basic USDR repo requirements

We’re working on making sure active repos conform to USDR’s guidelines (https://policies.usdigitalresponse.org/data-and-software-guidelines). This mostly adds licensing info, code of conduct, contributing guidelines, etc.
At least one thing here needs updating before merging: the lead maintainer’s name and GitHub handle in README.md. :)
Once the team is comfortable with these changes and merges, I’ll cherry-pick this onto master as well. (Side note: it would be great to change the default branch to main, but I realize partners are actively deploying off master, so that may not be an easy change to make.)

👍 Anything else that needs to change here?

LGTM


Added Square.Moshi-1.8.0

Added Android Square.Moshi
Package: https://mvnrepository.com/artifact/com.squareup.moshi/moshi/1.8.0
Repo: https://github.com/square/moshi

Thanks for this PR!
Really looking forward to this binding!
One question, why did you bind version 1.8.0 instead of 1.10.0?
https://mvnrepository.com/artifact/com.squareup.moshi/moshi
Thanks

I will add other version too. this was minimal dependency for one of packages i need...

Thanks 👍


Feature request: Support for Promise.allSettled()

Hi! Would support for Promise.allSettled() be an acceptable increase in scope for this package? It is a useful alternative to Promise.all when you want to work with all rejected promises, and not just the first one.
I'm considering implementing this myself and contributing it as a pull request, but I don't want to go ahead before knowing if this is okay. Implementation-wise there won't be much of a difference between wrapping Promise.allSettled() and Promise.all(), since they both take an iterable of promises or values and return an array with the results in the same order, though the types would need to be different.

@tobinus sounds great, go ahead and open a PR, I'll be happy to add this feature
Please consider the following when implementing your change

Backward compatibility  / breaking changes - the existing tests should support you there
Relevant tests for the new features
Add the relevant documentation to the Readme file
Thanks.

@marcelowa Thanks for the reply! I'll give it a try.


fix(paginator): update page index if invalid after length change

Updates the page index of a paginator if its length changed to something where the index isn't valid anymore (e.g. the user is on the last page and the amount of pages becomes smaller).
Fixes #14520.

I've been looking at @andrewseguin 's comments and I think that concern would be addressed by moving L136 to L130 (and L139 to L141, so that all the new code happens inside of the then callback.  The potential race condition arises because you're computing maxPageIndex and looking at the current _pageIndex value during the first tick but changing them during the second.  If you do the comparison and change in a single tick, the race is eliminated.

@crisbeto it looks like your PR has fallen out of date please rebase the PR.

I've rebased the PR.


chore: multi dotnet versions

:spiral_notepad: Description
multiple dotnet versions
:white_check_mark: Checklist

[ ] Linked to any related issues in the PR description
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Breaking changes were made

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

Please upload report for BASE (main@71bcbec). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             main        #4   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?         1
  Lines           ?         4
  Branches        ?         2
========================================
  Hits            ?         4
  Misses          ?         0
  Partials        ?         0

Flag
Coverage Δ

7.0.x
100.00% <ø> (?)

8.0.x
100.00% <ø> (?)

unittests
100.00% <ø> (?)

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

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


URL for the issue that closes a PR does not appear to be present in the legacy API call

The error was triggered directly following this test:
if card_type == "pull":

The error is referring to an "Issue" object but the error occurred in code where the card_type would have to be a pull request.
This makes me feel that there may be an init issue with card_type variable
start: 0 cards processed: IQSS/dataverse, Column ▶ SPRINT READY
Traceback (most recent call last):
File "/home/perftest/.local/bin/create_iq_snapshot", line 94, in <module>
main()
File "/home/perftest/.local/bin/create_iq_snapshot", line 68, in main
sprint_data.df = pdio.LegacyProjectCards(
File "/home/perftest/.local/lib/python3.10/site-packages/iqss_gh_reporting/legacy.py", line 103, in __init__
self._fetch_data()
File "/home/perftest/.local/lib/python3.10/site-packages/iqss_gh_reporting/legacy.py", line 118, in _fetch_data
if not self._get_project_cards_api_obj():
File "/home/perftest/.local/lib/python3.10/site-packages/iqss_gh_reporting/legacy.py", line 168, in _get_project_cards_api_obj
this_pr_closes=card_content.issue_url()
AttributeError: 'Issue' object has no attribute 'issue_url'

For now I added -
if card_content is not None:
card_type = "" <<<

used this loop to test the code
~/DevCode/github-com-mreekie/builds
bash -cl "/usr/bin/python3.10 /home/perftest/DevCode/github-com-mreekie/iqss_gh_reporting/setup.py bdist_wheel"; pip install .
pushd /home/perftest/DevCode/github-com-mreekie/iqss_gh_reporting/scripts
 ./workflow-May032023sprint-snapshot.sh
create_iq_snapshot
popd

The changed logic looks like this:
                 if card_content is not None:
                    regex1 = re.compile(r"(/issues/|/pull/)")
                    regex2 = re.compile(r"(issues|pull)")
                    card_type = regex1.search(card_content.html_url).group(0)
                    card_type = regex2.search(card_type).group(0)
                    card_type = 'undefined' if card_type not in ['issues', 'pull'] else card_type
                    if self._card_count % 50 == 0:
                        print(f">>>>>> {self._card_count} # cards {self._project_object.name}: {column.name} \
                        ,{card_type} ,{card_content.number},{card_content.repository.name} ,{card_content.title}")

                    # If the card is associated with a pull request, include the associated issues
                    # in PyGitHub, the only thing we have to workwith is the issue_url
                    # The legacy api says that this isa list of URLs, but PyGithub returns a single URL
                    this_pr_closes = ""
                    if card_type == "pull":
                        if hasattr(card_content, 'issue_url') and card_content.issue_url is not None:
                            this_pr_closes = card_content.issue_url
                        else:
                            this_pr_closes = "undefined"

I'm still puzzled.
Adding this code:
                    if card_type == "pull":
                        if hasattr(card_content, 'issue_url'):
                            this_pr_closes = this_pr_closes + ";" + "has attr issue_url"
                            if card_content.issue_url is not None:
                                this_pr_closes = card_content.issue_url
                            else:
                                this_pr_closes = this_pr_closes + ";" + "issue_url is None"
                        else:
                            this_pr_closes  = this_pr_closes + ";" + "has no attr issue_url"

So it turns out that I'm not getting back the attribute issue_url.
upgraded to PyGithub-1.58.2 which is from May 2023
https://pypi.org/project/PyGithub/
Looking at the docs, I'm looping through cards. each project card has a get_content() method:
Calls:	GET /repos/{owner}/{repo}/pulls/{number}
Parameters:	content_type – string, optional
Return type:	github.PullRequest.PullRequest or github.Issue.Issue
https://pygithub.readthedocs.io/en/latest/github_objects/PullRequest.html#github.PullRequest.PullRequest  has an issue_url
https://pygithub.readthedocs.io/en/latest/github_objects/Issue.html#github.Issue.Issue

I looked at the source for the Pull request object briefly.
https://github.com/PyGithub/PyGithub/blob/master/github/PullRequest.py
There's no init def so there's more going on here than I understand.
I do see references to this property in the code.
I'm going to see if I can see what is actually there in debug mode.

from the code for get_content()
in https://github.com/PyGithub/PyGithub/blob/master/github/ProjectCard.py
Unfortunately the API doesn't make it clear which you are dealing with.
    # Note that the content_url for any card will be an "issue" URL, from
    # which you can retrieve either an Issue or a PullRequest. Unfortunately
    # the API doesn't make it clear which you are dealing with.
    def get_content(self, content_type=github.GithubObject.NotSet):
        """
        :calls: `GET /repos/{owner}/{repo}/pulls/{number} <https://docs.github.com/en/rest/reference/pulls#get-a-pull-request>`_
        :param content_type: string, optional
        :rtype: :class:`github.PullRequest.PullRequest` or :class:`github.Issue.Issue`
        """
        assert content_type is github.GithubObject.NotSet or isinstance(
            content_type, str
        ), content_type
        if self.content_url is None:
            return None

        if content_type == "PullRequest":
            url = self.content_url.replace("issues", "pulls")
            retclass = github.PullRequest.PullRequest
        elif content_type is github.GithubObject.NotSet or content_type == "Issue":
            url = self.content_url
            retclass = github.Issue.Issue
        else:
            raise ValueError(f"Unknown content type: {content_type}")
        headers, data = self._requester.requestJsonAndCheck("GET", url)
        return retclass(self._requester, headers, data, completed=True)

First thoughts:

I could force this thing to always try to be a PR?
I could check the html_url to see and then get the item again?
I'll try that second part first.

This is just plain a mess.
Here is what you get when the card content indicates that it's a PR but you haven't told the get_content() that you want a PR.

Here is what you get after you figure out it's a PR and go back and ask it for a PR.
https://api.github.com/repos/IQSS/dataverse/issues/9388
9388 is the number of the PR.
The issue number is actually 9387
In particular, you get the issue_url, but the number is for the PR.
My guess is that the

https://api.github.com/repos/IQSS/dataverse/issues/9387
{
  "url": "https://api.github.com/repos/IQSS/dataverse/issues/9387",
  "repository_url": "https://api.github.com/repos/IQSS/dataverse",
  "labels_url": "https://api.github.com/repos/IQSS/dataverse/issues/9387/labels{/name}",
  "comments_url": "https://api.github.com/repos/IQSS/dataverse/issues/9387/comments",
  "events_url": "https://api.github.com/repos/IQSS/dataverse/issues/9387/events",
  "html_url": "https://github.com/IQSS/dataverse/issues/9387",
  "id":<PHONE_NUMBER>,
  "node_id": "I_kwDOANZmvM5ed198",
  "number": 9387,
  "title": "Feature Request/Idea: Support protected metadata managed by external applications",
  "user": {
    "login": "qqmyers",
    "id": 6731983,
    "node_id": "MDQ6VXNlcjY3MzE5ODM=",
    "avatar_url": "https://avatars.githubusercontent.com/u/6731983?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/qqmyers",
    "html_url": "https://github.com/qqmyers",
    "followers_url": "https://api.github.com/users/qqmyers/followers",
    "following_url": "https://api.github.com/users/qqmyers/following{/other_user}",
    "gists_url": "https://api.github.com/users/qqmyers/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/qqmyers/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/qqmyers/subscriptions",
    "organizations_url": "https://api.github.com/users/qqmyers/orgs",
    "repos_url": "https://api.github.com/users/qqmyers/repos",
    "events_url": "https://api.github.com/users/qqmyers/events{/privacy}",
    "received_events_url": "https://api.github.com/users/qqmyers/received_events",
    "type": "User",
    "site_admin": false
  },
  "labels": [

  ],
  "state": "open",
  "locked": false,
  "assignee": null,
  "assignees": [

  ],
  "milestone": null,
  "comments": 0,
  "created_at": "2023-02-14T21:53:56Z",
  "updated_at": "2023-02-14T21:53:56Z",
  "closed_at": null,
  "author_association": "MEMBER",
  "active_lock_reason": null,
  "body": "**Overview of the Feature Request**\r\nThere are several related use cases in the community for metadata that would be managed by a third-party application, e.g.\r\n- DANS Data Stations where the archiving system wants to store metadata about the archival process/copy in a custom metadata block. The metadata can be shown but edits by humans or other processes would break archiving.\r\n- Workflow (more hypothetical) - where an external workflow system wants to record information about the processing environment and/or how specific files in the dataset are used (input data, output data, etc.), again where changes by humans or other untrusted systems would break things and destroy reproducibility.\r\n\r\n**What existing behavior do you want changed?**\r\n\r\nThe proposed solution is a setting that can associate a metadatablock with a secret key, which has two effects:\r\n\r\n- that block is not shown in the edit metadata display\r\n- all API calls that would allow changes to that block must include a parameter with that key if there are changes being made to that block.\r\n\r\nConcept and proposed implementation have been discussed in Tech Hours. Draft PR to follow.",
  "closed_by": null,
  "reactions": {
    "url": "https://api.github.com/repos/IQSS/dataverse/issues/9387/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
  },
  "timeline_url": "https://api.github.com/repos/IQSS/dataverse/issues/9387/timeline",
  "performed_via_github_app": null,
  "state_reason": null
}

As I read carefully what I'm seeing now is consistent
The issue_url is just another way of viewing the PR.
So wait? How did I get here? What made me associate issue_url with a list of issues that close a PR.
Where did I make the wrong association/assumption?
If I go this way: I don't get that answer
https://pygithub.readthedocs.io/en/latest/github_objects/ProjectCard.html
get_content(content_type=NotSet)
https://pygithub.readthedocs.io/en/latest/github_objects/PullRequest.html#github.PullRequest.PullRequest
issue_url

Testing the results now.

FYI: Here is the test loop I used:
make change to create_iq_snapshot in project: iqss_gh_reporting
check them in.
Switch to the "builds" project.
Update it from github
cd ~/DevCode/github-com-mreekie/builds
bash -cl "/usr/bin/python3.10 /home/perftest/DevCode/github-com-mreekie/iqss_gh_reporting/setup.py bdist_wheel"; pip install .
pushd /home/perftest/DevCode/github-com-mreekie/iqss_gh_reporting/scripts
./workflow-May032023sprint-snapshot.sh
create_iq_snapshot
popd


isempty(): Fix code according to PSR or symfony codestyles

Shouldn't you rename this PR?

I created a new branch than https://github.com/KnpLabs/DoctrineBehaviors/pull/332 due to a conflict.

You could just rebase your branch and fix conflicts manually instead of creating another branch

Ok, I fixed problems in https://github.com/KnpLabs/DoctrineBehaviors/pull/332.


Issue #289: Incremental isn't working well

Incremental synchronization currently seems erroneous (see issue #289), so make LSP server declare it supports only Full one (that seems to work better).

IIRC, this one is obsolete.


Cannot install using NPM on windows

Description

I am trying to install using NPM on windows but I always got this Error:
npm ERR! path C:\handsontableAngular\HandsontableAngularProj\node_modules\fsevents\node_modules\abbrev\package.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\handsontableAngular\HandsontableAngularProj\node_modules\fsevents\node_modules\abbrev\package.json'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted, unlink 'C:\handsontableAngular\HandsontableAngularProj\node_modules\fsevents\node_modules\abbrev\package.json'
npm ERR!     at Error (native)
npm ERR!   stack: 'Error: EPERM: operation not permitted, unlink \'C:\\handsontableAngular\\HandsontableAngularProj\\node_modules\\fsevents\\node_modules\\abbrev\\package.json\'\n    at Error (native)',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'C:\\handsontableAngular\\HandsontableAngularProj\\node_modules\\fsevents\\node_modules\\abbrev\\package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR!      C:\Users\amery\AppData\Roaming\npm-cache\_logs\2017-09-10T09_09_32_266Z-debug.log

Steps to reproduce

Open PowerShell as Administrator
cd C:\handsontableAngular
ng new HandsontableAngularProj
npm install angular-handsontable

Error Log
https://gist.github.com/yehia2amer/43fdf1edad27627cc21cb5bd7afae011
Your environment

Wrapper version: Handsontable for Angular (2+) - BETA 1
Browser Name and version: Firefox 55.0.3
Operating System: Windows 10 Version 1607 (OS Build 14393.1480)
node: 6.11.3
npm: 5.4.1
os: win32 x64
typescript: 2.3.4
angular/cli: 1.4.1

I read through this yesterday and after re-reading it today the only relation I see between the error message and angular-handsontable is the name of the project.
This seems to be an error message from NPM that it cannot unlink "node_modules\fsevents\node_modules\abbrev\package.json"
While I cannot say fore sure this seems like a permission issue (yes, I read the part about opening PowerShell as Admin but Windows file permissions still has a way of surprising me ) or a file locking issue (I think some text editors and/or IDEs have a habit of grabbing files and keeping them open).
I run it as a non-admin user inside my user folder and it works fine except for the bugs around Zone etc.

Hi @yehia2amer,
I suppose it's the same error: npm/npm#18380
You can downgrade npm to v5.3. It should help on Windows.

I think we can close this issue.


CMake: mark 'check' target as using terminal.

Else, all the lit output is being buffered, and is flushed after
the target finishes 'building'. In particular, that hides the
progress meter.

thanks! this had bothered me for a while but I didn't know the fix!


Helm upgrade error was swallowed since helm install will be invoked directly after helm upgrade failed

https://github.com/eclipse-symphony/symphony/blob/cafed21af784e4c9e7af5b0c07ef32f54cdd377e/api/pkg/apis/v1alpha1/providers/target/helm/helm.go#L517-L518

upgradeClient should do helm upgrade --install. Sometimes this will fail but install would work.

Assign to @yanjiaxin534


Mention if individual users are welcome to submit their individual addresses

On
https://github.com/openaddresses/openaddresses/blob/master/CONTRIBUTING.md
please answer the new FAQ: "I am just a simple person who wants to put my house into this openaddresses thing. Here's my address and my coordinates. Where is the online form where I can type them in and hit Submit. I can't even tell if you accept entries from the little guy with just his own address."

We don’t actually accept such entries! Your best bet for a single address is OpenStreetMap. OA’s project focus is on authoritative (typically government) sources. We’re thinking about what it might look like to accept corrections, and how our upstream sources might want to hear about those.

Some context on this request: OpenAddressesUK had/has a form on their page that accepted addresses and addresses and locations from users. Because of the name similarity there might be some overlap there.

(I don't know if that's the case with @jidanni here. I don't mean to put words in your mouth!)

All I am saying is "Mention if individual users are welcome to submit their individual addresses",
best right there on https://github.com/openaddresses/openaddresses/blob/master/CONTRIBUTING.md
which is where users land after clicking the link below "Help contribute. Grow OpenAddresses by contributing data from any place in the world." on the Homepage.
Just mention what you mention above in this bug report, but put it there on CONTRIBUTING.md, so new users will know within seconds of clicking around the site, Thanks.

I.e. the answer is "No". Make sure they can find this answer easily. And yes, tell why like you do above too.

Thanks Dan!


Prismic preview cookie not set when sharing preview link

Only logged-in users are currently able to preview changes from Prismic. This is a problem for the content team who need to be able to share previews with people who don't have a Prismic login.

@davidpmccormick @dannybirchall  Is this still a problem or can we close it?

We are still experiencing intermittent to serious issues sharing prismic preview links with colleagues and externals in the good form, ie
https://prismic.link/3ekBJCd
which shouldn't require advance cookie-setting, I don't think?


Is selene thread safe?

Can I share sel::State between threads?

Unfortunately it is not thread safe for the reason most lua programs are not. There is a single interoperability stack between the two languages which would be corrupted if calls were interleaved


feat: kuai context

create kuaiproject/core package & implements task system

[x] create KuaiContext for initial kuai project

task system design: https://github.com/ckb-js/kuai/issues/13

There are too many conflicts that makes it hard to review, we'd better resolve them first


Any relation to user object (of users-permissions) from another collection type results in an exception

On a bog-standard fresh-out-of-the-box strapi v4.7.1 install, create a collection type that contains a relation to the users collection. Types-4-strapi-2 will throw this exception because the users collection does not exist on the filesystem (presumably it is part of strapi internals and stored elsewhere):
TypeError: Cannot read properties of undefined (reading 'file')
    at Attributes.attributeToString (types-4-strapi-2/lib/attributes/Attributes.js:114:71)
    at Attributes.toFieldsString (types-4-strapi-2/lib/attributes/Attributes.js:219:37)
    at Attributes.toString (types-4-strapi-2/lib/attributes/Attributes.js:229:27)
    at Interface.attributesToString (types-4-strapi-2/lib/interface/Interface.js:44:22)
    at Interface.getInterfaceFieldsString (types-4-strapi-2/lib/interface/Interface.js:67:29)
    at Interface.getInerfaceString (types-4-strapi-2/lib/interface/Interface.js:54:26)
    at Interface.toString (types-4-strapi-2/lib/interface/Interface.js:80:52)
    at InterfaceManager.<anonymous> (types-4-strapi-2/lib/program/InterfaceManager.js:229:39)
    at Generator.next (<anonymous>)
    at types-4-strapi-2/lib/program/InterfaceManager.js:8:71

This is one reason why I'm curious that this project doesn't simply query the strapi content-types API at api/content-type-builder/content-types. It would seem that the return data provides all that analyzing the json schemas from the filesystem would, with the addition of the schema for the users objects (displayed in the API response as plugin::users-permissions.user). In my case, I have added additional fields to the user object, so this tool has a blind spot there, as that data appears to be only available via the API and not the json schema files on the filesystem.

Thanks for reporting the issue and giving your suggestion.
I did think about querying strapi at some point when developing this, but was very unsure how. I will definitely try to look into querying it in this way.

any updates on this?

Sorry no, I have been busy with other porjects. Feel free to open a PR :)

Update: I am working on this now, should probably be ready this week

Alright, v1 makes it possible to use different readers. The v0 reader would only read the generated files by strapi.
v1 keeps it this way by default, but introduces another reader named load-strapi you should use this reader if you have relations to users or other content types not defined by the files.
example with cli
t4s --reader load-strapi

I will publish v1 today after I have made some tests


Evict entry from CloudBlobStore cache after exception

Codecov Report

Merging #1595 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #1595      +/-   ##
============================================
+ Coverage     73.65%   73.66%   +0.01%
+ Complexity     8448     8447       -1
============================================
  Files           590      590
  Lines         46068    46082      +14
  Branches       5857     5858       +1
============================================
+ Hits          33933    33948      +15
+ Misses        10393    10390       -3
- Partials       1742     1744       +2

Impacted Files
Coverage Δ
Complexity Δ

...in/java/com/github/ambry/cloud/CloudBlobStore.java
76.44% <100.00%> (+0.82%)
118.00 <4.00> (+2.00)

.../main/java/com/github/ambry/router/EncryptJob.java
85.71% <0.00%> (-8.17%)
6.00% <0.00%> (-1.00%)

...hub/ambry/protocol/CatchupStatusAdminResponse.java
75.00% <0.00%> (-6.25%)
6.00% <0.00%> (-1.00%)

...java/com/github/ambry/store/CompactionManager.java
90.53% <0.00%> (-1.78%)
27.00% <0.00%> (ø%)

.../main/java/com/github/ambry/store/ScanResults.java
81.25% <0.00%> (-1.57%)
16.00% <0.00%> (-1.00%)

...rc/main/java/com/github/ambry/store/BlobStore.java
88.06% <0.00%> (-0.48%)
150.00% <0.00%> (-1.00%)

...in/java/com/github/ambry/store/BlobStoreStats.java
68.46% <0.00%> (-0.42%)
98.00% <0.00%> (ø%)

...src/main/java/com/github/ambry/commons/BlobId.java
93.03% <0.00%> (-0.35%)
72.00% <0.00%> (-1.00%)

.../main/java/com/github/ambry/store/HardDeleter.java
77.20% <0.00%> (-0.29%)
49.00% <0.00%> (-1.00%)

...va/com/github/ambry/replication/ReplicaThread.java
85.62% <0.00%> (+0.38%)
150.00% <0.00%> (ø%)

... and 6 more

Continue to review full report at Codecov.

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


Cloning and Moving

Hello,
I have 3 List. Client is supposed to drag elements from list A to B and C. Would it be possible to clone elements when user drag from list A to B, BUT move it (remove from A) when user drags from A to C?
I was trying to always clone elements, and remove it manually from list A if needed, but after upgrading to React 15 it throws an error.
Best Regards,

See https://github.com/RubaXa/Sortable#group-option and examples.


How can i set image quality (mozjpeg)?

If have tried to add "-quality 80" to the args array in libs/optimizers/Mozjpeg.js, but then i get the following errors: (cloudwatch log)
2016-07-19T08:37:27.282Z	da078f59-4d8b-11e6-bf3c-edbd1dbf43c6	Error: write EPIPE at Object.exports._errnoException (util.js:870:11) at exports._exceptionWithHostPort (util.js:893:20) at WriteWrap.afterWrite (net.js:763:14)

This works:
this.args    = ["-quality", "85", "-optimize", "-progressive"];

@mriechel Thanks, I'll configurable it.

Here is the configurable. thanks!
https://github.com/ysugimoto/aws-lambda-image/commit/40d5cf5b8d1e21a9baf7731d4c967dcfc4ab6cd9


bug: Modals inside of tables on Chrome

What version of daisyUI are you using?
3.6.1
Describe your issue
If any type of modal is used inside the table layout provided the modals do not work on Chrome. On firefox they are working as expected but on chrome the modal fails to even open. On HTML it seemed to work for some reason but fails in React
What browsers are you seeing the problem on?
Chrome
Reproduction URL
No response

Instead of using the method they provide for opening Modals window.my_modal_2.showModal(); Instead use  this document.getElementById('my_modal_3').show(); which seems to be working on both chrome and Firefox

Instead of using the method they provide for opening Modals window.my_modal_2.showModal(); Instead use this document.getElementById('my_modal_3').show(); which seems to be working on both chrome and Firefox

Thanks. I updated the examples.

On HTML it seemed to work for some reason but fails in React

It's probably because React using virtual DOM.


2 high severity issues for the latest libxmljs library with node js 18.0

libxml js updated to latest version 1.0.11 with NodeJS-18.x.  Shows 2 severity issues with no fix as below
libxmljs vulnerable to type confusion when parsing specially crafted XML - https://github.com/advisories/GHSA-6433-x5p4-8jc7
CVE ID: CVE-2024-34391
https://github.com/advisories/GHSA-mg49-jqgw-gcj6
CVE ID: CVE-2024-34392
No fix available
Could you please resolve this so that this library could be useful with nodejs18 ? any ETA on this?

Hello, any updates on fixing this vulnerability? Is there a timeline for the fix?
Thanks.


Is it possible to use Websockets with private API?

I have been taking a look at the lib and did not find any way to authenticate through websockets for example to call QueryBalanceState. Is this possible at the current state of the lib?
Thanks in advance.

It's not possible at this stage. Bittrex does not have a method for authenticating with your api keys.

Ok, thanks for the fast answer.


Public Release Date

Hi,
Can you tell us when this data be released for public use?

We hope to publish the data relatively soon, around May.

Hi,
I also want to know when the data will be published.
In fact, I have completed the online application according to the information on the website.
_https://mimic-iv.mit.edu/about/access/_
Is it necessary to complete the above information again when the data be published?

It's public now! :)
https://physionet.org/content/mimiciv/


Can't Read or Write Configuration

Nothing  can read or write config or calibration on latest firmware. Tried usual troubleshooting, rolling back worked.

Fixed.


Udacity assignment 4 run time error

Hi, Thanks for the tutorials. I was able to run everything until now. I'm trying to run assignment 4 and in last step in the following part, I get exception which is related to "session" and its graph! I haven't change anything, I'm just running the code:
num_steps = 1001

with tf.Session(graph=graph) as session:
  tf.initialize_all_variables().run()
  print('Initialized')
  for step in range(num_steps):
    offset = (step * batch_size) % (train_labels.shape[0] - batch_size)
    batch_data = train_dataset[offset:(offset + batch_size), :, :, :]
    batch_labels = train_labels[offset:(offset + batch_size), :]
    feed_dict = {tf_train_dataset : batch_data, tf_train_labels : batch_labels}
    _, l, predictions = session.run(
      [optimizer, loss, train_prediction], feed_dict=feed_dict)
    if (step % 50 == 0):
      print('Minibatch loss at step %d: %f' % (step, l))
      print('Minibatch accuracy: %.1f%%' % accuracy(predictions, batch_labels))
      print('Validation accuracy: %.1f%%' % accuracy(
        valid_prediction.eval(), valid_labels))
  print('Test accuracy: %.1f%%' % accuracy(test_prediction.eval(), test_labels))

and the error messages are:
Initialized
Minibatch loss at step 0: 3.362968
Minibatch accuracy: 6.2%

InternalErrorTraceback (most recent call last)
<ipython-input-23-c56b394d9d7c> in <module>()
     15       print('Minibatch accuracy: %.1f%%' % accuracy(predictions, batch_labels))
     16       print('Validation accuracy: %.1f%%' % accuracy(
---> 17         valid_prediction.eval(), valid_labels))
     18   print('Test accuracy: %.1f%%' % accuracy(test_prediction.eval(), test_labels))

/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.pyc in eval(self, feed_dict, session)
    500
    501     """
--> 502     return _eval_using_default_session(self, feed_dict, self.graph, session)
    503
    504

/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.pyc in _eval_using_default_session(tensors, feed_dict, graph, session)
   3346                        "the tensor's graph is different from the session's "
   3347                        "graph.")
-> 3348   return session.run(tensors, feed_dict)
   3349
   3350

/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in run(self, fetches, feed_dict, options, run_metadata)
    341     try:
    342       result = self._run(None, fetches, feed_dict, options_ptr,
--> 343                          run_metadata_ptr)
    344       if run_metadata:
    345         proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)

/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _run(self, handle, fetches, feed_dict, options, run_metadata)
    565     try:
    566       results = self._do_run(handle, target_list, unique_fetches,
--> 567                              feed_dict_string, options, run_metadata)
    568     finally:
    569       # The movers are no longer used. Delete them.

/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
    638     if handle is None:
    639       return self._do_call(_run_fn, self._session, feed_dict, fetch_list,
--> 640                            target_list, options, run_metadata)
    641     else:
    642       return self._do_call(_prun_fn, self._session, handle, feed_dict,

/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _do_call(self, fn, *args)
    660       # pylint: disable=protected-access
    661       raise errors._make_specific_exception(node_def, op, error_message,
--> 662                                             e.code)
    663       # pylint: enable=protected-access
    664

InternalError: Dst tensor is not initialized.
     [[Node: Const = Const[dtype=DT_FLOAT, value=Tensor<type: float shape: [10000,28,28,1] values: -0.45294118 0.029411765 0.40588236...>, _device="/job:localhost/replica:0/task:0/gpu:0"]()]]
Caused by op u'Const', defined at:
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/__main__.py", line 3, in <module>
    app.launch_new_instance()
  File "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line 596, in launch_instance
    app.start()
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelapp.py", line 442, in start
    ioloop.IOLoop.instance().start()
  File "/usr/lib/python2.7/dist-packages/zmq/eventloop/ioloop.py", line 160, in start
    super(ZMQIOLoop, self).start()
  File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 883, in start
    handler_func(fd_obj, events)
  File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 275, in null_wrapper
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 433, in _handle_events
    self._handle_recv()
  File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 465, in _handle_recv
    self._run_callback(callback, msg)
  File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 407, in _run_callback
    callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 275, in null_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 276, in dispatcher
    return self.dispatch_shell(stream, msg)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 228, in dispatch_shell
    handler(stream, idents, msg)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 391, in execute_request
    user_expressions, allow_stdin)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/ipkernel.py", line 199, in do_execute
    shell.run_cell(code, store_history=store_history, silent=silent)
  File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2723, in run_cell
    interactivity=interactivity, compiler=compiler, result=result)
  File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2825, in run_ast_nodes
    if self.run_code(code, result):
  File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2885, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-18-aedb1ef46e04>", line 14, in <module>
    tf_valid_dataset = tf.constant(valid_dataset)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/constant_op.py", line 166, in constant
    attrs={"value": tensor_value, "dtype": dtype_value}, name=name).outputs[0]
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2154, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1154, in __init__
    self._traceback = _extract_stack()

Is there anything I have to do ? I can see the exception comes from .eval() function. I guess @vincentvanhoucke might be right person to ping.
Thanks

I will attempt to reproduce on Monday. However, this specific error is typically TensorFlow's oh-so-cryptic way of saying it's run out of memory. Can that be the case here? Can you also tell me what tf.version this is?

Thanks, here are the information you asked for:
ubuntu@ip-10-197-185-133:~$ free -m
             total       used       free     shared    buffers     cached
Mem:         15039       5314       9725         66         36       1109
-/+ buffers/cache:       4169      10870
Swap:            0          0          0
ubuntu@ip-10-197-185-133:~$ pip show tensorflow
---
Metadata-Version: 2.0
Name: tensorflow
Version: 0.8.0

I can't reproduce this at the head of the tree. It seems to strongly point at a memory issue.
If you reduce the size of the test and validation sets (which are kept in memory), does it start working?

I have just received a very similar error on Assignment 3, after copying over an existing and working movel from Assignment 2. I restarted my colab kernel and things worked fine afterwards.

I'm seeing this error on assignment 4 when running on the GPU. If I switch back to CPU it completes successfully. Any tips on how to tweak this so I can run it on the GPU? (GTX 1070)


[IOTS-294] IoT-APIM Integration - Make IoT relying on external API Manager REST APIs

Use following apis, for DCR, token, publisher and store endpoints [1] - http://localhost:9763/client-registration/v0.9/register [2] - https://localhost:8243/token [3] - https://localhost:9443/api/am/publisher/v0.10/apis [4] - https://localhost:9443/api/am/publisher/v0.10/apis/change-lifecycle?apiId=<id> [5] - https://localhost:9443/api/am/store/v0.10/applications [6] - https://localhost:9443/api/am/store/v0.10/apis [7] - https://localhost:9443/api/am/store/v0.10/subscriptions [8] - https://localhost:9443/api/am/store/v0.10/applications/generate-keys?applicationId=<id>Reference: https://wso2.org/jira/browse/IOTS-294

This is done.


Upgrade from FindBugs to SpotBugs

Framework version: 1.0
Implementations: Jersey / Spring / Spring Boot / Spark

Scenario
Upgrade build process to use SpotBugs instead of FindBugs.

Changes are merged into master. Closing this issue.


Export of subscripted character 'x' is using unicode instead of latex commands

Report ID:
VAJXNNZT-euc
Exporter used:
Better BibTeX, v5.1.127
Expected behavior:
"InₓGa₁₋ₓN/GaN" should be replaced by "{{In}}{\textsubscript{x}}{{Ga}}{\textsubscript{1-x}}{{N}}" or "{{In}}{$x$}{{Ga}}{${1-x}$}{{N}}"
Actual behavior:
"InₓGa₁₋ₓN/GaN" is exported as "{{InₓGa}}{$_{1-}$}{{ₓN}}"
Besides 'x', this should work at least also for 'y' and 'z'
PS: Otherwise, I am really impressed by the unicode conversion capabilities!

Do you have actual unicode samples of subscripted y and z? I need to know their character codes and I can't find them.

unicode.org only has https://unicode.org/charts/PDF/U2070.pdf

:robot: this is your friendly neighborhood build bot announcing test build <IP_ADDRESS>87 ("unicode table update")
Install in Zotero by downloading test build <IP_ADDRESS>87, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

Can you try 4487 for the subscripted x?

OK, maybe subscripted y and z do not exist, because I find only the x in my database. All occurences of y are encoded as y and that is properly exported by Better BibTex.

Subscripted x works with 4487. Results in:
{{In\textsubscript{x}Ga}}{$_{1-}$}{{\textsubscript{x}N}}
The only other character in my library that is now still exported as unicode is a superscripted k: ᵏ
(Which though occurs only once in an abstract out of more than a thousand entries)

Subscripted x works with 4487. Results in:
{{In\textsubscript{x}Ga}}{$_{1-}$}{{\textsubscript{x}N}}
The only other character in my library that is now still exported as unicode is a superscripted k: ᵏ
(Which though occurs only once in an abstract out of more than a thousand entries)

:robot: this is your friendly neighborhood build bot announcing test build <IP_ADDRESS>90 ("superscript k")
Install in Zotero by downloading test build <IP_ADDRESS>90, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

Works ;-)

Cool, thanks -- I'm working on one more issue and then I'll cut a new release.


Xref Pane Refreshes Excessively and Linear View Scrolling Issue.

While in linear view the xref pane refreshes during analysis, resetting user selections. Also, scrolling through large arrays during analysis ends up resetting the position, effectively not allowing a user to scroll.

Fixed in build 1.1.1129-dev.

Fixed in 1.1.1458-dev.