React server side rendering: unable to verify the first certificate

I'm running on https. I can't seem to figure out why I'm getting this error. Everything looks roughly the same to me as the code generated from using yo to create a react/redux app. If I remove the [Authorize] app from the controller, the issue still happens. I've read this is supposed to work on this issue https://github.com/aspnet/JavaScriptServices/issues/851. Zone.js isn't in my stack because i'm using fetch from domain-task.
This is the error
Call to Node module failed with error: FetchError: request to https://localhost:44346/api/contracts failed, reason: unable to verify the first certificate
    at ClientRequest.<anonymous> (C:\Users\...\ClientApp\dist\vendor.js:44324:11)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at TLSSocket.socketErrorListener (_http_client.js:309:9)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:188:7)
    at emitErrorNT (net.js:1277:8)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)

This is my controller
[Route( "api/[controller]" )]
[Authorize]
public class ContractController : Controller
{
	private readonly ApplicationDbContext context;

	public ContractController( ApplicationDbContext context )
	{
		this.context = context;
	}

	[HttpGet( "/api/contracts" )]
	public object GetContracts()
	{
		var contracts = context.Contracts.ToList();

		return new
		{
			Contracts = contracts
		};
	}
}

This is the js calling it
import { fetch, addTask } from "domain-task"

export const FETCH_CONTRACTS = "ContractActions/FetchContracts"

export const fetchContracts = () => dispatch => {
	let fetchTask = fetch("/api/contracts", {
		method: "GET",
		credentials: "same-origin",
		headers: {
			"Content-Type": "application/json"
		}
	}).then(response => response.json()).then(data => {
		dispatch({
			type: FETCH_CONTRACTS,
			contracts: data.contracts
		});
	});

	addTask(fetchTask);
	dispatch({ type: FETCH_CONTRACTS });
}

I guess you're using a self-signed cert (e.g., an IISExpress development cert), rather than a real HTTPS certificate. In that case, Node won't accept it by default, because Node doesn't use the system-configured list of trusted CAs - it uses a hard-coded built-in list of CAs instead (which has been reported as a bug to Node many times, but remains the case).
To fix this, you can either:

Use a package such as ssl-root-cas to configure Node to trust your self-signed cert. I had a quick go at doing this, and couldn't get it to accept my IISExpress cert, so I'm not sure exactly what the process is. If you find out how to make this work, please let us know! However, even if you do make this work, it will still be inconvenient, because if you have more than one developer on your team using their own self-signed cert, they will each have to take steps to export that cert into some location where it can be read at runtime.
Or, much more easily, disable HTTPS cert validation just for the requests where you know you are calling your own API from your backend (because in that case, the request isn't even going to leave the machine, so it's not really relevant to protect against MitM attacks). This is fairly simple to do. Add a function like the following to the file where you're making a fetch call (e.g., in WeatherForecast.ts):

function createRequestOptions(skipHttpsValidation: boolean): RequestInit {
    const isNode = typeof window === 'undefined';
    if (isNode) {
        var Agent = (require('https') as any).Agent;
        return {
            agent: new Agent({ rejectUnauthorized: !skipHttpsValidation })
        } as RequestInit;
    }
}

... and then change your fetch call from fetch('someurl') to fetch('someurl', createRequestOptions(true)) if you want to bypass HTTPS cert validation on that specific request. Don't do this for requests to external servers where you want to retain HTTPS cert validation.
I know it would be better if Node just used the system-configured CAs, but I'm not aware of a way to make it do that. If anyone does know a cross-platform way, please let us know!

BTW I know it's poor that this doesn't just work out of the box. Filed #1090 to track this, though it's possible that we can't do anything about it.

I'm getting an error when trying to use the Agent workaround.
Call to Node module failed with error: FetchError: invalid json response body at https://localhost:44346/Account/Login?ReturnUrl=%2Fapi%2Fcontracts reason: Unexpected token < in JSON at position 0
    at C:\Users\...\ClientApp\dist\vendor.js:14521:31
    at process._tickDomainCallback (internal/process/next_tick.js:135:7)

The server call has [Authorize] on it. If I take that off, it works. It looks like it's pulling the login page which makes sense if you're not authorized, which I am at this point. Normally I just have credentials: "same-origin" as an option in my fetch request and auth just works. It doesn't seem to when using the agent though.
Any idea how to get auth to work when using agent?

I was able to fix this by setting global.cookie = params.data.cookie; in my server.js file. The cookie is Cookie = (string)Context.Request.Headers["Cookie"] from the cshtml file. In my create fetch options method I then set the Cookie header along with the rejectUnauthorized setting.
Is there a better way to do this?

In general, you are on the right lines: if you want requests issued during server-side prerendering to have the same auth cookies as the request incoming to ASP.NET, then you need to pass that cookie data through to your JS boot code using asp-prerender-data, receive it in JS via params.data, and then ultimately set that on the outbound requests.

global.cookie = params.data.cookie;

I'm not familiar with the global.cookie API. I searched and couldn't find any references to what that is or where it's used. If it really is a "global" cookie store (as in, it will get used on all requests), then that's pretty alarming because you might be using the auth cookie from one user when prerendering for a different user. What you're doing might be fine, but I'd at least check that there's no way you're leaking cookie data from one user to another like this.

global meaning node's global scope. I have a method createFetchOptions that will check if it's running under node. If so, it'll use the agent stuff to set rejectUnauthorized, and it'll also set the cookie header with global.cookie. It's like the browsers window. cookie is just the property I'm creating for it. ;)

For reference, here is the method I'm using.
export function createFetchOptions(options = {}) {
	const isNode = typeof (window) === "undefined";
	const nodeOptions = !isNode ? {} : {
		agent: new (require("https").Agent)({
			rejectUnauthorized: false
		}),
		headers: {
			"Content-Type": "application/json",
			"Cookie": global.cookie
		}
	};

	const fetchOptions = {
		method: "GET",
		credentials: "same-origin",
		headers: {
			"Content-Type": "application/json"
		},
		...nodeOptions,
		...options
	};

	return fetchOptions;
}

it'll also set the cookie header with global.cookie. It's like the browsers window. cookie is just the property I'm creating for it

That sounds very dangerous. It sounds like you might be inadvertently sharing auth cookie values across different users. Anything you set on global is going to be reachable by code serving unrelated requests - it's like assigning to a static in C#.

That's not good. I figured each web request would have it's own instance of node that's running. Does the node instance running share it's data/context/global/whatever between aspnet web requests then?

I figured each web request would have it's own instance of node that's running

That would be really bad for performance :) Starting up a new Node instance takes at least a second or two. You can't really do that on every request. So we retain the same Node instance and use it to handle invocations across all requests. We only restart it if it crashes or has to be restarted because some code changed.

Does the node instance running share it's data/context/global/whatever between aspnet web requests then?

It's the same as any other Node runtime (because it is a real Node runtime).

Thanks. I'll look into another way of doing this.

How I fixed this issue is to put a cookie property on my initial redux state. Then on a fetch if it's a node request, it'll use the redux store state cookie.
For cookies in react components, I used react-cookie. This makes cookies available in components for server or client.

@JoshClose Hi Josh, I was wondering if you could give any insight on how you used react-cookie in a JavaScriptServices project. Any code-snippets of boot-client.tsx or boot-server.tsx, maybe?

React.cshtml

Loading...

server.js
const initialState = {
	antiforgeryToken: params.data.antiforgeryToken,
	cookie: params.data.cookie,
	user: params.data.user || {}
};
const store = configureStore(createMemoryHistory(), initialState);

client.js
const initialState = window.initialReduxState;
const store = configureStore(history, initialState, logger);

function renderApp() {
	// This code starts up the React app when it runs in a browser. It sets up the routing configuration
	// and injects the app into a DOM element.
	render(
		<AppContainer>
			<Provider store={store}>
				<CookiesProvider>
					<ConnectedRouter history={history}>
						<Routes/>
					</ConnectedRouter>
				</CookiesProvider>
			</Provider>
		</AppContainer>,
		document.getElementById("root")
	);
}

@JoshClose Wow you rock! Thank you for the quick response! Do you think you can show me how you're setting the cookie on a fetch?
I've got this but I'm not certain it is working for me:
private getOptions(options?: RequestInit): RequestInit {
        const isNode = typeof window === 'undefined';
        if (isNode) {
            if (options) {
                if (options.headers) {
                    return {
                        credentials: "include",
                        ...options,
                        headers: {
                            ...options.headers,
                            'Cookie': this.cookie
                        }
                    };
                }
                return {
                    credentials: "include",
                    headers: {
                        'Cookie': this.cookie
                    },
                    ...options
                };
            }
            return {
                credentials: "include",
                headers: {
                    'Cookie': this.cookie
                }
            };
        }
        if (options) {
            return {
                credentials: "include",
                ...options
            };
        }
        return {
            credentials: "include",
        };
    }

fetch-options.js
export function createFetchOptions(state, options = {}) {
	if (!state) {
		throw new Error("Parameter 'state' is required for function 'createFetchOptions'.");
	}

	const isNode = typeof (window) === "undefined";
	let nodeOptions = {};
	if (isNode) {
		if (!state.cookie) {
			throw new Error("Property cookie on state is required for server side rendering.");
		}

		nodeOptions = {
			agent: new (require("https").Agent)({
				rejectUnauthorized: false,
			}),
			headers: {
				"Content-Type": "application/json",
				"Cookie": state.cookie
			}
		};
	}

	const fetchOptions = {
		method: "GET",
		credentials: "same-origin",
		headers: {
			"Content-Type": "application/json"
		},
		...nodeOptions,
		...options
	};

	return fetchOptions;
}

I appreciate your help. I'm still having issue I'm not sure what my deal is.
react-cookie version 2.1.4-2.1.5 isn't loading hoist-non-react-statics correctly so I'm getting a typing error in react-cookie's typing file.
I tried react-cookie 2.0.8 which you might've been using 10 months ago when you made this post. But everything from 2.0.8-2.1.3 doesn't have typings.
It's a nightmare!

Your server.js should have the CookieProvider too.
		const app = (
			<Provider store={store}>
				<StaticRouter context={routerContext} location={params.location.path}>
					<CookiesProvider cookies={new Cookies(params.data.cookie)}>
						<Routes />
					</CookiesProvider>
				</StaticRouter>
			</Provider>
		);

You may also need to use withCookies in some situations.

