HTML minification

Trying to track down some build size issues and at first glance it seems like there's no HTML minification being performed even in a prod build. I'm guessing this was either never in place or was lost with the removal of html-loader. What's the roadmap here? Is the AOT compiler supposed to handle this somehow? If not, can we add a loader that at least does the minification?
OS?
Windows 10
Versions.
angular-cli: 1.0.0-beta.22-1
node: 6.9.1
os: win32 x64

Benchmarked this on my own project.
With AOT - my main bundle was around 606kb without html minification and 602kb with.
Without AOT - my main bundle was around 263kb without html minification and 255kb with.
Numbers are for the pre-gzip prod files. I imagine the gzip reduces the difference further.

We are discussing using html-loader again, but there are other issues that arise when using it.
Closing this as a dupe of #3415

@hansl Personally I'd like to see this left open unless you want to change #3415 to a general "Fix what we lost by removing html-loader" ticket. Yeah, html-loader does both html minification and image fingerprinting, but otherwise there's no relation between the two feature requests - you can have html minification with fingerprinting and fingerprinting without minification.

We will not do html minification unless we implement html-loader, so they're related.

What's the reasoning for that? It shouldn't be difficult to create a loader that only does html minification if you decide html-loader has too much other baggage to deal with.


Add authentication to btrdbcp

If specific perms are required to view streams, then btrdbcp is unable to see them in order to copy data to another server.  This issue is to add the ability to add authentication to the btrdcp utility (not in the config file) so that restricted streams can be copied.
It is assumed that wherever streams are being copied to, it is the responsibility of the target server administrator to make sure local permissions are setup to maintain secure access.

I have added $FROM_API_KEY and $TO_API_KEY support. Could you test it out for me?

Yes, I should be able to get to it today and get back to you here on the issue.

@immesys looks like its working just fine.  I got a warning because I forgot to change the port in the config to 4411 but that's my fault.  Feel free to close this one out.


[Bug] Running Llama 2 with WebGPU q4f32_1 gives GPUPipelineError: The total number of workgroup invocations (512) exceeds the maximum allowed (256).

🐛 Bug
When running the model produced by python3 -m mlc_llm.build --hf-path meta-llama/Llama-2-7b-chat-hf --target webgpu --quantization q4f32_1 on the web I get Init error, GPUPipelineError: The total number of workgroup invocations (512) exceeds the maximum allowed (256)..
To Reproduce
Steps to reproduce the behavior:

First I have to modify fuse_split_rotary_embedding.py as specified here: https://github.com/mlc-ai/mlc-llm/issues/816#issuecomment-1694558023 - I just replace all instances of float16 with float32 in fuse_split_rotary_embedding.py.

I then compile llama2:

(mlc-llm) ~/repo/mlc-llm python3 -m mlc_llm.build --hf-path meta-llama/Llama-2-7b-chat-hf --target webgpu --quantization q4f32_1
Weights exist at dist/models/Llama-2-7b-chat-hf, skipping download.
Using path "dist/models/Llama-2-7b-chat-hf" for model "Llama-2-7b-chat-hf"
Target configured: webgpu -keys=webgpu,gpu -max_num_threads=256
Load cached module from dist/Llama-2-7b-chat-hf-q4f32_1/mod_cache_before_build.pkl and skip tracing. You can use --use-cache=0 to retrace
[14:08:22] /Users/catalyst/Workspace/mlc-ai-package-self-runner/_work/package/package/tvm/src/target/llvm/codegen_llvm.cc:185: Warning: Set native vector bits to be 128 for wasm32
Finish exporting to dist/Llama-2-7b-chat-hf-q4f32_1/Llama-2-7b-chat-hf-q4f32_1-webgpu.wasm

Then I update examples/simple-chat/src/mlc-local-config.js to:

// config used when serving from local mlc-llm/dist
// use web-llm/script/serve_mlc_llm_dist.sh to start the artifact server
export default {
  "model_list": [
    {
      "model_url": "http://localhost:8000/Llama-2-7b-chat-hf-q4f32_1/params/",
      "local_id": "Llama-2-7b-chat-hf-q4f32_1"
    },
  ],
  "model_lib_map": {
    "Llama-2-7b-chat-hf-q4f32_1": "http://localhost:8000/Llama-2-7b-chat-hf-q4f32_1/Llama-2-7b-chat-hf-q4f32_1-webgpu.wasm",
  },
  "use_web_worker": true
}

Then I start the local serve server:

~/repo/web-llm ./scripts/serve_mlc_llm_dist.sh

And then start the example app:

~/repo/web-llm/examples/simple-chat npm run mlc-local                                                           ✹main

><EMAIL_ADDRESS>mlc-local
> cp src/mlc-local-config.js src/app-config.js && parcel src/llm_chat.html  --port 8888

Server running at http://localhost:8888
✨ Built in 174ms

And I get:

With this error:
Init error, GPUPipelineError: The total number of workgroup invocations (512) exceeds the maximum allowed (256).

Expected behavior
I can run Llama 2 on the web.
Environment

Platform (e.g. WebGPU/Vulkan/IOS/Android/CUDA): WebGPU
Operating system (e.g. Ubuntu/Windows/MacOS/...): MacOS
Device (e.g. iPhone 12 Pro, PC+RTX 3090, ...):  Yes this is an known issue that we noticed short ago. The fix is not as trivial and we are working on this. Sorry for not catching the issue at the beginning of release.

Just noticed that the prebuilt Llama2 q4f32_1 lib in https://webllm.mlc.ai is actually good.

Are you using the lib you just built? If so you might need to wait us for a fix. Or you can use the prebuilt q4f32_1 wasm in https://github.com/mlc-ai/binary-mlc-llm-libs

Hi, this issue should have been addressed. You can update the mlc-ai pip package again and the issue should have gone.


HTML Editor not disposing the dialog

How do i click the dialog button  (HTML editor not disposing in the background)

Since you are using Flutter Web, you need to use the pointer_interceptor package. Wrap your AlertDialog with PointerInterceptor and then you can click on the yes / no buttons.
Just FYI, any widget that is interactable and will display on top of the editor, you need to wrap with this PointerInterceptor.

Hello, is this issue still resolvable by wrapping the interactable widgets inside a PointerInterceptor? I thought I solved this issue as suggested like 2 months ago, but then I had to drop the project for a while, and now that I resumed working on it, I can't seem to make it work. As suggested here and on the pointer_interceptor page, I both wrapped my Drawer and an AlertDialog (which are the only widgets that would appear above the HTML editor), but both of them won't receive inputs

As far as I know it should be working by wrapping the widget, so you may be correct that it is a Flutter bug.

Yes, it has been solved with PointerInterceptor

In my case when clicking insert link on toolbar it shows dialog on top of the html editor, how do i wrap this default dialog from the package, cant seem to find way to customize it.

In my case when clicking insert link on toolbar it shows dialog on top of the html editor, how do i wrap this default dialog from the package, cant seem to find way to customize it.

Nevermind , i found it on #69
But putting pointer interceptor solution doesnt seems to work, since i still cant click the field on insert link dialog and whenever i type something it typed on html editor field instead.

Happening for me as well. I have a customised dialog for adding the link but I can't seem to access the Url text field here

a
Here's the code for the custom dialog:
Future<bool> linkDialog() async {
    final text = TextEditingController();
    final url = TextEditingController();
    final textFocus = FocusNode();
    final urlFocus = FocusNode();
    final formKey = GlobalKey<FormState>();
    await showDialog(
        context: context,
        builder: (BuildContext context) {
          return PointerInterceptor(
            child: AlertDialog(
              title: Text('Insert Link'),
              scrollable: true,
              content: Form(
                key: formKey,
                child: Column(
                  mainAxisSize: MainAxisSize.min,
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Text('Text to display',
                        style: TextStyle(fontWeight: FontWeight.bold)),
                    SizedBox(height: 10),
                    TextField(
                      controller: text,
                      focusNode: textFocus,
                      textInputAction: TextInputAction.next,
                      decoration: InputDecoration(
                        border: OutlineInputBorder(),
                        hintText: 'Text',
                      ),
                      onSubmitted: (_) {
                        urlFocus.requestFocus();
                      },
                    ),
                    SizedBox(height: 20),
                    Text('URL', style: TextStyle(fontWeight: FontWeight.bold)),
                    SizedBox(height: 10),
                    TextFormField(
                      controller: url,
                      focusNode: urlFocus,
                      textInputAction: TextInputAction.done,
                      decoration: InputDecoration(
                        border: OutlineInputBorder(),
                        hintText: 'URL',
                      ),
                      validator: (String value) {
                        if (value == null || value.isEmpty) {
                          return 'Please enter a URL!';
                        }
                        return null;
                      },
                    ),
                  ],
                ),
              ),
              actions: [
                TextButton(
                  onPressed: () {
                    setState(() {
                      showNotesUI = true;
                    });
                    Navigator.of(context).pop();
                  },
                  child: Text('Cancel'),
                ),
                TextButton(
                  onPressed: () async {
                    if (formKey.currentState.validate()) {
                      controller.insertLink(
                        text.text.isEmpty ? url.text : text.text,
                        url.text,
                        true,
                      );
                      setState(() {
                        showNotesUI = true;
                      });
                      Navigator.of(context).pop();
                    }
                  },
                  child: Text('OK'),
                )
              ],
            ),
          );
        });
    return false;
  }

Hi @rutaba1 , this seems to be an issue in Flutter. What Flutter version are you using?

Is the dialog box issue resolved ?


Setting custom labels on created resources from command argument or env var

Hi!
We want to configure some labels on resources created by kubedock with the current CI job information.
And we don't have control on container name or labels to used already present features.
We run kubedock as a service on Gitlab runner.
This mean that when Gitlab launch a job a pod is created with kubedock as a sidecar.
So each kubedock instance is dedicated to one job.
It would be a convenient use to configure the desired labels as environment variables or command argument of the kubedock instance.

@joyrex2001 Hi.
As I understand, to pass label, for example com.joyrex2001.kubedock.request-memory to kafka container we should do it through the code using withLabel method in testcontainers.
So, we need to update all our services which takes a lot of time.
If I'm correct above, then +1 for this topic, it would be great to be able to pass labels through env vars.

@andreezy777 if you want to set kubedock specific controls, like com.joyrex2001.kubedock.request-memory, these usually already have an environment variable alternative available. Unfortunately not (that well) documented. In you example it would be K8S_REQUEST_MEMORY (see here).

@andreezy777 if you want to set kubedock specific controls, like com.joyrex2001.kubedock.request-memory, these usually already have an environment variable alternative available. Unfortunately not (that well) documented. In you example it would be K8S_REQUEST_MEMORY (see here).

As I read in readme there are some differences between env kubedock.request-memory and label com.joyrex2001.kubedock.request-memory. Because first one - it’s about global limits and second one about limits specially for needed container.
Pls, confirm that “global” means that every container that will started by kubedock will have limits that was set up by env var , but if I need, for example apply limits X for postgres container and limits Y for Kafka container, then I need to use label through code, right?

@andreezy777 correct, the one you would set when starting kubedock (via env, or cli argument) will be applied to all created containers. If a container adds a label itself, that will take precedence over this default.

