Create InputChainHandler

This new InputChainHandler helps us to collect inputs after a previous handler has been processed.
Let show some examples:
-. A button is pressed to change the name of the device:
addHandler(
        CallbackQueryHandler(
            callbackData = "change-device-name",
            handleCallbackQuery = {
                bot.sendMessage(
                    chatId = ChatId.fromId(callbackQuery.from.id),
                    text = "Which name do you want to use?"
                )
                update.consume()
            }
        ).inputChain<String>(
            inputChainIdGen = { previousInputChainId, update -> "someId" },
            handleInputChain = {
                val name = this.text
                bot.sendMessage(
                    chatId = ChatId.fromId(message.from?.id!!),
                    text = "Ok, I will use '$name' for your device"
                )
                update.consume()
                // Return `null` if we don't want to receive new updates on the chain
                null
            }
        )
    )

-. The user send a command to create a new form
addHandler(
        CommandHandler("newForm") {
            bot.sendMessage(
                chatId = ChatId.fromId(message.from?.id!!),
                text = "The form will have 3 questions.\n1º What is your name?"
            )
            update.consume()
        }.inputChain<Int>(
            inputChainIdGen = { previousInputChainId, update ->
                         when {
                             previousInputChainId == null -> 0
                             previousInputChainId < 2 -> previousInputChainId + 1
                             else -> null
                         }
                              },
            handleInputChain = {
                when(inputChainId) {
                    0 -> {
                        val userName = text
                        bot.sendMessage(
                            chatId = ChatId.fromId(message.from?.id!!),
                            text = "Hello $userName, what month were you born?"
                        )
                    }
                    1 -> {
                        val month = text
                        bot.sendMessage(
                            chatId = ChatId.fromId(message.from?.id!!),
                            text = "$month, what year?"
                        )
                    }
                    2 -> {
                        val year = text
                        bot.sendMessage(
                            chatId = ChatId.fromId(message.from?.id!!),
                            text = "Cool, you have completed the form"
                        )
                    }
                }
                update.consume()
                inputChainIdGen(inputChainId, update)
            }
        )
    )

@JcMinarro do you find this PR still valid? Do you have any last changes to push? Otherwise I would be happy to accept it

Closing due to inactivity

@red-avtovo I couldn't complete it yet.
I have a branch that is working on a project I need it, but it only works if your bot is not used from multiple chats because in that case, some collisions could happen as was reported on a previous comment.
I didn't have time to fix it, but I will.
Let me reopen it

Oh, I'm glad that the changes are still relevant. Looking forward to reviewing the final changes


Add .mm to RCTNetwork subspec

Without this, Libraries/Network/RCTNetworking.mm is not matched,
causing a "Native module cannot be null" error when integrating into
an existing Swift iOS project.
I've tested this fix with an iOS Swift project following the
"Integration With Existing Apps" [1] tutorial and the error does
not appear.
[1] https://facebook.github.io/react-native/docs/integration-with-existing-apps.html

By analyzing the blame information on this pull request, we identified @alloy and @oblador to be potential reviewers.

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

fwiw, this commit introduced the issue https://github.com/facebook/react-native/commit/a8cf12a9327a1b77db159258355927d2571478bc

@facebook-github-bot shipit

Thanks for importing. If you are an FB employee go to Phabricator to review internal test results.


Sorry I need to clean this post I apologize.

Sorry I need to clean this up.... wrong example

Just a small comment the working hash is from Insomnia Version 7.1.1 (<IP_ADDRESS>50)
This is a regression.

Sorry I need to clean this up.... wrong example

🙆♂ I was wondering if it was me or not

Sorry I need to clean this up.... wrong example

🙆♂ I was wondering if it was me or not

I'm sorry @nijikokun  my bad. (it's me not you)

Going to close in favor of starting fresh ❤

I'm sorry @nijikokun my bad. (it's me not you)

No worries, we've all been there ❤


not playing or displaying correctly

ver 0.9 No matter which tuning I select, when I go to play it shows the open string as C#-1 and almost random tuning display
EG G/C **selection each time C Gg C tuning (Tromp, Low chanter, High Chanter, Drone) Shows
Tpose +67 Capo +7
hi melody F#0
low Melody #F-1
Trompette B5
Drone B2
I've tried other tunings with similar results
Works perfectly on parsed ver117

Is this on a regular “stock” digigurdy?  Are you modifying the code at all?

My digigurdy are 100% identical in design  to the “original digigurdy” I have not modified the code.
The only difference is I have a 4.1 teensy in this one. Which is the same pin for pin on the analogue and digital pins. I can also try it on the “test rig” which uses a ver 1 pcb and jumper leads, with a 3.5 and 3.6 . I may also clear the eeprom from my working digigurdy to see if that helps

EEPROM is a good idea.  I'm just blindly reading/writing to it and I'm not
sure what kind of shenanigans it can get into.
If the 4.1 is the same in pin assignment, I'm sort of at a loss of how it
ends up with bizarre tunings like C#-1.  Even if you strategically choose
the right tuning options, there's no way to get it to make a C#-1 note, you
know?  Could the source code itself have gotten formatted strangely?  Is
this a Unix/Win carriage return kind of problem perhaps?
On Sun, Mar 6, 2022 at 1:37 PM Gubbledenut @.***> wrote:

My digigurdy are 100% identical in design to the “original digigurdy” I
have not modified the code.
The only difference is I have a 4.1 teensy in this one. Which is the same
pin for pin on the analogue and digital pins. I can also try it on the
“test rig” which uses a ver 1 pcb and jumper leads, with a 3.5 and 3.6 . I
may also clear the eeprom from my working digigurdy to see if that helps
—
Reply to this email directly, view it on GitHub
https://github.com/bazmonk/digigurdy-baz/issues/21#issuecomment-1060043954,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AX5QOH5OBZIE6CXP2T6TH7TU6UQTLANCNFSM5QA5M7AQ
.
You are receiving this because you were assigned.Message ID:
@.***>

@Gubbledenut Does the Teensy 4.1 fit right in a “original” digigurdy where the 3.5 is?  If it’s the same form-factor, I’ll buy a 4.1, just to have the faster unit and to have one to test against.

SUCCESS.... I cleared the eprom and the software is working...I should have thought earlier, we've had similar issues a few times, when there have been major changes to the code..even though it shouldn't look to the eprom unless its told to there seems to be some spill???
Maybe just an idea to suggest using this file when installing It over the previous 117 or earlier code...but be aware it will effectively brick the whole thing until new code is uploaded!!!!!!
eeprom_clear.ino.zip
as for the 4.1 yes it does..the pins on the pinout are the same, but the ones on the board itself are in a different place for the higher numbers. Also the 4 series boards don't have cap touch...I have also been using mostly 3.6 boards which are about the same price as the 4.1 but with cap touch.and even better on the shorter boards such as the LC/3.2/4.0 the pinouts are also the same unto pin 12 on the one side..so you can use them in place of the longer boards if the need arises and you don't need all the pins of the longer 3.5/3.6/4.1 ...but we do so ignore that

Awesome!  That’s great to hear.  I can’t say I still understand how the EEPROM caused this problem exactly.  The saved settings aren’t part of the tuning menu (it starts with set values not stored in EEPROM).  I get that if it had other data stored it’d create bizarre tunings, but how that was persistent even after trying new tunings I’m unsure.
I’ll check out this clear code and include it in the repository for others.  Thanks for figuring it out and reporting back!
I have DoReMi questions for you in the other issue :-)

On Mar 6, 2022, at 11:32 PM, Gubbledenut @.***> wrote:

SUCCESS.... I cleared the eprom and the software is working...I should have thought earlier, we've had similar issues a few times, when there have been major changes to the code..even though it shouldn't look to the eprom unless its told to there seems to be some spill???
Maybe just an idea to suggest using this file when installing It over the previous 117 or earlier code...but be aware it will effectively brick the whole thing until new code is uploaded!!!!!!
eeprom_clear.ino.zip
as for the 4.1 yes it does..the pins on the pinout are the same, but the ones on the board itself are in a different place for the higher numbers. Also the 4 series boards don't have cap touch...I have also been using mostly 3.6 boards which are about the same price as the 4.1 but with cap touch.and even better on the shorter boards such as the LC/3.2/4.0 the pinouts are also the same unto pin 12 on the one side..so you can use them in place of the longer boards if the need arises and you don't need all the pins of the longer 3.5/3.6/4.1 ...but we do so ignore that
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were assigned.


Add tests for negation

[x] Replace the parameterised negation test with an Hypothesis one.
[x] Generalise it to scalar multiplication, obsoleting another parameterised test.
[x] Add a couple more properties to test about negation (involutive, additive inverse)

I greatly enjoyed testing more things while only adding a single line  ;)


Stack variable with default and prompt does not prompt

It should prompt user with the defined default value.

This requires https://github.com/kontena/opto/issues/2, right?

Yes, I think it will need some changes to opto.

closed via #1417


More accurate pseudoversions

Uses a combination of go mod edit and go mod tidy to generate pseudo versions instead of "manually" constructing them. This handles all format types correctly according to spec and is more robust, but unfortunately also quite a bit slower.
Signed-off-by: Frank A. Zdarsky<EMAIL_ADDRESS>

/test e2e-openshift-conformance-sig-api-machinery


How can i change the maximum allowed number of parameters for a node?

Hi!
I am new in ROS and ROS2. Now, i am using a driver from Universal Robots in order to move an UR5 to different joint configurations. I have the problem that when I have more than 512 parameters in my .YAML file, I have this error:
Exceeded maximum allowed number of parameters for a node (512), at /tmp/binarydeb/ros-foxy-rcl-yaml-param-parser-1.1.14/src/parse.c:514, at /tmp/binarydeb/ros-foxy-rcl-1.1.14/src/rcl/arguments.c:388
What can I do? Thanks!

Since Foxy, we've removed that restriction and you can have unlimited numbers of parameters.  So the easiest thing to do would be to switch to Humble.
If you can't do that, then you'll have to build Foxy from source.  In particular, you'll need to follow the instructions at http://docs.ros.org/en/foxy/Installation/Alternatives/Ubuntu-Development-Setup.html .  And you'll also have to edit https://github.com/ros2/rcl/blob/287ccd9ed06ff5bdded4dfb1130920d592a71bb7/rcl_yaml_param_parser/src/impl/types.h#L34 to increase the value.
In the future, please open questions like this on https://answers.ros.org, which is our central Question and Answer site.  You'll get a better answer there, and it will be searchable for the future.
I'm going to close this one out.

Thank you so much!


Rename android.Raven to android.AndroidRaven, use raven.Raven to stor…

…e instance and for all static access.
I hate the android.AndroidRaven naming, but I don't think we should collide on names so that imports aren't annoying.

