Lower results obtained

Hi, thank you for your efforts in organizing and releasing the code. I tried the code on the SIIM segmentation task by carefully following the instructions on organizing/splitting the dataset and setting up the open mmsegmentation framework. However, using the provided configuration files, the results cannot be reproduced.
The pre-trained weights MRM.pth are downloaded from the provided link. Finetuning on 100% SIIM data gave Dice 90.7% and finetuning on 10% data gave Dice 69.1%, which are lower than the values in the paper (91.4% and 73.2%) especially when finetuning on 10% data.
Could you clarify how to reproduce the results? Thanks.

Hi, thank you very much for following our work!
I checked the training details of SIIM segmentation and adjusted some details of the learning rate and schedule, especially for finetuning on 10% data. I hope the adjustments are helpful, referring to https://github.com/RL4M/MRM-pytorch/tree/main/Siim_Segmentation/configs/mrm.
Thank you again and welcome to ask new questions to help us improve the code.

Thank you for your quick response. I tried to use the new configuration file "upernet_mrm-base_fp16_8x2_512x512_160k_siim_10per.py" and "schedule_5k" to finetune on 10% data, but got even lower results (67.03%) than before (69.1%).

I'm sorry for missing an important file when extracting core files from the complex code structure. See new commit(https://github.com/RL4M/MRM-pytorch/commit/694e67925f40e59af514819d439319142d2a1870) to get correct loss functions.

@harpergith
Hi Harpergith,
Have you tried our new commit? Are there any problems with your experiments? If you can reproduce our results, we would close this issue now.
Best,

Hi, Thank you for your quick efforts in improving the code. Now I can reproduce the results when finetuning on 10% data.

Hi, as observed in the SIIM segmentation task, the finetuning configurations matter a lot on the performance. Do you have plan to release the fine-tuning code/configurations of other classification datasets, such as RSNA pneumonia?

Hi, the code and other hyperparameters are the same for other classification datasets. It may be helpful to see https://github.com/RL4M/MRM-pytorch/blob/3730ba49a678eda870284205178bfe25627aaed8/README.md?plain=1#L87 for the references of warm-up steps, total steps, and learning rate.
Thanks for your advice.
Best regards,

Thank you for the update. This is very helpful.
Best regards,


versions:resolve-ranges very slow when parents contain lots of version properties