In https://github.com/joyrex2001/kubedock/commit/7d823eebe422d0a7f17e2e6f48b6c048966d1e64 I added support for adding labels and annotations that need to be propagated to the kubernetes pods. This can be done via cli --label and --annotation as well via adding environment variables that start with K8S_LABEL_ and K8S_ANNOTATION_.

Awesome :star_struck:
When do you plan a new release?


Why is this repo using glfw and glew libraries inside project?

When I was intended to build testbed I just made changed testbed CMakeLists a little (pull request will be soon) and compiled it with my glfw and glew libraries. Ye, I had to change some #include directions, but after that everything was fine. It worked. But when I tried to build "examples" with main CMakeLists I got glfw error #error "No supported window creation API selected". I tried to workaround this error by adding couple of #define in config.h but it didn't help. So my main question is why are you using glew and glfw source code inside project even if it doesn't work?
I guess good solution is to remove them, and use external versions, built by linux repos or by manual building.

The use of glew and glfw source code inside the project comes from Erin's Box2D sources that I had forked from where it had this to begin with. I'm sorry that these aren't working for you. I haven't ran into this problem myself but I haven't been building the Testbed under Linux (I do build and use the Testbed a lot however just not under linux). I'd really like the Testbed to build under linux too though.
I've seen some discussion of others having problems with glew and glfw when building Erin's Box2D under linux. The most interesting of which had the suggestion of using a different mechanism than including the sources directly in the Box2D distribution. Git sub-modules seemed to be a suggested way. I use Git sub-modules for the Google Test code and I'd prefer using git-submodules over keeping the glew and glfw sources right in this fork.
Do you think using external versions built by linux repos would be better than using git submodules? I don't have a strong opinion on one solution over the other but cross-platform convenience is appealing.

Ye, you know, I forgot about git submodules. I guess the best solutions for now are: Using git submodules or use CMake's ExternalProject.
But I guess include libraries that will be used in CMakeLists has to be standard, because why must am I download another package if I already has it in my system?

Regarding glew and glfw, I've been wondering how useful are these libraries anyway?
I mean I like having a GUI Testbed but would it be better to redo the Testbed's implementation to use other libraries? Like Qt? Not sure if Qt could fully replace those two but like if Qt is more standard, then maybe it should. Or whatever other library is more standard. I started looking into using Qt at one point and then decided to put that on hold on account of the GUI Testbed not seeming as important as the base Box2D library itself. Perhaps beyond the HelloWorld and unit test applications of Box2D, any other stuff should be a completely separate project.
What are your thoughts on this?

I dont know. Cause changing API from glew and glfw to Qt needs a lot of changes. And result testbed binary will need pretty heavy Qt libaries.

I've been looking into this more. I too would prefer that GLFW and GLEW not be inside the project.
I've noticed that this project shows up on GitHub as primarily C-language based. I suspect that's because of GLFW and GLEW being primarily C. So chucking these sources out from the project I believe would help this project be recognized more as a C++ project which I'd prefer.
Greater flexibility to pick the releases of GLFW and GLEW would also be a plus IMO.

Just updated the GLFW code that's inside this library from 3.0 to the same 3.1 GLFW code that Erin has now in his master branch of his Box2D repo. I wanted to see how hard using new GLFW sources would be and figured upgrading the in-repo sources just to 3.1 would be an easier first step with less risk. Hopefully that doesn't cause anyone any new problems.
I also downloaded, built, and externally installed the latest GLFW and GLEW libraries.
Between pulling these sources in as git submodules or externally linking to them I'm now leaning towards the latter.

I've removed all the GLEW and GLFW source code from the project now. CMake is now including and linking to external builds of those at least on the CI server linux system.
Some things I haven't done yet but that are on my list:
Haven't tried building via this new CMake setup on any platform besides Linux yet. I haven't updated any build instructions yet though except for the Travis-CI configuration file. The Xcode project file does it the new way now too though it similarly will also need some updated instructions and tweaking by individuals.
Also, there's some related issues to this: issue #34 and issue #21.

I'm not sure that removing the GLFW and GLEW library headers and sources is a win. Seems like it makes building the Testbed harder now in some ways at least for the first build. It does get this project to show up as a primarily C++ source code project now though which I definitely prefer. I believe it also makes it easier now to switch between different releases of GLFW3 or GLEW2 although I don't know that anyone cares about that. It also seemed there's scant Linux repo support for these releases of these libraries so they'll probably need to be built manually by many Linux users.
I'm going to close this issue now on account of these libraries no longer being inside the project and keep my fingers crossed that I don't come to regret removing them.
If you pull the latest sources for this fork and try building the Testbed, I'd very much like to know how that goes for you. If you have problems building it though, let's open a separate issue specific to the trouble you encounter or use one of the other Testbed related issues if they're close enough.


Sliding Window Maximum

What was changed?

Checklist

[x] Added description of change.
[x] I acknowledge that all my contributions will be made under the project's license.

Program Request

[x] Added file name matches File name guidelines mentioned in Contributing guidelines
[x] Updated documentation OR created an issue for someone else to update the documentation.

Bug Fix

[x] Bug is now fixed and program now behaves as expected.

Documentation Update

[x] Documenation matches format mentioned in Contributing guidelines
[x] If applicable, referenced sources have been linked.

Program Improvement

[x] The improvements made are not just visual and actually makes the program more efficient.

Notes: This is with respect to issue #66

@saaimsid Review this PR.

@unshDee When my PR get mature beacause fest going to end today

@unshDee When my PR get mature beacause fest going to end today

Hello @harshita9621 I had already approved this PR and merged it around 2 weeks ago.
It's visible above.


Add increaseIndentToken to indentationRules

This is the current indentationRules of Lua:
"indentationRules": {
  "increaseIndentPattern": "^((?!(\\-\\-)).)*((\\b(else|function|then|do|repeat)\\b((?!\\b(end|until)\\b).)*)|(\\{\\s*))$",
  "decreaseIndentPattern": "^\\s*((\\b(elseif|else|end|until)\\b)|(\\})|(\\)))"
}

It can work normally in most cases, but sometimes it can cause problems, such as:

Since regular expressions are currently used to determine whether indentation is required, and the rules for strings are usually very complicated, it is difficult to solve this problem with the current designs.
Then I found that tokenTypes can mark a syntax token as other, string or comment.
Therefore, we may be able to achieve indentation through a similar method, which can ensure the correctness of the indentation, for example:
"indentationRules": {
    "increaseIndentToken": ["keyword.control.increase.lua", "brackets.left.lua"],
    "decreaseIndentToken": ["keyword.control.decrease.lua", "brackets.right.lua"],
}

@sumneko thanks for your suggestion, this is an interesting idea. The regex based solution is never good enough and taking the token info into account can help with some cases but I'm not sure how it would work with multi-line scenarios.

@sumneko thanks for your suggestion, this is an interesting idea. The regex based solution is never good enough and taking the token info into account can help with some cases but I'm not sure how it would work with multi-line scenarios. With that being said, it's a good start and we can continue brainstorm how to make it work properly.

local t = [[multi-line $ string]]

If I use then token string.lua as increaseIndentToken, and press Enter at $, this solution cannot resolve this case.
Is this what you mean of how it would work with multi-line scenarios ?
I will consider this situation carefully.

@sumneko right, we kind of need to differentiate whether the cursor is in the first line of the multi-line string or the second or next lines. This might require knowledge of the context (other tokens in the line) so knowing the token type around the cursor is not sufficient.
However I wonder if this can be solved by the tokenizer generating more token types.

However I wonder if this can be solved by the tokenizer generating more token types.

I agree.
Since this feature will not cause any incompatibility, people who want to use this feature can solve the multi-line problem by generating more token types.
But there is also a potential problem, the user may have installed third-party tokenizer plugins, and these plugins may not provide these tokens.
A fallback solution may be required, for example we allow increaseIndentPattern to exist at the same time as increaseIndentToken, but if it is not possible to provide the required token in the current tokenizer (I'm not sure if this is possible), use increaseIndentPattern, otherwise use increaseIndentToken.


Tried to register two views with the same name SkiaDomView

Hey!
I was trying on this library since I heard its a great list renderer, but I am facing this issue. Can you help me in this?
Thanks!

On it

updated the example: https://github.com/SamuelScheit/react-native-skia-list/blob/main/example/app/GettingStarted.tsx
fixed hot reloading
updated the dependencies and installation instructions:
the problem with "Tried to register two views with the same name" is that the skia package was installed twice, once in the root node_modules dir and once inside of the skia-list package directory.
to fix this you have to install the peer dependencies manually:

yarn add<EMAIL_ADDRESS>@shopify/react-native-skia react-native-keyboard-controller react-native-reanimated react-native-gesture-handler

I hope this issue is now fixed for you, feel free to reply if it still occurs.
Sorry that it took so long, I can't live from open source yet and I'm working on this package in my free time,
If you value my work feel free to sponsor me.

Hey Samuel! Appreciate the work man. I'll test this out when I get the time next. Thanks for update 😊


[docker] Support Nomad for SD and tags

What does this PR do?
It adds task, group and job tags fron NomadUtil to docker.* metrics
Depends on https://github.com/DataDog/dd-agent/pull/3289

LGTM
Tests are failing because if the sync issue between integrations-core and dd-agent, we can ignore.


feat!: v1

PR for v1
This PR introduces v1 implementation for fastify-download. Which implements similar feature as res.download on Express.js on fastify, decorating reply object with a download function.
Closes #1563
Notes

Not sure if is best that the download function should return a Promise. This is due to the fact that if lastModified flag is passed, a promisified version of fs.stat it's being called.

Pending

[ ] Testing
[ ] Documentation
[ ] Types

FYI: the original issue was for http2. You might want to consider working on fastify-static instead, which it implements this functionality

FYI: the original issue was for http2. You might want to consider working on fastify-static instead, which implements this functionality

O that's true. Thanks for pointing me there! I'll open a PR and move the implementation there, taking advantage of the current implementation 👍

Closed in favor of #174


Hero image distortion on blog pages

We've talked a bit about this on Slack, but just to capture it... the distortion on the hero/banner image on the blog pages is awful. I don't know if there are other CSS declarations that would handle the scaling/stretching better, but it's really not good at the moment.
What's interesting is that inline images render correctly, I think (I'll need to check this), which suggests it's purely the CSS for that type of image.
Alternatively, if there's a more specific size and/or aspect ratio that renders better (adjusting for a responsive site, obviously), then we could use that and simply work around the scaling issues.

I'm hoping @razzeee can make some suggestions.  I exhausted my CSS knowledge getting the image to look moderately crappy in every usage case and size on a variety of devices.
Inline images are easier because they only have to render in the page body.  The header image is used as the header of the blog post as well as the top of the card on the index page.  So the header images tend to get copped and stretched based on need.  If you optimize the image for one of the two, the other one almost always looks like crap.
We could require two "header" images for every blog post (on for the ribbon header on the blog post and the other for the card) with specific dimensions, but that seems like a real hassle to manage.  And will require a fair amount of code update on the site too.

We should probably bite the bullet and maybe do two images in a backwards compatible mannor?
Right now loading https://kodi.tv/blog loads 6.81mb of images, that's not very good. As it's loading the full size images used for the headers.
So if we would separate those images, we could load a small one on the overviews and a different big one on the page itself (with the correct aspect)
Do we still remember what the old page did with these images?

Just in case it's useful...
https://www.gatsbyjs.com/plugins/gatsby-plugin-image

