include basisOfRecord

As shared by Shelley:
[...] One thing that I’d personally want to know is if the data is observation or specimen based – not sure how important that would be for others, and with a bit of knowledge it could be guessed at (i.e. ebird or inaturalist=observation). Just a thought. [...]

Shelley also expressed an interest in filtering by basisOfRecord in addition to exposing the field in the search results.


Please add proxy auth

All my proxies with username and password, please add support for proxies like this

+1


Make sure citation is happening with official BL document actions

https://github.com/projectblacklight/blacklight/wiki/Adding-new-document-actions

This is actually undesirable, since it would make it more difficult to add citation styles


Utility panics if searching too many files

This utility panics if searching through too many files.
panic: open foo/bar/file.txt: too many open files

I was running pt "foo" * on a directory containing about 30,890 files (according to find . -type f|wc -l). ack, however, can handle this workload fine.
I'm running OS X 10.10.5 with pt version 1.7.8.

You can work around this limitation in macOS.  Default limits:
kern.maxfiles: 12288
kern.maxfilesperproc: 10240

Increase the limits:
echo kern.maxfiles=65536 >> /etc/sysctl.conf
echo kern.maxfilesperproc=65536 >> /etc/sysctl.conf


After 7.1.5 opening table list on schema is very slow for Db2

System information:

Operating system (distribution) and version - Linux Opensuse tumbleweed
DBeaver version - any version after 7.1.4 - this behaviour appeared in 7.1.5

Connection specification:

Database name and version : Db2 11.5
Driver name - db2
Do you use tunnels or proxies (SSH, SOCKS, etc)?  No

Describe the problem you're observing:
After upgrade to 7.1.5 and later opening table list on schema is very slow for Db2. It lasts for couple of minutes.
In version before this was not the case. It looks like this was added with:
Database navigator: Database size statistics was added for PostgreSQL, MySQL, SQL Server, DB2
Steps to reproduce, if exist:
Include any warning/errors/backtraces from the logs
Dbeaver is executing 2 queries in this activity:
SELECT *  FROM SYSCAT.TABLES WHERE TABSCHEMA = ?   AND TYPE IN ('G','H','L','T','U') ORDER BY TABNAME WITH UR
This one is fast.
And this one is slow:
SELECT TABNAME, SUM(DATA_OBJECT_P_SIZE + INDEX_OBJECT_P_SIZE + LONG_OBJECT_P_SIZE + LOB_OBJECT_P_SIZE + XML_OBJECT_P_SIZE) AS TOTAL_SIZE_IN_KB FROM SYSIBMADM.ADMINTABINFO WHERE TABSCHEMA =? GROUP BY TABNAME
I think there is a problem with ADMINTABINFO, something similar is documented here https://www.ibm.com/support/pages/db2-9x-query-against-sysibmadmadmintabinfo-too-slow

could you try if it reproducible against 7.2.3?

Same thing in all versions from 7.1.5 to 7.2.3. I have tired them all

Hello @slavus
I do not see other good table statistics reading solutions. Perhaps you have suggestions?
Also you can disable reading of table statistic in connection view settings:

Statistics read can be slow for big databases. There is no good solution for everyone.
It can be disabled via context menu or in the preferences.
If you work with big prodaction databases then probably disabling statistics read is a good idea.


[Bug] resolve returns None on second call with maximum_ttl=0

Calling resolve 2 times in a row with maximum_ttl(0) results in None consistently on the second call. See example.
    #[test]
    fn ttl_0_test() {
        let uri = "7fmjpcuuzf54hw18bsgi3zihzyh4awseeuq5tmojefaezjbd64cy";
        let pubkey: PublicKey = uri.try_into().unwrap();
        let client = PkarrClientBuilder::default().maximum_ttl(0).build().unwrap();

        // First Call
        let value = client.resolve(&pubkey);
        match value.unwrap() {
            Some(val) => println!("Found1!"),
            None => println!("None1"),
        }
        sleep(Duration::from_secs(1));

        // Second Call
        let value = client.resolve(&pubkey);
        match value.unwrap() {
            Some(val) => println!("Found2!"),
            None => println!("None2"),
        }

    }

Result is always the same:
Found1!
None2

pkarr v2.2.0

If it's fixed on v3 then all good.

Ok, need to reopen this issue. pkdns doesn't work without it. As soon as the cached value is expired, pkarr always returns None. I need a fix for v2.2.0.


feat: update gradle to 8.5

There was a report that at the moment you can't compile under Java 21 due to the lack of gradle support. Upgrade gradle. I don't know whether this fixes that problem.
Also update the plugins whose release notes explicitly specified they were adding gradle 8 support to the latest versions.
Remove include('app') from settings.gradle as there is no such directory.
There are a series of warnings in the build that I don't know gradle well enough to fix, though I can identify the problematic lines and potential changes:
Build file '/home/wsl/thirdparty/kolmafia/build.gradle': line 20
The org.gradle.api.plugins.ApplicationPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.5/userguide/upgrading_version_8.html#application_convention_deprecation
Build file '/home/wsl/thirdparty/kolmafia/build.gradle': line 20
The org.gradle.api.plugins.Convention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.5/userguide/upgrading_version_8.html#deprecated_access_to_conventions
Build file '/home/wsl/thirdparty/kolmafia/build.gradle': line 182
Allowed usage is changing for configuration ':implementation', resolvable was false and is now true. Ideally, usage should be fixed upon creation. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Usage should be fixed upon creation. Consult the upgrading guide for further information: https://docs.gradle.org/8.5/userguide/upgrading_version_8.html#configurations_allowed_usage
Build file '/home/wsl/thirdparty/kolmafia/build.gradle': line 301
The org.gradle.api.plugins.ApplicationPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.5/userguide/upgrading_version_8.html#application_convention_deprecation
Build file '/home/wsl/thirdparty/kolmafia/build.gradle': line 301
The org.gradle.api.plugins.Convention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.5/userguide/upgrading_version_8.html#deprecated_access_to_conventions

I ran this locally on Windows 10 and Java 17.  Everything I tried worked to my satisfaction and it might actually have been a touch faster when executing.  There were a number of messages about "Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.".  I checked a couple of them and at the very least we will have to rework the build so that it declares plugins differently.  But I think things can be deferred until we want to go to Gradle 9.  I'm OK with this especially if it makes life easier for those pioneers who are using Java 21.


AudioPlayer buffer doesn't change when track replaced with same length

Strange logic found here in method updateBuffer(force: Bool = false)
        let updateNeeded = force ||
            buffer == nil ||
            startFrame != startingFrame ||
            endFrame != endingFrame

        guard updateNeeded else {
            // Log("Data is unchanged, no buffer update is needed")
            return
        }

Player can't update when new track has the same duration as previous.

Agreed, removed.


System.ArgumentException: Путь содержит недопустимые знаки. (translation: Path contains invalid characters.)

Exporting stops at ~50% and then next error occures:
Output log:
Import: Game file 'resources.assets' has been found
Import: Asset collection has versions probably incompatible with each other. Here they are:
Import: 2018.2.0b9
Import: 2018.2.20f1
Import: System.ArgumentException: Путь содержит недопустимые знаки. (translation: Path contains invalid characters.)
в System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
в System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[] str)
в System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
в System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
в System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
в uTinyRipper.FileUtils.GetUniqueName(String dirPath, String fileName, Int32 maxNameLength)
в uTinyRipper.AssetExporters.ExportCollection.GetUniqueFileName(ISerializedFile file, Object asset, String dirPath)
в uTinyRipper.AssetExporters.AssetExportCollection.Export(ProjectAssetContainer container, String dirPath)
в uTinyRipper.AssetExporters.ProjectExporter.Export(String path, FileCollection fileCollection, IEnumerable1 assets, ExportOptions options)    в uTinyRipper.GameStructure.Export(String exportPath, Func2 filter)
в uTinyRipperGUI.MainWindow.ExportFiles(Object data)
I've attached the file which i tried to export, and part of files that got exported:
files.zip

duplicate https://github.com/mafaca/UtinyRipper/issues/300

I can't reproduce this issue with the file you attached. Please upload more game files.

https://dropmefiles.com/l3D9w

I still can't reproduce it. Ripper normally extract all files. Do you have long path support enabled on your OS? And do you have this issue if you extract files in the root of disc (in c:/ or d:/) ?

Tried to extract it in the root, didnt help, error is the same; i cant enable long path support - im on win 7, i also checked path size, and it doesnt exceeds 260 symbols. Anyways, thank you for your work.

Solution https://github.com/mafaca/UtinyRipper/issues/304


docs: Add Cloud Logging dashboards for new metric features

Description
Changes proposed in this pull request (what was done and why):

