how to update rustdesk server?

Hello I have installed rustdesk server with your script and all went well.
But now, how to update my installation?
I opened an issue here and the answer was to tell the question to the maintainer of the script
thanks for your answer.

thats a fair point, I havent written an upgrade script, I will get that done asap and let you know when done.

all right, thanks!

Actually it is there!
wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
chmod +x update.sh
./update.sh

ok I've tested your update script, but I broke my rustdesk server setup
Here are the logs:
root@assist:~# ./update.sh
Installing prerequisites
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
tar is already the newest version (1.34+dfsg-1).
unzip is already the newest version (6.0-26+deb11u1).
wget is already the newest version (1.21-1+deb11u1).
dnsutils is already the newest version (1:9.16.37-1~deb11u1).
curl is already the newest version (7.74.0-1.3+deb11u5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
rm: cannot remove 'hbbs': No such file or directory
rm: cannot remove 'hbbs': No such file or directory
Upgrading Rustdesk Server
Rustdesk Relay not ready yet...
rm: cannot remove 'rustdesk-server-linux-amd64.zip': No such file or directory
rm: cannot remove 'gohttpserver_1.1.4_linux_amd64.tar.gz': No such file or directory
rm: cannot remove 'gohttpserver_1.1.4_linux_arm64.tar.gz': No such file or directory
Updates are complete

sorry forgot to add this line https://github.com/techahold/rustdeskinstall/blob/a8f86e2707ad6201c2c9b182a9688ee557771aa0/update.sh#L10
Can you try again now?

ok now it's good.
Here are the logs:
`root@assist:~# ./update.sh
Installing prerequisites
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Get:3 http://ftp.debian.org/debian bullseye-updates InRelease [44.1 kB]
Fetched 44.1 kB in 0s (100 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
tar is already the newest version (1.34+dfsg-1).
unzip is already the newest version (6.0-26+deb11u1).
wget is already the newest version (1.21-1+deb11u1).
dnsutils is already the newest version (1:9.16.37-1~deb11u1).
curl is already the newest version (7.74.0-1.3+deb11u5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Upgrading Rustdesk Server
--2023-01-31 14:16:50--  https://github.com/rustdesk/rustdesk-server/releases/download/1.1.7/rustdesk-server-linux-amd64.zip
Resolving github.com (github.com)... <IP_ADDRESS>
Connecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/299354666/6831d8f1-f7c5-48fe-aa1a-246b4666d111?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131522Z&X-Amz-Expires=300&X-Amz-Signature=1fd38c0b8583636dbfac5e5f06bf835f871c4a8a26d7a9f5431b9d6d94a65298&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=299354666&response-content-disposition=attachment%3B filename%3Drustdesk-server-linux-amd64.zip&response-content-type=application%2Foctet-stream [following]
--2023-01-31 14:16:50--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/299354666/6831d8f1-f7c5-48fe-aa1a-246b4666d111?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131522Z&X-Amz-Expires=300&X-Amz-Signature=1fd38c0b8583636dbfac5e5f06bf835f871c4a8a26d7a9f5431b9d6d94a65298&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=299354666&response-content-disposition=attachment%3B filename%3Drustdesk-server-linux-amd64.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8214419 (7.8M) [application/octet-stream]
Saving to: 'rustdesk-server-linux-amd64.zip'
rustdesk-server-linux 100%[======================>]   7.83M   577KB/s    in 13s
2023-01-31 14:17:04 (596 KB/s) - 'rustdesk-server-linux-amd64.zip' saved [8214419/8214419]
Archive:  rustdesk-server-linux-amd64.zip
inflating: /opt/rustdesk/hbbr
inflating: /opt/rustdesk/hbbs
inflating: /opt/rustdesk/rustdesk-utils
Rustdesk Relay not ready yet...
--2023-01-31 14:17:08--  https://github.com/codeskyblue/gohttpserver/releases/download/1.1.4/gohttpserver_1.1.4_linux_amd64.tar.gz
Resolving github.com (github.com)... <IP_ADDRESS>
Connecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/63852314/3b4f8927-1e46-46b6-873c-6407b36d0f92?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131708Z&X-Amz-Expires=300&X-Amz-Signature=3242cd61800a3ed8fcc105d7d4b0383ea7fc47cda5668083edf0efbbb887c19d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=63852314&response-content-disposition=attachment%3B filename%3Dgohttpserver_1.1.4_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2023-01-31 14:17:08--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/63852314/3b4f8927-1e46-46b6-873c-6407b36d0f92?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131708Z&X-Amz-Expires=300&X-Amz-Signature=3242cd61800a3ed8fcc105d7d4b0383ea7fc47cda5668083edf0efbbb887c19d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=63852314&response-content-disposition=attachment%3B filename%3Dgohttpserver_1.1.4_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4864160 (4.6M) [application/octet-stream]
Saving to: 'gohttpserver_1.1.4_linux_amd64.tar.gz'
gohttpserver_1.1.4_li 100%[======================>]   4.64M   804KB/s    in 5.3s
2023-01-31 14:17:14 (894 KB/s) - 'gohttpserver_1.1.4_linux_amd64.tar.gz' saved [4864160/4864160]
rm: cannot remove 'gohttpserver_1.1.4_linux_arm64.tar.gz': No such file or directory
Updates are complete`

thanks again for this work.
Regards

thanks!

Tell me, have you, after the update, the connection database is not broken? I mean, previously issued IDs.

I dont even know what you mean? But the update is only updating the executables not any files

I meant that if my computer was previously given a number, say 498 774 433, won't it change after the update?

It shouldnt with this script, a question for rustdesk github if it does

Thanks!

Could you make an update script for MacOS? I am stuck on an old server version and I can't get it to update

For Mac? How did you install the server on Mac?

Hi
We did the install as the description and have now problems to update. Here is the output of console
rust@rustdesk:~$ wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
--2024-02-09 09:17:03--  https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4891 (4.8K) [text/plain]
Saving to: ‘update.sh’
update.sh                               100%[===============================================================================>]   4.78K  --.-KB/s    in 0s
2024-02-09 09:17:03 (32.4 MB/s) - ‘update.sh’ saved [4891/4891]
rust@rustdesk:~$ chmod +x update.sh
rust@rustdesk:~$ ./update.sh
./update.sh: line 8: /opt/rustdesk/hbbr: No such file or directory
./update.sh: line 10: [: 1.1.10-3: unary operator expected
[sudo] password for rust:
Failed to stop gohttpserver.service: Unit gohttpserver.service not loaded.
Failed to stop rustdesksignal.service: Unit rustdesksignal.service not loaded.
Failed to stop rustdeskrelay.service: Unit rustdeskrelay.service not loaded.
 Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget is already the newest version (1.21.2-2ubuntu1).
curl is already the newest version (7.81.0-1ubuntu1.15).
tar is already the newest version (1.34+dfsg-1ubuntu<IP_ADDRESS>.2).
unzip is already the newest version (6.0-26ubuntu3.1).
dnsutils is already the newest version (1:9.18.18-0ubuntu<IP_ADDRESS>).
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
No directory /opt/rustdesk found. No update of rustdesk possible (used install.sh script ?)

you have a paid license? if so you dont want to be using our installer, that will just get you the opensource one. https://github.com/rustdesk/rustdesk-server-pro

Yea we changed it and found out this ;-)
But struggling with Apple Client for Intel and M1, M2, M3
Mit besten Grüsse aus Baden-Dättwil
Daniel Maier
CEO - Geschäftsleiter
Phone +41 56 520 20 20
<tel:+41 56 520 20 20>
Winet Voicetec Solutions AG
Täfernstrasse 31
CH-5405 Baden-Dättwil
https://www.winet.ch/
Web www.winet.ch https://www.winet.ch/ | Kundenportal jarvis.winet.ch https://jarvis.winet.ch/ | Telefonieportal my.winet.ch https://my.winet.ch/

Am 09.02.2024 um 11:22 schrieb dinger1986 @.***>:
you have a paid license? if so you dont want to be using our installer, that will just get you the opensource one. https://github.com/rustdesk/rustdesk-server-pro
—
Reply to this email directly, view it on GitHub https://github.com/techahold/rustdeskinstall/issues/30#issuecomment-1935668704, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEZL6NKSMSHIQWWSB5IUDNDYSX2HTAVCNFSM6AAAAAAUMHMFV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZVGY3DQNZQGQ.
You are receiving this because you commented.

Changed what?

???????
I have deleted the entry for OS version.
 Mit besten Grüssen aus Baden-Dättwil

Daniel Maier
CEO - Geschäftsleiter
VR-Präsident
Phone direct +41 56 520 20 40
Mobile Phone + 41 79 404 98 70
Winet Voicetec Solutions AG
Täfernstrasse 31
CH-5405 Baden-Dättwil
Web www.winet.ch | Kundenportal jarvis.winet.ch | Telefonieportal my.winet.ch
Von:   dinger1986 @.>
An:   techahold/rustdeskinstall @.>
Kopie:   dmaier63 @.>, Comment @.>
Gesendet:   09.02.2024 14:55
Betreff:   Re: [techahold/rustdeskinstall] how to update rustdesk server? (Issue #30)
Changed what?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

You said "Yea we changed it and found out this ;-)"
What did you change? please stop wasting my time I am trying to help!

I'm somewhat of lost. I think it is about changing from opensource to pro version and the update procedere. All fine here we could make the update.
What the real problem is, apple client want work for deployment. Windows and Linux is fine but apple no way to get it.
If I do it on every machin with the bash command and the key it works, but it is not possible to deploy from there to a other machine. When doing it over git it will crash (on MacOS sonoma)
 Mit besten Grüssen aus Baden-Dättwil

Daniel Maier
CEO - Geschäftsleiter
VR-Präsident
Phone direct +41 56 520 20 40
Mobile Phone + 41 79 404 98 70
Winet Voicetec Solutions AG
Täfernstrasse 31
CH-5405 Baden-Dättwil
Web www.winet.ch | Kundenportal jarvis.winet.ch | Telefonieportal my.winet.ch
Von:   dinger1986 @.>
An:   techahold/rustdeskinstall @.>
Kopie:   dmaier63 @.>, Comment @.>
Gesendet:   09.02.2024 15:33
Betreff:   Re: [techahold/rustdeskinstall] how to update rustdesk server? (Issue #30)
You said "Yea we changed it and found out this ;-)"
What did you change? please stop wasting my time I am trying to help!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

ok, so you are talking about pro and rustdesk clients, this isnt rustdesk, this is techahold, we only have written an opensource installer for the opensource server and have no affiliation to RustDesk, if you want to pay us to help support or troubleshoot your issues our details are on the readme.

Hi. Can you update script? Because they release version with "-1" in the end. But script cut it off and download not the latest version

its already been done (line 7)

https://github.com/techahold/rustdeskinstall/commit/cb0958d99cf1b9faabae4a0b63f45a765426cc57

its already been done (line 7)
cb0958d

Thanks. Just find that in install script it has another syntax

updated now, fair point should be consistent

I used the script above and it seems that it only works one time.
At the second time the "update.sh" is saved as "update.sh1"
`root@RustDesk:~# wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
--2024-08-23 09:59:12--  https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5069 (5.0K) [text/plain]
Saving to: 'update.sh.1'
update.sh.1                                          100%[=====================================================================================================================>]   4.95K  --.-KB/s    in 0s
2024-08-23 09:59:12 (64.8 MB/s) - 'update.sh.1' saved [5069/5069]
root@RustDesk:~# chmod +x update.sh
root@RustDesk:~# ./update.sh
Same version no need to update.
root@RustDesk:~#
`

Yes, either need to delete the script or just run it again not download it again

so this script will work fine?
rm update.sh wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh chmod +x update.sh ./update.sh

Yes

Thank you!

@dinger1986

What architecture?

Ubuntu Server 22.04.5

What arch?

Intel

Remove the update script and download it again, maybe you have an old one

Remove the update script and download it again, maybe you have an old one

Did you change it after my first comment? Because I did what you suggested just before writing here and nothing has changed, both with the script version I had and the one I downloaded today. Btw I'll start again from scratch and I will post the full script output

no, but I have ran it, like I said the already the key commands you have tested and show the newer version

Remove the update script and download it again, maybe you have an old one

It seems to me it didn't change anything, I'm attaching a log. Is it maybe a weird issue on my server?
Thanks
log.txt

Yes it is
rustdesk-server-linux-amd64.zip.4
So check /opt/rustdesk for old zi files and remove them.

Yes it is
rustdesk-server-linux-amd64.zip.4
So check /opt/rustdesk for old zi files and remove them.

Thanks, it did the trick.


Y291GE version support

Hello, could you, please, add support for Y291GE version?

I have bought a camera with the serial number starting with RY291GE.
I have installed the y291ga hack release package without installing the Yi App.
The RTSP and MQTT is working.

Check the file init.sh to get the real suffix:
cat /backup/init.sh | grep SUFFIX=


Scarecrow Bomb item appears in shops

Another unused item apparently called the Scarecrow Bomb exists in the game.  Need to remove this from shops as well.

Removed from the shuffle in the latest update.


Fix test_valset_update()

this test fails sometimes due to badly constructed logic within the test itself,
the comment says it all:
// this is hacky and not really a good way to test validator set updates in a highly
    // repeatable fashion. What we really need to do is be aware of the total staking state
    // and manipulate the validator set very intentionally rather than kinda blindly like
    // we are here. For example the more your run this function the less this fixed amount
    // makes any difference, eventually it will fail because the change to the total staked
    // percentage is too small.

This issues is outdated after the upstream


Extension issue

Issue Type: Bug
Extension Name: LiveServer
Extension Version: 5.7.9
OS Version: Linux x64 5.15.0-47-generic
VS Code version: 1.71.0

Code runs smoothly until I hit 'Go Live'. Then memory consumption sky rockets until it freezes.
Already disabled all extensions and identified it has to do with Live Server, precisely after going live.
Please see the attached screenshots for more details…
System Monitor - Process ID 51858

Realized another test with the following steps.

Created a new directory
Created a html file
Went live
Memory started climbing while CPU % usage varied from 10%~30%


R-Geo not mounting libraries

R-Geo Module isn't mounting libraries correctly.
Should see these as with ssh to eri cluster
> .libPaths() [1] "/mnt/gpfs/persist/home/agresearch.co.nz/bixleym/R/foss-2023a/4.3"   [2] "/mnt/gpfs/persist/apps/eri_rocky8/software/R-Geo/4.3.2-foss-2023a"   [3] "/mnt/gpfs/persist/apps/eri_rocky8/software/R/4.3.2-foss-2023a/lib64/R/library"
Is only seeing
> .libPaths() [1] "/mnt/gpfs/persist/home/agresearch.co.nz/bixleym/R/foss-2023a/4.3"         [2] "/mnt/gpfs/persist/apps/eri_rocky8/software/R/4.3.2-foss-2023a/lib64/R/library"
output.log shows both R/4.3.2 module loaded correctly
35) R/4.3.2-foss-2023a   55) R-Geo/4.3.2-foss-2023a

Not investigating - the 2 required libraries load.


hvp!  If you did something liek f(x)::Float64 = x'*A*x, I presume it owuld be resolved

Thanks for the response @wsmoses. That idea makes sense. Trying it out I get an error reagrding no forward mode derivative for cblas_dcopy64_. If I try to use LinearAlgebra.dot() instead of writing out the multiplication explicitly I get a segmentation fault instead.
Originally, I was trying to compare the Enzyme Hvp with one I had written a while ago, which is how I ran into this issue. When I attempt to do this in a standalone file or in the REPL I run into the same issues discussed above with both variants. A MWE of this is included below.
I also have a variant of this test in test suite for a package of mine which can be found here (SFN.jl). If I run this with my variant, all tests pass, but if I include the Enzyme variant it causes the following:
julia: /workspace/srcdir/Enzyme/enzyme/Enzyme/GradientUtils.cpp:8229: void GradientUtils::eraseFictiousPHIs(): Assertion `0' failed.

[61920] signal (6.-6): Aborted

I wasn't sure how to reproduce the succesful test outside of the package, so apologies for no MWE.
This raises a question about why this specific test works sometimes within a test environment but not elsewhere, and why the two variants have different results?
using Enzyme: make_zero, make_zero!, autodiff, autodiff_deferred, Forward, Reverse, Active, Const, Duplicated, DuplicatedNoNeed, hvp!

function ehvp!(res::S, f::F, x::S, v::S) where {F, T<:AbstractFloat, S<:AbstractVector{T}}

    make_zero!(res)
    grad = make_zero(x)

    autodiff(
        Forward,
        d -> autodiff_deferred(Reverse, f, Active, d),
        Const,
        DuplicatedNoNeed(Duplicated(x, grad), Duplicated(v, res))
    )

    return nothing
end

#define the quadratic
n = 10
A::Matrix{Float64} = randn((n,n))

# f(x::Vector{Float64})::Float64 = LA.dot(x,A,x)
f(x::Vector{Float64})::Float64 = x'*A*x

#hvp problem setup
x = rand(n)
v = rand(n)
product = (A+A')*v

res = zeros(n)

ehvp!(res, f, x, v)
println("Custom Hvp: ", res ≈ product)

hvp!(res, f, x, v)
println("Enzyme Hvp: ", res ≈ product)

Should be fixed on main (and just tagged), reopen if it persists.

Are you able to explain why the two variants both work, or whether they are both valid? It also seems the official Enzyme variant is a bit faster.
using Enzyme: make_zero, make_zero!, autodiff, autodiff_deferred, Forward, Reverse, Active, Const, Duplicated, DuplicatedNoNeed, hvp!
using BenchmarkTools

function ehvp!(res::S, f::F, x::S, v::S) where {F, T<:AbstractFloat, S<:AbstractVector{T}}

    make_zero!(res)
    grad = make_zero(x)

    autodiff(
        Forward,
        d -> autodiff_deferred(Reverse, f, Active, d),
        Const,
        DuplicatedNoNeed(Duplicated(x, grad), Duplicated(v, res))
    )

    return nothing
end

#define the quadratic
n = 10
A::Matrix{Float64} = randn((n,n))

# f(x::Vector{Float64})::Float64 = LA.dot(x,A,x)
f(x::Vector{Float64})::Float64 = x'*A*x

#hvp problem setup
x = rand(n)
v = rand(n)
product = (A+A')*v

res = zeros(n)

ehvp1!(res, f, x, v)
println("Custom Hvp: ", res ≈ product)
println(res, '\n')

hvp!(res, f, x, v)
println("Enzyme Hvp: ", res ≈ product)
println(res, '\n')

#benchmark
println("\nBenchmarking...")

function rosenbrock(x)
    res = 0.0
    for i = 1:size(x,1)-1
        res += 100*(x[i+1]-x[i]^2)^2 + (1-x[i])^2
    end
    return res
end

dim = 100

x = zeros(dim)
result = similar(x)

t = @benchmark ehvp1!($result, $rosenbrock, $x, v) setup=(v=randn(dim))
println("Custom")
display(t)
println()

t = @benchmark hvp!($result, $rosenbrock, $x, v) setup=(v=randn(dim))
println("Enzyme")
display(t)
println()

Looks reasonable enough to me.
I think the reasons the builtin one may be faster is

you use a closure x -> autodiff_deferred.... This forces recompilation of the derivative code every time [since it doesnt get cached]
Doing separate arguments rather than Duplicated(Duplicated(x, y), ...) is likely faster

This still incurs a seg fault when using LinearAlgebra.dot(x,A,x) instead of x'*A*x. Should I reopen or create a new issue?

Yeah open an issue
On Tue, Jul 9, 2024 at 7:37 PM Cooper Simpson @.***>
wrote:

This still incurs a seg fault when using LinearAlgebra.dot(x,A,x) instead
of x'Ax. Should I reopen or create a new issue?
—
Reply to this email directly, view it on GitHub
https://github.com/EnzymeAD/Enzyme.jl/issues/1597#issuecomment-2218998270,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJTUXA365O62E6QYVCOCVDZLRX45AVCNFSM6AAAAABKGQUA2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJYHE4TQMRXGA
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


IntegerDjangoChoices field not working

Hi there
I am trying out this library and been enjoying it so far.
I am running into this issue. Whenever i use IntegerChoicesField in my model and try to create a model using Django admin interface, it throws this error:
Select a valid choice. 1 is not one of the available choices.

I am using the example code given:
class MyModel(models.Model):
  ...
  class IntegerEnum(models.IntegerChoices):
        FIRST = 1, "First Description"
        SECOND = 2, "Second Description"

    i_field = IntegerChoicesField(
        choices_enum=IntegerEnum,
        default=IntegerEnum.FIRST,
    )

TextChoicesField is working for me but IntegerChoicesField is throwing this error. appreciate any help

Hey @sanginovs ,
This is actually an issue with https://github.com/bellini666/django-choices-field, which is also a project of mine =P
I'll try to transfer this issue there and take a look soon to see what is going on. Thanks for the report

Hrm, it seems I cannot transfer outside of the organization...
Can you open an issue there?

sure. here we go: https://github.com/bellini666/django-choices-field/issues/5

Thank you! I'll close this one


brew audit fails on Linux without zlib headers

[x] ran brew update and can still reproduce the problem?
[x] ran brew doctor, fixed all issues and can still reproduce the problem?
[x] ran brew config and brew doctor and included their output with your issue?

I've reproduced it in multiple environments, see below for one such case.

What you were trying to do (and why)
I was fixing a formula with Linuxbrew. (The mandoc formula did not specify a zlib dependency.) As is required for contributions to core taps, I invoked brew audit --strict mandoc.
What happened (include command output)
The command, brew audit --strict mandoc, failed because the nokogiri gem failed to build native extensions. The output of this process helpfully notes that zlib was not found. (Note that the output differs on subsequent runs with the failure because previously-installed gems are re-used.) Installing my OS's zlib headers and retrying the command caused it to succeed.

Command output

Fetching gem metadata from https://rubygems.org/.........
Fetching concurrent-ruby 1.1.6
Fetching minitest 5.14.0
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Installing minitest 5.14.0
Installing concurrent-ruby 1.1.6
Fetching zeitwerk 2.2.2
Fetching ast 2.4.0
Installing zeitwerk 2.2.2
Installing ast 2.4.0
Using bundler 1.17.2
Fetching connection_pool 2.2.2
Fetching json 2.3.0
Fetching docile 1.3.2
Installing connection_pool 2.2.2
Installing docile 1.3.2
Installing json 2.3.0 with native extensions
Fetching simplecov-html 0.10.2
Using sync 0.5.0
Fetching thor 1.0.1
Installing thor 1.0.1
Installing simplecov-html 0.10.2
Fetching diff-lcs 1.3
Fetching unf_ext <IP_ADDRESS>
Installing diff-lcs 1.3
Fetching hpricot 0.8.6
Installing unf_ext <IP_ADDRESS> with native extensions
Installing hpricot 0.8.6 with native extensions
Fetching jaro_winkler 1.5.4
Installing jaro_winkler 1.5.4 with native extensions
Fetching mime-types-data 3.2019.1009
Installing mime-types-data 3.2019.1009
Fetching net-http-digest_auth 1.4.1
Installing net-http-digest_auth 1.4.1
Fetching mini_portile2 2.4.0
Installing mini_portile2 2.4.0
Fetching ntlm-http 0.1.1
Installing ntlm-http 0.1.1
Fetching webrobots 0.1.2
Installing webrobots 0.1.2
Fetching mustache 1.1.1
Installing mustache 1.1.1
Fetching parallel 1.19.1
Installing parallel 1.19.1
Fetching plist 3.5.0
Installing plist 3.5.0
Fetching rainbow 3.0.0
Installing rainbow 3.0.0
Fetching rdiscount <IP_ADDRESS>
Installing rdiscount <IP_ADDRESS> with native extensions
Fetching rexml 3.2.4
Installing rexml 3.2.4
Fetching rspec-support 3.9.2
Installing rspec-support 3.9.2
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.6.1
Installing unicode-display_width 1.6.1
Fetching ruby-macho 2.2.0
Installing ruby-macho 2.2.0
Fetching tzinfo 1.2.6
Installing tzinfo 1.2.6
Fetching parser <IP_ADDRESS>
Fetching i18n 1.8.2
Installing i18n 1.8.2
Installing parser <IP_ADDRESS>
Fetching net-http-persistent 3.1.0
Installing net-http-persistent 3.1.0
Fetching tins 1.24.1
Fetching simplecov 0.16.1
Installing tins 1.24.1
Installing simplecov 0.16.1
Fetching unf 0.1.4
Installing unf 0.1.4
Fetching mime-types 3.3.1
Fetching nokogiri 1.10.8
Installing mime-types 3.3.1
Fetching parallel_tests 2.31.0
Installing parallel_tests 2.31.0
Fetching rspec-core 3.9.1
Installing rspec-core 3.9.1
Fetching rspec-expectations 3.9.0
Installing nokogiri 1.10.8 with native extensions
Installing rspec-expectations 3.9.0
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching activesupport <IP_ADDRESS>
Installing activesupport <IP_ADDRESS>
Fetching rubocop 0.80.0
Installing rubocop 0.80.0
Fetching domain_name 0.5.20190701
Installing domain_name 0.5.20190701
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching rspec-retry 0.6.2
Installing rspec-retry 0.6.2
Fetching rspec-its 1.3.0
Installing rspec-its 1.3.0
Fetching rspec 3.9.0
Installing rspec 3.9.0
Fetching rubocop-performance 1.5.2
Installing rubocop-performance 1.5.2
Fetching rubocop-rspec 1.38.1
Installing rubocop-rspec 1.38.1
Fetching http-cookie 1.0.3
Installing http-cookie 1.0.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching rspec-wait 0.0.9
Installing rspec-wait 0.0.9
Fetching ronn 0.7.3
Installing ronn 0.7.3
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.8/ext/nokogiri
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/bin/ruby -I
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/lib/ruby/2.6.0 -r
./siteconf20200221-14907-k1mg1h.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.4.0
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
        --with-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/bin/$(RUBY_BASE_NAME)
        --help
        --clean
        --use-system-libraries
        --enable-static
        --disable-static
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --enable-cross-build
        --disable-cross-build
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0-static/nokogiri-1.10.8/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.8 for inspection.
Results logged to
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0-static/nokogiri-1.10.8/gem_make.out
An error occurred while installing nokogiri (1.10.8), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.10.8' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
  mechanize was resolved to 2.7.6, which depends on
    nokogiri

What you expected to happen
I expected brew audit to successfully install its dependencies and complete the audit.
I don't expect to need to install my OS's zlib headers, because under normal circumstances Homebrew/Linuxbrew is self-contained outside of curl, file, git and build-essential or Development Tools or equivalent. (This list comes from the Linuxbrew documentation.)  For example, Homebrew/Linuxbrew downloads portable Ruby, and any formula that uses_from_macos "zlib" will be provided with a brewed zlib on Linux.
Step-by-step reproduction instructions (by running brew commands)
Start with a fresh minimal install of a Debian-based system. I can reproduce this in multiple environments, including Canonical's multipass, used below. You can use any formula you like, including hello, though mandoc is used below.
In an environment provided by multipass shell:
1.)

I'm still seeing this issue on Debian stretch and Debian buster. I wasn't able to test Ubuntu bionic, but I suspect it also appears there. This isn't a major issue, since it's in a developer command and doesn't happen on macOS.
I'm not sure what an acceptable resolution would be. The simplest option is probably documenting the system-level zlib dependency for brew audit on Linux. We might try outputting a warning when attempting to audit without zlib headers. I think other possible solutions might be using brewed zlib for audit on Linux or shipping zlib with the portable binaries provided by Homebrew.

We might try outputting a warning when attempting to audit without zlib headers.

I'd suggest an error rather than warning. This seems like a good resolution. Someone who cares sufficiently should submit a PR.


[SPARK-28535][CORE][TEST] Slow down tasks to de-flake JobCancellationSuite

This test tries to detect correct behavior in racy code, where the event
thread is racing with the executor thread that's trying to kill the running
task.
If the event that signals the stage end arrives first, any delay in the
delivery of the message to kill the task causes the code to rapidly process
elements, and may cause the test to assert. Adding a 10ms delay in
LocalSchedulerBackend before the task kill makes the test run through
~1000 elements. A longer delay can easily cause the 10000 elements to
be processed.
Instead, by adding a small delay (10ms) in the test code that processes
elements, there's a much lower probability that the kill event will not
arrive before the end; that leaves a window of 100s for the event
to be delivered to the executor. And because each element only sleeps for
10ms, the test is not really slowed down at all.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/13342/
Test PASSed.

Test build #108241 has started for PR 25270 at commit 6aa0c3a.

Test build #108241 has finished for PR 25270 at commit 6aa0c3a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/108241/
Test PASSed.


Adding new output type - Javascript Object

I love the fact that the MySQL output can be pasted into SQL editor. I needed the same thing for pasting into Javascript editor when dealing with really large spreadsheets. These changes will allow users to paste the data output straight into their Javascript editor; providing all of the benefits of working with a native Javascript object (and all of its properties).
The code changes in this commit are simply the addition of native instantiation of a Javascript object named mrDataConverterObj, the removal of the newline character (after each record) and enclosing the entire output with single quotes (as you would do if you wanted to parse the output as a JSON object in Javascript).

javascriptObject.docx

Pull request 47 and 48 are in relation to the Javascript object solution


Altering the repo name to be a link that takes you to the Docker Hub page

Altered the repo name on the ImageCard to open the Docker Hub page for the repo when it is clicked on. I tried to follow the style that you all use for the tag link - though I am not sure that is how you want it to be styled (feel free to change to conform to the standards you are trying to set).
A more advanced version of this might be to open that page within another window.

Just tested it, works great. :+1:
But the graphical response distracts me a little, it overlaps the text way too much. Maybe we have an UX designer here, who could help to get the best visual effect.
@jeffdm: Is it possible to open such an external web link in-place in the apps view? Sometimes it's really annoying, when you'll get a new browser windows for each and every click. I just would like to see both ways side-by-side, to come to a better decision what's more convenient for the users.

Yep, I agree with you. It might be a good idea to form up a basic style guide or something so that contributions remain consistent with the over all UX experience.  I think having the page appear as a window in the app makes sense (the overviews are just not enough info for people to pick a container). I am also thinking of adding this to running containers for folks to be able to see what the container is based on.

Thank you so much for this! Definitely a great feature. Will figure out a design and style guide that makes sense. :+1:

Great and thanks. If you all are open to it, I will try to add things as I hit them. For example,  I may take a swag at pulling the dockerfile and let them view it right in the app. Developers like details, and this seems like a logical thing to display.

@allen-servedio I think that's a pretty cool idea. It will definitely improve the "content" side of the design for developers. Imagine you can view a well formatted and syntax highlighted Dockerfile right from the app. It would be nice if we can figure out a way together to keep things super simple while are introducing new contents as well :)

Awesome. Taking a look!

Awesome! This is really cool (and asked for a lot). I added some comments

Sorry for the delay - I made the changes you suggested. Let me know if you want anything else done to it. Thanks for considering the change!

LGTM, merging!

Thanks for this! Awesome!

Hey Jeff - I goofed. I missed one of the tool tips (sorry about that). I pushed another commit to fix it (it is just below the one I fixed).

No worries! I'll pull it in.
Thanks again @allen-servedio !

Ok. Merged! Great! Thanks @allen-servedio !
@DieterReuter this is a neat idea, showing web pages in-app vs opening a separate browser window. We'd need some sort of navigation tree built-in, similar to iOS & Android apps. cc @Elesant


fix: Arabic translation of Sign In With Apple button label

Description
Currently the label of the Sign In With Apple button in Arabic looks like the left image on a Pixel 6 Pro phone.  Apple rejects apps that look like this because it does not adhere to its design guidelines. The label overlaps with Apple logo and the phrase is different than Apple's translation. This PR is a simple fix to issue and the result can be seen below.

Before
After

Apple Design Guidelines

Related Issues
None.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (melos run analyze) does not report any problems on my PR.
[x] All unit tests pass (melos run test:unit:all doesn't fail).
[x] I read and followed the Flutter Style Guide.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

Hey @MahMoos - if you merge this branch with the latest on main branch, we can get this PR merged. Thanks!


How to add text to args: to ping role

For example I want it ping a certain roles with every upload.

Wouldn't it be better to add such an Action?
What is the necessity of doing it in an Action in discord-upload?

I just want it to automatically ping a role everytime an upload happens is this possible currently?

It's possible or impossible to do in this action

Another dev figured out a way if you wanna know how ask him wnuke#1010


chore: use goreleaser and cosign binaries

:tada: This PR is included in version 1.1.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.1.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Question about recommendation

Hi, in the help information there is a recommendation to run longshot through chromosomes separately using the region option. What is the underlying reason for this? Are the outputs going to be different if lets say a complete assembly is run when compared to the same assembly but separated by chromosomes?
Cheers.

This is primarily to reduce memory usage and run-time. Output could be slightly different  since the error rates are estimated from the input reads and used for all likelihood calculations.


Fix config match property attributes

Description
Describe what this change achieves
Issues Resolved

n/a

Check List

[x] A summary of changes made is included in the CHANGELOG under ## Unreleased
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable.

Released as: 1.7.1


Update dependencies

Summary of changes

Additions

  {}

Deletions

  {}

Updates

  {
  "cffi": "1.14.4 -> 1.14.5",
  "cryptography": "3.3.1 -> 3.4.6",
  "jinja2": "2.11.2 -> 2.11.3",
  "matplotlib": "3.3.3 -> 3.3.4",
  "more-itertools": "8.6.0 -> 8.7.0",
  "numpy": "1.19.5 -> 1.20.1",
  "packaging": "20.8 -> 20.9",
  "pandas": "1.1.5 -> 1.2.2",
  "pytz": "2020.5 -> 2021.1",
  "pyyaml": "5.3.1 -> 5.4.1",
  "scipy": "1.6.0 -> 1.6.1",
  "tqdm": "4.56.0 -> 4.58.0",
  "urllib3": "1.26.2 -> 1.26.3"
}

Auto-generated by create-pull-request

Keeping this one, now that the workflow is checked in.

Not sure what our process would suggest here, but I think I can merge this? In this case at least, I believe the updates are for consistency with powersimdata. @kasparm FYI

Not sure what our process would suggest here, but I think I can merge this? In this case at least, I believe the updates are for consistency with powersimdata. @kasparm FYI
edit: lol I can't approve "my own" changes. We should probably create a separate account for automation anyway.

It looks like I can merge it as an administrator. I thought you were one too.

Yeah I could but wanted to have an approval on it. Could you approve/merge this time? I will make an issue to look into the correct way to do this.


bazel: update bazel to 0.29.0

Signed-off-by: Lizan Zhou<EMAIL_ADDRESS>Description:
Bring back test result publication as result of bazelbuild/bazel#8934.
Risk Level: Low
Testing: CI
Docs Changes:
Release Notes:

FWIW: CI failure seems related to https://github.com/bazelbuild/bazel/issues/9284

Consider bumping bazel-toolchains in https://github.com/envoyproxy/envoy/blob/master/bazel/repository_locations.bzl#L6-L10 with
    bazel_toolchains = dict(
        sha256 = "b8f105a6b226603d64de0f9f4fc80eee13c7d341184eb3275a2869a88cca407b",
        strip_prefix = "bazel-toolchains-0.29.0",
        urls = ["https://github.com/bazelbuild/bazel-toolchains/releases/download/0.29.0/bazel-toolchains-0.29.0.tar.gz"],
    ),

Closing this as 0.29.0 won't work, will wait until 0.29.1 released


Record .wav file that sound like "alien voice" with the provided code

In example of sampleReadingWave
The recorded .wav file sounds like "alien voice" after run the provided code

I too face a similar issue.
Is there a prescribed way to record the audio?
I'm recording a 1KHz sine wave. While playing back, it sounds to be distorted.
My test setup is IM69D130 microphone shied coupled with XMC2GO.

Adding to the previous comment...
When I take FFT of the sample wav file which recorded a 1KHz sinusoidal wave, I get a peak at 500Hz.
What could be the reason for this behavior? Please let me know if you need additional details.


zh:change cluster-version

change_cluster_version

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: gyliu513
If they are not already assigned, you can assign the PR to them by writing /assign @gyliu513 in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

content_zh/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Hi @liangyuanpeng. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Please sign the CLA first.

should I use the github account of this email to submit @rootsongjc

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: rshriram
If they are not already assigned, you can assign the PR to them by writing /assign @rshriram in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@liangyuanpeng CI failed but not your fault, you can merge the upstream and commit again to trigger to CI.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by:
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

This PR has no change with the original files, so close it.


AssertionError: choose a window size 400 that is [2, 1]

I try to use the feature extractor on my audiofiles.
My audio files are all 16000Hz and 5 seconds long.
The waveform.shape[1] is 80000
input_values = feature_extractor(waveform, sampling_rate=16000, return_tensors="pt").input_values

I get the error:
AssertionError: choose a window size 400 that is [2, 1]
and I don't really know what to do with it.
Here is the whole thing:
def preprocess_function(examples):
    audio_files = examples['file_path']
    inputs = {'input_values': []}
    for audio_file in tqdm(audio_files, desc="Preprocessing dataset"):
        waveform, sample_rate = torchaudio.load(audio_file)
        # Ensure sample rate is 16000 Hz
        assert sample_rate == 16000, f"Expected sample rate of 16000 Hz, but got {sample_rate} Hz"
        # Assuming all audio files are 5 seconds long
        max_len = 16000 * 5  # 5 seconds at 16000 Hz
        # Pad or truncate to the maximum length
        print(waveform.shape[1])
        if waveform.shape[1] > max_len:
            waveform = waveform[:, :max_len]
        else:
            waveform = torch.nn.functional.pad(waveform, (0, max_len - waveform.shape[1]), "constant", 0)
        input_values = feature_extractor(waveform, sampling_rate=16000, return_tensors="pt").input_values
        inputs['input_values'].append(input_values.squeeze(0))
    return inputs

processed_dataset = dataset_dict.map(preprocess_function, batched=True, remove_columns=['file_path'])```

16kHz 5second should work, our ESC-50 recipe is in this setting. Which line report this error? is your audio monochannel or multi-channel? check shape of waveform.
-Yuan

First of all, thanks for the answer!
My waveform looks like this:
Waveform shape: torch.Size([1, 80000])
Waveform dtype: torch.float32
Number of channels: 1

80000 because of the 16000Hz and the 5 seconds.
And the error happens in:
Cell In[14], line 86, in preprocess_function(examples)
     79     # print(f"Waveform max: {waveform.max()}")
     80     # print(f"Waveform min: {waveform.min()}")
     81     # print(f"Waveform mean: {waveform.mean()}")
     82     # print(f"Waveform std: {waveform.std()}")
     83     # printing the number of channels in the waveform
     84     print(f"Number of channels: {waveform.shape[0]}")
---> 86     input_values = feature_extractor(waveform, sampling_rate=16000, return_tensors="pt").input_values
     87     inputs['input_values'].append(input_values.squeeze(0))
     88 return inputs

File D:\GitLab\ss24-aai-lab\.venv\Lib\site-packages\transformers\models\audio_spectrogram_transformer\feature_extraction_audio_spectrogram_transformer.py:219, in ASTFeatureExtractor.__call__(self, raw_speech, sampling_rate, return_tensors, **kwargs)
    216     raw_speech = [raw_speech]
    218 # extract fbank features and pad/truncate to max_length
--> 219 features = [self._extract_fbank_features(waveform, max_length=self.max_length) for waveform in raw_speech]
    221 # convert into BatchFeature
    222 padded_inputs = BatchFeature({"input_values": features})

File D:\GitLab\ss24-aai-lab\.venv\Lib\site-packages\transformers\models\audio_spectrogram_transformer\feature_extraction_audio_spectrogram_transformer.py:219, in <listcomp>(.0)
    216     raw_speech = [raw_speech]
    218 # extract fbank features and pad/truncate to max_length
--> 219 features = [self._extract_fbank_features(waveform, max_length=self.max_length) for waveform in raw_speech]
    221 # convert into BatchFeature
    222 padded_inputs = BatchFeature({"input_values": features})

File D:\GitLab\ss24-aai-lab\.venv\Lib\site-packages\transformers\models\audio_spectrogram_transformer\feature_extraction_audio_spectrogram_transformer.py:119, in ASTFeatureExtractor._extract_fbank_features(self, waveform, max_length)
    117 if is_speech_available():
    118     waveform = torch.from_numpy(waveform).unsqueeze(0)
--> 119     fbank = ta_kaldi.fbank(
    120         waveform,
    121         sample_frequency=self.sampling_rate,
    122         window_type="hanning",
    123         num_mel_bins=self.num_mel_bins,
    124     )
    125 else:
    126     waveform = np.squeeze(waveform)

File D:\GitLab\ss24-aai-lab\.venv\Lib\site-packages\torchaudio\compliance\kaldi.py:591, in fbank(waveform, blackman_coeff, channel, dither, energy_floor, frame_length, frame_shift, high_freq, htk_compat, low_freq, min_duration, num_mel_bins, preemphasis_coefficient, raw_energy, remove_dc_offset, round_to_power_of_two, sample_frequency, snip_edges, subtract_mean, use_energy, use_log_fbank, use_power, vtln_high, vtln_low, vtln_warp, window_type)
    542 r"""Create a fbank from a raw audio signal. This matches the input/output of Kaldi's
    543 compute-fbank-feats.
    544
   (...)
    587     where m is calculated in _get_strided
    588 """
    589 device, dtype = waveform.device, waveform.dtype
--> 591 waveform, window_shift, window_size, padded_window_size = _get_waveform_and_window_properties(
    592     waveform, channel, sample_frequency, frame_shift, frame_length, round_to_power_of_two, preemphasis_coefficient
    593 )
    595 if len(waveform) < min_duration * sample_frequency:
    596     # signal is too short
    597     return torch.empty(0, device=device, dtype=dtype)

File D:\GitLab\ss24-aai-lab\.venv\Lib\site-packages\torchaudio\compliance\kaldi.py:142, in _get_waveform_and_window_properties(waveform, channel, sample_frequency, frame_shift, frame_length, round_to_power_of_two, preemphasis_coefficient)
    139 window_size = int(sample_frequency * frame_length * MILLISECONDS_TO_SECONDS)
    140 padded_window_size = _next_power_of_2(window_size) if round_to_power_of_two else window_size
--> 142 assert 2 <= window_size <= len(waveform), "choose a window size {} that is [2, {}]".format(
    143     window_size, len(waveform)
    144 )
    145 assert 0 < window_shift, "`window_shift` must be greater than 0"
    146 assert padded_window_size % 2 == 0, (
    147     "the padded `window_size` must be divisible by two." " use `round_to_power_of_two` or change `frame_length`"
    148 )

AssertionError: choose a window size 400 that is [2, 1]

I know that's a lot to ask, but do you have any ideas about what could be wrong? i'm lost.
Thanks a lot.


How to choose version magento to fetch before initproject

is there a way to do that before run initproject ? Default get latest dev branch but i got some issues and it not stable for dev from scratch. Can possible option to run from source locally
If i have core zip file of magento . I unzip it to magento2ce folder and only need run vagrant up

founded in config.yml


can't run with -6

Hello,
if I try to run fiche with IPv6 I'm getting the help message saying that:
 usage: fiche [-dLpsSoBulbw] - as you can see there's no "6" option.
I compiled from git
Other question. How do I bind to IPv6 only? How's the address format accepted by -L?
Thanks

Was able to run some tests with -L:
/usr/local/bin/fiche -d termbin.wood...t.space -L :: -p 9999 -o /var/lib/fiche/code -s 6 -l /var/log/fiche.log -S
netstat -lnp | grep fiche
tcp        0      0 <IP_ADDRESS>:9999    <IP_ADDRESS>:*               LISTEN      868749/fiche

echo "123" | ncat wood...t.space 9999
Ncat: Connection refused.

Anyone here?

https://github.com/solusipse/fiche/blob/master/fiche.c#L446
Hardcoded to IPv4-only.

I see. I'm closing this anyway, since yours was the only answer in 9 months.
Thanks


Sonatype snapshot repo not available

Hi, as reported in your README file, I'm trying to include the last snapshot but the repo is unavailable.
Any idea or tip?
Thanks

Hi, I'm not able to build snapshots for all platforms after each commit currently, so latest available version is release in maven central.

I have a JVM crash and I'd like to try https://github.com/zgmnkv/zwave4j/pull/30 to verify if it solves the issue. A CI system could help you to automate the building process.

You can try to build it yourself. Travis CI is on my list, but it supports only linux and osx. Do you know any other free CI for multi-platform build?

We use Teamcity for our project freedomotic.com.
Take a look at http://teamcity.codebetter.com/project.html?projectId=Freedomotic (login as guest).
Also there is another good solution https://codeship.com/

I have uploded a snapshot with linux 64 bit binary only https://oss.sonatype.org/content/repositories/snapshots/com/github/zgmnkv/zwave4j/

Snapshot with all platforms is uploaded


Could the repo have tags to match dockerhub?

Hi @kylemanna ,
this project is awesome, thanks very much!
I am wondering, can you possibly tag what is currently on master, and use the same tag in Dockerhub? That would mean we could use this image and guarantee it won't change when you do your next update.
Thanks!

Hi there @kylemanna , just wondered if you've seen this, and if you could tag the current HEAD e.g. as 2.4? Thanks!

Agreeing with this.
Sometimes versions break or get incompatible. Now with only 'latest' tag being in use, you might be totally stuck if that happens.

Latest should not be used in production, it's possible to tag some versions ? Thanks :)


Fix bug 4665 project admin can not change the role of some user

Coverage decreased (-0.07%) to 64.301% when pulling ef57bc1e08c3d83cd902f1ece68526b73696ab1a on ninjadq:fix_bug_4665 into e12826ef4200b63ba7b14d6a63ef60a530928b1b on vmware:master.


Comparing two big files throw: "Cannot compare files because one file is too large."

VSCode Version: 1.48.2
OS Version: Windows_NT x64 10.0.19042

Steps to Reproduce:

Install gitlens
Open repo with big file (53MB)
Make changes to this file
Try to see side by side the changes made in the file
5 The error "Cannot compare files because one file is too large." is presented. Differences are not highlighted

Does this issue occur when all extensions are disabled?: Probably not, as I use GitLens to compare the files

As the message says, there's a limit:
https://github.com/microsoft/vscode/blob/11479ca7596c8f3404316e2c353324e8e545bf37/src/vs/editor/common/model/textModel.ts#L191

Thanks for the explanation @gjsjohnmurray.
However, Is not unusual for developers to have laptops with 16GB/32GB/(even) 64GB memory and fast SSD storage.
Having a decent number of developers using this high performing devices should be a reason good enough to consider making this limit editable through settings.

Similarly to how editor.stopRenderingLineAfter accepts a parameter -1 for those who use devices with enough resources to deal with extremely long lines.


flux_sync may produce incompatible documents

flux_install has a useful attribute version which allows us to lock the installed component version.
flux_sync produces kustomization document that are only compatible with the unconfigurable default version.
Just had a very serious issue (luckily on stage) with the new Flux Provider 0.4.0 where terraform failed to create the new terraform kustomziation document (it was incompitible with Flux 0.17.x, which I use), so it removed it, and then my Kustomization controller removed all of components that were installed using Flux.
Solutions alternatives:

Remove the version attribute from flux_install.
Add version attribute to flux_sync

Closing this issue now.


Added instruction about terpl.colorize to ?

thanks!

Nice. I had always to go back to the on-line doc for getting the correct syntax. Now it's always with me :grin:


Complete milestone 2-3-4

In light of our recent discussions with the seed group, this issue aims to update and refine the details for Milestones 2, 3, and 4 of this project. Please review the notes from our last meeting for detailed information and align these updates with the overall project timeline.
@rngadam please complete if necessary

As discussed, future milestones high-level goals are fine, but our focus should be on first completing milestone 1 before we do further planning on the following milestones as the direction and goals may change radically.


Improve Mobile Filter Range

Need to improve this component on Filters/src/mobile/range_filter.html
Improvements required :

Replace Teal Color with Blue color as per figma design
Make design as per figma design

Any reference image?
range_filter.html

Figma design

@RavindraP04 go ahead


Removing item from queue causes app to not respond

Thanks for the new version. Found an issue when I individually remove an item from the queue, the app freezes. It doesn't seem to happen every time, but most of the time, so something about specific videos? If the queue has 2 or more videos and I use remove all it seems to work fine though.
Also a couple small display issues I noticed for the select formats window:

The automatically chosen video format does not have the orange/brownish highlight, but 8k videos do seem to have the highlight.
If there are many formats to choose from, a scrollbar will appear, but the height is still a bit too big and the buttons at the bottom get cut off (I only see around the top 1/3 to 1/2 of the buttons). Maybe this differs slightly across each setup?

Found an issue when I individually remove an item from the queue, the app freezes.

I've just released a patch version that fixes this, thanks for the report.

The automatically chosen video format does not have the orange/brownish highlight, but 8k videos do seem to have the highlight.

That's very strange. I wasn't able to reproduce this, and looking briefly at the code, it seems physically impossible! In the next version, I'm going to remove that capability entirely, since it's no longer used (the formats that yt-dlp chooses are now indicated with an asterisk).

If there are many formats to choose from, a scrollbar will appear, but the height is still a bit too big and the buttons at the bottom get cut off (I only see around the top 1/3 to 1/2 of the buttons). Maybe this differs slightly across each setup?

I'm guessing that's because you're not auto-hiding your taskbar. I forgot that's even a possibility! I'll see if I can fix this in the next version.


Document default thumbnail icon is not visible in unified search result listing

Description:
Please not the $subject.
Steps to reproduce:

Deploy sample API
Create an inline document for that API
Search for that document in the search bar and press Enter

Affected Product Version:

Latest
3.1.0

Environment details (with versions):

OS:
Client:
Env (Docker/K8s):

Optional Fields
Related Issues:

Suggested Labels:

Suggested Assignees:

'
Fixed the styling issues also with the following commit.


İssue- how can I be ensure that UserInformation that taken fromfirebase ??? include (while hotrestart)

If we take user's information from firebase before both initliaze and login, then we build app we ensure information is taken surely.

We can take email adress too,

we can take already email from AuthService.firebase(), not necessary


git fetch on status

Add fetch when you run the status command. Make this configurable from .mudsettings

Resolved in 5dbd483


odd behaviour for transtion(t) in d3 timer

when i use selection.transition(t) in a d3.timeout or d3.inerval, the transition ease looks like something wrong, but when i use transition().duration(1000).ease(d3.easeLinear) the transition works well. below is the reproduction link
https://codepen.io/sungunguoqiang/pen/wvvxPRq?editors=1011

You can only inherit from a transition that’s still running. If the transition t has ended by the time your timeout fires, it will be ignored when you pass it to selection.transition; you’ll just get the default timing parameters. You can only inherit when the transition t has no yet ended, and the transition t applies to a parent element of the selection.

See also #59.


E.showPrompt fires lcdPower

When I call E.showPrompt the event lcdPower is fired. Although the display is on.
Is that a bug or a feature? :)