@JoshClose I guess I'm confused about why you need CookiesProvider & withCookies. My understanding is the point of those is to get the Cookies type into props.cookies but why do you need cookies in props if you have them in initialState and are getting them into fetch without using props?

If you need to use the cookies on your page.

Gotcha. I'm debugging on Node now and I can see that I'm getting FetchError code "UNABLE_TO_VERIFY_LEAF_SIGNATURE", so, same error as above. Unable to verify the first certificate.
My cookie is being sent in the header but I'm never hitting any breakpoint in my authentication on the aspnet side so I don't think it's making it out of Fetch.

For future reference, it looks like this is now built into domain-task/fetch. https://github.com/aspnet/JavaScriptServices/issues/1090#issuecomment-313405030


linuxmint failed to build

clone repo
git submodule update --init --recursive
mkdir build
cd build
cmake ..
cmake --build . --config Release or make

Produces below  error
from /home/yash/projects/gui/kiui/sub/toyobj/src/toyobj/Store/Store.h:10:0,
from /home/yash/projects/gui/kiui/sub/toyobj/src/toyobj/Store/Array.h:10,
from /home/yash/projects/gui/kiui/sub/toyobj/src/toyobj/Procedure.h:10,
from /home/yash/projects/gui/kiui/sub/toyobj/src/toyobj/Procedure.cpp:5:
/home/yash/projects/gui/kiui/sub/toyobj/src/toyobj/Iterable/Iterable.h:46:195: error: invalid initialization of non-const reference of type ‘toy::Lref&’ from an rvalue of type ‘toy::Lref’
onst { this->iterate([callback, &type = this->elementType()](TypeObject& object) { return callback(Lref(object, object.type())); }); }
^
sub/toyobj/src/CMakeFiles/toyobj.dir/build.make:86: recipe for target 'sub/toyobj/src/CMakeFiles/toyobj.dir/toyobj/Procedure.cpp.o' failed
make[2]: *** [sub/toyobj/src/CMakeFiles/toyobj.dir/toyobj/Procedure.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'sub/toyobj/src/CMakeFiles/toyobj.dir/all' failed
make[1]: *** [sub/toyobj/src/CMakeFiles/toyobj.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

It should be fixed now, but I should let you know that kiui is in the course of a long overhaul started a few months ago, which is mostly finished but there are still quite some issues to fix.
So kiui will continue to be quite unstable until a couple more months.

Cutting edge vs Maturity
I will choose cutting edge which always quite unstable. Your frameworks and idea look cool.
Only if possible please remove third party dependencies wherever possible. This way people can easily pick yours.
Thanks :)

./toyui_example
Segmentation fault

This is probably because the error reporting is very lacking.
I added some logging for the issue I suppose you're having : I guess the resource path is pointing to a wrong location. Check the console, and probably TOYUI_RESOURCE_PATH compiler define is not pointing to the data\ folder.


Upgrade map dependencies

the react-map-gl wrapper we use to render maps has been updated and requires api changes: https://visgl.github.io/react-map-gl/

fixed by @gkovats in #366


⚠ Fortnite has degraded performance

In f178292, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1634 ms

Resolved: Fortnite performance has improved in 4bb67cd.


wake up timer partially respected (IDFGH-8828)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v4.4
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
ESP32E
Power Supply used.
USB
What is the expected behavior?
esp_sleep_enable_timer_wakeup
it uses uint64_t
I should be able to set a time of millions of billions of us
What is the actual behavior?
I set 2,148,000,000 (or higher), it stops but it does not sleep (it reboots immediately: "DEEPSLEEP_RESET")
If I reduce to 2,147,500,000 it works as expected.
#define INACTIVEPERIOD 2147.5
sleepDuration = ( INACTIVEPERIOD * 1000000);
esp_sleep_enable_timer_wakeup( sleepDuration );
Since it is a very easy to reproduce, I would think either something I made wrong, or a similar case already exists. I'd be sorry for both.
Steps to reproduce.

working setup / set the code:
#define INACTIVEPERIOD 2147.5
sleepDuration = ( INACTIVEPERIOD * 1000000);
esp_sleep_enable_timer_wakeup( sleepDuration );
not working setup / set the code:
#define INACTIVEPERIOD 2148
sleepDuration = ( INACTIVEPERIOD * 1000000);
esp_sleep_enable_timer_wakeup( sleepDuration );

Debug Logs.
No response
More Information.
No response

@sergioaiello The issue you are running into is that in C the expression 2148 * 1000000 is evaluated as signed integer multiplication. Signed ints are from -2147483648 to<PHONE_NUMBER>. The multiplication above produces a signed integer overflow, and the resulting value is -2146967296.
You need to convert one of the operands to 64-bit int to get the result you expect:
#define INACTIVEPERIOD 2148
sleepDuration = ( INACTIVEPERIOD * 1000000ULL);

By the way, the compiler should produce a warning about the code you have posted, along the lines of:
warning: integer overflow in expression of type 'int' results in '-2146967296' [-Woverflow]
   14 |     sleepDuration = ( INACTIVEPERIOD * 1000000);

Thank you and sorry for my mistake
No, I had only this warning "#warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
Tested with 3600 and worked flawlessly.
I'm going to close this case.


Rename gpgtools Casks to gpg-suite

https://github.com/caskroom/homebrew-cask/issues/39862
https://github.com/caskroom/homebrew-cask/pull/39865

Passes audit, fails uninstall.
==> Quitting application ID com.apple.mail
==> 40:44: execution error: Mail got an error: User canceled. (-128)
Error: Command failed to execute!
==> Failed command:
/usr/bin/sudo -E -- /usr/bin/osascript -e tell application id "com.apple.mail" to quit


pubsub: the maxPayload size used in splitAckIDs is larger than allowed by gRPC.

After upgrading our pubsub client from the http based client to the gRPC client we noticed a huge drop in our ack rate for high volume subscriptions.   But at the same time our pull rate and processing rates remained the same.
By adding error logging to acker.go, I discovered these consumers were dropping all of the acks with this error.
2016/12/07 22:14:41.421964 acker.go:162: ack dropping 6151 msgs: error:rpc error: code = 3 desc = Request payload size exceeds the limit: 524288 bytes.

After lowering the maxPayload const to be 512k, the errors stopped and my ack rate returned to normal.
maxPayload       = 1 * 1024 * 1024

Should be:
maxPayload       = 512 * 1024

Thanks for the report, CL practically wrote itself.
https://code-review.googlesource.com/#/c/9758

thanks for fixing it so fast.


Recover chainsel idempotency

This PR forces chain selection to pick selections that follow the LoE fragment. That is, either they extend the LoE fragment, or they are extended by the LoE fragment.
Additionally, we no longer trigger the GDD when the selection changes. This was used in the past as a convoluted mechanism to trigger chain selection repeteadly until no more changes were done to the selection.
Also we relax the amount of blocks that can be selected again. We can select up to k blocks after the youngest intersection of all candidate fragments. Before we would select only up to k blocks from the intersection of the LoE fragment and the current selection.
Lastly, we avoid triggering chain selection on every downloaded header. We do this by retriggering chain selection only when GDD changes the tip of the LoE fragment.

Merged and squashed in 45953b5.


max, min, max_by_key, min_by_key should match sequential iterators

The parallel max and min have a different signature from the sequential variant. They return Self::Item instead of Option<Self::Item>. They also don't work on all Ord types. (These are related.) It'd be good to change them to match, I think. In so doing, we can also add support for max_by_key and min_by_key. This would also simplify the implementation to boot!
The idea is to replace the existing, oddball methods with methods that invoke reduce_with(). They should work for any iterator where Self::Item: Ord.
If you've not hacked on Rayon before, also check out the guide to development.

I'm working on this.

Sorry about the unfortunate interference; I wrote the patch this morning, but only now noticed @utkarshkukreti's message.

No problem @tapeinosyne. I'll work on something else :)


Issue with backspace when style is set to direction:ltr

with pictured setting, pressing backspace in the input causes a crash:

seems to be solved by ditching the style


Domain Joined

In the 'those not joined to a domain or compliant in Intune' statement, are you referring to Azure Active Directory domain joined? What happens if we have devices joined to an internal, non-Azure, but trusted domain?

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

ID: 2f2abda5-9273-1a56-91b6-e4e77d5706b0
Version Independent ID: 6a85f2a5-b892-55f7-b49a-4ab15f1e8b73
Content: Control access from unmanaged devices
Content Source: SharePoint/SharePointOnline/control-access-from-unmanaged-devices.md
Service: sharepoint-online
GitHub Login: @kaarins
Microsoft Alias: kaarins

@rhyspaterson Thank you for this inquiry
I am not sure about the answer to this Azure inquiry. Let me get this over to the SharePoint team for investigation.
The team will get this prioritized into a sprint plan. Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@lightupdifire : its is none of these cases, "Hybrid Azure AD Join" is a local AD domain joined PC also registered in Azure AD using an automatic process : https://docs.microsoft.com/en-us/azure/active-directory/devices/hybrid-azuread-join-managed-domains

@MaximeRastello
Thank, I found it out too, when policy is activated, the Conditional Access policy created, where it is set: require Compliant device. Then device can be "MDM+AD registered" only as soon as it become compliant by MDM all works fine.

@rhyspaterson  Thank you for submitting this feedback.
From our understanding the issue has been resolved. If you feel it hasn't been resolved please re-open this issue.

@officedocsbot close


XMLRPC - Unable to connect to sonarr/radarr

Support guidelines

[X] I've read the support guidelines

I've found a bug and checked that ...

[X] ... the documentation does not mention anything about my problem
[X] ... there are no open or closed issues that are related to my problem

Description
I'm trying to setup a servere where the torrent client would be this r/rutorrent image tied together with sonarr and radarr. However I have no luck getting a connection to rtorrent from sonarr. My .env variables is the following:
RT_DHT_PORT=6881
XMLRPC_PORT=8005
RUTORRENT_PORT=8081
WEBDAV_PORT=9001
RT_INC_PORT=55000
Connection string from sonarr is:

Rutorrent is working fine, and if i try the Rutorrent port (8081), then i can see the in the logs that it hits the server, so the host is correct.
What am I missing here?
Expected behaviour
Id expect that i can connect to sonarr through RPC2. I have not setup any AUTH in the passwd files.
Actual behaviour
Not connecting to rtorrent through RPC2
Steps to reproduce

Install docker sonarr and docker-rtorrent-rutorrent
Try to connect the to using the setup ports

Docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.8.2)
  compose: Docker Compose (Docker Inc., v2.4.1)
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
  scan: Docker Scan (Docker Inc., v0.17.0)

