Exception thrown while calling SetRange method.

I wanted to solve vehicle routing problem instance as a usage example I used cvrptw.py. Then I have created weekly model which has time_horizon=5x24x3600(the total number of seconds in a week). After that when I setting time constraints :
time_dimension.CumulVar(int(customer.index)).SetRange(                     customer.tw_open,                     customer.tw_close)
I am getting exception like this :
ortools-2.3393-py2.7-linux-x86_64.egg/ortools/constraint_solver/pywrapcp.py", line 1300, in SetRange     return _pywrapcp.IntExpr_SetRange(self, l, u) Exception: CP Solver fail
In that case tw_open=28800 and tw_close=68400. I expected to get more informative exception message to be able to understand what I am doing wrong.

What's the value of time_dimension.CumulVar(int(customer.index)).GetMin()
and GetMax() just before the call to SetRange ?
On Wed, Mar 16, 2016 at 11:35 AM, Tigran Hakobyan<EMAIL_ADDRESS>wrote:

I wanted to solve vehicle routing problem instance as a usage example I
used cvrptw.py. Then I have created weekly model which has time_horizon=5
243600(the total number of seconds in a week). After that when I
setting time constraints :
time_dimension.CumulVar(int(customer.index)).SetRange(
customer.tw_open,
customer.tw_close)
I am getting exception like this :
ortools-2.3393-py2.7-linux-x86_64.egg/ortools/constraint_solver/pywrapcp.py",
line 1300, in SetRange
return _pywrapcp.IntExpr_SetRange(self, l, u)
Exception: CP Solver fail
In that case tw_open=28800 and tw_close=68400. I expected to get more
informative exception message to be able to understand what I am doing
wrong.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/google/or-tools/issues/162

Here is what I got :
print ('Min=', time_dimension.CumulVar(int(stop.index)).GetMin())   File "/lib/python2.7/site-packages/ortools-2.3393-py2.7-linux-x86_64.egg/ortools/constraint_solver/pywrapcp.py", line 1436, in <lambda>     __getattr__ = lambda self, name: _swig_getattr(self, IntVar, name)   File "/lib/python2.7/site-packages/ortools-2.3393-py2.7-linux-x86_64.egg/ortools/constraint_solver/pywrapcp.py", line 74, in _swig_getattr     return _swig_getattr_nondynamic(self, class_type, name, 0)   File "/lib/python2.7/site-packages/ortools-2.3393-py2.7-linux-x86_64.egg/ortools/constraint_solver/pywrapcp.py", line 69, in _swig_getattr_nondynamic     return object.__getattr__(self, name) AttributeError: type object 'object' has no attribute '__getattr__'

Sorry for incovenience, it seems something wrong on my side, cause I changed cvrptw.py to use the same time frames and it worked smoothly.

@tigrandp What was your mistake? I'm having the same issue right now and I'm doing something similar to your week-period horizon

@Alanbato please paste error here or code I will try to help I do not remember.

@tigrandp Hello, thank you for your fast reply
Here's the error I'm getting when trying to solve my problem:
<ipython-input-25-7418aa8aeead> in <module>()
    190
    191 if __name__ == '__main__':
--> 192     main()

