arecord not working on ARM target Qualcomm BT chipset

Hi ,
HFP headphone connection success with bluealsa.
arecord is not working writing into test.wav file for qualcomm BT UART adaptor for HFP SCO .
hciconfig -a o/p sco count is showing zero  when arecord.
Could you please help is it simialr issue or any fix we need to add for qualcomm like broadcomm route the sco?
from the bluealsa debugs did not see any error.
i think similar issue #347  CONFIG_USB_EHCI_TT_NEWSCHED=y kernal config set and tried no luck . once set this box is keeps reloading.
logs are :
uname -a
Linux 4.9.232-1.19 https://github.com/Arkq/bluez-alsa/issues/1 SMP Tue Feb 1 23:20:16 UTC 2022 armv7l GNU/Linux
hciconfig -a
hci0: Type: Primary Bus: UART
BD Address: 61:47:AA:32:44:08 ACL MTU: 1024:7 SCO MTU: 60:8
UP RUNNING
RX bytes:54325 acl:404 sco:0 events:2229 errors:0
TX bytes:32952 acl:413 sco:0 commands:1180 errors:0
Features: 0xff 0xfe 0x8f 0xfe 0xd8 0x3f 0x5b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'BlueZ 5.54'
Class: 0x480000
Service Classes: Capturing, Telephony
Device Class: Miscellaneous,
HCI Version: 4.2 (0x8) Revision: 0x0
LMP Version: 4.2 (0x8) Subversion: 0x25a
Manufacturer: Qualcomm (29)
#arecord -D bluealsa:DEV=11:11:22:33:80:72,PROFILE=sco /tmp/test.wav
D: ../../../git/src/asound/bluealsa-pcm.c:1312: Getting BlueALSA PCM: CAPTURE 11:11:22:33:80:72 sco
D: ../../../git/src/asound/bluealsa-pcm.c:1062: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Setting constraints
Recording WAVE '/tmp/test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
D: ../../../git/src/asound/bluealsa-pcm.c:532: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Initializing HW
bluealsa: D: ../../git/src/dbus.c:66: Called: org.bluealsa.PCM1.Open() on /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source
bluealsa: D: ../../git/src/ba-transport.c:711: New SCO link: 11:11:22:33:80:72: 28
bluealsa: D: ../../git/src/hci.c:133: SCO link socket MTU: 28: 60
bluealsa: D: ../../git/src/ba-transport.c:1151: Starting transport: HFP Audio Gateway (CVSD)
bluealsa: D: ../../git/src/ba-transport.c:294: Created BT socket duplicate: [28]: 29
bluealsa: D: ../../git/src/ba-transport.c:1472: Created new IO thread [ba-sco-enc]: HFP Audio Gateway (CVSD)
bluealsa: D: ../../git/src/ba-transport.c:294: Created BT socket duplicate: [28]: 30
bluealsa: D: ../../git/src/sco.c:230: IO loop: START: sco_cvsd_enc_thread: HFP Audio Gateway (CVSD)
bluealsa: D: ../../git/src/ba-transport.c:1472: Created new IO thread [ba-sco-dec]: HFP Audio Gateway (CVSD)
bluealsa: D: ../../git/src/sco.c:301: IO loop: START: sco_cvsd_dec_thread: HFP Audio Gateway (CVSD)
D: ../../../git/src/asound/bluealsa-pcm.c:567: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: FIFO buffer size: 32768 frames
D: ../../../git/src/asound/bluealsa-pcm.c:573: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Selected HW buffer: 4 periods x 2000 bytes == 8000 bytes
D: ../../../git/src/asound/bluealsa-pcm.c:600: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Initializing SW
D: ../../../git/src/asound/bluealsa-pcm.c:600: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Initializing SW
D: ../../../git/src/asound/bluealsa-pcm.c:600: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Initializing SW
D: ../../../git/src/asound/bluealsa-pcm.c:639: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Prepared
D: ../../../git/src/asound/bluealsa-pcm.c:600: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Initializing SW
D: ../../../git/src/asound/bluealsa-pcm.c:356: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Starting
bluealsa: D: ../../git/src/ba-transport.c:1387: PCM resumed: 25
D: ../../../git/src/asound/bluealsa-pcm.c:226: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Starting IO loop: 7
[ 851.338036] >>Open gpK7 (pid:14781 "RF4CE")
[ 852.289070] >>Close gpK7 (pid:14740 "controlMgr")
[ 858.584298] >>Open gpK7 (pid:15691 "RF4CE")
[ 859.534209] >>Close gpK7 (pid:15631 "controlMgr")
[ 865.731508] >>Open gpK7 (pid:16353 "RF4CE")
[ 866.668530] >>Close gpK7 (pid:16351 "controlMgr")
[ 872.925503] >>Open gpK7 (pid:19552 "RF4CE")
^CAborted by signal Interrupt...
arecord: pcm_read:2151: read error: Interrupted system call
D: ../../../git/src/asound/bluealsa-pcm.c:392: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Stopping
D: ../../../git/src/asound/bluealsa-pcm.c:161: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: IO thread cleanup
D: ../../../git/src/asound/bluealsa-pcm.c:592: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Freeing HW
D: ../../../git/src/asound/bluealsa-pcm.c:443: /org/bluealsa/hci0/dev_11_11_22_33_80_72/hfpag/source: Closing
bluealsa: D: ../../git/src/ba-transport.c:1434: Closing PCM: 25
bluealsa: D: ../../git/src/ba-transport.c:438: PCM clients check keep-alive: 0 ms
bluealsa: D: ../../git/src/ba-transport.c:387: Stopping transport: No PCM clients
bluealsa: D: ../../git/src/ba-transport.c:306: Closing BT socket duplicate [28]: 29
bluealsa: D: ../../git/src/ba-transport.c:726: Releasing SCO link: 28
bluealsa: D: ../../git/src/ba-transport.c:1497: Exiting IO thread [ba-sco-enc]: HFP Audio Gateway (CVSD)
bluealsa: D: ../../git/src/ba-transport.c:306: Closing BT socket duplicate [-1]: 30
bluealsa: D: ../../git/src/ba-transport.c:1497: Exiting IO thread [ba-sco-dec]: HFP Audio Gateway (CVSD)
ls -alr /tmp/test.wav
-rw-r--r-- 1 root root 44 Feb 14 12:21 /tmp/test.wav
root@tchxi6:/opt#
file size is 44 .        Same i have tried to aplay its not working . no soud

CONFIG_USB_EHCI_TT_NEWSCHED is for the USB subsystem, it has nothing to do with UART.

RX bytes:54325 acl:404 sco:0 events:2229 errors:0
TX bytes:32952 acl:413 sco:0 commands:1180 errors:0

Looks like there is no SCO traffic over the HCI, so my guess is that the adapter is routing SCO through some other interface. For QCA adapters SCO routing is usually set by the firmware, and to change it is generally necessary to use a different firmware. I recommend that you search more generally for your specific adapter model, to see if anyone else has found a working firmware. If not, perhaps you need to contact the vendor or manufacturer.

Since no more information was provided for the last 4 months, I assume that the issue was resolved.


optimized OrderedSet#include?(entry)

Optimized OrderSet#include? by using cache here as well. First
look if the key exists in the cache and if it does, compare the
entry with that key with the provided entry.

OK I ran the specs with and w/o the patch and there's no difference. I'm closing this now. We can re-open when somebody proves this is a significant perf improvement.


Geodata in create and get emotly:  Modified rest api in order to accept in input and return as output the new geodata

Comments fixed.

Amazing, @ggc87. Thanks!
Looks great!


Mikrotik and gpon ONU?

Hello, help with router os mikrotik setup.
how to configure to get access on web interface?
can't get access to <IP_ADDRESS>
gpon ONU:     Dfp 34g-2c2
router:             Mikrotik hex S
my mail:          sprut0x81gmail.com
thank you

With default mikrotik redefine config, do this

Go to Bridge > Ports, change sfp-sfpplus1 to ether1

Go to Interface > Interface List, add sfp-sfpplus1 as WAN group

Go to IP > Addresses, add IP Address <IP_ADDRESS>/24 for sfp-sfpplus1

Now you can access <IP_ADDRESS> from <IP_ADDRESS>/24 subnet via NAT magic

how to configure to get access on web interface?

My configuration for ROS7 on RB5009

Check that SFP1 is not in Bridge
In "IP / Interface List" add SFP1 to WAN group
In "IP / Address List" set "Address" as <IP_ADDRESS>, "Network" as <IP_ADDRESS> and "Interface" as SFP1
In "IP / NAT rule" add "Chain" as , "dst.address" as <IP_ADDRESS>, "Out.interface" as SFP1 and in "Action" tab set "Action" as  and "To Addresses" as <IP_ADDRESS>

one more question:
obligatory presence of an optical cable (fiber) to the module SFP for connection to <IP_ADDRESS> ?

received access, without optics does not connect.
thank you all

yes, this is a mikrotik problem only, it will not pass packets or try to establish link if the SFP module is reporting "RX Loss", which the stick does without a fiber connected.
if you use a TP-Link media converter or something for the SFP stick, you can access it's webgui even without fiber in.

That can be resolved connecting the fiber to another SFP. That way i can get the module up and running anyway.


Remove or update the tmp-sbgn dependency

in package.js

Fixed in commit 9f951ed3e05a5a854d72420a5c275c4098c77b84. Replaced tmp-sbgn with npm hosted package.


List.fold() unexpected TypeError

The following reproducible code yields a TypeError in some cases only when using same object types as the source of the fold call. Expect both cases to succeed, should be able to fold a list of one type E (dynamic) to return another type T (List) according to the definition:
T fold<T>(T initialValue, T combine(T previousValue, E element))
https://dartpad.dev/f27144bdff3d4ae83aa5f398b91f2e6f

Dart SDK Version (dart --version)

Flutter 1.17.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b041144f83 (7 days ago) • 2020-06-04 09:26:11 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4

Whether you are using Windows, MacOSX, or Linux (if applicable)

OSX 10.15.5

Whether you are using Chrome, Safari, Firefox, Edge (if applicable)

Discovered with Flutter, reproducible in DartPad

Thanks to @natebosch on Gitter for the explaination and solution:

you aren't getting the same type inference here. The runtime type of those two lists is the same, but the static type is not.
In your example JSON_DATA is statically dynamic. If you do jsonDecode(DATA) as List; it will work the same
If you use the hover feature in your IDE on the models argument to the .fold call, you will see in one case it is List, and in the other case dynamic. Type inference can't flow the List from .fold<List> through, because it doesn't know anything about the definition of dynamic.fold, but when it knows you are calling List.fold it can do better inference

My bad, I might have jumped the gun on writing up this one but hopefully it'll be helpful to someone else!


Make transaction submission non-blocking

Currently user access at SubmitTransactionHandler causes the API to wait for the task to finish. It should be investigated whether this can be isolated in a thread.

