text:
Knowledge graph-passing in triplets

Hi
The understanding I am getting from the documentation is that I can pass a triplet defining the nodes and relationship that I would like to be extracted from a document. If that's true could you please illustrate an example on how to do that and also if i can have a list of triplets. I am assuming it is done in the GPTKnowledgeGraphIndex call using the kg_triple_extract_template  parameter. I would really appreciate your help and looking forward to hearing from you
Thanks
Nawar

@nawara72 Are you saying you have triplets you want to use already?
Currently, the GPTKnowledgeGraphIndex uses LLM calls to extract triplets, by asking the LLM itself to extract them. That template parameter is used if you have a more specific prompt than the default prompt. Also check out the demo notebook for some best practices.

Thanks Jerry for your quick reply. I am newbie to all of this so excuse my
ignorance,.
Yes I  was hoping if I want to extract specific  information/relationships
from a document that I can pass in for eg a triplet describing the source
and target nodes and the relationship. For eg if i  specifically want
(parent, has-daughter, child). Is that possible?
I will also check the example u mentioned
Thanks
On Wed, 1 Mar 2023, 2:02 pm Logan, @.***> wrote:

@nawara72 https://github.com/nawara72 Are you saying you have triplets
you want to use already?
Currently, the GPTKnowledgeGraphIndex uses LLM calls to extract triplets,
by asking the LLM itself to extract them. That template parameter is used
if you have a more specific prompt than the default prompt
https://github.com/jerryjliu/gpt_index/blob/main/gpt_index/prompts/default_prompts.py#L240.
Also check out the demo notebook
https://github.com/jerryjliu/gpt_index/blob/main/examples/knowledge_graph/KnowledgeGraphDemo.ipynb
for some best practices.
—
Reply to this email directly, view it on GitHub
https://github.com/jerryjliu/gpt_index/issues/577#issuecomment-1449156592,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKRCCCZZYSDJXUUM3LG5SUDWZ2N2HANCNFSM6AAAAAAVLMTKRA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
This electronic transmission and any documents accompanying this
electronic transmission contain confidential information belonging to the
sender. This information may be legally privileged. The information is
intended only for the use of the individual or entity named above. If you
are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or the taking of any action in reliance
on or regarding the contents of this electronically transmitted information
is strictly prohibited.
To ensure compliance with legal requirements and
to maintain cyber security standards, our IT systems are subject to ongoing
monitoring, activity logging and auditing. This monitoring and auditing
service may be provided by third parties. Such third parties can access
information transmitted to, processed by and stored on our IT systems.

All credit goes to @logan-markewich not me :)
Oh that's interesting, you want to extract specific relationships. That's something you could consider putting in the query call

Yes, we definitely support that! It might take some trial and error to find the correct prompt, but here's an example
from gpt_index.prompts.prompts import KnowledgeGraphPrompt

kg_prompt =     "Some text is provided below. Given the text, extract up to "
    "{max_knowledge_triplets} "
    "knowledge triplets in the form of (parent, has daughter, child). Avoid stopwords.\n"
    "---------------------\n"
    "Example:"
    "Text: Alice is Penny's mother."
    "Triplets:\n(Alice, has daughter, Penny)\n"
    "Text: Phil's daughter Amy owns a coffee shop in New Orleans, while his daughter Amanda owns a book store.\n"
    "Triplets:\n"
    "(Phil, has daughter, Amy)\n"
    "(Phil, has daughter, Amanda)\n"
    "---------------------\n"
    "Text: {text}\n"
    "Triplets:\n"
)
kg_template = KnowledgeGraphPrompt(kg_prompt)

index = GPTKnowledgeGraphIndex(
    documents,
    chunk_size_limit=512,
    max_triplets_per_chunk=2,
    llm_predictor=llm_predictor,
    kg_triple_extract_template=kg_template
)

Also what Jerry said works too!

Thank you both for your help. I have tried what you suggested but i am sure i am doing something wrong. This is all new to me so excuse me for wasting your time. I am sure i am misunderstanding the format, I am getting an error when running
kg_prompt =     ("Some text is provided below. Given the text, extract up to "
"20 "
"knowledge triplets in the form of (plant, is_cure, ailment). Avoid stopwords.\n"
"---------------------\n"
"Example:"
"Text: Chamomile for the skin (topical) may be used to treat skin irritation from radiation cancer treatments."
"Triplets:\n(Chamomile, is_cure, skin irritation)\n"
"Text: Echinacea is commonly used to treat or prevent colds, flu, and infections, and for wound healing.\n"
"Triplets:\n"
"(Echinacea, is_cure, colds)\n"
"(Echinacea, is_cure, flu)\n"
"(Echinacea, is_cure, infections)\n"
"(Echinacea, is_cure, wound healing)\n"
"---------------------\n"
"Text: {text}\n"
"Triplets:\n"
)
I am getting the following error when running the above line
ValueError                                Traceback (most recent call last)
Cell In[18], line 19
1 # NOTE: can take a while!
2 kg_prompt =     ("Some text is provided below. Given the text, extract up to "
3     "20 "
4     "knowledge triplets in the form of (plant, is_cure, ailment). Avoid stopwords.\n"
(...)
17     "Triplets:\n"
18 )
---> 19 kg_template = KnowledgeGraphPrompt(kg_prompt)
22 index = GPTKnowledgeGraphIndex(
23     documents,
24     chunk_size_limit=512,
(...)
28     llm_predictor=llm_predictor
29 )
File ~\Downloads\gpt_index\gpt_index\prompts\base.py:42, in Prompt.init(self, template, langchain_prompt, **prompt_kwargs)
38     tmpl_vars = {
39         v for _, v, _, _ in Formatter().parse(template) if v is not None
40     }
41     if tmpl_vars != set(self.input_variables):
---> 42         raise ValueError(
43             f"Invalid template: {template}, variables do not match the "
44             f"required input_variables: {self.input_variables}"
45         )
47     self.prompt: LangchainPrompt = LangchainPrompt(
48         input_variables=self.input_variables, template=template, **prompt_kwargs
49     )
50 else:
ValueError: Invalid template: Some text is provided below. Given the text, extract up to 20 knowledge triplets in the form of (plant, is_cure, ailment). Avoid stopwords.
Example:Text: Chamomile for the skin (topical) may be used to treat skin irritation from radiation cancer treatments.Triplets:
(Chamomile, is_cure, skin irritation)
Text: Echinacea is commonly used to treat or prevent colds, flu, and infections, and for wound healing.
Triplets:
(Echinacea, is_cure, colds)
(Echinacea, is_cure, flu)
(Echinacea, is_cure, infections)
(Echinacea, is_cure, wound healing)
Text: {text}
Triplets:
, variables do not match the required input_variables: ['max_knowledge_triplets', 'text']

@nawara72 no worries, happy to help! 💪🏻
So, the prompt needs to have two variables in it (ike my original example) which are ->
{max_knowledge_triplets} and {text}
I think you are missing the {max_knowledge_triplets} variable in your prompt. Keep the variable in the prompt, and then you can set this number when you create the index:
index = GPTKnowledgeGraphIndex(
    documents,
    chunk_size_limit=512,
    max_triplets_per_chunk=2,  <--- this one
    llm_predictor=llm_predictor,
    kg_triple_extract_template=kg_template
)

Sorry I misunderstood, now it works perfectly. I just ran it and most of the nodes and relationships are correct and guessing some of the incorrect connections are due to the model
Thank you both for your help and patience and thanks for this library

thanks @logan-markewich for the amazing help! going to close this issue for now

I was wondering is there a way to add properties to both nodes and relationships in the knowledge graph?
Thanks

@nawara72 can you give an example of what you mean, or how that would work?

Thanks for your reply Logan. For eg if i have a sentence
Jerry who is 44 years old male has been friends with Ann for 10 years.
So we have  nodes
Jerry (with properties Age: 44, gender: male)
Ann (no properties)
and a relationship
friends (with property duration:10 years)
I use neo4j for generating knowledge graphs and you can assign various
properties to nodes and relationships eg (from neo4j page)
[image: image.png]
It would be great if I can add properties to nodes and relationships in a
knowledge graph.
Thanks
Nawar
On Thu, Mar 2, 2023 at 12:40 PM Logan @.***> wrote:

@nawara72 https://github.com/nawara72 can you give an example of what
you mean, or how that would work?
—
Reply to this email directly, view it on GitHub
https://github.com/jerryjliu/gpt_index/issues/577#issuecomment-1451035500,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKRCCC4OYZ3XFVG5CAVJYFTWZ7M6VANCNFSM6AAAAAAVLMTKRA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Nawar Alwesh
Senior Research Scientist
CallaghanInnovation
@.***
www.callaghaninnovation.govt.nz
--
This electronic transmission and any documents accompanying this
electronic transmission contain confidential information belonging to the
sender. This information may be legally privileged. The information is
intended only for the use of the individual or entity named above. If you
are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or the taking of any action in reliance
on or regarding the contents of this electronically transmitted information
is strictly prohibited.
To ensure compliance with legal requirements and
to maintain cyber security standards, our IT systems are subject to ongoing
monitoring, activity logging and auditing. This monitoring and auditing
service may be provided by third parties. Such third parties can access
information transmitted to, processed by and stored on our IT systems.

hmm there isn't really a way to do that right now.
This might sound hacky, but one way to do it is get all your triplets using the KnowledgeGraphIndex, and then use another vector index created from the same documents, where you present the index with a triplet and then ask the vector index to provide properties? But that will get very complicated very fast haha

Hi Logan
Thanks for your reply. Yikes that sounds quite complicated. Might leave it
for now
Thanks again for all your help, really appreciate it
Kind regards
Nawar
On Thu, Mar 2, 2023 at 3:44 PM Logan @.***> wrote:

hmm there isn't really a way to do that right now.
This might sound hacky, but one way to do it is get all your triplets
using the KnowledgeGraphIndex, and then use another vector index created
from the same documents, where you present the index with a triplet and
then ask the vector index to provide properties? But that will get very
complicated very fast haha
—
Reply to this email directly, view it on GitHub
https://github.com/jerryjliu/gpt_index/issues/577#issuecomment-1451189374,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKRCCC5YGKRJBPXK2NPTIVDW2ACOTANCNFSM6AAAAAAVLMTKRA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Nawar Alwesh
Senior Research Scientist
CallaghanInnovation
@.***
www.callaghaninnovation.govt.nz
--
This electronic transmission and any documents accompanying this
electronic transmission contain confidential information belonging to the
sender. This information may be legally privileged. The information is
intended only for the use of the individual or entity named above. If you
are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or the taking of any action in reliance
on or regarding the contents of this electronically transmitted information
is strictly prohibited.
To ensure compliance with legal requirements and
to maintain cyber security standards, our IT systems are subject to ongoing
monitoring, activity logging and auditing. This monitoring and auditing
service may be provided by third parties. Such third parties can access
information transmitted to, processed by and stored on our IT systems.

