Export GLFW targets

The current cmake code does not export its targets (modern cmake).
If you make a project that uses GLFW with the following CMakeListst.txt I would've expected it to work.
cmake_minimum_required(VERSION 3.16)
project(VulkanExample)

set(CMAKE_CXX_STANDARD 17)
find_package(Vulkan REQUIRED)
find_package(glfw3 REQUIRED)

add_executable(${PROJECT_NAME} main.cpp)

target_link_libraries(${PROJECT_NAME} Vulkan::Vulkan glfw3::glfw)

With the small change in this PR, the above is possible (without a Findglfw3.cmake file), only specify glfw3_DIR=/src.
Details:
The old cmake solution would've been to write a find file for GLFW. Findglfw3.cmake. But modern cmake makes life easier. GLFW should instead produce glfw3Config.cmake file (already done in GLFW) that imports its own targets. No need to write a find. But this shouldn't effect finds in any way.
When find_package is run it will search glfw3_DIR, cmake path, & system path for a find (old cmake, or non-cmake libs) OR config file (modern).
GLFW config file is produced in /src. When glfw3_DIR=/src is given in a project. It fails to find any targets in the config. Looking at GLFW cmake code, no targets are exported. This PR is a fix for that. It now exports targets and the above cmake should work simply by providing glfw3_DIR=/src. No need for a find.

For the records, glfw do export targets. When you install glfw, it correctly writes glfw3Config and all. What you describe and what your PR adds is support for exporting from the build tree.


[smove] add bundle support

The support for compiling packages (bundled Move modules)

https://github.com/eigerco/smove/pull/4


Is this still a polyfill?

Definition of polyfill by Mozilla:
"A polyfill is a piece of code (usually JavaScript on the Web) used to provide modern functionality on older browsers that do not natively support it."
When you add code doing more than what the modern actually API does, it is no longer really a polyfill.
#199  #205

Very true. No matter someones views on malware/protestware and whether this fits the definition, this is definitely no longer a polyfill and shouldn't be used as one.

Please change the definition so

Change the definition of polyfill to include unexpected, undocumented behavior?


Feat/semantic release

新增自动发布功能

Hi @buket-wu ！We are grateful for your efforts in helping improve labelbee open-source project during your personal time.
Welcome to join OpenMMLab Special Interest Group (SIG) private channel on Discord, where you can share your experiences, ideas, and build connections with like-minded peers. To join the SIG channel, simply message moderator— OpenMMLab on Discord or briefly share your open-source contributions in the #introductions channel and we will assist you. Look forward to seeing you there! Join us ：https://discord.gg/UjgXkPWNqA
If you have a WeChat account，welcome to join our community on WeChat. You can add our assistant ：openmmlabwx. Please add "mmsig + Github ID" as a remark when adding friends：）
Thank you again for your contribution❤

:tada: This PR is included in version 1.14.0-alpha.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Hello, How can I read a non-standard response

Hello, How can I read a non-standard response

throwed

Can you add the request and the exception + stacktrace so I can find a solution for it?

run this command to fake a response:
echo 'HTTP/1.1 1x OK
Server: xxx
Content-Length: 6

011110' | nc -l 123

Code
import requests_raw

if __name__ == '__main__':
        x = requests_raw.raw("http://<IP_ADDRESS>:123", "GET / HTTP/1.1\r\n\r\n")

Exception:
('Connection aborted.', BadStatusLine('HTTP/1.1 1x OK\n'))
Traceback:
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/opt/homebrew/lib/python3.10/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/opt/homebrew/lib/python3.10/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File<EMAIL_ADDRESS>line 1374, in getresponse
    response.begin()
  File<EMAIL_ADDRESS>line 318, in begin
    version, status, reason = self._read_status()
  File<EMAIL_ADDRESS>line 308, in _read_status
    raise BadStatusLine(line)
http.client.BadStatusLine: HTTP/1.1 1x OK

Oh so this is actually an issue with httplib but I think o can fix it 😅
1x is the actual response code? Or 100/101?
On Tue, 10 Jan 2023 at 15:30 Dem0ns @.***> wrote:

run this command to fake a response:
echo 'HTTP/1.1 1x OK
Server: xxx
Content-Length: 6
011110' | nc -l 123
Code
import requests_raw
if name == 'main':
x = requests_raw.raw("http://<IP_ADDRESS>:123", "GET / HTTP/1.1\r\n\r\n")
Exception:
('Connection aborted.', BadStatusLine('HTTP/1.1 1x OK\n'))
Traceback:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/opt/homebrew/lib/python3.10/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/opt/homebrew/lib/python3.10/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File @./3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1374, in getresponse
response.begin()
File @./3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File @.***/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 308, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: HTTP/1.1 1x OK
—
Reply to this email directly, view it on GitHub
https://github.com/realgam3/requests-raw/issues/5#issuecomment-1377278371,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABKOSGBRCX7N2L3OPATGG4DWRVP5ZANCNFSM6AAAAAARHSPOB4
.
You are receiving this because you commented.Message ID:
@.***>

Please try: https://github.com/realgam3/requests-raw/tree/v1.1 :)

Version 2.0.0 Released:
https://github.com/realgam3/requests-raw/releases/tag/v2.0.0


docs: add docs for docker deployment

add docs for docker deployment
add EXPOSE 8080 into Dockerfile

We should update all the other languages of readme files when updating documentation. you can just write them in english so that other people can translate them later.

I will solve these problems and change the chinese readme.md, then craete a new PR
thanks for your suggestion.

OK, I has fixed it and change the chinese readme.md
please review it

Maybe also add example with docker-compose? A lot of people (like me) likes running docker containers using docker-compose. I have example with building and passing args:
version: '3.9'

services:
  spoof-dpi:
    build:
      context: .
      dockerfile: Dockerfile
    command: "-debug"
    restart: always
    ports:
    - "8080:8080"

If you are not into adding, I can add it after this PR merge.

Maybe also add example with docker-compose? A lot of people (like me) likes running docker containers using docker-compose. I have example with building and passing args:
version: '3.9'

services:
  spoof-dpi:
    build:
      context: .
      dockerfile: Dockerfile
    command: "-debug"
    restart: always
    ports:
    - "8080:8080"

If you are not into adding, I can add it after this PR merge.

thanks for your example, I will add it into README.md

I've been thinking of moving the installation instruction into a separate markdown file. i will let you know when it's ready for this.

Hi! Without specifying the address <IP_ADDRESS> proxy will not work, I suggest this option under Compose (I have it working in tandem with Peertube):
networks:
  spoofdpi:
    attachable: true
    name: spoofdpi
services:
  spoofdpi:
    container_name: spoofdpi
    command: '-addr <IP_ADDRESS> -enable-doh -debug'
    build:
      context: .
      dockerfile: Dockerfile
    tty: true
    stdin_open: true
    networks:
      - spoofdpi
    restart: unless-stopped

If you use it inside your Compose project, it can be accessed between containers using the spoofdpi network at http://spoofdpi:8080


Adjust fonts and font sizes

Align fonts and fontsizes in the app
In some places they’re too big
Some of the fonts aren’t consistent
Etc

set hebrew font to: Rubik
english fonts to: Nunito


Time Constraints notification on schedule board has limitation

Hi Team,
I have noticed that the time constraints Time from promised and Time to promised notification  on schedule board is not working when those fields are not available on the view from which the requirement is dragged. Hope this would be added to the documentation / corrected in the feature.
Regards
Pavan

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

ID: 4ca1d0c7-4505-202c-5428-5e8317783657
Version Independent ID: 8a857ba9-5131-e4b2-c2df-f2428998d55c
Content: Schedule with time constraints in Dynamics 365 Field Service
Content Source: ce/field-service/schedule-time-constraints.md
Service: dynamics-365-customerservice
Technology: field-service
GitHub Login: @FieldServiceDave
Microsoft Alias: daclar

Thanks for raising this issue Pavan - and apologies for the long delay! I'm cleaning up some out-standing issues here, and have made sure your clarification is reflected in our backlog for updates!


Small bug in publishers

Small bug!

Minor but will have to redeploy at some point. May want to wait until we are done debugging in case we get more S2APLER fixes.


Selecting large amounts of text makes highlight disappear

Which operating system does the issue occur on?

Linux X11
When selecting text and scrolling at the same time using the new scrolling->history feature, there is a visual bug concering the selected text.
When more text is selected than fits on the viewport, and the viewport is scrolled so that only selected text is visible, the selection marker (inverted colors) disappears. If the viewport is scrolled so that only parts of its contents are selected, the selection marker shows up fine.

Thanks for the report! I believe that nobody actually ever tested selection while scrolling, since it's a bit awkward to do with a mouse.
Currently it seems like the selection only updates during mouse movement, not when scrolling. But since scrolling changes the text under the cursor, it should also update the selection. I believe implementing this should work around the issue of selection disappearing and it should provide the added benefit that selection during scroll feels more responsive.

Okay, so it turns out my original comment on this issue was a bit misguided. The selection not updating when scrolling and the issue reported here are entirely separate.


Enable seamless reload and globbing capabilities

Also fix an issue with the path to the rules having an extra newline that causes the rules to not get loaded.
@dotnet/project-system

Good catch. We need integration tests to test this.
:+1:


pool transactions component is very slow

Well, the title says is all. If there are more that 3-4 pages it feel like an eternity ( exaggeration intended )
I'm sure (hope) that we can improve it.

Waiting for the merge of #868


[Bug]: peerDependency error of @suspensive/react when using @suspensive/react-query standalone

Package Scope
@suspensive/react, @suspensive/react-query, @suspensive/react-query-4, @suspensive/react-query-5
Bug description
When using @suspensive/react-query as standalone, I'm getting a peerDependency error for @suspensive/react.
Failed to compile.