<ipython-input-25-7418aa8aeead> in main()
     87             time_dimension.CumulVar(int(cust.index)).SetRange(
     88                 int(cust.tw_open.total_seconds()),
---> 89                 int(cust.tw_close.total_seconds()))
     90
     91     """

~/lib/python2.7/site-packages/ortools-4.2.3790-py2.7-linux-x86_64.egg/ortools/constraint_solver/pywrapcp.pyc in SetRange(self, l, u)
   1337
   1338     def SetRange(self, l, u):
-> 1339         return _pywrapcp.IntExpr_SetRange(self, l, u)
   1340
   1341     def SetValue(self, v):

Exception: CP Solver fail

try to check :

time_dimension.CumulVar(int(cust.index)).Max() >= time_dimension.CumulVar(int(cust.index)).Min()
and then
cust.index < routing.nodes()

Both of them are True :sweat:

And I have the same mistake.
I need to solve the problem with total time constraint. I know, that this is solving by time_horizon in AddDimension.
But my nodes have over day time windows, for example it open at 23:00 and close at 01:00 next day.
So I convert it to 82800 and 90000.
But total time constraint is only 12 hours, 43200.
So I want open depot from 0 to 259200 (not to 43200, thats how AddDimension works) and add 1 day to all customers, so that this customer will be 169200 and 176400.
In this case i understand, that dimension of time_horizon have to be equal as max dimension of time windows.
For example, if my max time windows dimension (on customers, not on depot) will be = 176400 (6 characters) time_horizon 43200 (5 characters) will raise an error
Traceback (most recent call last):
File "D:/Work/VRPTW/VRPTW3/cvrptw.py", line 342, in
main()
File "D:/Work/VRPTW/VRPTW3/cvrptw.py", line 235, in main
time_dimension.CumulVar(locations).SetRange(start, end)
File "C:\Users\MDesh.virtualenvs\VRPTW3-rmdLUytm\lib\site-packages\ortools\constraint_solver\pywrapcp.py", line 1339, in SetRange
return _pywrapcp.IntExpr_SetRange(self, l, u)
Exception: CP Solver fail
But if time_horizon will be , for example, 143200 (6 characters) - everything will be ok.
So that there are two ways - to open the depot for my task (i dont know, how i can do it, i ll ask about it in the new issue) and, probably, repair this error.
Will be grateful for any help.
Thanks.

Are you calling set range outside search?
This is not supported.
You should add a constraint instead of calling a modifier.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le mar. 15 mai 2018 à 17:00, Yajun Ding<EMAIL_ADDRESS>a écrit :

Hi Guys, I have the same problem and issues when I implemented my model.
Please check If you set fix_start_cumul_to_zero == false, whether the
problem will be solved.
We need to set this value to FALSE, if we do not want to cumulate from
zero, which is the lower bound.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/162#issuecomment-389199138,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKj17XtkVljeM-tKdCHIGKlsQoS3vzanks5tyu2CgaJpZM4Hx20P
.

I ran into this issue recently, turns out I had fix_start_cumul_to_zero set to true, and you get this error if you try to SetMin() to a positive value with fix_start_cumul_to_zero = True.

@vkarpov15 did you try to setMin() on a vehicle start node or a "location to visit" node ?

It seems that the SetRange function's provided arguments cannot exceed the dimension's maximum capacity, which I believe cannot exceed 30000. It may also be that SetRange can exceed the max capacity but cannot exceed 30000 independently. My solution is to use @alanbato's solution if the location_time_window has a value larger than 30000.

let's say vehicle starts 9.00 AM (3600x9 = 32400)
if you're setting dimension with fix_start_cumul_to_zero=False
your capacity argument while setting dimension should be greater than 32400
routing.AddDimension(... , capacity>32400)

let's say vehicle starts 9.00 AM (3600x9 = 32400)
if you're setting dimension with fix_start_cumul_to_zero=False
your capacity argument while setting dimension should be greater than 32400
routing.AddDimension(... , capacity>32400)

I had the same problem and found out that I'm missing my waiting total vehicle max time by a digit  :)))

I wanted to solve vehicle routing problem instance as a usage example I used cvrptw.py. Then I have created weekly model which has time_horizon=5x24x3600(the total number of seconds in a week). After that when I setting time constraints : time_dimension.CumulVar(int(customer.index)).SetRange( customer.tw_open, customer.tw_close)
I am getting exception like this : ortools-2.3393-py2.7-linux-x86_64.egg/ortools/constraint_solver/pywrapcp.py", line 1300, in SetRange return _pywrapcp.IntExpr_SetRange(self, l, u) Exception: CP Solver fail
In that case tw_open=28800 and tw_close=68400. I expected to get more informative exception message to be able to understand what I am doing wrong.

I had the same problem and I had solved it reight now.
how to solve:
I have a constraint:
routing.AddDimensin(
time_callback,
2,
30, →this is the problem
....)
I request the maximum travel time is 30h, but in my time windows, time > 30, so you can Adjust the the maximum travel time to avoid this problem


BENCH: Add benchmark for cdist/pdist with weights

Reference issue
To track progress of #13629
What does this implement/fix?
This adds a benchmark for cdist/pdist with a weight vector supplied. It's very similar to the existing Xdist benchmark except that it only covers metrics that support weights and also uses smaller arrays because the current implementation is excruciatingly slow for 1000 elements. On my machine the slowest of these is around 200ms for 100 elements so 1000 elements would be ~20s per call.

Very good idea and needed indeed! Thanks.

Looks great, merging.


Run build time environment variables validations using Vitejs

Problem
I can't get build-time validation working on a vitejs app. I want to run the schema validation on build time so I can check if all required environment variables are defined or not.
Repro

Generate a TS React app using npm create vite@latest
Run npm install @t3-oss/env-core zod
Create a .env file with the following content

VITE_TEST_VAR="ABC"
VITE_MISSING="123"

Create the @t3-oss/env-core required env.ts file with the following content

import { createEnv } from "@t3-oss/env-core";
import { z } from "zod";

export const env = createEnv({
  /*
   * Specify what prefix the client-side variables must have.
   * This is enforced both on type-level and at runtime.
   */
  clientPrefix: "VITE_",
  client: {
    VITE_TEST_VAR: z.string(),
    VITE_MISSING: z.string(), // I used this variable to test the build time validation works
  },
  /**
   * What object holds the environment variables at runtime.
   * Often `process.env` or `import.meta.env`
   */
  runtimeEnv: import.meta.env,
});

Import the exported env object from the t3 env file inside App.tsx (so we verify that env vars are actually usable within the client app)

// App.tsx
import "./App.css";
import { env } from "./env.ts";

function App() {
  return (
    <>
      <h1>{env.VITE_TEST_VAR}</h1>
    </>
  );
}

export default App;

Run "npm run build" and the build should fail with the following error message

❌ Invalid environment variables: { VITE_TEST_VAR: [ 'Required' ], VITE_MISSING: [ 'Required' ] }
failed to load config from /Users/user/dev/project/vite.config.ts
error during build:
Error: Invalid environment variables
    at f (file:///Users/user/dev/project/node_modules/@t3-oss/env-core/dist/index.mjs:1:426)
    at g (file:///Users/user/dev/project/node_modules/@t3-oss/env-core/dist/index.mjs:1:616)
    at file:///Users/user/dev/project/vite.config.ts.timestamp-1686946000230-87681b7d7ccd5.mjs:8:11
    at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
error Command failed with exit code 1.

In order to trigger the validation during build time,  you can import the env.ts in vite.config.ts like import "./env";.

In order to trigger the validation during build time,  you can import the env.ts in vite.config.ts like import "./env";.

I know, the thing is that whenever I try to run the build or dev command, the package cannot read import.meta.env saying it's undefined, therefore it's not loading .env file

Hmm, wasn't realize that Vite doesn't load env in configuration file.
However, there's a workaround for that, it feels hacky but it get the job done. You can manually load the env in vote.config.ts via Vite loadEnv function.
import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig(async ({ mode }) => {
  import.meta.env = loadEnv(mode, process.cwd());
  await import("./src/env");

  return {
    plugins: [react()],
  };
});

Hmm, wasn't realize that Vite doesn't load env in configuration file.
However, there's a workaround for that, it feels hacky but it get the job done. You can manually load the env in vote.config.ts via Vite loadEnv function.

import { defineConfig, loadEnv } from "vite";

import react from "@vitejs/plugin-react";

export default defineConfig(async ({ mode }) => {

  import.meta.env = loadEnv(mode, process.cwd());

  await import("./src/env");

  return {

    plugins: [react()],

  };

});

I realized that I missed the import of the  "./env.ts" file on the example. Sorry about that! I will try your solution and let you know if it worked or not. Thanks in advance!

I've tried @chungweileong94's workaround and it solved the issue! Now import.meta.env is loaded correctly so it can be then parsed using zod. Thanks!

"import.meta" is not available with the "cjs" output format and will be empty
I am getting the above error while trying to do the following.
  import.meta.env = loadEnv(mode, process.cwd());
I have my env file in src/env/env.ts and I am using vue with vite.


WSL2 Ubuntu 20.04 has missing llvm api public key.

I fixed the issue by just downloading llvm with the automated installer.
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
After that was able to find the gpg key.
Maybe a check could be added to solve this issue.
Below are images in order of commands:

This sounds like an issue with your (WSL) setup. It's complaining about a bionic (18.04) package.


Porting Webviz to Apollo

Apollo needs a feature-rich and easy-to-use visualization tool for developers.
I suggest to integrate Webviz into Apollo as a separate module. Backend needs to be swapped from ROS to Cyber RT.
We have cyber visualizer, but it is very basic. We also have Dreamview, but it is not very flexible, all topics are hardcoded, there is no "windowed" system.
Who also wants this?

Currently, we don't have the staff to do this. Your PR submissions are welcome.


AlignedRdataFormatters::TXT() breaks Google site verification

Since moving over to using this library for some of our DNS handling, we've notice that google site verification is now broken for new domains.
This appears to be due to the fact that the above mentioned method is splitting the TXT records at 40 characters, presumably just for easier readability.
This results in split strings in the resulting record. From what I can gather, they should be concat'ing these strings together, but that does not appear to be happening.
After further reading, I found RFC4408, section 3.1.3. However, this specific RFC only related to SPF-type TXT records, and not general validation records such as the one used for Google Site Verification.
I've illustrated the issue below:
$ dig franklaszlo.com txt +short
"google-site-verification=FNI0xUTGqcdI8YX" "xaPf_3mj33BYnNtY23ddD2Zl1ECc"

$ grep -C2 site-verification zones/f/franklaszlo.com
; TXT RECORDS
@                   300   IN TXT   (
                                     "google-site-verification=FNI0xUTGqcdI8YX"
                                     "xaPf_3mj33BYnNtY23ddD2Zl1ECc"
                                   )

I'm not sure what the best fix here is, other than changing the split to be the max, 255 characters, for TXT records.
Let me know if you need further information

Hi @laszlof
The simplest path forward is to just use the ZoneBuilder class instead of the AlignedBuilder to render the zone.
Another option is to override the default TXT formatter with your own implementation AlignedBuilder->addRdataFormatter(). See Docs: AlignedZoneBuilder


Error when passing over global variable array: "reflect: call of reflect.Value.Len on int Value"

I noticed that there is a problem for Yaegi to pass over global array variable.
I have a small workaround that I will show in the end of this post, I just wanted to know if this is something you plan to fix or the workaround is enough from your side, or maybe I am missing something.
The following program sample.go triggers a panic:
package main

import (
	"github.com/containous/yaegi/interp"
	"github.com/containous/yaegi/stdlib"
)

const payload = `
package main

import (
	"fmt"
)

type Version struct {
	Major int
	Minor int
	Patch int
}

var allVersions = []Version{
		{
			Major: 1,
			Minor: 11,
			Patch: 3,
		},
		{
			Major: 1,
			Minor: 11,
			Patch: 3,
		},
}

func main() {
	// a := allVersions
	for _, version := range(allVersions){
		fmt.Println("hello")
	}

	fmt.Println("Done")
}
`

func main(){
	var err error
	i := interp.New(interp.Options{})
	i.Use(stdlib.Symbols)

	_, err = i.Eval(payload)

	if err != nil {
		panic(err)
	}
}

Expected result:
$ go run ./sample.go
hello
hello
Done

Got:
$ yaegi ./sample.go
29:25: panic
panic: reflect: call of reflect.Value.Len on int Value

Workaround:
Assign the array to new local variable and then run it, like that:
func main() {
	//newAllVersions := allVersions
	for _, version := range(allVersions){
		fmt.Println("hello")
	}

	fmt.Println("Done")
}

What version of yaegi are you using? I cannot reproduce on v0.8.13. From the sample it seems that you are using yaegi to run yaegi, is this what you intended?

I used version v0.8.7
I will check it on the latest version and update.
I didn't use yaegi to run yaegi, I used yaegi to run this payload (it doesn't contain anything related to yeagi):
const payload = `
package main

import (
	"fmt"
)

type Version struct {
	Major int
	Minor int
	Patch int
}

var allVersions = []Version{
		{
			Major: 1,
			Minor: 11,
			Patch: 3,
		},
		{
			Major: 1,
			Minor: 11,
			Patch: 3,
		},
}

func main() {
	// a := allVersions
	for _, version := range(allVersions){
		fmt.Println("hello")
	}

	fmt.Println("Done")
}
`

I checked in version v0.8.13, it is fixed, cool.
Thanks :)

OK, I was able to reproduce the problem in version v0.8.13, please check this example.
The following program sample.go triggers a panic:
package main

import (
	"github.com/containous/yaegi/interp"
	"github.com/containous/yaegi/stdlib"
)

const payload = `
package main

import (
	"fmt"
)

type Version struct {
	Major int
	Minor int
	Patch int
}

var allVersions = []Version{
		{
			Major: 1,
			Minor: 11,
			Patch: 3,
		},
		{
			Major: 1,
			Minor: 11,
			Patch: 3,
		},
}

func foo(){
	//allVersionsLocal := allVersions
	for _, version := range(allVersions){
		fmt.Println("hello")
	}
}

func main() {
	foo()
	fmt.Println("Done")
}
`

func main(){
	var err error
	i := interp.New(interp.Options{})
	i.Use(stdlib.Symbols)

	_, err = i.Eval(payload)

	if err != nil {
		panic(err)
	}
}

Expected result:
$ go run ./sample.go
hello
hello
Done

Got:
$ yaegi ./sample.go
29:25: panic
36:2: panic
panic: reflect: call of reflect.Value.Len on func Value

Notice it happens when you call a function that uses global variable inside range, the workaround is like I added in the comment, assign the global variable to local variable and use it in range.

The following works for me:
import (
	"fmt"
)

type Version struct {
	Major int
	Minor int
	Patch int
}

var allVersions = []Version{
	{
		Major: 1,
		Minor: 11,
		Patch: 3,
	},
	{
		Major: 1,
		Minor: 11,
		Patch: 3,
	},
}

func foo(){
	for _, version := range allVersions {
		fmt.Println(version)
	}
}

func main() {
	foo()
	fmt.Println("Done")
}

You need to remove the braces on range and it works as expected.

Thanks, I checked it now and it works.


Makefile: always provide VERSION_STRING if none set.

Without this set the compile-without-docker script did not work. They do not have git installed.

Hi, @wutje , can't this be reduced into  VERSION_STRING ?= NOGIT?

Hi, @wutje , can't this be reduced to  VERSION_STRING ?= NOGIT?

Yeah I think so. I had that code first. But this seemed more readable in a way.


'Url' type casts left around when serializing model to a dictionary

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
When serializing a model using URLs back to a dictionary, provided the URLs are properly represented, and validated using any of the network URL types, Url/AnyUrl/HttpUrl are explicitly formatted as type casts to the serialized dictionary  (depending on the exact pydantic v2 release)  which makes it hard to deterministically compare data as plain dictionaries in unit tests.
I used the word "deterministically" because prior pydantic  2.10.2 it seems like all URL types where formatted as Url(<url>), but after 2.10.2 where there were adjustments to the URL validation constraints the actual types are honored in the serialized dictionary.
I don't think the type casts should be dumped to a serialized dictionary once a model has been successfully validated, making it completely transparent to the user what the model does/did in the background.
[1] https://docs.pydantic.dev/latest/concepts/serialization/#modelmodel_dump
Example Code
from typing import Optional
from pydantic import BaseModel, AnyUrl
from pprint import pprint

class SubModel(BaseModel):
    bar: AnyUrl
    baz: int = 1

class MainModel(BaseModel):
    foo: Optional[str] = None
    submodels: list[SubModel] = []

m = {
    "foo": "foo",
    "submodels":
        [
            {"bar": "https://example.com"},
            {"bar": "http://www.example.com/path", "baz": 2}
        ],
}

pprint(MainModel.model_validate(m).model_dump())

>>> python3 test.py
{'foo': 'foo',
 'submodels': [{'bar': AnyUrl('https://example.com/'), 'baz': 1},
               {'bar': AnyUrl('http://www.example.com/path'), 'baz': 2}]}

Python, Pydantic & OS Version
pydantic version: 2.10.2
pydantic-core version: 2.27.1
pydantic-core build: profile=release pgo=false
python version: 3.12.7 (main, Oct  1 2024, 00:00:00) [GCC 14.2.1 20240912 (Red Hat 14.2.1-3)]
platform: Linux-6.11.5-200.fc40.x86_64-x86_64-with-glibc2.39
related packages: mypy-1.13.0 typing_extensions-4.12.2 mypy-1.13.0 typing_extensions-4.12.2

Hi!
Thanks for your question. I don't think this is something we're going to change now - we're trying to reduce further churn on the url front, and this behavior is much more like that which you'd expect from other concrete python classes.
That being said, one of the following solutions might be helpful to you:
class SubModel(BaseModel):
    bar: Annotated[AnyUrl, PlainSerializer(lambda x: x._url)]
    baz: int = 1

class SubModel(BaseModel):
    bar: Annotated[AnyUrl, PlainSerializer(lambda x: str(x))]
    baz: int = 1

I'd recommend the second approach, as it makes deterministic comparisons easier, and it doesn't depend on internal implementation details of the url class variations.
Hope this helps. Happy to chat more if you have questions!

A bit of further explanation - here's some motivation regarding why we changed behavior!

Hi!
Thanks for your question. I don't think this is something we're going to change now - we're trying to reduce further churn on the url front, and this behavior is much more like that which you'd expect from other concrete python classes.

@sydney-runkle thank you for the answer. My bad for not reading https://docs.pydantic.dev/latest/concepts/serialization thoroughly, more specifically https://docs.pydantic.dev/latest/concepts/serialization/#dictmodel-and-iteration which would have not led me to creating this issue.

class SubModel(BaseModel):
    bar: Annotated[AnyUrl, PlainSerializer(lambda x: str(x))]
    baz: int = 1

Is ^this somehow preferable (or more recommended) over
class Submodel(BaseModel):
   bar: AnyUrl

   @field_serializer('bar', when_used='always')
    def serialize_url(self, bar: AnyUrl):
        return str(bar)

Is there a practical difference other than being less verbose?


cmd/go: cannot find main module, while building opencontainers/runc

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

$ go version
go version devel +cb8054a6b6 Fri Mar 15 04:15:59 2019 +0000 linux/amd64

Does this issue reproduce with the latest release?
No.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
go version devel +cb8054a6b6 Fri Mar 15 04:15:59 2019 +0000 linux/amd64
root@ubuntu18:/go/src/github.com/weaveworks/weave# go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/go"
GOPROXY=""
GORACE=""
GOROOT="/go/src/golang/go"
GOTMPDIR=""
GOTOOLDIR="/go/src/golang/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build376968183=/tmp/go-build -gno-record-gcc-switches"

What did you do?
git clone https://github.com/opencontainers/runc.git
cd runc
make
What did you expect to see?
make should be successful
What did you see instead?
root@ubuntu18:/go/src/github.com/opencontainers/runc# make
go build -buildmode=pie  -ldflags "-X main.gitCommit="7341c22d46a3de49fe9fdb546f33065296200d99" -X main.version=1.0.0-rc6+dev " -tags "seccomp" -o runc .
go: cannot find main module, but found vendor.conf in /go/src/github.com/opencontainers/runc
	to create a module there, run:
	go mod init
Makefile:33: recipe for target 'runc' failed
make: *** [runc] Error 1
root@ubuntu18:/go/src/github.com/opencontainers/runc#

It seems like this is related to #30868
With GO111MODULE=on as the default at tip, that's probably why you're seeing this error now.  https://github.com/opencontainers/runc isn't a module, and it looks like the go command is failing to build because it expects one.
/cc @bcmills up to you whether or not you want to mark this as a duplicate of the other issue.

This seems like an issue to file against github.com/opencontainers/runc. Fundamentally, if you want to build a module in module mode, then it needs a go.mod file.
What happens if you run the suggested go mod init command?


[FEATURE REQUEST] Show download progress when downloading magnitude files from the server

Magnitude(MagnitudeUtils.download_model('glove/medium/glove.6B.{}d'.format(self.glove_dim), download_dir=os.path.join(base_dir, 'magnitude')), case_insensitive=True)
The above piece of code, when downloading data from server, isn't showing progress to users. It feels like the command prompt is not doing any task when the script runs. This can be easily done through tqdm. This feature will be of great help.
Thank you..

You can just change this code:
urlretrieve(
                    remote_file_path,
                    os.path.join(download_dir, local_file_name_tmp)
)

as:
    class DownloadProgressBar(tqdm):
        def update_to(self, b=1, bsize=1, tsize=None):
            """
            b: int, optional
                Number of blocks just transferred [default: 1].
            bsize: int, optional
                Size of each block (in tqdm units) [default: 1].
            tsize: int, optional
                Total size (in tqdm units). If [default: None] remains unchanged.
            """
            if tsize is not None:
                self.total = tsize
            self.update(b * bsize - self.n)

            with DownloadProgressBar(unit='B', unit_scale=True, miniters=1, desc=filename) as t:
                local_filename, _ = urlretrieve(remote_file_path,
                                               filename=local_file_name_tmp,
                                               reporthook=t.update_to)

Here is your code - https://github.com/plasticityai/magnitude/blob/aec98628b5547773ca8c4114ec6d1ad51e21b230/pymagnitude/init.py#L2152
I ain't a contributor here.. so I need to fork this repo, make changes and then create a new pull request which seems a lot of work. You can just change a few lines in order to make this work @AjayP13


please consider using a system json library

Hello, I patched the source code to use the Debian available json library
https://tracker.debian.org/pkg/nlohmann-json
--- poedit-2.0.orig/src/json.h
+++ poedit-2.0/src/json.h
@@ -28,7 +28,7 @@

 #include "str_helpers.h"

-#include "json/src/json.hpp"
+#include <json.hpp>
 using json = nlohmann::json;

the library is available directly into usr/include, I don't know if other distros have it too, but some autoconf code to detect it would be awesome :)

I don't know if other distros have it too

There's a reason why it is the only dependency I bundle…

but some autoconf code to detect it would be awesome :)

I'll be honest: I won't, it's not worth it, because I still have to bundle it, see above.
That wouldn't prevent me from accepting a PR, but in fact, I'm far from sure it's a good idea at all. Consider:

Unlike in the case of many other libraries, there's nothing to be gained by using the system version: it's a header-only library, so it's compiled into the executable anyway and no code is shared with other binaries — the primary reason for using system libs, which I get and fully agree with.

On the other hand, all the disadvantages of a system dependency are present: configure checks to maintain (and deal with differences), compatibility concerns with different versions, harder debugging of bugs if an unexpected version is used.

Unlike in the case of many other libraries, there's nothing to be gained by using the system version: it's a header-only library, so it's compiled into the executable anyway and no code is shared with other binaries — the primary reason for using system libs, which I get and fully agree with.

in case of security issues, debian security team can know (via reverse-dependencies) how many binaries are using that library, upload a fixed version and rebuild them

On the other hand, all the disadvantages of a system dependency are present: configure checks to maintain (and deal with differences), compatibility concerns with different versions, harder debugging of bugs if an unexpected version is used

well, the configure check might be trivial for some long time, since it is a single include file :)
for the other two points I fully agree :)

in case of security issues

Fair enough. Embarrassingly I forgot about this benefit, despite its arguably even greater importance. Thanks!

Thanks to you :) well IIRC Fedora forbids embedded code copies by policy (even in a stricter way than Debian does), so I guess they will take some similar approach as mine...
hopefully the pr is correct enough (even if I really don't understand or speak autoconf)

Fedora forbids embedded code copies by policy

Wow. To think that Fedora is the reason I considered bundling more (because they're still incapable of packaging Poedit fully and disable major functionality due to missing dependencies)…

Closing in favor of #374.


[5.0] FailedJobProviderInterface find() method return value is an array

As soon as we use our custom implementations of a FailedJobProvider, we get an Exception
[ErrorException]
Trying to get property of non-object

	/**
	 * Get a single failed job.
	 *
	 * @param  mixed  $id
	 * @return array
	 */
	public function find($id);

We need to cast the array to object and it's working or Interface annotation need to be updated.

This would break the following is_null check.


Duplicate logs with semantic_logger

I am using semantic logger in my .eye file like this:
SemanticLogger.default_level = :info
Eye::Logger.log_level = Logger::INFO
SemanticLogger.add_signal_handler
SemanticLogger.add_appender(file_name: File.join(__dir__, 'log/eye.log'))
LOGGER = SemanticLogger['eye']

Eye.config do
  logger LOGGER
end

cameras = fetch_cameras
LOGGER.warn "Starting eye with cameras: #{cameras}"
cameras.each do |camera|
    Eye.application "recorder_#{camera[:camera_id]}" do
      working_dir PATHS[:tmp]
      ...

However, every time I run eye load recorder.eye, I am seeing a duplicate log messages, any ideas what I'm doing wrong?

i have not idea how semantic_logger works, if you will use Logger.new it would work?

I'll experiment and see if I can figure something out - I now have a new issue where logging just stops after 30 seconds or so on this machine, not sure why, even when I remove semantic_logger completely, so something else is happening, trying to figure out what, will reply soon.

ok, so every time I run:
bundle exec eye l recorder.eye
``

I get 1 extra duplicate line, so if I run 3 times, I get 3 duplicate lines, if I run 10 times, I get 10 duplicate lines for every line.

When switching to Logger.new('/tmp/eye.log') this does not happen, hmm.

Do you have any suggestions for something a bit better than Logger.new that doesn't have the duplicate issues issue with semantic_logger?

may be change would fix it:
unless defined?(LOGGER)
  SemanticLogger.default_level = :info
  Eye::Logger.log_level = Logger::INFO
  SemanticLogger.add_signal_handler
  SemanticLogger.add_appender(file_name: File.join(__dir__, 'log/eye.log'))
  LOGGER = SemanticLogger['eye']
end

Yes, that fixed it, thank you!


try_fold support

Prerequisites
Here are a few things you should provide to help me understand the issue:

Rust version : 1.55.0
nom version : 7.0.0
nom compilation features used: default

Split out of #1409
fold_many_* doesn't support coming across errors.  When folding the elements of a TOML table, we need to error if keys are duplicated.  I think it'd be useful to take inspiration from try_fold in the stdlib.  This uses an unstable trait but we can for now constrain what types we can Try on until Try becomes stable.

good idea, and yes, it'd make more sense after we get ranges


Remove E2E_ARGS, get from settings

We use Shipyard's settings capability everywhere, which already dictates
the clusters deployment topology.
Instead of forcing the users to explicitly state the clusters for E2E,
deduce them from the settings.
Special care is given to place the biggest cluster first, as some tests
rely on that.
Signed-off-by: Mike Kolesnik<EMAIL_ADDRESS>

Needs a manual rebase.


gpu slice

slice that working for general case without performance considering yet.
limitation:

only support float point

@csullivan
Exactly.

:TESTNOW


Blacklisted sites to consider adding

Here's my list of blacklisted sites to consider blocking by default.
undefinedwww\.instagram\.com; #place_your_selectors_here
https://www.instagram.com/

I've tried, but Instagram (and Facebook) are too time-consuming to reliably block.
https://github.com/grantwinney/hide-comments-everywhere/wiki/Why-isn't-Facebook-blocked


defaultContentLanguageInSubdir=true does not generate subdirectory if there is only one language enabled

With the following configuration (stolen from the Hugo documentation) subdirectories for "en" and "fr" are generated. When I enable "disableLanguages" so that there is only "en" left as a language, no subdirectory for "en" is generated with Hugo v0.49. However, according to the documentation it should be because "en" is marked as the default language.
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"

defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true
#disableLanguages = ["fr"]

[languages]
  [languages.en]
    title = "My blog"
    weight = 1
    [languages.en.params]
      linkedin = "https://linkedin.com/whoever"
  [languages.fr]
    title = "Mon blogue"
    weight = 2
    [languages.fr.params]
      linkedin = "https://linkedin.com/fr/whoever"
      [languages.fr.params.navigation]
        help = "Aide"

The same issue occured with v0.51. Is there any solution available. Thanks.


Is there a way to disable approval screen mirror popup?

Hey,
I was looking in the code but i cant figured out if there is a way to approve automatically the screen recording(mirror) popup just by clicking in the idrive icon app and not having to each time pick up the phone and approve?
Thanks in advance.

Besides the permission prompt, the app could theoretically gain the CAPTURE_VIDEO_OUTPUT permission and avoid the permission prompt, but that requires root access on the phone to install the APK into /system/app. Except, they removed that option in Android 10. I don't know of any other way to skip the permission prompt.


azureContainerRegistry Parameter Format

These docs define the "azureContainerRegistry" parameter as "(Required) Name of the Azure Container Registry".  However, when I used just the name in my pipeline, I got an "unauthorized" exception when trying to push images.  After reviewing the YAML generated for this task (specifically, the "docker-compose push" task) by the visual designer, I saw that the visual designer uses the format:
azureContainerRegistry: '{"loginServer":"$(CONTAINER_REGISTRY_NAME).azurecr.io", "id": "/subscriptions/$(CONTAINER_REGISTRY_SUBSCRIPTION_ID)/resourceGroups/$(CONTAINER_REGISTRY_RESOURCE_GROUP)/providers/Microsoft.ContainerRegistry/registries/$(CONTAINER_REGISTRY_NAME)"}'
When I tried the above format, the docker-compose push command worked.  Are the docs wrong?  I am pretty sure we set up the service connection correctly.  Thanks.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d767aebb-620e-9ad3-e906-3e2bafa02ee9
Version Independent ID: c8cb5a48-ccdf-778c-1547-a10db74cb56c
Content: Docker Compose task - Azure Pipelines
Content Source: docs/pipelines/tasks/build/docker-compose.md
Product: devops
GitHub Login: @steved0x
Microsoft Alias: shasb

You need to use azureContainerRegistry: contoso.azurecr.io


Set TZ environment variable required for prefect

We recently ran into the same problem encountered in https://github.com/PrefectHQ/prefect/issues/3061 / https://github.com/pangeo-data/pangeo-docker-images/pull/183 and https://github.com/pangeo-data/pangeo-docker-images/issues/125. This sets the TZ env variable so that prefect can be used with Pangeo docker images without any extra configuration needed.

Im on the road until sept 7 so feel free to merge and tag @weiji14 !

Ok, I've pushed a tag - https://github.com/pangeo-data/pangeo-docker-images/releases/tag/2023.08.27


fix: 10527 Google Sheet crud generation header issue

Description
The CRUD operation cannot be performed when there are no rows in the google sheet.
A fix was made so that even if there are no rows the crud operation can be performed.
Fixes #10527
Type of change

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
This change requires a documentation update

How Has This Been Tested?
Manual
Unit Test
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 commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:white_circle: Total coverage has not changed
No changes to code coverage between the base branch and the head branch

Old Branch merging issue added undesired files to this PR,
So creating a new PR and closing this
New PR is #11664


CuratorInventoryManager should take a pathchildrencache start mode

To allow for all existing children to be read before the inventory manager actually starts. This mitigates inconsistent views brokers may have of data right after restart.

@xvrl has fixed this issue.


Add jshint configuration file, for consistent js syntax.

I think it would be a good idea to add a .jshintrc file, that can be used with JSHint from console, or automatically with SublimeLinter.
Here's an example file.
@gvilarino, @jfresco, @slifszyc thoughts?

Issue already exists: #247


Add MongoDB Node.js driver exporter to list of available exporters

Please add this new exporter to list of available exporters. Please let me know if there is something missing.

:+1: Thanks!


HTTP/1.1 400 Bad Request when running Set-ProfileCardPronoun.ps1

Hello,
I've cloned the repo and when trying to run
.\Set-ProfileCardPronoun.ps1 -PronounAttribute extensionAttribute7
I'm getting this error message:
`Invoke-MgGraphRequest : PATCH https://graph.microsoft.com/beta/organization/626943f2-f827-4ac9-a162-0c28f72d8252/settings/profileCardProperties
HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: ***
client-request-id: ***
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"AM4PEPF0001511C"}}
Date: Thu, 30 Jun 2022 15:04:52 GMT
At C:\Users\user\OneDrive\Documents\GIT\m365-gender-pronoun-kit\src\Set-ProfileCardPronoun.ps1:46 char:11

$result = Invoke-MgGraphRequest -Uri $uri -Method PATCH -Body $bodyJs ...

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (Method: PATCH, ...-Length: 210
}:HttpRequestMessage) [Invoke-MgGraphRequest], HttpResponseException
FullyQualifiedErrorId : InvokeGraphHttpResponseException,Microsoft.Graph.PowerShell.Authentication.Cmdlets.InvokeMgGraphRequest`

Any ideas?

Can you change line 46 to include a -Debug and try running again? That should hopefully provide some additional info on why it is failing.
$result = Invoke-MgGraphRequest -Uri $uri -Method PATCH -Body $bodyJson -Debug

I was able to get it working by changing the code on line 46 to:
$result = Invoke-MgGraphRequest -Uri $uri -Method **POST** -Body $bodyJson
I've change PATCH to POST.
Now, I'm having some difficulties with the Invoke-PronounSync. I'm getting this error when trying to run it.
`Get-PnPUserProfileProperty : Attempted to perform an unauthorized operation.
At line:1 char:1

Get-PnPUserProfileProperty -Account<EMAIL_ADDRESS>
  + CategoryInfo          : WriteError: (:) [Get-PnPUserProfileProperty], ServerU
 nauthorizedAccessException
  + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.UserProfiles.GetUse
 rProfileProperty`

I've checked the API permissions and all looks good there.

When you used PnPConnect did you connect with the url to SharePoint admin?
E.g.
$AdminCenterURL = "https://crescent-admin.sharepoint.com"
#Connect to Tenant Admin
Connect-PnPOnline -URL $AdminCenterURL

I've run the Invoke-PronounSync.ps1 script.

.\Invoke-PronounSync.ps1 -Tenant xxx.onmicrosoft.com -Url 'https://xxx-admin.sharepoint.com' -ClientId <APPID> -Certificate '.\User Pronoun Sync App.pfx'

When trying to connect using your suggested method I got this error:
Connect-PnPOnline : AADSTS65001: The user or administrator has not consented to use the application with ID
'31359c7f-bd7e-475c-86db-fdb8c937548e' named 'PnP Management Shell'. Send an interactive authorization request for
this user and resource.

I've connected using the below command and accepted the consent to use the PnP Management Shell
Connect-PnPOnline -Url $adminurl -PnPManagementShell

While I was able to connect using Connect-PnPOnline -Url $adminurl, I am still getting the same error while running the script.


Can we include savings plan too in the price?

Show vCPU and consider savings plans if any

We just use the OD & Spot prices from the pricing API. They do not incorporate any savings plans.


Push script on modal

Hello, first thanks for this amazing package.
I'm having some troubles loading a custom livewire components. In that component I push some js to the layout. But when I call that component on a modal, the scripts are not being loaded, so the component doesn't work.
For example that simple function is not working:
@push('page-script')

@endpush

How can I make it work?

Ich habe das gleiche Problem, siehe #40

Ich habe das gleiche Problem, siehe #40

I have the same problem, see #40

Can't anyone help us?

I don't think this is possible. The DOMContentLoaded event has already occurred because modals are loaded dynamically. Alpine seems to work fine, however:


Kanban Board - Full Stack Group Project

Collaborator (Group of 4 people)
@anita00001
@Mofuhidy
@Theodoraldo
@AnsarIbrahim
Link to issue link (Frontend)
https://github.com/anita00001/fix-mate-frontend/issues
Link to the Project
https://github.com/users/anita00001/projects/5

Screenshot of the Kanban Board


Preview: value:0 not shown

In the preview mode, scores with value:0 are not shown ("not available" should have 0P):

If I define it as a string, it is correctly shown:
"options": [
                {
                    "id": "NotApplicable",
                    "text": "Not applicable [provide explanation]",
                    "value": 0
                },
                {
                    "id": "NotAvailable",
                    "text": "Not available",
                    "value": "0"
                },
                {
                    "id": "YesParts",
                    "text": "Yes, parts of material [provide doi or URL]",
                    "value": 0.5
                },

Fixed:
The issue lies in how the JavaScript expression option.value is being evaluated. In JavaScript, the number 0 is considered a falsy value, meaning that it evaluates to false in a Boolean context. As a result, when you use x-show="option.value", the element will not be displayed because 0 evaluates to false.


CAD or SCAD files

Please add CAD or SCAD files for your project.

Add step. https://github.com/v0Ch/vfk-001/blob/main/vfk-001.step


PiT 24.4: app does not compile in dev and prod mode when upgrading to 24.4 because css module cannot be imported

Description
When migrating the project to 24.4,  './MainLayout.module.css' is not found even though the file is still there
ls -l1 frontend/views/Main*
frontend/views/MainLayout.module.css
frontend/views/MainLayout.tsx

grep MainLayout.module.css frontend/views/MainLayout.tsx
import css from './MainLayout.module.css';

Application still works in dev-mode but fails in prod-mode, thus the way to import styles needs to be updated somehow
How to reproduce

checkout the project

   git clone https://github.com/vaadin/skeleton-starter-hilla-react-gradle.git
   cd skeleton-starter-hilla-react-gradle

modify build files by upgrading version and using vaadin artifacts

build.gradle

@@ -9,7 +9,7 @@ plugins {
        id 'java'
        id 'org.springframework.boot' version '3.1.5'
        id 'io.spring.dependency-management' version '1.1.0'
-       id 'dev.hilla' version "$hillaVersion"
+       id 'com.vaadin' version "$vaadinVersion"
 }

 repositories {
@@ -22,7 +22,7 @@ repositories {
 }

 dependencies {
-       implementation 'dev.hilla:hilla-react-spring-boot-starter'
+       implementation 'com.vaadin:vaadin-spring-boot-starter'
        implementation 'org.parttio:line-awesome:1.1.0'
        developmentOnly 'org.springframework.boot:spring-boot-devtools'
        testImplementation 'org.springframework.boot:spring-boot-starter-test'
@@ -30,6 +30,6 @@ dependencies {

 dependencyManagement {
        imports {
-               mavenBom "dev.hilla:hilla-bom:$hillaVersion"
+               mavenBom "com.vaadin:vaadin-bom:$vaadinVersion"
        }
 }

settings.gradle

   plugins {
-    id 'dev.hilla' version "${hillaVersion}"
+    id 'com.vaadin' version "${vaadinVersion}"
   }
 }

gradle.properties

-hillaVersion=2.5.6
+vaadinVersion=24.4.0.alpha3

Patch sources files to use new namespaces and package names

diff --git a/src/main/java/com/example/application/endpoints/helloreact/HelloReactEndpoint.java b/src/main/java/com/example/application/endpoints/helloreact/HelloReactEndpoint.java
index 99765f8..886e39c 100644
--- a/src/main/java/com/example/application/endpoints/helloreact/HelloReactEndpoint.java
+++ b/src/main/java/com/example/application/endpoints/helloreact/HelloReactEndpoint.java
@@ -1,8 +1,8 @@
 package com.example.application.endpoints.helloreact;

 import com.vaadin.flow.server.auth.AnonymousAllowed;
-import dev.hilla.Endpoint;
-import dev.hilla.Nonnull;
+import com.vaadin.hilla.Endpoint;
+import com.vaadin.hilla.Nonnull;

 @Endpoint
 @AnonymousAllowed

diff --git a/frontend/components/placeholder/Placeholder.tsx b/frontend/components/placeholder/Placeholder.tsx
index c9443d2..286038b 100644
--- a/frontend/components/placeholder/Placeholder.tsx
+++ b/frontend/components/placeholder/Placeholder.tsx
@@ -1,4 +1,4 @@
-import { ProgressBar } from<EMAIL_ADDRESS>+import { ProgressBar } from<EMAIL_ADDRESS>
 export default function Placeholder() {
   return <ProgressBar indeterminate={true} className="m-0" />;
diff --git a/frontend/views/MainLayout.tsx b/frontend/views/MainLayout.tsx
index 688d6d3..5511c4c 100644
--- a/frontend/views/MainLayout.tsx
+++ b/frontend/views/MainLayout.tsx
@@ -1,7 +1,7 @@
-import { AppLayout } from<EMAIL_ADDRESS>-import { DrawerToggle } from<EMAIL_ADDRESS>-import { Item } from<EMAIL_ADDRESS>-import { Scroller } from<EMAIL_ADDRESS>+import { AppLayout } from<EMAIL_ADDRESS>+import { DrawerToggle } from<EMAIL_ADDRESS>+import { Item } from<EMAIL_ADDRESS>+import { Scroller } from<EMAIL_ADDRESS> import Placeholder from 'Frontend/components/placeholder/Placeholder.js';
 import { MenuProps, routes, useViewMatches, ViewRouteObject } from 'Frontend/routes.js';
 import { Suspense } from 'react';
diff --git a/frontend/views/helloreact/HelloReactView.tsx b/frontend/views/helloreact/HelloReactView.tsx
index 9896016..3b7dfd4 100644
--- a/frontend/views/helloreact/HelloReactView.tsx
+++ b/frontend/views/helloreact/HelloReactView.tsx
@@ -1,6 +1,6 @@
-import { Button } from<EMAIL_ADDRESS>-import { Notification } from<EMAIL_ADDRESS>-import { TextField } from<EMAIL_ADDRESS>+import { Button } from<EMAIL_ADDRESS>+import { Notification } from<EMAIL_ADDRESS>+import { TextField } from<EMAIL_ADDRESS> import { HelloReactEndpoint } from 'Frontend/generated/endpoints.js';
 import { useState } from 'react';

run the project in dev-mode, see the error, but it still works fine in browser

gradlew bootRun
...
 ERROR(TypeScript)  Cannot find module './MainLayout.module.css' or its corresponding type declarations.
...
open http://localhost:8080

run the project and see the error

./gradlew clean build -Pvaadin.productionMode
...
> Vite process exited with non-zero exit code.
  Stderr: 'vite v5.0.12 building for production...
  transforming...
  ✓ 257 modules transformed.
  rendering chunks...
  frontend/views/MainLayout.tsx(9,17): error TS2307: Cannot find module './MainLayout.module.css' or its corresponding type declarations.
  '

BTW, the skeleton-starter-hilla-react does not fail because it does not have the css import for the same view

I couldn't reproduce locally following the provided steps.
I do not see errors neither in dev mode nor in production build.

Re-run the PiT script and still failing
https://github.com/vaadin/platform/actions/runs/7871340444/job/21474435316#step:10:1591

Tried to reproduce this locally and first run stops to this error:
com.vaadin.flow.server.ExecutionFailedException:
***************************************************************************
*  TypeScript type declaration file 'types.d.ts' has been updated to the  *
*  latest version by Vaadin. Previous content has been backed up on       *
*  'types.d.ts.flowBackup' file. Please verify that the updated           *
*  'types.d.ts' file contains configuration needed for your project, and  *
*  then delete the backup file.                                           *
***************************************************************************

After running with updated types.d.ts I don't get errors. Only these warnings.

I could reproduce by deleting the original types.d.ts and using the one generated by Flow.
After adding the following snippet that was present in the original file, the build worked
declare module '*.module.css' {
  declare const styles: Record<string, string>;
  export default styles;
}

Yes, I can confirm that. So something removes original types.d.ts somehow. Is it something in the PiT test script that removes it?
Instead of removing it, adding following in the end of the file would fix that then.
declare module '*.css?inline' {
  import { CSSResultGroup } from 'lit';
  const content: CSSResultGroup;
  export default content;
}

It needs type keyword:
declare module '*.css?inline' {
  import type { CSSResultGroup } from 'lit';
  const content: CSSResultGroup;
  export default content;
}

It needs type keyword:
The version with the type keyword in not yet released.
24.4.0.alpha3 still has the contents without the type keyword.

I updated PiT script to catch the exception and re-run the dev-mode after file was correctly updated by flow.
Not an issue in flow. Closing it.


MODE-1401 Corrections to behaviors when nodes are checked in

Corrected several behaviors of what is allowed and not allowed for modifying nodes that are checked in, per Section 15.2.2 of the JCR specification. Several new unit tests were added that verify these behaviors. These new tests all failed prior to these fixes, but they all pass now. (Note this clearly shows the incomplete coverage of the TCK versioning tests.)
All unit and integration tests pass with these changes.

Merged into the 'master' branch.


Add linter to ensure shell builders aren't empty

Codecov Report

Merging #11 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #11   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           3      3
  Lines         109    115    +6
=====================================
+ Hits          109    115    +6

Impacted Files
Coverage Δ

jenkins_job_linter/linters.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


refactored Vec2.js and BotPlayer.js

Overview of changes:

Important optimization, Bots were sorting their cell list to get largest, when it only requires looping over the list once. From:

largest(list) {
    return list.sort((a, b) => {
        return b._size - a._size;
    })[0];
};

to:
largest(list) {
    return list.reduce((largest, current) => {
        return current._size > largest._size ? current : largest;
    });
}

Quite a few lines like this:

var pos = new Vec2(cell.position.x + d.x * cell._size, cell.position.y + d.y * cell._size);

converted to:
var pos = cell.position.sum(d.product(cell._size));

Changed this:

switch (node.type) {
    case 0:
        // Player cells
        this.decidePlayer(node, cell);
        break;
    case 1:
        // Food cells
        this.decideFood();
        break;
    case 2:
        // Virus cells and its derivatives
        this.decideVirus(node, cell);
        break;
    case 3:
        // Ejected cells
        this.decideEjected(node, cell);
        break
}

to this:
this.influence = decideTypes[node.type].call(this, node, cell);

Please review the code and test the new game to verify the physics haven't changed.

Improved performance of willCollide() in Server.js
Fixed getQuad() in QuadNode.js

Ah got conflicts chief.


Value Modifier

We have things like ConstructPropertyUsing(prop => prop.Name.Equals("Expiration"), () => new DateTime());, which is shorthand for adding a blueprint, we need something like this for an ExitBlueprint.
Something along the lines of.
Modify<DateTime>(prop => prop.Name.Equals("Expiration"), x => x.AddYears(2));

Hi, can I contribute to this issue ?


bump version to v1.0.0-beta.9

Current coverage is 66.57% (diff: 100%)

Merging #13 into master will not change coverage

@@             master        #13   diff @@
==========================================
  Files            39         39
  Lines          2579       2579
  Methods           0          0
  Messages          0          0
  Branches        465        465
==========================================
  Hits           1717       1717
  Misses          727        727
  Partials        135        135

Powered by Codecov. Last update 9056bf5...6a2592f


Privileges granted directly to a user should take precedence over those inherited from a role

CrateDB version
5.8.3
CrateDB setup information
Single node local
Problem description
The privileges granted directly to a user should take precedence over those inherited from a role.
After granting a role to a user who already has direct ALL privileges, querying the sys.users table results in a SchemaUnknownException. This behavior is unexpected because direct privileges should take precedence over role-based privileges.
Steps to Reproduce
crate
~/ crash
cr> CREATE USER my_user WITH (password='my_password');
cr> GRANT ALL TO my_user;

my_user
~/ crash -U my_user -W
cr> SELECT current_user;
+--------------+
| CURRENT_USER |
+--------------+
| my_user      |
+--------------+
cr> SELECT * FROM sys.users;
+---------------+------+---------+----------+-----------+
| granted_roles | jwt  | name    | password | superuser |
+---------------+------+---------+----------+-----------+
| []            | NULL | crate   | NULL     | TRUE      |
| []            | NULL | my_user | ******** | FALSE     |
+---------------+------+---------+----------+-----------+

crate
cr> CREATE ROLE my_role2;
cr> GRANT my_role2 TO my_user;

my_user
cr> SELECT * FROM sys.users;
SchemaUnknownException[Schema 'sys' unknown]

Actual Result
After assigning the role my_role2 to my_user, attempting to query sys.users results in a SchemaUnknownException.
Expected Result
The user my_user should continue to have access to the sys.users table since they have direct ALL privileges.

On a 2nd look, it seems like this is actually wipeing the privileges granted initially:
cr> SELECT * FROM sys.privileges limit 100;
+--------+---------+---------+-------+-------+------+
| class  | grantee | grantor | ident | state | type |
+--------+---------+---------+-------+-------+------+
| SCHEMA | my_role | crate   | x     | GRANT | DQL  |
+--------+---------+---------+-------+-------+------+

cr> SELECT * FROM sys.users limit 100;
+--------------------------------------------+------+---------+----------+-----------+
| granted_roles                              | jwt  | name    | password | superuser |
+--------------------------------------------+------+---------+----------+-----------+
| []                                         | NULL | crate   | NULL     | TRUE      |
| [{"grantor": "crate", "role": "my_role2"}] | NULL | my_user | ******** | FALSE     |
+--------------------------------------------+------+---------+----------+-----------+
SELECT 2 rows in set (0.006 sec)

@proddata Thank you for reporting. We've fixed this by https://github.com/crate/crate/pull/16713, the fix will be released with the next 5.8.4 hotfix release.


forget: unset GLOBAL_PDB

This is required with recursive __import__('pdb').set_trace() to
create a new instance in default().
Test file:
def test1():
    __import__('pdb').set_trace()
    test2()

def test2():
    print(1)

test1()

Running it and then calling test1() twice raises an error without this
patch:
% python t/t-f_flobals-None.py
[1] > …/t-f_flobals-None.py(3)test1()
-> test2()
(Pdb++) test1()
(Pdb++) test1()
Traceback (most recent call last):
  File "/usr/lib/python3.6/cmd.py", line 214, in onecmd
    func = getattr(self, 'do_' + cmd)
AttributeError: 'Pdb' object has no attribute 'do_test1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "t-f_flobals-None.py", line 10, in <module>
    test1()
  File "t-f_flobals-None.py", line 3, in test1
    test2()
  File "t-f_flobals-None.py", line 3, in test1
    test2()
  File "/usr/lib/python3.6/bdb.py", line 51, in trace_dispatch
    return self.dispatch_line(frame)
  File "/usr/lib/python3.6/bdb.py", line 69, in dispatch_line
    self.user_line(frame)
  File "/usr/lib/python3.6/pdb.py", line 261, in user_line
    self.interaction(frame, None)
  File "…/Vcs/pdbpp/pdb.py", line 210, in interaction
    self.cmdloop()
  File "/usr/lib/python3.6/cmd.py", line 138, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python3.6/pdb.py", line 418, in onecmd
    return cmd.Cmd.onecmd(self, line)
  File "/usr/lib/python3.6/cmd.py", line 216, in onecmd
    return self.default(line)
  File "…/Vcs/pdbpp/pdb.py", line 438, in default
    return pdb.Pdb.default(self, line)
  File "/usr/lib/python3.6/pdb.py", line 366, in default
    globals = self.curframe.f_globals

AttributeError: 'NoneType' object has no attribute 'f_globals'

Figured it out at https://github.com/blueyed/pdbpp/pull/11 - pdb.Pdb.forget should not be called if GLOBAL_PDB is non-None.

Follow-up in #103.


GranulesTool has an error

This line
p.waitFor(60, TimeUnit.SECONDS);
The JDK 1.7 says the waitFor method doesn't have input parameters.

Solved


Openstack k8s operators, drop alm-examples for now

we can drop them on dataplane, we just need to remove the samples from here: https://github.com/openstack-k8s-operators/dataplane-operator/blob/main/config/samples/kustomization.yaml

I believe this PR won't be needed, it seems the issue is having variables inside the alm-examples: https://github.com/openstack-k8s-operators/dataplane-operator/pull/124#discussion_r1146790848


feat(serviceinfo_api_server): implement per device Serviceinfo initial user and sshkey

This PR

provides a way to user for adding different initial user and sshkey by using device_specific_store_driver feature.
user has to provide a .yml file with the same name GUID of the device under device_specific_store_driver path.
If no file is present for a device then base config is applied (from serviceinfo_api_server.yml).
updated HOWTO.md

LGTM 👍

Thanks Irene!


Make openfga call in authz middleware

Fix #1847

@eleftherias can you be a little bit more thorough with the description in the PR? I have the context but it would be good for other folks to be able to easily see what the change was.


Format response when getting a non 200 from Entity API for metadata validation

This can be viewed when submitting a murine source TSV with a source_id that does not exist. The validation endpoint queries the Entity API to verify that the source exists but if a non 200 response is returned the portal can't properly display the message

This is how the Ingest API is currently returning the response
{"code":406,"description":[{"code":404,"description":{"column":"source_id","error":"invalid `source_id`: 'SNT864.JKLL.545'","row":1},"name":"Unacceptable Request"}],"name":"There are invalid `uuids` and/or unmatched entity sub types"}

Related card: https://github.com/sennetconsortium/ingest-api/issues/345


GUID inconsistencies in Forest-Wide-Updates.md

There are a number of small oddities regarding the GUIDs listed in this page:

Missing GUID
0x hex prefix included
Spurious whitespace
Incorrect hyphenation of the GUID

#sign-off

Thanks! I'll get this merged and published tomorrow morning (12/12).

Thanks for being so quick on this.


Add a way to see version of juliaup

Something like juliaup self status or juliaup self version would be nice to tell what version of juliaup I'm using.
It would also be nice to see which juliaup channel I'm on.

juliaup --version or juliaup -V should do the trick.
But we should definitely add an indication on what channel one is! I think juliaup self channel should just not error but show the channel?

Oops, yes.


Restrict Jenkins IAM policies

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
Current Jenkins has permissions for ALL resources.
{
    "Statement": [
        {
            "Action": [
                "*"
            ],
            "Effect": "Allow",
            "Resource": "*"
        }
    ],
    "Version": "2012-10-17"
}

terraform/amazon/modules/jenkins/jenkins_iam.tf
What you expected to happen:
Jenkins should have the least amount of privileges possible,  forcing users to add IAM policies in the tarmak yaml where needed.
How to reproduce it (as minimally and precisely as possible):
Add Jenkins to cluster in yaml
tarmak cluster apply
Anything else we need to know?:
NOTE
Add a note in the release that users must update the additional policies to the Jenkins instance pool. Their pipelines will most likey break as a result of this change.

/close


Preferences order

Please ensure you have given all the following requested information in your report.
Issue details
It would be nice if the order of preferences could be manipulated.
Now when adding key value pairs, the order is mixed,
but sometimes/often it is useful to group some settings.
Example
So in this configuration it would be nice to group width and height together, aswell as fps and vSync.
So this display configuration
Preferences displayConfig = Gdx.app.getPreferences("myGame/displayConfig.txt");
displayConfig.putBoolean("fullscreen", false);
displayConfig.putInteger("width", 1280);
displayConfig.putInteger("height", 720);
displayConfig.putInteger("fps", 60);
displayConfig.putBoolean("vSync", true);
displayConfig.flush();

could result in this config file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="fullscreen">false</entry>
<entry key="vSync">true</entry>
<entry key="width">1280</entry>
<entry key="fps">60</entry>
<entry key="height">720</entry>
</properties>

Version of LibGDX and/or relevant dependencies

LibGDX:: 1.10.0
Java: 1.8

Please select the affected platforms

[ ] Android
[ ] iOS
[ ] HTML/GWT
[X] Windows
[ ] Linux
[ ] MacOS

Hey @GniLudio!
Since we are using platform specific implementations for saving preferences (for example, on Desktop we are using java.util.Properties) this is not as easy as it sounds.
However, if you want to sort the values alphabetically, you could copy Lwjgl3Preferences and change its flush() method to something like this:
@Override
public void flush () {
  Properties tmp = new Properties() {
    @Override
    public Set<Object> keySet() {
      return Collections.unmodifiableSet(new TreeSet<Object>(super.keySet()));
    }
  };
  tmp.putAll(properties);

  OutputStream out = null;
	try {
		out = new BufferedOutputStream(file.write(false));
		tmp.storeToXML(out, null);
	} catch (Exception ex) {
		throw new GdxRuntimeException("Error writing preferences: " + file, ex);
	} finally {
		StreamUtils.closeQuietly(out);
	}
}


Constant Weaver errors on empty unity project

Constant errors on project with Mirror an Insight Imported
unity version : 2018.3.2f1
Errors:
[Editor.log]

Editor Log:
(https://github.com/vis2k/Mirror/files/2848297/Editor.log)

Can you try the Mirror version on the Asset Store and see if it happens there too?
That one is still DLL based.
We switched the git version to source based weaver yesterday.

i got these errors on weaver !??

@davoodkharmanzar happens on asset store version too?

test with build 1573 [dll weaver] ... same results!
so ... i think something in my code is wrong?!?

what is wrong in my code ???

@davoodkharmanzar  in ref to your weaver errors, weaver is telling you what you did wrong.  You can't pass just anything through [Command]'s and [ClientRpc]'s.  There's a limited set of data types you can use. These are explained in the documentation in several places, including here:
https://vis2k.github.io/Mirror/Concepts/Communications/RemoteActions#arguments-to-remote-actions

The AsstetStore version is okay

@paulpach looks like we broke it again

@CrayolaEater I recommend staying with the asset store for now while we look into it

@CrayolaEater could you upload your project for us to reproduce the problem, or tell us how to reproduce with one of the Mirror examples?

He first reported the issue in Discord in the Insight channel at 3:07pm EST. There were a few commits just before that.

i'll leave the project

how do i upload it?

ok , here it is : https://drive.google.com/open?id=1YhOi254J3l1UoqdqtgtGmcqJk0f-Kv6j

Hi @CrayolaEater, I am trying to open your project, a few things:

You do not need to include the Library folder, obj folder, logs folder, or any of the CSPROJ or SLN files. You can (and should) remove anything covered by the standard Unity gitignore. Leave the Assets folder alone of course.
This issue says "Weaver errors on empty Unity project", but your project is not empty. It contains Insight, and it's organized in a peculiar way--Assets folder inside the Assets folder.

I can't help you with Insight problems. If the Weaver is indeed throwing issues on an EMPTY project, then that is a problem. I will create an empty project and see what happens.

fixed for now by reverting to DLL based weaver. please download latest version.
leaving this open for us to look into later

I took a first crack at figuring out what's going wrong here. Whatever it is happens at the lowest levels of Cecil. The unhandled exception is thrown within AssemblyDefinition.ReadAssembly which happens right at the top of Weaver.Weave. It turns out that AssemblyDefinition.ReadAssembly just wraps ModuleDefinition.ReadModule and whatever our issues is it is happening in here. Or is it? tense music
It appears like a filesystem sharing violation to me, but it's just a hunch from the exception type. I searched for others having the exact same error, but this might be a goose chase. Could it be as simple as Weaver failing to delete the pdb file, and then it accidentally being read in again? Because it definitely fails to delete the pdb file on the first pass over Assembly-CSharp.dll, leaving a warning in the console. The next pass over Assembly-CSharp.dll is the one that fails. System.InvalidOperationException is definitely something FileStream can throw, and ModuleDefinition.ReadModule is using a FileStream.
So assuming this is all down to just failing to delete the pdb, why is the pdb locked when we try to delete it in the first place? I think it's because where we call File.Delete isn't the right place. There are some notes from a previous contributor there that I haven't quite digested yet as well (#52). I'll take another crack it when I get a moment, but if this isn't where our problem is then we will need to get a debug build of Cecil so it can be stepped into to get a more accurate picture of what's happening.

I'm almost certain now that this is down to file handles not being closed. I think I have it solved for whatever version of Cecil that Unity is using (guessing it's < 0.10 .. not sure how to tell) and I'm just checking it out in 0.10.3 at the moment to see if we are able to move forward and away from Unity's version altogether. I imagine that at some point this will become a necessity though admittedly it isn't today


To be full stack Developer

https://coggle.it/diagram/WPRwtM3rjQABSZlm

Things to look at to be a Full Stack Web Developer

Will close the PR please make a new one in the base branch.


Fail to boot with match error with scala-tools-releases in repositories

steps

Set sbt version that not used before (esnure boot related jars not cached locally).
Put scala-tools-releases into repositories
Run sbt

problem
[error] [launcher] scala.MatchError: scala-tools-releases (of class xsbti.Predefined)
[error] [launcher] could not retrieve sbt 1.x.x
expectation
Boot successfully
notes
scala-tools-releases  not matched here.
This is quite hard to point out if someone have scala-tools-releases in the repositories

Scala Tools Releases (http://scala-tools.org/repo-releases) repo I don't think is operational, so if you listed it in the repositories override and the resolution fails, I think it's still within the realm of expected behavior. Maybe a more graceful degradation might be to display warning message like http vs https.

Removing scala-tools-releases should be just fine.
Sbt will report invalid predefined resolver alias like instead of a confusing match error
[error] [launcher] error during sbt launcher: java.lang.RuntimeException: Expected one of local, maven-local, maven-central, scala-tools-releases, scala-tools-snapshots, sonatype-oss-releases, sonatype-oss-snapshots, jcenter, got 'scala-tools-re'.

Here's a PR for this - https://github.com/sbt/launcher/pull/104


[Feature Request] add play-services-wearable

I would like to create a flutter app that is capable of syncing to wearos.
My android app currently utilizes com.google.android.gms:play-services-wearable.
Please add play-services-wearable to the dart libraries.

Is that a remote API or a local API?
These packages only cover remote APIs.


package.json: lint all .js files

This makes the linting process less prone to miss new (or even
existing) files. Ignoring specific file paths is delegated to the
.eslintignore file in the root directory.

:+1:

:+1:


l99 shell script bad substitution

the command l99 init tester resulted in
line 46: ${$L99_HOME:-$repo_root}: bad substituion
line 69: /home/[myuser]/shell/commands/init: No such file or directory

I noted that the path in the trace from line 69 is missing /ladder99 repo folder.
"/home/[myuser]/shell/commands/init" does, in fact, not exist.
"/home/[myuser]/ladder99/shell/commands/init" does exist
I ran echo $L99_HOME and it returned /home/[myuser]/ladder99

I fixed this issue in PR #234. Could you test the PR if it fixes this issue at your end please? Thanks in advance! :pray:

ill test this week

works! im just learning l99, but l99 init worked fine, created a new setup in setups folder.
super quick response! thx 🙏


Turn on all the working ufo tests

Description
Turn on all of the UFO tests that are working. All radiances.

Tier 1 tests passing https://github.com/GEOS-ESM/swell/actions/runs/6030056013


Fix problems with run_multiagent_rllib.py

previous format of infos caused an error
ValueError: Key set for infos must be a subset of obs: dict_keys(['score_reward']) vs dict_keys(['agent_0', 'agent_1', 'agent_2'])
rewards were provided as array
ray version 0.7.6

@googlebot I signed it!

Thanks!


Branding.ApplyBranding for Non Publishing sites

Could the above be adapted to work for Non publishing sites?

Since this sample would work with non-publishing sites, I'll close this one for now. Master page deployment target is the same and key difference is around the fact that you'll need to deploy master page to each site when publishing features are not used. Second dimension is to update MasterUrl property, which impacts normal pages. CustomMasterUrl is then for publishing pages.
If there's any other aspects which should be covered, we can re-open this issue. Thx for submitting this one.


Add endpoint to export indexing queue

This will be used by the dashboard to display the current indexing queue

Right now there is only a "re-index" queue, which is used when explicitly we want to re-index some did
we are indexing as soon as we processed the events from the network.. should we have other queue, or we are just referring to reindex queue here?
thanks

Nope, that is the one, the re-index queue, basically we want to display in the dashboard that queue

closed on https://github.com/oceanprotocol/ocean-node/pull/304


Enabling Cross-Origin Resource Sharing (CORS) in Dockerfile?

According to the Wiki, one can enable CORS in the conductor web interface, but I want to enable that by default in a Docker image based on this one. Is it possible to configure this container in that way and if yes, how?

The guidance I just provided in your other issue (#34) is applicable to this as well.

Hey Konrad, Openlink has provided a great guide on how to enable CORS: http://vos.openlinksw.com/owiki/wiki/VOS/VirtTipsAndTricksCORsEnableSPARQLURLs. I believe you can also do it through a isql statement. So that could be added in a custom image with a separate RUN command.

@langens-jonathan Hello Jonathan, thanks for the link, however that is the same one as posted at the top, which shows how to do it using a graphical user interface but not how to do it using ISQL.

@TallTed: Thank you for the guidance, I will implement that!

@KonradHoeffner, fyi in our fork you can enable the CORS setting with a env flag if you want: https://github.com/redpencilio/docker-virtuoso/ . I think it should be fairly trivial to extract and create a PR to the tenforce image if you have the time.

@nvdk: Thanks! Just executing  update DB.DBA.HTTP_PATH set HP_OPTIONS = serialize(vector('browse_sheet', '', 'noinherit', 'yes', 'cors', '*', 'cors_restricted', 0))  where HP_LPATH = '/sparql'; in the setup SQL script worked!


chore: nuget bump

Description

References

#0000

Codecov Report

Merging #435 (2f2aaea) into main (21978a1) will decrease coverage by 32.27%.
Report is 126 commits behind head on main.
The diff coverage is 19.25%.

@@             Coverage Diff             @@
##             main     #435       +/-   ##
===========================================
- Coverage   83.07%   50.81%   -32.27%
===========================================
  Files         456      436       -20
  Lines       10418     8995     -1423
===========================================
- Hits         8655     4571     -4084
- Misses       1438     4212     +2774
+ Partials      325      212      -113

Files Changed
Coverage Δ

...rchivedMessages/GetArchivedMessageDocumentQuery.cs
0.00% <0.00%> (ø)

...onfiguration/Authentication/MarketActorIdentity.cs
0.00% <0.00%> (-100.00%)
:arrow_down:

...Configuration/Commands/Commands/InternalCommand.cs
0.00% <ø> (-100.00%)
:arrow_down:

...ureData/RequestAggregatedMeasureDataTransaction.cs
0.00% <0.00%> (ø)

...ChangeAccountingPointCharacteristicsTransaction.cs
0.00% <0.00%> (ø)

...RequestChangeCustomerCharacteristicsTransaction.cs
0.00% <0.00%> (-62.50%)
:arrow_down:

...r/RequestChangeOfSupplierIncomingMarketDocument.cs
60.00% <ø> (ø)

...geOfSupplier/RequestChangeOfSupplierTransaction.cs
0.00% <0.00%> (-87.50%)
:arrow_down:

...pplication/MasterData/CustomerMasterDataContent.cs
0.00% <ø> (-91.67%)
:arrow_down:

...ication/OutgoingMessages/Dequeue/DequeueHandler.cs
0.00% <0.00%> (ø)

... and 139 more

... and 299 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Broken link in the main README

Hello.
The main README mentions the binary-scan step with a link that leads to 404
There is no mention of the binary-scan folder in the repository itself either.
This step is very interesting to me. Maybe you accidentally forgot to upload it?
P.S.: Thanks for your presentation at the DevOops conf. Very interesting speech. It inspired me to change current approaches to building pipelines in our company.

@evgeniy-kharchenko @d-nemi

Hi, @kutovoys!
Thanks for mentioning and sorry for the delay.
We used to scan artifacts with j-frog X-ray.
It's a paid proprietary software, and we don't have the license anymore, so we decommissioned 'binary-scan' module.
Thanks for pointing to the broken link, we'll fix it.
We have plans to replace x-ray with trivy, which is an opensource project.
Hopefully, we'll do it this year, but unfortunately we can't guarantee.
Thanks for your feedback and for your interest in this project!

@d-nemi Thank you for answer.
For binary scan i can suggest:

Stackrox
KubeClarity
Both products have Trivy inside

We're going to create an update for project.
Stay tuned, a lot of interesting in a further release!


[Backport 1.x] Switch to new tenant after loading a copied long URL (#1450)

Description
Backports 7f4e0f29f11668b09c5343da2cbc97ac1d6d0acf from #1450
Check List

[ ] New functionality includes testing
[ ] New functionality has been documented
[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@DarshitChanpura Could you provide a reason why the manual backport was needed?

@DarshitChanpura Could you provide a reason why the manual backport was needed?

Yes. Auto backport to 1.x failed: https://github.com/opensearch-project/security-dashboards-plugin/pull/1462#issuecomment-1638212557

Could you provide details on what conflict had to be handled, should another backport be included for this change?

Should be unblocked after https://github.com/opensearch-project/security-dashboards-plugin/pull/1521 has been merged and this pull request is rebased


Pull request for Lab02

This pull request is a proposal to merge a set of changes from my branch Lab02 into the main branch. I hope to have your inputs in my proposed set of changes. This is based on the commits from exercise Lab02-2.

Great to see your pull request.
Well done!


DBCC command 'SHOWRESULTCACHESPACEUSED' is not supported in this version of SQL Server.

Am seeing this response when trying to run this command in Synapse:
DBCC command 'SHOWRESULTCACHESPACEUSED' is not supported in this version of SQL Server.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 66637528-2d6c-4798-db89-3abd393f75a4
Version Independent ID: 21f933e5-a3d4-46a8-9f3e-b2f9e14e6647
Content: DBCC SHOWRESULTCACHESPACEUSED (Transact-SQL) - SQL Server
Content Source: docs/t-sql/database-console-commands/dbcc-showresultcachespaceused-transact-sql.md
Product: sql
Technology: data-warehouse
GitHub Login: @XiaoyuMSFT
Microsoft Alias: xiaoyul

@blakemartin -- thank you for your feedback.
@XiaoyuMSFT -- Xiaoyu, please look into this issue.

@blakemartin - Please make sure you run this command in the Synapse database, not in the master database, otherwise you will get this error.

#please-close


Website seems to be down.

Well, really simple issue. Just says
error: could not connect to host
Probably an easy fix. ;)

Hey, glad to see you are still with us :)
In fact, it's not going to be an easy fix and will take some time.
The API has changed at a point that is extremely difficult to reconstruct.

Oh that's unfortunate.
Thanks for putting in the effort though for keeping it up (hopefully!)

There is now a new experimental version of McCoupon online. Hopefully nothing crashes in the next minutes and hours.

would you be willing to release the fixed source code? ty

Fortunately, the last few days everything is going well and the problem is solved for now. The current lack of 1€ vouchers is another bug that I will address soon.

would you be willing to release the fixed source code? ty

The current fix does not consist of a single code snippet, but has required a lot of changes to McCoupon's codebase. Since the code of McCoupon itself is not public, I will not give further explanations here. However, in the McBase class of McReverse you can see which requests need a sensor token and which do not. I think that should already help.


V0.2.7

Codecov Report

Merging #16 (70a5b2f) into master (c83863c) will increase coverage by 0.04%.
The diff coverage is 100.00%.

:exclamation: Current head 70a5b2f differs from pull request most recent head a201fbb. Consider uploading reports for the commit a201fbb to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
+ Coverage   98.55%   98.59%   +0.04%
==========================================
  Files           8        8
  Lines         277      285       +8
  Branches       33       33
==========================================
+ Hits          273      281       +8
  Misses          3        3
  Partials        1        1

Impacted Files
Coverage Δ

file_validator/constants.py
100.00% <100.00%> (ø)

file_validator/exceptions.py
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Extend DateBone to allow for time values with microseconds

There are several issues that confuse or point out a todo for a DateBone supporting microseconds. There was also a request from a customer project. Therefore this issue is created.
          > > Okay. I was wrong. The datastore client doesn't throw it away, but the core in the `FileBone` does:

https://github.com/viur-framework/viur-core/blob/19f1351ffd5e9fc4269235289b78b48fa2481f71/core/bones/date.py#L242
So I don't understand why we have to do this here again.

FileBone? I dont now why throw it away. I implement the old way. May be it's historical. The datastore support microseconds in the timestamp. https://cloud.google.com/datastore/docs/reference/data/rest/Shared.Types/Value

The reason for setting the microseconds to 0 is, that additional, project-specific program code might rely on a datetime-object which is the exact time to seconds, without microseconds. In the past, I had a use-case where this was a big problem and why it was added. microseconds should only be set when the DateBone is in a yet not existing time-with-microseconds-mode.
I would like to take this PR for now as is. We can later change the behavior to respect microseconds when this is configured so.
Originally posted by @phorward in https://github.com/viur-framework/viur-core/issues/785#issuecomment-1640241907

In #954, I've seen this comment:

In the viur-meeting from Dec 8, 2023, we decided to resolve this issue differently, and split the DateBone into several bones:

DateBone - used for dates
TimeBone - used for times
DateTimeBone(microseconds=True) - used for date and time
DeltaBone - used for durations

This requires more investigation and work, may be part of viur-core > 3.6.

Therefore... we should discuss either about it or leave it for now.

We implement DateBone with a microsecond=True.


Rollback TextStringBuidler#hashCode implementation to 1.8 release

The implementation that was done in the scope of the PR !281 introduced higher rate of garbage collections because of additional allocations of String object. So I returned the code to the logic it had in the 1.8 release.

@garydgregory Sorry, I cannot answer you on the mailing list as I haven't gotten your email (it seems due to some firewall settings). So I've created PR as you suggested.

Hi @pbelousov
Thank you for the PR.
Ah, I see...
After looking at OpenJDK's Arrays.hashCode(char[]) I flipped the loop traversal to start at 0.
Please review git master and close.

Thank you @garydgregory! That's perfectly fine for my use case!
Just one question - when could it be released in order for we could get it from Maven central repo?

You can get it from the Apache snapshot Maven repository, no release date planned yet.

Got it! Thank you again!


Clicking the tag chicklet doesnt clear the search text string

Deploy the app
search for the search text "Marklogic"
Now try to pick any tag chicklet from the QnA doc list eg "mailing list"
Search text string "marklogic" does not get cleared off.
Refer to the wireframes for more details.

Isn't there an existing issue for this? What is its status? Maybe I imagined it? I've searched and now can't find it....I recall making notes in it (or trying to).... (cc @wooldridge )

#441 was a similar bug but didn't mention the search box text must be cleared as well as the filters (this is all spelled out in the wire frames). I'm committing a fix for this now.

Clicking the tag chicklet clear the search text string. Verified on 01/18 ML and latest develop code .


Question: Does this work with the hosted agents in Azure devops?

We tried running with the hosted agents but it fails like this. The message is not that helpful so I'm a bit unsure if it's the hosted agent or something else. It would be nice to confirm before we setup self hosted agents to try.

@MikaelEliasson I'm successfully using the hosted ubuntu-18.04 pool.

@petejespersqbe Thank you! I got the same error with that pool so then I know I need to look at other reasons.


[devtools] add wndt68

What's changed, or what was fixed?

adds "whats new in devtools (chrome 68)"

Fixes: N/A
Target Live Date: 2018-05-23

[x] This has been reviewed and approved by @kaycebasques
[x] I have run gulp test locally and all tests pass.
[x] I have added the appropriate type-something label.
[x] I've staged the site and manually verified that my content displays correctly.

CC: @petele

Whoops!
There were 4 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/05/devtools.md#L304 - Updates post is missing comment widget: '{% include "comment-widget.html" %}'
src/content/en/updates/2018/05/devtools.md#L28 - Common typo found: 'the the' Should it be 'the'?
src/content/en/updates/2018/05/devtools.md#L231 - Line must be at most 100 characters
src/content/en/updates/2018/05/devtools.md#L256 - Line must be at most 100 characters


Fix issue #17

Ticket(s)
Airtable ticket
Type of change
Please delete any options that are not relevant

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation or testing

Description
Add page slug to url path.
Fixes #17
Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation (if applicable)
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works (if applicable)
[ ] New and existing unit tests pass locally with my changes
[ ] I have filled this PR out fully, and cleaned up any extraneous items so that it is clear and easy to understand.

This is included in #4.


[Bug] Duplicate dll in TweakScale, Infernal Robotics and Ferram Aerospace Research Continued

Background

Operating System: Windows
CKAN Version: 1.30.4
KSP Version: 1.12.3

All mods installed using CKAN.
Problem
TweakScale installs 999_Scale_Redist.dll in GameData\ (I think moves there with config).
Infernal Robotics installs GameData\MagicSmokeIndustries\Plugins\Scale_Redist.dll (a duplicate)
Ferram Aerospace Research Continued installs GameData\FerramAerospaceResearch\Scale_Redist.dll (yet a duplicate)
TweakScale will abort fatally if duplicates exists, while all will work fine if Scale_Redist.dll is deleted from IR and FAR.

I think TweakScale didn't always throw the error for multiple Scale_Redist.dll in the past (that's kinda the purpose for redistributable libraries), but only started "recently", probably as a countermeasure to the KSP 1.12 bug with duplicate DLLs.
Looks like we need to filter them from IR and FAR, and split 999_Scale_Redist.dll from TweakScale to a separate module.
Infernal Robotics and FAR should probably move the DLL to the root of GameData so manual installers don't hit this as well (and we don't need to filter it).

Updated report to clarify it is Ferram Aerospace Research Continued, not original.

Hi! TweakScale ~culprit~maintainer here. Would it help to have the 999_Scale_Redist.dll delivered on its own zip file too?

Hey, thanks for the offer. We can pick it out of the existing zip no problem. Since the TweakScale zip is already very small, it also isn't necessary to speed up the download time.


i18n available locales

There's a discrepance between values returned by the middleman's builtin helper langs and the i18n gem's method I18n.available_languages.
I've activated the extension:
activate :i18n, mount_at_root: :it

This is what langs gives me:
langs
# => [:en, :it]

in fact I have yamls only for languages :it and :en
This is the value of I18n.available_languages:
I18n.available_locales
# => [:en, :cs, :da, :de, :es, :fr, :hu, :it, :ja, :lv, :nl, :no, :pl, :pt_br, :ro, :ru, :sv, :tr, :uk, :zh_cn, :zh_tw]

Maybe the two values should be kept in sync?
Why there isn't only I18n.available_locales?
Ty

I think I18n.available_locales refers to all the langs Padrino has localized its helpers in. We can't control I18n as it is global. Our i18n extension should be considered canonical.

I think I18n.available_locales refers to all the langs Padrino has localized its helpers in. We can't control I18n as it is global. Our i18n extension should be considered canonical.


Add ability to only check on save

Thanks for the great extension! As far as I can tell, the extension checks pretty much after every change, or if you trigger the command manually from the command pallet. I wonder if it might be a good idea to add the ability to check on save instead, and maybe even make that default behaviour. This could possibly reduce any issues you might have with API limits (or however you are accessing the Grammarly service), and also performance and network hits from the client side.
Just a suggestion, happy to have a go at a PR myself if that sounds interesting to you.

I think this is why we're getting CAPTCHA errors after about a day.
+1 for "on save" as the default checking behaviour.

@znck I'm happy to give this a go, but quickly looking through the code, I am not sure how you trigger the checks? I can't seem to see any of the typical VSCode APIs

grammarly.autoActivate: Configures Grammarly activation behavior. When set to false, you need to run Grammarly: Check grammar errors to start Grammarly service.

Kind of solves this, but open to input

I thought this parameter only delays the start of the grammarly extension, but once started it still behaves as an always on always checking implementation

The extension uses document change events to notify Grammarly API. Every document change event is converted to operational transform messages. In order to check only on save we need to create these operational transform messages by diffing document at last saved state and current save state. I started some work in the direction (https://github.com/znck/grammarly/compare/with-snapshot?expand=1) but I didn't get enough time to complete it. I am planning to revisit it again next month but if you wanna give it a try, you're welcome. Write to me if you need any help.

@znck I am happy to take a look, any chance you could assign this issue to me? (no permission), then I am more likely to find it later :)

I started looking at this, the code is complex, might take me a little while…


Tesseract 4.0 Fine training

Environment
Tesseract Version：tesseract 4.0.0
Platform64 bit Ubuntu
Current Behavior:
src/training/tesstrain.sh  --fonts_dir /usr/share/fonts  --training_text ../../training_data/chi_sim_trned.txt  --lang chi_sim --linedata_only --noextract_font_properties --langdata_dir ../../langdata_lstm --fontlist "STXihei" --tessdata_dir ../../tessdata/ --output_dir ../../tesstutorial/trainspecial
In the training Chinese execution script tesstrain.sh, the following problems occurred. Until now, no problems have been found. What should happen in those places?
Expected Behavior:
The result is same.
Warning: properties incomplete for index 20 = 县
Warning: properties incomplete for index 21 = 邢
Warning: properties incomplete for index 22 = 口
Warning: properties incomplete for index 23 = 镇
Warning: properties incomplete for index 24 = 姜
Warning: properties incomplete for index 25 = 楼
Warning: properties incomplete for index 26 = 村
Warning: properties incomplete for index 27 = 四
Warning: properties incomplete for index 28 = 组
Warning: properties incomplete for index 29 = 朱
Warning: properties incomplete for index 30 = 伟
Warning: properties incomplete for index 31 = 园
Warning: properties incomplete for index 32 = 居
Warning: properties incomplete for index 33 = T
Warning: properties incomplete for index 34 = e
Warning: properties incomplete for index 35 = x
Warning: properties incomplete for index 36 = t
Writing unicharset to file /tmp/tmp.igOfWkOIUt/chi_sim.unicharset
=== Phase E: Generating lstmf files ===
Using TESSDATA_PREFIX=../../tessdata/
[2019年 04月 29日 星期一 17:13:07 CST] /usr/local/bin/tesseract /tmp/tmp.igOfWkOIUt/chi_sim.STXihei.exp0.tif /tmp/tmp.igOfWkOIUt/chi_sim.STXihei.exp0 --psm 6 lstm.train ../../langdata_lstm/chi_sim/chi_sim.config
read_params_file: Can't open lstm.train
read_params_file: Can't open lstm.train
Tesseract Open Source OCR Engine v4.0.0 with Leptonica
Page 1
ERROR: /tmp/tmp.igOfWkOIUt/chi_sim.STXihei.exp0.lstmf does not exist or is not readable
Suggested Fix:

Always make errors in the=== Phase E: Generating lstmf files===== phase

Error is related to the following:

read_params_file: Can't open lstm.train
read_params_file: Can't open lstm.train

The above config file is in
tesseract/tessdata/configs

@stweil Is there a way for us to `symlink' or add as a submodule the configs, tessconfigs folders and pdf.ttf in tesseract/tessdata into tessdata, tessdata_best and tessdata_fast repos?

Based on your suggestion, I successfully executed the first step of the script to solve my problem. Excited. Thank you very much.

just for your information, contributor
I've had a same problem, I notice that something may goes wrong in tesstrain.sh or tesstrain_utils.sh.
If I set working directory into $TESSDATA_PREFIX's when I execute tesstrain.sh, the command do not raise error.
Therefore, in Phase E, I suggest you to make an option of tesseract command '$TESSDATA_PREFIX/lstm.train' rather than 'lstm.train'.

4.0 is old. Use 4.1
@getpa: using $TESSDATA_PREFIX/lstm.train is wrong:
a) your information simple states that training does not work if you did not setup tesseract correctly. E.g. tesseract image - pdf will not for you too =>you have wrong setup.
b) configuration could be in different locations e.g. in current directory, so your suggestion will break other working solutions, so forcing to use $TESSDATA_PREFIX is not right
c) as you stated when you setup $TESSDATA_PREFIX it works. So why you want to replace 'lstm.train' with '$TESSDATA_PREFIX/lstm.train' ??? You anyway need to set up $TESSDATA_PREFIX and using absolute path just break other solutions.
d) it should be $TESSDATA_PREFIX/config/lstm.train, right?

@zdenop thank you for your replying.
I'm sorry for my misunderstanding.
I understand what I've done wrong. I placed lstm.train into $TESSDATA_PREFIX; this is wrong, $TESSDATA_PREFIX/configs is correct.
I withdraw my suggestion.


Fix typo in prerequisites.md

Remove extra square bracket

@chos Thank you for for fixing this. I am merging this PR and it should be live soon.