generate_with_langchain_docs is broken

[x] I have checked the documentation and related resources and couldn't resolve my bug.
Describe the bug
Running generate_with_langchain_docs gets stuck, showing:
Filename and doc_id are the same for all nodes.
Generating:   0%|                                                                                | 0/1 [00:00<?, ?it/s]

Ragas version:  0.1.4
Python version: 3.9
Code to Reproduce
import os
import re
from typing import List, Dict, Any
import pandas as pd
from datasets import load_dataset
from langchain.docstore.document import Document
from ragas.testset.generator import TestsetGenerator
from ragas.testset.evolutions import simple, reasoning, multi_context
from langchain_openai import ChatOpenAI, OpenAIEmbeddings

class SyntheticDatasetGenerator:
    def __init__(self, min_content_length: int = 1000) -> None:
        self.min_content_length = min_content_length

    def run(self, data: pd.DataFrame) -> pd.DataFrame:
        filtered_emails = self._filter_and_process_emails(data)

        documents = [
            Document(
                page_content=email["body"],
                metadata={
                    "date": email["date"],
                    "from": email["from"],
                },
            )
            for email in filtered_emails
        ]

        return self._generate_synthetic_dataset(documents)

    def _extract_email_details(self, email_text: str) -> Dict[str, str]:
        # Regular expression patterns for each field
        patterns = {
            "date": r"Date: (.+)",
            "from": r"From: (.+)",
            "to": r"To: (.+)",
        }

        result = {}
        for field, pattern in patterns.items():
            match = re.search(pattern, email_text)
            if match:
                result[field] = match.group(1).strip()

        # Everything after "Subject:" is considered as the body
        body_pattern = r"Subject:.*(?:\n|\r\n?)(.*(?:\n|\r\n?).*)"
        body_match = re.search(body_pattern, email_text, re.DOTALL)
        if body_match:
            result["body"] = body_match.group(1).strip()
        else:
            print(email_text)

        return result

    def _filter_and_process_emails(self, data: pd.DataFrame) -> List[Dict[str, str]]:
        filtered_emails = []
        for _, email in data.iterrows():
            if len(email.text) > self.min_content_length:
                details = self._extract_email_details(email.text)
                filtered_emails.append(details)

        return filtered_emails

    def _generate_synthetic_dataset(self, documents: List[Document]) -> pd.DataFrame:
        generator_llm = ChatOpenAI(model_name="gpt-3.5-turbo")
        critic_llm = ChatOpenAI(model_name="gpt-3.5-turbo")
        embeddings = OpenAIEmbeddings(model="text-embedding-3-small")
        generator = TestsetGenerator.from_langchain(
            generator_llm, critic_llm, embeddings, chunk_size=4096
        )

        testset = generator.generate_with_langchain_docs(
            documents,
            test_size=1,
            distributions={simple: 0.5, reasoning: 0.1, multi_context: 0.4},
            raise_exceptions=True,
        )

        return testset.to_pandas()

if __name__ == "__main__":
    from dotenv import load_dotenv

    load_dotenv()

    os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")

    data = (
        load_dataset("snoop2head/enron_aeslc_emails")["train"]
        .select(range(100))
        .to_pandas()
    )

    df = SyntheticDatasetGenerator().run(data)

Error trace
Filename and doc_id are the same for all nodes.
Generating:   0%|                                                                                | 0/1 [00:00<?, ?it/s]

Expected behavior
A synthetic dataset should be created.
Additional context
I'm trying to generate a synthetic dataset of questions based on enron emails.

