cmd/link: An incorrect address was generated when using the LD linker

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

$ go version
go version go1.16.6 linux/arm64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
[root@localhost bolt-case-1.16.6-ld]# go env
GO111MODULE="off"
GOARCH="arm64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/danny/go-1.16.6"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/danny/go-1.16.6/pkg/tool/linux_arm64"
GOVCS=""
GOVERSION="go1.16.6"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1236999023=/tmp/go-build -gno-record-gcc-switches"

What did you do?

main.go
package main

import "fmt"

func main() {
    fmt.Println("Hello World!")
}

Build command:
go build -a -buildmode=pie -ldflags='-linkmode=external -extld=gcc -extldflags "-fPIE -pie -Wl,--emit-relocs"'
What did you expect to see?
I run objdump -r -D main, get this:

I run readelf -r main, get this:

The first 8 bytes of “runtime.buildVersion” object is the pointer to the string with golang version name. The pointers address (0x000db902) is invalid and fixed at runtime by the relocation on that address (0x190a00).
The address 0xdb0e1 is valid, pointing to the string and works fine at runtime.The same address (0xdb0e1) must be written in the runtime.buildVersion instead of garbage one.
What did you see instead?
The pointers address (0x000db902) is invalid, different from 0xdb0e1.

Could you explain why it must be written to the binary? If I understand your words correctly, it will be patched at run time by the dynamic linker anyway, so the program runs correctly?

OK, Maybe my expression is not very clear and easy to misunderstand.

Yes, maybe my expression is not very clear and easy to misunderstand.
In my opinion, when using ld linker, the golang runtime library is still statically linked to the binary, some other dynamic library like libc.so is dynamically linked to binary. We can use ldd to see which dynamic libraries are linked by this binary:

So the pointers address on that address (0x190a00) should have been relocated to the correct address(0xdb0e1) in the binary at the time of linking(Link Time Relocation), not Load Time Relocation(at runtime).
I can show two correct examples.

use golang internal linker
go build -a -buildmode=pie main.go
Run objdump -r -D, get this:

Run readelf -r, get this:

Obviously, the pointers address on that address (0x19ebe0) has been relocated to the correct address(0x000a0821) in  the binary.
use gold linker
go build -a -buildmode=pie -ldflags='-linkmode=external -extld=gcc -extldflags "-fuse-ld=gold -fPIE -pie -Wl,--threads -Wl,--emit-relocs"'
Run objdump -r -D, get this:

Run readelf -r, get this:

The pointers address on that address (0x190a00) has been relocated to the correct address(0x000db0c1) in  the binary.

Thanks.

As you use -buildmode=pie, this is a PIE binary, which means it will be relocated at load time and dynamic relocations will be applied (even the Go runtime is included in the binary "statically").
Also, as you mentioned, when using external linking the final bytes are actually written out by the external linker, not the Go linker. I'm not sure we have control with that. (Even we have, I'm not sure this is necessary, as the dynamic linker will overwrite it anyway.)

Do you think this is a bug of ld linker? Is it possible that it is related to the mechanism of go calling external linker?
If this is a bug in the ld linker, we may not be able to solve it on golang.

So, do you think this is a bug of ld linker?

I don't think this is a bug. The generated program executes correctly (if I understand what you said correctly).
I think we can close this. Feel free to reopen if you disagree. Thanks.


Timeout when call to https://homologation-webpayment.payline.com/webpayment/getToken

Hi,
I can't connect to https://homologation-webpayment.payline.com/webpayment/getToken when create card from the 12/12/2021. But before the 12/12/2021, it working well.
can you help me check it
exception 'ErrorException' with message 'file_get_contents(https://homologation-webpayment.payline.com/webpayment/getToken): failed to open stream: Operation timed out' in /Applications/MAMP/htdocs/ecodropapi/api/app/Http/Controllers/PaymentCardController.php:588
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_get_conten...', '/Applications/M...', 588, Array)
#1 /Applications/MAMP/htdocs/ecodropapi/api/app/Http/Controllers/PaymentCardController.php(588): file_get_contents('https://homolog...', false, Resource id #424)
#2 /Applications/MAMP/htdocs/ecodropapi/api/app/Http/Controllers/PaymentCardController.php(680): App\Http\Controllers\PaymentCardController->registrationCards(Object(MangoPay\CardRegistration), Array)
#3 /Applications/MAMP/htdocs/ecodropapi/api/app/Http/Controllers/PaymentCardController.php(158): App\Http\Controllers\PaymentCardController->createCards(Array, Object(App\User))
#4 [internal function]: App\Http\Controllers\PaymentCardController->store(Object(Illuminate\Http\Request))
#5 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(55): call_user_func_array(Array, Array)
#6 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(44): Illuminate\Routing\Controller->callAction('store', Array)
#7 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Route.php(190): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\PaymentCardController), 'store')
#8 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Route.php(144): Illuminate\Routing\Route->runController()
#9 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(642): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#10 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 /Applications/MAMP/htdocs/ecodropapi/api/app/Http/Middleware/CORS.php(31): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#12 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(137): App\Http\Middleware\CORS->handle(Object(Illuminate\Http\Request), Object(Closure))
#13 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#14 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#15 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(137): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#16 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#17 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(43): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#18 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(137): Illuminate\Auth\Middleware\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#19 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#21 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(137): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), '60', '1')
#22 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#23 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#24 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(644): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#25 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(618): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#26 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(596): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#27 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(268): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#28 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#29 /Applications/MAMP/htdocs/ecodropapi/api/app/Http/Middleware/CORS.php(31): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#30 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(137): App\Http\Middleware\CORS->handle(Object(Illuminate\Http\Request), Object(Closure))
#31 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#32 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#33 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(137): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#34 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#36 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(150): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#37 /Applications/MAMP/htdocs/ecodropapi/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(117): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#38 /Applications/MAMP/htdocs/ecodropapi/api/public/index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#39 {main}

Hello @duykhanh91, we are looking into it

@fredericdelordm is there any news?

Hello @daitxdirox, you are facing the same issue?

Hi @fredericdelordm . We're having the same issue. Can you help us to check ?

We're receiving a time out error while posting the card info to "https://homologation-webpayment.payline.com/webpayment/getToken"

Ok @daica25101, we are looking into it

@duykhanh91 @daica25101 @daitxdirox Are you having the issue in production or in sandbox?

We have the issue in sandbox env, we don't have production env.

@duykhanh91 @daica25101 @daitxdirox Are you having the issue in production or in sandbox?

It only for Sandbox

Hi @fredericdelordm . It seems to be that the homologation  API is blocking the ip region from Viet Nam. I tried changing my ip to another country and it worked. So can you provide any solution for this ?

Hello @daica25101, I'll share this info with the support team and get back to you.

Hello Fredericdelordm, hope you are good
Do you have any news on this topic please ?
Please let me know
Regards

Hello @fredericdelordm  , please if you have some news on this topic ,send me a mail on<EMAIL_ADDRESS>Regards


feat: add sync_once func

Codecov Report

Merging #21 (7a8e98e) into main (3c43f75) will decrease coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
- Coverage   86.06%   85.98%   -0.09%
==========================================
  Files           6        6
  Lines         524      528       +4
==========================================
+ Hits          451      454       +3
- Misses         73       74       +1

Impacted Files
Coverage Δ

src/feature_probe.rs
87.82% <ø> (-0.47%)
:arrow_down:


Running gulp appx

Add documentation in the README on how to run gulp appx to start a Hosted App Pointing to localhost.

There's some documentation here, but we can probably move it to the readme as well: https://github.com/MicrosoftEdge/generator-appx/wiki/Usage


Vinkla/Instagram

When a person reviews an Issue Request there should be enough information that they have a good handle of what is being discussed, they don’t need to know or come up with a solution instantly, but nothing about the issue should be mystery meat - UpThemes

You're probably using an old version of the package.


Remove obsolete packages from Maven Central

The ones that've been renamed b/w 0.2.0 and 0.3.0, like sbt-dump-event-schema_2.12_1.0 etc.

This can't be done using normal means, and shouldn't be. StackOverflow


Extractors chapter - markdown fixes

wrap code in {{{ }}}s
fix list items from * to -

Good catch, thanks a lot for your time!


Remove indexSettings from Mappers

They're not used.
This is motivated by https://github.com/crate/crate/issues/11939 where
the mapping might move from index to a table level, with the implication
that index settings are no longer available in the current form for the
MapperService and everything underneath.

with the implication that index settings are no longer available in the
current form for the MapperService and everything underneath.

To clarify: The existing settings may be broken up into tableSettings (for things like mapping.total_fields.limit) and indexSettings for things that can diverge between partitions


Example of .Net Integration

Hello! Here is an example integration with full debugger capabilities I wanted to share.
It also shows how to project objects to Javascript easily via reflection.
Is a great API you come with! Thank you.
https://bitbucket.org/Adr14n/chakracore-.net-integration-example/src/master/

Thanks for sharing this.
At a future time - hopefully not too far off - it would be good for us to put together an index of examples like this.


helm: Add support for values files

Currently, running helm install release chart -f <TAB> doesn't autocomplete override YAML values files. This PR fixes that by completing yaml file paths after the -f (or --values) parameter.

thanks