Wenn ich E.showPrompt aufrufe wird das event lcdPower gefeuert. Obwohl das Display an ist.
Ist das ein Bug, oder ein Feature? :)

Input:
Bangle.on('lcdPower', on => console.log("lcdPower: " + on))
E.showPrompt("Test")

Output:
=Promise: {  }
lcdPower: true

expected output:
=Promise: {  }

English please.
So far i found this piece of code which looks like the screen is being turned on:
https://github.com/espruino/Espruino/blob/35e46ef6a12ab3dd72e639439ba5f1d409253958/libs/js/banglejs/E_showPrompt_Q3.js#L57

Hello,
thanks for the reply and sorry for the wrong language.
Then it is a featrue rather than a bug.
Do you think it is possible to control this behavior via an option?
if (!option.keepScreenStatus) {
  Bangle.setLCDPower(1);
}

I haven't found a way to check if the backlight is on.
if (!Bangle.isLCDOn()) {
  Bangle.setLCDPower(1);
}

would work, but does not turn on the backlight.

I haven't found a way to check if the backlight is on.

Hmm - good point - I'm not sure there is any way at the moment.
So the issue I think is that Bangle.setLCDPower(1); fires an lcdPower event even if the LCD is already on? Rather than changing showPrompt/others we should just not fire lcdPower if the LCD was already on?