versions:2.17.1:resolve-ranges
The resolve-ranges goal takes a lot of time processing properties that are used in dependency versions (let's call them version properties) in parent projects . As far as I can tell the only version properties that need to be considered are those occurring in the pom of the current project because those are the only ones that could possibly be updated.
When using a parent with a lot of version properties (eg. spring-boot-dependencies) this leads to execution times of several minutes. This has already been reported for other mojos.
For instance the following pom takes 01:23 min and hits the repository with several hundreds of maven-metadata.xml requests.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>3.3.2</version>
  </parent>
  <artifactId>it-resolve-ranges-issues-todo</artifactId>
  <packaging>pom</packaging>

  <properties>
    <htmlunit.version>[2.6,3)</htmlunit.version>
  </properties>
</project>

Browsing the history of issues and pull requests I see the introduction of 'includeParents' in several mojos and methods (as a solution to for instance #367) to have caused this.
I don't think introduction of the includeParents parameter to the resolve-ranges mojo is the best solution, because as already stated in #837, setting this to false will sometimes lead to incorrect results. Instead, I am preparing a merge request that restricts the properties to consider to those that exist in the current project.

You should configure the resolution of transitive deps etc. via configuration
https://www.mojohaus.org/versions/versions-maven-plugin/resolve-ranges-mojo.html
And it might be a good idea to ignore the dependencyManagement depending your use case:
            <configuration>
              <processDependencyManagementTransitive>false</processDependencyManagementTransitive>
            </configuration>


Minor pre-submission changes

Citations
Don't promise non-existent appendix

Can we merge this? I think (but haven't confirmed) that it was included in the version I submitted to PeerJ.


how to restart client ?

when I close client and I want restart client .How can I do ?

means it will reauth ?


Force discount code not to have spaces

Currently discount codes can be created with spaces in them, for example "twenty off". We should probably not allow spaces.

Fixed locally


[python] Cloud Logging logic inaccurate

The use of the Cloud Logging library should be enabled when the processing job or web service are running in Cloud Run (jobs and service respectively).
This logic is currently based on if the K_SERVICE envvar is available, which is not accurate, as this envvar is not available in a Cloud Run jobs environment (by listing envvars in a job.
Need to update this logic (remove, or use another method to confirm where we're running) to ensure success. (including for other language placeholders)
Needs to log to Cloud Logging in:

Cloud Run jobs
Cloud Run service

But not in:

GitHub Actions
local development

As noted in https://github.com/GoogleCloudPlatform/terraform-cloud-client-api/actions/runs/8259386774/job/22593212622?pr=12
Trying to setup Cloud Logging universally will fail (e.g. in GitHub Actions).


Pip-audit does not deduplicate identical packages in multiple requirements files

Bug description
(venv) $ pip-audit -s osv -r requirements/base.txt -r requirements/test.txt
Found 2 known vulnerabilities in 2 packages
Name                  Version ID                  Fix Versions
--------------------- ------- ------------------- ------------
django-celery-results 2.2.0   GHSA-fvx8-v524-8579

Reproduction steps

Add a vulnerable version of some package to a "base.txt" requirements file.
Add the same package version to a separate "test.txt" requirements file.
Audit both the "base.txt" and "test.txt" requirements files at the same time using the command above.

Expected behavior
Pip-audit sees that the package names + versions are identical across both files, and reports only one vulnerability in one package. Example:
(venv) $ pip-audit -s osv -r requirements/base.txt -r requirements/test.txt
Found 1 known vulnerability in 1 package
Name                  Version ID                  Fix Versions
--------------------- ------- ------------------- ------------
django-celery-results 2.2.0   GHSA-fvx8-v524-8579

Screenshots and logs
Similarly, if applicable and possible, re-run the command with --verbose,
and paste the logs in the code block below:
(venv) $ pip-audit -s osv -r requirements/base.txt -r requirements/test.txt --verbose
DEBUG:pip_audit._cli:parsed arguments: Namespace(local=False, requirements=[<_io.TextIOWrapper name='requirements/base.txt' mode='r' encoding='UTF-8'>, <_io.TextIOWrapper name='requirements/test.txt' mode='r' encoding='UTF-8'>], project_path=None, format=<OutputFormatChoice.Columns: 'columns'>, vulnerability_service=<VulnerabilityServiceChoice.Osv: 'osv'>, dry_run=False, strict=False, desc=<VulnerabilityDescriptionChoice.Auto: 'auto'>, cache_dir=None, progress_spinner=<ProgressSpinnerChoice.On: 'on'>, timeout=15, paths=[], verbose=True, fix=False, require_hashes=False, index_url='https://pypi.org/simple', extra_index_urls=[], skip_editable=False, output=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.osv.dev:443
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 2
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 2 repeated many times
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 2
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 1360
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 2
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 2 repeated many times
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 2
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 1360
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 2
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 2 repeated many times
DEBUG:urllib3.connectionpool:https://api.osv.dev:443 "POST /v1/query HTTP/1.1" 200 2
Found 2 known vulnerabilities in 2 packages
Name                  Version ID                  Fix Versions
--------------------- ------- ------------------- ------------
django-celery-results 2.2.0   GHSA-fvx8-v524-8579

Platform information

OS name and version: RHEL 8.6
pip-audit version (pip-audit -V): pip-audit 2.2.1
Python version (python -V or python3 -V): Python 3.9.6
pip version (pip -V or pip3 -V): pip 22.0.4 from my project's venv/lib/python3.9/site-packages/pip (python 3.9)

Thanks for the report!
Yeah, de-duplication is something we should be able to do without too much trouble. The only catch is that we'll want to make sure it doesn't affect --fix, since duplicates should be handled gracefully across multiple fixed files.

(Re-tagging as enhancement, since this doesn't cause a crash or other functionality-compromising behavior).

Hi @juspence, do you still have the requirements file on hand? I'm not seeing this bug with mine:
(env) tetsuo@Alexs-MacBook-Pro pip-audit % cat requirements0.txt
flask==0.5
(env) tetsuo@Alexs-MacBook-Pro pip-audit % cat requirements1.txt
flask==0.5
(env) tetsuo@Alexs-MacBook-Pro pip-audit % pip-audit -r requirements0.txt -r requirements1.txt
Found 2 known vulnerabilities in 1 package
Name  Version ID             Fix Versions
----- ------- -------------- ------------
flask 0.5     PYSEC-2019-179 1.0
flask 0.5     PYSEC-2018-66  0.12.3

I'm thinking it may have something to do with whether the top-level requirement is the one that has a vulnerability or whether it's a dependency of a requirement.

Hi @tetsuo-cpp, we don't have any transitive dependencies in our files. We use pip-tools to iterate all dependencies, get a version + hash for each, and put all dependencies (including transitive ones) into a single file.
We then have multiple files with duplicated contents, one for each set of dependencies. So base dependencies only for deployment, base + local dependencies for development / debugging, base + CI dependencies for running tests, and so on. But even a file with only one dependency has this problem, like below:
(venv) $ cat requirements/base.txt
django-celery-results==2.3.1 \
    --hash=sha256:b8c9416619dbcc38f13398e31bcb1f14a228cd1e8f65fb22d3b7fc68aaa5331a \
    --hash=sha256:bf24ecc29c42e49cc7eb30b9b3739471331e2a0ca517cc88ca53a0cf3a2031d1

(venv) $ cat requirements/test.txt
django-celery-results==2.3.1 \
    --hash=sha256:b8c9416619dbcc38f13398e31bcb1f14a228cd1e8f65fb22d3b7fc68aaa5331a \
    --hash=sha256:bf24ecc29c42e49cc7eb30b9b3739471331e2a0ca517cc88ca53a0cf3a2031d1

Auditing the base and test files above still shows the same issue:
(venv) $ pip-audit -s osv -r requirements/base.txt -r requirements/test.txt
Found 2 known vulnerabilities in 2 packages
Name                  Version ID                  Fix Versions
--------------------- ------- ------------------- ------------
django-celery-results 2.3.1   GHSA-fvx8-v524-8579

(venv) $ pip-audit -s pypi -r requirements/base.txt -r requirements/test.txt
Found 2 known vulnerabilities in 2 packages
Name                  Version ID                  Fix Versions
--------------------- ------- ------------------- ------------
django-celery-results 2.3.1   GHSA-fvx8-v524-8579

(venv) $ pip-audit -r requirements/base.txt -r requirements/test.txt
Found 2 known vulnerabilities in 2 packages
Name                  Version ID                  Fix Versions
--------------------- ------- ------------------- ------------
django-celery-results 2.3.1   GHSA-fvx8-v524-8579

I tried with pip-audit==2.3.0 (what I had installed now) and with pip-audit==2.3.3 (latest).

Thanks for the information @juspence.
This is really weird. Even with those exact same requirements files, I'm seeing different results.
(env) tetsuo@Alexs-MacBook-Pro pip-audit % cat base.txt
django-celery-results==2.3.1 \
    --hash=sha256:b8c9416619dbcc38f13398e31bcb1f14a228cd1e8f65fb22d3b7fc68aaa5331a \
    --hash=sha256:bf24ecc29c42e49cc7eb30b9b3739471331e2a0ca517cc88ca53a0cf3a2031d1

(env) tetsuo@Alexs-MacBook-Pro pip-audit % cat test.txt
django-celery-results==2.3.1 \
    --hash=sha256:b8c9416619dbcc38f13398e31bcb1f14a228cd1e8f65fb22d3b7fc68aaa5331a \
    --hash=sha256:bf24ecc29c42e49cc7eb30b9b3739471331e2a0ca517cc88ca53a0cf3a2031d1

(env) tetsuo@Alexs-MacBook-Pro pip-audit % pip-audit -r base.txt -r test.txt
Found 1 known vulnerability in 1 package
Name                  Version ID                  Fix Versions
--------------------- ------- ------------------- ------------
django-celery-results 2.3.1   GHSA-fvx8-v524-8579

I'll try installing from PyPI and see if that's somehow different.

Ah, now I'm seeing it.
(pypi_env) tetsuo@Alexs-MacBook-Pro pip-audit % pip-audit --version
pip-audit 2.3.3
(pypi_env) tetsuo@Alexs-MacBook-Pro pip-audit % pip-audit -r base.txt -r test.txt
Found 2 known vulnerabilities in 2 packages
Name                  Version ID                  Fix Versions
--------------------- ------- ------------------- ------------
django-celery-results 2.3.1   GHSA-fvx8-v524-8579

Perhaps a commit has gone in that inadvertently fixed this issue. I'll try to find out which commit that is. Hopefully it should be as simple as cutting a new release and this should be fixed.

@juspence
If you upgrade to v2.3.4, this should now be fixed.
I'm going to go ahead and close this but please let me know if you run into any issues.


question:

What is your question? Please describe.
I'm writing a linux script to update a web page periodically with temperature/humity sensor values. I'd like each row to have room name (to identify the sensor), temperature and humidity. I can get list of sensors and properties (e.g. temperature) from  smartthings devices and  smartthings devices:status. In the ST app, get this info along with a room name for each sensor.  "smartthings locations:rooms" gives me a list of room name, location IDs, and room IDs. Is there a way to get a room ID for a device in the CLI?
Additional context
I apologize if I overlooked something obvious.

@paulvonbehren smartthings devices  accepts an optional argument that can either be a device ID or an index into the list it returns. The data returned from this command on a specific device will include the roomId if it is assigned a room.

Thanks for the quich resonse. I see the Room ID now.


How to get the speaker embedding duration training of base model?

Hi, I read in the paper that a x-vector encoder was pretrained to extract the speaker vector v.
there are two parts where the vector is used:  the LLM model and the flow-matching model.
then how did the speaker embedding generated for use in the two model training?
maybe 1)  During training, I get the x-vector with the current target speech mel as input.    v = x_vec(speech_target)
maybe 2)  During training, I get the x-vector with a random speech sample from the same speaker of current target speech as input.   v = x_vec(speech_x)   WHEN speaker_of(speech_x) == speaker_of(speech_target)
maybe 3)  During preprocessing, I get the average of all speechs' x-vector embedding under the same speaker to get a  static， fixed speaker embeding  for all samples of the same speaker. and then that value will be used during training and inference to label the speaker:   v = average( x_vec(all_speechs_of_current_speaker))
which one is the truth?

during training, we use xvec from the current speech, but actually you can also use random xvec for the spk, our code tried to do it by concate all utt embedding into spk embedding, but it takes too much disk space. Random xvec during training should improve zero shot inference performance

Thanks,  We had tried TorToiseTTS with speaker condition from the current speech, but the result is terrible, while the case to use random uttrance from the same speaker get accessable result. may be our dataset is too small,  we had less then 10k hours dataset.


[flutter_web] --web-header flag does not work for flutter drive

Steps to reproduce

Call flutter drive --help --verbose to see docs on how to use the --web-header flag:

   --web-header=<X-Custom-Header=header-value>              Additional key-value pairs that will added by the web server as headers to all responses. Multiple
                                                             headers can be passed by repeating "--web-header" multiple times.

Clone flutter repository, navigate to /dev/integration_tests/web_e2e_tests, run the test with a --web-header flag with --no-headless so that the browser window appears:

chromedriver --port=4444

flutter drive --target=test_driver/text_editing_integration.dart \
  -d web-server \
  --browser-name=chrome \
  --profile \
  --web-renderer=html \
  --web-header="test-header=test-value" \
  --no-headless

Inspect the headers the index.html and other files are served with.

Expected results
test-header with test-value appears as HTTP header for each file served by the server.

Actual results
The server doesn't add the HTTP header. The --web-header flag has no effect.

Code sample
Code sample
No code sample since the issue is reproducible on examples from the flutter repository. Refer to Steps to reproduce for details.

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel [user-branch], 3.27.0-1.0.pre.530, on macOS 15.1 24B83 darwin-arm64, locale en-PL)
    ! Flutter version 3.27.0-1.0.pre.530 on channel [user-branch] at /Users/shemhazai/Projects/GitHub/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.95.2)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 1 category.

Reproduced the issue using my simple setup with a minor update as below sample (add delay inside test). I can't observe header value using the sample code as reported since the test runs too fast (not sure how you observe it).

Sample test
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:repro_issues/main_counter.dart';

void main () {
  IntegrationTestWidgetsFlutterBinding.ensureInitialized();

  group("end-to-end test", () {
    testWidgets("tap on the floating action button, verify counter", (tester) async {

      await Future.delayed(Duration(seconds: 5));

      await tester.pumpWidget(const MyApp());
      // Verify the counter starts at 0.
      expect(find.text('0'), findsOneWidget);

      await tester.tap(find.byIcon(Icons.add));

      // Trigger a frame.
      await tester.pumpAndSettle();

      // Verify the counter increments by 1.
      expect(find.text('1'), findsOneWidget);

      await Future.delayed(Duration(seconds: 5));

    });
  });
}

Flutter versions (stable and master)
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.1 24B83 darwin-x64, locale en-VN)
    • Flutter version 3.24.5 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (32 hours ago), 2024-11-13 11:13:06 -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3

[!] Flutter (Channel master, 3.27.0-1.0.pre.511, on macOS 15.1 24B83 darwin-x64, locale en-VN)
    • Flutter version 3.27.0-1.0.pre.511 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision eaa99f28b1 (2 hours ago), 2024-11-14 17:38:26 -0800
    • Engine revision 619804c0fb
    • Dart version 3.7.0 (build 3.7.0-140.0.dev)
    • DevTools version 2.41.0-dev.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

Reproduced the issue using my simple setup with a minor update as below sample (add delay inside test). I can't observe header value using the sample code as reported since the test runs too fast (not sure how you observe it).
Sample test
Flutter versions (stable and master)

The default behavior of flutter drive is to close the browser after the test finishes so either you configure it to keep the browser window open after the test finishes or you add delay in your tests (like you did in your sample) to keep the test running. Sorry, should have written that.

@dtscalac what headers are you trying to pass? If you're trying to test with COOP/COEP for Wasm you could use --wasm.

@dtscalac what headers are you trying to pass? If you're trying to test with COOP/COEP for Wasm you could use --wasm.

@ditman COOP/COEP headers.
A little more background: I'm working on a flutter web application that uses flutter_rust_bridge, the package uses SharedArrayBuffer thus COOP/COEP headers are required.
Except from using flutter_rust_bridge the app I'm working on imports many other packages that are not supporting wasm compilation yet therefore compiling the app to wasm is not an option.

OK, so you're attempting to serve a Flutter JS app with COOP/COEP through flutter drive, if I understood correctly?
This probably should work, I wonder what's up with the flutter driver command. I'm going to assign a priority to this, we need to look at it (I might be looking at the flutter_tool next week, so if I do, I'll take a look "while I'm there)
Thanks for reporting!

OK, so you're attempting to serve a Flutter JS app with COOP/COEP through flutter drive, if I understood correctly?
Yes, correct.

Please have a look at #159039 PR, I've done initial investigation and provided a fix to address this problem.


[spi_host] Bug fix for spi_host_speed

spi_host_speed regression tests are failing for a long time with a zero pass rate. This PR includes 3 commits / fixes and increases pass rate to 100%.
In spi_monitor.sv, cmd value gets updated after first byte transmitted during command segment. But it should be updated at the end of the segment. First commit fixes that.
spi_host_speed test fails when a weak pull-up and an assign to zero concur, the signal becomes x. Second commit fixes that.
sck_polarity and sck_phase in vif do not have the correct value and this leads to sampling data on wrong edge of sck. Third commit fixes this error.
Fourth commit fixes drive conflict when spi_agent responsing read requests.
Signed-off-by: Abdullah Varici<EMAIL_ADDRESS>

With the last commit, pass rate:

Added @weicaiyang for review and approval.

Thanks for your feedback, @weicaiyang. We've noticed another drive conflict where the assignment on L103 seems to conflict with https://github.com/lowRISC/opentitan/blob/20e9432fe6eb2805766358cb67e971db693424a8/hw/dv/sv/spi_agent/spi_if.sv#L20. Simply removing the pull-up is not an option, though. We'll continue investigating tomorrow, unless this rings a bell for you?
We'll check removing the change related to sck_mode directly after that

Thanks for your feedback, @weicaiyang. We've noticed another drive conflict where the assignment on L103 seems to conflict with
https://github.com/lowRISC/opentitan/blob/20e9432fe6eb2805766358cb67e971db693424a8/hw/dv/sv/spi_agent/spi_if.sv#L20
. Simply removing the pull-up is not an option, though. We'll continue investigating tomorrow, unless this rings a bell for you?
We'll check removing the change related to sck_mode directly after that

SG, thanks @andreaskurth
FYI, I connected the spi_if as follows in spi_device TB. I don't see any driving conflict. Also LMK if you find a better approach for this in-out connection. I was struggled on this before and still don't know what the best practice is.
https://cs.opensource.google/opentitan/opentitan/+/master:hw/ip/spi_device/dv/tb/tb.sv;l=116?q=tb.sv&ss=opentitan%2Fopentitan:hw%2Fip%2Fspi_device%2F

I pushed another commit that fixes another drive conflict.

Instead of making following change: vif.sck_polarity -> sck_polarity[csid] I have initialized that value in spi_host_base_vseq.sv.

I reverted some of the changes in the last commit and applied other work arounds since the chip_sw_spi_host_tx_rx test was failing.

Thanks for your feedback and support, @weicaiyang! I think this is ready to be merged.


Move docs to Readthedocs

This implements #82
I corrected a ton of grammar errors and formatting problems with Sphinx. I also was so free to merge some sections of the readme into the docs and expanded them accordingly.
Demo is online at https://py-kms-demo.readthedocs.io/en/readthedocs/readme.html
@SystemRage To provide an official doc page someone has to register an own account and create the official py-kms documentation page. As always, I could do this for you and add you as maintainer later on - or you could do this and may add myself, so I could further maintain the page (completely optional). After this has been setup I'll create one further PR, which changes the links from the demo to the official one. If you need any help - don't hesitate to ask!
I really hope this huge change is welcome :grin: !

Created https://py-kms.readthedocs.io/en/latest/
and i added you as maintainer.
So you can point your demo to this new doc page.

@SystemRage All clear - I took a look into the build settings and they seem to be fine. All whats left now is to merge this PR, wait a couple of minutes and hopefully enjoy the new documentation! I already updated the urls inside the repo to point to the new docs - lets hope all goes smooth :smile:
I also modified the project settings to notify me on any doc failures...


Resize mode for sprite

Related issue and discussion: #411
Tested on sprite, breakout and texture_atlas examples on macOS.
Also tested in project from #411 on iOS and macOS with Automatic and Manual modes.
ResizeMode is exposed in case developer would need to change resize_mode value in systems.
Most (if not all) of the credit goes to @TheNeikos

Remade resize_mode into Component. I guess this should be better with the way bevy works (ecs and stuff).
This would probably change default behavior in case Sprite is used separately from SpriteComponents bundle.

@cart thanks for the input. It also looks almost like the first implementation. :)
Is there a reason to remove #[render_resources(from_self)] from Sprite component? Or #[render_resources(ignore)] wouldn't work otherwise?

