text:
Batch inference produces nonsense results for unsloth/mistral-7b-instruct-v0.2-bnb-4bit

Hi there,
after loading the model with:
from unsloth import FastLanguageModel
import torch

model, tokenizer = FastLanguageModel.from_pretrained(
    model_name = "unsloth/mistral-7b-instruct-v0.2-bnb-4bit",
    max_seq_length = 2048,
    dtype = None,
    load_in_4bit = True,
)

tokenizer.padding_side='left'
tokenizer.pad_token = tokenizer.eos_token

I performed a batch inference:
instructs = []

for r in texts:
    summary_inst = f"""Provide a very short summary of the text: {r}"""

    chat = [
        {"role": "user", "content": summary_inst},
    ]

    txt = tokenizer.apply_chat_template(chat, tokenize=False)
    instructs.append(txt)

inputs = tokenizer(instructs, return_tensors = "pt", padding=True).to("cuda")
response = model.generate(**inputs, max_new_tokens = 512, do_sample=False).cpu().numpy()

raw_txts = tokenizer.batch_decode(response, skip_special_characters=True)
response = [rr.split("[/INST]")[-1].replace("</s>", "") for rr in raw_txts]

The received answer is nonsensical, but since it consists of 3 elements, and the second is the longest - this one is the only correct one, the other two are nonsensical. When I reduce all the texts (to a maximum of 3000 characters) - all the answers return to normal. It also works well when I infer each one in turn.
texts.txt
nonsense_texts.txt
The texts to generate the summary are attached as texts.txt, and the nonsense answers are in the file nonsense_texts.txt (3 entries are separated by the <END> tag) to be reproduced, below is an example of a nonsense answer:
' The , 1200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',

@ziemowit-s I'll check this out! Sorry on the issue!

Don't worry, it's a relatively new library so bugs are expected :)

Hey, just want to confirm, I have an exact same issue with my Llama model. Inference on single samples works fine, but produces garbage on batches of multiple samples. I'm loading my model in bfloat16 without quantization.

@ziemowit-s @its5Q Apologies on the issues again :( Still debugging stuff so sorry on that!

Actually can confirm - batched inference in fact is breaking - I'm working on a fix asap - sorry for the wait guys!

@ziemowit-s @its5Q Much apologies on the delay - I temporarily fixed it by disabling Unsloth's fast inference paths - it seems like I need to dig deeper on why this is happening :( Using pip install --upgrade --force-reinstall --no-cache-dir git+https://github.com/unslothai/unsloth.git will get the temporary fix.
Again sorry for the inconvience!

@ziemowit-s @its5Q  I think I finally fixed it!!
On the example @ziemowit-s provided me:
[' The text emphasizes the benefits of humor in the healing process, including reducing stress, improving mood, and boosting the immune system. It suggests strategies such as seeking out humor that resonates, finding humor in everyday situations, sharing a laugh with others, using humor as a coping mechanism, and being gentle with oneself. The text also encourages taking things one step at a time and seeking support when needed.',
 ' The text discusses various causes for memory and concentration issues beyond anxiety, including nutritional deficiencies, sleep deprivation, chronic stress, medications, medical conditions, substance abuse, brain injuries, and aging. Daniella shares her experiences of anxiety, stress, skipping meals, and lack of sleep. Irvin suggests prioritizing self-care, relaxation techniques, and speaking with a therapist to manage stress and memory issues. Daniella expresses concerns about the cost and time commitment of adding new treatments to her therapy sessions. Irvin emphasizes the importance of investing in mental health and encourages Daniella to consider speaking with her therapist about her concerns.',
 ' Dissociative disorders involve alterations in consciousness, memory, identity, or perception, and can include feelings of worthlessness and isolation due to detachment from self and others. These symptoms should be discussed with a therapist for proper diagnosis and treatment. While feelings of worthlessness and isolation are common, they may indicate an underlying mental health condition. Reach out for help and support if these feelings persist and interfere with daily life.',
 ' Board games can help manage anxiety by providing distraction, social interaction, problem-solving, relaxation, and fun. The benefits may vary for individuals, so experimenting with different types of games is recommended.']

Single inference again is faster - batched similar speed for now.

Awesome, I'll test it as soon as I get to it

Tried it myself and I'm getting the same weird output as before. One thing that I've noticed is that the weird output only comes from the samples that are padded, and the longest prompt in the batch produces normal output. If all the samples in the batch are the same length in tokens, thus no padding is required, the model output is as to be expected.

@its5Q That's very weird :( For me it seems to work perfectly. I have an example if you can run this:
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
    model_name = "unsloth/mistral-7b-instruct-v0.2-bnb-4bit",
    max_seq_length = 2048,
    dtype = None,
    load_in_4bit = True,
)

inputs = [
    "Create a Python program using Pytorch to create a simple neural network for image classification.\n"\
    "You need to do the data preparation step, the training step, and the inference step as well.",

    "Create a Python program to compute all the primes.",

    "Write a long essay about happiness, and how to attain it. Provide clear markdown sections.",

    "20*20=?",
]

tokenizer.pad_token = tokenizer.unk_token
tokenizer.padding_side = "left"
inputs = tokenizer(inputs, return_tensors = "pt", padding = True).to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 512, do_sample = False, use_cache = True)

decoded = tokenizer.batch_decode(outputs)
for text in decoded:
    print(text.replace(tokenizer.pad_token, ""))
    print("_" * 70)

You will get:
<s> Create a Python program using Pytorch to create a simple neural network for image classification.
You need to do the data preparation step, the training step, and the inference step as well.

Here's a simple example of a neural network for image classification using PyTorch. This example uses the MNIST dataset, which consists of 60,000 28x28 grayscale images of digits 0-9.

First, let's install the required packages:

```bash
pip install torch torchvision
```

Now, let's write the code:

```python
import torch
import torchvision
import torchvision.transforms as transforms
import torch.nn as nn
import torch.optim as optim

# Load and normalize the MNIST dataset
transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize((0.5,), (0.5,))])

trainset = torchvision.datasets.MNIST(root='./data', train=True, download=True, transform=transform)
trainloader = torch.utils.data.DataLoader(trainset, batch_size=100, shuffle=True)

testset = torchvision.datasets.MNIST(root='./data', train=False, download=True, transform=transform)
testloader = torch.utils.data.DataLoader(testset, batch_size=100, shuffle=False)

# Define the neural network architecture
class Net(nn.Module):
    def __init__(self):
        super(Net, self).__init__()
        self.fc1 = nn.Linear(28 * 28, 128)
        self.fc2 = nn.Linear(128, 64)
        self.fc3 = nn.Linear(64, 10)

    def forward(self, x):
        x = x.view(-1, 28 * 28)
        x = F.relu(self.fc1(x))
        x = F.relu(self.fc2(x))
        x = self.fc3(x)
        return x

net = Net()

# Define the loss function and optimizer
criterion = nn.CrossEntropyLoss()
optimizer = optim.SGD(net.parameters(),
______________________________________________________________________
<s> Create a Python program to compute all the primes.

Here's a simple Python program to find all prime numbers up to a given limit:

```python
def is_prime(n):
    """
    Check if a number is prime.
    """
    if n <= 1:
        return False
    for i in range(2, int(n ** 0.5) + 1):
        if n % i == 0:
            return False
    return True

def find_primes(limit):
    """
    Find all prime numbers up to a given limit.
    """
    primes = []
    for n in range(2, limit + 1):
        if is_prime(n):
            primes.append(n)
    return primes

if __name__ == "__main__":
    limit = int(input("Enter the limit: "))
    primes = find_primes(limit)
    print(f"Prime numbers up to {limit}:")
    print(primes)
