Gradle remote build cache fails with status 413: Request Entity Too Large but cache artifact did not exceed maximum artifact size

Expected Behavior
(No warning, cache artifact is uploaded to server. If submitting cache artifact fails due to size issue then it would be really nice to receive information what size it was trying to upload vs what was the limit).
Current Behavior
Project builds but logs Could not store entry 1b3d8f05ce0676b175c6e29d44abfeeb in remote build cache: Storing entry at '[build cache url]' response status 413: Request Entity Too Large
output_censored.log
Context
settings.gradle:
buildCache {
        remote(HttpBuildCache) {
            enabled = true
            url = 'https://mysite.com/cache/'
            useExpectContinue = true // tried with and without this setting
            push = true
            credentials {
                username = "user1"
                password = "xxx"
            }
        }
}

Build cache configuration (image: gradle/build-cache-node:14.0):
version: 5
cache:
  accessControl:
    users:
      user1:
        level: readwrite
        password: PASS_HASH_1
        note: ""
      user2:
        level: read
        password: PASS_HASH_2
        note: ""
    anonymousLevel: none
  freeSpaceBufferSize: 1024
  maxEntryAgeInHours: 168
  maxArtifactSize: 200
  targetSize:
    type: fixed
    size: 10000
uiAccess:
  type: secure
  username: admin
  password: PASS_HASH_ADMIN
registration: null

Steps to Reproduce
The same setup (configuration) works on small examples as expected. I have problem on a large, mature project which I cannot share here. Nevertheless I upload the log file for the gradle execution (build cache debug enabled) while censoring out irrelevant parts.
In the log you only find one task whose caching fails.
(after purging local and remote build caches)
gradlew -Dorg.gradle.caching.debug=true clean assemble --console=plain
Your Environment
Gradle client: 7.2
Gradle build cache node: 14.0
Build scan URL: N/A

Turns out there is an nginx between the gradle client and the server. The default setting for nginx did not let payloads larger than a meg through. The error actually came from the reverse proxy, not the gradle remote build cache service.


NaN loss during training with RTX3090

Does anyone else have this problem?
I trained the network on a GTX1050ti, RTX2080ti -> no problems.
When I try to train on a new RTX3090 with CUDA 11.1 and either PyTorch 1.8.1 or PyTorch 1.7.1 I get NaNs after a a couple of batches during the training process.
I tried pip and conda installations nothing seems to work.
Some other networks I use are not affected during inference. Also training a NeRF model worked without issues.
Nvidia driver is: 455.32.00

Hi @urbste - thanks for the interest! I updated the repo from pytorch 1.1 to 1.4 a while ago, and that was a pain as some functions had changed, as well underlying dependencies. I never tried on RTX3090, but I suspect something a combination of new hardware and changing dependencies is what's causing the NaNs.
A couple of things I can think of: are you doing this in docker? Could you maybe try running on RTX3090 but with the docker configuration from the repo, to first debug running on the new card with the old software? The version of opencv you're using also affects performance - I just checked in the docker and we're on 4.4.0  and 1.19.4 for numpy -- maybe try force-installing those to see if that makes any difference. Let me know how it goes.

The problem with PyTorch 1.6.0 is, that it does not come with CUDA 11.x binaries. However without CUDA 11 I will get an PyTorch error: https://discuss.pytorch.org/t/rtx-3090-compatibility/110014
So I would have to build PyTorch from source.
Downgrading the OpenCV version did not help.

I am going to close this issue.
It does not seem that it is directly connected to this repo:
https://github.com/tensorflow/models/issues/9525
Thanks four open sourcing your work btw! :)

Interesting, thanks for letting me know!


GatewayTimeout with interaction attempt after bot is idle for a few days/weeks

Bot Info

App ID:  d6399230-27f6-46d7-a77f-636607844ba9
SDK Platform: Node.js
SDK Version: 3.13.0
Active Channels: Facebook Messenger, Web Chat
Deployment Environment: Azure App Service

Issue Description
After not interacting with the bot for days/weeks, GatewayTimeout Error appears.
This issue is fixed and the bot is able to respond when re-deploying to Azure or even simply opening up its Log Stream on Azure. I've read elsewhere someone experienced similar issues with logging. For now, I have disabled all logs on Azure for my bot in the hopes that this issue goes away.
Reproduction Steps

Don't interact with your bot for a few days/weeks
Try interacting with it again
GatewayTimeout error gets thrown and unable to interact with bot

Possible Labels: Azure App Service, bot deployment, Node.js SDK, waiting for reply

Hi @sherifsarhan,
You could setting up a timer to refresh the token periodically. The expiration of the token can cause latency and timeout issues. It could be beneficial to check if this could be the problem:
let chatConnector = ...;

...
setInterval(() => {
    chatConnector.getAccessToken((error) => {
            console.log(JSON.stringify(error));
        }, (token) => {
            console.log(`token refreshed: ${token}`);
        });
}, 30 * 60 * 1000 /* 30 minutes in milliseconds*/ );

https://blog.botframework.com/2017/11/02/optimizing-latency-bot-framework/

Thanks @FranciscoPonceGomez. I'll try this out and report back with results.

@FranciscoPonceGomez Just happened again. Facebook messenger. 1 Day of inactivity, token being refreshed periodically.

@FranciscoPonceGomez I'm also using the bot state API still. I'll make a switch to saving state on my own and see if the issue is fixed.

Hi @sherifsarhan,
That is a very good idea. Let me know if you still see the problem after saving the bot state by yourself.
Regards,
Francisco

`//Setting up the get started button reqd for persistent menu
var restify = require('restify');
var builder = require('botbuilder');
var botbuilder_azure = require("botbuilder-azure");
var path = require('path');
var documentDbOptions = {
host: '',
masterKey: '',
database: 'botdocs',
collection: 'botdata'
};
var docDbClient = new botbuilder_azure.DocumentDbClient(documentDbOptions);
var cosmosStorage = new botbuilder_azure.AzureBotStorage({ gzipData: false }, docDbClient);
// Create chat connector for communicating with the Bot Framework Service
var connector =  new botbuilder_azure.BotServiceConnector({
appId: "",
appPassword: ""
});
// Receive messages from the user and respond by echoing each message back (prefixed with 'You said:')
var bot = new builder.UniversalBot(connector, [
function(session, results, next) {
session.send(Message 1, session.message.text);
next();
},
function(session, results, next) {
session.endDialog(Bye bye);
}
]).set('storage', cosmosStorage);
bot.localePath(path.join(__dirname, './locale'));
module.exports = {
default: connector.listen()
}`
This is my current code using cosmos db for storage. But still I am getting issues.
I am unable to test from dev bot portal webchat .

The azure function log is:

I get a function started streaming log but nothing further.
The same code was working just two days back.

@sushovannits this is completely unrelated to the original issue, please open a new issue

@JasonSowers @sushovannits @FranciscoPonceGomez
I have narrowed down the issue.
I'd like to preface by saying that I have correctly implemented CosmosDB and the issue still occurs.
Yesterday, I interacted with the chatbot on botframework.com and FB Messenger and got responses.
After a day of inactivity, I go on to the web chat on dev.botframework.com and FB Messenger to see if I can still reproduce the issue. I send "Hi" to each of the chat sessions.
Immediately, I receive: "There was an error sending this message to your bot: HTTP status code GatewayTimeout" in both channel logs.
I wait approximately 10 seconds and then send the same message again in each chat session.
It works and I receive replies.
I am thinking this is something related to the Azure deployment of the bot. I've followed all instructions for the deploy, and I'm not quite sure how to debug this.

@JasonSowers @sushovannits @FranciscoPonceGomez
I think I may have found the solution. Azure App Service has the "Always On" Feature which is not available to the Free Tier. I believe, given the description of my issue, this would fix it. So I think we can mark this as resolved.

@JasonSowers  The issue seemed related because it was the same gateway timeout error that I was receiving. @sherifsarhan Exactly my observation is the same. Initially I thought that the botbuilder package must have got some new updates which was causing the slow down. So, I even downgraded to 3.7. This actually improved the performance, I could get the response after a minute of getting the first timeout. Yes with always on it started to work fine, but however always is on app service plan so it will cost more I believe. I am guessing there is something happening in backed of Azure + botbuilder which is causing the high loading time of botbuilder module. It may be that the IO is slow and hence I am thinking of giving webpack a try.

@sherifsarhan thanks for the update.  If the always-on feature does not work, the other option you have is to send your bot a ping activity (ActivityType.Ping) periodically I would suggest 30 minutes or less.  This can be done with a web job or something similar.
Unfortunately, the downside for AWS Lambda and Azure Functions because they have to "spin up" after they have been put to sleep it causes increased latency with the first message.   This is known and expected in these environments.


Ability to get entities filtered by version

Description
For now, a lot of taipy.get_...() methods return a list of entities from all version. This is not good when we have a lot of versions.
The desired behavior:

In development mode and experiment mode, the user should only be able to get entities from the current version.
In production mode, the user should be able to:

Get all entities from all production versions.
Get entities from a specific production version.

TODO: Add version parameter to

[ ] get_tasks()
[ ] get_scenarios()
[ ] get_primary()
[ ] get_primary_scenarios()
[ ] get_pipelines()
[ ] get_jobs()
[ ] get_latest_job()
[ ] get_data_nodes()
[ ] get_cycles_scenarios()
[ ] get_entities_by_config_id()

Get entities filterd by version is not necessary


ddp, fsdp : support passing model as argument

Previously failing script:
import os
import thunder
import torch
import torch.distributed as torch_dist