Server:
 Containers: 4
  Running: 4
  Paused: 0
  Stopped: 0
 Images: 13
 Server Version: 20.10.14
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
 runc version: v1.0.3-0-gf46b6ba
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: <IP_ADDRESS>-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 4.818GiB
 Name: docker-desktop
 ID: WACZ:JABX:2YGV:LJ2Y:6ZMZ:CYME:QV5X:3BBS:LQQ6:KHO3:67LU:ARLY
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5000
  <IP_ADDRESS>/8
 Live Restore Enabled: false

Version

Docker compose version (type docker-compose --version): docker-compose version 1.29.2, build 5becea4c
System info (type uname -a):

Docker compose
version: "3.2"

services:
  rtorrent-rutorrent:
    image: crazymax/rtorrent-rutorrent:latest
    expose:
      - "${RT_DHT_PORT}/udp"
      - "${XMLRPC_PORT}"
      - "${RUTORRENT_PORT}"
      - "${WEBDAV_PORT}"
      - "${RT_INC_PORT}"
    ports:
      - target: ${RT_DHT_PORT}
        published: ${RT_DHT_PORT}
        protocol: udp
      - target: ${RUTORRENT_PORT}
        published: ${RUTORRENT_PORT}
        protocol: tcp
      - target: ${WEBDAV_PORT}
        published: ${WEBDAV_PORT}
        protocol: tcp
      - target: ${RT_INC_PORT}
        published: ${RT_INC_PORT}
        protocol: tcp
    env_file:
      - "rtorrent-rutorrent.env"
      - ".env"
    volumes:
      - "c:\\Configs\\Docker\\rutorrent\\config:/data"
      - "e:\\downloads:/downloads"
      - "c:\\Configs\\Docker\\rutorrent\\passwd:/passwd"
    ulimits:
      nproc: 65535
      nofile:
        soft: 32000
        hard: 40000
    restart: always

  #rtorrent-logs:
  #  image: bash
  #  command: bash -c 'tail -f /log/*.log'
  #  depends_on:
  #    - rtorrent-rutorrent
  #  volumes:
  #    - "c:\\Configs\\Docker\\rutorrent\\log:/log"
  #  restart: always

Container logs
1653285874 N rtorrent main: Starting thread.
1653285874 N rtorrent scgi: Starting thread.
Not sure where to find them unfortunately.
Additional info
No response

if you haven't figured out already use "/plugins/rpc/rpc.php" instead of RPC2 as stated below

Having the same problem here.
Only way to get it working is to make a bridge network between the two containers, but that makes it so rtorrent can't times out when contacting trackers.
When accessing the RPC2 url at /plugins/rpc/rpc.php I get the error Link to XMLRPC failed. May be, rTorrent is down?.

I just noticed that by default the docker-compose file doesn't actually expose the XMLRPC port, I had to add that manually.
      - target: ${XMLRPC_PORT}
        published: ${XMLRPC_PORT}
        protocol: tcp

I just noticed that by default the docker-compose file doesn't actually expose the XMLRPC port, I had to add that manually.
      - target: ${XMLRPC_PORT}
        published: ${XMLRPC_PORT}
        protocol: tcp

Good catch! Been struggling on this for over an hour. Will create a PR for this soon.


Smoke tests should validate Known Authority Constants

Depends on https://github.com/Azure/azure-sdk-for-java/issues/8627

There's a PR for this: https://github.com/Azure/azure-sdk-for-java/pull/9658


Fix property graph case-sentisitivity

Fix issue: https://github.com/cwida/duckpgq-extension/issues/176
Tables names are case-insensitive. Example SQL to display:
-- Create table with lower-case.
D CREATE TABLE test_person (name TEXT);
-- Query table with upper-case.
D SELECT * FROM Test_person;
┌─────────┐
│  name   │
│ varchar │
├─────────┤
│ 0 rows  │
└─────────┘

This PR uses case-intensitive map to store registered property graphs.
Test result:
ubuntu@hjiang-devbox-pg$ ./build/debug/duckdb
v1.1.4-dev1 c380346433
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
D CREATE TABLE Student(id BIGINT, name VARCHAR);
D CREATE TABLE know(src BIGINT, dst BIGINT, createDate BIGINT);
D CREATE TABLE School(school_name VARCHAR, school_id BIGINT, school_kind BIGINT);
D INSERT INTO Student VALUES (0, 'Daniel'), (1, 'Tavneet'), (2, 'Gabor'), (3, 'Peter');
D INSERT INTO know VALUES (0,1, 10), (0,2, 11), (0,3, 12), (1,2, 14), (1,3, 15), (2,3, 16);
D -CREATE PROPERTY GRAPH pg VERTEX TABLES (    Student PROPERTIES ( id, name ) LABEL Person,    School as school_alias PROPERTIES ( school_id, school_name ) LABEL School IN School_kind (Hogeschool, University)    )EDGE TABLES (    know    SOURCE KEY ( src ) REFERENCES Student ( id )            DESTINATION KEY ( dst ) REFERENCES Student ( id )            PROPERTIES ( createDate ) LABEL Knows    );
┌─────────┐
│ Success │
│ boolean │
├─────────┤
│ 0 rows  │
└─────────┘
D -SELECT count(id)FROM  GRAPH_TABLE (PG     MATCH p = (s1:Person)-[k:Knows]->(s2:Person WHERE s2.name='Daniel')     COLUMNS (s1.id));
┌───────────┐
│ count(id) │
│   int64   │
├───────────┤
│         0 │
└───────────┘
D -SELECT count(id)FROM  GRAPH_TABLE (PG     MATCH p = (s1:Person)-[k:Knows]->(s2:Person WHERE s2.name='Tavneet')     COLUMNS (s1.id));
┌───────────┐
│ count(id) │
│   int64   │
├───────────┤
│         1 │
└───────────┘
D -SELECT count(id)FROM  GRAPH_TABLE (PG     MATCH p = (s1:Person)-[k:Knows]->(s2:Person WHERE s2.name='Gabor')     COLUMNS (s1.id));
┌───────────┐
│ count(id) │
│   int64   │
├───────────┤
│         2 │
└───────────┘
D -SELECT count(id)FROM  GRAPH_TABLE (PG     MATCH p = (s1:Person)-[k:Knows]->(s2:Person WHERE s2.name='Peter')     COLUMNS (s1.id));
┌───────────┐
│ count(id) │
│   int64   │
├───────────┤
│         3 │
└───────────┘

Thanks for the PR! I wasn't aware this would be such a minor change haha
Regarding the formatting: there is a PR ongoing to add formatting to the CI. Once that's in place we'll focus more on making sure the formatting is correct. https://github.com/duckdb/extension-ci-tools/pull/121

Thanks for the PR! I wasn't aware this would be such a minor change haha