I could never get gatsby-plugin-image to work.  The documentation assumes you are already a GatsbyJS and GraphQL expert.  From what I can tell you have to use some magic incantation get all your images into GraphQL, then with a separate animal sacrifice you query GraphQL with specific unknown parameters to get back what you want.  If someone can figure that out, feel free to update the site code.  After two weeks of pulling my hair out, I gave up.

Even if we get that working, it doesn't help with aspect ratios of images? At least I would be surprised.

I realise that no one asked for an example of this problem, but https://kodi.tv/article/kodi-community-may-2015/ is particularly bad!


Provide also raw release contents

I think it would be also useful to provide raw release contents. So all raw lines between one heading and the other. This can then be used to do some custom post-processing if necessary.

Hello @mitar,
You should be able to do this by retrieving the desired release (c.GetRelease("v1.0.0") and then formatting it (r.ToString()).
Is that what you are looking for?
P.S: you can also do this on the Changelog/Release/Changes level

This reformats the changelog. I was hoping to be able to get something closer to the original formatting.


MAVlink Forwarding - System not detected

I am currently trying to forward MAVlink messages from QGroundControl to a Raspberry Pi. I'm using MAVSDK to listen to a specific UDP port:
ConnectionResult conn_result = mavsdk.add_any_connection("udp://:14445");
The program doesn't seem to recognize the vehicle. Specifically, mavsdk.systems().size() always equals 0. In QGC, I enabled mavlink forwarding and specified the IP address of the pi and UDP port. Both devices are able to ping each other. Has anybody encountered this issue?

By the way, you can also forward using MAVSDKS by adding the argument with the ForwardingOption.
https://mavsdk.mavlink.io/main/en/cpp/api_reference/classmavsdk_1_1_mavsdk.html#classmavsdk_1_1_mavsdk_1aa43dfb00d5118d26ae5aabd0f9ba56b2

I enabled mavlink forwarding and specified the IP address of the pi and UDP port.

So, you set it to e.g. <IP_ADDRESS>:14445? That all seems like it's correct. I can recommend using Wireshark to check if the packages are forwarded correctly.

v4.0.11,

That sounds older. Why not the latest?

how do I specify a UDP port in QGC?

Application Settings -> Comm Links -> Add UDP connection


Add abstraction WIP

Description
It's draft. I need comments to continue.
#80
Checklist

[x] The code change is tested and works locally.
[x] tests pass. Your PR won't be merged unless tests pass
[x] There is no commented out code in this PR

It's stock.
I'm not sure, do you want product related functions in Product class ? For me it seems to be a good idea : oriented object.

And I did minimal test so coverage and others checks will fail. It's a draft.

@markrussel

So why sometimes get_details are used or not :
Shopping list : a product in the list can have a product_id or not 😹 and the way to retrieve the list is different...
Chore : because we need one field only :/
Product : not anymore since stock returns it.
But a missing product is different from a Product...
Grocy API itself is not consistent. I do my best 😹

So why sometimes get_details are used or not :
Shopping list : a product in the list can have a product_id or not joy_cat and the way to retrieve the list is different...
Chore : because we need one field only :/
Product : not anymore since stock returns it.
But a missing product is different from a Product...
Grocy API itself is not consistent. I do my best joy_cat

Yeah no worries, just adding my thoughts as I go along. If something seems offensive, its definitely not meant that way :smile:
I do agree, the Grocy API is quite a mess. Sadly, from what I read so far in the Grocy issues, the maintainer doesn't seem to be that open to big changes, so I am not sure if its possible to change the API, plus it would probably also need a lot of work on the frontend side. I guess it is what it is.

Hey don't worry, me AND my English are rude. Sorry.
But seriously I don't like how we are working.
For me it's not team working but just my worst customer.  But I will try to more explain my work.
You have a good ideas sorry for my answers

Sorry but I'm done.
I will focus on another project.
Good luck.
Best regards.

But seriously I don't like how we are working.
For me it's not team working but just my worst customer.

Sorry but I'm done.
I will focus on another project.

Really sad to hear you leaving this project. I always appreciated your work and motivation. Good luck :)


Improvements for viewing and navigating Rust book results