```

This program uses two functions: `is_prime()` to check if a number is prime, and `find_primes()` to find all prime numbers up to a given limit. The main part of the code is in the `if __name__ == "__main__":` block, where it takes user input for the limit and then prints out the prime numbers found.</s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s></s>
______________________________________________________________________
<s> Write a long essay about happiness, and how to attain it. Provide clear markdown sections.

# Happiness: The Elusive Pursuit

Happiness is a concept that has puzzled philosophers, theologians, and ordinary people for centuries. It is a state of well-being and contentment, a feeling of joy and satisfaction with life. Yet, despite its importance, happiness remains an elusive and subjective experience. In this essay, we will explore the nature of happiness, its sources, and the ways to attain it.

## The Nature of Happiness

Happiness is a complex and multifaceted experience. It is not a static state, but rather a dynamic process that ebbs and flows throughout our lives. Happiness is not the absence of suffering or hardship, but rather the ability to find meaning and joy in the midst of challenges. It is a state of mind that is shaped by our thoughts, emotions, and actions.

### The Role of Thoughts

Our thoughts play a significant role in shaping our experience of happiness. The way we think about ourselves, our circumstances, and the world around us can either enhance or diminish our sense of well-being. For example, focusing on the negative aspects of a situation can lead to feelings of sadness and frustration, while focusing on the positive can lead to feelings of gratitude and joy.

### The Role of Emotions

Emotions are another important factor in our experience of happiness. Positive emotions such as joy, love, and gratitude can enhance our sense of well-being, while negative emotions such as anger, sadness, and fear can detract from it. However, it is important to note that emotions are not static states, but rather transient experiences that come and go.

### The Role of Actions

Our actions also play a role in our experience of happiness. Engaging in activities that bring us joy and fulfillment, such as pursuing a hobby or spending time with loved ones, can enhance our sense of well-being. Conversely, engaging in activities that are harmful or detrimental to our health and happiness, such as substance abuse or excessive work, can detract from it.

## The Sources of Happiness

Despite the complexity of happiness, there are certain sources that have been identified as contributing to our sense of well-being.

### Relationships

Relationships with others are a fundamental source of happiness. Human
______________________________________________________________________
<s> 20*20=?

The answer to this question is 400. The multiplication of 20 by itself results in 400. The number 20 is multiplied by itself 20 times, resulting in a total of 40,000. However, since the question asks for the result of 20 multiplied by itself 20 times, we need to find the result of multiplying 20 by itself 20 times and then take the square root of that number to get the final answer of 400.

Here's the step-by-step calculation:

1. Multiply 20 by itself 20 times: 20 × 20 × 20 × ... × 20 (20 multiplications)
2. Calculate the product: 20^20 = 40,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
______________________________________________________________________

If you do them individually, I get:
<s> Create a Python program using Pytorch to create a simple neural network for image classification.
You need to do the data preparation step, the training step, and the inference step as well.

Here's a simple example of a neural network for image classification using PyTorch. This example uses the MNIST dataset, which consists of 60,000 28x28 grayscale images of digits 0-9.

First, let's install the required packages:

```bash
pip install torch torchvision
```

Now, let's write the code:

```python
import torch
import torchvision
import torchvision.transforms as transforms
import torch.nn as nn
import torch.optim as optim

# Load the MNIST dataset
transform = transforms.ToTensor()

trainset = torchvision.datasets.MNIST(root='./data', train=True, download=True, transform=transform)
trainloader = torch.utils.data.DataLoader(trainset, batch_size=100, shuffle=True)

testset = torchvision.datasets.MNIST(root='./data', train=False, download=True, transform=transform)
testloader = torch.utils.data.DataLoader(testset, batch_size=100, shuffle=False)

# Define the neural network architecture
class Net(nn.Module):
    def __init__(self):
        super(Net, self).__init__()
        self.fc1 = nn.Linear(28 * 28, 128)
        self.fc2 = nn.Linear(128, 64)
        self.fc3 = nn.Linear(64, 10)

    def forward(self, x):
        x = x.view(-1, 28 * 28)
        x = F.relu(self.fc1(x))
        x = F.relu(self.fc2(x))
        x = self.fc3(x)
        return x

net = Net()

# Define the loss function and optimizer
criterion = nn.CrossEntropyLoss()
optimizer = optim.SGD(net.parameters(), lr=0.001, momentum=0.9)

# Training the neural network
for epoch in range
______________________________________________________________________

Some differences via https://www.diffchecker.com/text-compare/:

The 2nd one:
<s> Create a Python program to compute all the primes.

Here's a simple Python program to find all prime numbers up to a given limit:

```python
def is_prime(n):
    """
    Check if a number is prime.
    """
    if n <= 1:
        return False
    for i in range(2, int(n ** 0.5) + 1):
        if n % i == 0:
            return False
    return True

def find_primes(limit):
    """
    Find all prime numbers up to a given limit.
    """
    primes = []
    for n in range(2, limit + 1):
        if is_prime(n):
            primes.append(n)
    return primes

if __name__ == "__main__":
    limit = int(input("Enter the limit: "))
    primes = find_primes(limit)
    print(f"Prime numbers up to {limit}:")
    print(primes)
```

This program uses two functions: `is_prime()` to check if a number is prime, and `find_primes()` to find all prime numbers up to a given limit. The main part of the code is in the `if __name__ == "__main__":` block, where it takes user input for the limit and then prints out the prime numbers found.</s>
______________________________________________________________________

No difference on 2nd.
On 3rd:
<s> Write a long essay about happiness, and how to attain it. Provide clear markdown sections.

# Happiness: The Ultimate Goal

Happiness is a state of well-being and contentment. It is the feeling of joy, satisfaction, and fulfillment. Happiness is the ultimate goal of every human being. It is what we all strive for, whether consciously or unconsciously.

## The Importance of Happiness

Happiness is important for several reasons. First and foremost, it makes life worth living. Without happiness, life can seem meaningless and unfulfilling. Happiness gives us a sense of purpose and direction. It helps us to appreciate the good things in life and to cope with the challenges and hardships that come our way.

Second, happiness is good for our health. Research has shown that happy people are healthier and more resilient than unhappy people. They have stronger immune systems, they recover from illness faster, and they live longer.

Third, happiness is good for our relationships. Happy people are more likely to have strong, healthy relationships with others. They are better able to communicate effectively, to forgive and to be forgiven, and to show love and compassion.

Fourth, happiness is good for our productivity and creativity. Happy people are more productive and creative than unhappy people. They are more focused, more motivated, and more innovative.

## The Pursuit of Happiness

Despite the many benefits of happiness, it can be elusive. Many people spend their entire lives searching for happiness, only to find that it always seems just out of reach. So how can we attain happiness?

### 1. Cultivate a Positive Attitude

One of the most effective ways to cultivate happiness is to cultivate a positive attitude. This means focusing on the good things in life, rather than the bad. It means looking for the silver lining in every situation, and finding ways to turn negatives into positives.

### 2. Practice Gratitude

Another effective way to cultivate happiness is to practice gratitude. This means being thankful for what we have, rather than focusing on what we don't have. It means appreciating the small things in life, and being grateful for the people and things that make our lives richer and more meaningful.

### 3. Build Strong Relationships

Strong relationships with others are essential for happiness. This
______________________________________________________________________

Very different to single decoding, but both are still coherent:

This is because I use torch.nn.functional.softmax for single decoding and torch.nn.functional.scaled_dot_product_attention for multi decoding
And finally:
<s> 20*20=?

The answer to this question is 400. The multiplication of 20 by itself results in 400. The number 20 is multiplied by itself 20 times, resulting in a total of 40,000. However, since the question asks for the result of 20 multiplied by itself 20 times, we need to find the result of multiplying 20 by itself 20 times and then take the square root of that number to get the final answer of 400.

Here's the step-by-step calculation:

1. Multiply 20 by itself 20 times: 20 × 20 × 20 × ... × 20 (20 multiplications)
2. Calculate the product: 20^20 = 40,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
______________________________________________________________________

0 differences as well - the reasoning though is dumb lol

Also @its5Q you need to use padding_side = "left" or else the results will be wrong

Also @its5Q you need to use padding_side = "left" or else the results will be wrong

Oh yeah, that the problem, thanks. Now batched inference works as expected for me.

@its5Q im thinking if somehow I can default it to left, since people have said this was an ongoing issue!

0 differences as well - the reasoning though is dumb lol

wouldn't the difference be due to calculating a random seed each generation? Therefore generations would be different even when comparing non-batched with non-batched

@its5Q im thinking if somehow I can default it to left, since people have said this was an ongoing issue!

I'm not an expert in the transformers/unsloth code, but couldn't you just add a line of code before return model, tokenizer with tokenizer.padding_side = "left"?

@JIBSIL Oh if you select do_sample = False there is no randomness involved. On the left issue - the issue is for training, this makes training more complex, and Unsloth was primarily a training library, hence the reason why the padding is right.

@JIBSIL Oh if you select do_sample = False there is no randomness involved. On the left issue - the issue is for training, this makes training more complex, and Unsloth was primarily a training library, hence the reason why the padding is right.

Ah, thanks for the clarification. However, in the newest release, I am encountering a different error:
    146 seq_len = past_key_values[0][0].shape[-2]
    147 if bsz != 1:
--> 148     attention_mask = _prepare_4d_causal_attention_mask(attention_mask, (bsz, q_len), hidden_states, seq_len,)
    149 pass
    151 next_decoder_cache = []

NameError: name '_prepare_4d_causal_attention_mask' is not defined```

Specifically using Gemma-7b. But as usual, mistral works fine 🤣

@its5Q Whoops you're correct! I decided to just run the notebook - I 100% finally fixed it now oh lord so sorry!!! The issue of multiple model supports :(

Dear author, does unsloth support vLLM? I use unsloth for single sample inference, but the speed is too slow. is there any way to improve the inference efficiency?


text:
Add option to double up exposure stepping

Toggle option to have even more granular stepping of exposure. A step between every current step might be perfect. Harsher outdoor light is difficult to dial in.

why did you close this? i was going to add additional exposure steps for the manual mode...

looking good now

source: gharchive/issue

authors: bcoyle untoxa

license: MIT

license_type: permissive

license_source: github-api


text:
To see the ambulance index dispatched in the output-file?

Hello Sam,
Could you help me with this question? How can I see the ambulance (index) that has been sent to every emergency call (with call-index also shown)? And also the time of every ambulance dispatched? Can I see all these data in the output-file “calls.csv”?
Thank you in advance for your attention. Best regards.
Daniel

Hi Daniel,
I think that the ambulance sent to an emergency call is stored on each call with call.ambIndex but it is not written to the calls.csv.
As for the time of every ambulance dispatch, each call records when the final ambulance dispatched to the call occurred with call.dispatchTime, but if any ambulance is re-dispatched from one call to another then the first dispatch time will not be recorded.

Thank you very much Sam for your answer. Is there any way to add the "call.ambIndex" data in the output file "calls.csv"?
Best regards.

You can set the call.attributes before calling writeStatsFiles(sim) to write additional fields to the calls.csv, though it will all be put in a single column where each cell has type Dict{String,Any}. To set the call.attributes` use:
for call in sim.calls
    call.attributes["ambIndex"] = call.ambIndex
end

though if the simulation has multiple replications then use:
for rep in sim.reps, call in rep.calls
    call.attributes["ambIndex"] = call.ambIndex
end

If that doesn't work for you then I could try add the ambIndex as a column in calls.csv.


text:
Fix live tests up5189

Replace live tests based on Sobloo S2 blocks with workflow including S2 L2A Geotiff block from AWS. Add two "e2e" tests for assuring 30 sec example and catalog example are operational.
Example workflow is now S2 L2A Geotiff > Sharpening Filter.
Items:

[x] Ran test & live-tests
[x] Implemented (new) unit tests
[na] Removed credentials
[na] Removed argument pointing to staging
[x] Updated documentation

Nice! 30sec example in the readme & detailed example notebook in the docs needs to be adjusted as well. And all of them still use plotting specific to landsurfacetemp, need to change bands&cmap for RGB.

I had adjusted the examples and detailed examples, did I miss something? The CMAP is a good catch, will change.

Nice! 30sec example in the readme & detailed example notebook in the docs needs to be adjusted as well. And all of them still use plotting specific to landsurfacetemp, need to change bands&cmap for RGB.

I had adjusted the examples and detailed examples, did I miss something? The CMAP is a good catch, will change.

@chrieke seems like I forgot to push some commits! Sorry about that. One other thing - this page seems to be broken https://sdk.up42.com/guides/detailed-example.ipynb. I've tried in locally in this branch and the same happens, any clue why that is? In the makefile there is some magic I don't understand with the paths, not sure if related:
unlink $(PWD)/docs/examples; ln -s $(PWD)/examples docs
unlink $(PWD)/docs/CHANGELOG.md; ln -s $(PWD)/CHANGELOG.md docs
mkdocs serve

@chrieke seems like I forgot to push some commits! Sorry about that. One other thing - this page seems to be broken https://sdk.up42.com/guides/detailed-example.ipynb. I've tried in locally in this branch and the same happens, any clue why that is? In the makefile there is some magic I don't understand with the paths, not sure if related:
unlink $(PWD)/docs/examples; ln -s $(PWD)/examples docs
unlink $(PWD)/docs/CHANGELOG.md; ln -s $(PWD)/CHANGELOG.md docs
mkdocs serve

The commands for make serve&make gh-pages are to systemlink the example notebooks & changelog into the docs directory before building the docs (systemlink is like a shortcut on Windows). mkdocs can only pick up files in docs subdirectories, this avoids file duplication of the examples folder. In the command a potential existing system link is first unlinked, then linkend again.
Not sure what happened here, can see via commit message that you used make gh-pages correctly (instead of mkdocs serve where I would expect this problem). Maybe some mixup with the systemlink that I'm not aware off, can you please manually remove up42/docs/examples if it already exists and check again when using make serve? Works for me on this branch.
Easiest solution to avoid any future problems would be to finally establish a dev branch and have the docs automatically reflect master via github action. Think you suggested this a longer time ago already. If you agree can you create a task please?

github action

Nice! Will add this github action together with the live and e2e test ticket!

source: gharchive/pull-request


text:
TRA-4383 Calculate request and response sizes and display them instead of BodySize field

It will as far as I understand, require publishing a new version to @up9/mizu-common NPM package.

You are probably correct about publishing new version of the common library. I will try to talk with @leon-up9 / @lirazyehezkel  and see how we it is done. Also there will be more changes before to fix the broken tests (Leon is working on it and I hope it will be finished tomorrow)

You are probably correct about publishing new version of the common library. I will try to talk with @leon-up9 / @lirazyehezkel and see how we it is done. Also there will be more changes before to fix the broken tests (Leon is working on it and I hope it will be finished tomorrow)

@gadotroee OK :+1:

authors: gadotroee mertyildiran


text:
Bump crddiff to v0.8.0

Description of your changes

This PR bumps crddiff to v0.8.0 and adds the --enable-upjet-extensions command-line option while running it. Please see the description in https://github.com/upbound/uptest/pull/160 for more details.
I have:

[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Because we are bumping the version of the uptest binary:
/test-examples="examples/ec2/vpc.yaml"

repo: upbound/provider-aws


text:
Usage of dots in metadata.name errors at Terraform level

What happened?
We are getting errors from Terraform if the metadata.name contains dots, e.g. example.com, since we use the same to name the terraform resource name which does not accept dots in the name.
Note users would see this during runtime.
How can we reproduce it?
Create an upjet generated MR with name dots inside.
Possible Fixes
Not use metadata.name in cases where it would break. We need to be careful with the upgrade process.

https://github.com/upbound/provider-azure/issues/71

Hello! this blocks usage of subdomains in the record name, which are obviously separated by the dots.
I was planning to migrate from the Terraform resource azurerm_private_dns_a_record to Crossplane PrivateDNSARecord.
This fails with error:
observe failed: cannot run refresh: refresh failed: Invalid resource name: A name must start with a letter or underscore and may contain only letters, digits, underscores, and dashes

@PowerSurj, you can use external-name annotation to mitigate the problem:
metadata:
  name: example
  annotations:
    crossplane.io/external-name: subdomain.example.com

authors: PowerSurj tomasfreund turkenh ytsarev

repo: upbound/upjet


text:
Is there any way to support resources that can only be replaced and not updated in place?

I'm trying to create a github organization secret with a custom github provider i made with upjet.
Currently, the terraform provider for github marks all fields for a github organization secret as "forceNew", so we can't update the secret.
There seems to be no way to allow prevent_destroy on any resource?  Is there any way to make this work without deleting the crossplane resource and recreating it?

+1
I've run into this issue when trying to re-create IAM members in GCP if a role or member needs to be modified.

Would this proposal that introduces more granular management policies help here?


text:
Pull request title not being updated as new versions are released

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
1.4.8 was the first version, but a few more versions were released before a reviewer got to it.
the PR description was updated by update cli, but PR title was never updated

https://github.com/hmcts/cnp-flux-config/pull/18147
Expected Behavior
title and description should be in sync
Steps To Reproduce
https://github.com/hmcts/cnp-flux-config/blob/master/.github/workflows/updatecli.yaml
https://github.com/hmcts/cnp-flux-config/blob/master/updatecli/weekly.d/jenkins-packer.yaml
Basically just release a new version of something and PR title and description should be updated
Environment
- OS: Ubuntu
- updatecli: v0.33.3

Anything else?
No response

This seems issue seems duplicated with https://github.com/updatecli/updatecli/issues/866

Thanks I missed that, I searched pull request, not PR and didn't see it when I glanced through issues
Looks to be the same

authors: olblak timja

repo: updatecli/updatecli


text:
Scientific_Calculator - Mridul Vasudeva

My program uses OOP , stack , functions , switch-cases , do-while and few other things.
Please have a look at it...
Shows a Overall Menu to the User

Shows User Input specific menu

Takes required input from the user, computes the output and displays it

User has an option to preview its previously calculated result
This option utilizes stack data structure where calculations are stored and displayed when required.

Looks good to me Mridul. Can you attach some screenshots?

Looks good to me Mridul! Just Add some screenshots.

Okay, I have updated it with a few screenshots.

repo: upes-open/scientific-calculator


text:
POST request to create new deployment fails

Here's the log from my first test deployment. It appears the request is taking what should be "branch name" and attempting to create a namespace with the value.
client
$ curl -v -k -X POST https://localhost:30610/deploy/leedev/0.0.10?token=foo
*   Trying ::1...
* Connected to localhost (::1) port 30610 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: deploy.dev
> POST /deploy/leedev/0.0.10?token=foo HTTP/1.1
> Host: localhost:30610
> User-Agent: curl/7.49.1
> Accept: */*
>
^A^[< HTTP/1.1 200 OK
< Date: Tue, 13 Dec 2016 04:09:31 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host localhost left intact

server
2016/12/13 04:09:27 [Emmie] is deploying branch: 0.0.10
2016/12/13 04:09:27 [createNamespace] Error creating namespace Namespace "0.0.10" is invalid: metadata.name: Invalid value: "0.0.10": must match the regex [a-z0-9]([-a-z0-9]*[a-z0-9])? (e.g. 'my-name' or '123-abc')
2016/12/13 04:09:27 Existing namespace found:  0.0.10  deleting objects.
2016/12/13 04:09:27 [deleteReplicationController] Error deleting replicationController: namespaces "0.0.10" not found
2016/12/13 04:09:27 Deleted replicationController: webapp
2016/12/13 04:09:27 [deleteService] Error deleting service: namespaces "0.0.10" not found
2016/12/13 04:09:27 Deleted service: webapp
2016/12/13 04:09:27 [deleteSecret] Error deleting secret: namespaces "0.0.10" not found
2016/12/13 04:09:27 Deleted secret: default-token-8fwdz
2016/12/13 04:09:27 [listConfigMapsByNamespace] No ConfigMaps could be found for namespace! template
2016/12/13 04:09:31 Found  1  template replication controllers to copy.
2016/12/13 04:09:31 Found  0  template deployments to copy.
2016/12/13 04:09:31 Found  1  template services to copy.
2016/12/13 04:09:31 Found  1  template secrets to copy.
2016/12/13 04:09:31 [listConfigMapsByNamespace] No ConfigMaps could be found for namespace! template
2016/12/13 04:09:31 Found  0  template configmaps to copy.
2016/12/13 04:09:31 Found  0  template ingresses to copy.
2016/12/13 04:09:31 [createService] Error creating service: namespaces "0.0.10" not found
2016/12/13 04:09:31 [createReplicationController] Error creating replicationController: namespaces "0.0.10" not found
2016/12/13 04:09:31 [Emmie] is finished deploying branch!

I think I've made some progress. It looks like the naming conventions are different than your demo, since my containers are hosted in Amazon ECR. Working around...

I found the AWS configuration options for ECR. I get a similar error. Perhaps the terminology of "namespace" and "branch" and "tag" are unclear?
client
$ curl -v -k -X POST https://localhost:30610/deploy/repo/0.0.10?token=foo
*   Trying ::1...
* Connected to localhost (::1) port 30610 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: deploy.dev
> POST /deploy/repo/0.0.10?token=foo HTTP/1.1
> Host: localhost:30610
> User-Agent: curl/7.49.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 13 Dec 2016 06:29:23 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host localhost left intact

server
2016/12/13 06:29:18 [Emmie] is deploying branch: 0.0.10
2016/12/13 06:29:18 [createNamespace] Error creating namespace Namespace "0.0.10" is invalid: metadata.name: Invalid value: "0.0.10": must match the regex [a-z0-9]([-a-z0-9]*[a-z0-9])? (e.g. 'my-name' or '123-abc')
2016/12/13 06:29:18 Existing namespace found:  0.0.10  deleting objects.
2016/12/13 06:29:18 [deleteReplicationController] Error deleting replicationController: namespaces "0.0.10" not found
2016/12/13 06:29:18 Deleted replicationController: repo
2016/12/13 06:29:18 [deleteService] Error deleting service: namespaces "0.0.10" not found
2016/12/13 06:29:18 Deleted service: repo
2016/12/13 06:29:18 [deleteSecret] Error deleting secret: namespaces "0.0.10" not found
2016/12/13 06:29:18 Deleted secret: default-token-8fwdz
2016/12/13 06:29:18 [listConfigMapsByNamespace] No ConfigMaps could be found for namespace! template
2016/12/13 06:29:22 Found  1  template replication controllers to copy.
2016/12/13 06:29:23 Found  0  template deployments to copy.
2016/12/13 06:29:23 Found  1  template services to copy.
2016/12/13 06:29:23 Found  1  template secrets to copy.
2016/12/13 06:29:23 [listConfigMapsByNamespace] No ConfigMaps could be found for namespace! template
2016/12/13 06:29:23 Found  0  template configmaps to copy.
2016/12/13 06:29:23 Found  0  template ingresses to copy.
2016/12/13 06:29:23 [createService] Error creating service: namespaces "0.0.10" not found
RepositoryNotFoundException: The repository with name 'repo/repo' does not exist in the registry with id 'xxxxxxxxxxxx'
        status code: 400, request id: 7c966a85-c0fd-11e6-a105-5771ed3981ec
2016/12/13 06:29:23 Error looking up image tag in ECR:  RepositoryNotFoundException: The repository with name 'repo/repo' does not exist in the registry with id 'xxxxxxxxxxxx'
        status code: 400, request id: 7c966a85-c0fd-11e6-a105-5771ed3981ec
2016/12/13 06:29:23 [createReplicationController] Error creating replicationController: namespaces "0.0.10" not found
2016/12/13 06:29:23 [Emmie] is finished deploying branch!

There are a couple of things that are missing from the docs that you are finding.
When deploying:  https://localhost:30610/deploy/repo/0.0.10 the repo is the namespace and 0.0.10 is the feature branch.
For example, if I pushed my images to: aws_account_id.dkr.ecr.region.amazonaws.com/project/webapp:featureBranch I would send a POST to: https://localhost:30610/deploy/project/featureBranch. Then based upon the annotations that you've applied to the template repo, Emmie will look for any container with those annotations, and replace the tag with featureBranch.
The other 'gotcha' is there are some rules to namespaces in Kubernetes. They must be lowercase and not contain any dashes as well as be under a certain length (64-ish chars?). So when I have my CI build the image and push to ECR, I have it apply that logic.
Hope this helps, let me know if you need any more clarification, and I'll work to update the docs with this info.

cool, thanks for the info. I've gone in a different direction for my project. feature branch deployment is something that I will revisit in the future.

authors: lazzarello stevesloka

repo: upmc-enterprises/emmie

license_source: bigquery


text:
🛑 Main Website is down

In 5f97452, Main Website (https://www2.upmin.edu.ph) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Main Website is back up in c1aa9d3 after 18 minutes.

repo: upmin-dev/UP-time


text:
Updated key_management.md to fix #47

Proposal for fixing #47. Also added normative reference for IETF RFC 4107 / BCP 107.

This has two approvals and its a rather small wording change, so I am going to merge it.

repo: uptane/deployment-considerations


text:
Update README and shebangs

update all shebangs to python so the default python installation is
used
update testing part of README to tox testing
update download part to include installation by pip
change required python version to 3.5

I updated the docs/update_docs branch to update the readme for installation through pip, but the changes don't show up here!?

I guess I had merged the MKoester:docs/update_docs branch into the dev:docs/update_docs ... but from there I can't open a new pull request but apparently have to close this one here first?

authors: MKoesters StSchulze

repo: ursgal/ursgal

license: mit


text:
Command tool to help user fetch services' status

docker status
docker network accessibility from host machine
inner network services' status

created a basic diagnostic tool


text:
Try downsizing Render database, take 2

As expected, #905 did not work. I’ll have to manually create a new database to test this.

OK, so what I did was disconnected the blueprint on the main branch, manually created a smaller DB, imported a fresh dump of production data, updated the render.yaml on this branch, and added this branch as the blueprint. Everything sync’d up to the new DB just right.
I’ll disconnect the blueprint again, merge this, and set main back as the blueprint, and everything should be good to go.
(Bonus: I set the new DB to send metrics to DataDog. You can only do that when creating a new DB, because Render is not yet a super mature platform.)

repo: usdigitalresponse/univaf


text:
Add ExceedBurden and CategorySpacer

Purpose

create ExceedBurden component that is used twice
create a .categorySpacer class for the AND component
modify indicator styling to work with background higlighting
add BE stubs for Burden booleans
remove Indicators header
add copy to intl

QA

note that the ExceedBurden Spacers are all hardcoded to YES for now as we wait for BE

Let's add a 1 px space between indicators to allow for a white line. Let's also bold the font.

Feedback

Make the Yes / No bold
See bugs in Side Panel Testing doc

@emma-nechamkin,
Some QA feedback led to boolean strangeness. Was able to spin up Jupyter (which is my new favorite tool) to investigate:

Any thoughts? Wondering if I'm doing something wrong (likely). Thanks!

@vim-usds these booleans are for "low income, low ed, and exceeds 90th percentile" -- we don't pipe the threshold booleans to you separately, I don't think.
I think for the new side panel, we might need to pass this through!
field_names.ENERGY_BURDEN_LOW_INCOME_LOW_HIGHER_ED_FIELD: "EBLI",

authors: emma-nechamkin vim-usds


text:
Add save prompt when closing requests from tab context menu

I have checked the following:

[X] I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add
In current version of Bruno (1.30.1), when closing a tab of a request with unsaved changes, that request is saved automatically. Other parts of the app show a different behavior though: when closing requests with pending changes clicking the close icon or trying to close the entire app, the user is prompted if wishes to save these changes before continuing.
I think Bruno could keep this behavior consistent throughout the application.
Mockups or Images of the feature
When closing a single request:

When closing multiple requests:

+1

authors: rsilvr ykburda

repo: usebruno/bruno


text:
Reduce requested scope to just public_repo

Only this scope is required

Sorry, I somehow hadn't noticed you had submitted a Pull Request!
I just tested this new scope and it seems to work just fine. Thanks!


text:
Retire legacy API

Since we've completed the API migration to gRPC in https://github.com/usememos/memos/issues/2858, the legacy version is no longer needed and can be retired.

Updated with https://github.com/usememos/memos/commit/bbd206e8930281eb040cc8c549641455892b9eb5

repo: usememos/memos


text:
Editor's abnormal behavior when using pinyin input method

Describe the bug
在使用编辑器添加或编辑 memo 时，当正在输入任务列表（或无序列表、有序列表）时，一行输入完毕后按下回车，此时会自动在下一行头部插入任务列表（或无序列表、有序列表）的语法（如 - [ ]、- 、2.  等）。这一功能相关实现代码在该组件中。
然而，在使用拼音输入法时，有时我们会在中文输入状态下输入英文单词，并回车表示直接将该单词上屏。此时，由于组件只对按下 enter 键进行判断，该回车会被组件判定为换行，从而另起一行。（这与大部分文本编辑软件（如 GitHub 的编辑框）的逻辑都不一致）
我在使用 macOS 原生中文输入法时会遇到此问题。
When using the editor to add or edit memo, when you are entering a task list (or an unordered list, or an ordered list), press Enter after a line of input, then the syntax of the task list (or an unordered list, or an ordered list) will be automatically inserted in the head of the next line (such as' - [] ', '-', '2.', etc.). This function implementation code is in this component.
However, when using the Pinyin input method, sometimes we will enter an English word in the Chinese input state, and the press enter indicates that the word is directly displayed on the screen. At this point, because the component only judges by pressing the enter key, the carriage return is judged by the component as a line feed, thus starting another line. (This is at odds with the logic of most text editing software, such as GitHub's edit box.)
I encounter this problem when using macOS native Chinese input methods.
Steps to reproduce

切换为中文输入法。
输入任务列表（或无序列表、有序列表）时，在输入的过程中用中文输入法直接输入英文单词，并回车确认使单词上屏。

此时会产生非预期的换行。

Switch to the Chinese input method.
When entering a task list (or an unordered list or an ordered list), use the Chinese input method to directly enter English words during the input process, and press enter to confirm.

An unexpected line break is generated.
The version of Memos you're using
v0.21.0
Screenshots or additional context
下为 Memos 的编辑器使用示例，在键入 docker、linux 后直接回车，单词上屏同时产生换行。
The following is an example of the use of Memos editor. After typing docker and linux, enter the press enter directly, and the word is displayed on the screen. At the same time, a newline is generated.

下为 GitHub 编辑器使用示例。键入 docker、linux 后回车，单词上屏。再次回车，才换行。
The following is a GitHub editor usage example. Type docker, linux and press enter. The word is displayed on the screen. Press enter again to break the line.

该问题似乎和 MDN 文档提到的 IME 复合事件有关。我可以提一个 PR 修复一下。

#3267 并不能解决 macOS 上 Safari 的这一问题。
经过测试，macOS 上 Safari 浏览器下 event.isComposing 的表现和 Chrome / Firefox 有所不同，上述情境发生时，Chrome / Firefox 中 isComposing 为 true，而 Safari 中为 false。如果只判断 isComposing，问题会仍然存在。
建议根据 MDN.文档，加上 event.keyCode 来判断（虽然 deprecated）。
（没有找到关于此问题的官方报告，只找到相关的一篇博客：https://fdream.net/blog/article/1288 ）
#3267 does not address this issue with Safari on macOS.
After testing, the performance of ·event.isComposing· in Safari on macOS is different from that of Chrome/Firefox. When the above situation occurs, isComposing in Chrome/Firefox is true. In Safari, it is false. If you judge only isComposing, the problem still exists.
Suggestions according to the MDN Document, Add event.keyCode to determine (although deprecated).
(found no official report about this problem, only found a blog: https://fdream.net/blog/article/1288).


text:
Dpdk Backend: Fix dpdk test infrastructure

Create new directories for dpdk errors, pna errors and psa errors.
Update the dpdk regression scripts for this change.
Enable comparison of error output (-error files)

Closing as upstreamed


text:
Update sbt-scalafmt to 2.4.6

Updates org.scalameta:sbt-scalafmt from 2.4.5 to 2.4.6.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "sbt-scalafmt" } ]

labels: sbt-plugin-update, early-semver-patch, semver-spec-patch, commit-count:1

Codecov Report

Merging #238 (0cb7e74) into develop (fea8853) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #238   +/-   ##
========================================
  Coverage    50.58%   50.58%
========================================
  Files            5        5
  Lines           85       85
========================================
  Hits            43       43
  Misses          42       42

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 fea8853...0cb7e74. Read the comment docs.

authors: codecov-commenter scala-steward


text:
Unifying programming style

In order to ensure the readability, extensibility and maintainability of codes, we should unify the programming style to ensure everyone should understand the codes in direct way. The following things we need to know about:

Variable name, function:
Variable names should be direct and clear, avoid using symbols and make use of Capital letters. Don't name the variables in abstract way.
Spacing(the length of white space)
The recommended length of space is 4. Spacing is important to show how the codes are elaborated.
The comments of complicated logic or algorithm involved
Comments are needed to make sure other people can understand your logic and flows.

If you have any ideas of programming styles, please raise your ideas. Thanks.

Good but I think we have to due with the 2 pull request first!

Sorry for late reply. In fact, some of the group members prefer tabs instead of using spaces due to their daily practice.

repo: ust-helloworld/The-Avengers-forming


text:
Feature/issue 43 fix should allow violation

Summary
This fixes ValidatorTextField and ValidatorTextView to behave correctly when the shouldAllowViolation property is set to true.
This also changes ValidatorTextField and ValidatorTextView to initialize with a default of false for the shouldAllowViolation property.  Doing this better matches the intent of the documentation.
See issue #43 for more detail.

Current coverage is 54.94% (diff: 0.00%)

Merging #44 into master will increase coverage by 7.03%

@@             master        #44   diff @@
==========================================
  Files            35         35
  Lines           526        526
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            252        289    +37
+ Misses          274        237    -37
  Partials          0          0

Powered by Codecov. Last update 706f322...d254a24

Sorry it's taken me a while to review this @sparrowlegs ! I hope to get to it in the next few days.

It's cool. Thanks for responding.  I was worried that PR didn't follow your coding conventions.

authors: aamctustwo codecov-io sparrowlegs

repo: ustwo/formvalidator-swift


text:
STTの大きいテレメ追加

Issue
#159
詳細
バッファサイズが大きくなったので、コメントアウトしておいたテレメを追加する。
主な変更

TLM DB更新
SAGITTA_RX_MAX_FRAME_SIZEを350に増やす
テレメフレームが大きくなったことに伴う引数の型変更 (uint8_t -> uint16_t)

検証結果
ビルドチェック (どちらもチェック)

[x] SILSでのビルドチェックに通った(CIで確認)
[x] vMicroでのビルドチェックに通った

動作確認チェック (いずれかをチェック)

[ ] SILSでアルゴリズムが想定通りに動いた
[ ] 実機でアルゴリズムが想定通りに動いた
[x] (テレコマ試験の場合)コマンドファイルを使った試験をパスした

試験結果詳細記述場所 or 詳細ログ保存場所へのリンク
CENTROIDS
ESCAPEなしで168Byte受信し、フレーム確定できている。
c0 21 84 25    00 f0 d0 d4    ed ce 97 1b    4a 01 5d 03    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 14    51 27 0a c0
DSSC_get_rec_status(stream_config)->status_code: 5

MATCHED CENTROIDS
ESCAPEなしで343Byte受信し、フレーム確定できている。
c0 21 84 28    00 1b f1 b1    d7 ce 3f 48    3e 01 5d 03    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 ab 41    9f f8 c0
DSSC_get_rec_status(stream_config)->status_code: 5

HISTOGRAM
ESCAPEなしで166Byte受信し、フレーム確定できている。
c0 21 84 1c    00 04 d4 c8    25 f2 79 8a    4d 01 5d 03    00 01 00 00    00 00 00 00    00 00 00 00    00 ce 24 00    00 9b 03 0e    00 95 d7 01    00 01 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00    00 01 00 00    00 de 09 00    00 c6 02 0e    00 59 f3 01    00 02 00 00    00 00 00 00    00 00 00 00    00 07 00 00    00 01 00 00    00 04 00 00    00 f2 09 00    00 b0 2b 0d    00 48 ca 02    00 0a 00 00    00 00 00 00    00 00 00 00    00 0a 00 00    00 01 00 00    00 07 00 00    00 60 02 00    00 da 44 0d    00 ae b8 02    00 06 00 00    00 00 00 00    00 00 00 00    00 24 17 de    a9 c0
DSSC_get_rec_status(stream_config)->status_code: 5

CENTROIDSやMATCHED CENTROIDSは、WINGS UI上で0のままだが、初期値を変えるときちんと更新されていることを部分的に確認済み。
補足
NA

@conjikidow STTテレメ受信できました㊗


text:
CI/CD build issues with Erlang 27

This seems like it might be a problem with zipper, katana-code, rebar3_hank, rebar3_formatter, or rebar3_lint?

CI/CD log for example failure: https://github.com/ut-proj/undertheory/actions/runs/10674332554/job/29584638948

repo: ut-proj/undertheory


text:
On-screen keyboard blocking input view with external keyboard on IOS

Describe the issue
When typing on an external keyboard the on-screen mini keyboard (the one with arrow keys, F keys, etc.) is always active with no way to disable it. When the terminal output fills the screen the view at the bottom is obscured by the mini-keyboard. I have to minimize the keyboard to see the output. As soon as I start typing again, it pops up again and obscures what I'm typing. My current workaround is to use clear command every time the terminal screen fills up. Additionally, when I first press a key on my hardware keyboard after minimizing the on-screen keyboard, the first key is not registered but instead activates the on-screen keyboard. Afterwards I can type normally.
Configuration:

Debian 10.4 (minimal) console mode
UTM Version: 3.1.5
OS Version: Ipad OS 15.4
Device Model: Ipad pro 11"
Is it jailbroken (name jailbreak used)? No
How did you install UTM? AltServer semi-tethered with Jitterbug

We are switching the Terminal frontend soon to SwiftTerm (#3473) so it may not be an issue. Please wait for that.

authors: osy vsantalov

repo: utmapp/UTM


text:
URLS

Had to stop using the plugin because of the URL that changes if we add artboards. Devs had to reassign the links everytime in Jira

@MarcOckam apologies, but what URLs are you talking about? Do you have text layers with URLs in them that are getting changed when you do an export? Or are you talking about the URL of your document in Sketch Cloud?

I meant the URL generated by the Spec Viewer in the browser: http://utom.design/news/#artboard1 and http://utom.design/news/#artboard2 If you add a page it changes to URL. Sorry if I was unclear.

My team is having this problem as well. Currently the URL for a specific artboard is generated based upon the order of your artboards in Sketch. Do you happen to know what I would need to do to modify the plugin source code and change the way that URL is generated? Maybe based on artboard name rather than artboard order.

authors: Gert45 MarcOckam luxlogica

repo: utom/sketch-measure


text:
no license

Hello.
There is currently no license, no copyright and no public domain notice.
Meaning by default it is copyright, and nothing allows anyone to use it.
Could you please add a "released to the public domain" notice in your code, without caveats, so that it can be used without restriction?
Or if not, then a copyright notice with whatever the restrictions are.
Thanks.

I've added the LICENSE file for CC0.
Thanks for pointing that out.

Thankyou!

repo: utshina/uefi-simple


text:
doc: #12 translate "API Options" page

Summary
Translate "API Options" page (#12)

@uttk review ありがとうございました。指摘箇所を確認して修正しました。

repo: uttk/swr-site


text:
lint: fix lints of new Rust version

Fix new lints of clippy.

Heres the action's log about failure, but it doesn't happen on my Debian testing.
   error: unused import: `set_symlink_file_times`
   --> tests/by-util/test_touch.rs:8:16
    |
  8 | use filetime::{set_symlink_file_times, FileTime};
    |                ^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `-D unused-imports` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_imports)]`

  error: could not compile `coreutils` (test "tests") due to 1 previous error
  Error: ERROR: `cargo clippy`: unused import: `set_symlink_file_times` (file:'tests/by-util/test_touch.rs', line:8)
       Removed 2866 files, 693.6MiB total
  exec shell: bash run.sh showDebugInfo

It only happend on freebsd target I think.

coreutils::tests test_sort::test_output_is_input's failure may not caused by this PR after my check.

could you please fix the windows clippy warnings too as you are working on it ?
https://github.com/uutils/coreutils/actions/runs/8378663843/job/22943749149?pr=6102

I'll fix it later

Here's a lots of denied warnings about clippy::cognitive_complexity
 error: the function has a cognitive complexity of (14/10)
   --> tests\common\random.rs:254:8
    |
254 |     fn test_random_string_generate_with_delimiter_should_not_end_with_delimiter() {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: you could split it up into multiple smaller functions
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity

and the longest is 71
error: the function has a cognitive complexity of (71/24)
   --> tests/by-util/test_env.rs:448:4
    |
448 | fn test_env_with_gnu_reference_parsing_errors() {
    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: you could split it up into multiple smaller functions
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
    = note: `-D clippy::cognitive-complexity` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`

There are two solutions

Change the configuration of cognitive-complexity-threshold in .clippy.toml from 10 to 128, avoid changing the unit testing function name
Change from 10 to 24 and rename only one unit testing function name

Here's a lots of denied warnings about clippy::cognitive_complexity
 error: the function has a cognitive complexity of (14/10)
   --> tests\common\random.rs:254:8
    |
254 |     fn test_random_string_generate_with_delimiter_should_not_end_with_delimiter() {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: you could split it up into multiple smaller functions
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity

and the longest is 71
error: the function has a cognitive complexity of (71/24)
   --> tests/by-util/test_env.rs:448:4
    |
448 | fn test_env_with_gnu_reference_parsing_errors() {
    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: you could split it up into multiple smaller functions
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
    = note: `-D clippy::cognitive-complexity` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`

There are two solutions
* Change the configuration of `cognitive-complexity-threshold` in `.clippy.toml` from `10` to `71`, avoid changing the unit testing function name

* Change from `10` to `24` and rename only one unit testing function name

I think add #[allow(clippy::cognitive_complexity)] would be better because of the clap made a good example.
So I'll add #[allow(clippy::cognitive_complexity)] to resolve the issues.

repo: uutils/coreutils


text:
Remove logging to web sql

One could still hook things up to a different backend. For example https://github.com/uwdata/voyager/issues/149

@kanitw I need to remove the export and clear buttons from the interface but let me know whether you think this is a good change.

@kanitw ready with
https://github.com/uwdata/polestar/pull/321
https://github.com/uwdata/voyager/pull/183

repo: uwdata/vega-lite-ui


text:
Documentation/readthedocs

Several issues are outstanding, if we are to use RTD as a documentation hosting service:
What is the best way to create documentation of the API?
This is currently using scripts that I cribbed from nipy projects, and then ported to be compatible with python 3. These scripts require having the software installed on the machine, and are triggered upon running a make html. RTD uses sphinx-build directly (I think), so it's not obvious how this would patch into the process
Latex in documentation
Building documentation with latex on RTD seems to be a  no-go, because their system doesn't seem to be  able to build/install PIL, which is required. See here: https://readthedocs.org/builds/shablona/2882654/

As pointed out by @rbiswas4, other projects do use RTD, and have API reference machinery set up:
http://sncosmo.readthedocs.org/en/v1.0.x/reference.html
so there must be some way of doing that.

See my comment on #26 for a way to create api reference using read the docs. In short you can execute your build script directly from conf.py (andim/noisyopt@13541ac).

+1!

authors: andim arokem isomerase

repo: uwescience/shablona


text:
Adding separate confirmButton() method

This should for example allow:
alert()->success('Thanks for choosing us.', 'Awesome!')->autoclose(5000)->confirmButton('Got it');

@uxweb Can you please merge?

Sorry man, i was little bit disconnected, but i'm back!.
Thanks for contributing!!, you are awesome!

authors: georgeboot uxweb

repo: uxweb/sweet-alert


text:
🛑 Third Party is down

In f0a3762, Third Party ($THIRD_PARTY_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Third Party is back up in d1ec17c after 127 days, 3 hours, 17 minutes.


text:
🛑 Webadtopia is down

In 026d97a, Webadtopia (https://webadtopia.com/) was down:

HTTP code: 503
Response time: 1592 ms

Resolved: Webadtopia is back up in 6670c04.


text:
请问啥时候支持vless+reality

请问啥时候支持vless+reality。
真的是又稳又快

I am also waiting for it. Please add vless & reality protocol. Thanks to the developer..

自己开分支吧，很多PR作者也不处理也不回复，这个源开得就很消极，没劲

https://github.com/v2board/v2board/pull/633

请问啥时候支持vless+reality。
真的是又稳又快

No standard for reality share link for now, also it's in beta currently


text:
已经支付钱了，显示支付失败，提交工单反映问题无人处理，QQ联系客服人员无人回应，联系方式qq:675505899

如果你遇到的问题不是 V2Ray 的 bug，比如你不清楚要如何配置，请使用Discussion进行讨论。
此 Issue 会被立即关闭。
If you are not sure if your question is truely a bug in V2Ray, please discuss it here first.
This issue will be closed immediately.

电信诈骗的话去公安局咨询

authors: monkeyshichi xhqpp


text:
Fix: build routing condition for geo domain

Another simpler fix would be
--- a/app/router/router.go
+++ b/app/router/router.go
@@ -239,7 +239,7 @@ func init() {
                                }
                                rule.SourcePortList = portList.Build()
                        }
-                       rule.Domain = v.Domain
+                       rule.Domain = append(rule.Domain, v.Domain...)
                        if v.Networks != "" {
                                rule.Networks = net.ParseNetworks(v.Networks)
                        }

which makes routing condition a union of both "geoDomain" and "domain", which might not be desired. Hence this fixes.

Codecov Report

Merging #1772 (c885da6) into master (0685f8c) will decrease coverage by 0.20%.
The diff coverage is 11.11%.

@@            Coverage Diff             @@
##           master    #1772      +/-   ##
==========================================
- Coverage   38.89%   38.69%   -0.21%
==========================================
  Files         616      608       -8
  Lines       36215    36085     -130
==========================================
- Hits        14087    13964     -123
+ Misses      20561    20558       -3
+ Partials     1567     1563       -4

Impacted Files
Coverage Δ

app/router/router.go
27.39% <0.00%> (ø)

app/router/config.go
39.02% <12.50%> (-1.85%)
:arrow_down:

app/proxyman/outbound/errors.generated.go
0.00% <0.00%> (-100.00%)
:arrow_down:

transport/internet/udp/dispatcher_split.go
63.55% <0.00%> (-12.15%)
:arrow_down:

common/task/task.go
88.88% <0.00%> (-7.41%)
:arrow_down:

common/buf/reader.go
82.35% <0.00%> (-5.89%)
:arrow_down:

testing/servers/tcp/tcp.go
81.81% <0.00%> (-5.46%)
:arrow_down:

testing/scenarios/common.go
75.00% <0.00%> (-4.29%)
:arrow_down:

app/proxyman/outbound/handler.go
36.61% <0.00%> (-4.23%)
:arrow_down:

transport/internet/udp/hub.go
73.61% <0.00%> (-4.17%)
:arrow_down:

... and 20 more

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 0685f8c...c885da6. Read the comment docs.

authors: EHfive codecov-commenter


text:
Add pprof flag for debugging

This commit adds a pprof flag to the application, which allows enabling or disabling pprof for debugging purposes. This change is necessary to facilitate easier performance profiling during development and debugging sessions.
Related issue: #1806

_ "net/http/pprof" has too many side effects to be added to be added to the software by default. Would you mind to add to something that can be selectively compiled and are disabled/excluded from compilation by default.

Actually, importing _ “net/http/pprof” here is not strictly necessary, as it is likely already included through other packages. I added it mainly for clarity and ease of reference. However, I can certainly try to add a build tag to make this feature selectively compiled and disabled by default.

Sadly with this change, pprof is now in conflict with other selective compile features. If there is another feature that are selected based on tag in this way, then it will basically need to do the same, on the same  run.go files. Also there is too many duplicated codes making maintenance significantly more difficult .
To avoid that, make the least duplication by isolate the difference part into 2 files and duplicate the least amount of codes.

Do you meaning that go build with multiple tags doesn't work as expected?
From Go 1.13 release notes:

The go build flag -tags now takes a comma-separated list of build tags, to allow for multiple tags in GOFLAGS. The space-separated form is deprecated but still recognized and will be maintained.

_ "net/http/pprof" has too many side effects to be added to be added to the software by default.

What side effects exactly? As far as I can see, the package init function just registers a bunch of routes at net/http.DefaultServeMux. I'm not sure how this would affect the operation of v2ray.

Do you meaning that go build with multiple tags doesn't work as expected?
From Go 1.13 release notes:

The go build flag -tags now takes a comma-separated list of build tags, to allow for multiple tags in GOFLAGS. The space-separated form is deprecated but still recognized and will be maintained.

What if someone else wish to add another function that requires changing the run.go, then there will need to be 4 version of run.go to work on every situation, then so on and so forth. With the current design of selective compile, there will be too many version of run.go require maintenance in no time.

_ "net/http/pprof" has too many side effects to be added to be added to the software by default.

What side effects exactly? As far as I can see, the package init function just registers a bunch of routes at net/http.DefaultServeMux. I'm not sure how this would affect the operation of v2ray.

Modify global state of shared component is not permitted. If every component do this, then there will be no way to ensure the safety and consistency of the program.

Modify global state of shared component is not permitted. If every component do this, then there will be no way to ensure the safety and consistency of the program.

Your point of not modifying the global state makes sense in many scenarios, but not here. In this case it's perfectly fine. V2ray itself does not make use of net/http.DefaultServeMux at all.
Blindly abiding by some arbitrary rule does not guarantee you "safety and consistency of the program". One could also say that spawning a goroutine modifies the global state of the Go runtime, which qualifies as a "shared component". Reading from a connection definitely modifies the global state too, since the net poller is also a "shared component".

Modify global state of shared component is not permitted. If every component do this, then there will be no way to ensure the safety and consistency of the program.

Your point of not modifying the global state makes sense in many scenarios, but not here. In this case it's perfectly fine. V2ray itself does not make use of net/http.DefaultServeMux at all.
Blindly abiding by some arbitrary rule does not guarantee you "safety and consistency of the program". One could also say that spawning a goroutine modifies the global state of the Go runtime, which qualifies as a "shared component". Reading from a connection definitely modifies the global state too, since the net poller is also a "shared component".

This rule is there to prevent some component expose sensitive information on these endpoint, and other component unintentionally share these information to others. Let's say we now have HTTP server without authentication that can be accessed locally, and without this rule,  some other component can add a 'setpassword' endpoint to the default mux assuming only externally authenticated user has access to it. The same thing can also happen in reverse.
The principle here is that all components coexist with each other, include components that does not currently exist.

What if someone else wish to add another function that requires changing the run.go, then there will need to be 4 version of run.go to work on every situation, then so on and so forth. With the current design of selective compile, there will be too many version of run.go require maintenance in no time.

I agree with your point that directly creating new versions of run.go could indeed lead to maintenance difficulties. We should consider introducing a concept similar to plugins, where the design allows for calling registered plugins at runtime. In this case, pprof could be implemented as a plugin.
Additionally, the primary reason for adding pprof was to enable users who encounter memory leaks to easily diagnose issues and provide relevant information. Therefore, this feature should be considered a basic functionality. Making it a selectively compiled feature is not a good idea, as it would require users to either compile the program themselves or download a version with pprof enabled, which clearly increases the difficulty for the users.

What if someone else wish to add another function that requires changing the run.go, then there will need to be 4 version of run.go to work on every situation, then so on and so forth. With the current design of selective compile, there will be too many version of run.go require maintenance in no time.

I agree with your point that directly creating new versions of run.go could indeed lead to maintenance difficulties. We should consider introducing a concept similar to plugins, where the design allows for calling registered plugins at runtime. In this case, pprof could be implemented as a plugin.
Additionally, the primary reason for adding pprof was to enable users who encounter memory leaks to easily diagnose issues and provide relevant information. Therefore, this feature should be considered a basic functionality. Making it a selectively compiled feature is not a good idea, as it would require users to either compile the program themselves or download a version with pprof enabled, which clearly increases the difficulty for the users.

Thanks for your revision. I think the init() from net/http/pprof still run in this case and I don't see a way to have it removed without selective compile.
I understand the ability to research the performance characteristic of program is an important feature, however, in most production environment it is never used. In order to use it, a development environment usually is already there, so requiring to compile it again isn't going to be a huge challenge.
Do you mind if I take over this merge request to add appropriate selective compile with tag and merge it?

What if someone else wish to add another function that requires changing the run.go, then there will need to be 4 version of run.go to work on every situation, then so on and so forth. With the current design of selective compile, there will be too many version of run.go require maintenance in no time.

I agree with your point that directly creating new versions of run.go could indeed lead to maintenance difficulties. We should consider introducing a concept similar to plugins, where the design allows for calling registered plugins at runtime. In this case, pprof could be implemented as a plugin.
Additionally, the primary reason for adding pprof was to enable users who encounter memory leaks to easily diagnose issues and provide relevant information. Therefore, this feature should be considered a basic functionality. Making it a selectively compiled feature is not a good idea, as it would require users to either compile the program themselves or download a version with pprof enabled, which clearly increases the difficulty for the users.

Thanks for your revision. I think the init() from net/http/pprof still run in this case and I don't see a way to have it removed without selective compile.
I understand the ability to research the performance characteristic of program is an important feature, however, in most production environment it is never used. In order to use it, a development environment usually is already there, so requiring to compile it again isn't going to be a huge challenge.
Do you mind if I take over this merge request to add appropriate selective compile with tag and merge it?

You can take over the merge request.
However, I’d like to clarify my perspective for your reference. I made pprof a default component after considering real-world usage scenarios. The users of this software are not necessarily technical personnel. If a non-technical user encounters a memory leak, enabling the pprof feature via the command line might already be challenging without additional help. Asking such users to compile the software themselves would be exceedingly cumbersome, especially since they would first need to install the Go environment. Of course, memory leaks should be a rare issue for this software, and I only emphasize the importance of this feature because I’ve personally encountered it.

What if someone else wish to add another function that requires changing the run.go, then there will need to be 4 version of run.go to work on every situation, then so on and so forth. With the current design of selective compile, there will be too many version of run.go require maintenance in no time.

I agree with your point that directly creating new versions of run.go could indeed lead to maintenance difficulties. We should consider introducing a concept similar to plugins, where the design allows for calling registered plugins at runtime. In this case, pprof could be implemented as a plugin.
Additionally, the primary reason for adding pprof was to enable users who encounter memory leaks to easily diagnose issues and provide relevant information. Therefore, this feature should be considered a basic functionality. Making it a selectively compiled feature is not a good idea, as it would require users to either compile the program themselves or download a version with pprof enabled, which clearly increases the difficulty for the users.

Thanks for your revision. I think the init() from net/http/pprof still run in this case and I don't see a way to have it removed without selective compile.
I understand the ability to research the performance characteristic of program is an important feature, however, in most production environment it is never used. In order to use it, a development environment usually is already there, so requiring to compile it again isn't going to be a huge challenge.
Do you mind if I take over this merge request to add appropriate selective compile with tag and merge it?

You can take over the merge request. However, I’d like to clarify my perspective for your reference. I made pprof a default component after considering real-world usage scenarios. The users of this software are not necessarily technical personnel. If a non-technical user encounters a memory leak, enabling the pprof feature via the command line might already be challenging without additional help. Asking such users to compile the software themselves would be exceedingly cumbersome, especially since they would first need to install the Go environment. Of course, memory leaks should be a rare issue for this software, and I only emphasize the importance of this feature because I’ve personally encountered it.

I think here is the difference in mindset, that I believe non-tech users should only be expected to produce steps to reproduce the problem, but running profiling tool to actually find the root issue of the problem. Making profile tool available for non-development environments does not make sense as it does not enable non-tech users to actually find and fix problems.
The issue with profile that it contaminate globe state isn't your problem to begin with, it just make me uncomfortable to have it by default. In the future where this issue have been fixed: https://github.com/golang/go/issues/42834 , it would be possible to have it by default.

I think here is the difference in mindset, that I believe non-tech users should only be expected to produce steps to reproduce the problem, but running profiling tool to actually find the root issue of the problem is the role of developers. Making profile tool available for non-development environments does not make sense as it does not enable non-tech users to actually find and fix problems.
The issue with profile that it contaminate globe state isn't your problem to begin with, it just make me uncomfortable to have it by default. In the future where this issue have been fixed: golang/go#42834 , it would be possible to have it by default.

I understand your point, but please refer to the issue #3086 I submitted. The problem doesn’t generate any log errors, so it might be difficult to identify without handing it over to developers who have the necessary equipment to reproduce the issue. This imposes a hardware requirement on the developers. In this case, I actually believe that having users enable pprof and run it themselves would be a more convenient way.
Regarding another point, this is why I avoided using http.DefaultServeMux. However, as I mentioned earlier, even without my code, other dependencies have already imported the net/http/pprof package and contaminated the http.DefaultServeMux. So unless this is resolved by the Go team, there’s not much we can do, except perhaps not using http.DefaultServeMux.

I have checked the reason pprof get included in the current version of V2Ray by default:
depth -explain net/http/pprof .
. -> github.com/v2fly/v2ray-core/v5/main/distro/all -> github.com/v2fly/v2ray-core/v5/app/restfulapi -> github.com/go-chi/chi/v5/middleware -> net/http/pprof

Since restfulapi is nearly abandoned, it shouldn't be an issue if it get removed from default distribution.

I understand your point, but please refer to the issue #3086 I submitted. The problem doesn’t generate any log errors, so it might be difficult to identify without handing it over to developers who have the necessary equipment to reproduce the issue. This imposes a hardware requirement on the developers. In this case, I actually believe that having users enable pprof and run it themselves would be a more convenient way.

I do not understand why it is not possible to provide a custom build of the binary for user to test if a custom command line can be supplied by user. I understand it is harder, and create more fraction, but I believe a tool should not ship with these debug tools that could impact its security.

I understand your point, but please refer to the issue #3086 I submitted. The problem doesn’t generate any log errors, so it might be difficult to identify without handing it over to developers who have the necessary equipment to reproduce the issue. This imposes a hardware requirement on the developers. In this case, I actually believe that having users enable pprof and run it themselves would be a more convenient way.

I do not understand why it is not possible to provide a custom build of the binary for user to test if a custom command line can be supplied by user. I understand it is harder, and create more fraction, but I believe a tool should not ship with these debug tools that could impact its security.

Maybe you’re right, I might have only considered convenience. If a custom binary were provided officially, the number of files would double, which is obviously unlikely. Moreover, the need to use pprof is extremely rare. In the end, I respect your decision.

authors: database64128 sunshineplan xiaokangwang