Session does not work with Redis when the client has HTTP keep-alives disabled

From @tcuk on Thursday, November 30, 2017 8:11:17 AM
Session state does not persist in Redis when the client has HTTP keep-alives disabled (i.e. rather than specifying HTTP header connection: keep-alive, the client specifies connection: close).
OS: Ubuntu 16.04 LTS
ASP.NET Core version: 2.0.3
Startup used to configure session:
using System;
using System.Net;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;

namespace Woo.Website
{
	public class Startup
	{
		public Startup(IHostingEnvironment env)
		{
			string hostname = Dns.GetHostName();

			var builder = new ConfigurationBuilder()
				.SetBasePath(env.ContentRootPath)
				.AddJsonFile("appsettings.json")
				.AddEnvironmentVariables();

			Configuration = builder.Build();

			HostingEnvironment = env;
		}

		public IConfigurationRoot Configuration { get; set; }

		public IHostingEnvironment HostingEnvironment { get; set; }

		public void ConfigureServices(IServiceCollection services)
		{
			services.AddMvc();

			services.AddDistributedRedisCache(options =>
			{
				options.Configuration = Configuration["redis:server"] + ":" + Configuration["redis:port"];
				options.InstanceName = Configuration["redis:instance"];
			});

			services.AddSession();
		}

		public void Configure(IApplicationBuilder app, IHostingEnvironment env)
		{
			app.UseDeveloperExceptionPage();

			app.UseForwardedHeaders();
			app.UseSession();
			app.UseMvc();
		}
	}
}

I discovered this when using nginx as a reverse proxy to Kestral. Using nginx as a reverse proxy it is easy to enable/disable HTTP keep-alives to reproduce the problem. My proxy config for nginx is:
server {
listen 80;
gzip on;
gzip_proxied	no-cache no-store private expired auth;
gzip_types
	text/plain
	text/css
	text/js
	text/xml
	text/javascript
	application/javascript
	application/x-javascript
	application/json
	application/xml
	application/rss+xml
	image/svg+xml;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;

location / {
	proxy_pass			http://aspnet_server;
	proxy_redirect		off;
	proxy_http_version	1.1;
	proxy_buffering		off;
	proxy_cache_bypass	$http_upgrade;
	proxy_set_header	Upgrade $http_upgrade;
	proxy_set_header	Connection keep-alive;
	proxy_set_header	Upgrade $http_upgrade;
	proxy_set_header	Host $host;
	proxy_set_header	X-Real-IP $remote_addr;
	proxy_set_header	X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header	X-Forwarded-Host $server_name;
	proxy_set_header	X-Forwarded-Proto $scheme;

}

location ~ /.well-known {
	alias /etc/letsencrypt/html/.well-known/$1;
	allow all;
}

rewrite ^/(.*)/$ /$1 permanent;

}
Changing the line proxy_set_header Connection keep-alive to proxy_set_header Connection close disables keep-alives and session state stops working.
I was using the latest nginx package for Ubuntu 16.04 LTS and ASP.NET Core 2.0.3 on Ubuntu 16.04 LTS. These instances were run as containers within docker.
Copied from original issue: aspnet/Session#201

From @Tratcher on Thursday, November 30, 2017 8:15:54 AM
There shouldn't be any relation between session and keep-alives. Can you share the application logs for before and after?

From @tcuk on Thursday, November 30, 2017 9:03:30 AM
To produce these logs I launched ASP.NET core behind my nginx reverse proxy, opened a new incognito browser window and requested the same URL three times via a URL pointing to nginx. I used a single session variable which was a counter being incremented. In the failure case the counter does not persist and remains at 1.
Working case (Connection = keep-alive):
Running aspnet
[?1h=Hosting environment: Production
Content root path: /dotnetapp
Now listening on: http://[::]:5000
Application started. Press Ctrl+C to shut down.
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://remove/
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Executing action method Woo.Web.Controllers.HomepageController.Index (Woo.Web) with arguments ((n
ull)) - ModelState is Valid
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ContentResultExecutor[1]
      Executing ContentResult with HTTP Response ContentType of text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action Woo.Web.Controllers.HomepageController.Index (Woo.Web) in 840.0717ms
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 1111.6613ms 200 text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://remove/
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Executing action method Woo.Web.Controllers.HomepageController.Index (Woo.Web) with arguments ((n
ull)) - ModelState is Valid
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ContentResultExecutor[1]
      Executing ContentResult with HTTP Response ContentType of text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action Woo.Web.Controllers.HomepageController.Index (Woo.Web) in 4.0174ms
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 7.6ms 200 text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://remove/
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Executing action method Woo.Web.Controllers.HomepageController.Index (Woo.Web) with arguments ((n
ull)) - ModelState is Valid
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ContentResultExecutor[1]
      Executing ContentResult with HTTP Response ContentType of text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action Woo.Web.Controllers.HomepageController.Index (Woo.Web) in 2.7991ms
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 5.4859ms 200 text/plain; charset=utf-8

Failure case (Connection = close):
Running aspnet
[?1h=Hosting environment: Production
Content root path: /dotnetapp
Now listening on: http://[::]:5000
Application started. Press Ctrl+C to shut down.
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://remove/
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Executing action method Woo.Web.Controllers.HomepageController.Index (Woo.Web) with arguments ((n
ull)) - ModelState is Valid
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ContentResultExecutor[1]
      Executing ContentResult with HTTP Response ContentType of text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action Woo.Web.Controllers.HomepageController.Index (Woo.Web) in 881.3667ms
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Session.SessionMiddleware[10]
      Committing the session was canceled.
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 1162.6012ms 200 text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://remove/
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Executing action method Woo.Web.Controllers.HomepageController.Index (Woo.Web) with arguments ((n
ull)) - ModelState is Valid
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ContentResultExecutor[1]
      Executing ContentResult with HTTP Response ContentType of text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action Woo.Web.Controllers.HomepageController.Index (Woo.Web) in 3.7355ms
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Session.SessionMiddleware[10]
      Committing the session was canceled.
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 6.014ms 200 text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://remove/
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Executing action method Woo.Web.Controllers.HomepageController.Index (Woo.Web) with arguments ((n
ull)) - ModelState is Valid
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ContentResultExecutor[1]
      Executing ContentResult with HTTP Response ContentType of text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action Woo.Web.Controllers.HomepageController.Index (Woo.Web) in 11.195ms
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Session.SessionMiddleware[10]
      Committing the session was canceled.
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 12.8115ms 200 text/plain; charset=utf-8
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]

My test controller:
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Distributed;
using System;
using System.Collections.Generic;
using System.Text;

namespace Woo.Web.Controllers
{
	[Route("")]
	public class HomepageController : Controller
	{
		private const string CountKey = "Count";

		[Route("")]
		public IActionResult Index()
		{
			var counter = Counter++;

			return Content($"I have counted to {counter}. " + DateTime.Now + " / " + HttpContext.Session.Id + " / " + Request.Headers["Connection"]);
		}

		private int Counter
		{
			get
			{
				return HttpContext.Session.GetInt32(CountKey) ?? 1;
			}
			set
			{
				HttpContext.Session.SetInt32(CountKey, value);
			}
		}
	}
}

From @Tratcher on Thursday, November 30, 2017 9:33:19 AM
Ah. The response has a content-length so the client can disconnect as soon as it gets the last byte, which is before the session gets committed. Kestrel's client disconnect notice triggers, which triggers RequestAborted, which prevents the session from being committed.
This appears to be an order of operations bug in Kestrel. The complete request has been received and the complete response has been sent so if the client disconnects then it's out of scope of the request and it should't trigger RequestAborted. I'll move this issue to the Kestrel repo.
Workaround: call session.CommitAsync() when you're done modifying the session.

From @Tratcher on Thursday, November 30, 2017 9:34:25 AM
This issue was moved to aspnet/KestrelHttpServer#2195

From @Tratcher on Monday, December 4, 2017 9:32:04 PM
After some discussion we've decided to change both Session and Kestrel. Session will no longer depend on RequestAborted for commits, only it's normal timeout.
https://github.com/aspnet/Session/blob/be6b099f6ce45bc1308f2135dbd1bfe295e20a98/src/Microsoft.AspNetCore.Session/SessionMiddleware.cs#L117


refactor(consensus): Refactor overlord

What type of PR is this?
refactor
What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

/close
until framework 2.0


Wraith Traits sometimes dont register events

Making several traits for different wraiths sometimes they do not get registered and fire no events. Not sure if this is because the trait itself isnt getting added to the npc, or that phantom or bukkit is not actually registering the events in the trait.
May need to make a trait registry to register them aside instead of every trait

Resolved, issues with wraiths fixes when the api updated.


updated the urls.py and added two views.

This means that i will have to add additional urls in the views.py file.
Hy you confused me i though was working on Careconnect:-)
hebu update the fork to Careconnect hahaah
weak dev

merge and change...also add the change to themain project

💯


TypeError with ClickException on Python 3

from click.exceptions import UsageError
exc = UsageError('foo')
print(exc)

TypeError: __str__ returned non-string (type bytes)

This seems to be there since a while already: https://github.com/pallets/click/commit/8c6c150

This is fixed in 9bd66b397fd85f11330afd19ab72390616b2bf48


