redux example using stateful component

Hi team,
I have difficulties to use redux-zero with a Class based component. need to do as using animation for items and i could not get it working in the stateless manner.
can someone provide to counter.js class rewritten as a class Counter extends Component?
Best and many thanks in advance
Timo

Great question @tschnoelzer, you can do it like this:
import React, { Component } from "react";
import { connect } from "redux-zero/react";

import actions from "./actions";

const mapToProps = ({ count }) => ({ count });

class Counter extends Component {
  render() {
    const { count, increment, decrement } = this.props;
    return (

{count}

          <button onClick={increment}>increment</button>
          <button onClick={decrement}>decrement</button>

    );
  }
}

export default connect(
  mapToProps,
  actions
)(Counter);

Thanx Mat ... that was fast ;-) ... I checked that preact usage is similar ... perfect!


[tests-only] [full-ci] Bump core commit id for tests

Description
A number of test scenarios that use new chunking have been skipped, so they get removed from expected-failures. New chunking is planned to be implemented on OCIS.
After this, I will look for any remaining tests that use new chunking.
Similar reva PR is https://github.com/cs3org/reva/pull/1921
How Has This Been Tested?
CI
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Technical debt
[x] Tests only (no source changes)

Checklist:

[ ] Code changes
[ ] Unit tests added
[ ] Acceptance tests added
[ ] Documentation ticket raised:

Commits are yet to be squashed


Adding updated tutorials to demos repo

Tutorial updated to use cadCAD 0.4.17
Problems with parts 4 and 6. Part 7 WIP.
All git history preserved.

Very excited to try this out for a workshop next week :-D

The predator prey model @danlessa made is a great reference. Should we add it to this PR and update for cadCAD 0.4.x too, or create a new PR?
https://github.com/cadCAD-org/cadCAD/tree/b0b332eb59a067fadcfc398f1dbe93bcfd5689db/demos

The predator prey model @danlessa made is a great reference. Should we add it to this PR and update for cadCAD 0.4.x too, or create a new PR?
https://github.com/cadCAD-org/cadCAD/tree/b0b332eb59a067fadcfc398f1dbe93bcfd5689db/demos

Getting that model into this repo is definitely on our radar. One important thing is we want to preserve the git history for that model too, even though it doesn't have as much history as the robot and marbles tutorials. Would it be easier to accomplish that if we did it in this same PR? If not, I'd say we keep it in its own PR so it doesn't block this. Thoughts? cc @jzaki

BTW, this PR needs some additional refactoring to comply with cadCAD 0.4.18. Converting it to draft in the meantime.

The predator prey model @danlessa made is a great reference. Should we add it to this PR and update for cadCAD 0.4.x too, or create a new PR?
https://github.com/cadCAD-org/cadCAD/tree/b0b332eb59a067fadcfc398f1dbe93bcfd5689db/demos

Getting that model into this repo is definitely on our radar. One important thing is we want to preserve the git history for that model too, even though it doesn't have as much history as the robot and marbles tutorials. Would it be easier to accomplish that if we did it in this same PR? If not, I'd say we keep it in its own PR so it doesn't block this. Thoughts? cc @jzaki

Separate PR would be clearer.

@markusbkoch tutorials 1-6 work for me, and .gitignore conflicts are resolved.
NB, this PR does not contain tutorial outputs, but I can run and commit them if you're happy with the code updates.


Add exSat Testnet addresses for v1.4.1

I have read the CLA Document and I hereby sign the CLA

Hi @elmato,
To add a new address you must follow these steps: add-new-address-for-new-chains
I will close this PR, please open the corresponding issue.
Thank you.


Documented named tuple field inference in VB

Documented named tuple field inference in VB
Summary
This PR documents tuple named field inference, a feature introduced in Visual Basic 15.3.
Fixes #3945
Suggested Reviewers
@BillWagner @KathleenDollard

@BillWagner, I've addressed all of your comments. Also, "Latest" is supported for the <LangVersion> element.

I looked at the changes, and this LGTM.  :shipit: when you are ready.

Trying to reopening PR.


Added some unit tests to MarkedCircularBuffer

Motivation:
MarkedCircularBuffer was missing unit tests for some methods and
public attributes
Modifications:
Added several unit tests
Result:
Now MarkedCircularBuffer has better test coverage

@MarkusJais can you please fix the typo  (MarkuedCircularBuffer) in the commit message . Thanks!

I've run the Linux script again. There were no real changes, just indentation of a bracket in the Tests/NIOTests/MarkedCircularBufferTests+XCTest.swift file.
I hope this helps.

@swift-nio-bot test this please

hit #563 too

@swift-nio-bot test this please

@swift-nio-bot test this please

@MarkusJais thanks!


Zwcfg config file problems

Thanks for this great add-on. Very nice to see all the cool add-ons you created.
I tried to migrate from HA with Zwave with an Aeon Labs USB stick to this component. After configuring the basics I got the first nodes available in Zwave2Mqtt, but all the Zwave node information etc is empty because the add-on starts with a empty OpenZwave config.
I found the option to import an Zwave config file, so I uploaded my Zwcfg config file from the HA root directory but it looks that won't work. I don't see any difference.
After a few minutes a few of the 50 nodes I got have some Zwave node information. I give the Add-on a restart and after that all the node information was gone again.
So a few problems / suggestions for the manual:

Why the Zwcfg file import doesn't work. I don't see any error or something. Maybe because of the 1.4 <---> 1.6 difference?
Where in the add-on container is the local Zwcfg file located? I tried to find it but I can only find the /opt directory with the web application files but without the Zwcfg file.
Make the Zwcfg persistent so after a restart not all the node information is gone
An option to link an config file or something from outside the container inside would be great. So the config file could be on an central place instead of inside an add-on container.

Sorry, this issue must be in hassio add-on for this component.
https://github.com/hassio-addons/addon-zwave2mqtt/


Android app crash after starting

Bug
Hi, i used v1.0.1 and i tried to upgrade but now my android app crash when i start (build successfull). I tried other version like 2.0.0 but same problem. Do you know where it could come from?

Facing this issue.. please suggest some solution


Composer require not working

My Laravel version is10.9.0,I got this error message When i run composer require.
  - ramnzys/filament-email-log[dev-dependabot/github_actions/dependabot/fetch-metadata-1.4.0, dev-main, 0.1.0, ..., 0.2.2] require illuminate/contracts ^9.0 -> found illuminate/contracts[v9.0.0-beta.1, ..., 9.x-dev] but these were not loaded, likely because it conflicts
with another require.
    - Root composer.json requires ramnzys/filament-email-log * -> satisfiable by ramnzys/filament-email-log[dev-dependabot/github_actions/dependabot/fetch-metadata-1.4.0, dev-main, 0.1.0, 0.2.0, 0.2.1, 0.2.2, 9999999-dev].

yeah need upgrade

Hey, see https://github.com/RickDBCN/filament-email


[5.9] Fully enable ExperimentalStringProcessing

5.9 cherry-pick of https://github.com/apple/swift/pull/64817

Explanation: Fixes LLDB such that extended regex literals #/.../# can be used without needing to enable bare slash syntax. This also affects the Swift REPL.
Radar: rdar://107419385
Risk: Low, should only affect LLDB, and the change enables a feature that is already enabled for the compiler itself
Testing: Added tests to the LLDB test suite
Reviewers: Richard Wei, Stephen Canon

https://github.com/apple/llvm-project/pull/6584
@swift-ci please test

https://github.com/apple/llvm-project/pull/6584
@swift-ci please test Windows

https://github.com/apple/llvm-project/pull/6584
@swift-ci please test Windows


Does not work pip install httpie in OpenBSD with python 3

$ pip install httpie
Downloading/unpacking httpie
Downloading httpie-0.6.0.tar.gz (63kB): 63kB downloaded
Running setup.py egg_info for package httpie
Exception:
Traceback (most recent call last):
File "/home/snx/opt/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/basecommand.py", line 139, in main
status = self.run(options, args)
File "/home/snx/opt/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/commands/install.py", line 266, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/snx/opt/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/req.py", line 1062, in prepare_files
req_to_install.assert_source_matches_version()
File "/home/snx/opt/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/req.py", line 371, in assert_source_matches_version
version = self.installed_version
File "/home/snx/opt/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/req.py", line 367, in installed_version
return self.pkg_info()['version']
File "/home/snx/opt/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/req.py", line 334, in pkg_info
data = self.egg_info_data('PKG-INFO')
File "/home/snx/opt/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/req.py", line 274, in egg_info_data
data = fp.read()
File "/home/snx/opt/lib/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6047: ordinal not in range(128)

Same error at Debian 7.
Downloading/unpacking httpie
Downloading httpie-0.9.0.tar.gz (87Kb): 87Kb downloaded
Running setup.py egg_info for package httpie
Downloading/unpacking requests>=2.3.0 (from httpie)
Downloading requests-2.5.1.tar.gz (443Kb): 443Kb downloaded
Running setup.py egg_info for package requests
Exception:
Traceback (most recent call last):
File "/home/duchbeguice/p3k/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/home/duchbeguice/p3k/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/duchbeguice/p3k/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 1014, in prepare_files
req_to_install.assert_source_matches_version()
File "/home/duchbeguice/p3k/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 359, in assert_source_matches_version
version = self.installed_version
File "/home/duchbeguice/p3k/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 351, in installed_version
return self.pkg_info()['version']
File "/home/duchbeguice/p3k/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 318, in pkg_info
data = self.egg_info_data('PKG-INFO')
File "/home/duchbeguice/p3k/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 261, in egg_info_data
data = fp.read()
File "/home/duchbeguice/p3k/lib/python3.2/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8161: ordinal not in range(128)
Storing complete log in /home/duchbeguice/.pip/pip.log


Code for tutorial 10

The code for tutorial 10 seems to be missing.

I did not notice that. Thank you, I will commit and push those changes into the repository.

@all-contributors please add @SnkSynthesis  for helping with the fastapi-series

@all-contributors please add @SnkSynthesis for fixing and helping with the fastapi-series

@all-contributors please add @SnkSynthesis for fixing and helping with the tutorial fastapi-series

Closed.


Blazor eBook - Data chapter

Summary
Added the Blazor Web Forms eBook Data Chapter

Hi @csharpfritz - this is awesome, thanks for the pull request. This looks awesome, I just had a few minor things. 👍

Somewhere in the changes suggested, the code fence rows were deleted.  I have re-added them

@scottaddie @csharpfritz  Is this ready to merge? If so, can you complete the review?

Thank you for the reminder, @BillWagner. And thank you to @csharpfritz for his hard work and patience.


[Category Details Screen] Labels On Disabled Buttons Should Be Grayed Out

Description:
Currently on the Category Details screen, for a button that is disabled, the background of the button is properly grayed out but the label (and switch for the 'Show Category' button) are not. This makes it a bit more difficult for users to tell the difference between a button that is tappable and one that is disabled. We should update the buttons to look more like designs, or at least how they were prior to the screen's layout changes.
This issue ticket is related to #485 and is caused by changes made in PR #527 . Notes about the expected behavior are in the PR conversation, and original AC that define expected behavior of the buttons for specific categories can be found in the conversation of issue ticket #465 .
Acceptance Criteria:

[x] Labels on disabled buttons of the Category Details screen should be grayed out.
[x] Categories with disabled buttons:

[x] For 'My Sayings' -> the 'Remove Category', and 'Show Category' buttons should be disabled
[x] For 'Recents' -> the 'Edit Phrases' button should be disabled
[x] For '123' -> the 'Edit Phrases' button should be disabled

Design:
Example of a disabled button ('Remove Category') from the Category Details screen.
https://www.figma.com/file/mNrwUygVhTmuWnKNHHkenR/Vocable---Current?node-id=3641%3A27468
Screenshot(s):

Tested on PR branch and this issue has been fixed.
PR #536


How do I pass a custom VPC endpoint URL to Amazon.Runtime.AssumeRoleAWSCredentials

The Question
We are needing to receive messages from an SQS queue over an SQS VPC endpoint but first we need to assume a role over another STS VPC endpoint. Setting up the SQS client with the ServiceURL seems straightforward, but I can't figure out a way to instantiate the Amazon.Runtime.AssumeRoleAWSCredentials such that it makes requests to STS over a VPC endpoint. I noticed there is another Amazon.SecurityToken.STSAssumeRoleAWSCredentials class which allows me to pass my own STS client that can be configured any way I want, but it is marked as Obsolete. Is this missing behavior in STSAssumeRoleAWSCredentials's suggested replacement, or is there some other way of configuring the AssumeRoleAWSCredentials with a VPC endpoint that I haven't found?
Thanks!
Environment
AWSSDK.SQS <IP_ADDRESS>
AWSSDK.SecurityToken 3.5..1.45

This is a :question: general question

Hi @aaronlahey,
Good morning.
Thanks for posting the guidance issue. The example usage of Amazon.Runtime.AssumeRoleAWSCredentials could be find in the issue https://github.com/aws/aws-sdk-net/issues/1063. I'm not sure if you would be able to pass custom VPC endpoint URL. I'm not sure if the use case you are mentioning is a valid scenario since the AmazonSecurityTokenServiceClient is used to fetch credentials from STS service (see example https://github.com/aws/aws-sdk-net/blob/6d0f7f91920db3cc9af65ebc6ee2cfde04c591b0/docgenerator/AWSSDKDocSamples/SecurityToken/SecurityToken.GeneratedSamples.cs#L14). Could you post a working example where you are able to use custom VPC endpoint with  Amazon.SecurityToken.STSAssumeRoleAWSCredentials class?
Thanks,
Ashish

Hi @ashishdhingra! I'm not able to verify this code is working. I'm actually asking this question on behalf of someone we're working with. But, the STSAssumeRoleAWSCredentials takes a AmazonSecurityTokenServiceClient in the constructor which (I assume) can be configured any way one would like:
var userCredentials = new BasicAWSCredentials("awsAccessKeyId", "awsSecretAccessKey");
var stsClientConfiguration = new AmazonSecurityTokenServiceConfig
{
    ServiceURL = "stsVpcEndpoint"
};
var stsClient = new AmazonSecurityTokenServiceClient(userCredentials, stsClientConfiguration);
var assumeRoleRequest = new AssumeRoleRequest
{
  RoleArn = "roleArn",
  RoleSessionName = "roleSessionName"
};
var assumeRoleCredentials = new STSAssumeRoleAWSCredentials(stsClient, assumeRoleRequest);

Hi @ashishdhingra! I'm not able to verify this code is working. I'm actually asking this question on behalf of someone we're working with. But, the STSAssumeRoleAWSCredentials takes a AmazonSecurityTokenServiceClient in the constructor which (I assume) can be configured any way one would like:
var userCredentials = new BasicAWSCredentials("awsAccessKeyId", "awsSecretAccessKey");
var stsClientConfiguration = new AmazonSecurityTokenServiceConfig
{
    ServiceURL = "stsVpcEndpoint"
};
var stsClient = new AmazonSecurityTokenServiceClient(userCredentials, stsClientConfiguration);
var assumeRoleRequest = new AssumeRoleRequest
{
  RoleArn = "roleArn",
  RoleSessionName = "roleSessionName"
};
var assumeRoleCredentials = new STSAssumeRoleAWSCredentials(stsClient, assumeRoleRequest);

Hi @aaronlahey,
I'm not sure if using the STS VPC Endpoint in AmazonSecurityTokenServiceConfig is correct. Please refer section Create a VPC for AWS STS in documentation Using AWS STS interface VPC endpoints. It mentions that After you create the VPC endpoint, you must use the matching regional endpoint to send your AWS STS requests.. So you should be able to use existing client or credentials classes with the region set in the application profile. The STS VPC endpoint appears to be more like configuration thing at VPC level so that it can interface with AWS STS.
Thanks,
Ashish

@ashishdhingra I think I understand what you're saying. From what I've read you don't always need to set "Private DNS names enabled" to true. Enabling private DNS names says this:

Associates a private hosted zone with the VPC that contains a record set that enables you to leverage Amazon’s private network connectivity to the service while making requests to the service’s default public endpoint DNS name.

I think you can explicitly provide the vpce-xxxxxxxx.whatever.vpce.amazonaws.com endpoints to most services.
Enabling private DNS names, unfortunately, will not work in our case. We need to explicitly configure this endpoint.
The API docs for AmazonSecurityTokenServiceConfig say...

This is an optional property; change it only if you want to try a different service endpoint.

Is that not the right property to expclitly provide the vpce-xxxxxx URL?

@aaronlahey All config classes derive from Amazon.Runtime.ClientConfig. The ServiceURL property points to the service endpoint, in this case STS service endpoint. The documentation AWS Security Token Service endpoints and quotas provides list of service endpoints. The VPC endpoint in essence is not a STS service endpoint, hence, not valid for ServiceURL property for STS client.


fix: add max pagesize to http endpoints

Motivation
https://github.com/farcasterxyz/hub-monorepo/issues/1715
Change Summary
Add a simple MAX_SIZE to the pagination function
Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[x] PR title adheres to the conventional commits standard
[ ] PR has a changeset
[ ] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
[x] PR includes documentation if necessary.
[x] All commits have been signed

Additional Context
If this is a relatively large or complex change, provide more details here that will help reviewers

PR-Codex overview
The focus of this PR is to set a global maximum page size for all endpoints in the application.
Detailed summary

Added a global constant MAX_PAGE_SIZE with a value of 1000
Updated the getPageOptions function to limit the page size to the global maximum
Ensured that the page size does not exceed the global maximum limit

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Thanks @zachterrell57! Took your changes and added a changeset to merge them in here. Closing in favor of that.


WIP: TDesign Web Components V1.0 Roadmap

Components V1.0
### 基础构建及官网完善
- [x] 展示API列表样式优化
- [x] 增加示例右边栏导航
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/8
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/9
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/22
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/23
- [ ] https://github.com/TDesignOteam/tdesign-web-components/pull/1
- [ ] https://github.com/TDesignOteam/tdesign-web-components/pull/2
- [ ] https://github.com/TDesignOteam/tdesign-web-components/pull/4

### 待迁移组件
- [ ] Alert
- [ ] Avatar
- [ ] BackTop
- [ ] Badge
- [x] Button
- [ ] Card
- [ ] Comment
- [x] Divider
- [ ] Drawer
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/65
- [ ] Grid
- [x] Image
- [ ] InputAdornment
- [ ] InputNumber
- [ ] Input
- [ ] Link
- [ ] List
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/63
- [ ] Message
- [ ] Notification
- [x] https://github.com/TDesignOteam/tdesign-web-components/issues/62
- [ ] Progress
- [ ] Radio
- [ ] Rate
- [ ] Skeleton
- [ ] Slider
- [x] Space
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/45
- [ ] TagInput
- [ ] Tag
- [x] Textarea
- [ ] Timeline
- [x] Tooltip

### 待开发组件
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/10
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/11
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/12
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/13
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/14
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/15
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/24
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/16
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/17
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/18
- [ ] DatePicker
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/33
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/32
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/29
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/28
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/27
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/19
- [ ] https://github.com/TDesignOteam/tdesign-web-components/issues/20

antontang认领【BackTop】

antontang认领【BackTop】

radleyzhang认领【Card】

antontang认领【Alert】

v1.0待发版前问题走查集中修复：


ValueError: Instance images root doesn't exists.