I didn't know about #[render_resources(ignore)] ! That is useful. I am wondering if it would be better to use a Changed<Handle<ColorMaterial>> so that it doesn't get changed every run?

@naithar  Yeah we need to remove from_self because it assumes the whole struct is byte-convertable. But now that we're ignoring fields, it isn't directly byte convertible. We're currently discussing ways to improve the RenderResources derive to make it a bit more flexible, but for now I think the code above is our best bet.
TextureAtlasSprite doesn't ignore fields, so it is directly byte-convertible.
@TheNeikos We cant just use Change<Handle<ColorMaterial>> because that only runs the system when the handle itself changes (aka set to a new material). But we also want to run this system when the asset itself changes. We can track these changes by subscribing to AssetEvents, but it would complicate this code a lot. I think we should keep this pr scoped to adding resize mode.


Smaller branch

Minor tweaks

array += [] ; return array ==> return array += []
x if y unless z to x => x if y && !z
unless x y else z ; end => if x z else y ; end

/cc @Fryguy

Coverage increased (+1.8%) to 99.25% when pulling 16f61d0d82fed296b33f42a2037ce7d09a68f19e on kbrock:smaller_branch into 3a0a39157a71281922827f63ac947ad893aede63 on ManageIQ:master.

Ruby 1.8 error is sporadic. Will put in another PR for that

Coverage remained the same at 99.23% when pulling bf3bf88b1efe080a2c78ac969b752c3b0a9bb96b on kbrock:smaller_branch into 41e0caa903d2e7c644e49dc1c5136c398812d3ee on ManageIQ:master.

Coverage remained the same at 99.23% when pulling bf3bf88b1efe080a2c78ac969b752c3b0a9bb96b on kbrock:smaller_branch into 41e0caa903d2e7c644e49dc1c5136c398812d3ee on ManageIQ:master.


raw("\n") doesn't render a newline

Description
// not monospace, but works as expected
#{"a";"\n";"b"}

// monospace, but the newline isn't rendered
#{raw("a");raw("\n");raw("b")}

// workaround: use normal text for newlines
#{raw("a");"\n";raw("b")}

// workaround: add a trailing zero-width space
#{raw("a");raw("\n" + sym.zws);raw("b")}

// workaround: use `linebreak()` instead
#{raw("a");linebreak();raw("b")}

// workaround: add an additional `\n`
#{raw("a");raw("\n\n");raw("b")}

Something just seems off, and the behavior is inconsistent between using text() and raw(). A call to raw() with any number of \ns always renders one newline less than expected. I also think this used to work in an older version of Typst, but I didn't double-check that and I may be remembering wrong.
Also note that using raw("a\nb") does what you expect.
Reproduction URL
No response
Operating system
Web app, Linux
Typst version

[X] I am using the latest version of Typst

Probably related to https://github.com/typst/typst/issues/597

after 0.10.0 update, this issue seems to be fixed somehow, here's some tests I made:
#set block(stroke: aqua+.5pt)

#block({raw("a");raw("\n");raw("b")})

#block({raw("a\n");raw("b\n")})

#block({raw("a\n");raw("b")})

#block({raw("a\nb")})

#block({raw("a\nb\n")})

now only one trailing newlines at the end of consecutive text boxes get trimmed. This behavior seems acceptable as many coding styles suggest trailing newlines, it makes sense to trim one trailing newline with #raw(read("file"))
I can only guess this is caused by optimization that combines consecutive text boxes or something similar since I'm not familiar with any of the Typst's layout engin.

Should we close this then? I'd say it's working as intended now.

Before closing, I'd like to know why it works now, to ensure it's really fixed in all cases.

A bisect shows that this issue is fixed by d77356a16f3d2493709f5ebd78c0ce489a4fd98c.

Looks like std's str::lines eats the final newline:

The final line ending is optional. A string that ends with a final line ending will return the same lines as an otherwise identical string without a final line ending.


Rename charts presubmit to tinkerbell-stack presubmit

Issue #, if available:
Description of changes:
Rename charts presubmit to tinkerbell-stack presubmit to remove ambiguity in the presubmit name
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


LTR support?

@dsznajder I am from @vish2595 team, I am forking the library to add LTR support.
Issue Description: If RTL is enabled at the device level or the application level, the OTP boxes generated by the libarary get reversed, meanining the first box has the id 3 (if otp length is 4). Whereas the numbers in RTL must still be in LTR order. to support this I propose to add a forceLTR option that would calculate the IDs in reverse order.

@Rohithzr Thanks! If I can help you with something just give me a shout!


Feat: Github Actions

Auto-close PR if a commit is made into stable.

Auto-create a PR to merge development into stable every week.

@bou2201 dùng Squash and merge nha, k dùng merge bình thường nữa


https://graduate.edu.mn/ domain add pull request (GRADUATE UNIVERSITY…

https://graduate.edu.mn/ GRADUATE UNIVERSITY OF MONGOLIA
Please add the domain of the University.

@Alex03d First stage of verification passed, official domain is graduate.edu.mn as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@Alex03d Please provide us with:

an URL of a page on the official website where the school offers an IT-related long-term (>1 year) course.

Thank you.

@Alex03d You might miss my previous comment. Please react.

https://graduate.edu.mn/enrollment/

@Alex03d I am sorry, the website looks a stub. Moreover, there are no subjects specified at the website, which imply software development. I have to close this request without merging.
If you need to use JetBrains tools individually as a student, please apply for free educational license with an official document which proves that you are a student. You can do it using "OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students.
Thank you for your understanding!


Recommended way to handle errors when using streaming?

Hi! I'm starting to use streaming in an eventmachine process. Is there a way to intercept unhandled errors (such as a salesforce refresh token invalidated during the connection) on my side, to implement custom logic? Should I hook into the faye client directly?
Thanks for any guidance you'll be able to provide.

Afraid I've never used the streaming API so I'm not too sure. Might be
worth seeing if anyone else has had a use for it who can offer any ideas,
or you could try contacting people who've previously posted
streaming-related issues.
--
Tim Rogers
GoCardless.com https://gocardless.com
On Thu, Jul 7, 2016 at 9:36 AM, Thibaut Barrère<EMAIL_ADDRESS>wrote:

Hi! I'm starting to use streaming in an eventmachine process. Is there a
way to intercept unhandled errors (such as a salesforce refresh token
invalidated during the connection) on my side, to implement custom logic?
Should I hook into the faye client directly?
Thanks for any guidance you'll be able to provide.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ejholmes/restforce/issues/244, or mute the thread
https://github.com/notifications/unsubscribe/AAHFps5insHo_QOUNLjzOpXP72sVIt2tks5qTLqrgaJpZM4JG2xD
.

hey @thbar did you go through with that? I'm starting to create an application that will use streaming api to do some updates on my side but i'm afraid that the documentation doesn't really help

Hi @anacaet! I ultimately decided to stop using streaming and instead I'm relying on get_updated. I decided that because of concurrency limits on the streaming API (some connections would - if I understood well - go stale without sending me any error, so this was unreliable at the scale I was working on). Hope this helps!

Hi @thbar, thanks for the answer, can you share why did you stop to use the streaming API? I'm looking for options to receive updates from salesforce in my application, but my requirement is to get the update on real time, so I think that the streaming API is the option for me, but I'm not so sure.

@anacaet I cannot be much more specific, except to say I was using a large number of concurrent connections on many different Salesforce accounts at once. I would definitely recommend that you try the streaming API first, because it could work perfectly well for your own use cases!