[openshift_adm] Replace removed openssl_certificate_info

In version 2.0.0 of community.crypto collection, the openssl_certificate_info has been replaced with
x509_certificate_info module which caused this error during openshift_adm role invocation
TASK [openshift_adm : Regenerate the API certificates. _raw_params=api_cert.yml] **************************************************************************************************************************************************************
lunedì 08 aprile 2024  10:49:40 +0200 (0:00:00.554)       0:48:20.821 *********
fatal: [hypervisor-1]: FAILED! => {"reason": "[DEPRECATED]: community.crypto.openssl_certificate_info has been removed. The 'community.crypto.openssl_certificate_info' module has been renamed to 'community.crypto.x509_certificate_info'. This feature was removed from community.crypto in version 2.0.0. Please update your playbooks."}

As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running
[x] Appropriate documentation exists and/or is up-to-date:

[x] README in the role
[x] Content of the docs/source is reflecting the changes

/approve
fun ansible-lint didn't catch it though.

/lgtm


reword FPT_MCD_EXT.1.4 to contain a selection of mobile code types

This will bring it more in line with "click-to-play" features, which are nice
http://common-criteria.rhcloud.com/webbrowser/output/webbrowser.html#FPT_MCD_EXT.1.4

Selections have been added to 1.4 and the update has been pushed.


supabaseAuthClient.auth.getUser not working on v2.42.5

Bug report

[X] I confirm this is a bug with Supabase, not with my own application.
[X] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug
When calling await supabaseAuthClient.auth.getUser() in the edge function, the following error is returned even though the correct jwt token was provided.
{
  data: { user: null },
  error: AuthSessionMissingError: Auth session missing!
    at https://esm.sh/v135/@supabase/auth-js@2.63.1/esnext/auth-js.mjs:2:29430
    at _._useSession (https://esm.sh/v135/@supabase/auth-js@2.63.1/esnext/auth-js.mjs:2:27513)
    at eventLoopTick (ext:core/01_core.js:64:7)
    at async _._getUser (https://esm.sh/v135/@supabase/auth-js@2.63.1/esnext/auth-js.mjs:2:29103)
    at async https://esm.sh/v135/@supabase/auth-js@2.63.1/esnext/auth-js.mjs:2:28966 {
    __isAuthError: true,
    name: "AuthSessionMissingError",
    status: 400,
    code: undefined
  }
}

This issue only happens on v2.42.5. The same code works perfectly fine on v.2.42.4.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:

Run await supabaseAuthClient.auth.getUser() in the edge function with correct jwt token

Expected behavior
I should be able to get user session without any issue

I confirm I have searched the Docs, GitHub Discussions, and Discord.

Really? :)
Duplicate of:

https://github.com/supabase/supabase-js/issues/1024
https://github.com/supabase/auth-js/issues/881

Going to leave this open for now as for some reason the fix made in auth-js has not been released here in supabase-js.
This issue is impacting users of edge functions still currently.

We've made the fix in #1029 so it should be available in supabase-js v2.64.1, thanks for reporting this!

We've made the fix in #1029 so it should be available in supabase-js v2.42.7, thanks for reporting this!

@kangmingtay
Still getting this issue after upgrading from 2.38.4 to 2.43.2.
I'm actually getting it in a NextJS route-handler. But seems to be essentially the same problem, although the solution of explicitly passing the JWT isn't relevant given the supabase ssr client uses the cookies...

We've made the fix in #1029 so it should be available in supabase-js v2.42.7, thanks for reporting this!

@kangmingtay Still getting this issue (caused by upgrading from 2.38.4 to 2.43.2)
I'm actually getting it in a NextJS route-handler. But seems to be essentially the same problem, although the solution of explicitly passing the JWT isn't relevant given the supabase ssr client uses cookies.
Can make a separate issue if needed

I think i have the same issue

I also have this same issue with my web app. My web app is  builtwith Remix framework
I only see the error: AuthSessionMissingError: Auth session missing! when I try to get my user using: supabase.auth.getUser(); I am able to sign up and login successfully but when I go to fetch the newly logged in user, all I get is null.
Additionally I am using supabase from the sever side, supabase/ssr and not supabase/js

I've created a new issue here #1202

Facing this error still AuthSessionMissingError: Auth session missing! at http://localhost:3000/static/js/bundle.js:79331:20
Steps followed -
(1) Add Client ID and Secret on Supabase Google Auth Provider - Done
(2) Add Javascript origin - Done - http://localhost:3000/
(3) Add Redirect URI - Done - http://localhost:3000/auth/v1/callback and https://my-domain.supabase.co/auth/v1/callback
(4) Add code for onAuthStateChange - Done
(5) Try using const { data: { session } } = await supabase.auth.getSession()  - Done - Doesn't work
(6) Try using const { data: { user } } = await supabase.auth.getUser() - Done - Doesn't work
(7) Try with different gotrue-js version - Done - "@supabase/supabase-js": {
"@supabase/gotrue-js": "2.43.1"
}
(8) Try on Firefox - Done - This works fine , so on Chrome is the problem
Same issue even with Azure
Although login happens, cannot get the session/user


TFLu r2.3: Broken memory allocation for micro interpreter object with TF_LITE_STATIC_MEMORY enabled

Compiling TFLu r2.3 with TF_LITE_STATIC_MEMORY gives an incorrect memory allocation for the micro interpreter object.
System information

TFLu r2.3
OS Platform: Linux Ubuntu 16.04 or Windows 10 64 bit
Target: Cortex M4F

Current behavior
In my case the size of the network input data is
interpreter->input(0)->bytes = 1920
After calling for memory allocation
TfLiteStatus allocate_status = interpreter->AllocateTensors();
the memory address of the input data is
interpreter->input(0)->data = 0x8012174
and memory address of the input tensor structure is
interpreter->input(0) = 0x8012570
This gives only 1020 bytes memory space for the data which is 1920 btes. As a consequence, the input tensor structure is overwritten when copying the input data.
Expected behavior
After removing TF_LITE_STATIC_MEMORY from the CCFLAGS/CXXFLAGS the memory allocation leaves enough space between the data and the input tensor structure:
interpreter->input(0) = 0x80124d0
interpreter->input(0)->data = 0x80103c0
Other info
Using TFLu r2.2 with TF_LITE_STATIC_MEMORY does not show the problem. It gives correct memory layout. Starting with commit fbf407383c93774d10bd7c45cd66788a070b0e07 (mid of June '20) the memory layout is broken.
I'm not sure if this is a bug or if it is intended behavior and I better compile without TF_LITE_STATIC_MEMORY.

It looks like this may be related to some of our memory optimization efforts. I have filed an internal bug to track this and will update when we have a resolution.

Thx for looking into this. As indicated in my bug description, temporary workarounds are

using r2.2
using r2.3 without TF_LITE_STATIC_MEMORY in the CCFLAGS/CXXFLAGS

This is a case of our making changes that are not backwards compatible coupled with the fact that Tensorflow Lite Micro doesn't currently conform to the release cadence of the broader Tensorflow project.
My recommendation here is to use TFLM from source. Since we no longer support using TFLM without TF_LITE_STATIC_MEMORY (and have thus made it the default in our Makefile).
I'm going to close the current issue but please open a new one if you are seeing issues when building from source.

What do you mean by "use TFLM from source"? I did not modify any source code or Makefile except for adding a make target for Cortex-M4F. I observe the problem when TF_LITE_STATIC_MEMORY is specified (which is the default). I observe it with r2.3 and with HEAD of master (Sept. 2020).

I just found the reason for the observation on my side: the application project includes header files from TFLM to instantiate the interpreter. I missed to define TF_LITE_STATIC_MEMORY when including such header files.
Is not a bug in TFLM.

@ml-0 Hi, I'm experiencing a similar issue. Could you clarify which header files you are referring to? thanks in advanced.

I think what @ml-0 is referring to is that any external code that includes TFLM headers should be built with -DTF_LITE_STATIC_MEMORY, or have a #define TF_LITE_STATIC_MEMORY before the headers are included.
Apologies for not being very clear with my previous reply - what I was emphasizing is that using TFLM without TF_LITE_STATIC_MEMORY defined isn't really supported anymore, even on x86.

Hi @COTASPAR, my application project comes with its own Makefile (not part of TFLM) and links against the libtensorflow_microlite .a. To instantiate the TFLM interpreter I have to include
#include "tensorflow/lite/micro/kernels/micro_ops.h"
#include "tensorflow/lite/micro/all_ops_resolver.h"
#include "tensorflow/lite/micro/micro_error_reporter.h"
#include "tensorflow/lite/micro/micro_interpreter.h"
#include "tensorflow/lite/version.h"
#include "tensorflow/lite/c/common.h"

As the last include (common.h) heavily uses TF_LITE_STATIC_MEMORY this macro has to be defined in the application project as well. If not, the application uses a different definition for TfLiteTensor as the library does.
This problem does not appear in all the examples that come with TFLM because they compile TFLM + the example code with the same settings (single Makefile).
@advaitjain Do you see the chance to avoid such problems by inverting the definition of TF_LITE_STATIC_MEMORY? The code we should use does not require it has to be defined only for special purposes?

Unfortunate as it is, its best to use TFLM with  TF_LITE_STATIC_MEMORY. It has basically become a way to separate the TFLM build graph from the TfLite build graph.
Without this define, the performance is degraded due to allocations of TfLiteTensors from the temp space at each Eval. More importantly, its not a path that we test or support anymore so there can definitely be bugs.
We would like to get to a point where TFLM does not need this additional define at all, but the code sharing with TfLite (via common.h as you pointed out and more) makes it something that will take some time to disentangle.


The gtk bindings (WIP)

This is the "real" GTK binding commit. I'm still getting a hang of using git btw so yeah bare with me here (sorry for the fake pull request)

This is awesome, tysm!

We might be able to simplify some stuff with the new [export("")] compiler directive from https://github.com/Spydr06/CSpydr/issues/15#issue-1698767835, but great work nevertheless!

I'm still getting a hang of using git btw

No problem, git is hard :)
I merged the code, which means it's in the main branch now. To continue development, you should pull all changes from this repository.