hmm there isn't really a way to do that right now.
This might sound hacky, but one way to do it is get all your triplets using the KnowledgeGraphIndex, and then use another vector index created from the same documents, where you present the index with a triplet and then ask the vector index to provide properties? But that will get very complicated very fast haha

@logan-markewich : I am interested in implementing this, is there an example or pseudocode to achieve this? I also have case node has properties.
In addition I have another question,
I am trying to combine structured and unstructured together in a KnowledgeGraphIndex. For structured data, I am manually creating tuples and adding them to the index. The part which is unclear is, the tables can have foreign key, so when I am adding tuples for a table which has foreign key as Subject or Object, how do I refer them? How do I tell the index to refer the node which is already existing.

authors: jerryjliu karrtikiyer logan-markewich nawara72


text:
Request for Document Weighting Feature in gpt-index

Can different weights be assigned to multiple documents used as embeddings when querying a large language model through gpt-index library?
When working with a corpus consisting of multiple documents, prioritizing certain documents over others in the event of multiple index query matches can be useful.
Is this feature currently available or can it be added in the future?
Thanks for your time.

I was going to suggest a similar enhancement but at the index level. That is, given is a set of distinct (list, tree or similar) indices over sets of documents, I'd like to give more weight to one (or more) of these indices over the others because, for example, this index is constructed over 'local' documents vs. external ones, and so its contents should override any content present in the other, less relevant, indices).

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
[Question]: Is it possible to mix index data from both files and URLs?

Question Validation

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

Question
How can I insert and run an index created from a file into an index created from a URL using 'llamaindex'?
`import os, sys, json,logging
from dotenv import load_dotenv
from llama_index import SimpleDirectoryReader, StorageContext, ListIndex, LLMPredictor, Document, load_index_from_storage
from langchain.chat_models import ChatOpenAI
from llama_index.langchain_helpers.agents import create_llama_chat_agent, IndexToolConfig
load_dotenv()
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, force=True)
text_list = ['A.txt','B.txt']
index = ListIndex([])
doc_chunks = []
for i, text in enumerate(text_list):
doc = Document(text=text, id_=f"doc_id_{i}")
doc_chunks.append(doc)
for doc_chunk in doc_chunks:
index.insert(doc_chunk)
llm = OpenAI(model="gpt-4", temperature=0, max_tokens=2048)
service_context = ServiceContext.from_defaults(llm=llm)
documents = SimpleWebPageReader(html_to_text=True).load_data(
[
"http://paulgraham.com/worked.html",
]
)
index = ListIndex.from_documents(documents, service_context=service_context)
index.storage_context.persist(persist_dir="index")`

Thank you for your response. Should I implement the BaseIndex as shown in the following source code in the sample code?
'from llama_index import BaseIndex'

@Ma-Fukudama I think what the bot meant is that you can do that with a ListIndex, not with BaseIndex (that's just the base class)
Tbh its a little hacky, I'm not sure if it will work. My best suggestion is just to re-create the index using all the documents you need. You are already using insert, so you could also insert the second batch of documents.

@logan-markewich
I was able to create an index using the information you provided.
However, if you ask a question based on the content written in the index created from the URL, you will be told that it is not specified.
If you ask about the contents of the index created from the file, you will receive an answer.
Is it possible to create an index that reflects the contents of both?

authors: Ma-Fukudama logan-markewich


text:
Add missing isArray checks based on the ES11 standard

Added checks to the following methods:

ecma_builtin_json_stringify, ECMA-262 v11, 24.5.2
ecma_builtin_json_internalize_property, ECMA-262 v11, 24.5.1.1

Fixes #3945
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu

Is it compatible with ECMA-262 v11 too? It would be great to follow (and add references) to the latest spec.

Is it compatible with ECMA-262 v11 too? It would be great to follow (and add references) to the latest spec.
Please add "Fixes #3945" to the commit log (and description too).

Yes, it is compatible with v11, updated the commit

Please check whether the PR resolves #3950 as well.

Please check whether the PR resolves #3950 as well.

Added a new test based on that issue

source: gharchive/pull-request

authors: ossy-szeged rerobika szilagyiadam

repo: jerryscript-project/jerryscript

license_source: bigquery


text:
using below removes parenthesis around variable

Hi,
I am using a negative margin of the width of my sidebar when below a certain breakpoint:
 +below(4)     margin-left            -($sidebar-width)
This works fine without the +below(4) but when I add it in the mixin, I am losing the parenthesis around the $sidebar-width. To fix this now I have to create a negative sidebar-width which is a bit unnecessary I think.
Any resolution for this?

I found one solution:
+below(4)
    margin-left             (-(@width))

The extra parenthesis did the trick.

repo: jescalan/rupture


text:
Python 3 compatibility

This is high on the TO DO list...
Its probably a good idea to follow the AstroPy guidelines. Their requirements state that:
"All code must be compatible with Python 2.6, 2.7, as well as 3.3 and later. The use of six for writing code that is portable between Python 2.x and 3.x is encouraged going forward."

As of v0.1.1, this package is compatible with Python 3.4 and 3.5. Using six was not required, I mainly just needed to adjust a couple import statements.

repo: jesford/cluster-lensing

license: mit


text:
Hide keyboard when collectionView is tapped

Hide keyboard when collectionView is tapped. Just add TapGestureRecognizer to collectionView:
UITapGestureRecognizer* tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleCollectionTapRecognizer:)];
    [self.collectionView addGestureRecognizer:tapRecognizer];

with following action:
- (void) handleCollectionTapRecognizer:(UITapGestureRecognizer*)recognizer
{
    if(recognizer.state == UIGestureRecognizerStateEnded)
    {
        if([self.inputToolbar.contentView.textView isFirstResponder])
            [self.inputToolbar.contentView.textView resignFirstResponder];
    }
}

Also please introduce viewController's option for that (enabled by default).

With 752fd38aa8b899cbe2e21b6595de58920977bfc2 merged, using .keyboardDismissMode is the preferred method for dismissing keyboard.
Closing this. Clients can implement this manually if they wish.

@virl @dingquan also interested in using SlackTextViewController with JSQMessagesViewController, any way to combine?

Hi,
Iam facing same  problem.
Can you give  me in Objective-C. sample.

in ViewDidLoad:
UITapGestureRecognizer *tapGestureRegnizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissKeyboard:)];
tapGestureRegnizer.delegate = self;
[self.collectionView addGestureRecognizer:tapGestureRegnizer];
----------------------------------------------

handler:

(void)dismissKeyboard:(UITapGestureRecognizer *)tp{
if(tp.state == UIGestureRecognizerStateEnded)
{
if([self.inputToolbar.contentView.textView isFirstResponder])
[self.inputToolbar.contentView.textView resignFirstResponder];
}

}

(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return true;
}

authors: jessesquires mcaldas shravanteegala virl

repo: jessesquires/JSQMessagesViewController


text:
Avatar completion in v6

Previously, I would return a UIImageView from avatarImageViewForItemAtIndexPath which was set up with a placeholder and SDWebImage to populate the real image once it was downloaded.
How is this intended to work for JSQMessages v6? I can return an avatar with a placeholder from avatarImageDataForItemAtIndexPath and kick off a downloadImageWithURL but how am I supposed to display the correct image once it is downloaded?

BTW, in case you use collectionViewLayout.springinessEnabled = YES; a reloadData will cause some user visible flickering when the images are downloaded and the spring animation is still in progress. In addition the reloadDatatriggers another spring animation (which is probably not what we want). I agree with @ghazel that only updating the UIImageView once the avatar image is loaded seems to be more elegant.

The workaround @ghazel proposed works very good.
Having the option for setting the UIImage directly would be a very nice option.
If you could use a library like sdWebImage (or HanekeSwift) you could also skip a lot of programming logic, especially in an usecase where you would have a groupchat.
For now I've also implemented this in cellForItemAtIndexPath

authors: ghazel mikrobi swennemans


text:
Scroll position jumps from top to bottom when view appears, bad viewWillAppear transition

Due to this change: https://github.com/jessesquires/JSQMessagesViewController/commit/da13cc302c7e76375322447e1e7eb8eb7029afb6#diff-9f8e863c5a195f9039e5062bb4d0fa1fL167 the collectionView jumps from the top to the bottom when it appears (particularly bad if the collectionView is large and slow to layout).
Why dispatch_async at all? Maybe the root issue was fixed by the scroll to bottom enhancements, like https://github.com/jessesquires/JSQMessagesViewController/commit/0d8667d14ecc3cfc7318a58fc0d74961e0ee2881 or https://github.com/jessesquires/JSQMessagesViewController/commit/697c839c80d6581e99a702315e573af292eea9af ?
In my tests, removing the dispatch_async fixes the problem, and does not introduce any noticeable issues.

Thanks @ghazel ! :+1:
That's exactly right. The dispatch_async was a sad workaround for the scrollToBottom issues.
I set this for the next release.

Ok, not quite. Without the dispatch, the last message is often offscreen when the view appears, and then scrolls animated in to place. Using one scrollToBottomAnimated:NO in viewWillAppear and dispatch_asyncing another makes it both appear without a jump (the original goal) and not have that last message oddity.
So, there's some other sizing or inset changing event involved here.

Turns out it's not completely without consequence. I found a common case where the very last message is off screen. Waiting for viewDidLayoutSubview to perform the [self scrollToBottomAnimated:NO]; seems to address it, which is at least a little bit more understandable than dispatch_async.

Thanks @ghazel :+1:

Nope. Looks like the "flag variable + viewDidLayoutSubviews" approach still breaks when pushing on a navigation stack with a lot of messages.

Flag variable? I just call scrollToBottomAnimated:NO every time viewDidLayoutSubviews is called.

@ghazel - Right we definitely do not want this — every time the view gets laid out by the system, we'll be scrolling to the bottom. viewDidLayoutSubviews can be called for lots of different reasons.
thus, we would only want to do this when the view first loads.
- (void)viewDidLayoutSubviews
{
    [super viewDidLayoutSubviews];
    if (!self.didDoFirstLayout) {
        if (self.automaticallyScrollsToMostRecentMessage) {
            [self scrollToBottomAnimated:NO];
        }
        self.didDoFirstLayout = YES;
    }
}

Hm. It hasn't been a problem for me, but I also manage automaticallyScrollsToMostRecentMessage in realtime.
I guess the first layout is insufficient. Not sure which layout is the one you'd need to wait for.

Ah, that makes sense.
viewDidLayoutSubviews is called on rotation, status bar changes, etc.
Looks like we'll have to stick with the dispatch_async for now

Here's an idea; set a boolean like firstLayout, then use dispatch_async to queue up disabling it. If it's set in viewDidLayoutSubviews, do the scroll.
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self.view layoutIfNeeded];
    [self.collectionView.collectionViewLayout invalidateLayout];

    if (self.autoScrollsToMostRecentMessage) {
        self.firstLayout = YES;
        dispatch_async(dispatch_get_main_queue(), ^{
            self.firstLayout = NO;
        });
    }
    ...
}

