Default to 0.00 proximity for static resources?

When adding static resources, is it possible to default the value of proximity to 0.00? Most of the times we won't be using it so it makes sense to have it "disabled" as a default.

The idea behind static resource is that is able to track other resources (that must be marked as dynamic proximity). If you don't need the proximity radius you can use a dynamic-continuous resource, it will not have the proximity radius and it will not be automatically tracked by other static resources.

But will I be able to specify its position? For instance, if I have an iMac (not tracking anything) and I want to put it on the map in a  specific location, I can't do that with dynamic resources, correct?

Yep you can do it, use this settings to do it:

I see! Thanks for the clarification!


As a user I should be able to add tags to the existing list of tags in a todo

#40
Currently, t/ replaces all tags in the list of tags

Use "ta/" to add a tag. "t/" may still replace all tags.

merge edit-issue-61.


Unable to run kubefirst when AWS SSO is used with multiple profile.

Which version of kubefirst are you using?
2.2.2
Which cloud provider?
AWS
Which installation type?
CLI
Which distributed Git provider?
GitHub
What is the issue?
When using AWS SSO to login with --profile flag, the kubefirst terraform command doesn't use the profile information and fails,
Error: error configuring S3 Backend: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
Code of Conduct

[X] I agree to follow this project's Code of Conduct

It was an env variable issue. Not related to Kubefirst. So, closing this issue.


Storage: Cache supported drivers

Now that StorageRemoteDriverNames() is being used to generate frequently used DB queries, there is a cost implication to calling SupportedDrivers() when a particular driver isn't supported and the time taken to discover this is significant.
If a driver load fails then it (correctly) doesn't set its loaded boolean to true, meaning that the discovery process occurs on every call to SupportedDrivers() for every non-supported driver.
Instead we now cache (negatively - for unsupported drivers) the list of supported drivers, which in turn improves the performance of StorageRemoteDriverNames().
This should fix the speed issues introduced with commits https://github.com/lxc/lxd/commit/d83e73d17b9a2b576ef436dc9bd8db319b8fe60e and https://github.com/lxc/lxd/commit/ae337c2f3cab475658e56339cf0101d2cd2423c6
CC @stgraber @freeekanayaka @monstermunchkin

@stgraber I wasn't entirely clear on where you wanted the cache invalidation for the supported driver list to occur. You mentioned doing this on driver load, was that correct? I think that would happen quite a bit though, as storage drivers are loaded when instances are accessed etc.

@tomponline I would do it in the individual load() functions in the case where Loaded isn't true.
So that would only invalidate the cache if we directly load a driver which we've never loaded before AND that's not in the cache already.

@stgraber ok will look at in a separate PR, did this fix the slow down issue in the tests?

@stgraber just seen https://github.com/lxc/lxd/pull/7823#issuecomment-682057430


Bugfix: fix broken "show selected" in the Labels layer (because of caching)

Description
The labels caching from #5732 broke the "show selected" feature because of caching. This PR fixes it by invalidating the cache when "show selected" is activated.
I also added a test that catches this bug.
Type of change

[X] Bug-fix (non-breaking change which fixes an issue)

How has this been tested?

[X] all tests pass with my change

Final checklist:

[X] My PR is the minimum possible work for the desired functionality
[X] I have added tests that prove my fix is effective or that my feature works

Nice, thanks for adding the test as well :muscle:

Thanks @ksofiyuk 🙏


Replace status page with siteinfo based map

The current map on the status page is based on mlab-ns. Now that we have the siteinfo API, let's use the JSON it generates to make this map.

This is in progress.


AzCopy fails to write xattr

Which version of the AzCopy was used?
Note: The version is visible when running AzCopy without any argument
10.25.1
Which platform are you using? (ex: Windows, Mac, Linux)
Linux (Ubuntu 22.04 VM in Azure)
What command did you run?
Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
azcopy sync "https://<storageName>.blob.core.windows.net/<container>/<folder>/?<sig>" "." --delete-destination true --compare-hash "MD5" --cap-mbps 400
What problem was encountered?
When trying to sync files from storage account to Ubuntu 22.04 I getting xattr related errors:
2024/07/24 16:15:38 failed to write hash data for edd - Copy (3).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/24 16:15:38 failed to write hash data for edd - Copy.txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/24 16:15:38 failed to write hash data for edd - Copy (2).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode

Important! Even when it shows errors in the log and shows all operations as failed, it downloads files anyway.
How can we reproduce the problem in the simplest way?

Upload test files to storage account
Create Ubuntu 22.04 VM in Azure
Attach data disk
Mount data disk (as ext4)
Sync files from storage account to this data disk using the command azcopy sync (as above)

Have you found a mitigation/solution?
I installed xattr package, but it didn't help.
Tried to use OS agnostic way, but there is another issue with it #2758
The potential reason for this issue is that you are trying to write xattr without "user." prefix. I tried to set xattrs for test file by command xattr -w sss testVal test.xml and it failed with error [Errno 95] Operation not supported: b'test.xml', but it works as xattr -w user.sss testVal test.xml.
As far as I understand, user_xattr is enabled for ext4 filesystem by default. Also, I tried to enable it explicitly (via /etc/fstab).
It is described here: https://stackoverflow.com/questions/60893372/why-must-a-user-be-prepended-to-the-name-when-setting-a-files-xattr-with-os

Command log:
INFO: XAttr hash storage mode is selected. This assumes all files indexed on the source are on filesystem(s) that support user_xattr.
INFO: Any empty folders will not be processed, because source and/or destination doesn't have full folder support

Job d0c17a5c-fb5d-c449-503e-38a02477af0f has started
Log file is located at: /home/user/.azcopy/d0c17a5c-fb5d-c449-503e-38a02477af0f.log

INFO: One or more hash storage operations (read/write) have failed. Check the scanning log for details.
 This assumes all files indexed on the source are on filesystem(s) that support user_xattr.
INFO: XAttr hash storage mode is selected. This assumes all files indexed on the source are on filesystem(s) that support user_xattr.
INFO: XAttr hash storage mode is selected. This assumes all files indexed on the source are on filesystem(s) that support user_xattr.
0.0 %, 0 Done, 3 Failed, 0 Pending, 3 Total, 2-sec Throughput (Mb/s): 268.3674

Job d0c17a5c-fb5d-c449-503e-38a02477af0f Summary
Files Scanned at Source: 3
Files Scanned at Destination: 13
Elapsed Time (Minutes): 0.1002
Number of Copy Transfers for Files: 3
Number of Copy Transfers for Folder Properties: 0
Total Number of Copy Transfers: 3
Number of Copy Transfers Completed: 0
Number of Copy Transfers Failed: 3
Number of Deletions at Destination: 13
Total Number of Bytes Transferred: 0
Total Number of Bytes Enumerated: 270993275
Final Job Status: Failed

Scanning log:
2024/07/25 17:35:56 AzcopyVersion  10.25.1
2024/07/25 17:35:56 OS-Environment  linux
2024/07/25 17:35:56 OS-Architecture  amd64
2024/07/25 17:35:56 Log times are in UTC. Local time is 25 Jul 2024 17:35:56
2024/07/25 17:35:56 failed to read hash data for edd - Copy (11).txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd - Copy (3).txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd.txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd - Copy (2).txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd - Copy.txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd - Copy (7).txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd - Copy (5).txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd - Copy (10).txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd - Copy (4).txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd - Copy (8).txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd - Copy (6).txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for edd - Copy (9).txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to read hash data for 123/ssss.txt: failed to read xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy (11).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy (2).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy.txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy (5).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy (10).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy (7).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd.txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy (3).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy (8).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy (6).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy (9).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for edd - Copy (4).txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 failed to write hash data for 123/ssss.txt: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/07/25 17:35:56 ==> REQUEST/RESPONSE (Try=1/12.696453ms, OpTime=54.29216ms) -- RESPONSE SUCCESSFULLY RECEIVED
   HEAD https://\<storage>.blob.core.windows.net/\<container>/\<folder>?se=2024-07-26T01%3A35%3A41Z&sig=-REDACTED-&sp=racwdl&spr=https&sr=c&st=2024-07-25T17%3A35%3A41Z&sv=2022-11-02
   X-Ms-Request-Id: [fec348af-301e-0037-0fb9-de42b6000000]

2024/07/25 17:35:56 ==> REQUEST/RESPONSE (Try=1/6.572306ms, OpTime=6.613234ms) -- RESPONSE SUCCESSFULLY RECEIVED
   GET https://\<storage>.blob.core.windows.net/\<container>?comp=list&delimiter=%2F&include=metadata&prefix=\<prefix>%2F&restype=container&se=2024-07-26T01%3A35%3A41Z&sig=-REDACTED-&sp=racwdl&spr=https&sr=c&st=2024-07-25T17%3A35%3A41Z&sv=2022-11-02
   X-Ms-Request-Id: [fec348ba-301e-0037-17b9-de42b6000000]

2024/07/25 17:35:56 Deleting extra file: edd - Copy (7).txt
2024/07/25 17:35:56 Deleting extra file: edd.txt
2024/07/25 17:35:56 Deleting extra file: edd - Copy (11).txt
2024/07/25 17:35:56 Deleting extra file: edd - Copy (10).txt
2024/07/25 17:35:56 Deleting extra file: edd - Copy (5).txt
2024/07/25 17:35:56 Deleting extra file: edd - Copy (4).txt
2024/07/25 17:35:56 Deleting extra file: 123/ssss.txt
2024/07/25 17:35:56 Deleting extra file: edd - Copy (2).txt
2024/07/25 17:35:56 Deleting extra file: edd - Copy (8).txt
2024/07/25 17:35:56 Deleting extra file: edd - Copy (6).txt
2024/07/25 17:35:56 Deleting extra file: edd - Copy (9).txt
2024/07/25 17:35:56 Deleting extra file: edd - Copy.txt
2024/07/25 17:35:56 Deleting extra file: edd - Copy (3).txt
2024/07/25 17:36:02 Closing Log

