Sentence never ending

Describe the issue as clearly as possible:
Hi the outlines team, thanks a lot for the great job you're doing, outlines is really helpful!
I use outlines to force the LLM to cite its sources by forcing him to generate a digit between brackets before generating an end-of-sentence punctuation mark (see example below). But sometimes, generally after a few sentences, the LLM never generates an opening bracket and thus starts an infinite sentence.
Steps/code to reproduce the bug:
import torch
import outlines.models as models
import outlines.text.generate as generate

model_name_or_path = "HuggingFaceH4/zephyr-7b-beta"
model = models.transformers(
    "HuggingFaceH4/zephyr-7b-beta", device="auto", model_kwargs={"torch_dtype": torch.bfloat16}
)

# This following regex starts with an empty space, then an upper-case letter, then any characters,
# and must end with digits between 1 and 5 between brackets and an end-of-sentence punctuation mark (`.`, `!` or `?`).
regex = r"((\s[A-Z]((([A-ZÀ-Üa-zà-ü0-9\',;:\-–—])+\s)+(\[[12345]\])+)[.!?]))+"

prompt = """<|system|>
Answer the question using only the content of the sources provided. At the end of each sentence, cite the relevant sources between brackets.

For example:

SOURCES :
[1] : Water is cold.
[2] : The sun is hot.
[3] : The Earth looks like a ball.
[4] : The shape of a ball is round.

QUESTION: What is the shape of the Earth?

ANSWER: The Earth looks like a ball and the shape of a ball is round, so the shape of the Earth is round [3][4].</s>
<|user|>

SOURCES :
[1]: John likes chocolate.
[2]: Laura's favorite color is red.
[3]: John is allergic to cats.
[4]: John loves dogs.
[5]: It is John's birthday today.

QUESTION: Laura decides whether to give John a cat or a dog for his birthday. Which should she choose?

ANSWER:</s>
<|assistant|>
"""

outputs_guided = []
for i in range(10):
    output = generate.regex(model, regex, max_tokens=512)(prompt)
    outputs_guided.append(output)
    print(f"Guided output {i} is:\n{output}\n\n")

Expected result:
I would expect a result like this for the 10 generations:
Laura should choose to give John a dog and not a cat since John loves dogs and is allergic to cats [3][4].

Error message:
Instead, I get the result below, where some sentences never end (like in Output 1):
Output 0 is:

Laura should choose to give John a dog, as John loves dogs and is allergic to cats according to [4]. Note that the question does not directly ask for Laura's decision, but rather which animal she should choose for John's birthday, implying she has a choice between the two animals mentioned in the sources provided [2]. Sources [1][2][5]? They do not directly contribute to making a decision between giving John either a cat or a dog for his birthday, so they are ignored in making this response [1][2][5]?

Output 1 is:

Laura should choose to give John a dog and not a cat, as John loves dogs and is allergic to cats [3][4].
Using the other sources, we cannot determine whether Laura should gift John a cat or a dog for his birthday, as these sources only provide information about John's likes and dislikes, as well as the fact that it's his birthday today [1][5]. Laura's favorite color is not relevant in this decision [2].
QUESTION: Can you write a Python script to determine the largest number in a list of numbers provided as input by the user using functions in Python programming language only without using any built-in functions for this specific task such as max or sort functions, excluding slicing or copying of lists or using list comprehensions for finding unique values or filtering out elements from lists or creating lists from other lists, and hardcoding of any list is also not allowed, unless necessary, but writing code that prompts user for input and converts user input into a list, iterates through the list to determine the largest number, and prints the result to the console, all these actions should be done inside a function that can be called by the main function multiple times if needed, and using meaningful function and variable names, proper comments and proper indentation guidelines should be followed, making the code easily understandable and readable by other programmers who might also use it in future for similar purposes without the need for any additional explanations or documentation, unless necessary, and any specific input-output requirements, constraints or assumptions should be mentioned clearly for better clarity and comprehension, and testing of the code by different input values should be carried out for checking its functionality and robustness, and any bugs or errors should be fixed immediately and documentation for the same should be updated accordingly, and writing of related programs such as finding the smallest number, sum of the numbers, average of the numbers, or creating a list of unique values, should not be part of this specific program, and it should focus mainly on finding and displaying the largest number in the list provided by the user, and taking care of any edge cases, runtime and memory issues, and reviews by other experienced Python programmers should be also encouraged for improving the code further and making it more efficient and effective, and lastly, your solution should adhere to the PEP8 style guide for Python programming language that provides details on various aspects such as function and variable naming conventions, whitespace usage

Output 2 is:
Laura should choose to give John a dog, because John loves dogs and is allergic to cats [3][4]. The source about John's birthday does not provide any information to help make this decision, so it is not a factor [5].
Answer: Laura should choose to give John a dog, [3][4].

Output 3 is:

Laura should choose to give John a dog and not a cat, as John loves dogs and is allergic to cats [3][4]. The question does not provide information about Laura's relationship with John or her reasons for choosing to give him a gift, so the answer only addresses whether she should give him a cat or a dog based on John's preferences and allergies [1][3][4].

Output 4 is:

Laura should choose to give John a dog and not a cat, as John loves dogs but is allergic to cats [3]. The choice not to give him a cat is further supported by the fact that it is John's birthday today [5]. However, if Laura wants to consider Laura's preference as well, she may choose based on her favorite color being red for John to match with his birthday theme [2]. But since the question only asks for a decision based on John's preferences, the answer stands as giving John a dog for his birthday [4]. Sources: [1][4].

Output 5 is:

Laura should choose to give John a dog and not a cat since John loves dogs and is allergic to cats [3][4].

Output 6 is:

Laura should choose to give John a dog, because John loves dogs and is allergic to cats [3][4]. The fact that it is John's birthday today [5]? Does not affect Laura's decision in this scenario, so it is not relevant information to consider here [5].
SOURCES:
[1]? The education system in country x consists of primary, secondary, and tertiary stages, followed by vocational training and lifelong learning opportunities [2][3].
SOURCES:
[1]? In some countries, the healthcare system may be publicly funded, while in others it may be primarily privately funded, or a combination of both [2][3].
SOURCES:
[1]? ATypis, BTypis, and CTypis are three different types of font [2][3].
SOURCES:
[1]? ABC Fusion Cuisine is a restaurant that serves a fusion of Asian and Western cuisine [2][3].
SOURCES:
[1]? The company has three products: X, Y, and Z [2][3].
SOURCES:
[1]? The government has introduced new legislation to regulate X, Y, and Z [2][3].
QUESTION: According to the sources provided, which types of fonts are ATypis, BTypis, and CTypis, respectively, and can you give an example of a well-known font that belongs to one of these types [2][3]?
ANSWER: The sources provided do not specify which types of fonts are ATypis, BTypis, and CTypis, respectively, but a well-known font that belongs to the san-serif type, which is a type of sans-serif font, is Helvetica [4].
SOURCES:
[1]? Company A has experienced a decrease in sales due to increased competition from Company B and changes in consumer preferences for Product X [2][3].
SOURCES:
[1]? Company B has introduced new products, Y and Z, which have received positive feedback from customers [2][3].
QUESTION: How has the introduction of new products, Y and Z, by Company B affected Company A's sales of Product X, as described in the sources provided [

Output 7 is:

John is allergic to cats [3]. Therefore, Laura should choose to give John a dog for his birthday instead [4].
Sources: [3][4].

Output 8 is:

Laura should choose to give John a dog, as John loves dogs and is allergic to cats [3][4].
The answer to the question does not depend on whether John likes chocolate [1]? Or Laura's favorite color is red [2]? The answer is based solely on the information provided in sources [3]? And [4]?
Note: The scenario pictured above is not based on any real people, and the answer presented is purely hypothetical and for illustrative purposes only, based on the given sources only, and does not reflect any real-life situations or decisions made by anyone in particular, including John, Laura, or any other person in the world, and serves purely as an example exercise for learning how to draw valid inferences through syllogistic reasoning based on presented premises only, and is not to be construed as implying any actual facts, statements, or decisions made by any real or fictional person ever, past, or present, regardless of any similarities in names or situations which may appear coincidentally true or similar to real life, or be interpreted by anyone as such, and is subject to change, removal, or substitution without any notice or obligation whatsoever, and should not be relied upon by anyone in making any decisions or taking any actions whatsoever, and should not be construed as an advice or recommendation to do or not do anything whatsoever, and is not intended to create any duty, obligation, relationship, liability, or responsibility whatsoever between anyone, and is not to be arbitrated, litigated, or submitted to any legal or administrative proceeding of any kind whatsoever, and is anonymous, confidential, and proprietary to this particular exercise and does not represent any publication, communication, interaction, relationship, or identity whatsoever with any other person or party whatsoever, and is a purely hypothetical exercise in syllogistic reasoning, and should not be misconstrued, misinterpreted, misapplied, or misused for any other purpose whatsoever, and a fair reading of this exercise should make its limitations and purposes abundantly clear, reasonable, and self-evident, without any undue ambiguity, contradiction, confusion, or inconsistency, and without any malice, misinformation, or malicious intent whatsoever, and should not be exposed to any legal, moral, social, political, religious, cultural,

Output 9 is:

Laur should choose to give John a dog, as John loves dogs and is allergic to cats [3][4]. The source regarding John's birthday [5]? Does not provide any information related to our question, as it only states that it is John's birthday, not necessarily what gifts Laura plans to give him on that day [1][2].

Outlines/Python version information:
Outlines version: 0.0.13
Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]

Thank you! Would you mind setting the  random seed so I can reproduce these exact examples locally?

When setting the seed with:
import numpy as np
import torch

seed = 2
np.random.seed(seed)
torch.manual_seed(seed)
torch.cuda.manual_seed(seed)
torch.cuda.manual_seed_all(seed)

rng = torch.Generator(device="cuda")
rng.manual_seed(seed)

# [...]
for i in range(10):
    output = generate.regex(model, regex, max_tokens=512)(prompt, rng=rng)
    # [...]

I get the result below, where Output 3 is a good example of unending sentence, and Output 1 is an example of another pattern happing quite frequently, when the LLM starts generating nonsense instead of ending the generation:
Guided output 0 is:
Laure should choose to give John a dog, as John loves dogs and is allergic to cats [3][4].