world_size = int(os.environ.get("WORLD_SIZE", 1))
local_rank = int(os.environ.get("LOCAL_RANK", 0))
global_rank = int(os.environ.get("RANK", 0))
if world_size > 1:
    torch_dist.init_process_group(backend="nccl")
    pg = torch_dist.distributed_c10d._get_default_group()
device = torch.device("cuda", local_rank)
torch.cuda.set_device(device)

model = torch.nn.Linear(5, 10, bias=False, device=device)
x = torch.randn(2, 5, device=device)

def fwd_loss(m, x):
    return m(x).sum()

model = thunder.distributed.fsdp(model)
fwd_loss = thunder.jit(fwd_loss)

out = fwd_loss(model, x)

print(out)
if local_rank == 0:
    print("FN", thunder.last_traces(fwd_loss)[-1].python())

cc: @crcrpar @IvanYashchuk

What's the expected behavior if multiple models were passed as arguments?

Right now, ddp and fsdp both internally use the default process group . So even if we have multiple models they will all use the same process group for synchronization.
In future, if we add support for specifying the process group in ddp and fsdp then we may have to refactor the code as the GeneralJitContext also assumes there will be a single process group.
https://github.com/Lightning-AI/lightning-thunder/blob/a27bb65b1b9525c5b51d2b096ad122c10f5a2d6c/thunder/core/jit_ext.py#L520-L524
https://github.com/Lightning-AI/lightning-thunder/blob/a27bb65b1b9525c5b51d2b096ad122c10f5a2d6c/thunder/core/jit_ext.py#L1372-L1376

I must admit that it feels a bit hacky along the line of @IvanYashchuk comment, but we would also need to be very diligent about caching and "spilling" fsdp.
Maybe the intended use sheds some light on what's going on with that?


[324] Add fault filters to rupture builder

Implements #324
This PR adds a number of fault filters that are applied to crustal faults before the rupture builder divides them into subsections.

Introduces the FaultFilter interface for easier filter management.
converts the existing skip/maxSections filter to the new interface
adds three new filters as requested by Chris Rollin:

polygon
domain
minimum slip

Sample output of a rupture builder run:
Fault model has 557 fault sections
Fault model filtered to 557 after applying id range filter, skip: 0 max : 2000
Fault model filtered to 461 after applying slip filter with a minimum of 0.1 mm/yr
Fault model filtered to 424 after applying polygon filter C:\Users\user\GNS\cseplonlat-distseismodelboundary-50koffshore.dat
Fault model filtered to 356 after applying domain filter 2, 3, 4, 8, 9, 10, 11, 16, 24, 25, 26, 27 and 28

If a filter is not set, it will not be run.

approved by @chrisbc over Slack


Missing Optional in field Signature

Checks

[x] I added a descriptive title to this issue
[x] I have searched (google, github) for similar issues and couldn't find anything
[x] I have read and followed the docs and still think this is a bug

Environment
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.9.0
            pydantic compiled: True
                 install path: /Users/dlipsitt/Library/Application Support/pdm/venvs/parts-service---nOTk53-3.9/lib/python3.9/site-packages/pydantic
               python version: 3.9.9 (main, Dec 27 2021, 16:23:12)  [Clang 12.0.5 (clang-1<IP_ADDRESS>)]
                     platform: macOS-12.2-arm64-arm-64bit
     optional deps. installed: ['devtools', 'dotenv', 'email-validator', 'typing-extensions']

Bug
Classes that inherit from BaseModel are missing Optional from the signature of optional fields. In comparison, Dataclasses have the behavior I would expect, which is that the introspected signature looks like the class definition:
from inspect import signature
from typing import Optional

from pydantic import BaseModel
from pydantic.dataclasses import dataclass

@dataclass
class PydanticDataClassItem:
    required_val: int
    optional_val: Optional[int]
    optional_default_val: Optional[int] = 1

class PydanticItem(BaseModel):
    required_val: int
    optional_val: Optional[int]
    optional_default_val: Optional[int] = 1

def show_signature(cls):
    sig = "\n\t".join(str(val) for val in signature(cls).parameters.values())
    print(f"{cls.__qualname__}:\n\t{sig}\n")

show_signature(PydanticDataClassItem)
show_signature(PydanticItem)

output:
PydanticDataClassItem:
	required_val: int
	optional_val: Optional[int]
	optional_default_val: Optional[int] = 1

PydanticItem:
	required_val: int
	optional_val: int = None
	optional_default_val: int = 1

The first problem to notice here is that optional_val: int = None doesn't make sense because the default value in the signature is not an instance of the field's type.
Details
The consequence that motivates this ticket is that Hypothesis isn't able to automatically infer types from Pydantic classes correctly (https://github.com/samuelcolvin/pydantic/issues/3126).
Here's a demo where we generate filtered Hypothesis examples. The filters force the example's optional_val field to first be None and then not None:
from hypothesis.strategies import builds

def show_filtered_examples(cls):
    filters = [
        lambda item: item.optional_val is None,
        lambda item: item.optional_val is not None,
    ]
    for fn in filters:
        print(repr(builds(cls).filter(fn).example()))

show_filtered_examples(PydanticDataClassItem)
show_filtered_examples(PydanticItem)

In the output, we see that we can produce examples of PydanticDataClassItem with either type of value. On the other hand, the attempt to produce a not None example of PydanticItem fails because it is always None:
PydanticDataClassItem(required_val=30949, optional_val=None, optional_default_val=1)
PydanticDataClassItem(required_val=-23293, optional_val=-23293, optional_default_val=1)
PydanticItem(required_val=-1870955627, optional_val=None, optional_default_val=1)

Traceback (most recent call last):
  File "/Users/dlipsitt/src/parts-service/test/pydantic_signature.py", line 43, in <module>
    show_filtered_examples(PydanticItem)
  File "/Users/dlipsitt/src/parts-service/test/pydantic_signature.py", line 39, in show_filtered_examples
    print(repr(builds(cls).filter(fn).example()))
  File "/Users/dlipsitt/Library/Application Support/pdm/venvs/parts-service---nOTk53-3.9/lib/python3.9/site-packages/hypothesis/strategies/_internal/strategies.py", line 334, in example
    example_generating_inner_function()
  File "/Users/dlipsitt/Library/Application Support/pdm/venvs/parts-service---nOTk53-3.9/lib/python3.9/site-packages/hypothesis/strategies/_internal/strategies.py", line 323, in example_generating_inner_function
    @settings(
  File "/Users/dlipsitt/Library/Application Support/pdm/venvs/parts-service---nOTk53-3.9/lib/python3.9/site-packages/hypothesis/core.py", line 1237, in wrapped_test
    raise the_error_hypothesis_found
  File "/Users/dlipsitt/Library/Application Support/pdm/venvs/parts-service---nOTk53-3.9/lib/python3.9/site-packages/hypothesis/core.py", line 817, in run_engine
    raise Unsatisfiable(f"Unable to satisfy assumptions of {rep}")
hypothesis.errors.Unsatisfiable: Unable to satisfy assumptions of example_generating_inner_function

(Some distracting irrelevant Hypothesis warnings have been removed.)
Workaround
There are a couple of suggested workarounds in https://github.com/samuelcolvin/pydantic/issues/3126#issuecomment-1045229950. However, they require extra code for every optional field when using builds. This is unexpected and inconsistent with the way other classes (such as dataclasses, either the stdlib or Pydantic kind) work with Hypothesis.

PR welcome.

Had a first look. Too early for a PR because related issues are unclear.
Field annotations are reconstructed from outer_type_:
https://github.com/samuelcolvin/pydantic/blob/cc54acb612cb5144a34caebb9ac143324a0cb4a1/pydantic/utils.py#L254-L258
Optional[] is erased for field.outer_type_:
https://github.com/samuelcolvin/pydantic/blob/cc54acb612cb5144a34caebb9ac143324a0cb4a1/pydantic/fields.py#L628-L634
Simply preserving outer_type_ fixes part of this issue. Yet, test_deep_generic_with_referenced_inner_generic fails.
https://github.com/samuelcolvin/pydantic/blob/6f46a5a1460728868f860840e3f6186aa40403d8/tests/test_generics.py#L903
I'm wondering why Optional[] can't be preserved, whether type_ instead of outer_type_ should be asserted and how #1055 might be related?
This fixes the OP's issue entirely, if the change should be entirely local:
 kwargs = {'default': field.default} if not field.required and field.default is not None else {}
 # TODO: replace annotation with actual expected types once #1055 solved
 annotation = field.outer_type_ if not field.allow_none else Optional[field.outer_type_]
 merged_params[param_name] = Parameter(param_name, Parameter.KEYWORD_ONLY, annotation=annotation, **kwargs)

Lets clarify test_deep_generic_with_referenced_inner_generic first though.

I believe it might be implemented that way on purpose, since it's a call signature, not class definition signature.
Python typing allows to have a: int = None in call signatures, without explicitly stating Optional[int].
echo "def f(a: int = None) -> None: ..." > example.py
mypy example.py

Success: no issues found in 1 source file

It's fixed in 1.10


why proxypass?

Hello,
Why does telize in location ~ /geoip/?(?<ip>.*)
do a proxypass instead of having the contents of location /jsonify
does it make it more "async" or?
thanks for making telize, it's very nice.

This is required to allow passing custom IP addresses in the URL, and in cases where Telize is deployed behind a load balancer.


Combined Log Format :(

This is a sample of my log file format
<IP_ADDRESS> - - [02/Aug/2018:10:50:35 +0100] "GET /printer/api/orderrequest_new.php?a=15776&u=15652&p=874651" 200 14 "-" "-"
<IP_ADDRESS> - - [02/Aug/2018:10:50:35 +0100] "GET /printer/api/orderrequest_new.php?a=8058&u=7943&p=607673" 200 14 "-" "-"
<IP_ADDRESS> - - [02/Aug/2018:10:50:35 +0100] "GET /printer/api/orderrequest_new.php?a=16783&u=16658&p=523873" 200 14 "-" "-"
<IP_ADDRESS> - - [02/Aug/2018:10:50:35 +0100] "GET /printer/api/orderrequest_new.php?a=16843&u=16718&p=167662" 200 14 "-" "-"
<IP_ADDRESS> - - [02/Aug/2018:10:50:35 +0100] "GET /printer/api/message_process.php?a=15558&u=15434&p=607472" 200 16 "-" "-"
<IP_ADDRESS> - - [02/Aug/2018:10:50:35 +0100] "GET /printer/api/orderrequest_new.php?a=14184&u=14069&p=637209" 200 14 "-" "-"
<IP_ADDRESS> - - [02/Aug/2018:10:50:35 +0100] "GET /printer/api/orderrequest_new.php?a=15912&u=15789&p=235474" 200 14 "-" "-"
<IP_ADDRESS> - - [02/Aug/2018:10:50:35 +0100] "GET /printer/api/orderrequest_new.php?a=16708&u=16583&p=395125" 200 14 "-" "-"
<IP_ADDRESS> - - [02/Aug/2018:10:50:35 +0100] "GET /printer/api/pushreporting.php?a=15749&u=15625&p=984323&signalAv=63&signa

I have tried: %h %^[%d:%t %^] "%r" %s %b "%R" "%u"

Try:
goaccess access.log --log-format=COMBINED

Hi Thanks allinurl however the requested files doesnt show the correct data I dont think. It is showing:
1356611 99.63% 8578 74.17%   40.57 MiB ---  ---      -
1636     0.12%    1  0.01%   37.24 MiB POST HTTP/1.1 /ext/api/
384      0.03%  175  1.51%    4.04 MiB GET  HTTP/1.1 /
46	  0.00%   15  0.13%   24.13 KiB GET  HTTP/1.1 /inc/img/wholesaler/16850png
Is that correct? It doesnt feel correct.
Many thanks.
Matthew

As far as how is the data being outputted, looks right to me. Why would  you say is not right? Feel free to attach the whole log and I can verify this.

Closing this. Feel free to reopen it if needed.


"killed" while working with docker containers

Describe the bug
got a crash message inside orbstack
To Reproduce
No response
Expected behavior
No response
Diagnostic report (REQUIRED)
OrbStack info:
Version: 1.7.4
Commit: e03df71b90121e11c379c6273bd0a63166b33957 (v1.7.4)
System info:
macOS: 14.6.1 (23G93)
CPU: arm64, 16 cores
CPU model: Apple M3 Max
Model: Mac15,8
Memory: 64 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-09-30T00-13-56.072691Z.zip

Screenshots and additional context (optional)
No response

i may have found something sending rogue kill signals

Haha, curious what it was :)


Add unit testing for CMake Presets validation

Brief Issue Summary
Add unit testing for CMake Presets validation and inheritance. We have had some regressions recently and these could greatly decrease the chance of regressions.
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response

Note: We should make sure that when we complete this work item we update our test process.


Show arrows / dots only on mousein?

Hi,
One of my clients requested showing the arrows only when you hover your mouse over the slider. I couldn't find that option in the config. Ken, what do you think about implementing this to the core?
Keep it up ;).

