Gradle Error: Failed to resolve: com.github.blackcat27:library:1.0.2-SNAPSHOT

Hi,
first of all, thank you for your work. You seem to be the only one, who made a simple currency EditText for Android.
Your code does not seem to be available on maven central. I could also not find it by browsing through  http://search.maven.org/. So I guess your repository there might have been deleted for some reason. Could you fix this?

Hi,
Yes, I wrote it.
I've been using it from maven with no issue. Please try with the latest
version (1.1.0). I may have forgotten to update the readme, and if so I'm
sorry about that.
I'll double check on to package in a bit. I'll admit I'm a bit green to
hosting code with maven, so it's very possible there's something I've
missed.
For now, please try the latest version and let me know if that helps.
-Josh
On Mar 8, 2015 3:18 PM, "phihos"<EMAIL_ADDRESS>wrote:

Hi,
first of all, thank you for your work. You seem to be the only one, who
made a simple currency EditText for Android.
Your code does not seem to be available on maven central. I could also not
find it by browsing through http://search.maven.org/. So I guess your
repository there might have been deleted for some reason. Could you fix
this?
—
Reply to this email directly or view it on GitHub
https://github.com/BlacKCaT27/CurrencyEditText/issues/4.

Just double-checked the repo and it's definitely there.

I was only able to use it after adding the following snippet to my app level build.gradle
repositories {
mavenCentral()
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
}

Closing issue as I haven't heard anymore on this and I'm able to use mavencentral with no issue. If anyone is still having problems please feel free to open another ticket.
Also please check that you're using the latest version (1.1.2).


Too short termination may cause CH return a worse solution than the best solution

Describe the bug
When running Timefold Solver with a very short termination (spent-limit=1s, unimproved-spent-limit=1s), the following behaviour occurs - please notice the CH step (12) that selects a move changing the score to -1hard, worse than the previous score:
16:23:10.638 DEBUG [pool-8-thread-1]     CH step (0), time spent (246), score (0hard/-626medium/-1538soft), selected move count (46), picked move (SolverVisit{id=da0bbce4, visitGroup=null} {null -> SolverVehicleShift{id=6b814f3e}[0]}).
16:23:10.787 DEBUG [pool-8-thread-1]     CH step (1), time spent (395), score (0hard/-622medium/-1830soft), selected move count (47), picked move (SolverVisit{id=12744b72, visitGroup=null} {null -> SolverVehicleShift{id=6b814f3e}[0]}).
16:23:10.892 DEBUG [pool-8-thread-1]     CH step (2), time spent (500), score (0hard/-606medium/-3550soft), selected move count (48), picked move (SolverVisit{id=bb0fc8ab, visitGroup=null} {null -> SolverVehicleShift{id=a51f8828}[0]}).
16:23:10.947 DEBUG [pool-8-thread-1]     CH step (3), time spent (554), score (0hard/-602medium/-3657soft), selected move count (49), picked move (SolverVisit{id=43a7bff8, visitGroup=null} {null -> SolverVehicleShift{id=a51f8828}[0]}).
16:23:11.021 DEBUG [pool-8-thread-1]     CH step (4), time spent (629), score (0hard/-598medium/-3663soft), selected move count (50), picked move (SolverVisit{id=21b51c4e, visitGroup=null} {null -> SolverVehicleShift{id=a51f8828}[2]}).
16:23:11.079 DEBUG [pool-8-thread-1]     CH step (5), time spent (686), score (0hard/-594medium/-4152soft), selected move count (51), picked move (SolverVisit{id=c5def3d2, visitGroup=null} {null -> SolverVehicleShift{id=a51f8828}[0]}).
16:23:11.124 DEBUG [pool-8-thread-1]     CH step (6), time spent (732), score (0hard/-590medium/-4285soft), selected move count (52), picked move (SolverVisit{id=20ca1ec6, visitGroup=null} {null -> SolverVehicleShift{id=6b814f3e}[2]}).
16:23:11.186 DEBUG [pool-8-thread-1]     CH step (7), time spent (794), score (0hard/-574medium/-4411soft), selected move count (53), picked move (SolverVisit{id=ab86f7f4, visitGroup=null} {null -> SolverVehicleShift{id=88403ee1}[0]}).
16:23:11.233 DEBUG [pool-8-thread-1]     CH step (8), time spent (841), score (0hard/-570medium/-4853soft), selected move count (54), picked move (SolverVisit{id=9a75b159, visitGroup=null} {null -> SolverVehicleShift{id=6f87cf48}[0]}).
16:23:11.284 DEBUG [pool-8-thread-1]     CH step (9), time spent (892), score (0hard/-566medium/-5198soft), selected move count (55), picked move (SolverVisit{id=ae753509, visitGroup=null} {null -> SolverVehicleShift{id=6b814f3e}[0]}).
16:23:11.326 DEBUG [pool-8-thread-1]     CH step (10), time spent (934), score (0hard/-557medium/-5803soft), selected move count (56), picked move (SolverVisit{id=f36aed4f, visitGroup=null} {null -> SolverVehicleShift{id=88403ee1}[0]}).
16:23:11.367 DEBUG [pool-8-thread-1]     CH step (11), time spent (975), score (0hard/-553medium/-7997soft), selected move count (57), picked move (SolverVisit{id=44520408, visitGroup=null} {null -> SolverVehicleShift{id=6f87cf48}[1]}).
16:23:11.393 DEBUG [pool-8-thread-1]     CH step (12), time spent (1001), score (-1hard/-549medium/-8719soft), selected move count (38), picked move (SolverVisit{id=6f9a92c8, visitGroup=null} {null -> SolverVehicleShift{id=fb6f06d3}[0]}).
16:23:11.396  INFO [pool-8-thread-1] Construction Heuristic phase (1) ended: time spent (1004), best score (-1hard/-549medium/-8719soft), score calculation speed (1438/sec), step total (13).