non-issue


Not found e_sqlite3.dylib in ios-arm64

When we try to publish a maui application for ios platform with the next command:
dotnet publish -f net8.0-ios -c Release -r ios-arm64 -p:ArchiveOnBuild=true -p:CodesignKey="$(APPLE_CERTIFICATE_SIGNING_IDENTITY)"
Publication not works, because it doesn't found  e_sqlite3.dylib in an obj subdirectory.
When the target platform, is android is not problem.
What version of SQLitePCLRaw are you using?
2.1.8
If you are using one of the SQLitePCLRaw bundle packages, which one?
<PackageReference Include="SQLitePCLRaw.core" Version="2.1.8" />
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.8" />
 <PackageReference Include="SQLitePCLRaw.provider.dynamic_cdecl" Version="2.1.8" />
<PackageReference Include="SQLitePCLRaw.provider.sqlite3" Version="2.1.8" />
<PackageReference Include="SQLitePCLRaw.provider.e_sqlite3" Version="2.1.8" />
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3" Version="2.1.8" />
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3.ios" Version="2.1.8" />

What platform are you running on?  What operating system?  Which version?  What CPU?
macOS-13
What target framework are you building for?
ios-arm64
Are you on .NET Framework or the newer stuff (.NET Core, .NET 5+, etc)?
.NET 8
Are you using the command line, or an IDE?  Which IDE?  Which version of that IDE?
I reproduce the error in bash task  with azure devops and a in a macbook.
Is this problem something that just started happening?  For example, were things working well for you and then you updated something and then the problem showed up?  What changed?
We try with different version an the result is the same
What is the exact error message you are seeing when the problem happens?
error: /Applications/Xcode_15.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: obj/Release/net8.0-ios/ios-arm64/nativelibraries//libe_sqlite3.dylib.tmp (No such file or directory)
Are you using PackageReference or packages.config?
PackageReference
If you are using mobile platforms, are you on classic/legacy Xamarin or on .NET 6 and higher?
Maui .net 8

My first guess:  Try removing all the SQLitePCLRaw packages except SQLitePCLRaw.bundle_green.
You have a bunch of different packages, and not all of them are compatible with your current target.  This usually happens when folks migrate from packages.config, which didn't do transitive dependencies.

Hello Eric, I've tried these scenarios:
Only with bundle_green
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.8" />

Both Core and bundle_green
<PackageReference Include="SQLitePCLRaw.core" Version="2.1.8" />
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.8" />

Remove both and try only with sqlite-net-pcl, that has a dependecy with bundle_green
<PackageReference Include="sqlite-net-pcl" Version="1.8.116" />
The error is the same:
error: /Applications/Xcode_15.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: obj/Release/net8.0-ios/ios-arm64/nativelibraries//libe_sqlite3.dylib.tmp (No such file or directory)

There's something weird going on.  When using bundle_green with iOS, e_sqlite3 is not in play.  And even if it were, it would be a static lib, not a dylib.

Is there some other package in your project with a dependency on SQLitePCLRaw?

Finally, the problem was in another dependency https://www.nuget.org/packages/SQLiteNetExtensions/ that use a SQLitePCLRaw older version and generate the problem.
Thanks a lot fo ther support Eric


Feature.clustering

@zancas
What's this change do?
Implements the first bare features of BigIP clustering and scaling.
Any background context?
There is a need to cluster multiple BigIP devices (>=2 to <=8) with two basic cluster types ('sync-only', 'sync-failover'). This is the first basic features of that functionality. There are a few additional structures that have been added here. One important one is the f5/cluster directory, which holds the handlers for managing a cluster, device_group, and trusted_peers. These modules are simply wrappers around BigIP resource command (cm.device_groups.device_group) to control the order and timing of clustering.
Where should the reviewer start?
Start at the single functional test for 'sync-failover' and then move on to the f5/cluster/cluster_manager.py. After that, you can look at the trusted_peer_manager.py and the device_group_manager.py.
I hate using 'manager' here, but it best describes what we're trying to accomplish. To run the functional tests, you'll need to create at least three BigIPs. Come talk to me!

Will squash my commits tomorrow to be it more palatable.

Reviewing my commits and reopening with a bit better commit history.


Save users and AGP the trouble of finding all the other jars to put on
the classpath.

/gcbrun


[node-v6] [mapnik-v3] Node v6 LTS and Mapnik v3.x support

Support for Node 0.10.x has ended in October 2016. We need to migrate to the latest Node LTS version (v6.9.1)
TODO

[x] #611 Upgrade windshaft
[x] #610 Upgrade redis-mpool
[x] #609 Upgrade cartodb-psql
[x] #608 Upgrade cartodb-redis
[x] #607 Upgrade camshaft

PR: #635 [DO NOT MERGE YET]

Deploy blocked by performance issue: https://github.com/CartoDB/Windshaft-cartodb/issues/648

Closing 3, 2, 1


📝 Update includes in docs/en/docs/advanced/websockets.md

Hi @vishnuvskvkl, thanks for your interest in contributing to FastAPI!
It would be better if you separate the other file into its own PR. are you able to do it? :smile:
Thanks in advance!

Hi @alejsdev, updated a separate pull request for the other file. Thanks for the feedback! 👍

Thank you! @vishnuvskvkl :rocket:


Wrong dependency include

The file included with wiredep is <script src="bower_components/angular-audio/angular.audio.js"></script> but this file doesn't exists, can you please update your bower conf ?

What version are you using?
https://github.com/danielstern/ngAudio/blob/master/bower.json indicates the correct path

1.6.2, last version available with bower.
Look the file : "version": "1.6.3"
So a new version is missing from the releases

I kinda get it, looks like the path with app/ isn't working properly.
Could you give your lib (minified) in a folder like dist/angular.audio.js ?
Because it's in a folder containing a demo app ...
I created a dist folder, copy/past your js file, changed bower.json :
{
    "name": "angular-audio",
    "version": "1.6.2",
    "description": "Total awesomeness for playing sounds in AngularJS",
    "main": "dist/angular.audio.js",
    ...
}

And I got a correct path in my html file <script src="bower_components/angular-audio/dist/angular.audio.js"></script>

https://github.com/danielstern/ngAudio/issues/73


Guide for Spring Kafka

I might have missed it but I am surprised to see there is no guide for Spring Kafka.
https://spring.io/guides.
If it is not there, I would like to create one.

Makes sense to me cc/ @gregturn
Re: your comment on https://github.com/spring-projects/spring-kafka/issues/709

What do you guys think about this? Any suggestions or ideas for the same are appreciated.

Here are some possibilities:

code I wrote last fall for a talk I gave at the Richmond JUG the kafka-1-simple project uses pure spring-kafka
code I wrote for SpringOnePlatform a couple of years ago - this is probably out of date and would likely need some polishing to bring it up to data

Thanks for your reply. I will take a look into this.


New subnet adding and removing immediately

Hi @eyakubovich.
We are facing new problem when we try to add a new node to existing flannel network. The subnet is adding and removing immediately.
Cluster Info:
Master - <IP_ADDRESS>    flannel0 - <IP_ADDRESS>
Minion - <IP_ADDRESS>   flannel0 - <IP_ADDRESS>

New minion - <IP_ADDRESS> (Trying to add this node to above cluster)

Logs on Master Node (<IP_ADDRESS>):
I0831 22:20:45.059449 15652 main.go:278] Installing signal handlers
I0831 22:20:45.059498 15652 main.go:138] Determining IP address of default interface
I0831 22:20:45.059757 15652 main.go:228] Using <IP_ADDRESS> as external interface
I0831 22:20:45.060532 15652 subnet.go:334] Picking subnet in range <IP_ADDRESS> ... <IP_ADDRESS>
I0831 22:20:45.114696 15652 subnet.go:97] Subnet lease acquired: <IP_ADDRESS>/24
I0831 22:20:45.115529 15652 main.go:245] UDP mode initialized
I0831 22:20:45.115552 15652 udp.go:212] Watching for new subnet leases
I0831 22:20:45.118005 15652 udp.go:237] Subnet added: <IP_ADDRESS>/24
I0831 22:27:02.817575 15652 udp.go:237] Subnet added: <IP_ADDRESS>/24
I0831 22:27:03.157287 15652 udp.go:242] Subnet removed: <IP_ADDRESS>/24

Logs on newly added node: (<IP_ADDRESS>)
I0827 20:29:33.301961 03133 main.go:278] Installing signal handlers
I0827 20:29:33.302009 03133 main.go:138] Determining IP address of default interface
I0827 20:29:33.303593 03133 main.go:228] Using <IP_ADDRESS> as external interface
I0827 20:29:33.307968 03133 subnet.go:334] Picking subnet in range <IP_ADDRESS> ... <IP_ADDRESS>
I0827 20:29:33.408002 03133 subnet.go:97] Subnet lease acquired: <IP_ADDRESS>/24
I0827 20:29:33.415929 03133 main.go:245] UDP mode initialized
I0827 20:29:33.415953 03133 udp.go:212] Watching for new subnet leases
I0827 20:29:33.418714 03133 udp.go:237] Subnet added: <IP_ADDRESS>/24
I0827 20:29:33.418741 03133 udp.go:237] Subnet added: <IP_ADDRESS>/24

I didn't see any errors but in master and other minion nodes are removing newly added subnet.
Master and minion subnets are are pinging each other. But newly added node subnet is not pinging both ways.

@gangadhars I think your newly added node's clock is 3 days behind. Please see  https://coreos.com/os/docs/latest/configuring-date-and-timezone.html for making sure NTP is running (if you're on CoreOS).

@gangadhars Has this been resolved?

Yes. I forget to close the issue. It resolved on that time only by configuring the data and time.Thanks.


Add rust-analyzer.checkOnSave.target to package.json

This was already implemented, but was missing from the manifest.

CC @ndarilek, #5904.

bors r+


From date 11/07/2022  I have a connection problem with ariston remotethermo

Log show this messages and integration is down:
Logger: custom_components.ariston.ariston
Source: custom_components/ariston/ariston.py:3089
Integration: Ariston (documentation, issues)
First occurred: 22:28:57 (15 occurrences)
Last logged: 22:42:57
ariston action nok for _get_main: Login unexpected reply code
Logger: custom_components.ariston.ariston
Source: custom_components/ariston/ariston.py:3066
Integration: Ariston (documentation, issues)
First occurred: 22:28:57 (15 occurrences)
Last logged: 22:42:57
Connection errors: 11
Connection errors: 12
Connection errors: 13
Connection errors: 14
Connection errors: 15
Questo errore ha avuto origine da un'integrazione personalizzata.
Logger: custom_components.ariston.ariston
Source: custom_components/ariston/ariston.py:1571
Integration: Ariston (documentation, issues)
First occurred: 22:28:57 (15 occurrences)
Last logged: 22:42:57
<custom_components.ariston.ariston.AristonHandler object at 0xabaffcd0> Unexpected reply during login: 404