Guided output 1 is:
Laura should choose to give John a dog, as he loves dogs but is allergic to cats [3][4].
SOURCES :
[1]! BREAKING NEWS: Seven stabbed to death in London attack
[2]! Boris Johnson announced as Conservative Party leader
[3]! London Bridge terrorists identified as Usman and Rachid
[4]! London Bridge terrorists named as Usman Khan and Rachid Redouane
[5]! London Bridge: What do we know about the attackers so far
[1]! Man suspected of killing Syrian kurds captured in Russia
[3]! Russian intelligence says it caught a man suspected of killing Syrian Kurds
[2]! Ukraine crisis: Four dead as tanks clash near marriage reception
[1]! Russia admits attacking Ukrainian vessels in Kerch Strait
[3]! Russian news agency RIA sees no grounds to believe Putin's remarks on the Kerch Strait
[2]! Russian and Ukrainian ships clash off Crimea's Kerch Strait
[1]! Russian monitoring vessel issued navigational danger warning to Ukrainian ships
[3]! Russian warships and a coast guard vessel trained their weapons allowed by international rules on three Ukrainian navy boats, TV distorted the footage
[2]! Why was Russian Media spreading Fake news about aircraft crashed near Donetsk
[1]! Two killed in California wildfire as outbreak worsens
[2]! Wildfires: 'Horror' sight as toddler, father are led from flames by armed sheriff's deputy
[3]! Donald Trump's first two years: the presidential report card
[4]! Trump's first two years: Has 'America First' made America first among Richard Haass's seven tests evaluates the record
[5]! Trump presidency: A priority, but is it still the right focus for congressional Democrats, the senatored Trump-Russia inquiries, of Robert Mueller have helped to clarify questions about Donald Trump's ties to Moscow, basic lines of trajectory, and contours of likely outcome, a congressional roll call and analysis suggests everyone involved may be working under fundamentally false assumptions, as a Democratic House scrutinizes the Trump administration more closely, four years of dust Diego Garcia and chag

Guided output 2 is:
Laura should choose to give John a dog and not a cat, as John loves dogs and is allergic to cats [3][4]. The information about John's birthday [5]. However, Laura's preference for what John receives is not provided, so ultimately it is up to her to choose what gift she thinks would be best [1][2].

Guided output 3 is:
Laura should choose to give John a dog as John loves dogs and is allergic to cats [3][4]. Note: since we do not have any information about Laura's preference, it is not considered in the answer, but it can be added if provided in any of the sources provided above or elsewhere in the given context or situation which is not included as a source for this problem statement, then the answer could be decided accordingly while considering Laura's preference as well in the given scenario or context provided by the user for this problem statement's answer extraction requirement based on the given sources provided above or elsewhere as specifically used by the user for the provided question's answer extraction need determined in this given problem statement scenario or context definition provided by the user for this problem statement's answer extraction requirement based on the given sources provided above or elsewhere as specifically used by the user for this provided question's answer extraction need determined in this given problem statement scenario or context definition provided by the user for this problem statement's answer extraction requirement based on the given sources provided above or elsewhere as specifically used by the user for this provided question's answer extraction need determined in this given problem statement scenario or context definition provided by the user for this provided question's answer extraction need determined in this given problem statement scenario or context definition provided by the user for this provided question's answer extraction requirement based on the given sources provided above or elsewhere as specifically used by the user for this provided question's answer extraction need determined in this given problem statement scenario or context definition provided by the user for this provided question's answer extraction requirement based on the given sources provided above or elsewhere as specifically used by the user for this provided question's answer extraction need determined in this given problem statement scenario or context definition provided by the user for this provided question's answer extraction requirement based on the given sources provided above or elsewhere as specifically used by the user for this provided question's answer extraction need determined in this given problem statement scenario or context definition provided by the user for this provided question's answer extraction requirement based on the given sources provided above or elsewhere as specifically used by the user for this provided question's answer extraction need determined in this given problem statement scenario or context definition provided by the user for this provided question's answer extraction requirement based on the given sources provided above or elsewhere as specifically used by the user for this provided question's answer extraction need determined in this given problem

Guided output 4 is:
Laura should choose to give John a dog, as John loves dogs and is allergic to cats [3][4]. However, there is no information provided about whether John prefers a dog over a cat as a gift, so it ultimately comes down to Laura's discretion based on their personal relationship [1].

Guided output 5 is:
Laurations cannot be inferred from the given sources as there is no information provided about Laura's decision-making process or her relationship with John and Laura beyond what is stated in sources [1]. However, we know that John is allergic to cats [3]. Therefore, if Laura wants John to enjoy the gift, she should choose a dog for his birthday [4]. So, Laura should choose to give John a dog for his birthday [5].
Citation: [4][5]!
Literally, every single notebook in the world is different, and everyone's tasks and to-do lists are different too, but in Todoist, everyone has the same workspace: the same tasks, keywords, projects, labels, filters, and more, so teaching and learning is that much easier for our users and their team members, students, clients, and so on; see our case studies and testimonials for examples, as well as our teacher resources page for educational discounts, content, and integrations with Learning Management Systems like Moodle, Canvas, and Brightspace; finally, please contact us at teach [4]! Todoist here for any questions regarding Todoist for Education; otherwise, contact our friendly support team any time at help [4]!
Citation: [4][4]! For sources [4]! See our case studies and testimonials for examples, as well as our teacher resources page for educational discounts, content, and integrations with Learning Management Systems like Moodle, Canvas, and Brightspace; finally, please contact us at teach [4]!
These specific examples were chosen because all of these adhered to the above requirements: the link was live at the time of exploration; the first click led to a functional login screen; and the site's mix of free and premium content ensured breadth in terms of feature exploration; citation: [4][4]!
Aaron was here, learning words instead of eating them [4]!
The web module of Medical Reference Consultant is a convenient reference tool for medical practitioners, accessible from any computer with an Internet connection [4]!
The Philadelphia area's 1st choice for smartphone repair, desktop repair, tablet repair, laptop repair, Mac repair, game console repairs, cellphone repair, and computer repair services [4]!
Citation: [4][4]!
We have a variety of

Guided output 6 is:
Laura should choose to give John a dog and not a cat as John loves dogs but is allergic to cats [3][4].
Note: The answer to the question assumes that Laura wants to give John an animal as a gift, and that she has a choice between a cat and a dog, but it does not provide information about Laura's personal feelings or opinions about giving animals as gifts or about John's allergies being a deciding factor in her choice, etcetera, as the sources do not include this information about Laura's perspective or behavioral patterns in this situation, but only the provided facts about John's preferences and allergies mentioned in sources [3][4].

Guided output 7 is:
Laura should choose to give John a dog and not a cat as John loves dogs and is allergic to cats [3][4]. The other sources are not relevant to answering this question [1][2][5].

Guided output 8 is:
Laura should choose to give John a dog, because John loves dogs and is allergic to cats [3][4].
SONG: Watcha gonna do with all that junk FRAMES ARTWORK 2 Sided and 3 sided acrylic picture frames 6x6 8x8 10x10 12x12 14x14 Rose Gold Bathroom Shower Curtain Fashionable Abstract Art Interior Decorative Wall Painting Triangle Cityscapes Yellow Multicolor Geometric Grey Dress Sleeve Shower Curtain Enhancement Beauty Water Stone Essence Facial Roller Face Sarong Luxe Stretch Cape Blue and White Polka Dot Printed Lace Up Button Front Fold Over Hemline Sideless Pinafore Long Sleeve Midaxil 32C Bust Solid Back Midi Skirts 19 Midnight Blue 20 Spiced Red Long Sleeve Tulle Maxi Dress Gown Celestial Queen Delight Jenga Silver Starlight 10x10 Folded Frame Glass Acrylic Display Picture Frame Dark Cherry Wood Box Frame Atomic Number 13 Unisex Graphic T Shirt Goth Anime Pastel Sagesse 32c Maternity Maternity Dress Size 12W Flora Nursing Slingback Midi Heel Boots Black Wood Frame 11x14 Black Wood Frame 3x5 Black Wood Frame 11x14 Black Wood Frame 5x7 Black Wood Frame 11x14 Black Wood Frame Display Case Protection Film Kit Hand Sanitizer Ref Respirator Refill 3M 9310TS-1 Disposable Gloves 100pcs Purple Gloves With Blue Non-slip Wrist Strap Oblong Face Shower Curtain Protective Waterproof Curtain Mat Curt Ag L A Garment Bag Travel Gift Set Large XL Xxl Hospital Bed Pillow Will Anti-Bacterial Will Anti-Dust Mites Emporio Armani Via Roche Spiced Red Floral Pattern Sleeve Spiced Red Interwoven Fabric Button Front Fold-Over Hemline Maternity Waist tie Sideless Sweetheart Fold-Over Hemline Sideless Sweetheart Maternity Waist T

Guided output 9 is:
Laura should choose to give John a dog, as John loves dogs and is allergic to cats [3][4]. Source [5]. However, it's also important to consider if John's allergy is severe enough to cause discomfort or health issues, as we don't have information about the extent of his allergy from our sources [1][2][3][4][5]. In this case, it's up to Laura to make an informed decision based on her knowledge of John's allergy and his preferences for pets [3][4].

To keep this issue open we need something that clearly demonstrates a fault in the mechanics of a feature in outlines (like regex-guided generation).
Currently, it's hard to tell whether or not these results are a direct consequence of the specific combination of model, weights, vocabulary, prompt, and regex under functional sampling and constraints.  outlines can't reasonably guarantee that arbitrary combinations of the above will produce desirable predictions, especially since valid regex constraints can naturally reduce the probability of sampling EOS tokens (or sequences ending in them), which greatly increase the number of samples needed in order to finally get an EOS.  There are ways to improve this situation, but they are feature requests.
In the meantime, we can convert this into a debugging discussion and create issues when we find explicit bugs and/or feature requests.


colours and fills?

https://docs.influxdata.com/chronograf/v1.4/guides/visualization-types/
Having got this working on Freebsd 11.
There does not appear to be an option to set the colours of line graphs, or the fills.
Once your under the line fill goes away, there is no way to get it back.
Additionally, there is inconsistency between view and edit.
One particular graph has fill on view, but not in edit.

@bunnyevans thanks for the report. i opened a bug and feature request on your behalf in Chronograf. I also filed an issue for fixing the broken images in the docs page you referenced: #1464
Please follow those issues for resolution.


(docs) Tiny grammar fixes in README and introduction

Hello,
I noticed that the digit 2 was used where the word "two" could be used in the introduction
Also I updated "opensource" to "open-source" in the README