Man, I'm tempted to move all static methods (and the storage of the static instance itself) to their own class but I can't think of a name. That way it can just be like,
import com.getsentry.raven.android.Raven
import com.getsentry.raven.StaticRaven

Raven.init("DSN")

StaticRaven.capture(e);
StaticRaven.record(b);

And then com.getsentry.raven.Raven stays the "real (single) Raven instance" class. I don't know...

Moved to #378 (because of the big renaming on master).


Use master branches...

..for our addons

LGTM, but I would suggest to test check the build with django-reversion>=1.9.0

that failed already @cyberstar with 1.10.0


Changing the type of an object at runtime

Surprisingly, Python allows you to change the __class__ attribute of an object:
In [1]: class A:
   ...:     def __init__(self):
   ...:         self.x = 5
   ...:         self.y = "hi"
   ...:
   ...: class B:
   ...:     def doit(self):
   ...:         print(self.x, self.y)
   ...:

In [2]: a = A()

In [3]: a.doit()
AttributeError: 'A' object has no attribute 'doit'

In [4]: a.__class__ = B

In [5]: a.doit()
5 hi

In [6]: a.__class__ = A

In [7]: a.doit()
AttributeError: 'A' object has no attribute 'doit'

This example was rather simple, but things grow more complicated when inheritance is involved. On the other hand, this proves that Python instances are mere dicts... :). With a few exceptions though.

Wow, yes, it can get complicated with inheritance. This can also be a way to bypass any validations / attribute assignments that might happen in the __init__ method of class B.
class Backdoor:
    def __init__(self, target_class):
        self.__class__ = target_class

class B:
    def __init__(self, email, pwd):
        self.email = self.validate_email()
        self.pwd = self.validate_pwd()

    def validate_email(self, email):
        pass

    def validate_pwd(self, pwd):
        pass

I can write an example snippet, and add some caveats of this "feature" (differences across Python versions, handling of __slots__, ...)

Sure, that'd be awesome, looking forward to your PR :)


bump engine-api for 1.11.0-rc3

bumps engine API to include https://github.com/docker/engine-api/pull/193
we may want to create a new tag of engine-api before 1.11.0 GA

/cc @tiborvass

LGTM, and agree on a tag for GA.

LGTM do we want to fix the tag here?

updated to use the new v0.3.3 tag

LGTM 🐳

LGTM


chore(license): add MIT license

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Support Gemma2-2b model for inference in Android

MediaPipe Solution (you are using)
Android library：com.google.mediapipe:tasks-genai:0.10.14
Programming language
Android Java
Are you willing to contribute it
None
Describe the feature and the current behaviour/state
currently we have no suitable MediaPipe format for Gemma2-2b running in Android,MediaPipe  Python libraries can't complete conversion
Will this change the current API? How?
no
Who will benefit with this feature?
all of us
Please specify the use cases for this feature
use the latest Gemma2 model with mediapipe
Any Other info
No response

Hi @FranzKafkaYu,
I am currently looking into running Gemma 2 on AI Edge.
Would it be possible to verify the source of the referenced image?
Came across a similar source,
which includes a guide for running with tflite,
and am now validating the reproducibility of that setup.