- (void)viewDidLayoutSubviews
{
    [super viewDidLayoutSubviews];
    if (self.firstLayout && self.automaticallyScrollsToMostRecentMessage) {
        [self scrollToBottomAnimated:NO];
    }
}

I have a project which opens another view controller on top of a JSQMessagesViewController. When I pop the top view controller and come back to the JSQMessagesViewController, the keyboard is in the correct position but the latest messages are not being displayed. The view looks like the keyboard was not present, with the latest messages hidden behind the keyboard. I can scroll the view and see the latest messages.
Putting a copy of the dispatch_async that calls [self scrollToBottomAnimated:NO] in my viewWillAppear: method did not change anything. Putting it in my viewDidAppear: method correctly scrolled the bottom of the messages.

@ghazel solution is working like a charm for me. @eviltofu is not. Thanks guys!

Note that for this solution that @ghazel have it works. However do note that when you scroll somewhere in the messages view controller and push to another view that going back to the messages view controller will auto-scroll it to the bottom.

Hello everyone!
I'm sorry to inform the community that I'm officially deprecating this project. 😢 Please read my blog post for details:
http://www.jessesquires.com/blog/officially-deprecating-jsqmessagesviewcontroller/
Thus, I'm closing all issues and pull requests and making the necessary updates to formally deprecate the library. I'm sorry if this is unexpected or disappointing. Please know that this was an extremely difficult decision to make. I'd like to thank everyone here for contributing and making this project so great. It was a fun 4 years. 😊
Thanks for understanding,
— jsq

authors: brizzly eviltofu francislata ghazel jessesquires


text:
[Feature]: Ability to provide custom message to expect or somewhere in the chain

🚀 Feature Proposal
This must have been requested before, but I couldn't find a relevant issue.
In some cases it would be very helpful to be able to customize the error message shown when a test fails. For instance, when using parameterized tests (running multiple values against the same test).
Motivation
This will make Jest better because others around the 'net are coming up with hacky solutions to do this same thing. Other testing frameworks provide this functionality, and I was pretty shocked it wasn't supported.
Example
describe("my test suite", () => {
    it("does something correctly", () => {
        const steps = doSomething();

        steps.forEach(step => {
            expect(step.status).toEqual('success');
        });
    });
});

If one of the steps is not successful, the output from Jest is:
    expect(received).toEqual(expected) // deep equality

    Expected: 0
    Received: 1

      106 |   steps.forEach(step => {
    > 107 |     expect(step.status).toEqual('success');
          |                         ^
      108 |   });

You can see that it is not at all clear which step failed. I suggest the ability to be able to customize the failure message via one of these APIs:
// perhaps easy-ish to implement as an optional pass-through method call
expect(step.status).withMessage(`step ${step.name} exited with status ${step.status}`).toEqual('success');

// or

withMessage(`step ${step.name} exited with status ${step.status}`).expect(step.status).toEqual('success');

// or

withMessage(`step ${step.name} exited with status ${step.status}`, () => {
    expect(step.status).toEqual('success');
});

// or

// perhaps least intrusive and easiest to implement
expect(step.status).toEqual('success', `step ${step.name} exited with status ${step.status}`);

// or

expect(step.status).toEqual('success').withMessage(`step ${step.name} exited with status ${step.status}`);

Pitch
I think since it would apply to all expectations / matchers, that it should be in the core library. I'm not sure it could be bolted -on in a clean way.

Example (bad) workarounds:
// try/catch and then throw within the loop
describe("my test suite", () => {
    it("does something correctly", () => {
        const steps = await doSomething();

        steps.forEach(step => {
            try {
                expect(step.status).toEqual('success');
            }
            catch (e) {
                throw new Error (`step ${step.name} exited with status ${step.status}`);
            }
        });
    });
});

// hack the `expects` to include the context
describe("my test suite", () => {
    it("does something correctly", () => {
        const steps = await doSomething();

        steps.forEach(step => {
            expect(`step ${step.name} exited with status ${step.status}`).toEqual(`step ${step.name} exited with status success`);
        });
    });
});

// remove the outer `it` and move it into the loop
describe("my test suite", () => {
    const steps = await doSomething();

    steps.forEach(step => {
        try {
            expect(step.status).toEqual('success');
        }
        catch (e) {
            throw new Error (`step ${step.name} exited with status ${step.status}`);
        }
    });
});

Alternatively, adding a fail(message) option would also work:
describe("my test suite", () => {
    const steps = await doSomething();

    steps.forEach(step => {
        try {
            expect(step.status).toEqual('success');
        }
        catch (e) {
            fail(`step ${step.name} exited with status ${step.status}`);
        }
    });
});

Did you try jest-expect-message?

Did you try jest-expect-message?

"Yes", but apparently I did a bad job, because it does work after I tried again. Thanks.

authors: JoshMcCullough mrazauskas

repo: jestjs/jest


text:
Wrong class is reported as required data class in Memory Trainer Project

The Memory Trainer Project (Part 6) requires the user to implement a Stat class. This Stat class needs to be a data class Stat. However, if I make it a class Stat the error after hitting Check says: The StatService should be a data class!. But it is the Stat that should be a data class. Not the StatService.
I fixed it here https://github.com/VeMike/kotlin-onboarding-object-oriented-programming/commit/c1d1d349f9886bfdd35146e9c29a35371658aaa8 and can do a PR for it.

@VeMike thank you a lot!

authors: VeMike nbirillo


text:
CoffeeScript always compiled in debug