Thank you for giving me the opportunity! And apologize for the latency :( Was working on something else

Regarding the formatting: there is a PR ongoing to add formatting to the CI. Once that's in place we'll focus more on making sure the formatting is correct. https://github.com/duckdb/extension-ci-tools/pull/121

Yeah I'm aware of it (last time you pointed me to your formatting CI PR), looking forward to the integration!

I appreciate your contribution very much, even if it was a minor fix. Don't worry about the latency!


Some model. cannot be opened.

Several models from the official collections (https://www.live2d.com/en/download/sample-data/) cannot be opened. Such as Niziiro Mao, and Haru (not the receptionist version, the normal one down there).
I always received such kinds of errors.
00:07:03: Starting /media/sf_VB_shared/build-QtLive2d-Desktop_Qt_6_4_2_GCC_64bit-Debug/src/Sample/Sample...
START
[CSM][I]Live2D Cubism Core version: 04.02.0003 (67239939)

[CSM][I]CubismFramework::StartUp() is complete.

[CSM][I]CubismFramework::Initialize() is complete.

[APP]model index: 0
[APP]load model setting: Haru2.model3.json
[APP]create buffer: Resources/Haru2/Haru2.model3.json
file open error
00:07:04: /media/sf_VB_shared/build-QtLive2d-Desktop_Qt_6_4_2_GCC_64bit-Debug/src/Sample/Sample crashed.

And when I run the code using debug, in CubismJson.cpp, the line 107  _root = ParseValue(reinterpret_cast<const csmChar*>(buffer), size, 0, &endPos); , which called the line 369 csmChar c = static_cast<csmChar>(buffer[i] & 0xFF); caused this.
I validated all the JSON files in those model folders, they are all valid. It would be greatly appreciated if you could find the reason. Thanks.

Could you double check the location of the new models? When you are adding new model, please make sure the models are in the build directory build-QtLive2d-Desktop_Qt_6_4_2_GCC_64bit-Debug/src/Sample/Resources as well. When Qt Creator build the  project, it will copy Resources folder from src to the build directory.  But if you don't rebuild it, it won't help you copy.
Please let me know if that works.

Thanks for your prompt response!
Confirmed. I always use clean before building. Now I also tried manually delete the entire built folder.
I added haru2 in LAppDefine.cpp. This haru is the normal one in the official collections. After the building, I can see the model in both the F:\VB_shared\build-QtLive2d-Desktop_Qt_6_4_2_GCC_64bit-Debug\src\Sample\Resources\haru2 and F:\VB_shared\QtLive2d_new\src\Sample\Resources\haru2.  But it crashed without opening the window.

Hi sucv, just tried on my own to add a haru to the application. Everything is fine. Here is a document for adding the model to Sample.
Step 1: Add the model to Resources folder, make sure the model folder has following structure.
└───Haru2
    │   ...
    │   Haru2.model3.json
    │   ...
    ├───expressions
    │
    ├───Haru.2048
    │
    ├───motions
    │
    └───sounds

We use haru2 as example, since we already have a model called haru, the new model will called haru2.
Step 2: Modify LAppDefine.cpp, add addition line called haru2 in the ModelDir variable.
    const csmChar* ModelDir[] = {
        "miku_sample_t04",
        "Haru",
        "Hiyori",
        "Mark",
        "Natori",
        "Rice",
        "Haru2"
    };

When we try to load model Haru2, firstly, LAppDefine.cpp will try to find a folder called Haru2 under the Resources folder. Then it will try to find a Haru2.model3.json file where store all information about a Live2d model under Haru2 folder. So, the most important thing will be make sure LAppDefine.cpp can find the *.model3.json.
From the log u provide to me, I think there is 2 possibility,

The model3.json file is not directly under model folder
There folder and model is named Haru2 but there isn't exist a Haru2.model3.json.

Please let me know if the above information is helpful for you. And feel free to ask me if u have any other questions.

Oh my, I named the model folder haru2, but I didn't also change the json name to haru2.model3.json.
Thanks again for your help!

no worries.


Ensure consistent logging for all validators

Add the username and operation for all logs.
Tested: deployed with verbose logging and ensured the username and op
were visible for all operations.
Fixes #1138

/assign @yiqigao217
/assign @GinnyJI

Just 1 question - is it okay to have user info in the logs?

Yes - logs already contain highly sensitive information, such as the names of namespaces and objects. Access to logs is typically highly restricted as well.
Metrics are often less restricted so you wouldn't want to put PII into them. But only the cluster admin(s) should be able to access the logs.

Thanks for the explanation!
/lgtm


Add Ruby buildpack to builder-22

The readme has a section about supported languages. Seems like you could add Ruby to the section referring to heroku/builder images.

Once this merges, we'll also want to update the required status checks for the main branch :-)

Once this merges, we'll also want to update the required status checks for the main branch to include the new Ruby jobs :-)

Added


Update necessary .env variables in prod version of the webapp to point to the new TokenFactory contract

@tbwebb22 I think this is safe to close


How to restyle with renderPerEdge

Hello,
How can I change the style after calling renderPerEdge? Example, changing the color between red and blue using two buttons. It seems to rerender additionally for each click if I call below code on button click.
layers.renderPerEdge(customLayer, (ctx, edge, path) => {
  ctx.strokeStyle = btnColor;
  ctx.stroke(path);
});

the customLayer should have an update function that you can call to force a rerender.
Alternatively, you can customize using the third parameter which events should trigger a rerender.

Sorry I'm not very good at this and not sure how to update with customLayer. What I did is assigning a variable to layers.renderPerEdge and then remove that variable renderedEdges.remove(). If it is an acceptable solution, please close this issue or let me know to close it.

have you tried calling customLayer.update() to force a render update instead?

Hi @sgratzl,
I just tried and it works great. Is there any disadvantage of removing layers.renderPerEdge.


Make the homepage mobile layout a bit nicer

The old robat graphics, being quite simple, worked quite nicely at the tiny size they were rendered on mobile.
Now the graphics are larger and more detailed, the mobile layout probably needs some reworking to make them really pop (and not look so squashed and diminutive)

Pretty much done in 06c4388add72dbb137eed312dfbba17f2cf2cd45


Add kmeans

Closes #312.

Codecov Report

Merging #472 (15a77d0) into main (6078871) will decrease coverage by 6.11%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #472      +/-   ##
==========================================
- Coverage   90.98%   84.86%   -6.12%
==========================================
  Files          75       76       +1
  Lines        4158     4177      +19
  Branches      790      790
==========================================
- Hits         3783     3545     -238
- Misses        205      457     +252
- Partials      170      175       +5

Flag
Coverage Δ

unittests
84.86% <100.00%> (-6.04%)
:arrow_down:

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

Impacted Files
Coverage Δ

hummingbird/ml/operator_converters/__init__.py
100.00% <100.00%> (ø)

...mmingbird/ml/operator_converters/sklearn/kmeans.py
100.00% <100.00%> (ø)

hummingbird/ml/supported.py
87.50% <100.00%> (-3.77%)
:arrow_down:

...ummingbird/ml/containers/sklearn/tvm_containers.py
17.18% <0.00%> (-81.25%)
:arrow_down:

...mmingbird/ml/operator_converters/sparkml/linear.py
42.85% <0.00%> (-57.15%)
:arrow_down:

...bird/ml/operator_converters/sparkml/discretizer.py
52.94% <0.00%> (-35.30%)
:arrow_down:

.../ml/operator_converters/_linear_implementations.py
75.00% <0.00%> (-22.73%)
:arrow_down:

...ird/ml/operator_converters/onnx/one_hot_encoder.py
62.50% <0.00%> (-18.75%)
:arrow_down:

hummingbird/ml/_topology.py
67.38% <0.00%> (-17.60%)
:arrow_down:

hummingbird/ml/convert.py
66.82% <0.00%> (-16.83%)
:arrow_down:

... and 9 more

Continue to review full report at Codecov.

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


Update Travis-CI tests to cover new features:

[x] Chroot to directory instead of an image.
[x] No-setuid / unprivileged mode.
[ ] Updated signal handling.
[ ] Exit statuses on external signals.
[x] Target mode (once merged).
[x] Scratch directories.
[x] User bind mounts.
[ ] Slave mounts.
[x] No new privs.
[x] Disable setuid binary via configuration file.

Can we close this? I think (even the unchecked) items are mostly in there, granted they may not be in the test.sh... I'm not sure if they all can be (e.g. slaves)?

Yup - I think we can reopen for the next set of tests.

Thanks!


Fix required for changes in brooklyn-server

Required by new argument in https://github.com/apache/brooklyn-server/pull/289

worth having but we really need to address https://github.com/apache/brooklyn-server/pull/280#issuecomment-243621305


"Missing partial hooks/_base_head[...]" after install

Hi !
I found ur plugin really usefull and my company need it into our redmine version.
I git clone ur project but unfortunetly after install and restarted apache2 I can't access to my redmine.
I tried to install another version and/or change folder name but nothing worked. I'm not really familiar with Ruby and Rails, I searched on google but didn't find the best solution for my problem.
logs:
Started GET "/redmine/" for <IP_ADDRESS> at 2016-12-14 15:11:37 +0000
Processing by WelcomeController#index as HTML
Current user: admin (id=1)
Rendered welcome/index.html.erb within layouts/base (22.6ms)
Missing template, responding with 404
Rendered common/error.html.erb within layouts/base (0.5ms)
Completed 500 Internal Server Error in 181ms (ActiveRecord: 21.0ms)
ActionView::Template::Error (Missing partial hooks/_base_head with {:locale=>[:fr, :en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :rsb]}. Searched in:

"/usr/share/redmine/app/views"
):
13: <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
14: <%= javascript_heads %>
15: <%= heads_for_theme %>
16: <%= call_hook :view_layouts_base_html_head %>
17:
18: <%= yield :header_tags -%>
19:
lib/redmine/hook/view_listener.rb:59:in block (2 levels) in render_on' lib/redmine/hook/view_listener.rb:57:in map'
lib/redmine/hook/view_listener.rb:57:in block in render_on' lib/redmine/hook.rb:61:in block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in each' lib/redmine/hook.rb:61:in block in call_hook'
lib/redmine/hook.rb:58:in tap' lib/redmine/hook.rb:58:in call_hook'
lib/redmine/hook.rb:96:in call_hook' app/views/layouts/base.html.erb:16:in _app_views_layouts_base_html_erb__1738642019237050746_37558060'
app/controllers/application_controller.rb:470:in block (2 levels) in render_error' app/controllers/application_controller.rb:468:in render_error'
app/controllers/application_controller.rb:456:in render_404' app/controllers/application_controller.rb:480:in missing_template'

Redmine information:
Environment:
Redmine version                3.2.1.stable
Ruby version                   2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
Rails version                  4.2.6
Environment                    production
Database adapter               Mysql2
SCM:
Git                            2.7.4
Filesystem
Redmine plugins:
no plugin installed
Thanks in advance if someone can help me a bit,
Best regards,

Hi. Did you renamed redmine_plugin_computed_custom_field directory to computed_custom_field?

Hi annikoff !
Yes I did and I tried to install a lowest version but same problem.. I'm looking for a solution on google. If I resolve my problem I notice u.
Best regards,

Hi !
I resolve my problem, I delete my VM and install a new with new  redmine isntallation from scratch. Now ur plugin works :+1:
But if u have juste five min could u help me with another problem ?
I created 3 computed yields in "Project", they all are "disabled" and display nothing :/
Many thanks,
Best regards,

Cool :)


Start-Process does not populate the process object's exit code with NoNewWindow switch

Prerequisites

[X] Write a descriptive title.
[x] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
I noticed that the Start-Process cmdlet sometimes does not populate the ExitCode property in the output, I believe it should.
This happed at least when -PassThru, -Wait, and -NoNewWindow switches are provided. -NoNewWindow seems to be the reason, since the exit code is available without it.
Steps to reproduce
You can see this behavior with this simple test script
Set-Content -Value "exit 1" -Path script.ps1
$p = start-process "pwsh" script.ps1 -PassThru -NoNewWindow -Wait
$p.ExitCode  # Should output: 1
$p = start-process "pwsh" script.ps1 -PassThru -Wait
$p.ExitCode # Outputs: 1

Expected behavior
PS C:\> set-content -Value "exit 1" -Path script.ps1
PS C:\> $p = start-process "pwsh" script.ps1 -PassThru -NoNewWindow -Wait
PS C:\> $p.ExitCode
1
PS C:\> $p = start-process "pwsh" script.ps1 -PassThru -Wait
PS C:\> $p.ExitCode
1

Actual behavior
PS C:\> set-content -Value "exit 1" -Path script.ps1
PS C:\> $p = start-process "pwsh" script.ps1 -PassThru -NoNewWindow -Wait
PS C:\> $p.ExitCode
PS C:\> $p = start-process "pwsh" script.ps1 -PassThru -Wait
PS C:\> $p.ExitCode
1

Error details
No response
Environment data
PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.0-preview.5
PSEdition                      Core
GitCommitId                    7.4.0-preview.5
OS                             Microsoft Windows 10.0.20348
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

Although the symptoms have changed a bit,  the root cause is likely the same as in:

https://github.com/PowerShell/PowerShell/issues/5421#issuecomment-416354272

That is, it seems that an exception occurs behind the scenes due to the process handle not being available (for reasons unknown to me), which PowerShell quietly swallows, causing $null to be returned from .ExitCode (and .Handle).
This now seems to always happen with -NoNewWindow, whereas it previously didn't happen if -Wait was specified too.
That is, both ($p = start-process "pwsh" script.ps1 -PassThru -NoNewWindow -Wait).Handle and $p = start-process "pwsh" script.ps1 -PassThru -NoNewWindow; $p.WaitForExit(); $p.Handle now output nothing, and therefore also return $null via .ExitCode.
In Windows PowerShell (and seemingly also earlier versions of PS Core), the -Wait variant (only) does work.

We've just hit this too (as we have PowerShell Core set to auto-update).
Unfortunately we use Start-Process in a lot of places so it's going to be quite painful to implement the above workaround 😞

+1

+1

+1

what the heck, this is pretty bad. How did this slip past testing. I have a number of scripts using '-wait' which are now all bonkers because the ExitCode and various other properties on system.diagnotic.process objects are now missing since 7.4 update. Can we please fix this ASAP

Weird, is this as known issue too?
In one of my scripts I tried swapping from in Start-Process
$runresult = Start-Process "$initExe" -ArgumentList "$initExeArgs" -wait -NoNewWindow -PassThru
if ($runresult.exitcode -ne 0)

to a simple call operator ('&'), thinking this would do the trick
& "$initExe" $initExeArgs

And while it works in a Terminal prompt, where the EXE sends prompt output to the terminal and then waits for input (as below)
Enter password for your user:

If I run that same '&' call embedded in a .ps1 script. It seems to have the Input/Output redirection issues, as the saem EXE in the same terminal doesn't output the prompt text. Instead it just hangs waiting for input. It still works, but it's confusing as to why the prompt goes missing in that context?

Ok, got it working similar to what @mklement0 posted in https://github.com/PowerShell/PowerShell/issues/20400#issuecomment-1740954070
The one difference is that to get the same behaviour in terms of screen output when running manually in a terminal AND when running it as part of a larger .ps1, I merged had to merge the WaitForExit() line. If I didn't do this, then the Output (input prompt) from the EXE was showing up on a PS prompt line (with the current directory prefix) when it was run in a terminal (but not when run in a large .ps1).
By merging these onto a single line for some reason it then shows the EXE prompt goes to a new line (consistently with running the same command in a larger .ps1)
So in the end I went from
$runresult = Start-Process "$init" -ArgumentList "$initOptions" -wait -NoNewWindow -PassThru
if ($runresult.exitcode -ne 0)

to
$runresult = [System.Diagnostics.Process]::Start('pwsh', "-command & '$init' $initoptions") ; $runresult.WaitForExit()
if ($runresult.ExitCode -ne 0)

Just to add ... this doesn't happen on MacOS ...
Name                           Value
----                           -----
PSVersion                      7.4.0
PSEdition                      Core
GitCommitId                    7.4.0
OS                             Darwin 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct  9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

@softwarebear, I see it on macOS too (same PS and OS version); e.g.
(Start-Process -Wait -NoNewWindow date).ExitCode
outputs just the date and no exit code.

Good to know, @softwarebear.
Similarly, Linux seems to be unaffected (simple test command, for all platforms:
(Start-Process -Wait -NoNewWindow -PassThru whoami).ExitCode
Should print both the username and exit code 0)

@jlpetz, @derkveenhof found a simpler workaround - see my updated comment above.

Just to add ... this doesn't happen on MacOS ...
Name                           Value
----                           -----
PSVersion                      7.4.0
PSEdition                      Core
GitCommitId                    7.4.0
OS                             Darwin 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct  9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Just to be consistent ...
PS /Users/softwarebear/dev/1e/taas> (Start-Process -Wait -NoNewWindow -PassThru whoami).ExitCode                                                     softwarebear                     0 PS /Users/softwarebear/dev/1e/taas> (Start-Process -Wait -PassThru whoami).ExitCode                 softwarebear                     0 PS /Users/softwarebear/dev/1e/taas>

Thanks. On Unix-like platforms -NoNewWindow is implied, that's why both commands behave the same there.
On Windows - and that is the bug - only the form without -NoNewWindow reports an exit code (while - as expected - showing no whoami.exe output in the calling console, because it runs in a separate window).

I am also experiencing this issue now after upgrading to PowerShell v7.4.0 x64 on Windows.
In PowerShell v7.3.10 it works fine:

In PowerShell v7.4.0 it doesn't return the ExitCode with -NoNewWindow, while it does return the ExitCode without -NoNewWindow:

We have the same issue on Windows.

+1 on Windows Server 2022 and Windows 11

It looks like this will be fixed in v7.4.1:

#20866


build logs -continue fails for active builds

C:\Users\user1>appcenter build logs --continue --app "Team/App" --id 35

Error: failed to get build logs because build 35 doesn't exist

In this particular case build #35 is an actively running build.  It seems to me that the purpose of the --continue option is to get active logs from a running build.  Otherwise what's the point of --continue?  I would like to leverage this feature to provide live build status feedback through our Jenkins node that launched this job.
Thanks!

Any updates on it?
IMHO it's pretty basic functionality.

As we do not have plans to fix this bug in the next year, I'm closing the issue.


docs: improve definition of a Backup

After some building, I realized that a backup is a snapshot of a resource, not the whole m365 service. Initially, I assumed that 1 backup takes the whole service per tenant (https://discord.com/channels/1022200980487557130/1022200981376745474/1231385151376719892). This doc update should help clear the confusion more.
Maybe there is a better way to word it, so any other suggestions are welcome.

Does this PR need a docs update or release note?

[x] :white_check_mark: Yes, it's included
[ ] :clock1: Yes, but in a later PR
[ ] :no_entry: No

Type of change

[ ] :sunflower: Feature
[ ] :bug: Bugfix
[x] :world_map: Documentation
[ ] :robot: Supportability/Tests
[ ] :computer: CI/Deployment
[ ] :broom: Tech Debt/Cleanup

Issue(s)

#

Test Plan

[ ] :muscle: Manual
[ ] :zap: Unit test
[ ] :green_heart: E2E

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@ashmrtn no problem, I added your apostrophe suggestion btw.

@ashmrtn any idea why the build fails?

Sorry! I forgot GH can be weird about displaying actions sometimes. Looks like a line too long linting error
docs/setup/concepts.md:26:121 MD013/line-length Line length [Expected: 120; Actual: 138]

If you want to run the linter locally there's directions in a README in the website folder as well 😄

@ashmrtn aha, ok. I couldn't find that error in the logs.
I fixed the line length.


Check IDL

I stumbled upon this while clicking through on links from the candid repo:
https://github.com/dfinity/motoko/blob/master/design/IDL-Motoko.md?plain=1#L309-L318
Is there are reason that this has been removed? Are there other ways of doing this?
I currently assign the service from the Motoko bind (generated by didc) to an actor class which does some type checking for me.
@chenyan-dfinity I hope you don't mind being tagged here.

You can do this directly in motoko code, i.e., import External "canister:canister_name_in_dfx". You can also use didc to generate the Motoko bind explicitly. Both approaches should work.

I will use the didc way for now, I don't want to rely too much on dfx. I will play around with --actor-idl and --actor-alias directly to get import X "canister:name" to work.

If you do it manually, you can also use import X "ic:canister-id", and put canister-id.did in the actor-idl directory. This way, you don't need to pass in --actor-alias.


Reviewer Workflow is not smooth

As a user who is performing Reviews, I have scored a submission and want to score the next submission
To do this I must navigate "back" then navigate "in" when it feels like I want to navigate "next"

@drakedanner we discussed this in the redirect issue with the team on Friday, we had decided that after you score you'll be redirected back to the submission you just scored..sounds like you feel like you should actually redirect back to the all submissions list? here's the comment where we outlined all of those for @thehannahlerman https://github.com/MetricsDAO/xyz/issues/336#issuecomment-1426137793


Release: MS-SQLINTBLOGLP updates for SQL19 GA

Release: MS-SQLINTBLOGLP updates for SQL19 GA

Docs Build status updates of commit 3826569:
:warning: Validation status: warnings

File
Status
Preview URL
Details

documentation/blog/MS-SQLINTBLOGLP/1d0338c5-7d2f-47be-be42-0b20e4189a46.md
:warning:Warning

Details

documentation/blog/MS-SQLINTBLOGLP/65508e04-e6fa-4dcd-8955-0abd99f70de6.md
:warning:Warning

Details

documentation/blog/MS-SQLINTBLOGLP/a7511e7f-928d-40fd-adf1-3a4d66e10e09.md
:warning:Warning

Details

documentation/blog/MS-SQLINTBLOGLP/d45bd6dc-d610-4bda-a97e-24ef4b438b6f.md
:warning:Warning

Details

documentation/blog/MS-SQLINTBLOGLP/toc.yml
:white_check_mark:Succeeded

documentation/blog/MS-SQLINTBLOGLP/1d0338c5-7d2f-47be-be42-0b20e4189a46.md

[Warning] Author openspecs-office cannot be recognized in GitHub.

documentation/blog/MS-SQLINTBLOGLP/65508e04-e6fa-4dcd-8955-0abd99f70de6.md

[Warning] Author openspecs-office cannot be recognized in GitHub.

documentation/blog/MS-SQLINTBLOGLP/a7511e7f-928d-40fd-adf1-3a4d66e10e09.md

[Warning] Author openspecs-office cannot be recognized in GitHub.

documentation/blog/MS-SQLINTBLOGLP/d45bd6dc-d610-4bda-a97e-24ef4b438b6f.md

[Warning] Author openspecs-office cannot be recognized in GitHub.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fix #595 TileLayer not getting disposed correctly

Correctly dispose TileLayer and Tiles in the order required by the TickerProviderStateMixin. The AnimationController in the tiles was not being disposed at all. After this change _pruneTiles sometimes gets called after the widget is already disposed - added a mounted check to prevent this.

Would be nice to get this into a new release. 0.9.0 is unusable for me.

You can still use your fix as dependency until new release:
  flutter_map:
    git:
      url: git://github.com/johnpryan/flutter_map.git
      ref: a00355b13951605e88e6a16152f18852886a387e

Or:
  flutter_map:
    git:
      url: git://github.com/kuhnroyal/flutter_map
      ref: fix-tilelayer-dipose

I know ;)


BackgroundDownloader 4GB limit.

There is a 4GB limit issue the both for FAT and NTFS.

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

ID: 6c118de4-72f1-a3c9-1c9d-e3bb84e67a84
Version Independent ID: fb4eae57-c653-1308-21a8-8311d16dfb2f
Content: BackgroundDownloader.CreateDownload Method (Windows.Networking.BackgroundTransfer) - UWP app developer
Content Source: https://cpubwin.visualstudio.com/DefaultCollection/windows-uwp/_git/winrt-api-build?path=%2fwinrt-api-build%2fwindows.networking.backgroundtransfer.backgrounddownloader.yml&version=GBlive&_a=contents
Service: unspecified
GitHub Login: @wdg-dev-content
Microsoft Alias: wdg-dev-content

Hi, @cattura, my apologies for the long delay in responding. I've reached out to the product team for info here and I'll report back and/or fix the topic when I get info. ~Steve

Hi, @cattura, I now have info from the product team. The 4GB limit is with the FAT, but not the NTFS, file systems. So, I've added a "Note" panel to the CreateDownload and CreateDownloadAsync methods to that effect. I'll go ahead and close this issue now. Please reopen if necessary, and thank you for the heads up on this omission from the docs! ~Steve


[DNM] Check token cache issue

Just for test, actual issue got resolved with neutron restart workaround, actual fix incoming in neutron


Created and updated docs for 1.20-19

Created and updated docs for 1.20-19
closes #1145
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


chore: croc-hunter-jenkinsx to 0.0.78

chore: Promote croc-hunter-jenkinsx to version 0.0.78

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

Needs approval from an approver in each of these files:

OWNERS

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


How can I instal it on bungeecord

I have a a bungeecord server Network its made a bungeecord with a local host it are all apart server conected but its not working I have tried many things but it don`t works please help. the plugin it self works
but its not connected to the other servers on the bungeecord console it works but if I /bperms do I only get the version of the plugin.

Please see here: https://github.com/lucko/LuckPerms/wiki/Setup


Solve error during reset action test

Master branch tests are failing so all pull requests fail too. This small change solve the issue.

Changes Unknown when pulling 1ec758ffa10ce37db07775ce803d85be19b182da on pfructuoso:master into ** on waterlock:master**.

thanks! 😄


Typings and other minor changes

Please check it thoroughly before merging, as it contains some breaking changes

The breaking change on the TrackList must be removed, as that would break semver, aka the old structure must remain there.
raw on Track will never be null, nor the info property for it, so the ? is not really needed there
The TrackList change however can be implemented in v3 but that isn't happening yet. Other than that this is fine

The breaking change on the TrackList must be removed, as that would break semver, aka the old structure must remain there.
raw on Track will never be null, nor the info property for it, so the ? is not really needed there
The TrackList change however can be implemented in v3 but that isn't happening yet. Other than that this is fine

Alright wait for few sec

Ok check it again and lemme know if there's any issue

Seems ok thanks for the pr


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/24976

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/26198

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/29904

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/30846

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/32102

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/44143

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/52553

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/58145


TODO: Wargame으로 공부하는 Pwnable

F.T.Z
LOB
Pwnable.kr
Exploit-Exercises

파일 다운로드 경로

FTZ :  업로드 중...
LOB

Redhat: http://hackerschool.org/TheLordofBOF/TheLordOfTheBOF_redhat_bootable.zip
Fedora Core 3: http://hackerschool.org/TheLordofBOF/VM_FC3.zip
Fedora Core 4: http://hackerschool.org/TheLordofBOF/VM_FC4.zip
Fedora 10: http://hackerschool.org/TheLordofBOF/VM_Fedora10.rar
Fedora 14: http://hackerschool.org/TheLordofBOF/VM_Fedora14.rar

Exploit Exercises

Nebula: https://drive.google.com/drive/folders/0B9RbZkKdRR8qLWZBcVBvanlLb1U
Protostar: https://drive.google.com/drive/folders/0B9RbZkKdRR8qbkJjQ2VXbWNlQzg
Fusion: https://drive.google.com/drive/folders/0B9RbZkKdRR8qV1BsVkRxak0zcVU


Results when comparing to pymedphys.gamma

Hi @samuelpeet,
I have been meaning to run a comparison of flashgamma to pymedphys.gamma for quite some time. Anyway, I worked through it this morning using the example files you provided at:

https://raw.githubusercontent.com/samuelpeet/flashgamma/c00f388856cd3651b706a7b117ff90930aa5ee54/examples/sample_snc_extracted_data.snc
https://raw.githubusercontent.com/samuelpeet/flashgamma/master/examples/sample_arccheck_measurement.txt

If you're interested I have uploaded the results into the following zip:
compare_to_flash_gamma.zip
Cheers,
Simon

So that the results can be seen within the issue, here is what flash gamma presented:

and here is PyMedPhys' results for the same dataset:

It would be interesting to be able to get to the bottom of the discrepancy...


Linting error:  PackageManager.PERMISSION_GRANTED should be PermissionChecker.PERMISSION_GRANTED

Bug

I run linting in my CI, and I'm finding that it is failing from react-native maps with the following:
  Errors found:

  /home/circleci/project/client/mobile/node_modules/react-native-maps/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapView.java:421: Error: Must be one of: PermissionChecker.PERMISSION_GRANTED, PermissionChecker.PERMISSION_DENIED, PermissionChecker.PERMISSION_DENIED_APP_OP [WrongConstant]
      return checkSelfPermission(getContext(), PERMISSIONS[0]) == PackageManager.PERMISSION_GRANTED ||
                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/circleci/project/client/mobile/node_modules/react-native-maps/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapView.java:422: Error: Must be one of: PermissionChecker.PERMISSION_GRANTED, PermissionChecker.PERMISSION_DENIED, PermissionChecker.PERMISSION_DENIED_APP_OP [WrongConstant]
          checkSelfPermission(getContext(), PERMISSIONS[1]) == PackageManager.PERMISSION_GRANTED;
                                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Environment info

React native info output:
System:
    OS: macOS 10.15.2
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 2.69 GB / 32.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.14.1 - /var/folders/8v/nt6q98150ss138rdc78htqxr0000gn/T/yarn--1580323889747-0.3482888728490914/node
    Yarn: 1.18.0 - /var/folders/8v/nt6q98150ss138rdc78htqxr0000gn/T/yarn--1580323889747-0.3482888728490914/yarn
    npm: 6.13.2 - ~/.nvm/versions/node/v12.14.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
  IDEs:
    Android Studio: 3.5 AI-191.8<IP_ADDRESS>10548
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6
    react-native: ^0.60.6 => 0.60.6

Library version: 0.26.1
Technically, we're using our own fork, but it just has one small extra commit to solve an issue we were having.

did you fix this?

Any update on this? Exact same issue on react-native-maps 0.27.1

Bump on this issue

still have this issue, any solutions?

i just open android project in Android Studio and gradle itself increased from com.android.tools.build:gradle:3.5.3 to `com.android.tools.build:gradle:4.1.2. And build is successful now. Just try to open project in Android Studio and let it do a magic


Support git dependencies

Fixes #574
Fixes #598
Problem:
We don't support most types of npm dependency listed here. ~Unfortunately, this PR doesn't reach the point of solving that, because there is still an outstanding issue with yarn (https://github.com/yarnpkg/yarn/issues/8238), which has an open PR (https://github.com/yarnpkg/yarn/pull/8239) that has unfortunately been awaiting feedback since July.~ - yes it does now reach the point of solving the github part :smiley:
Fix:
Most of the problem here comes from the way in which we resolve versions, how we fetch those dependencies via the server, and then how we blank out certain files and fetch those later.
To fix the version resolution, I've used npm-package-arg for determining the type of the dependency (this is used by npm install itself, so this is far more reliable than trying to write something ourselves for this). I've also changed the way the server fetches the possible matching versions, by reading the version field rather than the versions field from npm view <package>@<version>, which returns either a concrete version or an array of matching versions. We then use semver to find the best match if the specified version was a semver range.
For improving the dependency fetching, I've removed the separation of version from package name when making the packager request to the server, since for github dependencies we don't want to concat them in the same way as when specifying npm dependencies.
For the final issue (fetching blanked files), I've used hosted-git-info, which provides functionality for looking up specific files in a git dependency. ~However, I've been unable to verify that this works fully because of the above yarn issue.~ I have now verified that this does work.
Follow Up:
~Given there appears to be no movement on the above yarn issue, I think the only way to finish this is to either create our own fork, or tweak the process to use npm instead. I'll create a ticket for this.~ Ok that ended up being super quick so I've committed directly to this branch rather than creating a new PR specifically for that change.

Does this mean we can remove yarn from shell.nix?

I believe it does :) I will make the change and push (along with resolving the conflicts)


Proposal: Add a check option to verify the local network environment

I have completed the relevant code and it is in my forked repository.
I did the following things:

Added proxy for OpenAI's LLM.
Added a check option to verify the local network environment.
Added a ProxySettings configuration.
Every time PrepareCommitMsg is executed, it will check the local network environment.

Why I add check option
Recently, there is a type of software called OpenAI Translator. The translator that does more than just translation - powered by OpenAI.
The author is distressed by some negative reviews because some users' OpenAI account was banned due to their local network issues.
I have referred to the strategy of OpenAI Translator and added a 'check' option to check the user's local network conditions.

If you think this proposal is useful, I will submit a PR.
If you think checking the local network environment is the user's own responsibility, then ignore this proposal.

I additionally add a configuration option “ensure_network” to control checking network environment every OpenAI API inquiries

Thanks for the proposal @iGxnon, I like how you add more configurability to the proxy settings. Ensuring network is an understandable need for users where access is not authorized.
I believe that the problem of access and network checking falls outside of this project and would best be implemented in its own crate to separate concerns. gptcommit is happy to support proxy configurations as needed, but it should be on the user to ensure the network configuration is working as expected.

OK, I’ll close this issue.


PHP-CS-Fixer bridge for StyleCI

I propose you to integrate this bridge that will permit to contributors to fix CS with php-cs-fixer fix command easily with .styleci.yml configuration interpretation.
The command to run the fixer is still the same:
php-cs-fixer fix -v

The difference is StyleCI configuration is synced with PHP-CS-Fixer to avoid mistakes.

Thanks for your proposal @Soullivaneuh !
Why do you think this is better than simply applying the patch generated by StyleCI? Adding a dev dependency seems a bit too much just for this.

Well, personally, I would prefer to fix code myself with command line and avoid pollute GitHub with StyleCI PRs and sub PRs.
For more objective opinion, this solution provide both solutions to developers: Command line or WebInterface.
For command line, developers will have insurance that configured fixers are the same as StyleCI.

Adding a dev dependency seems a bit too much just for this.

I saw worst, you don't have a lot of dev deps. BTW, dev deps is just for dev env, this lib will not included when developers use your bundle. :+1:
But, because you're talking about this, I would recommend to remove phpunit deps and use directly the binary. This is a huge dependency. :-)

@Soullivaneuh Is this bridge complete? i.e. does it work with all fixers and presets that are available on StyleCI? AFAIK there are fixers on StyleCI that are not available in PHP-CS-Fixer, no?

AFAIK there are fixers on StyleCI that are not available in PHP-CS-Fixer, no?

The only missing fixer is psr-4 that I think it will be proposed to official repository.
Three things about it:

An issue is opened to find a way to get missing fixers directly on the bridge: https://github.com/Soullivaneuh/php-cs-fixer-styleci-bridge/issues/10
Starting PHP-CS-Fixer 2.0, the bridge will show warnings for each missing fixers configured from .styleci.yml, thanks to FixerFactory
For the few (only one at the moment) missing fixers, StyleCI will still work on PR by showing diff and propose auto-correction.

In any case, this bridge is a helper for php-cs-fixer command line lover, it's still better than no .php_cs file at all. :-)

@Soullivaneuh ok, thanks for the explanation!

@Soullivaneuh Thanks for your explaination and your PR :) !