I also as the same problem, debugging a little, I found that the url to call for login changed from _ARISTON_URL/Account/Login to _ARISTON_URL/R2/Account/Login, but this is not enough to solve the issue, because the response url is different from expected: remains the same (/R2/Account/Login) and than there is a redirect to dashboard  https://www.ariston-net.remotethermo.com/R2/Plant/Index/XXXXXXXXXX?navMenuItem=0&breadcrumbPath=0.
I hope this helps the developer to fix the issues.
Thanks a lot for your job

Same issue here, although I am using the old version, because I have a velis boiler

https://github.com/chomupashchuk/ariston-remotethermo-home-assistant-v2/issues/37

Duplicate


Bug: timeoutSeconds / responseTimeoutSeconds not making task re-scheduled

Hello,
I tried to use  responseTimeoutSeconds but task never gets re-scheduled for another processing.
I also tried with timeoutSeconds instead of responseTimeoutSeconds- and got the same behavior.
also note that when I tried timeoutSeconds, and looked in the UI at the json of the task, it didn't specify "timeoutSeconds" there.
in addition, in the docs it says "Time in milliseconds" even though the name suggests its "seconds" .. so one of them is probably wrong or misleading
for your convenience, here are the exact curl commands to reproduce the bug:

create the task definition

curl -X POST \
  http://localhost:8080/api/metadata/taskdefs \
  -H 'Content-Type: application/json' \
  -d '[
	{
	  "name": "retry-task",
	  "retryCount": 1,
	  "responseTimeoutSeconds": 10,
	  "inputKeys": ["date"],
	  "outputKeys": ["year"],
	  "timeoutPolicy": "RETRY",
	  "retryLogic": "FIXED",
	  "retryDelaySeconds": 0
	}
]'

create the workflow definition

curl -X POST \
  http://localhost:8080/api/metadata/workflow \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "retry-task",
  "description": "Gets date and returns year from it",
  "version": 1,
  "tasks": [
    {
      "name": "retry-task",
      "taskReferenceName": "retry-task",
      "type": "SIMPLE",
      "inputParameters": {
        "date": "${workflow.input.date}"
      }
    }
  ],
  "outputParameters": {
  },
  "schemaVersion": 2
}'

start a new workflow instance

curl -X POST \
  http://localhost:8080/api/workflow/retry-task \
  -H 'Content-Type: application/json' \
  -d '{"date": "1800-01-01"}'

poll pending task as worker (move it to IN_PROGRESS)

curl -X GET \
  'http://localhost:8080/api/tasks/poll/batch/retry-task?count=1&timeout=1000&workerid=postman' \
  -H 'Content-Type: application/json' \

send ack as worker (take task id from previous response)

curl -X POST \
  http://localhost:8080/api/tasks/e134b6c8-7221-42a4-ab2f-9c3c382ab14a/ack \
  -H 'Content-Type: application/json' \

no matter how much time I wait, task is still in status IN_PROGRESS, and if I repeat step (4) to poll pending tasks I get an empty response

If i can do anything else to help investigate this, please let me know
my required flow is as follows:
task is polled by worker
worker sends ack that he received the task
worker machine crashes
worker come back to life
after 10 seconds without any result status of 'COMPLETED', the task would be retried
task is polled (again) by worker
...
...
this process would happen again and again up to 3 times, or until 'COMPLETED' status is reported

@LiranBri are you getting this when you run it locally with docker? It looks like sweeper is not running properly in your setup hence timeouts are not enforced.

Hi @cyzhao , I realize that it's open source and you are doing everything voluntarily. but since I'm struggling with this issue for about 2 months now I would really appreciate if you can try to take a second look at this issue. thank you!

I believe he might be referring WorkflowSweeper within the codebase. Take a look at this https://github.com/Netflix/conductor/issues/362 . I am not sure if it is the solution but might give you some direction.

@LiranBri We tested this out in our machine using the configuration you posted above but were unable to reproduce the issue. The task correctly TIMED_OUT after the retry as well and the workflow moved to a FAILED status. Can you check the workflow sweeper frequency configuration on your deployment and ensure that the workflow sweeper is running.

I met the same issue, too.
The sweeper sometimes took affect, sometimes failed.
There was some timeout tasks without being rescheduled or marked staying 'IN_PROGRESS'.

I have the same issue😓

@77yang Can you provide more details to help reproduce this please? cc: @apanicker-nflx

@kishorebanala  I restarted it, issue gone😓


use different spending keys for different UTXOs

Right now, the node only ever uses one spending key. The receiving address is deterministically derived from this spending key, which means in particular that unless you generate a whole new wallet, you have the same receiving address for ever. Expenditures to the same address can be linked.
The advantage of the current approach is convenience from the point of view of implementation.  Nevertheless, this task must be done to serve user privacy.
There are probably other places that also need to be changed but one place to start is in state/mod.rs in GlobalState::create_transaction.

Would it make sense to continue with a single spending key and derive receiving keys based on an incrementing counter/nonce that is stored in the wallet?  So it is still deterministic on the sender's side to generate a new key for each receive (based on the counter) that is given to the 3rd party.   When a new block is encountered, it would need to be checked for transactions that match any of our receive keys up to the counter.
I think I just described the basics of bip32....

This solution makes perfect sense and is more or less what I had in mind also.
A downside of this approach (?): right now you can reduce your entire Neptune treasury to a single seed phrase. As long as you securely store the seed phrase, you will be able to recover your entire Neptune balance (assuming some peer is willing to serve you historical blocks or assuming you trust the peer to scan them for you). But if you can receive Neptune on various addresses generated in this fashion, then I see no way to set the counter to the right number. Either it is set too low (and you risk not observing transactions benefiting you) or it is set too high (and you or your peer do redundant scanning work).
With regards to BIP32, I thought the selling point was that canyone can derive a child receiving addresses from a master receiving address, such that only the holder of the matching master spending key can generate the matching child spending key. Neptune does not have the requisite homomorphisms to accomplish this feat. That said, the added value of this feature is rather limited.

But if you can receive Neptune on various addresses generated in this fashion, then I see no way to set the counter to the right number.

This is not a problem unique to Neptune.  The same exists for bitcoin, monero, etc.  I've written key generators for both and there is always the possibility that funds have been sent to some address at a higher index.   But that is why a standard gap limit exists, and settings for gap limit, and external tools for scanning/checking.   In other words, there doesn't seem to be any perfect solution, but there are "good enough" solutions that are already widely used.
With regards to how neptune would deal with it in the wallet:
Wallet_State::next_unused_spending_key(&mut self, key_type: KeyType) bumps internal counter for key_type and returns key at the new index.
Of course there is no guarantee that:

the associated address hasn't already had funds sent to it.  (this could actually be checked though)
this key/address will ever receive funds.  meaning that gaps can and will exist.

Wallet_State::get_all_known_keys() returns all keys from [0..counter] for each key-type.
We would also have a gap-limit setting to use when scanning keys, eg when we implement "import seed" functionality and need to scan entire blockchain.

With regards to BIP32, I thought the selling point was that canyone can derive a child receiving addresses from a master receiving address, such that only the holder of the matching master spending key can generate the matching child spending key. Neptune does not have the requisite homomorphisms to accomplish this feat. That said, the added value of this feature is rather limited.

That's an interesting point about xpriv, xpub.   Yeah, it's neat that xpub can be given to 3rd parties and they can then derive pub-keys and addresses.  There is also a danger with it, as iirc xpub+any derived private-key can reveal xpriv.
bip32 also defines derivation paths which can be useful (but have also been a source of confusion between wallets).
I wonder if we can devise similar mechanisms for our keys.
Anyway though, to me those are not the most compelling feature of bip32.  The single most important thing is simply seed + key-derivation.  The fact that we can have a single wallet seed that the user can store offline, and then the software (or hardware) derives unique keys from that for use in each tx.
I remember bitcoin-core (just bitcoin then) in the bad old days before bip32.  By default it generated 100 keys and it would hand them out with each call to new_address().   These keys were stored in wallet files and people were supposed to back them up.  But eventually the 100 keys would be exceeded and new keys were silently generated.   Now funds, including change, is being sent to addresses that do not exist in the wallet backup.  ouch.   A lof of people got bitten that way.
There was also no standard way to move a set of keys between wallets.  With a bip32/bip39 seed-phrase it finally became easy to (a) backup a wallet, and (b) import the seed phrase into a wallet on anther device, or even wallet-software by another author.   This is where it's important to define clear standards for interop.

anyway, I've already been taking steps towards enabling key derivation.   WalletState::next_unused_spending_key(&mut self, ...) now exists and is being called.  For now It always returns the key at index 0, because it was requested to keep doing that for testing purposes.   We only need to implement that function properly (storing counter to wallet DB) and then unique-key-per-utxo should "just work".


Fix bug on VLI value processing.

Codecov Report

Merging #16 (caf5cd1) into main (a0c0883) will increase coverage by 3.35%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   87.39%   90.74%   +3.35%
==========================================
  Files           4        4
  Lines         579      605      +26
  Branches       38       45       +7
==========================================
+ Hits          506      549      +43
+ Misses         73       56      -17

Flag
Coverage Δ

unittests
90.74% <71.42%> (+3.35%)
:arrow_up:

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

Impacted Files
Coverage Δ

src/decoder.ts
87.79% <70.58%> (+2.04%)
:arrow_up:

src/encoder.ts
95.28% <70.58%> (+5.88%)
:arrow_up:

src/consts.ts
100.00% <100.00%> (ø)

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


fix: typo

:tada: This PR is included in version 1.49.0 :tada:
The release is available on:

v1.49.0
GitHub release

Your semantic-release bot :package::rocket:


Lithuanian translation

To do:

[ ] Translate messages into Lithuanian
[ ] Translate help file into Lithuanian
[ ] Fix formatting issues in browser
[ ] Fix formatting issues in terminal
[ ] PNG rendering
[ ] v2.wttr.in translation

The translation is almost done in #630

@kainengr Please test, it should work now. It looks like absolutely everything was translated and works. Please test.
Have you added your name to the translators list?

Yes, I've added my name. There's a problem with displaying the translation of longer terms (such as "Partly cloudy") because it's cut after 14 characters. I guess there should be a some wrapping because this happens with some other translations (like Latvian, Russian, Polish).

It happens with almost all (all?) translation. We need some generalized approach here.
Wrapping is though an option, but not the best one I think.
The rest looks good?

I've noticed I haven't translated the moon phases. Which file are those in? The rest seems ok.

Moon phases where? In /Moon? Here: https://github.com/chubin/pyphoon/blob/master/pyphoon/lib/translations.py


Dynamic Generation of compose files instead of templates

Instead of having templates for predefined stacks, a dynamic approach would be much more efficent.
We have several questions when generating a docker-compose

Is it a dev or production enviroment?