Added dashboard for node metrics (https://github.com/kyma-project/telemetry-manager/issues/1300)
Added Dashboard for telemetry status (https://github.com/kyma-project/telemetry-manager/issues/1294)
Added alert rule for telemetry status (https://github.com/kyma-project/telemetry-manager/issues/1294)

Changes refer to particular issues, PRs or documents:

Traceability

[ ] The PR is linked to a GitHub issue.
[ ] The follow-up issues (if any) are linked in the Related Issues section.
[ ] If the change is user-facing, the documentation has been adjusted.
[ ] If a CRD is changed, the corresponding Busola ConfigMap has been adjusted.
[ ] The feature is unit-tested.
[ ] The feature is e2e-tested.

I'll adjust the docs in DITA once we're ready.
Does this have to happen together with the 1.25 release?

wait, did this now move to 1.26 milestone?
Then the Help Portal page mustn't be updated before 1.26 release. I'll have to hide the changes till then.


Adopting a general approach to spatial feature data

There are two parts to this issue:

How do we assign identifiers to specific feature types?
How do we link attributes to features?

From the working group discussion 8 June.
The formats commonly used are GeoJSON and ESRI. Do we use GeoJSON as our starting format for implementation?
A couple of other points that were raised:

The notation of the co-ordinates being used should be defined.
The projection format should also be included in the meta data.

A starting point would be to design objects that could be included within the "properties" of a GeoJSON feature object. Such objects could also stand on their own (for non-spatial use, or combined with a different geographic interchange format).
For those wishing to use GeoJSON (preference of much of the group), we noted that the only supported coordinate system under the IETF-standardised RFC-7946 is WGS84 lat-long.

Possibly outside of MVP for a general approach, but how to define quality assurance of the objects created? Possibly for MetaDataType, but is there a place inside the properties to link to a metadata profile or provide a key element that describes the data's quality? Why it was made, what the source of the data was?
With the increase in precision agriculture and detailed mapping, knowing about the data behind the decisions is important, and helps to understand business risks and opportunities. There's a big difference between object of the slope class of NZLRI, and that generated from a 1m Digital Elevation Model of LiDAR. Even then, knowing the source of the terrain model will help understand any noise or issues with the data, if there was terrain correction applied, and so on. Understanding the collection and purpose of the object will ensure the best data is used for decision making.
OK, there's the ANZLIC Metadata Profile, but it may be too much work for the casual user to create, or to link to. But a feature I put effort into is the Abstract. It’s a free text entry, that allows key words to describe the context of the data layer. I’ve also found the field Lineage extremely useful to convey information about how the data came to be, why it was collected, and any data statements I feel are needed. I do note there’s other places in the ANZLIC Guidelines about where to put data quality … but IMHO the abstract and lineage about the data collection will be useful for future users of the data.
[As an aside, there's image quality statements that may be of use, but as they're not easily human-readable it could be difficult to understand what the 0s an 1s mean].


⚠ Bofrost.com has degraded performance

In c719bd2, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 1041 ms

Resolved: Bofrost.com performance has improved in 80b6771 after 6 minutes.


Composite parser

This adds partial support for composite rois. At the moment it only works with composites made of basic line segments, not curved lines. Also the return type is a list of numpy arrays of points, not a single numpy array...

Coverage decreased (-14.5%) to 84.404% when pulling 3508b599798072d7165ee93ba7d866a95f835475 on AndrewMicallef:composite_parser into 787fca2e90e82d7c728a5c166db810839eea4fed on tdsmith:master.

Coverage decreased (-14.5%) to 84.404% when pulling c2c8f5b on AndrewMicallef:composite_parser into 787fca2 on tdsmith:master.

What do I need to do to fix this? Any hints?


Backend Development

Score: 2.7/3 (GRADED BY: Don Tran)
Requirements

[x] If Else and Booleans
[x] Deployed Springboot Project on AWS
[x] Focus/Habits

Score 2.7+/3
Requirements

[x] If Else and Booleans
[x] Deployed Springboot Project on AWS
[x] Blog on AWS
[x] Focus/Habits


Bullet optimization

Make gun only have 1 emitter PER bullet-effect instead of 1 per bullet in the scene. Eg.: 1 particle emitter per effect which then render every bullet.
We can have 1 million particles, but we can't have 1 million particle emitters.
Bad performance:

Good performance:

See #76

Closed due to similarity of implemntation to #76


speaker-diarization需要哪个版本的Funasr，第六步无法输出

使用了最新的Funasr==1.0.4，需要补充model_revision和修改vad_pipeline(wpath)，但是在执行第六步的时候，会出现这样的报错，换成旧的0.8.8也是无法执行
Stage 1: Prepare input wavs...
--2024-01-30 18:07:32--  https://modelscope.cn/api/v1/models/damo/speech_eres2net-large_speaker-diarization_common/repo?Revision=master&FilePath=examples/example.wav
正在解析主机 modelscope.cn (modelscope.cn)... <IP_ADDRESS>
正在连接 modelscope.cn (modelscope.cn)|<IP_ADDRESS>|:443... 已连接。
已发出 HTTP 请求，正在等待回应... 200 OK
长度：30720078 (29M) [application/octet-stream]
正在保存至: “examples/example.wav”

examples/example.wav                   100%[==========================================================================>]  29.30M  43.9MB/s  用时 0.7s

2024-01-30 18:07:34 (43.9 MB/s) - 已保存 “examples/example.wav” [30720078/30720078])

--2024-01-30 18:07:34--  https://modelscope.cn/api/v1/models/damo/speech_eres2net-large_speaker-diarization_common/repo?Revision=master&FilePath=examples/example.rttm
正在解析主机 modelscope.cn (modelscope.cn)... <IP_ADDRESS>
正在连接 modelscope.cn (modelscope.cn)|<IP_ADDRESS>|:443... 已连接。
已发出 HTTP 请求，正在等待回应... 200 OK
长度：1329 (1.3K) [application/octet-stream]
正在保存至: “examples/example.rttm”

examples/example.rttm                  100%[==========================================================================>]   1.30K  --.-KB/s  用时 0s

2024-01-30 18:07:34 (29.3 MB/s) - 已保存 “examples/example.rttm” [1329/1329])

Stage2: Do vad for input wavs...
2024-01-30 18:07:37,343 - modelscope - INFO - PyTorch version 2.0.0+cu118 Found.
2024-01-30 18:07:37,345 - modelscope - INFO - Loading ast index from /home/winner/.cache/modelscope/ast_indexer
2024-01-30 18:07:37,470 - modelscope - INFO - Loading done! Current index file version is 1.11.1, with md5 e4ea8cecd8079cde83f512df2bae21a7 and a total number of 956 components indexed
[2024-01-30 18:07:38,659] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
Please install rotary_embedding_torch by:
 pip install -U rotary_embedding_torch
Please install rotary_embedding_torch by:
 pip install -U rotary_embedding_torch
Please install rotary_embedding_torch by:
 pip install -U rotary_embedding_torch
Please install rotary_embedding_torch by:
 pip install -U rotary_embedding_torch
2024-01-30 18:07:44,757 - modelscope - INFO - Use user-specified model revision: v2.0.4
2024-01-30 18:07:45,018 - modelscope - INFO - initiate model from /home/winner/.cache/modelscope/hub/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch
2024-01-30 18:07:45,018 - modelscope - INFO - initiate model from location /home/winner/.cache/modelscope/hub/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch.
2024-01-30 18:07:45,019 - modelscope - INFO - initialize model from /home/winner/.cache/modelscope/hub/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch
2024-01-30 18:07:49,164 - modelscope - WARNING - No preprocessor field found in cfg.
2024-01-30 18:07:49,164 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2024-01-30 18:07:49,164 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': '/home/winner/.cache/modelscope/hub/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch'}. trying to build by task and model information.
2024-01-30 18:07:49,164 - modelscope - WARNING - No preprocessor key ('funasr', 'voice-activity-detection') found in PREPROCESSOR_MAP, skip building preprocessor.
[INFO]: Start computing VAD...
rtf_avg: 0.225: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:03<00:00,  3.69s/it]
rtf_avg: 594.604: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:11<00:00, 11.90s/it]
[INFO]: VAD json is prepared in exp/json/vad.json
Stage3: Prepare subsegments info...
[INFO]: Generate sub-segmetns...
[INFO]: Subsegments json is prepared in exp/json/subseg.json
Stage4: Extract speaker embeddings...
WARNING:torch.distributed.run:
*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
*****************************************
2024-01-30 18:08:21,239 - modelscope - INFO - PyTorch version 2.0.0+cu118 Found.
2024-01-30 18:08:21,241 - modelscope - INFO - Loading ast index from /home/winner/.cache/modelscope/ast_indexer
2024-01-30 18:08:21,262 - modelscope - INFO - PyTorch version 2.0.0+cu118 Found.
2024-01-30 18:08:21,264 - modelscope - INFO - Loading ast index from /home/winner/.cache/modelscope/ast_indexer
2024-01-30 18:08:21,274 - modelscope - INFO - PyTorch version 2.0.0+cu118 Found.
2024-01-30 18:08:21,275 - modelscope - INFO - Loading ast index from /home/winner/.cache/modelscope/ast_indexer
2024-01-30 18:08:21,362 - modelscope - INFO - PyTorch version 2.0.0+cu118 Found.
2024-01-30 18:08:21,363 - modelscope - INFO - Loading ast index from /home/winner/.cache/modelscope/ast_indexer
2024-01-30 18:08:21,382 - modelscope - INFO - PyTorch version 2.0.0+cu118 Found.
2024-01-30 18:08:21,384 - modelscope - INFO - Loading ast index from /home/winner/.cache/modelscope/ast_indexer
2024-01-30 18:08:21,386 - modelscope - INFO - PyTorch version 2.0.0+cu118 Found.
2024-01-30 18:08:21,388 - modelscope - INFO - Loading ast index from /home/winner/.cache/modelscope/ast_indexer
2024-01-30 18:08:21,394 - modelscope - INFO - Loading done! Current index file version is 1.11.1, with md5 e4ea8cecd8079cde83f512df2bae21a7 and a total number of 956 components indexed
2024-01-30 18:08:21,414 - modelscope - INFO - Loading done! Current index file version is 1.11.1, with md5 e4ea8cecd8079cde83f512df2bae21a7 and a total number of 956 components indexed
2024-01-30 18:08:21,430 - modelscope - INFO - Loading done! Current index file version is 1.11.1, with md5 e4ea8cecd8079cde83f512df2bae21a7 and a total number of 956 components indexed
2024-01-30 18:08:21,486 - modelscope - INFO - Loading done! Current index file version is 1.11.1, with md5 e4ea8cecd8079cde83f512df2bae21a7 and a total number of 956 components indexed
2024-01-30 18:08:21,502 - modelscope - INFO - Loading done! Current index file version is 1.11.1, with md5 e4ea8cecd8079cde83f512df2bae21a7 and a total number of 956 components indexed
2024-01-30 18:08:21,510 - modelscope - INFO - Loading done! Current index file version is 1.11.1, with md5 e4ea8cecd8079cde83f512df2bae21a7 and a total number of 956 components indexed
2024-01-30 18:08:21,716 - modelscope - INFO - PyTorch version 2.0.0+cu118 Found.
2024-01-30 18:08:21,718 - modelscope - INFO - Loading ast index from /home/winner/.cache/modelscope/ast_indexer
2024-01-30 18:08:21,829 - modelscope - INFO - Loading done! Current index file version is 1.11.1, with md5 e4ea8cecd8079cde83f512df2bae21a7 and a total number of 956 components indexed
2024-01-30 18:08:21,835 - modelscope - INFO - PyTorch version 2.0.0+cu118 Found.
2024-01-30 18:08:21,837 - modelscope - INFO - Loading ast index from /home/winner/.cache/modelscope/ast_indexer
2024-01-30 18:08:21,968 - modelscope - INFO - Loading done! Current index file version is 1.11.1, with md5 e4ea8cecd8079cde83f512df2bae21a7 and a total number of 956 components indexed
[2024-01-30 18:08:22,719] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-01-30 18:08:22,719] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-01-30 18:08:22,743] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-01-30 18:08:22,763] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-01-30 18:08:22,797] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-01-30 18:08:22,825] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-01-30 18:08:23,048] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-01-30 18:08:23,275] [INFO] [real_accelerator.py:158:get_accelerator] Setting ds_accelerator to cuda (auto detect)
2024-01-30 18:08:32,879 - modelscope - INFO - Use user-specified model revision: v1.0.0
WARNING: The number of threads exceeds the number of files
WARNING: The number of threads exceeds the number of files
WARNING: The number of threads exceeds the number of files
[INFO] Start computing embeddings...
[INFO] Start computing embeddings...
WARNING: The number of threads exceeds the number of filesWARNING: The number of threads exceeds the number of files