@webmozart @tgalopin You're welcome. :+1:


DeprecationWarning

dtype should not be instantiated here but as a .tag(dtype=...)
https://github.com/jupyter-widgets/traittypes/blob/0a030b928991dec732c17a7a1cb13acbcd7650a2/traittypes/traittypes.py#L269
PR could be pretty direct but I am not sure about the implications of such changes...

The problem is here: https://github.com/jupyter-widgets/ipyleaflet/blob/12ebba78899966a05245ee0f16e2872c26e4ae6a/ipyleaflet/leaflet.py#L316 Not in this package. Thanks though! 👍

Well the line doesn't hurt, I actually remove the dtype argument on my side, but the warning is still there:
[hidden]/lib/python3.7/site-packages/ipyleaflet-0.11.3-py3.7.egg/ipyleaflet/leaflet.py:316: DeprecationWarning: metadata {'dtype': None} was set from the constructor. With traitlets 4.1, metadata should be set using the .tag() method, e.g., Int().tag(key1='value1', key2='value2')
  data = Dataset().tag(sync=True, to_json=ds_x_to_json)

Ah. I see the issue:

This definition of dtype should be move to the parent: https://github.com/jupyter-widgets/traittypes/blob/0a030b928991dec732c17a7a1cb13acbcd7650a2/traittypes/traittypes.py#L277
The parent init should take a dtype argument, and use that to set self.dtype: https://github.com/jupyter-widgets/traittypes/blob/0a030b928991dec732c17a7a1cb13acbcd7650a2/traittypes/traittypes.py#L237