Include nginx reverse proxy: jwilder/nginx-proxy , include let's encry: jrcs/letsencrypt-nginx-proxy-companion

Do you want a frontend? Which one?

Angular / React / Vue -> does frontend exist? no -> run create-react-app / npx create-next-app / ng new

What Backend do you want to use?

Spring / Node / PHP / Rust -> does backend exist? no -> run sprinig initializer / ...

What DB you want to use?

Postgres / MariaDB / Mongo / H2 / ....

Do you want a DB Admin tool

Phpmyadmin, pgAdmin

The database admin tool depends directly on the db, that was selected. Maybe we can solve this more efficient ...

The database admin tool depends directly on the db, that was selected. Maybe we can solve this more efficient ...

Yes that's why the question is if you want one, then the appropriate is selected

I just dropped the first commit for this feature in the feature/dynamic-stacks branch. I'd appreciate you to check if you think this might work out. I am open for feedback

Dynamic stacks are included in v0.5.0 and will be extended in the future. I think this issue can be closed ...


How to back some data

Current Behavior
I do not know how to pass data from the current screen to the previous screen
Expected Behavior
It is very easy to pass from the current screen to the next screen.
but, goBack()  Can not pass parameters 。
Can tell me how to pass parameters to the previous screen?
Your Environment

software
version

react-navigation
1.0.0-beta.9

react-native
0.44.0

node
7.5.0

npm
4.1.2

Are you using some sort of app wide state library like Redux or MobX?

@rmevans9  Not used, I think redux has some complicated.

Without having some app wide state library I am not sure that you can do what you are trying to do currently. I would need someone more familiar with the inner workings of React-Navigation to confirm that though.

@rmevans9 Hi
I am now the app can not need redux. And used the react-navigation, it can also work.
We are now meeting this problem.

I had the same problem, see #1416. Hope it helps!

@itswaze Thank you, this way I know, in fact, is a callback.

@lucasleelz isn't that what you want? :p

@itswaze
Hi, I think this might be better.
Go back to the previous screen
navigation.pop({user: 'itswaze'});
or
navigation.goBack({user: 'itswaze'});

Go back to the specified screen
navigation.pop('MainScreen', {user: 'itswaze'});
or
navigation.goBack('MainScreen', {user: 'itswaze'});

class MainScreen extends Component { // react life cycle
    componentWillReceiveProps(nextProps) {
         // nextProps.user === 'itswaze'
   }
}

@lucasleelz but goBack doesn't accept parameteres...

@itswaze Yes, That's just what I thought about it

what is correct answer?

I'd like to pass some data with navigation.pop() function.

I'd like to pass some data with navigation.pop() function.

the correct way is to declare callback on navigationParams
getBackData = (data) => console.log(data)