Sorry for the late reply.
I think it is an alternative.
Unfortunately I can not serve with a PR, because I have not found the corresponding code.

Just fixed - looks like the code was intended to only send events on changes, but there was a bug which meant it always fired events


Add Silverstripe CMS

https://github.com/wernerkrauss/awesome-silverstripe-cms
Silverstripe CMS a rapid development MVC framework that serves as a classic fully fledged CMS or as a headless CMS, which can be queried either via GraphQL or a custom API.
By submitting this pull request I confirm I've read and complied with the below requirements 🖖
Please read it multiple times. I spent a lot of time on these guidelines and most people miss a lot.
Requirements for your pull request

Don't waste my time. Do a good job, adhere to all the guidelines, and be responsive.
You have to review at least 2 other open pull requests.
Try to prioritize unreviewed PRs, but you can also add more comments to reviewed PRs. Go through the below list when reviewing. This requirement is meant to help make the Awesome project self-sustaining. Comment here which PRs you reviewed. You're expected to put a good effort into this and to be thorough. Look at previous PR reviews for inspiration. Just commenting “looks good” or simply marking the pull request as approved does not count! You have to actually point out mistakes or improvement suggestions.
You have read and understood the instructions for creating a list.
This pull request has a title in the format Add Name of List.

✅ Add Swift
✅ Add Software Architecture
❌ Update readme.md
❌ Add Awesome Swift
❌ Add swift
❌ add Swift
❌ Adding Swift
❌ Added Swift