sounds legit
you want me to do the PR or is it faster for you to just commit it?

I'm doing a web edit

Xref #41.

@vidartf
The issue (warning) is still there; are you planning to merge your PR?


Error while test serialize the ciphertext

A toy example:
def main():
    HE = Pyfhel()  # Creating empty Pyfhel object
    p =<PHONE_NUMBER>
    m = 8192
    assert ((p - 1) % (2 * m) == 0)
    assert (isprime(p))
    HE.contextGen(p=p, m=m, base=2, sec=192, flagBatching=True)
    HE.keyGen()

    list1 = np.array([1, 2, 3])
    list2 = np.array([2, 3, 4])

    ctxt1 = HE.encryptArray(list1)  # Encryption makes use of the public key
    ptxt2 = HE.encodeArray(list2)

    ctxt2 = PyCtxt()
    ctxt2.from_bytes(ctxt1.to_bytes(), 'array')

    ctxt2 + ptxt2

Error:
File "Pyfhel/PyCtxt.pyx", line 298, in Pyfhel.PyCtxt.PyCtxt.__add__
AttributeError: 'NoneType' object has no attribute 'add_plain'

A toy example:
def main():
    HE = Pyfhel()  # Creating empty Pyfhel object
    p =<PHONE_NUMBER>
    m = 8192
    assert ((p - 1) % (2 * m) == 0)
    assert (isprime(p))
    HE.contextGen(p=p, m=m, base=2, sec=192, flagBatching=True)
    HE.keyGen()

    list1 = np.array([1, 2, 3])
    list2 = np.array([2, 3, 4])

    ctxt1 = HE.encryptArray(list1)  # Encryption makes use of the public key
    ptxt2 = HE.encodeArray(list2)

    ctxt2 = PyCtxt()
    ctxt2.from_bytes(ctxt1.to_bytes(), 'array')

    ctxt2 + ptxt2