When rendering a JavaScript bundle that contains references to CoffeeScript files in debug mode, each CoffeeScript file is compiled to JavaScript regardless of whether or not they have been changed. Compiling a single CS file seems to be fairly slow and the added time makes development pretty painful (I've been getting complaints from team members). My bundle contains about 12 separate, healthy-sized (~200 LOC) CoffeeScript files (along with many JS files); every page takes ~6 seconds to load (as compared to .5 seconds in "release" mode).
I find it odd that nobody has reported this; it makes me feel that I must be doing something wrong. I've snooped through the code a bit and may be able to submit a pull request if this is confirmed to be an issue.
Thanks!

I can imagine that this is probably the case in debug mode. During debug mode we don't really do any caching, and I doubt that the CoffeeScript support in SquishIt is heavily used. If you happen to take a look at it, we will happily include your fixes in the next release.
On Tuesday, February 7, 2012 at 1:30 PM, Evan Goodberry wrote:

When rendering a JavaScript bundle that contains references to CoffeeScript files in debug mode, each CoffeeScript file is compiled to JavaScript regardless of whether or not they have been changed. Compiling a single CS file seems to be fairly slow and the added time makes development pretty painful (I've been getting complaints from team members). My bundle contains about 12 separate, healthy-sized (~200 LOC) CoffeeScript files (along with many JS files); every page takes ~6 seconds to load (as compared to .5 seconds in "release" mode).
I find it odd that nobody has reported this; it makes me feel that I must be doing something wrong. I've snooped through the code a bit and may be able to submit a pull request if this is confirmed to be an issue.
Thanks!

Reply to this email directly or view it on GitHub:
https://github.com/jetheredge/SquishIt/issues/148

Thanks for the response.. I'll try and take a look over the next couple of days.

authors: egoodberry jetheredge

repo: jetheredge/SquishIt


text:
[Bug]: Nix threwSSL connect error (35) on all devbox commands on macOS

Current Behavior (bug)
Summary: Whenever Nix made network requests, it failed with SSL connect error (35) in the error message
Reproduce:
Follow the Get Started guide to install devbox.
curl -fsSL https://get.jetpack.io/devbox | bash

$ devbox add go_1_19

warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62.tar.gz': SSL connect error (35); retrying in 269 ms
warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62.tar.gz': SSL connect error (35); retrying in 519 ms
warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62.tar.gz': SSL connect error (35); retrying in 1175 ms
error: download of 'https://github.com/NixOS/nixpkgs/archive/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62.tar.gz' was interrupted

$ DEVBOX_DEBUG=1 devbox shell

onfig.go:125: findProjectDir: path is
config.go:166: finding devbox.json in dir: /Users/michael/<redacted>
[DEBUG] 2023/05/19 21:03:51 go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:51: Debug mode enabled.
[DEBUG] 2023/05/19 21:03:51 go.jetpack.io/devbox/internal/impl/config.go:125: findProjectDir: path is
[DEBUG] 2023/05/19 21:03:51 go.jetpack.io/devbox/internal/impl/config.go:166: finding devbox.json in dir: /Users/michael/<redacted>
Reinitialized existing Git repository in /Users/michael/<redacted>/.devbox/gen/flake/.git/
[DEBUG] 2023/05/19 21:03:51 go.jetpack.io/devbox/internal/impl/devbox.go:925: failed to clean up script file .hooks.sh, error = remove /Users/michael/<redacted>/.devbox/gen/scripts/.hooks.sh.sh: no such file or directory
Ensuring packages are installed.
[DEBUG] 2023/05/19 21:03:52 go.jetpack.io/devbox/internal/impl/devbox.go:748: current environment PATH is: <redacted>
[DEBUG] 2023/05/19 21:03:52 go.jetpack.io/devbox/internal/nix/nix.go:68: Running print-dev-env cmd: /usr/local/bin/nix print-dev-env /Users/michael/<redacted>/.devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json
Error: Command: /usr/local/bin/nix print-dev-env /Users/michael/<redacted>/.devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json: exit status 1

[DEBUG] 2023/05/19 21:03:57 go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:72: Command stderr: path '/Users/michael/<redacted>/.devbox/gen/flake/flake.nix' does not contain a 'flake.nix', searching up
warning: Git tree '/Users/michael/<redacted>/.devbox/gen/flake' is dirty
warning: error: unable to download 'https://api.github.com/repos/numtide/flake-utils/commits/HEAD': SSL connect error (35); retrying in 286 ms
warning: error: unable to download 'https://api.github.com/repos/numtide/flake-utils/commits/HEAD': SSL connect error (35); retrying in 600 ms
warning: error: unable to download 'https://api.github.com/repos/numtide/flake-utils/commits/HEAD': SSL connect error (35); retrying in 1009 ms
warning: error: unable to download 'https://api.github.com/repos/numtide/flake-utils/commits/HEAD': SSL connect error (35); retrying in 2440 ms
error: unable to download 'https://api.github.com/repos/numtide/flake-utils/commits/HEAD': SSL connect error (35)
(use '--show-trace' to show detailed location information)

[DEBUG] 2023/05/19 21:03:57 go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:74:
ExecutionID:40f2f1aa1225442bb07f35c3338e45f0
exit status 1
Command: /usr/local/bin/nix print-dev-env /Users/michael/<redacted>/.devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json
go.jetpack.io/devbox/internal/nix.(*Nix).PrintDevEnv
        go.jetpack.io/devbox/internal/nix/nix.go:71
go.jetpack.io/devbox/internal/impl.(*Devbox).computeNixEnv
        go.jetpack.io/devbox/internal/impl/devbox.go:760
go.jetpack.io/devbox/internal/impl.(*Devbox).ensurePackagesAreInstalled
        go.jetpack.io/devbox/internal/impl/packages.go:190
go.jetpack.io/devbox/internal/impl.(*Devbox).Shell
        go.jetpack.io/devbox/internal/impl/devbox.go:211
go.jetpack.io/devbox/internal/boxcli.runShellCmd
        go.jetpack.io/devbox/internal/boxcli/shell.go:67
go.jetpack.io/devbox/internal/boxcli.shellCmd.func1
        go.jetpack.io/devbox/internal/boxcli/shell.go:33
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/cobra@v1.6.1/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/cobra@v1.6.1/command.go:1044
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/cobra@v1.6.1/command.go:968
go.jetpack.io/devbox/internal/boxcli/midcobra.(*midcobraExecutable).Execute
        go.jetpack.io/devbox/internal/boxcli/midcobra/midcobra.go:57
go.jetpack.io/devbox/internal/boxcli.Execute
        go.jetpack.io/devbox/internal/boxcli/root.go:95
go.jetpack.io/devbox/internal/boxcli.Main
        go.jetpack.io/devbox/internal/boxcli/root.go:108
main.main
        ./main.go:11
runtime.main
        runtime/proc.go:250
runtime.goexit
        runtime/asm_arm64.s:1172
[DEBUG] 2023/05/19 21:03:57 go.jetpack.io/devbox/internal/impl/config.go:125: findProjectDir: path is
[DEBUG] 2023/05/19 21:03:57 go.jetpack.io/devbox/internal/impl/config.go:166: finding devbox.json in dir: /Users/michael/<redacted>
[DEBUG] 2023/05/19 21:03:57 go.jetpack.io/devbox/internal/impl/config.go:125: findProjectDir: path is
[DEBUG] 2023/05/19 21:03:57 go.jetpack.io/devbox/internal/impl/config.go:166: finding devbox.json in dir: /Users/michael/<redacted>

Expected Behavior (fix)
it works
Additional context
maybe related with https://github.com/jetpack-io/devbox/issues/177 ?
OS: macOS 13.3.1
Network: I can confirm there's no proxy running on the compute, also everything else works just fine but devbox.
$ devbox version -v

Version:     0.5.2
Platform:    darwin_arm64
Commit:      8f579b2c45c730742cbf9b7c400f247abf902775
Commit Time: 2023-05-18T16:18:52Z
Go Version:  go1.20.4
Launcher:    0.2.0

devbox.json
nothing new but the default stuff from devbox init

I tried reproducing the steps but it succeeds for me.
What do you see when you run curl https://api.github.com/repos/numtide/flake-utils/commits/HEAD in your terminal?

Nix also relies on its own certificate bundle that gets set with NIX_SSL_CERT_FILE.
Could you try running echo $NIX_SSL_CERT_FILE both in and out of a Devbox shell? If it's set, does the path it's set to exist?

curl https://api.github.com/repos/numtide/flake-utils/commits/HEAD

Like I mentioned in the issue, everything outside of devbox/nix is fine. curl-ing stuff works just fine and TLS is good as well.

Nix also relies on its own certificate bundle that gets set with NIX_SSL_CERT_FILE.
Could you try running echo $NIX_SSL_CERT_FILE both in and out of a Devbox shell? If it's set, does the path it's set to exist?

please see the attached output of DEVBOX_DEBUG=1 devbox shell in the issue description, I can't even launch devbox shell 😅

Hi, can I join?
same problem, I seem to be in .
by the way, I don't configure anything about SSL.
I wrote down both
1.
....devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json: exit status 1
2 .
result of curl https://api.github.com/repos/numtide/flake-utils/commits/HEAD
...

[DEBUG] 2023/05/30 08:47:59 go.jetpack.io/devbox/internal/nix/search.go:103: running command: /nix/var/nix/profiles/default/bin/nix search --json github:NixOS/nixpkgs/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62#legacyPackages.x86_64-linux.python310 --extra-experimental-features ca-derivations --option experimental-features nix-command flakes
[DEBUG] 2023/05/30 08:47:59 go.jetpack.io/devbox/internal/impl/devbox.go:748: current environment PATH is: /mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/home/ub01/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/bin/remote-cli:/mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev/.nix-profile/bin:/mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev/.local/bin:/home/ub01/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Users/admin.DESKTOP-1PF4AT3/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/admin.DESKTOP-1PF4AT3/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin:~/.local/bin:~/.local/bin
[DEBUG] 2023/05/30 08:47:59 go.jetpack.io/devbox/internal/nix/nix.go:68: Running print-dev-env cmd: /nix/var/nix/profiles/default/bin/nix print-dev-env /mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev/.devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json
Error: Command: /nix/var/nix/profiles/default/bin/nix print-dev-env /mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev/.devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json: exit status 1

[DEBUG] 2023/05/30 08:48:00 go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:72: Command stderr: path '/mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev/.devbox/gen/flake/flake.nix' does not contain a 'flake.nix', searching up
warning: Git tree '/mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev/.devbox/gen/flake' is dirty
warning: updating lock file '/mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev/.devbox/gen/flake/flake.lock':
• Added input 'flake-utils':
    'github:numtide/flake-utils/cfacdce06f30d2b68473a46042957675eebb3401' (2023-04-11)
• Added input 'flake-utils/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
• Added input 'nixpkgs':
    'github:NixOS/nixpkgs/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62' (2023-01-27)
• Added input 'nixpkgs-f80ac8':
    'github:NixOS/nixpkgs/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62' (2023-01-27)
The following paths are ignored by one of your .gitignore files:
flake.lock
hint: Use -f if you really want to add them.
hint: Turn this message off by running
hint: "git config advice.addIgnoredFile false"
error:
       … while updating the lock file of flake 'git+file:///mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev/.devbox/gen/flake'

       error: program 'git' failed with exit code 1

[DEBUG] 2023/05/30 08:48:00 go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:74:
ExecutionID:9eacab7bc1f14b69bb18cbb74c363883
exit status 1
Command: /nix/var/nix/profiles/default/bin/nix print-dev-env /mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev/.devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json
go.jetpack.io/devbox/internal/nix.(*Nix).PrintDevEnv
        go.jetpack.io/devbox/internal/nix/nix.go:71
go.jetpack.io/devbox/internal/impl.(*Devbox).computeNixEnv
        go.jetpack.io/devbox/internal/impl/devbox.go:760
go.jetpack.io/devbox/internal/impl.(*Devbox).ensurePackagesAreInstalled
        go.jetpack.io/devbox/internal/impl/packages.go:190
go.jetpack.io/devbox/internal/impl.(*Devbox).Shell
        go.jetpack.io/devbox/internal/impl/devbox.go:211
go.jetpack.io/devbox/internal/boxcli.runShellCmd
        go.jetpack.io/devbox/internal/boxcli/shell.go:67
go.jetpack.io/devbox/internal/boxcli.shellCmd.func1
        go.jetpack.io/devbox/internal/boxcli/shell.go:33
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/cobra@v1.6.1/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/cobra@v1.6.1/command.go:1044
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/cobra@v1.6.1/command.go:968
go.jetpack.io/devbox/internal/boxcli/midcobra.(*midcobraExecutable).Execute
        go.jetpack.io/devbox/internal/boxcli/midcobra/midcobra.go:57
go.jetpack.io/devbox/internal/boxcli.Execute
        go.jetpack.io/devbox/internal/boxcli/root.go:95
go.jetpack.io/devbox/internal/boxcli.Main
        go.jetpack.io/devbox/internal/boxcli/root.go:108
main.main
        ./main.go:11
runtime.main
        runtime/proc.go:250
runtime.goexit
        runtime/asm_amd64.s:1598
[DEBUG] 2023/05/30 08:48:00 go.jetpack.io/devbox/internal/impl/config.go:125: findProjectDir: path is
[DEBUG] 2023/05/30 08:48:00 go.jetpack.io/devbox/internal/impl/config.go:166: finding devbox.json in dir: /mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev
[DEBUG] 2023/05/30 08:48:00 go.jetpack.io/devbox/internal/impl/config.go:125: findProjectDir: path is
[DEBUG] 2023/05/30 08:48:00 go.jetpack.io/devbox/internal/impl/config.go:166: finding devbox.json in dir: /mnt/c/Users/admin.DESKTOP-1PF4AT3/Documents/Dev

ub01@DESKTOP-1PF4AT3:~$ curl https://api.github.com/repos/numtide/flake-utils/commits/HEAD
{
  "sha": "cfacdce06f30d2b68473a46042957675eebb3401",
  "node_id": "C_kwDODzELM9oAKGNmYWNkY2UwNmYzMGQyYjY4NDczYTQ2MDQyOTU3Njc1ZWViYjM0MDE",
  "commit": {
    "author": {
      "name": "zimbatm",
      "email": "zimbatm@zimbatm.com",
      "date": "2023-04-11T08:47:17Z"
    },
    "committer": {
      "name": "zimbatm",
      "email": "zimbatm@zimbatm.com",
      "date": "2023-04-11T08:47:17Z"
    },
    "message": "REAMDE: document the systems pattern a bit more",
    "tree": {
      "sha": "7c850ea8c0be096e2106de27abac0ab2f77f9096",
      "url": "https://api.github.com/repos/numtide/flake-utils/git/trees/7c850ea8c0be096e2106de27abac0ab2f77f9096"
    },
    "url": "https://api.github.com/repos/numtide/flake-utils/git/commits/cfacdce06f30d2b68473a46042957675eebb3401",
    "comment_count": 0,
    "verification": {
      "verified": true,
      "reason": "valid",
      "signature": "-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEJgNTuZP4zhZ1LvSMcbr21AwdY9cFAmQ1HpUACgkQcbr21Awd\nY9e+ywf/c3euW7lkchGNoFFF3b6PiuhIepprQk3IMoabMSTU/upxVseZ+ttn6FsL\npS3lwmKiC326K1pWFkw+Mi6P2aNeMkkZ7sNX+1SczgSr08cA1hEK9wET0gVlxVtS\nYd/GpDI5sulQpmqFVmZq9U5nhrpTR8JcYS91zA9ByAwf0OEd4DEkUo6/FN0gjyQy\nz4bkdgReq2tr/IgEAx/rbJP2faMnAuJVttKxMCV9stQqu7spUgtWevu/3KrCP6gJ\nwuE2xVZsNQDOW9YaUZxSc2OdcBqsoOzZmec21x8u7XE6whvV0vT6IdhYJytsxxgG\nGHFzPkzLi2PjEAXlh5ZoqNCxd2Kpzw==\n=ari0\n-----END PGP SIGNATURE-----",
      "payload": "tree 7c850ea8c0be096e2106de27abac0ab2f77f9096\nparent 033b9f258ca96a10e543d4442071f614dc3f8412\nauthor zimbatm <zimbatm@zimbatm.com> 1681202837 +0200\ncommitter zimbatm <zimbatm@zimbatm.com> 1681202837 +0200\n\nREAMDE: document the systems pattern a bit more\n"
    }
  },
  "url": "https://api.github.com/repos/numtide/flake-utils/commits/cfacdce06f30d2b68473a46042957675eebb3401",
  "html_url": "https://github.com/numtide/flake-utils/commit/cfacdce06f30d2b68473a46042957675eebb3401",
  "comments_url": "https://api.github.com/repos/numtide/flake-utils/commits/cfacdce06f30d2b68473a46042957675eebb3401/comments",
  "author": {
    "login": "zimbatm",
    "id": 3248,
    "node_id": "MDQ6VXNlcjMyNDg=",
    "avatar_url": "https://avatars.githubusercontent.com/u/3248?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/zimbatm",
    "html_url": "https://github.com/zimbatm",
    "followers_url": "https://api.github.com/users/zimbatm/followers",
    "following_url": "https://api.github.com/users/zimbatm/following{/other_user}",
    "gists_url": "https://api.github.com/users/zimbatm/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/zimbatm/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/zimbatm/subscriptions",
    "organizations_url": "https://api.github.com/users/zimbatm/orgs",
    "repos_url": "https://api.github.com/users/zimbatm/repos",
    "events_url": "https://api.github.com/users/zimbatm/events{/privacy}",
    "received_events_url": "https://api.github.com/users/zimbatm/received_events",
    "type": "User",
    "site_admin": false
  },
  "committer": {
    "login": "zimbatm",
    "id": 3248,
    "node_id": "MDQ6VXNlcjMyNDg=",
    "avatar_url": "https://avatars.githubusercontent.com/u/3248?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/zimbatm",
    "html_url": "https://github.com/zimbatm",
    "followers_url": "https://api.github.com/users/zimbatm/followers",
    "following_url": "https://api.github.com/users/zimbatm/following{/other_user}",
    "gists_url": "https://api.github.com/users/zimbatm/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/zimbatm/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/zimbatm/subscriptions",
    "organizations_url": "https://api.github.com/users/zimbatm/orgs",
    "repos_url": "https://api.github.com/users/zimbatm/repos",
    "events_url": "https://api.github.com/users/zimbatm/events{/privacy}",
    "received_events_url": "https://api.github.com/users/zimbatm/received_events",
    "type": "User",
    "site_admin": false
  },
  "parents": [
    {
      "sha": "033b9f258ca96a10e543d4442071f614dc3f8412",
      "url": "https://api.github.com/repos/numtide/flake-utils/commits/033b9f258ca96a10e543d4442071f614dc3f8412",
      "html_url": "https://github.com/numtide/flake-utils/commit/033b9f258ca96a10e543d4442071f614dc3f8412"
    }
  ],
  "stats": {
    "total": 30,
    "additions": 27,
    "deletions": 3
  },
  "files": [
    {
      "sha": "425a3c09a4a9daea809c71bb001e1edead0672cd",
      "filename": "README.md",
      "status": "modified",
      "additions": 27,
      "deletions": 3,
      "changes": 30,
      "blob_url": "https://github.com/numtide/flake-utils/blob/cfacdce06f30d2b68473a46042957675eebb3401/README.md",
      "raw_url": "https://github.com/numtide/flake-utils/raw/cfacdce06f30d2b68473a46042957675eebb3401/README.md",
      "contents_url": "https://api.github.com/repos/numtide/flake-utils/contents/README.md?ref=cfacdce06f30d2b68473a46042957675eebb3401",
      "patch": "@@ -30,11 +30,35 @@ Eg: instead of typing `\"x86_64-linux\"`, use `system.x86_64-linux`.\n \n A list of all systems defined in nixpkgs. For a smaller list see `defaultSystems`.\n \n-### `defaultSystems :: [<system>]` (deprecated)\n+### `defaultSystems :: [<system>]`\n \n-The list of systems passed to the flake-utils `systems` input.\n+The list of systems to use in `eachDefaultSystem` and `simpleFlake`.\n \n-Use this pattern to pass different systems to your flake: <https://github.com/nix-systems/nix-systems>.\n+The default values are `[\"x86_64-linux\" \"aarch64-linux\" \"x86_64-darwin\" \"aarch64-darwin\"]`.\n+\n+It's possible to override and control that list by changing the `systems` input of this flake.\n+\n+Eg (in your `flake.nix`):\n+\n+```nix\n+{\n+  # 1. Defined a \"systems\" inputs that maps to only [\"x86_64-linux\"]\n+  inputs.systems.url = \"github:nix-systems/x86_64-linux\";\n+\n+  inputs.flake-utils.src = \"github:numtide/flake-utils\";\n+  # 2. Override the flake-utils default to your version\n+  inputs.flake-utils.inputs.systems.follows = \"systems\";\n+\n+  outputs = { self, flake-utils, ... }:\n+    # Now eachDefaultSystem is only using [\"x86_64-linux\"], but this list can also\n+    # further be changed by users of your flake.\n+    flake-utils.lib.eachDefaultSystem (system: {\n+      # ...\n+    });\n+}\n+```\n+\n+For more details in this pattern, see: <https://github.com/nix-systems/nix-systems>.\n \n ### `eachSystem :: [<system>] -> (<system> -> attrs)`\n "
    }
  ]
}

version: 0.5.2 ( maybe latest )

I've solved.
Maybe any conflicts was by .gitignore.
I try start devbox shell after removing .gitignore, then shell started.
before
*
!.gitignore
!.devbox
!flake.nix

@mohsenari
@gcurtis
If you know, let us know what should not be added to .gitignore.
( in my case, I want to ignore all files and dirs in $HOME )
Thanks.

@michaellzc can you confirm removing .gitignore, or changing some line in it, makes a difference?
This seems like a nix SSL cert issue because based on the debug log, when we run nix print-dev-env command, it fails to fetch files from github.
I would also suggest getting a backup of $NIX_SSL_CERT_FILE and then unset $NIX_SSL_CERT_FILE and try again to see if that makes a difference.
Another suggestion would be re-installing nix.

I am having this issue on my m1 macbook pro.

Running DEVBOX_DEBUG=1 devbox install against a empty project with a devbox.json file in it generates the following report:
dir.go:22: findProjectDir: path is
dir.go:66: finding devbox.json in dir: /Users/jdingman/Develop/test
dir.go:22: findProjectDir: path is
dir.go:66: finding devbox.json in dir: /Users/jdingman/Develop/test
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:51: Debug mode enabled.
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/impl/dir.go:22: findProjectDir: path is
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/impl/dir.go:66: finding devbox.json in dir: /Users/jdingman/Develop/test
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/impl/devbox.go:918: failed to clean up script file .hooks.sh, error = remove /Users/jdingman/Develop/test/.devbox/gen/scripts/.hooks.sh.sh: no such file or directory
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/impl/devbox.go:918: failed to clean up script file test.sh, error = remove /Users/jdingman/Develop/test/.devbox/gen/scripts/test.sh.sh: no such file or directory
Ensuring packages are installed.
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/impl/devbox.go:735: current environment PATH is: /Users/jdingman/.pyenv/plugins/pyenv-virtualenv/shims:/Users/jdingman/.pyenv/shims:/Users/jdingman/.pyenv/bin:/Users/jdingman/.cargo/bin:/Users/jdingman/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/jdingman/.goenv/versions/1.20.5/bin:/Users/jdingman/.cargo/bin:/Users/jdingman/.goenv/bin:/Applications/kitty.app/Contents/MacOS:/Users/jdingman/.goenv/shims:/Users/jdingman/go/1.20.5/bin
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/nix/nix.go:68: Running print-dev-env cmd: /nix/var/nix/profiles/default/bin/nix print-dev-env /Users/jdingman/Develop/test/.devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json
Error: Command: /nix/var/nix/profiles/default/bin/nix print-dev-env /Users/jdingman/Develop/test/.devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json: exit status 1

[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:72: Command stderr: path '/Users/jdingman/Develop/test/.devbox/gen/flake/flake.nix' does not contain a 'flake.nix', searching up
error: unable to download 'https://cache.nixos.org/fhx92d9w0i0nwqbdgsxgapj47g5vp2hh.narinfo': Problem with the SSL CA cert (path? access rights?) (77)

[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:74:
ExecutionID:faa8349c66bb48bab0f5c832ac2be9f8
exit status 1
Command: /nix/var/nix/profiles/default/bin/nix print-dev-env /Users/jdingman/Develop/test/.devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json
go.jetpack.io/devbox/internal/nix.(*Nix).PrintDevEnv
	go.jetpack.io/devbox/internal/nix/nix.go:71
go.jetpack.io/devbox/internal/impl.(*Devbox).computeNixEnv
	go.jetpack.io/devbox/internal/impl/devbox.go:747
go.jetpack.io/devbox/internal/impl.(*Devbox).ensurePackagesAreInstalled
	go.jetpack.io/devbox/internal/impl/packages.go:190
go.jetpack.io/devbox/internal/impl.(*Devbox).PrintEnv
	go.jetpack.io/devbox/internal/impl/devbox.go:289
go.jetpack.io/devbox/internal/impl.(*Devbox).Install
	go.jetpack.io/devbox/internal/impl/devbox.go:269
go.jetpack.io/devbox/internal/boxcli.installCmdFunc
	go.jetpack.io/devbox/internal/boxcli/install.go:37
go.jetpack.io/devbox/internal/boxcli.installCmd.func1
	go.jetpack.io/devbox/internal/boxcli/install.go:22
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/cobra@v1.6.1/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/cobra@v1.6.1/command.go:1044
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/cobra@v1.6.1/command.go:968
go.jetpack.io/devbox/internal/boxcli/midcobra.(*midcobraExecutable).Execute
	go.jetpack.io/devbox/internal/boxcli/midcobra/midcobra.go:57
go.jetpack.io/devbox/internal/boxcli.Execute
	go.jetpack.io/devbox/internal/boxcli/root.go:96
go.jetpack.io/devbox/internal/boxcli.Main
	go.jetpack.io/devbox/internal/boxcli/root.go:109
main.main
	./main.go:11
runtime.main
	runtime/proc.go:250
runtime.goexit
	runtime/asm_arm64.s:1172
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/impl/dir.go:22: findProjectDir: path is
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/impl/dir.go:66: finding devbox.json in dir: /Users/jdingman/Develop/test
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/impl/dir.go:22: findProjectDir: path is
[DEBUG] 2023/06/19 13:44:25 go.jetpack.io/devbox/internal/impl/dir.go:66: finding devbox.json in dir: /Users/jdingman/Develop/test

nix was installed via devbox and the only modification I made to any nix file was the /etc/nix/nix.conf file which I added the flakes and nix-command experimental features flag to.
If there is anything else I can try just let me know.

@mohsenari sorry for the late reply!

@michaellzc can you confirm removing .gitignore, or changing some line in it, makes a difference? This seems like a nix SSL cert issue because based on the debug log, when we run nix print-dev-env command, it fails to fetch files from github.

removing .gitignore doesn't help, and I also tested the exact step in an empty git repo. Neither helps.

I would also suggest getting a backup of $NIX_SSL_CERT_FILE and then unset $NIX_SSL_CERT_FILE and try again to see if that makes a difference. Another suggestion would be re-installing nix.

I'm on macOS using fish (no nix whatsoever), hence $NIX_SSL_CERT_FILE is never set in my shell. I double check and confirm it is in fact empty.

Hi, I'm facing the same issue. Does anyone have solution or workaround for that?

authors: MisterBianco PorcoRosso85 gcurtis michaellzc mohsenari psucodervn

repo: jetpack-io/devbox


text:
Does cert-manager work with Kind: StepIssuer? Issue in getting certificate for ingress resources

Bugs should be filed for issues encountered whilst operating cert-manager.
You should first attempt to resolve your issues through the community support
channels, e.g. Slack, in order to rule out individual configuration errors.
Please provide as much detail as possible.

Describe the bug:
While requesting certificates for ingress resources I get an error in cert-manager stating necessary annotations are missing. I have annotations defined in the ingress definition
Logs
cert-manager/controller/ingress-shim "level"=0 "msg"="not syncing ingress resource as it does not contain a "certmanager.k8s.io/issuer" or "certmanager.k8s.io/cluster-issuer" annotation" "resource_kind"="Ingress" "resource_name"="kuard" "resource_namespace"="default"
Expected behaviour:
Annotations used:
   kubernetes.io/ingress.class:xxx
   certmanager.k8s.io/issuer-kind: StepIssuer
   certmanager.k8s.io/issuer-name: step-issuer

Steps to reproduce the bug:
Steps to reproduce the bug should be clear and easily reproducible to help people
gain an understanding of the problem.
Anything else we need to know?:

Certificate is generates using step-ca
Use step-issuer with cert-manager combination
https://github.com/smallstep/step-issuer

Environment details::

Kubernetes version (e.g. v1.10.2): v1.14.5
Cloud-provider/provisioner (e.g. GKE, kops AWS, etc): AKS
cert-manager version (e.g. v0.4.0): v0.10.0
Install method (e.g. helm or static manifests): helm

/kind bug

Thanks for opening this!
We need to add an extra annotation to set the group name field of the issuer. We also need to change a couple bits in the code to only support using the core types.
/assign

@JoshVanL Thanks a lot for looking into this! Looking forward to the fix.

@JoshVanL I guess this feature is currently experimental in cert-manager and needs to be enabled using the flag --feature-gates=CertificateRequestControllers=true for Step-issuer to work
Cert-manager v0.11.0 will probably include this feature enabled by default

Yes that's correct - CertificateRequests are becoming beta as of 0.11 and will be the only implementation of issuing certificates.
The ingress fix is still WIP. Hoping to get it into a review-able state today :crossed_fingers:

(also landing in 0.11)

@JoshVanL So am I good to use StepIssuer as a ClusterIssuer? Thanks for all the help on this

So you will need to install the StepIssuer deployment which you can get from here. You should be able to add the issuer name, kind, and group annotation to your ingress resources:
"cert-manager.io/issuer-name": "foo"
"cert-manager.io/issuer-kind": "StepIssuer"
"cert-manager.io/issuer-group": "certmanager.step.sm"

If I'm am reading correctly it looks like these issuers are namespaced so not cluster wide. Perhaps @maraino can provide some insight. Hope that helps in any case :)

@JoshVanL This requested fix went in for 0.10 version right and not in 0.11

does cert-manager have any preference for the scope of the external issuers?

Having both probably makes most sense. Indeed v0.11 comes with a lot of breaking API changes so things will need updating - external issuers will be supported by default though. Let us know if you need any help making those changes or implementing a cluster scoped issuer.

This requested fix went in for 0.10 version right and not in 0.11

The requested ingress changed is in 0.11. We should have a beta coming out tomorrow

@JoshVanL @maraino Deployed beta version of cert-manager today and getting this error
Error: invalid argument "CertificateRequestControllers=true" for "--feature-gates" flag: unrecognized feature gate: CertificateRequestControllers

Hi @devops2201
That flag no longer exists since it's the default and only implementation now :smile:
You're good to just remove it now

repo: jetstack/cert-manager


text:
Systemd collection

Enable Prometheus collection of systemd unit status

/assign @JoshVanL

/lgtm
/approve

/unassign
/assign @simonswine

/test verify quick

authors: JoshVanL simonswine

repo: jetstack/tarmak


text:
Area charts?

Thanks for your effort to make it simple the integration with angular of c3 library.
Is there any directive to create area chart?
Thanks!

@Perrazoo You can use C3.js types. Try setting column-type to area or area-spline. (http://c3js.org/samples/chart_area_stacked.html)

Already done! Thank you!
That comment was at the beginning with the library :)

authors: Perrazoo gligoran


text:
Add missing word in README

Found what I believe to be a typo:
"so you can't optimistically your state" ->
"so you can't optimistically update your state"

Thank you! 🙏

authors: HankMcCoy jevakallio

repo: jevakallio/redux-offline


text:
jfx-text-field design like gmail login

jfx-text-field css for design like gmail login

Duplicate of #912

authors: Vimptech skmedix

repo: jfoenixadmin/JFoenix


text:
Postgres authentication error when using different combination of passwords for artifactory HA

Platform
OpenShift
Version
Artifactory HA 6.9.0
Problem
Whenever I am setting a different postgres password other than "artifactory/password" I am getting an authentication error. I have tried many different combinations of password for postgres and none get set in db.properties file.
Error I am getting:

org.postgresql.util.PSQLException: FATAL: password authentication failed for user "artifactory"
--
  | at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:443)
  | at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:217)
  | at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:52)
  | at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:216)
  | at org.postgresql.Driver.makeConnection(Driver.java:404)
  | at org.postgresql.Driver.connect(Driver.java:272)