This is slightly more difficult for slick-arrows.  You'll need something like this, SASS markup:
.slick-slider{
    .slick-arrow{
        display:none !important;
    }
    &:hover{
        .slick-arrow{
            display:block !important;
        }
    }
}

Try this:
.slick-arrow { transform: translateZ(0); }

This is what I use - change the opacity and they can fade in nicely on hover.
    .slick-arrow{       opacity: 0;       transition: all .25s ease-in-out;       -moz-transition: all .25s ease-in-out;       -webkit-transition: all .25s ease-in-out;     }     &:hover{       .slick-arrow{         opacity: 1;       }     }


Inconsistency on the presence of unread notifications counters in sync responses

The /sync response spec doesn't mention unread_notifications as required, but the "Receiving notifications" section states:

Servers MUST include the number of unread notifications in a client's /sync stream

Which, afaiu, means that unread_notifications is required.

it's trying to say that the server must publish the counts at some point to the user, and that the sync response is made up of only what changed since the last sync. Neither is particularly clear about this.

Right. On:

the sync response is made up of only what changed since the last sync

it might be worth noting that what Synapse does is sending the number of notifications since the user last read the room, not since the last sync, which seems to be allowed in the spec.

That's the same thing. The server is supposed to send the number of unread whatevers, but it doesn't have to include the number in the response if it hasn't changed.
Ie:

User receives message, unread_notifications is 1
10 syncs go by, all of which exclude unread_notifications
User receives another message in the same room, unread_notifications is 2


Reference to start_continuous_recognition() exemple

It could be useful to add a reference to the exemple code to use for the long-running multi-utterance recognition : https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/python/console/speech_sample.py#L196

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

ID: a421fddc-eebd-2ff2-6216-b2a00bbd3fdf
Version Independent ID: 7d902f9e-4f56-30c9-4a39-7d800f92e088
Content: Quickstart: Recognize speech from an audio file - Speech service - Azure Cognitive Services
Content Source: articles/cognitive-services/Speech-Service/quickstarts/speech-to-text-from-file.md
Service: cognitive-services
Sub-service: speech-service
GitHub Login: @trevorbye
Microsoft Alias: trbye

@artsheiko, thank you for reaching out. We are looking into this and would get back to you soon on this thread.

@artsheiko Thanks for the feedback. @trevorbye can you please check on this for adding the long-running multi-utterance sample also.

@artsheiko in the next steps we've added a link to Speech Recognition Basics, which builds on the single example provided in the quickstart. It cover continuous recognition and a full suite of core functionality: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-to-text-basics?tabs=import&pivots=programming-language-python
#please-close


Feature Request: Preview duration for each route setting

Hi,
Something I’d like to see is on the ‘route preference’ slider to see the duration of each route above the dot on the slider.
That way I could easily see what the difference is in duration between the different routes
Cheers

Hi @thibaultmol
Could you please share a screenshot showing what exactly you would like as feature? I could not realize if by reading your text. Thanks

Closed due to inactivity and lack of clarification. Can be reopened if a reply is provided.


Update systemjs.md

Add<EMAIL_ADDRESS>to angular-cli-build,js vendorNpmFiles

Can you add this as a dedicated section after the Setup section and only include the changes pertaining to ngrx/router? Thanks

@CoderMonkies did you want to take another look at this one?


FileFilter match negation

Sometimes—in fact, most times—I want to replace strings that occurs in only one type of file, for example a CSS file. I’ve been looking for documentation of the Exclusion Set’s syntax which pointed me to FileFilters. I browsed the code responsible for indexing files to see if I could find any undocumented syntax, but I couldn’t find anything, nor could I do a simple pull request. Wildcards (*, ** and ?) are the only special characters that are being parsed.
I really hoped I wouldn’t have to add all extensions to the list except the one I wish to replace in. Bummer. Could you implement the ability to negate a pattern, please? Something along these lines:
!*.css  // excludes anything but .css
!*.scss // excludes anything but .scss

@timseverien Please upvote this item on our feature backlog: Find in Files: Inclusive/Additive Filters.  I'll close this issue to avoid duplication.

@peterflynn Oh, sorry, I didn’t know it was there. Thanks and upvoted :+1:

No worries!


Update countdown to 2.3.0

@jack-blackson
Please either (re)add github based tests for node.js 18 OR adapt engines clause at package.json to require node.js 20 minium.
A new release is not yet required but changes must be commited to head branch before release.

https://github.com/jack-blackson/ioBroker.countdown/issues/135
reminder 24.10.2024

RE-CHECK!

RE-CHECK!


Unable to connect to wallet RPC service: RPC call failed: Failed to connect to <IP_ADDRESS> port 27486: Connection refused

Hi there,
Please could you tell me what is wrong ?
I am using node stratum and I know the wallet is working as I tested with S-NOMP.
I am using Verus Coin.
Same as RPC - No firewall between servers
$config['wallet']['type'] = 'http';
$config['wallet']['host'] = '<IP_ADDRESS>:27486';
$config['wallet']['username'] = 'verus';
$config['wallet']['password'] = 'HIDDEN';
Thanks

Check your wallet debug logs, this is unlikely to be a MPOS issue.


Does not work on V56.

Was wondering if support could be added to V56. When I try to run the V56 game with Quality Company it doesn't work at all. Nothing shows up on the terminal and the HUD is unchanged. For what it's worth, it worked perfectly on V50.

Had to update my LC_API. Sorry!


Redis support

Any plans on adding Redis support?

I'm not aware of a Redis backend (see https://github.com/gregjones/httpcache#cache-backends), or anyone currently working on one, or planning to make one.
But it should be easy for someone to create one, and we can include it in the README.

@shurcooL https://github.com/gregjones/httpcache/pull/55 :)


Different results in Chrome's F12 and CDP

The page https://www.bbc.co.uk/iplayer/live/bbcone
I can query element “div.p_playerControls”  in Chrome's F12 console:
document.querySelector('div.p_playerControls')
div class="p_playerControls" style="display: block; clip: rect(1px, 1px, 1px, 1px);"
...but cannot via remote interface (div is null, please see attached image):
var div = await page.QuerySelectorAsync("div.p_playerControls");
var player = await page.QuerySelectorAsync(".player__container");
Am I do something wrong?.. :) Thanks!

Did you try adding a WaitForSelectorAsync before that?

Just tried it, just freeze on wait. The page persistent opened in Chrome! I can switch to Chrome and document.querySelector return element OK...
await page.WaitForSelectorAsync("div.p_playerControls");
var div = await page.QuerySelectorAsync("div.p_playerControls");