Is it a good idea to bundle up bindings into the std lib? I honestly don't think it's a solid idea to be placing them there, alongside other bindings. I think any bindings to C libraries should be kept separate from the std lib and standalone.
This is adding up to additional maintenance if the binding needs to be updated, requiring users to recompile the language just for that benefit?
Is there any chance this could be reconsidered?

Of course it's not perfect, but what other options do we have?
I'm not very keen on implementing a packaging system for CSpydr, as this language is used by "only" 3 people to date (still, that's 2 more than I expected xD).
And until there is really a problem (like continuous breaking of the bindings) I think it's okay to keep stuff as it is.

requiring users to recompile the language just for that benefit

no recompilation is needed to update the std lib. When installed, the source files live in /usr/share/cspydr/std as plain source files. Updating them only takes replacing them with newer ones. Maybe that's something the compiler could do in the future.

Of course it's not perfect, but what other options do we have?

Can the bindings not be kept on a separate repositories by the creators and downloaded by users and imported into their code if need be? This is one option, and imo potentially the only one that is needed for now.

CSpydr, as this language is used by "only" 3 people to date (still, that's 2 more than I ever expected xD).
I think it's worth looking into the future, rather than at the present and tailoring to it. A continuous development, unless CSpydr is a not to be intended to be used for anything else than hobby.

I agree, having a package manager (or sth comparable) would be very nice, but it's too much work for me currently, as I have other projects that are on a higher priority right now (since they have deadlines...)

unless CSpydr is a not to be intended to be used for anything else than hobby

I don't want to disappoint you, but getting CSpydr out of the "hobby" category is (at least for me alone) impossible. CSpydr has so many issues, compatibility problems and missing features you'd have to be crazy to write production code with it.
(As in: we only suppot x86_64-gnu-linux platforms (not even musl/busybox or any bsd), there are basically no compiler optimizations, features are not fully implemented or very buggy (take the regex implementation for example))
CSpydr started as a hobby and will, I'm afraid, continue being a hobby project.

Can the bindings not be kept on a separate repositories by the creators and downloaded by users and imported into their code if need be?

That's an option of course, which needs no implementation. While I'm fine with anyone doing it, I myself favor not scattering all libraries and keeping them in one place for now.


Why is User Access Administrator required?

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce
azd up on a subscription where you are just a Contributor
Any log messages given by the failure
Deployment Error Details:
InvalidTemplateDeployment: The template deployment failed with error: 'Authorization failed for template resource 'XXX' of type 'Microsoft.Authorization/roleAssignments'. The client 'XXX' with object id 'XXX' does not have permission to perform action 'Microsoft.Authorization/roleAssignments/write' at scope '/subscriptions/XXX/resourceGroups/XXX/providers/Microsoft.ContainerRegistry/registries/XXX/providers/Microsoft.Authorization/roleAssignments/XXX'.'.

Expected/desired behavior
Why is the role needed if I have just created all the resources. This is hard to test and I had to get specific exceptions from more powerful people just to run the demo. Is there a reason the admin permissions are needed?
Since there is a company-wide R&D subscription where I am a Contributor, I feel like I should be able to run the demo without having to ask for more permissions.

@jongio do you have any insights here. Is it because azd needs to create resources at the subscription level?

The most secure way to connect to services is by using Role Based Access Control (RBAC).  Where your account or a services "service principal" is given permission to access a service.
In order to connect your account and the services to access other services you need to create "role assignments".
i.e.  For your account to access storage, you need the "storage access" role.  For key vault, you need key vault read access, etc.
In order to create the role assignment, the user deploying the template needs "User Access Administrator" or "Owner" roles.
The "Contributor" role isn't enough to create those role assignments.
The best we can do right now, is tell you what roles are required, which can be found here: https://github.com/Azure-Samples/azure-search-openai-demo-csharp/blob/main/infra/main.bicep#L423
We are working on ways to make this easier for folks that can't get the User Access Admin or Owner roles.

Thanks for the response. Marking this issue as closed.


Support iOS 8.0

Would it be difficult to support all of iOS 8.0?

Create a pull request https://github.com/akosma/SwiftMoment/pull/15


Value Template with Hyphen Breaks Sensor

Home Assistant release (hass --version):
0.30.1
Python release (python3 --version):
Python 3.5.2
Component/platform:
Sensor / Binary Sensor - Value_template
Description of problem:
When hyphen is included in the json data template value the sensor is broken and results in a traceback
Expected:
Value to be parsed from json request
Problem-relevant configuration.yaml entries and steps to reproduce:
-  platform: rest
   resource: http://localhost:47800/api/v1/bacnet/devices/5/objects/3.10073?properties=present-value
   name: Test 2
   value_template: "{{ value_json.present-value }}"

Configure sensor
Load Hass
Sensor not created and traceback generated

Traceback (if applicable):
16-10-12 09:29:44 ERROR (Thread-1) [homeassistant.components.sensor] Error while setting up platform rest
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\helpers\entity_component.py", line 107, in _setup_platform
    discovery_info)
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\components\sensor\rest.py", line 74, in setup_platform
    add_devices([RestSensor(hass, rest, name, unit, value_template)])
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\components\sensor\rest.py", line 89, in __init__
    self.update()
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\components\sensor\rest.py", line 115, in update
    value, STATE_UNKNOWN)
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\helpers\template.py", line 110, in render_with_possible_json_value
    error_value).result()
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\concurrent\futures\_base.py", line 405, in result
    return self.__get_result()
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\concurrent\futures\_base.py", line 357, in __get_result
    raise self._exception
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\util\async.py", line 166, in run_callback
    future.set_result(callback(*args))
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\homeassistant\helpers\template.py", line 132, in async_render_with_possible_json_value
    return self._compiled.render(variables).strip()
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\jinja2\environment.py", line 989, in render
    return self.environment.handle_exception(exc_info, True)
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\jinja2\environment.py", line 754, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\site-packages\jinja2\_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 1, in top-level template code
TypeError: unsupported operand type(s) for -: 'Undefined' and 'str'

Additional info:
JSON data returned as:
{"present-value":1,"object-id":"4.10037","object-instance":"10037","object-type":"4","device-id":"5","href":"http://localhost:47800/api/v1/bacnet/devices/5/objects/4.10037"}

@chappo
Stab in the dark, are you able to try this
value_template: "{{ value_json.'present-value' }}"

When you use dotted notation, all names have to be valid python2 variable names, and '-' is not a valid character. According to the Jinja2 documentation you should be able to use the following instead,
value_template: "{{ value_json['present-value'] }}"

http://jinja.pocoo.org/docs/dev/templates/#variables

Thanks Jaharkes. That's resolved the issue. I did try that but did not remove the .


FindGLM.cmake non windows path