Your entry here should include a short description about the project/theme of the list. It should not describe the list itself. The first character should be uppercase and the description should end in a dot. It should be an objective description and not a tagline or marketing blurb.

✅ - [iOS](…) - Mobile operating system for Apple phones and tablets.
✅ - [Framer](…) - Prototyping interactive UI designs.
❌ - [iOS](…) - Resources and tools for iOS development.
❌ - [Framer](…)
❌ - [Framer](…) - prototyping interactive UI designs

Your entry should be added at the bottom of the appropriate category.
The suggested Awesome list complies with the below requirements.

Requirements for your Awesome list

Has been around for at least 30 days.That means 30 days from either the first real commit or when it was open-sourced. Whatever is most recent.
Don't open a Draft / WIP pull request while you work on the guidelines. A pull request should be 100% ready and should adhere to all the guidelines when you open it.
Run awesome-lint on your list and fix the reported issues. If there are false-positives or things that cannot/shouldn't be fixed, please report it.
The default branch should be named main, not master.
Includes a succinct description of the project/theme at the top of the readme. (Example)

✅ Mobile operating system for Apple phones and tablets.
✅ Prototyping interactive UI designs.
❌ Resources and tools for iOS development.
❌ Awesome Framer packages and tools.

It's the result of hard work and the best I could possibly produce.
If you have not put in considerable effort into your list, your pull request will be immediately closed.
The repo name of your list should be in lowercase slug format: awesome-name-of-list.