We want to keep the current RMC dashboard as developer documentation (see #698) but it still needs visual/usability improvements.
The initial idea is to develop a React-based prototype which displays results based on the run.json file generated with litani. This would remove the need of implementing hierarchical results in litani (#520).

Update: We decided not to use React for this and use only JavaScript + CSS instead.

Closing because we don't generate this dashboard anymore (see https://github.com/model-checking/kani/pull/3123).


Fix randfn to prevent generating of nan values

Fix https://github.com/godotengine/godot/issues/72394

Thanks!

Cherry-picked for 4.0.2.


esp8266 is crashing on connection

Log from ROS <IP_ADDRESS>
rosrun rosserial_python serial_node.py tcp
[INFO] [1504026878.861724]: ROS Serial Python Node
Fork_server is:  False
[INFO] [1504026878.866898]: Waiting for socket connections on port 11411
waiting for socket connection
[INFO] [1504026895.864035]: Established a socket connection from <IP_ADDRESS> on port 32163
[INFO] [1504026895.864462]: calling startSerialClient
[INFO] [1504026901.808561]: socket.error exception caught
[INFO] [1504026901.809044]: startSerialClient() exited
waiting for socket connection
[INFO] [1504026903.043857]: Established a socket connection from <IP_ADDRESS> on port 9521
[INFO] [1504026903.044350]: calling startSerialClient
[INFO] [1504026912.801278]: socket.error exception caught
[INFO] [1504026912.801747]: startSerialClient() exited
waiting for socket connection

https://github.com/agnunez/espros/blob/master/examples/esproswifi/esproswifi.ino
log from esp8266 <IP_ADDRESS> over uart
Connecting to HHH7351HHH
Ready! Use <IP_ADDRESS> to access client

Exception (3):
epc1=0x4000bf64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x402309fd depc=0x00000000

ctx: cont
sp: 3fff03b0 end: 3fff0650 offset: 01a0

>>>stack>>>
3fff0550:  00000000 00000010 402014cc 3ffef630
3fff0560:  0000000d 00001388 00001388 40201943
3fff0570:  00000000 00000001 3fff17c4 00000000
3fff0580:  3ffef4d0 00000001 3ffee458 40204400

3fff0590:  40205535 00000000 3fff170c 00000000
3fff05a0:  3ffef4d0 3ffef534 3ffee458 402040b9
3fff05b0:  3ffe8518 00000064 3ffe84bc 402309fd
3fff05c0:  402309dc 00000800 3fff170c 3ffef55c
3fff05d0:  402043cc 3ffee458 3ffee458 40203ed7
3fff05e0:  3ffe8500 00000000 00000000 3ffef55c
3fff05f0:  00001eb2 3ffee458 3ffef458 40204316
3fff0600:  3fffdad0 3ffef620 402014cc 3ffef630
3fff0610:  4020194e 000001f4 000001f4 3ffef620
3fff0620:  3fffdad0 00000000 3ffef618 402043b0
3fff0630:  3fffdad0 00000000 3ffef618 40201518
3fff0640:  feefeffe feefeffe 3ffef630 40202610
<<<stack<<<

On Wireshark
"No.","dTime","Source","Destination","Protocol","Length","Info"
"12","0.000000000","<IP_ADDRESS>","<IP_ADDRESS>","TCP","70","11411  >  12537 [PSH, ACK] Seq=1 Ack=1 Win=29200 Len=16"
"67","4.953325587","<IP_ADDRESS>","<IP_ADDRESS>","TCP","58","20458  >  11411 [SYN] Seq=0 Win=5840 Len=0 MSS=1460"
"68","0.000063971","<IP_ADDRESS>","<IP_ADDRESS>","TCP","58","11411  >  20458 [SYN, ACK] Seq=0 Ack=1 Win=29200 Len=0 MSS=1460"
"69","0.002769226","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","20458  >  11411 [ACK] Seq=1 Ack=1 Win=5840 Len=0"
"70","1.715842547","<IP_ADDRESS>","<IP_ADDRESS>","TCP","70","[TCP Retransmission] 11411  >  12537 [PSH, ACK] Seq=1 Ack=1 Win=29200 Len=16"
"71","0.003213314","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","12537  >  11411 [RST, ACK] Seq=1 Ack=17 Win=5840 Len=0"
"74","2.105902690","<IP_ADDRESS>","<IP_ADDRESS>","TCP","62","11411  >  20458 [PSH, ACK] Seq=1 Ack=1 Win=29200 Len=8"
"75","0.160145716","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","20458  >  11411 [ACK] Seq=1 Ack=9 Win=5832 Len=0"
"76","0.016768009","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=1 Ack=9 Win=5832 Len=1"
"77","0.000031492","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=2 Win=29200 Len=0"
"78","0.002006589","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=2 Ack=9 Win=5832 Len=1"
"79","0.000045126","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=3 Win=29200 Len=0"
"80","0.004521424","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=3 Ack=9 Win=5832 Len=1"
"81","0.000053878","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=4 Win=29200 Len=0"
"82","0.001765268","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=4 Ack=9 Win=5832 Len=1"
"83","0.000051152","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=5 Win=29200 Len=0"
"84","0.001820491","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=5 Ack=9 Win=5832 Len=1"
"85","0.000057232","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=6 Win=29200 Len=0"
"86","0.001755244","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=6 Ack=9 Win=5832 Len=1"
"87","0.000054622","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=7 Win=29200 Len=0"
"88","0.001814952","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=7 Ack=9 Win=5832 Len=1"
"89","0.000052916","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=8 Win=29200 Len=0"
"90","0.001716363","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=8 Ack=9 Win=5832 Len=1"
"91","0.000054600","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=9 Win=29200 Len=0"
"92","0.001801711","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=9 Ack=9 Win=5832 Len=1"
"93","0.000055512","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=10 Win=29200 Len=0"
"94","0.002660727","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=10 Ack=9 Win=5832 Len=1"
"95","0.000050897","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=11 Win=29200 Len=0"
"96","0.002062846","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=11 Ack=9 Win=5832 Len=1"
"97","0.000048712","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=12 Win=29200 Len=0"
"98","0.002034003","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=12 Ack=9 Win=5832 Len=1"
"99","0.000049223","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=13 Win=29200 Len=0"
"100","0.001781780","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=13 Ack=9 Win=5832 Len=1"
"101","0.000060632","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=14 Win=29200 Len=0"
"102","0.001886663","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=14 Ack=9 Win=5832 Len=1"
"103","0.000063788","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=15 Win=29200 Len=0"
"104","0.001799169","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=15 Ack=9 Win=5832 Len=1"
"105","0.000054328","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=16 Win=29200 Len=0"
"106","0.001918051","<IP_ADDRESS>","<IP_ADDRESS>","TCP","55","20458  >  11411 [PSH, ACK] Seq=16 Ack=9 Win=5832 Len=1"
"107","0.000054095","<IP_ADDRESS>","<IP_ADDRESS>","TCP","54","11411  >  20458 [ACK] Seq=9 Ack=17 Win=29200 Len=0"
"108","0.000155631","<IP_ADDRESS>","<IP_ADDRESS>","TCP","70","11411  >  20458 [PSH, ACK] Seq=9 Ack=17 Win=29200 Len=16"
"109","0.221617392","<IP_ADDRESS>","<IP_ADDRESS>","TCP","70","[TCP Retransmission] 11411  >  20458 [PSH, ACK] Seq=9 Ack=17 Win=29200 Len=16"
"113","0.447994540","<IP_ADDRESS>","<IP_ADDRESS>","TCP","70","[TCP Retransmission] 11411  >  20458 [PSH, ACK] Seq=9 Ack=17 Win=29200 Len=16"
"119","0.896060984","<IP_ADDRESS>","<IP_ADDRESS>","TCP","70","[TCP Retransmission] 11411  >  20458 [PSH, ACK] Seq=9 Ack=17 Win=29200 Len=16"
"133","1.795927560","<IP_ADDRESS>","<IP_ADDRESS>","TCP","70","[TCP Retransmission] 11411  >  20458 [PSH, ACK] Seq=9 Ack=17 Win=29200 Len=16"
"192","3.592229708","<IP_ADDRESS>","<IP_ADDRESS>","TCP","70","[TCP Retransmission] 11411  >  20458 [PSH, ACK] Seq=9 Ack=17 Win=29200 Len=16"
"200","3.085579866","<IP_ADDRESS>","<IP_ADDRESS>","TCP","62","11411  >  20458 [FIN, PSH, ACK] Seq=25 Ack=17 Win=29200 Len=8"
"212","4.106211379","<IP_ADDRESS>","<IP_ADDRESS>","TCP","78","[TCP Retransmission] 11411  >  20458 [FIN, PSH, ACK] Seq=9 Ack=17 Win=29200 Len=24"
"281","14.368005899","<IP_ADDRESS>","<IP_ADDRESS>","TCP","78","[TCP Retransmission] 11411  >  20458 [FIN, PSH, ACK] Seq=9 Ack=17 Win=29200 Len=24"

Hi, we got problems like this with some "abused" ESP8266 (reprogrammed many times). As the applications, number of timer and enconder interrupts are very demanding, the WiFi stack lose time slots and fail starting retransmission that degenerate and crash the MCU. Please, just program a fresh ESP8266 with exactly the same code to check that is not this issue. If you want to keep current ESP8266, relax the loop interval and timer interrupt delay, to allow WiFi stack to recover.
@agnunez


1053 bug open source url field

Description
open source url field not displayed when isopensource radio button is clicked in edit mode.
In catalog contribution/edit page, opensource url field is not being displayed when isOpenSource radio button value is "yes".
Added an onclick function on the input radio button to show/hide sourceurl field. MoveSelector method is added to move the "Select a contribution type" div accordingly.
Fixes #1053
Review Time Estimate
Please give your idea of how soon this pull request needs to be reviewed by selecting one of the options below. This can be based on the criticality of the issue at hand and/or other relevant factors.

[ ] Immediately
[x] Within a week
[ ] When possible

Type of changes
Please select a relevant option:

[x] 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 not work as expected).
[ ] Other (any another change that does not fall in one of the above categories.)

Checklist:
Please select all applicable options:

[ ] I have signed the Rokwire Contributor License Agreement (CLA). (Any contributor who is not an employee of the University of Illinois whose official duties include contributing to the Rokwire software, or who is not paid by the Rokwire project, needs to sign the CLA before their contribution can be accepted.)
[x] I have updated the CHANGELOG.
[ ] I have read the Contributor Guidelines.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[ ] My change requires updating the documentation.
[ ] I have made necessary changes to the documentation.
[ ] I have added tests related to my changes.
[ ] My changes generate no new warnings.
[ ] New and existing unit tests pass locally with my changes.
[ ] Any dependent changes have been merged and published in downstream modules.

merging to release branch.


Cursor disappears inside Org blocks (like source, quote etc)

My Environment

OS: MX Linux 18
$ uname -r: 4.19.0-5-amd64
dotfiles
i3wm version 4.13
~/.config/i3
GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2019-11-19
~/.emacs.d
evil Version: 20191125.1525
doom themes Version: 20191127.358
Themes tested:

doom-dracula
doom-solarized-dark
doom-gruvbox
doom-laserwave

Use-package declaration
(use-package doom-themes
:ensure t
:config
(load-theme 'doom-dracula t))

Link

Issue
On Org Mode blocks, the pointer disappears on blank lines, or after the end of the line. Here's how it looks: https://youtu.be/I-ad_IhmCWM
Also tested in example and quote blocks. Looks like an issue with blocks in general.

This is a duplicate of #342, which was fixed (and the fix reportedly works). As I'm not an Emacs 27 user, I cannot readily test this. If you can identify the problematic faces, please let me know. They can be fixed locally with:
(with-eval-after-load 'helm
  (set-face-extend 'helm-selection t))
(with-eval-after-load 'macrostep
  (set-face-extend 'macrostep-expansion-highlight-face t))


Markdown heading levels all have the same font size

See title. I'd expect smaller font size for higher heading levels.
Additional context
rerun_py 0.9.0-alpha.6 [rustc 1.72.1 (d5c2e9c34 2023-09-13), LLVM 16.0.5] x86_64-unknown-linux-gnu bde24df, built 2023-10-02T12:51:19Z

assign the issue to me,currently i am working on ui & ux

@haritha208: Do you know how to fix it? I believe it requires a fix in egui and/or egui_commonmark

repro:
import rerun as rr

rr.init("md", spawn=True)

rr.log(
    "my_points",
    rr.TextDocument("""
# Heading level 1

## Heading level 2

### Heading level 3

#### Heading level 4

##### Heading level 5

###### Heading level 6

Body text
 """, media_type=rr.MediaType.MARKDOWN)
)

result:

I believe this might be due to some interaction between the way egui_commonmark sets up styling and our own re_ui customisations:

Fixed by https://github.com/lampsitter/egui_commonmark/pull/20


Blocks are reallocated once the overflowing batch is successfully
drained.
This will make initial throughput of a consumer slower, but over time
hopefully all blocks eventually reach a state where they won't overflow
anymore.
Fix https://github.com/getsentry/arroyo/issues/248

after talking to lyn, we decided that it makes more sense to expose input_block_size=None (as default) instead of adding additional flags. The initial block sizes are hardcoded at 16kB in those cases.
There was also an idea to use the message size to guide by how much the input block should be reallocated. I tried this and found it was quite hard to implement, I don't think it will significantly impact startup performance.


Issue with MySQL driver on Sponge

Hello @lucko !) LP works good for 1.10.2-2281-5.2.0-BETA-2567, but version 1.10.2-2281-5.2.0-BETA-2569 and 2571 have next errors:
https://pastebin.com/dvYkECb4
All plugins for work in MySQL not connecting and work. I is error in LP, or SpongeForge?)
LP version: LuckPerms-Sponge-3.3.3

It's not a crash, rather, the MySQL driver installed on your server isn't working for some reason.
Can you try updating to a newer SF version?

SF last in this page: https://www.spongepowered.org/downloads/spongeforge/stable/1.10.2
Thanks for the explanation, without knowledge of English it can sometimes be difficult to understand the errors and their consequences) I'll write issues in SF)

I doubt it's an SF issue.
More likely that you've installed a mod/plugin which is packaging an older/newer version of the driver.

Version 1.10.2-2281-5.2.0-BETA-2567 and previous such errors do not cause) Only version 1.10.2-2281-5.2.0-BETA-2569, 1.10.2-2281-5.2.0-BETA-2571

Ok, and if you downgrade again, it works?

Yes, server works, and there are no errors.
https://github.com/SpongePowered/SpongeForge/issues/1735

Have you actually tried downgrading to the SF version which works?
I don't see how if that works, it could possibly be a LP issue.
blood is also mistaken, the error has nothing to do with loading groups.
[23:03:22] [Server thread/INFO] [STDERR/sponge]: [me.lucko.luckperms.common.storage.backing.sql.SQLBacking:init:197]: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: java.lang.NoClassDefFoundError: com/mysql/jdbc/MysqlIO

We are effected by this bug too, it has to be something in Sponge as no downgrade of LuckPerms will fix it only downgrading Sponge will help.

@lucko All we did was update our database libs
https://github.com/SpongePowered/SpongeCommon/commit/c4d8144c39c842214739f1131ca45b2cc2c53e30

Looks like this may be related to our new track method system. So don't bother looking into anything on your end.

Alrighty. Thanks blood.

Same issue here after updating from spongeforge-1.10.2-2281-5.2.0-BETA-2464 to spongeforge-1.10.2-2281-5.2.0-BETA-2585.
I can't completely follow the comments above. Do I need to wait for a fix in sponge or luckperms?

Sponge.
Afaik, there's already a fix out, as of 3 hours ago.

Alright, thanks.


fix(NavigationContainer): fix onBack of TopBar

Description
fix onBack of TopBar.
Type of change
Please select the relevant option.

[x] 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 not work as expected)
[ ] This change requires a documentation update

修复导航栏返回按钮，直接返回设备列表页


Mock APNS Server as a saperate maven artifact

Guys, great job writing this awesome library...
Not sure if this has been discussed previously, but it would be really great if the MockAPNS server can be released as a separate maven artifact,

It might reduce some classes from the runtime.
It will be helpful for people using some other ways/technologies to send APNS pushes, but still want to use pushy's MockServer in their integration tests.
Thanks

Even though I didn't explicitly call it out, this will definitely happen as part of #459. Thanks for the suggestion!


How to limit the download bandwidth?

Hi, is there a way to limit the download bandwidth. Per download task or the total bandwidth for a fetch instance?

I find the issue: https://github.com/tonyofrancis/Fetch/issues/464 and https://github.com/tonyofrancis/Fetch/issues/192.
But I don't know how to implement a custom downloader, which override the getRequestBufferSize. The custom buffer size can used to control the download speed?


hdd_info doesn't show all Drives

Hey guys!
I had 2 HDD Drives and one SSD Cache Drive installed into my DS720+.
In 'Objects' it showed just one HDD and the SSD Drive states. Today I installed another SSD Cache and now it only shows the 2 SSD Cache Drives. The States of the HDD are gone.
Is there any Known Issue?

Good, that you see this, in my Syno the SSD-Cache-Drives are not shown in the adapter.. only the HDD-Drives.. ( have a 918+ with 4 HDD and 2 SSD-Caches.).

Send me a debug log.

ah, sorry, for the late feedback, here the logfile. I have a 918+ with 2 SSD and 4 HDD, I don t know, if the api send all the informations..
synology.log.txt

Check on version 1.0.0

yeah, thank you, works fine now! Well done!
Show me all SATA and SSD drives.


text in name can be selected

The text in atribute name. are can be selected.
Yeah, I can "fix" it with user-select:none, But I think it looks cool when it can't be selected by default.
Btw homepage in npmjs.com opens the page with 404 error

Hi @ksixen,
You're welcome to create a PR for a selectable prop on the avatar.
I'm happy to add this to react-avatar but currently lack the time to add it myself.

The homepage has been fixed, thanks for reporting!


Migrate the chi-squared test code to C++.

This needs to be tested against the old chisq_bp function to check that it gives the same results.

Passed test for cellCount with cluster info. Modified code to remove duplicate columns when no cluster info is provided
Passed  test for pruneRegulon


Bindings string parsing error if http or https protocol follows comma character

Cookbook version
0.1.5
Chef-client version
12.21.26
Platform Details
Windows 2012r2 in AWS
Scenario:
I try to deploy IIS site with complex bindings string that conrtains several protocols
Steps to Reproduce:
Set bindings string to "net.pipe/wa.test-kitchen.aws.import,net.tcp/8750:*,http/*:2101:", try to create the resource twice
Compiled Resource:
------------------
# Declared in C:/Users/ADMINI~1/AppData/...

iis_site("PrivateApi") do
  action [:add]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :iis_site
  cookbook_name "app_privateapi"
  site_name "PrivateApi"
  site_id 122
  path "C:\\App\\PrivateApi"
  application_pool "PrivateApi"
  bindings "net.pipe/wa.test-kitchen.aws.import,net.tcp/8750:*,http/*:2101:"
  log_directory "C:\\inetpub\\logs\\LogFiles"
  options ""
end

Expected Result:
Site to be deployed with no errors
Actual Result:
The cookbook fails with the error: Chef::Exceptions::ValidationFailed - Option protocol must be equal to one of: http, https!  You passed :"8750:*,http".
How to Fix:
In the line resources/site.rb:229 replace
values = "#{bindings},".match(%r{(?<protocol>[^\/]+)\/\*:(?<port>[^:]+):(?<host_header>[^,]*),})
with
values = "#{bindings},".match(%r{(?<protocol>[^,\/]+)\/\*:(?<port>[^:]+):(?<host_header>[^,]*),})
just comma added to <protocol> exclude characters

Hey @Zloy your fix works like a charm ;) Do you want to create a PR for this? CC: @tas50 @EasyAsABC123


Optimize builtin variable names

For someone who is Familiar with BotFramework SDK, he/she may know what is turn.Activity.membersAdded means, and what is turn.Activity.Recipient.id means.
But for those who are new to this tool even new to BF, the learning cost is tooo high to learn what these variables mean.
If Composer can provide some prompt suggestions or the select box, or just use the alias to simplify the use of built-in variables, that would be more friendly.

built-in variables could be auto suggested in LG editor. This issue is tracking auto suggest features in each property editor .

tracked under #1422


Remove version: WinSCP.WinSCP version 5.17.10

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://sourceforge.net/projects/winscp/files/WinSCP/5.17.10/WinSCP-5.17.10-Setup.exe/download
OK
(Automated message - build 923)

Close with reason: URL works;


[feature] Concept to use GraphQL through Element Templates to query and mutate domain specific databases / backends

Is your feature request related to a problem? Please describe.
Problem 1:
I anticipate a high effort to manage, document and implement many, mostly very specific backend API endpoints together with their element templates. An Element Template address a specific API-endpoint, is customized mostly for a single-purpose and often tight to one single process element, to create, get or update very specific data e.g. one API to create an order or update its data but not the status, another API to search for orders, and yet another API to change the status of one order.
A process modeler or developer has to know where and how these element templates are defined, where and how to use them, their inputs and outputs. And there is no really easy way for a non-developer to quickly search for them, test them, to see how the output looks like, to play around with them.
Problem 2:
The retrieved data are structurally fixed. To add one more output-field to one API endpoint means to change code in the backend integration-artefact, redeploy etc., i.e. heavy developer involvment.
The client (the process definition or the frontend) has no flexibility or no way to define the needed data to be returned from the service - the cleint always get some or all data, no matter what is really needed.
Describe the solution you'd like

Implement a GraphQL-API to query and mutate data on the backend. One can distinguish the DigiWF backend with their integration-building blocks and an implementators domain specific backend, e.g. orders.
Create a GraphQL domain schema for your domain classes/objects, e.g. order, inquiry, document, etc. The GraphQL query (String) can be placed in one element templates value-field in a process service task/call activity. A backend GraphQL integration artefact executes the query against one or more backends and returns the query-result back to the client via Kafka message.
Having the GraphQL API in place then GraphQL queries and mutations can be easily developed, quickly tested and implemented by process developers or business analysts using the DigiWF & GraphQL tooling.

BTW, GUI-developer would use the same GraphQL-endpoint (in synch/real time) for fetching domain specific object data.
Describe alternatives you've considered
not yet considered
Additional context
There is a Camunda-GraphQL-community extension which explains how GraphQL can be used in the conext of the Camunda process engine. It uses the Camunda Java-API and the GraphQL-Java implementation. It can be used as an example on how to build a GraphQL-API (backend) with Java.

Problem 1 is a documentation problem from my point of view. If the structure of the objects is not clear, then they must be described (at whatever point). But this is no reason to change the architecture fundamentally.
Problem 2 always occurs when no specific element templates are used. A query is made and an object structure comes back in a defined field.
Another problem (if you want to call it that) is that a DTO structure is naturally rigid. I.e. changes usually lead to adjustments in the code. In this respect I agree with you, a GraphQL interface would be helpful in some places (and for advanced modelers).
I've drawn a solution below that might help you. The Camunda Community Extension does not fit well into our architecture from my point of view. We will not fall back on it.
If the solution shown below is ok for you, then we will include it in the roadmap. If you need it fast and early - you know, contributions are always welcome ;)

