Release v2.8.0 🚀

🆕  New features

Enable pattern attribute for input
You can now set the pattern attribute on input fields using the component
macros:
{{ govukInput({
  name: "example",
  pattern: "[0-9]*"
}) }}

As well as pattern, custom attributes can also be added on day/month/year
inputs (e.g. data-example) shown below:
{{ govukDateInput({
  items: [
    {
      pattern: "[0-9]*",
      attributes: {
        "data-example": "value"
      }
    }
  ]
}) }}

(PR #1172)

Prevent horizontal jump as scrollbars appear
As content vertical height grows (e.g. autocomplete results appear), browsers
may add scroll bars causing the page to jump horizontally in position.
To avoid this, re-introduce fix from GOV.UK Template:
https://github.com/alphagov/govuk-frontend/issues/1204
(PR #1230)

Accommodate camera notches on new devices (iPhone X, Google Pixel 3 etc)
On newer devices with "camera notches", browsers reserve a safe area in
landscape orientation (known as pillarboxing) so content isn't obscured.
To avoid this, support has been added for viewport-fit=cover as shown here:
https://webkit.org/blog/7929/designing-websites-for-iphone-x/
(PR #1176)

Prefix error messages with a visually hidden "Error:", to make it clearer to
users of assistive technologies
(PR #1221)

Prevent accidental multiple submissions of forms
If a user double clicks a submit button in a form, we debounce this event and
ignore the second click.
HTML data attribute:
<button class="govuk-button" data-prevent-double-click="true">
  Submit
</button>

Nunjucks macro:
{{ govukButton({
  text: "Submit",
  preventDoubleClick: true
}) }}

(PR #1018)

🔧  Fixes

Ensure that files within the core, objects and overrides layers can be
imported individually
Unlike components, the files within these layers did not previously import
their dependencies (for example, most of them require the govuk-exports mixin
but did not import it).
We've also added tests to ensure that files within these layers can be
imported and rendered to CSS without erroring, which should catch this in the
future.
Thanks to Alasdair McLeay for originally raising a
PR to fix this.
(PR #1235)

Ensure inset component does not misalign nested components
Thanks to Paul Hayes for raising this issue.
(PR #1232)

Improve word wrapping in summary list component
Thanks to Edward Horsford and Lee Kowalkowski for their help on this one.
Also thanks to Malcolm Butler for exploring a previous version of this fix.
(PR #1220)

This also updates the documentation for a number of components to document missing options.

We need to make sure to credit in the release notes @colinrotherham and @quis as they're not explicitly in the CHANGELOG notes.


build(csharp): script build, test, package and smoke test

Down payment toward https://github.com/apache/arrow-adbc/issues/1121:

Structures the projects for NuGet packaging
Adds scripts for building the Go drivers then packaging them to NuGet (with a new loader)
Script to coordinate building the NuGet packages and validating them with smoke tests
Ups the package versions to 0.8 to match the current ADBC release

is there anything else needed to merge this @lidavidm or @CurtHagenlocher?

The C# changes look good to me. I feel less qualified to comment on the build changes.

I'm fairly backlogged - I'll try to review in earnest this week but it may be a while

I'm going to check in the purely C# changes and the build system changes can be submitted as a smaller PR.


On multi GPU Model picks up certain parameters from last run on Grid search

I am doing a Grid Search over a set of hyperparameters. I do this by applying loops and re-initializing the model every time. However, the subsequent model seems to be picking up something from the previous runs because their performance changes as opposed to when I try only that particular setting of hyperparameters. Any idea what's happening here?

mind share an example?

@Borda Thanks for the quick reply. Here's an example -
My code is as follows:
`for i,lr in enumerate([2e-5]):
for j,bert_dropout in enumerate([0.1]):
for k,fc_dropout in enumerate([0.1,0.2]):
    ctr += 1
    config = {
    'PRE_TRAINED_MODEL_NAME': 'bert-base-cased',
    'batch_size': 16,
    'max_len': 200,
    'abuse_classes': 1,
    'bert_dropout': bert_dropout,
    'fc_dropout': fc_dropout,
    'device': torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu'),
    'num_epochs': 10,
    'lr': lr,
    'wd': 1e-4,
    'filename': 'dataset_10000.csv'

    }

    df = pd.read_csv(config['filename'])
    df = df.sample(frac=1).reset_index(drop=True)
    mini = min(df.Score)
    df_train, df_test = train_test_split(df, test_size=0.2, random_state=RANDOM_SEED)
    df_val, df_test = train_test_split(df_test, test_size=0.5, random_state=RANDOM_SEED)

    model = Abuse_lightning(mini, df_train,df_val,df_test, config)
    path = os.path.join(os.getcwd(), 'runs/lightning_logs/version_'+str(ctr)+'/checkpoints/')
    # print(path)
    checkpoint_callback = ModelCheckpoint(
      save_top_k=1,
      filepath = path,
      verbose=True,
      monitor='val_loss',
      mode='min')

    early_stop_callback = EarlyStopping(
     monitor='val_loss',
     min_delta=0.00,
     patience=3,
     verbose=False,
     mode='min'
  )
    trainer = pl.Trainer(gpus = 4, progress_bar_refresh_rate=0, max_epochs= config['num_epochs'], checkpoint_callback=checkpoint_callback, distributed_backend="ddp")
    trainer.fit(model)

`
This gives me the following performance for the 2 sets of hyper parameters shown above:
DATALOADER:0 TEST RESULTS
{'kendall': 0.029962238207975278,
'loss': tensor(3.2553),
'pearson': 0.043878178860853566,
'spearman': 0.04405847290467181}
DATALOADER:0 TEST RESULTS
{'kendall': 0.5237109987894637,
'loss': tensor(0.8089),
'pearson': 0.7166115221028726,
'spearman': 0.6918424244341342}
As you can see the 2nd set of hyperparameters is giving higher values. However, when I run only with those particular setting (i.e. not a grid search) performance is not the same, which should be the case. I get the following values:
DATALOADER:0 TEST RESULTS
{'kendall': 0.03853180875949515,
'loss': tensor(0.9288),
'pearson': 0.06812144454174138,
'spearman': 0.05720029959393498}
So the next model is definitely picking something up from the last model. Hope this helps.

Turns out there was some problem with how I was handling the data. I will close this issue now. Thanks!

I am sorry for repeatedly opening and closing the issue. But I really wanted to be sure of the problem. So the problem was not really with how I was handling data. It is to do with lightning. If on multi gpu, I repeatedly run the same code on different files, the model picks something up from the previous runs in the lightning logs folder. If I delete that folder and do a subsequent run I get a certain performance, however when I let that folder be and do a subsequent run, the performance changes (becomes better). Here's the code:
if __name__ == "__main__":

  ctr = 0

  ctr += 1
  config = {
  'PRE_TRAINED_MODEL_NAME': 'bert-base-cased',
  'batch_size': 16,
  'max_len': 200,
  'abuse_classes': 1,
  'bert_dropout': 0.3,
  'fc_dropout': 0.3,
  'device': torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu'),
  'num_epochs': 10,
  'lr': 2e-5,
  'wd': 1e-4,
  'filename': ''

  }

  df_train = pd.read_csv("train.csv")
  df_val = pd.read_csv("val.csv")
  df_test = []

  model = Abuse_lightning(0, df_train,df_val,df_test, config)
  path = os.path.join(os.getcwd(), 'runs/lightning_logs/version_'+str(ctr)+'/checkpoints/')
  checkpoint_callback = ModelCheckpoint(
    save_top_k=1,
    filepath = path,
    verbose=True,
    monitor='val_loss',
    mode='min')

  early_stop_callback = EarlyStopping(
   monitor='val_loss',
   min_delta=0.00,
   patience=3,
   verbose=False,
   mode='min')

  trainer = pl.Trainer(gpus = 4, progress_bar_refresh_rate=0, max_epochs= config['num_epochs'], checkpoint_callback=checkpoint_callback, distributed_backend="ddp") #, distributed_backend="ddp"
  trainer.fit(model)

Now if I let the lightning_logs folder be, I get the following performance on 2 consecutive runs:
1st run -
DATALOADER:0 TEST RESULTS
{'kendall': 0.060517550840717894,
'loss': tensor(1.3496),
'pearson': 0.09995590153171233,
'spearman': 0.0893974875437095}
2nd run -
DATALOADER:0 TEST RESULTS
{'kendall': 0.1193280845525937,
'loss': tensor(0.9547),
'pearson': 0.20193530230375267,
'spearman': 0.17886979100553788}
If I delete the lightning_logs folder, I get the following performance on 2 consecutive runs:
1st run -
DATALOADER:0 TEST RESULTS
{'kendall': 0.060517550840717894,
'loss': tensor(1.3496),
'pearson': 0.09995590153171233,
'spearman': 0.0893974875437095}
2nd run -
DATALOADER:0 TEST RESULTS
{'kendall': 0.033294763979888835,
'loss': tensor(1.0082),
'pearson': 0.08154190029041658,
'spearman': 0.04883269827105484}
As you can see, in the former case, the model performance is better in the 2nd run.
Hope this helps!

I am sorry for repeatedly opening and closing the issue. But I really wanted to be sure of the problem. So the problem was not really with how I was handling data. It is to do with lightning. If on multi gpu, I repeatedly run the same code on different files, the model picks something up from the previous runs in the lightning logs folder. If I delete that folder and do a subsequent run I get a certain performance, however when I let that folder be and do a subsequent run, the performance changes (becomes better). Here's the code:
if __name__ == "__main__":

  ctr = 0

  ctr += 1
  config = {
  'PRE_TRAINED_MODEL_NAME': 'bert-base-cased',
  'batch_size': 16,
  'max_len': 200,
  'abuse_classes': 1,
  'bert_dropout': 0.3,
  'fc_dropout': 0.3,
  'device': torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu'),
  'num_epochs': 10,
  'lr': 2e-5,
  'wd': 1e-4,
  'filename': ''

  }

  df_train = pd.read_csv("train.csv")
  df_val = pd.read_csv("val.csv")
  df_test = []

  model = Abuse_lightning(0, df_train,df_val,df_test, config)
  path = os.path.join(os.getcwd(), 'runs/lightning_logs/version_'+str(ctr)+'/checkpoints/')
  checkpoint_callback = ModelCheckpoint(
    save_top_k=1,
    filepath = path,
    verbose=True,
    monitor='val_loss',
    mode='min')

  early_stop_callback = EarlyStopping(
   monitor='val_loss',
   min_delta=0.00,
   patience=3,
   verbose=False,
   mode='min')

  trainer = pl.Trainer(gpus = 4, progress_bar_refresh_rate=0, max_epochs= config['num_epochs'], checkpoint_callback=checkpoint_callback, distributed_backend="ddp") #, distributed_backend="ddp"
  trainer.fit(model)

Now if I let the lightning_logs folder be, I get the following performance on 2 consecutive runs:
1st run -
DATALOADER:0 TEST RESULTS
{'kendall': 0.060517550840717894,
'loss': tensor(1.3496),
'pearson': 0.09995590153171233,
'spearman': 0.0893974875437095}
2nd run -
DATALOADER:0 TEST RESULTS
{'kendall': 0.1193280845525937,
'loss': tensor(0.9547),
'pearson': 0.20193530230375267,
'spearman': 0.17886979100553788}
If I delete the lightning_logs folder, I get the following performance on 2 consecutive runs:
1st run -
DATALOADER:0 TEST RESULTS
{'kendall': 0.060517550840717894,
'loss': tensor(1.3496),
'pearson': 0.09995590153171233,
'spearman': 0.0893974875437095}
2nd run -
DATALOADER:0 TEST RESULTS
{'kendall': 0.033294763979888835,
'loss': tensor(1.0082),
'pearson': 0.08154190029041658,
'spearman': 0.04883269827105484}
As you can see, in the former case, the model performance is better in the 2nd run.
Hope this helps!

did you make your runs deterministic, e.g., pytorch_lightning.seed_everything ? Let's make sure this is the case.
In your two consecutive runs, what is the value of ctr ?

@awaelchli I did set the seed.
ctr was mainly for when gridsearch was done in a loop, so it would get updated each time.
However for debugging purpose, in the code I shared above I had removed the loops, and executed the code repeatedly myself. so ctr remained same for each run.
In a new execution I would believe that data from past execution is not taken.

@hadarishav ok I think I see now, so ctr is the name of the version folder in your code. If that stays constant over multiple runs, then Lightning will resume from the last checkpoint because the version folder already contains a checkpoint.

I just checked, and on master, even if the checkpoint path already exists, it creates multiple versions with a prefix -v1, -v2, etc.
If I restart, it always starts with the same val loss never continues from before, and it also saves new checkpoints.

closing this. please reopen if needed.


adjust dev meeting time for daylight savings

Deploy preview for netlify-cms-www ready!
Built with commit d54a91ea8ac7640f2b04e461adf9b0c01f40d1b4
https://deploy-preview-1208--netlify-cms-www.netlify.com

Deploy preview for cms-demo ready!
Built with commit d54a91ea8ac7640f2b04e461adf9b0c01f40d1b4
https://deploy-preview-1208--cms-demo.netlify.com


JSCopyString number of parameters changed Wiki is wrong

The wiki entry: https://github.com/Microsoft/ChakraCore/wiki/JsCopyString states that JSCopyString has 5 parameters.
However this commit which was merged 17 days ago: https://github.com/Microsoft/ChakraCore/commit/f2078fed54fdeca4c3842fbd8d007de2502b06d5
Changed it to 4 parameters.
I'm not sure if this change was intentional, noting that the parameter change breaks things that depend on JSCopyString, but either way one of the two is now wrong (either the wiki or the codebase) - which one should be updated?

@MSLaguana could you please update wiki?
@rhuanjl Thanks for reporting this.

I've updated the wiki to reflect current usage / behavior. Thanks for bringing this to my attention!


Switched build to use ruby 2.2.2 instead of 2.2.1

Fixes build error:
Rails 5 requires Ruby 2.2.2 or newer.

You're running
  ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]

Please upgrade to Ruby 2.2.2 or newer to continue.

Thanks!


Feature Request: Add more page snippets

The page.routeFromHAR API is quite good, it is recommended to add to snippets.
For example:
await page.routeFromHAR('./hars/fruits.har', {
  url: '*/**/api/v1/fruits',
  update: true,
});

https://github.com/microsoft/playwright-examples/blob/4eb82aedf58321da90332e5f7316b64d5914a6b1/tests/api-mocking/api-mocking.spec.ts#L46-L49

In v0.0.21 added:

pw-record-har
pw-use-har


Issues photo gallery

Hawaii quick wins - issues photo gallery for next release

@kjonesthoughtworks let me know when we have the photos and mockups for this


Is the code available？

Hello, is the code available now？

1

When I use the prompt template you provided with GPT4, but I always get the following result:
`To approach the task of forecasting daily stock prices based on the provided input sequence, we'll divide the prediction work into short-term and long-term forecasts. Each type of forecast will utilize different aspects of the data to generate predictions, consistent with standard financial modeling practices.
Step 1: Define Prediction Ranges
Short-term Predictions:

Range: Typically refers to 1 to 5 days ahead.
Focus: Current trends and recent fluctuations within the last few entries of the input sequence.

Long-term Predictions:

Range: Extends beyond 5 days, usually up to 30 days or more in this context.
Focus: Cycles, broader patterns, and statistical properties observed over the entire data set.

Step 2: Design Forecasting Mechanisms
Short-term Forecasting Mechanism:

Trend Analysis:

Evaluate the moving average and momentum from the recent values (e.g., last 5 days).
Employ simple linear regression on these points to predict the immediate future values.

Adjustment for Volatility:

Measure volatility as the standard deviation of the last few days to adjust confidence intervals for the predictions.

Long-term Forecasting Mechanism:

Seasonal Decomposition:

Apply time series decomposition techniques to identify and isolate cyclical patterns that repeat over a longer period, which might not be apparent in a short-term view.

Autoregressive Integrated Moving Average (ARIMA):

Utilize ARIMA or similar models to incorporate trends, seasonality, and error correction into future forecasts, capturing more complex patterns.

Step 3: Implement the Forecasting Mechanisms
Since we're not using Python and its associated libraries (like Pandas, NumPy, or statsmodels) for the calculations, I'll provide a conceptual approach to manually calculate the next predictions:

Short-term Predictions (Next 1-5 Days):

Calculate the average of the last 5 values from the sequence.
Observe the trend (increasing or decreasing) from these points.
Predict forward assuming the trend continues with adjustments based on the observed volatility (average recent deviations).

Long-term Predictions (Days 6-9):

Analyze the input for seasonal patterns that might influence the behavior in this period.
Using the average cycle length and magnitude from past data, extend these patterns into the future.
Apply the average historical change around this time of year or cycle to guide the predictions.

Prediction Steps (Hypothetical Calculations):

Last 5 Values: [17.92397084, 19.38633134, 14.84032341, ..., X, Y]
Short-term Prediction: Assume continuation of recent decline or rise based on the least squares trend line fitted to these values.
Long-term Prediction: Extend observed cycles (e.g., mean reversion observed in the series or periodic peaks) to estimate Days 6-9.

Manual Calculation Note:
To simplify, for the next time step, take the average of the last 5 days, and adjust based on whether the trend in these days is upward or downward. For longer terms, consider that the stock might revert to a longer-term mean or continue a periodic pattern observed throughout the series.
In practice, these methods require statistical software or programming tools to manage computations efficiently and accurately. Remember to update the models as new data becomes available, and reassess the statistical assumptions periodically.`
The model didnt output pridict values. Can you help me? THANKS!

I am also wondering when the code will be available

1

Also looking forward to the code release

sorry for the delay, now clean it, by 0711


Can't toggle debug on mr-app dynamically

While making demos, I thought it would be really nice to be able to toggle the debug parameters dynamically instead of having to edit the code (especially while presenting the demo)
So I wrote a bit of code to toggle the parameter dynamically, but it's not working
https://codepen.io/lobau/pen/BabmBRx
var debugToggle = false;

const toggleDebug = () => {
    if (debugToggle) {
        document.querySelector("mr-app").removeAttribute("debug");
        debugToggle = false;
    } else {
        document.querySelector("mr-app").setAttribute("debug", true);
        debugToggle = true;
    }
    console.log(document.querySelector("mr-app"));
    console.log(debugToggle);
};

The console output is correct:
> <mr-app>
false

> <mr-app debug="true">
true

but the mr-app doesn't show / hide the debug elements

This would also boil down to a per-entity debug experience, adding the debug attribute to an element rather than at the app level, rather than rendering the whole physics scene.

we need a more advanced system for sure. I'll dig into dynamic toggling between now and then.


Add dictionary option

Maybe add optional pluggable dictionary, like TranslationMemory in Poedit?

How would you present the suggestions to the users? What suggestions should it load and when? But yeah, I thought this too, sometimes a lot of different projects have a lot of similar strings, or even equal. How would you compare which strings are similar enough to be shown as suggestions?

Maybe suggest to user strings with keywords like "sharp", "smooth", "Next", "Previous", etc? And when string contains keyword propose it like suggestion in translation. Keyboard dictionary like in Google Keyboard can help too.

Maybe suggest to user strings with keywords like "sharp", "smooth", "Next", "Previous", etc?

Could you explain this better? Do you mean like a "downloadable" dictionary for single words, not sentences?

Not for the single words, but partially matched sentences.
This is sample of inksape translation ru.po (v0.92)
#: ../inkscape.desktop.in.h:6
msgid "New Drawing" <<< keyword "New"
msgstr "Новый рисунок"
Maybe dictionary must contain original <-->translation couples?

I'm trying to think of a way to extract the "keywords" from the sentences though… First word? Last word? Random word? — Android string's don't have any "keyword" by default (they have a "name", which can or cannot be a valid keyword; and usually are several words_separated_by_underscore). And then with this keyword, Stringlate should look on all the translations on other projects to see if it can find a matching result you say?
Sorry for not quite understanding you, I think I'm a bit tired… I just can't think of how this algorithm to detect "keywords" should work, and how should the suggestions be stored. On a database maybe? For each locale though? Or only for the one the user has defined on their phone? Maybe the suggestions could be loaded in a background thread instead… So many questions!

Yes, many questions. Sorry for my annoyance.
Google keyboard use user dictionary, which contain wordlist (one word per line, alphabetically normalized).
Maybe background process must scan prepared database, like in GoogleKeyboard? One dict per locale, or one TranslationMemory per project.
Thank you for attention.

Google keyboard use user dictionary, which contain wordlist

But the problem is that, even with access to this dictionary, there is no such thing like "translation", they're just words which can be suggested, so Stringlate wouldn't know which it should "show". To put an example, the user might have both Spanish and English set on their phones, and the user has self-defined words on both Spanish and English. These have no relation, there is no such thing as "translation". They are just in a database accessible for every application to suggest them.

Maybe background process must scan prepared database

It would be possible to have a database (to provide faster lookup than scanning through the files) containing all the strings for every locale on every project. But again, this is not the problem (only a part of it). The problem is how it should determine the keywords, and how this should be shown to the user on the interface. Maybe as a placeholder? Or as a pop-up when you type? Or an "Apply suggestion"-like button?
Sure, it would be nice to have some kind of natural language processing to determine the best match… But that would be a bit overkill so that's why I was trying to think of a simpler solution.

Ok, I'll  connect with Poedit team and talk a little about this problem. Thank you very much.
Besides I translate Stringlate to Russian right now. It is very useful application. Thank you again.

I was thinking of maybe adding the ability to download a dictionary from some website for the currently selected locale and then thought I would need some kind of spell checking… Then realised most keyboards provide this already so it would be fairly useless. What should we do with this issue?

For further reference, it would be good to keep an eye on Glosbe - the multilingual online dictionary. If anyone else knows similar projects (besides the ones mentioned on their /Partners section), it would be great to know too.

Dictionaries wouldn't be any good for translations because the user should know their language, what I think could be good is to use Google translate or a similar platform somehow and suggest a translation for the string and the user can decide if the translation string is good or not, this could speed up translation. What do you think @Lonami ?

Dictionaries wouldn't be any good for translations because the user should know their language,

Sure they should know it, but not everyone knows every single word in two languages. A dictionary would be of help for both 1. ensuring you used the right word and 2. not missing those rare words which you don't know.

use Google translate or a similar platform somehow and suggest a translation for the string and the user can decide if the translation string is good or not

I guess it would be good but what about people if they kept clicking the "Is correct" button without even reading? That's not the idea, we're looking for human quality translations. Using a dictionary would prevent the "auto-click" since sentences are far more complex than a single word.
These are my thoughts, though I think using a translation service which even allowed us to submit back correct translations would be a good help for both too.

Sure they should know it, but not everyone knows every single word in two languages. A dictionary would be of help for both 1. ensuring you used the right word and 2. not missing those rare words which you don't know.

Well, I guess it can help but I think it'd be showing too much data to the user if it were to use a dictionary depending on how it's shown.

I guess it would be good but what about people if they kept clicking the "Is correct" button without even reading? That's not the idea, we're looking for human quality translations. Using a dictionary would prevent the "auto-click" since sentences are far more complex than a single word.

 The person checking if those sentences are good should be familiar with the language so they should know if it's actually good or not and change it or not based on that.

Maybe go for full "original string" -> "translation string", and store that in a local db/file. E.g. if theres "settings" -> "Einstellungen" for german, put that in the german translation memory, and if exactly that string comes up, ask if that should be taken

You mean like, loading all the "original string" -> "translated string" from every project in memory, and if an "original string" matches the one from a new project, suggest "translated string"?

Yep

What about using https://github.com/SQLDroid/SQLDroid/blob/master/README.md if we go the database direction (which is the better than parsing a file line by line (speed)? It allows us to use normal JDBC to makee sql statements (which is java SE compatible/non-android) while still making use of android internals for database

Although we would have duplicated information (original .xml files, needed as a template, and now this database), it would indeed speed up this specific task, so it seems like a good idea to use a database, yes.

I would really like to know how and with which source this guy generates these wordlists https://github.com/rdoeffinger/Dictionary/releases/tag/v0.2-dictionaries

But the xml of an project is only loaded when opening a project right?

Yes, opening a project always loads the original .xml file(s), and of course, the .xml for the selected locale. If you "Peek translations", it will read all the other .xml files too (within the same project).


Package com.getcapacitor.community.admob does not exist

I am using ionic/angular(^5.8.3) + capacitor (^3.2.5) + nx monorepo. I added @capacitor-community/admob": "^3.3.0" to my project, following the implementation steps. When trying to run in Andriod emulator, got this error:
error: package com.getcapacitor.community.admob does not exist
( in android/app/src/main/java/**/**/MainActivity.java )

Because I am using NX, after $ npm i the admob pacakge, I did not run $ npx cap update. Instead, I ran $ nx run (PROJ-NAME):update.
Additional context
My package.json
{
  "name": "nx-ionic",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "build": "nx build",
    "postinstall": "ngcc --properties es2015 browser module main",
    "start": "nx serve",
    "test": "nx test"
  },
  "private": true,
  "devDependencies": {
    "@angular-devkit/build-angular": "^12.0.0",
    "@angular-eslint/eslint-plugin": "~12.0.0",
    "@angular-eslint/eslint-plugin-template": "~12.0.0",
    "@angular-eslint/template-parser": "~12.0.0",
    "@angular/compiler-cli": "^12.0.0",
    "@angular/language-service": "^12.0.0",
    "@capacitor/android": "^3.2.5",
    "@capacitor/cli": "^3.2.5",
    "@capacitor/ios": "^3.2.5",
    "@nrwl/cli": "12.10.0",
    "@nrwl/cypress": "12.10.0",
    "@nrwl/eslint-plugin-nx": "12.10.0",
    "@nrwl/jest": "12.10.0",
    "@nrwl/linter": "12.10.0",
    "@nrwl/react": "^12.0.0",
    "@nrwl/tao": "12.10.0",
    "@nrwl/workspace": "12.10.0",
    "@nxtend/capacitor": "^12.0.0",
    "@nxtend/firebase": "^12.1.0",
    "@nxtend/ionic-angular": "^12.0.0",
    "@types/jest": "27.0.2",
    "@types/node": "14.14.33",
    "@typescript-eslint/eslint-plugin": "~4.31.1",
    "@typescript-eslint/parser": "~4.31.1",
    "cypress": "^8.3.0",
    "eslint": "7.22.0",
    "eslint-config-prettier": "8.1.0",
    "eslint-plugin-cypress": "^2.10.3",
    "jest": "27.2.3",
    "jest-preset-angular": "10.0.1",
    "prettier": "^2.3.1",
    "ts-jest": "27.0.5",
    "typescript": "~4.3.5"
  },
  "dependencies": {
    "@angular/animations": "^12.2.0",
    "@angular/common": "^12.2.0",
    "@angular/compiler": "^12.2.0",
    "@angular/core": "^12.2.0",
    "@angular/fire": "^6.1.5",
    "@angular/forms": "^12.2.0",
    "@angular/platform-browser": "^12.2.0",
    "@angular/platform-browser-dynamic": "^12.2.0",
    "@angular/router": "^12.2.0",
    "@capacitor-community/admob": "^3.3.0",
    "@capacitor/core": "^3.2.5",
    "@ionic/angular": "^5.8.3",
    "@ngx-translate/core": "^13.0.0",
    "@ngx-translate/http-loader": "^6.0.0",
    "@nrwl/angular": "^12.10.0",
    "@tinymce/tinymce-angular": "^4.2.4",
    "firebase": "^8.7.1",
    "moment": "^2.29.1",
    "rxjs": "~6.6.0",
    "tailwindcss": "^2.2.19",
    "tslib": "^2.0.0",
    "zone.js": "~0.11.4"
  }
}

It turns out that I should install the capacitor admob package within each project in nx monorepo, instead of installing in the the monorepo outermost level. Sorry, thank you.

It turns out that I should install the capacitor admob package within each project in nx monorepo, instead of installing in the the monorepo outermost level. Sorry, thank you.

Sorry, late to the party but it is not needed that you install it in each project, it is enough for you to create a json file inside your project, with the list of the existing plugins.
Capacitor doesn't play completely well with nx monorepos


create a reusable FAQ component

This PR resolves #35
Created a reusable and highly customizable FAQ component which would speed up getting a website up and running. The data to be displayed needs to be passed as a prop to the component like this -

The stylesheet has been updated to do custom styling if required, the component formally looks like this, with a lot of flexibility possible

Could you please review this? @wdevon99 @charithccmc any suggestions or features to be added from the community would be appreciated

@wdevon99 I have tried to build the entire component from scratch and have deleted any other dependencies. Would you please review it now?

Will improve in fresh PR :)


docs: add min authz config for kafkasql topic

Add example of minimum authorization configuration required for manually created kafkasql-journal topic
Fixes https://github.com/Apicurio/apicurio-registry/issues/3238

@jsenko Can you review/merge this one to fix customer issue? Thanks.
See https://github.com/Apicurio/apicurio-registry/issues/3238

Done, thanks!


请问怎么配置seata的AT模式的事务隔离级别为读已提交呢？

[ ] I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description
请问怎么配置seata的AT模式的事务隔离级别为读已提交呢？
Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
Just paste your stack trace here!

Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)

xxx
xxx
xxx

Ⅴ. Anything else we need to know?
Ⅵ. Environment:

JDK version :
OS :
Others:

refer https://seata.io/zh-cn/docs/overview/faq.html#4


Spacing problem in layouts other than Dagre

In layouts other than Dagre, it seems that the spacing between nodes and groups are wrong, is like the size of them is not taking into account well:

It should be nice if groups don't overlap as in Dagre:

I think this is just the fact that these layouts don't support groups.


There are two branches of LIB

Run 5ps and 5 full nods, the last bp and full node run late.
And then get these chain status, the bp5 and fn5 have two branches of LIB.

Verify on the latest dev, and this issue has been fixed.


modernize

update imports to not depend on mycroft

replaced by https://github.com/OpenVoiceOS/skill-ovos-personal/pull/10


[BEAM-3545] Return metrics as MonitoringInfos

Have the Go SDK return metrics as MonitoringInfos rather than the deprecated metrics proto.
For now, both are being returned, but a later change will remove the legacy metrics.
This moves FnAPI awareness further into the harness to avoid tight coupling of the SDK to the portability protos, even though the base structures are largely inspired by the same.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.


Update to nvcomp 2.4.1 to fix zstd decompression

Fixes #282

Do the URLs change somewhat arbitrarily from version to version?

There has been churn with 2.3 and 2.4. But the names going forward should stay consistent


Add unit tests

https://github.com/opencypher/cypher-for-apache-spark/blob/3afbaabb55d6ec808e7b181f80911e332fef8aa1/src/main/scala/org/opencypher/caps/impl/convert/toJavaType.scala#L22

This code does not exist any more


transition is breaking/flickering when enter is canceled (fix #2482, #10677)

When the transition's enter event is canceled final CSS styles are applied and all transition's *-active styles are removed for a short period so the element is flickering, getting its final state(no transition classes applied)
https://github.com/vuejs/core/assets/49036220/bb310578-5376-49cd-a08d-bd0993300a79
fix #2482
fix #10677

close #10677 #2482

/ecosystem-ci run

The /ecosystem-ci run failure doesn't seem to be related to the changes in the PR


Foodadded

@CodiumAI-Agent /review

PR Review

 ⏱ Estimated effort to review [1-5]
4, because the PR introduces a significant amount of new functionality across multiple aspects of the project, including backend and frontend changes, configuration files, and styling. The complexity of integrating these changes, ensuring they work together seamlessly, and verifying that no regressions or bugs have been introduced requires a thorough review. Additionally, the introduction of external dependencies and the interaction with a database increase the review's complexity.

 🧪 Relevant tests
No

 🔍 Possible issues

Possible Security Concern: Storing plain text passwords in the database as seen in server/models/users/users.js. This is a significant security risk as it exposes user passwords to anyone who can access the database.

Hardcoded Database URI: The database URI is hardcoded in server/config/database.js, which could lead to accidental exposure of credentials if the codebase is made public or shared.

Hardcoded API Key: The News API key is hardcoded in client/src/components/Home.jsx. Exposing API keys in the frontend code can lead to unauthorized use of the API, leading to potential cost implications or rate limit issues.

Mixed Content Warning: Loading resources over HTTP in client/src/components/Home.jsx can lead to mixed content warnings if the site is served over HTTPS. This can affect the security and user experience of the website.
 🔒 Security concerns
- Plain Text Passwords: Storing passwords in plain text in the database (server/models/users/users.js) is a critical security vulnerability. It's essential to hash passwords before storing them.

Hardcoded Sensitive Information: The presence of hardcoded database URI and API keys in the codebase (server/config/database.js and client/src/components/Home.jsx) poses a risk of sensitive information exposure.

 Code feedback:
relevant fileserver/models/users/users.js
suggestion

Implement password hashing using libraries like bcrypt before storing passwords in the database. This enhances security by protecting user passwords even if the database is compromised. [important]

relevant linepassword: {
relevant fileserver/config/database.js
suggestion

Move sensitive information like the database URI to environment variables. This prevents hardcoding sensitive information in the codebase and makes it easier to update without changing the code. [important]

relevant lineconst uri = `mongodb+srv://dev326patil:devrajcapstone326@capstone.riouq2l.mongodb.net/${dbName}?retryWrites=true&w=majority&appName=Capstone`;
relevant fileclient/src/components/Home.jsx
suggestion

Replace the hardcoded API key with an environment variable. This prevents exposing the API key in the frontend code and allows for easier updates or key rotation without code changes. [important]

relevant lineconst newsResponse = await axios.get('https://newsapi.org/v2/top-headlines?country=in&category=sports&apiKey=1c1fd78b22794f30878e63a99a5a113b');
relevant fileclient/src/components/Home.jsx
suggestion

Ensure all external resources are loaded over HTTPS to avoid mixed content warnings and enhance security. [medium]

relevant line

 ✨ Review tool usage guide:
Overview:
The review tool scans the PR code changes, and generates a PR review which includes several types of feedbacks, such as possible PR issues, security threats and relevant test in the PR. More feedbacks can be added by configuring the tool.
The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.

When commenting, to edit configurations related to the review tool (pr_reviewer section), use the following template:

/review --pr_reviewer.some_config1=... --pr_reviewer.some_config2=...

With a configuration file, use the following template:

[pr_reviewer]
some_config1=...
some_config2=...

See the review usage page for a comprehensive guide on using this tool.

PR Reviewer Guide 🔍

 ⏱ Estimated effort to review [1-5]
4

 🧪 Relevant tests
No

 🔒 Security concerns
- Sensitive Information Exposure: The MongoDB connection string with credentials is exposed in the source code, which should be moved to environment variables to prevent exposure in version control.

No Input Validation: The lack of input validation in user-related routes could lead to security issues such as SQL Injection or Cross-Site Scripting (XSS) if not handled properly.

 ⚡ Key issues to review

Sensitive Information Exposure: The MongoDB URI containing the username and password is hardcoded in multiple files (index.js, database.js). This poses a significant security risk as it exposes sensitive credentials.

Duplicate Code: There is a significant amount of commented-out duplicate code in index.js. This should be cleaned up to maintain code clarity and prevent confusion.

Error Handling: The error handling in the login route (index.js) could be improved by providing more specific error messages and handling different types of errors more gracefully.

No Input Validation: There is no input validation in the user registration and login endpoints, which could lead to security vulnerabilities such as injection attacks.


docs: Add a quickstart about Kata Containers and NEMU

This documentation is a short document explaining how to make Kata
Containers running with the NEMU hypervisor.
Signed-off-by: Sebastien Boeuf<EMAIL_ADDRESS>

/cc @jodh-intel @mcastelino

@jodh-intel comments addressed!

@mcastelino I have removed the comment about security.
And I have specified in the Pre-requisites that it's worth noting that NEMU only supports arm and x86.

/test

@jodh-intel @chavafg @sameo I think I've addressed all your comments, please let me know if I missed anything :)

/test

@jodh-intel thanks for the review :)
Comments addressed!

Thanks @sboeuf.
lgtm

@jodh-intel last comment addressed ;)
Please merge if you're fine with the doc!

/test

@klynnrif @intelkevinputnam PTAL

Thanks for the review @intelkevinputnam, comments have been addressed!

LGTM


November Talks 18/11/15

Theme
TBA
Date
Wednesday 18th November 2015, doors open 7:00pm, talks start at 7:30pm
Speakers

No Service - Mike Elsmore (@ukmadlz)

No matter where you look in technology, everything has an online component. But with the advancement of web technologies and mobile apps, offline is becoming a key characteristic. This talk covers what's necessary to make a WebApp offline, and some nifty stuff to help along the way.

TBA - TBA
TBA - TBA

Core actions

[ ] Create meetup event & announce
[ ] Confirm sponsorship for snacks/drinks (@spikeheap)
[ ] Book The Story Museum  (@spikeheap)
[ ] Organise speakers

I think a service worker talk would go well here!

We've got the other two slots filled already (just waiting to confirm), though we'll definitely have more SW in the new year

Things to bring on the day:

[ ] vga adaptor
[ ] hdmi adaptor (think it's vga, but just in case)
[ ] chromecast
[ ] wifi hotspot
[ ] ethernet cable
[ ] clicker
[ ] webcam
[ ] tripod
[ ] recording laptop (we probably won't cast this time)
[ ] audio recorder


[WIP] Update with multi-arch fat manifest images

Description
Fixes: https://github.com/projectcalico/calico/issues/2363

The changes need are as follows:

Add  {{page.registry}} before all images on all manifest templates for all previous versions

Rebase onto latest master so you can resolve the merge conflict

Make sure to adjust the new v3.5 manifests which you'll pick up during the rebase

Set the registry to quay.io/ for all releases except master and the previous 1 (v3.5).

Let me know if you can make those changes or if you'd like me to address it in mine. Thanks!

sure, I'll rebase the master do necessary changes by EOD IST.
As I see calico images are fat manifests from v3.3.0 onwards, I was thinking to start using docker images from docker.io from v3.3.0 release onwars. what do you say? @ozdanborne @caseydavenport ?
$ docker manifest inspect calico/node:v3.3.0
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1371,
         "digest": "sha256:38f1c1525aae4961a70d8fb1079f9220e9644b6ae58ddd782bd5811170037fd7",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1996,
         "digest": "sha256:e605cae02be9b7e9a9db6f64ff9feeaa47dca70067f39fb80ecce2ae781fbf98",
         "platform": {
            "architecture": "arm64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1996,
         "digest": "sha256:c1f23a31cc5a7a6877808a071ff0dd12664e519c320fd8376d7cbe2015912bca",
         "platform": {
            "architecture": "ppc64le",
            "os": "linux"
         }
      }
   ]
}

@caseydavenport @ozdanborne I just rebased and did all required changes. btw: I referred the images from docker.io for v3.3 onwards, please review the changes and let me know if any comments. Thanks.


[Draft pull request] Update npm packages and add flatpickr options to datepicker

Hello!
This is my first pull request in this repo. I hope I have done it alright.
I have tried to add flatpickr options to the datepicker, but I had issues with the options until I updated some of the npm packages to the newest packages. After the update, it went smooth, but I don't know what is the cause.
I added an demo for the time picker and datetime picker as well.
I would love to hear your thoughts and opinions on this, so it could merge into the matblazor without any issues or conflicts.
Link to an gif of the datetime picker working

Thank you for your contribution. It would be good to increase supporting of other features of this library.
So, for now it's ok. But I feel some problems in future.

I don't want to have real big dependency from other library. In future we will have our own MatBlazor calendar.
Formats of this library not compatible with .NET formats, and it can also have some problems.

Therefore for these reasons - I don't use all possibilities from this library from beginning.


Retrieve Poseidon configs from online storage

The procedure of running python scripts to generate the hasher parameters might be daunting for new users. Instead, we can generate some Poseidon configs for number of assets from 1 to 30, and upload these to an Amazon bucket. The user will just need to download the parameters that matches with their own number of assets, something analogous to when you download a ptau file.
In that case we might think about adding the file to the .gitignore and keep it for internal use.
Originally posted by @enricobottazzi in https://github.com/summa-dev/summa-solvency/pull/29#discussion_r1214196590

Since we are now using a single Poseidon configuration. Can we close this issue @alxkzmn ?
Also I'm wondering if the python poseidon config generator has to be maintained in the repo any longer


do-until-key doesn't work

do-until-key and other functions that use select-stream don't work as expected.
(defmacro do-until-key-with-check
  (check &rest forms)
  `(prog1
       (while (and (null (select-stream (list *standard-input*) 0.0000001))
                   (eval ,check))
         ,@forms
         )
     (let ((strm (car (select-stream (list *standard-input*) 0.1)))) (if strm (read-line strm nil nil)))
     ))

This is happening because since there is no active read call to the stream the slime read-mode is not activated, causing input to be classified as a new repl request which is put on standby until the first evaluation is done.
slime-events
(:emacs-rex
 (swank-repl:listener-eval "(do-until-key (print 1) (unix:sleep 1))\n")
 "USER" :repl-thread 61)
(:write-string "1\n")
(:write-string "1\n")
(:write-string "1\n")
(:emacs-rex
 (swank-repl:listener-eval "end\n")
 "USER" :repl-thread 62)
(:write-string "1\n")
(:write-string "1\n")

inferior-lisp
[DEBUG - server:L80] raw header: 000046
[DEBUG - server:L87] raw data: (:emacs-rex (swank-repl:listener-eval "end
") "USER" :repl-thread 62)

[DEBUG - protocol:L69] Processing id: 62 ...
[INFO - protocol:L71] func: swank_repl_listener_eval
[INFO - protocol:L72] args: [u'end\n']
[DEBUG - handler:L216] Acquiring lock: <thread.lock object at 0x7fb27b0df590>
[DEBUG - server:L45] output: 1

[DEBUG - server:L45] output: 1

Fixed in https://github.com/Affonso-Gui/euslime/commit/d246ce658c630ef20b801e2397e22832d38a53d5


Plug in the height inside plots data

Prepping the field to use the height and set it. Makes it easier for both you to review and I to work on resizing the plots vertically if this is done separately.

If I'm understanding correctly, for now, the webview isn't updating the height yet? Aka, the height will stay undefined throughout a session with the plots webview?
Also, looks like some tests need to be corrected.

Right, nothing is used at the moment. Just adding it before any logic so that things don't get too messy.


peerDependencies warnings are annoying

Hello,
I've seen in #102 that you moved large dependencies to the peerDependencies section to avoid library size bloating.
This is not a terrible approach, but people not using the hooks which depend in those packages will always get a warning from yarn or npm about a missing peer dependency (keyboardjs and rebound).
Since this repository is a kind of kitchen sink of react hooks, I think that it would be much better to set up a lerna monorepo. Having one package per hook, that would allow to consume them separately, and having an option for getting them all.
My proposal would be (similar to lodash):
// For a single hook
import useKey from 'react-use.key'

// For all the hooks
import { useKey } from 'react-use'

This way you can define keyboardjs and rebound just to the packages that directly depend from them.
I can submit a PR making it work, but I would like to hear your opinion about this structure first.

How would releases be done? Currently this project uses semantic-release to publish NPM package and GitHub release automatically.
What would you use for monorepo? Bolt, Lerna, Yarn Namespaces?
What does dot . mean in react-use.key? Is it just a character just like any other character?
I don't see lodash being a monorepo. It seems to me just allows you to import different files from same lodash package var object = require('lodash/fp/object');. This is the same what currently react-use does. Or am I missing something?
Is it worth it? Maybe it is better to remove keyboardjs and rebound from peer dependencies? Maybe move those hooks out of this library?

This is not only the problem of "annoying peerDependencies", but the fact it's not possible to import { useX } from 'react-use' without getting an error about missing keyboardjs.
I think the most appropriate way is removing peer deps AND to remove the import of affected hooks from index.js. It should be documented to specifically import useKeyboardJs from 'react-use/lib/useKeyboardJs'. Same for useSpring.
It's not ideal for sure, but at least a majority of users won't be bothered by it and those who need those hooks have to read docs more carefully.

@streamich So what's your opinion on that? Got 4 👍 here. I could provide a PR if you agree with such an approach. It's quite annoying if we cannot use autoimport in VSCode because of those two peer libs.

I would suggest they be made optional dependencies: it seems rather strange to be required to install a keyboard library in order to use this framework at all in react-native.

@xsanda I think optional dependencies does not relate to peer dependencies? Correct me if I'm wrong.
I like the approach @FredyC is proposing. Improving dx for most users while having extra documentation for hooks with peer deps seems like a good trade-off 👍

Sorry, I missed this thread.

@streamich So what's your opinion on that?

I like this idea.

I could provide a PR if you agree with such an approach.

That would be great.

@streamich PR Ready

:tada: This issue has been resolved in version 10.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


VeloxRuntimeError when reading parquet file with only meta data

Describe the bug
This issue is exposed from :
  GlutenDataFrameJoinSuite:
   "SPARK-24690 enables star schema detection even if CBO disabled"

Error：
Job aborted due to stage failure: Task 0 in stage 2.0 failed 1 times, most recent failure: Lost task 0.0 in stage 2.0 (TID 3) (sr250 executor driver): java.lang.RuntimeException: Exception: VeloxRuntimeError
Error Source: RUNTIME
Error Code: INVALID_STATE
Reason: (365 vs. 365)
Retriable: False
Expression: footerLength + 12 < fileLength_
Function: loadFileMetaData
File: ../../velox/dwio/parquet/reader/ParquetReader.cpp
Line: 64
Stack trace:
# 0
# 1
# 2
# 3
# 4
# 5
# 6
# 7
# 8
# 9
# 10
# 11
# 12
# 13
# 14
# 15
# 16

To Reproduce
val path = "/tmp/data/"
spark.range(1).selectExpr("id AS c", "id AS f")
  .write.mode("overwrite").parquet(s"$path")
spark.read.parquet(s"$path").show()

Analysis
This is because Spark will generate two parquet files. One has one row data. The other has no data, but with meta data.
Velox parquet reader will encounter issue, when parse the second parquet file.

Now， it is fixed by https://github.com/oap-project/velox/pull/105


Failing to install trocr on windows

Model I am using (UniLM, MiniLM, LayoutLM ...): UniLM/trocr
I have seen similar issues but they don't seem to get resolved or addressed fully.
I am following the installation steps given here.
It states that the following must be performed to install trocr:
conda create -n trocr python=3.7
conda activate trocr
git clone https://github.com/microsoft/unilm.git
cd unilm
cd trocr
pip install pybind11
pip install -r requirements.txt
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" 'git+https://github.com/NVIDIA/apex.git'

Everything went smoothly until pip install -r requirements.txt where I got:
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Looking in links: https://download.pytorch.org/whl/torch_stable.html, https://dl.fbaipublicfiles.com/detectron2/wheels/cu110/torch1.7/index.html
Collecting git+https://github.com/pytorch/fairseq.git (from -r requirements.txt (line 13))
  Cloning https://github.com/pytorch/fairseq.git to c:\users\user\appdata\local\temp\pip-req-build-0axplepa
  Running command git clone --filter=blob:none --quiet https://github.com/pytorch/fairseq.git 'C:\Users\user\AppData\Local\Temp\pip-req-build-0axplepa'
  Resolved https://github.com/pytorch/fairseq.git to commit 100cd91db19bb27277a06a25eb4154c805b10189
  Running command git submodule update --init --recursive -q
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code:<PHONE_NUMBER>
  ╰─> [0 lines of output]
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code:<PHONE_NUMBER>
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I suspect the error is coming from the last line in requirements.txt git+https://github.com/pytorch/fairseq.git
Because I also tried pip-installing the packages one at a time. A similar error occured after running pip install git+https://github.com/pytorch/fairseq.git.
As I checked the github page, it states that it supports Python version >= 3.8 but we spefically created python 3.7 env. I am not sure it has anything to do with version mismatch but I still couldn't find any way out of this error.
I hope someone can help address this.

@Dod-o, As you seem to be managing the TrOcr, may I have your attention please?


[BUG] ensure proper constexpr of string hashing fix fails to build on 32-bit archs

The fix(strutil.h): ensure proper constexpr of string hashing (https://github.com/AcademySoftwareFoundation/OpenImageIO/pull/3901) commit fails to build on 32-bit archs.
https://github.com/AcademySoftwareFoundation/OpenImageIO/commit/3fd70cfd350d7dea1e1ebd5344e60fe0d6eda584
We noticed this with 2.4 but applies to 2.5 and newer. Reverting this commit alone and we're good building beyond 2.4.12 (upgrading from 2.4.11).
FAILED: src/libutil/CMakeFiles/strutil_test.dir/strutil_test.cpp.o
/pobj/openimageio-<IP_ADDRESS>/bin/c++ -DOIIO_INTERNAL=1 -DUSE_BOOST_FILESYSTEM -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FREETYPE=1 -DUSE_JPEG_TURBO=1 -DUSE_OCIO=1 -DUSE_OPENCOLORIO=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/pobj/openimageio-<IP_ADDRESS>/build-i386/include/OpenImageIO -I/pobj/openimageio-<IP_ADDRESS>/build-i386/include -I/pobj/openimageio-<IP_ADDRESS>/build-i386/src/include -I/pobj/openimageio-<IP_ADDRESS>/OpenImageIO-<IP_ADDRESS>/src/include -isystem /usr/local/include -isystem /usr/local/include/Imath -O2 -pipe -DNDEBUG -std=c++14 -Wall -Wno-unused-function -Wno-overloaded-virtual -Wno-unneeded-internal-declaration -Wno-unused-private-field -Wno-tautological-compare -Qunused-arguments -Wunknown-warning-option -Wno-unused-local-typedefs -Wno-expansion-to-defined -fno-math-errno -MD -MT src/libutil/CMakeFiles/strutil_test.dir/strutil_test.cpp.o -MF src/libutil/CMakeFiles/strutil_test.dir/strutil_test.cpp.o.d -o src/libutil/CMakeFiles/strutil_test.dir/strutil_test.cpp.o -c /pobj/openimageio-<IP_ADDRESS>/OpenImageIO-<IP_ADDRESS>/src/libutil/strutil_test.cpp
/pobj/openimageio-<IP_ADDRESS>/OpenImageIO-<IP_ADDRESS>/src/libutil/strutil_test.cpp:354:22: error: constexpr variable 'hash' must be initialized by a constant expression
    constexpr size_t hash = Strutil::strhash("much longer string");
                     ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/pobj/openimageio-<IP_ADDRESS>/OpenImageIO-<IP_ADDRESS>/src/include/OpenImageIO/detail/farmhash.h:1207:24: note: cannot refer to element -4 of array of 19 elements in a constant expression
  uint32_t a = Fetch(s - 4 + (len >> 1));
                       ^
/pobj/openimageio-<IP_ADDRESS>/OpenImageIO-<IP_ADDRESS>/src/include/OpenImageIO/detail/farmhash.h:1246:9: note: in call to 'Hash32Len13to24(&"much longer string"[0], 18, 0)'
        Hash32Len13to24(s, len);
        ^
/pobj/openimageio-<IP_ADDRESS>/OpenImageIO-<IP_ADDRESS>/src/include/OpenImageIO/detail/farmhash.h:2070:7: note: in call to 'Hash32(&"much longer string"[0], 18)'
      farmhashmk::Hash32(s, len));
      ^
/pobj/openimageio-<IP_ADDRESS>/OpenImageIO-<IP_ADDRESS>/src/include/OpenImageIO/detail/farmhash.h:2100:49: note: in call to 'Hash32(&"much longer string"[0], 18)'
  return sizeof(size_t) == 8 ? Hash64(s, len) : Hash32(s, len);
                                                ^
/pobj/openimageio-<IP_ADDRESS>/OpenImageIO-<IP_ADDRESS>/src/include/OpenImageIO/strutil.h:377:12: note: in call to 'Hash(&"much longer string"[0], 18)'
    return OIIO::farmhash::inlined::Hash(s, len);
           ^
/pobj/openimageio-<IP_ADDRESS>/OpenImageIO-<IP_ADDRESS>/src/include/OpenImageIO/strutil.h:389:25: note: in call to 'strhash(18, &"much longer string"[0])'
    return s.length() ? strhash(s.length(), s.data()) : 0;
                        ^
/pobj/openimageio-<IP_ADDRESS>/OpenImageIO-<IP_ADDRESS>/src/libutil/strutil_test.cpp:354:29: note: in call to 'strhash({&"much longer string"[0], 18})'
    constexpr size_t hash = Strutil::strhash("much longer string");
                            ^
1 error generated.

Proposed fix posted as #4213
We're no longer routinely updating the 2.4 series of releases. But if this is important for you and you can't upgrade to 2.5, I can backport it to 2.4. Let me know.

Proposed fix posted as #4213
We're no longer routinely updating the 2.4 series of releases. But if this is important for you and you can't upgrade to 2.5, I can backport it to 2.4. Let me know.

We can upgrade. I was just pushing an update to 2.5.9 but then this was reported after my 2.4.17 update went in. I just want to at least get the root issue fixed first.

At least backport this to 2.5.

At least backport this to 2.5.

Done. It will be in Monday's scheduled release.

Done. It will be in Monday's scheduled release.

Thanks.


EF Core 2.0 does not support enum array

I have one question for EF Core 2.0 does not support enum array.
I'm not sure why.

2.1 will include support for PostgreSQL native enums (#27), which should also take care of this. I don't really know why 2.0 doesn't support enum arrays (as arrays of integers in the database), please post a full code sample of what's not working.

@roji Thank you for your comment.
I just add the enum array in domain level for orm. But when I get data from dbcontext and get a exception about CLI Type, but change it to int array ,it can works, so I think that is not support of EF Core PostgreSql.

@roji I'm using EF Core 2.1 and Npgsql and I'm still gettting this error.
I have a property of array type
        public CompanyCategory[] Category { get; set; }
where CompanyCategory is
    public enum CompanyCategory     {         Type1,         Type2,     }
I've added this strings
`
NpgsqlConnection.GlobalTypeMapper.MapEnum("companycategory");
        builder.ForNpgsqlHasEnum("companycategory", new[] { "Type1", "Type2" });

`
but "update-database" methods returns me this error

column "Category" cannot be cast automatically to type companycategory[]

So, what I'm doing wrong?

The following works fine with 2.1.0. If you have a an issue please post a complete code sample.
class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Hello World!");

        using (var ctx = new BlogContext())
        {
            ctx.Database.EnsureDeleted();
            ctx.Database.EnsureCreated();

            ctx.Blogs.Add(new Blog { Name = "foo", Mood = Mood.Happy, Moods = new[] { Mood.Happy, Mood.Sad } });
            ctx.SaveChanges();

            var x = ctx.Blogs.Single();
            Console.WriteLine("Moods: " + string.Join(",", x.Moods));
        }

        Console.WriteLine("Done");
    }
}

public class Blog
{
    public int Id { get; set; }
    public string Name { get; set; }
    public Mood Mood { get; set; }
    public Mood[] Moods { get; set; }
}

public class BlogContext : DbContext
{
    public DbSet<Blog> Blogs { get; set; }

    static BlogContext()
    {
        NpgsqlConnection.GlobalTypeMapper.MapEnum<Mood>("mood");
    }

    protected override void OnConfiguring(DbContextOptionsBuilder builder)
    {

        builder.UseNpgsql("Host=localhost;Database=test;Username=npgsql_tests;Password=npgsql_tests");
    }

    protected override void OnModelCreating(ModelBuilder builder)
    {
        builder.Entity<Blog>().ToTable("blogs");
        builder.ForNpgsqlHasEnum("mood", new[] {"happy", "sad"});
    }
}

public enum Mood
{
    Happy,
    Sad
};


RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation:

Trying ModernMT on a 3090 here. All seems to be working, but during trianing I get:
model transformer_mmt_base, criterion LabelSmoothedCrossEntropyCriterion
| num. model params: 60874752 (num. trained: 60874752)
| training on 1 GPUs
| max tokens per GPU = 3072 and max sentences per GPU = None
| no existing checkpoint found /home/loek/modernmt4/runtime/japduttest/tmp/training/_temp_train/nn_model/checkpoint_last.pt
| loading train data for epoch 0
| /home/loek/modernmt4/runtime/japduttest/tmp/training/data_generated train sl-tl 70032 examples
| NOTICE: your device may support faster training with --fp16
Traceback (most recent call last):
File "/home/loek/.local/bin/fairseq-train", line 11, in
sys.exit(cli_main())
File "/home/loek/.local/lib/python3.6/site-packages/fairseq_cli/train.py", line 302, in cli_main
main(args)
File "/home/loek/.local/lib/python3.6/site-packages/fairseq_cli/train.py", line 80, in main
train(args, trainer, task, epoch_itr)
File "/home/loek/.local/lib/python3.6/site-packages/fairseq_cli/train.py", line 121, in train
log_output = trainer.train_step(samples)
File "/home/loek/.local/lib/python3.6/site-packages/fairseq/trainer.py", line 283, in train_step
raise e
File "/home/loek/.local/lib/python3.6/site-packages/fairseq/trainer.py", line 260, in train_step
ignore_grad
File "/home/loek/.local/lib/python3.6/site-packages/fairseq/tasks/fairseq_task.py", line 234, in train_step
optimizer.backward(loss)
File "/home/loek/.local/lib/python3.6/site-packages/fairseq/optim/fairseq_optimizer.py", line 74, in backward
loss.backward()
File "/home/loek/.local/lib/python3.6/site-packages/torch/tensor.py", line 221, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/home/loek/.local/lib/python3.6/site-packages/torch/autograd/init.py", line 132, in backward
allow_unreachable=True)  # allow_unreachable flag
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [25, 104, 1536]], which is output 0 of AddBackward0, is at version 2; expected version 1 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).

Or I guess the real question should be:
How to get this thing running with a 3090? What exact combination of CUDA, cuDN, NVIDIA drivers, fairseq etc. do I need?

No longer applicable.


Let CMake find libcgroup

Allows libcgroup to be found if it is installed in a non standard location

Note this pull request was closed as an unintended side-effect of our removal of the release branch.   Please feel free to file a new pull request against the main branch, If these changes are still relevant.  Thank you!


fix(theme): fix highlight effect when operating with keyboard (#1364)

Summary
fix the problem that when switching the search data up and down by the keyboard's arrow keys, the highlighting effect conflicts with the mouse hover effect, and the highlighted elements are messed up.
closes: #1364
Related Issue

Checklist

[ ] Tests updated (or not required).
[ ] Documentation updated (or not required).

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Please sign CLA~


Add documentation to maintain historical version config mappings

Summary
As per https://github.com/numaproj/numaflow/pull/1683#discussion_r1569625987. We should also in the same file mention that version_mapping.go should be updated after each new release.
Use Cases
After a release, in case developer did not know which files to update.

Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

We should also in the same file mention that version_mapping.go should be updated after each new release.

I think it would be better that mention it in the releasing.md file.


docs/docker-compose: Move to new containers/ dir

The existing docker-compose work is being replaced by ceph-devstack.

@kamoltat I just re-pushed after restoring the docker-compose functionality - please take a look when you've got time!

Was testing out this and ran into an error during bootstrap:
"/bin/sh -c cd /teuthology &&     mkdir ../archive_dir &&     mkdir log &&     chmod +x /teuthology/bootstrap &&     PIP_INSTALL_FLAGS=\"-r requirements.txt\" ./bootstrap" did not complete successfully: exit code: 1
Here is the full traceback of the error:
https://paste.centos.org/view/99a36a5b

@zmc Was testing out this and ran into an error during bootstrap:
"/bin/sh -c cd /teuthology && mkdir ../archive_dir && mkdir log && chmod +x /teuthology/bootstrap && PIP_INSTALL_FLAGS=\"-r requirements.txt\" ./bootstrap" did not complete successfully: exit code: 1
Here is the full traceback of the error:
paste.centos.org/view/99a36a5b
Since max shelf life for centos paste bin is 1 day here is another paste bin:
pastebin.com/QDh3KQcB

145.1       error: could not create 'build/lib/ansible_collections/community/aws/tests/integration/targets/sns/aliases': No space left on device
[...]
145.1 ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device: '/tmp/pip-wheel-9ycfocbi'

@kamoltat thoughts on the latest updates?

@kamoltat Since we can't seem to get this merged, I think it might make more sense to close this PR, copy relevant bits into ceph-devstack.git, and let you maintain the docker-compose bits here.

Closed in favor of #1892


Better compile errors

Non-insane handling of error results in runCompile
tokenErr' is main change, to insert label as main error item instead of token
suppression of meta errors (not finding a meta resulted in "Expected: literal, Expected: atom" that wouldn't get cleared out)
possibly extraneous commit add in reservedAtom that does no harm
better interactive test functions in Compile (ie, _compileStrWith allows running an individual Compile parser)

Re suppression of meta errors -- I don't understand the fix here. I guess I would expect adding a label to meta.
I think the changes in ExpParser look good.

@joelburget The silencing was because I was bothered that meta failures show up with an unrelated failure:
_compileStr "(module f 'k (bless \"abc!\"))"
*** Exception: user error ("abc!": Failure: Syntax error: bad hash:
Base16 decode failed: "abc!", docstr, meta-pairs)

(Note that this is with labels in meta, ie label "meta-pairs" atPairs <|> label "docstr" (try docStr) <|> return def). My goal in silencing them was to just show the error on the bless hash. Here's what it is now:
λ> _compileStr "(module f 'k (bless \"abc!\"))"
*** Exception: user error ("abc!": Failure: Syntax error: bad hash:
Base16 decode failed: "abc!")

However, in responding to you here, I realized that maybe the reason the labels aren't vanishing is because the failed bless is in the same position, which led me to try a failed form in the second position, and sadly it looks like I have more work to do:
λ> _compileStr "(module f 'k (use foo) (bless \"!\"))"
*** Exception: user error ((bless "!"): Failure: Syntax error: Unexpected end of input)

But in any case, I still see those meta errors as a little confusing. We can go with the labels if we think that's more "correct". Note however that the silencing doesn't stop a bad label from reporting correctly:
λ> _compileStr "(module f 'k @meta foobar)"
*** Exception: user error (@meta : Failure: Syntax error: Expected: list)

What's your opinion on including the labels given the above? I probably prefer the silencing but it only affects errors on the first form, so could go either way.

Phew!! Figured out a major problem which is that some is inappropriate for body forms, due to its use of optional -- which causes backtracking on errors, which would then trip <* eof in sexp far above. Fix was to peek forward in stream and deterministically parse all forms found. Finally decent errors!


Add tests for the example KDL files

This PR adds tests for the examples/*.kdl files, to ensure they parse and match the expected contents.
 I went down a rabbit hole and wrote a Rust macro that parses very-nearly-KDL (main differences for the test files being nodes need to be semicolon-terminated if they don't have children, and a node whose title contains non-identifier characters needs to be quoted). This was because I wanted to compare the parsed contents of the files, not just whether or not they parse at all. Though for examples/nuget.kdl I only tested whether or not it parses, since it's large enough that I didn't want to embed a copy of it into the test.
The ci.kdl and nuget.kdl tests currently fail to parse, but the Cargo.kdl test passes.
This PR is based on #4 and #5.

I assume you don't want to merge this until the tests pass. But I'd like to know if you're comfortable with the macro approach taken in the test, I know it's a little ridiculous.
I think I will split off the first 3 commits into a separate PR though.

I submitted #4 and #5 to cover the first 3 commits here. I can't remove the commits from this PR though or it won't compile.

I think I merged things in the wrong order. Sorry! :<

No you were fine. The conflict comes from #3, since it modified a line that shows up in the context of this. I just updated #5 so I'll rebase this on top of that.

aaaand we're good! Thanks a bunch for the PRs, and all the help in general. It's so appreciated!

Haha okay, I didn't realize this was going to get merged before we fixed the test failures 😅

what? CI said it was passing. shakes fist at GitHub

Oh no 😬 I had just force-pushed, so it was still evaluating.

Perhaps the right thing to do right now is just push a quick commit that skips the two tests. I don't remember offhand how to mark a test as skipped though.

Eh. We can fix it when we fix it :) You're the only one hacking on this codebase just now, since I'm spending all my time over on the spec. We can skip it later if it turns into a blocker.

Ok fair enough.


Spiky 4s in names

If a player's name includes a 4, then it renders with a spike above it. See screenshot. Size varies dependant on cell mass. Not critical, just strange.

ctx.lineJoin = "round";```
should fix

@RemoveIt feel free to fix it if you may.

@IgorAntun Ok but later I need something to eat :fork_and_knife:

Fixed as of #116


Anyone can provide video tutorial on setup?

I would appreciate if a video tutorial is posted regarding installation of PyKinect2.
Using directly pip install pykinect2 works but fails to run the examples provided.

even used Anaconda 32-bit still same issue arise.

It works on python 3.7

This happens due to a deprecated function time.clock() in python 3.8 which is present in the PyKinectRuntime.py
To solve the issue navigate to path_to\pykinect2\PyKinectRuntime.py
Find and replace all instances of time.clock() with time.perf_counter()


如何解决安全问题。How ognl solve safety problem

我在使用的时候发现ognl的权限很大，我希望的是他仅能操作put进上下文的类及子类和java.lang类。When I use it, I find that ognl has great permissions. What I hope is that it can only operate classes and subclasses of put into context and java.lang classes

我通过重写AbstractMemberAccess实现了这个方式，但为什么不集成在包里呢。I achieved this by rewriting abstractmemberaccess, but why not integrate it into the package

可以看到有黑名单，但是我无法增加或者删除条目link,是否可以对不同的应用场景增加不同的特性呢。You can see that there are blacklists link, but I can't add or delete entries. Can I add different features to different application scenarios

Not sure if I understood your question but you can implement MemberAccess and have a full control depending on your needs. OGNL is used in different scenarios and such approach allows adjusts its behaviour to given projects' needs, like it was done in Apache Struts for example.

使用 MemberAccess 确实让用户可以更灵活的控制。但没有提供一些有效的安全解决方案我认为是一种懒政，相当于说嗨这个问题我抛给你了，因此提几点建议。Use [memberaccess]（ https://github.com/jkuhnert/ognl/blob/master/docs/DeveloperGuide.md#member -Access) does allow users to control more flexibly. But I think it's a lazy policy not to provide some effective security solutions, which is equivalent to saying hey, I threw this problem to you, so I put forward some suggestions.
我的使用场景是只允许ognl操作有限的类，我是这么做的: My usage scenario is to allow only classes with limited ognl operations, which is what I do:

可以增加字节码扫描，只允许安全的set/get方法, 不允许对外调用.Bytecode scanning can be added. Only safe set/get methods are allowed, and external calls are not allowed
可以增加方法白名单和黑名单来控制.You can add methods white list and blacklist to control
可以增加对象操作空间，即ognl只能操作受上下文管理的类.You can increase the object operation space, that is, ognl can only operate on classes under context management.

What you suggest is already implemented using JVM SecurityManager and also in sandbox, check this PR #69


Translate includes/default-storage-class-prereqs.md in Japanese

This is a...

[x]  Feature Request
[ ]  Bug Report

Problem:
No includes/default-storage-class-prereqs.md in Japanese.
Proposed Solution:
Translate and update includes/default-storage-class-prereqs.md in Japanese.
Page to Update:
eg. https://kubernetes.io/docs/tasks/run-application/run-single-instance-stateful-application/
related #13668

/language ja
/milestone 1.14-ja.1

/assign

/close


Execution failed for task ':document_file_save_plus:compileDebugKotlin'.

Android Build Failed after upgrade to Flutter 3.0.0.
Execution failed for task ':document_file_save_plus:compileDebugKotlin'.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

#2 this fixed but PR is still not accepted.

Execution failed for task ':document_file_save_plus:compileReleaseKotlin'.
i am facing the same issue it is not fixed

sorry Guys I'm little busy these days
I have merged the pull request

please check the latest version


Add Accelerator specific interfaces and there respective implementations

Description
This PR is a first's part of the set of PR's which will be raised for adding GPU support #1312
This PR adds Accelerator specific interfaces and there respective implementations
This PR is build on top of #1313, so it needs to be merged after merging #1313
Fixes #1312
Type of change

[ ] Bug fix
[ ] New feature
[ ] Docs update
[ ] Breaking change (What changes might users need to make in their application due to this PR?)
[ ] Requires DB changes

How has this been tested?
Tests will be added in a subsequent PR

[ ] New Test X
[ ] Functional testsuite

Test Configuration

Kubernetes clusters tested on:

Checklist :dart:

[ ] Followed coding guidelines
[ ] Comments added
[ ] Dependent changes merged
[ ] Documentation updated
[ ] Tests added or updated

Additional information
None

@bharathappali can you please rebase this to mvp_demo instead of master

Apologies for the overlook, I have rebased to mvp_demo. Thanks @dinogun


Exported ZIP contains duplicate files

Godot version:
3.2.3.stable.mono
OS/device including version:
Win10
Issue description:
I use filters to export my resources, like this:

I exported it as zip, and found it contains duplicate .import files:

Steps to reproduce:
Minimal reproduction project:
export_bug.zip
Note: I know I shouldn't export resources using filters, but in my actual project I want to export 200 out of more than 600 resources. It's not possible to select resources one by one.

Seems like this is fixed in master and the 3.2 branch

Closing per @Dragoncraft89's comment. Please comment if you can still reproduce this issue.


Replace link to backup documentation in release notes to fix sphinx linkcheck

Summary of the changes / Why this improves CrateDB
Our sphinx interlink checks are failing on the URL https://crate.io/a/backing-up-and-restoring-cratedb/
which is returning occasional 403s for reasons we're not totally sure about.
In the meantime, this PR changes this URL to a suitable equivalent in our own
documentation, to (hopefully) get the interlink test to pass.
Checklist

[x] Added an entry in CHANGES.txt for user facing changes
[x] Updated documentation & sql_features table for user facing changes
[x] Touched code is covered by tests
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

Ok, the linkcheck passes (http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateOptionalTimeParser() is failing because Sourceforge just went into maintainance :sweat_smile: )


Showcase https://lutheranconfessions.org/ no longer works

hello,
the url https://lutheranconfessions.org/ no longer seems to work.
perhaps we should consider removing it.

@remysheppard Can you confirm ?


<IP_ADDRESS>:27017: not authorized for query on telesanteclik.users

Hello ,
I have set my configration in .env file.
.env
DB_CONNECTION=mongodb
DB_HOST=<IP_ADDRESS>
DB_DATABASE=telesanteclik
DB_USERNAME=odentoclick
DB_PASSWORD=123456
And i have use mongod --auth command for authentication
But when i will execute the code error like below,
"<IP_ADDRESS>:27017: not authorized for query on telesanteclik.users"
it's working fine connection in tools [No SQL manager].
Please help me.
Thanks in advance.

Have you solved this issue ? am running into the same problem !

yes i have resolved that issue,
do like below example,
use admin
db.createUser(
{
user: "admin",
pwd: "password",
roles: [ { role: "root", db: "admin" } ]
}
);
db.createUser(
{
user: "user",
pwd: "password",
roles: [ { role: "redwriteDb", db: "your-db" } ]
}
);
and i have resolved that issue

@sharmahemal
am running into the same problem  too!
your mongodb service did not open the certification ???   --auth


Error logging in in sandboxed app

Checklist

[X] The issue can be reproduced in the auth0_flutter sample app (or N/A).
[X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
[X] I have looked into the API documentation and have not found a suitable solution or answer.
[X] I have searched the issues and have not found a suitable solution or answer.
[X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
[X] I agree to the terms within the Auth0 Code of Conduct.

Description
After logging in via google in a safari instance that gets spawned, I receive the following error
flutter: ERROR: OTHER: An unexpected error occurred. CAUSE: Unable to complete the operation. CAUSE: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <92FD24A9-5674-4FC4-B0DE-EFF882B8A03B>.<1>, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=1, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <92FD24A9-5674-4FC4-B0DE-EFF882B8A03B>.<1>"
), _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0[802.11], ipv4, dns, uses wifi}

I think the issue is returning data from the safari instance to the test app.
From what I've seen, we need to add to the entitlements to fix this but I haven't found one that works. I've tried com.apple.security.device.serial and com.apple.security.network.client, but no luck so far.
Both ios and android work as intended. Only macos produces this issue.
Reproduction

I believe this demo is sufficient for reproducing the issue.
Build for macos.
Try logging in using a connection.

Additional context
No response
auth0_flutter version
^1.5.0
Flutter version
^3.13.0
Platform
iOS
Platform version(s)
macOS 14.2.1

Hi @Cpruce, can you please confirm you can indeed reproduce this on the example app?

Hi @Widcket, thanks! The example app worked! I found what the issue was too :)
I needed to set Outgoing Connections (Client) in App Sandbox (Debug and Profile)


StringBatchOperations return null

Hi,
In both version 2.18 and 2.19,  StringBatchOperations seems to not send the correct ResponseList and send return result: null
Here is the simple client call:
        public Task<ResponseList<SourceString>> BulkEditSourceStrings(int projectId, List<StringBatchOpPatch> patches)
        {
            return _client.SourceStrings.StringBatchOperations(projectId, patches);
        }

And there is how we created patches:
 var patches = sourceStrings.Select(sourceString => new CrowdinSourceStrings.StringBatchOpPatch()
            {
                Operation = Crowdin.Api.PatchOperation.Add,
                Value = new CrowdinSourceStrings.SourceString()
                {
                    Identifier = "test",
                    Text = "test",
                    Context = "test",
                    FileId = 1,
                    IsHidden = false
                }
            }
                ).ToList();

            var response = await _crowdinClientWrapper.BulkEditSourceStrings(projectId, patches);

Patches seem to be well formatted if we consider it's required to be only an array of {Crowdin.Api.SourceStrings.StringBatchOpPatch} following https://developer.crowdin.com/api/v2/#operation/api.projects.strings.post
High chance the feature is simply not working, since my implementation is simple. Let me know if you need more informations !

@kevinLourencoDev thanks a lot for the details and the confirmation!

@andrii-bodnar do you have any visibility on this error base on the priority of it? Would you need more help to fix it?

@kevinLourencoDev since this is an API Client issue, we'd be happy to accept contributions!
Feel free to read the contributing guidelines for more details.

Hi @kevinLourencoDev,
Could you try using this
var patches = sourceStrings.Select(sourceString => new CrowdinSourceStrings.StringBatchOpPatch()
           {
               Operation = Crowdin.Api.PatchOperation.Add,
               Value = new CrowdinSourceStrings.AddStringRequest()
               {
                   Identifier = "test",
                   Text = "test",
                   Context = "test",
                   FileId = 1,
                   IsHidden = false
               }
           }
               ).ToList();

           var response = await _crowdinClientWrapper.BulkEditSourceStrings(projectId, patches);

As new source strings are added using AddStringRequest Object rather than SourceString.

Hi @andrii-bodnar, I think the user must not be able to instantiate a source string object. It should always come from API only.


Understand your Status keys

This article explains the different keys a user handles in the Status app: chat keys, community keys, and wallet keys. The article also provides good practices to manage these keys.

Duplicate https://github.com/status-im/help.status.im/issues/112


Fix/namespace gssp accounts and bring back unused vars

[ ] done renaming the namespace of getServerSideProps for accounts
[ ] bringing back variables said above will have these eslint warnings but can still continue to push changes


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-k8s-27-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2555

Questions ?
Please refer to the Backport tool documentation


Rolling damage directly via api from an activity throws an error.

This activity normally consumes a spell slot, which is probably relevant.

Not able to re-produce this, is there any other information you can provide that can help narrow down what causes this?
The only update that rolling damage calls is to update the flag to save the last chosen damage type, and that uses the standard setFlag method so I don't think that would be causing this issue. I've tested this on spells that use spells slots, including ones with multiple damage types.

My instinct told me that the item was perhaps deleted between the roll and the update, but that would result in a different error. Seems like the item was, somehow, cloned without keepId: true.


How to optimize the population fitness step during a SATAY experiment depending on what we want to know from it?

Depending on what you want to measure, different decisions might be made during the growth phase of the SATAY experiment.

Werner suggested that in synthetic media, WT cells grow slower relative to bem1del cells and other less fit cells. Therefore, this could be used to increase the resolution between bem1del cells and lethal transposon insertions (the resolution in the less fit cell regime). On the other hand, this will decrease the resolution and relative fitness comparison between WT cells and cells with a positive mutation or cells with neutral mutations.

On a side note, growth in a flask might be different from growth in the biotek. As in a flask there are more cells there is a higher chance for a mutation to occur and sweep the population. Take this in mind while designing the experiment and deciding on the growth time.

This is how looks like a typical reseed step in SATAY, where you grow the cells in a 3L flask of YPD-ade media.

The source of the figure is the documented protocol from the group of ETH who set up this technique for yeast : https://sites.google.com/site/satayusers/complete-protocol/liquid-library-generation-w303

Ah that is interesting, thanks Leila!

In comment to the idea of using synthetic media; Enzo reminded me that SATAY experiments are performed in synthetic media anyway, so we should note that in the analysis of the relative fitness, the difference between WT and negative transposon insertions is influenced by this effect.


[Bug] Custom materialization not respected when passed via dbt_project.yaml or model.yaml

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
models/dummy/test.py
def model(dbt, session):
    dbt.config(materialized="test_mat")
    return None

dbt_project.yml
...
models:
  dummy:
    test:
      +materialized: test_mat

When the dbt.config(materialized="test_mat") is removed from models/dummy/test.py the materialization code is not called
Expected Behavior
materialized config is respected when specified in dbt_project.yml and model.yml not only in the actual model
Steps To Reproduce
https://gist.github.com/rbs392/5e9d4a29aed63e385839c4f354ce0b56
Relevant log output
when run with materialized config from dbt_project.yml

12:43:33  Running with dbt=1.7.9
12:43:34  Registered adapter: databricks=1.7.8
12:43:34  Unable to do partial parsing because a project config has changed
12:43:35  Found 1 model, 0 sources, 0 exposures, 0 metrics, 536 macros, 0 groups, 0 semantic models
12:43:35
12:43:36  Concurrency: 1 threads (target='dev')
12:43:36
12:43:36  1 of 1 START python table model dummy.test ...................................... [RUN]
12:43:36  Databricks adapter: Job submission response={'id': '1079e76b1aa64c14b84d407a13fbfe4f'}
12:43:47  1 of 1 ERROR creating python table model dummy.test ............................. [ERROR in 10.99s]
12:43:47
12:43:47  Finished running 1 table model in 0 hours 0 minutes and 12.51 seconds (12.51s).
12:43:47
12:43:47  Completed with 1 error and 0 warnings:

when run with materialized set in model file
12:44:03  Running with dbt=1.7.9
12:44:05  Registered adapter: databricks=1.7.8
12:44:05  Found 1 model, 0 sources, 0 exposures, 0 metrics, 536 macros, 0 groups, 0 semantic models
12:44:05
12:44:05  Concurrency: 1 threads (target='dev')
12:44:05
12:44:05  1 of 1 START python test_mat model dummy.test ................................... [RUN]
12:44:05  1 of 1 ERROR creating python test_mat model dummy.test .......................... [ERROR in 0.04s]
12:44:06
12:44:06  Finished running 1 test_mat model in 0 hours 0 minutes and 1.40 seconds (1.40s).
12:44:06
12:44:06  Completed with 1 error and 0 warnings:

Environment
- OS: Mac os
- Python: 3.9.5
- dbt: 1.7.9
- dbt-databricks: 1.7.8

Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
dbt-databricks

Thanks for reporting this @rbs392 and providing a nice example @rbs392 👍
I was able to reproduce what you described using dbt-duckdb, and I've included a reproduction case for each below:

materialized config in dbt_project.yml works for SQL models, but not for python models.
materialized config in a .yml works for SQL models, but not for python models.

Both of these are stated as being supported options in the documentation here.
Reprex
Case 1: dbt_project.yml
models:
  my_project:
    dummy:
      test:
        +materialized: test_mat

Case 2: models/_models.yml
models:
  - name: test
    config:
      materialized: test_mat

Executing dbt run -s test should give the following error message:
Compilation Error in model test (models/dummy/test.sql)
  Not implemented

Custom materialization macro
macros/mat.sql
{% materialization test_mat, supported_languages=['python', 'sql'] %}
    {% do exceptions.raise_compiler_error("Not implemented") %}
{% endmaterialization %}

SQL model vs. Python model
Both of the two cases above behave as expected when there is a SQL named models/dummy/test.sql like this:
select 1 as id

But neither behaves as expected when there is a Python named models/dummy/test.py like this:
def model(dbt, session):
    return None

Hi @dbeatty10 thanks for the update. Any timeline on when the issue is expected to be fixed?

@rbs392 We don't have any timeline for this. In the meantime, we'd suggest using the workaround you identified.
Workaround
Add the materialized config into the model-level configuration with the .py file like this:
models/dummy/test.py
def model(dbt, session):
    dbt.config(materialized="test_mat")
    return None

This might have the same root cause as https://github.com/dbt-labs/dbt-core/issues/8520, and it might be resolved by https://github.com/dbt-labs/dbt-core/pull/8538

Hi @rbs392, at my company we faced the same issue and we also work with Databricks. My fix in #8538 work for us, but the PR might need a rebase because we are not using version 1.7 of dbt-core.

Thanks for your PR in https://github.com/dbt-labs/dbt-core/pull/8538 @devmessias ! We've got it queued up for an initial code review.


flow: Upgrade to v0.141

Normally, we'd only upgrade Flow along with React Native, because
otherwise we'd see new errors flagged in node_modules/react-native,
and we don't want to have to suppress them. But we get no such
errors this time!
See the changelog:
https://github.com/facebook/flow/blob/main/Changelog.md#01410
In particular, this one is interesting --

Improved inference of chained generic method calls, such as
Array methods. For example, given
[1, 2].map(a => a).forEach(b => b)
, Flow now infers that b is a number rather than
any | number.

-- because that issue has been a major source of complaints in our
Flow coverage report:
https://github.com/zulip/zulip-mobile/issues/2052#issuecomment-934685281

Thanks! I am embarrassed to say that I actually have a draft branch a few months old doing much the same thing as this -- I've just procrastinated completing and sending it. Here's the branch, after I rebased it just now:
https://github.com/zulip/zulip-mobile/compare/main...gnprice:dev-flow141
Take a look there for a bit more discussion of some of these. There's just one non-comment difference:
https://github.com/gnprice/zulip-mobile/commit/76d61014bc7e396627307fc0208344bc6df2aa3f
And then you can also see the bit that got the branch stuck in procrastination for me, which is that the 'stream': 'stream' thing nerd-sniped me into pinning down a short repro and variations for the Flow issue:
https://github.com/gnprice/zulip-mobile/commit/166f7c40ac762e5fb133d516be3daf00a04cf635
and I've been meaning to report that in the Flow tracker but haven't.
This is a good prompt for me to just wrap that up. I think what I'll do is go ahead and report that issue (or find if it exists, and in that case comment with my repro and debugging cases), so I can link it from the commit message -- I've basically already done the hard part of this by reducing it to those cases.
(The alternative strategy would be to say that since reporting the issue is taking a while, it shouldn't block taking the upgrade; can always update the comment with a link after reporting it later. But I think it will actually be pretty quick if I just do it, so I'll do it now.)

OK, sent #5219; please take a look. Sorry for the collision!

But I think it will actually be pretty quick if I just do it, so I'll do it now.

It wasn't quite that quick, partly because as I was writing up the issue I realized that I could reduce the repro case further -- the spread could be eliminated. About an hour total, so still good to have simply gone and done.

nerd-sniped

I guess that was coined in https://xkcd.com/978/ ? So I guess now I have a name for this thing that I'm also vulnerable to. 🤣😛

Great! Closing in favor of #5219; your PR is better. 😛

I am embarrassed to say that I actually have a draft branch a few months old doing much the same thing as this

Don't worry! Your #5219 is better; I'll be glad to have that merged.

I guess that was coined in https://xkcd.com/356/ ?

Yeah, seems likely! I hear the term regularly from friends. But that comic's number dates it to like 2007 or 2008; I can't say I was hearing it before then, and lots of my friends were reading xkcd by that time.


Is it possible to mark songs as favorites? or copy song name to clipboard

My use case is this: when I hear something I like, I find it in a YouTube music and like it. Now I have to retype the title by hand. I would like to either copy the name to the clipboard, or automatically save the name to a text file.
of course the best solution would be integration with youtube-music spotify or other services. but I understand that this is too time consuming, and I would really like your product to remain as concise as it is now
as far as I understand, now clicking on the name of the song in the context menu, we get the opening of apple music, in which, as a rule, nothing happens if you do not have a subscription. I think it would be great to open a google search query instead.
sorry for my confusion. I really miss the ability to like or copy the song name

Thanks for sharing your use case! I think we already have a feature suggestion that can work for you: https://github.com/ealeksandrov/SomaFM-miniplayer/issues/4#issuecomment-602488095.
It's not a small enhancement, so I won't promise to do it soon, but I'll look into it.


Slack's "file_shared" event not triggered in channels

I'm using botkit 0.2.2 with Slack via the RTM-API and want to my bot to react to files being uploaded/shared by users in groups and channels.
The following code works fine for listening to "file_shared" events in groups:
controller.on('file_shared', (bot, file) => {
  console.log(file.file_id);
});

But when a file is uploaded/shared in a channel then the event is not being triggered.
According to the Slack API, the "file_shared" event is the one that should be triggered in my use case. I also tried other event types like "file_created" and "file_public" to make sure that I don't misinterpret anything but as expected that didn't work as well.
I'm running botkit on node 6.5 within in a multi-team setup managed by beepboop-botkit.

I have the same problem with latest master, it even doesn't not work in groups

Try listening to file_share (exactly the same minus the letter d). They are two different types of events, and the slack docs does not easily differentiate between the two. I asked their support about it last week, they said they would update the docs perhaps to make it more clear.
I ran into these twin events while testing my fork of the Events API, and was confused for a while.
file_share I think is the message that gets sent into a chat, the visible one. Two things happen when files are shared, an event is fired and a message is sent into the destination chat. It seems right now it is more reliable to listen for the file_share event (at least in my limited testing).
Oddly enough, the file_share json data contains waaaay more metadata than a file_shared even. The file_shared event only has the file_id to be used with the slack file API to lookup the associated metadata and url.

@christian-bick Did it fix your issue?

I fixed my issue,
Thanks

Closing as resolved


Teach merchant_token_prop about the name field

Motivation

We were not handling the fact that this method accepts an optional name
keyword parameter, which can be used to customize the name to something that's
not merchant.
Test plan

See included automated tests.
Those at Stripe can see that this is how this method works by looking at
this code:
http://go/GnhimGWM

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_Pp53XeicSHxKAY
→ https://go/builds/bui_Pp53JXYmG1EJxh
→ https://go/builds/bui_Pp532Le3BQk4sG