✅ awesome-swift
✅ awesome-web-typography
❌ awesome-Swift
❌ AwesomeWebTypography

The heading title of your list should be in title case format: # Awesome Name of List.

✅ # Awesome Swift
✅ # Awesome Web Typography
❌ # awesome-swift
❌ # AwesomeSwift

Non-generated Markdown file in a GitHub repo.
The repo should have awesome-list & awesome as GitHub topics. I encourage you to add more relevant topics.
Not a duplicate. Please search for existing submissions.
Only has awesome items. Awesome lists are curations of the best, not everything.
Does not contain items that are unmaintained, has archived repo, deprecated, or missing docs. If you really need to include such items, they should be in a separate Markdown file.
Includes a project logo/illustration whenever possible.

Either centered, fullwidth, or placed at the top-right of the readme. (Example)
The image should link to the project website or any relevant website.
The image should be high-DPI. Set it to maximum half the width of the original image.

Entries have a description, unless the title is descriptive enough by itself. It rarely is though.
Includes the Awesome badge.

Should be placed on the right side of the readme heading.

Can be placed centered if the list has a centered graphics header.

Should link back to this list.

Has a Table of Contents section.

Should be named Contents, not Table of Contents.
Should be the first section in the list.
Should only have one level of nested lists, preferably none.