Thanks for the diagram @xdoo, thats perfect.
We can have a smooth transition from the existing eventType-DTO-based implementation to the GraphQL-backend-based solution: define a new eventType (e.g. graphQLEvent) and send the payload as GraphQL-Query/Mutation. Of course events of this eventType get routed to the GraphQL-Service while the other eventTypes are unchanged and can work in parallel until all eventTypes are replaced by graphQLEvent.
Btw, the same GraphQL-server can handle Frontend-Request.

Btw, the same GraphQL-server can handle Frontend-Request.

Yes, that's right. Under certain circumstances you could also think about if the Micro Service is needed. If not, you would have a relatively generic way to store and retrieve data.

Converted issue to Epic. Will be prioritized in the next plaining.

Remarks:
The Spring-Boot support for graphql is currently not released yet. Additional this support requires Spring-Boot 2.7.0 at minimum.
Until release of Spring-Boot 2.7.0 and spring-graphql the lib graphql-java has to be used instead.

@boal you're right. As far as I know, graphql-java is the base of Spring Boot GraphQL (at least that's what I read in a place I can't find anymore). In this respect, the differences should be limited. How the whole thing works with Spring can be found here: https://www.graphql-java.com/tutorials/getting-started-with-spring-boot/

at least that's what I read in a place I can't find anymore

Of course, it was here :laughing: https://www.baeldung.com/spring-graphql

Good news!
Spring Boot 2.7.0 and the corresponding GraphQl-Lib 1.0.0 is relaesed now!

Spring Boot 2.7.0: https://spring.io/projects/spring-boot#learn
GraphQl-Lib Version 1.0.0: https://spring.io/projects/spring-graphql#learn

The next sprint in project P10 can be used to implement a proof of concept.

@boal @dominikhorn93
We should check if we can separate the versions like shown in the picture below. If we need Spring Boot 2.7.0 in the integration artefact, I think we'll need a 2.7. Version for other artefacts/starters as well. What do you think?

E.g. In case of the P10 microservice the S3 client starter is used as a dependency.  As a result, the S3 integration artifact must also be lifecycled. I would also suggest to set up the GraphQL server as a micro service.
In case of P10 there is no demand any more, to add data to elasticsearch via the P10 micorservice when GraphQL is used. This can also be done by the GraphQL server. The same also applies for requesting data from elasticsearch.
The P10 microservice will then be degraded to a service for creation of repayment files, PDF report documents, ...

From the perspective of the processes there are some additional changes necessary.
E.g. the Vorgangsnummer has to be generated prior of initial saving of the Antragsdaten via the P10 microservice. Currently the number is created during inital saving.

Closed until we have a use-case for that feature


Android Studio Make Project : Could not find play-services-basement.aar

Hi,
I can not create the Tindroid apk anymore with Android Studio. I must admit that I am not a developper. However, last week, it worked without any bug
When I want to build, I have the following message:
Could not find play-services-basement.aar (com.google.android.gms:play-services-basement:15.0.1). Searched in the following locations:     https://jcenter.bintray.com/com/google/android/gms/play-services-basement/15.0.1/play-services-basement-15.0.1.aar
When searching the Internet, I found this: : https://stackoverflow.com/questions/50563407/could-not-find-play-services-basement-aar
Thank for your help

I can't reproduce the problem. I suppose it's transient. But I've moved the repositories as suggested in the stackoverflow post anyway.
The changed code is pushed to devel.
Thanks!

glad to have brought some help :)
I still have the bug .. Friday all right
Here is a screen shot

Any update on this? Do it work? Still failing?


v4: line-clamp-1 removes all styling

Describe the bug
Something strange is going on with the hoisting. As soon as I add line-clamp-1 to a Text component all the styling disappears
When I take a look in dev-tools the entire style is being see to the number of lines
I suspect this might be related to #671 and #690 I'll test once next release comes out to see if it goes away
To Reproduce
// This works
<Text className="text-3xl" numberOfLines={1}>OK</Text>

// This doesn't have a big font
<Text className="text-3xl line-clamp-1">OK</Text>

Expected behavior
Correct styling is applied
Expo Snack
Is there a snack for v4 yet?
Screenshots

This appears to be fixed in the latest v4 release


Duplicating commands  after pressing tab in eriner theme