(Source: https://ai.google.dev/edge/mediapipe/solutions/genai/llm_inference#gemma-2_2b)
Thanks in advance.

Other related issues:
https://github.com/google-ai-edge/mediapipe/issues/5594

Hi @FranzKafkaYu,
I am currently looking into running Gemma 2 on AI Edge.
Would it be possible to verify the source of the referenced image?
Came across a similar source,
which includes a guide for running with tflite,
and am now validating the reproducibility of that setup.

(Source: https://ai.google.dev/edge/mediapipe/solutions/genai/llm_inference#gemma-2_2b)
Thanks in advance.

Other related issues:
https://github.com/google-ai-edge/mediapipe/issues/5594

It seems that the issue was raised based on the following link:
https://ai.google.dev/edge/mediapipe/solutions/genai/llm_inference/android#model

The method for converting using AI Edge Torch is detailed in the guidelines provided in the above link.
Unfortunately, it seems that for now, the .tflite conversion must be done manually.
Based on this, it seems the conversion process would be as follows:
Downloading the .ckpt file via Kaggle -> Converting to .tflite using AI Edge Torch -> Implementing Android inference with the .tflite file using MediaPipe.
graph TD
    A[Kaggle .ckpt file] --> B[AI Edge Torch .tflite conversion]
    B --> C[MediaPipe Android inference]

P.S. It seems there might be a typo in the Android guide. "AI Edge Torch" should be corrected to "AI Edge Torch."

I think documentation should mention about https://github.com/google-ai-edge/ai-edge-torch/blob/main/ai_edge_torch/generative/examples/gemma/convert_gemma2_to_tflite.py

Hi @FranzKafkaYu, I am currently looking into running Gemma 2 on AI Edge. Would it be possible to verify the source of the referenced image?
Came across a similar source, which includes a guide for running with tflite, and am now validating the reproducibility of that setup.
 (Source: https://ai.google.dev/edge/mediapipe/solutions/genai/llm_inference#gemma-2_2b)
Thanks in advance.
Other related issues:
#5594

@KennethanCeyer Hi Ken,you can find more details via this link,if you wanna use a model with MediaPipe Solutions/Framework,you need to conver model,safetensors/pytorch format->tflite format->MediaPipe format.
currently if you use Gemma while not Gemma2,there are suitable formated models from kaggle,you can check this link,while Gemma2 doesn't.
MediaPipe has provided Python library for conveting  safetensors/pytorch format->MediaPipe format with two different methods,details here,but now this library doesn't support Gemma2 in Native model conversion,so the only choice is AI Edge model conversion,which need use AI Edge Torch tool to convert first to get the TFLite format and then use MediaPipe Python library to bundle the model.
But I have checked AI Edge Torch,it lacks details to how can we complete this convert first,and in MediaPipe LLM Inference API demonstrations there are little informations about how can we use these “bundled model”,which is ended with *.task,the sample code used a native model,which is ended with *.bin.
I have tried other project,like llama.cpp and gemma.cpp,the performance is not good because they mainlly use CPU to excute inference.Also you can try these tools.
I am not a native English speaker,so my English is not very good.Hope these info can help you.

I think the documentation should mention about https://github.com/google-ai-edge/ai-edge-torch/blob/main/ai_edge_torch/generative/examples/gemma/convert_gemma2_to_tflite.py

GOOD,I will try this script and see whether we can go to the next step

Hi @FranzKafkaYu, Thank you for the explanation you've done an excellent job explaining the situation.
I've actually been investigating the same issue of using Gemma 2 with LiteRT(.tflite) on MediaPipe, which is what brought me to this discussion. From all the issues, code records, and documentation I've reviewed, it seems Gemma 2 hasn't yet been registered .tffile in the kaggle or huggingface registry. (It looks like they're working hard on this and it seems probably in their roadmap, but there's no official file available yet.)
Based on the most recent visible documentation, it appears we need to convert the .ckpt file to .tffile using AI Edge Torch, and then use it according to each specific use case. (The documentation for this process is a bit sparse, which isn't surprising given how new this all is.)
The notebook I mentioned above seems to be the closest thing to an official guide at the moment. I'm currently working on this myself, and I'm planning to write a blog post about it when I'm done. Once it's ready, I'll make sure to share the link here in this issue for reference.
Thanks again for your helpful insights and creating this issue, Franz.

I’m expecting quite a few questions about running Gemma 2 with MediaPipe, so I’ve gathered the Colab notebook I’m using for the conversion along with all related issues and PRs. I’ll keep updating the notebook until the official tflite or MediaPipe tasks are released.
https://colab.research.google.com/drive/19h3SZBiWuGqqtddHbF5MzOFGbPahXPIv?usp=sharing

Hi @FranzKafkaYu,
Apologies for the delayed response. Support for Gemma 2-2B is now available, and ongoing discussions are happening here. Please let us know if you require any further assistance, or if we can proceed to close the issue and mark it as internally resolved, as the feature has been implemented.
Thank you!!

Hi @FranzKafkaYu ,
I've been encountering an issue when trying to run the script ai-edge-torch/ai_edge_torch/generative/examples/gemma/convert_gemma2_to_tflite.py or gemma2-to-tflite/convert.py. In both cases, the error happens at the line where the code tries to load a file using torch.load(file).
On Google Colab:
this_file_tensors = torch.load(file)
^C
(this ^C is not caused by pressing Ctrl+C on the keyboard, it happens automatically)
On local machine: The same line outputs Segmentation Fault.
this_file_tensors = torch.load(file)
Segmentation Fault
I've checked my system's memory, and it's not an issue of insufficient memory. The same error occurs consistently in both environments. Any suggestions on what could be causing this segmentation fault or how to troubleshoot further would be greatly appreciated! Thanks in advance!
colab logs：
2024-09-12 08:01:43.412352: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:477] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1726128103.448539    2980 cuda_dnn.cc:8322] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1726128103.459941    2980 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-09-12 08:01:43.505942: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
/usr/local/lib/python3.10/dist-packages/torch_xla/init.py:202: UserWarning: tensorflow can conflict with torch-xla. Prefer tensorflow-cpu when using PyTorch/XLA. To silence this warning, pip uninstall -y tensorflow && pip install tensorflow-cpu. If you are in a notebook environment such as Colab or Kaggle, restart your notebook runtime afterwards.
warnings.warn(
/usr/local/lib/python3.10/dist-packages/ai_edge_torch/generative/utilities/loader.py:84: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
this_file_tensors = torch.load(file)
^C

Hi,
Just wanted to update this issue with the latest info. Previously (as is discussed in this issue), Gemma 2 2B was only available in the LLM Inference API by going through a conversion pathway via ai_edge_torch. This was difficult for many people (especially due to the large memory requirements for conversion and quantization of the float checkpoint). So we have made the .task files of a quantized version of Gemma 2 available on Kaggle directly

They have the extension .task. You use these files just like any other with the LLM Inference API. Essentially, these files contain the model weights as well as binary information on the tokenizer for the model. Please give that a try! Note: GPU and CPU models are available but GPU is mostly likely to work on newer and high-end phones for now. Thanks for trying out the Inference API. We hope to have more info to share soon!

Tiny correction: the CPU model is a .task file, representing a successful conversion through ai_edge_torch, but the GPU model is a .bin file.

Hi @FranzKafkaYu,
Could you please confirm if this issue is resolved or any further assistance is needed?
Thank you!!


[MUGEN] Add Auto Regressive Generation Utility

Stack from ghstack:

-> #282
#292

Summary:

Refactored the generation logic from MUGEN MultimodalGPT lightning module
The AR decoding utility is re-designed as a layer of abstraction on top of the GPT model for improved modularity
This utility can potentially be generalized for other generation models if they satisfy certain API requirements

Test Plan:
$ python -m pytest --cov=torchmultimodal/utils/ test/utils/test_generate.py -vv

test/utils/test_generate.py::TestLogitsMask::test_normal PASSED                                                  [  6%]
test/utils/test_generate.py::TestLogitsMask::test_zero_dims PASSED                                               [ 13%]
test/utils/test_generate.py::TestLogitsMask::test_in_seq_only PASSED                                             [ 20%]
test/utils/test_generate.py::TestLogitsMask::test_out_seq_only PASSED                                            [ 26%]
test/utils/test_generate.py::TestGenerationUtil::test_model_eval_warning PASSED                                  [ 33%]
test/utils/test_generate.py::TestGenerationUtil::test_sample PASSED                                              [ 40%]
test/utils/test_generate.py::TestGenerationUtil::test_filter_logits PASSED                                       [ 46%]
test/utils/test_generate.py::TestLogitsFilterTopK::test_min_tokens_to_keep PASSED                                [ 53%]
test/utils/test_generate.py::TestLogitsFilterTopK::test_top_k_invalid PASSED                                     [ 60%]
test/utils/test_generate.py::TestLogitsFilterTopK::test_default PASSED                                           [ 66%]
test/utils/test_generate.py::TestLogitsFilterTopK::test_top_k PASSED                                             [ 73%]
test/utils/test_generate.py::TestLogitsFilterTopP::test_min_tokens_to_keep PASSED                                [ 80%]
test/utils/test_generate.py::TestLogitsFilterTopP::test_top_p_invalid PASSED                                     [ 86%]
test/utils/test_generate.py::TestLogitsFilterTopP::test_default PASSED                                           [ 93%]
test/utils/test_generate.py::TestLogitsFilterTopP::test_top_p PASSED                                             [100%]

---------- coverage: platform darwin, python 3.8.13-final-0 ----------
Name                                 Stmts   Miss  Cover
--------------------------------------------------------
torchmultimodal/utils/generate.py       90      0   100%

========================= 15 passed in 3.17s ==========================

Differential Revision: D38932535

@langong347 has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

Codecov Report

:exclamation: No coverage uploaded for pull request base (gh/langong347/36/base@99dc104). Click here to learn what that means.
The diff coverage is n/a.

@@                   Coverage Diff                    @@
##             gh/langong347/36/base     #282   +/-   ##
========================================================
  Coverage                         ?   92.31%
========================================================
  Files                            ?       55
  Lines                            ?     3265
  Branches                         ?        0
========================================================
  Hits                             ?     3014
  Misses                           ?      251
  Partials                         ?        0

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

@langong347 has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@langong347 has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@langong347 has imported this pull request.  If you are a Meta employee, you can view this diff on Phabricator.


Add GitLab ressources

Hi 👋
About GitLab, I purpose you their free DevOps book (https://page.gitlab.com/resources-ebook-beginners-guide-devops.html) and a personal serie of GitLab CheatCheet. I don't know if this last one have this place in this repo. Don't hesitate to tell me.

Yes, Jean-Phi it make sense. Lets see where to put it.


testing: fuzzing results include duplicate output

$ go version
go version devel go1.18-7fcf9a1e58 Fri Oct 8 19:41:16 2021 +0000 linux/amd64
$ cat fuzz_test.go
package main

import (
	"testing"
)

func FuzzFoo(f *testing.F) {
	f.Logf("parent f.Logf")
	f.Fuzz(func(t *testing.T, n uint8) {
		f.Logf("child f.Logf %d", n) // I'm allowed to use f.Logf here? f.Fatalf panics.
		t.Logf("child t.Logf %d", n)
		if n%3 == 0 {
			t.Fatal("boom")
		}
	})
}

If I then fuzz via go test -fuzz=. on an empty corpus, I get:
$ rm -rf testdata/fuzz && rm -rf $(go env GOCACHE)/fuzz
$ go test -fuzz=.
warning: starting with empty corpus
fuzz: elapsed: 0s, execs: 0 (0/sec), new interesting: 0 (total: 0)
fuzz: minimizing 26-byte crash input...
fuzz: elapsed: 0s, minimizing
--- FAIL: FuzzFoo (0.10s)
    fuzz_test.go:8: parent f.Logf
        fuzz_test.go:8: parent f.Logf
        fuzz_test.go:10: child f.Logf 78
        --- FAIL: FuzzFoo (0.00s)
            fuzz_test.go:11: child t.Logf 78
            fuzz_test.go:13: boom
        fuzz_test.go:10: child f.Logf 78
        --- FAIL: FuzzFoo (0.00s)
            fuzz_test.go:11: child t.Logf 78
            fuzz_test.go:13: boom
        fuzz_test.go:10: child f.Logf 78
        --- FAIL: FuzzFoo (0.00s)
            fuzz_test.go:11: child t.Logf 78
            fuzz_test.go:13: boom

    Crash written to testdata/fuzz/FuzzFoo/eca4c171b466a632930330d73dc661bd6d35f037e8dc7f2314c1adfc855b008b
    To re-run:
    go test test -run=FuzzFoo/eca4c171b466a632930330d73dc661bd6d35f037e8dc7f2314c1adfc855b008b
FAIL
exit status 1
FAIL	test	0.106s

I see multiple unexpected issues:

Note the two parent f.Logf lines. I suspect one of them is redundant. My actual fuzz func logged over a dozen times while calling f.Add, so the duplication really added a lot of noise.

I'm kinda confused why I see three separate --- FAIL: FuzzFoo blocks, all sharing the same input 78. Presumably the fuzzer should only test each input case once? If keeping track of all visited inputs or otherwise avoiding duplicates is too expensive, then at least we should be deduplicating the results being printed. To the end user, printing the same failure result more than once is unnecessary noise.

Note how child f.Logf is allowed and ends up being printed along with parent f.Logf. It is not allowed to call f.Fatalf from inside the fuzz function taking a *testing.T, so I think we should similarly disallow calling any testing.TB methods on the parent *testing.F, such as Logf. I actually used f.Logf instead of t.Logf by mistake, and was very confused why my log lines ended up in the wrong position in the resulting failure output.

These are three bugs into one, apologies :) I actually only intended to file number 3, but I ran into 1 and 2 while writing the reproducer. All three issues seem small and related enough to be OK within a single thread.
cc @katiehockman @jayconrod

Also, what is the minimization actually doing with 26 bytes? My input is one byte :)

I can confirm that all three bugs appear to be fixed! Thanks for your work :)

Woo! Great news 😄


MultiProcessing doesn't work with HDF5 files

Seems, that there is an issue with MultiProcessing transformer when HDF5 file is used.
Here is a stack trace:
HDF5ExtError: HDF5 error back trace

  File "H5Dio.c", line 182, in H5Dread
    can't read data
  File "H5Dio.c", line 550, in H5D__read
    can't read data
  File "H5Dchunk.c", line 1866, in H5D__chunk_read
    chunked read failed
  File "H5Dscatgath.c", line 542, in H5D__scatgath_read
    datatype conversion failed
  File "H5T.c", line 4809, in H5T_convert
    data type conversion failed
  File "H5Tconv.c", line 3216, in H5T__conv_vlen
    can't read VL data
  File "H5Tvlen.c", line 891, in H5T_vlen_disk_read
    Unable to read VL information
  File "H5HG.c", line 622, in H5HG_read
    unable to protect global heap
  File "H5HG.c", line 262, in H5HG_protect
    unable to protect global heap
  File "H5AC.c", line 1329, in H5AC_protect
    H5C_protect() failed.
   They should be almost drop-in replacements, and I'm just wondering whether that solves the issue. If so, we can let the user choose whether to use multiprocessing or threading?

@bartvm , no, seems, it doesn't work.

For reference: https://github.com/h5py/h5py/blob/master/examples/multiprocessing_example.py

After looking at it, it basically just shows how to make sure that reading only happens in one thread. Seems like there really is no easy way to use multiprocessing. Multithreading could still be possible (https://github.com/h5py/h5py/blob/master/examples/threading_example.py), but maybe there's a way to keep reading in the main process?

@dmitriy-serdyuk Please check out #56 and let me know if that works for you

@dmitriy-serdyuk Closing this for lack of activity, and the existence of ServerDataStream.
@bartvm Should we just deprecate MultiProcessing? If most of Fuel relies on HDF5 files it's moderately useless.

Sorry, I haven't had time to check it with ServerDataStream. I agree, this issue is no more relevant.


fix(readme): Updated readme to support single source  for documentation

Closes #41
Added the link to concerto cli docs in readme
Changes

Removed the commands documentations from cli
Added the link to concerto-cli docs

Author Checklist

[x] Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
[x] Commits messages follow AP format
[x] Extend the documentation, if necessary
[x] Merging to main from fork:branchname

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
202

Relevant Lines:
202

💛  - Coveralls


target .NETFramework

Hi!
I'm getting an error when trying to import dll into references: 'the project targets .NETFramework while the file reference targets .NETcore'. Is there a quick workaround for this?
thanks in advance!

Hey, I will take a look at this. I originally but the library together for the version of .net released a couple of years ago. My guess is that I need to update it for .net core. Really, it should probably be a nuget package anyway. I will follow up in a couple of days.
-------- Original message --------
From: zombieJesus<EMAIL_ADDRESS>Date: 5/10/17 11:51 AM (GMT-08:00)
To: "golaat/Adafruit.Pwm"<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [golaat/Adafruit.Pwm] target .NETFramework (#3)
Hi!
I'm getting an error when trying to import dll into references: 'the project targets .NETFramework while the file reference targets .NETcore'. Is there a quick workaround for this?
thanks in advance!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/golaat/Adafruit.Pwm/issues/3, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFv5WtMEn19XE3MJZLWJATttw_PcaVjFks5r4gc6gaJpZM4NXE5b.


Crash at file appending on SPIFFS (IDFGH-8453)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
Hi,
Sometimes, I am having a crash when starting my device due to problems with the SPIFFS (apparently).
The problem comes when receiving data and writitng to a file in a SPIFFS partition.
When receiving data via HTTP a dynamic buffer is created based on the content-lenght header included in HTTP response.
file_buffer = (uint8_t*) malloc(sizeof(uint8_t) * (content_len + 1));
Then the full buffer is appended to a file.
DBG_print("Adding packet to file...\n");
FILE* f = fopen(file_name, "a");
if (f == NULL)
{
    DBG_print("Failed to OPEN file\n");
    addOk = false;
}
...

Anyone can help on which can be the root cause.
-DEBUG-: [1664953447,560 s] Adding packet to file...

abort() was called at PC 0x40082a79 on core 0

Backtrace:0x400923fb:0x3ffbab70 0x40092b6d:0x3ffbab90 0x40098fce:0x3ffbabb0 0x40082a79:0x3ffbac20 0x400843f5:0x3ffbac40 0x400852b9:0x3ffbac60 0x400852c5:0x3ffbac80 0x4008fe81:0x3ffbaca0 0x400850ad:0x3ffbacc0 0x40151d09:0x3ffbad00 0x40124207:0x3ffbad30 0x40127d43:0x3ffbad60 0x40125973:0x3ffbad90 0x4012714a:0x3ffbadd0 0x40124888:0x3ffbae10 0x40123fb9:0x3ffbae40 0x401523a6:0x3ffbae60 0x401a5520:0x3ffbae80 0x401a55c9:0x3ffbaeb0 0x400df034:0x3ffbaed0 0x400df186:0x3ffbaf00 0x400df28e:0x3ffbaf20 0x400df44d:0x3ffbaf60 0x400da6c9:0x3ffbafa0 0x400d4cab:0x3ffbafc0 0x400d5d75:0x3ffbafe0 0x400d6a58:0x3ffbb000 0x400d82bf:0x3ffbb030 0x401c6573:0x3ffbb170 0x40095ead:0x3ffbb190
  #0  0x400923fb:0x3ffbab70 in panic_abort at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\esp_system/panic.c:356
  #1  0x40092b6d:0x3ffbab90 in esp_system_abort at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\esp_system/system_api.c:112
  #2  0x40098fce:0x3ffbabb0 in abort at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\newlib/abort.c:46
  #3  0x40082a79:0x3ffbac20 in esp_intr_noniram_disable at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\esp_system/intr_alloc.c:802 (discriminator 1)
  #4  0x400843f5:0x3ffbac40 in spi_flash_disable_interrupts_caches_and_other_cpu at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spi_flash/cache_utils.c:259
  #5  0x400852b9:0x3ffbac60 in cache_disable at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spi_flash/spi_flash_os_func_app.c:78
  #6  0x400852c5:0x3ffbac80 in spi1_start at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spi_flash/spi_flash_os_func_app.c:107
  #7  0x4008fe81:0x3ffbaca0 in spiflash_start_default at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spi_flash/esp_flash_api.c:110
  #8  0x400850ad:0x3ffbacc0 in esp_flash_read at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spi_flash/esp_flash_api.c:652
  #9  0x40151d09:0x3ffbad00 in esp_partition_read at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spi_flash/partition.c:347
  #10 0x40124207:0x3ffbad30 in spiffs_api_read at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spiffs/spiffs_api.c:36
  #11 0x40127d43:0x3ffbad60 in spiffs_phys_rd at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spiffs\spiffs\src/spiffs_cache.c:161
  #12 0x40125973:0x3ffbad90 in spiffs_obj_lu_find_entry_visitor at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spiffs\spiffs\src/spiffs_nucleus.c:166
  #13 0x4012714a:0x3ffbadd0 in spiffs_object_find_object_index_header_by_name at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spiffs\spiffs\src/spiffs_nucleus.c:1694
  #14 0x40124888:0x3ffbae10 in SPIFFS_open at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spiffs\spiffs\src/spiffs_hydrogen.c:230 (discriminator 2)
  #15 0x40123fb9:0x3ffbae40 in vfs_spiffs_open at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\spiffs/esp_spiffs.c:477
  #16 0x401523a6:0x3ffbae60 in esp_vfs_open at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\vfs/vfs.c:391 (discriminator 3)
  #17 0x401a5520:0x3ffbae80 in _fopen_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fopen.c:129
  #18 0x401a55c9:0x3ffbaeb0 in fopen at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fopen.c:168
  #19 0x400df034:0x3ffbaed0 in add_packet_to_file_avd at lib_prj/BG95/bg95.c:1354
  #20 0x400df186:0x3ffbaf00 in FILE_parse_append at lib_prj/BG95/bg95.c:1512
  #21 0x400df28e:0x3ffbaf20 in bg95_rx_http_to_file at lib_prj/BG95/bg95.c:1621
  #22 0x400df44d:0x3ffbaf60 in BG95_transmit_http_get at lib_prj/BG95/bg95.c:1739
  #23 0x400da6c9:0x3ffbafa0 in SEND_get_barcodes_to_file at src/send_manager.c:2271
  #24 0x400d4cab:0x3ffbafc0 in HD_rx_barcodes_to_file at src/main.c:979
  #25 0x400d5d75:0x3ffbafe0 in SYSTEM_notify at src/main.c:1730
  #26 0x400d6a58:0x3ffbb000 in SYSTEM_setup at src/main.c:1933
  #27 0x400d82bf:0x3ffbb030 in app_main at src/main.c:6850
  #28 0x401c6573:0x3ffbb170 in main_task at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\freertos\port/port_common.c:133 (discriminator 2)
  #29 0x40095ead:0x3ffbb190 in vPortTaskWrapper at C:\Users\jr.hernandez\.platformio\packages\framework-espidf@3.40300.0\components\freertos\port\xtensa/port.c:168

ELF file SHA256:<PHONE_NUMBER>373436

Rebooting...

Boot!...

I think it crashes at the fopen but no idea why.
Regards, Ramon.

Hi,
So sorry. I  missed thise details yesterday.

framework-espidf @ 3.40300.0 (4.3.0)
HARDWARE: ESP32 240MHz, 320KB RAM, 15.62MB Flash

Hi,
Updated to framework-espidf @ 3.40401.0 (4.4.1)
Same result, it crashed, but I think I know the root cause. It seems to be some unexpected values when recieving via HTTP that makes a buffer overflow somewhere.
Regards, Ramon.

Hi Ramon,
Based on your observation of unexpected values when recieving via HTTP that potentially makes a buffer overflow, could you provide us with more details of your investigation so far?
It was already mentioned earlier, it would help us if you could publish a code snippet causing the trouble.

Hi Ramon,
It looks like there is no new information available for a while, so I am closing the issue without resolution. If you would need to reiterate on this topic, please provide details and reopen the issue.
Radek


move ThermalSurface initialization heuristics to inverse_simple()

Put new thermal_surface.fit_params() code into inverse_simple() with the other atmosphere & surface initialization heuristics, simplifying the function parameters.
Rationale: surface objects had been highly encapsulated and decoupled from any atmospheric modeling assumptions. They really were only about the surface, with no atmosphere or instrument-related calculations. However, the thermal fit_params() strategy uses radiance-at-sensor and atmosphere-related information, blurring the semantic distinction a bit.

Done in #91


LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210716154017232 to main

LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210716154017232 to main with localized lcls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 42.753%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
26253

Relevant Lines:
55746

💛  - Coveralls


Release a new version

It's been two years since the previous release and the pull requests are merged without releasing a new version. Could you release a new version on NPM?
The tutorial for releasing is here:
https://github.com/electron/node-minidump#releasing-a-new-npm-version

@nornagon Would you be able to release a new version?
The tutorial for releasing is here:
electron/node-minidump#releasing-a-new-npm-version

v0.22.0 has been released with the latest updates.


Fix the logic for the student search button on the student search page

If we search for a student that exists in a database, and we hit enter or the search icon after typing their name, the error occurs saying that the user doesn't exist, which is wrong because it shows that that student exists in the dropdown when we type their name

Is this currently being worked on/has any progress been made on this @Karina-Agliullova?

Closed in #1074


"Generate a certificate manually" no longer asks for the local site path

The latest release does not ask for "Enter a site path" anymore when choosing "Generate a certificate manually" (M).
To me, this is a bug, since I cannot generate certificates anymore for my Apache sites, I host under Windows.
Could you please comment on whether you see this as a bug, too?
Or maybe I'm using this functionality wrong?

The problem I think is the default value for --webrootpath, which is already on my todo list to remove it from v1.9.5 (#518). I will check the history and if that option was not in v1.9.3 or earlier I will create a v<IP_ADDRESS> release to get it out sooner.


Misleading output printing the bindings

Say I have this type:
fun interface SimpleUseCase<in P, out R> where R : Any {
    operator fun invoke(param: P): R
}

And I have multiple bindings on that:
 bind<SimpleUseCase<Int, String>>() with singleton { SimpleUseCase{"int = $it" } }
 bind<SimpleUseCase<String, String>>() with singleton { SimpleUseCase {"string = $it" } }

Kodein has no trouble distinguishing these by type, but if you dump the list of bindings (or get an error that causes bindings to be dumped) you will get misleading info:
    bind<SimpleUseCase<*, out String>>() with singleton { SimpleUseCase<*, out String> }
    bind<SimpleUseCase<*, out String>>() with singleton { SimpleUseCase<*, out String> }

It is showing wildcard when it is fully type safe. This misleading output made me doubt that Kodein was properly handling generic types, but testing proved it was and it is only the conversion to string at fault here.

In fact, you are right, this seems type safe, and actually on Native the output is surely:
SimpleUseCase<String, Int>

But on the JVM we get that output:
SimpleUseCase<*, out Int>

On the JVM, Kotlin transfigure SimpleUseCase<? super String, ? extends Int>, hence the wildcard on ? super String, because type system don't know what ?  would be.


Erik the Outgolfer: Watch<EMAIL_ADDRESS>

Erik the Outgolfer requests the watch of the watch_keyword<EMAIL_ADDRESS>See the MS search here and the Stack Exchange search here.

<EMAIL_ADDRESS>has been seen in 2 true positives, 0 false positives, and 0 NAAs.

Aaargh, when will SD stop forgetting I've run the !!/amicodeprivileged command too many times?

Coverage remained the same at 64.618% when pulling 7a4eb8c78a4f518ff67da4517aae3bf2712709a7 on auto-blacklist-1539784419 into 36830b224c3b84b86e2e5f119a2bc1f2df1f1afe on master.

!!/approve


Implement CI bot token for Tekton

What this PR does / why we need it
Towards: https://github.com/giantswarm/roadmap/issues/3201
Checklist

[ ] Update changelog in CHANGELOG.md.

Not sure if this is going to work


I'm experiencing a weird issue on iOS 10.2.1 using Google auth

If i login then logout a few times on iOS google auth does not work anymore.
I get  "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" upon the request.
This only happens on device and never on the simulator. And no matter what i do after (removing/reinstalling the app), it will not work again. Somehow some config gets stuck in the webView.
I'm wondering if anyone has experienced this.
One thing i noticed is on makeRequest exported method the
DCTAuthAccount *existingAccount = [manager accountForProvider:providerName];
existingAccount private prop clientID on simulator has value and on device is null.
I checked where the config is set and everything seems to be fine.
If you guys have experienced this already and fixed it or if i'm missing something let me know, if not i will try to come up with a fix.

Hm... I haven't experienced this myself, but it's a good one to fix, if you've encountered it.
One thing I would really like to put on the TODO is make auth stateless. Not sure exactly how to do that quite yet.

I also started getting this error all of a sudden. It was working fine before but when i deleted the app from the facebook settings, uninstall the app from simulator and re-install the app, I am getting this error. any workarounds ?

Getting same error on IOS Simulator while trying to sign in via Google.

Hi, All
I got same error and resolved with facebook oauth.
deauthorize() would be solution for this problem.
manager.deauthorize('facebook').then(_ => {
  manager.authorize('facebook').then(_ => {
    manager.makeRequest('facebook', '/me').then(resp => {
      // code
    })
  }
})

I'm having a problem please, can someone help me, whenever I log into my social media account, for some unknown reason, I can't login with a different account, every time i click on authorise, skips the consent screen and just logs the person in, is there a way to make such that the user can actually choose to login with a different social media or google account?


feat: implement runtime link name selection and a2a calls

Feature or Problem

Define the API for https://github.com/wasmCloud/wasmCloud/issues/469 and implement
Related Issues

Closes https://github.com/wasmCloud/wasmCloud/issues/469
Closes #463
Closes #317
Closes #494 (please test)
Release Information

Consumer Impact

Testing

Built on platform(s)

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

Tested on platform(s)

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

Unit Test(s)

Acceptance or Integration

Manual Verification

@rvolosatovs So I think this is close but there might have been some confusion when we last synced on this offline. I think it will be much cleaner if we keep the current call stuff exactly as it is, but expose a new interface that can included in the actor world.
// This is just a guess at names. Not strongly opinionated on interface or package name
package wasmcloud:lattice

interface lattice {
    variant actor-identifier {
        /// Actor public key
        public-key(string),
        /// Actor call alias
        alias(string),
    }

    // Note that this doesn't impose any restraints on the interface/contract name as we need to be able to support custom contracts
    set-link-name: func(interface: string, link-name: string)

    set-target: func(actor: actor-identifier)

    clear-link-name: func()

    clear-target: func()
}

Basically the host will provide that functionality and then we don't have to worry about passing interfaces or link names in the host call. What I envision the code looking like from an actor perspective is something like this:
set_link_name("wasmcloud:mycustom", "foobar");
// This will now be using the link name under the hood
custom::thing_i_call("blah");
clear_link_name();

An actor to actor call would be similar:
set_target(ActorIdentifier::CallAlias("foobar");
actor::thing_i_call("blah");
clear_target();

In the host implementation it would be something like this (very psuedocode-y, just trying to explain reasoning):
impl Lattice for Host {
    fn set_link_name(interface: String, link_name: String) {
        let current_interface = self.interfaces.get(interface);
        current_interface.link_name = link_name;
        self.interfaces.insert(interface, current_interface);
    }
}

/// Then when host.call comes
let current = self.interfaces.get(interface);
let inv = Invocation {
    link_name: current.link_name.unwrap_or("default")
    // All the rest of the stuff
}

Does that make any sense?

@rvolosatovs So I think this is close but there might have been some confusion when we last synced on this offline. I think it will be much cleaner if we keep the current call stuff exactly as it is, but expose a new interface that can included in the actor world.
// This is just a guess at names. Not strongly opinionated on interface or package name
package wasmcloud:lattice

interface lattice {
    variant actor-identifier {
        /// Actor public key
        public-key(string),
        /// Actor call alias
        alias(string),
    }

    // Note that this doesn't impose any restraints on the interface/contract name as we need to be able to support custom contracts
    set-link-name: func(interface: string, link-name: string)

    set-target: func(actor: actor-identifier)

    clear-link-name: func()

    clear-target: func()
}

Basically the host will provide that functionality and then we don't have to worry about passing interfaces or link names in the host call. What I envision the code looking like from an actor perspective is something like this:
set_link_name("wasmcloud:mycustom", "foobar");
// This will now be using the link name under the hood
custom::thing_i_call("blah");
clear_link_name();

An actor to actor call would be similar:
set_target(ActorIdentifier::CallAlias("foobar");
actor::thing_i_call("blah");
clear_target();

In the host implementation it would be something like this (very psuedocode-y, just trying to explain reasoning):
impl Lattice for Host {
    fn set_link_name(interface: String, link_name: String) {
        let current_interface = self.interfaces.get(interface);
        current_interface.link_name = link_name;
        self.interfaces.insert(interface, current_interface);
    }
}

/// Then when host.call comes
let current = self.interfaces.get(interface);
let inv = Invocation {
    link_name: current.link_name.unwrap_or("default")
    // All the rest of the stuff
}

Does that make any sense?

I disagree with your proposal, let's discuss it in detail offline tomorrow.

I haven't reviewed the updated code yet, but it looks like #494 is still happening :( I followed the steps to reproduce in the issue, and still don't see an outbound RPC call from the actor to the provider

@connorsmith256 I cannot reproduce #494 on this branch:
$ wash start actor wasmcloud.azurecr.io/kvcounter:0.4.2

Actor [MCFMFDWFHGKELOXPCNCDXKK5OFLHBVEWRAOXR5JSQUD2TOFRE3DFPM7E] (ref: [wasmcloud.azurecr.io/kvcounter:0.4.2]) started on host [NDCCV4YKFKHUMTRFVQ6ZU4TQRP7ZKO236TF5XICAQVB32RHHN6FMAQ6D]
$ wash start provider wasmcloud.azurecr.io/httpserver:0.19.1

Provider [VAG3QITQQ2ODAOWB5TTQSDJ53XK3SHBEIFNK4AYJ5RKAX2UNSCAPHA5M] (ref: [wasmcloud.azurecr.io/httpserver:0.19.1]) started on host [NDCCV4YKFKHUMTRFVQ6ZU4TQRP7ZKO236TF5XICAQVB32RHHN6FMAQ6D]
$ wash start provider wasmcloud.azurecr.io/kvredis:0.22.0

Provider [VAZVC4RX54J2NVCMCW7BPCAHGGG5XZXDBXFUMDUXGESTMQEJLC3YVZWB] (ref: [wasmcloud.azurecr.io/kvredis:0.22.0]) started on host [NDCCV4YKFKHUMTRFVQ6ZU4TQRP7ZKO236TF5XICAQVB32RHHN6FMAQ6D]
$ wash link put MCFMFDWFHGKELOXPCNCDXKK5OFLHBVEWRAOXR5JSQUD2TOFRE3DFPM7E VAG3QITQQ2ODAOWB5TTQSDJ53XK3SHBEIFNK4AYJ5RKAX2UNSCAPHA5M wasmcloud:httpserver address=<IP_ADDRESS>:1234

Published link (MCFMFDWFHGKELOXPCNCDXKK5OFLHBVEWRAOXR5JSQUD2TOFRE3DFPM7E) <-> (VAG3QITQQ2ODAOWB5TTQSDJ53XK3SHBEIFNK4AYJ5RKAX2UNSCAPHA5M) successfully
$ wash link put -x default -p 4222 MCFMFDWFHGKELOXPCNCDXKK5OFLHBVEWRAOXR5JSQUD2TOFRE3DFPM7E VAZVC4RX54J2NVCMCW7BPCAHGGG5XZXDBXFUMDUXGESTMQEJLC3YVZWB wasmcloud:keyvalue

Published link (MCFMFDWFHGKELOXPCNCDXKK5OFLHBVEWRAOXR5JSQUD2TOFRE3DFPM7E) <-> (VAZVC4RX54J2NVCMCW7BPCAHGGG5XZXDBXFUMDUXGESTMQEJLC3YVZWB) successfully
$ curl <IP_ADDRESS>:1234/api/counter
{"counter":1}
$ curl <IP_ADDRESS>:1234/api/counter
{"counter":2}
$ curl <IP_ADDRESS>:1234/api/counter
$ redis-cli
<IP_ADDRESS>:6379> keys *
1) "counter:default"


(enhancement) 'Enabled' is missing for job definition

I succesfully put our bacula configuration in puppet the past couple of weeks and very pleased how the module works, but because we have old jobs which are only there for restore-purposes we need the 'Enabled = yes|no' option for job definitions.
Is it possible to include it? I can add it manually, but that will break when I update the module...
Thanks in advance!

You're right. I'll start with the enabled setting. For now I included everything (including the autochanger configuration) in my local copy of the module (seems to work OK, but you never know), because I need the functionality on a short notice. When everything is OK I'll get back and open a pr for the enabled-setting! Thanks so far!


[Windows/Linux] Check custom export templates architecture.

Adds checks to ensure custom export template binary architecture is matching one selected in the export settings.
GDExtension and .NET export rely on binary_format/architecture value during export, and it's easy to select wrong binary as custom export template or forgot to change architecture in the export settings and get unusable export.

Thanks!


Lots of misc gui fixes

Fixes #440, #510
Remove unneeded dependencies like fs-nextra and dotenv
Fixed flag emojis not working in Linux (requires testing on Windows!)
Typography supports whitespace now specification which is nice for newline detection in translations

Example images:

last commit made position be able to be converted to cm precision


iOS  MSALErrorDomain error -50000.

Unexpected error: The operation couldn’t be completed. (MSALErrorDomain error -50000.)

Solved
There were some problems with my azure b2c settings

hi @tariq-alskran ,
May I ask how you solved that? What was missed?

It was confiugration file issue make sure to add correct  file to your android project

yeah, android is working fine, iOS implementation is what is making me crazy.
currently I managed to load configuration file but getting issues on authority
[1]	(null)	"MSALInternalErrorCodeKey" : Int64(-42008)
[0]	(null)	"MSALErrorDescriptionKey" : "Authority validation is not supported for this type of authority"
that's when I use normal format
https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com/{policy}
apparently it expects something like
https://login.microsoftonline.com/tfp/{tenant}.onmicrosoft.com/{policy}
from this link
but then I get
[1]	(null)	"MSALInternalErrorCodeKey" : Int64(-42007)
with some 403 permission description


update css

I add colors to the background which makes the UI look good. I also added border styles, which increase the UI appearance

i resolve the merge conflicts.

screenshot??


mask_b = np.minimum(boxes[:, 2], boxes[:, 3]) > 8

Hi, 请问在yolox/data/data_augment.py中的TrainTransform中mask_b = np.minimum(boxes[:, 2], boxes[:, 3]) > 8这一行代码中的8代表什么意思？
另外我正在尝试修改yolox源码用于检测不规则四边形，您认为是否合适呢？
谢谢解答。

@Joker316701882  Have you investigated the impact of this setting on the final performance?

@Joker316701882 No. It's just some weird code from the original codebase we used.

@Joker316701882 No. It's just some weird code from the original codebase we used.

Hey, not weird ok?  I set the number just because the minimal stride of FPN is 8. But I did not investigate the impact.

@ruinmessi OK,Thank you!

@hhaAndroid Have you investigated this impact of this on mmdet's version of YoloX? Trained my custom dataset using Megvii and mmdet but was not able to hit Megvii's performance.
This portion of the code is interesting in filtering out boxes <1 width and height and using all the boxes if all boxes were filtered by the mask.
`mask_b = np.minimum(boxes[:, 2], boxes[:, 3]) > 1
boxes_t = boxes[mask_b]
labels_t = labels[mask_b]
    if len(boxes_t) == 0:
        image_t, r_o = preproc(image_o, input_dim)
        boxes_o *= r_o
        boxes_t = boxes_o
        labels_t = labels_o`


Questionnaire sync with HAPI throws OutOfMemory around page 700

Describe the bug
Questionnaire sync with HAPI throws OutOfMemory issue around page 700
Component
SDK FHIR Engine FhirSynchronizer
To Reproduce
Steps to reproduce the behavior:

Run Sync for Questionnaire
Wait until sync page offset comes around page 700 ( somewhere around http://hapi.fhir.org/baseR4?_getpages=e3f46ec4-94ea-4437-aa9c-7a65ef2d5c21&_getpagesoffset=720&_count=20&_pretty=true&_bundletype=searchset)

Expected behavior
Out of Memory Exception - https://github.com/google/android-fhir/files/7055990/questionnaire_outofmemory_exception.txt
Screenshots
If applicable, add screenshots to help explain your problem.
Would you like to work on the issue?
No.

Fixed with this PR #880.


feat(here): Adding missing fields on Address model type for Here API

I've begun using this package, however as I got into the weeds with my implementation I noticed some missing properties on the Here Geocoding API model types. As luck would have it... I need one of these fields... Specifically "stateCode"
I've reviewed and added missing fields on the "Address" model type, but have not reviewed the remainder of the API.
The documentation I referenced is:
https://developer.here.com/documentation/geocoding-search-api/api-reference-swagger.html

Sorry I managed to make my commit with an email not associated with my Github. I will remake this PR properly.


_NumbersModel.table_string_key degrades performance

Thanks for maintaining the useful parser!
https://github.com/masaccio/numbers-parser/blob/8dcb81db6fd055ed1b6cfb8b4527435a0de227b6/src/numbers_parser/model.py#L226
When handling a gigantic table, the line where generates a dictionary on every call extremely degrades the performance. Also the line key = max(string_lookup.values()) + 1 seems very expensive as well.
class TableStringsStore(object):
    def __init__(self, entries):
        self.entries = entries
        self.lookup = {x.string: x.key for x in entries}
        self.max_value = max(self.lookup.values()) if self.lookup else 0
    def append_entry(self, entry):
        self.entries.append(entry)
        self.lookup[entry.string] = entry.key
        self.max_value = max(self.max_value, entry.key)
    def clear_field_container(self):
        clear_field_container(self.entries)
        self.lookup = {}
        self.max_value = 0

This is just a sketch, but incrementally updating the string lookup dict and the max value via the wrapper like above did drastically improve the performance when saving a file. Annotating table_string_key() with @lru_cache also looked effective.

Many thanks for spotting that. I've refactored how I manage datalists which are used in various places and for the strings I should now be efficiently cacheing. There are other performance issues I am aware of in saving files but I've not done profiling on that yet.
Do keep the feedback coming - I'm very happy to see someone using the save functions.
You should see the improvements in 3.9.3.

I'm very looking forward to see the improvement and the upcoming release! Another low-hanging fruit I found was to utilize cache in iwafile.find_references (called from containers.ObjectStore.update_dirty_objects). For me the saving feature is fascinating because I think Numbers is a nice tool to present tabular data less cluttered than Excel. I appreciate your effort and keep up the good work!

Yes update_dirty_objects is not overly smart. It is also overly greedy in computing new dependencies rather than tracking what's actually dirty.


Update README.md

Corrected a couple of FormaServe typos
Added section/link to PowerWire (gained their approval for a link to be added)
Added link to FormaServe videos/user group code examples
Thanks for this @ThePrez !

Thanks, @AndyYouens !!
(And why did I think FormaServe lacked an 'e'?)


Parsys Limiter is counting items in clipboard even on insert/drop action

Required Information

AEM Version: 6.5 SP 8
ACS AEM Commons Version: 5.0.6
Reproducible on Latest? yes

Expected Behavior
If I have more items in clipboard than allowed in the parsys I should still be able to insert single components into the parsys.
E.g. If I have 3 items in clipboard and there is space for 1 component left in the parsys, I should be able to insert/drop a single component with the insert functionality.
Actual Behavior
Logic is always checking the clipboard, even if I am inserting / dropping a single component. That's why I get the limit error when having multiple items in the clipboard, even if there is space left in the parsys.
Steps to Reproduce

Activate parsys limiter https://adobe-consulting-services.github.io/acs-aem-commons/features/parsys-limiter/index.html and set the acsComponentsLimit to 3, for example.
Add 2 components to the parsys
Copy these 2 components with multiselect so that they are added to the clipboard
Try to insert another component into the parsys
It does not work, because the limiter is counting the 2 items in the clipboard

Links
The source of the issue should be in this line https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/d71a9a9d538854bc9f34efc776b34bd299728336/ui.apps/src/main/content/jcr_root/apps/acs-commons/touchui-widgets/configure-limit-parsys/touchui-limit-parsys.js#L128 where it is always checking the clipboard, while it should only check it if the action was the paste action.

@dratzenboeck-ibm Thanks for the bug report. Can you come up with a PR?

PR is open


Modal window with special char

When the module name has special characters ('@' and '/') the link to modal window doesn't work.
Handled the same by removing these characters when creating data-target-model

Please run npm run lint! on this and then I'll get it merged in. Thanks for the fix!

Ran "npm run lint!" on "gh pr checkout 84" and no further fix was required on the current code

:tada: This PR is included in version 2.0.0-beta.2 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add AWS Foundational Security Best Practices SecretsManager benchmark

Is your feature request related to a problem? Please describe.
I'd like to be able to run the SecretsManager benchmark for the AWS Foundational Security Best Practices framework.
Describe the solution you'd like
Implement SecretsManager benchmark.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Closed in https://github.com/turbot/steampipe-mod-aws-compliance/pull/92


Fix Personal Review Stats calculate.

似乎是 vote_mapping 這個變數在做計算時沒有正確。

Codecov Report

Merging #377 into master will decrease coverage by 0.12%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #377      +/-   ##
==========================================
- Coverage   82.57%   82.44%   -0.13%
==========================================
  Files          58       58
  Lines        1911     1914       +3
==========================================
  Hits         1578     1578
- Misses        333      336       +3

Impacted Files
Coverage Δ

src/reviews/views.py
35.51% <0%> (-1.03%)
:arrow_down:

Continue to review full report at Codecov.

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

Fixed in f7d3fc9.

看到了，目前看起來一切 ok!


Temporarily Disable Caffe2 Build & Test

Address #475

Currently I cant even clone the caffe2 repo :-/
Is there any plan to fix it soon?

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1382/
Test PASSed.

Hi, @gautamkmr
We chose not to investigate and find a fix for this issue temporarily. I believe you can still install caffe2 via anaconda. The pre-built binary should be stable.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1386/
Test PASSed.

@dcrankshaw A warning may be more suitable? The old containers on dockerhub still works. We just need to re-tag the image for the release. What about a warning saying: the caffe 2 version is not up to date because {link to issue} however you can still use it (we will continue our effort to  maintain it once caffe2 build issue is fixed....)

Yeah that sounds good.

I just tried pulling the latest pytorch (which contains caffe now), it seems to work.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1393/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1396/
Test FAILed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1399/
Test PASSed.


How to setup Matrix webhook in Element ?

Hi,
I'm trying to use the Matrix plugin in Kanboard. However, I could not find any setting in Element for desktop (a PC Matrix client) to get the webhook URL required.
Is there a way to get this URL somewhere ? Are there other clients that allow that ?
Thanks !

Hi, you need a use a separate appservice on your self hosted matrix-server to use webhooks. This plugin is tested with https://github.com/turt2live/matrix-appservice-webhooks - it's old, but it still works.

Hi, thanks a lot for your reply. I naively
    thought all Synapse servers allowed it... I'm not using any self
    hosted matrix server for now, so I'll stick with email
    notifications.

Le 27/01/2022 à 09:53, Chris a écrit :

  Hi, you need a use a separate appservice on your
    self hosted matrix-server to use webhooks. This plugin is tested
    with https://github.com/turt2live/matrix-appservice-webhooks
    - it's old, but it still works.
  —
    Reply to this email directly, view it on GitHub, or unsubscribe.
    Triage notifications on the go with GitHub Mobile for iOS or Android.

    You are receiving this because you authored the thread.Message
      ID<EMAIL_ADDRESS>  [

{
@.": "http://schema.org",
@.": "EmailMessage",
"potentialAction": {
@.": "ViewAction",
"target": "https://github.com/chriswep/kanboard-plugin-matrix/issues/1#issuecomment-1022981701",
"url": "https://github.com/chriswep/kanboard-plugin-matrix/issues/1#issuecomment-1022981701",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
@.": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]


Implement the 'once' block macro

From https://github.com/masak/007/issues/313#issuecomment-401594975:

Guess we need to write once as a macro.

I think it can be done in pure 007. Funnily enough, we'll need another hidden COMPILING:: variable to express it:
@parsed(/ "once" >> <G.block> /)
macro term:<once>(block) {
    my initialized = new Symbol("initialized");
    return quasi {
        my COMPILING::{{{initialized}}};
        if !COMPILING::{{{initialized}}} {
            {{{Q::Block @ block}}}
            COMPILING::{{{initialized}}} = True;
        }
    };
}

Rust has a "once cell" crate. Food for inspiration.
All of a sudden I'm also reminded of Josh Bloch's insistance that the singleton pattern should be implemented using enums. This has something to do with the built-in guarantees provided by the Java Virtual Machine itself during initialization.


Removed the composer.lock. Libraries shouldn't commit it.

It removes the warning:

This change is

Thanks!
First, that “libraries shouldn’t commit it” is not correct.
The official Composer documentation says that “for libraries it is not necessary to commit the lock file”, and “for your library you may commit the composer.lock file if you want to”, which “can help your team to always test against the same dependency versions”, which is great and is something that we want.
Apart from that, I’d be really curious what part of the current composer.lock may be causing the problems that you describe. What else does the composer.json contain in a project that causes this error message to be shown? Is it the platform requirements that cannot be satisfied?

@ocram It is missing         "ext-gettext": "*"

Thank you!
The composer.lock was indeed outdated and thus missing the dependency on ext-gettext, which was fixed in this commit.
Are you suggesting that this was also the cause of the error message stating that “your requirements could not be resolved to an installable set of packages” on install? Doesn’t this usually occur if too many (unsatisfiable) dependencies are listed, not too few?
According to the Composer documentation, again, the “lock file will not have any effect on other projects that depend on” this library.
Did you run composer install in a local clone of this project, or in another project that was set up to depend on this library here?

It happened to me both places.  It just downright refused with huge long list of error messages I didn't bother to read when I did composer require. When I cloned the project, fully intending to help you out w/ your test code coverage, I was saddened that plain old composer install didn't work.
Then, i was even more saddened to see that you didn't have a single modern PHP automated testing framework, instead relying on -old- school pre-2005 tests.php. I was even more saddened when it failed to run due to me not having es-AR. I doubt many people have the Argentinian Spanish locale installed, at least percentage-wise, in the world.
It was at that point that I largely gave up and created this PR.

I still want to point out that the community seems to largely agree that commiting a composer.lock file is a no-no for libraries. In fact, of the few that do, virtually 90% of them exclude the composer.lock from composer installation, via .gitattributes, just to avoid this weird sort of stuff.
See https://stackoverflow.com/a/24247443/430062
Of course, I found this out in a most spectacularly embarassing way when I (naively) thought a few months back that an upstream package had accidentally broken PHPUnit 7.0 support for PHP 7.1. See https://github.com/sebastianbergmann/phpunit/issues/3603 where I was appropriately schooled.

Thanks!
Since we can’t reproduce these problems, don’t see any hints that it’s indeed the composer.lock that’s causing the error message, have no non-platform dependencies at all, our general experience tells us that committing composer.lock does not cause any problems, and the official documentation states so as well, we’re not changing anything for now (until there is any new information).


[FEATURE REQ] fix name of TableUriBuilder.Tablename

Library name
Azure.Data.Tables
Please describe the feature.
https://github.com/Azure/azure-sdk-for-net/blob/371c357d021424144a27265ea870b0c31fba398a/sdk/tables/Azure.Data.Tables/src/TableUriBuilder.cs#L99
It should, of course, be TableUriBuilder.TableName.

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Hi @Arithmomaniac - I'm sorry, but I don't understand what you are suggesting should be different here. Could you provide a bit more context?

It's capitalization issue of the property name. The current capitalization doesn't match either usual API conventions or other members of the class.
/*currently the member name is*/ tableUriBuilder.Tablename
/*It should be like*/            tableUriBuilder.TableName
/*Similar to the existing*/      tableUriBuilder.AccountName

Thanks for clarifying. Unfortunately, changing this now would be a breaking change.

Can't it then go in the next big point release?

Maybe TableName can be added, and Tablename can forward to it and be marked with [EditorBrowsable(EditorBrowsableState.Never)] so as not to break existing code?


fix(masthead): remove masthead per usability results

Motivation
Remove the Masthead from the dashboard, as it rated poorly in usability tests due to the dark background.
What
Remove Masthead from the dashboard.
Why
Usability results.
How
Delete the code.
Verification Steps

Navigate to the dashboard
The masthead should no longer appear

Checklist:

[X] Code has been tested locally by PR requester
[ ] Changes have been successfully verified by another team member

Progress

[x] Finished task

Additional Notes

@tiffanynolan This PR removes the masthead from the dashboard - I've added a screenshot of the new dashboard in the description above.


Research Shared Icons Between GUI Toolkits

What's shared between GTK, Cocoa, Android, Flutter, and Winapi for headerbar icons?  Make a separate enum of these icons from the main Icons enum in sprengui, called HeaderIcons.

I just realized I already started doing this (work already done for GTK at https://github.com/AldaronLau/gtk-experiment)


Index List field error

 File "/root/ourweedmap/weedmap_api/models/shop.py", line 21, in Shop
    shopType_id: Indexed(List[PydanticObjectId])
  File "/root/.local/share/virtualenvs/weedmap_api--vRPb33I/lib/python3.8/site-packages/beanie/odm/fields.py", line 38, in Indexed
    NewType.__name__ = f"Indexed {typ.__name__}"
  File "/usr/lib/python3.8/typing.py", line 760, in __getattr__
    raise AttributeError(attr)
AttributeError: __name__

Why i get this?
With Optional i have same problem
  File "/root/ourweedmap/weedmap_api/models/shop.py", line 47, in ProductCategory
    parent_id: Indexed(Optional[PydanticObjectId]) = None
  File "/root/.local/share/virtualenvs/weedmap_api--vRPb33I/lib/python3.8/site-packages/beanie/odm/fields.py", line 32, in Indexed
    class NewType(typ):
  File "/usr/lib/python3.8/typing.py", line 317, in __new__
    raise TypeError(f"Cannot subclass {cls!r}")
TypeError: Cannot subclass <class 'typing._SpecialForm'>

Hey. Could you pls share the code, which raises this error?


Open the process page of a specific photo

Use https://covid-trace-helper.stimim.tw/process/<hash> to load image <hash> by default.

fixed by 69861f6ed6a0594c89375a6b02666a428d9eaa21


Query on CoE core components

Hello ,
Referring :https://docs.microsoft.com/en-us/power-platform/guidance/coe/core-components
Flow :
Admin | Capacity Alerts ---- Scheduled | Daily
This flow checks actual capacity consumption and compares it with approved capacity, that an admin sets. The flow will send an alert to the admin for environments that exceed the approved capacity, or are at 80% of approved capacity.
Does this flow takes care of all types environments .
I am talking about Dataverse Database ,file and log capacity .Will we be able to set storage capacity per environment .

We have moved to a new dedicated repository for the CoE Starter Kit, and issues here will no longer receive attention. Please raise your issues here from now on:
https://github.com/microsoft/coe-starter-kit/issues
For this issue, I'm transferring it to our new repo but you will have to go to https://github.com/microsoft/coe-starter-kit/issues to see updates.


Refresh token lifetime with auth code using ConfidentialClientApplication

Library

[ ]<EMAIL_ADDRESS>or<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[x]<EMAIL_ADDRESS>
Description
I'm using @azure/msal-node, have the below flow and I'm not sure whether the refresh token expiration is limited or until-revoked?
Here is the breakdown of steps I do (summarized):
const config = {
  auth: {
    clientId: process.env.MICROSOFT_TEAMS_APP_ID,
    authority: 'https://login.microsoftonline.com/common',
    clientSecret: process.env.MICROSOFT_TEAMS_APP_SECRET
  },
  system: {
    loggerOptions: {
      loggerCallback(loglevel, message, containsPii) {
        console.log(message);
      },
      piiLoggingEnabled: false,
      logLevel: msal.LogLevel.Verbose,
    }
  }
};
const msalClient = new msal.ConfidentialClientApplication(config);
this.msalClient.getAuthCodeUrl(authCodeUrlParameters).then((response) => {
  res.redirect(response);
}).catch((error) => console.log(JSON.stringify(error)));

// After redirect back I do:
const result = await this.msalClient.acquireTokenByCode({
   code: req.query.code,
   scopes: ['user.read', 'offline_access'],
   redirectUri: redirectUri
});

// Then I can do, but I'm really interested what would be the expiration for the underlying refresh token?
const tokenRequest = {
    scopes: ['user.read', 'offline_access'],
    redirectUri: redirectUri,
    account: result.account
};

this.msalClient.acquireTokenSilent(tokenRequest).then((response) => {
  console.log("\nResponse: \n:", response);
  res.sendStatus(200);
}).catch((error) => {
  console.log(error);
  res.status(500).send(error);
});

What confuses me is that I'm using ConfidentialClientApplication class, but as I understand from the docs, this lies into "Authorization Code Grant with PKCE" category. Is client secret used from my configs? Is this public or confidential client? What is the expiration of refresh token? If it's not until-revoked, what flow I can use in Node.JS to achieve that?

@Toktik This is confidential client authorization code flow. The client secret you set in your config is used. If you remove the client secret, the flow will not work. The lifetime of the tokens is configurable, and I believe by default confidential client refresh tokens are valid until revoked.
When you say "but as I understand from the docs, this lies into "Authorization Code Grant with PKCE" category", can you point to the docs that are confusing you?

@sangonzal Thanks for your help!
I can't point to specific part of the documentation, but that was a little bit confusing. I think mentioning that Confidential Client is using the client secret and a word about refresh tokens will make things more clear.


Tilemap not spawned until window is resized

Bevy Tilemap version
0.4
Operating system & version
Windows 10
What you did
Created a tilemap:
let mut tilemap = BevyTileMap::builder()
        .texture_atlas(atlas)
        .dimensions(24, 12)
        .chunk_dimensions(64, 64, 1)
        .auto_chunk()
        .texture_dimensions(16, 16)
        .auto_spawn(200, 200)
        .add_layer(
            TilemapLayer {
                kind: LayerKind::Dense,
            },
            0,
        )
        .finish()
        .unwrap();

Then added tiles using a loop (used println! to ensure loop was run). A iter of tiles is generated from these:
Tile {
    point: (x as u32, y as u32),
    sprite_index,
    ..Default::default()
}

The collected tiles are added to the tilemap:
 tilemap
        .insert_tiles(tiles)
        .expect("Unable to generate tilemap from tilemap data");

and then a TilemapBundle is created:
TilemapBundle {
    tilemap,
    visible: Visible {
        is_visible: true,
        is_transparent: true,
    },
    transform: Default::default(),
    global_transform: Default::default(),
}

What you expected to happen
Entire tilemap should be rendered.
What actually happened
The tilemap is built and component bundles spawned (verified by println!), but nothing is spawned until the window is resized.
Apr 14 22:41:39.174  INFO bevy_tilemap::system: Chunk (0, 0) spawned

Additional information
This is intermittent, maybe 25% of runs?
Here is an extracted repo - https://github.com/will-hart/tiles. Run the example with cargo run --example editor.

Ok, related to likely to the system order.

I get a similar issue if I manually spawn chunks. The manually spawned chunks appear as expected, then:

when moving the camera, nothing changes
when resizing the window chunks are despawned and fewer a subset of chunks are spawned.

At this point in the code there are none of my custom systems running, its only default bevy plugins and the bevy_tilemap defaults.

I just noticed the same thing happens for me in cargo run --example square_tile on this repo.

Also getting the same thing when running cargo run --example square_tile

Hmm, I know before Bevy 0.5 this wasn't an issue, I need to look into it more. It must be related to ordering. Thats the only thing that I can think of. I had fixed it, or so I thought before I released it. I guess I just got lucky with the order being right, or it behaves differently on Ubuntu.

Here to report that I have this bug as well (Manjaro, 64bits, WGPU renderer). Though no one mentions it, on my system I have a warning log "Can not get chunk at (X, Y), possible bug report me" when the tilemap show up first try. (warning issued from src/system.rs:85).
When the tilemap does not show up, not only does resizing the window show the tiles, but it also displays the bunch of warning.
For what it's worth, I tried fiddling around with the system order, but to no success.
Any other pointer to fix this ?

I'm having somewhat of the opposite issue from everyone else where on resize of the window the chunks all move to zero zero which is bizarre.

@AlisCode Yeah, the there being a bug report me was a mistake to add in. It is supposed to do that check, but there was another one prior to it that would've prevented for even getting to the next point. Some later changes came in and removed that first bit altogether, which left that error in. I'll remove that.
@StarArawn Yeah, I realllyyy need to sit down on this. That is a totally new issue that I never seen before. So weird!

I'm also having this issue. I made a gist describing a basic setup that reproduces the problem. This problem still occurs even if the systems are re-ordered.
It seems like I can work around this issue if I spawn the camera entity immediately before spawning the TilemapBundle, in the same function (as it is in the bevy_tilemap examples). This is pretty inconvenient as I'd like to decouple the camera entity and the tilemap system.

Thanks that'll be helpful.

I think I've found the issue, or at least a part of it ! It's somewhat related to system ordering indeed ;)
The problem is in the chunk_auto_radius system. It's listening to window resize events, and will try to auto spawn chunks whenever a resize event has occured. This particularity is used to make the first spawn of the chunks of the tilemap happen on startup.
But if the entity containing the Tilemap hasn't been created yet, the spawn never occurs and only a "window resizing" event can trigger the spawn. This also explains why the problem is intermittent.
To fix this, I suggest setting a flag "requires_auto_spawn" on the tilemap, enable that flag when creating the tilemap, and enable it on every tilemap when a resizing event happens. I can have a go at implementing this, and I will, but if you have a better implementation idea let me know :)

We could also implement a separate system that queries on ‘Added’ and then reserve the resize system for only resize events.

I like the 2nd suggestion by @B-Reif

I also thought about that, but I'm not sure that this will solve the problem though. In the case of auto_spawning we still need the camera transform, and if no camera is available at the time the Tilemap is created, the problem is basically inverted but will remain, right ? It seems to me that we need some sort of flag to indicate "we must spawn chunks for this tilemap" ?

Is anyone solving this problem, if not, I can try to modify

I hacked around this by creating a "balloon" entity (really a flag component) that had to be created every time I create a Tilemap. A system detects if any exist and "pops" them (despawning them), and sends a fake resize to every window (resizing to the same width and height).
I did it this way due to the system ordering and how events are scheduled with regards to app states. It's suboptimal but without library change, I couldn't see how to get around it.


Fix capabilities spec for renamed service instance variable

This fixes the failing capabilities_spec.rb. Selenium renamed the @service to @service_manager.

@jkotests are we getting deprecation warnings when running watir now? I was supposed to evaluate it and just haven't had bandwidth for OSS coding the past few months.

@titusfortner - I can take a look next week. I'm not quite up-to-date at the moment.


SVG showing up broken in media manager, but works

How to reproduce
In the media manager, github.svg appears broke, but it does work.

Describe the bug
SVG showing up broken in media manager, but works
Expected behavior
No response
Operating System
Chrome 112 (macOS Catalina)
Clutch Version
No response
Other
No response

@andressaroberts I can't reproduce this issue.. can you please take a look, and give more details or specific svg that made a problem

I couldn't reproduce it either.
@MatthewHager / @daprieu Can you add us to the project or provide a copy so we can debug?


docs(tutorial): add planning simulation reference video

Description

Add planning simulation reference video link.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

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

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

[x] The PR follows the pull request guidelines.

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

[x] There are no open discussions or they are tracked via tickets.

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

It would be better to manage the videos on AWF's google drive or youtube.


Update process

I'm also realizing this document links to various other documents that are in rough shape.
panels.md needs to be updated to include panel chairs, editors.md might need some work too.


SNOW-773724: Collaboration with the Ibis Team

Hello Snowpark team 👋🏻!
I'm Phillip Cloud, the lead developer of the Ibis Project.
Snowpark has been on our radar as a library to watch for potential collaborations, and I would like to kick that off.
It seems like we may have gotten off on the wrong foot somewhere, but I would like to extend an olive branch and invite y'all to comment on this ibis issue coming from a user's request to add a Snowpark backend to ibis.
To summarize: we have some concerns but would love to put in the effort to have a tight collaboration and build in support for the snowpark bacbkend.
We have a few (hopefully reasonable!) requests from y'all listed in the issue.
Let's get this rocket ship off the ground 🚀!

@cpcloud Thanks for reaching out. I've rendered the message to the team. Will update you.


Display the selected transformation pattern at the beginning of the transformation web page.

As a user, I want to see the selected transformation pattern on demand at the beginning of the transformation web page.  When I scroll down, the visualization is still visible at the top of the page.
Visualization can be done as sparqlviz does [1, 2].
[1] file:///home/ondrej/Downloads/ISWC2020_paper_569-1.pdf
[2] https://github.com/pebbie/sparqlgpviz

try this
https://gofile.io/d/yMHabA
select the desired compiler in the installer


Allow LogReader to take an InputStream rather than a FileChannel

We are in a situation where materialising a file would be awkward and it seems like it might not be necessary :-)

This project is in maintenance mode, so a big change like this is not something we can support.


NEXT Dependency Bump - December 4, 2024

Linked Issue
Closes #3021
Description
See the full description in the post here: https://github.com/skeletonlabs/skeleton/issues/3021
Checklist
Please read and apply all contribution requirements.

[x] Your branch should be prefixed with: docs/, feature/, chore/, bugfix/
[x] Skeleton v3 contributions must target the next branch (NEVER dev or master)
[x] Documentation should be updated to describe all relevant changes
[x] Run pnpm check in the root of the monorepo
[x] Run pnpm format in the root of the monorepo
[x] Run pnpm lint in the root of the monorepo
[x] Run pnpm test in the root of the monorepo
[ ] If you modify /package projects, please supply a Changeset

Changsets
View our documentation to learn more about Changesets. To create a Changeset:

Navigate to the root of the monorepo in your terminal
Run pnpm changeset and follow the prompts
Commit and push the changeset before flagging your PR review for review.

Dropping this in favor of: https://github.com/skeletonlabs/skeleton/pull/3023


Add CHANGELOG bot

Adds the standard ponylang changelog management bot as well as the required
CHANGELOG.md. Additionally, it adds a check for pull requests that they
haven't made an invalid change to the CHANGELOG.

you might need to turn on running github actions or set them to be able to run from forked repos.


pull request for e2e test at 12/25/2016 19:26:09

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add Politeknik Kampar

@ributwiboworahayu First stage of verification passed, official domain is poltek-kampar.ac.id as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@ributwiboworahayu Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Boolean arithmetic

TypeScript Version:  3.0.3

Search Terms: bool arithmetic
Code
function cmp(a : string, b : string) : number
{
	return (a > b) - (a < b);
}

Expected behavior:
I would have expected that Typescript compiles this source without any complaints, as Javascript treats boolean values true and false as the numbers 1 and 0 in arithmetic expressions, but it seems that Typescript doesn't.
In fact the Javascript version of this function does work as expected:
function cmp(a, b)
{
	return (a > b) - (a < b);
}

cmp("foo", "bar") returns 1 and cmp("bar", "foo") returns -1.
Actual behavior:
Typescript complains with the following error messages:
src/boolarithmetic.ts:3:9 - error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.

3  return (a > b) - (a < b);
          ~~~~~~~

src/boolarithmetic.ts:3:19 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.

3  return (a > b) - (a < b);
                    ~~~~~~~

See https://stackoverflow.com/questions/29918324/is-typescript-really-a-superset-of-javascript
The whole purpose of TypeScript is to complain about code that looks fishy, such as relying on implicit conversions. It's easy to change this to an explicit conversion using return Number(a > b) - Number(a < b);.

See also https://stackoverflow.com/questions/41750390/what-does-all-legal-javascript-is-legal-typescript-mean


invalid character 'S' in string escape code

🚀 > change my system to light mode
[error] invalid character 'S' in string escape code

Is this happening only in this prompt? Or in any prompt? In this case, could you please check that your openAi key is correct?

I think it was related to the key. its no longer having the issue. Sorry to bother

No worries 👍


Marker icon from url

I try a lot but not success to find a way to show icon of marker from url.

var marker = new Marker();
marker.title =‘title’;
var icon = ‘http://…png’;
marker.icon=icon;
marker.position = mapsModule.Position.positionFromLatLng(res.lat,res.lng);
map.addMarker(marker);

This does not work,
Any help?

Ya somos dos, ayuda por favor.

The solution is very simple, you just have to perform the following:
import * as http from "http";
.....
http.getImage("https://maps.google.com/mapfiles/kml/shapes/parking_lot_maps.png")
            .then((result) => {
                let icon = new Image();
                icon.imageSource = result;
                marker.icon = icon;
            }, (error) => {

            });

Is there any other way otehr than using http module?


PlayCanvas application can not be created in browserless environment.

Description
In PR https://github.com/playcanvas/engine/pull/3381 browserless feature was merged, but it is impossible to create pc.Application without canvas element
Node environment
Steps to Reproduce

Build PlayCanvas engine from master
Add PlayCanvas library to your node project
Try to create a PlayCanvas application
You will be unable to create an application without the canvas element, and it is impossible to create Element in Node because document does not exist.

Hi @OlegGedzjuns,
Yes correct. Internally we have created a HeadlessCanvas stub object in order for engine to render in browserless environment. It was also necessary to patch the ImgParser, since the Img element is only available in browser.
We will likely put this code in a browserless example repo and release that at some point.
Thanks!

I'd recommend putting it in this repo.

It would be great to be able to run engine on server without renderer, with common use case: multiplayer context.

Would using autoRender = false handle that or is there still stuff going in the background?

I see that browserless feature was released, any updates on my issue?

During application destroy exception is thrown
document is not defined at destroy
https://github.com/playcanvas/engine/blob/4e8adc8b7cc85c6763d7d18eb9b37f3c6e4a12c6/src/framework/application.js#L1975

this has been now fixed, pending engine release

Is there an example code to run a browserless environment?

Is there an example code to run a browserless environment?

You can find example here: https://github.com/meta-space-org/playnetwork