When I set the postgres password as username "artifactory" and password as "password" all works well.
I want to be able to set a unique password for postgres and not have such an insecure password.

The DB_PASSWORD env var is also getting completely ignored. If I take a look at the db.properties file in /opt/jfrog/artifactory/etc/ the postgres username and password are set as artifactory and password no matter what I set as DB_USERNAME and DB_PASSWORD

@daniyalj - can you make sure you run a clean setup without leftover old storage?
Can you provide steps to reproduce?

Create postgres database with the following params:
NAME=postgresql
NAMESPACE=postgres
SERVICE_ACCOUNT=artifactory-pgsql
POSTGRESQL_PVC_NAME=postgresql
POSTGRESQL_PVC_SIZE=1Gi
POSTGRESQL_SECRET_NAME=postgresql-credentials
POSTGRESQL_DATABASE=artifactory
INIT_CONTAINER_IMAGE=busybox
POSTGRESQL_USERNAME=dXNlcm5hbWUxMjMK
POSTGRESQL_PASSWORD=cGFzc3dvcmQxMjMK

Note: The username and password above are base64 encoded (username123 and password123)
Deploy artifactory HA 2 nodes with the following configuration:
NAME=artifactory
NAMESPACE=postgres
SERVICE_ACCOUNT=artifactory
LICENSES_SECRET_NAME=artifactory-licenses
MASTER_KEY_SECRET_NAME=artifactory-master-key
BINARYSTORE_CONFIG_MAP_NAME=artifactory-binarystore
DATABASE_CONFIG_MAP_NAME=artifactory-db
DATABASE_CREDENTIALS_SECRET_NAME=postgresql-credentials
DATABASE_TYPE=postgresql
DATABASE_HOST=172.30.180.104
DATABASE_PORT=5432
ARTIFACTORY_IMAGE_STREAM_NAME=artifactory
ARTIFACTORY_IMAGE_REPOSITORY=jfrog-docker-reg2.bintray.io/jfrog/artifactory-pro
ARTIFACTORY_VERSION=6.9.0
INIT_CONTAINER_IMAGE=alpine:3.6
ARTIFACTORY_PVC_SIZE=5Gi
ARTIFACTORY_DATA_PVC_SIZE=5Gi
ARTIFACTORY_BACKUP_PVC_SIZE=5Gi
CPU_REQUEST=500m
CPU_LIMIT=1
MEMORY_REQUEST=2Gi
MEMORY_LIMIT=3Gi
ARTIFACTORY_EXTRA_JAVA_OPTIONS=-Xms1g -Xmx2g
HA_DATA_DIR=/var/opt/jfrog/artifactory/data
HA_BACKUP_DIR=/var/opt/jfrog/artifactory/backup
POSTGRESQL_SECRET_NAME=postgresql-credentials
POSTGRESQL_USERNAME=dXNlcm5hbWUxMjMK
POSTGRESQL_PASSWORD=cGFzc3dvcmQxMjMK

