Prepare for Play Store Release

Add adaptive app icon
Add TERMSANDCONDITION and PRIVACYPOLICY as temporary fix until it is transferred to website
Upgrade Build and Compile SDK to v30

App Icon Sample


Not work sign in

Add login view for auth new customers and beta testers. We can't receive bug feedback, because we don't know customers username.

Task completed by Vladislav Sobolevskiy


convertFromRaw is not converting Entity Map 😭

Do you want to request a feature or report a bug?
bug
What is the current behavior?
convertFromRaw is taking an argument (new/updated content)  that includes an added entity of an embedded youtube link, but when i log out the result of convertFromRaw the entity isn't there. No errors.
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started:
(your JS-fiddle is broken).
componentWillMount() {
   const content = this.state.editorState.getCurrentContent();
   const rawContent = convertToRaw(content);
      const newContent = {
            ...rawContent,
            entityMap: {
                0: {
                    data: {
                        height: "auto",
                        src: "https://www.youtube.com/embed/5dsGWM5XGdg",
                        width: "auto",
                    },
                    mutability: "MUTABLE",
                    type: "EMBEDDED_LINK",
                }
            },
        };

    // 🔼 this pulls in current content, converts to readable raw object of blocks & entities
    // which we then push an entity into, with embedded youtube.

    // we then convert *from* raw 🔽
    const updatedContentToPassBack = convertFromRaw(newContent);
    // this should now be a useable contentState object to pass to EditorState

    console.log('updatedContent: ', convertFromRaw(updatedContentToPassBack));
    // ^^ converting it back to raw and there's no sign of my new entity there

    // setting it state to render also does nothing 🔽

    this.setState({ editorState: EditorState.createWithContent(updatedContentToPassBack) });

}

What is the expected behavior?
embedded entity exists in draft object and is rendered.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
0.10.5 / Chrome / MacOS.

Same problem here. Can't export to raw -> save to DB and import from raw beacause the function fails when there are no entity maps

hi @Aid19801 have you found a solution for this? I'm having a similar problem where convertFromRaw ignores an entityMap with an image object in it

I've tried JSON.stringifying the convertToRaw object and then storing it in the DB, and then parsing it back when initializing the DraftJsEditor. But that didn't work. I also tried transforming the entityMap to an Array to store in my DB, and then converting it back into an object. I tried converting it to a map too. This didn't work either.

Solved it. The first problem was that my MongoDB database wasn't properly storing entity map. So I had to convert the entityMap to an array to store in my DB. Then, convert it back to an object.
The 2nd problem was that I was initializing my editorState without a decorator. So after I added my decorator, everything was good
  EditorState.createWithContent(
        convertFromRaw(convertRawToConvertable(serverBlog.draftJs)),
        decorator
      )

I am facing similar issue, @theweiweiway what is a decorator?

As @theweiweiway pointed out the MongoDB does not store empty objects. So in my case, I simply force MongoDB to store the empty object.  If you are using mongoose as ORM then you can do this method . So this issue is not likely due to draftJS


[BUG/ISSUE] Can't make GeckoLib work in Multiloader with Forge.

Basically, I'm trying to add GeckoLib as a dependency of my project, but it crashes when I open the game with Forge. I'm using Architecture loom.
NeoForge works fine; Didn't test with Fabric because I'm not going to support it.
Minecraft Version: 1.20.4
Forge Version: 49.0.19
GeckoLib Version: 4.4.2
Main Build.gradle
Forge Build.gradle
Latest Log
I already tried cleaning my cache and regenerate the runs.

You'll need to add mclib as an explicit dependency in your build.gradle.
Come to the discord if you need more info


Consolidation & catalogue page translation

Produits non consolidés => Non-consolidated products
Editer un produit non consolidé => Edit a product
Editer => Edit

Catalogue des produits consolidés => Universal product catalog
recherche sur la description => search description
Filtrer => Search
Editer un produit de catalogue => Edit a product

FYI I didn't want to translate "consolidés" because I'm afraid this is a technical term that a user will not understand. I do understand that this is the correct term in a semantic world. Let's see how the crow reacts to "reconciled" :+1:


HHH-12696 (master) - Allow map attribute key and value subgraphs to both be added to entity / sub graphs.

We hit HHH-12696 and decided that I can contribute the fix back. This is my first contribution back to Hibernate but, I hope, I covered everything:
I made minimal changes and kept the old behaviour still available to the maximum extent possible, as far as I am aware.
Added more JavaDoc than there was before.
Created unit tests. Confirmed that they fail before and succeed after the change. (No preexisting tests fail before or after.)
This is in the same area as HHH-10378, which is of interest to me too and could fix it as well.
I also submitted the backport to 4.3 as a pull request 2355.

Nothing happening here?