Error:
File "Pyfhel/PyCtxt.pyx", line 298, in Pyfhel.PyCtxt.PyCtxt.__add__
AttributeError: 'NoneType' object has no attribute 'add_plain'

Hi @allensll. You seem to be trying to copy ctxt1 into ctxt2. However, if you just copy the internal buffer, ctxt2 has no knowledge of what Pyfhel instance to use in order to perform operations. The preferred (and fastest) way of copying a ciphertext is the following:
#...
ctxt2 = PyCtxt(copy_ctxt=ctxt1)

Alternatively, if for whatever reason you want to serialize it from/to bytes, you should explicitly define the Pyfhel instance to be used:
# Option 1:
ctxt2 = PyCtxt(pyfhel=HE)
ctxt2.from_bytes(ctxt1.to_bytes(), 'array')

# Option 2:
ctxt2 = PyCtxt()
ctxt2.from_bytes(ctxt1.to_bytes(), 'array')
ctxt2._pyfhel = HE

Nonetheless, a better error message could help. I'll add it.

Thanks, @ibarrond. I serialize it because I want to communicate between a client and a server. The client encrypts data and sends it to the server, then the server does some computing and returns it to the client, then the client decrypts the result.
So, how can I send the Pyfhel instance to the server？ Or any better communication method？

There is a dedicated Demo for this purpose, where the ciphertexts are saved on files prior to sending them. I suggest you use it for inspiration:
https://github.com/ibarrond/Pyfhel/blob/master/examples/Demo_ClientServer.py
It is perfectly valid to send the bytes representation instead (as the payload of a message). In this case, I encourage you to use the Option 1 from above.


Allow pipeline state to be stored somewhere other than the system database

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2046
Originally created by @DouweM on 2020-05-19 20:39:08

Spun out of https://gitlab.com/meltano/meltano/-/issues/2023

View 8 previous comments from the original issue on GitLab

Great idea! https://docs.meltano.com/concepts/state_backends#undefined


[FEATURE REQUEST] Export timeframe: "since last export"

It would be handy to have an option to export all booking-entries which were added since previous export

I figured out a workaround:

on exporting, select "delete entries after exporting"
next time you can just export all

Downside of this workaround:

all auto-suggestions will be lost which is very inconvinient

Thanks for the comment.
It actually worked in the beginning, but after some exports it stopped working.
Very recently, I imported my gnucash file again and amazingly it worked again.
I could close this thread for now. Once I experience it again, I may open a bug issue


chore: adaptations for nightly-2024-02-01

This is the adaptation PR for nightly-2024-02-01.
In rolls in the branches

#9843, prepared by @mattrobball, which has the adaptations for leanprover/lean4#2478
#10133, prepared by @semorrison, which has the adaptations for leanprover/lean4#3210

As these both landed in the same nightly, we're having to do the update in one go.
Note this nightly is intended to become v4.6.0-rc1 tomorrow.

Thanks. I looked over the changes last night from #9843 and everything looked good except that. I thought I push a fix though.


fixed css for replace dialog to prevent overlaping clear button with …

…search field

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] 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 change)

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes and the overall coverage did not decrease.
[ ] All unit tests pass on CircleCi.
[ ] I ran all tests locally and they pass.

@rismehta Testing css properties need visual testing. @pranay-tippa is working on it. Once his PR is merged, we can add the test for this.


minmax

Summary of Change:
This update refines the minimax function in the Tic-Tac-Toe AI implementation by ensuring depth checking is optional and more clearly handling depth decrements. The algorithm now supports a depth parameter that can be left as None, allowing for unlimited recursion when desired.
Motivation and Context:
The primary motivation for this change is to enhance the flexibility of the Minimax algorithm. By allowing the depth parameter to be None, it can operate in scenarios where depth limits are not necessary, making it easier to adapt the AI's decision-making for different levels of complexity. Additionally, the structure of the code has been improved for better readability and maintenance.
Issue Fixed:
Fixes issues related to depth handling in the Minimax algorithm, enabling proper functionality whether a depth limit is applied or not.
Dependencies:
There are no additional dependencies required for this change.
How can we test this?
Test Configuration:

Run the Tic-Tac-Toe game: Test the Minimax AI by executing the game with various depth settings, including None and specific numerical values.
Verify decision-making: Ensure that the AI continues to make optimal moves with the new depth handling.
Error checking: Confirm that no errors occur during gameplay and that the AI behaves as expected across different game scenarios.

Tests Conducted:

Scenario 1: AI plays without a depth limit (depth set to None).
Scenario 2: AI plays with a specific depth limit (depth set to a small number).
Scenario 3: Observed the AI's performance against a human player.

Checklist

[ ] My code follows the style guidelines of this project
[ ] 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
[ ] My changes generate no new errors

Hello @jayadarshinig0609 thank you for this! I see that you have created a new file minimax.py at the root of the project. Could you make this change within the tictacai/logic/minimax.py module instead? Then test this new change with the existing logic?


Reset form fields after clicking submit button

Reset form fields after clicking submit button.

I have also revamped the /thank-you page, and clearing the form comes for free when you navigate away from it, as expected.
Kindly note the renaming of two environment variables in 5c07634 to make them visible client side.

@lacabra added a line that appends a newline character to end of file to prevent the pull request from breaking when the Github CI runs eventually.


Rewriter doesn't parse sigs with override/overridable

Input
→ View on sorbet.run
# typed: strict

module IFoo
  extend T::Sig
  extend T::Helpers
  abstract!

  sig {abstract.returns(T.nilable(Integer))}
  def good_method; end

  sig {abstract.params(arg0: T.nilable(Integer)).returns(T.nilable(Integer))}
  def good_method=(arg0); end

  sig {abstract.returns(T.nilable(Integer))}
  def bad_method; end
end

class Foo
  include IFoo
  extend T::Sig

  sig {override.returns(T.nilable(Integer))}
  attr_accessor :good_method

  sig {returns(T.nilable(Integer)).override}
  attr_accessor :bad_method
end

Observed output
editor.rb:26: Use of undeclared variable @bad_method https://srb.help/6002
    26 |  attr_accessor :bad_method
                         ^^^^^^^^^^

editor.rb:26: Use of undeclared variable @bad_method https://srb.help/6002
    26 |  attr_accessor :bad_method
                         ^^^^^^^^^^