changeScreen = () => this.props.navigation.navigate('Other', { goBackData: this.getBackData }

----

// On Other Screen

this.props.navigation.params.state.goBackData({
//your data json or whatever
})
this.props.navigation.pop()

it doesn't work
cannnot read property 'state' of undefined.

it doesn't work
cannot read property 'state' of undefined.

sorry, it's state.params, not params.state

:( it says this.props.navigation.state.params.goBackData is not function now.

paste code

this.props.navigation.state.params.goBackData({
name: 'Lucy'
})
this.props.navigation.pop();

where you navigate

want to go to previous screen.

Read declaration carefully
https://github.com/react-navigation/react-navigation/issues/1440#issuecomment-477303163

okay. thanks

It works fine. thanks

@JulioOrellana
I just faced other problem. I got data successfully, but this.state is undefined. any helpful tip for this? Thank you
getBackData (data) {
console.log(data);
console.log(this.state);
}


CP: Wait for non-empty layout in platform view placeholder

Cherry-picks https://github.com/flutter/flutter/pull/112402 to stable.

tance, the customer test is trying to run

Looks like the branch is not in a good state in general. For instance, the customer test is trying to run analysis of a package that's using an option that doesn't exist in the analyzer on stable, it looks like.

That is correct, customer_tests have never worked correctly for release branches.

What's the path for landing this if tests are known not to pass?

What's the path for landing this if tests are known not to pass?
The release engineer will land it manually.

umm I checked the target history and it looks like linux plugins has always been failing, I went ahead and squash and merged


Add --show-mouse (-s) option.

Adds an optional command line argument to show the mouse in the output file.

Added a new option (--hide-mouse -e) and the cursor is now shown by default in the output file

My points remain: I would like only --hide-mouse as a long option, and the man page should be updated @Stronkkey

thank you for invoking my review @Stronkkey but I'm not a wf-recorder maintainer, just a happy user following its development :slightly_smiling_face:
As I mentioned in this comment and reiterated by @ammen99 in this other comment, it seems that the default behaviour of wf-recorder is to show the mouse pointer. As such I don't see a compelling reason to have both options:
-s, --show-mouse
--hide-mouse

The option to hide the mouse should be enough, IIUC. If a user wants to see the mouse cursor they will simply do nothing. I'd rather not change a default implicit behaviour (show the mouse cursor) to an explicit option, it's a breaking change that could surprise users.
I am also mildly against the short option -e because I feel it's not greatly self-explaining.
Other than that, this PR adds a feature I personally would not use but - hey - this is not my project so the maintainer will have the last word on accepting the patch or declining it :slightly_smiling_face:
In any case: thanks for taking the time to contribute to wf-recorder.

@ammen99 Ok so now the option to hide the mouse is gone (+rebased commits).
@apiraino Oops didn't notice.

Any update on the review?

@ammen99 Ok so now the option to hide the mouse is gone (+rebased commits).

I think something went wrong, because the option is still there when I go to the source file ..
Also, make sure to update the man page ;)

I'll pass on this on :sleeping:


Change adapter from scheduled to deamon

According to updated best practice (https://github.com/ioBroker/ioBroker.repositories#development-and-coding-best-practices), the adapter should not be a scheduled adapter. It is better to keep the adapter active and work with "setInterval/setTimeout". This has the advantage that the first query to the SRG-API is done at the start of the adapter and not after 30min.

Resolved in Version 0.3.0


Old broker test

End to end test verifying a two stage downgrade actually works.
uses an old broker (redpanda) which supports only api-versions 0..2.

@robobario did you have chance to look at this additional test?  Wdyt?

Yep good idea, just didn't want to hold up the other PR. Besides the extra coverage I think it's really cool to have a test with another vendor implementing the Kafka protocol.


Lockup module "total-locked-of-denom" passes in wrong value by default

As an example, if you try:
osmosisd query lockup total-locked-of-denom gamm/pool/2

You will see Error: time: unknown unit "d" in duration "1d"
You must instead pass in the min duration (in seconds) for it to work
osmosisd query lockup total-locked-of-denom gamm/pool/2 --min-duration "1209600s"

Also the osmosisd query lockup total-locked-of-denom -h shows to pass the duration in days which, as explained above, does not work.
Obviously not a huge deal, just struggled with it while writing the lockup module documentation

Does this query even work right now? I thought it was broken b/c we disabled accumulation store. (Hopefully it comes back in next major upgrade, its pending an IAVL fix)
cc @mattverse

I just went back and tried to manually calculate it (used the module-locked-amount to see how much gamm/pool/2 is locked in total, then used the total-locked-of-denom for each of the three time periods) and they did not equal each other. Still weird that total-locked-of-denom is still outputting numbers. I mean of course people could have locked gamm in time periods other than the three main locking periods, but my numbers were off by a lot. I will do more digging.
@ValarDragon If you could let me know of any other module functions that you are positive are broken, that would help me while I finishing the documentation. I will leave them blank for now so I don't get caught up in something I can't fix. Thank you!

Closed by #859


Accept inline app descriptors, and don't always run setup on Windows when run with no arguments

(Note to self: needs to be tested again on Windows.)


Single votes sorting

@FinnStutzenstein Sorting doesn't work. Could you please look into this? We're using osTableSort but maybe we're missing the sortOptions.

I found the problem and I fixed it.
sort.toggle


custom model with TVM deployment error  function 'TVMGetLastPythonError' not found (AIV-685)

Hi,
I'm trying to create a custom model for detection, I follow this tutorial
https://docs.espressif.com/projects/esp-dl/en/latest/esp32s3/tutorials/deploying-models-through-tvm.html,
I use conda under windows for a development environment, when I try to deploy my solution on an esp32s3 I encounter a problem with TVM, namely that I have performed all the installation steps the error below

Any suggestion please ?

Subsequent versions will no longer support TVM, please use the new version esp-dl


Connection string must use "redis:" protocol

I'm using the connect-redis library which uses redis as a dependency (^2.1.0) https://github.com/tj/connect-redis/blob/master/package.json#L17 and began seeing this error with a fresh npm install:
[1] [piping] error given was: Error: Connection string must use the "redis:" protocol
[1]     at Object.createClient (/[REDACTED]/node_modules/express-jwt-proxy/node_modules/connect-redis/node_modules/redis/index.js:1298:23)
[1]     at new RedisStore (/[REDACTED]/node_modules/express-jwt-proxy/node_modules/connect-redis/lib/connect-redis.js:72:27)
[1]     at setupSessionManager (/[REDACTED]/node_modules/express-jwt-proxy/lib/index.js:201:14)
[1]     at Object.exports.default (/[REDACTED]/node_modules/express-jwt-proxy/lib/index.js:226:3)
[1]     at setupAuth (/[REDACTED]/bin/start_es6.js:63:32)
[1]     at Object.<anonymous> (/[REDACTED]/bin/start_es6.js:103:18)
[1]     at Module._compile (module.js:434:26)
[1]     at normalLoader (/[REDACTED]/node_modules/babel-core/lib/api/register/node.js:199:5)
[1]     at Object.require.extensions.(anonymous function) (/[REDACTED]/node_modules/babel-core/lib/api/register/node.js:216:7)
[1]     at Module.load (module.js:355:32)

I don't think I've seen this error before. Changing my redis url to redis://<IP_ADDRESS>:6379 instead of http://<IP_ADDRESS>:6379. Wouldn't this be a regression for 2.1.x?

yeah,I also met this problem

I added the check so no one could come up with e.g. user:pass@host:port and pass that as url.
In that case what's going to be parsed is:

protocol: user // Faulty
auth: pass // Faulty
host: host
port: port

I'll check how to improve the validation though.

also broke our service

@bdefore @renaesop @lepfhty what did you use as url string before?

http://<IP_ADDRESS>:6379 ... switching to redis://<IP_ADDRESS>:6379 has worked fine since i encountered the issue.

@BridgeAR could you also add db index selection s in https://github.com/ddollar/redis-url#usage? Or this already was rejected for some reasons?

@puzrin this is going to be included in the next version. The new url schema is going to be the one from IANA: [redis:]//[user][:password@][host][:port][/db-number][?option=value[&password=bar]]. I also changed the protocol check to not be as strict with the redis protocol and accept other protocols or omitting the procotol from now on too.

@BridgeAR gread news, thanks a lot!

@BridgeAR thanks for new schema support! Any estimates when we can see this in new release?

Hey all,
I see this change occurred over a year ago, but is there any option to use Unix sockets instead of the redis protocol?
Redis clients can accept "/tmp/redis.sock" as a valid connection and this increases the throughput for intensive localised applications,
Has there been any other discussion on this?
Thanks, and please enjoy the holidays,

@Hunchmun See the readme. Cheers.


Question regarding inferring the rank given model scores

First, let me thank you for this nice library! It's been of great help for my project.
My question is about how to infer the most likely rank of items given the model scores trained on ListMLE.
My understanding was that ordering the items by the scores (descending) would give you the most likely score, according to the PL model.
However, while toying with the model, I found out that actually ordering the scores by ascending order would give my model sensible results while ordering by descending doesn't.
Is this intended or does it sound like I'm doing something wrong?
Thank you!

As a follow-up to my original question, I found out that the inputs to the losses are (scores, relevance scores) not (scores, rank). This sounds like a reason I was having the above observation, since relevance and rank would be inversely related. This brings me to another question, my data doesn't have relevance labels but just rank labels; what should be a good way to turn rank labels to relevance scores? There are several options off the top of my head: reversing the rank, 1/rank, etc, but I'd appreciate your opinion on this. Thank you!

Thank you for this question and kind words. I will give it some thought and get back to you in the coming days.

Do you know what was the ranking function that your data was generated with?
If there are no indicators of the relevance other than the ordering, there are no ties (two items with the same relevance) and there is no noise (so, for example, your data wasn't generated with implicit user feedback), I think you could use a loss function that doesn't weigh examples according to their relevance, as the relevance is unknown. The RankNet loss function (implemented as a weighing scheme for the LambdaLoss loss function) and assuming relevance(x) = 1/rank(x) could work here.
However, we haven't experimented with non-integer labels, yet.

Thank you for your response! For my case, the only indication of the relevance is the observed ordering itself. As for losses that do not weigh examples according to their relevance, does listMLE belong to this class? My understanding was that listMLE only considers the order of the ground truth relevance labels to compute the negative log likelihood for the gt order, but I've been having problems with making the model actually learn. Thank you again for your work and help!

Yes, ListMLE and ListNet should work here, as they also work on the ordering not on the relevance differences. In our experiments, we noticed that ListMLE doesn't pair very well with our neural models so from the two, I'd recommend trying ListNet first.

Closing the issue. If there are any further questions, please reopen.


Add Stable Diffusion V2 support to DirectML examples

/azp run

@trajepl Is it possible to re-run the CI? Thanks!

/azp run


💡 Allow tags to be configured via config file

Suggest an idea for Knip
It's currently possible to combine JSDoc tags with --tags="-knipignore" on the CLI to specify special handling for certain exports, but specifying "tags": ["-knipignore"], in the config file does not effect the same change.  It's not documented in the Configuration docs so I don't believe it's a bug, but generally I expect parity between the CLI and the config file for a given tool.
Can we please add configurability for tags via the knip.json file?
(Currently I'm trying to advocate for Knip on my team but there are a select few exports that are controversial to delete, so I'm compromising with JSDoc tags for those exports)

Thanks for the suggestion, I'd welcome a pull request for this.


Cannot add relationships to the users table

I cannot add relationships to the user table :
"error": {
      "exec_status": "FatalError",
      "hint": null,
      "message": "must be owner of relation users",
      "status_code": "42501",
      "description": null
    },

https://discord.com/channels/552499021260914688/981585092482859068/981585739353575464
Demonstration in video : https://www.loom.com/share/2efff38b077f4113a27b00ce6f7338b5
We started to discuss this issue with Johan and Nuno on discord : https://discord.com/channels/552499021260914688/981585092482859068

I think this issue occurs because there is currently a mismatch for permissions between local and cloud.
Using the Nhost CLI, the developer has full access to the auth and storage schemas.
But in Nhost Cloud, we've limited the permissions for those two schemas to avoid developers messing up those schemas and breaking the authentication and storage services.
This means that database migrations that worked fine locally, are not being applied correctly on Nhost Cloud.
I think the solution to this is what we're currently working on:

Give each Nhost app its own Postgres instance (right now we use shared AWS RDS databases).
Give full root permissions to the Postgres instance.
Build a database UI in the Nhost dashboard in a way that it's hard to mess with the auth and storage schemas to avoid breaking services.
(Somewhat relevant. Under research currently): Let Hasura Auth and Hasura Storage interact directly with Postgres (instead of via GraphQL) to avoid those services being opinionated on the GraphQL and Hasura lawyer (GraphQL root fields etc).

Until the first two points above are released, this issue will persist.

In Discord you mention you tried to add the following:
CREATE OR REPLACE FUNCTION create_user_group() RETURNS TRIGGER AS $$
    BEGIN
      INSERT INTO public.users_groups(user_id,group_id) VALUES(NEW.id, gen_random_uuid());
      RETURN NEW;
    END;
$$ LANGUAGE plpgsql;

CREATE TRIGGER create_user_group_trigger
    AFTER INSERT ON auth.users
    FOR EACH ROW EXECUTE FUNCTION create_user_group();

I suspect it's a Postgres permission issue to create a trigger on auth.users. It that correct?

This should be fixed with the permission work on Postgres that we've done recently.


Implementing pod anti-affinity

We have tried to implement a new cost model by referring to the net cost model. The new cost model named "CPU mem cost model" considers CPU and memory requirements for scheduling instead of network bandwidth. And we have designed and implemented soft constraints on top of this CPU mem cost model.
Please refer the design document of the same and provide your feedback.
In the above design document, we have mentioned the problem with implementing the pod anti-affinity. Please ( @ms705,@ICGog) provide your inputs on this design and suggest how we can efficiently implement pod anti-affinity for cpu mem cost model.
The CPU mem cost model implementation changes are open for review in below gerrithub link.

I will try to take a look at this over the weekend; please ping me next week if you haven't heard back by then.

That would be great Malte, appreciate it. We tried extending the XoR flow network construct based approach for solving Pod anti-affinity constraints as mentioned in Ionel thesis in conjunction with our new multi-dimensional CPU/memory cost model. The CPU/Memory cost model uses multiple ECs in order to distribute the incoming Pods evenly across filtered/relevant machines.
It would be really great if we can guidance from you folks in order to solve the Pod affinity/Anti-affinity constraints within Kubernetes.
Also, we have not yet started looking at the "AND" flow network construct approach for addressing Pod affinity constraints. based on the approach AND approach which Ionel suggested, it seems we would need to extend the min-cost solver to generalised min-cost flow networks. As I mentioned earlier, we have not started looking at the "AND" construct yet.
Our goal is to demonstrate that current Kubernetes scheduling policies can be implemented using the flow network graph approach. Although, I must say we are running into roadblocks for implementing Pod level affinity/anti-affinity constraints. We have successfully implemented node affinity/selector constraints already and the code is waiting for your review. Thanks.

Deepak

Hi Malte/Ionel, a friendly ping to find out if you folks had a chance to review the code we pushed a week or so ago. Thanks.

Deepak

Can you change the permissions of the design document so that we can comment on it?

@ICGog can you please check now?

cool!


[Bug]: 'NoneType' object has no attribute 'group'

What happened?
while downloading course i am getting this error in reaching specific lecture.
i re-run script but still script giving error when reaching on this lecture.
[04:38:09] [udemy-downloader] [parse_new:1788] INFO:     > Processing 0 asset(s) for lecture...
Traceback (most recent call last):
File "D:\data\downloader-master\main.py", line 2068, in
if name == "main":
^^^^^^
File "D:\data\downloader-master\main.py", line 2061, in main
File "D:\data\downloader-master\main.py", line 1745, in parse_new
index = lecture.get("index")  # this is lecture_counter
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\data\downloader-master\main.py", line 1006, in _parse_lecture
if stream_urls and isinstance(stream_urls, dict):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\data\downloader-master\main.py", line 523, in _extract_sources
out = self._extract_m3u8(download_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\data\downloader-master\main.py", line 587, in _extract_m3u8
asset_id = asset_id_re.search(url).group("id")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
D:\data\downloader-master>
Expected Result
it will be great if can fix this issue and i can download this lecture
Branch
master/main
What operating systems are you seeing the problem on?
Windows
Relevant log output
No response
Other information
No response

@Puyodead1
something is wrong with only some courses which are giving this type of error
[06:14:03] [udemy-downloader] [_get:1115] ERROR: 403 Forbidden, retrying (attempt 8 )...
[06:14:08] [udemy-downloader] [_get:1114] ERROR: Failed request https://www.udemy.com/course/dumisnetwork-javascript-basico/learn/
[06:14:08] [udemy-downloader] [_get:1115] ERROR: 403 Forbidden, retrying (attempt 9 )...
Traceback (most recent call last):
File "M:\data\downloader-master\main.py", line 2072, in
main()
File "M:\data\downloader-master\main.py", line 1942, in main
course_id, course_info = udemy._extract_course_info(course_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "M:\data\downloader-master\main.py", line 956, in _extract_course_info
course_id = self._extract_subscription_course_info(url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "M:\data\downloader-master\main.py", line 925, in _extract_subscription_course_info
course_html = self.session._get(url).text
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'text'

@Puyodead1  same text error in this branch also. may be you think it is because other language issue but some english courses also giving the same error.

hi, I have the same issue and it worked after switch to feat/refactor branch.

@swahpy can you give me link of feat/refactor branch ?
evan i am getting error in this branch also and personal plan also geting text error in feat/refactor branch evan i am using browser command

@Puyodead1 master branch is still not supporting personal pro plan account
i am trying but getting 'Text' error. if you want i can show you full log file

@Puyodead1 master branch is still not supporting personal pro plan account
i am trying but getting 'Text' error. if you want i can show you full log file

Yes it does, I can confirm that because I am using a trial account right now. You might not be using the latest version. Make sure you have the /learn part in the url

@Puyodead1  i am using url in this format
https://www.udemy.com/course/my-master-system/learn/

@Puyodead1  please check this. this is with your latest script
M:\udemy-downloader-master_3>python main.py -c https://www.udemy.com/course/excel-for-analysts/learn -o M:\Tut --download-assets
[06:09:56] [udemy-downloader] [pre_run:332] INFO: Output directory set to M:\Tut
[06:09:57] [udemy-downloader] [main:1839] INFO: > Fetching course information, this may take a minute...
[06:10:04] [udemy-downloader] [_get:1118] ERROR: Failed request https://www.udemy.com/course/excel-for-analysts/learn
[06:10:04] [udemy-downloader] [_get:1119] ERROR: 403 Forbidden, retrying (attempt 0 )...
[06:10:06] [udemy-downloader] [_get:1118] ERROR: Failed request https://www.udemy.com/course/excel-for-analysts/learn
[06:10:06] [udemy-downloader] [_get:1119] ERROR: 403 Forbidden, retrying (attempt 1 )...
[06:10:09] [udemy-downloader] [_get:1118] ERROR: Failed request https://www.udemy.com/course/excel-for-analysts/learn
[06:10:09] [udemy-downloader] [_get:1119] ERROR: 403 Forbidden, retrying (attempt 2 )...
[06:10:11] [udemy-downloader] [_get:1118] ERROR: Failed request https://www.udemy.com/course/excel-for-analysts/learn
[06:10:11] [udemy-downloader] [_get:1119] ERROR: 403 Forbidden, retrying (attempt 3 )...
[06:10:14] [udemy-downloader] [_get:1118] ERROR: Failed request https://www.udemy.com/course/excel-for-analysts/learn
[06:10:14] [udemy-downloader] [_get:1119] ERROR: 403 Forbidden, retrying (attempt 4 )...
[06:10:17] [udemy-downloader] [_get:1118] ERROR: Failed request https://www.udemy.com/course/excel-for-analysts/learn
[06:10:17] [udemy-downloader] [_get:1119] ERROR: 403 Forbidden, retrying (attempt 5 )...
[06:10:19] [udemy-downloader] [_get:1118] ERROR: Failed request https://www.udemy.com/course/excel-for-analysts/learn
[06:10:19] [udemy-downloader] [_get:1119] ERROR: 403 Forbidden, retrying (attempt 6 )...
[06:10:22] [udemy-downloader] [_get:1118] ERROR: Failed request https://www.udemy.com/course/excel-for-analysts/learn
[06:10:22] [udemy-downloader] [_get:1119] ERROR: 403 Forbidden, retrying (attempt 7 )...
[06:10:25] [udemy-downloader] [_get:1118] ERROR: Failed request https://www.udemy.com/course/excel-for-analysts/learn
[06:10:25] [udemy-downloader] [_get:1119] ERROR: 403 Forbidden, retrying (attempt 8 )...
[06:10:27] [udemy-downloader] [_get:1118] ERROR: Failed request https://www.udemy.com/course/excel-for-analysts/learn
[06:10:27] [udemy-downloader] [_get:1119] ERROR: 403 Forbidden, retrying (attempt 9 )...
Traceback (most recent call last):
File "M:\udemy-downloader-master_3\main.py", line 2016, in
main()
File "M:\udemy-downloader-master_3\main.py", line 1841, in main
course_id, course_info = udemy._extract_course_info(course_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "M:\udemy-downloader-master_3\main.py", line 960, in _extract_course_info
course_id = self._extract_subscription_course_info(url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "M:\udemy-downloader-master_3\main.py", line 927, in _extract_subscription_course_info
course_html = self.session._get(url).text
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'text'
M:\udemy-downloader-master_3>

You're not using -sc or specifying a browser to extract cookies from

@Puyodead1  same error when i am using this command
python main.py -c https://www.udemy.com/course/excel-for-analysts/learn/ -o M:\Tut -sc --download-assets
same error i am getting when using this command
python main.py -c https://www.udemy.com/course/excel-for-analysts/learn/ -o M:\Tut -sc --download-assets --browser chrome
evan my bearer token i correct and working and i added it also in .env file but getting same above error

@Puyodead1  same error when i am using this command
python main.py -c https://www.udemy.com/course/excel-for-analysts/learn/ -o M:\Tut -sc --download-assets
same error i am getting when using this command
python main.py -c https://www.udemy.com/course/excel-for-analysts/learn/ -o M:\Tut -sc --download-assets --browser chrome
evan my bearer token is correct and working and i added it also in .env file but getting same above error

Bearer tokens will not work for subscription courses. Are you logged in to udemy in Chrome? Make sure you also close chrome before running the command

yes i am logged in to udemy in chrome
i did not close chrome window before running the command.
let me try with 2 more things then i will confirm you its working or not.

@swahpy can you give me link of feat/refactor branch ? evan i am getting error in this branch also and personal plan also geting text error in feat/refactor branch evan i am using browser command

hi, apologize for late reply. Just as Puyodead1 mentioned, feat/refactor was merged into main branch. So you can use main instead from now on.

@Puyodead1 yes i am logged in to udemy in chrome i did not close chrome window before running the command.
let me try with 2 more things then i will confirm you its working or not.

hi jaan143, can you help to confirm if it works or not? Thank you.

@swahpy  it is not working for me sadly :( i tried many time evan i am using --browser file also
i export cookies.txt file in script directory and then i use command with this
python main.py https://www.udemy.com/course/learn-real-world-ux/learn/ -o M:\Tut -sc --download-assets --browser file
but this is also giving me same error. I don't know @Puyodead1  how he is using this with subscription account
@Puyodead1 if you are available then i can show you my cookies file and you can try to use it in your side to check where is the problem.
i really want this :(

@Puyodead1 i import this cookies.txt file in browser to check is it working fine or not where udemy was not login in that browser and cookies is imported successfully and udemy site loging in. so then i try to use --browser firefox also and --browser file too but both giving me error
File "M:\udemy-downloader-master_3\main.py", line 2016, in
main()
File "M:\udemy-downloader-master_3\main.py", line 1841, in main
course_id, course_info = udemy._extract_course_info(course_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "M:\udemy-downloader-master_3\main.py", line 960, in _extract_course_info
course_id = self._extract_subscription_course_info(url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "M:\udemy-downloader-master_3\main.py", line 927, in _extract_subscription_course_info
course_html = self.session._get(url).text
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'text'

@swahpy it is not working for me sadly :( i tried many time evan i am using --browser file also i export cookies.txt file in script directory and then i use command with this python main.py https://www.udemy.com/course/learn-real-world-ux/learn/ -o M:\Tut -sc --download-assets --browser file
but this is also giving me same error. I don't know @Puyodead1 how he is using this with subscription account @Puyodead1 if you are available then i can show you my cookies file and you can try to use it in your side to check where is the problem.
i really want this :(

eeeeee, i suppose i can try, either email me cookies or login credentials<EMAIL_ADDRESS>

@Puyodead1 please check your email i sent and attached cookies.txt file

@Puyodead1 please check your email i sent and attached cookies.txt file

works perfectly fine for me python main.py -c "https://www.udemy.com/course/learn-real-world-ux/learn/"-sc --download-assets --browser file

@Puyodead1  can you please reply that email with your this project ? or just main.py file
i am evan using latest project which you updated 2 weeks ago but i don’t know why i am getting this error. so i want to use project which you run now to check this cookies

@Puyodead1 can you please reply that email with your this project ? or just main.py file i am evan using latest project which you updated 2 weeks ago but i don’t know why i am getting this error. so i want to use project which you run now to check this cookies

I am using the latest version, commit 745ea117de12eb0dd48253ba96652c2e196da7f4 from 3 weeks ago

as i told you before i am also using same project which you updated 2 weeks
ago i think. but i am using portable python not installed python so may be
this can be the reason or i am using other account with access token also
in same project to download some enrolled courses and may be project is
reading env file also with cookies file or may be python cache issue and i
need to delete cache if have
On Sat, 10 Aug 2024 at 1:28 am, Puyodead1 @.***> wrote:

@Puyodead1 https://github.com/Puyodead1 can you please reply that email
with your this project ? or just main.py file i am evan using latest
project which you updated 2 weeks ago but i don’t know why i am getting
this error. so i want to use project which you run now to check this cookies
I am using the latest version, commit 745ea11
https://github.com/Puyodead1/udemy-downloader/commit/745ea117de12eb0dd48253ba96652c2e196da7f4
from 3 weeks ago
—
Reply to this email directly, view it on GitHub
https://github.com/Puyodead1/udemy-downloader/issues/227#issuecomment-2278699792,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSRPSLHDHE7CXKWBNRQV7DZQUQ5BAVCNFSM6AAAAABKBXMMNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZYGY4TSNZZGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

@Puyodead1 as i told you before i am also using same project which you updated 2 weeks ago i think. but i am using portable python not installed python so may be this can be the reason or i am using other account with access token also in same project to download some enrolled courses and may be project is reading env file also with cookies file or may be python cache issue and i need to delete cache if have
…
On Sat, 10 Aug 2024 at 1:28 am, Puyodead1 @.> wrote: @Puyodead1 https://github.com/Puyodead1 can you please reply that email with your this project ? or just main.py file i am evan using latest project which you updated 2 weeks ago but i don’t know why i am getting this error. so i want to use project which you run now to check this cookies I am using the latest version, commit 745ea11 <745ea11> from 3 weeks ago — Reply to this email directly, view it on GitHub <#227 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSRPSLHDHE7CXKWBNRQV7DZQUQ5BAVCNFSM6AAAAABKBXMMNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZYGY4TSNZZGI . You are receiving this because you authored the thread.Message ID: @.>

you could debug the program to see what the exact error is and so try to fix it. pdb will provide much detailed information.

@Puyodead1 as i told you before i am also using same project which you updated 2 weeks ago i think. but i am using portable python not installed python so may be this can be the reason or i am using other account with access token also in same project to download some enrolled courses and may be project is reading env file also with cookies file or may be python cache issue and i need to delete cache if have
…
On Sat, 10 Aug 2024 at 1:28 am, Puyodead1 @.> wrote: @Puyodead1 https://github.com/Puyodead1 can you please reply that email with your this project ? or just main.py file i am evan using latest project which you updated 2 weeks ago but i don’t know why i am getting this error. so i want to use project which you run now to check this cookies I am using the latest version, commit 745ea11 <745ea11> from 3 weeks ago — Reply to this email directly, view it on GitHub <#227 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSRPSLHDHE7CXKWBNRQV7DZQUQ5BAVCNFSM6AAAAABKBXMMNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZYGY4TSNZZGI . You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>
you could debug the program to see what the exact error is and so try to fix it. pdb will provide much detailed information.

its a python script, there is no pdb

@Puyodead1  i was right there was project cache issue and i deleted pycache folder and i remove bearer token of other account from env file and then i run project and it is working fine now.
thank you so much for the help :)

@Puyodead1  Dear please can you help me about this error ? i am getting this in subscription course
[12:36:44] [udemy-downloader] [parse_new:1708] ERROR: > Error downloading asset
Traceback (most recent call last):
File "M:\udemy-downloader-master_4\main.py", line 1705, in parse_new
ret_code = download_aria(download_url, chapter_dir, filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "M:\udemy-downloader-master_4\main.py", line 1403, in download_aria
process = subprocess.Popen(args)
^^^^^^^^^^^^^^^^^^^^^^
File "M:\WPy64-31230\python-3.12.3.amd64\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "M:\WPy64-31230\python-3.12.3.amd64\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified


Can't find the correct aspect ratio for the list of previewsizes

Dear Pedro..!!
I can't find the correct aspect ratio for the list of all the previewsizes that are coming from cameramanager.getResolutions() method. The adaptive resolution 720 x 480 only works correct aspect ratio, don't know why..!! My camera is stretched and the preview is looking so weird that all the images are stretched. But the video in the stream is working fine. How can I achieve correct aspect ratio for the preview size which is supportable by my camera?

Yes, my camera preview is stretched. How can I find the correct aspect ratio? Btw, if I use texture mode the app is only compatible with above the lollipop versions. I need my app to work on below lollipop versions also.

Go to the example and replace object rtmpcamera2 to rtmcamera1 and it should work

Thanks pedro, It's working but I want full-screen camera preview, the autofittextureview is reducing the height of preview by keeping aspect ratio with 640 x 480 dimension. Is there any way to achieve full-screen preview by keeping aspect ratio?

You need select a stream resolution with same aspect ratio than your device screen.
For example:
If you have a screen with 1280px x 720px you can use a stream resolution with the same aspect ratio. Like 1280x720, 1920x1080, 852*480, etc.
If 720x480 is working fine for you then you should found a resolution with a width = height * 1.5. My library show you all resolutions that your device can open the camera select one of that. If anyone work for you maybe you can found other resolution doing a modify in Camera1ApiManager class and use setPictureSize instance of setPreviewSize that some times give you other resolutions.

@rkoshti https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/issues/167


Expose fine-grained rendering stages

Prototyping some API extensions that allow downstream code to easily and efficiently inject custom rendering.

One refinement to explore would be using an RAII object to manage the lifetime of the render pass.

Looks good to me, @Ralith! I have appeased Clippy.


chore(master): release 0.4.0

:robot: I have created a release beep boop
0.4.0 (2022-08-11)
Features

js-library: update fdp-contracts to 1.0.4 (#112) (1b41677)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/fairDataSociety/fdp-storage/releases/tag/v0.4.0 :sunflower:


Issue with k8s.io/docs/reference/

This is a...

[ ] Feature Request
[ ] Bug Report

Problem:
Proposed Solution:
Page to Update:
https://kubernetes.io/...

Hey @wanglei19881118 can you provide additional information about what your issue is?

Not sure, but the issue might be the "double-bullet" in the Table of Content, which will be fixed by #9175.


Make enter have return type StgClosure

public void enter(StgContext context)

This is the current signature of the enter function. The problem is that in the vast majority of cases, a single StgClosure is returned. The current method to retrieve the returned value is through the stack (context) which is a layer on indirection.
public StgClosure enter(StgContext context)

The new signature will improve efficiency, but will be a sweeping change since many parts of the RTS rely assume the void result type.

Implemented in going-stackless.


add riscv architecture definitions

Similar to #6888, add definitions for risc-v - I've omitted 128 bit variants as I wasn't sure if there was other code expecting linux32/64 and there are currently no plans to add 128 bit support to the kernel anyway

This pull request didn't trigger Jenkins as its author isn't in the whitelist.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"

As far as we can tell, those aren't the kernel architecture names.
@brauner found riscv32 and riscv64 in the kernel source tree

Just noticed the aliases for mips are wrong too, you don't need to alias an architecture to itself.
The aliases are only meant to include the alternative names for an architecture as used by an active Linux distribution with support for the architecture.

Grepping through the kernel code, the valid names are:

mips
mips64
riscv32
riscv64

Can you update the osarch definitions to only define those as architecture names and not set any alias on them unless you can point to a distro using an alternative name for them?

re rv v riscv, the reason I used those is that the ISA refers to them as that but you're right, riscv is better, I'll push changes for that now.

Also

Just noticed the aliases for mips are wrong too, you don't need to alias an architecture to itself.
The aliases are only meant to include the alternative names for an architecture as used by an active Linux distribution with support for the architecture.

Yeah I think I have misunderstood what the vars are supposed to contain, I'll get them fixed up - sorry!

Realised I'd typo'd the mips names anyway, should be el rather than le - the kernel identifies them as mips/mips64 regardless of endian iirc, does that need to be catered for?

Given the kernel not differentiating on endianness for MIPS, I think we may instead want:

ARCH_32BIT_MIPS: "mips"
ARCH_64BIT_MIPS: "mips64"

and have "mipsel" and "mips64el" as aliases.
We key all our names on the kernel names, so there's no point in listing architectures that will never be reported by the kernel.

We key all our names on the kernel names, so there's no point in listing architectures that will never be reported by the kernel.

Makes sense!

How does that look?


Ugly error message starting Inselect on Windows 7

Reported by @bwprice

The Windows 10 Universal C Runtime needs to be installed:
https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows


Revert "Revert WFLY-8066"

Reverts wildfly/wildfly#11588
PR to see if the theory on https://github.com/wildfly/wildfly/pull/11588 is correct, and that it causes the clustering errors. 11588 reverts some changes which look like they cause errors on #11586 (which included the same commit) and https://github.com/wildfly/wildfly/pull/11495 is related.
This PR is expected to fail testing

Tests fail as expected


Typo in ClusterFixture

instead of var cluster = builder.Build(); this needed to be Cluster = builder.Build() in the ClusterFixture
Summary
Describe your changes here.
Fixes #Issue_Number (if available)

@dotnet-policy-service agree


Service Bus ARM template for live tests

Adds Service Bus ARM template for live tests
Adds indentation of JSON to two spaces rather than default four spaces. (ARM templates have many nested objects, it becomes unreadable.

Fixes #9882

/azp run java - servicebus - tests

/azp run java - servicebus - tests


Bug in F1 and FBeta implementation and test

Describe the bug
The tests for FBeta and F1 both use a softmax function with just one output.

https://github.com/tensorflow/addons/blob/76249547c481ed47bd6f2f8092a99cd64d37fd2f/tensorflow_addons/metrics/fbeta_test.py#L122
https://github.com/tensorflow/addons/blob/76249547c481ed47bd6f2f8092a99cd64d37fd2f/tensorflow_addons/metrics/f1_test.py#L116

The effect is that the output (prediction) is always 1. The right activation function for a binary calssification (with just one output is sigmoid). But this is not the only problem. This bug in the test hides an even worse other bug.
The other bug is that F1 and FBeta both can not handle values other then 1 (1.0) and 0 (0.0) as the predicted result. But the predictions of a binary classification (with simoid) and multi class classification with softmax is always somewhere between 1 and 0 (one hot encoded for multi class). The result of this bug is that this implementation of F1 and FBeta always return 0.0 when the predicted results are not exactly 0 (0.0) or 1 (1.0) - which is not realistic.
Also all other tests of F1 and FBeta have values of 0 or 1 as the predicted results. This does not reflect reality.

https://github.com/tensorflow/addons/blob/76249547c481ed47bd6f2f8092a99cd64d37fd2f/tensorflow_addons/metrics/fbeta_test.py#L91
https://github.com/tensorflow/addons/blob/76249547c481ed47bd6f2f8092a99cd64d37fd2f/tensorflow_addons/metrics/f1_test.py#L88

Code to reproduce the issue
Just change softmax to sigmoid in the tests and change verbose=1 and see the results.

I guess something like this needs to be added:
https://github.com/tensorflow/tensorflow/blob/2ff39d00faf8f7e433ddcae0aa278f6e573b0c55/tensorflow/python/keras/metrics.py#L2767

Thanks, @PhilipMay. You are right that result will not be an exact number.
The initial implementation we had do not indicate the probability.
preds = tf.constant([[0, 0, 1], [1, 1, 0], [1, 1, 1]], dtype=tf.int32)
In this [0, 0, 1] does not indicate probability. Think we have 3 classes and the predicted is class 3 which is encoded as [0,0,1]
We may need to add argmax to change that in case if we are feeding directly.
Will take up this one and post the updates

We may need to add argmax to change that in case if we are feeding directly.

Yes - if we want to be able to add the metric to keras at training time we need that. Mybe you could have a look at the metrics implementations in Tensorflow.
Thanks you very much. :-)

@seanpmorgan Can you please assign this issue to me?

This here seems to work for me - not sure if it still has bugs in border cases or can be implemented more efficient:
    def update_state(self, y_true, y_pred, sample_weight=None):
        cond = tf.equal(y_pred, tf.reduce_max(y_pred))
        y_pred = tf.where(cond, y_pred, tf.zeros_like(y_pred))
        not_cond = tf.math.logical_not(cond)
        y_pred = tf.where(not_cond, y_pred, tf.ones_like(y_pred))

        y_true = tf.cast(y_true, tf.int32)
        y_pred = tf.cast(y_pred, tf.int32)

For further tests you can compare your results with those from sklearn:
from sklearn.metrics import f1_score
ytrue = np.argmax(y_test, axis=-1)
ypred = np.argmax(y_hat_test, axis=-1)

print(f1_score(ytrue, ypred, average='macro'))
print(f1_score(ytrue, ypred, average='micro'))
print(f1_score(ytrue, ypred, average='weighted'))
print(f1_score(ytrue, ypred, average=None))

Thanks @PhilipMay
I have a working code now using threshold option. That will help in both multiclass and multilabel. Will create a PR today

Thanks @PhilipMay
I have a working code ready now using threshold option. That will help in both multiclass and multilabel. Will create a PR today

That is great. Thanks. I need that fix for my project. :-)
Maybe you can add a comparison with f1_score from sklearn to the tests.

@SSaishruthi I do not think that this implementation with threshold fixes this problem. Here is why:
When you have a "single-label categorial classification" where one sample belongs to exactly one class of many possible classes you apply a softmax funcation. Let me give an example:
You habe 3 classes: dog, cat and bike and do a one hot encoding.
dog = [1, 0, 0]
cat = [0, 1, 0]
bike = [0, 0, 1]

Now when you put a dog into the model you might get the following from the softmax function:
result = [0.5, 0.25, 0.25]
This means: dog because 0.5 is the highest value. And this is the reason why a threshold is not valid. You should apply something like reduce_max or argmax.

@PhilipMay
I am taking binary accuracy as a reference here: https://github.com/tensorflow/tensorflow/blob/2ff39d00faf8f7e433ddcae0aa278f6e573b0c55/tensorflow/python/keras/metrics.py#L630
In order for this to work you need to provide the threshold value as 0.49 above. I can probably fix the threshold default to be 0.5. I think below 0.5, it may not be considered as a good prediction.


Fix failure when built with -DTREAT_WARNINGS_AS_ERRORS=ON

The error is below. We should add -DTREAT_WARNINGS_AS_ERRORS=ON to one of the CI runs.
/velox/functions/prestosql/DateTimeImpl.h:51:28: error: implicit conversion from 'const int64_t' (aka 'const long long') to 'double' changes value from<PHONE_NUMBER>854775807 to<PHONE_NUMBER>854775808 [-Werror,-Wimplicit-const-int-float-conversion]
  if (UNLIKELY(unixtime >= kMax)) {
                        ~~ ^~~~
/usr/local/include/folly/Likely.h:51:40: note: expanded from macro 'UNLIKELY'
#define UNLIKELY(x) (__builtin_expect((x), 0))

We already do enable TREAT_WARNINGS_AS_ERRORS by default. Looks like the issue is limited to MacOS > 12.0 toolchain

by MacOS toolchain >= 12.0, you mean clang version greater than 12.0?

@xumingming That is correct. Fixed it.


Chatroom card

Chatroom card contain three parameters, chat room number, active users, and join action.

Looks good so far. 😊
Just wondering --should the image be passed as a prop as well? Since it'll be different for each room card based on the room's topic.
Also, we should probably keep the file names consistent, so maybe change index.js to ChatCard.js

Sure. I had updated it.


Images in the slider shake when scrolling with mouse

Im using the slick slider on a website as a header on the startpage http://www.polarbrod.se. Unfortunately the images shake when I scroll. The header slider has also a parallax effect så that the content under the slider scrolls on top of it. I could not find any issues before that had the same problem.
Browser is Version 57.0.2987.133 (64-bit)

Hey can you make a reduced test case in a fiddle or codepen?
Closing pending test case


Make the derived feature view example using HDFS sink

Make the derived feature view example compatible with the latest code.
Make the derived feature view example using HDFS sink.

@lindong28 Could you help review this PR?

Thanks for the update! LGTM.


Fix _ as an identifier by accident

The proc-macro2 crate currently has a bug where a bare _ token is classified
as an identifier, but this doesn't happen with the upstream proc_macro crate!
In preparation for fixing proc-macro2 this commit removes syn's reliance on
this behavior.

This was my "real bug" I was originally trying to hunt down in https://github.com/dtolnay/syn/pull/193

Corresponding PR for proc-macro2: https://github.com/alexcrichton/proc-macro2/pull/29


Stable aws-sdk-dynamodb version support

Thank you very much for your amazing crate!
Is there any plans to support stable  aws-sdk-dynamodb version? 1.2 is available.

This was released in version 4.2.13 under the feature aws-sdk-dynamodb+1.
I'm also still thinking about whether I should – and if so how I should – release support for aws-sdk-dynamodb without needing a feature flag.
I'm thinking about that because my hope is that with the aws-sdk-dynamodb release, this library becomes pretty stable:

aws-sdk-dynamodb stays at version 1 for a while
rusoto is all but dead, so I don't need to support it anymore
aws-lambda-events uses serde_dynamo directly, so now feature flag is needed for that, either

I believe as soon as this is a stable release it should be enabled by default.


[1.x] Remove direct dependency on org.fusesource.jansi

Motivation

Jansi development is inactive, with its last update all the way back in Oct 12, 2023
Jansi contains native code
sbt does not use Jansi all that much

Also recent Jansi-related tickets such as https://github.com/sbt/sbt/issues/7865 would not exist if we do not depend on org.fusesource.jansi.
Changes

Remove the usage of org.fusesource.jansi.AnsiConsole in sbt thin client

Since Windows 10 introduced ANSI support, org.fusesource.jansi.AnsiConsole is no longer necessary on Windows.

Remove the usage of Jansi's JNI methods, replacing them with equivalent methods from JLine3.

Addressing diamond dependency & sbtn build concern
Eugene pointed out that changing a dependency containing native code may cause breakage if

downstream of sbt uses the same dependency

historically diamond JLine dependency had broken sbt console

sbtn build may fail & become nonfunctional

This PR addresses the concern by testing sbtn console on a sample Scala 2.12.20, Scala 2.13.15 and Scala 3.3.4 project, against a sbtn executable built against the PR branch. No regression is identified.
Windows

Mac
3.3.4

2.13.15

2.12.20

Supersedes #7872

Also opened #7877 (same PR but targeting 2.x branch) so if the reviewers decide that this change belongs to 2.x branch better we can merge #7877 and close #7876.


Add pre-commit hook for mypy and remove explicit mypy step from python-ci

Run mypy via pre-commit so that typing errors are caught before being committed.
One small downside is the need to specify explicitly the dependencies to be installed in the mypy virtualenv (e.g. somacore), instead of having all the tiledbsoma dependencies already installed as on https://github.com/single-cell-data/TileDB-SOMA/pull/726. That's because AFAICT the additional_dependencies option can install only PyPI packages, not local dependencies (e.g. apis/python/).

The mypy configuration in pre-commit does not install dependencies and so will miss out on any errors involving libraries that are imported. It’s useful as a step in the commit process but does not replace a full mypy run. For instance, this would be allowed:
import numpy

numpy.here.there.everywhere

cf. the comment in https://github.com/single-cell-data/SOMA/commit/d0df9ed67647d7c0d9d12d191addceebf7d7ed39

It does install any dependencies listed in additional_dependencies, as well as their dependencies recursively. Numpy is a dependency of somacore so this just works as is:
$ pre-commit run mypy -a
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

apis/python/src/tiledbsoma/io.py:36: error: Module has no attribute "here"  [attr-defined]
Found 1 error in 1 file (checked 29 source files)

It does install any dependencies listed in additional_dependencies, as well as their dependencies recursively. Numpy is a dependency of somacore so this just works as is:
$ pre-commit run mypy -a
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

apis/python/src/tiledbsoma/io.py:36: error: Module has no attribute "here"  [attr-defined]
Found 1 error in 1 file (checked 29 source files)

Ah, because somacore includes so many of the dependencies of tiledbsoma, it will be much better covered. However, any other dependencies of tiledbsoma that are not included in that list will not be included.
If it were me I would still keep the full mypy run to ensure something like that doesn’t happen, and use the pre-commit step just as a lighter-weight (useful but not complete) step to run when doing an actual commit.

However, any other dependencies of tiledbsoma that are not included in that list will not be included.

In practice this doesn't seem to be a problem here:

Not including somacore in additional_dependencies results in a dozen errors; you'll get a loud reminder if you forget it.
All other missing dependencies don't have type annotations; you can see this by commenting out  ignore_missing_imports = True:

...
Skipping analyzing "pandas": module is installed, but missing library stubs or py.typed marker  [import]
Skipping analyzing "scipy": module is installed, but missing library stubs or py.typed marker  [import]
Skipping analyzing "pyarrow": module is installed, but missing library stubs or py.typed marker  [import]
Skipping analyzing "anndata": module is installed, but missing library stubs or py.typed marker  [import]
Skipping analyzing "tiledb": module is installed, but missing library stubs or py.typed marker  [import]
Skipping analyzing "h5py": module is installed, but missing library stubs or py.typed marker  [import]
...

So the type checking will be incomplete only if you forget to add a dependency that both (a) comes with type annotations and (b) does not complain if you omit it, which IMO is rather unlikely.

@gsakkis @thetorpedodog this is all wondeful engagement, although sadly somewhat over my particular head
In terms of detailed correctness, I defer to @thetorpedodog 's accept/reject
In terms of big picture, my concern is that we are still running mypy in CI. That appears to be the intention; but on this PR the "Run pre-commit hooks on all files" step is skipped in CI so I can't double-check ...

Pre-commit is running on only one combination of the test matrix (if: matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9') as before this PR. Pretty easy to change to run always if you prefer.

Merging ... any second thoughts, we can file a follow-on PR ...


fix ci/cd

Google cloud run was not detecting next build dir. Found volume was left in from dev vers, commented out.
Added more robust automated test ci

Summary by CodeRabbit

Chore: Updated GitHub Actions workflow to enhance CI/CD pipeline.
New Feature: Integrated Docker Compose to build and manage application services in the testing environment.
Refactor: Modified environment variables for better configuration management.
Test: Included yarn build command to ensure code builds successfully before running tests.

These changes aim to improve the reliability of the testing process, ensuring that any new changes integrate well with the existing codebase.

Bot does not have enough context to make good review


add infrastructure for time travel (2)

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

14 of 14 (100.0%)  changed or added relevant lines in 6 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.01%) to 99.636%

Files with Coverage Reduction
New Missed Lines
%

src/modules/olMap/handler/draw/OlDrawHandler.js
1
98.41%

Totals

Change from base Build<PHONE_NUMBER>9:
-0.01%

Covered Lines:
12642

Relevant Lines:
12644

💛  - Coveralls


Add Nemo - Nemo is your digital place for focus.

Add Nemo under Apps & Examples section.
Describe Why This Is Awesome
Nemo is an open-source side project app focusing on productivity, focus, and getting things done. Nemo analytics help you get insights on how you've spent your day and how productive have you been in the week.
Nemo is 100% free, open-source, and provides advanced analytics on your productivity. You can define the tasks you're working on. It also has a Pomodoro timer. You can customize all the settings and create your perfect environment. You can tune out other noises by listening to calm and relaxing nature sounds. It also records the tasks you're working on and performs analytics to give you a better view of all the tasks you've worked on.
Nemo uses Deta Micros for deployment.
Demo
Try Nemo
Project: Github
Project Links
Backend: https://github.com/harshitsinghai77/nemo-backend
Frontend: https://github.com/harshitsinghai77/nemo-frontend
Blog:
https://fictionally-irrelevant.vercel.app/posts/be-productive-with-nemo
https://fictionally-irrelevant.vercel.app/posts/nemo-your-digital-place-to-focus
Like this pull request?  Vote for it by adding a :+1:

hi @harshitsinghai77 thanks for the pr! Nemo looks cool but the description is pretty long. either accept my change or edit it to be shorter and more descriptive (~3-8 words)

Hey @abdelhai, I didn't get your changes. Can you write a comment on something?

@harshitsinghai77 sorry, check again


Fixes #56

Pins neo4j to 3.5.18 in docker-compose.yml (the last known version working with Stormspotter;
This includes also the fix for #80

@microsoft-github-policy-service agree


DISABLE_NOTEBOOK_EDIT_ACCESS environment variable not working

Describe the bug
When setting the DISABLE_NOTEBOOK_EDIT_ACCESS to 1, the platform still lets you edit pipelines in the editor.
To Reproduce

Set DISABLE_NOTEBOOK_EDIT_ACCESS environment variable to 1
Restart with docker compose up -d
Try and edit a pipeline

Expected behavior
Mage shouldn't allow to edit pipelines in the browser
Environment:

Ubuntu 22
Docker version 23.0.4
Docker Compose version v2.17.2

Additional context
When downgrading to a previous version (0.9.32 in my case since that's what i used before it stopped working) it works.
I can see a new release is on the way but don't know if it contains a fix for this. Will try when the docker is finished building :)

tried with latest, still not working

tried with latest version (0.9.36), still not working

thanks for reporting this. we'll take a look

hello again! i noticed this issue has been resolved <3

@aggelito was just about to let you know, but seems like you found out on your own 😅

@aggelito was just about to let you know, but seems like you found out on your own 😅

haha i've been waiting! recently discovered mage and we really like it. so thank you, great work :clap:


update golang to 1.12.3

Description of problem
Go modules have a mismatching hash calculation between between 1.11 and 1.12. So I would like to update the runners version to the latest one.

Ref #1420.