Installed xattr:
Package: xattr
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 17
Maintainer: Ubuntu Developers<EMAIL_ADDRESS>Architecture: amd64
Source: python-xattr
Version: 0.9.7-1build4
Depends: python3:any, python3-xattr (= 0.9.7-1build4), python3-pkg-resources
Description: tool for manipulating filesystem extended attributes
 xattr tool allows manipulation of the filesystem extended attributes present
 in some operating systems (GNU/Linux included).
 .
 This package contains the xattr cli tool.
Homepage: https://github.com/xattr/xattr
Original-Maintainer: Federico Ceratto<EMAIL_ADDRESS>

https://go.googlesource.com/sys.git/+/master/unix/xattr_bsd.go#31
func xattrnamespace(fullattr string) (ns int, attr string, err error) {
  s := strings.IndexByte(fullattr, '.')
  if s == -1 {
    return -1, "", ENOATTR
  }

  namespace := fullattr[0:s]
  attr = fullattr[s+1:]

  switch namespace {
    case "user":
      return EXTATTR_NAMESPACE_USER, attr, nil
    case "system":
      return EXTATTR_NAMESPACE_SYSTEM, attr, nil
    default:
      return -1, "", ENOATTR
  }
}

Fix suggested: https://github.com/Azure/azure-storage-azcopy/pull/2762

Hi there. Apologies for the delayed response. Xattr has to be available at a filesystem level, which is usually a flag when mounting the fs.
There are two potential mitigations here

Enable xattr on the target filesystem
Use a different hash storage mode (check the docs for --local-hash-storage-mode and --hash-meta-dir for a dependency agnostic solution)

@adreed-msft I tested my changes in PR #2762 and it works as expected.

More information about ENOTSUP: https://manpages.debian.org/unstable/manpages-dev/setxattr.2.en.html#EDQUOT

Got the same....
2024/11/27 10:20:48 failed to write hash data for ._data01: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/11/27 10:20:48 failed to write hash data for sync: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/11/27 10:20:48 failed to write hash data for sync2: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/11/27 10:20:48 failed to write hash data for sync3: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
2024/11/27 10:20:48 failed to write hash data for sync4: failed to write xattr: operation not supported; consider utilizing an OS-agnostic hash storage mode
Use the XFS filesystem:
/dev/sdb1 on /data  type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)


Tests!

Write Django tests for the application form and tests for the back-end review process.

We started to do this. CLOSING!


Bluetooth: controller: Fix AdvA/TgtA for extended adv PDUs

AdvA in extended advertising PDUs was only set if random address was
used. This patch enables proper support for AdvA/TgtA in those PDUs
also with LL Privacy enabled.
On enable, we always update advertising PDU (i.e. ADV_IND, ADV_EXT_IND
or ADV_AUX_IND, depending on advertising set parameters) as well as
scan response PDU.
On RPA timeout, we simply copy old PDU as-is and update AdvA in new
PDU, since both PDUs are exactly the same (except AdvA) so no need to
recreate it step-by-step.
Signed-off-by: Andrzej Kaczmarek<EMAIL_ADDRESS>

seems like I forgot to squash some fixes, now should be all good


[5.8] wrong/missing HTML class names

Hi;
When I noticed I couldn't create with relationship column on generate builder.
HTML render;

resources\views\infyom\generator-builder\builder.php
$('.relationItem').each(function () {
    relationFieldArr.push({
        relationType: $(this).find('.drdRelationType').val(),
        foreignModel: $(this).find('.txtForeignModel').val(),
        foreignTable: $(this).find('.txtForeignTable').val(),
        foreignKey: $(this).find('.txtForeignKey').val(),
        localKey: $(this).find('.txtLocalKey').val(),
    });
});

You can see that the HTML output is wrong according to the codes above. drdRelationType, txtForeignModel etc..
My composer require section following this;
"require": {
    "php": "^7.1.3",
    "fideloper/proxy": "^4.0",
    "laravel/framework": "5.8.*",
    "laravel/tinker": "^1.0",
    "infyomlabs/laravel-generator": "5.8.x-dev",
    "laravelcollective/html": "^5.8.0",
    "infyomlabs/adminlte-templates": "5.8.x-dev",
    "infyomlabs/swagger-generator": "dev-master",
    "appointer/swaggervel": "dev-master",
     "doctrine/dbal": "~2.3",
    "infyomlabs/generator-builder": "dev-master"
},

@fatihmert Can you please explain whats exactly problem.
You can see that the HTML output is wrong according to the codes above. drdRelationType, txtForeignModel etc.. what its meaning ??
there already given all classes name in HTML code.
btw, I have tested with crud with a relationship. seem to look it's working perfectly.

We do no longer support 5.8


When open()'ing file, encoding needs to be specified. Was: A strange issue with jsonschema in docker.

Hi.
So this will probably turn out to be a my local problem, but i'm not seeing it just yet.
I'm using jsonschema to validate a JSON file in darktable:  https://github.com/darktable-org/darktable/blob/master/data/CMakeLists.txt#L99
On my local machine this just works:
$ make validate_noiseprofiles_json
Checking validity of noiseprofiles.json
Built target validate_noiseprofiles_json

However in clean docker environment it does not:
https://travis-ci.org/darktable-org/darktable/jobs/163489568#L520
[  4%] Checking validity of noiseprofiles.json
usage: jsonschema [-h] [-i INSTANCES] [-F ERROR_FORMAT] [-V VALIDATOR] schema
jsonschema: error: argument -i/--instance: invalid _json_file value: '/build/darktable/data/noiseprofiles.json'

If i manually pull that image, and do it manually, it does cause the same issue.
And outside of the image, it just works.
On the exact same input JSON+schema, with exactly the same sha512sum's for those 2 files.
What could possibly be going on?

Maybe permissions. Click hides the traceback there, any exception that's raised while opening that file might come back with that error.