Out of date.  The tests, at least, were integrated (see org.hibernate.orm.test.entitygraph.parser.EntityGraphParserTest#testHHH12696MapSubgraphsKeyFirst and #testHHH12696MapSubgraphsValueFirst) and they are passing.


firejail.wrappedBinaries has no effect

Describe the bug
programs.firejail.wrappedBinaries does not appear to have any effect on whether programs are run under firejail.
Steps To Reproduce
Steps to reproduce the behavior:

Add the following to /etc/nixos/configuration.nix

programs.firejail.enable = true;
programs.firejail.wrappedBinaries = {
  thunderbird = {
    executable = "${lib.getBin pkgs.thunderbird}/bin/thunderbird";
    profile = "${pkgs.firejail}/etc/firejail/thunderbird.profile";
  };
};

Run sudo nixos-rebuild switch
In a separate terminal, run thunderbird
Run firejail --list
See that no sandboxes are listed, even though thunderbird should have been run under firejail.

Expected behavior
I expected the command thunderbird to run the Thunderbird application through firejail, as described in the option description for programs.firejail.wrappedBinaries.
Notify maintainers
@peterhoeg
Metadata
$ nix-shell -p nix-info --run "nix-info -m"
these paths will be fetched (0.07 MiB download, 0.34 MiB unpacked):
  /nix/store/gd7ihraqqpginv5cmhgk347nfn2iiqkj-bash-interactive-5.1-p8-dev
  /nix/store/k8qjik2a44ljdx48lmin2byz77ssrngk-stdenv-linux
copying path '/nix/store/gd7ihraqqpginv5cmhgk347nfn2iiqkj-bash-interactive-5.1-p8-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/k8qjik2a44ljdx48lmin2byz77ssrngk-stdenv-linux' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.88, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.16`
 - channels(root): `"nixos-21.11.334921.8588b14a397"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

From https://firejail.wordpress.com/documentation-2/firefox-guide/

by default, a single Firefox process instance handles multiple browser windows. If you already have Firefox running, you would need to use -no-remote command line option, otherwise you end up with a new tab or a new window attached to the existing Firefox process

I believe the same is true for thunderbird. That is, if I already have thunderbird open and then run firejail thunderbird (which is essentially all that option does https://github.com/NixOS/nixpkgs/blob/2a2ffb13517c34f6c74ef0a18746f546a1e7d0e9/nixos/modules/programs/firejail.nix#L27), a new tab in the already running thunderbird window opens and the the firejail process ends.
However, if I have no instance of thunderbird running, thunderbird stays in firejail as exepected.

I did not have thunderbird running when I followed the steps outlined in this issue.

Does thunderbird start in firejail when manually invoking firejail thunderbird (or equivalent). Also, what is the result of cat $(which thunderbird)?

$ cat $(which thunderbird)
#! /nix/store/v1d8l3zqnia3hccqd0701szhlx22g54z-bash-5.1-p8/bin/bash -e
export LD_LIBRARY_PATH='/nix/store/8s9kjhmsyqzsja20bh2z9nmnxjd81zzd-gpgme-1.16.0/lib'${LD_LIBRARY_PATH:+':'}$LD_LIBRARY_PATH
export PATH='/nix/store/k2pfqhw31c3hr04riiz6as01xcqfs749-gnupg-2.2.27/bin'${PATH:+':'}$PATH
exec -a "$0" "/nix/store/g7ba417hyd0cqkdy8w2dg7p1b9hki593-thunderbird-91.4.0/bin/.thunderbird-wrapped_"  "$@"

$ readlink -f $(which thunderbird)
/nix/store/g7ba417hyd0cqkdy8w2dg7p1b9hki593-thunderbird-91.4.0/bin/thunderbird

Explicitly invoking firejail thunderbird behaves as expected (thunderbird is run in a firejail sandbox).

For some reason that is the normal thunderbird, not the one created by the firejail module. Out of curiousity, do you also have thunderbird in environment.systemPackages?

Yes I do.  Is that going to cause conflicts?

Yes I do.  Is that going to cause conflicts?

Yes... I am unsure what the order is in general (when priorities are the same), but if you have two derivations with the same file name, only one persists when linked. So, in this case it seems that the executable thunderbird took priority while linking the systempath and your firejail version got overwritten.
Also, the systemPackages option ignores collisions :p https://github.com/NixOS/nixpkgs/blob/5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3/nixos/modules/config/system-path.nix#L172
See: https://github.com/NixOS/nixpkgs/blob/5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3/pkgs/build-support/buildenv/default.nix

Yes... I am unsure what the order is in general (when priorities are the same), but if you have two derivations with the same file name, only one persists when linked. So, in this case it seems that the executable thunderbird took priority while linking the systempath and your firejail version got overwritten.
Also, the systemPackages option ignores collisions :p https://github.com/NixOS/nixpkgs/blob/5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3/nixos/modules/config/system-path.nix#L172
See: https://github.com/NixOS/nixpkgs/blob/5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3/pkgs/build-support/buildenv/default.nix

I actually only put it in environment.systemPackages because I did not realise that the firejail.wrappedBinaries option would work without specifying the package there.  I am running a bare window manager, and almost completely ignore .desktop files, so the solution for me is to simply remove it from systemPackages.
I have submitted a pull request that tries to clarify the description of firejail.wrappedBinaries, and I consider this issue resolved.  Thank you very much for your help here!

I actually only put it in environment.systemPackages because I did not realise that the firejail.wrappedBinaries option would work without specifying the package there.  I am running a bare window manager, and almost completely ignore .desktop files, so the solution for me is to simply remove it from systemPackages.
I have submitted a pull request that tries to clarify the description of firejail.wrappedBinaries, and I consider this issue resolved.  Thank you very much for your help here!

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/firejail-wrappedbinaries-having-no-effect/16859/2


Heap overflow described as UAF

https://github.com/googleprojectzero/0days-in-the-wild/blob/main/0day-RCAs/2020/CVE-2020-15999.md
contains the text "a Chrome-specific UAF (CVE-2020-16010)"
However CVE-2020-16010 (https://github.com/googleprojectzero/0days-in-the-wild/blob/main/0day-RCAs/2020/CVE-2020-16010.md) describes itself as a "Heap Buffer Overflow". Its description also reads like a heap overflow, so I believe it's the CVE-2020-15999 page which is in error, not the CVE-2020-16010 page.

Fixed. Thanks for bringing this to our attention! https://github.com/googleprojectzero/0days-in-the-wild/commit/9045d25d427fbac739307a90f53cf65488277062


[WIP] Connection result enhance

Fix ConnectionResult -> Connection::Result

@shrit do you have more ideas how to solve this? I myself don't have a good answer to the problems that we found above.

Well personally, I did not find anythin different from the original code.
Maybe we can go back to the original solution, but change the name of the struct connection_result to
Connection and rename the class Connection to Connections.
From the public point of view that is going to remove the confusion with other plugins, and make the user more comfortable.  However in this case, we need to change the class Connection to Connections everywhere it has been used in the SDK

Maybe we can go back to the original solution, but change the name of the struct connection_result to
Connection and rename the class Connection to Connections.

I would rather have something like Connection::Resultbut justConnection` for a result seems odd.
And why would you call it Connections? You sort of add one connection at a time and you get one ConnectionResult in response.

Hm, you are right. But if you really prefer Connection::Result we will have to execute some major modification on the code, For example, look at this scenario:
In fact, I notice that the Connection class handle the mavlink protocol rather that handling the connection. For me, the Connection class should manage the tcp, udp and the serial, or even any future networking protocol. In this case they are manged by the DronecodeSDK class.
In this case, we can create a new class Connection that handle the networking part of the dronecodeSDK.Then for each class TcpConnection, or UdpConnection we can create a local enum Result that handle locally the connection state.
I understand that mavlink is the communication protocol rather that the connection protocol. Thus,
we can create a different class to handle the mavlink and make it accessible in the TcpConnection class or Udp.
Please, let me know what do you think?

Hm, good point. So I tried to have as little as possible mavlink in the actual connections. All I can see is how the bytes are passed to _mavlink_receiver e.g. in udp_connection:
https://github.com/Dronecode/DronecodeSDK/blob/develop/core/udp_connection.cpp#L208
Is that what you mean? And how would you propose to improve it?

Maybe I did not understand perfectly your last answer
I have created a branch with some of the modification that I have talked about in the last comment,
I did not even compile it, there is still a lot of work to do, but please tell me what do you thing,
https://github.com/shrit/DronecodeSDK/tree/connection_result

Closing in favor of #667


Download ABSA Model Files

How can I download the model files for the trained aspect based sentiment classification? Following along with the quick tour in the README (link), I get the following error
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from senta import Senta
>>> my_senta = Senta()
>>> use_cuda=False
>>> my_senta.init_model(model_class="roberta_skep_large_en", task="aspect_sentiment_classify", use_cuda=use_cuda)
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/ryan/workspace/misc/senta/Senta/senta/train.py", line 205, in init_model
   param_dict = from_file(data_params_path)
 File "/home/ryan/workspace/misc/senta/Senta/senta/utils/params.py", line 47, in from_file
   file_dict = json.loads(evaluate_file(filename), strict=False)
 File "/home/ryan/workspace/misc/senta/Senta/senta/utils/params.py", line 42, in evaluate_file
   with open(filename, "r") as evaluation_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ryan/workspace/misc/senta/Senta/senta/model_files/roberta_skep_large_en.absa_laptops.cls/save_inference_model/inference_step_74/infer_data_params.json'

I installed the package using the "From source" instructions here. My system is Ubuntu 20.04. Please let me know if you need any other info to help fix this.

me too! I get this problem too! Have you found any way to solve it ?


How to read gradle command line parameters in karate-config.js

Hi,
I have a scenario where get the username by calling aws cli command and pass that it to ./gradlew test -Dusername=
When try to read in karate-config.js as
var ssmParameter=karate.properties['username']; it shows as null
Tried the follwing properties types in gradle build but no luck:
systemProperty "karate.properties[username]", System.properties.getProperty("username")
systemProperty "karate.properties", System.properties.getProperty("username")
Seems like i'm missing something here. But was able to get the value for the following:
build.gradle:
systemProperty "karate.env", System.properties.getProperty("karate.env")
var env=karate.env;
I was able to get the value of 'username' by setting the property of 'username 'in the TestRunner class
Is there any way i can get he value without the TestRunner?
Appreciate your help
Thanks,
Jeevan

I think @KramKroc has created some doc for this situation here: https://github.com/intuit/karate#command-line
Looks like you have to tweak your gradle build file to add a systemProperty for every property you want to pass, I don't know if there is a better way - I use maven.

@ptrthomas Sure, Thank you!


[Question]: how to load multiple html files to get unstructured and structured table in a html page

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
hi people,
i checked this example for the 10k analysis for tesla, i think this is what i need for retrieve the information from bunch of html files:
https://docs.llamaindex.ai/en/stable/examples/query_engine/sec_tables/tesla_10q_table/
My files looks like this:
https://www.cisco.com/c/en/us/td/docs/iosxr/cisco8000/segment-routing/24xx/configuration/guide/b-segment-routing-cg-cisco8000-24xx/configuring-segment-routing-for-ospf-protocol.html
or
https://www.cisco.com/c/en/us/td/docs/iosxr/cisco8000/segment-routing/24xx/configuration/guide/b-segment-routing-cg-cisco8000-24xx/configuring-segment-routing-over-ipv6-srv6-micro-sids.html
as you can see these are typical configuration files with tables, text mixed. My question is how can i load a whole bunch of such html files automatically maybe like simple directory reader?
You can also suggest a way of parsing such html files to get best retrieval and query result...
Best

Got some errors:

ValidationError                           Traceback (most recent call last)
Cell In[82], line 23
21 # Example usage
22 directory_path = "./ html/"
---> 23 documents = load_html_directory(directory_path, tag="section", ignore_no_id=False)
Cell In[82], line 15, in load_html_directory(directory_path, tag, ignore_no_id)
13 docs = html_reader.load_data(html_file)
14 for doc in docs:
---> 15     document = Document(text=doc)
16     nodes = node_parser.get_nodes_from_documents([document])
17     documents.extend(nodes)
File ~/miniforge3/envs/new2/lib/python3.11/site-packages/pydantic/v1/main.py:341, in BaseModel.init(pydantic_self, **data)
339 values, fields_set, validation_error = validate_model(pydantic_self.class, data)
340 if validation_error:
--> 341     raise validation_error
342 try:
343     object_setattr(pydantic_self, 'dict', values)
ValidationError: 1 validation error for Document
text
str type expected (type=type_error.str)
From: dosubot[bot] @.>
Date: Tuesday, June 25, 2024 at 4:10 PM
To: run-llama/llama_index @.>
Cc: gmdl007 @.>, Author @.>
Subject: Re: [run-llama/llama_index] [Question]: how to load multiple html files to get unstructured and structured table in a html page (Issue #14380)
To load multiple HTML files and parse them for both unstructured text and structured tables, you can use the HTMLTagReader and UnstructuredElementNodeParser classes from the LlamaIndex framework. Here's a method to achieve this:

Load HTML Files: Use HTMLTagReader to read the HTML files and extract text from specific tags.
Parse Content: Use UnstructuredElementNodeParser to handle mixed text and tables effectively.

Here's a complete example:
from pathlib import Path
from llama_index.readers.file.html.base import HTMLTagReader
from llama_index.core.node_parser.relational.unstructured_element import UnstructuredElementNodeParser
from llama_index.core.schema import Document
def load_html_directory(directory_path: str, tag: str = "section", ignore_no_id: bool = False):
html_reader = HTMLTagReader(tag=tag, ignore_no_id=ignore_no_id)

node_parser = UnstructuredElementNodeParser()

documents = []

directory = Path(directory_path)

for html_file in directory.glob("*.html"):

    docs = html_reader.load_data(html_file)

    for doc in docs:

        document = Document(text=doc)

        nodes = node_parser.get_nodes_from_documents([document])

        documents.extend(nodes)

return documents

Example usage
directory_path = "/path/to/html/files"
documents = load_html_directory(directory_path, tag="section", ignore_no_id=False)
Now documents contains the parsed content from all HTML files in the directory
This method will load and parse all HTML files in the specified directory, extracting both unstructured text and structured tables for optimal retrieval and query results [1]https://github.com/run-llama/llama_index/blob/main/llama-index-legacy/llama_index/legacy/readers/file/html_reader.py[2]https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/html/base.py[3]https://github.com/run-llama/llama_index/blob/main/llama-index-legacy/tests/node_parser/test_unstructured.py[4]https://github.com/run-llama/llama_index/blob/main/llama-index-core/tests/node_parser/test_unstructured.py.
To continue talking to Dosuhttps://dosu.dev, mention @dosuhttps://github.com/dosu.
—
Reply to this email directly, view it on GitHubhttps://github.com/run-llama/llama_index/issues/14380#issuecomment-2189071176, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG2FHXHUPQ4F62JLDBBFQV3ZJF257AVCNFSM6AAAAABJ35VKHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBZGA3TCMJXGY.
You are receiving this because you authored the thread.Message ID: @.***>

Great, it works very nice. Can you also advise some code for the actual RAG, i.e. query config?
Best
From: dosubot[bot] @.>
Date: Tuesday, June 25, 2024 at 4:28 PM
To: run-llama/llama_index @.>
Cc: gmdl007 @.>, Author @.>
Subject: Re: [run-llama/llama_index] [Question]: how to load multiple html files to get unstructured and structured table in a html page (Issue #14380)
The error occurs because the Document class expects a string for the text attribute, but it is receiving a Document object instead. You need to pass the text attribute of the Document object to the Document constructor. Here is the corrected code:
from pathlib import Path
from llama_index.readers.file.html.base import HTMLTagReader
from llama_index.core.node_parser.relational.unstructured_element import UnstructuredElementNodeParser
from llama_index.core.schema import Document
def load_html_directory(directory_path: str, tag: str = "section", ignore_no_id: bool = False):
html_reader = HTMLTagReader(tag=tag, ignore_no_id=ignore_no_id)

node_parser = UnstructuredElementNodeParser()

documents = []

directory = Path(directory_path)

for html_file in directory.glob("*.html"):

    docs = html_reader.load_data(html_file)

    for doc in docs:

        document = Document(text=doc.text, metadata=doc.metadata)  # Pass the text and metadata attributes

        nodes = node_parser.get_nodes_from_documents([document])

        documents.extend(nodes)

return documents

Example usage
directory_path = "/path/to/html/files"
documents = load_html_directory(directory_path, tag="section", ignore_no_id=False)
Now documents contains the parsed content from all HTML files in the directory
This change ensures that the Document class receives the text attribute as a string, which should resolve the ValidationError [1]https://github.com/run-llama/llama_index/blob/main/docs/docs/examples/discover_llamaindex/document_management/discord_dumps/help_channel_dump_05_25_23.json.
To continue talking to Dosuhttps://dosu.dev, mention @dosuhttps://github.com/dosu.
—
Reply to this email directly, view it on GitHubhttps://github.com/run-llama/llama_index/issues/14380#issuecomment-2189119563, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG2FHXGWLVUBVSAVBVYBDBLZJF5ALAVCNFSM6AAAAABJ35VKHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBZGEYTSNJWGM.
You are receiving this because you authored the thread.Message ID: @.***>

how does this differ from previous example of loading html docs? does this config also parse the html document with tables and unstructured data the same?
Sent from my iPhone
On 27. Jun 2024, at 08:54, dosubot[bot] @.***> wrote:

To set up the query configuration for a Retrieval-Augmented Generation (RAG) system using the LlamaIndex framework, you need to follow several stages: loading, indexing, storing, querying, and evaluation. Below is a code example that demonstrates how to configure the querying stage, which is crucial for a RAG system.
Code Example for Query Configuration in RAG
from llama_index.core import Document, VectorStoreIndex, SimpleDirectoryReader
from llama_index.core.retrievers import VectorIndexRetriever
from llama_index.core.node_parser import SentenceSplitter
from llama_index.core.ingestion import IngestionPipeline
from llama_index.embeddings.openai import OpenAIEmbedding
from llama_index.llms.openai import OpenAI
from llama_index.core.query_engine import CustomQueryEngine
from llama_index.core.response_synthesizers import BaseSynthesizer
from llama_index.core import get_response_synthesizer
from pathlib import Path
Step 1: Load your data into Documents
loader = SimpleDirectoryReader(input_dir="./data")
documents = loader.load_data()
Step 2: Create the pipeline with transformations
pipeline = IngestionPipeline(
transformations=[
SentenceSplitter(),
]
)
nodes = pipeline.run(documents=documents, show_progress=True)
Step 3: Index your data
embed_model = OpenAIEmbedding()
index = VectorStoreIndex(nodes=nodes, embed_model=embed_model)
Step 4: Configure the retriever
retriever = VectorIndexRetriever(index=index, similarity_top_k=10)
Step 5: Define a Custom Query Engine
class RAGQueryEngine(CustomQueryEngine):
"""RAG Query Engine."""
retriever: BaseRetriever
response_synthesizer: BaseSynthesizer

def custom_query(self, query_str: str):
    nodes = self.retriever.retrieve(query_str)
    response_obj = self.response_synthesizer.synthesize(query_str, nodes)
    return response_obj

Step 6: Configure the Query Engine
synthesizer = get_response_synthesizer(response_mode="compact")
query_engine = RAGQueryEngine(
retriever=retriever, response_synthesizer=synthesizer
)
Step 7: Query the index
query = "How tall is the smallest penguin?"
response = query_engine.query(query)
print(response)
Explanation

Loading: Load your data into Document objects using SimpleDirectoryReader.
Pipeline: Create an ingestion pipeline with transformations like SentenceSplitter.
Indexing: Create an index using VectorStoreIndex and add your documents to it.
Querying:
*   Retriever: Set up a VectorIndexRetriever to fetch relevant context from the index.
*   Custom Query Engine: Define a RAGQueryEngine that performs retrieval and synthesis.
Query Execution: Execute a query and get the response.

This code provides a basic setup for querying in a RAG system using the LlamaIndex framework. You can customize each component (retriever, query engine) based on your specific requirements [1]https://github.com/run-llama/llama_index/blob/main/docs/docs/getting_started/concepts.md[2]https://github.com/run-llama/llama_index/blob/main/llama-index-packs/llama-index-packs-self-rag/examples/self_rag.ipynb[3]https://github.com/run-llama/llama_index/blob/main/llama-index-networks/examples/demo/contributor-1/contributor_1/app_query_engine.py[4]https://github.com/run-llama/llama_index/blob/main/docs/docs/examples/query_engine/custom_query_engine.ipynb.
To continue talking to Dosuhttps://dosu.dev, mention @dosuhttps://github.com/dosu.
—
Reply to this email directly, view it on GitHubhttps://github.com/run-llama/llama_index/issues/14380#issuecomment-2193934172, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG2FHXCL2374U5U2BSMWLATZJOZINAVCNFSM6AAAAABJ35VKHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJTHEZTIMJXGI.
You are receiving this because you authored the thread.Message ID: @.***>


Jank on first ListView.builder build

main() {
  runApp(MaterialApp(
    home: ListViewPage(),
  ));
}

class ListViewPage extends StatelessWidget {
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView.builder(
        itemCount: 1000,
        itemBuilder: (context, index) {
          return ListTile(
            title: Text("Dummy title"),
            subtitle: Text("Index = $index"),
            trailing: IconButton(
              icon: const Icon(Icons.arrow_forward_ios),
              onPressed: () { },
            ),
          );
        },
      ),
    );
  }
}

I ran this in profile mode in a real device (OnePlus 6).
It seems like Flutter take to much time to lay out all the visibles items during the first build
[✓] Flutter (Channel stable, 1.22.1, on macOS 11.0 20A5384c, locale en-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[!] Android Studio (version 4.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] IntelliJ IDEA Ultimate Edition (version 2020.2.1)
[✓] VS Code (version 1.50.0)
[✓] Connected device (1 available)
```

Suggestion - As mentioned in the docs, providing the itemExtent parameter imroves performance. Could you please try that?

Could you post the exact performance metrics you are observing?
I wouldn't expect the provided ListView.builder to take very long to build, are you including how long it takes to build MaterialApp initially too?

MaterialApp is not included because i don't use exactly the code i provided in OP. Instead, i'm using a blank page with a button as a homePage. When this button is pressed, it push the ListViewPage.
Here is a capture of the timeline after the ListViewPage was pushed:

It takes more than 40ms just to build the visible items.
Don't know about itemExtend, i'll try that

Hi @SBNTT
Can you please provide details of the device or emulator you're experiencing this issue on?  your doctor -v doesn't  this data
Is it iOS or Android?

Hi, I said I was using a OnePlus 6 in OP :)
I do not have a real iOS device to try sorry

Hi @SBNTT
The issue isn't reproducible on Android 10 device Realme 6, have you tried any other android device or emulator?

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 10.0.19041.572], locale en-US)
    • Flutter version 1.22.1 at C:\Code\flutter_stable
    • Framework revision f30b7f4db9 (8 days ago), 2020-10-08 10:06:30 -0700
    • Engine revision 75bef9f6c8
    • Dart version 2.10.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Code\sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = C:\Code\sdk
    • Java binary at: C:\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio
    • Android Studio at C:\Code\android-studio\
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • android-studio-dir = C:\Code\android-studio\
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.50.1)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.15.1