I'm getting a login wall on that page.

Just signup, it's free :) Then you will need select "I have license for watch TV". You will not able see TV if you not in UK, but you will able see "div_p_payerControls" in F12.
If you will have some ideas, what's going wrong, it will very valuable for me :) Thanks!

Are you signing up and selecting "I have license for watch TV" using Puppeteer sharp?

No of course, I'm signup in browser. Browser then store login in cookies, and I can re-run Chrome in dev mode.

@MilnerAlex are you launching puppeteer passing the ExecutablePath option targeting to the browser you used to log in?

No, I'm use connecting to running instance (for keep page unchanged):
var coptions = new ConnectOptions
{
AppMode = true,
BrowserURL = "http://localhost:9222"
};
var browser = await Puppeteer.ConnectAsync(coptions);

Can't test that

Hi Dario,
Yes, as I mentioned, you will not able see TV :) But you WILL be able retrieve div as below:

Thanks!
Alex.

I'm just got a point in another thread that it can be related to frame, please see here:
https://github.com/cyrus-and/chrome-remote-interface/issues/415
I will investigate it now, but maybe you already know), how to get access to this frame?..  Thanks! :)

That DIV is inside an iframe.  You would need to get the frame first and then query inside the frame.

Thanks Dario, I will start digging in this way :) Can you please do not close this issue for a while, I'll close tomorrow myself - thanks!

You could infer the frame based on the URL :)
var frame Page.Frames.First(f => f.Url.Contains("iframe.html")

I'll try it tomorrow! Thanks a lot again! :)

The problem is solved (get frames and query on each). Thanks a lot Dario! :)


feat(algebra/hom/centroid): Centre of the Centroid of a *-ring is a *-ring

This PR shows that the centre of the centroid of a *-ring is a *-ring.
Previously submitted to mathlib as https://github.com/leanprover-community/mathlib/pull/18096

[x] depends on: #6562
[x] depends on: #12924
[x] depends on: #12938

bors r+


Export Compression Sub-Menu Missing

Describe the bug
With the latest release of blender (4.3) the compression submenu for exporting GLB is missing
To Reproduce
Steps to reproduce the behavior:

Go to export gltf 2.0
See missing

Expected behavior
Compression submenu to be there
Screenshots

.blend file/ .gltf (mandatory)
N/A
Version

OS: Windows 11
Blender Version 4.3

Additional context
N/A

Hello,
This is a know issue on Blender side, that is already solved (and is candidate to be part of a 4.3.1 release)
See https://projects.blender.org/blender/blender/issues/130545
Closing this ticket, avoiding following multiple duplicate ticket for the same root cause.


One extra session is created when running tests on cloud browser providers.

🐛 Bug Report
When using the connect method to run tests, one additional blank session is getting created per run on cloud browser providers, for example, 5 sessions for a 4 test suite. When openBrowser method in global.js gets called during setup, it creates a session which is not used to run any tests.
To Reproduce
Run a basic test on BrowserStack, with say 2 tests.
Sample
Expected behavior
Ideally 2 sessions should be seen on the BrowserStack dashboard but currently you'd see three sessions two corresponding to the two tests but an extra third one as a blank session.
Link to repl or repo (highly encouraged)
Repo
Docs
Issues without a reproduction link are likely to stall.
Run npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard
Paste the results here:
## System:
 - OS: macOS 11.1
 - CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
 - Memory: 229.95 MB / 8.00 GB
 - Shell: 5.8 - /bin/zsh
## Binaries:
 - Node: 12.13.0 - ~/.nvm/versions/node/v12.13.0/bin/node
 - Yarn: 1.22.10 - ~/.nvm/versions/node/v12.13.0/bin/yarn
 - npm: 6.12.0 - ~/.nvm/versions/node/v12.13.0/bin/npm
## npmPackages:
 - jest-puppeteer: 6.0.0 => 6.0.0

How do you propose this is fixed? I don't think there is anything we can change in jest-puppeteer to fix this. This seems like an issue with browser stack.

Could have a flag/config option to avoid the connect call inside global.js and here use the wsEndPoint provided in config. This would use the connect method here to run the tests.

The connect call is required to get the browser variable for the wsEndPoint.

should be fixed in v6.0.3


pages mounted more than once when using customized layout other than default.

using starter template
create a new layout
using your layout in one page, console log sth in mounted.
you will see the log twice
remove the layout prop(using default), only mounted once

I have the same question, pls help me

Fixed in the last release

fixed in which version?

June 22, 2018.  It's still happening.  Page mounted twice when using a custom layout on that page.


Added Settings from CoolTrainer

I have been using these  tunables from https://cooltrainer.org/a-freebsd-desktop-howto/ without any problems in low spec laptops. Would be nice to have it out of the box in hellosystem.
Also according to devfs.rules user should be in the operator group.

Thank you very much @cneira.


chore: add segment tracking (PLATFORM-2626)

Add Segment tracking analytics code to Redash HTML.
Implements PLATFORM-2626

This is deployed to my sandbox for testing.

Hmm, they Segment key would preferably not be hard-coded, since we use a different one for internal vs customer envs.

Ok, key is now read from cookie and CSP issues have been resolved.


OCM-4459 | test: automate id:72536 create/list/describe/delete external_auth_provider for hcp cluster

$ ginkgo --focus 72536 tests/e2e/
Ginkgo detected a version mismatch between the Ginkgo CLI and the version of Ginkgo imported by your packages:
Ginkgo CLI Version:
2.14.0
Mismatched package versions found:
2.17.1 used by e2e
Ginkgo will continue to attempt to run but you may see errors (including flag
parsing errors) and should either update your go.mod or your version of the
Ginkgo CLI to match.
To install the matching version of the CLI run
go install github.com/onsi/ginkgo/v2/ginkgo
from a path that contains a go.mod file.  Alternatively you can use
go run github.com/onsi/ginkgo/v2/ginkgo
from a path that contains a go.mod file to invoke the matching version of the
Ginkgo CLI.
If you are attempting to test multiple packages that each have a different
version of the Ginkgo library with a single Ginkgo CLI that is currently
unsupported.
Running Suite: e2e tests suite - /home/aaraj/ocm-forked-code/rosa/tests/e2e
Random Seed:<PHONE_NUMBER>
Will run 1 of 93 specs
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS•SSSSSSSSSSSSSSSSSSSSSSS
Ran 1 of 93 Specs in 77.469 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 92 Skipped
PASS
Ginkgo ran 1 suite in 1m22.483280865s
Test Suite Passed

/test

/test ?

/test e2e-presubmits-pr-rosa-hcp

/hold

/unhold

/hold

/unhold

/test e2e-presubmits-pr-rosa-hcp

/lgtm

/test e2e-presubmits-images


Improve Playback Test Times by Using Better Wait Durations

This PR improves how much time running tests in playback uses by performing the following optimizations:

Change pollInterval on SyncPollers and PollerFluxs when TestMode == PLAYBACK
Supply custom RetryPolicy when testing cases where an operation fails with a retried exception or response type
Reduced testing payload sizes for generated data

Notable improvements are the following:

Library
Before
After

Metrics Advisor

Remote Rendering

Form Recognized

@JianpingChen, @ankitarorabit, @minnieliu - could you verify the changes made to Communication libraries.
@samvaity, @anuchandy - could you verify the changes made to Metrics Advisor.
@MalcolmTyrrell - could you verify the changes made to Remote Rendering. Additionally, do you want to be made a CODEOWNER for /sdk/remoterendering/ so that you are added as a reviewer to any changes made to that directory?

@MalcolmTyrrell - could you verify the changes made to Remote Rendering. Additionally, do you want to be made a CODEOWNER for /sdk/remoterendering/ so that you are added as a reviewer to any changes made to that directory?

Hi. As far as I can see, the changes to remote rendering look fine. Making me a codeowner makes a lot of sense. Thanks.


View full user permissions, just like _searchguard/authinfo

It would be really handy for debugging/testing if there was an endpoint to view a users full permissions. Similar to _searchguard/authinfo, but with permissions included.

Can you give an example how such an endpoint (and its response) should look like for you?

Sure. Generally, I am looking for something that not just enumerates the roles, but details the permissions for each role. I expect the response to be similar to how roles are defined in sg_roles, except action groups are expanded.
What originally prompted this request was that I was trying to setup my user with the right permissions for kibana, but I kept getting permission errors. I found out that the permissions defined in the active sg_roles were not what I expected. I was expecting it to be a much newer version of sg_roles, when it was actually much older. I was unable to tell that the roles were different from the regular output for _searchguard/authinfo as it only listed roles.
The request and response might look like this (Note, it expands nested action groups):
GET _searchguard/authinfo?v

{
  "user": "User [name=some_user, roles=[]]",
  "user_name": "some_user",
  "user_requested_tenant": null,
  "remote_address": "xxx.xxx.xxx.xxx:xxxxx",
  "sg_roles": [
    ...,
    {
      "kibana_writer": {
        "cluster": [
          {
            "CLUSTER_COMPOSITE_OPS_RO": [
              "indices:data/read/mget",
              "indices:data/read/msearch",
              "indices:data/read/mtv",
              "indices:data/read/coordinate-msearch*",
              "indices:admin/aliases/exists*",
              "indices:admin/aliases/get*"
            ]
          },
          {
            "CLUSTER_COMPOSITE_OPS": [
              "indices:data/write/bulk",
              "indices:admin/aliases*",
              {
                "CLUSTER_COMPOSITE_OPS_RO": [
                  "indices:data/read/mget",
                  "indices:data/read/msearch",
                  "indices:data/read/mtv",
                  "indices:data/read/coordinate-msearch*",
                  "indices:admin/aliases/exists*",
                  "indices:admin/aliases/get*"
                }
              ]
            ]
          }
        ],
        "indices": {
          "?kibana": {
            "*": [
              {
                "CRUD": [
                  {
                    "READ": [
                      "indices:data/read*",
                      "indices:admin/mappings/fields/get*"
                    ]
                  },
                  {
                    "WRITE": [
                      "indices:data/write*",
                      "indices:admin/mapping/put"
                    ]
                  }
                ]
              },
              "indices:admin/refresh"
            ]
          },
          "*": {
            "*": [
              "indices:admin/mappings/fields/get*",
              "indices:data/read/field_stats*"
            ]
          }
        }
      }
    }
  ],
  "sg_tenants": {
    "admin": false
  },
  "principal": null,
  "peer_certificates": "0"
}