strace /usr/bin/jsonschema -i /build/darktable/data/noiseprofiles.json /build/darktable/data/noiseprofiles.schema
docker-strace.txt
Last lines look like it does successfully read json:
open("/build/darktable/data/noiseprofiles.json", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=756225, ...}) = 0
ioctl(3, TCGETS, 0x7fffbefbbd20)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR)                   = 0
ioctl(3, TCGETS, 0x7fffbefbbcb0)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR)                   = 0
lseek(3, 0, SEEK_CUR)                   = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=756225, ...}) = 0
mmap(NULL, 757760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb6b44aa000
read(3, "{\n  \"version\": 0,\n  \"noiseprofil"..., 756226) = 756225
read(3, "", 1)                          = 0
mmap(NULL, 757760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb6b43f1000
mmap(NULL, 757760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb6b4338000
munmap(0x7fb6b43f1000, 757760)          = 0
close(3)                                = 0
write(2, "usage: jsonschema [-h] [-i INSTA"..., 78usage: jsonschema [-h] [-i INSTANCES] [-F ERROR_FORMAT] [-V VALIDATOR] schema
) = 78
write(2, "jsonschema: error: argument -i/-"..., 112jsonschema: error: argument -i/--instance: invalid _json_file value: '/build/darktable/data/noiseprofiles.json'
) = 112
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fb6b703beb0}, {0x6408f0, [], SA_RESTORER, 0x7fb6b703beb0}, 8) = 0
munmap(0x7fb6b4338000, 757760)          = 0
munmap(0x7fb6b44aa000, 757760)          = 0
munmap(0x7fb6b4b98000, 262144)          = 0
munmap(0x7fb6b4c8b000, 262144)          = 0
munmap(0x7fb6b4d0b000, 262144)          = 0
exit_group(2)                           = ?
+++ exited with 2 +++
root@3f9690e683b9:~#

Here is the strace from outside of container:
open("noiseprofiles.json", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=756225, ...}) = 0
ioctl(4, TCGETS, 0x7fffecefa7e0)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(4, 0, SEEK_CUR)                   = 0
ioctl(4, TCGETS, 0x7fffecefa770)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(4, 0, SEEK_CUR)                   = 0
lseek(4, 0, SEEK_CUR)                   = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=756225, ...}) = 0
mmap(NULL, 757760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023bea000
read(4, "{\n  \"version\": 0,\n  \"noiseprofil"..., 756226) = 756225
read(4, "", 1)                          = 0
mmap(NULL, 757760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023b31000
mmap(NULL, 757760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023a78000
munmap(0x7f5023b31000, 757760)          = 0
mmap(NULL, 1515520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023906000
munmap(0x7f5023a78000, 757760)          = 0
mmap(NULL, 1515520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023a78000
munmap(0x7f5023906000, 1515520)         = 0
mmap(NULL, 1515520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023906000
munmap(0x7f5023a78000, 1515520)         = 0
munmap(0x7f5023bea000, 757760)          = 0
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023c63000
brk(0x1c4c000)                          = 0x1c4c000
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023c23000
brk(0x1c6d000)                          = 0x1c6d000
brk(0x1c8e000)                          = 0x1c8e000
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023be3000
brk(0x1caf000)                          = 0x1caf000
brk(0x1cd0000)                          = 0x1cd0000
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023ba3000
brk(0x1cf1000)                          = 0x1cf1000
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023b63000
brk(0x1d12000)                          = 0x1d12000
brk(0x1d33000)                          = 0x1d33000
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023b23000
brk(0x1d54000)                          = 0x1d54000
munmap(0x7f5023906000, 1515520)         = 0
close(4)                                = 0
open("noiseprofiles.schema", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2997, ...}) = 0
ioctl(4, TCGETS, 0x7fffecefa7e0)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(4, 0, SEEK_CUR)                   = 0
ioctl(4, TCGETS, 0x7fffecefa770)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(4, 0, SEEK_CUR)                   = 0
lseek(4, 0, SEEK_CUR)                   = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=2997, ...}) = 0
read(4, "{\n  \"$schema\": \"http://json-sche"..., 2998) = 2997
read(4, "", 1)                          = 0
close(4)                                = 0
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5023ae3000
munmap(0x7f5023be3000, 262144)          = 0
munmap(0x7f5023c23000, 262144)          = 0
munmap(0x7f5023c63000, 262144)          = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f5026df4100}, {0x6408f0, [], SA_RESTORER, 0x7f5026df4100}, 8) = 0
munmap(0x7f5025851000, 135168)          = 0
munmap(0x7f5023ba3000, 262144)          = 0
munmap(0x7f5023b63000, 262144)          = 0
munmap(0x7f5023b23000, 262144)          = 0
munmap(0x7f5023ae3000, 262144)          = 0
brk(0x1cd2000)                          = 0x1cd2000
munmap(0x7f5024353000, 262144)          = 0
munmap(0x7f5024413000, 262144)          = 0
munmap(0x7f5024313000, 262144)          = 0
munmap(0x7f50242d3000, 262144)          = 0
exit_group(0)                           = ?
+++ exited with 0 +++

As per #python suggestion:
 python3 -m trace --trace /usr/bin/jsonschema -i noiseprofiles.json noiseprofiles.schema
py-trace.txt.zip

Seems like from that that it's likely a locale issue, but stepping through in a debugger in your  container is going to be a lot more helpful than just splatting out that trace output.

Yes, sorry if i'm not being very helpful, not enough Python expirience :)
Will try debugger next...

Hmm, i think you're right:
(sorry about the following, not sure yet how to show it in simpler form (: )
PuDB 2016.2 - ?:help  n:next  s:step into  b:breakpoint  !:python command line [PROCESSING EXCEPTION - hit 'e' to examine]
   1 """ Python 'ascii' Codec                                                                                Variables:
   2                                                                                final: True
   3                                                                                input: bytes
   4 Written by Marc-Andre Lemburg (mal@lemburg.com).                                                                                self: IncrementalDecoder
   5
   6 (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
   7
   8 """                          ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
   9 import codecs                │                                                                                Exception Viewer                                                                                │
  10                              │                                                                                │
  11 ### Codec APIs               │Traceback (most recent call last):                                                                                < Close       >│
  12                              │  File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode                                                                                < Location    >│
  13 class Codec(codecs.Codec):   │    return codecs.ascii_decode(input, self.errors)[0]                                                                                │
  14                              │UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 165: ordinal not in range(128)                                                                                │
  15     # Note: Binding these as │                                                                                │
  16     # converting them to meth│                                                                                │
  17     encode = codecs.ascii_enc│                                                                                │
  18     decode = codecs.ascii_dec│                                                                                │
  19                              │                                                                                │
  20 class IncrementalEncoder(code│                                                                                │
  21     def encode(self, input, f│                                                                                │
  22         return codecs.ascii_e│                                                                                │
  23                              │                                                                                │
  24 class IncrementalDecoder(code│                                                                                │
  25     def decode(self, input, f│                                                                                │
> 26         return codecs.ascii_d│                                                                                │
  27                              │                                                                                │
  28 class StreamWriter(Codec,code│                                                                                │
  29     pass                     │                                                                                │
  30                              │                                                                                │
  31 class StreamReader(Codec,code│                                                                                │
  32     pass                     │                                                                                │
  33                              │                                                                                │
  34 class StreamConverter(StreamW│                                                                                │
  35                              │                                                                                │
  36     encode = codecs.ascii_dec│                                                                                │
  37     decode = codecs.ascii_enc│                                                                                │
  38                              │                                                                                │
  39 ### encodings module API     │                                                                                │
  40                              │                                                                                │
  41 def getregentry():           │                                                                                │
  42     return codecs.CodecInfo( │                                                                                │
  43         name='ascii',        │                                                                                │
  44         encode=Codec.encode, │                                                                                │
  45         decode=Codec.decode, │                                                                                │
  46         incrementalencoder=In│                                                                                │
  47         incrementaldecoder=In│                                                                                │
  48         streamwriter=StreamWr│                                                                                │
  49         streamreader=StreamRe│                                                                                │
  50     )                        │                                                                                │
                                  │                                                                                │
                                  │                                                                                │
                                  │                                                                                │
                                  │                                                                                │
                                  │                                                                                │
                                  │                                                                                │
                                  │                                                                                │
Command line: [Ctrl-X]            │                                                                                │
                                  └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

>>>                                                                                < Clear  >

Okay, exporting C.UTF-8 as locale helped, thanks for the hint.
But https://github.com/docker-library/python/pull/5#issuecomment-50556812 suggests this needs to be fixed in https://github.com/Julian/jsonschema/blob/be5097d249858e77906f571cb433814ba8660dc5/jsonschema/cli.py#L17
e.g.
-     with open(path) as file:
+    with open(path, 'r', encoding='utf-8') as file:

That answer seems to assume you'd want unicode in both languages, but we don't, jsonschema just needs a native str. The locale is what Python3 uses to know what encoding your bytes are in if you don't specify one, but having jsonschema forcibly assume one isn't really better than the default, it would just flip flop who's broken -- someone with a non-UTF-8 non-ASCII-file or someone with a UTF-8 file and an ASCII locale. And yeah, on Py2, just getting back bytes is the intention, and the json module there happily accept them.
Gonna just close this out, glad you were able to get it to work.

@Julian
Hmm, ok, then why does it fail if:
LANG=sv_SE.UTF-8
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=

and then
$ LANG=C.UTF-8 jsonschema -i a.json a.schema

or
$ LANG=C.UTF-8 LC_ALL=C.UTF-8 jsonschema -i a.json a.schema

<EMAIL_ADDRESS>I'm clearly missing something here...

@LebedevRI what schema is that and what encoding is it in?

https://github.com/darktable-org/darktable/blob/master/data/noiseprofiles.schema
https://github.com/darktable-org/darktable/blob/master/data/noiseprofiles.json

@LebedevRI will try to make some time to reproduce and have another look, definitely would love to help darktable out, especially since it helps myself :P.

Hey @LebedevRI sorry for the delay here.
So after grabbing a few minutes this morning to look at this again, your command line seems to pass for me...
⊙  sudo docker run --rm -ti ubuntu:14.04 bash -c '                                                                                julian@yoga
apt-get -qq install -y python wget
locale-gen sv_SE
export LANG=sv_SE.UTF-8
export LC_CTYPE="sv_SE.UTF-8"
export LC_NUMERIC="sv_SE.UTF-8"
export LC_TIME="sv_SE.UTF-8"
export LC_COLLATE="sv_SE.UTF-8"
export LC_MONETARY="sv_SE.UTF-8"
export LC_MESSAGES="sv_SE.UTF-8"
export LC_PAPER="sv_SE.UTF-8"
export LC_NAME="sv_SE.UTF-8"
export LC_ADDRESS="sv_SE.UTF-8"
export LC_TELEPHONE="sv_SE.UTF-8"
export LC_MEASUREMENT="sv_SE.UTF-8"
export LC_IDENTIFICATION="sv_SE.UTF-8"
export LC_ALL=
locale

python <(wget -O- -q https://bootstrap.pypa.io/get-pip.py) --quiet
python -m pip install --quiet jsonschema
jsonschema -i <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.json) -i <(echo '{}') <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.schema)
LANG=C.UTF-8 jsonschema -i <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.json) -i <(echo '{}') <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.schema)
LANG=C.UTF-8 LC_ALL=C.UTF-8 jsonschema -i <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.json) -i <(echo '{}') <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.schema)
'

produces just the error output from that invalid {} I threw in there to make sure things were happening.
Have I missed something?

Could you please try with debian:testing image?
I think the deeper problem is that it requires utf locale to be present, which is not always the case.
https://bugs.gentoo.org/show_bug.cgi?id=604042#c6

Oh, also, it is clearly related to the python version. It seems to just work with py2, but not py3.

Got it. Well, with debian:testing and py3 I can get it to fail when LANG isn't changed back to C.UTF-8:
``
⊙  sudo docker run --rm -ti debian:testing bash -c '                                                                                julian@yoga
apt-get update >/dev/null
apt-get -qq install -y python python3 locales wget >/dev/null
locale-gen sv_SE.UTF-8
export LANG=sv_SE.UTF-8
export LC_CTYPE="sv_SE.UTF-8"
export LC_NUMERIC="sv_SE.UTF-8"
export LC_TIME="sv_SE.UTF-8"
export LC_COLLATE="sv_SE.UTF-8"
export LC_MONETARY="sv_SE.UTF-8"
export LC_MESSAGES="sv_SE.UTF-8"
export LC_PAPER="sv_SE.UTF-8"
export LC_NAME="sv_SE.UTF-8"
export LC_ADDRESS="sv_SE.UTF-8"
export LC_TELEPHONE="sv_SE.UTF-8"
export LC_MEASUREMENT="sv_SE.UTF-8"
export LC_IDENTIFICATION="sv_SE.UTF-8"
export LC_ALL=
locale
python <(wget -O- -q https://bootstrap.pypa.io/get-pip.py) --quiet
python -m pip install --quiet jsonschema
python /usr/local/bin/jsonschema -i <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.json) -i <(echo '{}') <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.schema)
python3 <(wget -O- -q https://bootstrap.pypa.io/get-pip.py) --quiet
python3 -m pip install --quiet jsonschema
echo "WITHOUT LOCALE"
python3 /usr/local/bin/jsonschema -i <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.json) -i <(echo '{}') <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.schema)
echo "WITH LOCALE"
LANG=C.UTF-8 LC_ALL=C.UTF-8 python3 /usr/local/bin/jsonschema -i <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.json) -i <(echo '{}') <(wget -O- -q https://raw.githubusercontent.com/darktable-org/darktable/master/data/noiseprofiles.schema)
'

I can see that without LANG there, `import locale; locale.getpreferredencoding` (which is what `open()` will use) is claiming that the user's preferred encoding is ASCII, so the problem is external to jsonschema I'm fairly positive, but I don't know what it is yet. I'll give it some more time after lunch I think.

Yeah OK never mind lunch :)
So the problem here is just that well... Python is bad and Linux is bad.
So Python's locale.getpreferredencoding silently swallows locale errors in this branch: https://github.com/python/cpython/blob/e5b38b9c6f389e2ad80b0d684557c743c9b0cc98/Lib/locale.py#L643-L646 and in the reproducing code above, things are actually broken externally to Python, specifically sv_SE.UTF-8 was never actually properly installed.
If you do install it (on debian it appears to live in locales-all):
⊙  sudo docker run --rm -ti debian:testing bash -c '                                                                                julian@yoga
apt-get update >/dev/null
apt-get -qq install -y locales locales-all python3 >/dev/null
locale-gen sv_SE.UTF-8
export LANG=sv_SE.UTF-8
export LC_CTYPE="sv_SE.UTF-8"
export LC_NUMERIC="sv_SE.UTF-8"
export LC_TIME="sv_SE.UTF-8"
export LC_COLLATE="sv_SE.UTF-8"
export LC_MONETARY="sv_SE.UTF-8"
export LC_MESSAGES="sv_SE.UTF-8"
export LC_PAPER="sv_SE.UTF-8"
export LC_NAME="sv_SE.UTF-8"
export LC_ADDRESS="sv_SE.UTF-8"
export LC_TELEPHONE="sv_SE.UTF-8"
export LC_MEASUREMENT="sv_SE.UTF-8"
export LC_IDENTIFICATION="sv_SE.UTF-8"
export LC_ALL=
locale

python3 -c "import locale; print(locale.getpreferredencoding())"
'
debconf: delaying package configuration, since apt-utils is not installed
Generating locales (this might take a while)...
Generation complete.
LANG=sv_SE.UTF-8
LANGUAGE=
LC_CTYPE=sv_SE.UTF-8
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES=sv_SE.UTF-8
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION=sv_SE.UTF-8
LC_ALL=
UTF-8

now you can see at the bottom that Python properly sees that the user wants UTF-8.
And sure enough if you add that to the original junk there to run jsonschema, now things work even for the sv_SE locale.
So yeah, I think my conclusion is still that this is definitely an environment issue if it happens, but lemme know if you disagree.

One more thing, with plain debian:testing, and no additional env variables exported, it also fails.
Is that expected, too?

Without adding any environment variables, the default locale you're gonna get looks like:
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

which corresponds to locale.getpreferredencoding seeing that you want ANSI_X3.4-1968 -- but your schema is non-ASCII, it's UTF-8, so yeah that'd be expected too unfortunately.
Does this make sense to you? Basically jsonschema can't be making assumptions about the encodings of files you're giving it, it has to trust that you're telling it the right encoding via your locale (well, really it's Python, jsonschema just doesn't override that).
If you have any examples here though where you have someone getting an error but it not being a problem with their environment I'd definitely be interested in seeing it.
Or alternatively if you have other ideas here I'm all ears. Otherwise it seems to me still that this is a "working as intended" for better or worse.

Sorry, @fijal is correct in saying:

18:40:53       fijal| tos9: I think "working as intended" here is a large stretch
18:41:02       fijal| "as best as it can" is a better description
18:41:42       fijal| I'm sure that noone intended it that way
18:41:48       fijal| hm, maybe not so sure, people are twisted

Okay :)
At least we now have somewhere to point affected people at.