Check the logs on the artifactory pod:
2019-04-22 15:53:49,240 [localhost-startStop-1] [JFrog-Access] [INFO ] (o.j.a.AccessApplication:597) - The following profiles are active: production,grpc
--
  | 2019-04-22 15:53:55,840 [localhost-startStop-1] [JFrog-Access] [ERROR] (o.a.t.j.p.ConnectionPool:487) - Unable to create initial connections of pool.
  | org.postgresql.util.PSQLException: FATAL: password authentication failed for user "artifactory"
  | at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:443)
  | at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:217)
  | at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:52)
  | at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:216)
  | at org.postgresql.Driver.makeConnection(Driver.java:404)
  | at org.postgresql.Driver.connect(Driver.java:272)

If you navigate to the artifactory pod and look at the db.properties the values of the db username and password do not change:
artifactory@artifactory-primary-1-phhcz:/$ cat /opt/jfrog/artifactory/etc/db.properties
...
type=postgresql
driver=org.postgresql.Driver
url=jdbc:postgresql://172.30.180.104:5432/artifactory
username=artifactory
password=password

Repeat the above with "artifactory" and "password" as the vars and the deployment will come up fine @eldada hope this helps

@daniyalj I had the exact same problem and found a workaround.
Assume I mounted my local directory /my/local/path/to/artifactory to the container /var/opt/jfrog/artifactory.

Remove the container docker rm -f artifactory.
Edit /my/local/path/to/artifactory/etc/db.properties directly to setup the correct password.
Run the image again.

Yeah that might be a little tricky to do in a k8s environment. I ended up using the helm chart for artifactory on OpenShift and it is much much more stable. Im not even sure why this repo exists.

authors: cytim daniyalj eldada

repo: jfrog/artifactory-docker-examples


text:
Allow fail=false in audit and scan commands

[x] All tests passed. If this feature is not already covered by the tests, I added new tests.
[x] This pull request is on the dev branch.
[x] I used gofmt for formatting the code before submitting the pull request.

Depends on https://github.com/jfrog/jfrog-cli-core/pull/286.
Allow avoiding failing a build if an audit or scan command should fail it.
Usages:
jf audit-go --fail=false
jf audit-gradle --fail=false
jf audit-mvn --fail=false
jf audit-npm --fail=false
jf audit-pip --fail=false
jf scan --fail=false
jf docker-scan --fail=false