Good day,
I'm trying to copy your walkthrough but I kept on encountering this error.
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[<ipython-input-1-536940ec9714>](https://localhost:8080/#) in <module>
    376
    377 import accelerate
--> 378 accelerate.notebook_launcher(training_function, args=(text_encoder, vae, unet))
    379 with torch.no_grad():
    380     torch.cuda.empty_cache()

2 frames
[<ipython-input-1-536940ec9714>](https://localhost:8080/#) in __init__(self, instance_data_root, instance_prompt, tokenizer, class_data_root, class_prompt, size, center_crop)
     76         self.instance_data_root = Path(instance_data_root)
     77         if not self.instance_data_root.exists():
---> 78             raise ValueError("Instance images root doesn't exists.")
     79
     80         self.instance_images_path = list(Path(instance_data_root).iterdir())

ValueError: Instance images root doesn't exists.

did you add your images in your gdrive under token name like this /content/gdrive/MyDrive/AI/training/parkminyoung
parkminyoung is the token name you will use after generating images

Hey man, it worked! Wrong thing I did was also set the root_folder as /content/gdrive/MyDrive/AI/training/parkminyoung instead of just leaving it as /content/gdrive/MyDrive/AI/training.
Thanks again for your work!


CoreML Conversion

Greetings,
I've tested the models on an M1 Mac & it works perfectly fine using the CPU. (Gets extremely slow for images with res higher than 512*512 though which I think is expected...)
I plan to use the models in a free iOS app & in order to do that, I have to convert the pth files to CoreML (so that it would be compatible in XCode).
Utilizing CoreMLTools, I did the necessary steps explained in the docs in order to convert the model:

The following lines of code were added to the end of generate.py file:

import coremltools as ct

def convert_to_coreml(torch_model, model_name):
    imgShape = (1, 3, 384, 384)
    example_input = torch.rand(*imgShape) # Example input, needed by jit tracer.
    traced_model = torch.jit.trace(torch_model, example_input)
    # Convert the model:   https://apple.github.io/coremltools/source/coremltools.converters.convert.html
    coreml_model = ct.convert(
        traced_model, # Traced Torch Exported Model
        # inputs=[ct.ImageType(name="Image Texture", shape=example_input.shape)],
        inputs=[ct.ImageType(name="Image_Texture", shape=imgShape, color_layout=ct.colorlayout.RGB)],
        outputs=[ct.ImageType(name="Texture_Map", color_layout=ct.colorlayout.RGB)],
        # skip_model_load=True,
        source='pytorch',  # Specify the source framework
        convert_to='mlprogram',
        minimum_deployment_target=ct.target.macOS13
    )

    # Save model in a Core ML `mlmodel` file
    coreml_model.save(f"{model_name}.mlpackage")
    print(f"Model saved as {model_name}.mlpackage")

## Convert each model to MLPackage/CoreML ##
for idx, model in enumerate(models):
    names = ['1x_NormalMapGenerator-CX-Lite_200000_G', '1x_FrankenMapGenerator-CX-Lite_215000_G']
    convert_to_coreml(model, names[idx])

And it was successful... almost.
The generated textures of the converted-CoreML model differs from the original Pytorch models... It's like that there's a red cover overlayed on top of the image:

Generated Normal map

Either the Displacement or the Roughness map (not sure)

That aside, the converted 1x_FrankenMapGenerator-CX-Lite_215000_G model only generates a single map & not two as in the original model.
I'm hoping that the maintainers might be able to find out what's wrong here. I'm guessing that there's a step not taking place in the converted models (it could have something to do with preprocessing the image, model parameters, or numerical precision).
I would be happy to use your experience on this issue, and I thank you in advance.

By the way, this is the terminal log when I ran the generate.py script:
$ python generate.py --cpu
/Users/alaa/Developer/Git/Contribution/Material-Map-Generator/generate.py:70: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
  state_dict = torch.load(model_path)
1 ssInput
Converting PyTorch Frontend ==> MIL Ops: 100%|▉| 1502/1503 [00:00<00:00, 8498.18
Running MIL frontend_pytorch pipeline: 100%|█| 5/5 [00:00<00:00, 79.62 passes/s]
Running MIL default pipeline: 100%|████████| 89/89 [00:01<00:00, 47.04 passes/s]
Running MIL backend_mlprogram pipeline: 100%|█| 12/12 [00:00<00:00, 83.94 passes
Model saved as 1x_NormalMapGenerator-CX-Lite_200000_G.mlpackage
Converting PyTorch Frontend ==> MIL Ops: 100%|▉| 1502/1503 [00:00<00:00, 6292.29
Running MIL frontend_pytorch pipeline: 100%|█| 5/5 [00:00<00:00, 78.49 passes/s]
Running MIL default pipeline: 100%|████████| 89/89 [00:01<00:00, 48.21 passes/s]
Running MIL backend_mlprogram pipeline: 100%|█| 12/12 [00:00<00:00, 83.43 passes
Model saved as 1x_FrankenMapGenerator-CX-Lite_215000_G.mlpackage


[Rough Nights & Hard Days] Wissenland Runefang qualities

Hello!
I would like to kindly ask about Wissenland Runefang qualities which are far away from what other sword of its kind represents - e.g. Solland Runefang. I know, all Runefangs made by Alaric the Mad were a little bit different each other. However, there are big differences between those two:
Wissenland runefang: +SB+4
Solland runefang: +12 and ignores TB and Armour!
Moreover Wissenland Runefang is set as "Common" availability with price 1 Golden Crown. Such item should be priceless (as there are only 12 of them).
Why am I asking about this? Well, my players would like to make whole campaign to gain access to Wissenland Runefang (previously they swap Kurt Helborg's Solland Runefang with fake one - do not ask, their rolls and ideas were crazy). Now as great thieves party they want to do the same with Wissenland Runefang but I don't want to let them down with way worst statistics of Wissenland Runefang (in compare to Solland rf).
Is this kind of bug? What should I do?
Best regards,
VilFrom: Vil#3210foundry: 10.291wfrp4e: 6.3.1wfrp4e-core: 3.0.4wfrp4e-rnhd: 3.0.3wfrp4e-starter-set: 3.0.2Active Modules:

No stats provided in the book


alacritty: 0.7.2 -> 0.8.0

Motivation for this change
Released 11 hours ago https://github.com/alacritty/alacritty/releases/tag/v0.8.0
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 123714 at 98a24ebb run on x86_64-linux 1

3 packages built successfully:

alacritty
tests.trivial
wio

1 suggestion:

warning: stale-substitute
Stale substituteInPlace detected.
substituteStream(): WARNING: pattern 'xdg-open' doesn't match anything in file 'alacritty/src/config/mouse.rs'
Near pkgs/applications/terminal-emulators/alacritty/default.nix:129:0:
    |
129 |     description = "A cross-platform, GPU-accelerated terminal emulator";
    | ^

https://github.com/NixOS/nixpkgs/pull/123714

3 packages built:
alacritty tests.trivial wio

was able to launch a terminal window

@figsoda thanks! applied patch.


chore: release 1.3.0

:robot: I have created a release *beep* *boop*
1.3.0 (2021-08-29)
Features

add an error message that the routing parameters cannot be resolved (ea267cb)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/keq-request/keq/releases/tag/v1.3.0 :sunflower:


Disclaimer on Link Change

Please add a disclaimer to the link that the link is changed from Fall 2019 Edition - to the Spring 2020 edition - since the links are not compatible - the 2019 link does not worki with 2020 - took me some hours to figure this out :-(

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

ID: b47fa31e-8e71-8bd4-eb12-7a0ceba6c1b8
Version Independent ID: 209284ba-cf2b-59fd-0235-420bd99eb5ef
Content: Connect Windows Virtual Desktop web client - Azure
Content Source: articles/virtual-desktop/connect-web.md
Service: virtual-desktop
GitHub Login: @Heidilohr
Microsoft Alias: helohr

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

This comment has been addressed with an earlier update. #please-close


unresolved import core::sync::atomic::AtomicPtr

I'm getting the following error when compiling for atmega32u4. Any ideas?
error[E0432]: unresolved import `core::sync::atomic::AtomicPtr`
 --> C:\Users\user\.cargo\registry\src\github.com-1ecc6299db9ec823\usb-device-0.2.9\src\bus.rs:6:26
  |
6 | use core::sync::atomic::{AtomicPtr, Ordering};
  |                          ^^^^^^^^^
  |                          |
  |                          no `AtomicPtr` in `sync::atomic`
  |                          help: a similar name exists in the module: `AtomicI8`

That would be because AVR doesn't have atomic types (of that size), so the standard library does not implement them.
Using atomic-polyfill would be an option these days, without changing the rest of the architecture.

Ahhh right. I presume that would just be a matter of forking usb-device and replacing core::sync::atomic::AtomicPtr with atomic_polyfill::AtomicPtr?
I'll try it out later today.
I wonder then if it would be worth providing a feature in usb-device, which does this.

I've also seen this, which mentions atomics on AVR: https://crates.io/crates/portable-atomic

That crate looks like it does a similar thing. As far as I know both of these are supposed to be drop-in replacements for platforms with atomics, and only require extra configuration on platforms that do not support atomics, so a feature might not even be necessary.

As I was implementing it, I noticed the same thing and was about to type exactly what you said. I might format this as a PR once I've confirmed it working.

Ok that's compiled. In order to test I'm going to have to finish writing my usb device test code. Hopefully shouldn't take too long.
My usb-device branch with polyfill alteration can be found here: https://github.com/alexmadeathing/usb-device/tree/atomic-polyfill

It seems I should also be able to set the max-atomic-width in my target spec.
https://github.com/Rahix/avr-hal/issues/40#issuecomment-740626847

Ok that's what I'm going with. I'll be deleting my fork and I'll close this issue.

@alexmadeathing Isn't that for native atomics? Does AVR actually have atomic instructions? Or does it pull in the clang builtins that the rest of Rust seems to avoid?

I don't know tbh. I guessed that if it compiled, there's probably a working intrinsic implementation. The atmega32u4 datasheet has example code for how to implement them and I've seen chat on the Rust project mentioning avr atomics, but I couldn't find anything definitive that suggests how they've implemented them. I'm slightly out of my depth though as this is my first rust embedded project.
From the datasheet section 14.2, it seems there are no atomics at the instruction level, but they provide this example implementation:
TIM16_ReadTCNTn:
; Save global interrupt flag
in r18,SREG
; Disable interrupts
cli
; Read TCNTn into r17:r16
in r16,TCNTnL
in r17,TCNTnH
; Restore global interrupt flag
out SREG,r18
ret


Is it possible to install two GHC versions (and two Cabal versions)?

Is it possible to install two GHC versions (and two Cabal versions[^1])? I encountered a situation where I want to build a project with ghc-9.8.2 and cabal-install-<IP_ADDRESS> but to get there I need to first run a Stack script that needs other versions installed. Stack will do that for me but it takes a long time, about 10 mins on Github's runners.
#!/usr/bin/env stack
-- stack script --resolver=lts-18.27 --package=base --package=dhall --package=filepath --package=text

Stackage snapshot LTS 18.27 specifies GHC 8.10.7. GHC 8.10.7's Cabal boot library is Cabal-<IP_ADDRESS>.
From https://github.com/commercialhaskell/stack/issues/6588#issuecomment-2121204982

[^1]: I'm not sure exactly what Stack needs to get going here, perhaps it is just ghc-8.10.7 with included Cabal boot library?

Did you try to run the action twice?  The action does not uninstall GHC or cabal, afaik, so maybe this just works?
Of course, different versions of cabal are not entirely compatible, and they use the same store, so this could cause problem.  (E.g. alternating between cabal version will cause it to rebuild the index cache at each switch.)

Did you try to run the action twice? The action does not uninstall GHC or cabal, afaik, so maybe this just works?

Yes it looks like installing twice works, as can be seen in this trial run where I install ghc-8.10.7 for the scripts of Updo and other versions of GHC for building the project I'm testing. Stack itself is not happy with this set up and takes ages to compile .stack/setup-exe-src/setup-shim-HwdwpEmb.hs.

Here's a simpler workflow and its output that shows it is possible to install two versions of GHC.
name: stack

on:
  push:
    branches: [main, ci/check-versions]
  pull_request:
    branches: [main]

jobs:
  build:
    name: ghc-${{ matrix.vers.ghc }}
    runs-on: ubuntu-latest
    strategy:
      matrix:
        cabal: ["<IP_ADDRESS>"]
        vers:
          - {ghc: "9.8.2", stackage: "nightly-2024-05-18"}

    steps:
    - uses: actions/checkout@v4

    - name: Set up GHC and cabal-install from matrix
      uses: haskell-actions/setup@v2
      id: setup
      with:
        ghc-version: ${{ matrix.vers.ghc }}
        cabal-version: ${{ matrix.cabal }}
        enable-stack: true
        stack-version: '2.15.7'

    - name: Set up GHC 8.10.7 by itself
      uses: haskell-actions/setup@v2
      with:
        ghc-version: "8.10.7"

    - name: Check installation
      run: |
        ghc --version
        ghc-9.8.2 --version
        ghc-8.10.7 --version
        cabal --version
        stack --version

Make sure to use the --system-ghc option to stack lest it should install GHC again...

Make sure to use the --system-ghc option to stack lest it should install GHC again...

I culled that step from the check installation run. In a previous run, tried the same setting as --system-ghc but through setting the stack global config options:
    - name: Configure stack
      run: |
        stack config set system-ghc --global true
        stack config set install-ghc --global false
        stack config set resolver ${{ matrix.vers.stackage }}


Feature/drupal

This adds the Drupal coding standard to the tool.
I can imagine an alternative approach to this would be to allow the addSearchPath call to be a parameter that is passed or set somehow. I did not explore this scenario.
For my own future reference, it took me looking at src//DependencyInjection/CompilerPass/FixerWhitespaceConfigCompilerPass.php to understand why the sniff wasn't getting loaded. Also  phpcs -e --standard=Drupal can be used to get a list of sniffs.

Hi, thanks for contribution. It makes sense to me.
But this is just a READ-ONLY repo. To add your PR, go to https://github.com/symplify/symplify

@TomasVotruba I am currently using this repo in https://github.com/goalgorilla/open_social/pull/2584 for enhancing coding standards. I do want to adopt automatic checking of drupal standards which are provided by https://www.drupal.org/project/coder, would it be possible for you to guide me on whether this is needed or how can we do it?


[#4132] feat(bundled-catalog): remove all propertiesMeta from bundled catalog

What changes were proposed in this pull request?
remove all propertiesMeta from bundled catalog
Why are the changes needed?
Fix: #4132
Does this PR introduce any user-facing change?
no
How was this patch tested?
existing tests

@yuqi1129 , could you help to review this PR, thanks

@FANNG1
Could you please collect the CI pipeline?

@FANNG1 Could you please collect the CI pipeline?

fixed, please help review again

I have the following concerns:

Is it still proper to name the module bundled-catalog as we are going to use constant values to replace the previous one?
is it suitable to put it under catalogs fold now.

I have the following concerns:

Is it still proper to name the module bundled-catalog as we are going to use constant values to replace the previous one?
is it suitable to put it under catalogs folder now.

yes, this module aims to provide common logic and constants shared by catalogs and connectors, seems we should move out of catalog,  @jerryshao  WDYT?

I have the following concerns:

Is it still proper to name the module bundled-catalog as we are going to use constant values to replace the previous one?
is it suitable to put it under catalogs folder now.

rename to catalog-common, please help to review again


recovery-flash:  add '-e' flag for bash

Per suggested by @axel on 96boards forum, the bash script should add
'-e' flag so the script can fail when error happens.
Signed-off-by: Leo Yan<EMAIL_ADDRESS>

Has another minor fixing. So drop this.


L515: RuntimeError: Frame didn't arrive within 5000

| | |
|---|---|
|librealsense|2.51.1 RELEASE|
|OS|Windows|
|Name|Intel RealSense L515|
|Serial Number|f1371405|
|Firmware Version|<IP_ADDRESS>|
|Camera Locked|YES|
|Usb Type Descriptor|3.2|
|Product Line|L500|
|Asic Serial Number|0003cbb76779|
|Firmware Update Id|0003cbb76779|
Please provide a description of the problem
import pyrealsense2 as rs
import numpy as np
def initialize_camera():
conf = rs.config()
rs.config.enable_device_from_file(conf, "F:/NeRF_Project_dataset/20221031_160514.bag", repeat_playback=False)
p = rs.pipeline()
# conf.enable_stream(rs.stream.accel)
# conf.enable_stream(rs.stream.gyro)
p.start(conf)
return p
def gyro_data(gyro):
return np.asarray([gyro.x, gyro.y, gyro.z])
def accel_data(accel):
return np.asarray([accel.x, accel.y, accel.z])
p = initialize_camera()
accel_total = []
gyro_total = []
try:
while True:
f = p.wait_for_frames()
# print(f)
accel = accel_data(f[3].as_motion_frame().get_motion_data())
accel_total.append(accel)
gyro = gyro_data(f[4].as_motion_frame().get_motion_data())
gyro_total.append(gyro)
# print(len(accel_total), len(gyro_total))
# print("accelerometer: ", accel)
# print("gyro: ", gyro)
finally:
p.stop()
print(len(accel_total), len(gyro_total))

Hi @Ceciliammm  You are reading the data from a recorded bag file instead of a live L515 camera, so the camera will not be the cause of this error.
Can you confirm please that the bag file contains accel and gyro data?  As a bag file is being used as the data source, the script can only retrieve information that is stored in the bag.
Also, you should define a custom stream configuration that matches the configuration of the streams that are stored in the bag.  The default Hz speed value on L515 for both the accel and gyro is 100 Hz.

Therefore, please try the following configuration lines in your script without the # comment-out symbol in front of them.
conf.enable_stream(rs.stream.accel, rs.format.motion_xyz32f, 100)
conf.enable_stream(rs.stream.gyro, rs.format.motion_xyz32f, 100)

There was another Python case on L515 at https://github.com/IntelRealSense/librealsense/issues/6896 where the RuntimeError: Frame didn't arrive within 5000 error was occurring.  A RealSense team member in that case recommends at https://github.com/IntelRealSense/librealsense/issues/6896#issuecomment-665274907 to check if there is a valid accel or gyro stream with an 'if' statement before printing the values.
They also recommend to identify dynamically whether the stream is of the accel or gyro type instead of using fixed index numbers ('3' and '4' in your script), otherwise the stream output could be reversed (gyro values printed for accel and accel values printed for gyro).

Hi @Ceciliammm You are reading the data from a recorded bag file instead of a live L515 camera, so the camera will not be the cause of this error.
Can you confirm please that the bag file contains accel and gyro data? As a bag file is being used as the data source, the script can only retrieve information that is stored in the bag.
Also, you should define a custom stream configuration that matches the configuration of the streams that are stored in the bag. The default Hz speed value on L515 for both the accel and gyro is 100 Hz.

Therefore, please try the following configuration lines in your script without the # comment-out symbol in front of them.
conf.enable_stream(rs.stream.accel, rs.format.motion_xyz32f, 100)
conf.enable_stream(rs.stream.gyro, rs.format.motion_xyz32f, 100)

There was another Python case on L515 at #6896 where the RuntimeError: Frame didn't arrive within 5000 error was occurring. A RealSense team member in that case recommends at #6896 (comment) to check if there is a valid accel or gyro stream with an 'if' statement before printing the values.
They also recommend to identify dynamically whether the stream is of the accel or gyro type instead of using fixed index numbers ('3' and '4' in your script), otherwise the stream output could be reversed (gyro values printed for accel and accel values printed for gyro).
Thank you for your help, but I still have the following problems:

My bag file contains gyro and accel data. As shown below:

After add these two lines, my project still has the same problem. [RuntimeError: Frame didn't arrive within 5000]
conf.enable_stream(rs.stream.accel, rs.format.motion_xyz32f, 100)
conf.enable_stream(rs.stream.gyro, rs.format.motion_xyz32f, 100)
If the Accel and Gyro wiould exchange, how can I match them correctly?

#4018 (comment) has a pyrealsense2 code reference for setting the stream type dynamically.
I also note that you are using an append instruction - accel_total.append(accel) and gyro_total.append(gyro)
Using the append instruction in pyrealsense2 scripts can cause problems, as it can cause the script to receive the first 15 frames and then stop at the 16th. This may be causing the program to stop receiving new frames and 'time out', resulting in the 'Frame didn't arrive within 5000' error. Using a Keep() instruction to store frames in memory is a workaround for this problem, as described at #8652 (comment)

when I use accel.keep(), then "AttributeError: 'numpy.ndarray' object has no attribute 'keep'"
In addition, the following codes only read the accel data, how about the gyro data?
for frame in f:
if frame.is_motion_frame():
accel = accel_data(frame.as_motion_frame().get_motion_data())

Instead of using accel.keep() please try inserting the keep instruction after the wait_for_frames line and using 'f' instead of 'accel'.
f = p.wait_for_frames()
f.keep()

My understanding from past references about dynamic assigning of accel and gyro in Python is that you simply create separate entries for accel and gyro under the if frame.is_motion_frame(): statement.
for frame in f:
if frame.is_motion_frame():
accel = accel_data(frame.as_motion_frame().get_motion_data())
gyro = gyro_data(frame.as_motion_frame().get_motion_data())

The variable names accel_data and gyro_data used by the above lines were defined earlier in your script.

My bag file contains gyro and accel data.
How can I define a custom stream configuration?

Instead of using accel.keep() please try inserting the keep instruction after the wait_for_frames line and using 'f' instead of 'accel'.
f = p.wait_for_frames()
f.keep()

My understanding from past references about dynamic assigning of accel and gyro in Python is that you simply create separate entries for accel and gyro under the if frame.is_motion_frame(): statement.
for frame in f:
if frame.is_motion_frame():
accel = accel_data(frame.as_motion_frame().get_motion_data())
gyro = gyro_data(frame.as_motion_frame().get_motion_data())

The variable names accel_data and gyro_data used by the above lines were defined earlier in your script.

About the f.keep():
After I change the codes to
f = p.wait_for_frames()
f.keep()
My project still has the same error "RuntimeError: Frame didn't arrive within 5000"
If I store the gyro data the same as accel's then their data will be the same. But the gyro data and the accel data are different.

The total codes of my project is shown below:
`import pyrealsense2 as rs
import numpy as np

def initialize_camera():
    conf = rs.config()
    rs.config.enable_device_from_file(conf, "F:/NeRF_Project_dataset/20221031_160514.bag", repeat_playback=False)
    p = rs.pipeline()
    conf.enable_stream(rs.stream.accel, rs.format.motion_xyz32f, 100)
    conf.enable_stream(rs.stream.gyro, rs.format.motion_xyz32f, 100)
    p.start(conf)
    return p

def gyro_data(gyro):
    return np.asarray([gyro.x, gyro.y, gyro.z])

def accel_data(accel):
    return np.asarray([accel.x, accel.y, accel.z])

p = initialize_camera()
# accel_total = []
# gyro_total = []
try:
    while True:
        f = p.wait_for_frames()
        f.keep()

        # print(f)
        for frame in f:
            if frame.is_motion_frame():
                accel = accel_data(frame.as_motion_frame().get_motion_data())
                gyro = gyro_data(frame.as_motion_frame().get_motion_data())

                # gyro = gyro_data(frame.as_motion_frame().get_motion_data())
        # accel = accel_data(f[0].as_motion_frame().get_motion_data())
        # # accel_total.append(accel)
        # gyro = gyro_data(f[1].as_motion_frame().get_motion_data())
        # gyro_total.append(gyro)
        # print(len(accel_total), len(gyro_total))
        print("accelerometer: ", accel)
        print("gyro: ", gyro)

finally:

    p.stop()
    # print(len(accel_total), len(gyro_total))`

You have already defined a custom stream configuration for accel and gyro by creating conf statements and placing the word 'conf' in the brackets of the pipeline start instruction so that the script knows to use the custom configuration.
conf = rs.config()

p = rs.pipeline()
conf.enable_stream(rs.stream.accel, rs.format.motion_xyz32f, 100)
conf.enable_stream(rs.stream.gyro, rs.format.motion_xyz32f, 100)
p.start(conf)

Please try changing wait_for_frames() to try_wait_for_frames() because if a time-out occurs then this should cause a 'false' status to be returned instead of the program exiting with a time-out error.

Okay, let's comment out the f.keep() line for the moment and see what happens now that try_wait_for_frames is being used.

Okay, let's comment out the f.keep() line for the moment and see what happens now that try_wait_for_frames is being used.

It can not work because the line "frame.is_motion_frame():" cannot work.

Let's try going back to the index-based approach for the moment just to get the output working even if there is a possibility that the accel and gyro might be reversed, and use try_wait_for_frames() too to try to avoid the time-out error.
for frame in f:
if frame.is_motion_frame():
accel = accel_data(f[3].as_motion_frame().get_motion_data())
gyro = gyro_data(f[4].as_motion_frame().get_motion_data())

Let's try going back to the index-based approach for the moment just to get the output working even if there is a possibility that the accel and gyro might be reversed, and use try_wait_for_frames() too to try to avoid the time-out error.
for frame in f:
if frame.is_motion_frame():
accel = accel_data(f[3].as_motion_frame().get_motion_data())
gyro = gyro_data(f[4].as_motion_frame().get_motion_data())

Don't work. Since when "try_wait_for_frames()" is used, the type of f becomes "bool",  'bool' object has no attribute 'as_motion_frame'.

Ok, that is understandable since a bool status ('false' when timeout occurs) would be being returned.
I'm not sure that return p on the line after pipe start is needed, so is there any change if that line is commented out?

p is used to initialize and stop the camera, if I comment out return p, I think the total project cannot work.
My codes are shown below:
import pyrealsense2 as rs
import numpy as np
import os

def initialize_camera():
    conf = rs.config()
    rs.config.enable_device_from_file(conf, "F:/NeRF_Project_dataset/20221031_160514.bag", repeat_playback=False)
    p = rs.pipeline()
    conf.enable_stream(rs.stream.accel, rs.format.motion_xyz32f, 100)
    conf.enable_stream(rs.stream.gyro, rs.format.motion_xyz32f, 100)
    p.start(conf)
    return p

def gyro_data(gyro):
    return np.asarray([gyro.x, gyro.y, gyro.z])

def accel_data(accel):
    return np.asarray([accel.x, accel.y, accel.z])

p = initialize_camera()
i = 1
basedir = r"C:\Users\admin\Desktop\Cecilia"
accel_path = os.path.join(basedir, 'accel.txt')
gyro_path = os.path.join(basedir, 'gyro.txt')
try:
    with open(accel_path, "w") as file_a, open(gyro_path, "w") as file_g:
        while True:
            f = p.try_wait_for_frames()
            # f.keep()

            # print(f)
            for frame in f:
                # if frame.is_motion_frame():
                accel = accel_data(f[0].as_motion_frame().get_motion_data())
                gyro = gyro_data(f[1].as_motion_frame().get_motion_data())

                print("accelerometer: ", accel)
                print("gyro: ", gyro)

                file_a.write(str(accel))
                file_a.write('\n')

                file_g.write(str(gyro))
                file_g.write('\n')

            i = i+1
            print(i)

finally:

    p.stop()

I understand that 'p' is the pipeline definition that is used to start and stop the camera.
I would think though that if return p was commented out then the script would run through once and then be stopped by p.stop() before it could loop around again for another run-through.
Thanks very much for your patience during this case!

I understand that 'p' is the pipeline definition that is used to start and stop the camera.
I would think though that if return p was commented out then the script would run through once and then be stopped by p.stop() at the end of the script before it could loop around again for another run-through.
Thanks very much for your patience during this case!

I'm so sorry that I don't know how to modify my codes to satisfy your requirements to test the necessity of return p.
Since if I comment out return p, then p.try_wait_for_frames(), the "try..finally.." structure as well as p.stop should be changed.
To be specifically, I don't know how to change p.try_wait_for_frames().
Thank you for your prompt reply.

It's no problem at all, don't worry!
What I am suggesting is:

Comment out return p

Change try_wait_for_frames() back to wait_for_frames()

The aim of this is to see if 'return p' is what is causing the time-out error.

It's no problem at all, don't worry!
What I am suggesting is:

Comment out return p

Change try_wait_for_frames() back to wait_for_frames()

The aim of this is to see if 'return p' is what is causing the time-out error.

Bad news. 'return p' is not the factor causing the time-out error.

And the modified codes are shown here:
import pyrealsense2 as rs
import numpy as np
import os
def gyro_data(gyro):
    return np.asarray([gyro.x, gyro.y, gyro.z])

def accel_data(accel):
    return np.asarray([accel.x, accel.y, accel.z])

# p = initialize_camera()
# initialize_camera()
conf = rs.config()
rs.config.enable_device_from_file(conf, "F:/NeRF_Project_dataset/20221031_160514.bag", repeat_playback=False)
p = rs.pipeline()
conf.enable_stream(rs.stream.accel, rs.format.motion_xyz32f, 100)
conf.enable_stream(rs.stream.gyro, rs.format.motion_xyz32f, 100)
p.start(conf)

i = 1
basedir = r"C:\Users\admin\Desktop\Cecilia"
accel_path = os.path.join(basedir, 'accel.txt')
gyro_path = os.path.join(basedir, 'gyro.txt')
try:
    with open(accel_path, "w") as file_a, open(gyro_path, "w") as file_g:
        while True:
            f = p.wait_for_frames()
            # f.keep()

            # print(f)
            for frame in f:
                # if frame.is_motion_frame():
                accel = accel_data(f[0].as_motion_frame().get_motion_data())
                gyro = gyro_data(f[1].as_motion_frame().get_motion_data())

                print("accelerometer: ", accel)
                print("gyro: ", gyro)

                file_a.write(str(accel))
                file_a.write('\n')

                file_g.write(str(gyro))
                file_g.write('\n')

            i = i+1
            print(i)

finally:

    p.stop()

How long in minutes is the bag file recording of Accel and gyro data?
Have you tested that the file can be successfully played back by dragging and dropping the file into the center panel of the RealSense Viewer tool?
If the Viewer can play back the bag, does the 'Frame didn't arrive' error still occur if you remove repeat_playback=False so that the bag can loop playback?

How long in minutes is the bag file recording of accel and gyro data?
Have you tested that the file can be successfully played back by dragging and dropping the file into the center panel of the RealSense Viewer tool?
If the Viewer can play back the bag, does the 'Frame didn't arrive' error still occur if you remove repeat_playback=False so that the bag can loop playback?

1:23 mins
It can be played back
If I change repeat_back from "False" to "True", the codes would run continuouslt without stop

How long in minutes is the bag file recording of accel and gyro data?
Have you tested that the file can be successfully played back by dragging and dropping the file into the center panel of the RealSense Viewer tool?
If the Viewer can play back the bag, does the 'Frame didn't arrive' error still occur if you remove repeat_playback=False so that the bag can loop playback?

Oh I know, maybe the RuntimeError is caused by the end of my recorded bag file.
And I have another question, how to change the imu data into camera's poses, in other words, extrinsics?

Regarding the questions about different numbers of messages and about extrinsics, I have replied to your other issues at https://github.com/IntelRealSense/librealsense/issues/11066 and https://github.com/IntelRealSense/librealsense/issues/11067

Regarding the questions about different numbers of messages and about extrinsics, I have replied to your other issues at #11066 and #11067

Ok, thank you very much.


refactor similar test cases

Hi!
As part of our research, we have developed a tool to suggest refactorings for test cases that appear to be similar. For Common-IO, it suggested these refactorings. We believe that they can improve test maintainability going forward and hope that you will accept this pull request. Please contact me or Patrick Lam<EMAIL_ADDRESS>if you have any questions.

Tests failing in Travis-CI due to Checkstyle issues. Mind having a look @yannickzj ?


reseting and clearing value

Hi,
Is there a way to clear the value when used in a form?
By default form is calling writeValue() with null but there is a null check for value is case of null.
am I missing anything?

Hi,
Have you tried empty string?

Hi
Thanks for the quick response

Angular itself sends the null (not me) so its something built in to angular.
empty string will fail in the

 if (value &&
            value !== this.codeMirror.getValue() &&
            this.normalizeLineEndings(this.codeMirror.getValue()) !==
                this.normalizeLineEndings(value))

statement since value is ""

created PR for this.


Can't enable add-on in Blender.

I am very new to GitHub so I'm very sorry if I've posted this in the wrong place. Everything is confusing!!!
I installed the program straight from the release page. I went to Blender and selected the Zip file and it installed, but when I went to enable it it gave me this error:

Is this my fault or is something else going on here?
Thank you!
Hugo.

Hi Hugo, welcome to GitHub! This is likely the right place. From the screenshot that you are using Blender version 2.83.
I believe the plugin is only compatible with Blender versions >3.0. I would suggest installing a more recent version of Blender and retrying.

Oh, right! I haven't used Blender in a bit. I should probably update it.
Thanks!


Adding --depth while cloning recursively

Having a depth of 1 will allow us to create shallow clones. If somebody is going to download all themes then they are probably interested in checking out what theme is going to fit them best before they deep dive further into the actual theme.

Agree. Merged in 229bca8


Eloquent relationship not working in search

Hello yajra, I want to ask about search and sorting in Eloquent relationship.. I saw the issue before that you will add the search and sorting in  Eloquent relationship. is it work now?

Operating System
PHP Version 7.1.4
Laravel Version 5.4
Laravel-Datatables Version 7.2

@jamesriady yes it's working now. There are some edge cases though that might not be supported. One known issue is when using a SELF join relationships.


A question about the usage.

Hello,
Thank you for presenting the solid and wonderful work. I have a small question about the usage.
cosine_with_margin = adaface(embbedings, norms, labels)
loss = torch.nn.CrossEntropyLoss()(cosine_with_margin, labels)
After I read the code in head.py. I thought the return value of cosine_with_margin is the variant of the logits. In other words, it is the output of the adaptive margin function in the paper. Has it been passed into the softmax function? Why we can input it into the CrossEntropyLoss and compare it with ground truth directly?
I'm looking forward to your reply. Thank you very much.

Hi EmilyWang90
The output cosine_with_margin is equivalent to the f() is equation 18 of the main paper. So if you place f() in equation 1 of the main paper, you can see that it is the input to the cross entropy loss (before having applied the softmax fn).


Server parameter documentation not complete

https://nlu.rasa.com/master/http.html#server-parameters isn't being generated as @tmbo said it should be.

it should be auto generated, but apparently that didn't work on the documentation server - thanks for raising it, do you mind creating an issue for it so we don't lose track of it?

✅ fixed in latest master


[im] Print message for cluster not found[TE3]

Problem

When a cluster not found on an endpoint, we don't have a message for debug.
Fixes #7208

Change overview

Add a log at "Detail" level for debug

Testing

Since we need to parse device output, cirque test is added for checking device log.

@erjiaqing This needs rebasing to tip to fix CI...

/rebase

@andy31415 @Damian-Nordic @LuDuda ?


Image modification

@CodiumAI-Agent /review

PR Review 🔍

 ⏱ Estimated effort to review [1-5]
4, because the PR involves multiple changes across CSS and React components which require careful review to ensure that the UI changes are consistent and the new functionality in the React component works as expected.

 🧪 Relevant tests
No

 ⚡ Possible issues
Possible Bug: The updateImage function in Build.jsx uses a hardcoded string for the cabinet image path which might not exist or could lead to a broken image display if the path is incorrect.

 🔒 Security concerns
No

 Code feedback:
relevant fileclient/frontEnd/src/Components/Build.jsx
suggestion

Consider using a configuration object for image paths instead of hardcoding them in the updateImage function. This approach enhances maintainability and scalability. [important]

relevant linesetCurrentImage("path/to/cabinet/image.png");
relevant fileclient/frontEnd/src/Styles/Build.css
suggestion

Ensure that the new background gradient in .Build-Area is visually tested across different devices and browsers to maintain a consistent look and feel. [medium]

relevant linebackground: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(89,89,89,1) 79%);
relevant fileclient/frontEnd/src/Styles/Navbar.css
suggestion

Verify the new hover transition time and scale transformation on .Build:hover to ensure it provides a smooth user experience without being too abrupt. [medium]

relevant linetransition: 0.5s ease;
relevant fileclient/frontEnd/src/Components/Build.jsx
suggestion

Refactor the repeated filtering logic in select options by creating a reusable function to improve code readability and reduce redundancy. [important]

relevant line{motherboardData.filter((motherboard) => motherboard.specifications.socket === selectedProcessor.specifications.socket).map((motherboard, index) => (


fix(issue/389): update link color on faq page

Close https://github.com/bannergress/website/issues/389

@ewoerner & @KirDE code update is done, please for approve.

on hover liks turns blue. as well as in the banner card and in FAQ.

@KirDE check it again please

@EinfachAleks New banner banner width slider is blue


Review updates: batch add reviewer

This issue is to allow the new reviewer roles to be added in batch.
Acceptance criteria

[x] Batch add reviewer action updated to display multiple lists for adding reviewers, one for each of the defined roles (as per individual actions).
[x] Batch reviewer activity text changed to be "<reviewer> assigned as <role>"  per role.

Slack
Activity feed

Design: https://projects.invisionapp.com/share/KZPIO1NENQJ#/screens/343687953
QA criteria
Dev:

[ ] checked feature meets acceptance criteria/conforms exactly to the specification.
[ ] provided good unit test coverage (if this is non-trivial behaviour).
[ ] checked all tests for the project pass with this feature enabled.
[ ] checked code conforms to the project coding standards.
[ ] had code reviewed by another developer and resolved any issues raised.
[ ] tested this feature as an end user of the website/app (Can I get to it? Is it useable? Can I break it? Does it work in an end-to-end context?)
[ ] checked that this feature works on the server/s I am deploying it to.

QA:

[ ] tested this feature as a front end user and it meets the acceptance criteria/conforms to the specification and design.
[ ] checked that the feature works on the server/s deployed to

This is now deploying to dev

Happy for this to be deployed to test.

Hi @fourthletter, @danblah, @arduina,
I am adding in the testing notes here. @todd-dembrey is yet to deploy this to live, but as soon as he does (very soon!) he will update this to confirm. For when he does - here are the testing notes:
This work is now ready for testing. This work is amending the batch review functionality for you to be able to batch add reviewers of specific roles.
Please test this against the acceptance criteria noted in the initial issue description.
Please let us know if anything is unclear or if you have any questions. Otherwise please provide feedback of any issues you find or if everything is working as expected, please confirm and we can get this work deployed to the live site and issue closed off.
Thanks,
Maya

This is now on test

@todd-dembrey I'm getting an internal server error when I attempt to add reviewers as a batch action. I am getting the same error message when I attempt to add a reviewer to a single submission.

I'm really sorry. I thought this was deployed but it wasn't. Deploying it now.!

@fourthletter This has now deployed and i have tested it on the site! Sorry about that.

All acceptance criteria are visible and functional. Thanks! 🎅

Ready for deployment to live


Suggest renaming LiveSvelte.render to LiveSvelte.svelte

Now that I have more experience with Phoenix components, it seems that <.foo> in heex templates should be a noun - a component name - instead of a verb. Therefore I am suggesting deprecating LiveSvelte.render in favor of LiveSvelte.svelte so that it is more in the spirit of .button, .link, etc.

Makes sense to make it a noun, but not sure if LiveSvelte.svelte is better than LiveSvelte.render as it feels redundant to have svelte twice in the name. If we can make it LiveSvelte that would be better though. Open to other suggestions too

Something like CommonComponents.button turns into . Can the import and/use keywords do the same for LiveSvelte?

I'll try to get < .render> working.

Interesting, if you have some code to show or make a PR I'd be happy to merge it. We should probably also add a deprecated statement to the previous way of doing things :)

I can do better than that https://github.com/dev-guy/phoenix-ash-svelte-flowbite/pull/16/files

Need to think whether you want .svelte or .livesvelte or .liveSvelte . Names matter!

I think svelte makes sense, as that's what we're rendering. LiveSvelte as a package for me means it integrates nicely with LiveView, but the svelte components that are being rendered don't have a lot of extra functionality attached to them. They pass props, and there's the pushEvent function that's available, but that's about it. phx-click etc works out of the box.
So in a sense you can just use the package as regular svelte or go all the way and integrate with LiveView. Kind of want it to be the go to solution for Svelte inside Phoenix, that integrates nicely with all  features of Phoenix, from dead views all the way to LiveViews and everything in between like components.
Wonder what your opinion is on the name? Which do you prefer?

My 2 cents. I wish regular <.live_component module={Something.Module} /> would actually one day become simply <Something.Module :live />. Do you think LiveSvelte could eliminate that extra tag altogether?

LiveSvelte uses regular function components instead of live components, so we don't have that specific issue :)

.svelte is good with me. Sooner the better.

Done, available in version 0.6.0. Render will still work but raises a deprecation warning


update for new NNUnetRunner

update nnunet liver for the new NNnetRunner module and update totalsegmentator for new dicomseg converter (using the config json)

Gonna review this tomorrow, and then propagate the changes to the other NNUnetRunners.


Have specific version for each programming language

E.g. break off @codemorph/angular to its own version as well as @codemorph/react to its own version.
This will allow code morphs to be specific to each version level. @codemorph/core will act independently and will instead be a utils library used by other codemorphs

Is is completed ?

This is not. https://github.com/razroo/codemorph/issues/10 makes sense to work on first. i am going to assign this issue to you


Unit test standalone agent pool scenario

What this PR does / why we need it:
ACS Engine enabled creation of standalone agent pools: https://github.com/Azure/acs-engine/pull/1290
The template generation code path is shared by both full cluster creation scenario and agent pool only scenario. The unit test in this PR validates that agent pool only scenario template is a syntactically correct JSON.

This change is

How is the location set for these tests?

@jchauncey via test/e2e/kubernetes-deployments.json:
{
	"deployments": [
		{
			"cluster_definition": "windows/kubernetes-hybrid.json",
			"location": "eastus"
		},
		{
			"cluster_definition": "windows/kubernetes.json",
			"location": "eastus"
		},
		{
			"cluster_definition": "disks-managed/kubernetes-preAttachedDisks-vmas.json",
			"location": "eastus"
		},
		{
			"cluster_definition": "disks-managed/kubernetes-vmas.json",
			"location": "eastus"
		},
		{
			"cluster_definition": "disks-storageaccount/kubernetes.json",
			"location": "westcentralus"
		},
		{
			"cluster_definition": "kubernetes-releases/kubernetes1.5.json",
			"location": "southcentralus"
		},
		{
			"cluster_definition": "networkpolicy/kubernetes-calico.json",
			"location": "southcentralus"
		},
		{
			"cluster_definition": "custom-pod-cidr/kubernetes.json",
			"location": "southcentralus"
		},
		{
			"cluster_definition": "vnet/kubernetesvnet.json",
			"location": "southcentralus"
		}
	]
}

e2e tests appear to be failing due to regional Azure slowness:
ERROR: Deployment failed. {
  "status": "Failed",
  "error": {
    "code": "ResourceDeploymentFailure",
    "message": "The resource operation completed with terminal provisioning state 'Failed'.",
    "details": [
      {
        "code": "OSProvisioningTimedOut",
        "message": "OS Provisioning for VM '27443acs9010' did not finish in the allotted time. The VM may still finish provisioning successfully. Please check provisioning state later."
      }
    ]
  }
}

ah yeah forgot about that json

@seanknox fixed the subnet mask
@slack please sign off again.


Testing IPN Error Notification Code

While testing my IPN listener with negative testing, I'm getting errors(Make sure that this value is a maximum of 15 characters) on fields reason_code and pending_reason, changing max_length to 40 resolved my issue.
Also, I'm getting error at paypal\standard\models.py", line 289, in set_flag
self.flag_info += info
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 116: ordinal not in range(128)
changing this line to self.flag_info += info.decode('utf-8') resolved my issue

I'm not sure what you mean by negative testing. Are these errors when you are receiving actually PayPal HTTP requests on those listeners?

IPN testing: https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNTesting/
section "Testing Your IPN Error Notification Code"
Errors occurs when paypal posts to my listener using one of those error triggers. Simple transaction works fine.

When trying this negative testing, I first hit a problem with the "charset" not being included. This is a bug in the IPN simulator which I have contact PayPal about.

I've added a workaround for my last issue, but I still can't reproduce the errors you're talking about. The docs talk about setting the amount field - but there is no such field! I've tried setting the mc_gross field to the specified amounts, but this doesn't do anything - it doesn't trigger the error conditions.
If you can tell me how you are doing this, I may be able to make some progress. Thanks.

OK, I realised that this is not the simulator, but the sandbox. I'll try again at some point.

This should be fixed in master now. I tested with negative and got the same error, due to a field that wasn't long enough.


Add Pocket-Code by @painhapp

[x] Project URL:
[x] Update contents.json instead of README
[x] One project per pull request
[x] Screenshot included
[x] Avoid iOS or open-source in description as it is assumed
[x] Use this commit title format if applicable: Add app-name by @github-username
[x] Use approved format for your entry

I copied the promo text of the app as description. Should I remove ", directly on your phone or tablet" as it is redundant?

@Screenshots: Not included as they will soon be changed.

Description is ok
Sent with GitHawk

@painhapp  thank you!


Heads-up: New Homebrew warning for your repo

I don't represent Homebrew — I'm just an end-user. Homebrew started warning recently:
Warning: Calling depends_on :java is deprecated! Use "depends_on "openjdk@11", "depends_on "openjdk@8" or "depends_on "openjdk" instead.
Please report this issue to the jzaleski/jzaleski tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/jzaleski/homebrew-jzaleski/Formula/hadoop@2.7.1.rb:8

Wanted to give you a heads-up.

Thank you for the heads-up. This has been fixed with commit:
https://github.com/jzaleski/homebrew-jzaleski/commit/293130e9a24403c16ca1074cc1686df97b6ddda5

brew install<EMAIL_ADDRESS>==> Installing<EMAIL_ADDRESS>from jzaleski/jzaleski
==> Downloading
http://archive.apache.org/dist/hadoop/common/hadoop-2.7.1/hadoop-2.7.1.tar.gz
########################################################################
100.0%
🍺<EMAIL_ADDRESS>6,301 files, 309.5MB, built in 12
seconds

On Tue, Dec 15, 2020 at 12:48 PM Ryan Parman<EMAIL_ADDRESS>wrote:

I don't represent Homebrew — I'm just an end-user. Homebrew started
warning recently:
Warning: Calling depends_on :java is deprecated! Use "depends_on "openjdk@11", "depends_on "openjdk@8" or "depends_on "openjdk" instead.
Please report this issue to the jzaleski/jzaleski tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/jzaleski/homebrew-jzaleski/Formula/hadoop@2.7.1.rb:8
Wanted to give you a heads-up.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jzaleski/homebrew-jzaleski/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARSOOBTWKUQL67OWARMYU3SU6VO3ANCNFSM4U4Z2Y5A
.


Bug: builder fails on unusable fallback_tag

New repos don't have usable fallback_tags (e.g. TEST), which is causing failures.

Solved by @pauldaustin!  :D
https://github.com/bcgov-nr/action-builder-ghcr/releases/tag/v1.1.2


Is it possible to know how why have 20 seconds delay between issuing the stressapptest command and system running

We run the command to enable the StressAppTest with testing time, take our 100 seconds test for example, after issuing the command it is 04/13 21:02:32, but it start from 21:02:51 so it takes around 20 seconds before running, is it possible to know why we have the 20 seconds before running?
2023/04/13-21:02:32(CST) Log: Prefer plain malloc memory allocation.
2023/04/13-21:02:32(CST) Log: Using mmap() allocation at 0x7f0e4b600000.
2023/04/13-21:02:32(CST) Stats: Starting SAT, 243912M, 100 seconds
2023/04/13-21:02:50(CST) Log: region number 8 exceeds region count 8
2023/04/13-21:02:51(CST) Log: Region mask: 0xff
2023/04/13-21:03:01(CST) Log: Seconds remaining: 90
2023/04/13-21:03:11(CST) Log: Seconds remaining: 80

On Thu, Apr 13, 2023 at 6:12 AM AlecHsiao @.***> wrote:

is it possible to know why we have the 20 seconds before running?
2023/04/13-21:02:32(CST) Stats: Starting SAT, 243912M, 100 seconds

Stressapptest fills memory with patterns before starting the test. You have
a large amount of memory
and it's likely that initializing the memory takes 20 seconds. Do you have
a full log with memory bandwidth indicated?
Message ID: @.***>

Yes, we change the log level to 20 to capture more data, I think you're correct, that is under the process to fill data in that period. Thanks for your help for that.
2023/02/22-08:00:46(CST) Starting Fill Threads 0: 30511 pages
2023/02/22-08:00:46(CST) Starting Fill Threads 1: 30511 pages
2023/02/22-08:00:46(CST) Starting Fill Threads 2: 30511 pages
2023/02/22-08:00:46(CST) Starting Fill Threads 3: 30511 pages
2023/02/22-08:00:46(CST) Starting Fill Threads 4: 30511 pages
2023/02/22-08:00:46(CST) Starting Fill Threads 5: 30511 pages
2023/02/22-08:00:46(CST) Starting Fill Threads 6: 30511 pages
2023/02/22-08:00:46(CST) Starting Fill Threads 7: 30518 pages
2023/02/22-08:00:46(CST) Log: Thread 0 running on core ID 81 mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF).
2023/02/22-08:00:46(CST) Log: Starting fill thread 0
2023/02/22-08:00:46(CST) Log: Thread 2 running on core ID 103 mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF).
2023/02/22-08:00:46(CST) Log: Starting fill thread 2
2023/02/22-08:00:46(CST) Log: Thread 1 running on core ID 0 mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF).
2023/02/22-08:00:46(CST) Log: Starting fill thread 1
2023/02/22-08:00:46(CST) Log: Thread 3 running on core ID 19 mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF).
2023/02/22-08:00:46(CST) Log: Starting fill thread 3
2023/02/22-08:00:46(CST) Log: Thread 6 running on core ID 44 mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF).
2023/02/22-08:00:46(CST) Log: Starting fill thread 6
2023/02/22-08:00:46(CST) Log: Thread 5 running on core ID 121 mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF).
2023/02/22-08:00:46(CST) Log: Starting fill thread 5
2023/02/22-08:00:46(CST) Log: Thread 4 running on core ID 116 mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF).
2023/02/22-08:00:46(CST) Log: Starting fill thread 4
2023/02/22-08:00:46(CST) Log: Thread 7 running on core ID 52 mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF).
2023/02/22-08:00:46(CST) Log: Starting fill thread 7
2023/02/22-08:01:05(CST) Log: Co
1.0.10.log
mpleted 0: Fill thread. Status 1, 30511 pages filled
2023/02/22-08:01:05(CST) Log: Completed 7: Fill thread. Status 1, 30518 pages filled
2023/02/22-08:01:05(CST) Log: Completed 5: Fill thread. Status 1, 30511 pages filled
2023/02/22-08:01:05(CST) Log: Completed 6: Fill thread. Status 1, 30511 pages filled
2023/02/22-08:01:05(CST) Log: Completed 3: Fill thread. Status 1, 30511 pages filled
2023/02/22-08:01:05(CST) Log: Completed 1: Fill thread. Status 1, 30511 pages filled
2023/02/22-08:01:05(CST) Log: Completed 4: Fill thread. Status 1, 30511 pages filled
2023/02/22-08:01:05(CST) Log: Completed 2: Fill thread. Status 1, 30511 pages filled

1.0.10.log

For whatever reason, initialization uses only 8 threads, which
probably isn't appropriate on large systems such as yours.
I guess a better approach would be to scale the number of initialization
and teardown threads to the number of cores
available, similar to the default for copy threads. I'll keep it in mind as
a feature request, or you can send a PR.
If you just want it to be faster and can compile yourself, you can change
the hardcoded thread counts here:
https://github.com/stressapptest/stressapptest/blob/fd4ae17eaad7fde69e1308abbe5af3181ec6ce15/src/sat.cc#L719
On Sun, Apr 16, 2023 at 9:01 PM AlecHsiao @.***> wrote:

1.0.10.log
https://github.com/stressapptest/stressapptest/files/11246074/1.0.10.log
—
Reply to this email directly, view it on GitHub
https://github.com/stressapptest/stressapptest/issues/107#issuecomment-1510660957,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADMRIIJTDAMGBYSYGA5RHRDXBS6ANANCNFSM6AAAAAAW5CELRA
.
You are receiving this because you commented.Message ID:
@.***>

Thanks, I think that works, now I can reduce the delay time , so I think that would be enough for me, appreciated for your help !!!


[T4A5][W14-B3] Yong Jia Wern

Ready for review

Remember to add a header comment for your class :P
Also, please use spaces instead of tabs for indentation. The { should be on the same line as else, please refer to the coding style guide!
Well done! :)


wrap the whole editor in webcomponent

Hello,
I'd like to drawio as a Web Component and i'd like to know if any one has ever tried to do this.
I've been searchin' on stackoverflow but I only saw examples of how to integrate drawio or mxgraph in Angular app, which is a different task wrt what i'm trying to do.
Thanks,
Lorenzo

I had achieved it for Angular6 by create webpack mxgraph library and inject whole grapheditor from library to angular component.


Lost ability to zoom in media lightbox

Resolved in https://github.com/pill-city/server/commit/9c0ba0353ed44a4070bf2117277165c132b121ac


Bulk load for greptimedb

Bulk load data from sources, such as:

csv file
json file
parquet file
other tables
mysql table
....

Already implemented in #1041


OpenGL ES 3.0 Support

OpenGL ES 3.0 is needed for efficient GPU reads in Android 7.
This should mostly entail the following tasks:

Update MemTransfer ogles_gpgpu/ogles_gpgpu/common/gl/memtransfer.h

void MemTransfer::toGPU(const unsigned char* buf) : implement
void MemTransfer::fromGPU(unsigned char* buf) : implement
void MemTransfer::fromGPU(FrameDelegate& delegate) : implement

ogles_gpgpu/ogles_gpgpu//platform/opengl/gl_includes.h

Implementation detail...
For ARM friendly memcpy() w/ PBO, we may do better with custom NEON, since data is typically uncached:

https://community.arm.com/graphics/f/discussions/6657/how-to-gain-performance-through-pbo-pixel-buffer-object-on-mali-t-880
http://stackoverflow.com/questions/34888683/arm-neon-memcpy-optimized-for-uncached-memory

See PR #12 for initial OpenGL ES 3.0 suport for toGPU() and fromGPU()


Update CSS to match Accordion 1.3.1

accordion got its css updated w/ 1.3.1 to handle nested elements better; while those changes don't functionally change how the FAQ works/looks like, it's probably better to copy those changes over to here as to keep the two codebases in sync.
@M-Porter

Cool. I'll get to it in the next couple of days.


What are the benefits of vue-pdf compared to object or embed tags?

To embed a pdf, I can use the object tag. For example:
<object :data="url" width="870" height="790" type="application/pdf">

This browser does not support PDFs. Please open the PDF to view it: Open PDF.

</object>

Why is using vue-pdf better? Perhaps this should be reflected in the documentation.

With vue-pdf you have the control of the pdf, for example you can manage pagination and other stuff. You can easily integrate it with your html page which instead would have complicated the object you mentioned.

It also worth to mention the support of IE11, IE10 (and IE9 using the vuePdfNoSssNoWorker entry point)

To continue the discussion - does vue-pdf allow to detect text highlighted by a user ? I am interested in capturing the text when user 'highlight' with the mouse. Also, a useful options may be to persist the highlight on the pdf file (like previews on mac).  Does vue-pdf allow to extract user-selected text ?


Help Center: Update motion graphics

Update to use transparent motion graphics that were recently added to project.

Mind adding the Done tip graphic while we're at this?
https://drive.google.com/corp/drive/folders/1Iabww-Bs6p6kycqeQ0DxYLKkKI5AYjG6

@littlemilkstudio since that's just a png icon, I'll use the checkmark SVG icon we already have in design system and update the screens to have the checkmark on a different PR. The file uploads are to static-site and changing the figure for the Done tip needs some code changes pushed to main.

Oh right on. My bad, thought it was a video. (I still don't have access to that google drive folder).
I'll go request access rn


"max_tokens is not supported. use max_completion_tokens instead" with o1-mini

Happens on both playground versions

Sorry! Helicone has a "report issues" button and it just linked here..., so I assumed this was their repo. Closing


Update People to add Peter.

I guess we might want to switch Kyle to Netflix. @rgbkrk ?

Ah sure.


DBZ-7175 Correctly calculate Max LSN

Correctly retrieve and calculate the highest available Log Sequence Number from the database and pass it on to the SnapshotChangeEventSource to correctly determine the SnapshotOffset.

@nrkljo Applied, thanks!


Check Your Symptoms feature

A symptom checker feature (like 811 or 211) for users of BC and Ontario.
@Gurpartap-Uottawa Text on the tooltip (on hover) -
ENG: Check Symptoms
FRE: Vérifier vos symptoms  (Drop the "vos" if it gets too long)

@DayanaKart As discussed in the last meeting, can you please provide the design mock-up? Requirement - Add an icon on the body at the leftmost and rightmost position. You can just tweak the design according to your expertise if needed. Refer to the design below -

@DayanaKart Please add the final icon here that you made for the symptom-checker (white with gray background).

Hi @DayanaKart , Can you also please provide icons for the "Topics" section. The icon must be a white version of the one shared by you with a transparent background. Refer these icons - https://github.com/uoForms/App-CANBeWell/tree/master/src/assets/TopicIcons

@Gurpartap-Uottawa The icon for Topics has been added by Dayana above. It is white so may not be visible - download and check. Please add it to the Topics section.

@psonH Changes are on testing


Add Ubuntu 20.10, Update ESM

Rephrase ESM see #162

I'd suggest switching back to normal support dates. Not everyone is on ESM, and for most folks - the "Security Support" would be misleading.
Our dates should match: https://ubuntu.com/about/release-cycle

I didn't change the dates only the paragraph regarding ESM. The dates are according to https://wiki.ubuntu.com/Releases:

Column End of Standard Support of wiki goes into our column Active Support
Column End of Life of wiki go into our column Security Support

Perhaps we can change our colum names, e.g.

Column Active Support to Standard Support
Column Security Support to ESM Support

@captn3m0 @backit What do you think?

Active Support/Security Support makes more sense. ESM support is fairly limited (only certain packages) and not widespread (you need to pay Canonical).
We should try to match it with the graph at https://ubuntu.com/about/release-cycle
Active Support (our) = Hardware and maintenance updates
Security Support = Maintenance updates
Active Support and Security Support = Interim release Standard Support (these are the same for Interim releases)

I get your idea but I cannot find the dates for the part "Hardware and maintenance updates".
If we don't want to show ESM support I would rather hide the column Security Support and rename the column Active Support to Maintenance Support.

The simplest solution imho is change the column title from Security Support to something like "End of life including esm".
@captn3m0 is right saying esm is not interesting to all, but canonical has the wrong columns on that page and they say nowhere when security support end, they just tell about end of standard support and end of life (included esm).
So, or you change the title or you delete column security support and rename active support to end of life

Digged in a bit, and turns out it renders the graph from the data embedded at https://ubuntu.com/static/js/dist/release-chart.js.
Tracked it down on GitHub and it uses chart-data.js as the source.
Going to file an issue to see why this isn't presented in tabular form, but we can use the data from here.

@captn3m0 great job!!

Indeed great job @captn3m0. I have updated the dates according to chart-data.js. Please check https://5facfb6560959f0008131940--endoflife-date.netlify.app/ubuntu

@captn3m0 thanks for review

Awsome!!


fix of the issue

fix of issues/201

is related to this flutter commit https://github.com/flutter/flutter/commit/4fa5fe5f0b1c1161b65d1d9c643ed21c098f5ac8


rename cn to zh_CN

cc @hectorsector

Thanks for the PR, @PeterDaveHello! And thanks for volunteering to start a translation to Traditional Chinese ❤
Pinging some :octocat:s that might also be willing to help with the translation: @sophiec @hohsiangwu @muan.

@PeterDaveHello fyi @JuanitoFatas had a 99% finished version previously, but I dropped the ball completely... :pray::sob: https://github.com/muan/training-kit/pull/1

Oops, since it's closed and there is no Traditional Chinese on the website so I didn't notice that there was one, any suggestion how we should do guys? 😄

@PeterDaveHello have you started on anything? if it's already plenty then perhaps just carry on, and maybe that old PR discussion has something useful to you. If not then I can reopen that PR and we can update from that branch?

@muan yes I have started, based on the English and zh_CN (origin cn) translation, I believe that the old PR discussion will be useful for me, so maybe I'll try to compare the two versions first 😃


Master

Hi there,
I just noticed your extensive pull request. I really appreciate it that you are taking the time to improve the contents! It would be nice if you could post a brief description of the purpose of the fix since I see many, many (i.e., 69) files that would be changed if I merge this. I think it is about "changing "rate η (eta)" to " $\eta$ (eta)" if I see it correctly, please let me know. There are several ways to fix that, but the probably easiest one would be if you reset your 2 most recent commits and just "stage" this one single file. I.e., applying the change that you made and then doing a git add code/ch02/ch02.ipynb, committing and pushing the change. It would be great if you could send pull requests via a separate topic branch.

PS: If it is easier for you, please don't hesitate to close this pull request and to open a new one rather than fixing it, I really don't mind :)

Could you maybe just briefly describe what the Pull request is about/trying to address?

I assume the pull requests are happening by mistake? I am closing this for now, but I am happy to accept new pull request, please just let me now their intend.


Plain text for pasteImage.defaultName

Hey,
Thanks for making the extension. I'd like the pastes images to be named image-YMMDDHHmmSSSSS, but this is seemingly currently not possible since the whole string is formatted according to https://momentjs.com/docs/#/displaying/format/ but the first part just plain text. Is this currently impossible?
If so could we add defaultNamePrefix and defaultNameSuffix? These would be the filename equivalent to the pasteImage.prefix and pasteImage.suffix we already have for the path.

Ah never mind, it can easily be escaped with sqaure brackets 👍
From the same section in the documentation above:

escaping characters
To escape characters in format strings, you can wrap the characters in square brackets.
moment().format('[today] dddd'); // 'today Sunday'

Closing issue.


Aj/hydrostatic profiles

PULL REQUEST
Purpose and Content
This PR makes sure that the initial condition for pressure and density for the single column TC test cases in CA is

consistent with the temperature and humidity profiles prescribed in the test cases
hydrostatic.

It is done during the TC initialisation by solving via ODE an initial value problem for a given temperature and humidity profile and surface pressure. Then the dycore pressure and density are overwritten.
The good news is that with this update I can run a compressible Bomex simulation with TC in CA. Here is the command line I used to run the model:
julia --color=yes --project=examples examples/hybrid/driver.jl --config column --FLOAT_TYPE Float64 --hyperdiff false --moist equil --turbconv edmf --turbconv_case Bomex --dt_save_to_sol 1mins --z_elem 60 --z_stretch false --z_max 3e3 --dt 1secs --t_end 1hours --regression_test true --job_id edmf_bomex
This is how the vertical velocity looks like without this PR (on the left) and with it (on the right). Looks like I need the discrete version of it?

Also, what I'm doing here is relevant for the single column test cases such as Bomex. The next question is how we want to initialize the simulations on a sphere so that we don't run into this
TODO

[x] fix documentation
[x] fix TRMM
[x] wait for SurfaceFluxes.jl release

Moved to follow up PRs

[ ] extend to LES_driven_SCM cases
[ ] add discrete hydrostatic / fix stretched cases

PR Checklist

[x] This PR has a corresponding issue OR is linked to an SDI.
[x] I have followed CliMA's codebase contribution and style guidelines OR N/A.
[x] I have followed CliMA's documentation policy.
[x] I have checked all issues and PRs and I certify that this PR does not duplicate an open PR.
[x] I linted my code on my local machine prior to submission OR N/A.
[x] Unit tests are included OR N/A.
[x] Code used in an integration test OR N/A.
[x] All tests ran successfully on my local machine OR N/A.
[x] All classes, modules, and function contain docstrings OR N/A.
[x] Documentation has been added/updated OR N/A.

This looks good. But can we make it a bit more modular, so that it works more easily for any profile of potential temperature and specific humidity? That is, e.g., write a generic dp_dz function that takes theta and q as input, and let theta an q be anything.

Sure! I was rushing to test if this solves our compressible Bomex problems. And looks like even with the kinks in the velocity profile we can have a 6 hours simulation:

Will be working on making it more general for other cases we have next

This looks good. But can we make it a bit more modular, so that it works more easily for any profile of potential temperature and specific humidity? That is, e.g., write a generic dp_dz function that takes theta and q as input, and let theta an q be anything.

Sure! I was rushing to test if this solves our compressible Bomex problems. And looks like even with the kinks in the velocity profile we can have a 6 hours simulation:

Will be working on making it more general for other cases we have next

I'm glad it's working out!

I'm working on extending the hydrostatic profile calculation from Bomex to all our test cases.
I have two questions and was wondering if I could get some hints on them @charleskawczynski:

I need to know the z_0 and z_max as well as the pressure at the surface when computing the pressure profile. The surface pressure I have available in the Cases file, but the domain extend is a namelist or command line argument. So I'm not sure how to handle it here.

GATE_III and our LES driven cases don't specify the theta_liq_ice profile. I was wondering if for the LES driven cases we could just read in the pressure profile from the LES dataset. But I'm not sure what to do about GATE_III

The PyCLES pressure should be equally problematic as its computed from hydrostatic balance with uniform moist entropy from the surface.

The PyCLES pressure should be equally problematic as its computed from hydrostatic balance with uniform moist entropy from the surface.

As long as it is hydrostatically balanced it should not be giving us waves. Even if the uniform moist entropy assumption is not ideal

Update from today:

The compressible Bomex and DYCOMS_RF01 simulations are comparable to the anelastic ones.
TRMM doesn't work right now. I suspect that the issue is the pressure loaded from APL, so I'll see if I can compute it differently.
GABL fails right now because of SurfaceFluxes. This issue should be fixed soon.

Aside from that, I still need to update the LES driven cases.

GABLS is fixed by the updates from the main SurfaceFluxes branch.
Making TRMM profiles hydrostatic stops the convection for both the compressible and anelastic configuration. I'll continue working on this, but I would also vote to merge this PR as soon as the SF.jl updates are released. And work on the remaining issues as a follow up PRs.

GABLS is fixed by the updates from the main SurfaceFluxes branch.
Making TRMM profiles hydrostatic stops the convection for both the compressible and anelastic configuration. I'll continue working on this, but I would also vote to merge this PR as soon as the SF.jl updates are released. And work on the remaining issues as a follow up PRs.

Awesome, @trontrytel! Can you do TRMM with a hydrostatic profile to which you add a buoyancy (e.g., warm air) perturbation at the bottom?

I fixed the q_tot profile in TRMM and now the anelasitc simulation is working fine without any tweaks. The compressible simulation crashes, but not immediately. I'm testing if reducing the time step would help.

TRMM and the LES driven cases are the remaining things to fix. But regardless, PR is ready for review.

bors r+


ci(c/driver/flightsql): Add SQLite flightsql server test

It looks like AddressSanitizer is not happy.
In my experience, leaks of Nanoarrow structures usually means we forgot to import or free a C Data Interface structure somewhere.

@lidavidm I'll see if i can reproduce locally and see if i can track it down. Hopefully it's on the C/C++ side and not something like the process ending before it runs Go GC and calls the callbacks or whatever which would be harder to work out.