Running the same dataset with slightly longer termination (spent-limit=2s, unimproved-spent-limit=2s) shows that no such move is picked when CH is not interrupted:
16:28:59.354 DEBUG [pool-8-thread-1]     CH step (0), time spent (223), score (0hard/-626medium/-1538soft), selected move count (46), picked move (SolverVisit{id=3ea7b2d5, visitGroup=null} {null -> SolverVehicleShift{id=47a75478}[0]}).
16:28:59.513 DEBUG [pool-8-thread-1]     CH step (1), time spent (382), score (0hard/-622medium/-1830soft), selected move count (47), picked move (SolverVisit{id=876e31cf, visitGroup=null} {null -> SolverVehicleShift{id=47a75478}[0]}).
16:28:59.583 DEBUG [pool-8-thread-1]     CH step (2), time spent (452), score (0hard/-606medium/-3550soft), selected move count (48), picked move (SolverVisit{id=91c2223b, visitGroup=null} {null -> SolverVehicleShift{id=3bfd7a04}[0]}).
16:28:59.661 DEBUG [pool-8-thread-1]     CH step (3), time spent (530), score (0hard/-602medium/-3657soft), selected move count (49), picked move (SolverVisit{id=19020590, visitGroup=null} {null -> SolverVehicleShift{id=3bfd7a04}[0]}).
16:28:59.724 DEBUG [pool-8-thread-1]     CH step (4), time spent (593), score (0hard/-598medium/-3663soft), selected move count (50), picked move (SolverVisit{id=4836dfb0, visitGroup=null} {null -> SolverVehicleShift{id=3bfd7a04}[2]}).
16:28:59.779 DEBUG [pool-8-thread-1]     CH step (5), time spent (648), score (0hard/-594medium/-4152soft), selected move count (51), picked move (SolverVisit{id=30eef4d3, visitGroup=null} {null -> SolverVehicleShift{id=3bfd7a04}[0]}).
16:28:59.835 DEBUG [pool-8-thread-1]     CH step (6), time spent (704), score (0hard/-590medium/-4285soft), selected move count (52), picked move (SolverVisit{id=1aa8cf6a, visitGroup=null} {null -> SolverVehicleShift{id=47a75478}[2]}).
16:28:59.884 DEBUG [pool-8-thread-1]     CH step (7), time spent (753), score (0hard/-574medium/-4411soft), selected move count (53), picked move (SolverVisit{id=ae04ae69, visitGroup=null} {null -> SolverVehicleShift{id=2be8764a}[0]}).
16:28:59.928 DEBUG [pool-8-thread-1]     CH step (8), time spent (797), score (0hard/-570medium/-4853soft), selected move count (54), picked move (SolverVisit{id=ea8365af, visitGroup=null} {null -> SolverVehicleShift{id=d694fb59}[0]}).
16:28:59.976 DEBUG [pool-8-thread-1]     CH step (9), time spent (845), score (0hard/-566medium/-5198soft), selected move count (55), picked move (SolverVisit{id=a26d2047, visitGroup=null} {null -> SolverVehicleShift{id=47a75478}[0]}).
16:29:00.018 DEBUG [pool-8-thread-1]     CH step (10), time spent (887), score (0hard/-557medium/-5803soft), selected move count (56), picked move (SolverVisit{id=98e435f7, visitGroup=null} {null -> SolverVehicleShift{id=2be8764a}[0]}).
16:29:00.083 DEBUG [pool-8-thread-1]     CH step (11), time spent (952), score (0hard/-553medium/-7997soft), selected move count (57), picked move (SolverVisit{id=840fe3d6, visitGroup=null} {null -> SolverVehicleShift{id=d694fb59}[1]}).
16:29:00.150 DEBUG [pool-8-thread-1]     CH step (12), time spent (1019), score (0hard/-549medium/-8094soft), selected move count (58), picked move (SolverVisit{id=a1374ef0, visitGroup=null} {null -> SolverVehicleShift{id=d694fb59}[2]}).
16:29:00.255 DEBUG [pool-8-thread-1]     CH step (13), time spent (1124), score (0hard/-545medium/-8541soft), selected move count (59), picked move (SolverVisit{id=46f0f369, visitGroup=null} {null -> SolverVehicleShift{id=d694fb59}[3]}).
16:29:00.316 DEBUG [pool-8-thread-1]     CH step (14), time spent (1185), score (0hard/-541medium/-9617soft), selected move count (60), picked move (SolverVisit{id=ad859e6e, visitGroup=null} {null -> SolverVehicleShift{id=d8c05cdc}[0]}).
16:29:00.356 DEBUG [pool-8-thread-1]     CH step (15), time spent (1225), score (0hard/-537medium/-19733soft), selected move count (61), picked move (SolverVisit{id=62c0a165, visitGroup=null} {null -> SolverVehicleShift{id=fb07005e}[0]}).
16:29:00.397 DEBUG [pool-8-thread-1]     CH step (16), time spent (1266), score (0hard/-533medium/-19900soft), selected move count (62), picked move (SolverVisit{id=444f2ec4, visitGroup=null} {null -> SolverVehicleShift{id=fb07005e}[0]}).
16:29:00.434 DEBUG [pool-8-thread-1]     CH step (17), time spent (1303), score (0hard/-532medium/-20300soft), selected move count (63), picked move (SolverVisit{id=b23a14a3, visitGroup=null} {null -> SolverVehicleShift{id=fb07005e}[2]}).
16:29:00.476 DEBUG [pool-8-thread-1]     CH step (18), time spent (1345), score (0hard/-532medium/-20300soft), selected move count (64), picked move (No change).
16:29:00.513 DEBUG [pool-8-thread-1]     CH step (19), time spent (1382), score (0hard/-528medium/-20821soft), selected move count (64), picked move (SolverVisit{id=3a71821c, visitGroup=null} {null -> SolverVehicleShift{id=fb07005e}[0]}).
16:29:00.550 DEBUG [pool-8-thread-1]     CH step (20), time spent (1419), score (0hard/-524medium/-22405soft), selected move count (65), picked move (SolverVisit{id=90e0c4e7, visitGroup=null} {null -> SolverVehicleShift{id=d0f48be9}[0]}).
16:29:00.600 DEBUG [pool-8-thread-1]     CH step (21), time spent (1469), score (0hard/-520medium/-23115soft), selected move count (66), picked move (SolverVisit{id=64aa6a58, visitGroup=null} {null -> SolverVehicleShift{id=6aaab5e4}[0]}).
16:29:00.644 DEBUG [pool-8-thread-1]     CH step (22), time spent (1513), score (0hard/-516medium/-23595soft), selected move count (67), picked move (SolverVisit{id=3ae8ba8d, visitGroup=null} {null -> SolverVehicleShift{id=6aaab5e4}[0]}).
16:29:00.693 DEBUG [pool-8-thread-1]     CH step (23), time spent (1562), score (0hard/-512medium/-24199soft), selected move count (68), picked move (SolverVisit{id=e05e8cf8, visitGroup=null} {null -> SolverVehicleShift{id=6aaab5e4}[2]}).
16:29:00.735 DEBUG [pool-8-thread-1]     CH step (24), time spent (1604), score (0hard/-508medium/-24675soft), selected move count (69), picked move (SolverVisit{id=2041724e, visitGroup=null} {null -> SolverVehicleShift{id=d0f48be9}[1]}).
16:29:00.775 DEBUG [pool-8-thread-1]     CH step (25), time spent (1643), score (0hard/-504medium/-24740soft), selected move count (70), picked move (SolverVisit{id=fe8bb96c, visitGroup=null} {null -> SolverVehicleShift{id=6aaab5e4}[1]}).
16:29:00.817 DEBUG [pool-8-thread-1]     CH step (26), time spent (1686), score (0hard/-503medium/-25140soft), selected move count (71), picked move (SolverVisit{id=a375efac, visitGroup=null} {null -> SolverVehicleShift{id=f040623b}[0]}).
16:29:00.866 DEBUG [pool-8-thread-1]     CH step (27), time spent (1735), score (0hard/-494medium/-27516soft), selected move count (72), picked move (SolverVisit{id=69f35090, visitGroup=null} {null -> SolverVehicleShift{id=369ee051}[0]}).
16:29:00.943 DEBUG [pool-8-thread-1]     CH step (28), time spent (1811), score (0hard/-490medium/-27784soft), selected move count (73), picked move (SolverVisit{id=ac551583, visitGroup=null} {null -> SolverVehicleShift{id=811836c2}[0]}).
16:29:01.015 DEBUG [pool-8-thread-1]     CH step (29), time spent (1884), score (0hard/-486medium/-27888soft), selected move count (74), picked move (SolverVisit{id=5aa15f73, visitGroup=null} {null -> SolverVehicleShift{id=f040623b}[1]}).
16:29:01.058 DEBUG [pool-8-thread-1]     CH step (30), time spent (1927), score (0hard/-482medium/-28890soft), selected move count (75), picked move (SolverVisit{id=5513a667, visitGroup=null} {null -> SolverVehicleShift{id=811836c2}[0]}).
16:29:01.099 DEBUG [pool-8-thread-1]     CH step (31), time spent (1968), score (0hard/-478medium/-29201soft), selected move count (76), picked move (SolverVisit{id=fae0fe9b, visitGroup=null} {null -> SolverVehicleShift{id=f040623b}[1]}).
16:29:01.132 DEBUG [pool-8-thread-1]     CH step (32), time spent (2001), score (0hard/-474medium/-29657soft), selected move count (56), picked move (SolverVisit{id=3f8c6dc6, visitGroup=null} {null -> SolverVehicleShift{id=369ee051}[0]}).
16:29:01.136  INFO [pool-8-thread-1] Construction Heuristic phase (1) ended: time spent (2004), best score (0hard/-474medium/-29657soft), score calculation speed (2115/sec), step total (33).

Expected behavior
CH should never return a solution with the score worse than found previously.
Actual behavior
When terminated too early, CH may return a solution with the score worse than found previously, even infeasible.
To Reproduce
Run the solver with a very short termination that interrupts CH on a model using @PlanningListVariable(allowsUnassignedValues = true) (not sure if that specific information is important).
Please let me know if you need me to send a reproducer.
Environment
Timefold Solver Version or Git ref:
1.14.0
Output of java -version:
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (Red_Hat-<IP_ADDRESS>.9-2) (build 22.0.2+9)
OpenJDK 64-Bit Server VM (Red_Hat-<IP_ADDRESS>.9-2) (build 22.0.2+9, mixed mode, sharing)

Output of uname -a or ver:
Linux fedora 6.10.11-100.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 18 21:08:06 UTC 2024 x86_64 GNU/Linux

A reproducer would be welcome, @winklerm.
I'm not entirely sure why this would be a bug - the CH was terminated prematurely, mid-step, and it returned the best solution it could find. What I don't understand is why the second CH didn't terminate mid-step. Could it have been a coincidence that it just so happened that the termination came right when the step ended?

Also, I would be very interested in knowing if you've seen this in the log:
https://github.com/TimefoldAI/timefold-solver/blob/main/core/src/main/java/ai/timefold/solver/core/impl/constructionheuristic/DefaultConstructionHeuristicPhase.java#L66

Also, I would be very interested in knowing if you've seen this in the log: https://github.com/TimefoldAI/timefold-solver/blob/main/core/src/main/java/ai/timefold/solver/core/impl/constructionheuristic/DefaultConstructionHeuristicPhase.java#L66

I have checked the TRACE log and there is no sign of it.


JServoController

package up derivs_limiter, and find some nice ways to set range
strength setting for esp32?

done


usrsock: usrsock cannot return any error code