[x] I've checked the existing issues and I'm not duplicating a report.
[x] I'm using the latest version of zimfw.
[ x I've checked the Changelog and I'm not being affected by documented changes.
[x] I've checked the 📢 Announcements and I'm not being affected by announced changes.
[x] I was able to reproduce the issue with a clean installation of Zim.
[x] I've pasted the output of zimfw info below.

First of all, thank you for your project. I moved from zprezto about 2 years ago and never had any issues with zimfw. However, I got one today on my new Debian 11 server
Describe the bug
There is something strange with eriner theme. When I type something like "cd" and press tab, it moves cursor to the right, making a duplicate of "cd" command, like "cd  cd", and I can't delete the first one.
Steps to reproduce

Install latest version of zimfw
Add "zmodule eriner" to a Prompt section of .zimrc
type "cd" and press tab 2-3 times

Current behavior
"cd" or other commands are being duplicated after pressing "tab"
Expected behavior
It should not duplicated
Video
https://user-images.githubusercontent.com/91447/190837022-b18966b5-a020-4250-981a-474643e3f710.mov
zimfw info
zimfw version: 1.9.1 (built at 2022-05-24 21:25:10 UTC, previous commit is 5bcfb8c)
ZIM_HOME:      /home/user/.zim
Zsh version:   5.9
System info:   Linux hetzner 5.10.0-17-amd64 #1 SMP Debian 5.10.136-1 (2022-08-13) x86_64 GNU/Linux

Additional context
Also tried:

Commented out "zmodule asciiship"
Turned off all other modules
Tried to use zmodule zimfw/eriner
Removed .zim, .zimrc and reinstalled
Added new linux user

Hi. Try commenting lines [95] (https://github.com/zimfw/input/blob/bcff8c8504ea7efd0fc8c696dfdc8762e4bfbbb6/init.zsh#L95) and 104 from the init.zsh file in the input module and let us know if that fixes it.

Hi. Try commenting lines 95 and 104 from the init.zsh file in the input module and let us know if that fixes it.

Thanks, just did it and restarted shell, but the problem is still here

What do you have bind to the tab key? Check running bindkey "^I" in your command prompt.

I tried to update zim and plugins to the latest version, looks like this issue is resolved now. Thanks!


I am getting error -20008 when trying to decode image from ultrahdr

Image taken on telephoto or ultrawide lens of pixel 6 pro does give this error. normal lens works fine.

I checked the image and everything appears to be correct. Image has 4:2:0 chroma, google photos tell that it is UltraHDR.

Thank you for reporting this. We know why this is happening. Recently we have made few changes that is causing this problem. We are working on addressing the same. Can you please share a link to access this image

https://github.com/google/libultrahdr/assets/18588943/f567d574-d50f-45c1-bd7f-946d4af1eb28
Github does not change uploaded image in any way. Will this suffice?

extremely sorry for this additional work, the earlier shared image was sufficient. sorry again. will publish changes that would resolve this problem soon. thank you.

Dw. I posted the bug report under thé haze of sleepiness with replay after
5,5 hours of sleep...
Dne út 2. 4. 2024 7:16 uživatel ram @.***> napsal:

extremely sorry for this additional work, the earlier shared image was
sufficient. sorry again. will publish changes that would resolve this
problem soon. thank you.
—
Reply to this email directly, view it on GitHub
https://github.com/google/libultrahdr/issues/91#issuecomment-2031098187,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEN2KD44G3OYN2C2B6QRM7LY3I5J3AVCNFSM6AAAAABFSIO7KWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRGA4TQMJYG4
.
You are receiving this because you authored the thread.Message ID:
@.***>

@mcDandy, my solution #153 also fixes compatibility with your sample image file


No module named 'dynamics' in OXFORD Training Notebook

When I try to run the SLAYER oxford training notebook, I have faced the problem ' ImportError: No module named 'dynamics' '  in the Training Loop step. This is probably originated from PyTorch but I could not find any other people who experienced this error. On the other hand, I could not find an appropriate dynamics module.
All the best,
Ahmet

UPDATE:   this has only happened on my Windows computer (CUDA enabled version 10.2) . When I have tried to run it on my Ubuntu system I have not faced such a thing (No CUDA ,  only CPU). There was almost no difference between software setup
other than the processing unit.

I have switched my widows system completely to ubuntu. There seems no problem related to this issue but other problems happened about CUDA-GPU . Since I have switched the OS I currently can not reproduce the problem unfortunately.


Issues with colors or custom function color handling?

Using the most recent release, 0.6.3
Here is what I am trying to do, I have a scss file containing:
$brand-primary:             dreamerysetting('origin_theme_color_brand_primary');
@import 'bootstrap';

dreamerysetting is registered with the scss compiler using registerFunction, and returns a hex color string, like "#ffcd03" (sans quotes). The version of bootstrap being imported is 4alpha2, so $brand-primary is defined as:
$brand-primary:             #0275d8 !default;
This part seems to work fine, but later on in bootstrap's _variables.scss the following happens:
$link-color:                 $brand-primary !default;
$link-hover-color:           darken($link-color, 15%) !default;

The call to darken asserts in libDarken because the "color" of $link-color has an internal type of "keyword", not "color". I temporarily fixed this in my tree by modifying coerceColor as follows (this may not be the right approach):
            case Type::T_KEYWORD:
                $name = strtolower($value[1]);
                if (isset(Colors::$cssColors[$name])) {
                    $rgba = explode(',', Colors::$cssColors[$name]);

                    return isset($rgba[3])
                        ? [Type::T_COLOR, (int) $rgba[0], (int) $rgba[1], (int) $rgba[2], (int) $rgba[3]]
                        : [Type::T_COLOR, (int) $rgba[0], (int) $rgba[1], (int) $rgba[2]];
                } else if (substr($name, 0, 1) == '#') {
                    /* Doesn't accommodate short hex colors */
                    $rgba = array();
                    $rgba[] = hexdec(substr($name, 1, 2));
                    $rgba[] = hexdec(substr($name, 3, 2));
                    $rgba[] = hexdec(substr($name, 5, 2));
                    return [Type::T_COLOR, (int) $rgba[0], (int) $rgba[1], (int) $rgba[2]];
                }

                return null;

I've committed a fix in b42b2e23128b06f482f8947533f7dfa0c49a3123
Note: if your custom function doesn't specify the return value's type, then it is coerced to a keyword.  (See Compiler::coerceValue.)
An alternate solution is for your custom function to return [Type::T_COLOR, 0x02, 0x75, 0xd9] instead of '#0275d9'. This approach has the added capability of being able to specify the opacity.

Excellent -- it wasn't clear from the documentation (
http://leafo.net/scssphp/docs/#custom_functions ) the return values should
be typed, nor was it clear how to type them. A small addition to the
documentation would make this a lot more clear.
Thanks for the fix as well as the insight!
On Thu, Jun 16, 2016 at 9:34 AM, Anthon Pang<EMAIL_ADDRESS>wrote:

I've committed a fix in b42b2e2
https://github.com/leafo/scssphp/commit/b42b2e23128b06f482f8947533f7dfa0c49a3123
Note: if your custom function doesn't specify the return value's type,
then it is coerced to a keyword. (See Compiler::coerceValue.)
An alternate solution is for your custom function to return [Type::T_COLOR,
0x02, 0x75, 0xd9] instead of '#0275d9'. This approach has the added
capability of being able to specify the opacity.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/leafo/scssphp/issues/436#issuecomment-226523203, or mute
the thread
https://github.com/notifications/unsubscribe/AAAY5sxj2Rigz2-_5m9mwb65NNIpR7nBks5qMW0egaJpZM4Iqq8z
.


Start another video on same player

Hello,
I have a use case where I want to use the same jcStandardVideoPlayer view that might be currently playing a video, but I want to reset it and make it play a video from a different URL.
I've been playing with the source but a lot is happening. What is the correct way to reset state?
Doing naive approach of setting new url and title like so:
jcPlayer.setUp(url1, title1); // play video 10 sec or so
jcPlayer.setUp(url2, title2); // play new video, audio works but view is black
after I've already set it breaks the surface view. If I go full screen activity it will display video, then go back and it shows it correctly. Trying to understand how to get this done in a clean way.
Thanks,

Closing issue, it was related to another library I was using. Player works as expected, setting new video url via setup() works as expected!


Code health - preprocessor directives

Unifying preprocessor directives to NET8_0_OR_GREATER

I have seen someone mention using !NETFRAMEWORK instead, maybe that is better, avoids doing this for each new .NET?

I have seen someone mention using !NETFRAMEWORK instead, maybe that is better, avoids doing this for each new .NET?

True, not the only 8+ is supported anyways, that probably makes sense


pd.IndexSlice[idx_slc]出错时，会提示清理redis的缓存

qlib\data\dataset\utils.py
fetch_df_by_index
return df.loc[
pd.IndexSlice[idx_slc],
]
win10系统，
fetch_df_by_index函数中的pd.IndexSlice[idx_slc]出错时，
会提示清理redis的数据;
错误应该和redis没有关系，
此处可能需要兼容一下此处异常。

@pan-cai Hi，
How did you trigger this error, or what actions did you do?

@pan-cai Hi，
How did you trigger this error, or what actions did you do?

使用qlib下载的数据没问题，使用自己转换成qlib格式的数据后，
qrun.exe  运行类似 Alpha158.yaml 会触发
还有下面的代码也会触发
instruments = ['SH600000']
# fields = ['$close', '$volume', 'Ref($close, 1)', 'Mean($close, 3)', '$high-$low']
fields = ['$close', '$volume', ]
features = D.features(instruments, fields, start_time='2010-01-01', end_time='2017-12-31', freq='day')

下面是具体的报错
File "xxx/test_data.py", line 39, in <module>
    features = D.features(instruments, fields, start_time='2010-01-01', end_time='2017-12-31', freq='day').head()
  File "xxx\lib\site-packages\qlib\data\data.py", line 975, in features
    return DatasetD.dataset(instruments, fields, start_time, end_time, freq, disk_cache)
  File "xxx\lib\site-packages\qlib\data\cache.py", line 313, in dataset
    return self._dataset(instruments, fields, start_time, end_time, freq, disk_cache)
  File "xxx\lib\site-packages\qlib\data\cache.py", line 639, in _dataset
    with CacheUtils.writer_lock(self.r, "dataset-%s" % _cache_uri):
  File "xxxx\anaconda\lib\contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "xxx\lib\site-packages\qlib\data\cache.py", line 220, in writer_lock
    CacheUtils.acquire(current_cache_wlock, lock_name)
  File "xxx\lib\site-packages\qlib\data\cache.py", line 184, in acquire
    """
QlibCacheException: It sees the key(lock:xxxxx\\qlib\\qlib_data\\cn_data:dataset-cfebe46424b8064e04218c84ce30751b-wlock) of the redis lock has existed in your redis db now.
                    You can use the following command to clear your redis keys and rerun your commands:
                    $ redis-cli
                    > select 1
                    > del "lock:xxxxx\\qlib\\qlib_data\\cn_data:dataset-cfebe46424b8064e04218c84ce30751b-wlock"
                    > quit
                    If the issue is not resolved, use "keys *" to find if multiple keys exist. If so, try using "flushall" to clear all the keys.

I had the same question，

@hanson-young
Could you give more details about your error?

@you-n-g
Windows
AMD64
Windows-10-10.0.18362-SP0
10.0.18362
Python version: 3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Qlib version: <IP_ADDRESS>
numpy==1.20.3
pandas==1.2.4
scipy==1.5.2
requests==2.24.0
sacred==0.8.2
python-socketio==3.1.2
redis==3.5.3
python-redis-lock==3.7.0
schedule==1.1.0
cvxpy==1.0.21
hyperopt==0.1.1
fire==0.4.0
statsmodels==0.12.0
xlrd==1.2.0
plotly==4.12.0
matplotlib==3.1.3
tables==3.6.1
pyyaml==5.3.1
mlflow==1.17.0
tqdm==4.50.2
loguru==0.5.3
lightgbm==3.2.1
tornado==6.0.4
joblib==0.17.0
fire==0.4.0
ruamel.yaml==0.17.9

Hi, @zhupr , can you give any advice on this issue?
Thanks

@hanson-young Hi，you can confirm the location of the error code by following these steps:

qlib.init adds the expression_cache and dataset_cache parameters: qlib.init(xxx, expression_cache=None, dataset_cache=None).

If you still encounter an error, provide more details about your error.
If no errors are encountered, continue with step 2

qlib.init removes expression_cache=None and dataset_cache=None, and then changes the code in the acquire function in qlib/data/cache.py to:@staticmethod
def acquire(lock, lock_name):
   lock.acquire()

If you encounter an error, provide more details about your error

@zhupr
In the step 1,
qlib.init(provider_uri="D:\Finance\digital_currency_api\qlib\qlib_data\cn_data", region=REG_CN,expression_cache=None,dataset_cache=None)
[59156:MainThread](2021-06-14 16:50:39,726) INFO - qlib.Initialization - [config.py:284] - default_conf: client.
[59156:MainThread](2021-06-14 16:50:41,377) INFO - qlib.Initialization - [init.py:48] - qlib successfully initialized based on client settings.
[59156:MainThread](2021-06-14 16:50:41,378) INFO - qlib.Initialization - [init.py:49] - data_path=D:\Finance\digital_currency_api\qlib\qlib_data\cn_data
[22540:MainThread](2021-06-14 16:50:42,584) INFO - qlib.Initialization - [config.py:284] - default_conf: client.
[22540:MainThread](2021-06-14 16:50:44,193) INFO - qlib.Initialization - [init.py:48] - qlib successfully initialized based on client settings.
[22540:MainThread](2021-06-14 16:50:44,193) INFO - qlib.Initialization - [init.py:49] - data_path=D:\Finance\digital_currency_api\qlib\qlib_data\cn_data
[22540:MainThread](2021-06-14 16:50:44,246) ERROR - qlib.workflow - [utils.py:34] - An exception has been raised[RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.].

File "", line 1, in
File "D:\Program\Anaconda\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "D:\Program\Anaconda\lib\multiprocessing\spawn.py", line 125, in _main
prepare(preparation_data)
File "D:\Program\Anaconda\lib\multiprocessing\spawn.py", line 236, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "D:\Program\Anaconda\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "D:\Program\Anaconda\lib\runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "D:\Program\Anaconda\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "D:\Program\Anaconda\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\Finance\digital_currency_api\vnpy-master\hanson\test_qt_main.py", line 29, in
df = D.features(instruments, fields, start_time='2010-01-01', end_time='2013-01-31', freq='day').head()
File "D:\Program\Anaconda\lib\site-packages\pyqlib-<IP_ADDRESS>-py3.8-win-amd64.egg\qlib\data\data.py", line 983, in features
return DatasetD.dataset(instruments, fields, start_time, end_time, freq)
File "D:\Program\Anaconda\lib\site-packages\pyqlib-<IP_ADDRESS>-py3.8-win-amd64.egg\qlib\data\data.py", line 715, in dataset
data = self.dataset_processor(instruments_d, column_names, start_time, end_time, freq)
File "D:\Program\Anaconda\lib\site-packages\pyqlib-<IP_ADDRESS>-py3.8-win-amd64.egg\qlib\data\data.py", line 447, in dataset_processor
p = Pool(processes=workers)
File "D:\Program\Anaconda\lib\multiprocessing\context.py", line 119, in Pool
return Pool(processes, initializer, initargs, maxtasksperchild,
File "D:\Program\Anaconda\lib\multiprocessing\pool.py", line 212, in init
self._repopulate_pool()
File "D:\Program\Anaconda\lib\multiprocessing\pool.py", line 303, in _repopulate_pool
return self._repopulate_pool_static(self._ctx, self.Process,
File "D:\Program\Anaconda\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static
w.start()
File "D:\Program\Anaconda\lib\multiprocessing\process.py", line 121, in start
self._popen = self._Popen(self)
File "D:\Program\Anaconda\lib\multiprocessing\context.py", line 327, in _Popen
return Popen(process_obj)
File "D:\Program\Anaconda\lib\multiprocessing\popen_spawn_win32.py", line 45, in init
prep_data = spawn.get_preparation_data(process_obj._name)
File "D:\Program\Anaconda\lib\multiprocessing\spawn.py", line 154, in get_preparation_data
_check_not_importing_main()
File "D:\Program\Anaconda\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

On Windows, the code to get the features from qlib should be put under if __name__ == "__main__":
import qlib
from qlib.data import D

if __name__ == "__main__":
    qlib.init(provider_uri="D:\Finance\digital_currency_api\qlib\qlib_data\cn_data")
    df = D.features(D.instruments("all"), ["$close", "$close/Ref($close, 1)-1"])

I solved the above problem,thanks.@zhupr

@hanson-young
Would you mind sending a PR to improve the docs about this Question and become one of the contributors of Qlib?
Other users who have similar confusion will be grateful to you :)
Thanks

@you-n-g OK, I'd love to contribute pr

e.g. You can improve the docs here
https://qlib.readthedocs.io/en/latest/FAQ/FAQ.html
It is also OK if you could find any better place.

On Windows, the code to get the features from qlib should be put under if __name__ == "__main__":
import qlib
from qlib.data import D

if __name__ == "__main__":
    qlib.init(provider_uri="D:\Finance\digital_currency_api\qlib\qlib_data\cn_data")
    df = D.features(D.instruments("all"), ["$close", "$close/Ref($close, 1)-1"])

On Mac as well, D.features() need to be used within a function.
I try
    fields = ['$close', '$volume', '$open', '$close', '$high', '$low']
    historical_df = D.features(instruments, fields, start_time='2020-01-01', end_time='2022-01-05', freq='day')```
it works.

but if I only to get two instruments at the same time:

instruments = ['AAPL', 'ATAI']
fields = ['$close', '$volume', '$open', '$close', '$high', '$low']
historical_df = D.features(instruments, fields, start_time='2020-01-01', end_time='2022-01-05', freq='day')

This would fail and trigger `QlibCacheException `

But if I put them within __main__, then it's fine.

Don't know if this is a bug.

@bbbzhai
Python has a flaw. When using multi-process, you need to enter from main. When multiple stocks are passed in, multi-process will be called by default.


tsp compile with output-file will output in the incorrect directory

Description
I have a main.tsp in the directory /workspaces/typespec-workflow-samples/design/api-contracts/todo, if I run the command:
$ tsp compile main.tsp --output-dir "openapi-output" --option<EMAIL_ADDRESS>TypeSpec compiler v0.42.0

Compilation completed successfully, output files are in /workspaces/typespec-workflow-samples/design/api-contracts/todo/openapi-output.

The generated file is on<EMAIL_ADDRESS>Expected Behavior
Generated file should be in ./openapi-output/test.json

Details
 $ tsp --version
TypeSpec compiler v0.42.0

0.42.0

 $ uname -a
Linux codespaces-441721 5.4.0-1104-azure #110~18.04.1-Ubuntu SMP Sat Feb 11 17:41:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Omitting the output-dir has a similar effect:
$ tsp compile main.tsp --option<EMAIL_ADDRESS>TypeSpec compiler v0.42.0

Compilation completed successfully, output files are in /workspaces/typespec-workflow-samples/design/api-contracts/todo/tsp-output.

 $ find ./tsp-output/
./tsp-output/
./tsp-output/@typespec
./tsp-output/@typespec/openapi3
<EMAIL_ADDRESS>

This is by design as there could be multiple emitters at the same time to limit conflict by default. It does seem like our documentation might not make this clear however.
What you want to do to change the openapi3 emitter output-dir in particular is
--option<EMAIL_ADDRESS># or relative to the base output-dir
--option<EMAIL_ADDRESS>
you can also set this in the tspconfig.yaml
options:
   @typespec/openapi3:
      emitter-output-dir: foo

Tracking fix in: https://github.com/Azure/typespec-azure/issues/2799


Please put the labels on the flow in Hub & Spoke diagram

Please label the DNS Resolution flow (1-5) in the Hub & Spoke diagram, to make it clear. This should be just like the diagram above it.

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

ID: a88af182-32aa-a8f3-359d-b92ae1cfb8c7
Version Independent ID: 01ce07fc-4bc2-def5-9ecd-a80330ad9488
Content: Azure Private Endpoint DNS Configuration
Content Source: articles/private-link/private-endpoint-dns.md
Service: private-link
GitHub Login: @mblanco77
Microsoft Alias: allensu

@softveda , Thanks for your feedback. We have assigned this issue to the respective content author for updating the document accordingly.

updated the image with workflow
close #54308

#please-close


Authchain router

Based on https://github.com/zalando/gin-oauth2/pull/24 , but make sure you can have different []AccessTuple for different router groups

+1

LGTM


Getting error(Uncaught SyntaxError: Unexpected token '<') after "npm run serve"

Version
4.3.1
Reproduction link
https://github.com/Somnus007/vue-demo
Environment info
Environment Info:

  System:
    OS: macOS 10.15.4
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  Binaries:
    Node: 12.16.3 - /usr/local/bin/node
    Yarn: 1.15.2 - /usr/local/bin/yarn
    npm: 6.14.5 - /usr/local/bin/npm
  Browsers:
    Chrome: 83.0.4103.61
    Edge: 80.0.361.111
    Firefox: 76.0.1
    Safari: 13.1
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0
    @vue/babel-plugin-transform-vue-jsx:  1.1.2
    @vue/babel-preset-app:  4.3.1
    @vue/babel-preset-jsx:  1.1.2
    @vue/babel-sugar-functional-vue:  1.1.2
    @vue/babel-sugar-inject-h:  1.1.2
    @vue/babel-sugar-v-model:  1.1.2
    @vue/babel-sugar-v-on:  1.1.2
    @vue/cli-overlay:  4.3.1
    @vue/cli-plugin-babel: ~4.3.0 => 4.3.1
    @vue/cli-plugin-eslint: ~4.3.0 => 4.3.1
    @vue/cli-plugin-router:  4.3.1
    @vue/cli-plugin-vuex:  4.3.1
    @vue/cli-service: ~4.3.0 => 4.3.1
    @vue/cli-shared-utils:  4.3.1
    @vue/component-compiler-utils:  3.1.2
    @vue/preload-webpack-plugin:  1.1.1
    @vue/web-component-wrapper:  1.2.0
    eslint-plugin-vue: ^6.2.2 => 6.2.2
    vue: ^2.6.11 => 2.6.11
    vue-eslint-parser:  7.1.0
    vue-hot-reload-api:  2.3.4
    vue-loader:  15.9.2
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.6.11 => 2.6.11
    vue-template-es2015-compiler:  1.9.1
  npmGlobalPackages:
    @vue/cli: 4.3.1

Steps to reproduce

vue create vue-demo
cd vue-demo
npm run serve

What is expected?
I can access to the home page with a hello world content
What is actually happening?
I got a blank page, and there is a error (Uncaught SyntaxError: Unexpected token '<') on broswer console

I created a demo by using @vue-cli 4.3.1 and have not changed any code yet. But I got a blank page after run "npm run serve"

I'm sorry but I can't reproduce the error. Do you have a more detailed error log? What's the exact error stack and from which file did it throw?

npm run serve won't serve a production service worker, neither does it come with hashed assets files.
It must be due to the incorrect service worker caches brought by other projects that were previously served at localhost:8080.
So, please clear your browser service worker cache (Chrome Dev Tools -> Application -> Clear Storage -> Clear site data)

@sodatea Yes, that's it. Everything is ok now, thanks

I am getting the same error, I have followed all the steps with clearing the cache.  Making sure you have the correct version of cli installed etc.  Have gone through every stackoverflow suggestion and all the stuff I can find on git about it still to no avail.
My app runs correctly on the first npm run serve but fails on the first refresh or even a hard reload with the
Uncaught SyntaxError: Unexpected token '<' Error
I am running Windows 10 and here are all my dependencys
"dependencies": {
    "@babylonjs/core": "^4.2.0",
    "@babylonjs/materials": "^4.2.0",
    "@babylonjs/gui": "^4.2.0",
    "core-js": "^3.9.0",
    "vee-validate": "^3.4.5",
    "vue": "^2.6.12",
    "vue-router": "^3.5.1",
    "vuetify": "^2.4.4",
    "vuex": "^3.6.2"
  },
  "devDependencies": {
    "@mdi/font": "^5.9.55",
    "@vue/cli-plugin-babel": "~4.5.11",
    "@vue/cli-plugin-eslint": "~4.5.11",
    "@vue/cli-plugin-router": "^4.5.11",
    "@vue/cli-plugin-vuex": "^4.5.11",
    "@vue/cli-service": "~4.5.11",
    "babel-eslint": "^10.0.3",
    "eslint": "^7.20.0",
    "eslint-plugin-vue": "^7.6.0",
    "eslint-plugin-vuetify": "^1.0.0-beta.8",
    "sass": "^1.32.8",
    "sass-loader": "^10.1.1",
    "vue-cli-plugin-vuetify": "~2.1.0",
    "vue-loader": "^15.9.6",
    "vue-template-compiler": "^2.6.12",
    "vuetify-loader": "^1.7.2"
  }```

  Is there maybe a conflict in my versions?  What would be another route to try?


Revise commands in Compose section of multi-host quickstart

--x-networking is global flag for compose not a flag for up
I think the goal is to schedule with constraint forcing mhs-demo0 (there is no node named swl-demo0 in the guide if I understand correctly)

cc @thaJeztah @moxiegirl
Signed-off-by: Nathan LeClaire<EMAIL_ADDRESS>

Thanks again for catching these @nathanleclaire
@moxiegirl Looking at the --x-networking flag; --x-... flags are experimental features in Compose so I think we should mention that it's experimental, and that the UX and/or behavior can change. (I think it's unfortunate we included an experimental feature in the main documentation, but I understand it's useful)
Changes LGTM

@nathanleclaire @thaJeztah I'm not sure I want to add an experimental feature in there.  @dnephin can you weigh in here, the actual code was provided by @dave-tucker who also might have an opinion.

@moxiegirl yeah, that's my concern as well. Point is that it already is in there, and it's currently the only way to use the new networking with compose :-/

LGTM
I don't think the networking will change significantly in any way that will break this example.

@dnephin the --x-networking flag itself will probably? I.e., if it's no longer experimental in compose it will either be renamed, or become the default? Or is that the wrong assumption?

Ya, the flag will become a no-op in the next release, because it will be on by default, but we won't remove it right away, it will just warn that it's not necessary anymore.

Thanks @dnephin! Although not ideal, I can live with that, so LGTM

LGTM

Sounds like we have technical quorum. Thanks folks. LGTM


[Draft] Upstream main

Close, use cherry-pick, have some issue with upstream trailer implementation.


MPRK22(α) for α≠1/2 applied to a ConservativePDSProblem?

Thank you very much for this nice package! I'm interested in using PositiveIntegrators.jl to simulate Fokker-Planck equations, which can be written in conservative production-destruction form. However, I noticed that MPRK22(α) does not seem to be conservative for $\alpha\neq 1/2$ (while it is conservative for $\alpha = 1/2$). Solving the same system with classical RK methods like Heun() and also with MPE() yields discrete conservatism. You can find the code below. Unfortunately, I was not able to reproduce this for a simpler system.

Code

using PositiveIntegrators
using OrdinaryDiffEq
using QuadGK
using SimpleUnPack: @unpack

# parameters
I = (-1.0, 1.0)
N = 80
w_interfaces = LinRange(first(I), last(I), N + 1)
dw = w_interfaces[2] - w_interfaces[1]
w_cells = w_interfaces[1:end - 1] .+ dw/2
σ2 = 0.2 # = σ^2
# functions in the model
D = @. σ2/2 * (1 - w_interfaces^2)^2 # diffusion term
Dprime = @. -2 * σ2 * w_interfaces * (1 - w_interfaces^2) # D', i.e. first derivative of diffusion term
# aggregation dynamics operator (use simple quadrature rule to compute integral)
# To avoid allocations, also pass `w_cells` and `dw` to avoid global variables
function B(f_cells, w_cells, w, dw)
  res = 0.0
  for i in 1:length(f_cells)
      res += (w - w_cells[i]) * f_cells[i]
  end
  res *= dw
  return res
end

λ = zeros(N) # on interfaces, first entry will not be used, don't need to allocate for last entry
C = zeros(N) # on interfaces, first entry will not be used, don't need to allocate for last entry
δ = zeros(N) # on interfaces, first entry will not be used, don't need to allocate for last entry
BB = zeros(N) # on interfaces, first entry will not be used, don't need to allocate for last entry
u_tilde = zeros(N)
fluxes = zeros(N + 1)
production = zeros(N, N) # production matrix
p = (w_interfaces = w_interfaces, w_cells = w_cells, dw = dw, D = D, Dprime = Dprime, B = B, λ = λ, C = C, δ = δ, BB = BB, u_tilde = u_tilde, fluxes = fluxes, production = production)

# initial condition
c = 30.0
f0_1(w) = exp(-c*(w + 0.5)^2) + exp(-c*(w - 0.5)^2)
oneoverβ, _ = quadgk(f0_1, first(I), last(I), rtol = 1e-12)
β = 1/oneoverβ
f0(w) = β * f0_1(w)
u0 = f0.(w_cells)

# stationary solution for reference
f0w(w) = w * f0(w)
# call this uu instead of u because u is used as unknown in the `ODEProblem`
uu, _ = quadgk(f0w, first(I), last(I), rtol = 1e-12)
f_stat_1(w) = 1/(1 - w^2)^2 * ((1 + w)/(1 - w))^(uu/(2 * σ2))*exp(-(1 - uu*w)/(σ2 * (1 - w^2)))
oneoverK, _ = quadgk(f_stat_1, first(I), last(I), rtol = 1e-12)
K = 1/oneoverK
f_stat(w) = K * f_stat_1(w)
u_stat = f_stat.(w_cells)

tspan = (0.0, 10.0) # time span
dt = dw^2/(2*σ2)

function calculate_values!(BB, λ, C, δ, u_tilde, u, w_cells, w_interfaces, dw, D, Dprime, i)
  BB[i] = B(u, w_cells, w_interfaces[i], dw)
  λ[i] = dw * (BB[i] + Dprime[i])/D[i]
  C[i] = λ[i] * D[i]/dw
  δ[i] = isapprox(λ[i], 0.0) ? 0.5 : 1/λ[i] - 1/expm1(λ[i])
  u_tilde[i] = (1 - δ[i]) * u[i] + δ[i] * u[i - 1]
end

# Out-of-place implementation of the P matrix for the Fokker-Planck model
function P(u, p, t)
  @unpack w_interfaces, w_cells, dw, D, Dprime, B, λ, C, δ, BB, u_tilde, production = p
  N = length(w_interfaces) - 1
  for i = 2:N
      calculate_values!(BB, λ, C, δ, u_tilde, u, w_cells, w_interfaces, dw, D, Dprime, i)
  end
  fill!(production, 0.0)
  for i = 2:(N - 1)
      production[i, i + 1] = (max(0, C[i + 1]) * u_tilde[i + 1] + D[i + 1] * u[i + 1]/dw)/dw
      production[i, i - 1] = (-min(0, C[i]) * u_tilde[i] + D[i] * u[i - 1]/dw)/dw
  end
  production[1, 2] = (max(0, C[2]) * u_tilde[2] + D[2] * u[2]/dw)/dw
  production[N, N - 1] = (-min(0, C[N]) * u_tilde[N] + D[N] * u[N - 1]/dw)/dw
  return production
end

# Create Fokker-Planck problem
prob = ConservativePDSProblem(P, u0, tspan, p)
saveat = range(tspan..., length = 100)

sol_heun = solve(prob, Heun(), dt = dt, adaptive = false, save_everystep = false, saveat = saveat)
sol_mpe = solve(prob, MPE(), dt = dt, adaptive = false, save_everystep = false, saveat = saveat)
sol_mprk = solve(prob, MPRK22(1.0), dt = dt, adaptive = false, save_everystep = false, saveat = saveat)

@show (sum.(sol_heun.u) .- sum(sol_heun.u[1]))
@show (sum.(sol_mpe.u) .- sum(sol_mpe.u[1]))
@show (sum.(sol_mprk.u) .- sum(sol_mprk.u[1]))

In addition, MPRK22 sometimes produces spurious oscillations for large timesteps. By using the code above for MPRK(0.5) and setting dt = 0.1, we can observe oscillations around 0, which should not exist (and do not exist for MPE()). Using MPRK(1.0) with dt = 1.0 produces even worse results.

The problem is that you use production from the parameters (cache) and modify it when calling P again. The out-of-place implementations assume that you can call
P1 = P(u1, p, t)
# u2 = something_computed_from_P1
P2 = P(u2, p, t)
# P1 should still be the same as before!

but you change P1 when calling P(u2, p, t).

Thanks a lot for finding that @ranocha! I was putting the production matrix in the cache because of #34.

And thanks for fixing #34!


proposal: crypto/tls: Allow setting SignatureSchemes in Config

It's a little different from the Issue 43549.
We are developing a program targeting multiple old platforms involving hardware smartcard and only PKCS#1 V1.5 Signature Scheme is supported on the client platform. We use only the signing part so it should hold for a while. We need to specify SignatureSchemes on the server side but it seems to be tricky. We can only implement it by specifying it to internal structures of each Certificate within the CertPool and it's ugly and dirty.
We assume it should be a common issue when it comes to old platforms. Please add official support so we can simply use tls.Config to specify it.
Thank you all and the golang, the best lang ever.

cc @golang/security

Hello! If the client only supports that signature scheme, shouldn't it only advertise support for it in the Client Hello, and let negotiation take care of it?
Anyway, this is not a common issue (it's the first time I hear of it) and we try to reduce the range of configurable settings, rather than increase them, so it's unlikely we'll add another field to Config for it.
As you found, it should be possible to control this behavior with Certificate.SupportedSignatureAlgorithms. We are ok with making "common things easy, and uncommon things possible".

Hi Filippo :-D
Thanks for your rapid reply. You are absolutely right and it should have been informed in the Client Hello. But when it comes to browsers on some old platforms and things like smartcard CSP/CNG, it is nearly impossible to handle it esaily by client program because they are not open sourced. So we have to use server side to mandate it. And such scenarios are more common in business using smartcard authentication because of the involvement of CSP/CNG/driver.
And I personally think the addition would also have some cryptographic advantages. As you know, PKCS#1 v1.5 padding scheme holds its security on signing till these days and maintains a great compatibility on some old smartcards while PSS has a tighter security proof. I believe it would be better to allow developers to choose such trade-off between security and compatibility like cipher suite field does. And by leaving the default value secure should be enough to keep the use of Config simple and robust.
Considering the wide use of the golang in different industries, the advantages of adding such field should outweigh the disadvantages.
I could make the PR of this change but I would like to make sure the community won't hate it :-D
Thanks again for your time.


Components not rendering / imports showing as markdown

These components were working as of two weeks ago. Now all of the components are not working and all of the imported files are showing as regular markdown. Example picture below.

Seems like you use .md extension, change it to mdx. Md files are now treated as plain markdown

Thank you!


v1.3 Updated DG

Updated DG with new enhanced add feature

Codecov Report

Merging #96 (9d4ccb7) into master (9baa47a) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #96      +/-   ##
============================================
+ Coverage     66.05%   66.09%   +0.03%
  Complexity      593      593
============================================
  Files           103      103
  Lines          1965     1967       +2
  Branches        211      211
============================================
+ Hits           1298     1300       +2
  Misses          616      616
  Partials         51       51

Impacted Files
Coverage Δ

...c/main/java/seedu/address/model/student/Email.java
83.33% <100.00%> (+1.51%)
:arrow_up:

...c/main/java/seedu/address/model/student/Phone.java
83.33% <100.00%> (+1.51%)
:arrow_up:

...main/java/seedu/address/model/student/Student.java
98.14% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.