Relaxation as a separate workflow step.

          Similar to the score does it make sense to separate the relaxation method, I am not familiar with posit so maybe these are very specific to this method and this makes sense here but more generally it might be nice to have other relaxation methods like they hybrid ML/MM stuff we have in FEGrow.

Originally posted by @jthorton in https://github.com/choderalab/asapdiscovery/pull/461#discussion_r1347694001

as far as I know there's no way to separate the relaxation stage out of the POSIT docking stage in OpenEye

Thanks @kaminow thats good to know Ill focus on other methods outside of OpenEye for now!


uORB test fix and re-enable on OSX

https://github.com/PX4/Firmware/pull/5280
The uORB test was disabled on OSX due to failures only seen on travis-ci.

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.)


Use an async invocation and async readback in WebGPU sample.

Checkpointing my progress getting WebGPU programs to run.
Program status:

simple_abs and fullyconnected run correctly, but there's an OUT_OF_RANGE error if you run them more than once
collatz has internal readback, so it fails trying to synchronously map buffers
mobilebert, posenet, and mobilessd have a few different errors in need of debugging

Code status in experimental/web/sample_webgpu/:

Now using iree_vm_async_invoke, but with iree_loop_inline and without updating the surrounding C or JS application code to work with async execution

I've made some progress on a loop_emscripten.h separate from this PR

Now reading back results using wgpuBufferMapAsync and a callback, along with some convoluted buffer manipulation
I might just rewrite the "sample" code once more programs are working

Addressed most comments, PTAL.


Add serialization builtin to Plutus

Add serialization builtin to Plutus, i.e.
serialize :: a -> ByteString

@michaelpj wrote,

Overall, I think it would be much better to figure out a way to get the typed value for the data script into the program, so you can use your own equality test to check whether it is what you want. Apart from anything else, this is much more flexible, and allows you to do other kinds of things than just equality.

But can we really get the typed value of an arbitrary the data script into an arbitrary program? The data scripts of outputs we want to check cannot be passed as typed arguments (like the data script paired with the validator in its own output). Hence, we need to embed them either as something like Data.Dynamic or as part of something like a heterogeneous list. Both boils down to providing runtime type information and a way to check it (in the spirit of Data.Typeable).
I do agree that this is a smaller hammer than adding meta-programming.

Heterogenous lists don't have to be runtime type information! The main problem with heterogeneous lists is that we don't want the validator to have to uniquely specify the number of transaction outputs and the types of their data scripts.
So what I thought was: what if there was a way for the validator to ignore some of them?
I haven't quite been able to make this typecheck, but I the idea is something like:

The data scripts are in a heterogeneous list (e.g. A :: B :: C :: Nil)
The validator accepts a heterogeneous list of data scripts as an argument, but it can care only about a prefix of it, i.e. it can expect A::B::_, where _ is any heterogeneous list.
At validation time the node constructs a heterogeneous list of all the transaction outputs and their data script types, although some of those will be ignored.

The main issue is how to make it so the validating node can just do things in a dumb way without having to be clever about performing type instantiations or anything.

@michaelpj What you are saying is that you can have a heterogeneous list if you specify all types (i.e., list of types of all elements as the type of the heterogeneous list), but we call this usually a record and not a heterogeneous list. Also what you are describing is kind of an extensible record like interface.
TBH, I think, having dynamic types is simpler; especially in PLC where we don't have datatypes.
Is there a connection to #581?

That's what's usually called a heterogenous list in the Haskell world, no?
I don't know whether hlists are hard. The simplest version is to encode them like tuples: it's a value forall R . A -> B -> C -> R. The issue is the "forget the tail" behaviour - is it possible to consume that value and get the A and B without knowing whether there are more values afterwards? I'm honestly not sure, but our system is pretty powerful.
Maybe adding dynamic types is simpler, but I don't have a good sense of that.
I think it's unrelated to that issue - as we've discussed before "dynamic" builtins are a bit of a misnomer, they're not dynamic in this way.

The issue is the "forget the tail" behaviour - is it possible to consume that value and get the A and B without knowing whether there are more values afterwards?

Yep:
open import Data.Product

postulate
  A B C D R : Set
  doSmthWithAtLeastTwoElems : ∀ {E} -> A × (B × E) -> R
  fourElems : A × (B × (C × D))

smth : R
smth = doSmthWithAtLeastTwoElems fourElems

I.e. instead of using an n-ary tuple you use n nested 2-ary tuples.

The problem with this is that suppose that the validator is doSmthWithAtLeastTwoElems and the validating node wants to feed it fourElems. Then the validating node needs to provide an instantiation for E! Which requires it to know how many elements the validators is expecting to consume, and do some annoying type analysis.

The problem with this is that suppose that the validator is doSmthWithAtLeastTwoElems and the validating node wants to feed it fourElems. Then the validating node needs to provide an instantiation for E!

I see. Yeah, that's unfortunate.
Do we have somewhere a complete description of this validation problem? I.e. what data scripts are allowed to contain, what validator scripts are required to validate and possible solution to the problem.

No, I don't belive I've written this up in full anywhere. Jann has brought it up in the past.

Would be great to have a complete description, because the problem seems complicated and important and because I do not think I fully understand everything and this is directly related to our Core language, so we have to be careful and there are plenty of people who can think about it.
@j-mueller, what do you think?

The problem that originally prompted us to consider the serialisation primitive and heterogeneous lists/dynamic types was validating the next data script but I'll try to write a better description now

See this picture. When validating the green input we don't know the values of the transaction's pay-to-script data scripts, because all we can see is their serialised form (ByteString). But there may be situations where we need to know the values of some of the outputs, for example to verify that they are what we expect them to be.
How would serialise :: a -> ByteString solve the problem? We could serialise the expected value and then compare that ByteString to the one in the transaction. But we couldn't do anything else with the new transaction's data scripts.
Another way to think of this is as a record, like in the vinyl package. In the picture I linked to, the signature of the green output's validator is something like Data -> Redeemer -> { hash1 :: S, hash3 :: T } -> () where the labels hash1 and hash3 refer to the transaction's outputs. So we should be able to run this script on any transaction that produces outputs to the hash1 and hash3 addresses, of types S and T.

Thank you, this is very helpful and I now understand the problem.
I'm not sure if Data.Typeable is feasible. I do not see any problems with it immediately, but who knows.
But maybe we can do something with dynamic builin types. I'll play with that.

I've spent some time thinking about this problem.

I'm not sure if Data.Typeable is feasible. I do not see any problems with it immediately, but who knows.

The Data.Typeable approach is going to be hard. The thing is, how do we reflect type binders at the term level? There are two options:

use well-typed contexts and first-order variables. We're not in Agda and this is going to be hard, but maybe feasible
use term-level binders, i.e. lambdas, i.e. a higher-order representation. But then how we decide equality of type indices using such representation? I guess only by instantiating lambdas in a first-order way, i.e. by falling back to 1. This is even more complicated than 1, because going from [P]HOAS to FOAS is very complicated in general. I'll play with that just in case

But maybe we can do something with dynamic builin types.

Our dynamic builtins are not crazy enough at the moment. Maybe in future we'll have sufficiently crazy builtins that allow to easily get reflection/meta-programming/something, but this is still an imperfect solution, because it's a huge hammer as we all agree.
So if we take a step back and think about this whole problem, then what we need is

some kind of "recoverable" existential typing
the ability to apply a well-typed function to an unordered set of tagged untyped elements, some of which may be redundant

Have we seen something like this in the wild? Yes, this is options parsing!
So any kind of first-order data can be serialized inside Plutus to bytestring and then deserialized back inside Plutus. The deserializer is determined by the expected type of the term that the bytestring represents. The expected type is determined by the hash associated with the bytestring. I.e. it's like the name of an option determines how to read the value of the option.
This is going to be annoying without type classes probably.
And that wouldn't work for higher-order data (like any kind of function), but then we can add the Dynamic primitive type to the language and the following primitive function:
getTyped : all a. dynamic -> maybe a

which calls our actual type checker being evaluated and either returns the value stored inside the dynamic or nothing if the type checker reports an error.
Unfortunately, at the moment we can't implement that, because we do not allow universal quantification in the types of builtin functions. That machinery was written long ago and for a very different purpose, so it needs a redesign.
@michaelpj, what do you think?

Doesn't your last suggestion of adding the dynamic type solve all the problems in one go? The data scripts can just be dynamics, and the validator can getTyped them to the types it expects, and fail if they don't match up.
I'm not totally sure how to implement dynamic, though. Internally I guess it's a Term, and we run the typechecker on it when we pull it out. But how do you create one? Do we have makeDynamic : forall a . a -> dynamic, does it get passed the AST? We have the substitution problem again - do we discharge the whole environment so it's a closed term?
So we'd need a fair few changes to the builtin machinery, but it seems promising. I hadn't thought about running the typechecker at runtime. That's a nice trick that I guess Haskell can't really use because it's runtime representation is different.

I agree that proper Data.Typeable looks hard. Reflecting our types in the language itself is a pain, and our types are in some ways even fancier than Haskell's types.
The serialize/deserialize inside Plutus approach makes sense... but how does the validator even get the serialized bytestring in the first place? Remember that data scripts can have any type, so we can't just insist they're always bytestrings. Then you need a way to work out that a data script has type bytestring... but that's basically just the original problem again!
I also don't think dynamic builtins are the right approach. For one thing, we're expecting them to change more-or-less on a per-chain basis, whereas the types we're talking about here might be different for each transaction. Unless we're willing to assert that all the data scripts on the chain have to have some special builtin type, which I'm not sure we are.

Doesn't your last suggestion of adding the dynamic type solve all the problems in one go?

Not quite, because we also need to solve

We have the substitution problem again - do we discharge the whole environment so it's a closed term?

The serialize/deserialize inside Plutus approach makes sense... but how does the validator even get the serialized bytestring in the first place? Remember that data scripts can have any type, so we can't just insist they're always bytestrings. Then you need a way to work out that a data script has type bytestring... but that's basically just the original problem again!

Can't we just require a data script to always has type bytestring? I.e. require to always serialize the contents of a data script. Note that it also solves the environment discharging problem, because you have to actually produce a bytestring, which is a constant and not an AST.

I also don't think dynamic builtins are the right approach. For one thing, we're expecting them to change more-or-less on a per-chain basis, whereas the types we're talking about here might be different for each transaction. Unless we're willing to assert that all the data scripts on the chain have to have some special builtin type, which I'm not sure we are.