[✓] Connected device (2 available)
    • RMX2001 (mobile)                   • EUYTFEUSQSRGDA6D • android-arm64 • Android 10 (API 29)
    • Android SDK built for x86 (mobile) • emulator-5554    • android-x86   • Android 10 (API 29) (emulator)

! Doctor found issues in 1 category.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Change Unified configuration url for AuxCacheUpdateTasks CherryPy thread

Impact of the new feature
ReqMgr2
Is your feature request related to a problem? Please describe.
The P&R team have recently migrated unified source code from GitHub to Gitlab, which affects one of the ReqMgr2 CherryPy threads:
https://github.com/dmwm/WMCore/blob/master/src/python/WMCore/ReqMgr/CherryPyThreads/AuxCacheUpdateTasks.py#L40C44-L40C55
which means WM microservices might now be using an outdated version of the Unified configuration.
Describe the solution you'd like
Update the ReqMgr2 (reqmgr2-tasks) configuration to fetch the Unified configuration from this link:
https://gitlab.cern.ch/CMSProductionReprocessing/WmAgentScripts/-/blob/master/unifiedConfiguration.json
instead of
https://raw.githubusercontent.com/CMSCompOps/WmAgentScripts/master/unifiedConfiguration.json
Note that code changes might be required as well, depending on how the auth/authz process is performed with CERN GitLab. If that is the case, code to be updated is:
https://github.com/dmwm/WMCore/blob/master/src/python/WMCore/ReqMgr/CherryPyThreads/AuxCacheUpdateTasks.py#L40C44-L40C55
Describe alternatives you've considered
Not at this moment, but for the long run, we need to see which Unified parameters are consumed within WMCore and migrate those to the relevant WM microservices. The P&R team expressed interest in having these parameters easily configurable, so such mechanism should be provided as well.
Additional context
None

@amaltaro @vlimant
It seems that WMCore is still using the Unified Config from the Github Repo. It needs to be updated to Gitlab, this jira issue here makes it more necessitous.
https://its.cern.ch/jira/browse/CMSTRANSF-724
@haozturk

one way to handle it is to use encryption of config and store it on github. Then, whoever who needs it need to decrypt it on upon downloading. The encryption tools (sops and age) are used by CMSWEB team to encrypt our secrets and can be easily added to any system (both are go tools which you can obtain as static executable).

After investigating the WMCore code, it looks like the Unified configuration is currently only consumed by MSOutput. The following parameters are used: tiers_to_DDM, tiers_no_DDM, tiers_with_no_custodial.
I am considering refactoring the current Unified configuration stored in central CouchDB, retrieved through:
https://cmsweb.cern.ch/reqmgr2/data/unifiedconfig/config
with only the relevant fields. Then we can add a validation function against the unifiedconfig API and let it be retrieved/updated through this REST API.

@haozturk @hassan11196 Hasan, Hassan, would it be reasonable if we actually stop fetching the Unified configuration from the repository and we adopt a push model, where you need to actually make the relevant changes through a REST call to ReqMgr2?
This is how a clean "Unified" configuration looks now:
https://cmsweb-testbed.cern.ch/reqmgr2/data/unifiedconfig/config
only with the parameters that are currently consumed by WMCore/Microservices.

Hi Alan, @haozturk and I agree, this is a good temporary solution.