[WARNING] Embeddings has been saved previously. Skip it.
[WARNING] Embeddings has been saved previously. Skip it.
WARNING: The number of threads exceeds the number of files
Stage5: Perform clustering and output sys rttms...
WARNING:torch.distributed.run:
*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
*****************************************
[INFO] Start clustering...
[INFO] Start clustering...
[INFO] Start clustering...
WARNING: The number of threads exceeds the number of files
WARNING: The number of threads exceeds the number of files
WARNING: The number of threads exceeds the number of files
WARNING: The number of threads exceeds the number of files
WARNING: The number of threads exceeds the number of files
/home/winner/anaconda3/envs/py38-pt200/lib/python3.8/site-packages/sklearn/cluster/_kmeans.py:870: FutureWarning: The default value of `n_init` will change from 10 to 'auto' in 1.4. Set the value of `n_init` explicitly to suppress the warning
  warnings.warn(
/home/winner/anaconda3/envs/py38-pt200/lib/python3.8/site-packages/sklearn/cluster/_kmeans.py:870: FutureWarning: The default value of `n_init` will change from 10 to 'auto' in 1.4. Set the value of `n_init` explicitly to suppress the warning
  warnings.warn(
/home/winner/anaconda3/envs/py38-pt200/lib/python3.8/site-packages/sklearn/cluster/_kmeans.py:870: FutureWarning: The default value of `n_init` will change from 10 to 'auto' in 1.4. Set the value of `n_init` explicitly to suppress the warning
  warnings.warn(
Stage6: Get the final metrics...
Computing DER...
2024-01-30 18:08:53,245 - INFO: Concatenating individual RTTM files...
2024-01-30 18:08:53,285 - INFO: MS: 2.069159, FA: 0.203668, SER: 0.000000, DER: 2.272828
Computing ACC...
error,there is no fileid_sys in ref rttm: output
seg pur error,there is no fileid_sys in ref rttm: %s output
eval_elems_seg error,there is no fileid_sys in ref rttm: %s output
All metrics have been done.

Stage6: Get the final metrics...
Computing DER...
2024-01-30 18:52:54,944 - INFO: Concatenating individual RTTM files...
2024-01-30 18:52:55,086 - INFO: MS: 2.069159, FA: 0.203668, SER: 0.000000, DER: 2.272828
Computing ACC...
All metrics have been done.
我使用的funasr==0.8.4
如果换成旧的0.8.8，应该不会报错，可以再次尝试。funasr1.0+版本刚刚上线，本项目只调用funasr的vad接口，近期最好还是使用老版本，后面我会将接口更新。

Solution: https://github.com/alibaba-damo-academy/FunASR/discussions/1319


Error when running cargo build --all

error[E0432]: unresolved import `actix_http::error::ResponseError`
 --> actix/src/error.rs:9:5
  |
9 | use actix_http::error::ResponseError;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ResponseError` in `error`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: could not compile `actix-multipart-rfc7578`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

I also got the same error.

One of the actix crates needs to be pinned to a beta version. This is a similar issue: https://github.com/actix/actix-web/issues/2185. I'll make a fix tonight


AcquireRepository will configure gpg signature

Port gpg signature logic from bash implementation.
#297

@teggotic please resolve conflicts.


kwargs does not work with single-function on dict

Currently, if on is specified as a cohort in e.g. plot_benefit, a kwargs are not supported when collecting multiple functions is raised; however, if on just has a single key/value item, this error should be avoidable.

This should be resolved with PR #169 , since that PR did away with the kwargs are not supported when collecting multiple functions message.


pages: add "how to preact" document

This adds a short introduction on how to add a wmr site with Preact.

Hi @JoviDeCroock and @developit, I made some changes that hopefully put the emphasis more on Preact than WMR. If you can look this over & lemme know if there's anything that needs changing, please let me know :)


rectangular  hyperbola

Proposal
(A clear and concise description of what the proposal is.)
add rectangular hyperbola in hyperbola section of conic section tab

i would like to work on it @sairish2001

Go ahead!
Deadline 26 March,2021 (11:59 PM IST)


add a docker file for some users

Ubuntu18.04-pytorch1.7.1-cuda11.0-cudnn8-python3.8

Thanks!
Could you also add a file docker/README.md describing the steps of how to use it?

OK, the docker/README.md added, please check it

Thanks!


Initiate Conformance Test Suite

Changes

This commit initiates the OSS conformance test suite. It sets the
standards for incrementing the V1 conformance test with the two simple
test cases.
/kind misc
part of #7828
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[x] Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
[x] Has Tests included if any functionality added or changed
[x] pre-commit Passed
[x] Follows the commit message standard
[x] Meets the Tekton contributor standards (including functionality, content, code)
[x] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[n/a] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
[n/a] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes
NONE

It might also be helpful for us to create the /kind conformance given the amount of work in the future we might have for this - each major/minor version could have its own patch etc.

cc @tektoncd/core-maintainers PTAL 🙏

cc @afrittoli  @chitrangpatel @vdemeester @Yongxuanzhang  thanks for your time in advance 🙏

/lgtm


Twitter inbound connector's transport logs an HTTP "unexpected error" -- input stream terminates

Description:
When created and started, Receive Tweets inbound connector (twitter-in) will receive Tweets for a period of time and then stop. The input is still running, but its event count on the GeoEvent Manager's Monitor page is not incrementing. The Time Since Last metric on the Monitor page will allow you to subtract however many hh:mm:ss from "now" in order to locate the following errors in the karaf.log:
... com.esri.ges.framework.transport.http-transport - 10.3.0
Cannot read the HTTP response. An unexpected error has occurred while reading the The HTTP response.
Error: SSL peer shut down incorrectly.

Workaround:
User can stop and restart the GEx input. They should then see that the event count for their twitter-in input will once again begin to increment.

Using GeoEvent daily build <IP_ADDRESS>41, I created Twitter input and let it run for ~17 hours and I did not come across error message "SSL peer shut down incorrectly". Also, Monitor page was still incrementing.


[BIA-1101] Code and Dependency Review Workflows (Engage Online Learners)

Code and Dependency Review Workflows (Engage Online Learners)

Based on the description on the ticket we need 2 things:

Dependency Scan
A linter to run PSScriptAnalyzer.

I see you included the first one, but what about the second one?


Add runtime inited checks in Enclave command handlings to improve security

As reported in https://github.com/bytecodealliance/wasm-micro-runtime/issues/2252#issuecomment-1634940219,
wait_map may be referred again after free in linux-sgx ecall command if it isn't set NULL.

are you trying to make wasm_runtime_destroy idempotent?
otherwise, i guess it should be fixed in Enclave.cpp instead.

are you trying to make wasm_runtime_destroy idempotent? otherwise, i guess it should be fixed in Enclave.cpp instead.

Good point, I added more checks in Enclave instead to fix some similar issues.

Hello, I think wait_map = NULL; is necessary. And I found other functions use wait_map already have check wait_map is NULL at function entrypoint like bh_hash_map_find.
If you only fix at linux-sgx platform, other platform may also face same UAF bug

Hello, I think wait_map = NULL; is necessary. And I found other functions use wait_map already have check wait_map is NULL at function entrypoint like bh_hash_map_find, then this problem can be fixed.
If you only fix at linux-sgx platform, other platform may also face same UAF bug

the bug (calling wasm_runtime_destroy twice) was in linux-sgx and it has been fixed.
if other platforms have similar bugs, they should be fixed too. (have they?)
having double-free checks everywhere is not viable, IMO.

It's similar to blow opinion.
It's different from ``freesince the caller needs to specify which pointer to free, e.g.free(ptr)`, it's the caller's duty to set ptr to null.
However, in WAMR, API is wasm_runtime_destroy() and it free wait_map internal, caller (library user) can't access the wait_map variable, then it's duty of wasm_runtime_destroy() to set wait_map to NULL

It's different from free since the caller needs to specify which pointer to free, e.g. free(ptr), it's the caller's duty to set ptr to null.
However, in WAMR, API is wasm_runtime_destroy() and it free wait_map internal, caller (library user) can't access the wait_map variable, then it's duty of wasm_runtime_destroy() to set wait_map to NULL

i disagree. while it's ok to set wait_map to NULL, it's far from a "duty".
calling wasm_runtime_destroy twice as sgx was doing is an undefined behavior as double free is.
what you are saying is something like it's free's duty to prepare to handle double free.

All right


[MIGraphX EP] Add migraphx ep save load compiles (#20643)

Adds the ability for MIGraphX EP to save off or load compiled models to save time between inferences.
Via Command line
User should be able to set the save ability with
ORT_MIGRAPHX_SAVE_COMPILED_MODEL
ORT_MIGRAPHX_SAVE_COMPILE_PATH
User should be able to set the load ability with
ORT_MIGRAPHX_LOAD_COMPILED_MODEL
ORT_MIGRAPHX_LOAD_COMPILE_PATH
via Onnxruntime API
migx_save_compiled_model
migx_save_model_name
migx_load_compiled_model
migx_load_model_name
The motivation for this is to leverage MIGraphX's existing API to save/load models after our compile step of graph optimization. For larger models or models which were compiled with additional tuning steps, this saves time after first compile and inference run, and thus speeds up the user experience in order to encourage development.

Description

Allow save load between model runs. Save files as migraphx mxr
Motivation and Context

This is already upstreamed.


chore: use ubuntu-22.04

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (008a6cc) to head (33eade1).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #106   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           13        13
  Lines          243       243
  Branches        27        27
=========================================
  Hits           243       243

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


[Underground 2003] The mod does not work with the European version of the game

Hi
I noticed that the mod doesn't work at all with the European version of the game. The game cannot be operated with anything other than a mouse, the key settings are completely empty. Throwing in an American .exe fixes the situation, but causes other problems. The main differences I noticed between the versions:

Different intro structure which causes the EU game with .exe US to not start until we skip the intro using ExtraOptions.
Presence of the Nascar Thunder 2004 Trailer item in the options menu (the EU version has nothing there instead)
During one of the races, the opponent's tires and rims took on the color of his car so I assume more things like this may come up as the game progresses.

Will there ever be a version of XtendedInput that will work with the EU version of the game?

Have the same problem. Only controll with mouse and no controller or what ever

Hey, sorry hadn't been much working on this (as I'm busy with other projects that are adjacent to this).
I'll introduce pattern matching to XtendedInput soon which should resolve any issues.

Just wondering if there's been any updates on this lately? As I am still unable to get this to work on a European version of the game.

Same here :(


Calendar rendering issues.

Describe the bug
When I create the following shipments there is a gap in the bar from the 20th to 24th october and it shows "1 more" while there is only one shipment for that date (see screenshot).
calendar.createSchedules([
    {
        id: 11035,
        calendarId: "1",
        category: "time",
        title: "Vendor 1",
        start: "2020-10-04",
        end: "2020-10-19",
    },
    {
        id: 11036,
        calendarId: "1",
        category: "time",
        title: "Vendor 3",
        start: "2020-10-04",
        end: "2020-10-19",
    },
    {
        id: 11039,
        calendarId: "1",
        category: "time",
        title: "Vendor 4",
        start: "2020-10-04",
        end: "2020-10-19",
    },
    {
        id: 11030,
        calendarId: "1",
        category: "time",
        title: "Vendor 4",
        start: "2020-10-13",
        end: "2020-10-27",
    },
]);

To Reproduce
Steps to reproduce the behavior:

Create the shipments shown above.

Expected behavior
The expected behavior is that there is no gap and no "1 more" since there is only 1 shipment on that date.


Resident Key / UserHandle Authentication?

I'm trying to get resident keys to work with the example server.  I can get resident keys to work with webauthn.me but not with the example server using a YubiKey 5 NFC.  I am modifying the register_begin call to pass resident_key=True
@app.route("/api/register/begin", methods=["POST"])
def register_begin():
    registration_data, state = server.register_begin(
        {
            "id": b"user_id",
            "name": "a_user",
            "displayName": "A. User",
            "icon": "https://example.com/image.png",
        },
        credentials,
        resident_key=True,
        user_verification="discouraged",
    )

and it does look like Chrome sees the resident key request by saying:
"A record of your visit to this site will be kept on your security key."
but I do not see a userHandle in the authentication response:
@app.route("/api/authenticate/complete", methods=["POST"])
def authenticate_complete():
    if not credentials:
        abort(404)

    data = cbor.decode(request.get_data())
    print("authenticate finish data:", data)

authenticate finish data: {u'credentialId': "\x17\xfbZ{\xa5\xbcB\x12\xa5\xe3\xd3'\xd7\x97\xb0\xac", u'clientDataJSON': '{"challenge":"sbtMTP_IGixS4-Ur6uNhxqpty3jfsIKN8nDzWOu_Eeg","origin":"https://localhost:10000","type":"webauthn.get"}', u'authenticatorData': 'I\x96\r\xe5\x88\x0e\x8cht4\x17\x0fdv`[\x8f\xe4\xae\xb9\xa2\x862\xc7\x99\\xf3\xba\x83\x1d\x97c\x05\x00\x00\x00\t', u'signature': '0E\x02 \x16)\xc8\x1d\x82\xac\x14\xcd\xe0\x8c\xb3\xe2s\xb2\xc1GN\x17u\t\x81R"\x96\xc7?\xbb\x8b\x10\xfa\x9c\xdd\x02!\x00\xc2\xdb\xea\x84yP\xe9\x9c\x87\x9a5\xc9G\x9fR\xd5\\x97\x97\xf7\xd1\xe5\xaa\x80\xb0>4/3\xef0\xf4'}
Am I doing something wrong?
UPDATE: I found it, had to add "userHandle" to authenticate.html:
      body: CBOR.encode({
        "credentialId": new Uint8Array(assertion.rawId),
        "authenticatorData": new Uint8Array(assertion.response.authenticatorData),
        "clientDataJSON": new Uint8Array(assertion.response.clientDataJSON),
        "userHandle": new Uint8Array(assertion.response.userHandle),
        "signature": new Uint8Array(assertion.response.signature)
      })

I'm able to register and authenticate usernameless through the sample server.  However, I'm not able to use the client on the command line to authenticate.  Looks like the client code is expecting a list of previously registered credentials, but those are optional in the usernameless flow according to the spec, right?

You're referring to the fido2.client.Fido2Client class? I just pushed a commit which should fix an issue with get_assertions when called with no allow_list.

Our build system is set up to use released versions.  Let me get back to this.

0.7.2 is now released, which contains this fix. Please re-open this issue if your still seeing problems with the new version!

I tried it out with 0.7.3 and wasn't able to get it to work.


Feature/add ability to upload file from chat

Embed PR: https://github.com/FlowiseAI/FlowiseChatEmbed/pull/230

That. Is a blasting feature
Thanks a lo <3
Can you add an example flow that handles the file read?
Thank you very much for this feature <333

Yeah, I added postgres vector store - tried both outputs.
(The documentation says postgres is supported)
It can only connect with auto-gpt which does not support file upload.
Thank you for your response!


Update instructions for Stand in Line Challenge

Challenge Stand in Line has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 UBrowser/5.6.12860.7 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

function nextInLine(arr, item) {
  // Your code here

  return item;  // Change this line
}

// Test Setup
var testArr = [1,2,3,4,5];

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));

@ajitkumarsahu The instructions are pretty simple.
If you read through it step by step:

Write a function nextInLine which takes an array (arr) and a number (item) as arguments.
Add the number to the end of the array, then remove the first element of the array.
The nextInLine function should then return the element that was removed.

Can anyone update this challenge to break the paragraph into individual sentences? Also, fix the grammar in the second sentence adding a "the" before "array", I have highlighted it in bold above.
Thanks.

For first timers:
This is the line of code that you have to break into individual sentences:
https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/seed/challenges/01-front-end-development-certification/basic-javascript.json#L2747
"Write a function nextInLine which takes an array (arr) and a number (item) as arguments.",
"Add the number to the end of the array, then remove the first element of the array.",
"The nextInLine function should then return the element that was removed."

Easy enough I think I can take a crack at it

Is this the reason that there are no longer links to push pop shift unshift in the hints for the "stand in line" challenge?

Is this the reason that there are no longer links to push pop shift unshift in the hints for the "stand in line" challenge?

This supposed to be moved to a new way as discussed in  https://github.com/FreeCodeCamp/FreeCodeCamp/issues/8290
/cc @BerkeleyTrue I can't see it on latest staging. Do you have an idea?

Are you talking about hints?

Yes. I am not sure why the MDN links aren't available any longer in staging.

MDN links are no longer available in favor of hints. They need to be converted over to hints.


[Revise] check if covsirphy can be used in Python 3.11

Summary of request
Python 3.11 will be released on 24Oct2022 and we need to check if we can use covsirphy with Python 3.11regularly.
https://peps.python.org/pep-0664/
https://github.com/pandas-dev/pandas/issues/46680
(Optional) Why required / what will be improved
Updates cycle of Python and main libraries are very shortened nowadays and we need to catch up the speed. Python 3.11+ improves performance drastically and covsirphy users are highly recommended to use the latest version of covsirphy as soon as we can.
The current Version
CovsirPhy version I used: 2.26.2

cf. https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#using-the-python-version-input

@fpgmaas
Do you have any ideas to check compatibility of dependencies (linsted on pyproject.toml) with specific Python versions? This may be a new project, but checking compatibility will be more and more heavy task of developers.
I found a issue regarding this for pip, but I think not resolved.
https://github.com/pypa/pip/issues/7649#issuecomment-578406749

After Python 3.11 releases, pull request will be created and tested to check we can use covsirphy with Python 3.11.
The pull request will be rebased when new changes detected in main branch.
https://github.com/marketplace/actions/rebase-pull-requests

@fpgmaas Thank you for your comment despite the sudden mention!
GitHub Actions workflow runs pytest with python-version matrix at this time in this project, but tox can be a used for tests with various Python versions.
https://github.com/lisphilar/covid19-sir/blob/7fa13f043d3b5f5ccabb16d70c31030f8781f077/.github/workflows/test.yml#L65-L86
Sorry for not explaining enough.
Regarding this issue, I'd like to get "FAILED" notification only when all dependencies support Python 3.11. Just after "FAILED" notification, we will start to support Python 3.11 (i.e. replace python = "^3.8,<3.11" with python = "^3.8,<3.12", update python-version matrix if tox not used).

All tests passed with Python 3.8, 3.9, 3.10, and tests failed with Python 3.11
-> Developers do not work on tasks for Python 3.11 support

All tests passed with Python 3.8, 3.9, 3.10, 3.11
-> Developers start to work on tasks for Python 3.11 support


Vue 1.0.27 error

There is error for not using v-if and v-for on same template

Could you please give me some examples? Thanks.

stale


Adding ConfigureAwait() directive to await statement in TokenClient.RequestAsync()

For issue #25.
Avoids deadlock when blocking on resulting task from within ASP.NET and other multi-synch context environments.

thanks!


Dsyme tuple spike

Don,
I tried to emit the right code for reading from a struct tuple field however, it is not correct.  Can you take a look and let me know what I did wrong.  I think the issue is at tastops.fs around line 7830.
let struct (one,_) = struct (2, 4)
0

This code:
when compiled generates this error
c:\projects\structtuples>basictuple.exe

Unhandled Exception: System.TypeLoadException: Could not load type 'System.ValueTuple`2' from assembly 'basictuple, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.
   at <StartupCode$basictuple>.$Basictuple.main@()

c:\projects\structtuples>

Note the System.ValueTuple dll exists in the execution directory

@KevinRansom I left one comment, though I'm not sure that explains the error message above. Run peverify on the code?

c:\projects\structtuples>"c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\PEVerify.exe" basictuple.exe
Microsoft (R) .NET Framework PE Verifier.  Version  4.0.30319.0
Copyright (c) Microsoft Corporation.  All rights reserved.
[IL]: Error: [c:\projects\structtuples\basictuple.exe : <StartupCode$basictuple>.$Basictuple::main@][offset 0x00000021] Unable to resolve token.
1 Error(s) Verifying basictuple.exe
c:\projects\structtuples>

Use ILDASM /OUT=out.il and paste the IL in a gist, maybe we'll spot something

https://gist.github.com/KevinRansom/014a53b4f2f4426f4ae46f78545d7062

This ldfld instruction looks like it is missing a generic instantiation on the ValueTuple type.  Looking at the generating code I didn't immediately spot why
https://gist.github.com/KevinRansom/014a53b4f2f4426f4ae46f78545d7062#file-basictuple-il-L153

https://gist.github.com/KevinRansom/014a53b4f2f4426f4ae46f78545d7062
From: Don Syme<EMAIL_ADDRESS>Sent: Monday, July 11, 2016 7:53 AM
To: dsyme/visualfsharp<EMAIL_ADDRESS>Cc: Kevin Ransom<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dsyme/visualfsharp] Dsyme tuple spike (#6)
Use ILDASM /OUT=out.il and paste the IL in a gist, maybe we'll spot something
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dsyme/visualfsharp/pull/6#issuecomment-231758674, or mute the threadhttps://github.com/notifications/unsubscribe/AE76FjkIxD9WmhbUL-CF_EmTHsxlNQh1ks5qUljngaJpZM4JJZyI.

Yes … that was my suspicion too and I can’t figure out the right Voodoo to make it work.
From: Don Syme<EMAIL_ADDRESS>Sent: Monday, July 11, 2016 8:05 AM
To: dsyme/visualfsharp<EMAIL_ADDRESS>Cc: Kevin Ransom<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dsyme/visualfsharp] Dsyme tuple spike (#6)
This ldfld instruction looks like it is missing a generic instantiation on the ValueTuple type. Looking at the generating code I didn't immediately spot why
https://gist.github.com/KevinRansom/014a53b4f2f4426f4ae46f78545d7062#file-basictuple-il-L153https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2FKevinRansom%2F014a53b4f2f4426f4ae46f78545d7062%23file-basictuple-il-L153&data=01|01|Kevin.Ransom%40microsoft.com|3970a3c5b6ae4e05ea3e08d3a99ce963|72f988bf86f141af91ab2d7cd011db47|1&sdata=0NSi7iuTYddA1oxRVXOC9s56J1ZBj%2BbTDDjbWub%2FKDM%3D
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dsyme/visualfsharp/pull/6#issuecomment-231762365, or mute the threadhttps://github.com/notifications/unsubscribe/AE76Fn5lx5Wyp_S3geufCrIhkV4E7RJtks5qUluzgaJpZM4JJZyI.

It feels like the lack of a type instantiation must be flowing in from somewhere earlier (I checked we can emit references to IL fields in generic IL classes ok).
At this stage I'd probably use a debug build with devenv /debugexe fsc.exe test.fs and put a breakpoint in the struct cases of the code generation and double check the instantiation is missing.  If so, then try to track backwards for where it got lost.

Okay I will give that a try.
Thanks  Don
From: Don Syme<EMAIL_ADDRESS>Sent: Monday, July 11, 2016 8:21 AM
To: dsyme/visualfsharp<EMAIL_ADDRESS>Cc: Kevin Ransom<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dsyme/visualfsharp] Dsyme tuple spike (#6)
It feels like the lack of a type instantiation must be flowing in from somewhere earlier (I checked we can emit references to IL fields in generic IL classes ok).
At this stage I'd probably use a debug build with devenv /debugexe fsc.exe test.fs and put a breakpoint in the struct cases of the code generation and double check the instantiation is missing. If so, then try to track backwards for where it got lost.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dsyme/visualfsharp/pull/6#issuecomment-231767498, or mute the threadhttps://github.com/notifications/unsubscribe/AE76FnPPKDYq28GnlY4rr7Ods7mG1hULks5qUl9xgaJpZM4JJZyI.

I think the generic information is there:
let mkILFieldSpec (tref:ILFieldRef,ty) =
    printfn "tref %A" (tref.EnclosingTypeRef.BasicQualifiedName)
    match tref.Type with
    | ILType.Value tr ->
        printfn "tr %A" (tr.BasicQualifiedName)
        tr.tspecInst |> Seq.iter(fun t ->printfn "   t: %A" (t.BasicQualifiedName))
    | _ -> ()
    { FieldRef= tref; EnclosingType=ty }

let mkILFieldSpecInTy (typ:ILType,nm,fty) =
    match typ with
    | ILType.Value tr ->
        printfn "tr %A" (tr.BasicQualifiedName)
        tr.tspecInst |> Seq.iter(fun t ->printfn "   t: %A" (t.BasicQualifiedName))
    | _ -> ()
    mkILFieldSpec (mkILFieldRef (typ.TypeRef,nm,fty), typ)

c:\projects\structtuples>\KevinRansom\visualfsharp\release\net40\bin\fsc basictuple.fs /debug+ /optimize- /debug:full /r:System.ValueTuple.dll
Microsoft (R) F# Compiler version (private)
Copyright (c) Microsoft Corporation. All Rights Reserved.

basictuple.fs(4,1): warning FS0020: The result of this expression is implicitly ignored. Consider using 'ignore' to discard this value explicitly, e.g. 'expr |> ignore', or 'let' to bind the result to a name, e.g. 'let result = expr'.
tref "<StartupCode$basictuple>.$Basictuple"
tr "System.ValueTuple`2[[System.Int32, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"
   t: "System.Int32"
   t: "System.Int32"
tref "<StartupCode$basictuple>.$Basictuple"
tr "System.Int32"
tr "System.ValueTuple`2[[System.Int32, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"
   t: "System.Int32"
   t: "System.Int32"
tref "System.ValueTuple`2"
tref "<StartupCode$basictuple>.$Basictuple"
tr "System.Int32"
tref "<StartupCode$basictuple>.$basictuple"
tr "System.Int32"


Ability to set WP_DEBUG in cypress config for WordPress enviroment.

Fixes #14
Enable WP_DEBUG to be set in cypress config by specifying the debug property within wp object to either true or false.

Closing as will be fixed in #26


Dataset.contains falls back to Dataset.getitem, badly.

I just happened to wonder whether I could, by chance, test
("FormTable", "cognatesetReference") in ds.
(NB: some of the pre-1.0-stuff we back then used in BEASTling used that kind of format for cognates, so I thought such data sets might exist elsewhere, too, but the specifics of my example are not really relevant to this discussion.)
That expression gets a cryptic AttributeError: 'int' object has no attribute 'startswith', because as per https://docs.python.org/3.10/reference/expressions.html#membership-test-operations __contains__ falls back to testing __getitem__ for all non-negative integers in sequence, and that's completely not what
https://github.com/cldf/pycldf/blob/384f7c5227bd467c347643bd50249c66f0559a23/src/pycldf/dataset.py#L605-L630
expects. This is quite a fringe case for pycldf, actually, so – is it worth implementing a clean __contains__  to avoid people running into this?

fix released in pycldf 1.20.2


No Recording created in S3

Hi, I have a big issue I noticed sometimes the video is not storage in S3, what I usually do is:  after calling the API with action "start" it returns a regular taskId (arn:aws:......), I storage that info in my database and when the user wants to stop it, he calls the action "stop", everything goes well so far, when the time comes I call the action "stop" and what I expect is to have the video object in S3, but sometimes there is not file and I didn't get any error from calling the API when I am trying to stop it, so why could this happened and how can be solved?
I'm really worried because this recording feature is already in production and I say to the customer it is recording, when sometimes it probably doesn't
What I think is it could be related to concurrent recording meeting and the autoscaling instances for each recording

@tumbelin can you attach the logs from the ECS task when this issue happens?

No, sadly I didn't get the ECS Task. Do you think it is possible that I get the right ECS task for the start action, also for stop and in the end don't get any recording?

Once you start the recording, you would get an ECS task ARN back in the response. That task would be seen in the ECS console. If the task ends, there is a section in ECS to get logs for the "Stopped" tasks as well. Could you check if the logs are present there?

Hey @tumbelin, feel free to re-open this if you are still experiencing this issue.


fixfix hive catalog miss partition that have special characters. #42906

cherry pick from #42906

run buildall

run buildall


Support returning an instance of a caster

See https://github.com/laravel/framework/pull/32213#issuecomment-608438683

With the addition of the Castable interface (https://github.com/laravel/docs/pull/5934), it makes sense to allow direct instantiation from within a Castable::castUsing implementation. A common usecase could be something like this:
class EloquentDataTransferObject extends DataTransferObject implements Castable
{
    public static function castUsing()
    {
        return new DataTransferObjectCaster(static::class);
    }
}

Which allows a kind of "generic" cast. All classes extending EloquentDataTransferObject can now directly be used as a cast type, and will be casted to the correct implementation of EloquentDataTransferObject.
Eg.
class MyData extends EloquentDataTransferObject {
    public int $property = 1;
}

class ModelX extends Model
{
    protected $casts = [
        'data' => MyData::class,
    ];
}

@taylorotwell I suppose this means it'll be added in 8.x?

Would be great to have this in 7.x … it's backwards compatible, no?

@brendt correct.
@mfn Taylor asked to send this to master instead.

OK then send back to 7.x ... haha... I'll just merge it forward. Sorry for the inconvenience of making you send again. 😬

No problem, here it is: https://github.com/laravel/framework/pull/32225


Curly Brackets break Code generation

#declare s:string
${s = "sa"}$
s = $s  {} is broken

however
#declare s:string
${s = "sa"}$
s = $s  {{}}
is not

Related to string format and being escaped

Current workaround is to escape curly brackets with a second set of brackets


Add IDisposable call to SilkMarshall.Free for all PFN-structs

Adding the IDisposable interface as it is implemented for the generated PFN structs (see StructWriter)

 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.:x: p3t3rix sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


[Feature 7] Test UI Code

Develop comprehensive test cases to verify the functionality of the methods specified in the UI-related files.

/close not being worked upon by UI folks


Fixes font on expandables

Adds font family to button override on expandables. Fixes #1442!
Testing

Create a document detail page with an expandable
Fonts should no longer be "Sans Serif" but Avenir Medium

Review

@sebworks
@jimmynotjim
@anselmbradford

:+1:

:+1:


Func getDocumentComponents can only get the components of the first layer

The judgment condition " type === 'COMPONENT' || type === 'FRAME' || type === 'GROUP' " should be wrong, This will stop the recursive operation in func traverseNode.

Shipped in 2.4.0


[Open Source Requirements] Linting and formatting

Code needs to follow some standard code conventions and be linted. Flake8 or any other suitable alternative.

flake8 was introduced


[BUG] I can't enable CORS

I set up a Dockerimage that uses fastapi version 0.45.0  and uvicorn. I need to enable CORS for different domains like id-localtest.mydomain.com, id-alpha.mydomain.com and id.mydomain.com. In my main.py file I wrote these lines of code
from fastapi import FastAPI, HTTPException

app = FastAPI()

origins = ['https://id-localtest.mydomain.com', 'https://id-alpha.mydomain.com', 'https://id.mydomain.com']

app.add_middleware(
    CORSMiddleware,
    allow_origins=origins,
    allow_credentials=True,
    allow_methods=["DELETE,GET,POST,PUT"],
    allow_headers=["*"])

@app.post("/{stage}/activation")
async def activation_post(stage: str, request: Request):
    # my custom code
    return 200

I'm always getting an HTTP status code 400 when a generic browser makes an OPTIONS request.
If I try to use Postman to make an OPTIONS request, I get the HTTP status code 405 and the json received is:
{
    "detail": "Method Not Allowed"
}

What am I doing wrong? I'm following this tutorial https://fastapi.tiangolo.com/tutorial/cors/

starlette.middleware.cors.CORSMiddleware accepts a sequence of strings in allow_methods parameter.  You can send it manually by specifying special headers for your request. Here is an example for your application using httpie:
$ http --verbose OPTIONS :8000/stage/activation Access-Control-Request-Method:POST Origin:https://id-localtest.mydomain.com

OPTIONS /stage/activation HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Access-Control-Request-Method: POST
Connection: keep-alive
Content-Length: 0
Host: localhost:8000
Origin: https://id-localtest.mydomain.com
User-Agent: HTTPie/1.0.3

HTTP/1.1 200 OK
access-control-allow-credentials: true
access-control-allow-methods: DELETE, GET, POST, PUT
access-control-allow-origin: https://id-localtest.mydomain.com
access-control-max-age: 600
content-length: 2
content-type: text/plain; charset=utf-8
date: Tue, 07 Jan 2020 15:19:54 GMT
server: uvicorn
vary: Origin

OK

Oh, my fault! I didn't notice it! I just copied and pasted the methods accepted by Flask thinking I could specify them in the same way. Thank you!

Thanks for the help here @nsidnev ! :clap: :bow:
And thanks @fedecastelli for reporting back and closing the issue :+1:

Hi all,
Although I'm using the same code as above, I'm facing a similar problem as following:
Status Code: 422 Unprocessable Entity Referrer Policy: strict-origin-when-cross-origin
Any ideas to solve the problem?

Hi all,
Although I'm using the same code as above, I'm facing a similar problem as following:
Status Code: 422 Unprocessable Entity Referrer Policy: strict-origin-when-cross-origin
Any ideas to solve the problem?

Hello, 422 Unprocessable Entity is not a CORS error, can you check your the body request for any "," or wrong fields that are being validated.

Hi all,
Although I'm using the same code as above, I'm facing a similar problem as following:
Status Code: 422 Unprocessable Entity Referrer Policy: strict-origin-when-cross-origin
Any ideas to solve the problem?

Hello, 422 Unprocessable Entity is not a CORS error, can you check your the body request for any "," or wrong fields that are being validated.

The problem has been solved after creating a subdomain for my web service.

please note that you can also add

main domain
sub domain
different port

in origins sections, for example:
origins = [
    "https://aaa.com", # main domain
    "https://abc.aaa.com", # subdomain
    "https://aaa.com:4000" # different port
]

you can also allow all headers by set
allow_headers=["*"]
in app.addmiddleware method


Semantic Versioning

I haven't done any RN dev in about a year so I'm curious if here has been any discussion about lifting a 1.0.0 to the community following SemVer principles, and what might be needed to establish a 1.0.0 other than simply cutting the version given RN is used in production and qualifies for such a version. Having it would set a good example for module developers and help avoid a Grunt scenario longer term. Thoughts?
http://semver.org/

If your software is being used in production, it should probably already be 1.0.0. If you have a stable API on which users have come to depend, you should be 1.0.0. If you’re worrying a lot about backwards compatibility, you should probably already be 1.0.0.

It has been brought up in the past (for example, https://www.facebook.com/groups/reactnativeoss/permalink/1604716516491643/).
There's been some discussion amongst core contributors but nothing to announce at this point. Closing as I'm trying to keep the tracker focused on bugs.


Update for ActiveRecord 4 API

This removes the use of ActiveRecord 3.x all with options and uses the specific query building methods followed by ActiveRecord::Relation.to_a instead.
As far as I can tell, the tests do not test use fo a select or joins option so that stuff could be wrong.

[x] Restrict dependencies to ActiveRecord >= 4.0?
[ ] Consider whether there are refactoring possibilities to avoid wrapping up options into a hash only to unwrap them again buthonestlyitssundayandIimnotsuperfussed
[x] Add tests for :select and :joins options?

cc #4

/cc @mislav  I dunno if you actually needed this anywhere but I'd love to get another pair of eyes reviewing these changes. also @lachlanhardy :eyes: If there's nothing glaring here I'm probably going merge this and send another PR cutting :scissors: this as 2.0.


Indentation

My understanding is that 4 space indentation is a unofficial standard for python. Seems like that'd be a quick PR for @judy2k to knock out.

Resolved directly in the develop branch.


Os error 3 after start

I'm just getting the "os error 3" error code affter launch ("path not found") and i can't do anything inside the app. I've tried the exe and msi installer on german Win11 22H2 Build 22621.1992.

Did the error occur when you opened the app, started downloading a model (if so what model?), or when you started promoting the model?

Found it, looks like it's crashing when the ~/.chitchat models directory doesn't exist. Fixing now. You can manually create it if you'd like and the app should start up.

Resolved for me. Give this .msi a try and let me know if you run into the same error.


Axe updates rejecting the accordion section

https://github.com/x-govuk/govuk-components/blob/d888b9cc3f41f68a9024978a30b8d171ffeaed96/app/components/govuk_component/accordion_component/section_component.html.erb#L10
This line adds an aria-labelledby attribute, but this mornings AXE gem updates now raise the following error:
aria-labelledby attribute cannot be used on a div with no valid role attribute

changing it to
<%= tag.div(content, id: id(suffix: 'content'), role: 'region', class: "#{brand}-accordion__section-content", aria: { labelledby: id }) %>

passes the axe tests, but I am not an expert on Aria roles and definitions!

See #453 for a potential fix, but happy to be guided by accessibility experts :+1:

@colinbruce thanks for raising this. Would you mind re-posting this as an issue on govuk-frontend (and linking to this one)?
The HTML for the accordion in this ruby code is based on the HTML in govuk-frontend, so the Design System team will be best placed to evaluate whether this is a genuine accessibility issue or a false-positive.

Closing this as it should be fixed upstream.


Add linting to ensure worksheets are PEP8 compliant

Need to add some form of linting to ensure that all the python contained within the jupyter notebooks is PEP8 compliant and hence conforms to best practice. It is thought that this can be accomplished using black, which already has a built in jupyter hook. Ideally these checks would be automatically preformed either using pre-commit or github actions, ensuring that all future development is compliant.

Could also consider adding codespell, flake8  and pycln?
As we're open source, we can also use the pre-commit CI https://github.com/marketplace/pre-commit-ci which is slightly more user friendly in applying the pre-commit checks IMO, but requires setting up actions.

Added basic checking with pre-commit and black-jupyter, but should do something more sophisticated has suggested by @hsteptoe.


[Parse] Don't drop the EnumCaseDecl when it has a trailing comma.

This meant we weren't producing sema diagnostics for the case, and it didn’t get full syntactic/semantic highlighting or indentation.
enum CasesWithMissingElement {
  // both cases below are dropped from the AST
  case a(Int, String),
  case b(Int, String),
}

Resolves rdar://problem/61476844

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - d5976606787c5a0efafc78474d540234d012a641

Build failed
Swift Test Linux Platform
Git Sha - d5976606787c5a0efafc78474d540234d012a641

@swift-ci please test and merge

@swift-ci test and merge


Refactor getDavIdIconUrl()

Expand the getDavIdIconUrl() function to receive a davId argument, and return https://lorempixel.com/100/100/abstract/?${davId}
Further expand that function so that it throws an exception if no davId is passed to it.
Add JSDoc documentation to that function.
Make sure everywhere we call that function we didn't forget to pass davId
Update the test that calls it to make sure it passes a davId to it (can just be a string, no need to require the function that generates random ids there).
Create an issue for first timers to add a test to verify that it throws an exception when no davId is passed.

@TalAter Thanks for creating this. Am on it 😄

@cg-cnu Are you still interested in taking this one, or should we open this up to the community?


pip install error

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\94900\AppData\Local\Temp\pip-install-yzwfp67_\django-admin-thumbnails\setup.py", line 41, in <module>
    long_description=open('README.md').read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0x93 in position 768: illegal multibyte sequence

@Mran Looking into this now

@Mran Just published a new version, let me know if it resolves the issue for you. FYI I think this was caused by incorrect encoding detection of Unicode characters in the README.

thanks！it is  worked

@Mran Great! 🚀


wasmtime serve: allow component reuse, serving > 1 request per instance

Thanks for filing a feature request! Please fill out the TODOs below.
Feature
I’d like an option (or default) for wasmtime serve to reuse a component for multiple requests. e.g. wasmtime serve --reuse or wasmtime serve --no-reuse
Benefit
Amortize costly runtime or application initialization across multiple requests.
Implementation
Not sure!
Alternatives
Use a different wasi-http host other than wasmtime in development that supports instance reuse?

Amortize costly runtime or application initialization across multiple requests.

Wizer is intended to help with that. It takes a wasm module, runs the initialization code in it and then produces a new wasm module with all initialization already done. It does require some minor changes to your own code to indicate when initialization is done though.

I've got an old branch of mine that I was experimenting with for this which I just rebased to dust it off a bit. There's been some discussion amongst folks historically about this and one of the concerns historically has been about certain instances either requiring reuse or explicitly not supporting reuse and how to surface that in the component itself. Those discussions never reached a firm conclusion one way or another though which is why it's never landed as a feature yet. I'll note that I'm not intimately familiar with the concerns here and I'm mostly a proxy for other (e.g. @lukewagner I think knows much more about the concerns both ways here).
Otherwise I'll definitely echo @bjorn3's idea of wizer. I suspect @ydnar you're already familiar with it but for anyone else who happens upon this in the future we've done a lot of work in Wasmtime to make instantiation as fast as possible through tools like wizer, APIs like InstancePre, and allocators like the pooling allocator in Wasmtime. That often can make instantiation fast enough for scenarios that instance reuse isn't required.
I'd also still acknowledge though that even with all the tools in the toolbox I think there's still real situations where instance-per-request isn't fast enough. Personally I think we should support a flag like this on the command line (the default being perhaps a separate question).

Thanks!
Wizer works to a point, but cannot help amortize long-lived connections to upstream servers (like databases).
Echoing some live conversations with @alexcrichton and @lukewagner: I think the design of wasi:http/proxy implies reuse, but does not mandate it. A host can choose to not reuse, and a guest can exit to indicate it doesn't want to be reused.
My specific use case: I'm working on a talk for WasmCon with @mossaka, demoing a Go implementation of wasi-http, and would love to show off the new go:wasmexport feature that integrates with goroutines and the runtime.

FWIW, a summary of the idea proposed in component-model/#307 is:

have wasmtime serve default to instance-per-request, but offer a flag to enable instance reuse
define a new (non-custom) section in component binaries containing a "reuse hint"
if wasmtime serve instantiates a component that transitively contains the "reuse hint" without the instance-reuse-flag being set, an informative console message is issued

This would seem to me to balance the many subtle competing concerns.

define a new (non-custom) section in component binaries containing a "reuse hint"

A couple challenges I see with this approach:

It changes the binary format, requiring tooling changes.
It requires tooling to thread intent ("I want this component to [not] be reused") from code, pragma, or flags, through to the resulting binary. Where does a component or module author express this intent?
It is static—versus the component itself indicating, dynamically, at runtime, that it should or should not be reused.

I’d favor an alternative, where:

Instance reuse is expected and allowed, not not required.
Hosts can choose how much reuse to offer, from zero to unbounded. This maps to existing ephemeral/"serverless" deployment models.
Instances can choose to not be reused by exiting e.g. calling something like wasi:cli/exit.

Hrm, I'm not sure if what you're proposing is any different...

Instance reuse is expected and allowed, not not required.
Hosts can choose how much reuse to offer, from zero to unbounded. This maps to existing ephemeral/"serverless" deployment models.

These are already the case (both in the component model in general and explicitly in WASI HTTP's doc comments).

Instances can choose to not be reused by exiting e.g. calling something like wasi:cli/exit.

This too is also already possible.  (I'll point out that, since wasi:cli/exit is essentially just a trap without the negative connotation, this is an anti-composable thing for a component to do, since it tears down the whole component DAG including any client components that probably didn't want to die just because they called an imported utility function.  There are better options, but I think they're not relevant here.)

Instances can indicate they wish to be reused [indefinitely], but the host does not have to honor it.

This is what the "reuse hint" is.  I don't know if you're imagining some more dynamic indication (calling an imported function or something), but that's no less work (perhaps more) and has less up-front information that can be used by the runtime/platform to provide useful diagnostics to the developer.  I also don't know if you're worrying about what's expressible in the core webassembly build target, but we can always express the reuse hint as some symbolic core wasm import or export that wasm-tools component new (or core runtimes) understand the meaning of.
Lastly, I don't know if you're proposing to change the default behavior of wasmtime serve (when no flags are specified), but I think a number of folks have strong opinions on that (since it preemptively gives up temporal isolation), so if you are I'd suggest separating out that discussion from the more mechanistic discussions of expressing intent here.

Thanks for breaking down the overlapping problem spaces here!

I think Wasmtime should, by default, reuse instances. I think it’s more straightforward to define temporal isolation as a subset of behavior, rather than reuse as a superset.
As for a component expressing whether it wants to be reused: I’d favor dynamic (code instead of configuration). If could be as simple as a well-known or "core" export that returns a bool or enum value.


update buildkit to v0.12.0

New buildkit release
https://github.com/moby/buildkit/releases/tag/v0.12.0
closes #2372

Thanks for the update @AkihiroSuda - definitely interested in https://github.com/containerd/nerdctl/pull/2337 included in nerdctlv1.5.0 as well :)


BSON Handlers improvements

Pull Request Checklist

[X] Have you read How to write the perfect pull request?
[X] Have you read through the contributor guidelines?
[X] Have you added tests for any changed functionality? No changed functionality and current test still pass

Purpose
improves compilation speed by making implicit search for BSONReaders and BSONWriters faster
Background Context
This is the same approach used in other libraries (play-json, circe)

I will prepare the examples then. Maybe later today...


[GOOGLE MAPS][IOS] onPress event not fired for polyline

Hi to all.
Could you tell about support of onPress for polyline on google maps for ios ?
It seems to me that it isn't  implemented. For android works fine
Thank you

closing, no  issue template

@doomsower  thanks for the answer
but it didn't help. onPress still not fired on ios
<MapView.Polyline
        tappable={true}
        lineCap={'butt'}
        onPress={(this.onPressPolyline(route, index))}
        key={index}
        coordinates={route.polyline}
        strokeWidth={ polylineStyles[index].strokeWidth}
        strokeColor={ polylineStyles[index].color} />

I got stuck on this for a while, onPress was working on Android and iOS but not with GoogleMaps on iOS. Found out I needed the tappable={true} attribute. now my question is, why do you need such an attribute? Isn't it obvious that I want it to be tappable if I have an onPress event?
Can you not just check whether onPress does not equal null?

Same issue for me. Adding tappable={true} to the Polyline props fixed it (thanks @weisssean). This doesn't seem to be documented anywhere.


Add SSL configuration for genericjmx monitor.

Hello team,
I am unable to use certificate for SSL with genericjmx monitor. Other jmx monitor supports this, but is a huge hassle due to the need to use Groovy script.
https://docs.splunk.com/Observability/gdi/genericjmx/genericjmx.html
Thanks!

@joem-splunk this is an unfortunate limitation of the underlying collectd plugin:  https://collectd.org/wiki/index.php/Plugin:GenericJMX
We plan on adopting and bundling the opentelemetry-collector-contrib project's JMX Receiver in this distribution which does allow specifying SSL properties: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/jmxreceiver/README.md.  The provided target systems removes the need for authoring groovy scripts for supported applications (including the jvm).  There are a few things that need to be audited and accomplished across some services and components for this to be completed, but it is on the roadmap.

Closing as won't fix. Please reopen if needed.


Command "deploy" is not defined. despite including custom recipe

Deployer version: 7.0.0-rc.8
Deployment OS: Centos 8 Stream

I'm getting the following error:

Command "deploy" is not defined.

Even though I'm including the common recipe?
<?php

namespace Deployer;

require 'recipe/common.php';
require 'deploy/recipe/sts-composer.php';
require 'deploy/recipe/sts-npm.php';
require 'deploy/recipe/sts-nuxt.php';

// Project repository
set('repository', 'git@github.com:stsonline/les-warehouse-gui.git');

// Shared files/dirs between deploys
add('shared_files', ['.env']);

// Set number of releases to keep
set('keep_releases', 2);

// Writable dirs by web server
set('allow_anonymous_stats', false);

// Site: LES Warehouse GUI (Nuxt JS)
host('2001:b98:301:1d00::a:90')
    ->set('labels', ['stage' => 'production'])
    ->set('repository', 'git@warehouse-gui:stsonline/les-warehouse-gui')
    ->set('branch', 'main')
    ->set('remote_user', 'root')
    ->set('deploy_path', '/var/www/warehouse-gui');

// Custom tasks
after('deploy:update_code', 'npm:install');
after('npm:install', 'composer:install');
after('deploy:writable', 'nuxt:generate');

I see two options:

you unset deploy (unlikely)
You don't load your deploy.php

Just add a die('something'); to your deploy.php if this is called, then you know you are at 1. An then I would comment out each and every line until I find the scapegoat.
Good luck!

If I add die('something'); right after namespace Deployer; and run vendor/bin/deployer.phar deploy stage=production then my console outputs: "something".
I have to run vendor/bin/deployer.phar deploy stage=production as I have Deployer v6 installed globally which I cannot remove due to legacy projects requiring it.
Besides this, if I comment out every line and keep die('something'); then I get "something" in my terminal.
I beleive this is an error with Deployer as if I change my common recipe to the laravel recipe then it works, but my project isn't laravel, it's nuxt

Do you set deploy task?
I don't see it in your deploy.php
task('deploy', [
'deploy:release',
   // etc
]);


warp and box arts

box arts

Game
Super Mario Land (World) (Rev 1).gb
Box art
Super Mario Land (World) (Rev 1).png

I don't currently have any plans to add box art, but I'm not 100% against it. If I ever do add it, it's going to be a long time from now, though.


DeltaStorageHandler is not serializable

Environment
Delta-rs version: latest
Binding:
Python
Environment:

Cloud provider: all
OS: mac ventura, m1
Other:

Bug
What happened:
I am trying to add delta connector to Polars, but which doing a lazy scan polars tries to serialize function and objects, see here. This line breaks with the below exception as DeltaFileSystemHandler is not serializable I suppose,
TypeError: cannot pickle 'builtins.DeltaFileSystemHandler' object

It will be great if this could be serializable, otherwise on Polars side we will have to rely on fsspec or pyarrow.fs, bypassing the DeltaStorageHandler implementation altogether.
What you expected to happen:
Exception should not occur.
How to reproduce it:
You can use the following minimal code to reproduce this.
import deltalake
from deltalake.fs import DeltaStorageHandler
dsh = DeltaStorageHandler("./delta-table")

import pickle
pickle.dumps(dsh)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: cannot pickle 'builtins.DeltaFileSystemHandler' object

More details:

Hi @chitralverma - had a quick look into this it seems this is not natively supported by pyo3 modules. That being said, there are some pointers in an issue that I can explore to make this work.
Really looking forward to a polars integration - thanks! 👍

Hi @chitralverma - had a quick look into this it seems this is not natively supported by pyo3 modules. That being said, there are some pointers in an #pyo3/100 that I can explore to make this work.
Really looking forward to a polars integration - thanks! 👍

Thanks a lot


a small bug of s_server when not specify hostname

openssl version: 1.1.1b
when I use openssl s_server like this:
openssl s_server -cert *.crt -key *.key [-accept 4433](content in '[]' can be omitted)
it return me an error:
140737354036992:error:02004061:system library:socket:Address family not supported by protocol:crypto/bio/b_sock2.c:49:
140737354036992:error:2008C076:BIO routines:BIO_socket:unable to create socket:crypto/bio/b_sock2.c:50:
but in most last version(openssl 1.1.0 and before), if i don't specify hostname, it will set "localhost:4433" as the default host without error
Actually the problem happened in this way(kern function:app/s_socket.c, do_server()):
I don't exactly set the host name, when code come to function do_serve()->BIO_lookup_ex(), it will return me a list of addrinfo, the ai_family of the res contain AF_INET and AF_INET6, when the code come to line 247 in function do_server(), it will choose AF_INET6 as default ai_family, but actually my pc don't support IPV6, so it gives me an error.
In s_server.c, it set socket_family = AF_UNSPEC, when usr don't specify hostname, then function getaddrinfo(const char *node, const char *service, const struct addrinfo *hints,  struct addrinfo **res) in function BIO_lookup_ex() turn to be getaddrinfo(NULL, port, hint, res), even if my pc don't open IPV6, it will contain IPV6 ai_family(AF_INET6) in res.
I don't know if this is an exact bug, from the code in function do_server(), i think author wants us to use IPV6 as much as possible, but it seems like there are some problems in this way. Maybe the author expect user must specify the host when use s_server? If for such consideration, i think giving some statement or constrict in s_server would be better.

Please try 1.1.1c, this one should be fixed there although the fix introduced a small regression which is fixed in 1.1.1 branch in git.

@zk3326312 has the answer from @t8m resolved your problem? If not please let us know otherwise we will close this issue in due course.

it works, thanks for your answering,


Added new SAR/delegate-urls to Jaeger's OAuth Proxy

Signed-off-by: Juraci Paixão Kröhling<EMAIL_ADDRESS>

Depends on a Jaeger Operator version that incorporates jaegertracing/jaeger-operator#508

Why would we want to configure this?  I assume the Jaeger operator configures the proxy using a sensible authorization check already.
That said, this looks okay to me.

I think this should be sensibly defaulted in the jaeger operator itself.  I can't think of a reason why we'd want to change anything related to this.

Setting the delegate-urls means that the service account used by the pod containing the OAuth Proxy needs a cluster role binding with the role system:auth-delegator. Judging by the comments I've seen in the OpenShift OAuth Proxy issue tracker, this is something that not all users might want, so, I'd rather not have this in the Jaeger Operator as the default, at least for the moment.
If we later determine that this is indeed the right default for most use cases, we'll certainly be open to change it.

Judging by the docs, it also says this --openshift-delegate-urls is required to allow service account access.  It looks like we're giving those service accounts permission to create TokenReviews,, which I suspect is the equivalent of system:auth-delegator.
Given this, I wonder if we should configure the maistra proxies differently, or if there's another solution to this problem.  @jwendell, @knrc, opinions?

If you want this to be configurable, I think it would be better to just expose a boolean flag, instead of exposing the raw options to oauth-proxy exe, something like:
  security: oauth-proxy
  openshift:
    enableTokenReview: true

get pods on ${namespace} might not be the right permission in some installations. I'd rather keep it flexible and compatible with OAuth Proxy for this first release, until we learn what's appropriate and what users really want/need.

That's fair.  I would assume you would know who should have access to your service (e.g. based on the data it collects and will provide), but if this is too simplistic, I understand.
That said, it appears as if this is a security concern for us as well, so we may need to rethink the way we are using --openshift-delegate-urls in our own deployments.

Apparently we do something similar for prometheus/grafana so we need to revisit this, it's too much of a security risk if the deployments are compromised.

For the next release, we should at least set the SAR field, which should not require an elevated set of permissions.

This is covered in https://github.com/Maistra/istio-operator/pull/173, so we are safe to close this one.
Thanks @jpkrohling


Android: Fresh Comment Replies Don't Show

Find a story shared by a friend where they commented.  Reply to the comment via the app.  Comment doesn't immediately show up in the app.

Looked into this, and was reminded what a mess comments and shares are.  They are the only action that doesn't use the ReadingAction system to provide offline support, they don't correctly update the local DB and lazily wait for a sync cycle to set local state, and attempt unsuccessfully to manipulate views in-place, causing crashes if not for some ugly catch blocks.
When this reaches priority, this whole mess of AsyncTasks should be gutted and replaced with proper loaders and the network actions should be brought into the same abstraction set as the rest of the app.  Otherwise, chasing down this bug might take more time than fixing the tech debt.

I'd like to get this fixed. Once we release the latest beta, I'd like to ensure that the unchanging unread counts bug is fixed. On that happens, let's get to work on the remaining old-style network calls.

I have been working on this for a few days now and it should be in the next pull.

Hah, it is impossibly good timing that the new comment-on-uncommented shares feature just launched, since I am literally right on the line of code where that needs to be plugged it.  Working on it as we speak.

 I've got a build of iOS going out soon and I was planning on integrating this later this week.
Anyway, look for friend_shares. It's identical and friend_comments and all you need to do is adjust the icon size to be a bit smaller for both reshares and the original share. I also moved it to the middle (since it's smaller). Everything else was automatically handled by the exisitng code, so when I wrote it for both web and blurblogs, I only had to add a couple dozen lines of code.

Quick clarification (unrelated to the new feature):
Is it really true that each user can only have one top-level comment per story?  (I understand that there can be multiple replies to a given comment.)  The web UI seems to enforce this, and the Android code makes the same assumption, but the API data structure doesn't seem to specifically limit the cardinality in any way.
Never really noticed before, but I haven't ever seen multiple top-level comments by a single user.

Yes, that is correct. The only reason comments are in a list is to enforce date ASC order.

Still working on this.  The whole comments view was rather broken, so I am not only implementing the new reply-able shares, I am also fixing the base impl. (Fun fact: stories that had both comments by friends and the public only showed public comments.  Yay, discovering legacy code!)


Add a Conda-Forge recipe

Hi there,
This looks like a really promising project and seems to be the answer to my longstanding needs for automated GeoServer deployments. Would you be interested in a conda-forge recipe for Anaconda Python users? Upkeep is very simple (PRs are opened automatically on new PyPI versions and verification is all that's needed). I can help by contributing this if you're interested. Thanks!

Hi @Zeitsperre,
Thank you very much for the suggestion. I just added the package in anaconda(https://anaconda.org/iamtekson/geoserver-rest). I will send the PR to the conda-forge for sure.

The PR just got merged. Here is the anaconda version of this library: https://anaconda.org/conda-forge/geoserver-rest
You can install the package by using the following code,
conda install -c conda-forge geoserver-rest

Thanks for the suggestion.


DEBUG: playing around with travis to try fixing

This is a dummy PR to look at how Travis performs with different environments to help identify what's going on with MeshAdaptPUMI module

Doesn't look like this was successful, so I'm closing it for now but will leave the branch.


add privacy statement to CLI

For other internal teams, CELA requests we display the privacy statement to the user.
This adds onefuzz privacy_statement to display the privacy statement to the user.

For some reason, the privacy statement file isn't making into the binary packages.


Configure trivy-operator to use single ImagePullSecret from operator namespace without enabling global secret access

Discussed in https://github.com/aquasecurity/trivy-operator/discussions/2053

Originally posted by maltemorgenstern May  4, 2024
Hey there, I have a question about private registries.
We are running a private registry for all of our docker images (there are gatekeeper policies in place to enforce that only internal images can be deployed into the cluster). Therefore every deployment/namespace contains an ImagePullSecret with credentials to our registry.
Using the default trivy-operator configuration this works like a charm - and reports for all resources are being created (because the operator is using the ImagePullSecret from each workload to pull the image, see the docs).
The problem is that the default configuration comes with highly privileged permissions. Because operator.accessGlobalSecretsAndServiceAccount defaults to true, the deployed ClusterRole grants the operator access to all secrets in all namespaces - which is being criticised by our security team.
- apiGroups:
  - ""
  resources:
  - secrets
  verbs:
  - create
  - get
  - update

Based on this discussion instead of using the ImagePullSecret in each namespace one can configure the operator to use a different secret from other namespaces. In our case we would just reference the secret from the operator namespace which contains credentials that are valid for all images in the cluster:
operator:
  # Do not allow access to everything (to increase security)
  accessGlobalSecretsAndServiceAccount: false

  # Instead configure operator to read ImagePullSecret from its own namespace
  privateRegistryScanSecretsNames: {"trivy-operator":"internal-pullsecret"}

But this does not work - and all scan jobs fail with unauthorized errors.
Looking at the code the reason seems to be that privateRegistryScanSecretsNames requires accessGlobalSecretsAndServiceAccount to be enabled?
https://github.com/aquasecurity/trivy-operator/blob/4b1c6c3aed3e115ad1e4b62c51c73dcfcfa20e92/pkg/vulnerabilityreport/controller/workload.go#L255-L269
And - in general - I can understand this requirement - because if you reference a workload namespace as the secret source that cluster-wide access is required to read the data.
But if the namespace is the operator namespace this is not needed - because the default role already contains the required permissions to read kubernetes secrets:
https://github.com/aquasecurity/trivy-operator/blob/4b1c6c3aed3e115ad1e4b62c51c73dcfcfa20e92/deploy/helm/templates/rbac/role.yaml#L18-L25
Question

Is there currently a way to provide access to private registries without granting the operator access to all secrets in the cluster?
If not: what do you think about the idea to add another option for providing the credentials - which would be referencing a local ImagePullSecret and therefor not needing global access?

Kind Regard Malte

There is an open pull request for this feature waiting for review: #2161

The pull request is still open and awaiting a review.


Fix the hover text in VM summary page for Datastores

https://bugzilla.redhat.com/show_bug.cgi?id=1127941

@jzigmund when there is more than 1 Datastore for a VM, we seem to show each of them individually rather than a count.

So the BZ is incorrect in what it should say.  Since clicking on one of the links brings you to that Datastore, the hover text should read "Show this Datastore".

@dclarizio yep, it makes sense, updated PR.

@jzigmund text change looks good.  Could we get one more change and that's to make those links highlight like the other selectable links on the screen as well as have the mouse pointer change to a hand like the others?  You can't see the mouse pointer on this screenshot, but note how the row changes color . . . the row of the hovered over Datastore should change color the same way.

@dclarizio fixed highlight, updated PR.

Fix verified


License

Hi there :slightly_smiling_face:
I'm packaging this for the AUR and can't find a license. On what terms is this software made available?
Cheers!

Thanks! That's fixed now, teething problems with GH actions 😄


Implementation of anatomical network visualisations

[ ] I'm ready to merge

What's the context for this pull request?
(this is a good place to reference any issues that this PR addresses)

Created plotting anatomical network functionality
Issues: #126, #122

What's new?
plot_anatomical_network function (+ some visualisation_helpers functions) and the tutorial to illustrate how to use new tools

What should a reviewer feedback on?
Is documentation clear?
Are the produced (and saved into a file) plots publication-ready and look nice?

Does anything need to be updated after merge?
(e.g the wiki or the WhitakerLab website)
Info on the website will be automatically updated

link to compare nx plotting branch to Ruslan master branch
All changes here seem absolutely fine