No, that's not what I have in mind. With sufficiently crazy builtins we might be able to hack a way to get reflection/meta-programming for types, once and for all. But I do not think this would be a good approach in any case.

I mean, I think solving the substitution problem by just substituting everything in would be fine, tbh.

Can't we just require a data script to always has type bytestring?

I don't think so. If were willing to even require the data scripts in the outputs of a single transaction to all have the same type then things would be easy, since we'd just have a homogeneous list. But that was rejected as too restrictive (and I agree).

I don't think so.

I see. I assumed that would be an option. I'll think more.

I played a bit with PHOAS Typeable. Here is a tiny Agda model:
{-# OPTIONS --type-in-type #-}

infixr 5 _⇒_
infixl 7 _∙_

record Name {K : Set} (a : K) : Set where
  constructor name

data Typeable : {K : Set} -> K -> Set₁ where
  Var : {K : Set} {a : K} -> Name a -> Typeable a
  _⇒_ : {a b : Set} -> Typeable a -> Typeable b -> Typeable (a -> b)
  All : {K : Set} {f : K -> Set} -> (∀ {a} -> Name a -> Typeable (f a)) -> Typeable (∀ a -> f a)
  Lam : {J K : Set} {f : J -> K} -> (∀ {a} -> Name a -> Typeable (f a)) -> Typeable (λ a -> f a)
  _∙_ : {J K : Set} {f : J -> K} {a : J} -> Typeable f -> Typeable a -> Typeable (f a)

idTypeable : Typeable ((A : Set) -> A -> A)
idTypeable = All λ A -> Var A ⇒ Var A

fmapTypeable : Typeable ((F : Set -> Set) (A B : Set) -> (A -> B) -> F A -> F B)
fmapTypeable =
  All λ F -> All λ A -> All λ B ->
    (Var A ⇒ Var B) ⇒ Var F ∙ Var A ⇒ Var F ∙ Var B

I do not think this is going anywhere, because

we have quantification over kinds there
we need some kind of ObservationalTypeTheory-like equality in order to be able to use this

One other thing that occurred to me re: dynamic. If we want to run the typechecker on the term that means it needs to have all the correct types. But that means we need to actually do type substitutions during evaluation, whereas I believe at the moment we just ignore them.
Also dynamic would preclude us from an implementation via erasure to an untyped calculus.

But that means we need to actually do type substitutions during evaluation, whereas I believe at the moment we just ignore them.

True, but we can put encountered during evaluation types in an environment and supply that environment to the type checker when/if needed.

Also dynamic would preclude us from an implementation via erasure to an untyped calculus.

Is it the case that the content of a data script is trustworthy? If so, then in untyped calculus we can just feed a term directly to a function without running into the trouble of making types match. If that's not the case and we might expect one output to have a type A while it's actually of the type B, then we can't erase indeed.

Surely we can't implement getTyped : all a. dynamic -> maybe a in an erased calculus? It has to return Nothing if it's the wrong type, so we can't just go ahead regardless, the caller might want to do something in the case where it's the wrong type.

It has to return Nothing if it's the wrong type, so we can't just go ahead regardless, the caller might want to do something in the case where it's the wrong type.

I was thinking that we can always return Just, if we trust data scripts. And type checking is only needed to make types match, but not to ensure safety/correctness/etc.
So do we trust data scripts? Or what is the context around this situation?

I don't think it's a good idea to assume that Just is always the "right" answer. Consider for example how you might use this to implement a backwards-compatible consumer by doing a type test for previous versions of your input type. Then a Nothing answer might be fine - you just move on to the next test. Whereas returning Just would be terrible.

Before I learn some blockchain stuff to better understand the context around the problem, what do you think about the following?
Let's say we have this builtin function:
convert : all a b. a -> maybe b

It has this weird behavior: if a and b are definitionally the same, then convert is equal to just, otherwise it's equal to const nothing. We can't of course define such a function in Plutus Core, because it checks equality of types at runtime and we do not have a runtime representation of types, so we make convert a magic builtin. (We probably also do not want to give up on erasure, but this can be solved by erasing all types except those that can't be erased, something like a Proxy data type which stores a non-erasable type would work probably. Also we can't fully erase types with the other possible solution where we type check terms at runtime)
Having this function, we can make transaction output to be of the following type (I'm ignoring the value restriction problem for now):
list (hash × (all b. maybe b))

(where hash is an appropriate instantiation of bytesstring). Here is an example (in pseudosyntax):
txOutput : list (hash × (all b. maybe b))
txOutput =
    [ ("aaa", /\ b -> convert {integer 1} {b} (1!1))
    , ("bbb", /\ b -> convert {unit} {b} unitval)
    , ("ccc", /\ b -> convert {bool -> bool} {b} not)
    ]

And then we can do the option parsing thing that I talked above. For example if you need to get the part of the transaction output that has hash "ccc" and type bool -> bool, you just look up "ccc", get
/\ b -> convert {bool -> bool} {b} not

and instantiate b by bool -> bool:
convert {bool -> bool} {bool -> bool} not

which computes to not of type bool -> bool.
This way we get homogeneous lists that contain heterogeneous values inside which we can extract by supplying expected types of those values.
It doesn't seem like we can get away without having or faking some runtime representation of types. I believe we can't fully reflect Plutus Core types in Plutus Core itself, so we are left with either magical runtime representations or magical builtins (like the type checking builtin or the convert builtin), if we want transaction outputs to be heterogeneous. convert seems the simplest, but I do not understand everything properly yet, so I can miss something or suggest nonsense.

Cute. So we can represent dynamic as all b. maybe b and implement it using convert.
They seem equally powerful: we can implement convert as fromDynamic . toDynamic. But convert seems conceptually simpler.
I also don't think we can get away without some kind of runtime type checking. We already have a runtime representation of types, so we can use that, we just have to keep them around to check them.

I also don't think we can get away without some kind of runtime type checking. We already have a runtime representation of types, so we can use that, we just have to keep them around to check them.

Yes, but the beauty of reify types as terms is that you only keep those around that you really need.
@effectfully Your convert is Weirich's cast (but she uses exceptions instead of a Maybe to indicate failure): https://www.seas.upenn.edu/~sweirich/papers/cast/cast.pdf

@michaelpj,

So we can represent dynamic as all b. maybe b and implement it using convert.

They seem equally powerful: we can implement convert as fromDynamic . toDynamic. But convert seems conceptually simpler.

Agreed.
@chak,

@effectfully Your convert is Weirich's cast (but she uses exceptions instead of a Maybe to indicate failure):

I was going to suggest to use exceptions instead of Maybe. But then we also need to have catch in Plutus Core which I do think we want to have, because people sure like throwing errors in libraries which other people then use. Without catch an inappropriate error can be a deal-breaker. But that's a separate discussion.

https://www.seas.upenn.edu/~sweirich/papers/cast/cast.pdf

Thanks, I'll check that.

There is also Typing Dynamic Typing and A Lightweight Implementation of Generics and Dynamics.

But then we also need to have catch in Plutus Core which I do think we want to have, because people sure like throwing errors in libraries which other people then use. Without catch an inappropriate error can be a deal-breaker.

In our context, maybe, raising an error is actually a good plan. When we use these dynamics types for data script validation, we would have to raise an error anyway if the type conversion fails.

Big :-1: on throwing an error from me. I can think of at least one nice usecase which that would rule out: using type tests to provide backwards compatibility.
That way you can go "Is this the type I expect? If not, is it the last version of the type?" rather than blowing up immediately on the first one.

That way you can go "Is this the type I expect? If not, is it the last version of the type?" rather than blowing up immediately on the first one.

Good point!

@effectfully Your convert is Weirich's cast (but she uses exceptions instead of a Maybe to indicate failure): https://www.seas.upenn.edu/~sweirich/papers/cast/cast.pdf

There is also Typing Dynamic Typing and A Lightweight Implementation of Generics and Dynamics.

I studied all of those and I do not feel like they propose sufficiently good solutions in our case. First of all, they really only handle monomorphic types. Dealing with binders and polymorphism is much more complicated. But reflecting all types we have, I think, is just not possible, because we need to quantify over kinds and we do not have such a quantifier.
The convert thing that I suggest (let's call it cast indeed, though, I think coerce is more appropriate, but it's already reserved by Data.Coerce) handles all types, regardless of whether there is polymorphism or higher kinds. And it's really a pretty minimal thing: just one tiny primitive (that requires a rather intricate "typed builtins" machinery, but we need it for other things as well).

But reflecting all types we have, I think, is just not possible, because we need to quantify over kinds and we do not have such a quantifier.

Do we need to be able to reflect all types? (The Haskell solutions also all have restrictions, but are still useful in practice.)

Do we need to be able to reflect all types?

This is equal to "do we need to be able to put arbitrary types into data scripts?". I don't know the answer, but if we can easily avoid limitations, why not do that?

Yes, I'm also very in favour of avoiding arbitrary limitations. Limitations in the compilation target lead to weird errors in at the surface level, which I'd really rather avoid.

Closing because we now have monotyped Data: see #1436.


whoogle: init at 0.0.9, add module

Whoogle
Closes #167245
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

applied suggestions & reformatted

Please resolve the merge conflict. Then I'll merge soon.

@FliegendeWurst done :)

thanks for the thorough review! <3


Pot animation issue

Hello, I have been following the pot animation tutorial on the wiki page, but now after the pot has ended, the animation appear and then dissapear in a millisecond. Any toughts how i could fix this?

On following the Tutorial all will work

I did... :(

Okey I fixed it, I had 2 jquery scripts in my header


Automated cherry pick of #3374: lb: 创建时校验不通过返回httperrors

Cherry pick of #3374 on release/2.12.
#3374: lb: 创建时校验不通过返回httperrors

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.12@e957e5c). Click here to learn what that means.
The diff coverage is 0%.

@@              Coverage Diff               @@
##             release/2.12   #3375   +/-   ##
==============================================
  Coverage                ?   7.17%
==============================================
  Files                   ?     492
  Lines                   ?   80778
  Branches                ?       0
==============================================
  Hits                    ?    5798
  Misses                  ?   74493
  Partials                ?     487

Flag
Coverage Δ

#aFlag
7.17% <0%> (?)

Impacted Files
Coverage Δ

pkg/cloudcommon/db/virtualresource.go
0% <ø> (ø)

pkg/compute/models/loadbalancers.go
1.74% <0%> (ø)

Continue to review full report at Codecov.

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

/lgtm

/approve

/approve


Make the paths checkboxes bigger

So small an ant can't even click them. Let's make them full width/height of the cell.

While not able to make the actual checkboxes full size, I wrapped them in a label, allowing user to click within the entirety of a response/request td element to toggle the checkbox.


Different behaviors of raw_ops.Expm1 can be observed when jitcompiled=true.

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
2.14.0
Custom code
Yes
OS platform and distribution
Ubuntu 22.04.3 LTS (x86_64)
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
11.8
GPU model and memory
GPU 0: NVIDIA GeForce RTX 2070 GPU 1: NVIDIA GeForce RTX 2070 GPU 2: NVIDIA GeForce RTX 2070 GPU 3: NVIDIA GeForce RTX 2070
Current behavior?
In TensorFlow, enabling jitcompiled results in inconsistent behavior of raw_ops.Expm1.
Standalone code to reproduce the issue
https://colab.research.google.com/drive/1k9OjhFTmZNsj94JJ0lmJ-iiBL29-au00?usp=sharing

Relevant log output
File "/home/guihuan/LLM/results/tf-2/2023-10-22-20-21/test.py", line 42, in <module>
    tf.debugging.assert_near(no_op_res, op_res, atol=0.001, rtol=0.001)
  File "/home/guihuan/.conda/envs/night/lib/python3.9/site-packages/tensorflow/python/util/traceback_utils.py", line 153, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/home/guihuan/.conda/envs/night/lib/python3.9/site-packages/tensorflow/python/ops/control_flow_assert.py", line 102, in Assert
    raise errors.InvalidArgumentError(
tensorflow.python.framework.errors_impl.InvalidArgumentError: Expected 'tf.Tensor(False, shape=(), dtype=bool)' to be true. Summarized data: b''
b'x and y not equal to tolerance rtol = tf.Tensor(0.001, shape=(), dtype=float64), atol = tf.Tensor(0.001, shape=(), dtype=float64)'
b'x (shape=(10, 9, 8) dtype=complex128) = '
(-1+0j), (-1+0j), (nan+infj), ...
b'y (shape=(10, 9, 8) dtype=complex128) = '
(-1+0j), (-1+0j), (inf+infj), ...

@sachinprasadhs,
I was able to reproduce the issue on tensorflow v2.14 and tf-nightly. Kindly find the gist of it here.

I did not observe any inconsistencies when jit_compile = True and jit_compile = False.
It is failing in both the cases and resulting similar outputs.
Attaching the Gist here for reference.


Disallow the promise constructor

Hey - first of all great plugin!
Would be great to have a rule that disallows the promise constructor.
A good second alternative is a rule to disallow chaining promises inside the promise constructor.
This is to avoid explicit construction which is the most common code style error with promises.
On a tangent - I'm on holiday, but if any of you are up for participating in the promises-debugging team at Node.js that'd be very welcome :)

I believe we have a rule for what you're looking for (disallowing the promise constructor) - avoid-new.
I think your second suggestion is an interesting one that would be good to figure out how to represent in an ESLint rule. 😄

Closing because i think this is covered by avoid new. Please reopen if we missed something!


qmmp: 1.2.2 -> 1.2.3

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from qmmp.
meta.description for qmmp is: '"Qt-based audio player that looks like Winamp"'.

Checks done (click to expand)

built on NixOS
Warning: no invocation of /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3/bin/qmmp had a zero exit code or showed the expected version
0 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 1.2.3 with grep in /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3
directory tree listing: https://gist.github.com/7976b5bb20e3beca1d6890f2e1c99681
du listing: https://gist.github.com/8710761ab8211cabf7a630f2e39d4106

Instructions to test this update (click to expand)

One-time optional setup to skip building using Cachix:

Install cachix from https://cachix.org/
Use r-ryantm's cache:cachix use r-ryantm

Test this update by entering a nix shell, seeing what is inside the
result, and if applicable, running some binaries:
nix-shell --pure -I nixpkgs=https://github.com/r-ryantm/nixpkgs/archive/3dafe05d0570f89a6abc2c4618adea0c8bb437ce.tar.gz -p qmmp
ls -la /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3

cc @bjornfor for testing.

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: qmmp
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: qmmp
Partial log (click to expand)
shrinking /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3/lib/qmmp/Effect/libladspa.so
shrinking /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3/lib/qmmp/Effect/libcrossfade.so
shrinking /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3/lib/qmmp/Effect/libstereo.so
/nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3
shrinking /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3/bin/qmmp
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3/lib  /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3/bin
patching script interpreter paths in /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3
checking for references to /build in /nix/store/3sfmcyz5d82fskhw1fb4621jn7a9xa8a-qmmp-1.2.3...
postPatchMkspecs

Success on aarch64-linux (full log)
Attempted: qmmp
Partial log (click to expand)
shrinking /nix/store/22hi682b555aiwybl0yz111y389a9ddq-qmmp-1.2.3/lib/qmmp/Input/libflac.so
shrinking /nix/store/22hi682b555aiwybl0yz111y389a9ddq-qmmp-1.2.3/lib/qmmp/Input/libmad.so
shrinking /nix/store/22hi682b555aiwybl0yz111y389a9ddq-qmmp-1.2.3/lib/libqmmpui.so.1.2.3
shrinking /nix/store/22hi682b555aiwybl0yz111y389a9ddq-qmmp-1.2.3/lib/libqmmp.so.1.2.3
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/22hi682b555aiwybl0yz111y389a9ddq-qmmp-1.2.3/lib  /nix/store/22hi682b555aiwybl0yz111y389a9ddq-qmmp-1.2.3/bin
patching script interpreter paths in /nix/store/22hi682b555aiwybl0yz111y389a9ddq-qmmp-1.2.3
checking for references to /build in /nix/store/22hi682b555aiwybl0yz111y389a9ddq-qmmp-1.2.3...
postPatchMkspecs
/nix/store/22hi682b555aiwybl0yz111y389a9ddq-qmmp-1.2.3

Applied to master (f188e90ba1aeb5cef6011324be41af19558cc6e5).


feat(jobs/pingcap/tidb,pipelines/pingcap/tidb): split pipelines and jobs for tidb release 6.3

add newline at end


General Questions about Infer and the builtin Infer functions.

Greetings,
I found the following file:
https://github.com/facebook/infer/blob/fe21442d478dfcd07d9b6d5b67c1061899151225/infer/models/c/src/infer_builtins.c
Questions:

How are these functions used correctly if I want to run Infer?

How does one use Infer, to analyze a .c file without building a binary?

Does Infer also provide a builtin function which enables reachability analysis of certain points in the program? (Similar to something like  __VERIFIER_error(), which can be used in various SVcomp tools like e.g Ultimate, CBMC..)
i.e. something like  __infer_IsReachable(), which gives me a result similar to:
Program point  X is reachable / not reachable.

Example:
int main(){
  float x = 1.0f;
  if (x == 1.0f){
    some_error();
  }
}

Can Infer tell me that some_error() is reachable?

What kind of analysis is Infer using, are there issues with floats/doubles?
e.g. Trace Abstraction, Abstract interpretation, ...

Are NAN, INFINITY included in __infer_nondet_float() / __infer_nondet_double() ?

Im on Ubuntu 16.04.03  64 bit.
Thanks in advance  and kind regards,
Bree

How are these functions used correctly if I want to run Infer?

These functions are included as part of the models, you shouldn't need to do anything with them if you are just running Infer.

How does one use Infer, to analyze a .c file without building a binary?

Take a look at these two guides.

Does Infer also provide a builtin function which enables reachability analysis of certain points in the program? (Similar to something like __VERIFIER_error(), which can be used in various SVcomp tools like e.g Ultimate, CBMC..)
i.e. something like __infer_IsReachable(), which gives me a result similar to:
Program point X is reachable / not reachable.

We don't have this. The best way to approximate this is in the way that you describe: put a definite error inside of a branch (e.g., x = nullptr; y = *x) and see if it gets reported.

What kind of analysis is Infer using, are there issues with floats/doubles?
e.g. Trace Abstraction, Abstract interpretation, ...

Infer does not use very sophisticated numerical domains; it has a fairly simple solver that can symbolically evaluate some kinds of expressions. The focus is on the heap and on integer/boolean expressions; I don't think it can do anything with float/double constants. In general, I think Infer is not a good fit for doing sophisticated reasoning about floats/doubles (as least as things are today). But we would be very happy for someone to put some work into this.
The buffer overrun analysis probably has the fanciest numerical domains of all the analyzers: symbolic intervals with some extensions. @mbouaziz can say more about this.

Are NAN, INFINITY included in __infer_nondet_float() / __infer_nondet_double() ?

Conceptually yes, but I don't think there's any special logic inside the backend for dealing with these values.

Alright, thanks alot for the information.
So I can conclude that infer is not capable (at least yet) to handle floats/doubles?
Would you suggest running infer on c files which only use float/double, or is it pointless to do so?

Sorry for the late reply :(

So I can conclude that infer is not capable (at least yet) to handle floats/doubles?

You're right. Infer won't tell anything about the floats in your programs.

Would you suggest running infer on c files which only use float/double, or is it pointless to do so?

Yes, you can still find other kinds of bugs!


problem related to use module

How can I install it?

Thanks a lot for your help.Could you explain how download the module?? 😁Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Mehran Azimbagirad @.> Date: 15/06/2022  19:21  (GMT+03:30) To: Mehrancd/TsallisBrainSegmentation @.> Cc: 1191620 @.>, Author @.> Subject: Re: [Mehrancd/TsallisBrainSegmentation] problem related to use module (Issue #1)
you can download the module and add it to 3D Slicer-->Edit-->Application Settings-->Modules, then add the path of the module to "Additional module paths" and restart. It will appear somewhere in module lists in Example.
The module needs tensorflow, scikit,.... that automatically installs them. if you receive an error, push apply again might solve it.
if you need a fast processing, you should increase the voxel size using "resample scaler volume" tool.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.>
[
{
@.": "http://schema.org",
@.": "EmailMessage",
"potentialAction": {
@.": "ViewAction",
"target": "https://github.com/Mehrancd/TsallisBrainSegmentation/issues/1#issuecomment-1156575025",
"url": "https://github.com/Mehrancd/TsallisBrainSegmentation/issues/1#issuecomment-1156575025",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
@.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

you can go to Code and download Zip and later unzip it some where. If you can not see the Code, probably you are not sign in to Github.

thanks a lot for your complete answer. I follow your instruction and restart program but it is not available in my extension list and modules. where can I find it ?

No problem. probably you add only upper folder. Try to add the folder contains TsallisBrainSegmentation.py into setting->module. Then you will find it in:

You can also search through the module using:

thanks a lot. I could install and run it properly.
But now I am encounter with an error and while I watched the instruction video in youtube it has not been solved.

and when I ignore it , the program does not do expected results.

No problem. I will be happy if i can help. well, the image that you selected is not a good example. better to use T1 image like:

At first step, you need to create a label for the whole brain. Therefore, you need only to use the first part to extract a label like:

Then you can use the second part to segment brain to 3 materials as WM, GM and CSF. Therefore, you need to set brain mask and set new label for brain segmentation and press apply. it may takes several minutes (till 45 minutes) depends on resolution and PC.

Great. It is a little tricky to export a label as stl but very easy. just import the label inside "Segment Editor" using Segmentation->Import/Export nodes.

Then select Import and Labelmap and select the label in Input node and then press Import.

Then again go to "Segmentation" this time select "Export to file". there is stl and obj if you want to save one or multi color.
Good luck

That was perfect. you are the best . thanks a lot.


requirements of problem not clear.

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

function makeFriendlyDates(arr) {

  function dateEndings(val){

    switch(val){

      case 1:
      case 21:
      case 31:
        return val + "st";

      case 2:
      case 22:
        return val + "nd";

      case 3:
      case 23:
        return val + "rd";

     default :
        return val + "th";

    }

  }

  var temp = [];
  var dates = [];
  var converted = [];
  var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];

 for(var i in arr){

   temp[i]  = arr[i]. split("-");

   dates[i] = new Date(Date.UTC(temp[i][0], (temp[i][1]-1), temp[i][2]));

   converted[i] = months[dates[i].getUTCMonth()] + " " + dateEndings(dates[i].getUTCDate())   + ", " + dates[i].getUTCFullYear();

 }

var yearInMilliseconds = 1000 * 60 * 60 * 24 * 365;
var today = new Date();
var year = today.getFullYear();

  //first condition if it's in the current year

  if(dates[0].getUTCFullYear() === year && dates[1] - dates[0] < yearInMilliseconds){

    converted[0] = converted[0].substring(0, converted[0].indexOf(","));

  }

   //second condition , if the range is within an year
 if( dates[1] - dates[0] < yearInMilliseconds){

  converted[1] = converted[1].substring(0, converted[1].indexOf(","));

 }

  //third condition , is the same month of the same year

  if(dates[0].getUTCMonth() === dates[1].getUTCMonth() && dates[0].getUTCFullYear() === dates[1].getUTCFullYear()){

   converted[1] = converted[1].substring(converted[1].indexOf(" ") + 1);

  }

   return converted;
}

makeFriendlyDates(["2018-01-13", "2018-01-13"]);

my problem is with the same date solution... i dont get it what i have to display.

@Spartano what needs to be displayed for the same date is suggested to you in the tests:

makeFriendlyDates(["2018-01-13", "2018-01-13"]) should return ["January 13th, 2018"]

Happy coding!

i understand that, but it isn't explained in the problem requirements. Maybe should be added an extra requirement, for clarity sake.  For me personaly, when i saw the suggestion it make me think that my understanding of the problem was wrong. Thanks. Bye.


fix: reconcile PodMonitor labels and annotations

Closes #2582

/test limit=local

/ok-to-merge only unrelated failures in the test results


Defer regex construction to avoid static initialization

🦟 Bug fix
Mitigates a portion of #269.  Builds on #288 that moved the function to the cc file.
Summary
Checklist

[x] Signed all commits for DCO
[x] ~Added tests (N/A)~
[x] ~Updated documentation (as needed)~
[x] ~Updated migration guide (as needed)~
[x] codecheck passed (See contributing)
[x] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

I'm not sure if I'm reading it correctly, but the windows CI failure seems like an infrastructure flake and not a problem with the PR?

the windows CI failure seems like an infrastructure flake

Yup, I just retriggered it


cargo install wagi

Be great to set this project up so it can be installed with ease via:
cargo install wagi

We've evidently got crates.io publishing set up for Bindle, though I don't know much about it.  @thomastaylor312 is this something you set up?  Would it be easy to do for WAGI?

I haven't published a CLI only crate, but I know it does work. It should be as simple as copy pasting the same stuff we use to publish from bindle and creating a token for crates.io that we can use in the pipeline. Might be worth trying it manually at first with the person who wants to own the crate


Add script to build npm tarballs

Until we have #27
So both the Python and npm packages are built on CI and put in the extension-artifacts uploaded by GitHub Actions.

Looking good:


Documentation wrong?

Either the documentation is wrong, or we can't find the correct way to create and mutate the store (https://revolver-app.gitbooks.io/vuex-orm/store/creating-and-updating.html).
TL;DR: Use dispatch instead of commit.
We tried to work with your commit approach, but always got the message: [vuex] unknown mutation type: entities/user/create
actions.js:
export const setUserInfo = ({ commit }, val) => {
  commit('entities/user/create', { data: val })
}

component.vue:
<script>
  import { mapActions } from 'vuex'

  export default {
    methods: {
      ...mapActions(['setUserInfo']),
      async makeLogin () {
          const userData = { foo: 'bar' }

          this.setUserInfo(userData)
      }
    }
  }
</script>

models/user.js:
// User Model
import Model from 'vuex-orm/lib/Model'

export default class User extends Model {
  // This is the name used as module name of the Vuex Store.
  static entity = 'user'

//  static primaryKey = 'id'

  // List of all fields (schema) of the post model. `this.attr` is used
  // for the generic field type. The argument is the default value.
  static fields () {
    return {
      id: this.attr(null),
      gender: this.attr(''),
      username: this.attr(''),
      mailadress: this.attr(''),
      notification: this.attr(false),
      position: this.attr(''),
      avatar: this.attr(''),
      token: this.attr(null)
    }
  }
}

When we use dispatch in our actions.js, everything works just fine.

Oh yes, the documentation is wrong. Thanks for the mention.
You want to use dispatch instead of commit. So the following should work.
export const setUserInfo = ({ dispatch }, val) => {
  dispatch('entities/user/create', { data: val })
}

And for the side note, you can use commit (and dispatch) on root entities module. So the following will do the exactly same thing.
export const setUserInfo = ({ commit }, val) => {
  commit('entities/create', { entity: 'user', data: val })
}

// or

export const setUserInfo = ({ dispatch }, val) => {
  dispatch('entities/create', { entity: 'user', data: val })
}

I'll fix the doc!

For long-term: a working Demo would be great ;)
Maybe I'll commit one, when i have time...

That would be super awesome! (I'll try to make one too...


Please make a new release of this Library

as per commit https://github.com/m5stack/M5EPD/commit/2c69459385f6864c85a02918c9a6cbd9206a3668
you have fixed the analog import
the last release was on feb 13 2021...
thank you
ubi

@Gitshaoxiang is it possible? Could fix a couple of things.
Thank you in advance.

Okay, I will deal with it as soon as possible.


Encode auth signiture as string in JSON payload

Fixes an issue with Python 3 where encoding the base64 signature bytes in the auth JSON payload would fail with a TypeError.
Here is the error that is addressed in this pull request:
TypeError: Object of type 'bytes' is not JSON serializable

Makes sense to me! Do we have any unit test coverage of this?


Debag Console

Hi. How i can open debag_console? And how i can relocate old cheat on qo0 on new version? Thanks!

set & compile project in Debug configuration or use preprocessor definition DEBUG_CONSOLE. For continious integration of qo0-base updates you need to fork it and work on it, when commits will comes you'll be able to pull they, most of they will be automatically integrated into your source except breaking updates where needed to self correct to pull


Support elevated tab bar on ipad os 18

Added support for elevated tab bar on ipad os 18. This has been achieved by putting the tab screen inside NavigationStack. The relevant tweaks have been made to ensure that the look and feel remains the same on configurations where the tab bar is shown at the bottom.

@shafqat-muneer @rnr @saeedbashir Please review.

@mta452 Kindly add screenshot before the fix and after the fix for more clarity. Thanks!


Use separate counter for current running test no

If a test fails the counter gets decremented for currently running test as below
(1/15) Running aws-sdk-go tests ... FAILED in 2 minutes and 2 seconds
{
  "alert": "",
  "args": {
    "bucketName": "aws-sdk-go-test-1eajd2wam6amka",
    "expiry":<PHONE_NUMBER>0,
    "objectName": "presignedTest"
  },
  "duration": 121969,
  "error": "BucketAlreadyOwnedByYou: Your previous request to create the named bucket succeeded and you already own it.\n\tstatus code: 409, request id: 17DA1C8B8DB5BD18, host id: 4de9f6f45bfb3a31ea395f3d063545f58e6a1995d2b05dee6b579f19079a6455",
  "function": "PresignedPut",
  "message": "AWS SDK Go CreateBucket Failed",
  "name": "aws-sdk-go",
  "status": "FAIL"
}
(1/15) Running aws-sdk-java tests ... done in 1 seconds
(2/15) Running aws-sdk-java-v2 tests ... done in 2 seconds
(3/15) Running aws-sdk-php tests ... done in 41 seconds
....

okay


Security options for @type/pdfkit

Feature Request
Current version of @types/pdfkit does not have security options like JS has.
Source: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/855f629b5cdd572683a0dd271583d2ba1c415432/types/pdfkit/index.d.ts#L252
Is there something you guys are going to add into typescript?
@devongovett @blikblum

As far as I know, the latest @types/pdfkit already provides typings for security options.

This is not part of pdfkit. Contact author of package https://www.npmjs.com/package/@types/pdfkit.


Add delete button to pickupListItem in store view

Using onDelete binding from parent controller
calls updatePickups on each delete, because I had no idea where to remove the pickup in question (groupedPickups?)

Current coverage is 98.66% (diff: 100%)

Merging #219 into master will increase coverage by <.01%

@@             master       #219   diff @@
==========================================
  Files           108        108
  Lines          1644       1652     +8
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1622       1630     +8
  Misses           22         22
  Partials          0          0

Powered by Codecov. Last update dcea7bb...0b8faf7


Refactoring of MRIDataset

Further refactoring of MRIDataset.
This PR should also close https://github.com/aramis-lab/AD-DL/issues/57, as the number of patches / slices will be deduced from the nifti file if the tensor is not found.

Hello @14thibea! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file clinicadl/clinicadl/tools/deep_learning/data.py:

Line 46:57: E241 multiple spaces after ','
Line 294:25: E126 continuation line over-indented for hanging indent
Line 298:25: E123 closing bracket does not match indentation of opening bracket's line


amd64: arm64: Add kafka2 image

Fixes https://github.com/fluent/fluentd-kubernetes-daemonset/issues/456
out_kafka_buffered is marked as deprecated.
We should start to provide out_kafka2 based images.
Signed-off-by: Hiroshi Hatake<EMAIL_ADDRESS>

Could you update README to mention kafka2 is better?

Sure. Will do.

I'd added kafka image suggestion section as note:
https://github.com/fluent/fluentd-kubernetes-daemonset/pull/503/commits/f2ac5c30145fc7ea7fe0de8afbd33943c3a9410e


Move udf-examples source to external repository

To fix https://github.com/NVIDIA/spark-rapids/issues/4704
udf-examples was moved out to spark-rapids-examples/examples/RAPIDS-accelerated-UDFs,
The new nightly pipeline to build the udf-examples jar is ready, move the source code out from this repo.
Signed-off-by: Tim Liu<EMAIL_ADDRESS>

build

Draft it as Jenkins scripts for the new nightly pipeline are under review

There has already a PR for it. https://github.com/NVIDIA/spark-rapids/pull/4619


How to detach from the IronFocus window

Dear all,
I'm walking the first steps with Iron, and enjoying it...
...until I got stuck on a simple problem...
After running some interactive commands while in focus mode,
I am not aware of any way to detach from it, and continue writing code.
Is there a simple key combination I am not able to find?
Thank you!

Did you tried Ctrl + "-" This should return you to Normal Mode.
Also remember you can move through windows splits using Ctrl+W and "hjkl"

Dear @jotaefe0 ,
thanks for the suggestion!
I am afraid it didn't work.
I am not sure I explained what I am trying to do well...
As long as I use the REPL from the neovim editor, i.e. I send code to the REPL, everything is fine.
But if I get into my ipython session to write some test code from within, I can't get out. the vim bindings don't work, as I am inside ipython at that moment.
I guess there must be a way to detach without closing the session but I can't find it...
Any other idea is still welcome :)

@sntgluca does this help? https://vi.stackexchange.com/a/4922/36430

Dear all,
still no luck, at least for me...
Could you replicate the behaviour at all?
What do you do differently? Do you just use the hot-keys and never type anything interactively?

Hi all,
I learnt that I need to exit from the terminal mode.
A couple of discussion on the internet show that the solution is to use <C-> - maybe map it to something of our liking.
My personal choice, after I setup the Tmux navigator, has been
vim.keymap.set("t", "<space>F", "<C-\\><C-n>:TmuxNavigateLeft<CR>", opts)
Hope it helps someone else


Added Docker deployment documentation in README.md

as discussed in #29
Maybe change the section about the download site as well, as there is currently no download there?

LGTM

LGTM


recaptcha validation

Hello sir,
Please tick the box for «I am not a robot».
Is a solution or phishlets to bypass google recaptcha?
There is away to proxy the recaptcha validation ?
error : for the site owner: domain not valid for the site key

I'm having the same issues: recaptcha & cloudflare.
Example website (both recaptcha & cloudflare) : www.webhostingtalk.com

Hello Everybody! Did anyone solve this situation?? with Recaptcha. I am having the same problem with www.libero.it


Use nixpkgs licenses to convert from cargo license to nixpkgs license

Basically first check if the license is available as spdx, otherwise check if there is a full name available

This was resolved on master


Crashing to Safemode - even with tweaks disabled

Describe the bug
iPhone X iOS 12.1.2 - Normal system actions such as swiping up to go home or bring up app switcher. Rotating screen, etc.
To Reproduce
Happens randomly but same as above
Screenshots
https://pastebin.com/HmrSJQxK
Device (please complete the following information):

iOS Version: 12.1.2
iOS Device: iPhone X
unc0ver Version: b46 latest

Place an "x" between the brackets if true:

[?] this is a bug others will be able to reproduce
[ ] this issue is present with all tweaks uninstalled(except for default packages) or disabled
[?] this issue is present after a rootfs restore
[x] this issue is present on the latest version of unc0ver

Logs
https://pastebin.com/HmrSJQxK

Probably a tweak issue


add login page link to account request form

Overview
adds a link on the login page out to a form to request a login

Hi Kyle, thanks for this! I opened #241 that cleans up the UI and adds some missing imports for this. Will merge and deploy that.

Great, thanks!
From: Terence Tuhinanshu @.>
Date: Wednesday, September 13, 2023 at 12:05 PM
To: azavea/iow-boundary-tool @.>
Cc: Kyle Onda @.>, Author @.>
Subject: Re: [azavea/iow-boundary-tool] add login page link to account request form (PR #240)
Hi Kyle, thanks for this! I opened #241https://github.com/azavea/iow-boundary-tool/pull/241 that cleans up the UI and adds some missing imports for this. Will merge and deploy that.
—
Reply to this email directly, view it on GitHubhttps://github.com/azavea/iow-boundary-tool/pull/240#issuecomment-1717919579, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKQHTNUQN2NBGI2OINOK743X2HKUXANCNFSM6AAAAAA35PTX3I.
You are receiving this because you authored the thread.Message ID: @.***>


[Text Analytics] Omit TextAnalyticsApiVersion param from V3.0 authenticate_client

This PR omits TextAnalyticsApiVersion param from V3.0 authenticate_client

@suhas92 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@suhas92 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @iscai-msft - Thanks for your review! In the public repo, PRs need to be signed off by the author or another member of the content team or by a product PM. Thanks.
@aahill - Could you review the proposed update? Thanks!

@suhas92 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@suhas92 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Addressed in #141888 to the azure-docs-pr repo
#please-close


Scrollbar while viewing comments

Hi Simon,
Enjoy Harmonic app, thanks for improving it.
While reading comments regarding some story which has many comments, I have no idea how many more comments are still below unread. Can you add a scrollbar which gives us an idea about how much more comments are remaining below? Even though we may not be able to use scrollbar to scroll on mobile app, it will give reader am idea about how much more is pending as well as until where did he/she covered comments in case app restarts or goes to home page of app due to Android hibernatung it.
Regards,
Sourabh

Currently I am not able to view scrollbar in either Material UI dark or light theme.

Added a setting for this: https://github.com/SimonHalvdansson/Harmonic-HN/commit/3d6d0ecd1a5d8883e4c2dd065ab644f8401ce1a9


Can a user teach flutter doctor/tools about a specific XCode installation?

From Gitter (https://gitter.im/flutter/flutter?at=5840adc589d179bf4dee796c)
"I have two xcodes in my system xcode7.3 and xcode 8.1. When i run "flutter doctor", it keeps asking me to update the xcode to 8.1. Is there any argument i can pass to "fultter doctor" to use Xcode8.1"

cc @danrubel

Here is a way to teach your Mac to consider a specific version of XCode the default: http://stackoverflow.com/questions/25910796/how-to-set-xcode-version-as-default-in-my-mac
I'll close this for now, but if we want to teach flutter tools more, we can reopen.


removed style from wrapping div

Added style to props for optional dynamic wrapped div style

Added style to props for optional dynamic wrapped div style

Sorry, been out of town for a few days.  This looks good.  Will try and review closer tomorrow and update to new version for you.  Thanks making the improvement.


How to specify Swagger AnyType

I have a schema which returns a field which can be "any" type. In openAPI you can do this via https://swagger.io/docs/specification/data-models/data-types/#any
My zod schema looks like this:
export const errorSchema = z
  .object({
    error: z.string().openapi({ description: 'Brief description of the error.', example: 'Validation error' }),
    context: z
      .any()
      .openapi({
        type: undefined as any,
        description: 'Optional additional context for the error - for example validation errors.',
        example: '<valid-json-with-any-structure>',
      })
      .optional(),
  })
  .strict();

This is not accepted and I get the following error:
Unknown zod object type, please specify `type` and other OpenAPI props using `ZodSchema.openapi`.

@Siegrift  I am going to provide you with a multitude of options since I am not sure what would work best for you:
Providing type manually
When you provide a type manually you do not want to pass "undefined" as in the value undefined with a Typescript type of any. What you do want to provide is the string value 'any' (as in what needs to be added into the document).
So  in general passing a type should look like this:
context: z
      .any()
      .openapi({
        type: 'any',
        description: 'Optional additional context for the error - for example validation errors.',
        example: '<valid-json-with-any-structure>',
      })
      .optional(),

Any does not seem to be a valid type
The above being said I do not think that 'any' is a correct type. Based on https://swagger.io/docs/specification/data-models/data-types/#any I see that it should either be left empty or anyOf should be used. So I guess for z.any() you can do the following as the most semantically correct approach:
.openapi({
  anyOf: [
    { type: 'string' },
    { type: 'number' },
    { type: 'integer' },
    { type: 'boolean' },
    { type: 'array', items: {} },
    { type: 'object' },
  ],
});

Any is a bad practice in Typescript
I am a very opinionated Typescript fan. Overall using any is kind of an anti pattern in my opinion - you are just going back to JS. What I would suggest is using unknown - and for an API this is a slightly better approach. And if you do use z.unknown() then you would get the empty type out of the box since we've added the support for it.
Let me know what you think and if you need more information on any of the above topics

Hi, thanks for the response - the last option is what I wanted, but I didn't know I could use that :)
I actually tried both option 1) and 2), but they had some limitations. Writing it down just for the sake of completeness.

Providing type manually

I could pass "any" but then I would end up with any in the swagger (and that is not a valid swagger type). Also, the typings for the openAPI type are quite strict so I'd need to use as any, which feels a bit wierd (but iI wouldn't mind it if it accomplished the use case).

Using anyOf

Leads to the same issue as in the original description. If you use anyOf, there is no type so I end up with the Unknown zod object type, please specify `type` and other OpenAPI props using `ZodSchema.openapi`. error again.