Thanks @hassan11196 . Just so we are on the same page, what would be your long-term suggestion?

It doesn't make sense to me to push all the configuration there while only 2 or 3 fields matter for WMCore. Meanwhile unified will keep reading from the JSON file. In a sense we're again creating two data sources like campaigns. If we forget to sync, it might create issues. Either we should keep everything in WMCore and read from there as well. Or we push only the relevant configs and keep the rest for us. WMCore has many microservices and they are configured in different ways. Some MSOutput configs are configured via Unified. Some via their own internal configuration. Perhaps we should merge these scattered configurations. In this sense, I still think that there is room for improvement.

Hello @amaltaro, This issue was closed but we are still unclear on how to update the Unified Configutation on the link you provided.
https://cmsweb-testbed.cern.ch/reqmgr2/data/unifiedconfig/config
@haozturk

Thank you  for the update Alan.
We will create new issue to figure out how should we proceed with moving to a more centralized unified config i.e in couchdb.
@haozturk


Replace deprecated set-output in example-custom-ci-build-id by environment files

This PR resolves issue https://github.com/cypress-io/github-action/issues/674 "CI: example-custom-ci-build-id uses deprecated set-output method" by converting the use of set-output to the current recommendations for setting an output parameter from the GitHub documentation: Workflow commands for GitHub Actions.
run: echo "::set-output name=value::sha-$GITHUB_SHA-time-$(date +"%s")"
is replaced by
run: echo "value=sha-$GITHUB_SHA-time-$(date +"%s")" >> $GITHUB_OUTPUT
In addition some comment text has been updated, including changing references from Cypress Dashboard to Cypress Cloud. This was already generally changed in this repository by PR https://github.com/cypress-io/github-action/pull/641 from @mattvCypress.
Verification
View logs in https://github.com/cypress-io/github-action/actions/workflows/example-custom-ci-build-id.yml?query=branch%3Amaster, check that the runs are successful and that there is no deprecation message about set-output.

The change was successful.
Compare the successful fixed run from the PR<PHONE_NUMBER> which shows no deprecation warning with a previous run without the PR, such as<PHONE_NUMBER>.


When I do Scintilla.Undo(); everything gets undone

When I press CTRL + Z or i use the code Scintilla.Undo(); all of the text gets undone, how do I stop this, or make it undo in smaller chunks?

I figured it out, this code makes it so Undo() will undo only 1 char at a time
private void scintilla_BeforeInsert(object sender, EventArgs e) {     scintilla.BeginUndoAction(); } private void scintilla_KeyPress(object sender, KeyPressEventArgs e) {     scintilla.EndUndoAction(); }


Transmission: add env variable TRANSMISSION_HOME to manifest

TRANSMISSION_HOME env variable allows settings to be in the persist folder and not in the APPDATA folder.

As soon as someone update the manifest, current configuration will be lost.

ok.


Update ReporterPluginHost class with reportTestStart

What is your Test Scenario?
test('Test 1', async (t) => {
    await app.goRoot();
    await app.waitLoading();
    await allure.createStep('Check Help', async () => {
        await app.header.click('helpIcon');
        const title = await app.getPageTitle();
        await t.expect(title).eql('Docketing Portal');
    })();
});

What are you suggesting?
IReporterPluginHost has just method reportTestDone and doesn't have reportTestStart method so we don,t have ability to add something between test start and finish.
Fore example: it is impossible to add allure steps to tests which is very useful for e2e testing.
I suggest to add method for starting and finishing of test instead of handling all information in reportTestDone
What alternatives have you considered?
Additional context

I think this is a reasonable enhancement, however I cannot give you any estimates when we can implement it.

I can recommend using fixture hooks and tests hooks to solve the issue. I find it very suitable for your task.

The problem is that allure.createStep is a wrapper on test code to attach step to a report, but it have to be executed between allure.startCase and allure.endCase, which both run in reportTestDone after test execution. Hooks are not able to help there.

@Ivan-Katovich
Hello.
Thank you for the additional details. We will consider your suggestion.

We are also facing the same issue as @Ivan-Katovich, it is really a show blocker for Allure. hope it would be implemented soom

Hello @devmondo,
Thank you for your input. You are welcome to vote on this feature request (👍 ), so it gets more attention.

Guys, I have implemented the feature. It took about half a day. Please, let me know if you need the code.

Hi @Ivan-Katovich,
Yes, please. Your PR is welcome.

PR for the feature: https://github.com/DevExpress/testcafe/pull/3743

Guys, I have 2 tests failed in "continuous-integration/travis-ci/push" check. It doesn't relate with functionality I add. It looks like error.message returns full stack trace instead of short message which is in test assertion.
Both these tests don't touch my functionality. They relates with import of nonexistent module. So the PR will be ready when the test is fixed.

Hi @Ivan-Katovich
It's our problem. We are fixing it right now.

Hi guys
How can I restart the checks if they are failed on random tests unrelated with my changes ?

@Ivan-Katovich add the following comment to the PR @testcafe-build-bot retest

@VasilyStrelyaev need to add information about a new reporter method reporterTestStart in reporter-plugin/#implementing-the-reporter section.
        ...
        async reportFixtureStart (/* name, path, meta */) {
            throw new Error('Not implemented');
        },
        ---------------------------------
        async reporterTestStart () {
            throw new Error('Not implemented');
        }
       --------------------------------------

        async reportTestDone (/* name, testRunInfo, meta */) {
            throw new Error('Not implemented');
        },

        ....
 }

Done in https://github.com/DevExpress/testcafe/pull/3804


[release-1.16] update certs

This is an automated cherry-pick of #43461

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security-multicluster_istio_release-1.16
67b5eff45706ffc9fbfb9c3b14ca29c72cbf8b04
link
true
/test integ-security-multicluster

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


Should posX and posY of elements be renamed?

posX and posY aren't really accurate as it looks like posX represents period, and posY represents group, which aren't really in the X and Y directions. I would recommend renaming them to period and group respectively. Obviously this would have to be done in a major version upgrade but I think it'd probably be worthwhile.

The name of field is correct, it’s not period of the element, rather position in grid for Periodic table Table Display. This data is used to display  Periodic table in Molecule editor in http://crystallography-online.com/  The periodic table will be open source soon as well
Plz take a look:


GetPayoutsSummary uses wrong API endpoint

Calling GetPayoutsSummary makes a request to https://api.klarna.com/settlements/v1/payouts instead of https://api.klarna.com/settlements/v1/payouts/summary.
Line 38 in SettlementStore: https://github.com/klarna/kco_rest_dotnet/blob/7ed3a561ed4cbf1ec39105fd91789d6cf92c5c5e/Klarna.Rest/Klarna.Rest.Core/Store/SettlementStore.cs#L38
should probably replaced by
var url = ApiUrlHelper.GetApiUrlForController(ApiSession.ApiUrl, ApiControllerUri, "summary", nvm);

https://github.com/klarna/kco_rest_dotnet/commit/ac9096cc2fa31501d9e3614427e4e1039b96dc53
Fixed.

The change will be available in the next release.

v3.1.0 released!


Failed to Launch {Conflicts with Fabric [<0.30.0]}

For some reason, the newest version is giving me this? And I don't know what to do.