../../node_modules/.pnpm/@suspensive+react-query-5@2.18.4_@tanstack+react-query@5.59.16_react<EMAIL_ADDRESS>Module not found: Can't resolve '@suspensive/react'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
../../node_modules/.pnpm/@suspensive+react-query-5@2.18.4_@tanstack+react-query@5.59.16_react<EMAIL_ADDRESS>../../node_modules/.pnpm/@suspensive+react-query@2.18.4_@tanstack+react-query@5.59.16_react<EMAIL_ADDRESS>./app/clubs/[id]/page.tsx

Node.js: 20.10.0
Next.js: 14
@tanstack/react-query: 5
@suspensive/react-query: 2.18.4

Expected behavior
According to the official documentation, we should only need to install:
npm install @suspensive/react-query @tanstack/react-query

To Reproduce
https://codesandbox.io/p/sandbox/optimistic-wood-c4jp33

Possible Solution
No response
etc.
Is this intended behavior? It seems we might need to address this gap in one of two ways:

Documentation could be updated to include @suspensive/react installation:
npm install @suspensive/react-query @suspensive/react @tanstack/react-query

Or the peerDependency configuration could be adjusted to align with the current documentation

https://github.com/toss/suspensive/issues/1325
Same issue in my opinion


Add negative tests for type_constructor

Add negative tests for module type_constructor.
Module type_constructor https://github.com/Wandalen/wTools/tree/alpha/module/rust/type_constructor
Link on directory with tests for module type_constructor https://github.com/Wandalen/wTools/tree/alpha/rust/test/dt/type_constructor
Write tests for implementation of single, homopair, pair and many.
Negative testing :

test that throws compile time errors
test that throws runtime errors

For example, the mismatched types error is the compile time error.
Use trybuild to test compile time errors.
Example of such test

Andrii_A

Accept


Added example for nodepools for dataseource and updated docs

Overview
Example for datasource
Summary of changes
Datasource example for nodepool and nodepools
This PR does the following:

Added datasource example for nodepool and nodepools
Updated doc

Testing performed

[ ] Using unit tests
[ ] Manually, on my local system
[ ] Manually, on a remote test system

Describe any breaking changes

...

Task linked: DUPLO-16116 TF Document:Add example usage for 'duplocloud_gcp_node_pool' and 'duplocloud_gcp_node_pools' data source.

Please resolve conflicts @Duplo-nikv


[FEATURE REQUEST] - Sort by Size in Current Layer Contents

Would be nice to sort asc / desc based on size   in the current layer contents

Yes, this would be amazing for easily finding the worst offenders!

Definitely would love this. Needed it today.

Unfortunately, it's been almost a year since this codebase has had any merge activity on it, and I suspect it may be essentially "done" at this point. If anybody wants this feature, you can grab it from https://github.com/iiian/dive. I'll add some build instructions to the readme, but it's incredibly simple, I was really excited when the thing just built, first-try, with literally zero fuss.
git clone git@github.com:iiian/dive.git
cd dive
make all
# your output will be in ./dist/dive_<your-target-triple>/dive
# for example, ./dist/dive_linux_amd64/dive

Then just grab it and toss it in your usr/bin or wherever.
Happy new year! 🥂🐳🤿

Thanks @iiian , I was having trouble cloning it with ssh, but it worked with git clone https://github.com/iiian/dive

@wagoodman is there any interest in incorporating this feature into the main repo?

@jumarko , I am pretty sure this has been merged into the main repo -- I have version 0.11.0 installed via homebrew & ^O toggles sort.
We might be able to close this PR

^O toggles sort.

@iiian that's nice, I didn't know that.
It seems it's not documented, though - it would be nice to add that to the README.

Ah, sorry my tone might have been misleading. I'm just a contributor, I don't have repo control or anything, and it took quite awhile to get that PR merged in. Agree though, I probably should have made a documentation update as part of that PR

#89


update composer description: "ZF2" -> "Zend Framework"

old composer.json's description still using "ZF2" wording, I updated to "Zend Framework"

in favor of https://github.com/zendframework/ZendSkeletonApplication/pull/329 PR

Thanks, @samsonasik !


error creating API Gateway v2 domain name

Because of loss of dependency, first creating object occurs below error.
Error: error creating API Gateway v2 domain name (): BadRequestException: Error retrieving certificate from ACM: The certificate '' must have a fully-qualified domain name, a supported signature, and a supported key size.

  on .terraform/modules/api-auth-proxy/modules/subdomain/apigateway.tf line 1, in resource "aws_apigatewayv2_domain_name" "subdomain":
   1: resource "aws_apigatewayv2_domain_name" "subdomain" {

fixed at https://github.com/adacotech/terraform-aws-api-auth-proxy/commit/2ef16101cfc0b64b0c56b71e397191602192eabf


chore: add tslib as dev dependency in workspace

It is a peer dependency of rollup-typescript plugin,


404 when query parameters are present on a context path based route

We've been exploring usage of the new context path based routing feature. In general, it has worked very well. We have come upon one problem case. When we create a route such as 'my_path', and then issue a request that includes query parameters, we receive a 404. For example, GET /my_path?foo=bar will fail when my_path is registered and GET /my_path succeeds. You can see the failure with a test such as:
	It("Handles requests with a query string on path", func() {
		ln := registerHandler(r, "test/my_path", func(conn *test_util.HttpConn) {
			conn.CheckLine("GET /my_path?foo=bar HTTP/1.1")

			conn.WriteResponse(test_util.NewResponse(http.StatusOK))
		})
		defer ln.Close()

		conn := dialProxy(proxyServer)

		conn.WriteLines([]string{
			"GET /my_path?foo=bar HTTP/1.1",
			"Host: test",
		})

		conn.CheckLine("HTTP/1.1 200 OK")
	})

Our expectation is that such a request would resolve the correct application for my_path with the query parameters passed along. We are seeing this behavior on cf-release v214, though the above test fails against the master gorouter branch.
I have created one possible fix by stripping the query string from request.RequestURI. It looks like Go 1.5 might have a more succinct method via request.URL.EscapedPath(), but it was unclear to me whether Go 1.5 was allowed and the travis.yml suggested it might not be.
I'm happy to turn that commit into a pull request if desired.
Thanks.
Casey

Hi @caseyhadden
Thanks for the find!
Took a quick look at it and yes definitely a defect. Your proposed fix would fix the issue,  however when reviewing the Issue and on closer inspection,  I found a fix closer to the route registry.  Basically wanted to put the fix closer to the root problem (vs. in the proxy).
Should have a fix up pretty soon, and you can have a look.
Cheers
@markstgodard (from the CF Routing Team)

Thanks, @markstgodard. I'd considered whether a fix somewhere lower might be a better fix, but wasn't sure about the total set of relationships among the pieces. Regardless, it will be good to get it fixed and working.

Verified fixed with bosh-lite.
Fixed with commit https://github.com/cloudfoundry/gorouter/commit/8365ea68c0ae49b6ced420b1054cd9910eba4f42
Gorouter bumped in cf-release https://github.com/cloudfoundry/cf-release/commit/408ea1ac3d6ddc0b01ba9315a82a58e1589b7e92
The bump hasn't made it to master yet, so is likely to be included in v218


args.inverse=True give wrong results in MS task

Hi! Thank you for your model!
I'm using informer with my data in Colab and I want to use the function inverse to know if the output makes sense. Anyway if I use MS task (I want to predict only one curve from a lot) the output is wrong, about one order of magnitude. If I use M task, but I don't want to predict all curves, the output is similar to the input. How can I solve this?
Thank you so much!

If you want to use inverse in MS task, you need to modify func inverse_transform of StandardScaler in utils/tools.py and make judgement before transform and use the mean and std of the target dimension to inverse transform

Thank you so much!


"RedisException: MOVED redirection loop detected" is popped out after Redis Master nodes down and up

Expected behavior
We have application using Redisson to access Redis cluster(16 masters+16 slaves).
We have a test case which is to shutdown one or more Redis Master nodes then take them up.
We expect after the action above(Redis Master nodes down and up), the Redisson can still find the right node when accessing Redis.
Actual behavior
For example, there 2 Servers <IP_ADDRESS> and <IP_ADDRESS>.
There are 8 master Redis nodes on <IP_ADDRESS> with port 6000-6007, the slaves of the 8 masters are 6100-6107 on <IP_ADDRESS>.
The same, there are 8 master Redis nodes on <IP_ADDRESS> with port 6000-6007, the slaves of the 8 masters are 6100-6107 on <IP_ADDRESS>.
The test case is that all the Redis nodes on <IP_ADDRESS>  are shutdown then taken up.
So after shutting down, all the Redis nodes on <IP_ADDRESS> become Master. And after the Redis nodes on <IP_ADDRESS> are taken up, the Master Role of 6100-6107 on <IP_ADDRESS> will be switched back to 6000-6007 on <IP_ADDRESS>, which is done by another script according to our function definition.
At that time, Redisson will report the exception like below:
org.redisson.client.RedisException: MOVED redirection loop detected. Node //<IP_ADDRESS>:6001 has further redirect to //<IP_ADDRESS>:6001
at org.redisson.command.CommandAsyncService.checkAttemptFuture(CommandAsyncService.java:997)
The below is the information of “monitor” on <IP_ADDRESS>:6103:
1548062216.210669 [0 <IP_ADDRESS>:6003] "ZADD" "IDX_SUBSCRIBER_FLUTIME_00000000001579590000_19" "1579598216" "SUBSCRIBER_15712156719" "1579598216" "SUBSCRIBER_15607370919" "1579598216" "SUBSCRIBER_15604880719" "1579598216" "SUBSCRIBER_15606831519" "1579598216" "SUBSCRIBER_15607576519" "1579598216" "SUBSCRIBER_15712158519" "1579598216" "SUBSCRIBER_15712179919" "1579598216" "SUBSCRIBER_15604362119" "1579598216" "SUBSCRIBER_15608353319"
...
It seems the request which should be sent to <IP_ADDRESS>:6003 has been sent to <IP_ADDRESS>:6103, which makes <IP_ADDRESS>:6103 get extra load.
So it means the Redisson sends requests to the wrong Redis nodes after the action above, which is regarded as a wrong behavior.
Steps to reproduce or test case
Like the "Actual behavior", setup Redis cluster on 2 servers with each having 8 masters + 8 slaves, the slaves should belong to the masters on the other server. Then shutdown and start all the Redis nodes on one server. Meanwhile, keep the Redisson sending requests to the Redis cluster.
Redis version
4.0.8
Redisson version
3.9.0
Redisson configuration

clusterServersConfig:
idleConnectionTimeout: 10000
pingTimeout: 15000
connectTimeout: 10000
timeout: 60000
timeout: 30000
retryAttempts: 3
retryInterval: 1500
retryInterval: 1500
reconnectionTimeout: 1000
failedAttempts: 3
password: null
subscriptionsPerConnection: 5
clientName: null
loadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}
slaveSubscriptionConnectionMinimumIdleSize: 1
slaveSubscriptionConnectionPoolSize: 50
slaveConnectionMinimumIdleSize: 2
slaveConnectionPoolSize: 2
masterConnectionMinimumIdleSize: 100
masterConnectionPoolSize: 100
readMode: "MASTER"
subscriptionMode: "MASTER"
nodeAddresses:

"redis://HOST1:6000"

- "redis://[HOST2]:5301"
- "redis://[HOST3]:5301"
scanInterval: 10000
threads: 32
nettyThreads: 32
codec: !<org.redisson.codec.JsonJacksonCodec> {}
useLinuxNativeEpoll: false

Hi,
I have tried the latest table version which is 3.10.2, but the problem seems still there.
Could you please tell me which version includes the solution?
Thanks.
BRs
Zhangmin

Hi,
I have tried the latest stable version which is 3.10.2, but the problem seems still there.
Could you please tell me which version includes the solution?
Thanks.
BRs
Zhangmin

Hi,
I have tried the latest stable version which is 3.10.2, but the problem seems still there.
Could you please tell me which version includes the solution?
Thanks.
BRs
Zhangmin
From: Nikita Koksharov<EMAIL_ADDRESS>Sent: Friday, January 25, 2019 4:51 PM
To: redisson/redisson<EMAIL_ADDRESS>Cc: Min Zhang XX<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [redisson/redisson] "RedisException: MOVED redirection loop detected" is popped out after Redis Master nodes down and up (#1882)
Closed #1882https://github.com/redisson/redisson/issues/1882.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/redisson/redisson/issues/1882#event-2096608617, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXoEK3Sod9WPuKT_Aom6VfbGZMUtn5Qhks5vGsVvgaJpZM4aQUSu.


make commands are supported on windows

Coverage remained the same at 100.0% when pulling 9803e878dc0f402b656f44e71aeeb8cf45f8ee80 on yuce:make-windows into bbd4a5db515f272879da3dc9282b14031c70325e on pilosa:master.


feat: Support ANSI mode in CAST from String to Bool

Which issue does this PR close?

Part of the epic https://github.com/apache/arrow-datafusion-comet/issues/286
Rationale for this change

This PR implements ANSI mode for casting string to boolean, and hopefully provides a good example that others can follow when adding ANSI support to other cast operations.
What changes are included in this PR?

Add a new configuration to enable experimental ANSI support in Comet
Adds EvalMode to the cast definition in protobuf
Throw an exception on invalid inputs when ANSI mode is enabled
Refactor CometCastSuite to test both cast() and try_cast() with ANSI enabled and disabled
Disable some tests that are now failing

How are these changes tested?

New/improved tests in CometCastSuite.

I will need to do some shim work to make this compile with earlier versions of Spark.

Thank you @andygrove


Help people find good first issues

To make life easier for people, good first issue and help wanted no longer overlap. I've explained how they work in the contributing guide and link to a search against our repo for them. They are filtered by backlog so that they don't pick up issues that people are working on already.
I was going to link to a waffle query, but there's a bug (or misunderstanding) that I'm working with them on. Waffle would be better because it can do a cross repo query more easily.

If you join the Good First Issue Brigade... 👀


[es] Add What is OpenTelemetry to Spanish site

This contributes to #4887 .

@mx-psi @krol3 @ramrodo Please have a look — thanks!


refactor(cdk-experimental/menu): Break MenuItems into directives

Currently CdkMenuItem is designed to handle the logic for the radio and
checkox role along with performing basic user actions and opening an
attached Menu. Separating the logic into separate directives for each
role makes the code easier to reason about and more testable and
reliable. It also aids in implementing future functionality.

@teflonwaffles the feedback should be addressed. As for the forEach, I've seen it throughout the repo but I'll let Jeremy respond as well.

this builds on https://github.com/angular/components/pull/19628 which was target: minor, switching this one to target: minor as well


Add a new tag we can then filter on

Since adding --tags packages prevent running the second playbook tasks,
let's take advantage of the behavior of import_role with tags: it will
basically apply the passed tags down to the nested content, allowing
then to filter on a second, dedicated tag without the need to actually
edit the role itself.
As a pull request owner and reviewers, I checked that:

[X] Appropriate testing is done and actually running

/lgtm
thank you for the fix!


Refused to frame 'http://localhost:5000/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'"

Question
Refused to frame 'http://localhost:5000/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'"
Minimal working example
   // <code goes here>

Relevant parts of the log file
   <log goes here>

Not enough context.

@zqyo2000z , Please provide identityserver verbose logs and Browser > Console logs


fix async http client call-point feature and rest timeout

Describe what this PR does / why we need it

fix async http client call-point feature
fix RestTemplate timeout config
call-point performance optimization

Thank you for your contributions.


Add generated file header to bundle same as regular transpiled files

Greetings,
In the configuration management world (e.g. Puppet, Chef), it is best practice for the tool to append a comment to the beginning of the file.
Something like:
# DO NOT EDIT THIS SCRIPT - THIS SCRIPT IS MANAGED BY PUPPET AND ANY CHANGES WILL BE OVERWRITTEN
mkdir foo1
mkdir foo2
mkdir foo3

Currently, this is the top 5 lines of my "main.lua" file that was generated by TypeScriptToLua:

local ____modules = {}
local ____moduleCache = {}
local ____originalRequire = require
local function require(file)

I propose that TypeScriptToLua should do the same thing for the lua files it outputs:
--[[

This file was automatically generated with TypeScriptToLua.
https://typescripttolua.github.io/
DO NOT EDIT THIS FILE, as any changes will be overwritten.

--]]

local ____modules = {}
local ____moduleCache = {}
local ____originalRequire = require
local function require(file)

I think this would be valuable for various reasons. For example, someone just submitted a pull request to one of my projects that edited the generated Lua file instead of the actual TypeScript files, and maybe this header would have prevented that.
Thoughts?

We already print a header by default, you can even see it in the playground: https://typescripttolua.github.io/play
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
Can you confirm that you do not have the noHeader options set in your tstl config.
There is a chance that this header is not added for bundles (looks like your example is from a bundle), this is something we should be able to fix.

This is my tsconfig.json:
{
  // https://www.typescriptlang.org/docs/handbook/compiler-options.html
  "compilerOptions": {
    // Recommended as per TypeScriptToLua
    // https://typescripttolua.github.io/docs/getting-started/
    "target": "ESNext",
    "lib": ["ESNext"],
    "moduleResolution": "Node",
    "types": ["isaac-typescript-definitions"],
    "rootDir": "./src",

    // We want the compiler to be as strict as possible to catch all the things
    // By default, these flags are false
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
  },

  "include": [
    "./src/**/*.ts",
  ],

  "tstl": {
    "luaTarget": "5.3",
    "luaBundle": "./mod/main.lua", // Will bundle all output Lua files into a single file
    "luaBundleEntry": "./src/main.ts",
  },
}

So as you can see, I do not have the "noHeader" option set. But yes, I am bundling everything into a single file.

So we should add the header to the bundle output, respecting the noHeader flag if set.

Yup, sounds like it. Thanks Perry. ><


User profiles

Add support for setting and getting user profiles with the following information:

Display name (35 graphemes)
Short description (160 chars -- that's what GitHub does, seems reasonable)

Maybe long description? A Markdown description with a character limit of something like 1000 chars, something like GitHub's profile READMEs

Links (up to 4)

Support for verified links with rel=me
Maybe categories (website, work, social...) that can be used by UIs to display an icon?

Both the profile and each individual field can be unset.

I'll probably submit a PR making the db_interfaces impl return an Option when needed instead of an error before submitting the user profiles PR

Feel free to assign this to me, I'm actively working on this :)

Thank you for submitting this @sofiaritz ! You're now assigned and on the roadmap! :)
Display name, short description, and links sound great. Maybe see how it looks with or without a markdown description and we can decide.
Some thoughts on links

on the frontend you might restrict up to 4 links, but on the backend we can model it as a list of links of any length so we can modify/iterate on the specific length later
I'm observing that GitHub also allows you to reference an organization you work for, a location, and a website distinct from your social links.

I'm excited for this! It will allow ayb to be way more social! Thank you for working on it!

Webfinger sounds like a cool addition! :)
To keep this issue focused on profiles, I'd be open to us pursuing it in a separate issue and we can discuss some of the details there. One thing we can consider in that issue is how to manage an increasing (N=2) number of URL templates (for the registration link and the profile page link). To keep the ayb.toml small and tidy, my thought would be to have these all in one place in the ayb.toml, or even served by the aybWeb server at a .well-known-like URL, and you can implicitly determine what functionality is enabled based on which URL templates are provided. We can discuss on that other issue, and I'm excited for webfinger! :)