Has an appropriate license.

We strongly recommend the CC0 license, but any Creative Commons license will work.

Tip: You can quickly add it to your repo by going to this URL: https://github.com/<user>/<repo>/community/license/new?branch=master&template=cc0-1.0 (replace <user> and <repo> accordingly).

A code license like MIT, BSD, Apache, GPL, etc, is not acceptable. Neither are WTFPL and Unlicense.
Place a file named license or LICENSE in the repo root with the license text.
Do not add the license name or text to the readme. GitHub already shows the license name at the top of the repo.
To verify that you've read all the guidelines, please comment on your pull request with just the word unicorn.

Has contribution guidelines.

The file should be named contributing.md. Casing is up to you.

Has consistent formatting and proper spelling/grammar.

The link and description are separated by a dash. Example: - [AVA](…) - JavaScript test runner.
The description starts with an uppercase character and ends with a period.
Consistent and correct naming. For example, Node.js, not NodeJS or node.js.

Doesn't use hard-wrapping.
Doesn't include a Travis badge.You can still use Travis for list linting, but the badge has no value in the readme.
Doesn't include an Inspired by awesome-foo or Inspired by the Awesome project kinda link at the top of the readme. The Awesome badge is enough.

Go to the top and read it again.

unicorn

Reviews:
https://github.com/sindresorhus/awesome/pull/1878
https://github.com/sindresorhus/awesome/pull/1872

The entry to this list seems to be missing the trailing dot.

@sdassow thanks, good catch.  I ran the linter on my own list but missed this one. It's fixed now.

@wernerkrauss the spacing seems kind of off in the "Official Websites" section. Not sure if that's intentional.

@chrisdiana thanks for pointing this out, it's fixed now.

You have lot of entries in your list without descriptions.

@oncleben31 Thanks for your input. I shortened some items. Better now?

My comment was more about the entries with no description like TinyMCE Configuration Examples For SS3 and Silverstripe Recipes on Packagist even if the title is understandable. I thin for list consistency it could be better to have some description.

@oncleben31 Thanks. I added the missing descriptions and it really seems to be better now.
Thinking about it I also restructured the sections, so hopefully the general structure is now more understandable. What do you think about it?

I like what you did. LGTM

Silverstripe CMS in Silverstripe CMS is an open source PHP framework should be linkified to its website.

Silverstripe CMS in Silverstripe CMS is an open source PHP framework should be linkified to its website.

Hi @sindresorhus, thanks for reviewing my PR.

Silverstripe CMS in Silverstripe CMS is an open source PHP framework should be linkified to its website.

That's fixed in https://github.com/wernerkrauss/awesome-silverstripe-cms/commit/a09160e1ed612d34e732307fd274405ab3fba0ea

Hi @sindresorhus, thanks for reviewing my PR.

Silverstripe CMS in Silverstripe CMS is an open source PHP framework should be linkified to its website.

That's fixed in https://github.com/wernerkrauss/awesome-silverstripe-cms/commit/a09160e1ed612d34e732307fd274405ab3fba0ea

Tweet: https://twitter.com/awesome__re/status/1348216716988358656

Tweet: https://twitter.com/awesome__re/status/1348216716988358656


Do not prefix found version with v

Removes prefixes the source ref version with v. I'm not sure why we were doing this, since the git tag or specified version should have it anyway.
You now need to specify vx.x.x in your app src if you want a v prefix. This change also requires you to use the latest rebar3_hex since the latest version will strip off v if it exists before attempting to parse and increment when using rebar3 hex cut.

Actually, I'll modify this to provide a no_prefix_version option or something similar.


[question] Does FastJson use reflection ?

I was wondering if FastJson use reflection in its implementation ?
I am considering between FastJson and Kotlinx Serializer for my project, since I know that Kotlinx Serializer doesn't use reflection in its implementation therefore it doesn't suffer from reflection performance overhead https://blog.frankel.ch/performance-cost-of-reflection/.

By default, fastjson uses ASM(a technique that dynamically generates/modifies .class bytecode files directly) instead of reflection, which can be toggled by using annotation.

ASM default，and Reflection optional.

In filedBase mode, only reflection will be used.


While updating participant views, defer any further updates until the current update completes

Purpose

This pull request creates a separate update function dedicated for both onIsMutedChanged and onIsSpeakingChanged.
This pull request modifies the participant views update logic so that whenever an update is in progress, we halt any further update requests until the current update completes. Only then we execute another update.
This addresses the bug reported on https://github.com/Azure/Communication/issues/300 where the onIsSpeakingChanged event is being triggered when remote participants leave the call.
Otherwise, if both onIsSpeakingChanged and onRemoteParticipantsUpdated events are fired simultaneously, previous implementation uses queueParticipantViewsUpdate() for onIsSpeakingChanged and queueParticipantViewsUpdate() will be invoked twice; the second execution may lead to the evaluation of the expression below, thereby skipping the actual update. This results in the participant views not updating occasionally when remote participants leave the call.

if self.isParticipantViewsUpdatePending {
    return
}

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type
What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

What to Check
Verify that the following are valid

Make sure remote participants have their mute and active speaker indicators updated correctly when changed
Make sure participant views updated correctly when remote participants leave the call

I was able to reproduce the issue as originally stated and was unable to reproduce it in the fix branch.
About participantViewUpdate:

I find it a bit confusing to intuitively think about what the method does based off of the name.  I'm not sure if the method fully represents what it does, especially in relation to updateParticipantViews.

The action based off of the notification seems to make sense however:

onRemoteParticipantsUpdated -> queueParticipantViewsUpdate -> updateParticipantViews
onRemoteParticipantViewChanged -> participantViewUpdate

I wonder if there's a way for the addition and removal of participants code to be separate from the updating of their views

We no longer use this implementation. Had a discussion with @AmyL219 and we have another approach to the problem at hand. Another round of review and test would be much appreciated.


LIB: Add telemetry features

The kotlin-ice-adapter should send the same telemtry data as the java one. The protocol data classes are already present, but the data is neither collected nor sent anywhere.
Reference: java code

I have started working on this.


Final check Browscap

Hello @mimmi20 (sorry to ping again)
i start now to finalize the BrowscapPhp provider.
Could you maybe check if i missed here something, or done something wrong in the implementation?
https://github.com/ThaDafinser/UserAgentParser/blob/master/src/Provider/BrowscapPhp.php
For testing i create a small browscap.ini file and used it in the tests.
https://github.com/ThaDafinser/UserAgentParser/blob/master/tests/fixtures/browscap.ini
Is this fine or do i need to mock i further?
https://github.com/ThaDafinser/UserAgentParser/blob/master/tests/unit/Provider/BrowscapPhpTest.php#L41

Last note: The unitTests are not finished, since i was not sure if the mocking is good this way and i want this "clean" first.