The usrsock can be run with various daemons and drivers, and  it works fine with NuttX11.0.0.
Since usrsock refactoring, it was not possible to return arbitrary POSIX error codes, all errors from usrsock were only -ECONNABORTED.
For example, the usrsock ioctl should be changed as below? What do you think?
diff --git a/net/usrsock/usrsock_ioctl.c b/net/usrsock/usrsock_ioctl.c
index ba93ac5..4148ddb 100644
--- a/net/usrsock/usrsock_ioctl.c
+++ b/net/usrsock/usrsock_ioctl.c
@@ -55,7 +55,8 @@ static uint16_t ioctl_event(FAR struct net_driver_s *dev,
     {
       ninfo("socket aborted.\n");

-      pstate->reqstate.result = -ECONNABORTED;
+      pstate->reqstate.result = (conn->resp.result < 0) ? conn->resp.result
+                                                        : -ECONNABORTED;
       pstate->valuelen = 0;

       /* Stop further callbacks */

I think you can return error code from USRSOCK_EVENT_REQ_COMPLETE:
  else if (flags & USRSOCK_EVENT_REQ_COMPLETE)
    {
      ninfo("request completed.\n");

      pstate->reqstate.result = conn->resp.result;
      if (pstate->reqstate.result < 0)
        {
          pstate->valuelen = 0;
          pstate->valuelen_nontrunc = 0;
        }
      else
        {
          pstate->valuelen = conn->resp.valuelen;
          pstate->valuelen_nontrunc = conn->resp.valuelen_nontrunc;
        }

      /* Stop further callbacks */

      pstate->reqstate.cb->flags = 0;
      pstate->reqstate.cb->priv  = NULL;
      pstate->reqstate.cb->event = NULL;

      /* Wake up the waiting thread */

      nxsem_post(&pstate->reqstate.recvsem);
    }


codes not found

When I ran the code python src/preprocessing/preprocess.py --all during the data processing, I encountered some errors. For example, in the src/preprocessing/learn_bpe.sh script, it reports:
src/preprocessing/learn_bpe.sh: line 26: data/bpe/xsum/codes: No such file or directory

Could you please provide the codes file mentioned here? thanks！！

this markdown is so bad！！


Bug: Maximum execution time exceeds while handling IPv6 Reverse Proxy IPs

Description
Maximum execution time exceeds if the request is from an IPv6 address while processing Reverse Proxy IP.
I have set cloudflare IPs for Reverse Proxy IP list and I saw a few errors today on my site. Checking the access_logs with error timestamps reveals that these requests were from IPv6 addresses and were all failing with max execution time errors.
I was only able to replicate the issue by requesting my site with http://ipv6-test.com once since I don't have an IPv6 address.
PHP error_log
[11-Oct-2020 12:54:48 UTC] PHP Fatal error:  Maximum execution time of 180 seconds exceeded in /application/system/HTTP/Request.php on line 200
[11-Oct-2020 13:43:07 UTC] PHP Fatal error:  Maximum execution time of 180 seconds exceeded in /application/system/HTTP/Request.php on line 209
[11-Oct-2020 14:28:52 UTC] PHP Fatal error:  Maximum execution time of 180 seconds exceeded in /application/system/HTTP/Request.php on line 195

CodeIgniter log
CRITICAL - 2020-10-11 12:54:48 --> Maximum execution time of 180 seconds exceeded
#0 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
#1 {main}
CRITICAL - 2020-10-11 13:43:07 --> Maximum execution time of 180 seconds exceeded
#0 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
#1 {main}
CRITICAL - 2020-10-11 14:28:52 --> Maximum execution time of 180 seconds exceeded
#0 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
#1 {main}

Apache Access log
{IPv6 hidden} - - [11/Oct/2020:12:51:46 +0000] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
{IPv6 hidden} - - [11/Oct/2020:13:40:05 +0000] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
{IPv6 hidden} - - [11/Oct/2020:14:25:50 +0000] "GET / HTTP/1.1" 500 - "http://ipv6-test.com/validate.php" "ipv6-test.com validator"

App Config
public $proxyIPs = [
	//cloudflare https://www.cloudflare.com/ips/
	//truncated list
	//ipv4
	'<IP_ADDRESS>/20',
	'<IP_ADDRESS>/22',
	...
	//ipv6
	'2400:cb00::/32',
	'2606:4700::/32',
	...
];

CodeIgniter 4 version
CodeIgniter 4.0.4
Affected module(s)
\CodeIgniter\HTTP\Request->getIPAddress()
Expected behavior, and steps to reproduce if appropriate
Add cloudflare IPs to Reverse Proxy IP list and request the server from an IPv6 address.
Context

OS: CentOS 7
Web server: Apache
PHP version 7.3

看不懂

I have removed those IPs from $proxyIPs for now. Waiting for a response from one of the developers.

Have you checked with your ISP regarding this? This is more likely a routing issue rather than a framework error.


crypto/ecdsa: make PublicKey implement encoding.TextMarshaler/TextUnmarshaler using PEM

What version of Go are you using (go version)?

$ go version
go version go1.12.7 darwin/amd64

and whatever play.golang.org uses.
Does this issue reproduce with the latest release?
It is the latest release as of now. It can also be reproduced here: https://play.golang.org/p/cbsOhB8lHxe
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/path/to/my/gocode"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.7/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.7/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/td/yb98xptn12d60pfrjw87kkm80000gn/T/go-build432091977=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
https://play.golang.org/p/cbsOhB8lHxe
package main

import (
	"crypto/ecdsa"
	"crypto/elliptic"
	"crypto/rand"
	"encoding/json"
	"log"
)

func main() {

	privKey, _ := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
	jsonKey, err := json.Marshal(privKey)
	if err != nil {
		log.Fatalf("error marshalling private key: %v", err)
	}

	var retrieveKey ecdsa.PrivateKey

	if err := json.Unmarshal(jsonKey, &retrieveKey); err != nil {
		log.Fatalf("error parsing json: %s", err)
	}
}

What did you expect to see?
A key struct created from json that has just been created from the very same data structure.
The same process does succeed for RSA: https://play.golang.org/p/FFYREV4NMfv , although not on the playground, where I get "Program exited: process took too long." I did test it locally and I'm actually using it as a workaround.
What did you see instead?
error parsing json: json: cannot unmarshal object into Go struct field PrivateKey.Curve of type elliptic.Curve
I have also written the jsonKey to file and verified that it is valid json.

Thank you for this report @nulldowntime and welcome to the Go project!
So the issue here is that for ecdsa.PrivateKey  we don't have custom JSON marshaler and unmarhsler methods yet the embedded field Curve is an interface as per:
https://golang.org/pkg/crypto/ecdsa/#PrivateKey

which is an embedded field https://golang.org/pkg/crypto/ecdsa/#PublicKey

and finally https://golang.org/pkg/crypto/elliptic/#Curve

of which a non-nil interface is backed by a concrete type so the JSON.marshal works alright, but not the other way unless we define some custom json.Unmarshaler https://golang.org/pkg/encoding/json/#Unmarshaler methods
You can unmarshal though to the CurveParams as per https://play.golang.org/p/NfTlvFC28Zw or inlined below
package main

import (
	"crypto/ecdsa"
	"crypto/elliptic"
	"crypto/rand"
	"encoding/json"
	"fmt"
	"log"
)

func main() {

	privKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
	if err != nil {
		log.Fatalf("Failed to generate privateKey: %v", err)
	}
	jsonKey, err := json.Marshal(privKey)
	if err != nil {
		log.Fatalf("error marshalling private key: %v", err)
	}
	type retrieve struct {
		CurveParams *elliptic.CurveParams `json:"Curve"`
	}

	rt := new(retrieve)
	if err := json.Unmarshal(jsonKey, rt); err != nil {
		log.Fatalf("error parsing json: %s", err)
	}
	fmt.Printf("Retrieved.CurveParams: %#v\n", rt.CurveParams)
}

which prints out successfully
Retrieved.CurveParams: &elliptic.CurveParams{
 P:115792089210356248762697446949407573530086143415290314195533631308867097853951,
 N:115792089210356248762697446949407573529996955224135760342422259061068512044369,
 B:41058363725152142129326129780047268409114441015993725554835256314039467401291,
 Gx:48439561293906451759052585252797914202762949526041747995844080717082404635286,
 Gy:36134250956749795798585127919587881956611106672985015071877198253568414405109,
 BitSize:256,
 Name:"P-256"
}

and then for a sample of json.Unmarshaler https://play.golang.org/p/_JvAmJOBe5A
I don't think these structs are normally JSON serialized and unserialized as it has been almost a decade without json interfaces being implemented but I shall defer to the crypto experts @FiloSottile @agl and I shall retitle this issue as a feature request for json.Unmarshaler methods

Thanks for the very detailed, and frankly awesome, answer. I'm sure being able to unmarshal ecdsa keys, in addition to rsa, would not be a bad thing :), so I naturally welcome the proposal.
My use case is somewhat arbitrary (storing ACME/Let's Encrypt account details in json format), but I can't imagine this not being useful to a lot of people as ecdsa becomes more widespread.

I think implementing PublicKey.MarshalJSON and PublicKey.UnmarshalJSON so that they just use the name of the curve (for the common ones) would be nice. No need to actually encode the whole parameters.

Ah, also note that unmarshaling into CurveParams will force you into the generic implementation of the curve, which will be extremely slow. It's one of the issues of the Curve/CurveParams design, and why I wish we didn't have CurveParams, really.

I just heard of another user being confused by this. I think we should do this, by calling x509.MarshalPKIXPublicKey from PublicKey.MarshalJSON and x509.ParsePKIXPublicKey from PublicKey.UnmarshalJSON, and simply encoding the []byte like encoding/json always does, as base64.

JSON should not be privileged. It may make more sense to implement MarshalBinary and MarshalText.

Yeah, even better. encoding/json unfortunately doesn't know about MarshalBinary, which feels like the most appropriate of the two, so let's do MarshalText instead? (Or do we want to open a proposal for encoding/json to use BinaryMarshaler?)
I think we should use PEM for MarshalText at this point. The newlines are kind of ugly and the malleability is unfortunate but there is no obvious justification for picking plain base64 in MarshalText.

If this works out we might consider extending it to other PublicKey and maybe PrivateKey types, but I'm afraid we'll run into import loops with crypto/x509, where the encoding functions are.

Would love to see this implemented, especially since Lego, the most popular Let's Encrypt library for Go, uses ecdsa keys by default for ACME registration. These keys should be persisted and JSON can help this process for certain storage engines.

Moving this to Go1.16 as per @katiehockman’s reply to me in  https://go-review.googlesource.com/c/go/+/225638/4#message-256466dabb75abcbfd8db026060462d28978df14

This is unfortunate.
I'm not seeing a way to do this with the current APIs of crypto/x509 and crypto/ecdsa. To take marshaling as an example, in order to implement crypto/ecdsa.PublicKey.MarshalText, crypto/ecdsa would need to import crypto/x509.MarshalPKIXPublicKey, which would lead to a circular dependency. There are several layers of interwoven dependencies between the two packages, which make this more complicated. The only way I can see this working is if we could export something like crypto/ecdsa.MarshalPublicKey which can then be imported by crypto/x509. But even with that implementation (which would require a proposal for a new exported function), we would still need to copy a decent amount of code from crypto/x509 to encode it correctly.
I'm definitely open to suggestions from anyone else with familiarity of the codebase, but based on my investigation, we would need to copy ~200-250 lines of code from crypto/x509 into crypto/ecdsa with how the APIs are built today. I don't think the technical debt associated with that is worth the benefit of adding a TextMarshaler/TextUnmarshaler for ecdsa public and private keys.

@katiehockman perhaps we could use an internal package of sorts?

@odeke-em Can you explain the rationale for making an internal package for this? I'm not sure how that would help the reporter in this case.

I think the idea was to extract the functionality that would lead to cyclical imports into an internal package which is then shared by both packages.

For public key, it looks like we only need to save the point (X, Y), and the Curve type. If we know what curve is for the original private key, then we only need to save the public point into persistent storage.
To verify this idea,
	privKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
	if err != nil {
		panic(err)
	}
	pub := &privKey.PublicKey

	newPub := ecdsa.PublicKey{
		Curve: elliptic.P256(),
		X:     pub.X,
		Y:     pub.Y,
	}

	log.Printf("is equal: %v", newPub.Equal(pub))

	newPub2 := ecdsa.PublicKey{
		Curve: elliptic.P384(),
		X:     pub.X,
		Y:     pub.Y,
	}

	log.Printf("is equal 2: %v", newPub2.Equal(pub))

here's the result
2024/07/25 15:39:10 is equal: true
2024/07/25 15:39:10 is equal 2: false

The result shows we only need to save the point for public key, when we know the Curve. So here comes one solution
import (
	"crypto/ecdsa"
	"crypto/elliptic"
	"crypto/rand"
	"encoding/json"
	"log"
	"math/big"
)

type P256PublicKey struct {
	X, Y *big.Int
}

func (p *P256PublicKey) Key() *ecdsa.PublicKey {
	return &ecdsa.PublicKey{
		Curve: elliptic.P256(),
		X:     p.X,
		Y:     p.Y,
	}
}

func main() {
	privKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
	if err != nil {
		panic(err)
	}
	pub := &privKey.PublicKey

	key := P256PublicKey{
		X: pub.X,
		Y: pub.Y,
	}

	// Get bytes and save
	bz, err := json.Marshal(key)
	if err != nil {
		panic(err)
	}
	nk := P256PublicKey{}

	err = json.Unmarshal(bz, &nk)
	if err != nil {
		panic(err)
	}

	newPub := key.Key()

	log.Printf("is equal: %v", newPub.Equal(pub))
}

For internal pkg change, maybe we can add a curve Identifier() method, then for Marshaler, we save the curve identifier + Point(X,Y). For UnMarshaler, we can recognize the public's curve from curve identifier, and Point(X,Y).


The documentation page is down

The documentation link provided in README, https://docs.keycloakify.dev/, can't be reached

Yes. The page works now. Thank you very much, we really appreciate this library


Import 099772b127: Merge remote-tracking branch 'origin/master' (by Caitlyn)

This is an automated proposal to look at a commit made by Caitlyn and import it into Overte

Commit:
099772b1274ba1b3f4e5a2ed91a44cc72895a0f2

Author:
Caitlyn

Date:
Wed, 11 Mar 2020 22:16

Merge remote-tracking branch 'origin/master'

Stats:

Filename
Stats
Lines
Added
Removed
Lines in blame

hifi_qt.py

28
14
14
⚠ 0

1 files
-
28
14
14
0

To work on this, please assign the issue to yourself, then look at the commit and decide whether this would be a good addition to Overte.

If the commit is useful, tag it with "Tivoli: Keep", and keep it open until it's merged.
If the commit is not useful, tag it with "Tivoli: Discard", and close it.
If the commit is not useful right now, but might be later, tag it with "Tivoli: Maybe later", and close it.
If it's hard to decide, tag it with "Tivoli: Discuss", and keep it open.

Useful commits should be submitted as a PR against Overte. Tag this issue in PR, so that it's automatically closed once the PR is merged.
You can cherry-pick this issue with this command:
git cherry-pick 099772b1274ba1b3f4e5a2ed91a44cc72895a0f2

Qt changes


Feedback Page

@nonsoo24 you deleted the ReportAccident component from the routes.

@jothamardel and @Ose-Me  So sorry about that. I have resolved it and  push again

@nonsoo24 naming conventions of components use camelCase

@Ose-Me Noted. Although  we didn't agree on a naming convention at the onset


Quick Sticker

Description of the new feature / enhancement
I hope that when I copy a text or a picture file, I can use shortcut keys to quickly pin this information to the desktop, like a sticky note.
Scenario when this would be used?

Sticker
Reminder
Picture Excerpt

Supporting information
No response

neat idea but i don't see us doing this.  Sticky notes / always on top are existing solutions


skipped macOS notarization  reason=notarize options were not provided

I'm getting this output from electron-builder, and I'm not sure what it means, exactly.
Here's the relevant section of my package.json:
  "build": {
    "appId": "com.example.MyApplication",
    "afterSign": "electron/notarize.js",
    "asarUnpack": [ ... ],
    "publish": { ... },
    "files": [
      "build/**/*",
      "node_modules/**/*"
    ],
    "mac": {
      "category": "public.app-category.productivity",
      "icon": "build/icons/icon.icns",
      "hardenedRuntime": true,
      "gatekeeperAssess": false,
      "entitlements": "build/entitlements.mac.plist",
      "entitlementsInherit": "build/entitlements.mac.plist",
      "provisioningProfile": "embedded.provisionprofile"
    },
    "dmg": {
      "sign": false
    }
    ...
  },

The electron/notarize.js file looks like this:
require('dotenv').config();
const { notarize } = require('@electron/notarize');

const password = '@keychain:EE_PASSWORD';

exports.default = async function notarizing (context) {
  const { electronPlatformName, appOutDir } = context;
  if (electronPlatformName !== 'darwin') {
    return;
  }

  const appName = context.packager.appInfo.productFilename;

  return await notarize({
    appBundleId: 'com.example.MyApplication',
    appPath: `${appOutDir}/${appName}.app`,
    appleId: process.env.APPLE_ID,
    appleIdPassword: password,
    teamId: process.env.TEAM_ID
  });
};

So...what option did I not provide?

Facing the same issue

From my understanding you can feed a notarize object inside the mac config (check the electron builder docs, some params must be passed from env variables).
Using a customg js is an alternative.

I was facing the same error today and ended up with a SyntaxError:
SyntaxError: Unexpected token 'E', "Error: HTT"... is not valid JSON`

I then downgraded to v2.1.0 to see if I'd receive a better error message, and the message I got is:
Error: Failed to notarize via notarytool

Error: HTTP status code: 403. A required agreement is missing or has expired. This request requires an in-effect agreement that has not been signed or has expired. Ensure your team has signed the necessary legal agreements and that they are not

I'm not sure if this resolves your issue, but it might be related to the new agreement from the Apple Developer Program which you need to accept.

Getting the same message -- it seems to still be notarizing though, I think? The application opens as expected anyway. Possibly an incorrect log?

AFAIK if you are using electron-builder you can either:

use the "notarize" procedure handled by electron-builder via configuration (see docs) OR
use electron-notarize directly in the after-sign hook.

If you chose the latter (as I did) you'll get the "skipped macOS notarization" warning by electron-builder because you are skipping the built-in procedure (1).
Built-in procedure requires you to pass few arguments via env variables and others via config. I had problems debugging it so I used path 2.

AFAIK if you are using electron-builder you can either:

use the "notarize" procedure handled by electron-builder via configuration (see docs) OR
use electron-notarize directly in the after-sign hook.

If you chose the latter (as I did) you'll get the "skipped macOS notarization" warning by electron-builder because you are skipping the built-in procedure (1).
Built-in procedure requires you to pass few arguments via env variables and others via config. I had problems debugging it so I used path 2.

Thank you. Looks like I can safely ignore it then, possibly we can also set notarize: False which I expect will either hide the error or display something else a bit more clear.

Can someone please provide an example of notarize property in electron.manifest.json?

AFAIK if you are using electron-builder you can either:

use the "notarize" procedure handled by electron-builder via configuration (see docs) OR
use electron-notarize directly in the after-sign hook.

If you chose the latter (as I did) you'll get the "skipped macOS notarization" warning by electron-builder because you are skipping the built-in procedure (1).
Built-in procedure requires you to pass few arguments via env variables and others via config. I had problems debugging it so I used path 2.

Thank you. Looks like I can safely ignore it then, possibly we can also set notarize: False which I expect will either hide the error or display something else a bit more clear.

Yes! This does make sense now.
Running this command against my built app indicates that it is, indeed notarised:
spctl --assess -vv --type install MyApp.app

Closing this issue now.


Fix audit3.0 prototype

@Smotko Please merge this and update your PR with these latest changes. Let me know so I can check then your branch and merge to google:develop branch


goal progress bar appears on a category without a goal

I did previously have a goal on this category, but deleted it.
Other categories that I did the same thing to have no progress bar.

That's odd. Wonder if there's an isTombstone flag on the goals or something. Will have a quick poke and let you know what I find.

Just had a quick test of this, and it looks the code is reading through the budget and applying the progress bars once at start up. If you alter the goal, it looks like it won't update until you refresh.
If you refresh after deleting the goal, does the progress bar disappear? I noticed if you create a goal it doesn't appear until you refresh either at the moment.

I had actually deleted the goal several days earlier - and completely closed Chrome down.
I don't see it on the same category now - but I do have 2 other ones still showing the progress bar today that had their goals deleted same day.
I don't know if it's related, but other categories with goals are not showing a progress bar.

Hmmmm... Definitely not seeing this behaviour on my budget so I'm having trouble reproducing at the moment.
I'll keep an eye out. Meanwhile, if anyone else on the team sees this happening it'd be good to poke around the debugger a bit and figure out what is going on.

This sounds like it could be related to duplicate sub-category names. My most recent PR should take care it if that's the case.

@bluebird8203 Can you check if my last couple of PRs fixed this issue? Thanks

@dbaldon - I don't know how to add a feature that's not been fully released into the extension store.
If it's not too much trouble to walk me through it, i am willing though.
All my subcategory names are unique though - it seems to be related to the scheduled transactions instead.
I've included a screenshot of where I'm seeing this bug the most - none of these categories have goals - but all have scheduled transactions.

@bluebird8203 If you're at version 0.4.4 all my recent code changes are now available to you. There is however an outstanding issue/question with upcoming transactions and how they're calculated and displayed. See my question to @egens dated March 31.
The progress bar is based off of upcoming txns in the currently selected month. That's why Condo Fee (and others) don't have a progress bar. I suspect you still an upcoming txn for Mortgage in the current month. Can you provide a screen shot that includes the Activity and Available columns? Also, the amounts of upcoming txns would be helpful. Lastly, I'd like to know what you expect things to look like.

I am running version 0.4.4, & yes, I do have a mortgage payment due on April 16th.  The upcoming transactions are within a $2 of the amounts in the category names, other than Enmax (electricity, gas & water) which I save up for higher months.
I would expect that since I don't have a goal in any of these categories, that the progress bar in the budgeted column would be absent.

@bluebird8203 For the progress bars to not display on a category with upcoming txns but no goal, means changing a basic part of the feature. I'm ok with that (it's confusing to me for it to be there and then gone when the upcoming txn is entered in the register) but it needs to be discussed and I'd really like @egens to chime in as I believe he originally implemented this feature. @blargity how do we handle these types of things?

@dbaldon, I agree. The feature is specifically about showing goals progress. I think we should leave this here and if @egens gets some time to chime in I'd love to hear his point of view.
If that doesn't happen, I'd consider this a bug based on what the settings say and I'd leave it here for anyone to tackle.

My preference would be to remove the progress bar for upcoming txns altogether. I use the goal indicator feature which shows a 'U' for a category with upcoming txns within the selected month. Once the upcoming txn has been entered, the 'U' is no longer displayed. I like how that works and it is meaningful but not confusing. The coming anf going of the progress bar for upcoming txns is confusing.

Yup, makes sense to me.

As far as I can tell based on my debugging, upcoming transactions no longer result in a percentage bar appearing -- I suspect this feature has been fixed in the past, though this particular bug report wasn't updated. I'm going to consider this item complete, but feel free to open a new bug report if you are still having issues.


check_balance function to core/services.py

make check balance function for developers to easily use it without the pay_invoice
https://github.com/lnbits/lnbits-legend/blob/main/lnbits/core/services.py#L79

i'm using this one at the moment.
    # check if we can pay the invoice before we create the actual swap on boltz
    amount_msat = data.amount * 1000
    fee_reserve_msat = fee_reserve(amount_msat)
    wallet = await get_wallet(data.wallet)
    assert wallet
    if wallet.balance_msat - fee_reserve_msat < amount_msat:
        raise HTTPException(
            status_code=HTTPStatus.METHOD_NOT_ALLOWED, detail="Insufficient balance."
        )

even a function as small as this would be useful in some situations, what do you think? i think extension developers should not checks for balances themselves, because it is easy to miss the fee_reserve shenanigans.


Dh gdpr contract update

It seems strange to me that the acronym "LED" isn't defined until near the bottom.  Usually you define an acronym in full when it's first used?

@TheDoubleK https://github.com/alphagov/digitalmarketplace-frameworks/blob/ac57d69e60dded48719a3edcf2268263a2219956/frameworks/g-cloud-9/messages/contract_variation_1.yml#L192

@TheDoubleK @samuelhwilliams @idavidmcdonald - all comments addressed

Yep I know it's defined - but on line 197, but it's already been used on lines 103 and 161.


Optional cosigs

Based on #23
Closes #18

I thought making cosigners optional make the vec in config empty.


Error in server/standalone mode

Lambda invoke error for Java 17 runtime.
Steps:
Error: entrypoint requires the handler name to be the first argument
export MOTO_DOCKER_LAMBDA_IMAGE="amazon/aws-lambda-java"
then started moto-server -H <IP_ADDRESS>
Created a lambda function using aws lambda create-function.. and then invoked using aws lambda invoke which results in error " entrypoint requires the handler name to be the first argument"

Hi @tumkurrunner, can you share a fully reproducible example?
Does your code run successfully against AWS?

Sorted now it was problem with my python version 3.6


Enable Testing for Matter 1.2

It looks like the first release candidate for Matter 1.2 was posted about a month ago ( https://github.com/project-chip/connectedhomeip/releases/tag/SVE_23_09%2Frc1 ) with further updates to the main branch. Is it possible to add a "testing" version of the Matter Server to HomeAssistant to begin testing this?
I'm hoping to begin work on implementing the Matter Mode Select device type on HomeAssistant, but am waiting for this next version before I begin that.

Hi! We're about to bump the main branch to Matter 1.2 and then we'll release a BETA add-on of the Matter server in HA, as well as a 1.2 branch in HA core. I'll let you know once everything is in place.

Thank you. I look forward to it.

@marcelveldt I see that you did an update of the matter server to a 4.0 beta implementing Matter 1.2.  I don't see an option in HomeAssistant to update the current Matter server to the new beta 4.0. Is there something I need to do, or is this still in a "wait a bit" state and I'll eventually see the prompt automatically?  Thank you!

Please wait for a couple of days as we are putting the blocks in place. We're going to launch the 1.2 based server as dev/beta add-on only for development. I'll ping you on monday when we're ready.

Thank you! I'll close this comment and just watch for the update.

@jvmahon
We've released a BETA add-on of the Matter server (as well as docker image) based on the 1.2 RC.
It is backwards compatible with the current state of the HA integration although I do not yet recommend using it for production as it might still contain unexpected issues, for now consider it for development only.
If you like to start working on the Matter Mode Select device type, you can spin up the beta matter server using the development add-on or run the docker container yourself. The development add-on repository is hosted here: https://github.com/home-assistant/addons-development
For the Home Assistant side (where the implementation of the device type happens), I've created a branch called "matter-1.2-dev-branch". Any Matter 1.2 related PR's can be targeted at that branch. Once Matter 1.2 is released, we'll merge that branch to HA dev.
Just let me know if you have any further questions and thanks in advance for helping out with adding a new device type support!

Just let me know if you have any further questions and thanks in advance for helping out with adding a new device type support!

Unfortunately, it looks like my "real" job will keep me quite busy for the next few months. Hopefully, someone else may take this on.
I think there is also a separate issue that may need to be addressed which is how to handle a hierarchy of endpoints which could be created if the Aggregator endpoint is present.  I think that would be needed for a complex device like this: https://www.brilliant.tech/products/brilliant-control-four-switch-panel?variant=43531135353026  particularly if you want to associate different Mode Select inputs with different ones of the switching inputs. I this has large implications on user interface and how to present a device.  Not sure if this has been given any thought, but I think this may need to be considered at an early stage before HomeAssistant gets too far down the line on the Matter implementation.  I'll try to post a bit more about this at a later date.


issue

React-jss was imported into the project as a dependency to allow dynamic components. We not using it anymore so please remove:
DynamicComponent
React-jss from package.json
file included in the index.js

it's still in the library ... reopening the issue

closed as duplicated


pgoapi and optimization [v0.4 candidate?]

Switched to recent version of pgoapi, which simplified code A LOT. Got rid of all API-related code from the worker, and I think that also means that backend (at least worker.py) has been detached from original PokemonGo-Map and its not-so-good code.
That comes with better error handling - workers should be able to restart themselves if they detect something is wrong.
TODO:

[x] application cache - will make database used less often (at the cost of memory)
[x] worker starts from its own coordinates and expands radius of its work
[x] handle API errors by restarting worker
[x] make overseer (spawn_workers) check up on them every now and then, and poke workers that don't see any Pokemon (i.e. kill them in cold blood)
[x] make number of cycles per worker run (before restarting it) configurable
[x] wrap whole run() with giant try..except in case something goes HORRIBLY wrong

I created pull request against my own repo, yay~

I've been trying this branch because of the worker restart stuff you added and it's been working smoothly so far.  I did have to edit two things in db.py though.
In the clean_expired function the value of the items are floats so it should be if value < time.time() - 120: instead of value.clean_expired (will throw exception otherwise).
After I fixed that it seems to be running fine but it will sometimes cause an exception RuntimeError: dictionary changed size during iteration I'm guessing due to this: https://docs.python.org/2.7/library/stdtypes.html#dict.iteritems
I switched self.store.interItems() to self.store.items() and it seems to be working but I'm not familiar enough with py to know if that is the best solution.
Hope this helps.

Been testing this for the last few hours without issue, are you waiting to add something additional before the merge?

After running it for a few hours seems pretty stable, so I'm merging it. There are still issues with workers freezing (probably some exception from the API), but at least there's a system in place for restarting them.


webpack.DefinePlugin is not working on next.config.js

next.config.js

pages/index.js

result

Does it mean I lost something @@?

Please see https://github.com/zeit/next.js/tree/v3-beta/examples/with-universal-configuration

I wanna submit that this issue gets reopened.
While you have solved the underlining issue for @hank7444 there may be other use-cases and workflows that still depend on DefinePlugin.
All to say I believe the issue still stands that the variables defined in webpack.DefinePlugin do not exist in the bundled files.

Completely agree, this is still not possible. ReferenceError is always thrown. @timneutkens your solution has caveats as says the readme

why did you close this issue,what's the solution? i also met this problem too recently!

what's the solution? i also met this problem too recently! @timneutkens

it works for me
const webpack = require('webpack'); // eslint-disable-line
const FRONTEND_ENV_KEYS = [
	'NODE_ENV',
	'IS_STATIC',
	'API_URL',
	'CONTENTFUL_SPACE',
	'CONTENTFUL_ACCESS_TOKEN'
];

const envPlugin = FRONTEND_ENV_KEYS.reduce(
	(result, key) =>
		Object.assign({}, result, {
			[`process.env.${key}`]: JSON.stringify(process.env[key])
		}),
	{}
);

module.exports = {
	webpack(cfg) {
		// make selected env vars avail on client
		cfg.plugins.push(new webpack.DefinePlugin(envPlugin));
		return cfg;
	}
	// exportPathMap: require('./next.exportPathMap').exportPathMap
};

^ not sure why everyone downvoted this. it works fine and it's something I've been using for at least a year now.


feat: HTTPS server skeleton

Description
This change introduces some helper functions and initialization code to have a barebones https server up with an option of self signed or external private key and certificates. The fully functioning command line webserver will be split into 2 PRs.
This PR is introducing:

The setup functionality for a net/http webserver,
The logic to load either a self signed or a user provided certificate to the webserver,
The logic to generate a root CA and a self signed certificate from that root CA,
Tests to validate the behavour of all of these features.

The command line for GoCert accepts 3 optional arguments:

--cert and --key, if provided, are loaded directly onto the HTTPS server. In the event that they aren't, self signed certificates are generated and used instead.
--db, if provided, will load the database from the given path. By default, this file path is ./certs.db.

The next PR will introduce:

Reading certificates from a file instead of passing their strings directly,
Not yet determined mechanism to shutdown the server gracefully,
Tests for the main function utilizing the aforementioned mechanism,
Example functions for all of the new modules introduced.

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[x] I have added tests that validate the behaviour of the software
[x] I validated that new and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

I've tried to be consistent with capitalization in errors and specifying RSA private key instead of just private key, but I may have slipped somewhere. Please let me know if you see any inconsistencies.


Implement CoreFloat trait

This is a subset of the Float trait, but works with no_std.
Some code was simplified by using CoreFloat.

I think I addressed all your comments.

Looks great, thanks!
bors r+

@vks I just noticed that this doesn't require NumCast like Float does.  Was that intentional?

Yes, I did not need it. Is there a reason to require it?
On Thu, Feb 8, 2018, 00:44 Josh Stone<EMAIL_ADDRESS>wrote:

@vks https://github.com/vks I just noticed that this doesn't require
NumCast like Float does. Was that intentional?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rust-num/num-traits/pull/32#issuecomment-363950921,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACCtDRlamQQl55Ki6otN-CVVtmMJeUvks5tSjVqgaJpZM4R3nbo
.

It's a benefit for those who use the trait too. It was there long before
Float itself needed it.
I think I'm going to add a few more methods from Float that are feasible
with no_std, before it's published and becomes a breaking change. I can add
NumCast as I do that...


Convert ui,v3ext,verify_extra_test

verify_extra_test still failing :(
But it's late and I'm tired, so pushing this out as a WIP.

Fixed the bug, ready for "real" review.

updated commit pushed

thanks!


Make entire item clickable within UI dropdown for Settings

User cannot click on the highlighted item for Tags in the screenshot below

User has to click specifically on the Tags text

(This is from Sandbox environment)

@shahsank3t @darth-coder00 @Sachin-chaurasiya

@mithmatt thanks for filing the ticket.

assign this to me

assign this to me

@ShaileshParmar11 assigned to you.


Cannot see text at bottom of screen on Mobile

I'm on Android and whenever I start typing on an encrypted note and reach towards the bottom, the text gets covered up by Obsidian's bottom toolbar. It won't let me scroll down more unless I decrypt the note.
Any way to fix this?

Hi @Sodapapi,
I think this is the same issue as #124, it will be fixed in the next release (most likely next weekend)


Sample dev 2408

relax sample_no and plate_id to allow strings for diagnostic purposes, these samples will not validate on upload to S3/API

don't merge directly into main


Error: pq: schema "dbms_alert" does not exist

> docker run -p 8082:8081 -e DATABASE_URL='postgres://xxxxx:xxxxxx@xxxxx.xxxxx.com:5444/xxxxx?sslmode=disable' sosedoff/pgweb
Pgweb v0.11.6 (git: 3e4e9c30c947ce1384c49e4257c9a3cc9dc97876) (go: go1.13.7)
Connecting to server...
Connected to
Checking database objects...
Error: pq: schema "dbms_alert" does not exist

When I launch without DATABASE_URL and then login to the same db
http://localhost:8081/api/objects responds with:
{"error":"pq: schema \"dbms_alert\" does not exist","status":400}

My other database tool is Intellij IDEA.
I don't see dbms_alert in any part of the db object browser in IDEA.

No idea why, maybe some permissions error? You can see the queries used in API endpoints here: https://github.com/sosedoff/pgweb/blob/master/pkg/statements/sql.go#L130
Can you run the query and report back what you find?

[2020-08-03 21:04:39] [3F000] ERROR: schema "dbms_alert" does not exist

select * from pg_catalog.pg_namespace where nspname = 'dbms_alert';
returns one row

select count(*) from pg_catalog.pg_namespace; returns 38
but IDEA only shows me one. I am assuming its the one schema the user actually has permissions to see.

select has_schema_privilege('dbms_alert', 'USAGE');
throws error
[3F000] ERROR: schema "dbms_alert" does not exist

looks like something is up with your permissions and i've not seen it before. what pg service are you using?

https://github.com/sosedoff/pgweb/issues/222 is related
IDEA is able to ignore this in its db object browser
This is an enterprise postgres service managed by a whole other team.
How do I find out what pg service I am using?

i don't know. you can check the pg version in IDEA somehow but i doubt it would have anything useful in the version string.
or you can guess from the host dns name.

SELECT version();
returns
EnterpriseDB <IP_ADDRESS> on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23), 64-bit

My recommendation is to try to come up with a way to gracefully interpret a 3F000 error on has_schema_privilege as false.
Or maybe something along these lines: https://github.com/metabase/metabase/issues/10139

I see now that this is likely an issue exclusive to EnterpriseDB and not to Postgres itself. Apparently our "Postgres" service is more than/less than just plain old Postgres.
sigh

Would be nice if pgweb could work around this so that EnterpriseDB would be handled despite such a small surface wrinkle, but I guess thats up to you guys or anyone who cared to fork pgweb for that purpose.

i mean if you have a workaround - feel free to send PR and i can incorporate the changes if they're not interfering with regular postgres stuff. otherwise i dont have a lot of free to experiment with this integration (not i have access to enterprisedb)

No capacity to work/explore this angle, unfortunately. Feel free to reopen in this is still relevant to you.


Login with session/Csrf, not by username/pass

How can i login without username/pass.
Can we just use Csrf to login?
I don't want to save users' password.
Thank u :)

yes, check this issue
the first time try to login, after the cookie file is created, comment login process and load the cookie now on


Create and manipulate posts

Body:
User Stories

As a user, I can create a post

As a user, I can retrieve all of my posts

As a user, I can retrieve a post by id

As a user, I can update the title of a post

As a user, I can delete a post

Completed.


How to get file stream on alasql

Currently i am using XLSXML() to export json to excel. However it will directly download the file. What i need is to get the file stream before it is downloaded to local and upload the file to server.
Is there anyway to do that?

The file stream ?!? are you talking about node? browser? some native setup?

please reopen when more info provided


question: Multiple location requests at once

Why do I receive on my server about 20 locations all at once? I was testing the plugin with one device and received always circa 20 requests from that only device.
Is that a configuration issue?

FYI Android has been completely refactored

No more in-plugin HTTP -- plugin now executes your Javascript callback, just like iOS
Significantly improved battery performance

http://christocracy.github.io/cordova-background-geolocation/


Block IPs speed

Makes two small improvements to BlockedIpsController:

A more efficient sort for lists of ip addrs
A more readable, and marginally more efficient test whether "nnn" is between 0 and 255.

I'm using the admin/blocked_ips interface a lot during NEMF. It (the interface) is really slow. Maybe this will help a bit.

coverage: 93.472%. remained the same
when pulling a81e1e95a3d9e3d71795b82ae80a3f425fbef940 on jdc-sort-by_ip
into fc1ee0c4cbfea0a515aaf222ad97b70a1b9d8b0a on main.


Destination array was not long enough.Check destIndex and length, and the array's lower bounds.

Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Last 7 Keys:
Enter
c d Backspace Backspace Backspace d
Exception:
System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender()
at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg)    at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Environment data
PS version: 5.1.16299.251
PSReadline version: 1.2
os: 10.0.16299.15 (WinBuild.160101.0800)
PS file version: 10.0.16299.15 (WinBuild.160101.0800)
Steps to reproduce or exception report
I just created a new tab using ConEmu and moved it to a new window, I cannot repro it again, still reporting it just in case, the call stack helps.

This is a duplicate and has been reported many times, e.g. #481.
This is fixed in 2.0.0-beta1.


Implement Map.setMotionLockMode in Leaflet

This will be need in order for (#13) to work.

Testing Procedure:
All options under Map.setMotionLockMode() should now work in Leaflet. When testing the various options make sure that the following items listed below are accounted for:

FeatureInteraction AND MapInteraction events are still firing when map is locked.
MapViewChange events should still fire in any lock state where the map has the ability to move and movement has occurred.
When the map is set to NO MOTION an error should be generated if a view change of ANY kind occurs from the API (Validator). This error should show in the console window.
Any lock state with the exception of NO MOTION should respond to API (Validator) view change requests.
When there are graphics on the screen and the map is set to -> SMART MOTION ensure that when panning the graphics that enter the viewing area update as necessary or at least don't change in an unexpected way.
Make sure everything all options work after resizing the map window .
Make sure the zoom button in the upper right corner disappears when any lock option that disables zoom is enabled. Also make sure the zoom button works whenever it is present on the screen.

Reintegrate


⚠ Bofrost.es has degraded performance

In c09c615, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1522 ms

Resolved: Bofrost.es performance has improved in de24ddc after 10 minutes.


Separate section in readme for cli flags

Currently the readme has the output from stern --help in it. While this can be nice to immediately see it also forces us to always update the readme if things change and it'll eventually likely be out of date or incorrect.

This doesn't solve the problem though, will it? Think it might be better to just have descriptions and defaults in the application itself. But :lgtm: if you want to merge it in.

This solves the problem of the readme for instance displaying the version number. If the flags change the readme has to be updated but at least that shouldn't be necessary for other small tweaks (such as https://github.com/wercker/stern/pull/13)


MOON-161: Styling for outlined Dropdown variant

JIRA

https://jira.jahia.org/browse/MOON-161
Description
Adds styling for new Dropdown variant, outlined.

Futur improvement: we can add a "playground" with all props available because we don't have examples for the variant outlined with an icon, and in disabled states.


CatalogGrid's onItemClick handler should pass product, so tracking is possible

Type: minor
Describe the bug
CatalogGrid's onItemClick handler should pass product, so that tracking is possible in the starterkit.

:tada: This issue has been resolved in version 0.30.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Severe parsing errors?

I'm observing some strange behaviors when using Django 1.8 RC1. They look very much like parsing errors:

Outputting a variable that doesn't actually exist in the template's context. E.g. just writing {{ x }}, while "x" does not exist, should output nothing - or None or it should result in an error. However, it simply outputs the whole fragment "{{ x }}" as string. Same for {{ abc }} results in an output of "{{ abc }}", when there's no variable names "abc".

Probably related: {{ request.GET.var|e }} should output the escaped value of the request param "var". Yet, when "var" does not exist, the output should be empty or None - or error. However, this prints actually the error message that such a key does not exist in the query dict. That's very inconvenient and probably a but.

{{ request.GET.var or request.POST.var }} should either output the GET or POST param "var", or if neither exists, the output should be empty. However, if neither exists, we get to see the error message mentioned above.

There are workarounds, but it would be really great if that could be fixed. It was working fine with Django 1.7 and the previous version of django_jinja. Using workarounds makes conversions from Django's template engine to django_jinja very hard.
Thanks again for looking into this!

Hi Andrey, can you point me into the right direction on what might causing this? So I can dig into it myself ... I think that's a really important issue.

hi @SimonSteinberger
This is maybe is caused with "undefined" settings. http://jinja.pocoo.org/docs/dev/api/#undefined-types
Since django-jinja 1.3 the DebugUndefined is used when django DEBUG settings is on. It is only dor debug purposes.

Possibly, yes. Do you see a way to avoid the issues above? As it is, it's really problematic ...

Overwritting the "undefined" parameter with a concrete class that you want to use, o put django DEBUG to False.

Genius :-)) That's it - thanks!!
from jinja2 import Undefined
class NotUndefined(Undefined):
def unicode(self):
return ''
TEMPLATES = [{
'BACKEND': 'django_jinja.backend.Jinja2',
'OPTIONS': {
'match_extension': '.jinja',
'undefined': NotUndefined,
...


v3.3.0 - URL restoration on canceled popstate transitions

Hello,
I believe there is an issue with URL restoration on canceled popstate transitions. It works perfectly unless we cancel the first transition after a page refresh with an existing browser history.
When such case happens, the transition is blocked, the app route does not update, but the navigator url bar displays the previous location.

My use case is to block transitions with listenBefore when a popup is open, to close the popup instead of transitioning.
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'

// ...
const store = createStore(initialState, browserHistory)
const history = syncHistoryWithStore(browserHistory, store)
history.listenBefore(popupTransitionListener(store))

const popupTransitionListener = (store) => (location) => {
    const shouldClosePopup = test(store)
    // Close popup if open

    const shouldBlock= shouldClosePopup && location.action === 'POP'
    if (shouldBlock) return false
  }
}

Latest version of Chrome on Windows 10
react-router: v3.0.2
history: v3.3.0
react-router-redux: v4.0.8

Hi @amangeot, thanks for reporting the issue. Unfortunately there were some issues with the 3.x releases. We don't intend to fix them in the 3.x branch, but we haven't had any similar issues with 4.x. Please update as soon as you are able. Thanks.


[Bug - Edge Addons] 1.1 Publish API Auth Error

Describe the bug
I'm trying to migrate my project to use the new authentication setup for publishing extensions, v1.1, as described here: https://learn.microsoft.com/en-us/microsoft-edge/extensions-chromium/publish/api/using-addons-api?tabs=v1-1#overview-of-using-the-update-rest-api
However, when I attempt to upload a new ZIP using the POST /v1/products/$productID/submissions/draft/package endpoint, I get a 401 error message:
Request: https://api.addons.microsoftedge.microsoft.com/v1/products/<my-product-id>/submissions/draft/package
Response: { "statusCode": 401, "message": "Invalid Azure AD JWT" }

I've tried creating new tokens, using both the old 1.0 client ID and the new 1.1 client ID (that was generated when enabling the v1.1 API), but nothing worked. I can confirm that the product ID in the URL is correct as well, if I just replace the headers with the old 1.0 headers, everything works fine. So it's got to be something to do with my headers.
Here they are, for reference:
Authorization: ApiKey <any-of-my-api-keys>
X-Client-ID: <new-client-id>
Content-Type: application/zip

All my API keys contain a $ or ! character, which sometimes requires escaping, but I've logged the values being sent, and they have been escaped properly.
To Reproduce
$ export PRODUCT_ID='...'
$ export API_KEY='...'
$ export CLIENT_ID='...'
$ curl -v -X POST https://api.addons.microsoftedge.microsoft.com/v1/products/$PRODUCT_ID/submissions/draft/package \
    -H "Authorization: ApiKey $API_KEY" \
    -H "X-Client-ID: $CLIENT_ID" \
    -T extension.zip
*   Trying <IP_ADDRESS>:443...
* Connected to api.addons.microsoftedge.microsoft.com (<IP_ADDRESS>) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (OUT), TLS handshake, Client hello (1):
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
*  subject: C=US; ST=WA; L=Redmond; O=Microsoft Corporation; CN=api.addons.microsoftedge.microsoft.com
*  start date: Oct  2 13:38:39 2024 GMT
*  expire date: Sep 27 13:38:39 2025 GMT
*  subjectAltName: host "api.addons.microsoftedge.microsoft.com" matched cert's "api.addons.microsoftedge.microsoft.com"
*  issuer: C=US; O=Microsoft Corporation; CN=Microsoft Azure RSA TLS Issuing CA 08
*  SSL certificate verify ok.
* using HTTP/1.x
> POST /v1/products/$PRODUCT_ID/submissions/draft/package HTTP/1.1
> Host: api.addons.microsoftedge.microsoft.com
> User-Agent: curl/8.4.0
> Accept: */*
> Authorization: ApiKey $API_KEY
> X-Client-ID: $CLIENT_ID
> Content-Length: 418
>
* We are completely uploaded and fine
< HTTP/1.1 401 Unauthorized
< Content-Length: 56
< Content-Type: application/json
< Request-Context: appId=cid-v1:23f44029-850d-47f4-8c9f-200d01ff4866
< Date: Thu, 05 Dec 2024 14:27:39 GMT
<
* Connection #0 to host api.addons.microsoftedge.microsoft.com left intact
{ "statusCode": 401, "message": "Invalid Azure AD JWT" }

Expected behavior
ZIP is uploaded successfully.
Screenshots
N/A
Desktop (please complete the following information):

OS: MacOS
Browser: N/A (curl request)
Version: Sonoma 14.2.1

Additional context
Obviously, not gonna share any real values here, but that will probably make this difficult to investigate.
Created this issue after sending an email and being asked to create an issue here for tracking purposes.

Hi @aklinker1, thank you for contacting us. We have already noted your query, and our team is on it. We will update you once we get an update.

@aklinker1 Header for client id is X-ClientID In your list of headers X-Client-ID is given. Can you please correct the same and try again

🤦 Thanks, that did it.


CMOV* support to unknown value contracts

Before CMOV* executes we try to modify tainted bits in the flag register to make the cmov happen.
It ended up being a bunch of if/else to set the flags that enable the conditional move.
Code is not really readable but it's the only way I could think it.

@van-ema  same as with the other PR - don't worry about the merge conflicts, I'll take care of them

The PR is lagging to much behind the main branch by now. Closing


[MB-5252] Display edit button on Step component

Description
Display the Edit button on the Home screen Profile step (at all times) and Orders step (pre-submission only).
Reviewer Notes
Note: there is currently a bug related to editing Orders in the API. This is not addressed in this PR. So when testing, verify you are able to access the Edit Orders form, but be aware that changing Orders information in the form will not work.
Setup
make server_run
make client_run

Verify:

User who has not submitted their move should be able to edit both their Profiles and Orders after initially adding them
User who has submitted their move should still be able to edit Profile, but not Orders

Code Review Verification Steps

[ ] If the change is risky, it has been tested in experimental before merging.
[ ] Code follows the guidelines for Logging
[ ] The requirements listed in
Querying the Database Safely
have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

Screenshots

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

Messages

:book:
:link: MB-5252

  Generated by :no_entry_sign: dangerJS against bf5dcf4d381f86a8599221d6e9e675968f0f0fc2

I found some buggy behavior where, if I have a user with profile and orders, and I edit the profile from the home link, when I return, the Add Orders button is visible and enabled and there's no edit button.

I found some buggy behavior where, if I have a user with profile and orders, and I edit the profile from the home link, when I return, the Add Orders button is visible and enabled and there's no edit button.
Otherwise, code looks good and the other behavior was as expected.

Ok I looked into this and determined the reason is because the uploaded_orders returned by the PATCH service member call is returning an empty data set, even though the service member has uploaded orders documents. I created a bug ticket for this issue: https://dp3.atlassian.net/browse/MB-5529
We can resolve the UX by re-fetching orders data on the Home screen on mount, but this is a bandaid and I'm worried it would make the underlying bug less visible when it seems like an important thing to fix.

I found some buggy behavior where, if I have a user with profile and orders, and I edit the profile from the home link, when I return, the Add Orders button is visible and enabled and there's no edit button.
Otherwise, code looks good and the other behavior was as expected.

Ok I looked into this and determined the reason is because the uploaded_orders returned by the PATCH service member call is returning an empty data set, even though the service member has uploaded orders documents. I created a bug ticket for this issue: https://dp3.atlassian.net/browse/MB-5529
We can resolve the UX by re-fetching orders data on the Home screen on mount, but this is a bandaid and I'm worried it would make the underlying bug less visible when it seems like an important thing to fix. @kimallen what do you think?

Moving it to a bug sounds good to me, bandaid is unnecessary.


STM32WB BLE HCI interface problem.

I'm try to use BLE controller stack in STM32WB55 to comunicate with Zephyr BLE host stack with no success.
In network procesor M0+ run ST propriatery controller stack "stm32wb5x_BLE_Stack_full_fw.bin" V1.13.3.
In application processor M4 I use sample application "boards-stm32-power_mgmt-stm32wb_ble-sample".
Compiling and flashing goes well. But when I start program, it stops after 10 second with error when waiting semaphore:
ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:309
k_sem_take failed with err -11
Is there any support team for STM32 and their BLE stack?

Check if you have turned on the proprietary BLE stack(do not check the version or FUS after flashing the ble stack). Also, check with only the HCI stack version. I had similar issues and I addressed them in this comment. It stops because of lack of executing the HCI commands.

I'm got an answer from ST support. They said, that they use "stm32wb5x_BLE_HCILayer_extended_fw.bin" firmware V1.13.3. I can confirm that this firmware works with Zephyr 3.1 HCI interface. Other firmawares does not work.
I will be in touch with ST support to clarify how to use other firmwares. I'm also interested to use BLE and Thread together.
This is list of all firmwares:
stm32wb5x_BLE_HCILayer_extended_fw.bin
stm32wb5x_BLE_HCILayer_fw.bin
stm32wb5x_BLE_HCI_AdvScan_fw.bin
stm32wb5x_BLE_LLD_fw.bin
stm32wb5x_BLE_Mac_802_15_4_fw.bin
stm32wb5x_BLE_Stack_basic_fw.bin
stm32wb5x_BLE_Stack_full_extended_fw.bin
stm32wb5x_BLE_Stack_full_fw.bin
stm32wb5x_BLE_Stack_light_fw.bin
stm32wb5x_BLE_Thread_static_fw.bin
stm32wb5x_BLE_Zigbee_FFD_dynamic_fw.bin
stm32wb5x_BLE_Zigbee_FFD_static_fw.bin
stm32wb5x_BLE_Zigbee_RFD_dynamic_fw.bin
stm32wb5x_BLE_Zigbee_RFD_static_fw.bin
stm32wb5x_Mac_802_15_4_fw.bin
stm32wb5x_Phy_802_15_4_fw.bin
stm32wb5x_Thread_FTD_fw.bin
stm32wb5x_Thread_MTD_fw.bin
stm32wb5x_Thread_RCP_fw.bin
stm32wb5x_Zigbee_FFD_fw.bin
stm32wb5x_Zigbee_RFD_fw.bin

I can confirm that this firmware works with Zephyr 3.1 HCI interface.

Closing

Note:
Since V13.2.0, 2 versions of the fw are compatible with Zephyr:

stm32wb5x_BLE_HCILayer_fw.bin
stm32wb5x_BLE_HCILayer_extended_fw.bin
stm32wb5x_BLE_HCI_AdvScan_fw.bin

For more information on these binaries, get release notes from STM32CubeWB github page


Update headless example / add feature docs

Fixes #464

I also went ahead and added docs for two newer features.

Looks good to me!


Unable to run hybrid bar after building it locally

P.S. I am new to building packages so please let me know if I am doing something incorrectly
OS: Nobara Linux 37
Kernel: 6.1.6-203.fsync.fc37.x86_64
DE: Hyprland
GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q
AMD Ryzen 9 5900HS with Radeon Graphics
I am hitting this error after I successfully build Hybrid Bar when I try to run it ./hybrid-bar from the command line.
'thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/config.rs:11:42 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Aborted (core dumped)
I have copied the example config.json and style.css to ~/.config/HybridBar.
output of  RUST_BACKTRACE=1 ./hybrid-bar
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/config.rs:11:42 stack backtrace: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. Aborted (core dumped)
Any advice on how to get hybrid-bar working on my fedora-based system?

Commit 9c59fdde06312c6ea0dfd56efd2451ab86fbead4 should fix it, test and see.

Fixed!
Thanks for the quick response.

No problems


Scroll View - Make sure pagination works as expected

A Test for correct pagination scroll should be added as part of ScrollingObjectCollection graduation.
This issue is part of #6637.

Fixed by #8209


manage multi Linux subsystem

I have install Ubuntu 2022.04 subsystem on Win11,then I want also install another Linux  subsystem :CentOS Linux release 7.9.2009 (Core).when I cd into \\wsl.localhost\CentOS7 ,and wsl, it throw such error :
PS Microsoft.PowerShell.Core\FileSystem::\wsl.localhost\CentOS7\home> wsl
<3>WSL (40003) ERROR: CreateProcessParseCommon:789: Failed to translate \wsl.localhost\CentOS7\home
because my C disk space is nearly full,but there is much space available in D disk, so How to set the default installation storage to D drive instead of C drive。
Thanks for your valuable advice!

/dupe #10344


Get vertices corresponding to overlay points

From brain.data['surfaces'][0].actor.actors[0].get()['mapper'].input.points I get the surface vertices of length 23844.
How to get the vertex coordinate for my overlay of size 163842?

Got it brain.geo['lh'].coords


extension zopeneditor from IBM has conflicting functionality

Development environment used

Z Open Editor version:
Editor Platform

[x] Visual Studio Code
[ ] Red Hat CodeReady Workspaces
[ ] Eclipse Che
[ ] Standalone Theia

Editor Platform Version:
Operating System (on which VS Code runs such as Windows 10 2004, otherwise name and version of platform such as OpenShift v4.3):
Java Version (when using VS Code or Theia, execute java -version and paste the details here):
[ ] Related to RSE API?

RSE API Plugin version:
Zowe CLI version:
Node.js version:

Logs attached (see here how to get them): yes/no

Problem Description
Detailed steps for reproducing the problem:

First step

Observed behavior

Expected behavior

@izzyizorizzyaint it looks like you did not finish writing this issue? I will close it for now. Feel free to reopen it with more content.


Add ability to validate schema compatibility without registering

Currently when editing a schema, you can only save or cancel. It would be good if you can check / validate compatibility without actually saving (e.g. a validate button), like wise it would be good if this was exposed feature via rest also.

REST API exists to check compatibility with earlier versions of the given schema name.
For ex:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '<schema-payload>' 'http://localhost:9090/api/v1/schemaregistry/schemas/<schema-name>/compatibility'

+1 to have validate on UI.

@michaelandrepearce @satishd
Currently, on clicking save, we are showing an error message if compatibility fails.

I don't see any use of adding another button "validate" and asking user to validate first and then save when the same things are happening on single click(Save button) right now.
cc: @harshach

IMO, UI should be showing proper error message than just the hardcoded message.
For example: in the above image, backend does return an error message saying "Reader schema missing default value for field: firstname" which seems to be meaningful and appropriate but we are not showing on UI.
@satishwaghela can you please make this error message change and raise a PR.

@shahsank3t I guess the enhancement asked here is not to remove save and add validate then save but having UI to check whether a specific schema is compatible with earlier versions of the schema or not without adding it. This allows users to update schema  and in between they can check whether current changes are valid or not.

@satishd

This allows users to update schema and in between they can check whether current changes are valid or not.

Ah ok. Didn't think about such scenario. I was under impression that user might add full schema and just save. But this is completely valid and good thing to have when user will add/remove fields, validate and then go further adding/removing other fields before saving the actual schema.

Raised PR https://github.com/hortonworks/registry/pull/178 for UI enhancement


Remove references to window

Remove references to window in node-web-compat-web.ts This is a fix for the next.js edge runtime

Issue #, if available:
108
Description of changes:
As suggested in the issue thread, references to window were removed. window.setTimeout.bind(window) was replaced with setTimeout.bind(undefined). This fixed the errors that were previously experienced.
I suggest to add one or more tests that cover support for next.js edge runtime, since this package is an amazing fit for middleware.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

LGTM

I suggest to add one or more tests that cover support for next.js edge runtime

Do you have a suggestion? How can we use the Next edge runtime in tests?
It would be nice. OTOH it's not a blocker to me. What do you think @hakanson ?

And THANKS for the PR :)

You could create a barebones next.js project with authentication middleware and run Cypress tests like with the other frameworks. The server that runs locally on my computer with next start / next dev acts the same way as the production environment on Vercel when it comes to middleware (in this particular situation at least).  That being said, I am not an experienced tester by any means. Thank you!

Note: I had added window in #80 because of this error

"Illegal invocation" error happening in SimplePenaltyBox.registerFailedAttempt in browser, likely caused by setTimeout binding - updated to window.setTimeout.bind(window)

Note: I had added window in #80 because of this error

"Illegal invocation" error happening in SimplePenaltyBox.registerFailedAttempt in browser, likely caused by setTimeout binding - updated to window.setTimeout.bind(window)

Ok, I think we are covered for that as setTimeout.bind(undefined) will have the same end result in the browser. Before we didn't do the .bind() which led to an error as the function was called like this nodeWebCompat.setTimeoutUnref(...) which led to nodeWebCompat becoming the this argument, which was not right. Having undefined be the this argument is fine, because that is the same (in 'strict mode') as when you just call setTimeout directly (without leading nodeWebCompat.).

You could create a barebones next.js project with authentication middleware and run Cypress tests like with the other frameworks. The server that runs locally on my computer with next start / next dev acts the same way as the production environment on Vercel when it comes to middleware (in this particular situation at least). That being said, I am not an experienced tester by any means. Thank you!

Ok sounds doable, but let's proceed without this for now. Instead would you mind to add an eslint rule like this to our eslint config in this PR? Then we won't forget this lesson we now learned in the future:
"no-restricted-globals": [
      "error",
      {
        name: "window",
        message:
          "Don't use the window global, as you don't need to use it and it's not a defined global in the Next.js Edge Runtime",
      },
    ],

Eslint rule was added


JSON Index for articles

To be used in the top navigation https://www.24life.com/
Open question: how to have only articles in the index?

done https://main--24life--hlxsites.hlx.page/articles.json


Include otomi bootstrap in one of the Husky hooks

I came up with this idea, it saves me some time when I have this process:

Edit values-schema.yaml
Run otomi bootstrap
Go through an otomi-values YAML file to check if the new meta schema works as intended.
Go back to 1.

More ideally,

otomi bootstrap wouldn't take so long (all I actually want is the new schema applied to one of the files in otomi-values). I think an easy solution would be to just use the root values-schema.yaml for validation. If I look at the generate_loose_schema function in bin/bootstrap.sh, all it does is remove "required", if someone could help me figure out why that's necessary, that would be great. If it's really necessary, that function could also be pulled into a separate file, if I'm not mistaken bootstrap is only supposed to run once when someone creates a new otomi-values repository?
I've added it to pre-commit now, but it could be post-commit too.

I came up with this idea, it saves me some time when I have this process:

Edit values-schema.yaml
Run otomi bootstrap
Go through an otomi-values YAML file to check if the new meta schema works as intended.
Go back to 1.

More ideally,

otomi bootstrap wouldn't take so long (all I actually want is the new schema applied to one of the files in otomi-values). I think an easy solution would be to just use the root values-schema.yaml for validation. If I look at the generate_loose_schema function in bin/bootstrap.sh, all it does is remove "required", if someone could help me figure out why that's necessary, that would be great.

I explained why that is necessary: the values repo contains files that apply partials to make the "whole" that is generated in validate-values

If it's really necessary, that function could also be pulled into a separate file, if I'm not mistaken bootstrap is only supposed to run once when someone creates a new otomi-values repository?

It is necessary, and needs to always run when switching target clusters (to get the versioned tools).

I've added it to pre-commit now, but it could be post-commit too.

Great, whatever makes most sense. If the hook already alleviates some manual effort, that is a win.

For anyone reading this, it was a lot easier just symlinking the files I needed from the otomi bootstrap command.

Please refrain from doing so as it implies having otomi-core cloned


How to use AutoGPTQ model in tgi

command：
export GPTQ_BITS=4
export GPTQ_GROUPSIZE=128
text-generation-launcher --model-id Ziya-LLaMA-13B_4bit --disable-custom-kernels --port 6006 --revision gptq-4bit-128g-actorder_True --quantize gptq
result:
Traceback (most recent call last):
File "/root/miniconda3/envs/text-generation-inference/bin/text-generation-server", line 8, in
sys.exit(app())
File "/root/autodl-tmp/text-generation-inference-main/server/text_generation_server/cli.py", line 78, in serve
server.serve(
File "/root/autodl-tmp/text-generation-inference-main/server/text_generation_server/server.py", line 169, in serve
asyncio.run(
File "/root/miniconda3/envs/text-generation-inference/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/root/miniconda3/envs/text-generation-inference/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/root/autodl-tmp/text-generation-inference-main/server/text_generation_server/server.py", line 136, in serve_inner
model = get_model(
File "/root/autodl-tmp/text-generation-inference-main/server/text_generation_server/models/init.py", line 195, in get_model
return CausalLM(
File "/root/autodl-tmp/text-generation-inference-main/server/text_generation_server/models/causal_lm.py", line 477, in init
model = AutoModelForCausalLM.from_pretrained(
File "/root/miniconda3/envs/text-generation-inference/lib/python3.9/site-packages/transformers/models/auto/auto_factory.py", line 467, in from_pretrained
return model_class.from_pretrained(
File "/root/miniconda3/envs/text-generation-inference/lib/python3.9/site-packages/transformers/modeling_utils.py", line 2387, in from_pretrained
raise EnvironmentError(
OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory Ziya-LLaMA-13B_4bit.
rank=0
2023-07-20T08:34:02.453608Z ERROR text_generation_launcher: Shard 0 failed to start
2023-07-20T08:34:02.453654Z  INFO text_generation_launcher: Shutting down shards

What type of model is it?

first，install https://github.com/PanQiWei/AutoGPTQ
I changed the code, in text-generation-inference-main/server/text_generation_server/models/causal_lm.py

then,It worked

I have a question I believe you know, is it possible to load a model that contains only safetensors instead of .bin?

Yes of course that's the preffered way of loading a TGI model.

I have a question I believe you know, is it possible to load a model that contains only safetensors instead of .bin?

model = AutoGPTQForCausalLM.from_quantized(repo_id, device_map="auto", use_safetensors=True).half()

I have a question I believe you know, is it possible to load a model that contains only safetensors instead of .bin?

model = AutoGPTQForCausalLM.from_quantized(repo_id, device_map="auto", use_safetensors=True).half()

whenever I try to run some gptq model like this it returns the following error:
RuntimeError: weight model.layers.0.self_attn.q_proj.g_idx does not exist
I also made some changes to the GPTQ_GROUPSIZE and GPTQ_BITS environment variables based on model quant settings as described in the pr: https://github.com/huggingface/text-generation-inference/pull/580

g_idx is necessary.
@thebloke shared that some models where converted before or with some older versions and they don't have a g_idx which means they do not work with TGI.
However, if I understood correctly, most should.
Which model are you using ?

Thank you, I understand now
https://huggingface.co/TheBloke/chronos-hermes-13B-GPTQ
I'm trying to use the one that meets our needs, I also tried with TheBloke/Wizard-Vicuna-30B-Uncensored-GPTQ which also meets, but without success, I need to make some inferences simultaneously in gptq, as is possible in TGI

What type of model is it?

llama13b