ok, so its basically print out the sg roles the user currently is a member of?

Yes, basically print out their roles, and the permissions given to those roles

We're discussing this currently. Concerns were raised that this can disclose security relevant informations. So not sure if this gets implemented.

Perhaps it can be enabled with a debugging flag? But disabled otherwise.

We will not implement this for now. One can check the current effective configuration with the sgadmin -r flag or via the new Kibana SG UI.


Trouble on font icons with meteor mobile on android

I can see the icons, but something is wrong and something have not a good formatting.

All works like a charm on Chrome mobile:

I assume you are running Android 4.3 or older? I'm afraid that support for android below 4.4 is rather limited at the moment.

Strange, I have Android 4.4.4

Installing https://github.com/poetic/meteor-materialize-sass go better...but not all icons are fixed


POL-289 Fixes loading on the trigger history

Codecov Report

Merging #163 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #163   +/-   ##
=======================================
  Coverage   85.67%   85.67%
=======================================
  Files         145      145
  Lines        2820     2821    +1
  Branches      483      484    +1
=======================================
+ Hits         2416     2417    +1
  Misses        401      401
  Partials        3        3

Impacted Files
Coverage Δ

src/pages/PolicyDetail/PolicyDetail.tsx
100.00% <100.00%> (ø)

Nice skeleton load!


VSCode becomes extremely slow and laggy after waking up from suspend

VSCode Version:
Version: 1.29.1
Commit: bc24f98b5f70467bc689abf41cc5550ca637088e
Date: 2018-11-15T19:07:43.495Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
OS Version: Kubuntu 18.10

Steps to Reproduce:

Suspend computer by closing the lid
Wake up from suspend, try using VSCode. The interface is unresponsive and laggy, the window is essentially unusable until VSCode is restarted.

Does this issue occur when all extensions are disabled?: Yes

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

Yes it does. It seems like the amount of time it sleeps for is related. If my laptop only sleeps for a few minutes there's no noticeable lag. If it sleeps for a day VSCode is unusable.


feat(rhineng5533): workloads recs filters

https://issues.redhat.com/browse/RHINENG-5533
Workloads recommendations table filters
2 filters were implemented in this PR: Name/Description filter and object id filter
Name/description filter should filter rows by the name
Object id should filter data by the object id's (you can look up their values inside the expanded details)
I did some code cleanup as well - noFiltersApplied function is renamed and refactored so we could use the output of this function as a boolean to check if we should render "Reset filters" button or not.

The total risk filter seems to be not working as expected (the description and object id filters are OK):
Screen.Recording.2024-01-04.at.11.50.15.mov

Total risk is not available in the API yet, will be implemented separately


GNPS FBMN export creates single edge file for multiple feature lists

When exporting multiple Feature lists to GNPS via "Feature list methods -> export -> GNPS / FBMN" with {} in the file name, only a single file is created for the additional edges.
The GnpsFbmnExportAndSubmitTask creates multiple subtasks, such as the ExportCorrAnnotationTask, which is responsible for the edge annotations. The filename passed to this task is not properly updated for each feture list. A working example is the CSVExportModularTask, which is also launched by the GnpsFbmnExportAndSubmitTask.
Result:

Expected result: one {}_edges_msannotation.csv file for every feature list, by replacing {} in the filename with the name of the feature list. E.g. 100_ms_aligned_corr_edges_msannotation.csv

I think the only class that needs to be modified is the "ExportCorrAnnotationTask", because the file name is not set properly there.
The CSVExportModularTask correctly replaces the filename, so that's where you can check how it should be done.