@LebedevRI anytime.


Add support for custom proxy config to waypoints

Please provide a description of this PR:
This PR add supports for setting custom proxy config that will be consumed by the deployed waypoints.
E.g.: Supports setting the meshConfig.defaultConfig.envoyMetricsService.address for the L7 metrics from the waypoint to be pushed to metrics service.
To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

[X] Ambient
[X] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Please check any characteristics that apply to this pull request.

[X] Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

@ymesika: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio_exp
95ed71bb7fd1ea5d698ef65637a2f3db6095a7fd
link
true
/test release-notes

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test release-notes

@howardjohn Kind reminder


Disable/Enable-PSTrace missing

Steps to reproduce
Enable-Pstrace -AnalyticOnly -Force
Expected behavior
Command should work
Actual behavior
The term 'Enable-Pstrace' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Environment data
Fails on nano and client SKU, but with different errors

v0.4.0

> $PSVersionTable
Name                           Value
----                           -----
WSManStackVersion              3.0
PSVersion                      5.1.14361.1000
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSEdition                      Core
PSRemotingProtocolVersion      2.3
CLRVersion
SerializationVersion           <IP_ADDRESS>
BuildVersion                   10.0.14361.1000

$ dotnet --info
.NET Command Line Tools (1.0.0-preview2-003096)

Product Information:
 Version:            1.0.0-preview2-003096
 Commit SHA-1 hash:  191812690d

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14353
 OS Platform: Windows
 RID:         win10-x64

$ git rev-parse HEAD; git status
ebd28ec6651347e11a4efef492817565e6c6b49d
On branch master
Your branch is up-to-date with 'PowerShell/master'.
nothing to commit, working directory clean

```_

```_

Testing this on the latest versoin of PowerShell (7.2.1) does not give this error.
Can this issue be closed??


Compatibility with nuxt-i18n