Also, there seems to be another crash if I download that version of Fabric API (Which doesn't support 1.16.4). The Log is below
latest.log

Mod Menu v1.15.0 and above requires Fabric API 0.30.0 or later in order to function due to new APIs that were added. The crash log you sent shows that some mod seems to be trying to hack into Mod Menu internals which have changed in this version:
[10:52:10] [main/WARN]: Error loading class: io/github/prospector/modmenu/ModMenu (java.lang.ClassNotFoundException: io/github/prospector/modmenu/ModMenu)
[10:52:20] [main/WARN]: Error loading class: org/spongepowered/asm/synthetic/args/Args$1 (java.lang.ClassNotFoundException: org/spongepowered/asm/synthetic/args/Args$1)
[10:52:22] [main/WARN]: Error loading class: org/spongepowered/asm/synthetic/args/Args$1 (java.lang.ClassNotFoundException: org/spongepowered/asm/synthetic/args/Args$1)
[10:52:50] [main/WARN]: Error loading class: io/github/prospector/modmenu/ModMenu (java.lang.ClassNotFoundException: io/github/prospector/modmenu/ModMenu)

However I'm not sure what mod is doing that, but it's definitely not supported behavior.


uxn: unstable-2024-04-15 -> 1.0-unstable-2024-05-06

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for uxn is: An assembler and emulator for the Uxn stack machine
meta.homepage for uxn is: https://wiki.xxiivv.com/site/uxn.html
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.0-unstable-2024-05-06 in filename of file in /nix/store/hyp4p4npb81k67j9fpd82mgkl73sml4p-uxn-1.0-unstable-2024-05-06

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

uxn

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/hyp4p4npb81k67j9fpd82mgkl73sml4p-uxn-1.0-unstable-2024-05-06 \
  --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 uxn https://github.com/r-ryantm/nixpkgs/archive/d68b47892b6bab89d77db56210d3b2cfe6a6eada.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/d68b47892b6bab89d77db56210d3b2cfe6a6eada#uxn

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/hyp4p4npb81k67j9fpd82mgkl73sml4p-uxn-1.0-unstable-2024-05-06
ls -la /nix/store/hyp4p4npb81k67j9fpd82mgkl73sml4p-uxn-1.0-unstable-2024-05-06/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 --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

2 packages built:

uxn
uxn.projects

Maintainer pings
cc @AndersonTorres for testing.

@NixOS/nixpkgs-merge-bot merge


Animate.css conflicting with Plyr

[ ] Issue does not already exist
[ ] Issue observed on https://plyr.io

Expected behavior
on full screen active only Plyr should be visible.
Actual behavior
after adding animate.css some divs from page are showing on top of full screen video.
everything is fine and working as expected without animate.css
Environment

Browser: chrome
Version:
Operating System: windows
Version: 8.1

Steps to reproduce

issue with chrome only

Relevant links

Closing this one as I think it's fixed but feel free to re-open if not solved in v3 👍


Syntax: Method chaining on 702

report error for non-functional method chaining on v702
see https://github.com/larshp/abapGit/issues/1775
and https://github.com/larshp/abapGit/issues/789#issuecomment-308173700
only non-functional method calls? https://archive.sap.com/discussions/thread/2119097

moving to https://github.com/abaplint/abaplint/issues/1399


chore: correct Spanner instance reference for ITs

Fixes #778.

@meltsufin @Neenu1995 : I was talking to @thiagotnunes , and we are not clear on why the changes in Commit https://github.com/googleapis/java-spanner-jdbc/commit/ea98b87345591b8126e56e3178c341f330d220da are needed. Can you explain why did we change the project? We think that this fix may not work again.


offboard::set_position_velocity_ned

Hello,
In the funtion
Offboard::Result Offboard::set_position_velocity_ned( PositionNedYaw position_ned_yaw, VelocityNedYaw velocity_ned_yaw);
What does VelocityNedYaw mean? Average velocity in each direction ?
Actual flying, I set different VelocityNedYaw,  the fly speed is always too fast.
Thanks.

It's actually a bit confusing. I believe what the speed sets is the "feed-forward" term for the control.
@Jaeyoung-Lim or @MaEtUgR maybe you can explain it better.

@happyzihao Could you elaborate on what do you man by too fast? Is it moving faster than the desired setpoint velocity?

@happyzihao you can limit the speed using the param MPC_XY_CRUISE.
The velocity that you add to the MAVSDK interface is a control feed-forward.

Note to self: we should describe that better in the API docs.

Thanks for your answers. In control, feed-forward usually used for disturbances or outer effects. How do you use velocity as feedforward?
For example the current point is [0, 0, 0] and the desired one is [10, 0, 0]. If we use set_position_velocity_ned(PositionNedYaw(10, 0, 0, 0),VelocityNedYaw(1, 2, 0, 0)), what happens?

Without getting into the details of controls, what are you trying to do?

I want the quadcopter to fly from its current point A to point B. I want to know what happens if vecotors AB and target velocity have different directions.

You want to fly from A to B, ok. And then you lost me.

Thanks for your answer. What I am trying to say is that we can send target velocity and target position using the command set_position_velocity_ned. Conisder that a drone is at point A and we set point B as the target point and also we consider a target velocity vector for the dorne. If we use the command set_position_velocity_ned to send the target velocity and pont but the vector from point A to B has different direction with target velocity, then what happens?
(I think that target velocity and vector from A to B should always have the same direction, but how the command handles the case if they are not)

Thanks. So I think when we send both the target velocity and target position, the output is a sum of the outputs of the separate position controller and velocity controller. Therefore, they can conflict each other.

Right.


Fix usage of Next-ViT

make Next-ViT optional by importing from Next-ViT repo only if Next-ViT model is used
use git submodule to include Next-ViT as external dependency (credit to hafriedlander)
replace shell script by installation instruction in readme

Fixes #193


Add page transitions in progress

The current next-router, does not work well with full page transitions. Page transitions cause a full page refresh when clicking on a variant/options. This can be revisited when React Router is integrated with NextJS. Further, there is some discussion in the nextjs queue to add functionality to allow for multiple layout components, this would  also help.

Moving to icebox for now.


[Bug]: gpt2 输出只有！

Your current environment

The output of `python collect_env.py`
Your output of `python collect_env.py` here

Model Input Dumps
No response
🐛 Describe the bug
python3 -m vllm.entrypoints.openai.api_server --mo
del /models/openai/gpt2 --host <IP_ADDRESS> --port 12345
curl <IP_ADDRESS>:12345/v1/completions
-H "Content-Type: application/json"
-d '{"model":"/share/fshare/common/models/openai/gpt2",
"prompt":"hello. ",
"temperature":0.7,
"max_tokens":128}'
output's text only "!",not correct answer.

Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Latest version，and model ：https://huggingface.co/openai-community/gpt2/tree/main

Which version of vLLM are you using? Can you show the output of collect_env.py? Please also link the HF repo you downloaded the model from.

Which version of vLLM are you using? Can you show the output of collect_env.py? Please also link the HF repo you downloaded the model from.

Which version of vLLM are you using? Can you show the output of collect_env.py? Please also link the HF repo you downloaded the model from.

Latest version vllm；and  model：https://huggingface.co/openai-community/gpt2/tree/main

Did you solve it?


portico header: Remove unnecessary type assertion

Is the unnecessary assertion a problem? I kinda like the readability of having the this be explicitly referenced.
We've had bugs in the past because someone moved code without thinking about this scoping, and I feel like using explicit this when we're going to reference it feels like it'll help avoid that.

Because of how the jQuery type annotations are set up, the this type annotation is not checked by TypeScript in this context—an incorrect annotation like this: HTMLMarqueeElement would pass silently. It’s better to let it be inferred.
If a contributor assumes that a this annotation denotes the scope of an enclosed this, they will be wrong, because this in function (this: Foo) {function () {this}} is scoped to the inner function. They need to learn the correct rule, which is that this is scoped to the innermost enclosing non-arrow function or method.
TypeScript knows the correct scoping, and will prevent the vast majority of these bugs as long as we don’t lie to it. Furthermore, Our ESLint configuration with prefer-arrow-callback makes non-arrow functions stand out (and we could consider adding func-style to make them stand out even more).

Thanks for the explanation. Yeah, I think looking at eslint-plugin-prefer-arrow-functions might be a good path forward here.

Here’s what that would approximately look like:

#30361


Don't include whitespace when parsing tags

Fixes #551

@pjkaufman I tried to come up with a more universal solution, so we explicitly name tagWithLeadingWhitespaceRegex and have helper method matchTagRegex to extract tags without whitespaces. So far it is not absolutely required, and we could just leave Move tags to YAML as is, but I think we might benefit from such helpers in future development

This looks fine to me.


Make Batch to contain only unique tx prevout refs

Part of solution for https://github.com/RGB-WG/rgb/issues/117

New notebook. Will fix signing


IOTA Experience Team Kickoff Meeting 2020-04-28

Time
UTC Tue 28-Apr-2020 18:00 (06:00 PM):

Timezone
Date/Time

US / Pacific
Tue 28-Apr-2020 11:00 (11:00 AM)

US / Mountain
Tue 28-Apr-2020 12:00 (12:00 AM)

US / Central
Tue 28-Apr-2020 13:00 (1:00 PM)

US / Eastern
Tue 28-Apr-2020 14:00 (2:00 PM)

London
Tue 28-Apr-2020 19:00 (07:00 PM)

Amsterdam
Tue 28-Apr-2020 20:00 (08:00 PM)

Moscow
Tue 28-Apr-2020 21:00 (09:00 PM)

Chennai
Tue 28-Apr-2020 23:30 (11:30 PM)

Hangzhou
Wed 29-Apr-2020 02:00 (02:00 AM)

Tokyo
Wed 29-Apr-2020 03:00 (03:00 AM)

Sydney
Wed 29-Apr-2020 05:00 (05:00 AM)

Or in your local time:

http://www.timeanddate.com/worldclock/fixedtime.html?msg=2020-04-28&iso=20200428T18
https://www.wolframalpha.com/input/?i=06PM+UTC%2C+Apr+28%2C+2020+in+local+time

Links
Meeting Minutes: https://hackmd.io/@IOTA-X-TEAM/Hy6wRYStI/edit
Agenda
in the future Extracted from xt-agenda labelled issues and pull requests from the IOTA Experience Team prior to the meeting.

Antonio Nardella: KickOff
Vlad Semenov: IOTA Streams Introduction and goals proposal
Q&A

Invited

Streams Experience Team
GoShimmer Experience Team
Bee Experience Team
Permanode Experience Team

Observers/Guests
Attend the meeting as a guest by calling in to Jitsi, using the links below. If you will be attending as a guest, please comment on this issue to let us know you'll be joining.
YouTube stream will follow
Notes
The agenda comes from issues labelled with xt-agenda across all of the IOTA Experience Team repositories in the iota-community org. Please label any additional issues that should be on the agenda before the meeting starts.
Joining the meeting

Link for participants: https://meet.jit.si/IOTA-Experience-Team
Password: iotaxteam
Stream:

Invitees
Please use the following emoji reactions in this post to indicate your
availability.

:+1: - Attending
:-1: - Not attending
:confused: - Not sure yet

Thanks everyone for participating!
Here a copy of the Meeting Minutes
IOTA Experience Team:
Meeting Minute
tags: X-Team Meeting kickoff
:::info

Location: Jitsi (Link will follow)
Date: Apr 28, 2020 6:00 PM (UTC)
Agenda

KickOff 20min

[name=Antonio]

IOTA Streams Introduction and goals proposal 45min

[name=Vlad]

Q&A

Participants:

Antonio (AN)
Vlad (VS)
Markus (herrpunkt)
SteveK
Vid201#2421
Huhn
Thibault Martinez
Dave [EF]
reiloy#1823
nuriel77
Dave [IF]
Charlie [IF]
Johnathan Shaffer [IF]
Jack Kerouac
Thoralf
Mat Yarger [IF]
rck
m
dr. Electron
XeeVee
Martin K.
Holger Köther [IF]
Daniel Thompson-Yvetot [IF]

Contact: Antonio Nardella<EMAIL_ADDRESS>Host: AN
Reference: - GitHub issue

:::
(Meeting is being recorded and will be published to a video streaming platform)
Antonio: Introduction to the IOTA Experience Team with presentation
Vlad: Introduction to IOTA Streams
:dart: IOTA Experience Team Kickoff - IOTA Streams
The goals have up to three priorities. A for highest, C for lowest
IOTA Streams Feedback (A)

Provide feedback over the IOTA Streams
Share your needs

“Channels Application step-by-step” joint blog post series (B)
The goal of the post is to explain in some detail decisions behind Channels - app messages and API. The post can consist of the following short sections:

main goal is to provide privacy and integrity -- hence TaggedPacket;
next, payload messages can be authenticated by Author in SignedPacket, hence Author needs signature (MSS) keypair;
Author's public key and Channel address must be bound, hence Announcement message;
need for Author's MSS keypair change, hence ChangeKey message;
session keys must be exchanged somehow, hence Keyload message;
public key based key exchange, hence Subscriber's NTRU keypair;
subscription mechanism is enabled with Subscribe/Unsubscribe messages, Subscriber’s NTRU public key is protected, hence Author's NTRU keypair;
messages can be linked in different ways, hence tree-like topology and links mechanism.

Select optimal Spongos PRP and hash function for embedded devices (C)
Spongos transform (PRP) and hash function directly impact performance of message processing and hash-based crypto (WOTS, MSS). Current choice of Troika and Keccak-F[1600] may not be the best choice for binary or embedded devices.
A possible plan includes the following steps:

Consider sponge-based algorithms
https://csrc.nist.gov/Projects/Lightweight-Cryptography
https://competitions.cr.yp.to/caesar-submissions.html
http://bench.cr.yp.to/primitives-aead.html
and hash-functions
https://blake2.net/
http://bench.cr.yp.to/primitives-hash.html
Run benchmarks on different platforms (PC, raspberryPi, android, etc.); compare results against Troika and Keccak-F[1600] permutations
Add implementations for PRP trait (https://github.com/iotaledger/streams/blob/master/iota-streams-core/src/sponge/prp/prp.rs#L12) and Hash trait (https://github.com/iotaledger/streams/blob/master/iota-streams-core/src/hash/mod.rs#L8)

Improve benchmarks (C)
Currently low-level crypto algorithms (Spongos PRP, WOTS and MSS) are benchmarked.

Make benchmarks more generic to allow benchmarking Spongos encryption with any PRP
Add benchmarks for Channels application, consider several use-cases: with short/medium/long messages, signed/unsigned packets, with/without NTRU keys, etc.
Report benchmark results in wiki/docs

IOTA Streams Integrations (B)

Compile IOTA Streams rust library for wasm target
Add convenience wrappers at javascript level
Integrate Channels app instead of MAM0 into existing projects

Serialization for Channels app using Protobuf3 library (C)
Implement Channels application serialization:
Select Author's and Subscriber's state variables (own keypair, trusted public keys, spongos states, etc.) (see https://github.com/iotaledger/streams/blob/master/iota-streams-app-channels/src/api/author.rs, https://github.com/iotaledger/streams/blob/master/iota-streams-app-channels/src/api/subscriber.rs);
add new message types: AuthorState, SubscriberState (see https://github.com/iotaledger/streams/blob/master/iota-streams-app-channels/src/message/mod.rs), implement ContextWrap, ContextUnwrap traits;
add API methods to serialize states.
:busts_in_silhouette: Q&A Round
Q: How much time is necessary to participate in?
A: This completely depends on your availability. Already by engaging 1h/week you can contribute on different goals.
Q: How much experience is recommended/required?
A: Experience is very subjective.. I'd say that to have fresh eyes on our software also helps us see things that we give for granted and might be even more helpful to make it a better experience for people approaching IOTA for the first time, while if you want to provide a proof-of-concept, more experience in IOTA will help you develop it faster..
Q:What does "Create a list of RFP’s for the EDF to fund Open Source development" mean? Is it like a soft-due-diligence to pre-filter the proposals before they get to the IF EDF team?
A: Example: the Experience team is working on Streams, and then we realize "wouldn't it be nice to have a simple to use npm package for this?"
Then this input would be provided to the EDF team (Mark primarily) and we can make a Request for Proposal for that particular task
So the Experience team essentially finds gaps in what is being offered right now by our products, and how to further extend / improve them
:writing_hand: Notes

Added the YouTube Stream.


User can still play after game is over

This seems to have been resolved in the most recent version.


About cesiumScriptRegex in buildModuleUrl

About removing some regular rules in this submission（#8251）, do you want to consider whether error will be reported when adding time stamp.

example:/((?:.*\/)|^)Cesium\.js(?:\W|$)/

@xiaobaogeit can you explain your context a bit more here? What problem are you trying to solve?
The PR that fixes the issue linked above, changed:
    var cesiumScriptRegex = /((?:.*\/)|^)cesium[\w-]*\.js(?:\W|$)/i;

to
    var cesiumScriptRegex = /((?:.*\/)|^)Cesium\.js$/;

This is to make sure it finds Cesium.js, and can guess the CESIUM_BASE_URL path correctly. Is your library file not called Cesium.js? Have you tried explicitly defining window.CESIUM_BASE_URL if this automatic check isn't working for you?

@OmarShehata  When a version stamp is added, there will be problems with the basic path obtained.
    <script type="text/javascript" src="/scripts/Cesium/Cesium.js?v=1.7"></script>

So we need to modify the regular
    var cesiumScriptRegex = /((?:.*\/)|^)Cesium\.js(?:\W|$)/;

Is that version stamp typically to invalidate cache or something else?
That seems like a reasonable change to me anyway - @mramato I noticed this would have worked before your PR here: https://github.com/CesiumGS/cesium/pull/8314
Would you have anything against putting that back in as suggested?

Just an oversight while trying to clean things up.  The old regex was too lenient and it would mistake files like CesiumSomething.js as being the location of Cesium.  Happy to look at a PR that make the query use case work without re-introducing the CesiumSomething.js issue.


Bootstrap on v21 repository fails

From<EMAIL_ADDRESS>on 2012-05-02T10:27:28Z
Spyder Version:  2.1.9 ( revision 8e43fb421809 from v21 repo)
Python Version:  2.7.2
Qt Version:      4.7.4, PyQt4 (API v2) 4.8.6 on Windows
What steps will reproduce the problem?

pull above noted revision
2 . try to launch using bootstrap.y What is the expected output? What do you see instead? Fails with this traceback:

C:\src\jedludlow-spyderlib-v21>bootstrap.py --gui pyqt
Executing Spyder from source checkout Revision 1926 :8e43fb421809, Branch: default

Patched sys.path with C:\src\jedludlow-spyderlib-v21
Skipping GUI toolkit detection
Traceback (most recent call last):
File "C:\src\jedludlow-spyderlib-v21\bootstrap.py", line 77, in <module>
QT_API = spyder.qt._modname
AttributeError: 'module' object has no attribute '_modname'

Or this traceback if PySide is selected:
C:\src\jedludlow-spyderlib-v21>bootstrap.py --gui pyside
Executing Spyder from source checkout Revision 1926 :8e43fb421809, Branch: default

Patched sys.path with C:\src\jedludlow-spyderlib-v21
Skipping GUI toolkit detection
Traceback (most recent call last):
File "C:\src\jedludlow-spyderlib-v21\bootstrap.py", line 76, in <module>
from spyderlib import spyder
File "C:\src\jedludlow-spyderlib-v21\spyderlib\spyder.py", line 74, in <module
>
from spyderlib.qt.QtGui import (QApplication, QMainWindow, QSplashScreen,
File "C:\src\jedludlow-spyderlib-v21\spyderlib\qt_init_.py", line 41, in <m
odule>
from PySide import *  #analysis:ignore
ImportError: DLL load failed: The specified procedure could not be found.

Please provide any additional information below
.
Potential fix to follow.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1013

From<EMAIL_ADDRESS>on 2012-05-02T08:46:17Z
Pull Request:
I back-ported the changes from the default repository that both Anatoly and Pierre had produced that solved this issue. They can be pulled from my clone at bookmark issue-1013. https://code.google.com/r/jedludlow-spyderlib-v21/ Tested on Win 7 (both ascii and non-ascii usernames, both PyQt and PYSide) and Ubuntu 11.10 (with just PyQt).
The clone should be open for code review, so feel free to hack them up. If the changes are satisfactory, please pull in the v21 repository.
Cc: ccordoba12 pierre.raybaut<EMAIL_ADDRESS>

From ccordoba12 on 2012-05-02T11:03:02Z
It's working great for me. If they are only backported commits, I think there shouldn't represent much of a problem, but let's wait until Anatoly or Pierre say something.

From<EMAIL_ADDRESS>on 2012-05-02T10:31:25Z
Labels: MS-v2.1

From ccordoba12 on 2012-05-02T12:09:52Z
I'll check installation in a virtualenv, and if everything goes well I'll merge this in in a couple of minutes.

From<EMAIL_ADDRESS>on 2012-05-02T11:09:36Z
Well, bootstrap is not a critical part. I've tested the checkout works on Linux and generally change seems ok. I can't say if it won't break packaging, because I always use Spyder from source. =)

From<EMAIL_ADDRESS>on 2012-05-02T11:15:18Z
I marked it critical because of the PySide failure more than the bootstrap problem. That said, I'm always running from source, too. For any other developers that do the same a bootstrap failure is critical :).

From ccordoba12 on 2012-05-02T12:18:18Z
Jed, one more thing I almost forgot: please update the changelog in your branch because you know better than me what these changes are about.

From<EMAIL_ADDRESS>on 2012-05-02T13:01:26Z
CHANGELOG has been updated.

From ccordoba12 on 2012-05-02T13:10:48Z
Ok, thanks a lot for your quick response. I merged it.
Status: Fixed

From<EMAIL_ADDRESS>on 2012-05-02T13:15:34Z
Status: Verified


Add support SUNION command

Add Support for the SUNION Command.
Descriptions:
Returns the members of the set resulting from the union of all the given sets.
Keys that do not exist are considered to be empty sets.
refer: https://github.com/microsoft/garnet/issues/181
And will support SUNIONSTORE soon.

@argsno marked this as draft for now, please mark it as "ready for review" when you're done :)

Hey @argsno! Any updates on this PR? Are you planning on adding SUNIONSTORE to it? LMK :) Thanks!

@TalZaccai Sorry, I've been a little busy lately.  There is no time to support SUNIONSTORE, I will fix the current comments as soon as possible

Hey @argsno! Any updates on this PR? Are you planning on adding SUNIONSTORE to it? LMK :) Thanks!

@TalZaccai Sorry, I've been a little busy lately. There is no time to support SUNIONSTORE, I will fix the current comments as soon as possible

Ah bummer! No worries, I'll reopen the work item for someone else to pick up... Thanks again!


Still alive or dead?

Description
No updates since January? Is this addon dead?
Expected behavior
Question of survival
Reproduction steps
Is it still in production?
Relevant log output
Not much

Operating system
HassOS
Install method
HassOS Addon
Version
3.0.0
Dev Version
No response
Any other information that may be helpful
Is this still in development?

Please have a read at https://github.com/hass-emulated-hue/core/discussions/228

Please, keep It alive!


added a notebook file

it contains work until exploratory data analysis i have done till now.
Pull Request for ML-Crate 💡
Issue Title:

Info about the related issue (Aim of the project) :
Name:
GitHub ID:
Idenitfy yourself:

Closes: #issue number that will be closed through this PR
Describe the add-ons or changes you've made 📃
Give a clear description of what have you added or modifications made
Type of change ☑
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested? ⚙
Describe how it has been tested
Describe how have you verified the changes made
Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.

Info about the related issue (Aim of the project) : World Crime Rate Analysis Issue on ML Crate
Name: Aditya Yash Raj
GitHub ID: https://github.com/aditya0402-debug
Idenitfy yourself: KWoC 2022 contributor


Add Support for request from sensors/gateway

Currently 'message-type' req is not supported by MyController.org. Add support for this

fixed


WebSocket connection to 'wss://domainname.com/app/ABCD123?protocol=7&client=js&version=5.1.1&flash=false' failed: Error during WebSocket handshake: Unexpected response code: 404

Pusher config in broadcasting.php
'pusher' => [
            'driver' => 'pusher',
            'key' => env('PUSHER_APP_KEY'),
            'secret' => env('PUSHER_APP_SECRET'),
            'app_id' => env('PUSHER_APP_ID'),
            'options' => [
                'cluster' => env('PUSHER_APP_CLUSTER'),
                'useTLS' => true,
                'encrypted' => true,
                'host' => '<IP_ADDRESS>',
                'port' => 6001,
                'scheme' => 'http'
            ],
        ]

Laravel Echo in app.js
window.Echo = new Echo({
    broadcaster: 'pusher',
    key: 'ABCD123',
    wsHost: window.location.hostname,
    wsPort: 6001,
    disableStats: true,
    encrypted: true
});

websockets.php
'apps' => [
        [
            'id' => env('PUSHER_APP_ID'),
            'name' => env('APP_NAME'),
            'key' => env('PUSHER_APP_KEY'),
            'secret' => env('PUSHER_APP_SECRET'),
            'path' => env('PUSHER_APP_PATH'),
            'capacity' => null,
            'enable_client_messages' => true,
            'enable_statistics' => true,
        ],
    ]

I have installed SSL with certbot and using nginx on an AWS EC2. I have also opened the TCP:6001 in security group.
my nginx config:
map $http_upgrade $type {
  default "web";
  websocket "ws";
}

server {
    server_name mydomain.com www.mydomain.tech;
    root /var/www/laravel-video-chat/public;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Content-Type-Options "nosniff";

    index index.html index.htm index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    error_page 404 /index.php;

    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ /\.(?!well-known).* {
        deny all;
    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

    location @ws {
    proxy_pass             http://<IP_ADDRESS>:6001;
    proxy_set_header Host  $host;
    proxy_read_timeout     60;
    proxy_connect_timeout  60;
    proxy_redirect         off;

    # Allow the use of websockets
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
  }

}

server {
    if ($host = www.mydomain.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    if ($host = mydomain.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    listen 80;
    server_name mydomain.com www.mydomain.com;
    return 404; # managed by Certbot

}

Please let me know where i am doing it wrong. I did a lot of work and everything is working fine in local environment. Facing this issue when i am testing this on EC2 with SSL.

It's my mistake. The issue is with the nginx configuration. I resolved it by changing the config like @web @ws format.

I have the same problem reported. What exactly did you do to solve it?

I have disabled the ssl and tls features. And I followed the configuration for nginx as specified in the package docs.


loading the model into GPU direct

there is any way to loading the llm model into the GPU memory direct not in CPU and then switch in GPU as i seen in monitor

Going to go ahead and close out the issue.


[Discussion] Adding support for dates and times

Introduction
There already is a PR that adds support for formatting dates in Typst, but as mentioned in the PR it would be great if we could implement this as an actual data type to add support for more advanced operations. I'd like to take a stab at doing this, but before I do that I first want to get the details of how this should look straight, which is why I'm opening this issue. Any input is appreciated! Most of this is heavily inspired by the time crate, since this is what I plan to use under the hood. As far as I've seen this crate also supports wasm bindings, so this shouldn't be any issue for the web app.
Design
I already tried to think a bit about how this could be implemented and came up with the following:
There will be four new data types (I'm still a bit unsure about this, see the discussion below):

date: represents a date
time: represents a time (within a date)
datetime: represents a date and a time
duration: represents a duration

Date
Similarly to how you can create a color with the rgb and hsv function, you can create a date with a date function:
date(year: int, month: int, day: int, format: string) -> date
All arguments of this function are positional, and year, month and day are required. If no format is specified, it will be YYYY-MM-DD by default. The format attribute is settable.
In addition to that, a date has the following methods:
.display() -> string (Returns the string representation of a date in the format defined. By default, it's "YYYY-MM-DD"
.year() -> int (Returns the year of the date)
.month() -> int (Returns the month of the date)
.day() -> int (Returns the day of the date)
.add(duration: duration) -> date (Returns a new date with the duration added.)
.sub(duration: duration or date) -> date or duration (If a duration is passed, it returns a new date with the duration subtracted from it. If a date is passed, it returns the difference of the two dates as a duration.)
.set_year(year: int) (Sets the year of the date)
.set_month(month: int) (Sets the month of the date)
.set_day(day: int) (Sets the day of the date)
Time
Looks exactly the same as date, but instead with hour, minute second and millisecond. In theory we could also add microseconds and nanoseconds since it's supported by the crate, but not sure if it's worth it considering that they aren't that commonly needed, at least in my experience
Datetime
Same as date and time, but with its fields combined.
Duration
A duration is similar to a timedelta in Python, i.e. it allows us represents time distances in a quantifiable way. We can create a duration using the duration function:
duration(week: int, day: int, hour: int, minute: int, second: int, millisecond: int) -> date
All of the arguments are positional and none are required. So if we want to represent a time delta of one minute, we can just do #duration(minute: 1).
Discussion
So that's a first idea, however, there are still a few points I'm unsure about / not happy with, so I'd love to get some more input. In particular:

I'm still a bit unsure if the format of the date (same for time and datetime) should be defined in the function to create a date or if it should instead be passed to the display method. To me it makes more senes to pass it to the display method, because the way I want to format a date shouldn't be tied to the date object itself. On the other hand, the reason I currently store it in the date object is that it would allow me to write something like #set date(format: "DD.MM.YYYY") which I think is pretty neat and also fits well into how it works for other functions.
I don't know if we really should define three different types for dealing with dates, times and datetimes. I think it's kind of much and a bit repetitive. We probably could instead implement just datetime and make year, month etc. optional named arguments, so that it is still possible to store just a time in datetime. On the other hand, I do like the explicitness in doing it this way, because I think it does happen often that you want to deal with dates/times/datetimes separately.
I'm not sure if we really should have separate set_year, set_month etc. methods or if it could instead be possible to make an update method that takes a dict like (year: 2019, month: 11) and then updates the date accordingly (same for time and datetime).
I would like to also add the option to create a date/time/datetime based on a string, but not sure what the best way of adding this is. Does it make sense to create a custom module for dealing with dates and so on and then add a parse_date, parse_time and parse_datetime function?

Any thoughts?

if this is a Discussion, be sure you share in Discussion.

(You can use same explain as markdown.)

I think it's fine to discuss in the issue. @LaurenzV setting the format on the date isn't possible because only functions that return content elements can have settable parameters.

I haven't read through the full proposal yet, will do so later. Thanks for the detailed write-up already!

I think it's fine to discuss in the issue. @LaurenzV setting the format on the date isn't possible because only functions that return content elements can have settable parameters.

Ahh okay, that's unfortunate, so I guess this wouldn't work then... I'll see if I can come up with something else.

Or maybe we could introduce a format method that takes an int/float/time/date/datetime and a pattern, and returns a string of the data type formatted? And then you could do something like #show date: it => format(it, "%Y-%m-%d")? But this would imply overriding the default string representation of the data types, not sure if that's very clean.

The thing is that show like set can only be applied to content because it depends on the style and content can defer its appearance until styling is resolved. If the format returns a string, this string must be known before styles are resolved, during evaluation. The example below illustrates this a bit. What would you expect #d, #content, and #text to print each time?
#let d = date(year: 2023, month: 3, day: 25)
#let content = [#d]
#let text = content.text

#set date(format: "%Y-%m-%d")
#d
#content
#text

#set date(format: "%d-%m")
#d
#content
#text

Hmm alright, so this probably is not going to work then.
I guess the best option in this case would still to just go with the .display(format) method which returns the string representation of the date? Now that I think about it I think it shouldn't be too bad (if you use the same date in multiple positions you can just store it in a variable), and if you have multiple dates you can just store the pattern in a variable and then do .display(pattern) for each date that you use.
Would be nice if there were an option to set that for all dates, but I guess this is good enough for now. 😄 Unless you have other ideas?

Maybe a possible design is to use something like

built-in function displaydate(<formatter function>, <date object>) -> [content] that is used every time a date should be used as/is converted to a content
method <date object>.format(<pattern>) -> str
then you can #set displaydate(format: x=>x.format("%Y-%m-%d"))

@SekoiaTree I've already started working on this. 👀 But I haven't created a draft PR yet because some of the details aren't clear yet (see the above-mentioned discussion points) and I'm still experimenting around a bit.

Alright! If you want my two cents:

a single combined datetime object sounds easier to me
mutability is fine since you can't mutate external let's
no idea if this is possible, but couldn't you #set datetime.display(format: since that returns content, avoiding a callback setup

Awesome, thanks! If it's okay with you I can also message you on Discord if I'm stuck or if I end up not having the time to implement it so that you can keep working on it.

Sure, no problem. I'm Sekoia on discord

@SekoiaTree I would let it depend on whatever is set in text. So for example if someone sets #set text(lang: "de"), the date should use the German version as well.

As a non-native speaker of English, I would argue typst files should default to English, that to be easily overridden per-document, and then each document should be able to contain sections with different localization rules[1] (and that should affect all kinds of things, from hyphenation to dates).
[1]: There's plenty of paperwork that has to e.g. mention availability of translations in every legally required language for the country, while the main document is in one language.

Not sure if this is the right place to bring that up but i would really appreciate the possibility to insert the current date/month/year into my documents.
Basically something like today in latex.

It's being worked on. :)

@LaurenzV That’s great. Thanks for all your efforts :)

As the maintainer of time, let me know if anything is needed upstream!

@jhpratt I actually do have a question! I'm actually mostly done with the PR and the crate seems to have everything we need so far, but in the long term it would be nice if it were possible to somehow provide custom translations (or somehow embed them into time itself) for the textual representations of months/weekdays. Do you think this would be feasible, and if so, what the best way to implement this would be?
This is not holding up the PR or something as I think having just the English one is fine for now, but in the future it would be nice if the language could be adapted.

When I first took over time in 2019, there actually was support for a large number of locales for formatting and parsing, but it was decided to remove that prior to the first release under my maintenance. The only effort to my knowledge implementing internationalization on this front is icu4x, which uses CLDR as the backing data (the same thing I used in 2019).

I see, thanks! I did take a look at icu4x, but it seems like currently it is very limited in the ways you can customize the look of the date (you can only choose between things like long, medium and short, while for Typst I think it's important that you have more control over where each of the components is displayed, which is why I didn't end up using it. So I'll have to think of something else then.

Providing access to month and weekday names for a given locale would probably suffice as a minimal API in my opinion.

Closing as #435 was merged.


Possible to only update database record column value when empty?

Hi,
Thanks for the awesome package. Is it possible to only update a value if it is empty in the updated record?
For example, I have a database with products that have an "image" column. I am using upsert to quickly insert new or update existing products. When a product already exists in the database, the update is fired. With this, is there an easy way to check if the database product already has a value in image, and if now, update it?

What database are you using?

MariaDB

Does "empty" mean an empty string or null?

Preferably null, but whatever comes closest 😄

It's possible with a raw expression:
Product::upsert(
    $values,
    $target,
    [
        'image' => DB::raw("if(`image` is null, values(`image`), `image`)"),
        // TODO: Add the other columns that should be updated.
    ]
);

Thanks! Works like a charm!


Autoscaling doc update to match changes in istio-proxy container template

Fixes #5662

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: rshriram
Assign the PR to them by writing /assign @rshriram in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

samples/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


[Backport] Support SciPy1.0+

This PR is backport of #1573.

jenkins, test this please.

LGTM

Jenkins CI test (for commit d0b741dc04fc0877e7664444ff6e646c5d28ea59, target branch v4) succeeded!


add background to system-context-menu

I started using Hyper recently and I think it's amazing. I did notice though, that the Open Hyper Here explorer option was only enabled on directories themselves. So I decided to add a background instance myself. This allows the same option to open up when right-clicking inside directories/desktop.

@LevitatingBusinessMan is this still needed? I can currently right click inside directories and get the "Open Hyper here" option?

In that case I guess not, the code is pretty badly written anyway. I'll be closing it.


fix: set import filter to nearest instead of linear

Motivation and Context
There was some graphic artefact on top of thief because of texture filter we used linear which is not suited to pixel art assets.
How has this been tested?
Move to left or right and see the small horizontal line above the head of thief.
Screenshots (if appropriate):
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

Sniper of graphic artifact !


You're charging for providing an illegal service?

We don't condone the use of this tool for illegal activities, but it seems that according to your Telegram account, it suggests "reduced prices" for the service.
Can you explain why you are offering this as a paid service?

If you are talking about this telegram bot: https://t.me/beast_bomberr_bot, then the paid service consists in a ready-made solution, namely, the user does not need to buy a proxy, install a script, and so on, everything has already been done and configured for him. The bot itself is not paid, the bot only has a paid premium subscription and some additional features that you can buy.

I can give an example of many similar bots and I doubt that this bot violates any laws, at least in my country. SMS or email spam is nothing more than a joke.


<> doesn't work right in case-insensitive mode

<<EOF>> is treated as a regex that is special-cased in several places.  When %option case-insensitive is in effect, it's rewritten as <<[Ee][Oo][Ff]>> and loses its special powers.
Patch coming momentarily.

Thanks for the feedback. I'll update reflex in version 1.5.5. It requires only a minor change to fix this issue.


Code review

This obviously isn't intended to be merged

Very stale. Closing. Thanks! Please open a new PR if there is still a relevant change.


Using "azureDNS" for the DNS01 Solver results "Multiple user assigned identities exist, please specify the clientId / resourceId"

Opening new Issue for this.   The following configuration results in the error.  The configuration requires a ClientId to specify what Identity should be used.  Many AKS deployment will have multiple Identities.
    solvers:
    - dns01:
        azureDNS:
          subscriptionID: xxxxx-xxxx-xxxx
          resourceGroupName: rg-name
          hostedZoneName: xxx.local

Error
[controller.go:158] cert-manager/controller/challenges "msg"="re-queuing item due to error processing" "error"="azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscriptions/xx/resourceGroups/xx/providers/Microsoft.Network/dnsZones/xx/TXT/_acme-challenge.openjdk-demo?api-version=2017-10-01: StatusCode=400 -- Original Error: adal: Refresh request failed. Status Code = '400'. Response body: {\"error\":\"invalid_request\",\"error_description\":\"Multiple user assigned identities exist, please specify the clientId / resourceId of the identity in the token request\"}" "key"="default/tls-secret-llvzd-xx"

As closed issue 328

I landed here as well with the same issue. We are using kube_dashboard and hence have the omsagent Identity assigned to the nodes as well. Thus we cannot use cert-manager with Azure DNS and MSI for now :( would be great if support for selecting the right identity could be added!

Actually, there is an open PR for this :) https://github.com/jetstack/cert-manager/pull/4332


Client Allocation Request for: Guangdong Zhongke Zhiyun Technology Co., LTD

Client Allocation Questions
Core Information

Name: Guangdong Zhongke Zhiyun Technology Co., LTD
Website / Social Media: http://www.gdzkzy.cn/
Region: Greater China
DataCap Requested: 100TiB
Addresses to be Notarized: f3tct62bxuqrmunacbnuq464q4kineqyvo36mca54dtek35rkvh2afdkt4h7jno5vearn26o4stcflbvkoxj6a
Notary Requested: ozhtdong

@zhiyun11 Please subscribe to notifications for this Issue to be aware of updates. Notaries may request additional information on the Issue.

Hello, @ozhtdong.

Hi, we are not assgined to this issue, could please apply again?


Button with a label

[x] I have searched the Issues to see if this bug has already been reported
[x] I have tested the latest version

Steps to reproduce

Make a button
Assign a label

Current behavior
The label doesn't exist on the button
Expected behavior
The label should be added to the button
Context
https://www.flowbite-react.com/docs/components/button#button-with-label

The issue is probably here:
https://github.com/themesberg/flowbite-react/blob/c3bf704dd9775390a5efac638d84192b588fcbbd/src/components/Button/Button.tsx#L153
Please, introduce a unit test to cover the scenario to avoid future regressions.

The issue is probably here:
https://github.com/themesberg/flowbite-react/blob/c3bf704dd9775390a5efac638d84192b588fcbbd/src/components/Button/Button.tsx#L153
Please, introduce a unit test to cover the scenario to avoid future regressions.

If both children and label are set what should happen?
<Button label="2">       Messages     </Button>

https://flowbite.com/docs/components/buttons/#button-with-label


UX-Whiteboard handler functions

Can you add a summary to each of the functions?

@RaswanthMurugan20 @tripathiarpan20 The UX team deals with Client and server project only. The Whiteboard project was a class library for the Whiteboard team. I will reset the repo back, kindly make the according to changes and make a PR again.

I see, I assumed the layout of the project to be otherwise.
Thanks


Where can I see all the icons to use?

Where is all the icons gallery?

        I created this set of icons by<EMAIL_ADDRESS>over some icons from https://feathericons.com/ But I think i have noticed feathericon published as a separate package by the creators itself. And I would recommend switching to that or even use icons from https://heroicons.com/I am using this library of mine in few of my projects hence i might add more icons i might use to this but its not sure as of now.Thanks for understanding.---- On Fri, 17 Dec 2021 00:54:44 +0530  ***<EMAIL_ADDRESS>wrote ----

Where is all the icons gallery?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>


Un-styled scrollbars appear after waking from sleep if external mouse is plugged in

Steps to reproduce:

Ensure that no external mouse is plugged in
Put computer to sleep
Plug in external mouse (preferably a non-Apple mouse with a scroll wheel)
Wake computer from sleep
Atom will have un-styled scrollbars

OS X 10.10.3

System Preferences > General > Show scroll bars > Automatically based on mouse or trackpad

Atom 0.209.0 (but I've noticed this for many versions now)

Can anyone else reproduce this? (@atom/feedback?)

This actually only happens with the most-recently focused window, as it turns out.

@mnquintana I also able to occasionally repro this on linux

In https://github.com/atom-community/linter/issues/786 I noted that I was only able to get the somehow glitched scrollbars when the last thing I had open/focussed in Atom before I closed it was settings-view. So when you start Atom again, settings-view is the first thing it shows, if you tab away from it once, the bug disappears.

This happens to me almost every time after sleep.
I'm using OSX 10.10.5, Atom 1.0.9 and Magic Mouse.

This happens to me on linux with atom 1.2.0 every time I start atom and it reopens a file. Once I switch to another file and back, it fixes itself.
I did not have this problem with atom 1.0

@nkovacs That is a different bug that has been resolved in 1.3.0-beta2 which should be out soon.


pyproject.toml does not mean you want to use poetry

After adding a pyproject.toml file to configure https://github.com/ambv/black this plugins suddenly outputs "poetry not found! Install it according to the poetry docs.".
I do not intend to use poetry, and PEP-518 is not in any way tied to poetry alone.
As a workaround I know I can add usePoetry: false to serverless.yml, but I don't think it's a good idea to automatically tie pyproject.toml to poetry as there are other use cases for it.

Thanks for the push. I was concerned about this potentially being an issue: https://github.com/UnitedIncome/serverless-python-requirements/pull/308#discussion_r249251517 & https://github.com/UnitedIncome/serverless-python-requirements/pull/308#issuecomment-463204257
Am I right in reading pep 518 that there's no explicit declaration in the toml of what tool is being used? Should the plugin infer that you're using poetry if there's a  [tool.poetry] section?

I am having the same issue after adding Black to my project, here is my pyproject.toml file:
[tool.black]
line-length = 79
py36 = true
skip-string-normalization = true
exclude = '''
/(
    \.serverless
    | node_modules
)/
'''

Poetry isn't referenced anywhere.  This should not be the default behavior.

I have not studied PEP 518 since I just wanted to do some simple configuration for black, so I'm not the best source here :disappointed:
From my simple understanding you have to look at the requires key under the build-system table. This will be an array that either contains "setuptools", "wheel", "flit" or "poetry".
Example:
[build-system]
requires = ["setuptools", "wheel"]

If I understand correctly ["setuptools", "wheel"] means you want to use setup.py. The other two are pretty self explanatory and means you want to use "flit" or "poetry".
So I think for simplicity you can assume that if [build-system] is not present, or requires is anything else than ["poetry"] the user does not want to use poetry.

What's the status on fixing this? I, too, have added pyproject.toml to use Black. requires = ["setuptools", "wheel"] doesn't seem to fix the issue for me; still getting poetry not found! Install it according to the poetry docs..

@s16h
What I did in my case was to disable poetry from the Python Requirements configuration in serverless.yml:
pythonRequirements:
    usePoetry: false

@s16h as @BigChief45 mentioned, you can explicitly disable poetry. I will do my best to try and work on this next week.


⚠ ClamAV has degraded performance

In 60e8a00, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 429 ms

Resolved: ClamAV performance has improved in 7725a02.