@SteffenHeu since the name of the file should be replaced with the name of the feature list, I tried modifying the parameter of the writeToFile method as show in this code:
`if (added.get() > 0) {
writeToFile(ann.toString(), filename, featureLists[0].getName()+"_edges_msannotation");
return true;
} else {
return false;
}


Add debugging output to the inMemory plugin

While working on #41 , I added console.log in a couple of places to better understand what was going on.
You can have a look here: https://github.com/kentcdodds/mdx-bundler/compare/main...gaelhameon:wip
What would you think of including  debug  as a dependency, and turning these console.log into actual debugging output ?
I'm guessing that it could prove useful for cases where we load files that load other files that load other files etc.
@kentcdodds , if I submitted a PR for that, is this something you'd be interested in merging ?

Personally by the time I realize that I can use debug on a package, I've already started digging into the source code and I can manually insert my own log statements, so I'm not sure I feel like it's necessary 🤷


Allow right click panning while carrying something

In fact, allow right CLICKING as well!?!

This feels like an issue when the creation arrow is selected too. should sort this out.................. this kinda thing wouldve been perfect for a state chart.
cc @akkartik throwback to the slack thread about state machines
I am experiencing regret (again) for not using a state chart!

I have no idea how you will take me going off on a tangent here, but just in case it's appreciated:
The state machine worldview has been looming a lot larger in my mind ever since I started doing graphical programming over the past year. My recent apps have a lot of states and complexity, but there's no single place for me to see the big picture. Hence my idea: bolt on my graph-drawing app to my live-programming app to build an ISDE, an Integrated State-machine Development Environment.
Basically I want represent the top-level state-machine enum of possible states visually as a graph that the environment code-gens from. Beyond that it's a regular textual experience. Define a struct for each state box in the graph, specifying attributes that state can have. When you assign a new state to the state variable, the environment statically checks:

that all attributes for that state are present, and no other attributes are present
that the transition from previous state to new state is permitted as defined in the graph

One nice to have: highlight transitions in the graph that are never used in the program.
I think this would generalize nicely to hierarchical representations like Harel's State Charts. Define each state recursively using a new state machine with a new initial state. Except it's all code now, not something you have to manually keep in sync with code.
I'd love to hear what you think of this. (Seeing you riff on it would be even better.) It will be useful to varying degrees depending on the domain of a program, but it seems quite life-changing for interactive graphical programs.

Love it!! I really appreciate the tangent :) I dragged you here after all!
Those apps look lovely, I gotta try them out!
What you describe sounds very useful! The key hurdle for me is the word static. Often, in my hobby projects, I'm trying to build a base of an engine, that can be extended.
"In my extension, how do I extend the state chart/machine?" <<<< That's the problem I've struggled to figure out
Sure, my 'extra bit' could be inserted inside something in the static state chart. But sometimes, I want to completely change it! Or escape it! Or add another one above the top level!
What comes first?

First, draw a diagram.
Then, create a state machine based on the diagram.

^ this is the approach I see most often.

First, create a state machine.
Then, draw a diagram, based on the state machine.

^ This is what I like to do. The diagram still helps me to reason about it! But it comes afterwards, not before. For example, here I add in a state to the machine, out of nowhere. I don't need to go back and add it to my original 'tree' or anything. The newly added state exists on its own! And entity's can decide to get information from it, before it even exists.

I'm still imagining this happening inside Lua, so it's not very static at all. I can still define variables anywhere I want. Doesn't have to be in the state machine. But it might nudge me to move variables into the state machines as they stabilize. Javascript seems similar in this respect.
What comes first is a provocative thought. I think I'm going to need to build up some experience using state machines to fully relate with it. Right now, my reaction is, it's a false dichotomy caused by the fact that the diagram is not the state machine. "Ceci n'est pas une pipe" is all very well, but here we're dealing with two abstractions that are neither real. Perhaps we only need one? Perhaps it's a tooling issue caused by the fact that the diagram can't live within the code?

Yeah I think you're right!
To explain more, here's how my states work in this repo:
Make a state. Give it some events. If you return a new state from an event, it'll transition to that state.
class Idle extends State {
  pointerdown() {
    return new Pointing()
  }
}

class Pointing extends State {
  pointermove() {
    return new Dragging()
  }
  pointerup() {
    return new Idle()
  }
}

class Dragging extends State {
  pointerup() {
    return new Idle()
  }
}

Note: They don't need to return a new state. You can just use them for side effects.
pointermove(e) {
  print("The pointer moved!")
  print(e.clientX, e.clientY)
}

I feel that this is very different to the often-used transition function, or similar.
machine.transition("dragging")

Or sometimes you can return a name as a string.
return "dragging"

With these cases, there's the assumption that the list of states is fixed, and decided statically at load-time or compile-time.
Even the fact that we're creating a new instance of the state helps to make it feel more dynamic. That's what I mean :)
It means we can define our machine like this (ie: just with the initial state):
const machine = new Machine(new Idle())

Instead of the usual way, where you have to define all of a machine's possible states:
const machine = new Machine([Idle, Pointing, Dragging])

When using a dynamic language like JS or Lua, it's nice to be able to code dynamically, and loosely :)

btw, to send events to the machine, just do something like this:
machine.fire("pointerdown", e)


Bootstrap library is out of date.

Bootstrap is a javascript library that is being used to create the website's User Interface.
The version on the website is 3.0.3. The latest is 3.4.3 @ http://getbootstrap.com
I would consider upgrading to the latest version.

This is your end of the workflow, Jacob. I don't know if you want to do this yourself or have Nathan and Jimmy work on it, but I'm going to assign it to you so that I know not to worry about it.


const, bounds, protocol sentinel changes

Mark const methods const in binary
Add a max and min encoded float calculation and test it
Since the max and min encoded float is in -1,1, use sentinel values in -10,10
And test that too

@Paul-Dempsey would appreciate an eyeball and review here.
Basically: We can put the entire protocol in -10,10 so as to not fall afoul of rack clippers. This mostly makes it so the tests show that is true. It also started making FloatBytes constexpr but that's not useful until C++20 since you can't switch union types in constexpr so mostly just a few consts here and there.


Insert into collection with multiple threads

Getting  {"Invalid transaction on top of stack"} in private void popTopTransaction(LiteTransaction trans)
There is no auto id, I generate GUID strings for each inserted element.

also getting {"Unable to cast object of type 'LiteDB.IndexPage' to type 'LiteDB.CollectionPage'."}
and so many exceptions, definitely going back to 1.0.4

Hi @icelty, either 1.x and 2.x are not thread safe. AutoId is present in v2.0 release, including for Guid (https://github.com/mbdavid/LiteDB/blob/master/LiteDB/Serializer/Mapper/BsonMapper.cs#L90)
I'm updating to 2.0.2 to fix connection string parser

Only new v3 version will be thread-safe... but still in dev for a while

@mbdavid , thanks for the tip, it may have been that I never happen to reach a raise condition with 1.0.4, also I was instantiating LightDatabase only when needed disposing it immediately after. I happen to changed that model just recently along with the upgrade to 2.0.1 where now is a singleton :(, thanks for the information I can wait for 3.0 then!

For the googling eyes, the work around thread safety is to have a regular lock, what I did was, wrote a small wrapper around all queries, and lock(LiteDatabaseInstance), is not ideal but if you are in a hurry, is not a supper expensive tech debt to have.

@icelty do you have an example of the locking the DBInstance? I want to use this in my signalr project which uses a lot of async methods so don't want to run into the same issues. Also am I right in thinking theLiteDB just sits in my project folder and auto magically works like MongoDB?

Simple, I wrap LiteDatabase within a class that centralizes all IO operations, also within the class I have just a simple object field that I Lock on every operation. Not different than what we all do to make multi-threaded operations over a non thread-friendly object i.e. A cross thread shared List for example.
Sample Code (Just top of my head, not sure it will compile 100%):
`
object syncRoot = new object();
void myInsertFunction(string collection, T document){
lock (syncRoot )
{
Database.GetCollection(collection).Insert(document);
}
}
IEnumerable myGetterFunction(string collection){
lock (syncRoot )
{
return Database.GetCollection(collection).Insert(document).FindAll();
}
}
`

FYI @mbdavid I have seen a problem with auto id (Int32) when inserting after a few deletes, not sure if this is true but it looks like Light db is re-using ids and throws an exception. Cannot insert duplicate key in unique index 'ChannelName'. The duplicate value is 'add channel user test'

v3-beta was released and now support multi-thread in a single instance of LiteDatabase (uses ReadWriteLockSlim)


Syntax Highlighting Breaks With _

I've encountered problems with the following:
[NOTE]
================================================================================
You might want to output “$400” but “$4” will be interpreted as the indefinite form of the fourth parameter, as described below. So you need to use the ‘_’ to make that happen (“$_400”).
================================================================================

Where the _ in ‘_’ starts a never-ending italic styling in the highlighting, breaking the syntax highlighter from there onward.
(this issue might be related to Issue #12)
I've tried various approaches to the problem (escapes, non-curly quotes, and even `_` etc.) but either it solved the problem in ST code preview but broke the intended output, or didn't solve the problem at all.
I'll try to have a look at the syntax file myself when I find some time, but right now I'm just opening an issue to report the problem.
Most likely, the syntax definition that handles italics needs some tweaking, as that underscore should not trigger an italic style.
Also, it seems to lack bail-out fallbback checks to handle malformed code — as a general rule, syntax definitions should account for partial or malformed code, the former to handle when the user momemntarily interrupts what he was coding, leaving behind some incomplete syntax, the latter to handle malformed documents. In both cases the syntax highlighter shouldn't break so badly as to compromise the rest of the document:

https://github.com/sublimehq/Packages/issues/757#issuecomment-269031562

I'm having the same issue. Rather annoying!

@alejandroschuler, there are some forks of this repo where the issue has been solved. Unfortunately this repository doesn't seem active, and the other repos are not officially endorsed by package.io.
I was hoping that this project becomes active again and starts accepting PRs for similar fixes and, possibly, move to ST3 (who uses ST2 anymore?). The only reason I could see for keeping the old ST2 syntax would be if some projects rely on it for syntax highlighting (eg. GitHub Linguist), but even then ... you can keep in the same ST package both the old and new syntax and ST will simply pick the right one.
One major step to start setting right this package would be to add a test suite (I'm not sure if ST2 supports them, but ST3 does), so it would be possible to pinpoint all the syntax problems and keep track of any syntax breaking changes when attempting to fix them.
But again, none of this is worth the effort unless the project is alive and open to PRs. I don't like the idea of installing forked packages (there are already too many unofficial forks of this project, each with its own fixes). It would make much more sense to integrate improvements in the upstream project instead of seeing of proliferation of unofficial packages.


onBlur focusedSuggestion becomes null on hover any suggestion

I use focusFirstSuggestion = {true} and it works well.
If user does not choose anything from dropdown list, the first rendered suggestion becomes a field value when user leaves the field (onBlur).
But, if user moves mouse around suggestion's list (but does not click on any value), the focusedSuggestion is set to null on blur.
I want focusedSuggestion in onBlur callback to never become null if user did not select any value by click. How to achieve that?

I'm trying to reproduce the behaviour you are describing in this Codepen, but no luck.

If user does not choose anything from dropdown list, the first rendered suggestion becomes a field value when user leaves the field (onBlur).

How do you blur the field? By clicking outside of the input? Pressing Tab? Something else? From what I can see, the value of the input doesn't change when the input is blurred.
Could you provide the exact steps to reproduce the unexpected behaviour?

When list is open, move mouse away from suggestion list but do not move mouse over suggestion list itself. In onBlur callback you will see that focusedSuggestion  is the first value. It's ok. But when your mouse pointer moves over suggestion list itself, focusedSuggestion  will be null in onBlur.

focusedSuggestion in onBlur callback is the suggestion that was highlighted just before the input element lost focus, or null if there was no highlighted suggestion.
When you have a highlighted suggestion, and then move the mouse away from the suggestions list, the highlighted suggestion disappears. There is no more highlighted suggestion, and this is why focusedSuggestion is null on blur. This is the expected behaviour.

In my case after onBlur event the field value cannot be null (if list in not empty). If no values are highlighted the first one must be focusedSuggestion .  I think I got it wrong, I should check the list itself and it's first value if focusedSuggestion  is null. I hoped that focusFirstSuggestion = {true} do the work and focusedSuggestion  will be always the highlighted value or first from the list, but anyway not null.

Sorry, I'm confused.

In my case after onBlur event the field value cannot be null (if list in not empty).
I thought that we are talking about the focusedSuggestion argument being null, not the value of the input field?! As far as I'm aware, the input value doesn't change on blur.

No, I meant that business logic of my app (it's an autocomplete field)  does not allow the field to be empty. We are talking about focusedSuggestion , and I misundrestood that, I thought it acts like a selected value, but it is just a highlighted value.

react-autosuggest allows the input field to stay empty. I think react-select allows you to avoid empty value, so maybe have a look a it. Closing for now.

I seem to be experiencing the same thing.
I have focusFirstSuggestion, and an onBlur handler which sets the value of the input to focusedSuggestion. If I blur by clicking above the input, it sets the value as expected, however when clicking below the input, focusedSuggestion comes through as null.
See http://codepen.io/anon/pen/jVdGbr

however when clicking below the input, focusedSuggestion comes through as null.

@angusfretwell focusedSuggestion is null because there is no focused suggestion right before you click to blur.
Note, when you hover over from one suggestion to another, the focused suggestion changes. So, when the mouse leaves the last suggestion in the list, focusedSuggestion becomes null.

@moroshko Got it. I just got a bit confused since sometimes focusedSuggestion comes through as null when the .suggestionFocused class is applied to one of the suggestions.
My use case was similar to Alex's. I wanted the input value to be either one of the suggestions, or blank, so I ended up just setting the value to an empty string if focusedSuggestion is null.
Awesome library BTW 👍


⚠ Bofrost.at has degraded performance

In e71d1de, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2088 ms

Resolved: Bofrost.at performance has improved in 891dcc2 after 36 minutes.


Trying to run on MAC

Did you use the custom speech recognization from? https://github.com/Uberi/speech_recognition/blob/master/speech_recognition/init.py
If so, did you make any changes from the this? Trying to fix some issues for mac!

I did use https://github.com/Uberi/speech_recognition/ with some modifications so it uses PyAudioWPatch instead of PyAudio, and added a Speaker parameter in the Microphone class in that file. Unfortunately PyAudioWPatch seems to be only for windows so this would be tough to set up on MAC.

Yeah, I've been trying to change all dependencies to pyaudio which is available for mac, but facing some unexpected issues in the audiorecorder.py!

/Users/username/miniforge3/lib/python3.9/site-packages/whisper/timing.py:58: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
  def backtrace(trace: np.ndarray):
[INFO] Adjusting for ambient noise from Default Mic. Please make some noise from the Default Mic...
[INFO] Completed ambient noise adjustment for Default Mic.
[INFO] Adjusting for ambient noise from Default Speaker. Please make or play some noise from the Default Speaker...
Traceback (most recent call last):
  File "/Users/username/ecoute/AudioRecorder.py", line 20, in adjust_for_noise
    self.recorder.adjust_for_ambient_noise(self.source)
  File "/Users/username/ecoute/custom_speech_recognition/__init__.py", line 401, in adjust_for_ambient_noise
    assert source.stream is not None, "Audio source must be entered before adjusting, see documentation for ``AudioSource``; are you using ``source`` outside of a ``with`` statement?"
AssertionError: Audio source must be entered before adjusting, see documentation for ``AudioSource``; are you using ``source`` outside of a ``with`` statement?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/username/ecoute/main.py", line 117, in <module>
    main()
  File "/Users/username/ecoute/main.py", line 76, in main
    speaker_audio_recorder = AudioRecorder.DefaultSpeakerRecorder()
  File "/Users/username/ecoute/AudioRecorder.py", line 70, in __init__
    self.adjust_for_noise("Default Speaker", "Please make or play some noise from the Default Speaker...")
  File "/Users/username/ecoute/AudioRecorder.py", line 20, in adjust_for_noise
    self.recorder.adjust_for_ambient_noise(self.source)
  File "/Users/username/ecoute/custom_speech_recognition/__init__.py", line 207, in __exit__
    self.stream.close()
AttributeError: 'NoneType' object has no attribute 'close'

Getting this error when trying to run on a mac, anyone able to find a way around?

What is needed to get it working on Mac?
Maybe this code can be useful: https://github.com/leetcode-mafia/cheetah

I created new issue to summarize what needs to be done to get it working on MAC https://github.com/SevaSk/ecoute/issues/10


Implement useContext Hook

We need to implement the useContext hook that React has. We want it to be as simple as possible for React developers to use Donovan as a library.

Hi @William-McGonagle could you please describe a bit the behavior of the expected code a bit elaborately? Since we'll be implementing it in Vanilla js I need to know where we're using the useContext hook


Return Text styles

PR includes

[x] Bug Fix

Related issues

Resolve #1086
QA Instructions, Screenshots, Recordings

/canary


support ie9?

hi, does logline support ie9?

hey there,
logline implements three log protocols: websql, indexeddb and localstorage, as I searched on caniuse.com, IE9 does not support websql, indexeddb other than localstoage. So if you use full build(longline supports custom build)  , longline will automatically choose localstorage protocol.


Make alias required for v-repeat

Problem
Currently there are two ways to write a v-repeat: with or without an alias. The without-alias syntax has been supported for a long time, but it has a few issues:

It makes it unclear whether a property belongs in the current repeat scope or in the parent scope.
We have to use the magical $value to refer to primitive values.
Allowing two different syntaxes complicates internal implementation of v-repeat.
When a component is used without alias, the repeated object is passed into the component as $data; if the component also has a default data function, the fields returned in it will be merged into the passed in object, essentially mutating the raw data in the Array.

Proposal
Make alias required.

Agreed

:+1:

How would this affect iterating through an object?

@cheapsteak yep. The only different is $key instead of $index

Should there be a way to alias $key as well for nested repeats?
var things = {
  thing1: {
    subthing1: {},
    subthing2: {},
    subthing3: {},
  },
  thing2: { /*..*/ },
  thing3: { /*..*/ }
}

<template v-repeat="thing in things">
  <template v-repeat="subthing in thing">
    {{$key}}
  </template>
</template>

Yeah, currently you'd have to do $parent.$key. I really want to avoid complicating the v-repeat syntax into something of its own though.

@yyx990803 maybe v-repeat should not have supported objects in the first place, because there is no single way to order object keys.

there is no single way to order object keys.

Does a list on a web page always have to be ordered?  What if you are just
showing a series of images that have no order?
On Tue, Aug 18, 2015 at 12:20 PM, Denis Karabaza<EMAIL_ADDRESS>wrote:

@yyx990803 https://github.com/yyx990803 maybe v-repeat should not have
supported objects in the first place, because there is no single way to
order object keys.
—
Reply to this email directly or view it on GitHub
https://github.com/yyx990803/vue/issues/1168#issuecomment-132323334.

@simplesmiler v-repeat="val in object | orderBy '$key'"?

@mark-hahn DOM elements are certainly ordered.
@yyx990803 v-repeat="val in (object | orderBy '$key')" seems to me like repeat over an array, which was the point of my message (parenthesis are imaginary, not as part of syntax).

DOM elements are certainly ordered.

But the contents of the DOM don't have to be.  I gave the example where I
don't care about the order of images shown.
On Tue, Aug 18, 2015 at 12:37 PM, Denis Karabaza<EMAIL_ADDRESS>wrote:

@mark-hahn https://github.com/mark-hahn DOM elements are certainly
ordered.
@yyx990803 https://github.com/yyx990803 v-repeat="val in (object |
orderBy '$key')" seems to me like repeat over an array, which was the
point of my message (parenthesis are imaginary, not as part of syntax).
—
Reply to this email directly or view it on GitHub
https://github.com/yyx990803/vue/issues/1168#issuecomment-132328060.

I guess I should have opened a new issue for this, but oh well.
@mark-hahn data can be unordered for sure, and the way the user perceives data representation may be unordered, but the representation we as developers are working with is always ordered. And I think we should not abstract too far away from this fact.
There are different scenarios for 'things without order':

Sometimes we do not care about particular order of items, because the visual representation is independent of the order (absolutely positioned points on a scatterplot).
Sometimes we do not care about particular order of items, but want the ordering to be 'stable', so that after refresh or insertion of a new item other items don't jump around too much (participants of the discussion).
Sometimes we want items to be ordered quasi-randomly, so that every item is given equal exposure.
Sometimes items do not have inherent order, but may be ordered given criteria (rows in a table with sortable columns).

I understand, that all of the above may be implemented using current syntax. But I think that repeating over object keys with orderBy is no different to repeating over array. And repeating over object keys without orderBy:

Gives false sense of being stably or quasi-randomly ordered when it's not.
May be improved perfomance-wise for truly order-independent data.

@yyx990803, am I wrong in the assumption, that for truly order-independent data there are less modifications to be made to the DOM when data changes?

@simplesmiler in ES6, object key order has been defined.

@simplesmiler the implied behavior of repeating over object keys without orderBy is that the order will be the same as the property enumeration order implemented by the browser's JavaScript engine (same as the order of for (key in obj)). In my opinion this is a reasonable assumption and separating object iteration into a different syntax / implementation only complicates the issue.

@JosephSilber thanks, was not aware of that. Do you think transpilation or aggressive minification or (like babel and closure compiler) can break this order, so that original and minified scripts behave differently?
@yyx990803 this is fair, doing as javascript does. But still, do you think it's possible to write a special directive for unordered data, that would outperform general case v-repeat?

No browser has implemented this yet, so there's no way to know.

Closed in favor of #1200.


Improve test coverage for Runner

Summary of the new feature/enhancement
There is currently no test coverage for the runner project.
Proposed technical implementation details (optional)

Identify business logic and test cases that should be applied for the runner.
Provide unit tests that can be applied without a redesign of the runner code.
Propose refactoring/redesign of the runner code that may improve the testability of the codebase.

Old issue. Any progress?


[bug]: auto resize text area height error

Describe the bug
AutoresizeTextArea text height calculation takes the scrollbar width into consideration when calculating height, resulting in text getting wrapped earlier than it should, and therefore reports a height that's greater than what will be occupied by the text normally. This gets worse with more lines of text.
This is fixed by installing tailwind-scrollbar and adding scrollbar-none to the textarea.
Affected component/components
AutoresizeTextArea
How to reproduce

Add text area to page
Type a couple of lines
Notice how the height jumps early, before text reaching the next line, starting on line 2

Codesandbox/StackBlitz link
No response
Logs
No response
System Info
No response
Before submitting

[X] I've made research efforts and searched the documentation
[X] I've searched for existing issues

It could be fixed by setting offsetBorder to 6.
No additional config update makes it install easily.


Add ability to use User ID for LunaSea notifications

⚠⚠⚠ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:

[x] I have read and understand the pull request rules.

Description
Add the ability to use User ID for LunaSea notifications (Keeps all existing functionality).
Type of change
Please delete any options that are not relevant.

User interface (UI)
New feature (non-breaking change which adds functionality)

Checklist

[x] My code follows the style guidelines of this project
[x] I ran ESLint and other linters for modified files
[x] I have performed a self-review of my own code and tested it
[x] I have commented my code, particularly in hard-to-understand areas
(including JSDoc for methods)
[x] My changes generate no new warnings
[ ] My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)
Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.

The Device ID or User ID is empty for old setup notifications.

Although it is functional, but I feel those naming could be confusing for future development

For examples:

<label for="lunasea-device" class="form-label">{{ $t("LunaSea ID") }}, LunaSea ID is representing user id and device id, but it called lunasea-device in code
Is LunaSea ID really a good word? I just have a quick look of their doc, it seems that they never called it LunaSea ID

cc: @NiNiyas

I’m sure that we can default the dropdown to use “Device ID”
I do agree that using lunasea-device for both user id and device id doesn’t make sense but then we will incur a breaking change. If we want to incur a breaking change I can update it to be named more appropriately.
I chose LunaSea ID to represent the unique id given by LunaSea for the specific User or specific Device when grabbing the entire unique URL from the application, but we can change that naming if you would prefer.

I think a better design would be:

Dropdown:

Name: Target
Options device (Default), user
Field Name: notification.lunaseaTarget

Input:

Display Name: Device ID
Field Name: notification.lunaseaDevice
Show only if lunaseaTarget == device

Input:

Display Name: User ID
Field Name: notification.lunaseaUserID
Show only if lunaseaTarget == user

In this way, there will be no breaking changes and the variable names is more clear.

Preface, I am new to VueJs.
I'm having issues working with the Target Dropdown since the v-model for that is v-model="$parent.notification.lunaseaTarget" which if it is not populated (null) it will automatically create an empty option. I am not able to default the option to device since I have no way to reference that object since the v-model is null. Do you have any suggestions? Once I can get that figured out the rest should be straight forward for me.

You can add a script at the bottom and check it in the mounted()
Reference: https://github.com/louislam/uptime-kuma/blob/master/src/components/notifications/Gotify.vue


New package: OhMyThreads v0.2.2

Registering package: OhMyThreads
Repository: https://github.com/JuliaFolds2/OhMyThreads.jl
Created by: @MasonProtter
Version: v0.2.2
Commit: b745f4c847b06923ad71da49809c2cbb9d24525a
Reviewed by: @MasonProtter
Reference: https://github.com/JuliaFolds2/OhMyThreads.jl/commit/b745f4c847b06923ad71da49809c2cbb9d24525a#commitcomment-138084225

oops, didn't mean to double-register the package. Ignore this one.

Triple-register, actually. The first one was https://github.com/JuliaRegistries/General/pull/99756.

Closing in favor of the original registration https://github.com/JuliaRegistries/General/pull/99756


add comment about hardcoded IPs

HOLD:
variablize these IPs anyways, best practice and all.
Take out of draft status when done

merge and resume tasks tomorrow


Fix 1 parameter error

in the current master for Optim.jl, p is a number and not a vector when there is only 1 parameter. This causes an error any time one tries to use lmfit with 1 parameter. This fixes the error in the most straight-forward way.

I should have asked more questions before merging this. Can you give me an example use case that runs into this error?

I suspect that what was actually going on here was that we were calling result.minimum and not Optim.minizer(results). With fixes that have gone in since this, I think we will always get a Vector type back for p.

It was awhile ago, but it was from this code:
https://github.com/JuliaDiffEq/DiffEqParamEstim.jl/blob/master/src/DiffEqParamEstim.jl#L7
It was just when the number of parameters was 1 and p wasn't an array, it would error. But you may have fixed this another way since then?

I must be missing something, because that model function indexes p on line 12.

It must've been a size 1 vector that did it, because the line for my test which was failing was probably this (it's commented out, but that's because lm_fit diverges since the commits which changed how it deals with bounds which is the other issue. Before that release/change, it worked given that the indexing didn't error):
https://github.com/JuliaDiffEq/DiffEqParamEstim.jl/blob/master/test/runtests.jl#L39
So it sounds like your

I suspect that what was actually going on here was that we were calling result.minimum and not Optim.minizer(results). With fixes that have gone in since this, I think we will always get a Vector type back for p.

must've changed


Create new test

This is not yet robust and needs a few workarounds, but we could consider merging it and moving to the actual/expected results comparison in view of the CNAF demo?

This looks very nice! I have one suggestion though: in my opinion, all the tests in a test file should test maybe not the same scope, but at least scopes of the same Catala file (included or used as a dependent module). So for me, the filename input to the "new test" form should not be repeated for each new test in the file. Instead, it should be assumed new tests in a file already containing tests while test scopes of the same file as the tests already present. Does it make sense?

It does make sense, but the thing I had in mind would be to actually just pick symbols / scopes and let the project (clerk...) figure out the file ; so that's kind of a dummy workaround (also the fact that we need to put the filename relative to the cwd, this is totally clunky and won't work for real users). So yes! I can try to at least wire completion for the filenames, but I think we can have a UI that is nice to use without having to restraining users to testing scopes in a single module. What do you think? I'll let you decide!

OK, let's go for no restrictions for the users and let future selves implement the clever completions later :)

thanks!


Array.Copy() destination index of tx.length causes exception

https://github.com/swharden/FtdiSharp/blob/146cfb80db8a3280a8bbae866464d098c1075aa9/src/FtdiSharp/Protocols/SPI.cs#L172

Hi @sdunc, I don't understand this question.
Are you suggesting that line could be changed to improve behavior of this app?

Hey Scott, thanks for the quick reply. Sorry for lack of clarity.
Calling ReadWrite with tx.Length + tx.Length > shiftOut.Length leads to exception.
Minimal example:
byte[] ReadWrite(byte[] tx)
 {
     byte[] shiftOut = new byte[tx.Length + 3];
     shiftOut[0] =(byte)0x31;
     shiftOut[1] = (byte)tx.Length;
     shiftOut[2] = (byte)(tx.Length >> 8);
     Array.Copy(tx, 0, shiftOut, tx.Length, tx.Length);

     byte[] rx = new byte[tx.Length];

     return rx;
 }

 byte[] tx = [0x00, 0x00, 0x00, 0x00];

 ReadWrite(tx);

Am I missing something here?
Is the fix:
    Array.Copy(tx, 0, shiftOut, 3, tx.Length);

this method may have been inadequately tested

It actually was tested here, but by coincidence the transmission packet was 3 bytes long so it worked by accident in my benchtop tests 😅
https://github.com/swharden/FtdiSharp/blob/146cfb80db8a3280a8bbae866464d098c1075aa9/src/FtdiSharpDemo/SPI_MCP3008.cs#L36-L43

I can make that change and release a new version here in the next few minutes! I'm interested to hear if changing that value to 3 makes it work as expected for you and the gear you're working with.

I just pushed FtdiSharp 0.1.0 to NuGet. If you give it a go, I'd love to hear how it did in your hands! I don't have a test bench set up, so your feedback is really useful 😄
https://www.nuget.org/packages/FtdiSharp/0.1.0


AuthenticationType ignored

It seems like passing the option AuthenticationType is ignored and always results in "Bearer" being used.
I'm doing:
app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions()
{
    AuthenticationType = "Whatever",
    ...
});

Then, I change the filter for the WebAPI to:
config.Filters.Add(new HostAuthenticationFilter("Whatever"));

and change the request header to:
Authorize: Whatever <token_here>

But this doesn't work, always getting 401 back from the WebAPI. If I revert the filter and request header to "Bearer" (leaving the options.AuthenticationType set to Whatever), it works again.
Any idea what I might be doing wrong or isn't it supposed to work this way?

The authentication type is not related to the scheme name on the authorization header. It is just the name of the middleware.

Ok, that explains it. Thanks.


Object widgets fields is required even when the object widget itself is not required

Description
This happens to me sometimes, but not always. Based on some other behavior I observed with empty lists, my guess is that something triggers the object (don' know what, perhaps something to do with collapsing it) corresponding to the widget to be created. Once created, its fields cannot be left empty as the default for required is true, and thus the entry cannot be published.
Expected behaviour
If required: false and the object widget is left empty in the UI during creation, the entry should be created without raising the validation error toast and it should not contain the object (or at least an empty object).
Steps to reproduce
Here is what I'm working on: https://github.com/Skrubbadubba/static-cms-self-config. It's not a MRE for this particular bug, but it's minimal enough to be good for debugging. Clone it and run npm install && npm run dev && npx @staticcms/proxy-server.

Create a new entry for the "Collections" collection.
Enter a name and a label.
Inside the "files" list widget there should be one empty object. For that object, enter file name and label.
Publish the entry

These should be all the fields that do not have required: false
config.yml
I am not using yaml, but instead js and json. The relevant objects are in config/collections/metaCollection/collections.js, however the entire config object is console logged, it is probably easier to look through it there.
screenshot:

I'll update the docs to clarify this, but the object widget does not do any validation itself and actually ignored the required field. Validate is 100% controlled by the child widgets.
There does seem to be a bug here around the collapsed state, so I will address that here shortly. However getting required:f false to work as you want, that will require more work/time. Marking this as an enhancement.

There does seem to be a bug here around the collapsed state, so I will address that here shortly. However getting required:f false to work as you want (skip child widget validation), that will require more work/time. Marking this as an enhancement.

I did some testing here and it appears this is working as expected. Only issue I found was the collapsed prop not working 😅


Truth and Dare

PR Description 📜
Added Truth and Dare Game
Fixes #2758

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in main README.md
[x] I have added README.md in my folder
[x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

Thank you @whiteknight16 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Thank you  @whiteknight16 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀

Hey @whiteknight16,
You can't work on a closed issue 👀!
Follow the proper guideline and make a new PR again 😀.
Happy Hacking 💗


Status middleware

An attempt to fix #5

[x] Rename Handler to Modifier
[x] Refactor into own modifier module
[x] Add ability to add Modifiers
[x] Fix commit messages referring to wrong issues
[ ] Add Documentation

Also, maybe add documentation to the  modifiers module and the StatusHandler trait including usage examples?

We should probably merge this first, so that @rnestler doesn't have all the merging pain :)

OK I renamed the remaining items and moved the modifier module to top-level. I'll take care of the remaining items in the next few days.

Besides documentation I think this is now feature complete. @dbrgn care to review again?

LGTM! :rainbow:


feat: add aliases option

Replacing icons in big projects can be tedious and it's sometimes hard to remember which exact icon was used for a certain element. With the aliases option you can define your own names for icons and easily swap them out in your entire application.

Damn, that is a fantastic idea 😍
Thank you so much, and very sorry about my responsiveness, I missed this notification somehow.

Damn, that is a fantastic idea 😍
Thank you so much, and very sorry about my responsiveness, I missed this notification somehow.

No probs, GitHub notifications are a mess, should get better now with Volta ;)

Actually I saw it in Volta but was at the bottom (was off for 4 days, so had to catchup with 200+ notifications ahah)

Actually I saw it in Volta but was at the bottom (was off for 4 days, so had to catchup with 200+ notifications ahah)

uff!