in a separate issue and we can discuss some of the details there

That's the idea, I'll open an issue :)

To keep the ayb.toml small and tidy, my thought would be to have these all in one place

I think that would be confusing for new instance owners, also I don't think that a big ayb.toml file is necessarily a problem (eg. Forgejo config cheatsheet). Instance admins should have the possibility of having a small ayb.toml with some features disabled and sane defaults, but also have to possibility of customizing most of the things in their instance (webfinger config, character limits, database limits, authentication config, etc).
In the future a server configuration CLI could be created using something like inquire to simplify this process.
I do think that we should create a struct that can be easily used in the definition of the ayb.toml file that unifies and simplifies the process of template strings, I'll take care of that :)

served by the aybWeb server at a .well-known-like URL, and you can implicitly determine what functionality is enabled based

Instead of having the UIs guess by the values of templating strings, we could use something like Nodeinfo to tell the UIs which features are enabled or not (see the metadata map here: https://github.com/jhass/nodeinfo/blob/main/schemas/2.2/example.json).

I'm going to open the Webfinger issue, if you like the Nodeinfo idea, I'll create one for that too :)


fix(node): multno more silent failure for many copies of rxjs

related to #3476
closes #3475

Coverage increased (+0.0007%) to 97.401% when pulling 49581633e5b149469ba17fccf15b4580bfd594c0 on benlesh:multi-package-issue-stable into 4cbd91c64cf7c2e5143203f2fd34014ea627d200 on ReactiveX:stable.

Also, we need a version of this for the forward-compat branch as well (or just merge this to both stable and forward-compat).

The PR title was wrong, but I fixed the commit.


kivi designer error

Environment Info
kivy: 1.9.1
pygments: 2.1.3
docutils: 0.12
watchdog: 0.8.3
jedi: 0.9.0
gitpython: 2.0.8
six: 1.10.0
kivy-garden: 0.1.4
Platform: Windows-7-6.1.7601-SP1
Python: 2.7.12
Traceback
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\kivy\core\window\window_sdl2.py", line 619, in mainloop
self._mainloop()
File "C:\Python27\lib\site-packages\kivy\core\window\window_sdl2.py", line 362, in _mainloop
EventLoop.idle()
File "C:\Python27\lib\site-packages\kivy\base.py", line 330, in idle
self.dispatch_input()
File "C:\Python27\lib\site-packages\kivy\base.py", line 315, in dispatch_input
post_dispatch_input(*pop(0))
File "C:\Python27\lib\site-packages\kivy\base.py", line 221, in post_dispatch_input
listener.dispatch('on_motion', etype, me)
File "kivy_event.pyx", line 718, in kivy.event.EventDispatcher.dispatch (kivy_event.c:7699)
File "C:\Python27\lib\site-packages\kivy\core\window_init.py", line 1030, in on_motion
self.dispatch('on_touch_down', me)
File "kivy_event.pyx", line 718, in kivy.event.EventDispatcher.dispatch (kivy_event.c:7699)
File "C:\Python27\lib\site-packages\kivy\core\window_init.py", line 1046, in on_touch_down
if w.dispatch('on_touch_down', touch):
File "kivy_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy_event.c:7699)
File "C:\Users\jbece

Hi ! |You bug report is not complete. Please, check the bug reporter instructions and post the full log.
Thanks

Hi, I'm closing this issue because there is not enough info to debug and fix it.
If you face this problem again, please, add the full bug report as a comment.
Thanks :)


Template for setting up an emitter

Add a new template for scaffolding an emitter
emitter-ts template setup the following:

basic emitter files
typescript
test with node test runner with basic test and test host setup
prettier
linting with eslint

Change to the init area

Added a new --template cli option to allow selecting the template without a prompt.
Refactor to make it easier to test. Note that none of the API is exposed yet so its just for internal use.

Added e2e test for templates
Scafold the template and then run commands like npm install, npm run build, npm run test, etc. to make sure everything is done correctly.
This is quite costly so might be worth separating in a different step

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/2736/
Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/2736/


Compression feature breaks incremental builds

When using the compression feature, incremental builds where only the embedded files change do not trigger a rebuild. This is most obvious when using both compression and debug-embed.
I think this is because include_bytes! has special logic in the compiler to add a dependency and trigger rebuilds when the file changes, but include_flate! does not (and does not use include_bytes! internally).

Do you think this can be fixed/added in the include_flate! repo? As that would help any other projects using it. I'm guessing its not going that easy though.

There is an unstable feature that would allow it to track the file, but that would mean that using it would require nightly. https://github.com/rust-lang/rust/issues/99515
There is another workaround which involves assigning include_bytes! to an unused temporary but I’m not sure if that defeats the point of the compression by including it in the binary again or if it gets optimized out.
I wanted to report it here in case it would be prudent to add a warning that compression should only be used with clean builds or something until this can be fixed.

Yeah maybe we can update the readme. Will do it thanks.

Done. thanks.

Hey, it looks like this issue was addressed within include_flate itself recently? https://github.com/SOF3/include-flate/commit/4cf6b8e1ece726e16e1fd5a7f7e9e2237726bf9f

Ahh nice. Will update include-flate to 0.2.0 and remove the note.

Release v6.8.0 with the changes thanks @djmarcin @osiewicz.

Seems like it breaks the tests,
   Compiling rust-embed v6.8.0 (/Users/pyrossh/Code/rust-embed)
error: couldn't read /Users/pyrossh/Code/rust-embed//Users/pyrossh/Code/rust-embed/examples/public/images/doc.txt: No such file or directory (os error 2)
 --> tests/lib.rs:4:10
  |
4 | #[derive(RustEmbed)]
  |          ^^^^^^^^^
  |
  = note: this error originates in the macro `include_bytes` which comes from the expansion of the derive macro `RustEmbed` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read /Users/pyrossh/Code/rust-embed//Users/pyrossh/Code/rust-embed/examples/public/images/flower.jpg: No such file or directory (os error 2)
 --> tests/lib.rs:4:10
  |
4 | #[derive(RustEmbed)]
  |          ^^^^^^^^^
  |
  = note: this error originates in the macro `include_bytes` which comes from the expansion of the derive macro `RustEmbed` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read /Users/pyrossh/Code/rust-embed//Users/pyrossh/Code/rust-embed/examples/public/images/llama.png: No such file or directory (os error 2)
 --> tests/lib.rs:4:10
  |
4 | #[derive(RustEmbed)]
  |          ^^^^^^^^^
  |
  = note: this error originates in the macro `include_bytes` which comes from the expansion of the derive macro `RustEmbed` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read /Users/pyrossh/Code/rust-embed//Users/pyrossh/Code/rust-embed/examples/public/index.html: No such file or directory (os error 2)
 --> tests/lib.rs:4:10
  |
4 | #[derive(RustEmbed)]
  |          ^^^^^^^^^
  |
  = note: this error originates in the macro `include_bytes` which comes from the expansion of the derive macro `RustEmbed` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read /Users/pyrossh/Code/rust-embed//Users/pyrossh/Code/rust-embed/examples/public/main.css: No such file or directory (os error 2)
 --> tests/lib.rs:4:10
  |
4 | #[derive(RustEmbed)]
  |          ^^^^^^^^^
  |
  = note: this error originates in the macro `include_bytes` which comes from the expansion of the derive macro `RustEmbed` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read /Users/pyrossh/Code/rust-embed//Users/pyrossh/Code/rust-embed/examples/public/main.js: No such file or directory (os error 2)
 --> tests/lib.rs:4:10
  |
4 | #[derive(RustEmbed)]
  |          ^^^^^^^^^
  |
  = note: this error originates in the macro `include_bytes` which comes from the expansion of the derive macro `RustEmbed` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `rust-embed` (test "lib") due to 6 previous errors

These paths look like a concatenation of absolute and relative path; I believe include-flate 0.2 explicitly dropped support for absolute paths, so perhaps they changed the API to accept only relative paths?

Fixed again in v6.8.1. Thanks.


[BUG] Unable to set storage type via env var

Describe the bug
According to the docs, it should be possible to set the config options via env vars, particularly ZEP_STORE_TYPE. However, if the config file isn't present, Zep fails to start with:
time="2023-12-26T17:49:22Z" level=fatal msg="store.type must be set"

To Reproduce
Remove the storage key from config.yaml.
Set ZEP_STORE_TYPE as an env var to postgres
Expected behavior
I should be able to set ZEP_STORAGE_TYPE as a config option
Logs
zep           | time="2023-12-26T17:50:11Z" level=info msg="Starting Zep server version 0.21.0-9161f29 (2023-12-14T18:48:27+0000)"
zep           | time="2023-12-26T17:50:11Z" level=info msg="Log level set to: info"
zep           | time="2023-12-26T17:50:11Z" level=fatal msg="store.type must be set"

Environment (please complete the following information):

Zep version: [e.g. vX.X.X]
Zep SDK and version: [e.g. zep-js or zep-python and vX.X.X]
Deployment [e.g. using docker compose, to a hosted environment such as Render]

Note: The Zep server version is available in the Zep server logs at startup:
Starting zep server version 0.11.0-cbf4fe4 (2023-08-30T12:49:03+0000)
Additional context
Add any other context about the problem here.

Cloud deployments require deploying the zep-cloud container.


Haskell/Stack: terminfo library cannot be built because of missing ncurses

Issue description
When building a haskell project depending on the terminfo library (possibly through other libraries like vty) using stack --nix, the build fails since the ncurses library cannot be found during the configure phase of terminfo. Adding
nix:
  packages: [ncurses]