The problem
nuxt-i18n creates an augmented VueI18n instance in this.$root.$i18n and expects vue-i18n to use it as value in _i18n (https://github.com/kazupon/vue-i18n/blob/d28e3b25d9bd9eac51fc3714a4a2940772d85c3d/src/mixin.js#L69)
But when one uses custom i18n blocks in the component with vue-i18n-loader, it fills this.$options.__i18n in the component which is picked up by https://github.com/kazupon/vue-i18n/blob/master/src/mixin.js#L9 and the this.$root.$i18n instance is never set in this._i18n.
The consequence is that this.$i18n in the component is a new basic VueI18n instance and not the nuxt-i18n augmented VueI18n instance. Such attributes as "locales" or "differentDomains" are therefore not accessible from the component and the nuxt-i18n method  "switchLocalePath" is broken when using differentDomains with nuxt-i18n.
Here is the link to the comment I posted in the nuxt-i18n project: https://github.com/nuxt-community/nuxt-i18n/issues/205#issuecomment-498763751.
Suggested solution
vue-i18n-loader could use an explicit key instead of the cryptic __i18n, like _i18n_translations for instance.
Then vue-i18n would handle the key specifically when present (independently from the different scenarii for setting up this._i18n), as opposed to seed option.i18n with __i18n
What are your thoughts on this?

I'd say this is fixed in nuxt-i18n already.

close in-activity


feat: port Topology.FiberBundle.Basic

./././Mathlib/Topology/FiberBundle/Basic.lean:705:31: error: typeclass instance problem is stuck, it is often due to metavariables
  TopologicalSpace ?m.419817

bors r-
bors d+

bors merge


Parameter download links wrong

Hi,
I tried to download the database and parameters fresh and ran into problems with the parameters. The download_all script still downloads the alphafold parameters.
The download instructions in the README are pointing to the wrong files. The normal unifold setup points to the symmetry parameter download and the symmetry instruction points to the normal unifold parameter.
All the best,
Dominik

Thank you, just fixed that in the latest commit

Thank you for the suggestions. The bugs are fixed in #70 and #68 separately.


Compile errors with clang++ 16

Version: master branch upto comit #06b9a51
Error log: Compile-Log.txt

I fixed these, but not the last errors in c#. I have no idea how c# should work. The error lines should just initialize some container with = []. VS was complaining when I was trying it differently. What's the correct fix?#2
In the past 2 weeks a LOT has changed so I expect a ton more errors.

Regarding the clang compilation errors it would be a problem for the github actions that include building and testing on linux in case this would be added instead of keeping it as a plugin but in practice I doubt it will affect enough users to be an issue. I mean as long as flax is not extending the dev team with at least one macos or linux user I very much question the label of being cross-platform attached to Flax.
That said I can try and build on linux with dotnet 7 or 8 but I'm not planing on spending as much time with Flax as I used to.

are you testing builds with .net 7? .net8 introduced a lot of collection initialization features that I noticed you use when I tried to build the game on your GH with .net 7. Considering flax is switching to .net8 since its an LTS version, I think that's fine.

I'm pretty sure it's .net 8 because that's the default on VS. I don't know proper C# syntax, I didn't know the [] initialization is new.

Regarding the clang compilation errors it would be a problem for the github actions that include building and testing on linux in case this would be added instead of keeping it as a plugin but in practice I doubt it will affect enough users to be an issue. I mean as long as flax is not extending the dev team with at least one macos or linux user I very much question the label of being cross-platform attached to Flax.
That said I can try and build on linux with dotnet 7 or 8 but I'm not planing on spending as much time with Flax as I used to.

I noticed in the past when I compiled a program made with Qt, that the compiler on my Linux VM complained a lot about random issues that were fine in VS. If you have time and compile the code, I'll try to fix anything. I just don't know how, when it comes to C#.


Import docs

Updates the quick start section of the documentation to use the new imports, and fixes a large number of broken links, deprecated MkDocs extensions, docstring errors, etc.

I'll just merge this. We can add other re-exports later.


http://www.dnd5eapi.co returns null responses for all API calls

All API calls on the website return null.

All API calls are null actually. Not just on the website.


Intern TypeRefs stored in Body

Minor improvement to memory usage (1 MB or so)
bors r+

changelog internal


Update data.json

Anyone can see those two lines are wrong? The details are in discord in the bug-report room at August 31

It has been corrected. Thanks


full gc

      int conThreadNum = 512;
    int conBufferSize = 1024 * 1024;
    this.concurrentExecutor = Executors.newFixedThreadPool(conThreadNum, new ThreadFactory() {
        final AtomicInteger seq = new AtomicInteger(0);

        public Thread newThread(Runnable r) {
            return new Thread(r, "CommandBus-concurrency-Consumer-" + seq.getAndIncrement());
        }
    });

    this.conDisruptor = new Disruptor<>(
            CommandEvent.COMMAND_EVENT_FACTORY, conBufferSize, this.concurrentExecutor, ProducerType.SINGLE, new BlockingWaitStrategy()
    );
    WorkHandler[] handlers = new WorkHandler[conThreadNum];
    Arrays.fill(handlers, new WorkHandler<CommandEvent>() {

        @Override
        public void onEvent(CommandEvent event) throws Exception {
            handleCommandEvent(event);
        }
    });
    conDisruptor.handleEventsWithWorkerPool(handlers);
    conDisruptor.handleExceptionsWith(new CommandEventExceptionHandler<>("commandBus-Concurrency-Disruptor"));

public boolean publish(EventEnum cmd, Command event) {
long seq = conRingBuffer.next();
try {
CommandEvent commandEvent = conRingBuffer.get(seq);
commandEvent.command = event;
commandEvent.type = cmd;
} finally {
conRingBuffer.publish(seq);
return true;
}
}

Is there a specific question or issue here?

yes , it cause full gc . dump gc see ringBuffer also full . i do not kown where this case  cause it .

How you application behaves depends a lot on how you are actually producing messages.  E.g. is the rate of message production exceeding the rate at which you consume.  The other things of note is that I don't know what handleCommandEvent is doing.  If this is a CPU bound operation, then creating 512 workers is probably too many, unless you are running on a 512+ core machine.  Even if that operation is IO bound then 512 is probably too high.    Also how is the Command object being creating.  From this code it would suggest that you are allocating a new one for each publication.  If that is the case, then you should make sure you set the CommandEvent.command field to null after processing the message.  Then I would try reducing the number of works and the size of the ring buffer and seeing how your application behaves.
It is also unclear how big the Command object is.  Given that the ring buffer can hold 1,000,000+ objects you also may simply not have enough memory to hold them all.

@pengfei-xu
set the value of event to null after you handle it, distruptor dosent clean it which will stay in memory

Closing due to lack for further information.

@mikeb01   thanks  . reducing the number of works and the size of the ring buffer  is  ok


[JitBackend] Set up stubs for JIT tensor backend

Summary
This PR sets up the JIT tensor's implementation of the Flashlight Tensor API (i.e., TensorBase & TensorBackend).
Conceptually, this implementation serves as the "parser" from Tensor operations to the JIT IR, with the following components:

JitBackend is the parser for common operations
JitTensorBase is the one that actually holds the JIT IR node, and will deal with mutation/indexing/shallowCopy in the future.
JitTensor<T> serves as a template trait to turn any Tensor into a "jitted" Tensor, i.e., JitTensorBase.

JitTensor<T> is the only component that's statically aware of the actual tensor backend type. For JitTensorBase and JitBackend, only the latter has access to a TensorBackend wrappedBackend reference.
The user interface for JIT is very simple and makes 0 assumption on the actual tensor backend:
// in general: fl::setDefaultTensorType<JitTensor<...>>();
fl::setDefaultTensorType<JitTensor<OneDnnTensor>>();

Test Plan (required)
Unit tests are added.
make JitTensorTest
./flashlight/fl/test/JitTensorTest

Address all feedbacks.


feat: add HDD monitoring items to hdd_monitor

Signed-off-by: v-nakayama7440-esol<EMAIL_ADDRESS>Description
Add the following information to be monitored in hdd_monitor based on safety analysis made by TIER IV.
When a value exceeds threshold, the hdd_monitor generates Warning to notify operator something is happening on a storage.

HDD RecoveredError

Observe a CRC error on the storage to monitor Soft error(Transient fault).

HDD ReadDataRate

Observe Read data rate to monitor High load on communication bandwidth.

HDD WriteDataRate

Observe Write data rate to monitor High load on communication bandwidth.

HDD ReadIOPS

Observe input/output per second for read to monitor High load on communication bandwidth.

HDD WriteIOPS

Observe input/output per second for write to monitor High load on communication bandwidth.

(Generally, it would be better to use official value for threshold in datasheet if provided from HDD vendor. If a specification is not provided from HDD vendor, it would be necessary to use a peak value as results of benchmark testing.)
In addition, we will improve hdd_monitor functionality as regards to HDD connection.

HDD Connection

Newly added diagnostic information on HDD connection.
The hdd_monitor generates Warning if a device is not connected because of the availability of Autoware.
Generally, a built-in SSD is not disconnected from a computer, it is not a problem. However, an external SSD may be disconnected while running Autoware(driving/stopping) and the current implementation of hdd_monitor generates Error on every diagnostic information if a device is not connected. This leads to an emergency stop and loss of availability of Autoware.
Maybe we should restart Autoware just for disconnecting an external SSD while running Autoware.

Do not show any information on each diagnostic information when a device is not connected.

This will allow us to understand a error is happening due to limit exceeded.
The current implementation generates  Error when a device is not connected in addition to limit exceeded, so the cause of a error is mixed.

Related links
https://github.com/autowarefoundation/autoware.universe/issues/1770
Tests performed
We try to use peak values as results of benchmark testing for this test.
Preparation

Install KDiskMark
sudo add-apt-repository ppa:jonmagon/kdiskmark
sudo apt install kdiskmark

Run KDiskMark.
kdiskmark

Click All to start benchmark testing.

You can see the following results.

MB/s for ReadDataRate and WriteDataRate

IOPS for ReadIOPS and WriteIOPS

Change thresholds in {hdd_monitor.param.yaml` as follows.
Decimals shall be rounded down.

        ead_data_rate_warn: 502.00 # MB/s
        write_data_rate_warn: 109.00 # MB/s
        read_iops_warn: 44209.00 # IOPS
        write_iops_warn: 16970.00 # IOPS

Verify every information report OK in normal operation.

Run Autoware.

Run rqt_runtime_monitor.
ros2 run rqt_runtime_monitor rqt_runtime_monitor

Verify net_monitor: every information report OK.

HDD RecoveredError

HDD ReadDataRate

HDD WriteDataRate

HDD ReadIOPS

HDD WriteIOPS

Verify no warning and error messages in a normal run.

Verify every information are aggregated in resource_monitoring.

Run rqt_robot_monitor.
ros2 run rqt_robot_monitor rqt_robot_monitor

Verify the following items are in storage

recovered_error
read_data_rate
write_data_rate
read_iops
write_iops
connection

Verify each information reports Warning in abnormal operation.

Run KDiskMark.
kdiskmark

Verify each information regarding data rate reports Warning.

Click SEQ1M Q8T1 on KDiskMark window.

HDD ReadDataRate

HDD WriteDataRate

Verify each information regarding IOPS reports Warning.

Click RND4K Q32T1 on KDiskMark window.

HDD ReadIOPS

HDD WriteIOPS

HDD RecoveredError

ECC error may not be supported by some devices. In that case, this will be reported as OK with not available message.
ECC error is generally caused by storage degradation, and there is no way to cause ECC error intentionally, so the test can be skipped as regards to HDD RecoveredError.

Verify hdd_monitor: HDD Connection reports OK when an external storage is connected.

Connect an external storage to the computer.

Verify hdd_monitor: HDD Connection reports OK.

Verify hdd_monitor is showing information about external storage on each diagnostic information.
ex.)

Verify hdd_monitor: HDD Connection reports OK when an external storage is disconnected.

Disconnect an external storage from the computer.

Verify hdd_monitor: HDD Connection reports Warning.
NG. Still reporting OK

Verify hdd_monitor does not show any information about external storage (which is disconnected) on each diagnostic information.
ex.)
NG. Reporting Error

Notes for reviewers
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.
[ ] The PR has been properly tested.
[ ] The PR has been reviewed by the code owners.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.
[ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@v-nakayama7440-esol Please fix the error in pre-commit.ci. and I intend to file a new issue to explain why multiple PRs related to diagnosis are submitted.

@ito-san Fixed pre-commit.ci error.
fb6ca488bc89749adbfe494235f4e5446db93483

@ito-san @yukkysaito
Fixed the monitoring method of RecoveredError.
I used the value of RecoveredError obtained from the device as it is. However, it is correct to use the increment of RecoveredError since launching the app.
a312a40a0eae84aa6adc783a2730c7505ba78457

@v-nakayama7440-esol

hdd_monitor: HDD Connection is still reporting OK after disconnecting an USB SSD.

Error is reported on each information of hdd_monitor.

Could you investigate and fix this?

@v-nakayama7440-esol Would you resolve conflicts in system/system_monitor/README.md?

@ito-san
I resolved conflict.

@kenji-miyake Would you please review this PR because you are the code owner of tier4_system_launch and  system_error_monitor. Looks like your approval is required before merging.

@ito-san Could you add Ito-san and other necessary members here?
https://github.com/autowarefoundation/autoware.universe/blob/369b75192c89828d3582a7aa96f44b80c8272216/launch/tier4_system_launch/package.xml#L7

@ito-san Could you add Ito-san and other necessary members here?
https://github.com/autowarefoundation/autoware.universe/blob/369b75192c89828d3582a7aa96f44b80c8272216/launch/tier4_system_launch/package.xml#L7

OK, I will try to file a PR.


Fixes #99 - Add type filter only if missing

Tested via the ExtractParameters_WhenGivenTypeWithCodenameAndExistingTypeParameter_DoesNotAddCodenameToParams test method.

I have extracted condition to the private method.
Also change condition operands order in order to load the codename only when it is required to store (not already in extended parameters)


Preprint paper - talks about AF in §4.1.1

Also "ocean-borne fraction"!
See Figure 7
https://bg.copernicus.org/preprints/bg-2022-38/#discussion

"On land, the dominant control is via CO2 fertilisation (VPC) (~14 %), a major source of terrestrial carbon uncertainty."


Port 8800 getting hardcoded

Related to https://github.com/spotDL/spotify-downloader/issues/2035
It seems that port 8800 is ending up being hard-coded in the javascript somehow.  You can see this if you search for "8800" in https://github.com/spotDL/web-ui/blob/master/dist/assets/index-CGxZV3ZT.js
This results in the UI not being able to contact the API if they are served on a port beisdes 8800 (e.g., docker setups or behind a reverse proxy like in my case).
It seems like that chunk of code matches with this config, but I'm not sure how that's turning into 8800 -- maybe vite is doing some smarts to transform this?: https://github.com/spotDL/web-ui/blob/master/src/config.js
I tried to look a little at why vite might do this, but didn't find much.

I did find this in the vite documentation -- so it seems like maybe that define for process.env might be what's causing the values to be statically replaced.  It's kind of interesting that it finds the values, though.  Evidently it just strips out the whole expression and replaces it statically?

In library mode, all import.meta.env.* usage are statically replaced when building for production. However, process.env.* usage are not, so that consumers of your library can dynamically change it. If this is undesirable, you can use define: { 'process.env.NODE_ENV': '"production"' } for example to statically replace them, or use esm-env for better compatibility with bundlers and runtimes.

Thanks for you research! Hopefully they can fix/revert this in the next update as I also use it behind a reverse proxy...

It looks like maybe this has been fixed in the dev branch?
https://github.com/spotDL/spotify-downloader/issues/2035#issuecomment-2166849913

@jspiers you could be right, but it looks like master was updated to use vite version 5.x about 4 months ago (package.json) but dev has only been updated to a 4.x version, which makes me think maybe the issue has only ever existed in master.  I'm no expert with vite, though, and still don't understand exactly how the value gets hardcoded, so it's hard to say for sure without playing with the project a bit.

Ah ok. I never actually looked into the differences between dev and master... all I know is that my docker/traefik spotdl setup only works when I use the dev version of the web-ui (i.e. v4.2.0 docker image). I was hopeful dev was ahead of master in this respect, but if it's using an older version of vite then I guess not. I know nothing about vite myself.

I brought down the project and built it and the resulting minified javascript is almost identical to the one checked in, except that a few identifiers are different (just that minification decided on names differently for some reason, I think) and that the port is hard-coded.
@phcreery - seems like something was different for the build that produced the file in dist/ (just tagging you because your user is on the commit).  Am wondering if just cleaning the project and rebuilding would produce the same results for you, or if maybe there is a certain way the project should be built that I'm not doing (I'm just running npm run build).  What do you think?


Show modes

Show modes (such as No Fail or Static Lighting) in the overlay. Perhaps under performance stats or in the beatmap information.

I can see showing No Fail, but why would you want to show things such as Static Lighting? I know a lot of streamers (me included) have static lighting on all the time in order to have a better viewing experience. It would be unnecessary to show in the overlay.


Generate a Synthetic Test Set Program has issue

[ ] I have checked the documentation and related resources and couldn't resolve my bug.
Describe the bug
I have used the code to generate Synthetic Test set for my document. But Somehow it is going to infinite loop
Ragas version:  latest
Python version: 3.11.0
import os
from langchain_community.document_loaders import DirectoryLoader
from ragas.testset.generator import TestsetGenerator
from ragas.testset.evolutions import simple, reasoning, multi_context
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
from ragas.run_config import RunConfig
os.environ["OPENAI_API_KEY"] = "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"
loader = DirectoryLoader("docs\Ltsa_Help_rags")
documents = loader.load()
for document in documents:
document.metadata['filename'] = document.metadata['source']
print(document.metadata['filename'] )
generator_llm = ChatOpenAI(model="gpt-3.5-turbo-16k")
critic_llm = ChatOpenAI(model="gpt-4")
embeddings = OpenAIEmbeddings()
print(generator_llm.invoke("Hi How are you?"))
generator = TestsetGenerator.from_langchain(
generator_llm,
critic_llm,
embeddings
)
k = RunConfig()
k.max_retries = 1
k.max_workers = 1
k.timeout = 10
k.max_wait = 10
print(k)
testset = generator.generate_with_langchain_docs(documents, test_size=2,distributions={simple: 1.0},with_debugging_logs=True,run_config = k)
df = testset.to_pandas()
df.to_csv("Sytentic_test.csv")
Error trace

Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

Hey @Kunal56377 , the problem here is that the node_filter giving score less than required threshold which is 7.5. Would recommend modifying node_filter to suit your needs ( 7 or less) . You can see the parameter here


set header Content-Type to JSON

I set the content-type of the header to display the response as a JSON instead of just as a pre text.

 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.

@geekyahmed Do well to Sign the Contributor License Agreement Contributor License Agreement and click on recheck to make your PR merge-able.

Thanks for the tip
On Wed, Dec 23, 2020, 22:29 Ekikere-Abasi Michael (Nzaki Michael) <
<EMAIL_ADDRESS>wrote:

@geekyahmed https://github.com/geekyahmed Do well to Sign the
Contributor License Agreement Contributor License Agreement
https://cla-assistant.io/twitter/cli-guide.js?pullRequest=199 and click
on recheck
https://cla-assistant.io/check/twitter/cli-guide.js?pullRequest=199 to
make your PR merge-able.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/twitter/cli-guide.js/pull/199#issuecomment-750481021,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKDCSX3OQRZAGYHYKCVXDDDSWJOKVANCNFSM4RGHVKHA
.


False positive of SA1601 on windows forms - if documentation build XML isn't eanbled.

Just create a new windows forms project under VS2015 and add the StyleCop.Analyzers analyzer.
Resolve all warnings in the IDE by adaption of the code - but do not activate the documentation build.
If you now build the project you will face a additional warning like the following in the build output:
1>C:\temp\TestStyleCopAnalyzers\TestStyleCopAnalyzers\Form1.cs(14,24,14,29): warning SA1601: Partial elements must be documented
Also it seems that the missing documentation build raises a lot of other false positives.
If this is a know behavior please close this issue immediately - and maybe add this fact to the documentation more prominent.

The code behind class is a partial class so I think the reported diagnostic is correct. Is the original stylecop behaving differently?

Many analyzers which examine documentation comments naturally do not run when documentation output is disabled. In cases where XML documentation output is disabled, the only reported diagnostic for documentation comments should be SA1652 (EnableXmlDocumentationOutput).

Grabbed


Enable Microsoft Defender for Containers page doesn't mention the role required to enable the plan and sub-plans

[Enter feedback here]
As per the title, this page should be explicit with the Azure role assignment required to enable both the plan (e.g Owner, Contributor or Security Admin) and sub-plan (Owner only)
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 13d88292-f6c0-d866-bae0-45f21abe8e23
Version Independent ID: 5460391f-f671-0590-a437-b7eddae63ea3
Content: How to enable Microsoft Defender for Containers in Microsoft Defender for Cloud
Content Source: articles/defender-for-cloud/defender-for-containers-enable.md
Service: defender-for-cloud
GitHub Login: @bmansheim
Microsoft Alias: benmansheim

@TitaniumDave
Thanks for your feedback! We will investigate and update as appropriate.

@TitaniumDave
For you information Please refer the below in documented link
https://techcommunity.microsoft.com/t5/microsoft-defender-for-cloud/microsoft-defender-for-cloud-poc-series-microsoft-defender-for/ba-p/3064644#:~:text=To enable Microsoft Defender for Containers%2C you will need the Security Admin role. To enable this plan%2C you simply switch the toggle from “off” to “on” as pictured below.

Hi @ManoharLakkoju-MSFT,
Unfortunately that page is incorrect (as is the picture under the header Preparation), Security Admin is definitely not the only permission required to enable Defender for Containers and the associated sub-plans in MSDC , see below as an example where I have PIMed to Security Admin at the Tenant Root Group:

@TitaniumDave
I'm going to assign this to the document author so they can take a look at it accordingly.
@bmansheim
Can you please check and add your comments on this doc update request as applicable.


error from no composer file

If your project has no composer.json when you run check or deploy it gives a error that it "cannot find the composer package manager" this reads as though it cannot find composer on the server not that the json file is missing

This is because default strategy for dependency management is Polyglot. You either need to disable dependency management or set it to only one you need (e.g. npm).


[1pt] Setup

Repository Created.
Set Dev Branch.
Add Liners.
Update Readme.md
Add MIT License File.

Let's use the Rails 7.1.1 not the 7.0.8. There is a good change.


Dashed vertical lines for eras

The original python's vertical lines for eras were dashed. Not sure of svgjs's ability to do this mirroring svgwrite.

#1

Don't care, won't fix


Develop filtering functionality on my resources page

My Resource Page Notes
URL: http://hydroshare.org/resources

Displayed when a user first logs in

Note: Change this to the user's Dashboard when Dashboard is complete as part of a subsequent release)

Tabular list of all resources categorized by at least the following categories:

Created by me
Shared with me
Favorites
Published by me

Columns in the table should be sortable
Each item in the table should include a link to a landing page for each resource (e.g., the Title is a link)
Listed items may be organized into folders (as implemented in Google docs)
Each item in the list should include a thumbnail/icon showing the resource type
Button functionality on the page includes:

Create - Links to create a new resource page(s)
Delete - deletes selected resources. Clicking this button initiates a pop-up verifing that they want to delete the selected items. If any of the items have been published, a warning pops up alerting the user that published resources cannot be deleted.
Share  - links to the sharing page/pop-up window. All sharing settings are applied to all selected resources
Export - Links to export page/pop-up that alerts the user that multiple selected Resources will be zipped into a single download Zip file
Filter Resources - Filters the list of resources using the following criteria:

Keyword(s)
Resource type(s)
Date(s)
Others???
Additional filters would show up if the user clicks on the Show Filters link

I've posted this PR as an in-progress state. I'm cleaning a few things up, still. Other priorities and meetings have delayed the work, but it is still on track for 1.5.1. Here's what I'm still cleaning up and expecting this week:

[ ] Improve the look of the search modules
[ ] Improve the arrow up/down through suggested options
[ ] More testing against the owner/edit/view permission filters

My goal is to clean this up and post a final PR for this first iteration tomorrow. I would like to get this pushed out supporting resource type and full text search, and then to add the other search types/fields in a follow up PR with a clear list of exactly the search options that must be supported for NFIE.

I'd like to get some code review feedback on this PR if anyone can give it a look today.

I had some delaying difficulties updating this branch from develop but I've now resolved those and would like to submit this for merge

Labeled as Review Me Please in case @pkdash or @hyi want to have a look prior to merging into the develop branch.  I'll merge this by COB today withstanding any dialogue that would deem otherwise.

@mjstealey Did not find any issues. +1

Looks good to me. +1


Hi, Mads from SchemaStore.org here

Hi Gerry,
I don't know how else to contact you, so this is my best attempt :)
Just wanted to thank you so much for all your work on SchemaStore.org. I've wanted to reach out to you several times, but never thought of using GitHub issues, so this is the first time I'm successful (hopefully). My email is madsk at microsoft com. Please drop me a line if you don't mind.

@madskristensen
Already sent an email. Let me know if you don't receive it due to spam filter.


Todos won't work in Safari 7.1.7

I was exploring react-flux-ES2015 to start development with them and found este. However Todos in example app won't work in Safari 7.1.7 (OSX Mavericks) although it does in Chrome 44, so I kind of have my doubts about this stack. Although I'm ready to give up browser compatibility with older IEs, this is not OK.
There is an error in console in case it prevents loading/running some of the JS:
ReferenceError: Can't find variable: performance

Thank you for reporting this issue. It's minor thing, I will fix it now. Btw, Este is about shared the best patterns and practiques. Read the code, learn. Then decide ;)

Btw, testing with browser stack across all browsers and platforms is planned as well.

Meanwhile, use Chrome or comment out https://github.com/este/este/blob/4114bf03ffa4bd56d43fb5d93f5f06a4c58e2448/src/client/lib/flux/decorate.js#L41

https://gist.github.com/paulirish/5438650 ?


镜像找不到啊，好绝望

好多国外的镜像dockerhub也找不到，真的实在是找不到，官方能把镜像打包到官方的openfunction 镜像仓库吗

Transfer this issue to main repo and please use English for GitHub communication, Thanks

作为一个中国人说中文不是很正常吗？拜托有点中文自信好吗？
------------------ 原始邮件 ------------------
发件人:                                                                                "OpenFunction/OpenFunction"                                                                                @.>;
发送时间: 2021年12月8日(星期三) 中午11:00
@.>;
<EMAIL_ADDRESS>主题: Re: [OpenFunction/OpenFunction] 镜像找不到啊，好绝望 (Issue #172)
Transfer this issue to main repo and please use English for GitHub communication, Thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

This project aims to attract participants from all over the world, so English is better :)


Updating SectionList Snack Examples with Functional and Class Based Component

#1579
This PR Contains new Function + Class Component examples for SectionList

This is good, @gedeagas! Is the API also up to date?

@rachelnabors Let me double check this one.


Added backward support for params in post data

Added backward support for params in post data
this will send post data as simple form data params
See Postman echo
curl --location --request POST "https://postman-echo.com/post" \
  --data "foo1=bar1&foo2=bar2"

very cool.
Looks like this starts to address #7 also

Yes that my next step


Updated XSockets code for realtime .NET sample

Thanks for this @uffebjorklund. One thing I need to do is go through the presentation and see what points I'm trying to highlight with the XSockets example. It may have been specific communication patterns and I'm not sure if this changes those.
Will let you know.

Thanks @leggetter - It might change things if you were showing simple messaging with XSockets since I changed it to RPC/RMI. Let me know if you I can help in any way. If you want to show different comm-patterns I can write an example showing simple, pub/sub, rpc/rmi and datasync with XSockets.

@uffebjorklund - I think I'm going to leave as-is for DevWeek. I'm going to demonstrate RMI/RPC with XSockets and PubSub. The current example does that:

Fetching initial messagings
New messages via PubSub

Cheers for the PR though.

Understood! It feels weird to deserialize the data in OnMessage instead of having a method that received the expected type (or have several parameters). It's like you allow anything to be sent in, but then inside you expect it to be of a certain type. But that is of course up to you.

It feels weird to deserialize the data in OnMessage instead of having a method that received the expected type (or have several parameters)

Completely agree. I'd much prefer the code to be:
       public async Task ChatMessage(string username, string text)
        {
            var messageModel = this.repo.CreateMessage(username, text);
            await this.PublishToAll(messageModel, "chat");
        }

So a PR changing that would be super-awesome! Although is there a way of getting the "chat" value from a property on something?


added covers annotation to tests

@Maks3w
Added covers but the coverage has decreased a lot.

Closing, as changes on the develop branch make it unmergeable short-term. If you are interested in doing this, please create a new PR once develop has been merged to master.
Thanks!


URI.resolve can throw exception

We are using the library for dispatching webhook events, one of the endpoints returned a redirect response with an invalid location (location with spaces) which throw an exception and crashed the app. We are using version 3.3.15 with httpclient-backend-zio, stack trace below:
java.lang.IllegalArgumentException: Illegal character in path at index 2: go away !!! (/)
? 	at java.base/java.net.URI.create(URI.java:883)
? 	at java.base/java.net.URI.resolve(URI.java:1066)
? 	at sttp.client3.FollowRedirectsBackend.followRedirect(FollowRedirectsBackend.scala:61)
? 	at sttp.client3.FollowRedirectsBackend.$anonfun$followRedirect$2(FollowRedirectsBackend.scala:48)
? 	at scala.Option.fold(Option.scala:263)
? 	at sttp.client3.FollowRedirectsBackend.followRedirect(FollowRedirectsBackend.scala:44)
? 	at sttp.client3.FollowRedirectsBackend.$anonfun$sendWithCounter$1(FollowRedirectsBackend.scala:29)
? 	at zio.internal.FiberContext.evaluateNow(FiberContext.scala:914)
? 	at zio.internal.FiberContext.$anonfun$evaluateLater$1(FiberContext.scala:776)
? 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
? 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
? 	at java.base/java.lang.Thread.run(Thread.java:834)
? Caused by: java.net.URISyntaxException: Illegal character in path at index 2: go away !!! (/)
? 	at java.base/java.net.URI$Parser.fail(URI.java:2913)
? 	at java.base/java.net.URI$Parser.checkChars(URI.java:3084)
? 	at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3166)
? 	at java.base/java.net.URI$Parser.parse(URI.java:3125)
? 	at java.base/java.net.URI.<init>(URI.java:600)
? 	at java.base/java.net.URI.create(URI.java:881)

I think the call to resolve should be inside a try expression or the location has first to be validated.

Can you provide an example to reproduce the problem? Maybe resolve should return a Try, or maybe we should improve resolve itself :)

yes, try the following:
import sttp.client3._
import sttp.client3.httpclient.zio.HttpClientZioBackend

object MyApp extends zio.App {
  override def run(args: List[String]) = {
    val request = basicRequest
      .post(uri"https://in.gr")
      .body("""{"a": "b"}""")
      .contentType("application/json")

    HttpClientZioBackend.managed().use(_.send(request))
  }
}

Even if we validate the location, I think the only thing that we can do is return a failed effect (which is done above). Or do you have some other ideas?

I agree, the problem is that at a moment it doesn't return a failed effect but failed with an exception that the ZIO backend doesn't handle. There is no way to catch it because it is thrown within the ZIO loop.

See: https://github.com/softwaremill/sttp/pull/1185, should fix the problem

Thank you


Fixed monitoring statement for compatibility with CrateDB 5.2

CrateDB 5.2 needs AVG(ended::bigint - started::bigint) instead of AVG(ended - started).

What about this?
SELECT CURRENT_TIMESTAMP AS last_timestamp


StableStudio

StableStudio is MIT licensed: https://github.com/Stability-AI/StableStudio
Emad Mostaque on Twitter:

We are getting ready to open source dream studio (stable studio!) plus a bunch of other stuff and build language models and others in the open.
I think the emergent nature of open source versus directed (think bitcoin core) is v interesting, it feels we are missing a meta layer

So, depending on the license, this might be a very nice web-ui for SD.

ImaginAIry is MIT licensed: "Run API server and StableStudio web interface (alpha)"

Easiest way to run StableStudio with local generation: imaginAIry 13

https://github.com/Stability-AI/StableStudio/tree/main#-quick-start:

You'll need to have Node.js and Yarn installed. Then run the following commands to install dependencies and launch StableStudio. [git, cd, yarn, yarn dev]

And make sure that's a v3 yarn, not a v1 yarn that is installed.


building rocksdb part of ArangoDB (3.1.23 & 3.1.24) fails with CLang on Manjaro

my environment running ArangoDB
I'm using the latest ArangoDB of the respective release series:

[ ] 2.8
[ ] 3.0
[X] 3.1
[ ] 3.2 Beta1
[ ] self-compiled devel branch

On this operating system:

[ ] DCOS on

[ ] AWS
[ ] Azure
[ ] own infrastructure

[ ] Linux

[ ] Debian .deb
[ ] Ubuntu .deb
[ ] SUSE   .rpm
[ ] RedHat .rpm
[ ] Fedora .rpm
[ ] Gentoo
[ ] docker - official docker library
[X] other: source 3.1.23 & 3.1.24 (Manjaro)

[ ] Windows, version:
[ ] MacOS, version:

this is an installation-related issue:
clang version: 4.0.1
I used following cmake command:
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang
Scanning dependencies of target rocksdblib
[ 17%] Building CXX object 3rdParty/rocksdb/rocksdb/CMakeFiles/rocksdblib.dir/db/auto_roll_logger.cc.o
In file included from /opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/db/auto_roll_logger.cc:6:
In file included from /opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/db/auto_roll_logger.h:15:
In file included from /opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/port/util_logger.h:18:
In file included from /opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/util/posix_logger.h:28:
/opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/util/sync_point.h:75:25: error: no type named 'function' in namespace 'std'
std::function<void(void*)> callback);
/opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/util/sync_point.h:75:33: error: expected ')'
std::function<void(void*)> callback);
^
/opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/util/sync_point.h:74:19: note: to match this '('
void SetCallBack(const std::string point,
^
/opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/util/sync_point.h:102:40: error: no member named 'function' in namespace 'std'
std::unordered_map<std::string, std::function<void(void*)> > callbacks_;
~~~~~^
/opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/util/sync_point.h:102:58: error: expected '(' for function-style cast or type construction
std::unordered_map<std::string, std::function<void(void*)> > callbacks_;
~~~~^
/opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/util/sync_point.h:102:59: error: expected expression
std::unordered_map<std::string, std::function<void(void*)> > callbacks_;
^
/opt/ArangoDB-3.1.24/3rdParty/rocksdb/rocksdb/util/sync_point.h:102:62: error: expected member name or ';' after declaration specifiers
std::unordered_map<std::string, std::function<void(void*)> > callbacks_;
^
6 errors generated.
make[2]: *** [3rdParty/rocksdb/rocksdb/CMakeFiles/rocksdblib.dir/build.make:63: 3rdParty/rocksdb/rocksdb/CMakeFiles/rocksdblib.dir/db/auto_roll_logger.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:843: 3rdParty/rocksdb/rocksdb/CMakeFiles/rocksdblib.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

Hi bissei,
compiling devel with the following command works fine for me on debian sid:
CXX=/usr/bin/clang++-6.0 CC=/usr/bin/clang-6.0 cmake -DCMAKE_BUILD_TYPE=Release ../arangodb/
make -j $(nproc)

Please make sure to use a compiler versions that have been been up to date when we have been actively developing on that branch you want to compile. And always set the environment as shown in the command above. Note that not all parts of the build use the CMake build-system generator. So it could happen that the correct compiler is not passed to sub-projects.
I have been able to reproduce the issue with 3.1 it looks like gcc and clangs standard template libraries might use different includes. I was able to compile rocksdb by adding an additional #include <functional> to the header file.
Kind Regards
Jan


(Android) Sometimes the error - Failed to load dynamic library (dlopen failed: library "libsystemclock.so" not found) is coming

This happens when I try to call SystemClock.elapsedRealtime() on app start. It usually happens when I try to run the app in debug mode on an Android device after the device has been restarted. In subsequent runs it goes away. I haven't found a way to reliably replicate it, but it happens now and then. Probably usually after I get back to work the next morning, the first run throws up this error. Hot restarting the app does not fix it. Only upon stopping and running it again, it goes away.
Would you have any idea of why this could happen?
I feel it is only happening on an older android device I have - running Android 6.0.1 (API 23)
Sorry about the sparse details, but that's all I could notice.

The issue of opening native so files often occurs in Android(Especially lower Android versions), so I am not very clear about the real cause of this problem.
But after search. It seems that some other library which uses ffi contains the same issues
here and luckly it has been fixed.
https://github.com/simolus3/moor/issues/420
according https://github.com/simolus3/moor/issues/420#issuecomment-624588722 , it maybe useful.

I have just pushed a commit 451c2c4d4117c5b3ab6318218ad90cc8bce22387 to dev branch. You can try this by use pub git package
If this problem still exists, may I could do nothing to solve this problem completely.

cool. I'll try this and update if I see this error again.

Just saw your commit, I was under the impression that the .so file is loaded from the underlying OS, and not from the APK. So how does this help?

in old android system, the Android can load .so files in apk directly. So when Android installs the application, it will export its native library to the lib directory.
But I am not sure if this solution will solve your problem.

Tried the dev branch, I'm getting a compile error :
Running Gradle task 'assembleStagingDebug'...
../../../.pub-cache/git/system_clock-451c2c4d4117c5b3ab6318218ad90cc8bce22387/lib/system_clock.dart:23:28: Error: Method not found: 'max'.
        final endOfAppId = max(appIdAsBytes.indexOf(0), 0);

Any updates on this?
Adding import 'dart:math'; to https://github.com/boyan01/system_clock/commit/451c2c4d4117c5b3ab6318218ad90cc8bce22387 fixes the issue.

Really! That is weird. Do you have any idea why that makes it work. Why did it occur to you to try that?
Another observation I've had while using this package (I'm still using 0.7.0 and haven't tried this patch on dev branch):
If you include a call to SystemClock right as the first line in main.dart, this issue does not seem to happen. Eg:
void main() async {
  // doing this here to load the .so file in android as soon as possible. this
  // seems to make it work more reliably on older android versions.
  var elapsedRealtime = SystemClock.elapsedRealtime();

  WidgetsFlutterBinding.ensureInitialized();
...

On my devices I have never seen this issue to happen again after doing this change. Previously I was calling it only in some widgets based on business logic. I am still calling it in those widgets, but after it has been called once in the beginning, it seems to work the rest of the times.

"Missing import" is kind of an obvious fix.
I tried to put a call to SystemClock as the first line of main but the issue is still there.

"Missing import" is kind of an obvious fix.

This is my mistake. I didn’t check it carefully when I submitted it.

I tried to put a call to SystemClock as the first line of main but the issue is still there.

Does the dev branch worked for you? If it works, I will release a new version.

It works yeah

aah ok. I got confused, I thought adding the import somehow makes the dynamic library issue disappear on v0.7.0
I'll also upgrade and check


Reference save data for intro text.

What feature do you want to get added on the base engine?
So like you could have a intro text that pulls from a setup .Txt save file that clowns you for however many times you've died for example, something that you could save with a Lua script.
To test your sight, and reliability, please select the option of what should NOT be requested.
Stage Editor, 6K+ support, and winning icons.

What?

What kind of info you need man?
I know you can make a .Txt that sets custom intro texts, and that there is a function to create your own save data files that you can save to via Lua scripts. If I could pull a number from that save data to use in an intro texts, like:
54 deaths?
Dude do better
Tell me what's unclear and I'll try to explain.

I understand now what you meant, that's not gonna happen though.

Aww damn...


Improve developer experience on translation changes

Now the translations will get reloaded when there is a hot change while in dev mode, I also fixed an small typo on the key used for a t()

Please rebase.

rebased :p


Custom transition support

Add support for multiple types of show/hide transition animation.

Closing for now - will reopen if demand is there for feature.


Publish package with Node 16 support to NPM

This plugin works really well - exactly what we needed!
Only issue we had was that our CI build setup is still running on Node 16, and this has been causing some issues.

@dstaver Could you check again now, it's been published.

Closing, let me know if it's still an issue.


Date Format for XAxis

How to date format same as trading view in klinechart
Below is sample date when zoom out

Below is date format when zoom in :-

I tried to use customApi.formatDate function but that is showing same format when zoom in and out, all the time complete date is being shown.
How to provide same behavior as tracing view charts for date on XAxis

Supported in v10.