jf audit-go --fail=false
jf audit-gradle --fail=false
jf audit-mvn --fail=false
jf audit-npm --fail=false
jf audit-pip --fail=false
jf scan --fail=false
jf docker-scan --fail=false

jf audit --fail=false is missing and jf docker-scan is not yet released

repo: jfrog/jfrog-cli


text:
Content appers behind the actionbar

Hi,
The content of my activity is displayed behing the actionbar instead of below the action bar. What I am doing wrong?
public class UIUtils {

	public static void tintStatusBar(FragmentActivity activity, Window window) {
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
			//window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
			//		WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);

			WindowManager.LayoutParams winParams = window.getAttributes();
			final int bits = WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS;
			winParams.flags |= bits;
			window.setAttributes(winParams);
		}

		SystemBarTintManager tintManager = new SystemBarTintManager(activity);
		tintManager.setStatusBarTintEnabled(true);
		tintManager.setStatusBarTintColor(R.color.dark_blue_background);
	}
}

<android.support.v4.widget.DrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    android:clipToPadding="false">

Thank you @krishnakapil ! It works perfectly!

authors: renynetto thiagolocatelli

repo: jgilfelt/SystemBarTint


text:
Win32/Zpevdo.A Windows Defender

When attempting to download the windows desktop version, windows defender flags it as trojan called Win32/Zpevdo.A.
Download url
https://github.com/jgraph/drawio-desktop/releases/download/v8.8.0/draw.io-setup-signed-8.8.0.exe

Logged as https://github.com/jgraph/drawio-desktop/issues/62

authors: SamuelColacchia davidjgraph

repo: jgraph/drawio


text:
Feature Request: Marble Diagrams

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
I want to have marble diagrams
Describe the solution you'd like
I want to draw marble diagrams
Describe alternatives you've considered
None

If you submit such a low quality issue again you will be banned.

authors: davidjgraph sirinath


text:
Extra box often created not in original svg

For svg files that are converted to xml, svg2xml (latest version) with default options (same result by unchecking the calculate border) adds an extra box to the end of each icon in the xml:
    <rect h="32" w="32" x="0.005" y="0"/>
    <fillstroke/>
    </foreground>
</shape>

This is an example svg that results in the above extra rect stmt at end of xml (extra square covers entire icon in this case):
<svg id="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><style>.cls-1{fill:none;}</style></defs><title>user</title><path d="M16,4a5,5,0,1,1-5,5,5,5,0,0,1,5-5m0-2a7,7,0,1,0,7,7A7,7,0,0,0,16,2Z"/><path d="M26,30H24V25a5,5,0,0,0-5-5H13a5,5,0,0,0-5,5v5H6V25a7,7,0,0,1,7-7h6a7,7,0,0,1,7,7Z"/><rect id="_Transparent_Rectangle_" data-name="<Transparent Rectangle>" class="cls-1" width="32" height="32"/></svg>
Most of the svg icons I convert by svg2xml have the extra rect as above example.
A few of the conversions have no extra box.
A few of the conversions have the following code for the extra box.
     <path>
            <move x="0" y="0"/>
            <line x="0" y="32"/>
            <line x="32" y="32"/>
            <line x="32" y="0"/>
            <line x="0" y="0"/>
            <close/>
        </path>
        <fillstroke/>
    </foreground>
</shape>

This is an example svg that results in the above extra path stmts added at end of xml (extra square is in upper left of icon) using 64x64 but also tried 32x32:
<svg id="icon" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><defs><style>.cls-1{fill:none;}</style></defs><title>network--2</title><path d="M17,17h5.1421a4,4,0,1,0,0-2H17V7h5.1421a4,4,0,1,0,0-2H17a2.0023,2.0023,0,0,0-2,2v8H9.8579a4,4,0,1,0,0,2H15v8a2.0023,2.0023,0,0,0,2,2h5.1421a4,4,0,1,0,0-2H17Zm9-3a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,14ZM26,4a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,4ZM6,18a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,6,18Zm20,6a2,2,0,1,1-2,2A2.0023,2.0023,0,0,1,26,24Z"/><rect id="_Transparent_Rectangle_" data-name="<Transparent Rectangle>" class="cls-1" width="32" height="32" transform="translate(32 32) rotate(180)"/></svg>
To remove the extra boxes I go thru each icon in the xml and manually delete the code causing the extra box, but if there is a reason why the extra box code is appearing please let me know.
This is also mentioned on the group here:
https://groups.google.com/g/drawio/c/-BWlV-tjsTo/m/N-RAuu4iBAAJ
Thanks!

Closing out as user error per discussion in the group.  Thanks!

authors: jaywarfield jaywarfield-developer


text:
Using multiple connections with Corcel

Hey there!
I'm using the newest Corcel together with Laravel 4.2. I installed Wordpress in a seperate database.
I configured Laravel to use this database
'mysql_wp' => array(
	'driver'    => 'mysql',
	'host'      => '127.0.0.1',
	'database'  => 'wordpress',
	'username'  => 'root',
	'password'  => 'mypassword',
	'charset'   => 'utf8',
	'collation' => 'utf8_unicode_ci',
	'prefix'    => 'wp_',
)

When I try to use this configuration with Corcel\Database::connect($params) it will break my existing database connection.
I want to configure Corcel to use the mysql_wp connection. Is this possible?

H @kummerer94! Does params have all these fields you've showed here? You can change connection inside your Model class too, like creating your own Post class extending Corcel\Post and setting $connection to mysql_up for example. Any question just ask.

Thanks for your answer! - No, I've only used the fields that were in the tutorial on the Readme page. I came up with the same solution you are proposing just yesterday.
Seems to work!

Ok @kummerer94. If any questions just ask :D

repo: jgrossi/corcel


text:
Readme stiven

Hola stiven aqui va una sugerencia

listo


text:
add coverage workflow

adds a test coverage workflow.
to see the benefit from this, you'd need to register an account with codecov.io (you can use github credentials)

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@744327d). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #121   +/-   ##
=========================================
  Coverage          ?   71.86%
=========================================
  Files             ?       88
  Lines             ?     8098
  Branches          ?        0
=========================================
  Hits              ?     5820
  Misses            ?     2278
  Partials          ?        0

Continue to review full report at Codecov.

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

authors: codecov-commenter danieleades

repo: jhelovuo/RustDDS


text:
Explore feasibility to switch from openssl to OpenBSD's libressl

https://www.libressl.org/
https://www.libressl.org/releases.html

https://github.com/libressl-portable/portable/releases/tag/v3.3.4

repo: jhnc-oss/meta-protos


text:
Add transfer yaml to the sync.yml

Purpose/implementation Section
What changes are being implemented in this Pull Request?
Another sequel to #228
What was your approach?
Now that the transfer is generally working, I'm going to add it to the sync.yml file.
I've also uncommented the trigger since it should try to run the transfer.
However I did add some handling in case a Leanpub repository does not exist.
What GitHub issue does your pull request address?
The specific solution noted in #226

Okay. This worked when I tried it locally, so let's merge and see if it works here.


text:
Update template documentation links

Dropped ITCR- from the repository name. Need to update links in the material accordingly.

Done with #85


text:
Does the alignment result follow the segmentation of the input text?

Hi Jian,
I have a question regarding the alignment process when using the input text. Specifically, I would like to know if the alignment results are produced in a greedy manner following the sequence of the input text, or if there might be break the original grouping  in text
For example, given the following input.txt content:
I like stable-whisper.
I like whisper.

Will the alignment result follow the exact order of the input text to generate the SRT file,
1
00:00:00,000 --> 00:00:02,000
I like stable-whisper.

2
00:00:02,000 --> 00:00:04,000
I like whisper.

or is there a possibility of getting an SRT file like this

1
00:00:00,000 --> 00:00:02,000
I like stable-whisper.
2
00:00:02,000 --> 00:00:03,000
I like
3
00:00:03,000 --> 00:00:04,000
whisper

By default, text is treated as one segment and then regrouped in separate segments after alignment because regroup=True.
To split the segments by line breaks, use original_split=True.
https://github.com/jianfch/stable-ts/blob/b30953022d5f5d80e2ad69735b6b1507c743caad/stable_whisper/alignment.py#L95-L96

thank you !!!

authors: jianfch shaishaicookie

repo: jianfch/stable-ts


text:
里站链接失败

使用的是拥有里站权限的账号，但是热门和最新无法刷新，也无法搜索
是6.0.6 arm64 v8a

使用魔法或不使用都是这样

提供的信息太少，可以自己排查下，Sad Panda几乎都为自身登陆问题。
1、同样网络条件下，浏览器是否能正常访问里站？
2、EH设置里，是否选择的是里站？
3、账户设置-查看Cookie里，Cookie是否正常？如ipb_session_id, ipb_pass_hash, igneous，一般来说注销后使用Cookie登陆可以解决问题。
4、更换代理节点。
5、网络设置里开关域名前置。