FindGLM.cmake appears to be using GLEW_ROOT_DIR path (see https://github.com/lighttransport/nanogi/blob/master/cmake/FindGLM.cmake#L39) where it should have been using GLM_ROOT_DIR

Good catch! Fixed.


(AzureCXP) Fixes MicrosoftDocs/azure-docs#77533

Correct chown command; Remove extra /
Reference: https://github.com/MicrosoftDocs/azure-docs/issues/77533

thank you for catching this @BhargaviAnnadevara-MSFT .
cc: @MSKeith - merging this change and tagging you for awarness.


Nothing type should affect definite return

[@lucaswerkmeister]
Nothing die(String? cause = null) {
    // log error
    // send mail to administrator
    throw Exception(cause);
}

String doWork() {
    if (true || false) {
        return "work";
    } else {
        die("Fatal logic error");
    }
}

We can reason that since die returns Nothing, it cannot ever return normally (it could throw, terminate the VM / thread, or never return). Therefore, doWork definitely returns even in the else branch, just like if we inserted a throw; statement there.
The typechecker currently doesn’t do this reasoning, though:

source/tmp/run.ceylon:7: error: does not definitely return: 'doWork' has branches which do not end in a return statement

String doWork() {
      ^

I think this reasoning should be possible, since the flow analysis phase happens after the type assignment phase (see also #3997).
And I suppose this could also be applied to definite initialization.
[Migrated from ceylon/ceylon-spec#1179]

Now that process.exit() has type Nothing, perhaps disabling the “expression has type Nothing” warning should be something for 1.2?

@lucaswerkmeister I think at least it should be suppressed for process.exit(); statement in shared void run().


ref: profile -> hostAttrs

Rationale:
For internal coding purposes only, the following attribute set does
not require an abstract name (such as profile). Moreover so, as
"profile" has a distinct legacy meaning in the nix ecosystem.
 {
    channelName = "...";
    system = "...";
    extraArgs = {};
    modules = [];
 }

Instead, this PR renames it to a banal and descriptive hostAttrs. This
naming does also better align with the top level defaultHostAttrs.

Can we include nixosHosts -> hosts in this PR, so it doesn't have to be a part of #17. And actually I'd like to propose the name configs since that covers home-manager too, and the flake output is called configurations for all systems, so I think that works the best.

I agree with everything you said.
Since this is a very targeted PR and only pretends to solve the stated issue, I'd rather leave it as it is.
Since the code still contains nixosConfigurationBuilder and in general nixos* namespacing, I wouldn't regard renaming nixosHosts to hosts as an atomic change without also solving the prefix over there.


Many code cells are broken in Grovers

Steps to reproduce the problem

Go to https://learn.qiskit.org/course/ch-algorithms/grovers-algorithm#2qubits-simulation
Click on run on the code cells
Scroll down to each block and it will most likely provide an error
See error

What is the current behavior?
Some parts of the code blocks contain deprecated issues or have syntax errors
What is the expected behavior?
When running code cells, should see the output and not an error
Screenshots (optional but very helpful)
If applicable, please add screenshots or video captures to help explain the problem.
Environment (optional but very helpful)

Device: [e.g. Laptop, iPhone 11, Smart Fridge]
OS: [e.g. Windows, iOS]
Browser: [e.g. Chrome, Safari]

Additional context (optional)
Add any other context that could help debug the problem.

This repository is no longer maintained. It has been superseded by IBM Quantum Learning.


CacheActionEventArgs contains key and origin as string.

Hi ,
I am using this overload to addorupdate a cache.
TCacheValue AddOrUpdate(CacheItem addItem, Func<TCacheValue, TCacheValue> updateValue);
So my key here is of type CacheItem
when the OnAdd/Update event gets raised but in the CacheActionEventArgs i am receiving the key and region as string. expecting of type CacheItem.

I think your misunderstand what CacheItem actually does and how that stuff is working. What you describe is the expected behavior.
CacheItem is not the key you are adding. CacheItem is a wrapper around key, optional region the value and expiration settings.
In general, there is no difference in using either the overloads utilizing CacheItem or passing in the key as string + value etc... Internally, it does the same thing, storing a value on the defined key. CacheItem can be used to set a expiration mode/time per cached value. That's all you can actually use it for.
That's why you get key/region in the event, hope that's clear enough.


Codelive/platform event logging

What does this PR do?
Adds the PlatformEvent Logging framework from CodeLive to Apex Recipes
The PR fulfills these requirements:
[x] Tests for the proposed changes have been added/updated.
[x] Code linting and formatting was performed.

Codecov Report

Merging #48 (93c947a) into master (d39ba54) will increase coverage by 0.22%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
+ Coverage   96.06%   96.28%   +0.22%
==========================================
  Files          36       39       +3
  Lines        1244     1318      +74
==========================================
+ Hits         1195     1269      +74
  Misses         49       49

Flag
Coverage Δ

Apex
96.28% <100.00%> (+0.22%)
:arrow_up:

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

Impacted Files
Coverage Δ

force-app/main/default/classes/Shared Code/Log.cls
100.00% <100.00%> (ø)

...pp/main/default/classes/Shared Code/LogMessage.cls
100.00% <100.00%> (ø)

...ault/classes/Trigger Recipes/LogTriggerHandler.cls
100.00% <100.00%> (ø)

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 d39ba54...93c947a. Read the comment docs.


HELP: how to create PDF from raw data?

I have a raw pdf data and want to create a new PDF combining pages. Can anyone help?

This library does not support combining existing PDF files. There are other JS libraries out there, though, that support this kind of editing.


VS2015 cannot run IoT Core Python background task.

Create a PTVS - IoT Core Background App with simple code: print('hello world')

Set the remote device IP address for the IoT Core MBM (build 10531).
The VS2015 Enterprise reported "The debugger cannot continue running the process.  Unable to start debugging?
Project report "unknown Python 3.5",

Load the Blinky-Headless python sample, got the same error.
VS2015 run fine for C#, Node.js, C++ projects.

Ping @alanch-ms - have you seen this issue?

@NNM11 - By any chance, did you install the "Python UWP SDK (pyuwpsdk.vsix)"?  If not, you can install it from https://github.com/ms-iot/python/releases.  See the "Set up your PC" section on http://ms-iot.github.io/content/en-US/win10/samples/PythonBlinky.htm for details.

I installed the pyuwpsdk.svix file through double-click and Open with...  It appears the installation was not succeeded.  It was quite and the document did not say what extension was installed.
I have to open a "VS2015 cmd prompt" in Admin mode and type the command "SVIXXInstaller pyuwpsdk.svix" installed it.  - This should be added to the instruction as a back up.
Once this installed, I was able to create IoT Core Background project.  However, there is a new problem with installing "pip" for the "Python 3.5 UWP" environment.  The error VS2015 reported error when I select "download and install pip package manager" .  Without pip installer, the UWP python projects can not import existing libraries to reuse.

----- Installing pip -----
System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.VisualStudioTools.Project.ProcessOutput..ctor(Process process, Redirector redirector)
----- Failed to install pip -----

This is something that we still haven't fully resolved yet. I don't recall what the recommended procedure for adding external packages into an IoT project is, but it's likely to require some manual effort right now.
After creating the project, are you able to build and run?

I could create a BackgroundApp project to do simple print("hello world") stuff to run.
The debugging (step over) is very slow though.
Please post procedure for manual import python packages if you have one.  But getting the PIP to function likes the npm for node.js is an ideal thing.

The debugging (step over) is very slow though.
This is a known issue.  I just checked in the fix for that yesterday.   As a workaround, you can hide your 'auto' and 'watch' window by default, the debugger will be more responsive.  The 'local' window is okay though.


Support natively a few straightforward transformations

The idea is to support a few straightforward transformations such as

blank-to-empty: if the current content of the cell is blank (zero or many spaces) replace the content (empty)
blank-to-null: if the current content of the cell is blank (zero or many spaces) replace the content (null)
empty-to-null: if the current content of the cell is empty (length=0) replace the content (null)
null-to-empty: if the current content of the cell is null replace the content (empty)
null-to-value: if the current content of the cell is null replace the content (value)
any-to-any: replace the content of the cell by (any)
value-to-value: if the cell's value is not null will replace the content by (value)
trim : Remove blanks from the beginning and end of the cell.
lower-case: returns a copy of this string converted to lowercase
upper-case: returns a copy of this string converted to lowercase

For this we'll need to support a new language native

Beta available at https://ci.appveyor.com/project/Seddryck/nbi/build/1.16.0-beta.26.build.24

Beta available at https://ci.appveyor.com/project/Seddryck/nbi/build/1.16.0-beta.40.build.36


Add some comments about the notary constants, and other lint fixes.

It seems that make vet sometimes disagrees locally vs on CircleCI.  This
just fixes my local make vet complaints.
Signed-off-by: Ying Li<EMAIL_ADDRESS>Sometimes my local make vet seems to let me get away without commenting, too, so I'm not sure where the disparity is.

It seems I get a different make vet error than you have:
This file should end with '_test':
+ vet
make: *** [vet] Error 1

I'll look into this further and see if I have any suggestions, it seems like I'm hitting an empty filename or something...

That said, it's probably something just for my local setup, this PR LGTM :+1:

LGTM

@riyazdf And you said that find . -iname *test*.go | grep -v _test.go | grep -v Godeps returns nothing, right?
Could you let me know what which xargs returns?  And what echo | xargs echo "hey": returns?

I did some digging and it seems it was an issue with my xargs and homebrew findutils version, all fixed now :).  make vet passes for me now so LGTM!

@riyazdf Thanks!


局面図出力機能のアップデート

説明 / Description
#618
局面図の書き出し機能を以下のように更新する。

書体の選択を可能にし、明朝体を追加する。
文字画像のバンドルをやめてシステムのフォントを使用する。

チェックリスト / Checklist

MUST

[x] npm test passed
[x] npm run lint was applied without warnings
[x] changes of /docs/webapp not included (except release branch)
[x] console.log not included (except script file)

RECOMMENDED (it depends on what you change)

[ ] unit test added/updated
[x] i18n

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (97aa0ab) 70.26% compared to head (4dba3a6) 70.27%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #649      +/-   ##
==========================================
+ Coverage   70.26%   70.27%   +0.01%
==========================================
  Files          89       89
  Lines       17992    18010      +18
  Branches     2565     2566       +1
==========================================
+ Hits        12642    12657      +15
- Misses       2817     2819       +2
- Partials     2533     2534       +1

Files
Coverage Δ

src/common/i18n/locales/en.ts
99.16% <100.00%> (+<0.01%)
:arrow_up:

src/common/i18n/locales/ja.ts
98.73% <100.00%> (+<0.01%)
:arrow_up:

src/common/i18n/locales/zh_tw.ts
99.14% <100.00%> (+<0.01%)
:arrow_up:

src/common/settings/app.ts
78.61% <87.50%> (+0.16%)
:arrow_up:

src/renderer/store/setting.ts
52.24% <50.00%> (-0.04%)
:arrow_down:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


SBT publish to file system doesn't work

...or maybe I'm being dumb.
val resolver = Resolver.file("my-test-repo", file(".ivy2"))

lazy val main = project.settings(
  libraryDependencies ++= Seq(
    "org.example" %% "lib" % "0"
  ),
  resolvers := Seq(resolver)
)

lazy val lib = project.settings(
  organization := "org.example",
  publishTo := Some(resolver),
  version := "0"
)

Then
$ sbt lib/publish main/update
...
[warn]  module not found: org.example#lib_2.10;0
[warn] ==== local: tried
[warn]   /home/paul/.ivy2/local/org.example/lib_2.10/0/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/example/lib_2.10/0/lib_2.10-0.pom
[warn] ==== my-test-repo: tried
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.example#lib_2.10;0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: org.example#lib_2.10;0: not found

If I add (Resolver.ivyStylePatterns) to resolver, it still fails.
http://stackoverflow.com/questions/28996896/cant-update-after-sbt-publish-to-a-file-resolver

if you're publishing to an ivy repo, make sure publishMavenStyle := true.  I'd love to have that automatically detect which style ot use based on repo, but there are some people still using "Resolver.file" to push maven artifacts, as ivy half-ass supports this.
Also, can you include the publish logs?  Is it acutally pushing the ivy jar to the local repo?

Adding (Resolver.ivyStylePatterns) to resolver, and publishMavenStyle := false to lib works.
Thanks.
The three other possible combinations of ivyStylePatterms/mavenStylePatterns and publishMavenStyle did not work.
Full output of the initial build.sbt (FYI, reproducing is very easy, as it only requires only this file):
~/test9$ rm -fr .ivy2 && sbt lib/publish main/update
[info] Loading project definition from /home/paul/test9/project
[info] Set current project to test9 (in build file:/home/paul/test9/)
[warn] No main class detected
[info] Wrote /home/paul/test9/lib/target/scala-2.10/lib_2.10-0.pom
[info] :: delivering :: org.example#lib_2.10;0 :: 0 :: release :: Sat Mar 14 20:43:29 MDT 2015
[info] 	delivering ivy file to /home/paul/test9/lib/target/scala-2.10/ivy-0.xml
[info] 	published lib_2.10 to /home/paul/test9/.ivy2/org/example/lib_2.10/0.part/lib_2.10-0.pom
[info] 	published lib_2.10 to /home/paul/test9/.ivy2/org/example/lib_2.10/0.part/lib_2.10-0.jar
[info] 	published lib_2.10 to /home/paul/test9/.ivy2/org/example/lib_2.10/0.part/lib_2.10-0-sources.jar
[info] 	published lib_2.10 to /home/paul/test9/.ivy2/org/example/lib_2.10/0.part/lib_2.10-0-javadoc.jar
[info] 	publish commited: moved /home/paul/test9/.ivy2/org/example/lib_2.10/0.part
[info] 		to /home/paul/test9/.ivy2/org/example/lib_2.10/0
[success] Total time: 1 s, completed Mar 14, 2015 8:43:29 PM
[info] Updating {file:/home/paul/test9/}main...
[info] Resolving org.example#lib_2.10;0 ...
[warn] 	module not found: org.example#lib_2.10;0
[warn] ==== local: tried
[warn]   /home/paul/.ivy2/local/org.example/lib_2.10/0/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/org/example/lib_2.10/0/lib_2.10-0.pom
[warn] ==== my-test-repo: tried
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::          UNRESOLVED DEPENDENCIES         ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: org.example#lib_2.10;0: not found
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] 	Note: Unresolved dependencies path:
[warn] 		org.example:lib_2.10:0 (/home/paul/test9/build.sbt#L4)
[warn] 		  +- main:main_2.10:0.1-SNAPSHOT
sbt.ResolveException: unresolved dependency: org.example#lib_2.10;0: not found
	at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:278)
	at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:175)
	at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:157)
	at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:151)
	at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:151)
	at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:128)
	at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:56)
	at sbt.IvySbt$$anon$4.call(Ivy.scala:64)
	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:98)
	at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:81)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
	at xsbt.boot.Using$.withResource(Using.scala:11)
	at xsbt.boot.Using$.apply(Using.scala:10)
	at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:62)
	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:52)
	at xsbt.boot.Locks$.apply0(Locks.scala:31)
	at xsbt.boot.Locks$.apply(Locks.scala:28)
	at sbt.IvySbt.withDefaultLogger(Ivy.scala:64)
	at sbt.IvySbt.withIvy(Ivy.scala:123)
	at sbt.IvySbt.withIvy(Ivy.scala:120)
	at sbt.IvySbt$Module.withModule(Ivy.scala:151)
	at sbt.IvyActions$.updateEither(IvyActions.scala:157)
	at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1318)
	at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1315)
	at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$85.apply(Defaults.scala:1345)
	at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$85.apply(Defaults.scala:1343)
	at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:35)
	at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1348)
	at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1342)
	at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:45)
	at sbt.Classpaths$.cachedUpdate(Defaults.scala:1360)
	at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1300)
	at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1275)
	at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
	at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
	at sbt.std.Transform$$anon$4.work(System.scala:63)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
	at sbt.Execute.work(Execute.scala:235)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