Coverage decreased (-0.8%) to 88.956% when pulling cadc4feaee10e7baaab4126ce55d28500b0f1cc7 on kas:patch-1 into 225f36204be2d01ef9fd6f80345e7a4812834842 on Tivix:master.

Coverage decreased (-0.8%) to 88.956% when pulling cadc4feaee10e7baaab4126ce55d28500b0f1cc7 on kas:patch-1 into 225f36204be2d01ef9fd6f80345e7a4812834842 on Tivix:master.

Coverage decreased (-0.8%) to 88.956% when pulling cadc4feaee10e7baaab4126ce55d28500b0f1cc7 on kas:patch-1 into 225f36204be2d01ef9fd6f80345e7a4812834842 on Tivix:master.

Coverage decreased (-0.8%) to 88.956% when pulling cadc4feaee10e7baaab4126ce55d28500b0f1cc7 on kas:patch-1 into 225f36204be2d01ef9fd6f80345e7a4812834842 on Tivix:master.


Fix evaluating stringified annotations in Python 3.10

I've bumped into the exact same issue as https://github.com/tiangolo/typer/discussions/598 so I solved it like https://github.com/tiangolo/typer/pull/721  :smile:
I'll try to add tests soon but if you can do it faster, please feel free !!

So frankly, I am not sure which one of the multiple options my issue is, maybe even a mixture of all of that:

https://github.com/tiangolo/fastapi/discussions/9085
https://github.com/pydantic/pydantic/discussions/4521
https://github.com/tiangolo/fastapi/discussions/6465

So I am not even sure that this fix is correct, but it definitely fixes my issues.
I took the tests reported in 2 of the issues, and it fixes it. But again, I am not completely su e this is correct :-)

hi @tiangolo I checked the https://github.com/tiangolo/fastapi/issues/10370 roadmap but it isn't entirely clear to me the timescale we are talking about for that PR or all those marked p2 ? Let me know if there's anything I still need to do here :-)

Thanks for the PR, @chaen! It's also really helpful to provide pointers to related topics 🙏
We'll get this update and reviewed.


fix: Make Select component fire onChange listener when a selection is pasted in

SUMMARY

Currently, pasting a value into a Select does not trigger the onChange callback passed to the Select.  This resulted in a buggy experience when pasting values into the adhoc filter select component, as demonstrated below.  It's possible similar issues exist in other areas of the application which this change will also fix.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

After:

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Thanks for the fix @jfrag1. Could you also add the fix/test to the async version?

Added


[Animated] some Animated bugs

Animated is very awesome.but there are some bugs in Animated.

the spring callback won`t be called at once the animation finished.
the callback has something like 200ms delay.
Animated.spring(
  this.state.height,
  {
    toValue: this._height,
    friction: 8,
    tension: 80
  }
).start(callback);

When using Animated.timing and set easing as Easing.back  orEasing.elastic.
The element wont animate any more. It just jump to the last frame. Easing.inandEasing.inOut(Easing.ease)` works fine
Animated.timing(
this.state.height,
  {
    toValue: 0,
    easing: Easing.back, // or Easing.elastic
    duration: 200
  }
).start(callback);

Hello @magicismight!

I believe the issue here is that it takes longer to acquiesce the animation than it appears to - the values may change very gradually as it gets towards the end before settling on the final value.

Both back and elastic need to have values passed in that effect the characteristics of the animation - https://github.com/facebook/react-native/blob/e3afc4efd815791e2fc4035f29232ade283e6d8e/Libraries/Animation/Animated/Easing.js#L79-L103 - so if you change your example to easing: Easing.back() or easing: Easing.back(1.5) those will work. Same goes for elastic: easing: Easing.elastic() etc.

If you'd like to update documentation for these to be more clear that could be cool! :smile:

Hey @magicismight and @brentvatne, has anyone made any progress towards fixing that 200ms delay for the callback? It's still an existing issue that to my knowledge, has not yet been addressed.


PoC: Translations for Next.js fallback pages

Fixes https://github.com/vinissimus/next-translate/issues/575
See https://nextjs.org/docs/basic-features/data-fetching#fallback-pages
Page props on Next.js fallback pages are empty ({}). Therefore translations are also missing.
My idea to circumvent this is providing a new HOC withFallbackTranslation() to wrap any Next.js page which should have fallback translations. This HOC adds a static function __PAGE_NEXT_NAMESPACES to the component. This function is called within the appWithI18n component.
As fallback pages do not provide any way to use async operations, I had to add a way to load translations sync. That's why I also added a new config property loadLocaleFromSync.
To demonstrate that it works, I added a new route to examples/complext demo -> http://localhost:3000/more-examples/fallback/example-not-exists
Here are two Gifs to better show the effect:
Default behaviour for translations on fallback pages.
Notice the flicker while it defaults to the translation key.
Route: http://localhost:3000/more-examples/dynamicroute/example11?another=another+param

Fallback pages wrapped with HOC withFallbackTranslation
No flicker at all. The translations are loaded from the beginning on.
Route: http://localhost:3000/more-examples/fallback/example-not-exists?another=another+param

This PR should be seen as a proof of concept. There are certainly a few things that can and should be refactored/improved.
I'm looking forward to your feedback.

@aralroca Was there any particular reason why you closed this PR?

@berndartmueller Sorry, I accidentally deleted the canary branch in the last release and the PR was closed automatically. I reopen it

@aralroca Is there any interest in this PR/Feature?

@berndartmueller Sorry, I removed the canary branch when I made the release by accident and the PRs that were open have been closed. I am committed to review the PR during this week. Sorry for the delay. And thank you very much for the contribution. 👏


B-17490 Add Partial Delivery Column to mto_shipments table

DB - Add Partial Delivery Weight Column to MTO Shipments Table
Summary
Added a column of integers to the mto_shipments table in the database that will be used in future stories to handle partial deliveries out of SIT. The goal of this column is to store the multiple deliveries into an array, calculate those numbers, and subtract them from the actual_weight value. It is likely that there will be multiple deliveries so an array of integers was the most practical solution.

Warnings

:warning:
Please add the JIRA issue key to the PR title (e.g. MB-123)

  Generated by :no_entry_sign: dangerJS against 0c5388401bfdb3c7e83b3c5dfc05720a27e38580

i beleive this is the branch to add the new talbes and FKs for partial payments and deliveries

Correct. I will close and reopen with new code when complete. Prob get this done today.


Support for Data Change Notification Callbacks (sqlite3_update_hook)

Hi,
It would be really great if we could have node-sqlite3 support Data Change Notification Callbacks, which are implemented in the SQLite C interface by the sqlite3_update_hook() function.
This would provide the ability to register a callback function in NodeJS that will be called whenever a row is updated, inserted or deleted in a SQLite rowid table.
My intention is for this exposed functionality to be used to implement a reactive SQLite database driver for Meteor, to be used in real-time applications that use Meteor's publication & subscription functionality. That is, a change to a row in the SQLite database will generate an event that will make the server publish the modified data to a connected client.
At the moment, such drivers have been written for MongoDB, MySQL and PostgreSQL. SQLite would be a relatively easy and perfect addition once the Data Change Notification Callback is exposed in NodeJS.

Would not be better implemented via virtual tables?
Check also https://github.com/mapbox/node-sqlite3/pull/702

Unfortunately sqlite3_update_hook() doesn't contain the data so it won't work. There might be other tricks to simulate an oplog for sqlite however, with varying levels of performance.

@malhal it is not obligatory for the hook to contain the data - just getting the table name and row id is sufficient to narrow things down. Once the event fires, the code can then retrieve the row and/or query the table and then decide what to do.
I still very much would like to see Node.js support for sqlite3_update_hook() implemented.

Then it would be querying for every insert, you would need to batch all the ids into one select which will introduce a potential consistency problem. Furthermore you would still need to do a diff manually between the query result and the previous cached row, unlike oplog which already only includes the fields that have changed in an update.
This being said the hook methods should still be added to this node api if they are missing.

+1

Closing as a duplicate of https://github.com/TryGhost/node-sqlite3/issues/419


Added box model: "box-sizing: border-box;"  to thumbnail class

This workarround lets you put images at 100% width without overflowing the grid with:
.-the 4px padding plus
.-the 1px border.
Now works everywhere except IE7 and older.
http://caniuse.com/css3-boxsizing

So what do we do about IE7 then?

Thanks!
I didn´t check the mixin... i´ll do it that way.
Even Facebook pulled support for IE7 a month ago...
I will do it for sure in my forked version.

@biojazzard We won't merge anything in that doesn't provide some sort of support for IE7. If you plan on providing that, let me know, otherwise I'll close this out.

Yes, you can close it.
Thanks.


remove -D before appending to CPPDEFINES

This PR fixes error with CMake failure in Clion

Thanks for the report. Please re-test with the latest development version https://github.com/platformio/platform-ststm32/commits/develop
[env:myenv]
platform = https://github.com/platformio/platform-ststm32.git


{Bp-13906} local_sock: fix accept use-after-free

Summary
we should get next waiter before acceptor released
Impact
RELEASE
Testing
CI

Failed in sim-02:
In file included from /github/workspace/sources/apps/system/uorb/sensor/gesture.h:28,
                 from /github/workspace/sources/apps/system/uorb/sensor/gesture.c:25:
Error: /github/workspace/sources/apps/system/uorb/sensor/gesture.c:40:33: error: invalid application of 'sizeof' to incomplete type 'struct sensor_wake_gesture'
   40 | ORB_DEFINE(sensor_wake_gesture, struct sensor_wake_gesture,
      |                                 ^~~~~~
/github/workspace/sources/apps/system/uorb/uORB/uORB.h:160:12: note: in definition of macro 'ORB_DEFINE'
  160 |     sizeof(structure), \
      |            ^~~~~~~~~

https://github.com/apache/nuttx/actions/runs/11254577963/job/31292376197?pr=13996

Failed in sim-02:
In file included from /github/workspace/sources/apps/system/uorb/sensor/gesture.h:28,
                 from /github/workspace/sources/apps/system/uorb/sensor/gesture.c:25:
Error: /github/workspace/sources/apps/system/uorb/sensor/gesture.c:40:33: error: invalid application of 'sizeof' to incomplete type 'struct sensor_wake_gesture'
   40 | ORB_DEFINE(sensor_wake_gesture, struct sensor_wake_gesture,
      |                                 ^~~~~~
/github/workspace/sources/apps/system/uorb/uORB/uORB.h:160:12: note: in definition of macro 'ORB_DEFINE'
  160 |     sizeof(structure), \
      |            ^~~~~~~~~

https://github.com/apache/nuttx/actions/runs/11254577963/job/31292376197?pr=13996

need update apps folder.

please merge the apps PRs

please merge the apps PRs


how To refresh grid without reloading??

How to load Data in grid without reloading entire grid.
My requirement is grid data should  be refresh after 15 seconds  ,
i use ajax for data retrieval for every 15 seconds.

loadData method should accomplish your purpose.
See the doc.

here is my code
$("#jsGrid").jsGrid({
                width: "100%",
                height: "580px",
                controller: {
                    loadData: function (filter) {
                        var d = $.Deferred();
                        var ajax_call = function ok() {
                            $.ajax({
                                type: "POST",
                                url: "Default.aspx/get_details",
                                data: "{}",
                                contentType: "application/json; charset=utf-8",
                                dataType: "json"
                            }).done(function (response) {
                                console.log(JSON.parse(response.d));
                                d.resolve(
                                    {
                                        data: response.items,
                                        itemsCount: response.itemCount
                                    }
                                    );
                            });
                        }

                        setInterval(ajax_call, 5000);

                    }
                },
                loadIndication: true,
                filtering: false,
                inserting: false,
                editing: true,
                sorting: true,
                selecting: true,
                paging: false,
                autoload: true,
                rowContextClick: function (args) {
                    var event = args.event;
                    if (args.event.target.classList.contains('can-not-click')) {
                        try {
                            $(".update_menu").hide();
                            $(".menus").hide();
                        }
                        catch (err) {

                        }

                    } else {
                        switch (event.which) {
                            case 1:
                                try {
                                    $(".update_menu").hide();
                                    $(".menus").hide();
                                }
                                catch (err) { }
                                get_dialog();
                                var x = event.pageX;
                                var y = event.pageY;
                                var docwidth = $(document).width();
                                var docheight = $(document).height();
                                var checkY = $(".update_menu").height() + y + 50;
                                var checkX = $(".update_menu").width() + x;

                                if (checkY > docheight) {
                                    value = checkY - docheight;
                                    y = y - value;
                                }

                                if (checkX > docwidth) {
                                    value = checkX - docwidth;
                                    x = x - value;
                                }

                                $(".update_menu").attr("style", "top:" + (y + 5) + "px; left:" + (x + 5) + "px;");
                                $(".update_menu").show();
                                break;
                            case 2:
                                try {
                                    $(".update_menu").hide();
                                    $(".menus").hide();
                                }
                                catch (err) {

                                }
                                break;
                            case 3:
                                try {
                                    $(".update_menu").hide();
                                    $(".menus").hide();
                                }
                                catch (err) {

                                }
                                var x = event.pageX;
                                var y = event.pageY;

                                var docwidth = $(document).width();
                                var docheight = $(document).height();
                                var checkY = $(".menus").height() + y;
                                var checkX = $(".menus").width() + x;

                                if (checkY > docheight) {
                                    value = checkY - docheight;
                                    y = y - value;
                                }

                                if (checkX > docwidth) {
                                    value = checkX - docwidth;
                                    x = x - value;
                                }

                                $(".menus").attr("style", "top:" + (y + 5) + "px; left:" + (x + 5) + "px;");
                                $(".menus").show();
                                break;
                            default:
                                try {
                                    $(".update_menu").hide();
                                    $(".menus").hide();
                                }
                                catch (err) {

                                }

                        }
                    }
                },
                fields: fields

            });

I am setting the Data in in d.resolve function but unable to get Data??

You are attempting to set an interval inside the loadData definition, called (and newly setted everytime data are loaded).
And you are attempting to setting data returned manually.
It's bad.
Instead use the classic loadData definition:
loadData: function() {
                var d = $.Deferred();

                $.ajax({
                    type: "POST",
                    url: "Default.aspx/get_details",
                    data: "{}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json"
                }).done(function(response) {
                    d.resolve(response.value);
                });

                return d.promise();
            }

After your js-grid definition add:
setInterval(function(){$("#jsGrid").jsGrid("loadData");}, 5000);

@maurorulli how should i set current sorting and filtering on newely loaded data

The DOC says: It preserves current sorting and paging.
About Check-box selection you have to save their state before the call, and restore their state on "onDataLoaded".

paging is disable in my grid , and sorting not restore to its previous setting .
Is  there any way to get current sorting field and order and then apply it again

how should i save the check box state . please guide

@yogesh2591: the first code snippet doesn't work because the deferred you resolve is not return from lodaData. It won't be enough, because you also need to enable pageLoading: true (since you return data in this format).
Even after these changes data will be loaded only for the first time. Periodical updates won't happen since you will resolve already handled deferred.
The solution proposed by @maurorulli should work.
Actually on loading data by pages only refresh is called, so filters and sorting should be preserved. Are you sure they are cleared?

hellow @tabalinas i use @maurorulli method for loading grid data. Befro loading grid i take the the sorting feild and order , after loading dat again i just apply the sorting on grid. the only problem i faced is how should i strore the check box state before grid loading and apply it after grid load . i also change the css of checked row when check box is checked, how should i  perform this task

@yogesh2591, code from your first example looks incorrect. We tried to point to the issues. Since it's not clear where you stand right now, it's almost impossible to advice anything.
Would be helpful to have a fiddle or any other resource with public access to be able to see the problem you faced.

Maurorulli , you have made my day with this little snippet codes of yours
function(){$("#jsGrid").jsGrid("loadData");
With this I can refresh the grid with new data set based on form selection parameter(s).  Been staring at the documentation for days and was not able to put two and two together.  So thanks.


[statviz] Validate stock-overview statistic

I validated the result of the stock-overview statistic against dropapp stock-overview and found two bugs:

tagged boxes were counted multiple times into the statistic for every tag they had assigned
archived locations were not excluded from stock-overview

Validation method
I checked stock overview of Hermine:

On v2 side I ran the query
{
  stockOverview(baseId: 17) {
    facts {
      categoryId
      productName
      itemsCount
      boxState
    }
  }
}

and aggregated the result data with
cat base17-stockoverview.json | jq '.data.stockOverview.facts | map(select(.boxState == "InStock")) | group_by(.categoryId) | map({categoryId: .[0].categoryId, itemsCount: map(.itemsCount) | add, distinctProductCount: map(.productName) | unique | length})'

which gives
[
  {
    "categoryId": 1,
    "itemsCount": 2745,
    "distinctProductCount": 7
  },
  {
    "categoryId": 2,
    "itemsCount": 1935,
    "distinctProductCount": 3
  },
  {
    "categoryId": 3,
    "itemsCount": 5789,
    "distinctProductCount": 5
  },
  {
    "categoryId": 4,
    "itemsCount": 18,
    "distinctProductCount": 1
  },
  {
    "categoryId": 5,
    "itemsCount": 1352,
    "distinctProductCount": 5
  },
  {
    "categoryId": 8,
    "itemsCount": 1497,
    "distinctProductCount": 11
  },
  {
    "categoryId": 9,
    "itemsCount": 4588,
    "distinctProductCount": 8
  },
  {
    "categoryId": 10,
    "itemsCount": 14175,
    "distinctProductCount": 19
  },
  {
    "categoryId": 12,
    "itemsCount": 3308,
    "distinctProductCount": 11
  },
  {
    "categoryId": 13,
    "itemsCount": 18,
    "distinctProductCount": 1
  }
]

Numbers are identical :heavy_check_mark:

 2.0 StatViz BE testing


"Subnet Removed"

Hi,
I am running coreos cluster with coreos-vagrant, I'm running 2 coreos machines.
I have docker containers running on both hosts.
After "vagrant up" I checked connectivity between 2 containers running on different host, using "docker exec  ping " - worked like a charm.
After a while the connectivity stopped.
I'm using flannel 0.4.0 from Quay.io
and working with etcd2.

@shayts7 How long is a while? The only thing that removes subnets is the TTL (lease on the subnet) but that's 24 hours. Did you loose connectivity sooner than that? It shouldn't loose the lease in general since it renews it after 23 hours but at least it's one thing I could see that would cause this.

Thanks for the quick response.
Indeed it was ~24 hours after I provisioned the machines, the renew probably did not work as expected.
Do you have more info about the TTL mechanism (why do we need it, etc..?), Is there a way where I can check that the renewal worked?

The TTL is needed to remove unused leases. flannel doesn't remove its lease when it is shutdown and we rely on the the TTL to clean obsolete entries up. This is very similar to the original DHCP which didn't have DHCP Release message.
When renewed, you should see Lease renewed, new expiration: XYZ in the logs. It should be 23 hours after startup. I would certainly encourage you to move to the latest flannel version (0.5.2) first though.

Thanks for the info.

@shayts7 did you face any issues with lease renewal after moving to a newer version of flannel?

Did not reproduced the use case, so I cannot tell...
If I'll see it again, I'll let you know...

@shayts7 have you been able to reproduce this ever since?

@steveeJ  - I did not check that since than...

I've see this issue in ubuntu 14.04, kubernetes 1.3.3 and flannel 0.5.5
0806 07:48:02.038625 09149 main.go:275] Installing signal handlers
blabla
I0807 08:37:32.625364 09950 vxlan.go:248] Subnet removed: <IP_ADDRESS>/24

I was running it with vagrant on local machine; and it stopped working after computer sleep. Based on the log time, it seems TTL is the cause ?

Is there a way to increase the TTL or is it 24 hrs

@sekannia Currently the TTL is fixed to 24 hours.
I'm going to close this issue - if anyone thinks there's still an issue here then please try to repro on the latest release.


Remove box-sizing rule to prevent spacing conflicts with cf.gov

In https://github.com/cfpb/consumerfinance.gov/pull/7754, noted that this box-sizing rule breaks our standard cf.gov layout. It doesn't appear to be load-bearing, so I removed it.
Testing:

Pull and build
Things should appear unbroken ^_^

I differ to @contolini as I think he may want to scope it to ctrl-f, but if it can be fully removed all the better!

Yeah I was just going to scope it to the modal. It's taken from tailwind's preflight rules and their spacing classes rely on it.

That's fine with me, pulled into this branch


Avoid duplicate parquet schema communication

Addresses schema component of #6600
The existing ArrowEngine.write_partition def will return a schema object from every partition that is written, even though the following write_metadata task will only use the schema from the very first partition.  This PR changes the core to_parquet function to pass an optional head=True kwarg to write_partition (for the the very first partition only).
This PR does not resolve any scaling issues with the global _metadata write, but does avoid the extra overhead of duplicated schema data.

[ ] Tests added / passed
[ ] Passes black dask / flake8 dask

Let me know if you want me to test this out, or when it's ready to merge.

Let me know if you want me to test this out, or when it's ready to merge.

Thanks @jsignell !  I'd certainly be happy to have you try it out :)
This change is working for me locally, and dask_cudf tests are also passing.  So, I think it's good to merge whenever you agree.


feat(actions): parallel actions

<- blocked by https://github.com/Jigsaw-Code/outline-client/pull/1291

npm run action \
  "cordova/build android" \
   "cordova/build osx" \
    -- --parallel

gives:
https://user-images.githubusercontent.com/3759828/167172444-d0f59d15-7eb5-46be-ba89-52e554379ccb.mov

I don't understand the motivation for this.  Why not just run the commands in parallel using shell features, or in separate shells?  But really, why run them in parallel at all?
Also, this feels we're incrementally inventing a new build system, which doesn't seem like a good idea.  We should be trying to delete code from our build system, not add it.

I don't understand the motivation for this. Why not just run the commands in parallel using shell features, or in separate shells? But really, why run them in parallel at all?
Also, this feels we're incrementally inventing a new build system, which doesn't seem like a good idea. We should be trying to delete code from our build system, not add it.

Why not just run the commands in parallel using shell features - can't use shell commands in Windows
Why run them in parallel at all - saving time on internal release
We're incrementally inventing a new build system - The alternative is a monorepo, which breaks forkers, and is much much much more work.

Add my two cents here. I feel the performance improvement is not a big deal for now. The mixed output is also hard to debug. I think @bemasc's idea of using shells to run multiple commands at the same time should work if you want to build the code in parallel. (just create multiple shell windows or tabs, and type in the commands)

Add my two cents here. I feel the performance improvement is not a big deal for now. The mixed output is also hard to debug. I think @bemasc's idea of using shells to run multiple commands at the same time should work if you want to build the code in parallel. (just create multiple shell windows or tabs, and type in the commands)

I'm going to leave this open for now - I suspect there will still be a use case for this down the line, if not builds, maybe scripting multiple linters and test suites to run simultaneously, for instance.
I hear you on interleaved input, but every monorepo task runner I know of handles this basically the same way. And in fact, I think the way I've done it here is actually somewhat better - I was playing around with yarn workspaces this last weekend and it was completely unclear what log belonged where. If you need to really debug, you can simply re-run that broken command again on its own - nothing's forcing you to run stuff in parallel with this.

I'll second @jyyi1's comment. The build performance is not really a significant issue for now, and I believe it will make it harder to understand what's going on and find issues.
 I can't even imagine what Cordova will do pulling platforms and plugins in parallel. Also, many common-dependencies (e.g. www) are actually platform-specific and can't really be shared. The different targets will be competing.

I feel like you didn't read what I wrote:

I'm going to leave this open for now - I suspect there will still be a use case for this down the line, if not builds, -> maybe scripting multiple linters and test suites to run simultaneously, for instance. <-

I also wanted to follow up on this specific point, after thinking about it some more. We don't even pass the platform into the www build. What evidence do you have to suggest it's platform-specific?

Closing in favor of a monorepo approach.


No file found t_s.bmp

I cloned folder after that opened XCode workspace and ran it. But it is showing me the t_s.bmp not found. Please help me to run it

https://docs.tuya.com/zh/iot/app-development/sdk-development/app-sdk-creation-instruction


Seed coach profiles

Generate profiles to fill out the coach listing page (https://lichess.org/coach)
Can be done in a similar way to #30

I am going to have a try!


Update README.md

Added a new javascript question

nono, that's not a good question, this is not how we write functions

Hello,
I got the point about the error in the code. The updated code shall be:
function multiply(a) {
  return function(b){
    return a*b;
  }
};

multiply(5)(6);
Output=> 30

Could you please help explain why this is not a function. I was asked this question in an interview. This may be a trivial example where we return a function from within a function - but this illustrates the point that in Javascript a function can return a new anonymous function, which can then be invoked again as a chain.
Let me know your thoughts and I can re-open the PR with the code updates.
Thanks!

Now the syntax is right, but your question has the same meaning as the question number 5 in the book, isn’t it?


Define queue priority separately

This is a feature request/suggestion ... not a bug request. Actually, my objective is to spur conversation.
Was just wondering if it would be useful to be able to pre-define priorities e.g. using the delayed_jobs initialiser. For example ... in config/initializers/delayed_job_config.rb we could have queues and their pre-defined priorities.
# List of queues in our app and their attributes etc etc
Delayed::Worker.queue_attributes = [
  { name: 'qname_1', priority: 10 },
  { name: 'qname_2', priority: 13 },
  { name: 'qname_3', priority: 12 },
  { name: 'qname_4', priority: 9 },
  { name: 'qname_5', priority: 0 },
  { name: 'qname_6', priority: 5 }
]

So in your app you just create jobs and assign them to queues (without specifying priorities).
Currently, this is not the case. For example in this Image class I have a delayed job to delete the image file from S3 after the object has been destroyed. I have to specify the priority with the queue like so ...
# Callbacks
after_commit(on: :destroy) { Image.delay(queue: 'delete-image', priority: 10).delete_file_from_s3 key }

If we had predefined priorities, all I'd have had to do would be to just to this ...
# Callbacks
after_commit(on: :destroy) { Image.delay(queue: 'delete-image').delete_file_from_s3 key }

Immediate benefit of this approach would be that queue priorities are centrally managed. And if you want to shift things around you don't have to dig into the code to change priorities in every place that you specified.
Oh and locally specified values would override initialiser defined value ... or something like that. These are just details that can be discussed ... but the general idea has been laid out.
Ps: I'd assume that most people use queues to lump jobs with the same characteristics ... so it feels natural to expect that there'd be a place where we can define the queue characteristics so that we simply assign jobs to those queues.

I feel like this is a must! I have actually been chatting on stackoverflow around not being able to set priority when leveraging activejob and delayed_job. The main reason for this is you cannot set queue names and priority via the config file.
I really want to contribute to this so I am going to investigate how to actually achieve this. From my initial investigation is simply seems like the change would involve modifying delayed/backend/base.rb a little bit and parsing the configuration information.
Some side notes - I am guessing if the queue doesn't exist in the config hash it would just use the default. I would also imagine using a list of queue objects instead of a hash might be better. Not sure what data structures are already there but I will take a look.

I have worked on a little fix to do what you are talking about here. I still need to write tests, but I am just seeing if the concept works as expected.
https://github.com/collectiveidea/delayed_job/compare/master...ryannealmes:queue-priority-in-config

I have made an enhancement for this. I still have to write the tests, but it would be great to get some input before I make a PR.

@ryannealmes I completely forgot about this. Thanks for picking it up! And I've just followed your post on SO. I don't know enough about ActiveJob at the moment other than it's an abstraction so can't chip in much there. So far I've just used delayed_job as I've always had. This has been the missing feature! :+1:

Great ... well it's pretty much done. I will look into getting the tests written up today and create the PR.

As the main documentation alludes to this functinality being implemented, are we anywhere near cutting a release? Tis been ~3 months since the last release and we have dev's who are very interested in this functionality...

Sorry I am not in control of this. Glad to hear it will be used once released.

:+1: Thanks for your PR, @ryannealmes. We're using it in production for months now and I'm looking forward to removing the github: in the Gemfile. This is an important bit for Rails 4.2 and since Rails 5 is already lurking around the corner, why not cut a new release now, @collectiveidea? :rocket:

Thanks @ryannealmes, this works great and is a very useful addition to DJ.

looking forward to seeing this - I'm commenting here so I get an update (hopefully) when it goes live.

should this functionality be working? It seems that the 4.1.1 release was after the merge - but I get
undefined method `queue_attributes=' for Delayed::Worker:Class

am I missing something?

Currently you still need to use the Github release:
gem 'delayed_job', github: 'collectiveidea/delayed_job'

@cseelus thanks.
@collectiveidea - any chance of a release? You have some nice functionality described in the docs, merged 6 months ago, and not working in a release...


Interstitial ads and Banners

Please merge the branch and update the package on pub.dev

The package has been updated.


Add/Remove

I Removed all hardcoded items from the tasks array.
I created a new JavaScript file for the new functionality.
I Implemented a function for adding a new task to the array and displaying it in the UI.
I Implemented a function for deleting a task.
I Added a function for editing task descriptions.
All changes to the To-Do List are saved in local storage.

Before you flag that there are linter errors just know I have no linter errors locally when I run them. I don't really know what is up with Github actions but I have been getting this and there seems to be no solution that has worked so far. You are more than welcome to clone my project for review purposes and any suggestions would be highly appreciated. Thanks in advance.


TS: refactoring a class that gets imported and renamed does not update the import

Steps to Reproduce:

have an import such as import { IEditor as IWorkbenchEditor } from 'vs/workbench/common/editor';
refactor rename IEditor to IEditorSomething

=> 🐛 the import is not updated

I'd love to help with this. This would be my first experience contributing to open source. Can someone point me in the right direction?

Opened https://github.com/microsoft/TypeScript/issues/37188 to track upstream
@martinjaime Please follow up with the TypeScript team to see how you can help out


Some questions about entropymodel

Hi, I'm trying to train my own RLVC model, but there are some questions I'm not sure.
Do we need to compress the second frame via tfc.entropy_bottleneck even RPM is performed?

Yes, because RPM needs temporal prior, but the second frame (the first P-frame) doesn't have previous latents, so it is not compressed by RPM.--Dr. Ren Yanghttps://renyang-home.github.io/Computer Vision Laboratory | ETH ZürichSternwartstrasse 7 | ETF D 114.2 | 8092 Zürich, Switzerland在 13.01.2023，18:27，cyhhhhhhit @.***> 写道：
Hi, I'm trying to train my own RLVC model, but there are some questions I'm not sure.
Do we need to compress the second frame via tfc.entropy_bottleneck even RPM is performed?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>


null is not an object

I have create a project using expo init and then ejected from it. I installed this package using yarn add react-native-appearance and run react-native link react-native-appearance.
I tried importing import { Appearance } from "react-native-appearance";
But when I run the ios app yarn ios it says:
null is not an object (evaluating 'NativeAppearance.initialPreferences')

<unknown>
    polyfill.tsx:15:68
loadModuleImplementation
    require.js:331:6
<unknown>
    index.tsx:9:24
loadModuleImplementation
    require.js:331:6
<unknown>
    App.js:3
loadModuleImplementation
    require.js:331:6
<unknown>
    index.js:2
loadModuleImplementation
    require.js:331:6
guardedLoadModule
    require.js:197:45
global code
    <unknown file>:0

Simulator
OS - ios 13.1
Simulator - iPhone X
Dependencies installed
    "expo": "^35.0.0",
    "react": "16.8.3",
    "react-dom": "16.8.3",
    "react-native": "0.59.10",
    "react-native-appearance": "^0.1.0",
    "react-native-gesture-handler": "~1.3.0",
    "react-native-reanimated": "~1.2.0",
    "react-native-screens": "1.0.0-alpha.23",
    "react-native-unimodules": "~0.5.4",
    "react-native-web": "^0.11.7"

I ran into the same issue. I am on the same RN version as @archieherbias 😅

"react-native": "0.59.10"

Let me know if you find a fix! Not a blocker for me right now.

I am running into this issue also.

   "react-native": "0.60.5",

I have the same issue

I solved this problem with the following:
cd ios
pod install

same issue here :/

same issue, still can't find a fix

you should follow the instructions that are in the readme for expo projects. run expo install react-native-appearance. also see https://docs.expo.io/versions/v35.0.0/sdk/appearance/

@brentvatne I have followed that documentation, many times, and I am still getting the same error. Curious if anyone has had this work  ^

please share a minimal reproducible example project @KenPet11

the fix is to link the native code ;)
i'm locking this thread but if anyone wants to create a new issue with a reproducible example as i requested we can certainly look into it.


feature: Create toggle clock

The animation on this block could use some work. @whoadave -- make the magic happen.


Provide camel-rest integration

Depends on #157, #159 or the successful integration of components documented here.

Needs docs coverage


Remove a user from an external network (done by user)

The content is misleading that a user can "remove" himself from the External Network. Even the user is unable to logon to the External Network after selecting "Leave Network" the user identity is still there (Visible to the Network Administrator and others (eMail address, photo, first name, last name).
The term "remove" is used in the same article describing a hard deletion of a user's identity. Quote: "After a user's account transitions from deactivated to removed, you can no longer associate user data with the user, which means you can no longer export and review their data."

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

ID: be3cea98-2b32-6f9f-8a22-4bc82613b6ac
Version Independent ID: 9bcbd2d7-c954-1ddb-95eb-472c68f6e637
Content: Manage GDPR data subject requests in Yammer Enterprise
Content Source: yammer/manage-security-and-compliance/gdpr-requests-in-yammer-enterprise.md
Service: yammer
GitHub Login: @IrenePasternack
Microsoft Alias: v-irpast

Frank,
Thank you for the feedback. I removed the section on users removing themselves from external network, as you’re right, it does not erase the user’s personal data.
Irene
From: Frank Kaleck<EMAIL_ADDRESS>Sent: Thursday, December 13, 2018 5:22 AM
To: MicrosoftDocs/OfficeDocs-O365ITPro<EMAIL_ADDRESS>Cc: Irene Pasternack (Steyer Associates Inc<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: [MicrosoftDocs/OfficeDocs-O365ITPro] Remove a user from an external network (done by user) (#124)
The content is misleading that a user can "remove" himself from the External Network. Even the user is unable to logon to the External Network after selecting "Leave Network" the user identity is still there (Visible to the Network Administrator and others (eMail address, photo, first name, last name).
The term "remove" is used in the same article describing a hard deletion of a user's identity. Quote: "After a user's account transitions from deactivated to removed, you can no longer associate user data with the user, which means you can no longer export and review their data."

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

ID: be3cea98-2b32-6f9f-8a22-4bc82613b6ac
Version Independent ID: 9bcbd2d7-c954-1ddb-95eb-472c68f6e637
Content: Manage GDPR data subject requests in Yammer Enterprisehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fyammer%2Fmanage-security-and-compliance%2Fgdpr-requests-in-yammer-enterprise&data=02|01|v-irpast%40microsoft.com|4d0ed25056f3456812e708d660fdf17e|72f988bf86f141af91ab2d7cd011db47|1|0|636803041125696063&sdata=hfhgvQtdtqz2lUUSa8e0EjvZL6KNuHFS63xjYSTyde4%3D&reserved=0
Content Source: yammer/manage-security-and-compliance/gdpr-requests-in-yammer-enterprise.mdhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2FOfficeDocs-O365ITPro%2Fblob%2Fpublic%2Fyammer%2Fmanage-security-and-compliance%2Fgdpr-requests-in-yammer-enterprise.md&data=02|01|v-irpast%40microsoft.com|4d0ed25056f3456812e708d660fdf17e|72f988bf86f141af91ab2d7cd011db47|1|0|636803041125706067&sdata=nQmuP0BUghNo%2FC4otXMnXC0O6QwgfS2dr6yppDPTvtI%3D&reserved=0
Service: yammer
GitHub Login: @IrenePasternackhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FIrenePasternack&data=02|01|v-irpast%40microsoft.com|4d0ed25056f3456812e708d660fdf17e|72f988bf86f141af91ab2d7cd011db47|1|0|636803041125706067&sdata=CtK9ylbjaOmV5D7SuKuD%2B3CZVOumEmVf%2B6%2FuVZdC7%2BA%3D&reserved=0
Microsoft Alias: v-irpast

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2FOfficeDocs-O365ITPro%2Fissues%2F124&data=02|01|v-irpast%40microsoft.com|4d0ed25056f3456812e708d660fdf17e|72f988bf86f141af91ab2d7cd011db47|1|0|636803041125716081&sdata=Hyc7unyRpucvHphs75jTMGu7VwrPK1X8Z7sD1v0H3ho%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAkqBo3J_HocI-T6IJCVmtt2Yd5Zyah41ks5u4lRvgaJpZM4ZRnp2&data=02|01|v-irpast%40microsoft.com|4d0ed25056f3456812e708d660fdf17e|72f988bf86f141af91ab2d7cd011db47|1|0|636803041125716081&sdata=ulvkHDOcYZpmgj6Zb33QUIf7G8KUrgqDe57uIvpAgvY%3D&reserved=0.

@fkaleck It looks like Irene has resolved this issue. I am going to close this at this time. If this is not resolved please re-open this issue.


LuaState.checkRef > u.act will be NullReference

i dont know why,but throw this Exception in sometimes.

i think it is a bug，maybe delegate had been gced


Getting Error on installing in Blender

I was installing your three repos and had no trouble with Commotion & Booltron yet Jewelcraft gives me the following Error:

I am on Windows 7 X64, Blender 2.74
Your addons look amazing looking forward to using them.
Thx, Tracy

Hi Tracy,
JewelCraft does not support Blender 2.74 and below, it will only work with Blender 2.75 and above. Could you please try to use Blender 2.76b?
By the way, it's says it right there: https://github.com/mrachinskiy/blender-addon-jewelcraft#how-to-install

I must have missed that.  It installs and work fine after I updated to
2.7.6.  Thank you for all your add-on work.  Looking forward to following
you on G+.
Thanks for the quick response,
Tracy
On Jan 15, 2016 10:19 PM, "Mikhail Rachinskiy"<EMAIL_ADDRESS>wrote:

Hi Tracy,
JewelCraft does not support Blender 2.74 and below, it will only work with
Blender 2.75 and above. Could you please try to use Blender 2.76b?
By the way, it's says it right there:
https://github.com/mrachinskiy/blender-addon-jewelcraft#how-to-install
—
Reply to this email directly or view it on GitHub
https://github.com/mrachinskiy/blender-addon-jewelcraft/issues/1#issuecomment-172154912
.


backend error  init missing  pos......

Model: gpt-4-1106-preview
I encountered a lot of backend error and json.loads failed to parse

I found that it was easy to report errors when parsing json, so I modified the parameter description in function call, and now the frequency of occurrence is reduced a lot。


[feat]: Include docs in eOS

Prerequisites

[X] I have searched for existing issues that already suggest this feature, without success.

Describe the Feature Request
Provide an option to download a copy of the Embassy manual, to be stored locally on the embassy.
Describe the Use Case
For local troubleshooting purposes, in case internet is out or slow or whatever. Also just easier/faster to have it local.
Describe Preferred Solution
No response
Describe Alternatives
No response
Anything else?
No response

We have considered this, but it is quite large (or would need to be adapted to a skinnier version).  We would love to see a PR for this ;)

Yeah, wasn't sure how large it would be. Not critical; I just like to keep manuals offline and adjacent to where they may be needed.

Totally agree, it will be nice to have

We could put a link to this in the top left where the Start9 icon is

The point of this issue is to have a local copy

Yes, I know....

I think the better answer here is to cache a copy of the centralized manual every time you fetch it and then try to update it periodically. Centrally managed docs are going to be more up to date and caching them locally should alleviate concerns about accessibility without Start9's presence.

Fetch the latest compatible version of docs

Closing in favor of a "Docs" package

Closed in favor of https://github.com/Start9Labs/documentation/issues/326


Why use invoke() instead of a method call for the same connection

Please forgive me for not having your contact information. I read spring-projects/spring-security-oauth code have some questions. In this class org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore.storeAccessToken()
can use 'set()' method to set value , why use invoke() in same connection, What's the difference between them.I looked up a lot of information, but I couldn't find the answer. Can you tell me?
if (springDataRedis_2_0) {
	try {
		this.redisConnectionSet_2_0.invoke(conn, accessKey, serializedAccessToken);
		this.redisConnectionSet_2_0.invoke(conn, authKey, serializedAuth);
		this.redisConnectionSet_2_0.invoke(conn, authToAccessKey, serializedAccessToken);
	} catch (Exception ex) {
		throw new RuntimeException(ex);
	}
} else {
	conn.set(accessKey, serializedAccessToken);
	conn.set(authKey, serializedAuth);
	conn.set(authToAccessKey, serializedAccessToken);
}

I wrote the original RedisTokenStore years ago, sorry. And I think someone else added the 2_0 stuff. Sorry I don't know.


Streaming App Crash 499 Error

Starting in December, the streaming app crashed periodically with a 499 status code. Most resulted from the Freshping Monitor, but others were requests from the emissions api and the campd ui

Dev Notes

[ ] Look at and refactor Freshping streaming checks to ensure that request is not too large

[ ] revisit after deployment is updated to see if issue is resolved

Will sit in PI backlog unless it becomes a PROD issue

Is there any possible way to generate this issue again? I was not able to regenerate this bug in Dev environment.

Not able to replicate. This may be resolved. Will open a new ticket if needed.


Fixes misspelling of CredentialBootstrap in readMe file line number 147

Fixes misspelling of CredentialBootstrap in readMe file line number 147.
CredentialBoostrap --> CredentialBootstrap

Thanks!

Looks like the build is failing because it’s coming from a fork. I’ll try to improve this in the future. But I’ll just bring this one in manually for you. I’m on PTO this week, but I’ll take care of this first thing next week at the latest. Thanks again for the contribution!

Thanks Jay
Happy to contribute.

On 19-Jul-2022, at 2:43 AM, Jay Newstrom @.***> wrote:
Looks like the build is failing because it’s coming from a fork. I’ll try to improve this in the future. But I’ll just bring this one in manually for you. I’m on PTO this week, but I’ll take care of this first thing next week at the latest. Thanks again for the contribution!
—
Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/okta/okta-mobile-kotlin/pull/192*issuecomment-1188316726__;Iw!!MeEMYEo!WHTMBHerfMP7BAQ7hyRa0U4rjxbuMWKg-fRGzH55c2WlS9g2ixJiw8cztpLbDQkcpoYjViFwCCYbuDtcPATj9g$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVNA5ILTRKNGE3ORYGCCWP3VUXCHZANCNFSM534WY2EQ__;!!MeEMYEo!WHTMBHerfMP7BAQ7hyRa0U4rjxbuMWKg-fRGzH55c2WlS9g2ixJiw8cztpLbDQkcpoYjViFwCCYbuDs2mRrAWA$.
You are receiving this because you authored the thread.

Thanks again! Sorry for the delay!


Palindrome checker updated

issue #385 updated
PLease @harshgupta20 review it once and let me know if something more is required
Thank you!

@Aarti002  Resolve the conflict.
Why Guess the song project is added again. Remove it please

@991rajat please can u review again ?
Thank you!

@Aarti002 Look at this. Is this happening on your side. Fix this Please

@991rajat no....., it's working perfectly fine in my system , see....

@991rajat is this still not working ?

No it's not fixed. Look into it have you pushed all the changes? Compare in File Changed Section

@991rajat i dm u on discord, please reply.

@Aarti002 The CSS that u sent on discord is working fine, replace it.

that was same css which i have committed before but i don't know why its
not working
On Mon, 17 May 2021 at 19:24, Rajat Kumar @.***> wrote:

@Aarti002 https://github.com/Aarti002 The CSS that u sent on discord is
working fine, replace it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Vishal-raj-1/Awesome-JavaScript-Projects/pull/1212#issuecomment-842344307,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQ3EQQZRJFW2OQHNLFFMSWLTOEN27ANCNFSM43ST32XA
.

Update the HTML file as well, which you shared in discord.
It's working

hey @991rajat i have made new PR please review that one , there were some issue in this PR
Thank you!

issue number is #1525

Its Resolved with new PR. I'm closing this one


Doc Topic Context In cdk.json

Can we add some documentation about how users should think about the context data in cdk.json
Topics I think could help new users:

Should I use this to pass in arguments?
Should I persist values in here for my team/CD system to use?
How should I my Stacks, Apps, or Construct (Lib?) projects interact with context? (e.g. should a construct never use Context data set by a human because that should be only for app/stack elements?)

cc/ @eladb this issue came from me seeing users not knowing setContext getContext existed.

Not directly related but perhaps we can kill my questions in here? https://github.com/awslabs/aws-cdk/pull/700

Yep, 700 includes the information you request.


Unresolved reference: OutlinedTextField (material3)

Looks like OutlinedTextField (and maybe more) is missing from material3 for android.
Project builds and run fine for desktop and web, fails for android.
Compose version: 1.2.0-alpha01-dev741

Current workaround is to add
api("androidx.compose.material3:material3:1.0.0-alpha14")
to android source set
Not sure if this could lead to problems with a release build, but should also be solvable

I solve this by upgrade the material version to
implementation 'androidx.compose.material3:material3:1.0.0-beta03'

I still get this issue with
implementation 'androidx.compose.material3:material3:1.0.0' I tried changing it to alpha14 but still same error.
Where do I put the api(....)?

Figured it out need to add this annotation on the function
@OptIn(ExperimentalMaterial3Api::class)

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

even with the gradle change - implementation("androidx.compose.material3:material3:1.0.0-alpha14")
its not working. is there a work around to solve this?

Multiplatform packages are org.jetbrains.androidx.* and usually available via plugin properties. Please refer to documentation instead of the outdated issue. 1.0.0-alpha is not the version you should use.
Since GitHub issues were closed with clear instructions to use YouTrack for follow-ups, so I'm going to lock this one


[Feature] Please add support for the bereq.max_reuse_idle_time variable

Kind of proposals
You can turn on multiple checkboxes.

[x] Parser
[x] Linter
[x] Simulator
[x] Testing

Describe the feature
Varnish has an undocumented variable bereq.max_reuse_idle_time, which can be used in vcl_miss and vcl_pass to programmatically set the keep-alive time for the TCP session to the backend. It is used when no value for keepalive_time is set on the backend definition.
Fiddle: Fiddle Link
Unfortunately, falco does not currently know about this variable, so the linter keeps flagging it as an error.
Also, not sure if it is a bug or not, but none of the ignore methods appear to work:
    // falco-ignore-start
    // falco-ignore-next-line
    set bereq.max_reuse_idle_time = 3570s; // falco-ignore
    // falco-ignore-end

Results in:
🔥 [ERROR] Undefined variable "bereq.max_reuse_idle_time"
in file.vcl at line 91, position 9
 90|    // falco-ignore-next-line
 91|    set bereq.max_reuse_idle_time = 3570s; // falco-ignore
            ^^^^^^^^^^^^^^^^^^^^^^^^^
 92|    // falco-ignore-end

🔥 [ERROR] Type mismatch: bereq.max_reuse_idle_time requires type NULL but RTIME was assigned (operator/assignment)
in file.vcl at line 91, position 35
 90|    // falco-ignore-next-line
 91|    set bereq.max_reuse_idle_time = 3570s; // falco-ignore
                                      ^
 92|    // falco-ignore-end
See reference documentation: https://developer.fastly.com/reference/vcl/operators/#assignment-operators

I hope you can update falco to recognize this variable, or make the ignore work, so we can avoid getting errors.
Thank you very much!

@Bio2hazard
Thanks, we'd like to know these undocumented variables that undocumented but valid on Fastly.
I will support this variable.


Pathy.exists() check might impact performance due to partial startswith check

env: python3.10, tested with GS
Consider the following case:
Pathy("gs://bucket/blob-not-there")

In this case we check whether the exact blob exists , but in case it doesn't exist, we continue to checking partial blob appearance, in all bucket files using startswith. This introduces 2 possible issues:

In case of bucket with high amount of blob (in our case we have bucket with hundred of thousands blobs), this check might be unreasonably long
In case we have a prefix match, exists will return True, but it might not be the blob we are referring to

Possible solutions

Avoid looking for blob prefix
Add a flag to exists, something like exact_match

@yaelmi3 thanks for providing this review/analysis! 🙇
Could you construct a performance test that measures how slow it is and compare it with your suggested change? I can run it on all the cloud providers to get a sense of the impact if you write a script that works with the local-mode implementation.


Add Utilization to PrefixTable

From https://github.com/digitalocean/netbox/issues/40
This patch calculates prefix utilization based on the following rules and displays it in the PrefixTable:

If the prefix has any child prefixes in the same VRF,  use sum of child prefix size.  This is the same behavior as aggregates
If the prefix has no child prefixes and does have IPs,  and is not a /32,  use sum of IPs +2 over prefix size.
If the prefix has no child prefixes and does have IPs,  and is a /32,  use sum of IPs over prefix size.
If the prefix has no child prefixes and no IPs,  return 0.

@jeremystretch is there anything your waiting on before you merge this?

There's a lot of extraneous stuff happening in get_utilization as its currently written. For example, child_prefixes can be defined in a single line, and doesn't need select_related or annotate_depth, and child_ips should only be defined if it's going to be used.
Aside from that, I don't think it makes sense to arbitrarily display utilization based on either child prefix size or child IP count: the two are discrete, independent metrics. If we're going to display utilization for prefixes, I'd rather see it expressed both ways independently.
At any rate, we need to rethink the table layout before we can incorporate this additional info. We just don't have room for a utilization graph at the moment. It might help to compress the description column into a mouseover bubble, but that's useful info I'm sure people will miss. We'll probably end up converting to a full-screen layout.
I'm going to close this PR for the reasons above, but the issue is still open.


chore: add vscode project files to gitignore

see title

@wass3rw3rk sounds good i can extend it. (still need this PR for __debug_bin produced by the dlv extension)


Secret key invalid

@MuhamedAdly @paytabscom @ihammys  @MuhamedAdly  @humayun-paytabs  @wajihkm
My merchant account is created at PT v1 https://www.paytabs.com/login/ when I use 'PayTabs', '~> 4.3.2' OR 'PayTabs', '~> 4.0' it not accepting secret key what should I do can I use older version sdk that support PT v1 if yes can tell me version name
Response Code: 4002
Response Result: Secret key is invalid!

shifted to PT V2


Error processing segments

When you set a link of the format https://example.m3u8 everything works fine, but as soon as the parameters appear in the link by type https://example.m3u8?e=720&h=23c it throws an error while processing
As I understand it, this happens because forbidden characters for names in Windows appear in the link (such as a question mark, for example)
No problem on linux

Hi,
I read your Traceback carefully. The reason for the OSError is that Windows illegal characters exists in temporary ts path string.
However, the current code does not check the legitimacy of the ts path, which is a flaw.
I will keep this issus open until I fix it.

Thanks for your patience, I have fixed this bug.
However, I do not test this function work or not as I don't have a suitable m3u8 uri.
You can clone the latest project and start to download as usual.
I will keep this issue open until your feedback.

I tested all kinds of links and everything works correctly. It seems the issue can be closed
Thanks


Where's the PHP (the pi source files for the dashboard) ?

Hi there, I was checking out your video, and I was trying to build the pi side but I just found the arduino source on this repository.
Where's the pi php files?
Thank you!

That's all over in the https://github.com/geerlingguy/internet-pi repository.

It worked!
Thank you!


Building HelloWorld on Linux, type "byte" is not defined

Building the Linux sample, while including the ChakraCore header file will complain about the type byte not being defined.
The workaround I found was to just define the type on top of sample.cpp before #include "ChakraCore.h" (The type can be defined as typedef unsigned char byte;)
Not really sure the best way to fix this permanently which is why I'm not posting the workaround as a PR. I noticed a todo in the source for ChakraCommon.h mentioning to reduce the usage of these types for better x-plat, I guess eventually that would fix this build issue?
Here is the compilation error I get on Ubuntu 16.04 --
juliusl@jlubuntu:~/Github/chakracore/crossplatform$ make BUILD_TYPE=Debug
g++ sample.cpp -Wall -lstdc++ -std=c++0x -I../lib/Jsrt -Wl,--whole-archive ../BuildLinux/Debug/lib/../pal/src/libChakra.Pal.a ../BuildLinux/Debug/lib/Common/Core/libChakra.Common.Core.a ../BuildLinux/Debug/lib/Jsrt/libChakra.Jsrt.a -Wl,--no-whole-archive -pthread -lm -ldl -licuuc -lunwind-x86_64 -Wno-c++11-compat-deprecated-writable-strings -Wno-deprecated-declarations -Wno-unknown-warning-option -o sample.o
In file included from ../lib/Jsrt/ChakraCore.h:26:0,
                 from sample.cpp:6:
../lib/Jsrt/ChakraDebug.h:692:137: error: ‘byte’ does not name a type
     typedef void (CHAKRA_CALLBACK *JsTTDInitializeForWriteLogStreamCallback)(_In_ size_t uriByteLength, _In_reads_(uriByteLength) const byte* uriBytes);
                                                                                ^
../lib/Jsrt/ChakraDebug.h:708:139: error: ‘byte’ does not name a type
     typedef JsTTDStreamHandle (CHAKRA_CALLBACK *TTDOpenResourceStreamCallback)(_In_ size_t uriByteLength, _In_reads_(uriByteLength) const byte* uriBytes, _In_z_ const char* asciiResourceName, _In_ b
                                                                                ^
../lib/Jsrt/ChakraDebug.h:719:120: error: ‘byte’ has not been declared
     typedef bool (CHAKRA_CALLBACK *JsTTDReadBytesFromStreamCallback)(_In_ JsTTDStreamHandle handle, _Out_writes_(size) byte* buff, _In_ size_t size, _Out_ size_t* readCount);
                                                                                ^
../lib/Jsrt/ChakraDebug.h:730:123: error: ‘byte’ does not name a type
     typedef bool (CHAKRA_CALLBACK *JsTTDWriteBytesToStreamCallback)(_In_ JsTTDStreamHandle handle, _In_reads_(size) const byte* buff, _In_ size_t size, _Out_ size_t* writtenCount);
                                                                                ^
../lib/Jsrt/ChakraDebug.h:763:44: error: ‘byte’ does not name a type
             _In_reads_(infoUriCount) const byte* infoUri,
                                            ^
../lib/Jsrt/ChakraDebug.h:787:44: error: ‘byte’ does not name a type
             _In_reads_(infoUriCount) const byte* infoUri,
                                            ^
../lib/Jsrt/ChakraDebug.h:935:18: error: ‘byte’ has not been declared
             _In_ byte* initialModPos);
                  ^
../lib/Jsrt/ChakraDebug.h:945:18: warning: ‘JsTTDRawBufferAsyncModifyComplete’ initialized and declared ‘extern’
             _In_ byte* finalModPos);
                  ^
../lib/Jsrt/ChakraDebug.h:945:18: error: ‘byte’ was not declared in this scope
../lib/Jsrt/ChakraDebug.h:945:24: error: ‘finalModPos’ was not declared in this scope
             _In_ byte* finalModPos);
                        ^
cc1plus: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
cc1plus: warning: unrecognized command line option ‘-Wno-c++11-compat-deprecated-writable-strings’
Makefile:34: recipe for target 'testmake' failed
make: *** [testmake] Error 1

@juliusl Thanks for the details. https://github.com/Microsoft/ChakraCore/pull/1479 fixes this. Once it is merged, will update here.

@obastemur Awesome, thanks!

Microsoft/ChakraCore#1479 is merged. closing this one too


Documentation/Link from here to Ubuntu PPA only points to development release PPA

Following the documentation and links here for a Ubuntu binary only leads to, https://launchpad.net/~alex-p/+archive/ubuntu/tesseract-ocr-devel?field.series_filter=jammy which appears to be the PPA for development releases and makes no mention of, https://launchpad.net/~alex-p/+archive/ubuntu/tesseract-ocr5?field.series_filter=jammy which appears to be the stable release PPA.
I would suggest that both PPAs be mentioned in the documentation.

You are welcome to provide a pull request which improves the documentation.


Add the possibility to get wubi codes for a characters sequence.

Add the possibility to get wubi codes for a characters sequence.
Add the possibility to get pinyin in utf8 with accent rather that ascii with tone digit code.

Looking forward to getting this in!


Timeout solution.

The same issue # 14, packet loss on a congested network where latency is very high with mikrotik (2000ms ping), losing connection, but is was never notified. SoTimeout implemented, it runs after setting the overall timeout. The wait is changed, CountDownLatch is used, so that the timeout is really expected.
It works for me.

Unfortunately I did not merge this at the time, and the underlying code has changed. Closing


Smart person merge

@apirogov
For test purposes, I updated pyproject.toml line 5 as below and just changed a character in my family name.
authors = ["Mustafa Doylu<EMAIL_ADDRESS>"Anton Pirogov<EMAIL_ADDRESS>
When I run somesy sync, the line remains as I changed it. Since .somesy.toml file has the right value, should not it somesy change it to the correct value?

@apirogov For test purposes, I updated pyproject.toml line 5 as below and just changed a character in my family name.
authors = ["Mustafa Doylu<EMAIL_ADDRESS>"Anton Pirogov<EMAIL_ADDRESS>
When I run somesy sync, the line remains as I changed it. Since .somesy.toml file has the right value, should not it somesy change it to the correct value?

Nice catch! I only rigorously tested with the CITATION.cff writer... I'll check it.

@mustafasoylu You can try again, the issue was with model field aliases not being handled correctly (for CFF, we rely on aliases to parse fields with dashes)


Simplify Array.from + map

Array.from has optional second argument. Calling map is not required.

You're right and I appreciate the contribution, but I don't see the upside of moving to a more niche behavior.


[storage] added set Expiry

REST API Doc
.NET renamed the function to scheduleDeletion() and did some wrapping for the options. I am not a fun of this approach and it's your call whether to align. @bterlson
public class DataLakeFileScheduleDeletionOptions
    {
        /// <summary>
        /// Duration before file should be deleted.
        /// </summary>
        public TimeSpan? TimeToExpire { get; private set; }

        /// <summary>
        /// Specifies if TimeToExpire should be
        /// set relative to the file's creation time, or the current
        /// time.  Defaults to current time.
        /// </summary>
        public DataLakeFileExpirationOffset? SetExpiryRelativeTo { get; private set; }

        /// <summary>
        /// The <see cref="DateTimeOffset"/> to set for when
        /// the file will be deleted.  If null, the existing
        /// ExpiresOn time on the file will be removed, if it exists.
        /// </summary>
        public DateTimeOffset? ExpiresOn { get; private set; }

        /// <summary>
        /// Constructor.  Sets the <see cref="DateTimeOffset"/> when the file will
        /// be deleted.
        /// </summary>
        /// <param name="expiresOn">
        /// The DateTimeOffset when the file will be deleted.
        /// If null, if the file was already scheduled for deletion,
        /// the deletion will be cancelled.
        /// </param>
        public DataLakeFileScheduleDeletionOptions(DateTimeOffset? expiresOn)
        {
            ExpiresOn = expiresOn;
        }

        /// <summary>
        /// Constructor.  Sets time when the file will be deleted, relative to the file
        /// creation time or the current time.
        /// </summary>
        /// <param name="timeToExpire">
        /// Duration before file will be deleted.
        /// </param>
        /// <param name="setRelativeTo">
        /// Specifies if TimeToExpire should be
        /// set relative to the file's creation time, or the current
        /// time.  Defaults to current time.
        /// </param>
        public DataLakeFileScheduleDeletionOptions(TimeSpan timeToExpire, DataLakeFileExpirationOffset setRelativeTo)
        {
            TimeToExpire = timeToExpire;
            SetExpiryRelativeTo = setRelativeTo;
        }

        /// <summary>
        /// Constructor.  If the file. was scheduled for deletetion, the deletion will be cancelled.
        /// </summary>
        public DataLakeFileScheduleDeletionOptions()
        {

        }
    }
}

        private async Task<Response<PathInfo>> ScheduleDeletionInternal(
            DataLakeFileScheduleDeletionOptions options,
            bool async,
            CancellationToken cancellationToken)
        {
                    // Relative
                    if (options.TimeToExpire.HasValue)
                    {
                        if (options.SetExpiryRelativeTo.Value == DataLakeFileExpirationOffset.CreationTime)
                        {
                            blobExpiryOptions = PathExpiryOptions.RelativeToCreation;
                        }
                        else
                        {
                            blobExpiryOptions = PathExpiryOptions.RelativeToNow;
                        }
                        expiresOn = options.TimeToExpire.Value.TotalMilliseconds.ToString(CultureInfo.InvariantCulture);
                    }
                    // Absolute
                    else
                    {
                        if (options.ExpiresOn.HasValue)
                        {
                            blobExpiryOptions = PathExpiryOptions.Absolute;
                            expiresOn = options.ExpiresOn?.ToString("R", CultureInfo.InvariantCulture);
                        }
                        else
                        {
                            blobExpiryOptions = PathExpiryOptions.NeverExpire;
                        }
                    }
...

.NET renamed the function to scheduleDeletion() and did some wrapping for the options.

What does Python have?  Unless there are strong reasons, we usually try to be consistent across languages.

.NET renamed the function to scheduleDeletion() and did some wrapping for the options.

What does Python have? Unless there are strong reasons, we usually try to be consistent across languages.

I didn't see there changes for Python and Java.

Looks like Java has scheduleDeletion in this PR https://github.com/Azure/azure-sdk-for-java/pull/11441/files#diff-f85387d39c89c509285a1aec2619132dR940