@ThaDafinser On line 148/149 I dont understand why do you check for a version, but dont add it to your Model. I asume this should the same as the line 169-179. You should handle this lines independed of the Bot status.
The ini file you created is ok, but not really needed. You should mock as much as possible.

Thank you for the feedback.

On line 148/149 I dont understand why do you check for a version, but dont add it to your Model

That was a copy paste error, which i fixed now
https://github.com/ThaDafinser/UserAgentParser/commit/2cb2ad5edb061457fbc073b0ade7fb4b06c8613b

The ini file you created is ok, but not really needed. You should mock as much as possible.

You are right. I will mock the parser result completely, so the test will also be faster.

Tests are now mocked.
If there are other changed, feel free to open a new issue.
Thank you so far for  the help!
https://github.com/ThaDafinser/UserAgentParser/blob/master/tests/unit/Provider/BrowscapPhpTest.php#L15


Product Backlog (PDF)

As a requirement of the coursework, we are supposed to create a Product Backlog. A product backlog is used to make sure every member of the group is noticed by what they are doing well within the Group work assignment and within this product backlog documentation there are dates that are being recorded regarding the process. For example what day it was tested. this is a fantastic methodology to use when you are participating in a group session due to the fact that it keeps everyone on track and it is a suitable way to keep a timetable.

Regarding the information of which we have used in regards of the requirements per student, we have located this on Spring one requirement. this could be found in Moodle at the Roehampton website for any further support. The location of the lesson would be coursework requirements.


Update createTransformationMappings helper

Update regexes to account for OSP mapping types.
Notes

Once #530 is merged, this is needed in order to create OSP specific transformation mappings
The Infrastructure Mappings section in Overview will need to be updated for OSP mappings.

Addendum to issues #505, #506, #507, #508
OSP Transformation Mapping

Ok @AllenBW, sadly, the endpoint names and the attribute types didn't quite line up (e.g. api/data_stores vs. .storages), but I think using a generic regex that matches on everything following the protocol://domain should work

@AllenBW updated :)


Poster image is not full fill the player before video loaded

Expected behaviour
The poster image full fill the player before video loaded.
Actual behaviour
If the internet speed is slow to access the video or the video file does not exist, the  poster image can not full fill the player until the video loaded.

Environment
Browser: Chromium 87 and Firefox 86
Operating System: Windows 10
Link to where the bug is happening
e. g. https://plyr.io/
Thank you for your work!

That's the mistake (Plyr 3.6.3)

That's the mistake (Plyr 3.6.3)

For now this css override works:
.plyr__poster {
    background-size: cover;
}

It would be cool to have poster background-size property regulated by custom css variable as well though.


Separate classes for text-field, checkbox-field

Hello,
I was trying to apply bootstrap style to this addon, using the environment variable settings.
'ember-form-for': {
      fieldClasses: 'form-group',
      fieldHasErrorClasses: 'has-error',
      inputClasses: 'form-control',
      hintClasses: '',
      errorClasses: 'alert alert-danger'
}

It works ok for text-based inputs (text, email, password, etc., select), but it also applies the form-control class to unwanted elements (checkbox, radio button).
What would be the correct way for applying the 'form-control' class only to some type of fields?
Thank you!

I just ran into this as well. form-control is showing up on radio buttons as well.

Since I was having problems with the radio buttons I decided to create another css class that will remove the bits from form-control that I don't want.
.form-control.small-form-control{
  height: 0;
  width: 0;
}

Then add the input class:
{{f.radio-field 'singleMgtUnit' true label='Yes' inputClasses='small-form-control'}}

For anyone having this issue, here's a temporary fix:
Add CSS class:
.checkbox-reset {   -webkit-appearance: checkbox !important;   -moz-appearance: checkbox !important;   -ms-appearance: checkbox !important;   -o-appearance: checkbox !important;   appearance: checkbox !important;   width: 15px;   height: 15px;   display: inline; }
Use checkbox-field like this:
{{f.checkbox-field "state" label="Check me" inputClasses="checkbox-reset" }}


Remove sleep in import blocks

Small fix to remove usage of sleep in the import_blocks function.
We are now using Delay instead of thread::sleep.
Closes #6115

I'm not familiar with the code that's being touched, but the diff makes sense to me and looks good.

bot merge


Could you please explain, how to train and test POSE ESTIMATION on this caffe version?

Is there any demo file, of how it works for this application, steps from data preparation, model selection? If not, could you please provide one? Where is the data located? How to pass it via arguments
Itried,
ppl4hi@HI-Z0FH9:~/CODES/Deep3DPose-master/5-caffe$ ./examples/adaptation/scripts/prepare_experiments.sh
 Downloading AlexNet reference model...
Downloading ImageNet aux data...
Preparing datasets...
Preparing directories for experiments...
ppl4hi@HI-Z0FH9:~/CODES/Deep3DPose-master/5-caffe$

But, the folder /5-caffe/examples/adaptation/datasets/ is empty, so it gives me error when training. What could be the reason?
May be because of this, when running train.sh script, i get error