[error] (main/*:update) sbt.ResolveException: unresolved dependency: org.example#lib_2.10;0: not found
[error] Total time: 3 s, completed Mar 14, 2015 8:43:32 PM

I'm not extremely familar with Ivy/Maven, but it seems there may be a bug and a feature request here

publishing or resolving a local maven repo doesn't work
it would be nice to not duplicate the Ivy/Maven information both in the resolver and publishMavenStyle

Hello from 2019.
I think this is mostly a documentation issue, which I am fixing in https://github.com/sbt/website/pull/832
The gist is:
publishTo := Some(MavenCache("local-maven", file("path/to/maven-repo/releases")))

and
resolvers += MavenCache("local-maven", file("path/to/maven-repo/releases"))

should work for Maven style repo.


feat: add @zk-kit/logical-expressions package

Description
This PR:

Moves the code to evaluate logical expressions from the Bandada project to a new package called @zk-kit/logical-expressions.

The evaluate function now throws an error if the logical expression is incorrect.

There is no need to verify the correctness of the logical expression before calling the evaluate function, as this will be checked during the evaluation. If the expression is incorrect, an error will be thrown automatically.
Example of correct logical expression: "true and false".
Example of incorrect logical expression: "true true and false".
The @zk-kit/logical-expressions package facilitates the work with logical (boolean) expressions. It allows you to tokenize and evaluate any logical expression. It supports the use of parentheses.
Logical operators supported: and, or, not, xor.
All other existing logical operators (nand, nor, xnor) can be generated using the supported logical operators.
More context: https://github.com/bandada-infra/bandada/issues/223
Future work:
The algorithm used to evaluate boolean expressions can be generalized to evaluate arithmetic expressions or other types of expressions if necessary.
Related Issue(s)
Closes https://github.com/privacy-scaling-explorations/zk-kit/issues/307
Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] I have run yarn style without getting any errors
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

@vplasencia feel free to publish


Understanding the SafeLife navigation task

(It is not a software issue, I'll delete the issue if it's not relevant.)
Dear Carroll and Peter,
I am a Masters in Robotics student at Oregon State University. I was dabbling with SafeLife for a while and had some doubts.
"A safe agent that wants to avoid side effects should strongly prefer to disrupt the robust yellow pattern rather than the fragile green pattern."
And you also mention this -> "In particular, any side effect penalty used during training must be prima facie unbiased towards side effects on cells of a particular color."
Since your side effect score looks at only green cells, how can the agent learn that it's okay to be unsafe with respect to yellow cells but not green cells. Hope you get what I mean! I've been scratching my head over this for a while now. Hope to hear from you soon.
Best Regards,

A very good question! And one we don't have a ready answer for. The idea here was to design two systems side-by-side: one that is robust to small perturbations (yellow cells) and one that is very fragile to small perturbations (green cells). The challenge is to come up with a definition of side effects that takes this robustness into account. The difference between the two ought to be fairly obvious to humans, so we would like to somehow encode our human intuitions of "making a mess of things" into our agents. A very simple side effect penalty that penalizes cell-wise differences from the starting state fails the test because it treats the natural variations in the yellow cells as the same sort of side effect as the agent-caused perturbations in the green cells.
The reason to not encode the difference between the yellow cells and the green cells explicitly into the impact penalty is that this would basically be cheating. A safe agent should be able to figure out on its own which side effects are cascading and which are not, and it shouldn't depend on some things being labeled "green" and some "yellow".
I hope that helps!
Cheers,
Carroll


fix(axis):fix radar axisName.overflow not correct work

Brief Information
This pull request is in the type of:

[x] bug fixing
[ ] new feature
[ ] others

What does this PR do?
Fix radar axisName.overflow not correct work

Fixed issues

#17414
#17319

Details
Before: What was the problem?

After: How does it behave after the fixing?

Document Info
One of the following should be checked.

[x] This PR doesn't relate to document changes
[ ] The document should be updated later
[ ] The document changes have been made in apache/echarts-doc#xxx

Misc
ZRender Changes

[ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs
N.A.
Others
Merging options

[ ] Please squash the commits into a single one when merging.

Other information

@gooroodev review

1. Summary of Changes
The pull request makes the following changes:

AxisBuilder.ts:

Adds support for overflow and sets a default value of 'truncate'.
Adds a default value for ellipsis as '...'.
Updates how maxWidth is retrieved, now considering truncateOpt.width as well.
Updates the text style to use the overflow property from truncateOpt.

axisCommonTypes.ts:

Adds overflow and width properties to the nameTruncate option in the AxisBaseOptionCommon interface.

RadarModel.ts:

Adds the nameTruncate property to the radar axis configuration.

2. Issues, Bugs, or Typos
Issue 1: Default Values for overflow and ellipsis

The default value for overflow is set to 'truncate' directly in the destructuring assignment. This is good practice, but it can be made more readable by separating the assignment.

Issue 2: Consistency in Property Names

The code uses both maxWidth and width in truncateOpt. It would be better to standardize on one term to avoid confusion.

Proposed Improvement 1: Separate Default Value Assignment
const truncateOpt = axisModel.get('nameTruncate', true) || {};
const overflow = truncateOpt.overflow ?? 'truncate';
const ellipsis = truncateOpt.ellipsis ?? '...';
const maxWidth = retrieve(
    opt.nameTruncateMaxWidth, truncateOpt.maxWidth ?? truncateOpt.width, axisNameAvailableWidth
);

Proposed Improvement 2: Standardize on maxWidth
const maxWidth = retrieve(
    opt.nameTruncateMaxWidth, truncateOpt.maxWidth, axisNameAvailableWidth
);

Update the interface to use only maxWidth:

export interface AxisBaseOptionCommon extends ComponentOption {
    // By degree.
    nameRotate?: number;
    nameTruncate?: {
        overflow?: TextStyleProps['overflow'];
        maxWidth?: number;  // Use only maxWidth
        ellipsis?: string;
        placeholder?: string;
    };
    // Other properties...
}

3. General Review of Code Quality and Style

Readability: The code is generally readable. However, separating the assignment of default values for overflow and ellipsis can improve readability.
Consistency: The use of both maxWidth and width in the same context can be confusing. It's better to standardize on one term.
Type Safety: The changes are type-safe and align with TypeScript best practices.
Documentation: Ensure that any new properties added to interfaces are documented for clarity.

Overall, the changes improve the functionality and maintainability of the code. The proposed improvements aim to enhance readability and consistency.
Yours, Gooroo.dev. To receive reviews automatically, install Github App


blockchain: Better ReconstructUData comment

ReconstructUData comment now specifies that it will error out if the given udata to reconstruct is for a block that's not a part of the best chain.  This gives a clearer explanation to the caller since it's not obvious that this would throw an error.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
21 unchanged lines in 4 files lost coverage.
Overall coverage decreased (-0.004%) to 53.327%

Files with Coverage Reduction
New Missed Lines
%

btcec/signature.go
3
100.0%

database/ffldb/blockio.go
4
100.0%

database/ffldb/db.go
5
100.0%

peer/peer.go
9
100.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.004%

Covered Lines:
27539

Relevant Lines:
51642

💛  - Coveralls


python312Packages.google-cloud-os-config: 1.17.5 -> 1.18.0

Changelog: https://github.com/googleapis/google-cloud-python/blob/google-cloud-os-config-v1.18.0/packages/google-cloud-os-config/CHANGELOG.md

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 351384

x86_64-linux

:white_check_mark: 8 packages built:

python311Packages.google-cloud-asset
python311Packages.google-cloud-asset.dist
python311Packages.google-cloud-os-config
python311Packages.google-cloud-os-config.dist
python312Packages.google-cloud-asset
python312Packages.google-cloud-asset.dist
python312Packages.google-cloud-os-config
python312Packages.google-cloud-os-config.dist


FileNotFoundError: [Errno 2] No such file or directory: 'data/activitynet/captions/train.json'

I have a error, when run:python prepare_activitynet.py
FileNotFoundError: [Errno 2] No such file or directory: 'data/activitynet/captions/train.json
where I can download: train.json/val_1.json/val_2.json?

Hi, sorry, the files were missing. I just pushed them. Please pull, check if it works and reopen the issue if it doesn't.
Best


Truncate ENSEMBL IDs from GenCode to remove versions, especially for genes

Statement of Problem
GenCode maps genes to Ensembl IDs that include the gene version--e.g., ENSG00000232377.1. At least two of the Data Distillery SABs use Ensembl IDs for genes that truncate the version--e.g., ENSG00000232377. This means that it would not be possible to link a gene from one of the SABs to its GenCode reference information through a simple join.
Proposed solution
Trim the version from Ensemble IDs as part of the GenCode ingestion.

Completed


collector runs for about 20 minutes then throws nil pointer errors

Overview
Nil pointer bug
### Tasks
- [ ] https://github.com/liatrio/liatrio-otel-collector/issues/198

FIxed


Documentation

Produce documentation on project structure, how to run on different platforms, stand-alone, docker and Kubernetes and how to run and implement tests. Explain all features present on the template and how to tailor to every need

@aanciaes documentation wise, the README already covers basic info about the project structure and how to run the project. I think the k8s deployment (and documentation needs to be addressed separately), what do you think?


chrome won't scroll to show wiki pages

I'm having trouble making this repeatable. When chrome stops scrolling there is no way to see pages added after the last visible page. Sometimes it will scroll properly but when it stops no amount of reloading will get it going again.
A suspicious symptom is that minX in scrollTo is null. I have not seen this problem in Firefox or Safari. When I just tried Safari I found that minX was 0 as expected.
I was suspicious of the caching of scrollContainer. I disabled this so that findScrollContainer runs every time. No improvement.
Chrome says its up-to-date at version 17.0.963.56 on OSX 10.6.8.

Hmm.  Is the active class still changing properly?

More hints:
Safari (Version 5.1.2) works as expected.
Firefox (Version 10.0.2) ends up where expected but doesn't scroll smoothly when moving with browser forward/back controls.

Yes, active class changes properly in all cases.

Took a shot at this on my system, but I can't find what would break it in that way.

Ok. I'll set a trap for minX going null and see if I can correlate it with anything I do.

Found it. Chrome will sometimes report scrollLeft() of 0 after a scrollLeft(1)
This must depend on display scale factor and how numbers might round.
Work around is to probe with a scrollLeft(2) in findScrollContainer.
I'll put together a commit.

Aargh.  Glad you found it though.

Chrome requires a scrollLeft probe of at least 4 to be detected at the smallest scale.

That is really odd.  None of the versions of chrome/chromium I have access to on linux/windows has that problem.

I don't doubt that the problem is in how the particular browser chooses to interact with the particular window system and ultimately how that gets represented back to javascript through the dom. There are a lot of moving parts here. No surprise that there are issues. I'm glad we have a variety of platforms between us. (I'm wondering how we can write an integration test for this. Doesn't sound easy.)


FE-899 FE-991 MVP of Unit Tests & Coverage with JaCoCo

Why?
We need some first basic unit tests for each "different domain" (e.g UseCases, util functions, ViewModels, Repositories etc) which will run on every PR and a basic coverage reporting using JaCoCo.
How?

Added Kotest library for Kotlin Unit Tests, Mockk library for mocking and androidx.arch.core.testing which is a library handling LiveData in Unit Tests. We use Behavior Spec in the way we write our unit tests which helps being self-descriptive.
On PR CI/CD added another action to run unit tests with the SKIP_TAGS_LOGGING project parameter which skips logging the tags in order for the console to be as clear as possible. Added support for this parameter in build.gradle. Also added a "Test Report" step which can be found in each PR action.
In Validator replaced Patterns.EMAIL_ADDRESS.matcher(username).matches() with PatternsCompat which provides better support and can be used in unit tests.
Created various Unit Tests for different domains in our code which use the shouldBe assertion and verify or coVerify to ensure that a X fun has been invoked exactly = Y times.
Created a Coverage GitHub Action which uses JaCoCo and the jacoco-report action that prints in each PR coverage-related information.

Testing
Just run the Unit Tests locally by right clicking on "test [unitTest" and then clicking "Run Tests":

Also if the unit tests that will run in this PR through CI/CD are successful.

@pantelisss This is ready for testing/review, low priority though as we need to wait for John as well to review it. Feel free to ping me for anything.


fix readme file example

Fixes readme
Fixes a segfault on shutting down server
Returns oauth token so caller can use it, in situations other then an http client. For example if you need to store the credentials to a database

Hey there, sorry for taking such a long time to get back to you.
I pushed an update quite a bit ago that fixed the same things you pointed out: 98a9617b85e65cce69b59cf765bb9962a6a11c61
Would it bring the changes you wanted with this PR ?


Sporadic, exit memory error using MallocCheckHeapEach flag

There is still a bug, with MallocCheckHeapEach, from an Hdf5 garbage collector, that sporadically causes an error on exit with the flag enabled. Can't figure out whats causing it.
Get it every 2-3 run Example_apr_iterate on master, running on osx.
Valgrind has no issues, excluding the pointers in the register_blosc(), function.

Let me check if this is also still an issue.

Yip, I get it running still every 2-3 runs on Example_apr_iterate, using sphere_apr.h5 (120)
When using the following flag: MallocCheckHeapStart

I do not think that problem is connected to APR directly. I can reproduce it with such a simple example:
extern "C" {
	#include "hdf5.h"
}

int main() {
hid_t fid = H5Fopen("x.h5", H5F_ACC_RDONLY,H5P_DEFAULT);
hid_t obj_id = H5Gopen2(fid,"ParticleRepr/t",H5P_DEFAULT);
hid_t data_id = H5Dopen2(obj_id, "particle_intensities", H5P_DEFAULT);
H5Dclose(data_id);
H5Gclose(obj_id);
H5Fclose(fid);
}

so it happens even without reading data at all and seems to come from HDF5 library.
It might be also that sth is wrong with MallocCheckHeapStart itself. It happens that it kills my vim editor for example and it happens only when this check is activated.
Vim: Caught deadly signal SEGV

I thought something strange could be the case, very interesting!, guess we can close this. Good work :)


Note: Haven't extracted the data yet, a freind of mine suggested to add that in my discord Bot project which uses this Qur'an Api, i can add it seperately but just asking if you could add that in this api?
Jazak Allah!

Yes, please share the translation

No, I don't use discord, you can share the files here

oh ok, i will upload that here (Discord account got disabled for idk, so I was bit busy setting up new things thats why im responding after 3 days)
i will upload today In-Sha-Allah

AssalamuAlikum!
https://github.com/DRehman-Bilal/Quran-Translation---Tahir-ul-Qadri/blob/master/README.md

Can you provide me a text file in this format

Sure, but it will take time due to the speed it takes to extract one ayah like 1-2 seconds for one ayah

No problem, take your time

AsslamuAlikum!
https://github.com/DRehman-Bilal/Quran-Translation---Tahir-ul-Qadri/blob/master/urd-muhammadtahirulqadri.txt
This is not formatted, i was unable to format due to structure, i didnt extracted them but i use the existing directory with all the files and folders i extracted earlier

There are few mistakes in the text file, for example see 37:23 and 37:23.
I will try to create a correct text file in my freetime

Ok i will see the mistakes and try to format myself

Heyy dont format this file cuz it may contains more mistakes, i just saw the folder which contains the verses and its dosent hae any mistake in 37:23 as u see here

AsslamuAlikum!
Alhamdullilah i have managed to do it
https://github.com/DRehman-Bilal/Quran-Translation---Tahir-ul-Qadri/blob/master/urd-muhammadtahirulqadri.txt
Jazak Allah for adding it

Added


Fix colon styling in SnapshotHelper

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context

Styling was not consistent on colons.
Description

Fixed styling on colons

I signed it!


Tracking: Document Zcash consensus rules in Zebra codebase

Motivation

We want to ensure that all of the Zcash consensus rules are implemented in Zebra. In order to help us do this, we should document where the Zcash consensus rules are implemented in the Zebra codebase.
This will also help when auditing Zebra.
Tasks for each consensus rule:

check that the rule is implemented in Zebra
make sure the latest version of the rule is quoted in the docs for the code that implements it
make sure the code implements the latest version of the rule

Consensus Rules found in the Zcash Protocol Specification

[x] #3209
[x] #3210
[x] #3211
[x] #3212
[x] #3213
[x] #3214
[x] #3215
[x] #3216
[x] #3217
[x] #3218
[x] #3219
[x] #3220
[x] #3221
[x] #3222

[x] #3420
[x] #3421
[x] #3422
[x] #3423
[x] #3424

[x] #3223

[x] #3425
[x] #3426
[x] #3427
[x] #3428

[x] #3224
[x] #3225
[x] #3226
[x] #3227
[x] #3297
[x] ~Document 7.9 Payment of Founders’ Reward consensus rule~ (Not implemented as we checkpoint on Canopy)
[x] #3228

Consensus ZIPs

NU5

TODO: list other ZIPs
Document ZIP 244: Transaction Identifier Non-Malleability, blocked by:

ZIP 244 - Changes to transparent component of signature digest
#3291

NU4: Canopy

[ ] Document ZIP 207: Funding Streams
[ ] Document ZIP 211: Disabling Addition of New Value to the Sprout Value Pool
[ ] Document ZIP 212: Allow Recipient to Derive Sapling Ephemeral Secret from Note Plaintext
[ ] Document ZIP 214: Consensus rules for a Zcash Development Fund
[ ] Document ZIP 215: Explicitly Defining and Modifying Ed25519 Validation Rules
[ ] Document ZIP 251: Deployment of the Canopy Network Upgrade

NU3: Heartwood

[ ] Document ZIP-221: Flyclient
[ ] Document ZIP-213: Shielded Coinbase
[ ] Document ZIP 250: Deployment of the Heartwood Network Upgrade

NU2: Blossom

[ ] Document ZIP-208: Shorter Block Target Spacing
[ ] Document ZIP-206: Deployment of the Blossom Network Upgrade

NU1: Sapling

[ ] Document ZIP-243: Transaction Signature Validation for Sapling
[ ] Document ZIP 205: Deployment of the Sapling Network Upgrade

NU0: Overwinter

[x] ZIP-143: Transaction Signature Validation for Overwinter - obsoleted by ZIP-243 (Sapling - Canopy) and ZIP-244 (NU5)
[ ] ZIP-200: Network Upgrade Mechanism
[ ] ZIP-201: Network Peer Management for Overwinter
[ ] ZIP-202: Version 3 Transaction Format for Overwinter
[ ] ZIP-203: Transaction Expiry

Sprout

[x] ZIP-209: Prohibit Negative Shielded Chain Value Pool Balances - done in #3286
[ ]

Related Work

Thank you @mpguerra for listing those!
How should we carry out this work?
I think the hardest part is identifying each rule. My suggestion is coming up with a way to create an identifier for each one, and them mention each of them in the code where they are implemented. Then we could maybe create a script or just grep the code to list them all, and compare the list to the full list of rules to make sure we didn't forget anything. Eventually we could reach out to ECC to maybe include the identifier in the spec. As long as we have an identifier for each one of them, it's easy to rename them later if needed.
Does this make sense, or is it too much work? Without this it will be really hard to find where each rule is implemented, and to determine if we missed any rule.
My suggestion would look like:

Decide on a standard for the rule identifiers (e.g. something like rule-7.3-anchor-sapling-less-qj)
Go over the spec and fill an e.g. spreadsheet with the (sub)section, the identifier, and the text of the rule
Decide on how to mention the identifier in the code to make it easy to find
For each rule, find where it's implemented and add the mention to the rule
List all identifiers in the code, compare to the rule list, make sure we didn't forget anything

@dconnolly @teor2345 @upbqdn what do you think?
I feel like @daira and @str4d probably have thought about this in the past and may already have something in mind :laughing: In fact I just saw https://github.com/zcash/zips/issues/468 and https://github.com/zcash/zcash/issues/3957. Anything that we should keep in mind when considering this?

I like the general idea of having the consensus rules mapped in a one-to-one fashion between the code and the spec by leveraging unique identifiers. I think it might be helpful even if one consensus rule is scattered around multiple places in the codebase.
To me, the consensus rules resemble math definitions, so having a naming system that would allow referring to each rule by its name would be convenient.

I think the hardest part is identifying each rule. My suggestion is coming up with a way to create an identifier for each one

I don't think we should create our own identifiers, because we would have to maintain them separately with every spec change. But if the zcashd developers can commit to maintaining the identifiers in the spec, in the timeframe we need, we could use those.
Otherwise linking to the sub-section is good enough for now.

This is done!


fix(iteration): iteration start date cannot be later than end date

Fix: https://openshift.io/openshiftio/openshiftio/plan/detail/1611

Waiting for the snapshot to be available.

@vikram-raj fabric8/fabric8-ui:SNAPSHOT-PR-2325-4 is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-2325-fabric8-planner.badger.fabric8.io


Error 500 when updating the Account configuration page

So this seems to be caused by the field Subject terms being empty. As far as I can tell other fields can be empty and not cause the error when saving the page.

(Sorry, I forgot this.) The line:
https://github.com/ScilifelabDataCentre/OrderPortal/blob/ae10cb276f409eb885740d5bda52b966291d4047/orderportal/admin.py#L1116
needs to be changed to:
            try:
                dialect = csv.Sniffer().sniff(indata)
            except csv.Error:
                dialect = "excel"


Fix typo

Fix a typo in the file extension.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/create-packages/Publish-a-package.md
:white_check_mark:Succeeded
View

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.

Thanks! That typo slips in on occasion, so I appreciate your taking the time to fix it.


numbering mismatch in custom script table displayed when we select option "1 Gets a list of custom scripts"

There is a minor issue with the numbering of the script in table. For me it has displayed scripts from 0 to 36. I wanted to see the script number 33 so I selected 33 but it has displayed the script 32. To see the script number 33 I need to input 34. Please see the attach images.

Interesting, When I entered 0 it printed the below result:
Selection: 0
Please enter one of q, b, w, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36

Oh, yes it seems that it is just the error in displaying the number in the table.