editor.rb:26: This function does not have a sig https://srb.help/7017
    26 |  attr_accessor :bad_method
          ^^^^^^^^^^^^^^^^^^^^^^^^^
Errors: 3

Expected behavior

The good_method and bad_method case should behave identically. The only difference is the placement of the .override in the sig builder.

This is very similar to https://github.com/sorbet/sorbet/pull/3159, which might serve as an inspiration for a potential implementation.

This was only partially fixed in #8308—the original issue didn't mention overridable but the problem affected sigs using overridable just the same as with overridable.


Investigate moving deployment of dgidb to the cloud

This would allow us to have more control over site updates, and that in turn would help us turn on auto-updating of some content sources.  Current updates require a 45 minute outage.

This should be mitigated somewhat by #148.

@obigriffith @malachig, do we still want to look into this? Costs should certainly be part of this discussion

I guess the big question is how critical this currently is.

Perhaps it's entirely unnecessary, with sufficient modification to our puppet deploy process and DGIdb background tasks. @susannasiebert is working on live auto-updating (from the production environment, see #148), and @acoffman and I could probably work out a faster way of deploying DGIdb, or at least providing friendlier responses while it's updating.


[dunfell][gatesgarth][hardknott][honister] {foxy} Various small fixes

Merged to other branches as well:
49b2fc127..7b0e0f7e5  dunfell -> dunfell-next
739faed73..ac76af82e  gatesgarth -> gatesgarth
739faed73..ac76af82e  gatesgarth -> gatesgarth-next
68c175287..2ce758bc3  hardknott -> hardknott
68c175287..2ce758bc3  hardknott -> hardknott-next
68c175287..2ce758bc3  master -> master
68c175287..2ce758bc3  master -> master-next


Sorting elements causes text highlight on macOS Chrome

I'm trying to set up a Sortable with HTML that looks like this:

    <svg viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" /></svg>
    Text here

Here is how I'm setting up the Sortable:
let elem = document.querySelectorAll('.d-container')
new Sortable(elem, {
  handle: '.d-handle'
})

Sorting works, but after I mouse down, the browser acts like I am selecting text, as you can see in this lovely GIF:

(Note that I'm using the CSS cursor property to set the cursor to pointer; without that set, it'd be the text selection cursor.)
Is this a bug, or am I doing something wrong?

It's currently a bug and will be fixed with the next beta release of draggable. You can see the fix here: https://github.com/Shopify/draggable/commit/08ab17b8c360243800b68c127be90963a3c757e2
Will keep this open until we release v1.0.0-beta.2
Hope this helped

Thanks for reporting 👍 the new release addresses this issue and automatically prevents text selection now.


Variables: Move handling of "waitingForVariables" to VariableDependencyConfig

a continuation of https://github.com/grafana/scenes/pull/525  (base)
Exploration unifying / moving handling of "waitingForVariable" state to VariableDependencyConfig.
This flag / state is just to know that we wanted to do something but could not, for example:

Issue query on activation
Issue query on time range change

But we can't do that as one of the variable dependencies (or a dependency of a dependency) where in a loading state. But this means that we now want to know when any variable update is completed not just a direct dependency as just because a dependency of a dependency where in loading state does not mean any dependency changed value (just that they could have).
TODO

Add some more tests to VariableDependencyConfig

@dprokop merged this into https://github.com/grafana/scenes/pull/525 and added some docs


boards: dts: add missing code partition into ESP32 based boards

zephyr,code-partition added to ESP32 based boards dts files

Hi @wmrsouza, can you add the heltec_wireless_stick_lite_v3 board as well? It was very recently merged.


API to draw only in a region of the canvas?

I was wondering if it would be possible to have some API were we could specify which area/region of the ctx should be used to draw.
Something like that where region should be an optional argument.
var region = [x, y, width, height];
var myLineChart = new Chart(ctx, region).Line(data, options);
and if we update the region we could still do that and have the library draw only in that area.
myLineChart.update();

This is not possible. Chart.js uses the full available canvas.


1st column wraps after only 2 characters

as rendered in chrome, the column for credential types is wrapping after just 2 characters without completing the word on each line. seems like the spacing could be better:  https://docs.pivotal.io/pivotalcf/2-2/credhub/credential-types.html

Hi @jbayer
We pushed fix out for this 6 or 7 days ago, but our push never made it past the staging site. I've pushed it to staging, and the team leaders are working on a system to make sure all production content gets updated regularly.
I'm also checking other documentation versions to make sure the column fix shows up there, too.
Thanks!


Make logging match dav1d

Reverts default logging back to stderr and fixes a logging print to match dav1d.

Yes, I believe so. This just reverts behavior back to match dav1d.


Production Mesos System

Allow for complete running in Mesos:

Frontend talking to RabbitMQ
RabbitMQ routing messages
Runners picking off messages and executing the Func bundles
1 Tron monitoring queue depth and other metrics to add/remove runners via Mesos

NOTE This is the 0.1 configuration. Support for K8s, Docker Swarm, Redis, Kafka, NodeJS, Python, etc. will come. But we need to get to something usable and RabbitMQ is it.

Done


patch to working  COM transport

rtu (default eoftimeout value updated to 10ms according to jsdoc)
asci (avoid faulty index test when buffer length< 2)

Thanks!


k8s - etcd being provisioned where orchestration=true

Rancher Versions:
Server:v1.4.0
healthcheck:
ipsec:
network-services:
scheduler:
kubernetes (if applicable):
rancher/k8s:v1.5.2-rancher1-2
Docker Version:
1.12.6
OS and where are the hosts located? (cloud, bare metal, etc):
RHEL7.3, vmware
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node rancher, external mysql db
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
k8s
Steps to Reproduce:
start up new k8s env, add hosts, add labels to 3 hosts - etcd=true/nopods=true, add label to 2 hosts - orchestration=true
Results:
etcd provisioned on hosts with label orchestration=true

@pulberg In order to use the labeled features of our k8s distro, you need to register the hosts and label them before making the environment into a Kubernetes environment. The reason for this is our use of soft host_label affinity constraints - this allows us to support both unlabeled and labeled k8s environments.
You have two choices to repair the current installation:

Tear down your existing cluster by deleting the infrastructure stack and follow v1.2+ installation instructions
Follow the overlapping to separated planes migration instructions

Thanks, I have re-created the env from scratch and will be going through some common "failure" scenarios - loss of network, docker restart, host failure, etc. to see how the env holds up. This is where I ran into issues before, and maybe the "migration" steps will need to be followed to get the env working again, but that sure doesn't feel like a "resilient" setup.

The UX for a labeled k8s environment is understandably frustrating.
It might be counter-intuitive to schedule containers against the will of the user, but that is how soft constraints work. The idea is, in the face of error, to aggressively attempt to restore resilience, even if it means violating the scheduling rules. We plan to make this configurable so the user can choose if they want soft/hard label constraints.

I stopped docker on one of the etcd hosts, etcd was moved to one of my hosts with no label.  I certainly do not want that behavior (un-labeled hosts are for our client pods only).  Do I need to add etcd=false to my client-only hosts?

As @LLParse said they are soft constraints ("the host SHOULD have").  If the scale that is set cannot be met meeting, the soft constraints are dropped one at a time until the scale can be met or there are none left.  Changing the value doesn't affect this, true vs false or any other string have no special meaning, they just either match what was requested or they don't.
The alternative is hard constraints ("the host MUST have"), and if they can't be met then scheduling just fails.  Which is what you're asking for, but there is no option exposed for.

@vincent99 Thanks for following up, I'm getting a much better idea of what will be required to run a proper, self-healing k8s env.

@pulberg This is basically the template you want: https://github.com/LLParse/rancher-catalog-proper/tree/master/templates/k8s/11
It uses hard constraints and users can have hot stand-bys ready to restore resiliency. Installation of this template is non-trivial, and will involve forking rancher-catalog, copying the folder from rancher-catalog-proper and updating version. You then install this repository as the 'Rancher Certified' by adding a custom catalog with name library. This causes other problems - we need to conditionally add hard constraint capabilities to the Rancher-maintained template.

I have re-built my k8s env. as per the instructions for resilient separated planes, and I pre-built all fail-over nodes as well -
6x for etcd (3 active/3 passive)
4x for orchestration (2 active/2 passive)
4x for my app pods
Everything is working well, including the k8s dashboard.  I did notice something interesting when creating deployments with and "external" service (LB).  The resulting LB is only 1 node, and the stack - "kubernetes-loadbalancers" seems to not care about any labels, is that also the expected behavior for the LB stack?

@pulberg Maybe it's expected, but it's definitely a bug... the LB should care about the labels. At a bare minimum, it shouldn't run on dedicated etcd hosts. Would you mind opening a separate issue for this?

@LLParse sure thing, I tested by scaling up the LB's and they only get provision on nodes with label "etcd=true"

https://github.com/rancher/rancher-catalog/pull/491

Solved via use of hard affinities, available in all newer k8s templates.


Make compatible with clingo 5.5

@jorgefandinno, the latest wip branch is only compatible with the latest clingo wip branch. Since the next clingo release might still take a while, clingox should be made backward compatible. We can simply lower the version requirement and disable some tests for older clingo versions (see 6427c7e8d60bea97912f6b32a4c9d75454a1ab98).

It make sense. It seems that changes relate with the ast of comparisons and csps?
This should cause no much trouble.


[platform] verify Network Manager with BeagleBone

This allows building for BeagleBone in the same fashion as RasPi.
BeagleBone uses connaman by default for network management. The BeagleBone Black build guide should be updated to explain how to replace connman with Network Manager.

BeagleBone uses connaman by default for network management. The BeagleBone Black build guide should be updated to explain how to replace connman with Network Manager.

@srickardti , will you provide updates for the BeagleBone Black build guide?

@srickardti , will you provide updates for the BeagleBone Black build guide?

@jwhui absolutely, just let me know where and in what format to provide those updates.

Hey @srickardti Actually just today I've been implementing a new process where documentation is sourced on GitHub and mirrored to openthread.io, to better enable outside contributions... if you can wait a day or two I'll add the source Markdown for https://openthread.io/guides/border-router/beaglebone-black here on GitHub, and you can just edit it directly.  Then I'll import your updated version into openthread.io.  Sound good?

@Vyrastas sounds good to me

Updates to the documentation have been pushed and offered on this PR https://github.com/openthread/openthread/pull/5606.
@Vyrastas , @jwhui , let me know if there is too much or too little.