ppl4hi@HI-Z0FH9:~/CODES/Deep3DPose-master/5-caffe$ ./examples/adaptation/experiments/amazon_to_webcam/scripts/train.sh
I0131 15:40:19.995388 22027 caffe.cpp:113] Use GPU with device ID 0
I0131 15:40:21.525190 22027 caffe.cpp:121] Starting Optimization
I0131 15:40:21.525326 22027 solver.cpp:34] Initializing solver from parameters:
test_iter: 795
test_interval: 10000
base_lr: 0.001
display: 100
max_iter: 50000
lr_policy: "inv"
gamma: 0.001
power: 0.75
momentum: 0.9
snapshot: 10000
snapshot_prefix: "/home/ppl4hi/CODES/Deep3DPose-master/5-caffe/examples/adaptation/experiments/amazon_to_webcam/snapshots/train"
solver_mode: GPU
net: "/home/ppl4hi/CODES/Deep3DPose-master/5-caffe/examples/adaptation/experiments/amazon_to_webcam/protos/train_val.prototxt"
I0131 15:40:21.525411 22027 solver.cpp:87] Creating training net from net file: /home/ppl4hi/CODES/Deep3DPose-master/5-caffe/examples/adaptation/experiments/amazon_to_webcam/protos/train_val.prototxt
I0131 15:40:21.526595 22027 net.cpp:257] The NetState phase (0) differed from the phase (1) specified by a rule in layer target_data
I0131 15:40:21.526620 22027 net.cpp:257] The NetState phase (0) differed from the phase (1) specified by a rule in layer target_domain_labels
I0131 15:40:21.526648 22027 net.cpp:257] The NetState phase (0) differed from the phase (1) specified by a rule in layer bottleneck_alias
I0131 15:40:21.526660 22027 net.cpp:257] The NetState phase (0) differed from the phase (1) specified by a rule in layer lp_accuracy
I0131 15:40:21.526957 22027 net.cpp:42] Initializing net from parameters:
name: "AlexNet for Office"
state {
  phase: TRAIN

.
.
.
.

I find that, in the script, I see a folder, but cant locate it. May be that is the problem?
domain_adaptation_images
# Prepare lmdb databases for the Office dataset.
echo "[*] Preparing datasets..."
mkdir ./examples/adaptation/datasets
for DOMAIN in amazon webcam dslr; do
    python ./examples/adaptation/scripts/convert_data.py \
        -s **$OFFICE_DIR/domain_adaptation_images/** \
        -t ./examples/adaptation/datasets/ \
        -d $DOMAIN -i 1 >/dev/null 2>/dev/null
done

So, basically its abou the arguments with which  prepare_experiment is called!. So getting back to the 1st questions. Where is the test and train data located?
If possible could you also mention how to do this? like, what and how to run ?

Well, first, my caffe is modified by ICML paper https://github.com/ddtm/caffe. Then, based on this version, I change some layers, adding listener.
Second, the demo you run is the one in ICML, not my demo. I didn;t supply any demo file.

To run my demo, first you need to prepare two pieces of data. Say, one is real image, for example, you can download LSP dataset(a real sports images). the other is synthetic data, you can render them by my program.
Then, to train the data, you need to convert the real image and synthetic image into lmdb format. Then you need to set their label, say, synthetic data is 0 and real data is 1.
Next, you can run my program. You should set grl_train, grl_interval and fc_interval in solver.prototxt.
I would recommend you to read my paper to understand the domain adaptation part.
Also, you can write an email to me and I can supply my setting file. my email is<EMAIL_ADDRESS>

Do you want to use my caffe version to do some domain adaptation task?

Yes, I would contact you. Thanks for you replies.

Is this repository's caffe version, only a part of the  full train-test caffe version for estimating the pose?
Because,  I expect, the image and 3d Joint positions as the input and  ground truth respectively fro training, and for testing, if given an image, it would predict the joint positions. It seems that, I am mistaken! :(

if you want to use my caffe model(http://irc.cs.sdu.edu.cn/Deep3DPose/model/model.zip), you can use it in a normal caffe version.
If you want to train it by domain adaptation part, you should use my caffe version .

Thank you very much for your time and patience !


Missing stub files (and other detail) in 9.0 and 8.0 with locale and datatables scaffold

I tried to go for a new project with 9.0 and I found:
-Missing Boilerplates (linked from the documentation) for Adminlte https://github.com/InfyOmLabs/adminlte-generator/tree/9.0 bring to a 404 (with /8.0 is present the 8 version)
-Installing the AdminLTE + Datatables:
-Missing some stubs about "locale" and "datatables" scaffold generation
-Missing documentation about the right version of datatables-button to use with dependencies of 9.0, that is 5.0
-Random error generating assets ( Sometimes "npm install && npm run dev" bring to a generic error but clearing modules and cache, sometimes it works, very strange behaviour).
Now I tried cloning boilerplate 8.0 that is working but with "--jqueryDT" ther's another missing stub:
"vendor/infyomlabs/adminlte-templates/templates/scaffold/views/js_index.stub"
Last detail, I found that datatables usage bring to loose some correct AdminLTE padding making the datatables content stck to the template border.
Hope this may help in solving these issues.

As per this comment, we are moved with our own package of laravel-ui-adminlte. so localization is pending.
We are not sure, how to support it yet, But soon we will try to add it.
Suggestions or any PRs are welcomed from the community.

Duplicate of https://github.com/InfyOmLabs/adminlte-templates/issues/82

Localization support is added in v5.1.0.


feat: implement-port-capability-path

Description:
As a developer , I want to implement a port capability path so that I can easily establish connections and transfer data between different modules. I want to be able to create a port capability for my module, so that other modules can establish connections with my module and initiate data transfer. And also want to establish a connection with another module by providing its port capability path, so that I can initiate data transfer between the two modules.
Commit Message
feat: implement port capability

see the guidelines for commit messages.
Checklist:

[x] I have performed a self-review of my own code
[x] I have documented my code in accordance with the documentation guidelines
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have run the unit tests
[ ] I only have one commit (if not, squash them into one commit).
[x] I have a descriptive commit message that adheres to the commit message guidelines

Please review the CONTRIBUTING.md file for detailed contributing guidelines.

Codecov Report

Merging #297 (92200e6) into main (28e24b3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #297   +/-   ##
=======================================
  Coverage   46.98%   46.98%
=======================================
  Files          94       94
  Lines       15263    15263
=======================================
  Hits         7171     7171
  Misses       8092     8092

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


[Event Request] Codeunit 7044 "Price Asset - Resource Group" - OnAfterFillAdditionalFields

Describe the request
Hello development team,
For some of our features we would like to see the new event added as in the example code below.
local procedure FillAdditionalFields(var PriceAsset: Record "Price Asset")
    begin
        PriceAsset.Description := ResourceGroup.Name;
        PriceAsset."Unit of Measure Code" := '';
        PriceAsset."Variant Code" := '';
        PriceAsset."Work Type Code" := '';

        >>> New Event
        OnAfterFillAdditionalFields(PriceAsset, ResourceGroup);
        <<< New Event
    end;

  [IntegrationEvent(false, false)]
   local procedure OnAfterFillAdditionalFields(var PriceAsset: Record "Price Asset" temporary; ResourceGroup: Record "Resource Group")
   begin
   end;

There is only one caveat to this code example, the name of the variable in the OnAfterFillAdditionalFields event will have to be different because it's the same as the global variable, but I will leave this naming up to you according to your conventions.
Additional context
For some of our features we need to populate extra data from the Item Disc. Group into the Price Asset record.
Business Central already already has these similar events for Item and Resource, but not for these other "Price Asset Types":

Item Discount Group
Resource Group (this request)
Service Cost
G/L Account
Internal work item: AB#539235

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 21487.


ACG and APGD loss runtime error with single sample

Describe the bug
When generating an adversarial example from a single sample using ACG or APGD, an error occurs while calculating the loss using both DLR and crossentropy (same error for APGD and ACG). This behavior does not occur using PGD.
To Reproduce
Steps to reproduce the behavior:

Define model arch (called PPOAppendPolicy in my code):
Sequential(
(0): Linear(in_features=29, out_features=64, bias=True)
(1): Tanh()
(2): Linear(in_features=64, out_features=64, bias=True)
(3): Tanh()
(4): Linear(in_features=64, out_features=10, bias=True)
)
Define pytorch classifier:
PolicyClf = PyTorchClassifier(model=PPOAppendPolicy,
loss=nn.CrossEntropyLoss(),
input_shape=PPOmodel.env.observation_space.shape, #(29,)
nb_classes=PPOmodel.action_space.n)   # 10
Define sample to be attacked, this is a float32 np.array called obs
Try attack with DLR loss:
attack = APGD(PolicyClf, loss_type="difference_logits_ratio")
obs_adv = attack.generate(np.expand_dims(obs, axis=0)) #expand dims so obs isn't interpreted as 29 separate samples
Error:
RuntimeError                              Traceback (most recent call last)
Cell In[46], line 2
1 attack = APGD(PolicyClf, loss_type="difference_logits_ratio")
----> 2 obs_adv = attack.generate(np.expand_dims(obs, axis=0))

File /usr/local/lib/python3.10/dist-packages/art/attacks/evasion/auto_projected_gradient_descent.py:500, in AutoProjectedGradientDescent.generate(self, x, y, **kwargs)
497 x_1 = x_init_batch + perturbation
499 f_0 = self.estimator.compute_loss(x=x_k, y=y_batch, reduction="none")
--> 500 f_1 = self.estimator.compute_loss(x=x_1, y=y_batch, reduction="none")
502 # modification for image-wise stepsize update
503 self.eta_w_j_m_1 = eta.copy()
File /usr/local/lib/python3.10/dist-packages/art/estimators/classification/pytorch.py:747, in PyTorchClassifier.compute_loss(self, x, y, reduction, **kwargs)
745 # Return individual loss values
746 self._loss.reduction = reduction
--> 747 loss = self._loss(model_outputs[-1], labels_t)
748 self._loss.reduction = prev_reduction
750 if isinstance(x, torch.Tensor):
File /usr/local/lib/python3.10/dist-packages/art/attacks/evasion/auto_projected_gradient_descent.py:292, in AutoProjectedGradientDescent.init..DifferenceLogitsRatioPyTorch.call(self, y_pred, y_true)
289 i_z_i_list = []
291 for i in range(y_true.shape[0]):
--> 292     if i_y_pred_arg[i, -1] != i_y_true[i]:
293         i_z_i_list.append(i_y_pred_arg[i, -1])
294     else:
RuntimeError: Boolean value of Tensor with more than one value is ambiguous
6. Try with crossentropy:
attack = ACG(PolicyClf)
obs_adv = attack.generate(np.expand_dims(obs, axis=0))
7. error:
RuntimeError                              Traceback (most recent call last)
Cell In[42], line 2
1 attack = ACG(ActionClf)
----> 2 obs_adv = attack.generate(np.expand_dims(obs, axis=0))
File /usr/local/lib/python3.10/dist-packages/art/attacks/evasion/auto_conjugate_gradient.py:519, in AutoConjugateGradient.generate(self, x, y, **kwargs)
516 x_1 = x_init_batch + perturbation
518 f_0 = self.estimator.compute_loss(x=x_k, y=y_batch, reduction="none")
--> 519 f_1 = self.estimator.compute_loss(x=x_1, y=y_batch, reduction="none")
521 self.eta_w_j_m_1 = eta.copy()
522 self.f_max_w_j_m_1 = f_0.copy()
File /usr/local/lib/python3.10/dist-packages/art/estimators/classification/pytorch.py:747, in PyTorchClassifier.compute_loss(self, x, y, reduction, **kwargs)
745 # Return individual loss values
746 self._loss.reduction = reduction
--> 747 loss = self._loss(model_outputs[-1], labels_t)
748 self._loss.reduction = prev_reduction
750 if isinstance(x, torch.Tensor):
File /usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py:1501, in Module._call_impl(self, *args, **kwargs)
1496 # If we don't have any hooks, we want to skip the rest of the logic in
1497 # this function, and just call forward.
1498 if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
1499         or _global_backward_pre_hooks or _global_backward_hooks
1500         or _global_forward_hooks or _global_forward_pre_hooks):
-> 1501     return forward_call(*args, **kwargs)
1502 # Do not call functions when jit is used
1503 full_backward_hooks, non_full_backward_hooks = [], []
File /usr/local/lib/python3.10/dist-packages/torch/nn/modules/loss.py:1174, in CrossEntropyLoss.forward(self, input, target)
1173 def forward(self, input: Tensor, target: Tensor) -> Tensor:
-> 1174     return F.cross_entropy(input, target, weight=self.weight,
1175                            ignore_index=self.ignore_index, reduction=self.reduction,
1176                            label_smoothing=self.label_smoothing)
File /usr/local/lib/python3.10/dist-packages/torch/nn/functional.py:3029, in cross_entropy(input, target, weight, size_average, ignore_index, reduce, reduction, label_smoothing)
3027 if size_average is not None or reduce is not None:
3028     reduction = _Reduction.legacy_get_string(size_average, reduce)
-> 3029 return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
RuntimeError: only batches of spatial targets supported (3D tensors) but got targets of size: : [1]
Expected behavior
This approach works for PGD:
attack = PGD(PolicyClf)
obs_adv = attack.generate(np.expand_dims(obs, axis=0))
System information (please complete the following information):

UBUNTU 20.04
Python version 3.10.6
ART version 1.14.1
PyTorch version 2.0.0

Hi @KandBM Thank you very much for using ART!
What is the shape of np.expand_dims(obs, axis=0) as input to method generate?

It's a 2d array with 29 elements, [[... , ... , ...]]. Hope that makes sense, I'm away from my pc to run .shape
Thanks!

@KandBM Are you running it for a single sample with 29 features?

Exactly! I'm attacking an RL agent (for a master's thesis) so the samples only come one at a time from the environment

@KandBM Ok, and what is the shape of the output of the model?

@beat-buesser The model has 10 outputs and the shape is (10, 1)

@beat-buesser Is there any other info you needed? Was this enough to reproduce the issue?

Hi @KandBM I think we lost track of this issue during preparation of the latest release. We will revisit it as soon as possible. Did you by chance do any further investigation into the cause of the error?

Hi @KandBM I think I have found the bug, these attacks include explicit assumptions of 3-dimensional inputs. I have pushed a solution to branch https://github.com/Trusted-AI/adversarial-robustness-toolbox/tree/development_issue_2165. Could you please test it and let me know how it works for you?

@beat-buesser Thanks so much! Unfortunately I'm away from my lab computer but will test by the end of the week

@beat-buesser It works, thanks again!

@KandBM Yes, it is now part of ART 1.15.1.


Rewrites broken in symlinked directories

I like to symlink dirs out of GOPATH and into my normal working tree, however this seems to silently break gx-go rewrites.
The offending line appears to be here: https://github.com/whyrusleeping/gx-go/blob/master/rewrite/rewrite.go#L33

Hrm... Can you provide me a quick example of your setup? like, what your GOPATH is and where your symlinks are? i'll try to reproduce the issue and fix it

@parkan independent of this particular issue, I've been symlinking from gopath to workspace in the past as well, but now I symlink the other way around, I have all of the ipfs/libp2p/ipld/multiformats repos in my workspace, and symlink the ipfs/etc. dirs into gopath/src/github.com, which works nicely.

[mine]% ls -ld concat
lrwxr-xr-x  1 arkadiy  staff  50 Oct 12 15:31 concat -> /Users/arkadiy/go/src/github.com/mediachain/concat
[mine]% pwd
/Users/arkadiy/mine
[mine]% cd concat
[master//concat]% gx-go rewrite
# nothing happens
[master//concat]% echo $GOPATH
/Users/arkadiy/go
[mine]% cd $GOPATH/src/github.com/mediachain/concat
[master//concat]% gx-go rewrite
# works

I'll try symlinking the other way around


Add Functor, Foldable, Traversable, and maybe other classes

Data.Data? Generic? Not sure.

Functor, Foldable and Traversable are all there now.  I don't see an imminent need
for the others.


Add Modal

Add Modals
<modal name="UserIcon></modal>

https://getbootstrap.com/docs/4.3/components/modal/

add a custom element type modal.
also has to do with using php property to manage js includes.

Dynamic partials, etc. replace need for.