to stack.yaml remedies the problem, however this is a very ad-hoc solution. The problem also already occurred for ghc (#2969, #5616) and others (https://github.com/ekmett/wl-pprint-terminfo/issues/7).
Steps to reproduce

Start with a clean stack environment (mv ~/.stack ~/.stack.bkup)

Set up a new stack/cabal project (stack new foo)

Make the project depend on terminfo by adding in your foo.cabal:
[...]
executable foo-exe
  hs-source-dirs:      app
  main-is:             Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-depends:       base
                     , terminfo -- <- add this line
                     , foo
  default-language:    Haskell2010
[...]

stack --nix build

Result:
terminfo-<IP_ADDRESS>: download
terminfo-<IP_ADDRESS>: configure
Progress: 1/2
--  While building package terminfo-<IP_ADDRESS> using:
      /run/user/1000/stack13135/terminfo-<IP_ADDRESS>/.stack-work/dist/x86_64-linux-nix/Cabal-<IP_ADDRESS>/setup/setup --builddir=.stack-work/dist/x86_64-linux-nix/Cabal-<IP_ADDRESS> configure --with-ghc=/nix/store/n962p1idgzh07wvhxam5r6icv894kj61-ghc-7.10.3/bin/ghc --with-ghc-pkg=/nix/store/n962p1idgzh07wvhxam5r6icv894kj61-ghc-7.10.3/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/fthoma/.stack/snapshots/x86_64-linux-nix/lts-5.0/7.10.3/pkgdb --libdir=/home/fthoma/.stack/snapshots/x86_64-linux-nix/lts-5.0/7.10.3/lib --bindir=/home/fthoma/.stack/snapshots/x86_64-linux-nix/lts-5.0/7.10.3/bin --datadir=/home/fthoma/.stack/snapshots/x86_64-linux-nix/lts-5.0/7.10.3/share --libexecdir=/home/fthoma/.stack/snapshots/x86_64-linux-nix/lts-5.0/7.10.3/libexec --sysconfdir=/home/fthoma/.stack/snapshots/x86_64-linux-nix/lts-5.0/7.10.3/etc --docdir=/home/fthoma/.stack/snapshots/x86_64-linux-nix/lts-5.0/7.10.3/doc/terminfo-<IP_ADDRESS> --htmldir=/home/fthoma/.stack/snapshots/x86_64-linux-nix/lts-5.0/7.10.3/doc/terminfo-<IP_ADDRESS> --haddockdir=/home/fthoma/.stack/snapshots/x86_64-linux-nix/lts-5.0/7.10.3/doc/terminfo-<IP_ADDRESS> --dependency=base=base-<IP_ADDRESS>-0d6d1084fbc041e1cded9228e80e264d --extra-include-dirs=/nix/store/n962p1idgzh07wvhxam5r6icv894kj61-ghc-7.10.3/include --extra-lib-dirs=/nix/store/n962p1idgzh07wvhxam5r6icv894kj61-ghc-7.10.3/lib
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/fthoma/projects/foo/.stack-work/logs/terminfo-<IP_ADDRESS>.log

    [1 of 1] Compiling Main             ( /run/user/1000/stack13135/terminfo-<IP_ADDRESS>/Setup.lhs, /run/user/1000/stack13135/terminfo-<IP_ADDRESS>/.stack-work/dist/x86_64-linux-nix/Cabal-<IP_ADDRESS>/setup/Main.o )
    Linking /run/user/1000/stack13135/terminfo-<IP_ADDRESS>/.stack-work/dist/x86_64-linux-nix/Cabal-<IP_ADDRESS>/setup/setup ...
    Configuring terminfo-<IP_ADDRESS>...
    configure: WARNING: unrecognized options: --with-compiler, --with-gcc
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /nix/store/dp6c8mcsashywfkppdzic3l1qz4n9paq-gnugrep-2.22/bin/grep
    checking for egrep... /nix/store/dp6c8mcsashywfkppdzic3l1qz4n9paq-gnugrep-2.22/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking ncurses.h usability... no
    checking ncurses.h presence... no
    checking for ncurses.h... no
    checking curses.h usability... no
    checking curses.h presence... no
    checking for curses.h... no
    configure: error: in `/run/user/1000/stack13135/terminfo-<IP_ADDRESS>':
    configure: error: curses headers could not be found, so this package cannot be built
    See `config.log' for more details

Technical details

System: NixOS 16.03.886.0068260 (Emu)
Nix version: nix-env (Nix) 1.11.2
Nixpkgs version: 16.03.886.0068260
Stackage: tried with LTS-5.0 through LTS-5.9

cc @peti

I am not sure how Nixpkgs could solve that problem. The terminfo build does not declare its dependency on ncurses, hence the library is not included when terminfo is built. This seems to be well outside of the scope of thing Nix can influence; all the decisions here are made by stack.

This issue should probably be reported to the Stack project.

@peti Actually, the dependency is declared (nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix, line 222662), but not propagated.

The log snippet you've posted above suggests to me that terminfo is a package compiled by Stack, not by Nix. What dependencies Nix does or does not declare for that build makes no difference.

@peti it is compiled by stack --nix,  which uses nix-shell under the hood. This she'll misses the ncurses dependency. Although I am not sure what mechanism exactly Stack uses to compute the actual dependencies to include in the Nix shell.

I am not sure what mechanism exactly Stack uses to compute the actual dependencies to include in the Nix shell.

There you go. Maybe you should find out?

Stack only uses Nix for system dependencies, not cabal dependencies. I had the same expectation that it would use it for all dependencies, but I was wrong. I believe Stack should.
See https://github.com/commercialhaskell/stack/issues/1683

@puffnfresh Thank you for the clarification, this is very helpful!
@peti The documentation on this is not exactly stellar, so I am working my way through this issue in a way that may solve the problem not only for me, but for others as well.

The terminfo build does not declare its dependency on ncurses, hence the library is not included when terminfo is built.
Can I read from this that you have a rough idea how this issue can be solved on terminfo side?

While I understand that stack --nix build failure might be a stack related issue, I am currently in a situation where the simpler stack build terminfo (or stack build --no-nix terminfo) is failing with the same message ...
Is there a workaround ?

@puffnfresh  I am confused. If the nix stack integration only serves for stack to find the system dependencies, does it mean that it is not possible to work with stack without the nix integration (I mean stack --nix) on nixos ?
Given that even on master I can only get <= lts-5.9 when I use --nix, it looks like currently stack and nixos don't do along together very much.
I am probably missing something obvious (I hope @peti will forgive my ignorance given the state of the documentation for everything nix related nowadays)

If the nix stack integration only serves for stack to find the system dependencies, does it mean that it is not possible to work with stack without the nix integration (I mean stack --nix) on nixos ?

Stack works just fine on NixOS with or without the --nix flag. If you don't use that feature, then you'll simply have to install the necessary system dependencies manually.

Given that even on master I can only get <= lts-5.9 when I use --nix, it looks like currently stack and nixos don't do along together very much.

Huh? Nixpkgs master has all LTS versions up to and including version 6.5.

I can't use Stack without the --nix flag due to https://github.com/commercialhaskell/stack/issues/826. I have to use the --nix flag.
When I use the --nix flag, I have to add nix.packages: [ ncurses.dev, ncurses.out, zlib.dev, zlib.out ] to the initial Stack project I work on, so it caches things correctly (see https://github.com/commercialhaskell/stack/issues/440) - if I accidentally only include the headers then Stack will compile and cache the packages but I have to manually unregister them and recompile with the libraries included correctly.
Stack is very broken on NixOS for me. It's a huge pain to use.
I've started writing a script which will compile all my dependencies using Nix, then link them to the right places in my project's .stack-work directory. This skips all of Stacks dependency compilation and reuses the huge amount of Haskell work that nixpkgs provides.

Stack works just fine on NixOS with or without the --nix flag. If you don't use that feature, then you'll simply have to install the necessary system dependencies manually.

Thanks ! That's good to know because it didn't seem to work that way. Now that I know how it is supposed to work I am ready to try it harder ;-)

Huh? Nixpkgs master has all LTS versions up to and including version 6.5.

You're right. Sorry for all the side notes. But for what it's worth, I keep getting this error in emacs:
Suspicious state from syntax checker haskell-stack-ghc: Checker haskell-stack-ghc returned non-zero exit code 1, but no errors from output: error: attribute ‘lts-6_5’ missing, at (string):1:536

But yeah stack build --nix does work correctly with lts-6.5. I still have to figure out what's going on exactly with the checker and how I can fix it.
PS:

I am trying to keep my base nixos with the stable channel while I am using stack from master in user space (setting  nixpkgs master to be found on NIX_PATH).
I am actually trying to get intero up and running within emacs on nixos.

I can't use Stack without the --nix flag due to commercialhaskell/stack#826. I have to use the --nix flag.

Actually, you need a working compiler in $PATH and the --nix flag just happens to provide one. If you use Nix to install a working compiler instead, however, then stack will work just fine without --nix.

Actually, you need a working compiler in $PATH and the --nix flag just happens to provide one. If you use Nix to install a working compiler instead, however, then stack will work just fine without --nix.

Do you mean that given the original issue setting, if I try to build terminfo without the --nix flag, using a ghc compiler installed by nix, it is supposed to work ?
I have been trying a couple of times, but the only way for me to successfully build terminfo is with the --nix flag (ncures and ghc have been installed by nix)

if I try to build terminfo without the --nix flag, using a ghc compiler installed by nix, it is supposed to work ?

Yes, it is.

This is still an issue for me. Any progress?

For me too, unfortunately. There has been some change in the terminfo lib, which made matters even worse for me. See also: judah/terminfo#15, commercialhaskell/stack#3233, and this comment

A few bits of background, since it sounds like there's some misunderstanding in this thread:

The C library that provides terminfo-related functionality has different names on different operating systems (and/or versions of a given OS), including: ncurses, curses, ncursesw or tinfo.
The Haskell terminfo package solves this ambiguity by using a configure script which checks whether any of those libraries are available, and writes whichever one it finds to a buildinfo file.  More information here.
stack --nix runs all its build commands (including the configure script) inside of a nix-shell.  So stack needs to be told somehow to provide the ncurses dependency to that shell.  (By the time the Haskell terminfo package starts configuring, it's too late the since nix-shell has started already.).

The standard fix, as mentioned above and in the Stack documentation, is to add an explicit nix.packages section in stack.yaml.  (If that doesn't work, unfortunately tracking down the issue is probably beyond beyond my limited understanding of Nix.)
However, it sounds like you really want something like commercialhaskell/stack#2943.  That issue suggests stack could keep track of a hand-curated mapping from Haskell packages to Nix dependencies.  (And as it mentions, you run into this problem with pretty much any Haskell library with a C dependency, not just the terminfo package.)

Something indeed happened (recently?) and now explicit adding ncurses in nix.packages doesn't work for terminfo anymore.
Also interesting that if you manually unpack terminfo-<IP_ADDRESS> (with stack unpack terminfo) and run nix-shell -p gcc -p ncurses in terminfo-<IP_ADDRESS> directory and then run ./configure script in this nix-shell then the script succeeds. But stack build doesn't work even in this working nix-shell.

@asvyazin does using ncurses.lib help? I think I had a problem with that while I used Stack, though I think I might have fixed that.

Unfortunately ncurses.lib doesn't work, I get error error: attribute 'lib' is missing. Perhaps you meant ncurses.dev and ncurses.out (which also do not work).

@asvyazin, can you give more information about what breaks in that setup with stack build?  Manually adding a trivial stack.yaml file worked for me (stack unpack doesn't provide that automatically):
$ stack unpack terminfo
$ cd terminfo-<IP_ADDRESS>
$ vim stack.yaml  # manually create it
$ cat stack.yaml
resolver: lts-8.23
packages:
  - '.'
$ nix-shell -p gcc -p ncurses
$ stack build
# succeeds
$ stack ghci
# loads successfully
> setupTermFromEnv >>= flip runTermOutput (termText "Hello\n")
Hello

In my case stack build can't find ghc without --nix flag (or nix.enable: true in stack.yaml) and with this flag it fails at configure step configure: error: curses library not found, so this package cannot be built.
But if I run nix-shell -p gcc -p ncurses -p ghc and then stack build --system-ghc (without nix.enable: true in stack.yaml of course) then it indeed works.

I've gotten stack build intero to work using the following shell.nix:
{ ghc }:
with (import <nixpkgs> {});

haskell.lib.buildStackProject {
  inherit ghc;
  name = "groupMaker-env";
  buildInputs = [ ncurses ];
  LANG = "en_us.UTF-8";
}

This whole thing is still a bit of an issue for me, but I got moving by running stack install intero with the following stack.yaml
resolver: lts-8.18

nix:
  enable: true
  packages:
    - libcxx
    - icu
    - gcc
    - ncurses

packages:
- '.'

extra-deps: []

flags: {}

extra-package-dbs: []

On Ubuntu 17.04 stack build intero (no nix) works for me after sudo apt install libtinfo-dev


Bluetooth: testlib: Fix undeclared variable compilation error

This fixes compilation error below:
att_read.c:179:23: error: ‘result_att_mtu’ undeclared
179 |         ctx.att_mtu = result_att_mtu;

Why CI did not catch this?


Breeding GUI Assumes Box Count of 30

Hi there,
The /pokebreed GUI seems to assume the defaultBoxCount is 30, even when it's configured to be higher. Clicking previous box from the start leads to box 30, while pressing next box forward eventually runs up to 30 and back to 1
Thanks for all that you do!

Hello! I was not aware of that initially, thank you for letting me know! The new update now support more boxes than default.


TypeScript italic (let & const)

As you can see both a and b is italic, but this incorrect since in JS they are not italic, or I'm missing something? As I know it needs to be italic if it's in upper case, but not in lower case.

If needed I can create a PR.
/cc @sdras

Different languages use different rules, somewhat depending on what will appear near them for contrast, more info in this article: https://css-tricks.com/creating-a-vs-code-theme/

@sdras so you're saying it should be italic in TS and non-italic in JS? You left it intentionally? Because it's very easy to fix such issue since JS almost = TS in terms of color scopes and even language (it just adds type system and several new keywords). Sorry if I misunderstood you.

Have you found a fix for this yet @bsvipas ?

@EddyVinck If you use the latest Night Owl it will look like this:

const is colored ant italic because it's constant, I guess @sdras done it intentionally.
Also, if you want to disable italic completely just use Night Owl No Italic version of theme.


Improve error message by reporting the decoded datum

It's too painful to decode the memcomparable and value encoding manually 😇
https://github.com/risingwavelabs/risingwave/blob/0523b41bcd07906b55117483bdd30c6e64fb534c/src/stream/src/executor/managed_state/join/join_entry_state.rs#L51
pk [....] should be in the cache

https://github.com/risingwavelabs/risingwave/blob/0523b41bcd07906b55117483bdd30c6e64fb534c/src/stream/src/executor/managed_state/join/join_entry_state.rs#L43
called Result::unwrap() on an Err value: BTree(OccupiedError…

By the way, Join key was not printed here. Please print join key as well.


refactor: set git commit and version tag at compile time

在 go 的编译期插入 git 提交信息，解决容器部署时 前端版本信息缺失的问题

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


Correct typo in access-tokens.md

Typo

@davidmu1
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


feature - define string validation

Github Issue URL/Tags (required)
What's this PR do? Please give a technical summary (required)

[x] define string validation

Any references (stackoverflow …) (optional)

:+1: There are no linter violations.


added support for embedded documents

Trying out data219's work on embedded support:
https://github.com/Atlantic18/DoctrineExtensions/pull/1212

Okay, that wasn't what I wanted to do.


composing selectors

the select operator returns an plain subject, which does not have the select operator, therefore the example composing selectors does not work. The second function in the composition throws.
// src/reducers/workflow.ts

export function getEntities() {
  return (state$: Observable<WorkflowState>) => state$
      .select((s: WorkflowState) => s.entities)
}

// src/reducers/index.ts
export function getWorkflowState() {
  return (state$: Observable<AppState>) => state$
    .select((s: AppState) => s.workflow)
}

export function getWorkflowEntities() {
  return compose(fromWorkflow.getEntities(), getWorkflowState());
}

// then
state.let(getWorkflowEntities())

causes
EXCEPTION: TypeError: state$.select is not a function
on the second function in chain (getEntities)
This seem obvious to me, because the select-operator is only available in Store:
https://github.com/ngrx/store/blob/19d9fe3f92bd57ffae541039109f6e6fcd686295/src/store.ts#L21
I did not find any source which would inject it into the rxjs Subject. So how should the compose-example work?

Okay. I'v found the adder:
https://github.com/ngrx/core/blob/770376346c615ab46d1b62233ffcd039d8ea35d0/lib/add/operator/select.ts

How did you solve the error? I am encountering this issue at 2.0(final) version.

import the file I'v linked where you use the .select


The log  message"Got secret Going to fetch secret" goes to loop after setting "Size of Polling Page" and "Max Fetch Count"  values different from default at "Get New and Updated Objects Polling" trigger

Component Bug Report
Description
The log  message"Got secret Going to fetch secret" goes to loop after setting "Size of Polling Page" and "Max Fetch Count"  values different from default at "Get New and Updated Objects Polling" trigger
Component Version
rev: 774992527a45ae7e46ca5b2d11ec9618353fa5c5
21.41
<EMAIL_ADDRESS>Steps to Reproduce

Set Salesforce v2 as trigger
Choose Get New and Updated Objects Polling trigger
Choose Contact in Object field
Set any values Size of Polling Page and Max Fetch Count (I used 2 and 3)
Retreive sample

Actual Result
The log  message"Got secret Going to fetch secret" goes to loop and retrieve sample failed with timeout

Expected Result
Samples retreive in the count according to the Size of Polling Page and Max Fetch Count  values
Workaround(s)
Use Query trigger ?

August 30, 2022, we presented new Get New and Updated Objects Polling trigger, old one set to deprecated


Provide Matt Connerton with...

a sanitized database dump (no personal user info needed) of the drupalgovcon site
email<EMAIL_ADDRESS>If it's too big, just provide him with instructions on how to get it.
this will help him improve COD development.

I think it's important to keep user accounts, at least those which reported issues editing their session nodes, or other bugs. Would it be good enough to sanitize the email addresses and passwords and leave everything else?

Dump provided to Matt via private Gdrive share.


Cache Node objects in external PVController library

#902 introduces topology plumbing through the library, which includes a Node get call for every volume provision operation. Since CSI depends on this library and all volumes will go through CSI in the future, we need to consider caching Node objects.
https://github.com/kubernetes-incubator/external-storage/blob/2db4446614545ef4ca87fd69ba81d24b1de390ca/lib/controller/controller.go#L1002
/assign

would a (shared)informer be overkill or do you intend to roll your own caching?

Yeah it would probably just be an informer

Is this issue still valid?

Yep, the TODO is still there though the code has been moved to lib-external-provisioner. Will move this issue there.


[Bug] Backup-dbadatabase to Azure URL subfolders

Environmental information

#### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.17134.858
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.858
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

#### dbatools Module version:

Name    : dbatools
Path    : C:\Program Files\WindowsPowerShell\Modules\dbatools\1.0.39\dbatools.psd1
Version : 1.0.39

Name    : dbatools
Path    : C:\Program Files\WindowsPowerShell\Modules\dbatools\1.0.30\dbatools.psd1
Version : 1.0.30

# Replace with output of Get-Culture

SQL Server:

Microsoft SQL Server 2017 (RTM-CU16) (KB4508218) - 14.0.3223.3 (X64)   Jul 12 2019 17:43:08   Copyright (C) 2017 Microsoft Corporation  Developer Edition (64-bit) on Windows Server 2016 Standard 10.0 <X64> (Build 14393: ) (Hypervisor)

/* REPLACE WITH output of @@LANGUAGE */

Report

Host used

[ ] powershell.exe
[X ] ISE
[ ] VS Code
[ ] Other (please specify)

If anything other than powershell.exe was used, please confirm that you can duplicate the issue with powershell.exe

[X ] Still buggy in powershell.exe

Errors Received
writeErrorStream      : True
PSMessageDetails      :
Exception             : System.Exception: System.Data.SqlClient.SqlError: The file name "E:\MSSQL14.MSSQLSERVER\MSSQL\Backup/ReportServer_201909061020.bak" is invalid as a backup device name for the specified device type. Reissue the BACKUP statement with a valid file name and device type. ---> System.Management.Automation.MethodInvocationException: Exception
                        calling "SqlBackup" with "1" argument(s): "Backup failed for Server 'pwssqldba01'. " ---> Microsoft.SqlServer.Management.Smo.FailedOperationException: Backup failed for Server 'pwssqldba01'.  ---> Microsoft.SqlServer.Management.Smo.SmoException: System.Data.SqlClient.SqlError: The file name
                        "E:\MSSQL14.MSSQLSERVER\MSSQL\Backup/ReportServer_201909061020.bak" is invalid as a backup device name for the specified device type. Reissue the BACKUP statement with a valid file name and device type.
                           at Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQueryWithMessage(StringCollection queries, ServerMessageEventHandler dbccMessageHandler, Boolean errorsAsMessages, Boolean retry)
                           at Microsoft.SqlServer.Management.Smo.BackupRestoreBase.ExecuteSql(Server server, StringCollection queries)
                           at Microsoft.SqlServer.Management.Smo.Backup.SqlBackup(Server srv)
                           --- End of inner exception stack trace ---
                           at Microsoft.SqlServer.Management.Smo.Backup.SqlBackup(Server srv)
                           at CallSite.Target(Closure , CallSite , Object , Object )
                           --- End of inner exception stack trace ---
                           at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
                           at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
                           at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
                           at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
                           --- End of inner exception stack trace ---
TargetObject          :
CategoryInfo          : NotSpecified: (:) [Write-Error], Exception
FullyQualifiedErrorId : dbatools_Backup-DbaDatabase,Stop-Function
ErrorDetails          : System.Data.SqlClient.SqlError: The file name "E:\MSSQL14.MSSQLSERVER\MSSQL\Backup/ReportServer_201909061020.bak" is invalid as a backup device name for the specified device type. Reissue the BACKUP statement with a valid file name and device type.
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at Stop-Function, C:\Program Files\WindowsPowerShell\Modules\dbatools\1.0.39\allcommands.ps1: line 81248
                        at Backup-DbaDatabase<Process>, C:\Program Files\WindowsPowerShell\Modules\dbatools\1.0.39\allcommands.ps1: line 1495
                        at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}

Steps to Reproduce
Backup-DbaDatabase -SqlInstance pwssqldba01 -Database ReportServer -Type Full -CopyOnly -CompressBackup -Checksum -AzureBaseUrl https://ryansqlbackup.blob.core.windows.net/sqlbackups/pwssqldba01
Expected Behavior
This would backup to my container sqlbackups and create the backup in a folder called pwssqldba01
Actual Behavior
Backup failed.  If I removed the /pwssqldba01 it backed up successfully to the root container.

Debugging this and can confirm we are building the path wrong:


bug(ui): incorrect update prompt

after installing release 0.0.1, the app still tells me that an update is available.  Deleting the ~/.uplink folder and starting fresh didn't help.

Maybe we can combine this with a ticket to add the "current version" somewhere in the app. Right now I have no way of knowing if that screenshot is running the latest release.

I think this is because the cargo.toml has 0.1.3 and it will never match the 0.0.1 from the tag. The fix for this is to package up the apps again and make sure those match.

Stuart said we can close this since we don't need to change anything for the next release for this to go away.


Duration example needed

Hello,
It would seem that it would be fairly common to want to calculate durations and include them in a query. I would like to request that some sample code about how to include durations in a query be included in this topic.

Closing this as a duplicate of #1607

Closing this as a duplicate of #1607


SegFault while testing MXNet binaries for CUDA-11.0 using pytest

Description
Nightly CD pipeline fails for CUDA 11.0 during testing of MXNet binaries using pytest. All tests run successfully. The error is thrown during cleanup after pytest is done running a testing module. This error was first recorded when https://github.com/apache/incubator-mxnet/commit/480d027b85d3feff6fecec70be55eb244ddff289 commit was merged, which dropped pytest's teardown function. Before this commit, the CD pipeline was running successfully for all flavors.
This error is specific to CUDA 11.0 and is not observed for CUDA 10.0 and 10.1 as can be seen here:
https://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/restricted-mxnet-cd%2Fmxnet-cd-release-job/detail/mxnet-cd-release-job/1848/pipeline/361/
Error Message
Stack trace:
Stack trace:
  /usr/lib64/libcudnn_ops_infer.so.8 (                                           + 0x15cb68f)  [0x7f7f4ce3e68f]
  /usr/lib64/libcudnn_ops_infer.so.8 ( cudnnDestroy                              + 0x6f  )  [0x7f7f4ba78ddf]
  /work/mxnet/python/mxnet/../../lib/libmxnet.so ( mshadow::Stream<mshadow::gpu>::DestroyDnnHandle()  + 0x2c  )  [0x7f81869a29ec]
  /work/mxnet/python/mxnet/../../lib/libmxnet.so ( void mshadow::DeleteStream<mshadow::gpu>(mshadow::Stream<mshadow::gpu>*)  + 0x13b )  [0x7f81869a2c3b]
  /work/mxnet/python/mxnet/../../lib/libmxnet.so ( void mxnet::engine::ThreadedEnginePerDevice::GPUWorker<(dmlc::ConcurrentQueueType)0>(mxnet::Context, bool, mxnet::engine::ThreadedEnginePerDevice::ThreadWorkerBlock<(dmlc::ConcurrentQueueType)0>*, std::shared_ptr<dmlc::ManualEvent> const&)  + 0x1bb )  [0x7f81869b83ab]
  /work/mxnet/python/mxnet/../../lib/libmxnet.so ( std::_Function_handler<void (std::shared_ptr<dmlc::ManualEvent>), mxnet::engine::ThreadedEnginePerDevice::PushToExecute(mxnet::engine::OprBlock*, bool)::{lambda()#4}::operator()() const::{lambda(std::shared_ptr<dmlc::ManualEvent>)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr<dmlc::ManualEvent>&&)  + 0x36  )  [0x7f81869b86f6]
  /work/mxnet/python/mxnet/../../lib/libmxnet.so ( std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::function<void (std::shared_ptr<dmlc::ManualEvent>)>, std::shared_ptr<dmlc::ManualEvent> > > >::_M_run()  + 0x32  )  [0x7f81869b3db2]
/work/runtime_functions.sh: line 747:     6 Segmentation fault      (core dumped) pytest -m 'serial' -s --durations=50 --verbose tests/python/gpu/test_gluon_gpu.py
2020-10-16 07:44:31,682 - root - INFO - Waiting for status of container a8b282e29adf for 600 s.
2020-10-16 07:44:31,853 - root - INFO - Container exit status: {'Error': None, 'StatusCode': 139}
2020-10-16 07:44:31,854 - root - ERROR - Container exited with an error 😞
2020-10-16 07:44:31,854 - root - INFO - Executed command for reproduction:

ci/build.py -e BRANCH=null --docker-registry mxnetci --nvidiadocker --platform centos7_gpu_cu110 --docker-build-retries 3 --shm-size 500m /work/runtime_functions.sh cd_unittest_ubuntu cu110

Steps to reproduce
I was able to reproduce the error by following these steps on an AWS Ubuntu18 Deep Learning Base AMI:
alias python=python3

git clone --recursive https://github.com/apache/incubator-mxnet.git
cd incubator-mxnet
pip3 install -r ci/requirements.txt --user

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

python ci/build.py -e BRANCH=null --docker-registry mxnetci --platform centos7_gpu_cu110 --docker-build-retries 3 --shm-size 500m /work/runtime_functions.sh build_static_libmxnet cu110

python ci/build.py -e BRANCH=null --docker-registry mxnetci --nvidiadocker --platform centos7_gpu_cu110 --docker-build-retries 3 --shm-size 500m /work/runtime_functions.sh cd_unittest_ubuntu cu110

What have you tried to solve it?

The above script takes a long time to run as it runs a lot of tests. I reduced the reproduction time by reducing the number of tests. Here's a code diff:

diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh
index 40405b961..6992caa36 100755
--- a/ci/docker/runtime_functions.sh
+++ b/ci/docker/runtime_functions.sh
@@ -756,7 +756,9 @@ cd_unittest_ubuntu() {
     export DMLC_LOG_STACK_TRACE_DEPTH=10

     local mxnet_variant=${1:?"This function requires a mxnet variant as the first argument"}
+    pytest -m 'serial' -s --durations=50 --verbose tests/python/gpu/test_gluon_gpu.py

+    : '
     OMP_NUM_THREADS=$(expr $(nproc) / 4) pytest -m 'not serial' -n 4 --durations=50 --verbose tests/python/unittest
     pytest -m 'serial' --durations=50 --verbose tests/python/unittest

@@ -782,6 +784,7 @@ cd_unittest_ubuntu() {
     if [[ ${mxnet_variant} = *mkl ]]; then
         OMP_NUM_THREADS=$(expr $(nproc) / 4) pytest -n 4 --durations=50 --verbose tests/python/mkl
     fi
+    '
 }

I put a print statement before the waitall command to check whether it gets executed and observed that it gets executed after the module ends as expected.

I tried replacing mx.npx.waitall() with mx.nd.waitall(), but that doesn't solve this problem.

Environment
We recommend using our script for collecting the diagnostic information with the following command
curl --retry 10 -s https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py | python3

Environment Information
----------Python Info----------
Version      : 3.6.9
Compiler     : GCC 8.4.0
Build        : ('default', 'Oct  8 2020 12:12:24')
Arch         : ('64bit', 'ELF')
------------Pip Info-----------
Version      : 20.2.3
Directory    : /usr/local/lib/python3.6/dist-packages/pip
----------MXNet Info-----------
No MXNet installed.
----------System Info----------
Platform     : Linux-5.4.0-1028-aws-x86_64-with-Ubuntu-18.04-bionic
system       : Linux
node         : ip-172-31-5-167
release      : 5.4.0-1028-aws
version      : #29~18.04.1-Ubuntu SMP Tue Oct 6 17:14:23 UTC 2020
----------Hardware Info----------
machine      : x86_64
processor    : x86_64
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              64
On-line CPU(s) list: 0-63
Thread(s) per core:  2
Core(s) per socket:  16
Socket(s):           2
NUMA node(s):        2
Vendor ID:           GenuineIntel
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
Stepping:            7
CPU MHz:             3109.947
BogoMIPS:            5000.00
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            36608K
NUMA node0 CPU(s):   0-15,32-47
NUMA node1 CPU(s):   16-31,48-63
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves ida arat pku ospke avx512_vnni
----------Network Test----------
Setting timeout: 10
Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0088 sec, LOAD: 0.6286 sec.
Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.1193 sec, LOAD: 0.1101 sec.
Error open Gluon Tutorial(cn): https://zh.gluon.ai, <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)>, DNS finished in 0.055264949798583984 sec.
Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0012 sec, LOAD: 0.1100 sec.
Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0014 sec, LOAD: 0.3008 sec.
Error open Conda: https://repo.continuum.io/pkgs/free/, HTTP Error 403: Forbidden, DNS finished in 0.0010542869567871094 sec.
----------Environment----------

@leezu @TristonC

We recently saw this issue too and I am looking for a fix now. I do not believe it is CUDA 11 specific, rather code layout/timing/environment specific - e.g. in our setup we did not see this issue on Ubuntu 18.04 but encounter it on 20.04. The problem is that MXNet does not actually wait for the side thread to finish before the program teardown. During the main thread teardown CUDA deinitializes itself. If the side thread is still running at this point and tries to destroy its mshadow stream, this calls cudnnDestroy on the cuDNN handle, which internally calls cudaStreamDestroy on cuDNN internal CUDA streams (CUDA is statically linked in cuDNN, which is why you see your segfault coming from libcudnn_ops_infer.so.8). When this call is done after the CUDA deinitialization, crash happens.
I started looking at this yesterday - brief look at the destructors seems to imply that join should actually be called on the side threads, so not yet sure why this does not actually do the right thing. If anyone has more experience with the internals of the ThreadedEnginePerDevice I would be happy to leave that issue to them, but poking in the meantime.

Ok, so I think I understand this issue more - the problem is that shared_ptr to the engine is a static variable here: https://github.com/apache/incubator-mxnet/blob/master/src/engine/engine.cc#L62 and so the destruction timing of the engine itself is not specified (depends on the order of binaries in the linked executable). This makes it possible for CUDA deinitialization to happen before or after the destruction of the engine. If it happens after then everything is OK, because as part of its destruction engine actually joins on the side threads. However, if the CUDA deinit happens before, then side thread doing the cleanup actually triggers the segfault.
The easiest workaround would be to just skip cleanup on a side thread - @szha @mseth10 @leezu do you think that would be acceptable? Any other ideas?

As a short-term solution it's ok. At some point, we may benefit from being able to destruct engine properly at runtime other than at exit. For example, this could enable switching the engine at runtime. Thus, it would still be better if we have an actual solution for destruction order.

Ok, I will open then a PR with the workaround and let's open an issue for the better handling of the destruction order of the engine.


Update landing page copy & fix styles

Updates translation -- kudos to Kevin for the revised translation!
Fixes the first two items in 未竟之處 in 20210106 meeting

Make all links in header to be an  tag and hide their underline until mouse hover
Use Material UI Button to eliminate the underline button in landing page body
Navbar background turns white on desktop when scrolled to the next section as expected

Background turning white

Mobile, English
Note: Google chrome's screenshot mechanism does not trigger scroll events, thus enter animations are not triggered

Mobile, Mandarin
Note: Google chrome's screenshot mechanism does not trigger scroll events, thus enter animations are not triggered

Branch currently deployed to staging
華語：https://dev.cofacts.org/
英語：https://dev-en.cofacts.org/

Branch currently deployed to staging
華語：https://dev.cofacts.org/
英語：https://dev-en.cofacts.org/


New document on rendering

Description
Adds explanations/rendering.md based on all the recent rendering discussion and the plans for working on #845, #1300 and #1320.
Type of change

[x] New explanation document

Final checklist:

[x] My PR is the minimum possible work for the desired functionality

This all looks great.  I will attempt to summarize the high level and comment at the same time.

Don't do anything that will block the main UI thread - move work onto other threads.
Work that has to happen on the main thread should be minimized and spread out over many main loop cycles, to keep things responsive.

From a front end perspective, "done-ness" might be important to consider.  Users need to know when what they are seeing is the "fully loaded" data.
One thing that I didn't see explicitly mentioned was evicting data from gpu memory (and cpu memory for that matter).  In prior projects I have used fixed memory budgets to strategize removing chunks from memory in addition to loading them efficiently.  Chunks would be eligible for removal if they were occluded or offscreen (e.g. frustum culled) or there was a scheduled LOD swap.
Currently I am dealing with volume image data and the natural chunk format for file reads is still a 2D z slice.  I have not implemented such a strategy in my current volume rendering code but I would definitely do something similar that just reads smaller pieces of data and lets the rendering code just render what's available as it comes in.
Also, I don't have much experience with in-process Python multithreading, so the GIL would be a concern/technical risk for me too.  If the GIL allows concurrency during i/o operations, then that's at least a good start.

Thanks for the comments @toloudis. Your summary seems right.
Showing "doneness" is an interesting point. I've certainly used apps and wondered "is it still loading or this imagery itself blurry?" It might be nice to make that definitive.
Good point about eviction/deletion I didn't get into that at all. I have some ideas for RAM and VRAM based on what I've done in the past. I'll be sure to add those details once we have something working. I do want the document to morph into describing the system as-implemented, not just be a historical thing.
When I started on napari I was like gosh, they get amazingly decent "paging while drawing" behavior just using Dask, which can lazy load numpy arrays. So it was loading the data on the fly while drawing. Especially with a local SSD I think everyone was kind of impressed how that basically does work with none of this infrastructure. But when the data was remote, and other slow cases, everything fell apart and the app would freeze up.
For a while I think people were hoping there was some "quick fix" but reluctantly we concluded we need basically everything in this document. With 2d images working though I'm hopeful we can use the same ChunkLoader and octree for the other types of data napari can view: 3d volumes, points, shapes and meshes.

When I started on napari I was like gosh, they get amazingly decent "paging while drawing" behavior just using Dask, which can lazy load numpy arrays. So it was loading the data on the fly while drawing. Especially with a local SSD I think everyone was kind of impressed how that basically does work with none of this infrastructure. But when the data was remote, and other slow cases, everything fell apart and the app would freeze up.

I have a little bit of experience with dask for loading large files, from my involvement in the aicsimageio library which was recently refactored to use it.  We got excellent results, but still: Local compute + Remote data = sad face.
It is amazing, the hoops we have to jump through to take code from "it works!" to "it works and you don't have to wait!".

This is great @toloudis and @pwinston, thanks for weighing in @toloudis! I'm going to merge this now, but people should feel free to continue discussion on this PR or any of the linked issues. Thanks all


Docs: Merge migration docs for G10 -> G11

What changed?
https://github.com/grafana/plugin-tools/pull/781 introduced a migration guide for updating from Grafana 10 to 11. Based on our other guides it makes sense to have all 10 -> 11 changes under a single migration guide.

@leventebalogh please add a redirect for v10.0.x-v10.1.x.md - how to https://github.com/grafana/plugin-tools/blob/main/CONTRIBUTING.md#contribute-documentation

Closing the PR based on this Slack discussion.


Emoji not displayed correctly in Project Settings' text inputs

Godot version
3.3.2.stable.official
System information
macOS BigSur (11.15)
Issue description
When you copy/paste an emoji into a text input in Project Settings, it doesn't display correctly.

Steps to reproduce
Go to:

Project -> Project Settings
Paste an emoji in application/config/name or application/config/description and a "warning" interrogation mark icon will be displayed instead of the actual emoji.

Minimal reproduction project
No response

An emoji displaying the default symbol is because the font used does not support that symbol. Also if the code point of the emoji is larger than U+FFFF then it will not be supported in Godot until 4.0.

On macOS and Linux, Godot 3.x can display characters above U+FFFF, it's Windows only limitation. But, default editor font set does not include emoji font (in both 3.x and 4.x).

Godot should likely load the system emoji font in the editor, but this can only be done in master.