十分感谢，问题已解决，使用cookie登录可以正常访问
---原始邮件---
发件人: @.>
发送时间: 2022年12月5日(周一) 中午11:41
收件人: @.>;
抄送: @.@.>;
主题: Re: [jiangtian616/JHenTai] 里站链接失败 (Issue #104)
提供的信息太少，可以自己排查下，Sad Panda几乎都为自身登陆问题。
1、同样网络条件下，浏览器是否能正常访问里站？
2、EH设置里，是否选择的是里站？
3、账户设置-查看Cookie里，Cookie是否正常？如ipb_session_id, ipb_pass_hash, igneous，一般来说注销后使用Cookie登陆可以解决问题。
4、更换代理节点。
5、网络设置里开关域名前置。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


text:
Problem when using save_root

I am trying to use save_root to create root file as: "config.plot_partial_wave(smooth=True,save_root=True)". However,  I get the error that "AttributeError: module 'uproot' has no attribute 'newtree'". I have checked uproot has been installed successfully.  The version of uproot is 4.2.2.
Do you have any idea about it?

You should use uproot3. Uproot4 does not support saving root file.

I find that it has been supported now in new api, I can update it.

I have added it https://github.com/jiangyi15/tf-pwa/pull/70, you can have a try now.

Thank you for your reply! I will try it later.
------------------ 原始邮件 ------------------
发件人:                                                                                "jiangyi15/tf-pwa"                                                                                @.>;
发送时间: 2022年4月9日(星期六) 晚上7:17
@.>;
@.@.>;
主题: Re: [jiangyi15/tf-pwa] Problem when using save_root (Issue #69)
I have added it #70, you can have a try now.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

It works well now! Thank you.


text:
compiling error "error: ‘DScalar’ does not name a type"

Hi Zhongshi,
I would like to test your algorithm (very interesting work!), but have trouble compiling it (on linux).
I attach the error log, do you have an idea what the problem might be?
Thanks!
Marius
config.txt
error.txt

Hi Marius,
Thanks for interest in our work!
I don’t have my computer right now but it should has something to do with
the auto diff dependency: could you search in the downloaded file if the
autodiff file is present?
The file is supposed to download at compile time but there might be a
network glitch.
https://github.com/jiangzhongshi/bijective-projection-shell/issues/8
On Fri, Sep 23, 2022 at 10:26 AM MariusCausemann @.***>
wrote:

Hi Zhongshi,
I would like to test your algorithm (very interesting work!), but have
trouble compiling it (on linux).
I attach the error log, do you have an idea what the problem might be?
Thanks!
Marius
config.txt
https://urldefense.com/v3/__https://github.com/jiangzhongshi/bichon/files/9634513/config.txt__;!!BhJSzQqDqA!Wb6mPiABRXikMQapLZlrRUvuvQPHkhoKjO_g4fv4FSb4Kqft64sY-Z_JLinFBJdZCS0Xet8kK9LxtaXnKvJQVW4TVQ$
error.txt
https://urldefense.com/v3/__https://github.com/jiangzhongshi/bichon/files/9634514/error.txt__;!!BhJSzQqDqA!Wb6mPiABRXikMQapLZlrRUvuvQPHkhoKjO_g4fv4FSb4Kqft64sY-Z_JLinFBJdZCS0Xet8kK9LxtaXnKvLLVrjLrQ$
—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/jiangzhongshi/bichon/issues/10__;!!BhJSzQqDqA!Wb6mPiABRXikMQapLZlrRUvuvQPHkhoKjO_g4fv4FSb4Kqft64sY-Z_JLinFBJdZCS0Xet8kK9LxtaXnKvJwd826eQ$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ADBLCF2KNOEQ4OAGTFHJ3ODV7W4Y7ANCNFSM6AAAAAAQUBBSLM__;!!BhJSzQqDqA!Wb6mPiABRXikMQapLZlrRUvuvQPHkhoKjO_g4fv4FSb4Kqft64sY-Z_JLinFBJdZCS0Xet8kK9LxtaXnKvLG3fpttA$
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Best,
Zhongshi Jiang
New York University

I think you are right about the problem, it's the missing autodiff file. It doesn't seem to be a temporary network glitch though, this link is still down:
https://raw.githubusercontent.com/polyfem/polyfem/master/src/utils/autodiff.h

Thanks for letting me know,
Please use,
https://raw.githubusercontent.com/polyfem/polyfem/master/src/polyfem/utils/autodiff.h
I will replace it with a more permanent link
On Sat, Sep 24, 2022 at 5:21 AM MariusCausemann @.***>
wrote:

I think you are right about the problem, it's the missing autodiff file.
It doesn't seem to be a temporary network glitch though, this link is still
down:
https://raw.githubusercontent.com/polyfem/polyfem/master/src/utils/autodiff.h
https://urldefense.com/v3/__https://raw.githubusercontent.com/polyfem/polyfem/master/src/utils/autodiff.h__;!!BhJSzQqDqA!Q8QNN-p7hYC1ZBL27R7p-bTC7ZHkEt2fZ8bE60SVCw1iFzCsSp9piZptSZgmJ3HuZwcfpk0MvVINoPiGtLBw9ji9_A$
—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/jiangzhongshi/bichon/issues/10*issuecomment-1256920939__;Iw!!BhJSzQqDqA!Q8QNN-p7hYC1ZBL27R7p-bTC7ZHkEt2fZ8bE60SVCw1iFzCsSp9piZptSZgmJ3HuZwcfpk0MvVINoPiGtLCMp8bMug$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ADBLCF3TAAUJUCMWRO474LLV73B25ANCNFSM6AAAAAAQUBBSLM__;!!BhJSzQqDqA!Q8QNN-p7hYC1ZBL27R7p-bTC7ZHkEt2fZ8bE60SVCw1iFzCsSp9piZptSZgmJ3HuZwcfpk0MvVINoPiGtLBnYxVAvQ$
.
You are receiving this because you commented.Message ID:
@.***>

Great, that solves the issue. Thanks!

authors: MariusCausemann jiangzhongshi

repo: jiangzhongshi/bichon


text:
🛑 The R Dispatch Blogdown is down

In 6268f5d, The R Dispatch Blogdown (https://therdispatch.jimbrig.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: The R Dispatch Blogdown is back up in 84252ed.

repo: jimbrig/upptime


text:
The service name is invalid. More help is available by typing NET HELPMSG 2185. - Macbook Pro M2

` Exception calling "SetAccessRule" with "1" argument(s): "Some or all identity references could not be translated."
At C:\Users\ngallen\AppData\Local\Temp\Temp1_MSSQLEXPRESS-M1-Install-main.zip\MSSQLEXPRESS-M1-Install-main\src\install2
022Developer.ps1:98 char:1

$acl.SetAccessRule($accessRule)

  + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
  + FullyQualifiedErrorId : IdentityNotMappedException

Exception calling "SetAccessRule" with "1" argument(s): "Some or all identity references could not be translated."
At C:\Users\ngallen\AppData\Local\Temp\Temp1_MSSQLEXPRESS-M1-Install-main.zip\MSSQLEXPRESS-M1-Install-main\src\install2
022Developer.ps1:103 char:1

$acl.SetAccessRule($accessRule)

  + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
  + FullyQualifiedErrorId : IdentityNotMappedException

Copy-Item : Cannot find path 'C:\Program Files\Microsoft SQL
Server\MSSQL16.MSSQLSERVER\MSSQL\Binn\Templates\master.mdf' because it does not exist.
At C:\Users\ngallen\AppData\Local\Temp\Temp1_MSSQLEXPRESS-M1-Install-main.zip\MSSQLEXPRESS-M1-Install-main\src\install2
022Developer.ps1:120 char:1

Copy-Item -Path "$installedPath\Binn\Templates\master.mdf" -Destinati ...

  + CategoryInfo          : ObjectNotFound: (C:\Program File...ates\master.mdf:String) [Copy-Item], ItemNotFoundExce
 ption
  + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand                                 Writing web request                                                                                (Number of bytes written: 86Copy-Item : Cannot find path 'C:\Program Files\Microsoft SQL                                                                                Server\MSSQL16.MSSQLSERVER\MSSQL\Binn\Templates\mastlog.ldf' because it does not exist.                                 ESS-M1-Install-main\src\install2

022Developer.ps1:121 char:1

Copy-Item -Path "$installedPath\Binn\Templates\mastlog.ldf" -Destinat ...

  + CategoryInfo          : ObjectNotFound: (C:\Program File...tes\mastlog.ldf:String) [Copy-Item], ItemNotFoundExce
 ption
  + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

New-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL
Server\MSSQL16.MSSQLSERVER\MSSQLServer\Parameters' because it does not exist.
At C:\Users\ngallen\AppData\Local\Temp\Temp1_MSSQLEXPRESS-M1-Install-main.zip\MSSQLEXPRESS-M1-Install-main\src\install2
022Developer.ps1:126 char:1

New-ItemProperty -Path $registryPath -Name $name -Value $value -Force

  + CategoryInfo          : ObjectNotFound: (HKLM:\SOFTWARE\...rver\Parameters:String) [New-ItemProperty], ItemNotFo
 undException
  + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.NewItemPropertyCommand

New-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL
Server\MSSQL16.MSSQLSERVER\MSSQLServer\Parameters' because it does not exist.
At C:\Users\ngallen\AppData\Local\Temp\Temp1_MSSQLEXPRESS-M1-Install-main.zip\MSSQLEXPRESS-M1-Install-main\src\install2
022Developer.ps1:129 char:1

New-ItemProperty -Path $registryPath -Name $name -Value $value -Force

  + CategoryInfo          : ObjectNotFound: (HKLM:\SOFTWARE\...rver\Parameters:String) [New-ItemProperty], ItemNotFo
 undException
  + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.NewItemPropertyCommand

New-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL
Server\MSSQL16.MSSQLSERVER\MSSQLServer\Parameters' because it does not exist.
At C:\Users\ngallen\AppData\Local\Temp\Temp1_MSSQLEXPRESS-M1-Install-main.zip\MSSQLEXPRESS-M1-Install-main\src\install2
022Developer.ps1:132 char:1

New-ItemProperty -Path $registryPath -Name $name -Value $value -Force

  + CategoryInfo          : ObjectNotFound: (HKLM:\SOFTWARE\...rver\Parameters:String) [New-ItemProperty], ItemNotFo
 undException
  + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.NewItemPropertyCommand`

I have the same problem on M2 MacBook Air

same here
MacBook Air M2
Any chance to fix this?
Thanks

Make sure your windows user has password

As a german user it helped me to change the following line from the .ps1.
$sqlInstallArgs = "/qs /ACTION=Install /FEATURES=SQLEngine /INSTANCENAME=$instanceName /ENU /IACCEPTSQLSERVERLICENSETERMS /UPDATEENABLED=false /USEMICROSOFTUPDATE=false"
to
$sqlInstallArgs = "/qs /ACTION=Install /FEATURES=SQLEngine /INSTANCENAME=$instanceName /IACCEPTSQLSERVERLICENSETERMS /UPDATEENABLED=false /USEMICROSOFTUPDATE=false"

Please note after some digging around and running the SETUP.exe directly, path length is a factor in the success.  SQL Setup will fail silently if the path is long than 260 characters

I have been trying for the last day to get SQL 2019 running on Windows 11 (Parallels) on my M2 Max. Getting the same error that @rngallen posted above. Any ideas?

Make sure your windows user has password as by default it install MSSQL with windows authentication. @twaibs23

@rngallen Script seemed to complete this time, however now I'm getting the same Windows Update error message that I've gotten all along when trying to install 2019 or 2022 SQL on my machine. Anyone able to give me a hand and take a look? Trying to get 2019 installed to work with Webgility.

Just a few notes. I got it working but didn't use a Microsoft account when setting up Windows 11. I created a standard local account setup as a member of the local administrators group with a password assigned to it and got all versions of the script to install their respective SQL editions without any issues under that usage scenario. If you're using a Microsoft account to sign in I'd ditch that and go with a local admin account with a password instead to get things going. For security purposes you shouldn't use an account with local admin privileges as your daily driver account unless you are security conscious and know what you're doing. Use a non-admin account for that but don't use a Microsoft account with Windows 10 or 11 either way if you want to avoid a bunch of headaches....

Judging by the error it looks like an issue with getting the user - what is the output of "whoami" in PowerShell on the affected machine? Are you using Active Directory account? The scripts were tested with a personal Microsoft account. Also as @rngallen mentioned, the user account under which you are installing should probably have a password set.

Should be fixed using the new installers or scripts.


text:
sources api

Anybody know if this api is covered?
https://devnet.familysearch.org/docs/api/source_links_module

It isn't yet. Would you want to help with some code?
On Dec 13, 2011 3:17 PM, "Roger Pack" <
reply@reply.github.com>
wrote:

Anybody know if this api is covered?
https://devnet.familysearch.org/docs/api/source_links_module

Reply to this email directly or view it on GitHub:
https://github.com/jimmyz/ruby-fs-stack/issues/6

It isn't yet. Would you want to help with some code?

Yeah if I get to it before you do.
-r

authors: jimmyz rdp

repo: jimmyz/ruby-fs-stack