Same issue
File "/Users/jshah/anaconda3/envs/hf/lib/python3.10/site-packages/ragas/llms/base.py", line 177, in agenerate_text
result = await self.langchain_llm.agenerate_prompt(
AttributeError: 'LangchainLLMWrapper' object has no attribute 'agenerate_prompt'. Did you mean: 'agenerate_text'?

Hey @jayshah5696 can you please provide the full error trace?

Hey @rolandgvc do you face this issue often? else can you kill the run and try again

@floatcyc as mentioned refer to #762 and don't wrap azure model with langchainllmwrapper

I have the same issue with ".py" files...
Ragas version: 0.1.4
Python version: 3.12
Test.py:
from langchain_community.document_loaders import TextLoader
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
from ragas.testset.generator import TestsetGenerator
from ragas.testset.evolutions import simple, reasoning, multi_context

loader = TextLoader("./NYC/NYC.txt", encoding='utf-8')
embedding = OpenAIEmbeddings()

llm = ChatOpenAI(temperature=0, model="gpt-4-0613")

generator = TestsetGenerator.from_langchain(
    generator_llm=llm,
    critic_llm=llm,
    embeddings=embedding
)

distributions = {
    simple: 0.5,
    multi_context: 0.4,
    reasoning: 0.1
}

documents = loader.load()
for document in documents:
    document.metadata['filename'] = document.metadata['source']

testset = generator.generate_with_langchain_docs(documents, 10, distributions)

What is strange to me is that if I run the same code above in a ".ipynb" file it works as a charm

I'm also having the same issue with Azure OpenAI.
I've followed the manual (https://docs.ragas.io/en/latest/howtos/customisations/azure-openai.html#test-set-generation).
Keep getting:
Generating:   0%| `

I'm also having the same issue with Azure OpenAI.
I've followed the manual (https://docs.ragas.io/en/latest/howtos/customisations/azure-openai.html#test-set-generation).

It keeps on this forever ...

Same issue here.
Can also confirm that same code works with .ipynb
`Filename and doc_id are the same for all nodes.
Generating:  80%|████████████████████████████████████████████████████████▊              | 8/10 [00:08<00:01,  1.39it/s] `
Get stuck at 80% always.
Name: ragas
Version: 0.1.5
Name: langchain
Version: 0.1.13

I'm also having the same issue with Azure OpenAI.
I've followed the manual (https://docs.ragas.io/en/latest/howtos/customisations/azure-openai.html#test-set-generation).

It keeps on this forever ...

I got the same issue. Any suggestions? @shahules786

I tried it with packing the script in a fastapi app and run it with uvicorn.
For the standard server it also get stuck, then I tried to increase the workers.
Running my app with
uvicorn app:app --workers 4
works like charm. Maybe this is also helpful for you guys because .ipynb in not usefull if you want to integrate it somehow.

I tried it with packing the script in a fastapi app and run it with uvicorn. For the standard server it also get stuck, then I tried to increase the workers. Running my app with uvicorn app:app --workers 4
works like charm. Maybe this is also helpful for you guys because .ipynb in not usefull if you want to integrate it somehow.

I also came across the same problem no matter on .ipynb and .py.

Same issue...
Always stuck in some point.

same problem, jsut following the instructions from the quickstart and it got stuck generating at 0%, also ran up a big openai bill which isnt much fun.

Hey @JuliGTV Sorry for the trouble man. We are aware of this issue but we have in fact trained a smaller model for you guys to use for free. Please be patient till we can integrate it with ragas.

no worries.
Fine tuning a small model for this usecase is great idea.
Although I would still like to understand better what went wrong, and if I could have done things differently
I was just trying to follow the quickstart guide, and I kept getting openai ratelimit errors, mostly during the embedding stage.
I tried messing around with the runtime config but nothing seemed to solve it. When I looked at langsmith at least half of all the requests being made to openai were failing.
Then I tried with a smaller document and the following code:
from dotenv import load_dotenv

load_dotenv()

from langchain_community.document_loaders import PyPDFLoader
from langchain.text_splitter import RecursiveCharacterTextSplitter

loader = PyPDFLoader("mini_uth.pdf")
docs = loader.load()

text_splitter = RecursiveCharacterTextSplitter(
    chunk_size = 250,
    chunk_overlap = 40,
    length_function = len
)

documents = text_splitter.split_documents(docs)

from ragas.testset.generator import TestsetGenerator
from ragas.testset.evolutions import simple, reasoning, multi_context
from langchain_openai import ChatOpenAI, OpenAIEmbeddings

# generator with openai models
generator_llm = ChatOpenAI(model="gpt-3.5-turbo-16k")
critic_llm = ChatOpenAI(model="gpt-4-1106-preview")
embeddings = OpenAIEmbeddings()

generator = TestsetGenerator.from_langchain(
    generator_llm,
    critic_llm,
    embeddings
)

# generate testset
testset = generator.generate_with_langchain_docs(documents, test_size=10, distributions={simple: 0.5, reasoning: 0.25, multi_context: 0.25})

this time it completed the embedding and then got stuck at 0% at the generation stage.
Additionally at somepoint it hit my opoenai spending limit, and it seems that the error that this triggers is not recognised by the run config, so it just keeps making failed calls forever (which openai apperently still charge you for!)
After I also tried doing it for just a single chunk of a small document, and it still got stuck at 0% generation

This issue is also discussed here. #662
This issue is replicable across various machines and LLM model types .
As others have mentioned, the error seems to be threading related. Here is a stack trace when the generation is stuck.

KeyboardInterrupt                         Traceback (most recent call last)
/tmp/ipykernel_30263/1853206858.py in <cell line: 1>()
----> 1 testset = generator.generate_with_langchain_docs(docs[:5],
2                                                  test_size=10,
3                                                  distributions={simple: 0.5, reasoning: 0.4, multi_context: 0.1},
4                                                 with_debugging_logs=True)
.../python3.8/site-packages/ragas/testset/generator.py in generate_with_langchain_docs(self, documents, test_size, distributions, with_debugging_logs, is_async, raise_exceptions, run_config)
173         distributions = distributions or {}
174         # chunk documents and add to docstore
--> 175         self.docstore.add_documents(
176             [Document.from_langchain_document(doc) for doc in documents]
177         )
.../python3.8/site-packages/ragas/testset/docstore.py in add_documents(self, docs, show_progress)
213             for d in self.splitter.transform_documents(docs)
214         ]
--> 215         self.add_nodes(nodes, show_progress=show_progress)
216
217     def add_nodes(self, nodes: t.Sequence[Node], show_progress=True):
.../python3.8/site-packages/ragas/testset/docstore.py in add_nodes(self, nodes, show_progress)
250                 result_idx += 1
251
--> 252         results = executor.results()
253         if not results:
254             raise ExceptionInRunner()
.../python3.8/site-packages/ragas/executor.py in results(self)
130         executor_job.start()
131         try:
--> 132             executor_job.join()
133         finally:
134             ...
.../python3.8/threading.py in join(self, timeout)
1009
1010         if timeout is None:
-> 1011             self._wait_for_tstate_lock()
1012         else:
1013             # the behavior of a negative timeout isn't documented, but
.../python3.8/threading.py in _wait_for_tstate_lock(self, block, timeout)
1025         if lock is None:  # already determined that the C code is done
1026             assert self._is_stopped
-> 1027         elif lock.acquire(block, timeout):
1028             lock.release()
1029             self._stop()
KeyboardInterrupt:

Adding parameter is_async=False worked for me on 0.1.7.
generator.generate_with_langchain_docs(documents, test_size=10, distributions={simple: 0.5, reasoning: 0.25, multi_context: 0.25},is_async=False)

any help on this probably?for me even after adding is_async=False , it is stuck at Generating:   0%|.Would be helpful to get some solution to this.Thanks in advance.

I managed to make this work using OpenAI's gpt-3.5-turbo-16k. However, I'm trying to create the dataset using Llama3 running on LMStudio, and I'm getting the same stuck errror. Any advances on this?

Also having the same problem. The code is getting stuck at generate_with_langchain_docs
Filename and doc_id are the same for all nodes.
Generating:   0%|                                                      | 0/10 [03:41<?, ?it/s]

Python 3.11.1
Ragas 0.1.9
Langchain 0.2.5
def create_ragas_rag_benchmarking_dataset(
    llm_generator_model: VertexAI,
    llm_critic_model: VertexAI,
    embeddings_model: VertexAIEmbeddings,
    docs: List[Document],
):

    generator = TestsetGenerator.from_langchain(
        generator_llm=llm_generator_model,
        critic_llm=llm_critic_model,
        embeddings=embeddings_model
    )

    # generate testset
    testset = generator.generate_with_langchain_docs(
        documents=docs,
        test_size=10,
        with_debugging_logs=True,
        is_async=False,
        distributions={
            simple: 0.5,
            reasoning: 0.25,
            multi_context: 0.25
        }
    )

    return testset

I'm also having the same issue with Azure OpenAI.
I've followed the manual (https://docs.ragas.io/en/latest/howtos/customisations/azure-openai.html#test-set-generation).

It keeps on this forever ...

Any one fixed this problem?


ESP8266 disabling UART, Boot from SD, Jtag pins through rboot agains copy protection

Hi,
I´m trying to disable ESP8266 pins, as I´m only need SCL/SDA, in order to avoid flash code copy.  Is rboot able to do this ?  or it is not possible.  *Note:  I´ll use ESP8285, internal flash, to avoid external access.   Thank you!

No, there is no way to protect the code on an esp8266 as it's stored on an external flash. I'm not familiar with the esp8285, but if it has built in flash then it will almost certainly have a config option to prevent reading out, with no need to try and disable pins.

Thank you. Right, is hasn´t.  May be using 6v at the pins :) to blow the pins.  I think the way would be by software.

The esp has to read from the flash, so if you kill the pins on the flash you'll probably not be able to boot the device, unless it has separate connections (even then you might damage them).

Not the Esp8285 flash that is internal but the external pins, Ex. Gpio1(Tx) and Gpio12(Jtag TDI)

As long as they don't just connect to the same place inside the package - the flash probably only has one set of data pins, so same ones may be connected to the esp as well as the external pins. Anyway, you can always test that out.
But there is nothing you can do with rBoot to disable this, and if espressif made any attempt to allow the flash to be protected, then I doubt there is anything you can do with software at all.

Yes, that is right.  Ok, thank you.

Just remembered..   Keeloc can do this.   https://keeloc.com
"Finally we wish to talk how to seal and protect via pin destruction of the USB serial pin port. This is done by writing firmware that every time it first boots ups the ESP8266 will turn high in voltage value and low impedance (the serial pins) at the same time shorting out these pins by block circuit to ground"

Sounds a lot like snake oil to me. Their protection is light on detail but seems to be based on messing with the serial port pins when the bootloader is run - so maybe that does do what you wanted, but doesn't help - if you want to steal the code, just interrupt the boot before the bootloader runs. As for their encrypted rom, this is decrypted by the bootloader, which itself will be small and simple, so should be pretty easy to decompile and crack. Nothing your average Chinese cloner couldn't manage in a matter of minutes I'm sure.

Really surprising, any way Espressif should make things easier.  Thank you very much.


Fuzz test building transactions with inscribed UTXOs in wallet

todo:

[ ] Add a test that the invariant checking that inscriptions are not used as outpoints can be hit
is inscription check corret

I don't think we need this anymore


Pre-check before enabling policy

Just because I've been caught out by this, it is good practice to check the "Users flagged for risk" section in AzureAD before enabling the "End user protection" policy.  As soon as the policy enabled any users flagged will loose access to cloud services until they have been cleared by an admin.

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

ID: 53ea4e70-2931-8691-e9cc-13c72b514d9c
Version Independent ID: c1aa4a8f-16b2-79ac-edb1-8a87f51a3f7b
Content: Conditional Access baseline protection policies - Azure Active Directory
Content Source: articles/active-directory/conditional-access/concept-baseline-protection.md
Service: active-directory
Sub-service: conditional-access
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@RobC-CTL Thanks for your feedback! We will investigate and update as appropriate.

Hey @RobC-CTL thanks for letting us know about this. We're currently looking into this and will be sure to add a note to the docs accordingly.
Thanks! If there's no more issues within the scope of this git issue, I will go ahead and close this out end of day monday.

Added note to doc


Texture coordinates incorrect for rotated ellipse with rotated texture

The texture coordinate is wrong for one of the outer vertices when a rotation and a stRotation are used.
var viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;

scene.primitives.add(new Cesium.Primitive({
    geometryInstances : [new Cesium.GeometryInstance({
        geometry : new Cesium.EllipseGeometry({
            center : Cesium.Cartesian3.fromDegrees(1.52278, 45.00838),
            semiMajorAxis: 5000,
            semiMinorAxis: 5000,
            rotation : Cesium.Math.toRadians(-168),
            stRotation : Cesium.Math.toRadians(168),
            granularity: Cesium.Math.toRadians(10),
            vertexFormat : Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT
        }),
        attributes: {
            color: Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.RED)
        }
    })],
    appearance : new Cesium.DebugAppearance({
        attributeName: 'st'
    })
}));

scene.camera.setView({
    destination: Cesium.Rectangle.fromDegrees(1.4, 44.9, 1.6, 45.1)
});

Could this be the same root cause (or at least same logic bug) that causes #3172?

Not exactly.  It's probably more related to #2737,  but I think the solution for the rectangle rotation will be way different.

I couldn't reproduce this in 1.26.

Yep, this appears to be fixed.
This is what it looked like in 1.20

And this is what it looks like now:


Merchandise info

There is no proper information regarding merchandise. That can be done if you provide me with the informations. Could you please assign this task to me??

@aslams2020 , I believe i could solve this issue . could you please assign it to me


login added by sakib

The login html has been added inside the views folder of the EJS Template

login ejs file added by sakib.


Fixing runtime info middleware on coreclr

Fixes: https://github.com/aspnet/Diagnostics/issues/108
@victorhurdugaci @davidfowl

I would wait on @victorhurdugaci's change to add IRuntimeEnvironment

I see. Is there a tracking bug on IRuntimeEnvironment. I can link this bug to that and close this PR.

no, keep this PR open and use IRuntimeEnvironment once this https://github.com/aspnet/dnx/pull/1650 is in

@victorhurdugaci Looks like you've got a ship it on the other PR. I'll update this PR once you merge that.


Update pay-by-invoice.md

Redirecting links to Azure portal because accounts portal is being deprecated. @amberbhargava

#sign-off


No ordering of mutate kwargs arguments

As uncovered in https://github.com/dodger487/dplython/issues/5.
In Dplyr, the user is able to add a column in a mutate statement derived from a column that he or she just wrote. I want to make this feature available in dplython. So:
    diamonds_dp = self.diamonds >> mutate(foo=X.x, bar=X.foo.mean())
should be valid. foo should be the first column added, followed by bar.
This is difficult to accomplish though as python throws away the order information of **kwargs. Currently, this example code would sometimes work and sometimes not work depending on the dictionary ordering of **kwargs. There's a PEP out to accomplish this (https://www.python.org/dev/peps/pep-0468/) but it doesn't look like this feature is currently supported.
In a bad case, this will mean the user doesn't know what order to expect columns to be in. In a worse case, this will inconsistently cause errors when a use tries to create a column derived from another one.
Some potential solutions, none of which seem great:

Restrict mutate statements to one additional column per mutate (yuck)
Sort the dictionary in some way, like alphabetical
Examine each added Later to see if it derives from a column that isn't yet present in the DataFrame, add these last.
Something else?

Under the "something else?" brainstorm,
Change the function signature to mutate(*args, **kwargs) and args would be ordered tuples or a single sequence of tuples.
diamonds_dp = self.diamonds >> mutate([('foo', X.x), ('bar', X.foo.mean())])

One of the todos is about allowing string column names, so the first elements of each tuple should not be a problem. But there is still the issue of X.foo being unavailable at function call time but there could be another API change to remedy it.

@has2k1 that looks like a reasonable albeit not ideal solution. I think I prefer not having the argument be a list, but rather each argument is a tuple, e.g.
diamonds = diamonds >> mutate(('foo', X.x), ('bar', X.foo.mean())
There should be no issue with X.foo.mean() being available at call time, as the foo column will have been created by that point.
Another idea is to add in an optional enforce_ordering argument which will tell dplython which order in which to add the columns. For example:
diamonds = diamonds >> mutate(bar=X.foo, foo=X.x, enforce_ordering=["foo", "bar"])
This means you can't add a column named enforce_ordering though...
These don't need to be mutually exclusive either-- we could add all of them. I'm curious what everyone thinks is best. I'm leaning towards just using an "enforce order" argument along with **kwargs.

Another issue is that python disallows repeated keywords, so:
diamonds >> mutate(foo=X.x, foo=X.foo/2)
chokes with a
SyntaxError: keyword argument repeated
This is something that is allowed in dplyr.
The *args solution of passing tuples would avoid that problem.

I've been leaning towards adding a default ordering of alphabetical, along with a an _enforce_order keyword which could be a list of keys in the user's desired order. While looking through pandas documentation, I saw that for the assign call they use alphabetical order:
Notes
Since kwargs is a dictionary, the order of your
arguments may not be preserved. The make things predicatable,
the columns are inserted in alphabetical order, at the end of
your DataFrame. Assigning multiple columns within the same
assign is possible, but you cannot reference other columns
created within the same assign call.

I still think *args is simpler. That is what I did when I explored creating a similar package.
Though this is a different implementation, it shows how mutate could work.
from ggplot import *
from ggplot.data import *
import pandas as pd
import numpy as np
from patsy.eval import EvalEnvironment

class DataFrameOperator(object):
    env = None

    def __init__(self, *args, **kwargs):
        # Prevent duplicate captures of the
        # same environment
        if not self.env:
            self.env = EvalEnvironment.capture(1)

    def __rrshift__(self, other):
        if isinstance(other, pd.DataFrame):
            self.data = other
        elif isinstance(other, DataFrameOperator):
            self.data = other.data
        else:
            raise TypeError('Unknown type')

        return self.run()

    def run(self):
        return self.data

class mutate(DataFrameOperator):
    def __init__(self, *args, **kwargs):
        super(mutate, self).__init__(*args, **kwargs)
        cols = [col for col, expr in args]
        exprs = [expr for col, expr in args]
        self.columns = cols + list(kwargs.keys())
        self.expressions = exprs + list(kwargs.values())

    def run(self):
        env = self.env.with_outer_namespace(self.data)
        for col, expr in zip(self.columns, self.expressions):
            value = env.eval(expr)
            self.data[col] = value
        return self.data

df = diamonds.head(20).copy()
res1 = df >> mutate(carat2='carat*2', carat3='carat.round()')
res2 = df >> mutate(('carat2', 'carat*2'), ('carat3', 'carat.round()'))
res2


Sentry On-Premise with HipChat Server

Sorry, but I can't find any related documentation about getting this to work.
On the marketplace page it says that On-Premise is supported on HipChat Server, but inside our local HipChat Server the Sentry integration isn't shown.
What do I need to do to install the integration?

I think the instructions are out of date (/cc @mitsuhiko), but try this:
pip install https://github.com/getsentry/sentry-hipchat-ac/archive/master.zip
You'd then find it in the project settings.


System.UnauthorizedAccessException: Access to the path 'C:\Documents and Settings' is denied.

Please make it possible to scan the entire disk such as C:\ because right now it gets stuck on accessing protected folders, can you just make it skip those folders?

Same if I selectivelly pick a folder containing protected folders:

This should be fixed when #4 is merged

Seems that 1.0.1 has less rights than 1.0.0 did. With 1.0.0 I was able to scan locations like 'Program Files' and likewise x86 folder. Using 1.0.1 leaves me now unable to scan these locations. Seems that introduced code in the updated version leaves it unable to scan certain locations.
Using elevated permissions changes this to allow it to scan these locations that 1.0.0 used to scan just fine. But, as was the same case with 1.0.0, elevated permissions in version 1.0.1 is still unable to scan protected Windows locations (C:\Users\ABC123\AppData\Local\Application Data), so no overall loss there.
Still weird that there has been a downgrade in permissions and now requires users to elevate before launch in order to scan some common directories (might need to be included in new documentation if it's not already - it currently isn't as far as I see).

I still get this today, even if I elevate it to admin:
Searching for files (this may take a while) ...
System.UnauthorizedAccessException: Access to the path 'C:\Documents and Settings' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.AddSearchableDirsToStack(SearchData localSearchData)
   at System.IO.FileSystemEnumerableIterator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
   at JarInfectionScanner.Form1.<>c__DisplayClass3_0.<buttonScan_Click>b__0()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at JarInfectionScanner.Form1.<buttonScan_Click>d__3.MoveNext()

The issue is resolved if you make the program's searching directory more specific.
For example instead of C:\Users<your username>\Appdata use C:\Users<your username>\AppData\Roaming and then proceed to try it with local by changing 'Roaming' to local.

Please make it possible to scan the entire disk such as C:\ because right now it gets stuck on accessing protected folders, can you just make it skip those folders?

This is fixed in my fork aswell, which has a download: https://www.nirsoft.net/utils/advanced_run.html


does it support creating animated webp from png, jpeg images?

It may be useful to convert the images to webp using sharp, then using this module on the associated webp files.


WantCaptureKeyboard and WantTextInput problems from ImGuiIO

When a code editor widget is focused and has a cursor inside of it - querying ImGui::GetIO().WantCaptureKeyboard or ImGui::GetIO().WantTextInput (or maybe both) should return true instead of false. Also not sure about WantCaptureMouse and the rest such flags.
Great project btw! Thanks for making it public!

+1, this is something my UI code relies on a lot.


fixes role profile variable issue

Should keep using self::$roleProfile instead of creating another static property to do the same thing.
So, I have just updated all the related class property in the trait to use the static property.

That's much better.
Do I need to make now version v1.0.6 or v1.1.0?

it just up to you :)

Hey do you know what's different between
static protected $roleProfile = 'user';
protected static $roleProfile = 'user';
Second one was generating error so I made first one and it was working fine.

it should have no difference as the official said Here
what kind of error did you hit?

Never mind. It was error of my php cache might be now it's fixed 👍


06_Lab_11_01: Implement Azure Private Link for Azure Virtual Desktop

Lab/Demo: 06
Exercise 1
Task 6
Task 7
Description of issue
Task 6, Steps 42 and 43 (and the note that exists above them) do not need to exist as this is the last lab in the sequence and all resources will be removed upon ending the lab instances.

Task 7 in this lab does not need to exist for the same reason.

There are no other labs that use the same AVD environment. This is the last of the 6 labs in the launch sequence. If someone launches the optional lab 7, they receive a totally different environment.

updated
rgds
Marcin


gnunet-gtk: 0.14.0 -> 0.15.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/gnunet-gtk/versions.
meta.description for gnunet-gtk is: "GNUnet GTK User Interface"
meta.homepage for gnunet-gtk is: "https://git.gnunet.org/gnunet-gtk.git"
meta.changelog for gnunet-gtk is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/.gnunet-fs-gtk-wrapped passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/gnunet-statistics-gtk passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/gnunet-peerinfo-gtk passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/.gnunet-peerinfo-gtk-wrapped passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/.gnunet-setup-wrapped passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/.gnunet-statistics-gtk-wrapped passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/gnunet-fs-gtk passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/gnunet-setup passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/.gnunet-namestore-gtk-wrapped passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/gnunet-conversation-gtk passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/.gnunet-conversation-gtk-wrapped passed the binary check.
/nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin/gnunet-namestore-gtk passed the binary check.
0 of 12 passed binary check by having a zero exit code.
12 of 12 passed binary check by having the new version present in output.
found 0.15.0 with grep in /nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0
found 0.15.0 in filename of file in /nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
1 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
docbookrx
gnunet-gtk

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gnunet-gtk https://github.com/r-ryantm/nixpkgs/archive/ab73128d83702fd093973d26fe78dfcf66f60739.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0
ls -la /nix/store/srzlg0a94gw4bbqk2y1647v31n4dbsai-gnunet-gtk-0.15.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

gnunet-gtk

Maintainer pings
cc @pstn @vrthra for testing.

@ofborg eval


Add support for Crossplane

https://crossplane.io/ crossplane uses CRD to provision the resources using Kubernetes and manage resources in Kubernetes. See this blog on how it compares with Terraform.
See this PR for a prototype.
Note for community
Please 👍 if you'd like to upvote this or receive updates.

did you guys see here any updates in future ? or can start with a provider for crossplane ? ;)

Hi @haarchri! Since https://github.com/infracost/infracost/pull/938#issuecomment-920098485, we have completed prototyping usage-based resources and the new resource schema, both are used in our updated contributing guide. It might help if you add a terraform resource to become familiar with it.
Out team is focused on going deeper into use-cases just now, and Pulumi/CloudFormation/ARM Templates have a lot more upvotes but you're welcome to prototype other things :)

Hi! Any updates on this issue? We're just starting to experiment with infracost and since we're using alot of crossplane in our infra, this is a really needed feature!

Any updates? Very useful feature

With infrastructure that spans multiple cloud having the ability to use crossplane is a huge win. Would love to see this work with crossplane.

+1, Would be very, very useful as I voyage into a post-Terraform world.


Move suppressions to core

All the suppression logic should be handled by the core. Rule shouldn't know about that. This PR moves that logic to core and also moves the functions that are no longer used in api to core to keep api as clean as possible.

@detekt/maintainers could I get a review here?


Roll Engine from 9483e756e5bd to 8c14250fd90a (1 revision)

https://github.com/flutter/engine/compare/9483e756e5bd...8c14250fd90a
2021-04-16<EMAIL_ADDRESS>[fuchsia] Use scenic allocator service (flutter/engine#25385)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md

Commit queue failed; closing this roll.


Export > filename > ${table} produces strange results with @set command

When I export a results file and put ${table} param in the filename, it produces weird/unwanted results if I have @set t = tablename in the query/script.
Example:
@set t = orders
select * from $"{t}"
Get results. Highlight results and click Export to:
MyFilename${table}_
Filename looks like this:
MyFileName_set_t_orders
Recommend looking at this at the same time as issue #7370 because they're undoubtedly in the same code.

You have a wrong query (opening quote must be before dollar sign).
It has to be select * from "${t}"

Ach.  Sorry, Serge.


Enhancement: Loading Animation when loading Super Hero Image

Description

Show a loading animation in place of the blank space when the Random button is clicked and the image of the super hero is fetched.

@Prajwal0225 Can you assign this issue to me please under the labels hacktoberfest ?

Status

Added related Pull Request: https://github.com/Prajwal0225/My-Favorite-SuperHero/pull/195

Behaviour

Status

Related branch has been merged: https://github.com/Prajwal0225/My-Favorite-SuperHero/pull/195
Closing issue


Fix cites of chapters and sections

This PR fixes the four remaining issues with in-text citations notes in Issue #643.

Codecov Report

Merging #671 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #671   +/-   ##
=======================================
  Coverage   82.57%   82.57%
=======================================
  Files          48       48
  Lines        7668     7668
=======================================
  Hits         6332     6332
  Misses       1336     1336

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 3e97a79...980ae9d. Read the comment docs.


Add: Remove Outermost Parentheses

Codecov Report

Merging #474 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #474   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files         162    163    +1
  Lines        1604   1614   +10
=====================================
+ Hits         1604   1614   +10

Impacted Files
Coverage Δ

...ermost-parentheses/remove_outermost_parentheses.go
100% <100%> (ø)

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 bff24bb...d6fb409. Read the comment docs.


Fix readme Mbed link

Hi @monowii, thanks for the PR. Do you think this should actually be
https://os.mbed.com/docs/mbed-os/latest/apis/littlefilesystem.html

to avoid needing to keep updating the link?

Hi @monowii, I went ahead and changed this to "latest" to get it in on this patch release, but let me know if this is a mistake.


[BUG] Recent npm upgrade breaks schema compatibility

Describe the bug
A clear and concise description of what the bug is.
I am doing the course https://www.udemy.com/course/microservices-with-node-js-and-react by Stephen Grider which makes use of this plugin.  I was recently prompted to upgrade npm and now I get the following stack trace
[orders] [ERROR] 10:42:32 ⨯ Unable to compile TypeScript:
[orders] src/models/ticket.ts(43,21): error TS2345: Argument of type '(schema: Schema<Document<any, {}>, Model<any, any>, undefined>, options?: PluginOptions | undefined) => void' is not assignable to parameter of type '(schema: Schema<TicketDoc, Model<TicketDoc, {}>, undefined>, opts?: any) => void'.
[orders]   Types of parameters 'schema' and 'schema' are incompatible.
[orders]     Type 'Schema<TicketDoc, Model<TicketDoc, {}>, undefined>' is not assignable to type 'Schema<Document<any, {}>, Model<any, any>, undefined>'.
[orders]       Types of property 'methods' are incompatible.
[orders]         Type '{ [name: string]: (this: TicketDoc, ...args: any[]) => any; }' is not assignable to type '{ [name: string]: (this: Document<any, {}>, ...args: any[]) => any; }'.
[orders]           Index signatures are incompatible.
[orders]             Type '(this: TicketDoc, ...args: any[]) => any' is not assignable to type '(this: Document<any, {}>, ...args: any[]) => any'.
[orders]               The 'this' types of each signature are incompatible.
[orders]                 Type 'Document<any, {}>' is not assignable to type 'TicketDoc'.

ticket.txt
Line 43 is where the plugin is. The file is ticket.ts which is typescript
ticketSchema.plugin(updateIfCurrentPlugin)

To Reproduce
Steps to reproduce the behavior and/or a minimal code sample or link to a repository that reproduces the behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

Platform: Fedora 33
Node.js version: v14.16.0
Mongoose version: 5.11.10

Additional context
Add any other context about the problem here.

to confirm downgrading from npm 7.9.0 to 7.2.0 has got rid of the error.  7.3.0 still had the error

Can confirm. Facing the same issue on Ubuntu 20.04.02 with Node v15.0.1 and mongoose 5.12.10

I fixed this and made a PR, im sure its ok to just use ts supression for now.
// @ts-ignore


Add a static library for cuvs

For the cuml integration, we need to be able to statically link to cuvs in order build the python wheels. This change adds a static target that lets us do that

/merge


add 'unitsToString' function to Money\Money

For legacy systems I need to convert to/from floats. To convert I do the following:
use Money\Money;
use Money\Currency;
$float = 123.34;
$money = new Money(Money::stringToUnits((string)$float), new Currency('USD'));
var_dump($money);
/*
object(Money\Money)#2 (2) {
  ["amount":"Money\Money":private]=>
  int(12334)
  ["currency":"Money\Money":private]=>
  object(Money\Currency)#3 (1) {
    ["name":"Money\Currency":private]=>
    string(3) "USD"
  }
}
*/

$float = $money->getAmount() / 100;
var_dump($float);
/*
float(123.34)
*/

For example money_format() expects the parameter to be a float: http://php.net/manual/en/function.money-format.php
Shouldn't it make sense to have a unitsToString() in Money\Money? Maybe even
unitsToFloat() and floatToUnits() .
I can create a pull-request for this if you would consider including this change.

I really think this would make a lot of sense. I always have to implement it myself. When dealing with money, you're going to need to display it in a user friendly way 99% of the time. The ruby lib supports it https://github.com/RubyMoney/money/blob/master/lib/money/money/formatting.rb

Ping @mathiasverraes

+1

https://github.com/sebastianbergmann/money/blob/master/src/Money.php#L131-L134
https://github.com/sebastianbergmann/money-intl-formatter/blob/master/src/IntlFormatter.php
When displaying currency values you should take into account locale as well. The php NumberFormatter class takes care of this. You should also take into account the currencies subunit when doing the division. For example with Yen you should be string 100 Yen as int(100) and therefore when you format and display you shouldn't be dividing by 100.
https://en.wikipedia.org/wiki/Denomination_(currency)#Subunit_and_super_unit

Apologies for the neglect to this library. Formatting should, imho, be outside of the Money class, for example in a MoneyFormatting class. PRs welcome (and maintainers also welcome).

Formatting is one thing, but some way of getting back to a string (or float) should belong in the Money-class, shouldn't it? I can prepare a PR. I can also help with maintaining if you would like.
Also: there are forks / similar libraries that have unique features (for example big numbers). Is there an interface that we could agree on so that supporting libraries only have to support one interface, or maybe could we merge some of these features in this library?

Formatting is one thing, but some way of getting back to a string (or float) should belong in the Money-class, shouldn't it?

I don't think so. There are so many ways to represent money as a string, I don't think we should pick one. Also, construction is somehow belongs to the Money object, transformation to other types does not.

Also: there are forks / similar libraries that have unique features (for example big numbers).

Yeah, this is planned for a long time now. If you have examples, forks which you know, can you pleas link them here so I can take a look?

Is there an interface that we could agree on

So far, there weren't any as we are talking about a ValueObject.
There is an initiative for standards: https://github.com/e-ig/standards/pull/3
So far, I am not completely satisfied with it as is rather an opinionated thing than a real standard.

could we merge some of these features in this library?

Absolutely. Do you have some sort of list of these features?

My idea would be to create a MoneyFormatter interface with one public method: 'format(Money $money)'. And then an implemention 'IntlMoneyFormatter' inside this package, which should proxy the currency formatter in the intl extension of php. Other people can create their own implementions through the interface.

There is already a third-party formatter interface, see mathiasverraes/money#71.
I am pretty much in favor of the idea.
I wonder if it should be part of this library, or a separate package. I think that maximum half of money representation is actually used for displaying the value, not just working with it, but having the interface and some kind of "default" implementation outside of this package increases complexity.

@sagikazarmark In my opinion this library should provide a method how to format a money object, and include one example. So I would include the MoneyFormatter interface and the IntlMoneyFormatter. Can PR if you'd like.

By the way, I do not see how #71 helps us in this case. I read something about an ISO standard and a currency interface, but nothing on formatting.

Just found the formatter you are referencing. Personally, I think three public methods is not necessary.
We only need a format method. We could return an new (value) object - containing base units, symbol and by locale - but I rather return a string. If someone needs only the only, then he can create a new formatter himself by implementing the interface.

Well, I haven't looked closer at the referenced library, but I knew something is there.
As for MoneyFormatter: I don't actually see a problem having it in this package, so let get this moving. @frederikbosch If you want to provide a PR, that would be great.
I have something in my mind for a long time now: sub unit formatting. The idea is to pass in a subunit, or set of subunits for Currencies (this can be clarified) and modify the value to a float value if necessary. To achieve this, we would need to introduce some kind of ScalarMoneyFormatter which does the same as money formatter, but with scalar values.
Not sure though if it worths the hassle, but we have to provide some way to support subunits in the future.

Will do the PR. I do not sure if I understand you on the subunits.

Something like this:
<?php

$money = new Money(1234, new Currency('EUR'));

$formatter = new SubunitFormatter(new SomeOtherFormatter(), ['EUR' => 100]);

class SubunitFormatter implements MoneyFormatter
{
    protected $delegatedFormatter;

    public function __construct(ScalarMoneyFormatter $delegatedFormatter)
    {
        $this->delegatedFormatter = $delegatedFormatter;
    }

    public function format(Money $money)
    {
        //calculate subunit
        return $this->delegatedFormatter->formatScalar($scalarValue);
    }
}

class SomeOtherFormatter implements MoneyFormatter, ScalarMoneyFormatter { }

@sagikazarmark Thanks for clearing that, but what would the result be if I call the format method on the SubunitFormatter? .34? As in I do not get what you mean by 'subunit'. What value do you need? And why (business case example)?

Nope, 12.34
The point is that subunits are also stored in integers, this way you can display cents and other values.

Ah ok, but that is why is done here, right?

@sagikazarmark Nonetheless, I will come up with something, then we can discuss whether you like the implementation.

Haven't checked the impl so far, but yes. :+1:

Just created PR, please review.

Will do, thank you.

This one can be closed as the formatter is merged.


[bug]: Active shortcuts are marked as inactive

Description
In PHPStorm (i guess should affect any Jetbrains IDE) the are shortcuts marked as inactive even when they are active at the time. When editor is in focus there are many active options in "Code" section. E. g. "move statement down/up". See screenshot.

Expected behavior
Expecting to have correct in/active status. Wanted to use this tool in "hide inactive items" mode to see what i can do with keyboard "right now", but is not usable in this scenario.
App version
0.29 (23917)
macOS version
15.2 (24C101)
Installation method
Homebrew
Checklist before submitting a bug

[X] This issue hasn't been addressed in an existing GitHub issue or discussion.

Hey vitkutny,
Thanks for reporting this issue. I'll look into it.


Images and URLs missing on GTalk for offline users

Offline GTalk users are missing images (in some cases, not sure how to consistently reproduce this...)

So this is happening because in vcard store doesn't keep images and it emits user profile even if user is offline.
We could not overwrite imagedate field in user profile if profile provided from social xmpp doesn't have this set.
Same will be true for g+ links btw.
Thoughts?

Seems like the best thing to do would be to add the image and url to the
vcardstore.  If for some reason we can't do that easily, then I suppose we
could make the change in uProxy to just ignore empty urls and images in the
UserProfile, although that would make it impossible to detect when a user
has removed their image (which would still be better than what we have now)
On Tue, Apr 14, 2015 at 6:04 PM, salomegeo<EMAIL_ADDRESS>wrote:

So this is happening because in vcard store doesn't keep images and it
emits user profile even if user is offline.
We could not overwrite imagedate field in user profile if profile provided
from social xmpp doesn't have this set.
Same will be true for g+ links btw.
Thoughts?
—
Reply to this email directly or view it on GitHub
https://github.com/uProxy/uproxy/issues/1267#issuecomment-93084516.

Ray is looking into a fix for this in freedom-social-xmpp

Quashed!
https://github.com/freedomjs/freedom-social-xmpp/pull/112


pipenv graph --json fails with json.decoder.JSONDecodeError in 2018.10.9

Issue description
Pipenv 2018.10.9 crashes with JSONDecodeError, while Pipenv 2018.5.18 works fine.
I'm skipping the recent updates before 2018.10.9 since they had other bugs in pipenv graph.
Expected result
Describe what you expected.
Actual result
$ pipenv graph --json
Traceback (most recent call last):
  File "<...>/.local/bin/pipenv", line 11, in <module>
    sys.exit(cli())
  File "<...>/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "<...>/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "<...>/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "<...>/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "<...>/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "<...>/.local/lib/python3.6/site-packages/pipenv/cli/command.py", line 528, in graph
    do_graph(bare=bare, json=json, json_tree=json_tree, reverse=reverse)
  File "<...>/.local/lib/python3.6/site-packages/pipenv/core.py", line 2397, in do_graph
    for d in simplejson.loads(c.out):
  File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

$ pipenv --support
Pipenv version: '2018.10.9'
Pipenv location: '<...>/.local/lib/python3.6/site-packages/pipenv'
Python location: '/usr/bin/python3'
Python installations found:

3.7.0b3: /<...>/lib/python3.7/bin/python3.7
3.6.6: /usr/bin/python3.6
<...>

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.6.6',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.15.0-36-generic',
 'platform_system': 'Linux',
 'platform_version': '<...>',
 'python_full_version': '3.6.6',
 'python_version': '3.6',
 'sys_platform': 'linux'}

System environment variables:

<...>
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH

Pipenv–specific environment variables:
Debug–specific environment variables:

PATH:  <...>
SHELL: /bin/bash
EDITOR: vim
LANG: en_US.UTF-8
PWD: <...>

Contents of Pipfile (<...>):
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
<...> = {editable = true, path = "."}

[dev-packages]

[requires]
python_version = "3.7"

Contents of Pipfile.lock <...>:
{
    "_meta": {
        "hash": {
            "sha256": "cab9871ddc6d43f8b4740cc08da57bbe794c5a0c0746c9d2cd19b5dff39ac87c"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": <...>,
    "develop": {}
}

Thanks for the report @vlasovskikh -- sorry for the buggy release, we had an issue with our vendoring script failing to rewrite some imports on this release which is causing a few issues including the graph related ones.  We should have the update out in the next few hours

closing for now as this was fixed in #2975  -- let me know if you see it crop back up, I'll be cutting a new release in the morning most likely
Thanks for the report, sorry again!

Well at least now I know why I can't use pipenv in 3.7.

Because of this I ignored pipenv from 2018.7.1. Pycharm uses also 'graph --json' so it cannot indexing, stubbing, using interpreter and so on.. Greate news.


[CI bug] Release Source code is not up-to-date with codes

If consider 0.9.3-x as backport to 0.9.3, tag should be updated to, if not, distribution packagers cannot find correct source and rebuild.
Same issue also exist in ammonite.

Sorry, but I don't quite understand the issue. Can you elaborate?
Updating / changing tags isn't a good option after there are already consumers. But we can release a 0.9.4 as soon as we are confident we fixed the BSP issue of 0.9.3.

In the release page, there are 13 commits upon 0.9.3. I don’t know should I consider newest version is stable or the first version of 0.9.3 is stable?
If first version of 0.9.3 is stable, means bug fixes on master branch won’t backport to real 0.9.3. And can only wait until 0.9.4 comes to fix the bug.
If newest version of 0.9.3 is stable, means distribution packager should download the source of newest version. So tag should be updated.

There is exactly one 0.9.3 release, it's the one that has the git tag and is published to Maven and GitHub with the exact version 0.9.3. All other published versions under 0.9.3 release page are post 0.9.3 snapshot releases.
See http://www.lihaoyi.com/mill/#development-releases and http://www.lihaoyi.com/mill/#overriding-mill-versions


Fixed compiled_environments fixture

Description
The compiled_environments fixture performed concurrent compilations on the same source project. This PR ensures that each environment has a separate source directory.
Self Check:

[ ] Attached issue to pull request
[x] Changelog entry
[x] Type annotations are present
[x] Code is clear and sufficiently documented
[x] No (preventable) type errors (check using make mypy or make mypy-diff)
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation

Processing this pull request

Merged into branches iso6, master in ded0730723255670e5f4934f0104f39bc20d8591

Processing #5523.


Adjust the video filter "hue" no working

Which version of vlc you have used.

I am using the version that is in the code Meta.VLC

I am using the version that is in the code Meta.VLC

Have you set VlcMediaPlayer.IsAdjustEnable to true?

yess
I work brightness, constrast, the only one that does not work is hue


History dark mode fix

Now history card has the dark mode theme

This is how the history card looked before this pull request

And this is the after


Working component sheet and stylesheet

In addition to the new screens under the devmenu this refactors some top level styling in the app.
Tab pages now take up the whole rest of the screen at the top level (you can overflow and get a scrollable region still) but this lets us act more like a desktop app vs being a web page. This does mess up the devices page styling as the parent wasn't actually flexbox before but i think this is likely an easier way to see the app. Also this makes the redux devtools actually go away and lets us reclaim that space vs it being 30% empty on the right even when its hidden.
@keybase/react-hackers

:thumbsup:


phpcs dependency

in composer.json i saw php_codesniffer dependency for dev encironment:

   "squizlabs/php_codesniffer": "dev-phpcs-fixer"

is phpcs tool currently used?
should i run before PR?
Thanks

Yes, we use PSR-2 code style. Thanks!


CoverageData with no_disk does not update correctly

Describe the bug
A CoverageData constructed with no_disk=True cannot be updated with another CoverageData. The operation succeeds but records nothing:
>>> from coverage import CoverageData
>>> a = CoverageData('.foo')
>>> a.add_arcs({'foo.py': {}})
>>> a.measured_files()
{'foo.py'}

>>> b = CoverageData(no_disk=True)
>>> b.update(a)
>>> b.measured_files()
set()

(This applies also for arcs etc., b remains empty).
Expected behavior
The expected behaviour for no_disk=True is the same as when no_disk is left unspecified; after an update() call we should see data in the updated CoverageData:
>>> c = CoverageData()
>>> c.update(a)
>>> c.measured_files()
{'foo.py'}

To Reproduce

What version of Python are you using? 3.9.7
What version of coverage.py shows the problem? 6.3.1
The output of coverage debug sys is helpful.

It's very long due to a tremendously long PYTHONPATH, but perhaps this part is most relevant:
                sqlite3_version: 2.6.0
         sqlite3_sqlite_version: 3.36.0
             sqlite3_temp_store: 0
        sqlite3_compile_options: COMPILER=gcc-8.3.0; ENABLE_FTS4; ENABLE_FTS5
                                 ENABLE_GEOPOLY; ENABLE_JSON1; ENABLE_MATH_FUNCTIONS
                                 ENABLE_RTREE; MAX_MMAP_SIZE=17179869184; SYSTEM_MALLOC
                                 THREADSAFE=1

Thanks for the interesting bug report.  Just for my own curiosity, can you say more about how you are using these APIs?

We do a huge test run of our monorepo with tests parallelised across a test farm. The coverage files get rsynced back to one host where we:

Merge them
Remap paths captured in the coverage files to paths that exists on that host at that time
Build HTML reports
Build a table of the coverage statistics per component

I think if you're asking whether this could just use the CLI, I think the command line doesn't let me supply the regex-based path mapper class we use for step 2.

Oh, the reason I was reluctant to use a disk file was that a) we don't keep that file, no need for it to be on disk and b) for some reason this is happening on a read-only filesystem

Hmm, I can confirm this happens, but it's a mystery (so far) to me why...

This is now fixed in 84f70f69.

This is now released as part of coverage 6.4.


Adding ScintillaControl.value

Is it possible to also add the value property to the scintilla control?
The standard text control of an edit control handles the linefeed and returns diffently.

This would make it easier to quickly exchange an edit control for a scintilla control

I don't see why not... I'll have to look it over to make sure I don't miss anything by making the change.  Lots of internal workings to double check.  But that should work fine.

Thanks, and by the way, great work, very usefull!

Complete


Extension bundle logistics

On this page, it reads: You enable extension bundles in the app's host.json file.
On the previous page that led me here it reads: You should add extension bundles to the host.json before you add bindings to the function.json file.
In my first reading here, its unclear to me whether I edit only the host.json file or BOTH the host.json and function.json files.

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

ID: 5fb82e02-5c41-239b-4903-aab80ff15215
Version Independent ID: 38f1c69b-f7af-5e13-1cdc-b6b7053d2f7b
Content: Register Azure Functions binding extensions
Content Source: articles/azure-functions/functions-bindings-register.md
Service: azure-functions
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

Some kind of flowchart/visual aid of the process of creating an Azure Function locally and publishing it to the cloud would greatly benefit me as a technical, new user of this tool.

Thanks for the feedback! I have assigned the issue to the doc author to update appropriately.

All good. Now that I'm more familiar with azure functions, I now understand the difference between bindings and extensions. Thanks for the great docs (as always)!


Tree item dragging behaves incorrectly

Godot version:
v4.0.dev.custom_build.0286495f5
OS/device including version:
Windows 10
Issue description:
Tree item dragging behaves incorrectly, which seems to be a result of mishandling of touch dragging on a touchscreen. This affects the editor scene dock, file system dock, etc.

Steps to reproduce:
Add enough nodes to the scene tree until you see the scroll bar appears. Then try to drag&drop a node.
Minimal reproduction project:
No need.

Duplicate of #39087


Properly trap and return errors correctly in travis scripts

This should ensure that if any command in any of the bash script test runners fail we still report the return code correctly, not just the last one.
This also defaults the docker commands back to a default log level.

I amended this PR with changes to two offending files to have them pass lint.


add support for $setWindowFields aggregation operator

When I want to test my development using merge operator, this error occurs:
NotImplementedError: $setWindowFields is not a valid operator for the aggregation pipeline. See http://docs.mongodb.org/manual/meta/aggregation-quick-reference/ for a complete list of valid operators.

Python version: 3.8.13
Mongomock version: 4.1.2

Your wish shall be granted (partially)

any news on this?

It is partially supported in #821


chore:fix minor typos and broken links

This PR fixes minor typos and broken links

thanks @vamsi4845 would you mind pulling in the latest updates from our main branch - have been some changes

Yeah sure


Why stdin is implemented via alert-like prompt?

I think xterm has the ability to be a complete terminal. Is there a specific reason for this? Or just for simplicity of implementation?

As @nlewycky said in forum, This is related to SharedArrayBuffer that is not available in Firefox. Now (firefox 79) SharedArrayBuffer is available in cross origin isolated contexts. helpful links:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
https://web.dev/coop-coep/

I wonder if an in-browser transform to make WASI fd_read async using the approach in the following article could be an alternative: https://deislabs.io/posts/a-simple-wasm-linker-js/
Could be useful since it might be a while until there is ubiquitous server participation with COOP and COEP, ie GitHub pages, etc.

I copied the site over here and added COOP which makes it work again without the prompt - so can confirm this is fixable - not sure where the owner of this repo and website is these days though
https://www.tokera.com/sh/

Would love to get that official project updated too. I tested r2 in tokera/sh and it works pretty well (visual mode is not) but only in chrome. In safari i still get the browser dialog


Store TeX source

Resolves #193
Depends upon #189 (closes #189 if you merge this; don't rebase #189)

i've begun to change my mind and am tentatively approving this
(sorry for not merging this before #189, but am still thinking about this)

That's okay, things should be good now (conflict was due to rebasing #189 on merge)


chore: classify "added theorem" porting notes

Classifies by adding issue number #11432 to porting notes claiming "added theorem" or "added lemma".

Thanks :tada:
bors merge


Sass compile error

I was trying to use Sass to compile the style.scss file. I inputted the following at the command line:
sass style.scss style.css
And the error I get is:
Error: Invalid CSS after "@import "reset"": expected "{", was ";"
on line 8 of style.scss
Use --trace for backtrace.
Could you look into this? Thanks!
My Sass version is 3.4.16

Are you still running into this problem, @jimmieego?

Yes. I still see the error as I described above.

Oh, this is because you're trying to compile the style.scss file directly. That's not going to work as the first two lines of triple dashes at the top of the .scss file will mess it up (Jekyll needs these - http://jekyllrb.com/docs/assets/). Let Jekyll compile it for you when you run jekyll build --watch, you don't need to sass style.scss style.css.

I see. Thanks for the helpful clarification!


Implement current migration status field in plan data list item

For each plan, there is a "Current Status" field that represents the current phase of the currently running Migration for that plan. I say currently running because there should only be one running migration at a time, and there can be multiple migrations associated with a plan, so that field will take a little bit of work to get. The process would be:

List Migrations and filter by those that reference this MigPlan to get the set of migrations for this migplan
Check if any migrations are currently running (any migration with a phase that is NOT in ("Not Started", "Completed).
If there is one running, that's a currently running migration and we should set the status in the list item to that
If none are running, show the latest migration's last phase

Closed by #277


Opening a file in any Office app will restore your windows when you have defterm enabled

Yep, that's just as insane as it sounds.
It's on 1.12

but like, delayed? Like I opened excel, opened a file, then like 10s later, BAM the terminal's back

Yeah exactly

I'm grabbing a screenshot of the icon of whatever is launching

it says I'm up to date ._.

wild theory: office boots some cmdline something or other that triggers a defapp launch. We don't end up sticking to the thing that office launched, but the act of creating the wt to try to delegate to also spawns the other restored windows

It's that yellow icon thing

Yeah what's weird is I can't get defapp to work with just plain CMD lol

that's weird... AppVlp is for executing untrusted scripts AFAIK

look at that - the window that got restored WAS WINDOW 2. So some other wt was launched that thought it also needed to bring this one back

This is also the same thing as #11627. May want to use this as a list of apps where this occurs.

Well, I can't repro this anymore. I bet our changes to determining if we need to make a window for defterm or not fixed this along the way.


cannot load Java class javax.jms.DeliveryMode

I'm connecting to WebSphere MQ. My code is
require 'jms'
require 'yaml'
require 'java'

  jms_provider = 'wmq'
  config       = YAML.load_file("#{Rails.root}/lib/tasks/wmq.yml")[jms_provider]

  JMS::Connection.session(config) do |session|
    session.consume(queue_name: 'ExampleQueue', timeout: 1000) do |message|
      p message
    end
  end

Here is the yml
wmq:
  :factory: com.ibm.mq.jms.MQQueueConnectionFactory
  :queue_manager: xxxx
  :host_name: some_host
  :channel: xxxxxxx
  :ssl_cipher_spec: TLS_RSA_WITH_AES_256_CBC_SHA256
  :port: 1417
  # Transport Type: com.ibm.mq.jms.JMSC::MQJMS_TP_CLIENT_MQ_TCPIP
  :transport_type: 1
  :username: cs-ws-s-wsmc
  :require_jars:
    - /opt/mqm/lib/com.ibm.mqjms.jar

I got the following error:
NameError: cannot load Java class javax.jms.DeliveryMode
Also I want to specify ssl cipher and key repository. How to setup SSL for wmq. I have the ssl key files.

Can you please give me an example of how to specify SSL options for connection using the above code?

Any news on this ?

Anyone have an example on how to use WebSphere MQ with SSL?
Essentially JRuby JMS is a thin layer on top of and mixed into the existing Java JMS classes. If you can setup a Java program to talk to WebSphere MQ using SSL via JMS it should be relatively straight forward to supply the same values via JRuby JMS.

I connected successfully to WebSphere MQ with SSL via JRuby JMS and pulled messages from replaying queue. Replace your credentials like HOST, QUEUE_MANAGER, CHANNEL etc and path to your keys.jks file.
Here is my working JRuby class:
require "java"
require "bouncy-castle-java"
require "/opt/mqm/java/lib/com.ibm.mqjms.jar"

java_import java.security.KeyManagementException
java_import java.security.NoSuchAlgorithmException
java_import java.security.Security

java_import javax.jms.JMSException
java_import javax.jms.QueueConnection
java_import javax.jms.QueueSender
java_import javax.jms.QueueReceiver
java_import javax.jms.QueueSession
java_import javax.jms.Session
java_import javax.jms.TextMessage
java_import javax.net.ssl.SSLContext
java_import javax.net.ssl.SSLSocketFactory

java_import org.bouncycastle.jce.provider.BouncyCastleProvider

java_import com.ibm.mq.MQMessage
java_import com.ibm.mq.jms.MQQueueConnectionFactory
java_import com.ibm.msg.client.wmq.WMQConstants

class WebSphereMQ

  def perform
    begin
      puts "Setting Factory ...."
      factory = MQQueueConnectionFactory.new
      factory.setHostName("YOUR_HOSTNAME")

      factory.setQueueManager("YOUR_QUEUE_MANAGER")
      factory.setChannel("YOUR CHANNEL")
      factory.setPort(1415)
      factory.setIntProperty(WMQConstants::WMQ_CONNECTION_MODE, WMQConstants::WMQ_CM_CLIENT)

      puts "Configuring SSL ...."
      Security.addProvider(BouncyCastleProvider.new)
      java.lang.System.setProperty("javax.net.ssl.keyStore", "PATH_TO_jks_FILE")
      java.lang.System.setProperty("javax.net.ssl.keyStorePassword", 'YOUR_PASSWORD')
      java.lang.System.setProperty("javax.net.ssl.trustStore", "PATH_TO_jks_FILE")
      factory.setSSLSocketFactory(SSLSocketFactory.getDefault)

      factory.setSSLFipsRequired(false)
      java.lang.System.setProperty("com.ibm.mq.cfg.useIBMCipherMappings", "false")
      factory.setSSLCipherSuite("TLS_RSA_WITH_AES_256_CBC_SHA256")

      puts "Creating Connection ...."
      con = factory.createQueueConnection

      puts "Creating Session ...."
      session = con.createQueueSession(false, QueueSession::AUTO_ACKNOWLEDGE)

      puts "Receiving Response ...."
      receiver = session.createReceiver(session.createQueue("YOUR_QUEUE_NAME"))

      con.start
      while true
        data = receiver.receive(1000)

        if data.nil?
          puts "*** No Data Found ****"
        else
          puts "Data Found #{data.getText}"
        end
      end

      receiver.close
      session.close
      con.close
    rescue => e
      puts e.message
    ensure
      receiver.close if receiver
      session.close if session
      con.close if con
    end
  end
end

Did someone manage to get this working with the YAML configuration?

I don't know why the error : cannot load Java class javax.jms.DeliveryMode occurs.
I succeed to connect to the broker (webMethods) with my own computer but every time I tried to connect with an other computer with the SAME configuration I get the error : cannot load Java class javax.jms.DeliveryMode occurs. I don't work anymore on this stuff but it's a really strange behaviour and still doesn't have the answer to this thread ... :/


Update index.html

Sir I have replaced regular function to arrow function and made changes with var keyword as well replaced with let keyword because let keyword is used in block scope and it enhances the time execution of code and runs much faster than var.
Please accept my PR.

Sir please accept my contribution and mark it under "hacktoberfest" , "hacktoberfest 2022" and "hactoberfest-accepted" so that it will get considered under hactoberfest 2022.
This is my first contribution. Thank you.


docs: fix typos in url, yaml and doc

Hello @johnarevalo ,
Is this draft ready for review?  It seems so, if so, do not forget to click on the Ready for review button so that it can be merged.
Thank you very much for your contribution!

Thanks for the remainder 👍

Thank you very much for your contribution!


Fix coding style of some imports in ChainerMN

See:
https://www.python.org/dev/peps/pep-0008/#imports
https://docs.openstack.org/hacking/latest/user/hacking.html#imports

I'll review it very soon. sorry for being late.

LGTM

pfnci, test this please

Jenkins CI test (for commit 349631e2306d586634a67a9545291151986fcf3f, target branch master) succeeded!

I'm waiting for internal CI for ChainerMN. sorry for the delay. Please let me know if you want to make it quick. Thanks!


PowerShell 5.1 Failure to Deploy

Having issues with the most recent version of deployment via PowerShell - attempted deployment 4 times in different regions. Resources continually fail due to BadRequest and Conflict. Screenshot and logs provided.

deployment_operation.log

I have the same problem, app service never synchronizes and does not send a description of the error.

at the time of doing the implementation with PowerShell I get that same error

LOG :
Command: deploy.cmd
Handling ASP.NET Core Web Application deployment.
Restoring NuGet packages
Welcome to .NET Core 3.1!
SDK Version: 3.1.417
Telemetry
The .NET Core tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Find out what's new: https://aka.ms/dotnet-whats-new
Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
Write your first app: https://aka.ms/first-net-core-app
Determining projects to restore...
Restored D:\home\site\repository\Source\Test\CompanyCommunicator.Test\Microsoft.Teams.Apps.CompanyCommunicator.Test.csproj (in 1.68 min).
Restored D:\home\site\repository\Source\CompanyCommunicator.Send.Func\Microsoft.Teams.Apps.CompanyCommunicator.Send.Func.csproj (in 1.68 min).
Restored D:\home\site\repository\Source\CompanyCommunicator.Prep.Func\Microsoft.Teams.Apps.CompanyCommunicator.Prep.Func.csproj (in 5.36 sec).
Restored D:\home\site\repository\Source\CompanyCommunicator.Data.Func\Microsoft.Teams.Apps.CompanyCommunicator.Data.Func.csproj (in 5.29 sec).
Restored D:\home\site\repository\Source\Test\CompanyCommunicator.Send.Func.Test\Microsoft.Teams.Apps.CompanyCommunicator.Send.Func.Test.csproj (in 2.19 sec).
Restored D:\home\site\repository\Source\Test\CompanyCommunicator.Prep.Func.Test\Microsoft.Teams.Apps.CompanyCommunicator.Prep.Func.Test.csproj (in 1.67 sec).
Restored D:\home\site\repository\Source\Test\CompanyCommunicator.Common.Test\Microsoft.Teams.App.CompanyCommunicator.Common.Test.csproj (in 1.61 sec).
Restored D:\home\site\repository\Source\CompanyCommunicator.Common\Microsoft.Teams.Apps.CompanyCommunicator.Common.csproj (in 9.88 sec).
Restored D:\home\site\repository\Source\CompanyCommunicator\Microsoft.Teams.Apps.CompanyCommunicator.csproj (in 2.77 sec).
Restoring npm packages (this can take several minutes)

<EMAIL_ADDRESS>postinstall D:\home\site\repository\Source\CompanyCommunicator\ClientApp\node_modules\babel-runtime\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
Command 'starter.cmd deploy.cmd' was aborted due to no output nor CPU activity for 60 seconds. You can increase the SCM_COMMAND_IDLE_TIMEOUT app setting (or WEBJOBS_IDLE_TIMEOUT if this is a WebJob) if needed.\r\nstarter.cmd deploy.cmd
node -e "try{require('./postinstall')}catch(e){}"
Input string was not in a correct format

Hey there!
I am having a pretty similar problem. I am also trying to deploy the app in a tenant (counting 6 deployment-attempts and all failed).

Here is the log: deployment_operation.log

Hi @mahacket ,
We are testing at our end and will get back to you soon.

Good day
Are there any feedback on the deployment issues being experienced.
Thank you

Hi @mahacket , We are testing at our end and will get back to you soon.

Any feedback on the issues currently being experienced with deployments failing?
Thank you

@mahacket, @rramos9771 , @enito-ch , @satswere
The fsevents library is causing the app service deployment to fail. We are working on the fix and will keep you updated. To unblock the deployment please follow the below steps as a quick workaround,

Go to portal.azure.com. Navigate to resource group where all CC resources are deployed.
Click on the App service -> Click on Configuration
Click on WEBSITE_NODE_DEFAULT_VERSION.
Update the default value to 16.13.0 (previous value ->10.15.2)
Click on Overview and Re-Start the app service.
Once the app service is restarted. Navigate to Deployment Center and click on Sync.
Wait till the deployment is completed. You can validate this once the status changes to Success under logs.

For azure function failure, please refer this troubleshooting guide [issue-1] (https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/wiki/Troubleshooting)

Hi @mahacket ,
Could you please confirm whether the above steps have fixed the issue?

Hi @gsv022 and team,
Yes I was able to successfully get the app deployed with the changes listed above. I did notice with the most recent version now I'm experiencing the same issues as issue 751. (https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/issues/751)
I believe it has to do with Proactively Installing the user app which I have set to True. I manually installed the app for a single user and did not receive the error for that user and they successfully received the message. For all additional recipients who did not have the user app installed I got the errors listed in issue 751.

Hi @mahacket ,
Some of the customers have reported the similar concern of performance downgrade of Company Communicator and an increase in message failed counts. The behavior is mostly observed for larger recipient count. We have certain limitation in replicating the issue as its dependent on recipient’s size. We are troubleshooting it on priority.
Our initial observation suggests it to be an environment issue, however we are yet to figure out a proper fix. We will keep you updated.

Hi @mahacket ,
The connection attempt failed errors was thrown due to the Azure bot services and the issue has been fixed. Could you please re-try sending the messages and share the below observations.

Volume of target audience
Time taken to send the messages.
Connection attempt failed count (If any)

Hi @gsv022
Unfortunately, the status remained unchanged (so it's still not working).
We tried the steps above (https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/issues/728#issuecomment-1138659860) but it did not bring any changes.
I will try the setup on another tenant and reply to this issue (just to exclude any bad configurations at our end).
Should you have any new insights or ideas in the meantime please let me know!

Hello @gsv022,
Yes I was able to send messages successfully now, and did not receive any errors like stated above from issue #751.
I did a full redeployment yesterday evening and while the source deployment still failed, I was able to get the Company Communicator running by following the steps you provided.

Hi @mahacket ,
Thank you for submitting this issue, as we work to ensure consistent responses with items logged in our issues list, we are working to address these items that did not get responses. Please let us know if you are still facing this issue and require assistance and we will be happy to discuss. If no further action is needed at moment and no response is received, we will close out the issue in 3 business days. You may also always open a new issue or respond here if something does come back up.

Hi @gsv022
Unfortunately, the status remained unchanged (so it's still not working). We tried the steps above (#728 (comment)) but it did not bring any changes.
I will try the setup on another tenant and reply to this issue (just to exclude any bad configurations at our end).
Should you have any new insights or ideas in the meantime please let me know!

Hey @gsv022
I was finally able to deploy the app sucessfully! :-)
What helped:

Used the PowerShell ISE console with Win10 (before, I used PowerShell 7.2.3)
Delete all the resources and wait 24h
Retried with a complete new resource-group name in the parameters.json file
I am now facing another issue, but I will open a separate issue for that.
Many thanks for your help guys!


Crash on bootup related to Solar

Mod Version:
DynamicSurroundings-1.12.2-<IP_ADDRESS>
Forge Version:
<IP_ADDRESS>24
Link to crash log (if applicable):
https://pastebin.com/3YPvms6c
Description:
This crash is preventing me from loading my game.

I believe it to be connected to @ArekkuusuJerii's Solar.

I have seen this problem under other circumstances, like when Forge detects a mod dependency failure and reports it.  This JAR address that issue and should address the one here: https://github.com/OreCruncher/DynamicSurroundings/releases/tag/1.12.2-<IP_ADDRESS>T4

Pushed v<IP_ADDRESS> to CurseForge.


Add location header to templates

The API just released, adding the location to the template via headers:
API responses to template creation and editing requests now include the template's status and category.

Let me in @ignacio-chiazzo

@Aaryanpal have you have a chance to look at it?

Hey @ignacio-chiazzo
I see this issue has been stale for quite some time, and I'd like to take a peek. I'm still learning the ropes of the API and this codebase. So, to clarify a bit on the ask
Is this the approach you'd like to have when adding location headers when sending templates?
Let me know if I'm on the right track and/or missing something
location = WhatsappSdk::Resource::Location.new(
  latitude: 25.779510,
  longitude: -80.338631,
  name: "My Miami Store",
  address: "820 NW 87th Ave, Miami, FL"
)
location_parameter = WhatsappSdk::Resource::ParameterObject.new(type: "location", location: location)
location_component = WhatsappSdk::Resource::Component.new(
  type: WhatsappSdk::Resource::Component::Type::Header,
  parameters: [location_parameter]
)

messages_api.send_template(
  sender_id: 123,
  recipient_number: 123,
  name: "location_test",
  language: "en_US",
  components: [location_component]
)

Yeah, when creating a template with a location header you must pass the `"format": "location"
However, you don't have to when sending a template—I'll open a PR, and we can continue the discussion there.
Here's the sending a template with location docs for reference


[Front] As an editor I must be able to update the paper's status.

Proposal:
-> Paper status should be updated automatically when a editor review is posted.
-> If the editor deems the paper appropriate and the recommendation is +2 then the status will be ACCEPTED, otherwise reject.

Done with: https://github.com/dnutiu/acrevista/commit/9bb091b4ca20d85747fd1ff73cd411d69c7a73e1


Format code with PSR

As @wilson1000-MoJ suggested in this review. https://github.com/ministryofjustice/justice-gov-uk/pull/77#discussion_r1512622834
It's important to use a standard for code readability, and minimise that chance of merge conflicts.
Let's revisit.

@EmilyHazlehurst has raised an important point about using PHPDoc comments to describe functions. https://github.com/ministryofjustice/justice-gov-uk/pull/91#discussion_r1524881714
e.g.
/**
* Prevent all single posts, of any post type, from using the document(s) slug.
*
* @param bool $bad_slug Whether the slug is bad or not
* @param string $slug The document slug
* @return bool The sum of the two numbers.
*/

https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/
+1 from me. Let's have a team discussion.

Adding to this, we could potentially:

phpcs format on save.
pre commit hook to run phpcs and/or unit tests etc.
CI build for generating browsable docs. WP use phpDocumentor, I've had a trial and it looks really nice!

Further research PSR-4.
Implementation would mean adding autoloader section of composer.json.
This will require build-fpm-composer has access to php source code in the Dockerfile.
Resources:

https://gitlab.com/rawkode/php-examples/-/blob/main/docker-and-kubernetes/pingcrm/composer.json?ref_type=heads#L42
https://www.youtube.com/live/z_LWJPLhD6g?t=4475
https://getcomposer.org/doc/04-schema.md#autoload
https://www.php-fig.org/psr/psr-4/
https://dlxplugins.com/tutorials/creating-a-psr-4-autoloading-wordpress-plugin/
https://medium.com/write-better-wordpress-code/psr-4-autoloading-in-plugins-and-themes-720f459f4df4
https://www.mrkwp.com/guide/convert-shortcode-to-block-wordpress/using-composer-and-psr-4/


Update to include PARQUET-995, use Arrow HEAD

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Frog count seems to sometimes count frog double

Frog count seems to sometimes count frog double (probably when player manages to move together on top of an invisible frog)
Quack count doesn't seem to have this issue

I think I know what might be happening, to be discussed on the meeting

As discussed, the problem is that the frog is randomly teleported without considering where the player is


change nodes/factors keys to be integer ids

Right now there is a conversion between smart pointers and ids. This change would require storing them in an unordered map or other structure.

it was not totally changed, now we work with deques and id as position on it. If changed further, it relates to #65 since we can't remove any id. We can "disable" factors...


added 2 issue templates

added bug report and feature request templates
closes #5

Thank you @stevenjburrows !


feat: add connect and crud sample code

README.md preview: https://github.com/tidb-samples/tidb-nodejs-mysql2-quickstart/tree/feat-add-connect-and-crud-sample#connect-to-tidb-cluster

@shczhen Thanks for your review 🚀


stat: Add tests for MeanVariance and PopMeanVariance

chore
Please take a look.

Why does this need to be done? We have tests for this. Hang on, I missed that we are missing MeanVariance. Please make your tests confirm to the style used in the project (we use table tests for these).

done~


how to make sample code runnable ?

https://github.com/samuelcolvin/mkdocs-run-
The configuration that makes the code examples runnable in your MkDocs setup is the inclusion of an external JavaScript file specifically designed for making code blocks interactive:
extra_javascript:
  - 'extra/fluff.js'
  - 'https://samuelcolvin.github.io/mkdocs-run-code/run_code_main.js'

In this part of your MkDocs configuration, the run_code_main.js script from the URL https://samuelcolvin.github.io/mkdocs-run-code/run_code_main.js is particularly important. This script is part of the mkdocs-run-code plugin or a similar setup, which enables the functionality to run Python code directly from the MkDocs pages in the browser. This JavaScript file, when included in your MkDocs site, interacts with code blocks (typically within specific HTML elements) to make them interactive, allowing users to execute the code examples shown in your documentation.
Ensure that you have set up everything necessary for the mkdocs-run-code plugin or the respective tool you're using, as this involves more than just including the JavaScript file. This might include additional setup on the server hosting the documentation or configuring specific options for how the code should be run and displayed. If mkdocs-run-code is what you're using, you should also ensure that it's properly installed and configured as part of your MkDocs plugins.

from datetime import datetime

from pydantic import BaseModel, PositiveInt

class User(BaseModel):
    id: int  # (1)!
    name: str = 'John Doe'  # (2)!
    signup_ts: datetime | None  # (3)!
    tastes: dict[str, PositiveInt]  # (4)!

external_data = {
    'id': 123,
    'signup_ts': '2019-06-01 12:22',  # (5)!
    'tastes': {
        'wine': 9,
        b'cheese': 7,  # (6)!
        'cabbage': '1',  # (7)!
    },
}

user = User(**external_data)  # (8)!

print(user.id)  # (9)!
#> 123
print(user.model_dump())  # (10)!
"""
{
    'id': 123,
    'name': 'John Doe',
    'signup_ts': datetime.datetime(2019, 6, 1, 12, 22),
    'tastes': {'wine': 9, 'cheese': 7, 'cabbage': 1},
}
"""


Eliminate the need for namespaces with URI names

Kubernetes has done a nice job simplifying cluster configuration and eliminating sources of conflict across separately developed services. Kubernetes namespaces are an attempt to apply this approach to naming within a cluster. Unfortunately, in this case, the result is to confuse rather than simplify cluster naming.
A good example of the confusion caused by namespaces is resource type naming. In the ‘Kubernetes-defined resource types’ section the predefined resource namespace is specified as resources.kubernetes.io. The predefined resource type names are all of the form kubernetes.io/resources/.  The redundancy of these shows the problem with this design. It is a microcosm of the problem that would exist if the web had used this design instead of URIs.
IMHO, Kubernetes would be well-served by ditching its namespace-based naming design and replacing it with names that are URIs.

Yet every api client ever written has to build a url to something, or walk through 8 layers of indirection (applying logical transformation in code at each step) to arrive at a url.  It's unrealistic to expect that no urls are ever constructed, so I'd attack it from the other perspective, which is that if someone gives you a URL, you should not transform or extract it.  Then you're only arguing about how many layers of resource indirection do you perform prior to getting a response, which most people prefer to be zero, but can grow over time (I believe we have everything needed except the resource -> path within a version transformation today to do the indirection).
Namespaces are part of the resource path so we can easily shard and apply proxy access control on top of them.  They have to be somewhere - the path is no better or worse than any other mechanism.

It's impossible to follow this issue at this point.
Do we not like Kubernetes defining a Namespace to REST resource naming?
Or do we not like that compute resource names (ie memory and cpu) will require fully qualified names when wanting to limit vendor specific resource concepts (ie openshift.com/builds)?
Can we close this issue and either create the right one or two focused issues depending on where the complaint is directed?  Namespace as a scope for pods, services, etc or fully qualified resource name conventions for compute resources?
Sent from my iPhone

On Jan 24, 2015, at 2:47 PM, Clayton Coleman<EMAIL_ADDRESS>wrote:
Yet every api client ever written has to build a url to something, or walk through 8 layers of indirection (applying logical transformation in code at each step) to arrive at a url. It's unrealistic to expect that no urls are ever constructed, so I'd attack it from the other perspective, which is that if someone gives you a URL, you should not transform or extract it. Then you're only arguing about how many layers of resource indirection do you perform prior to getting a response, which most people prefer to be zero, but can grow over time (I believe we have everything needed except the resource -> path within a version transformation today to do the indirection).
Namespaces are part of the resource path so we can easily shard and apply proxy access control on top of them. They have to be somewhere - the path is no better or worse than any other mechanism.
—
Reply to this email directly or view it on GitHub.

Thank you for the background on URIs, but this isn't feasible to change at this point, and I don't see how URIs would solve the problems that are solved by the current URL structure.


Update Azure Stack HCI 2023-03-01 API version

Please update Azure CLI/Powershell to latest Azure Stack HCI api version 2023-03-01
https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2023-03-01

Thank you for opening this issue, we will look into it.

@agrbhuvnesh May I ask if we only need to upgrade the api-version to 2023-03-01? Or do we need to add some new commands and parameters based on the new version of Swagger?

Yes, there are few more commands added since last API version 2022-05-01 released. You can refer from swagger spec.

Hi @agrbhuvnesh , I found some problems in swagger and submitted a PR(https://github.com/Azure/azure-rest-api-specs/pull/23648), we need to fix it to make the new version work, could you please help to check it, thanks.


Error: cannot unmarshal object into Go struct field Message.channel_post.chat_background_set of type models.BackgroundType

When a bot checks for updates, it may run into the error. Then it won't be able to proceed with handling the updates and will stuck.
The error message:
[TGBOT] [ERROR] error get updates, error decode response result for method getUpdates, json: cannot unmarshal object into Go struct field Message.channel_post.chat_background_set of type models.BackgroundType
Looks like the library incorrectly works with updates containing background setting in channels.

Can you run bot with bot.WithDebug() options and send me payload which occur an error?

I had to clean the updates even before I posted the issue in order to restore the operation of my bot. Hence, I don't have that message anymore. Sorry.
If it appears again, I'll report it immediately

Thanks, I close the issue. Feel free for reopen

The error has occured again. I'm afraid I cannot send the payload since it's too big and it has a lot of accumulated updates in it including sensitive data such as nicknames and group IDs.
I do not clean the updates though, and I can provide additional information


Should OfflineContext be available for the entire duration of an async callback?

The problem is, the second test case I added ("does not restore Tone.context during asynchronous calls") is failing.
The other problem is, it's not easy to fix, the easy attempt will break the third test case I added ("restores Tone.context immediately").
Use case: fetch media files for offline rendering and use Tone.context.decodeAudioData to decode them.
I understand there are various workarounds (fetch before the Tone.Offline call, pass down a reference to the OfflineContext instance, etc.) but my first attempt wrongly assuming Tone.context is an OfflineContext even in async calls ended up in cryptic exceptions (esp. in Firefox) and quite a bit of headscratching.
Possible solutions I see:

Breaking API change to not modify Tone.context at all and expose it as a callback argument
A warning logged when attempting what I did in "does not restore Tone.context during asynchronous calls" test case
A warning in the documentation and suggested workaround

@tambien What do you think?

yeah this is a tricky one. i've been thinking about this for a while since it's also related to #368 and #405. I think the thing that needs to happen is that you should be able to create a Tone object which is bound to the context the entire time, instead of temporarily switching the global context.
So i would imagine an API being something like const OfflineTone = Tone.fromContext(new OfflineAudioContext(params)) which would return a Tone object with the same interface, but the context is bound. This would give a lot more flexibility with how and when it would render.
I've been laying the ground work for this for a little while, but it would be a bit of a refactor to get that in there.

you should be able to create a Tone object which is bound to the context the entire time

👍
Anyway, closing this PR as it is just a byproduct of me saying "I can quickly fix this!" and then "Oh wait...".  It was still useful to illustrate an issue...

Btw this also means it is currently not possible to use Context and OfflineContext the same time.