Problems training a Portuguese quantizer model

Greetings,
I've followed all the steps on the guide to train a Portuguese dataset, but unfortunately, across epochs, either the model did not really clone the voice, or provided voices that did resemble the target voice but produced  bad speech outputs like screeching, saying things too slowly or "sounding drunk". I could not get a single model that managed to consistently produce good speeches with voices closely resembling the target voice despite training on a dataset of a little over 3200 samples up to 30 epochs (I tested every single epoch). For the dataset, I am using some public domain classic literature books and the Bible.
What I am doing wrong, and what can I do to improve the training and get better models?

Try using a different wav2vec model, maybe one that's better for languages aside from english.
Also check your dataset, does it sound normal? If not, that's a bark issue, not really anything i can do about that.

Try using a different wav2vec model, maybe one that's better for languages aside from english. Also check your dataset, does it sound normal? If not, that's a bark issue, not really anything i can do about that.

The audio from the dataset are mostly OK (it is what you would expect from Bark, a mixed bag; there is indeed bad audio in there but most of them are good in my book, as in, if the cloning model could produce those outputs I would be satisfied, unfortunately it can't)
Also, I was using a Hubert model, not Wav2Vec... But I created custom code to load this model:
https://huggingface.co/Edresson/wav2vec2-large-xlsr-coraa-portuguese
Does this repo already has code to load Wav2Vec models?

@gitmylo I modified the preparation script to use Wav2Rec instead of Hubert, however, the semantic features files are in a different format that is accepted by the training script that reads the Hubert-generated files instead...
Can you give me a hand on this?

def prepare2(path,model):
    prepared = os.path.join(path, 'prepared')
    ready = os.path.join(path, 'ready')
    model_name = "Edresson/wav2vec2-large-xlsr-coraa-portuguese"
    processor = Wav2Vec2Processor.from_pretrained(model_name)
    model = Wav2Vec2Model.from_pretrained(model_name)
    if not os.path.isdir(ready):
        os.mkdir(ready)

    wav_string = '_wav.wav'
    sem_string = '_semantic.npy'
    for input_file in os.listdir(prepared):
        input_path = os.path.join(prepared, input_file)
        if input_file.endswith(wav_string):
            file_num = int(input_file[:-len(wav_string)])
            fname = f'{file_num}_semantic_features.npy'
            print('Processing', input_file)
            if os.path.isfile(fname):
                continue
            wav, sr = torchaudio.load(input_path)

            if wav.shape[0] == 2:  # Stereo to mono if needed
                wav = wav.mean(dim=0)
            resampler = torchaudio.transforms.Resample(orig_freq=sr, new_freq=16000)  # Move this line here
            wav = resampler(wav)  # Resample to 16,000 Hz
            inputs = processor(wav.squeeze().numpy(), return_tensors="pt", padding=True, sampling_rate=16000)
            with torch.no_grad():
                outputs = model(**inputs)
            out_array = outputs.last_hidden_state.cpu().numpy()
            numpy.save(os.path.join(ready, fname), out_array)
        elif input_file.endswith(sem_string):
            fname = os.path.join(ready, input_file)
            if os.path.isfile(fname):
                continue
            shutil.copy(input_path, fname)
    print('All set! We\'re ready to train!')

check the shape of the outputs of wav2vec, and when creating the HuBERT quantizer model, set the CustomTokenizer's input_size to that value.

check the shape of the outputs of wav2vec, and when creating the HuBERT quantizer model, set the CustomTokenizer's input_size to that value.

Here are the outputs of shape and hidden size:
(venv) [user@user bark-voice-cloning-HuBERT-quantizer]$ python process.py --path Literature --mode prepare2
Processing 0_wav.wav
Shape of Wav2Vec model output: (1, 325, 1024)
Hidden size (last dimension of model output): 1024
Processing 1_wav.wav
Shape of Wav2Vec model output: (1, 642, 1024)
Hidden size (last dimension of model output): 1024
Processing 2_wav.wav
Shape of Wav2Vec model output: (1, 357, 1024)
Hidden size (last dimension of model output): 1024
Processing 3_wav.wav
Shape of Wav2Vec model output: (1, 689, 1024)
Hidden size (last dimension of model output): 1024
Processing 4_wav.wav

From what I understand, you asked me to do this:
class CustomTokenizer(nn.Module):
    def __init__(self, hidden_size=1024, input_size=1024, output_size=10000, version=0):
        super(CustomTokenizer, self).__init__()
        input_size = 1024
        next_size = input_size
(...)

However, this change alone is not enough, as it results in errors:
(venv) [user@user bark-voice-cloning-HuBERT-quantizer]$ python process.py --path Literature --mode train
Creating new model.
Traceback (most recent call last):
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/process.py", line 19, in <module>
    auto_train(path, load_model=os.path.join(path, 'model.pth'), save_epochs=args.train_save_epochs)
  File "/run/myssd/NECTAC1TBSSD/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/hubert/customtokenizer.py", line 184, in auto_train
    model_training.train_step(torch.tensor(x).to('cuda'), torch.tensor(y).to('cuda'), j % 50 == 0)  # Print loss every 50 steps
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/hubert/customtokenizer.py", line 86, in train_step
    loss = lossfunc(y_pred, y_train_hot)
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/venv/lib/python3.10/site-packages/torch/nn/modules/loss.py", line 1174, in forward
    return F.cross_entropy(input, target, weight=self.weight,
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/venv/lib/python3.10/site-packages/torch/nn/functional.py", line 3029, in cross_entropy
    return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
RuntimeError: expected scalar type Long but found Float

Even after modifying the train_step method, removing the lines of code that were creating a one-hot vector from y_train and adding a line to convert y_train to a Long tensor using the long() method resulted in an error:
(venv) [user@user bark-voice-cloning-HuBERT-quantizer]$ python process.py --path Literature --mode train
Creating new model.
Traceback (most recent call last):
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/process.py", line 19, in <module>
    auto_train(path, load_model=os.path.join(path, 'model.pth'), save_epochs=args.train_save_epochs)
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/hubert/customtokenizer.py", line 181, in auto_train
    model_training.train_step(torch.tensor(x).to('cuda'), torch.tensor(y).to('cuda'), j % 50 == 0)  # Print loss every 50 steps
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/hubert/customtokenizer.py", line 82, in train_step
    loss = lossfunc(y_pred, y_train)
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/venv/lib/python3.10/site-packages/torch/nn/modules/loss.py", line 1174, in forward
    return F.cross_entropy(input, target, weight=self.weight,
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/venv/lib/python3.10/site-packages/torch/nn/functional.py", line 3029, in cross_entropy
    return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
RuntimeError: Expected target size [1, 10000], got [1]

Any ideas?

You made a mistake by modifying the customtokenizer, it doesn't require any modifications. this is the line that requires modifications, you need to add input_size=1024 to this line.
Doing it in the way you did above, will cause incompatibility with other models, which would prevent you from loading it with the standard automatic loader function load_from_checkpoint.
And removing the one-hot is obviously not a great idea. it converts a tensor from indicating a position, to an absolute position. Changing the shape from (n,) to (n, 10000).

You made a mistake by modifying the customtokenizer, it doesn't require any modifications. this is the line that requires modifications, you need to add input_size=1024 to this line.
Doing it in the way you did above, will cause incompatibility with other models, which would prevent you from loading it with the standard automatic loader function load_from_checkpoint.
And removing the one-hot is obviously not a great idea. it converts a tensor from indicating a position, to an absolute position. Changing the shape from (n,) to (n, 10000).

I did that simple change, however, this problem occurs in the script:

Creating new model.
Traceback (most recent call last):
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/process.py", line 19, in <module>
    auto_train(path, load_model=os.path.join(path, 'model.pth'), save_epochs=args.train_save_epochs)
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/hubert/customtokenizer.py", line 183, in auto_train
    model_training.train_step(torch.tensor(x).to('cuda'), torch.tensor(y).to('cuda'), j % 50 == 0)  # Print loss every 50 steps
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/hubert/customtokenizer.py", line 85, in train_step
    loss = lossfunc(y_pred, y_train_hot)
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/venv/lib/python3.10/site-packages/torch/nn/modules/loss.py", line 1174, in forward
    return F.cross_entropy(input, target, weight=self.weight,
  File "/run/media/myssd/bark-data-gen/bark-voice-cloning-HuBERT-quantizer/venv/lib/python3.10/site-packages/torch/nn/functional.py", line 3029, in cross_entropy
    return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
RuntimeError: expected scalar type Long but found Float

The only modification in the script is:
    model_training = CustomTokenizer(version=1,input_size=1024).to('cuda')

Make sure the data types are correct, and are correctly converted if needed.

Make sure the data types are correct, and are correctly converted if needed.

Ok, so I just added .long() to this line:
    loss = lossfunc(y_pred, y_train_hot.long())

And it started training... With suspiciously really low loss:
Creating new model.
Loss 5.78387975692749
Loss 0.004742730874568224
Loss 0.003009543986991048
Loss 0.001717338222078979
Loss 0.0006962093175388873
Loss 0.0011351052671670914
Loss 0.0004761719610542059
Loss 0.001148720970377326
Loss 0.0010141769889742136
Loss 0.0012041080044582486
Loss 0.000879546336364001
Loss 0.0008022373076528311
Loss 0.0008515058434568346
Loss 0.000839213200379163
Loss 0.0010397955775260925
Loss 0.00031494328868575394
Loss 0.0005737667088396847
Loss 0.0006951214163564146
Loss 0.0004764270270243287
Loss 0.0009404604788869619
Loss 0.0004901166539639235
Loss 0.0010941472137346864
Loss 0.0011294299038127065
Loss 0.0009590768604539335
Loss 0.0010553631000220776
Loss 0.0011014299234375358
Loss 0.00040772976353764534
Loss 0.0008627119241282344
(...)
So I went to test the model...
And then this happened:
Loading Hubert ./models/hubert/hubert.pt
Loading Custom Hubert Tokenizer ./models/hubert/pt_tokenizer.pth
Traceback (most recent call last):
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/gradio/routes.py", line 439, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1384, in process_api
    result = await self.call_function(
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1089, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/gradio/utils.py", line 700, in wrapper
    response = f(*args, **kwargs)
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/gradio/utils.py", line 700, in wrapper
    response = f(*args, **kwargs)
  File "/home/user/Coding/bark-gui/cloning/clonevoice.py", line 48, in clone_voice
    semantic_tokens = tokenizer.get_token(semantic_vectors)
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/user/Coding/bark-gui/bark/hubert/customtokenizer.py", line 55, in get_token
    return torch.argmax(self(x), dim=1)
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/user/Coding/bark-gui/bark/hubert/customtokenizer.py", line 40, in forward
    x, _ = self.lstm(x)
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/torch/nn/modules/rnn.py", line 810, in forward
    self.check_forward_args(input, hx, batch_sizes)
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/torch/nn/modules/rnn.py", line 730, in check_forward_args
    self.check_input(input, batch_sizes)
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/torch/nn/modules/rnn.py", line 218, in check_input
    raise RuntimeError(
RuntimeError: input.size(-1) must be equal to input_size. Expected 1024, got 768

So I changed everything related to input_size to 768 and this happened:
Loading Hubert ./models/hubert/hubert.pt
Loading Custom Hubert Tokenizer ./models/hubert/en_tokenizer.pth
Traceback (most recent call last):
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/gradio/routes.py", line 439, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1384, in process_api
    result = await self.call_function(
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1089, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/gradio/utils.py", line 700, in wrapper
    response = f(*args, **kwargs)
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/gradio/utils.py", line 700, in wrapper
    response = f(*args, **kwargs)
  File "/home/user/Coding/bark-gui/cloning/clonevoice.py", line 34, in clone_voice
    tokenizer = CustomTokenizer.load_from_checkpoint(f'./models/hubert/{tokenizer_lang}_tokenizer.pth').to(device)  # Automatically uses the right layers
  File "/home/user/Coding/bark-gui/bark/hubert/customtokenizer.py", line 122, in load_from_checkpoint
    model.load_state_dict(torch.load(path))
  File "/home/user/Coding/bark-gui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2041, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for CustomTokenizer:
        size mismatch for lstm.weight_ih_l0: copying a param with shape torch.Size([4096, 1024]) from checkpoint, the shape in current model is torch.Size([4096, 768]).

What do you suggest? Am I missing something?

This issue can be closed. Already trained a portuguese quantizer.
24 epochs, 0.0005 LR, over 4000 utterances.
Model weights:
https://huggingface.co/MadVoyager/bark-voice-cloning-portuguese-HuBERT-quantizer
Dataset:
https://huggingface.co/datasets/MadVoyager/bark-portuguese-semantic-wav-training/

@Subarasheese Can help me to train Italian? Can you write steps do you perform?
Thanks

@Subarasheese  Beleza? cara, eu tô utilizando teus weights, mas percebi um Sotaque puxado para o paulista,isso é devido ao dataset?


Cannot exclude additional properties on JSON column (NULL exception)

I have excluded XML column and included JSON column, and then I wanted to remove additional properties from JSON column:
            var columnOptions = new ColumnOptions();
            // Don't include the Properties XML column.
            columnOptions.Store.Remove(StandardColumn.Properties);
            // Do include the log event data as JSON.
            columnOptions.Store.Add(StandardColumn.LogEvent);
            columnOptions.LogEvent.ExcludeAdditionalProperties = true;

This configuration throws an exception and nothing is logged:
System.NullReferenceException occurred
Message: Exception thrown: 'System.NullReferenceException' in Serilog.Sinks.MSSqlServer.dll
Additional information: Object reference not set to an instance of an object.

I have found that ExcludeAdditionalProperties works only with XML column, but there should not be an NULL exception. In the ideal case ExcludeAdditionalProperties should be applied both to XML and JSON column.

I've tested this and it appears to have been fixed at some point (my guess is when a lot of this logic was separated out into the Traits class). You can see below that the additional property is correctly excluded but the ad-hoc property is present.
I do wonder if LogEvent should exclude standard columns like TimeStamp (they aren't included in the XML Properties field) but that's effectively a different bug. (@nblumhardt what do you think?)

@JocaPC can this be closed?


Route error when query table sharded by string column

Bug Report
For English only, other languages will not accept.
Before report a bug, make sure you have:

Searched open and closed GitHub issues.
Read documentation: ShardingSphere Doc.

Please pay attention on issues you submitted, because we maybe need more details.
If no response more than 7 days and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Which version of ShardingSphere did you use?
3.1.0
Which project did you use? Sharding-JDBC or Sharding-Proxy?
Sharding-JDBC
Expected behavior
no error
Actual behavior
ERROR 3054 (HY000): Unknown exception: java.lang.Integer cannot be cast to java.lang.String

Reason analyze (If you can)
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

configure a string column A as sharding column.
select * from x where A='abc';
error

my preciseAlgorithmClass：
public class StringHash128By30Char implements PreciseShardingAlgorithm<String> {
    private PartitionByString partitionByString = new PartitionByString(128, ":30");

    @Override
    public String doSharding(Collection<String> availableTargetNames, PreciseShardingValue<String> shardingValue) {
        for (String availableTargetName : availableTargetNames) {
            Integer calculate = partitionByString.calculate(shardingValue.getValue());
            String suffix = String.format("_%03d", calculate);
            if (availableTargetName.endsWith(suffix)) {
                return availableTargetName;
            }
        }
        throw new UnsupportedOperationException("sharding value:" + shardingValue);
    }

}

I debug and find shardingValue.value=-1
Example codes for reproduce this issue (such as a github link).

2. select * from x where A='abc';  modified to select * from x where A=?;  you can't write ='abc'

duplicate with #1754


[Documentation Bug]: Games section of the README.md file looks so unorganized and messy.

Describe the bug ✍
Games section of the README.md file looks so messy due to games being unaligned and unorganized, hence giving bad impression of the project. I will organize the README.md file and its games section to enhance the documentation of project.
@kunjgit please assign this issue to me.
Provide step by step information reproduce the bug 📄
Open README.md file
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @PRASANNA-THE-PRASANN1 !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

hey can you assign this issue , I can solve this and make tho documentation look clean and neat , it will be readable v easily


lume.sign(x) with 0 -> 0 ?

Would it make sense to return 0 if x == 0?
In my use case I just spent 5 minutes looking for my mistake having assumed the function worked like this. But perhaps my use case is not the average use case.

See #6

Ah sorry I missed that, thanks!


Setting up dotfiles with WSL2

Post regarding setting up dotfiles when using Ubuntu in WSL2

No longer using WSL2 so this is dead.


Flutter Timer.periodic don't stop.

I have 2 Elevated buttons, one to start the periodic timer and service and the other one to stop the periodic timer and service. When I click the start button the timer starts and I do some stuff after every 500ms and on clicking the stop button, the timer and service stop, good.
When I click the start button and kill the app, the timer keeps working that is what I want but when I reopen the app using the service notification and press the stop button, the service stops but the timer never stops.
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_foreground_task/flutter_foreground_task.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  _initForegroundTask();
  runApp(const Home());
}

class Home extends StatefulWidget {
  const Home({Key? key}) : super(key: key);

  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  late Stream<Map<dynamic, dynamic>> recognitionStream;
  late Timer _timer;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Find Phone')),
        body: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.stretch,
          children: [
            ElevatedButton(
                child: const Text('Start'),
                onPressed: () async {
                  _timer = Timer.periodic(const Duration(milliseconds: 500),
                      (timer) {
                    recognitionStream = TfliteAudio.startAudioRecognition(
                      sampleRate: 44100,
                      bufferSize: 22016,
                    );
                    recognitionStream.listen((event) async {
                        print('timer working');
                    });
                  });
                  if (!(await FlutterForegroundTask.isRunningService)) {
                    FlutterForegroundTask.startService(
                        notificationTitle: 'app',
                        notificationText: 'notification');
                  }
                }),
            ElevatedButton(
                child: const Text('Stop Recording'),
                onPressed: () {
                  try {
                    _timer.cancel();
                    TfliteAudio.stopAudioRecognition();
                  } catch (_) {
                    print('error--------------------------->');
                  }
                  FlutterForegroundTask.stopService();
                }),
          ],
        ),
      ),
    );
  }
}

Future<void> _initForegroundTask() async {
  await FlutterForegroundTask.init(
    androidNotificationOptions: AndroidNotificationOptions(
      channelId: 'notification_channel_id',
      channelName: 'Foreground Notification',
      channelDescription:
          'This notification appears when the foreground service is running.',
      channelImportance: NotificationChannelImportance.LOW,
      priority: NotificationPriority.LOW,
      iconData: const NotificationIconData(
        resType: ResourceType.mipmap,
        resPrefix: ResourcePrefix.ic,
        name: 'launcher',
      ),
    ),
    foregroundTaskOptions: const ForegroundTaskOptions(
      interval: 5000,
      autoRunOnBoot: true,
      allowWifiLock: true,
    ),
    printDevLog: false,
  );
}

@taimoor522 Can you add three backticks with dart before your code sample and three backticks at the end also. This will make your code sample much more readable.

Oh sorry, I was not aware of that as it's my first time posting an issue.

May I ask what is the reason for creating a timer in UI isolate? Implementing onEvent using the plugin's TaskHandler allows other plugins to be used in the background.
And if you're subscribing to a stream, you don't seem to need to use Timer.periodic.

@Dev-hwang  I have never used isolates before. I am still leaning flutter. The stream receives data only once that is why I have put this inside timer.

@taimoor522 Check this example.
https://github.com/Dev-hwang/tflite_audio_example


How to uninstall foohid??

I have a service that is currently incompatible with foohid, so I would appreciate any help in uninstalling foohid.

It should be enough to remove the foohid.kext file from /System/Library/Extensions/.


inline out variables

and update editor config with the setting

i will resubmit this once https://github.com/NuGet/NuGetGallery/pull/10046 is merged


MSVC compile fails with latest version of MSVC 2019

It throws this error:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\chrono(49): error C2039: '__max': is not a member of 'std::numeric_limits<__int64>'

Which seems related to the hack here:
https://github.com/myriadrf/LimeSuite/blob/master/src/lms7002m_mcu/MCU_File.h#L6
Project configuration:
[00:02:23] Cloning into 'limesuite'...
[00:02:23] Note: switching to 'v20.01.0'.
[00:02:23]
[00:02:23] You are in 'detached HEAD' state. You can look around, make experimental
[00:02:23] changes and commit them, and you can discard any commits you make in this
[00:02:23] state without impacting any branches by switching back to a branch.
[00:02:23]
[00:02:23] If you want to create a new branch to retain commits you create, you may
[00:02:23] do so (now or later) by using -c with the switch command. Example:
[00:02:23]
[00:02:23]   git switch -c <new-branch-name>
[00:02:23]
[00:02:23] Or undo this operation with:
[00:02:23]
[00:02:23]   git switch -
[00:02:23]
[00:02:23] Turn off this advice by setting config variable advice.detachedHead to false
[00:02:23]
[00:02:23] HEAD is now at 1c1c202f v20.01 RC
[00:02:23] [70/1667] Completed 'sgp4'
[00:02:24] [71/1667] Performing update step for 'limesuite'
[00:02:24] [72/1667] No patch step for 'limesuite'
[00:02:25] [73/1667] Automatic MOC and UIC for target swagger
[00:02:33] [74/1667] Building CXX object swagger\CMakeFiles\swagger.dir\sdrangel\code\qt5\client\SWGRemoteInputSettings.cpp.obj
[00:02:39] [75/1667] Performing configure step for 'limesuite'
[00:02:39] CMake Warning (dev) at CMakeLists.txt:5 (set):
[00:02:39]   implicitly converting 'TYPE' to 'STRING' type.
[00:02:39] This warning is for project developers.  Use -Wno-dev to suppress it.
[00:02:39]
[00:02:39] -- The C compiler identification is MSVC 19.28.29912.0
[00:02:39] -- The CXX compiler identification is MSVC 19.28.29912.0
[00:02:39] -- Detecting C compiler ABI info
[00:02:39] -- Detecting C compiler ABI info - done
[00:02:39] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
[00:02:39] -- Detecting C compile features
[00:02:39] -- Detecting C compile features - done
[00:02:39] -- Detecting CXX compiler ABI info
[00:02:39] -- Detecting CXX compiler ABI info - done
[00:02:39] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
[00:02:39] -- Detecting CXX compile features
[00:02:39] -- Detecting CXX compile features - done
[00:02:39] CMake Deprecation Warning at CMakeLists.txt:13 (cmake_policy):
[00:02:39]   The OLD behavior for policy CMP0015 will be removed from a future version
[00:02:39]   of CMake.
[00:02:39]
[00:02:39]   The cmake-policies(7) manual explains that the OLD behaviors of all
[00:02:39]   policies are deprecated and that a policy should be set to OLD only under
[00:02:39]   specific short-term circumstances.  Projects should be ported to the NEW
[00:02:39]   behavior and not rely on setting a policy to OLD.
[00:02:39]
[00:02:39]
[00:02:39] -- CyAPI includes: C:/projects/sdrangel/external/windows/FX3SDK/library/cpp/inc
[00:02:39] -- CyAPI libs: C:/projects/sdrangel/external/windows/FX3SDK/library/cpp/lib/x64/CyAPI.lib;SetupAPI.lib
[00:02:39] -- USB_INCLUDE_DIRS: C:/projects/sdrangel/external/windows/FX3SDK/library/cpp/inc
[00:02:39] -- USB_LIBRARIES: C:/projects/sdrangel/external/windows/FX3SDK/library/cpp/lib/x64/CyAPI.lib;SetupAPI.lib;SetupAPI
[00:02:39] -- USB_INCLUDE_DIRS: C:/projects/sdrangel/build/external/limesuite/src/limesuite/src/ConnectionFTDI/FTD3XXLibrary
[00:02:39] -- USB_LIBRARIES: C:/projects/sdrangel/build/external/limesuite/src/limesuite/src/ConnectionFTDI/FTD3XXLibrary/x64/Static/FTD3XX.lib;SetupAPI
[00:02:39] -- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS richtext xml html xrc adv aui core base gl)
[00:02:39] -- wxWidgets_DEFINITIONS:
[00:02:39] -- wxWidgets_INCLUDE_DIRS:
[00:02:39] -- wxWidgets_LIBRARIES:
[00:02:39] -- Could NOT find SoapySDR (missing: SoapySDR_DIR)
[00:02:39] -- octave-config not found (need liboctave-dev), disabling LimeSuiteOctave
[00:02:39] --
[00:02:39] -- ######################################################
[00:02:39] -- ## LimeSuite enabled features
[00:02:39] -- ######################################################
[00:02:39] --
[00:02:39]  * LimeSuiteHeaders, The lime suite headers
[00:02:39]  * LimeSuiteLibrary, The lime suite library
[00:02:39]  * ConnectionFX3, FX3 Connection support
[00:02:39]  * ConnectionFTDI, FTDI Connection support
[00:02:39]  * ConnectionXillybus, PCIE Xillybus Connection support
[00:02:39]
[00:02:39] -- ######################################################
[00:02:39] -- ## LimeSuite disabled features
[00:02:39] -- ######################################################
[00:02:39] --
[00:02:39]  * ConnectionEVB7COM, EVB+COM Connection support
[00:02:39]  * ConnectionSTREAM_UNITE, STREAM+UNITE Connection support
[00:02:39]  * ConnectionRemote, Remote Connection support for testing
[00:02:39]  * ConnectionSPI, Rasp Pi 3 SPI Connection support
[00:02:39]  * LimeSuiteGUI, GUI Application for LimeSuite
[00:02:39]  * LimeSuiteExamples, LimeSuite library API examples
[00:02:39]  * LimeUtilCommand, Command line device discovery utility
[00:02:39]  * LimeQuickTest, LimeSDR-QuickTest Utility
[00:02:39]  * SoapySDRLMS7, SoapySDR bindings for LMS7
[00:02:39]  * LimeSuiteDocAPI, LMS API Doxygen documentation
[00:02:39]  * LimeSuiteDesktop, LimeSuite freedesktop integration
[00:02:39]  * LimeSuiteOctave, LimeSuite Octave integration
[00:02:39]
[00:02:39] -- Install prefix: C:/Program Files (x86)/LimeSuite
[00:02:39] -- Build timestamp: 2021-03-20
[00:02:39] -- Lime Suite version: 20.01.0-release
[00:02:39] -- ABI/so version: 20.01-1
[00:02:39] -- Configuring done
[00:02:39] -- Generating done
[00:02:39] CMake Warning:
[00:02:39]   Manually-specified variables were not used by the project:
[00:02:39]
[00:02:39]     CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG
[00:02:39]     CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELWITHDEBINFO
[00:02:39]     CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG
[00:02:39]     CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELWITHDEBINFO
[00:02:39]     CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG
[00:02:39]     CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO
[00:02:39]     ENABLE_NOVENARF7

As you can see MSVC 19.28.29912.0 is being used. This did not occur previously with MSVC 19.28.29337.0.
Normally the NOMINMAX definition is set so it should not fall in the hack mentioned before however it does now.
Full log here: https://ci.appveyor.com/project/f4exb/sdrangel/builds/38234950/job/wce5ipg7u15fwt25

Same here. https://github.com/myriadrf/LimeSuite/pull/345 fixes the problem.


Big file saving is too long

When I am trying to save big files (5000+lines), atom do it too long, about 10 seconds. As an example, sublime save file very fast - less than 1 second.
My system spec:

CPU - AMD A4-5000 APU with Radeon(TM) HD Graphics × 4
ssd 64gb
OS - ubuntu 15.04 x64
uname -r: 3.19.0-16-generic
Atom version - 1.0.2

Do you mean less than 1 second?

Oh, yes, 1 second. I updated my comment.

I can't reproduce this. What packages do you have installed (apm list --installed)? Can you record and send a screenshot of a Javascript CPU profile while the slow save is occurring?

@quolpr do you by any chance have tabs-to-spaces installed?  If so, can you try disabling it and see if the problem goes away?

Please see https://atom.io/docs/latest/hacking-atom-debugging#diagnose-performance-problems-with-the-dev-tools-cpu-profiler for info on taking and saving a CPU profile.

I've seen this as well when working on large files. This happens to me frequently when writing specs for atom. This profile was taken from saving text-editor-spec.coffee. I did have tabs-to-spaces installed, but disabling it did not make a difference, the profiles are the same.

Sorry for my long answering. Now atom has ony 2 comunity plugins installed(rails-rspec, set-syants, set-syntax). There are not influence on perfomance, I checked.
So, when I type one symbol in atom editor:

And when I am saving it:

File has about 3400 lines, size - 400kb.
Also I can upload *.cpuprofile file, if needed.

@quolpr Can you upgrade Atom and profile the slow save one more time? This looks like a performance regression that we have fixed since 1.0.2.

@maxbrunsfeld ok, I installed version 1.0.7, and it seems that saving is fixed. But typing has some freezes.
When I type 1 symbol (no matter which):

As I noticed - after I typed one symbol underline is appeared through 1 second.
When I typing many symbols(4 symbols):

I am running into this issue with Atom 1.2.4, and trying to save a file with around 50k lines. It freezes up Atom and asks me if I want to quit the editor or keep waiting. After about 2 minutes it finally manages to save the file.

@adambuczynski Have you followed the suggestions in the Debugging document? Also, could you give the following information?

What OS and version are you running?
Do you have Emmet installed?
Can you reproduce the issue after completely exiting Atom and restarting using atom --safe?
Can you include a CPU profile?

@lee-dohm

Mac OS X 10.10.5
No Emmet
The problem seems to have reversed, and opening the file now takes about 50 seconds, whereas saving it is faster and now completes after approximately 5 seconds.
See attached profile for opening the file:


[dv,top] PR #8184 is a hack to allow AST registers to extend from ast_base_reg

ast_base_reg (that extends dv_base_reg) is a class from which all of the 'real' AST register models extend from and it is visible only in Nuvoton's internal repo.
The chip level register model extend dv_base_reg class and there is no support to use a specific dv_base_my_prefix even if it was used in IP level.

This PR is created to fix this issue: https://github.com/lowRISC/opentitan/pull/9007

I think this is addressed. Perhaps we can close it?

closed via #9007


Allow applying plan without confirmation

Currently, the pg-schema-diff apply command requires confirmation to continue the process. For example:
Use the arrow keys to navigate: ↓ ↑ → ←
? Apply migration with the following hazards: INDEX_BUILD?:
  ▸ No
    Yes

We want to use the CLI to automatically apply the plan, but it is tricky because the apply command requires us to input the confirmation. It's impossible to bypass the confirmation from the current code/implementation.
Do you think it makes sense to add such a feature?

Yes, so basically a "non-interactive" mode. An alternative is to directly integrate with the go library (i.e., creating a very simple go binary that you call from your system).
I think this is a common enough use case though that we should support it.

Thank you @bplunkett-stripe 🙏


Https certificate not recognize by the browser on Angular 6 + .net Core 2.1.2

Hi,
I generated the certificate using the following dotnet command:
 dotnet dev-certs https --trust -v --export-path "C:\PATH\localhost.pfx" --password "PASSWORD"
Then in package.json if have:
"start": "ng serve --ssl true --ssl-cert 'C:\PATH\localhost.pfx' --proxy-config proxy.config.json"
When I launch the website on https://localhost:4200/
The certificate is still not recognize by the browser.
How to make it work?

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.
That said, the ssl-cert usually has an extension of crt and not pfx, ie --ssl-key for the key file and --ssl-cert for the certificate file

Ok, thanks for your help, I will continue to investigate.

I followed these instructions and every thing works correctly now

Glad to hear that :)
On Tue, 14 Aug 2018 at 21:11, Cedric<EMAIL_ADDRESS>wrote:

I followed these instructions and every thing works correctly now
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/11887#issuecomment-412983438,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQv-Wqd_bO15IoYVLjtq4kCwQDRPhgqyks5uQyD5gaJpZM4V8zwD
.


Use preferred spelling of Dev Service

The Quarkus team spell 'Dev Service' as two words, not one. Using the same spelling should help discoverability for Microcks's dev service.

Hi @holly-cummins!
Thanks for the suggestion! Could you please keep the class name as is and sign the commit to get it integrated? (signing is required per CNCF process).
Thanks!

Hi @holly-cummins!
Thanks for the suggestion! Could you please keep the class name as is and sign the commit to get it integrated? (signing is required per CNCF process).
Thanks!

Done - thanks for the pointers, @lbroudoux!

Thank you!


chore(main): release 1.1.2

:robot: I have created a release beep boop
1.1.2 (2023-11-13)
Bug Fixes

fix reward and fee cut format (#14) (695683a)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/rickstaa/livepeer-exporter/releases/tag/v1.1.2 :sunflower:


As a EN team member, I want to check the API test reports in testrail

Checked for duplicates
Yes - I've already checked
🧑🔬 User Persona(s)
EN team member
💪 Motivation
...so that I can report on the automatic testing.
📖 Additional Details
No response
Acceptance Criteria
Given the jenkins dev staging server, testrail production service
When I perform when I go to the testrail run report https://cae-testrail.jpl.nasa.gov/testrail/index.php?/runs/overview/168
Then I expect to see nighty test reports for the suite PDS Registry API, automated tests (https://cae-testrail.jpl.nasa.gov/testrail/index.php?/suites/view/12824&group_by=cases:section_id&group_order=asc)
⚙ Engineering Details
Follow the guidelines on https://medium.com/apis-with-valentine/how-to-integrate-testrail-with-postman-newman-api-tests-cc0380998d04
Use test suite in testrail https://cae-testrail.jpl.nasa.gov/testrail/index.php?/suites/view/12824 for API automated testing.
Use test with ID: C1274687
Add the reference in the postman test suite in the registry repository, see https://github.com/NASA-PDS/registry/tree/main/docker/postman
Update the newman configuration for the jenkins pipeline so that jenkins generates a nightly test report on test rail. That will be a single test for now, but we want that to be a starting point for the I&T team to get a full reporting on the postman tests in test rail.

@nutjob4life will need a testrail account for that

@viviant100 @miguelp1986 can you help get @nutjob4life an account for this?

Sure, I put in a request. Waiting for approval.

I am so close on this, but currently blocked by an issue in the Newman TestRail Reporter:
https://github.com/billylam/newman-reporter-testrail/issues/60
Time permitting I'll fork that repo and put in the support for CAE TestRail

@nutjob4life submitted a bug in the test reporter


Allow HypreParMatrixFromBlocks with empty local HypreParMatrix blocks

Sometimes a processor may have no local rows or columns in a HypreParMatrix, yet we can still construct a block HypreParMatrix using HypreParMatrixFromBlocks.

PR
Author
Editor
Reviewers
Assignment
Approval
Merge

#3699
@sebastiangrimberg
@mlstowell
@psocratis + @dylan-copeland
6/6/23
⌛due 6/20/23
⌛due 6/27/23

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Merged in next for testing...


API for adding tags for the game

Since it is possible to set tags for the games in the Galaxy Client, maybe it should be possible for the API integrations to set them as well? It may help 3rd party tools to organize games by categories/ratings and so on.
I don't find it in the docs for now, so here's my proposal.

Thanks for your proposal. We'll definitely consider it once we're done with the core functionalities.


[CHORE] adding global datasources provisioning

Description
I'm adding the ability to provision GlobalDataSource when install Perses using helm chart.

Checklist

[X] Pull request has a descriptive title and context useful to a reviewer.
[X] Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, IGNORE.
[X] All commits have DCO signoffs.

I don't get how Perses will consider the globalDatasource provisioned, since it should go in a specific folder in the database folder

Actually i'm mounting the configmap under the {{ .Values.config.database.file.folder }}/globaldatasources does it make sense?

well the issue is that you are also mounting a volume there where the BE can write. Is it still possible to create another globalDatasource ?

well the issue is that you are also mounting a volume there where the BE can write. Is it still possible to create another globalDatasource ?

Oh now I got it!
If I'm not wrong we just need to ensure securityContext.fsGroup is the same group as the container user and it should work out of the box.
Is there anyway to test it today, since we don't have GlobalDataSource CRUD? @Nexucis

Is there anyway to test it today, since we don't have GlobalDataSource CRUD? @Nexucis

Weeelll you have it through the CLI. It's not super easy but it should work :). percli apply -f globaldatasource.json

Is there anyway to test it today, since we don't have GlobalDataSource CRUD? @Nexucis

Weeelll you have it through the CLI. It's not super easy but it should work :). percli apply -f globaldatasource.json

You're so right 🥲
Maybe the workaround would be use a initcontainer.
But I'll let another question.
If I can manage datasources through helm why I'd like to add it through cli/ui?

If I can manage datasources through helm why I'd like to add it through cli/ui?

I think a good way to do it would be through CRDs then.
From my perspective, if you want to have a datasource provisioning, it supposed you still have perses connected to a database which means it can create datasource with the API ( so with a different flow)

If I can manage datasources through helm why I'd like to add it through cli/ui?

I think a good way to do it would be through CRDs then. From my perspective, if you want to have a datasource provisioning, it supposed you still have perses connected to a database which means it can create datasource with the API ( so with a different flow)

I see your point and I can agree on a certain level, but I see the CRD being part of the Perses operator (under development yet), and the operator will be another option to deploy and manage Perses.
With that in mind, I see this helm chart as an option to deploy and manage Perses without having to manage an operator and all its resources such as CRDs.
After a while of thinking about this, my idea to overcome the read-only file system issue you pointed out is to leverage the Perses CLI as a side-car and leverage the apply command to apply the dashboards without mounting them. volume.
WDT?

With that in mind, I see this helm chart as an option to deploy and manage Perses without having to manage an operator and all its resources such as CRDs.

yeah me too. perses-operator shouldn't be mandatory to use perses.

After a while of thinking about this, my idea to overcome the read-only file system issue you pointed out is to leverage the Perses CLI as a side-car and leverage the apply command to apply the dashboards without mounting them. volume.

That could work indeed !


firefox: add support for new db format without "baseDomain" column

Add support for new db format without "baseDomain" column and with new "rawSameSite" column.
Domain is now derived from the host column with the new import "github.com/bobesa/go-domain-util/domainutil".
old layout on the left:

https://bugzilla.mozilla.org/show_bug.cgi?id=1609176
https://phabricator.services.mozilla.com/D60464

go.mod is not updated

Thanks for your PRs: very helpful!

Both PRs did add some dependencies though. go.mod needs now an update with go get -u ./....
I do hope that the formats of both browsers stays the same now... for a while at least.
It would probably also be better if we could address the columns by name and not the index? Do you perhaps know if github.com/go-sqlite/sqlite3 provides this?
For #6 we probably can use the security tool for querying the password (not setting) but I can't test this without a macos machine.

Updated go.mod and merged. Thanks!


new port: openvdb

New port: openvdb from openvdb.org
(https://github.com/dreamworksanimation/openvdb)

OpenVDB is an Academy Award-winning open-source C++ library comprising a novel hierarchical data structure and a suite of tools for the efficient storage and manipulation of sparse volumetric data discretized on three-dimensional grids. It is developed and maintained by DreamWorks Animation for use in volumetric applications typically encountered in feature film production.

x64-windows (with optional tools as a feature) and x64-windows-static triplets were successfully tested.
The project-included cmake is non-standard and requires additional patches to enable static/dynamic library selection.
Also, the viewer tool requires minor modification to make it usable on Windows, so a patch is included for that.
I will try to get the patches merged upstream on a later date.

LGTM, thanks for the PR!


[DEMO-2502] Convert to using requirements files

Instead of individually installing modules in the Dockerfile, use
a requirments file for python and ansible to collect the dependencies.
Then in the Dockerfile, install them using -r option.
This simplifies using the tool locally since all ansible & python
dependencies can be installed in one command, and a dev no longer needs
to hunt down specific dependencies in the Dockerfile.

@Julien4218 That's a good point. I would also like to keep track of which dependencies are used for each purpose.
I would like to use this method for installing the dependencies, as it keeps them locked to one spot and makes setting up a dev environment easier. Why don't we add comments to the two files to denote what the dependencies are used for?

@Julien4218 That's a good point. I would also like to keep track of which dependencies are used for each purpose.
I would like to use this method for installing the dependencies, as it keeps them locked to one spot and makes setting up a dev environment easier. Why don't we add comments to the two files to denote what the dependencies are used for?

I like the latest changes here.  Maybe @Julien4218 can take a look and see if this resolves his issues.

I like the latest changes here.  Maybe @Julien4218 can take a look and see if this resolves his issues.

It's ok now.
Side note, try using the lowest number for versioning, we don't always have to bump the minor number. In this instance, we haven't added any functionality, so I would have just incremented the last number (build/patch).

It's ok now.
Side note, try using the lowest number for versioning, we don't always have to bump the minor number. In this instance, we haven't added any functionality, so I would have just incremented the last number (build/patch).


Debug console truncates strings longer than 100 characters

VSCode Version: Code 1.14.2 (cb82febafda0c8c199b9201ad274e25d9a76874e, 2017-07-19T23:22:50.650Z)
OS Version: Darwin x64 16.7.0
Extensions:

Extension
Author (truncated)
Version

uncrustify
Lau
2.6.0

unity-debug
Uni
1.2.1

vscode-nuget-package-manager
jmr
1.1.4

cpptools
ms-
0.12.2

csharp
ms-
1.12.0

vscode-icons
rob
7.12.0

Steps to Reproduce:
Try to print any string longer than 100 characters in the debug console.
Alternatively, simply input:
"12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
which outputs:
"1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890…"

@greay what language are you debugging and what debug extension are you using?
If it is not Node Debug, please file this issue against the debug extension you are using.

C#, Unity. I'll create a new issue.


Use BasePrimitiveJob

Summary
Can't be merged until Qiskit 1.0 release, because BasePrimitiveJob is a new class. Or we can merge this into experimental-0.2 first.
Details and comments
Fixes #1352

Let's just merge into experimental-0.2.
Also we should try to make v2 primitives to return a job that does not inherit from V1, so we don't need to go through a deprecation period for methods we want to change (such as job.status(), see #1366)

Closing this PR, i'll reopen in a new branch


time: Parse of RFC3339 is incorrect for fractional second seperator

RFC 3339, section 5.6 specifies that the time-secfrac field must use a period.
However, Parse permits the use of commas:
Parse(time.RFC3339, "0000-01-01T00:00:00,0Z")

reports nil rather than an error.

Unfortunately, this behavior is specified in the docs:

A comma or decimal point followed by one or more zeros represents a fractional second,
printed to the given number of decimal places.
A comma or decimal point followed by one or more nines represents a fractional second,
printed to the given number of decimal places, with trailing zeros removed.
For example "15:04:05,000" or "15:04:05.000" formats or parses with millisecond precision.

That is a relatively recent addition #6189, at some point in the past, we didn't support it #24860
Maybe it would be ok to roll it back for RFC3339

Yuck. In my opinion #6189 was a mistake. We probably should instead have allowed the format string to have a , where it means either , or ., while keeping the presence of . to only mean ..

Closing as the allowance of commas was a deliberate decision in #6189.
The Unmarshal methods have been modified to perform strict checking. That change is more justifiable since the methods are explicitly documented as using RFC 3339 and the Marshal methods already have some checks for strict RFC 3339 compliance.


[RFC] AST Customization

Summary
Provide means to customize the AST, for including additional data with each node.
Detailed Explanation
Background: I'm currently developing a compiler for a subset of Python, currently planning to use the RustPython parser to get the AST. The project requires type inference and other processing with the AST. It would be helpful if we can attach data to each node in the AST.
I think allowing users to store custom data in AST nodes would also help other developers to use the crate for other purposes, like static analysis, or provide better optimization for the RustPython runtime by trying to recover more type information (not sure if this is feasible though, I am not familiar with the project).
I think it would be possible to provide an additional field using generic with a default value. For example:
pub struct Located<T, U = ()> {
    pub location: Location,
    pub node: T,
    pub custom: Option<U>,
}

And add the U parameter to all references to Located (Expression, Statement, ... basically all structs in the AST and parser methods)
With the default parameter, I think it would not break the existing code as users can still use Expression<U> as Expression.
This may also break pattern matching, but that would just require the users to add .. to the pattern so it should be simple.
Drawbacks, Rationale, and Alternatives
Drawbacks:

May break pattern matching in existing code.
The default type U = () would increase the size of the Located struct. One way to prevent the problem would be to use the never type !, but this requires nightly. The following code print 16 and 8 in the rust playground.#![feature(never_type)]
struct Test<U = ()> {
    a: usize,
    b: Option<U>
}

fn main() {
    println!("{}", std::mem::size_of::<Test>());
    println!("{}", std::mem::size_of::<Test<!>>());
}

An alternative would simply be not supporting the additional field and require users to store it elsewhere, maybe using HashMap or another tree. That would be harder to use and suffer from performance problems.
Unresolved Questions

The default could also be std::convert::Infallible, which is almost equivalent to the never type and will eventually become a type alias for ! once the latter is stabilized.

I think this definitely sounds cool! Would you be interested in implementing it?

The default could also be std::convert::Infallible, which is almost equivalent to the never type and will eventually become a type alias for ! once the latter is stabilized.

Yes, it seems that the resulting size is the same as !.

I think this definitely sounds cool! Would you be interested in implementing it?

Yes.

Oh, or maybe the default should be () and the field should just be custom: U? Cause since we're probably going to be mapping to the custom type after-the-fact, the map function could just return a default value. If you wanted to have it be an Option<A>, you could pass a mapping function |()| None, and fill the options in manually. But if it's a hashmap or a vec or some other collection, it might also make sense to have the default be a Collection::new

Oh, or maybe the default should be () and the field should just be custom: U? Cause since we're probably going to be mapping to the custom type after-the-fact, the map function could just return a default value. If you wanted to have it be an Option<A>, you could pass a mapping function |()| None, and fill the options in manually. But if it's a hashmap or a vec or some other collection, it might also make sense to have the default be a Collection::new

Oh, or maybe the default should be () and the field should just be custom: U? Cause since we're probably going to be mapping to the custom type after-the-fact, the map function could just return a default value. If you wanted to have it be an Option<A>, you could pass a mapping function |()| None, and fill the options in manually. But if it's a hashmap or a vec or some other collection, it might also make sense to have the default be a Collection::new

What about U: Default?
struct Test<U = ()> {
    custom: U
}

impl<U: Default> Test<U> {
    fn new() -> Test<U> {
        Test {
            custom: Default::default()
        }
    }
}

fn main() {
    let a: Test = Test::new();
    let b: Test<Vec<&str>> = Test::new();
}

Oh, or maybe the default should be () and the field should just be custom: U? Cause since we're probably going to be mapping to the custom type after-the-fact, the map function could just return a default value. If you wanted to have it be an Option<A>, you could pass a mapping function |()| None, and fill the options in manually. But if it's a hashmap or a vec or some other collection, it might also make sense to have the default be a Collection::new

What about U: Default?
struct Test<U = ()> {
    custom: U
}

impl<U: Default> Test<U> {
    fn new() -> Test<U> {
        Test {
            custom: Default::default()
        }
    }
}

fn main() {
    let a: Test = Test::new();
    let b: Test<Vec<&str>> = Test::new();
}

I agree, but I don't think it's possible to put generics in the lalrpop file, which is what actually generates the ast

I agree, but I don't think it's possible to put generics in the lalrpop file, which is what actually generates the ast


Document that RawSQL can be used with __in

This is a very useful pattern which wasn't obvious from the documentation.

That test failure looks like a glitch to me: https://djangoci.com/job/pull-requests-windows/database=sqlite3,label=windows,python=Python39/10739/console


Define versioning of connectors

Fybrik manager communicates with connectors (data catalog and policy manager) over REST API.
The current implementation doesn't support any versioning, but we have to define and implement versioning over these REST APIs due to the requirements to provide backward compatibility.
The possible implementations are :

URI Versioning
Versioning using Custom Request Header
Versioning using the “Accept” header
For examples and explanations, see REST API Versioning

Please update or continue https://github.com/fybrik/fybrik/pull/1670
And define a backward compatibility mechanism.

Similar to the reasoning given here, version of open source connectors (katalog connector, opa connector) and the REST APIs for data catalog and policy manager is the same as Fybrik version in my opinion. There are tests for the connectors which check if the connector code is compatible to the current version. If we do any new changes in a later fybrik version to the REST APIs or to the connectors, we should add corresponding tests to check the new changes without removing the older tests. This will take care of backward compatibility as well in my opinion.
If we go for separate versioning of REST APIs (for example: /v1/getAssetInfo, /v2/getAssetInfo, etc) it may lead to branching in the code based on versions. It maybe become an overhead as versioning increases.
Please suggest if there is any need for separate versioning. Thanks.

@rohithdv we do need some versioning for the REST API, I'll take the issue to myself.

We have a preliminary agreement from our partners to add version into connector's REST calls.


Swiftly proxies for tools in the toolchain

Swiftly can use proxy executables for tools in the toolchain instead of symlinks. The proxies can decide their targets at invocation time in this way instead of at swiftly use time, for greater configurability. For example, the proxies can respond to special parameters among the typical tool arguments like this:
swift build +main-snapshot # build with the latest available snapshot

This feature would not be possible with symlinks since they cannot respond to the arguments.
Also, proxies can make use of the .swift-version files that are popular in some Swift repositories to align the team on a single language and toolchain version. If no version is specified using the special command-line parameter then the proxies can search for a version file in the current working directory, or an ancestor, to automatically install and use the correct toolchain for the project on every tool invocation, such as after a git pull.

This is finished in #155


I find a word spell wrong

at SDWebImageManager.h file,
line 218,you write the note here:
/**

Cancel all current opreations
*/

(void)cancelAll;

the right spell is operation.

Seems like you have a very old version of the code. This was fixed almost a year ago by #1257

I will update it,thanks


Capturesnaps

Added ability to save snaps to current working directory and an accompanying example

Hey, I think it makes sense to keep get_snaps() as light as possible and not include additional functionality, but I'd love to add the CaptureBot example -- can you submit a pull request with just that instead? Thanks!

If I remove the functionality from get_snaps() then the example won't work. Are you okay with that? I could make it read the snap.file inside the capturebot object, but that would be a hacky way to do it

I was thinking keeping the save_snap util function and then doing something like this for the Capture Bot:
class CaptureBot(SnapchatBot):
     def on_snap(self, sender, snap):
         save_snap(sender, snap)

& modifying save_snap appropriately for that to work.

Ahh, of course. Added another commit with all the functionality in save_snaps

Looks great, thanks!

This is awesome, thanks !


ATV-19 | Create authenticated Documents

Description :sparkles:

Modify DocumentViewSet to allow creating authenticated Documents

When the user is not authenticated, it tries creating the document anonymously with the Service API key. If no key is found, then a 403 status is returned

Issues :bug:
Closes :no_good_woman:
ATV-19: As an authenticated user I want to submit a diploma copy request, to obtain a copy of my diploma
Related :handshake:
#10
Testing :alembic:
Automated tests :gear:
$ pytest documents/tests/test_api_create_document.py

Manual testing :construction_worker_man:
Testing manually is a bit complex at the moment, since we don't have the JWT authentication in place yet. The way to do it would be to login with a valid user which has been assigned to a permission group for a Service, so that the ServiceMiddleware can determine the correct Service.
With that user, then send the POST request through the API
http://localhost:8000/v1/documents/

Codecov Report

Merging #28 (9a54857) into main (87d3639) will decrease coverage by 0.50%.
The diff coverage is 89.65%.

@@            Coverage Diff             @@
##             main      #28      +/-   ##
==========================================
- Coverage   84.49%   83.99%   -0.51%
==========================================
  Files          45       46       +1
  Lines         974      987      +13
  Branches       88       90       +2
==========================================
+ Hits          823      829       +6
- Misses        120      126       +6
- Partials       31       32       +1

Impacted Files
Coverage Δ

atv/decorators.py
54.71% <60.00%> (-19.06%)
:arrow_down:

services/utils.py
93.75% <93.75%> (ø)

documents/api/viewsets.py
91.96% <100.00%> (+0.37%)
:arrow_up:

audit_log/viewsets.py
80.55% <0.00%> (+2.77%)
:arrow_up:

Continue to review full report at Codecov.

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


@graphql-ez/plugin-nexus

Official plugin for https://nexusjs.org/

Just out of curiosity: What is the benefit of having a distinct nexus-plugin instead of simply generating the schema and using plugin-schema?
Background: I'm using https://giraphql.com/ in combination with graphql-ez in one of my client-projects. GiraphQL is very similar to nexus in scope, but, imho, more generic and mature. Up until this point I didn't saw any benefit in a more tight integration via an own plugin. Have I missed smth?

Hi, this plugin is not completely needed at all, this is just a convenience package, which also adds support for using for example, the plugin of scalars with nexus, and very useful in my opinion, for not needing to do manually creating the schema by manually importing every type, add it to "types" property of the "makeSchema", and just simply do "ezApp.registerNexus.objectType" and then importing the file before calling the "buildApp" or simply adding a dynamic import on the "prepare" property in either "buildApp" or in the "CreateApp"

About GiraphQL I'm completely aware of its existence, just I haven't used it personally, but maybe a convenience plugin just like this one could be useful for GiraphQL as well

(extracted the discussion about a possible giraphql-plugin into issue #324)

After thinking more about this plugin, maybe it's not worth it for this specific plugin to exist and just let it be its own thing and just specify the already built schema, same thing for the giraphql plugin #324, maybe I'm wrong, but it would only be useful for integration with the scalars and graphql-upload plugins, for nexus (and also type-graphql) in specific the cumbersome of building the schema is the inconvenience I was aiming to fix hooking them into the same ez app building process, what do you think @benbender

I'm planning to convert to graphql-ez from 'mercurius', so should I wait for this PR merge?

I'm planning to convert to graphql-ez from 'mercurius', so should I wait for this PR merge?

As I mentioned before, this plugin is just a convenience plugin, it's not required at all, you can use the "schema" configuration inside the "CreateApp", here is a small example with nexus without this possible plugin https://github.com/PabloSzx/graphql-ez/tree/main/examples/fastify/nexus

I have decided that this plugin is not the best, having in mind separation of concerns and maintainability, this plugin was only created for convenience but maybe it's not worth the pros and cons


[hotfix][tests][table-planner] Add two more cases to verify the conflict of multiple LOOKUP hints

What is the purpose of the change
Add two more cases to verify the conflict of multiple LOOKUP hints, which should be consistent with current join hints (the coming doc by #20513 will illustrates conflict cases)
Brief change log
Add two more cases to LookupJoinTest
Verifying this change
LookupJoinTest
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no )
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)

@flinkbot run azure

@flinkbot run azure

only one unstable connector case in my pipeline: https://dev.azure.com/lincoln86xy/flink/_build/results?buildId=269&view=results

@flinkbot run azure

I haven't find the reason why this can not trigger testing on flink ci pipeline..


New Core Type Intel

Hi,
Profitbricks si offering now intel as an additional core type-
Is it possible to implement the new core type into this machine driver as well?
BR
Lars

https://github.com/profitbricks/docker-machine-driver-profitbricks/releases/tag/v1.1.3
Cpu Family is available  as this parameter:
--profitbricks-cpu-family

Default value is AMD_OPTERON

very cool!
Thanks
BR
Lars


python setup.py fail(TF binding)

I did the 'make' step successful. But when i did the 'python setup.py install' with the error blow:

environment:
mac 10.12.5
tensorflow 1.1.0

I solved the "type_traits" problem by change the "extra_compile_args" to "extra_compile_args = ['-std=c++11', '-stdlib=libc++']". But when I run the "import warpctc_tensorflow" with the error below:
File "<stdin>", line 1, in <module>
File "/Users/edgar/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/warpctc_tensorflow-0.1-py2.7-macosx-10.7-x86_64.egg/warpctc_tensorflow/__init__.py", line 7, in <module>
  _warpctc = tf.load_op_library(lib_file)
File "/Users/edgar/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py", line 64, in load_op_library
  None, None, error_msg, error_code)
tensorflow.python.framework.errors_impl.NotFoundError: dlopen(/Users/edgar/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/warpctc_tensorflow-0.1-py2.7-macosx-10.7-x86_64.egg/warpctc_tensorflow/kernels.so, 6): Library not loaded: @rpath/libwarpctc.dylib
Referenced from: /Users/edgar/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/warpctc_tensorflow-0.1-py2.7-macosx-10.7-x86_64.egg/warpctc_tensorflow/kernels.so
Reason: image not found

@junedgar got the same as yours...

@junedgar got it fixed by export DYLD_LIBRARY_PATH="where is your dylib file path"


[FEATURE] Filtering fixtures that should not be tracked.

Currently their is no way to filter fixtures that are arguments to test methods. This causes these methods to not be snapshot-able in cases where complex fixtures are used, such as mocker or tmp_path.
The completion of this ticket should involve some project-wide filtering within the pyproject.toml file and additionally some way to filter these at the per snapshot level.

forgot to reopen this. task is not completely closed. still need auto ignore of mocker and tmp_path. using a flag to do so is not sufficient


PersistentTopicMessagingTest and NonPersistentTopicMessagingTest broken and not running

Describe the bug
Topic integration tests in PersistentTopicMessagingTest and NonPersistentTopicMessagingTest are not run because they are not added in https://github.com/apache/pulsar/blob/master/tests/integration/src/test/resources/pulsar.xml.
Some of the tests also appear to be broken

this is fixed by #5456


update for spatie/laravel-activitylog v4.0

Hi and thanks for this package @bolechen
The spatie/laravel-activitylog package is now on version 4  and the current requirement is "^3.9.1".
Do you plan on updating it? From what I've seen it doesn't look nice changes are necessary.

I'm on vacation. I'll update it as soon as possible.
陈伯乐
2021年7月15日 +0800 18:07 felixsc @.***>，写道：

Hi and thanks for this package @bolechen
The spatie/laravel-activitylog package is now on version 4 and the current requirement is "^3.9.1".
Do you plan on updating it? From what I've seen it doesn't look nice changes are necessary.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi @bolechen, do you have any updates on this?

https://github.com/bolechen/nova-activitylog/pull/25


Graphical glitches present on Sequoia Beta 1

I compiled the kext with Sequoia support with the new Lilu 1.6.8 but I notice graphic bugs already present in previous versions of Apple OS.
If you can solve it it would be TOP.
Polaris22Fixup.kext.zip
https://github.com/Lorys89/Polaris22Fixup
Bug Images

Well, it's still the same old thing.
We have to find the binary patch in the kernel, and hoping the existing patch to be alive in newer updates.
Just like the following lines.
https://github.com/osy/Polaris22Fixup/blob/8d09f8f544283c3c4fd12ed0c6cf37c73cdfde4e/Polaris22Fixup/kern_start.cpp#L195
In fact, the binary patch is not hard to find, but is always changing during betas and updates.
How about waiting for a while? Sequoia (including Sonoma) does not introduce any must-have features  to me.

For Sonoma ALL Version this Kext is good https://github.com/Baio1977/NUC8i7HVK-Hackintosh/tree/main/OC 1.0.0/EFI/OC/Kexts/Polaris22Fixup.kext/Contents.

KDK does not ship AMDMTLBronzeDriver.bundle, Where can we find the binary?
That of s/l/e It's no good.

@Baio1977 @Lorys89
Can you test this kext I build? The glitches is fixed for Sequoia.
Polaris22Fixup.kext.zip
Of course the latest nightly build Lilu is needed.
https://github.com/dortania/build-repo/releases/download/Lilu-4256f43/Lilu-1.6.8-RELEASE.zip


Prepare v0.2.1 release

Purpose
Prepare for the v0.2.1 release by updating the CHANGELOG and adding a PR template to hopefully ensure that the CHANGELOG isn't neglected in the future.
Checklist

[ ] Added or updated unit tests
[X] Added to release notes
[ ] Updated readme/documentation (if necessary)

Apparently we tagged v0.2.1 without updating the version and CHANGELOG, so this is actually for v0.2.2. 🤷


Request for new synonym gastric cancer

Mondo term
gastric cancer (MONDO_0001056)
Synonyms
GC
Synonym type
exact
Additional comments
Requesting on behalf of Open Targets, please see the discussion here: https://github.com/opentargets/issues/issues/3353

Dear @zoependlington,
Thank you for reaching out to the Mondo Disease Ontology, part of the Monarch Initiative!
We have received your ticket and will review it as soon as possible.
If you have any additional information or updates relevant to your inquiry, please add them in a comment on this ticket. Your input is valuable in helping us understand and resolve the issue effectively.
Thank you for your patience and for your contributions to Mondo!
Sincerely,
The Mondo Team

Hi @sagehrke,
Hope the team is doing well. Just wanted to check with you and your team, if you have had a discussion on this issue to consider GC as a synonym of Gastric Cancer (MONDO_0001056).
This issue affects us at Open Targets as many people in manuscripts occasionally refer to gastric cancer as GC due to which our pipeline grounds GC to ghonorrea which has a GC synonym.

If gastric cancer were to have a GC synonym, the disambiguation feature built into our pipeline would resolve this. Kindly see the discussion here.
Looking forward to hear from you.
Best,
Prashant

Thank you @prashantuniyal02.
One of the Mondo team members is looking into this. We will reach out if we have questions and we will keep you updated.
Best, Sabrina


Invalid opcode exception

Implementation of the invalid opcode handler, this is now correctly modeled as a VmException

I still need to add the correct VmException handling

wait!, I just missed a part.let me check.


⚠ Site ANTS has degraded performance

In 0bfe795, Site ANTS (https://ants.gouv.fr) experienced degraded performance:

HTTP code: 200
Response time: 13744 ms

Resolved: Site ANTS performance has improved in 749cedd.


[Doc] C++ Client API docs are incompleted

Search before asking

[X] I searched in the issues and found nothing similar.

What issue do you find in Pulsar docs?
If you check https://pulsar.apache.org/api/cpp/

There's no stable release after 2.5.0. All are snapshots and don't distinguish by patch versions.
What is your suggestion?
Figure out the reason, regenerate the content, and fix references to these pages.
cc @urfreespace @BewareMyPower
Any reference?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

I realized this issue as well. The release process doesn't include the release of C++ docs.

cc @BewareMyPower @Anonymitaet @merlimat @michaeljmarshall
May I ask how we generate C++ API docs now? I don't find an entry talking about it...

@tisonkun https://github.com/apache/pulsar-client-cpp/pull/103 will fix the doxygen generation.


Support dill and cloud pickles

https://pypi.org/project/dill/
https://pypi.org/project/cloudpickle/0.4.1/
These are two projects that do not require the source Python module to be loaded to interact with pickled data.

That sounds promising, and I'll investigate whether the suggestions are feasible for this extension. I appreciate your input.


Generation with model parallel Megatron LM

❓ Questions and Help
What is your question?
Is there an example demonstrating how to generate using Megatron LM that was trained using model parallelism? The Megatron LM page shows how to run evaluation but there's no information on running generation.
What have you tried?
I tried running the below command but got an error.

After some debugging, I found that this line in the code caused the above error. But I'm unsure of the cause. It's possible there are some setup issues (data etc). But an example on how to setup and run generation using model parallel megatron LM would be great. Thank you.

I think, this is on me, I never got around to fixing generate script with megatron MP. I can look into it, but no promises on timeline yet.
For a reasonable size of model, you can just stitch the model part back into a single model and do the generations reglarly.
Maybe give that a try here?

Sure. I can try that. Appreciate if you can give an example that shows how to stitch model parts to one.

Can anyone confirm that Megatron 11b treats all contiguous spaces as a single space? With some hacky code I have it successfully generating on 2 GPUs (after merging and re-splitting the partitions) but it doesn't seem to understand line breaks. That's a little disappointing since it seems smarter than GPT-2 in a lot of other ways.
Perhaps code was used during training?
https://github.com/pytorch/fairseq/blob/4c55744ec4cb26749cf2cf8dac89942f26ce4bd2/fairseq/tokenizer.py#L8-L14
There wouldn't seem to be any easy solution. Still appreciate Facebook making the biggest public model release.

Does anyone have an example of stitching the model parts together? Did the approach work to generate text with megatron_11b?

To join the model chunks maybe one could try like this:
https://github.com/facebookresearch/ParlAI/blob/abfb771ac4ed2966d6f3ea22c7a38e4ebc9cc0f0/parlai/agents/bart/convert_fairseq_to_parlai.py#L258-L307

Will push the the scirpts to glue and split partitions to master soon.

yeah the line break issue might need some thinking, will take a look at that also.

Hello @ngoyal2707, did you get a chance to push the scripts to manage the partitions somewhere?


ability to type routes

Being able to type which routes are allowed is very important for DX.
It could be implemented in this way:
import { NxRouter } from 'nxrouter';

interface ValidRoutes {}

const client = new NxRouter<ValidRoutes>(...);

released in v1


pr-branch-auto-delete - Causes a GitHub error/banner on repos that already auto-delete

Description
I think this is due to Refined GitHub, I've seen it a few times:

How to replicate the issue + URL

Enable auto-delete on a repo's settings
Merge one of your PRs
See banner

Extension version
24.6.14
Browser(s) used
Safari

Can't repro at all https://github.com/refined-github/refined-github/issues/7646


implement getting location information(Latitude, longitude and a city name))

I revoked the OpenWeatherMap Token exposed in the current commit following GitGuardian security checks.

⚠ GitGuardian has uncovered 2 secrets following the scan of your pull request.
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
🔎 Detected hardcoded secrets in your pull request
🛠 Guidelines to remediate hardcoded secrets
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.Our GitHub checks need improvements? Share your feedbacks!

I revoked the OpenWeatherMap Token exposed in the current commit following GitGuardian security checks.


Implementation of a "simplified" wrapper for atomics

Here is an implementation of the wrapper for atomics that we've discussed earlier.
The code has a couple of FIXMEs, those are basically my questions to reviewers. I'm not sure whether I should implement them, turn into proper TODOs or just delete them.
For now, I only used "simplified" atomics in a couple of places, mainly as an example (if this PR gets approved, I plan to change (most of) the other places too).
Note that the replaced AtomicU64 is the one that I've mentioned in our discussion - it used to use SeqCst on loads and Relaxed on stores, which didn't make much sense. I've replaced it with RelAtomicU64, which is the "relaxed" variant.
Edit: I forgot to mention, I also had to introduce traits for standard atomic types, similar to what the crate "atomic_traits" has, so that I could implement them for "loom" atomics too and then use them in my implementation of the wrapper.
Probably, we can get rid of the "atomic_traits" crate now. (Note though that the current version of my atomic traits doesn't support AtomicPtr. But I suppose it's not something we will miss).

The current implementation doesn't seem to take into account that we have to continue staking from where we left of, so last_timestamp_seconds_used should probably be updated in the main thread and returned to the request sender (rpc, for example). But again, one problem at a time.

Pavel asked me to look into this yesterday, and I've been thinking about how to solve this without cluttering the API. What I'm thinking is to cache this time along with the staking key within the blockprod subsystem. On future requests, we carry on from where we left off, but If we receive a new tip or a timer on the cache item goes off, we remove it from the cache.
Thoughts?


Define anti-affinity rules for zeebe

In order to make sure that pods are not scheduled on the same node we could define some anti-affinity rules which can be enabled by the user.

This is per default on now via #245 and #246


Fixes Javascript DateTimeRecognizer error - Fixes Issue #1826

resultValue should be initialized to null.
Fixes Issue #1826

@jheising I'll close this as there are wider changes to be done to properly fix the root issue.
"before the thirty-first day of the month" should ideally be recognized as one entity and properly parsed/resolved in both .NET and JS with the same behaviour.
The changes from PR #1831 should avoid such crashes for now and at least get the code to behave the same as .NET.
Thanks again for reporting this!


Add pointer to ConfigureAwait blog post

We should potentially add a link here to the blog post being added in https://github.com/microsoft/dotnet-blog/pull/397. We get lot of similar questions on this rule. Tagging @stephentoub

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

ID: 02d637a6-6f73-c865-94ea-28ca5d9861a0
Version Independent ID: df24f234-848f-e04c-488d-6b6346e51fa6
Content: CA2007: Do not directly await a Task - Visual Studio
Content Source: docs/code-quality/ca2007.md
Product: visual-studio-windows
Technology: vs-ide-code-analysis
GitHub Login: @jillre
Microsoft Alias: jillfra

https://devblogs.microsoft.com/dotnet/configureawait-faq/

Adding a link to the See Also section. Let me know if you need more visibility on the link.

@Mikejo5000 That sounds good to me. Thanks!


Make toolbar location configurable

It would be nice to be able to put the toolbar either above or below the figure, and have this configurable.

Decided this is too much configuration, and not worth the extra code.


Bug Fix - Fixed Horizontal scrollbar issue in the layout

Hi Avinash,
The width:100vw given to the body causes problems in the layout, I fixed it using percentage method. See the first screenshot it has a gap  in right side. Second Screenshot is the resolved screenshot.
Adding screenshot before & after the layout fixes.
Kindly approve my PR for the fix.
Adding Reference for the bug : https://stackoverflow.com/questions/25225682/difference-between-width100-and-width100vw
I just noticed that setting an element to be 100vw can cause a horizontal scrollbar to appear when a vertical scrollbar is visible. According to Can I use, only Firefox exhibits correct behavior by subtracting the scrollbar width from 100vw. For every other browser, you will need to use 100% instead.

good work , thank you !


Tools: Add missing DTR/RTS set before serial port open on reconnect (IDFGH-7403)

This makes sure --no-reset works correctly when the monitor reconnects the serial port.

Thanks for your contribution.

Thanks @nonoo!

sha=f6e414017122f4de1c227d36769ed6233661da57


Is rlite still an active project?

There has been no update since October 2020.
I am experiencing memory leaks when compiling a test program with AddressSanitizer.
Can we expect any updates or has the project been abandoned?

nop, abandoned


Is there a Try?

Hello. Say I have a function () => A that might throw an error. Is there a monad/function that turns it into an Option. Afaik this is called Try. There is IOMonad and Free monad but I can't figure out they serve this purpose.

Obviously I can make my own, but still, wondering what is the standard here.
tryOf(Function f) {
  try {
    return optionOf(f.call());
  } catch (e) {
    return None();
  }
}

@najibghadri The only thing I see like that is Either's catching function... but that's not quite it.

@najibghadri, the catching function that @ibcoleman mentions is probably the closest thing in dartz at the moment. It returns Either values, capturing any thrown exceptions as Left values, but if you want to discard any captured exception information you can always do
final maybeResult = catching(() => ...).toOption();

Ok, I can't hold back any longer...

This is it, lovely, thank you guys! 😊  🙏

@ibcoleman And yes, I love the running joke.. There is no Try and that's it.


Change step by step navigation active step link state

Adds underline to the currently active step link, following user research.
Before:

After:

Should it be styled more like this instead:

Not sure. Waiting on Kate.

We should maybe remove the $dot-size variable to avoid confusion for new developers.

We should maybe remove the $dot-size variable to avoid confusion for new developers.

I already did.


nice project - have a look at the Lab color space

You might be interested in doing color tinting, adjustments, interpolation, or manipulation in general in the Lab color space. I like especially the HCL representation which works like HSV. Once I understood this color space, RGB calculations feel completely wrong and ugly ;).
It works like this:
Convert RGB to Lab -> do your calculations -> Convert back to RGB

Currently out of scope -- I see it as a 'where does it end' type of thing, at least for this tool. Were I to target other color spaces, I would want to handle factors there and such, and right now the source for this guy is pretty small. I was originally looking into ciecam02, which was a bit overwhelming for someone just looking into all these color things, so when I do feel like getting more advanced I will return to this issue for reference.
If you are looking for better color options though, might want to take a look at https://github.com/baskerville/ciecam02

Of course. This was not a request - more a hint for the curious mind. Good luck!

Yepp, thanks for the input :)

Want to leave a comment here for any future spelunkers. colorspace exploration culminated in experiments built on top of emacs color.el (many notes within): color tools theme


fix: use translated name property for listing properties filter label

I had no text shown for my product properties in the listing filter. Using the translated helper fixed the issue.

@patzick hey,
can you give me a hint please what i need to do here 😃
Sorry, first time trying to do a pull request here 😉

hey @benjamin-ott !
you could only add changeset entry with information about your change, but it's not required for small changes
I'm trying to resolve our internal issue with syncing repositories, sorry it takes so long to merge it, I'll do this as soon as I can!

Thank you very much @benjamin-ott  for your patience and contribution!
Unfortunately, we have a problem with repositories synchronisation.
This PR was merged in this commit: https://github.com/shopware/frontends/commit/deaf9d1b60f5b32862e6e1bbf25e1a45c5361cdc
You're not shown as a commit author, but we'll mention you in the changelog of this change. Sorry for that, I hope we can fix this soon!

Don't worry, no problem.


backend validation for forms check for valid email and pasword format

 backend validation for forms check for valid email and pasword format


Adding helium to showcase.js

Show my app : Helium
Helium is an app where people can discover the best of what others are up to in their free time .

@facebook-github-bot shipit


Update add-tas-connector.md

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the CODEOWNERS.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://659e340b927e359fc37ba35f--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://659e3a79c96d52a2b18af89d--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://659e3ae83534a3a118deb809--harness-developer.netlify.app


polymer中文官网的翻译，可不可以更新的快点，英文不好的，看起来很难受啊

Hope I'll save you some time by using Google translate for you:
"Translation of the official website, can update faster, English is not good, looks very sad ah"
Guess @SamoZ requests a translation of the website.

谢谢，但是谷歌翻译有些不太准确，比如 polymer=“聚合物”.....
https://polymer-zh.cn/  这是翻译的版本，但是不是很快，所以希望可以注重下中国的使用者

@merlinnot 谢谢，但是谷歌翻译有些不太准确，比如 polymer=“聚合物”.....
https://polymer-zh.cn/ 这是翻译的版本，但是不是很快，所以希望可以注重下中国的使用者

I can help! (But how can I contribute to this?)

Closing this issue per https://github.com/Polymer/docs/issues/2249#issuecomment-319233181 and #4415. It seems that https://polymer-zh.cn/ is a proper alternative right now for Chinese translated documentation. If you would like to contribute to that documentation, feel free to contact the owners of that website (I couldn't figure it out sadly as I lack knowledge of the Chinese language).


Error when starting Svelte Example

I followed https://github.com/PeerPiper/peerpiper/tree/master/examples/svelte-app
with npm i and npm run dev as usual.
and successfully started:
cargo run --bin peerpiper-server
But the browser was showing me:

Do I have to compile or build peerpiper browser before?

The rust() vite plugin will build it for you, no need to do it manually
But npm run dev doesn't work (yet) with wasm + Vite. Try
npm install
npm run build
npm run preview -- --open

(I fixed the docs as I noticed it still said dev)

I have a justfile in the root that will run all the commands for you.
Install just then run
just all
I've added a note to the readme (I wasn't prepared for others to try this yet! Thanks for the issues)


Bug in upfrom version selection

When versions containing extra metadata, such as git sha1s, etc., the version sorter is treating the base version as the latest, i.e. given the following versions:
0.0.7
0.0.7-1-g4844472
0.0.7-2-g7712c1b
0.0.7-3-g19a7959

Each new version will use 0.0.7 as the upfrom version, rather than the correct variant.
See this gist for additional detail.
/cc @jeffweiss

@jeffweiss This is fixed in master now

💜


6: rust 1.74.1 update

closes #6

https://blog.rust-lang.org/2023/12/07/Rust-1.74.1.html

All I see here is the CHANGELOG.md and not the actual version bump

When the container is updated it will pull the version during the build.

For documentation purposes, the only way to trigger the build is to push a tag on this repo.  That should be a deliberate act and not something that would result in surprises.    That in particular is one of the reasons I've shared a pull request to update the version.  Everyone has a chance to build on latest, test and comment before we release.


Crash when using the lib on Windows

Bug description
When accessing windowmanager.getActiveWindow(), there is an uncaught exception :
Error: No native build was found for platform=win32 arch=x64 runtime=electron abi=80 uv=1 libc=glibc
at Function.load.path (webpack:///../node-window-manager/node_modules/node-gyp-build/index.js?:57:9)
at load (webpack:///../node-window-manager/node_modules/node-gyp-build/index.js?:22:30)
at eval (webpack:///../node-window-manager/dist/index.js?:23:133)
It has something to do with index.ts line 12. I pulled it locally and tried to change the require path, symlinked it to my electron project, and could not get anything to work. The same error always.
To Reproduce
Import the lib in an electron project running node 12 and the latest major electron version
IMPORTANT NOTE : to get the project to build, I had to change the prebuild command and add my node version :
"prebuild": "prebuildify --napi -t 12.18.0"
This may very well be related to the error, but without this change, the lib wont build.

False alert : I did not specify the lib as an external in the electronBuilder config. That caused the source of my issues. Now that I have done that, everything works fine. Maybe you can add a disclaimer about it somewhere. It might only be because of my specific electron + webpack setup, but I used a pretty popular boilerplate to start,


Token/SpaceId not exists even if they are

Expected Behavior
Run a contentful migration
Actual Behavior
Not able to run contentful migrations (most basic one*), getting this error
The provided space does not exist or you do not have access. Removing<EMAIL_ADDRESS>and switching back to 0.9.0 works as expected using the same spaceId and accessToken
*migration example:
module.exports = function(migration) {
    migration.createContentType('test', {
        'name': 'Test',
        'description': 'Test'
    });
}

Environment

Node Version: v10.0.0
Package Manager Version: 5.6.0
Operating System: Darwin Mindits-MacBook-Pro.local 17.6.0 Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
Package Version: 0.10.0

Hey @stefanzmindit are you using the tool as a library or as the command line. Can you provide the usage snippet

Hey,
I use it as library through a node script:
const runMigration = require('contentful-migration/built/bin/cli').default
const pathJoin = require('path').join;

function migrate() {
    runMigration({
        spaceId: 'SPACEID',
        accessToken: 'TOKEN',
        filePath: pathJoin(__dirname, 'files/migrate_1.js')
    })
        .then(() => console.log('Migration Done!'))
        .catch((e) => console.error)
}

migrate();

and in files/migrate_1.js
module.exports = function(migration) {
    migration.createContentType('test', {
        'name': 'Test',
        'description': 'Test'
    });
}

package.json looks like
{
  "name": "migration",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "migrate": "node do.js"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "contentful": "^6.1.1",
    "contentful-migration": "^0.9.0"
  }
}

Running the same script node run migrate with 0.10.0 gives me the error described, but replacing it with 0.9.0 (without doing anything else than npm uninstall contentful-migration and npm install<EMAIL_ADDRESS>works fine

@stefanzmindit It might be that I know what's the problem. Can you confirm that the same script with the contentful-cli works as expected?

I have run (after login)
contentful space migration --space-id SPACEID files/migrate_1.js and works as expected  (Migration successful and running one more time - Line 2: Content type with id "test" already exists.)
contentful -v : 0.14.2
*the same SPACEID used in the script/example above

Hey @stefanzmindit,
Can you try this code ?
const runMigration = require('contentful-migration/built/bin/cli').default
const pathJoin = require('path').join;

function migrate() {
    runMigration({
        spaceId: 'SPACEID',
        environmentId: 'master',
        accessToken: 'TOKEN',
        filePath: pathJoin(__dirname, 'files/migrate_1.js')
    })
        .then(() => console.log('Migration Done!'))
        .catch((e) => console.error)
}

migrate();

I will work on a fix today and release it

Magic, adding environmentId works :D.


Integrated Terminal Not Working

VSCode Version: 1.21.0
OS Version: Windows 10 - 1709

Steps to Reproduce:

Launch VS Code
Launch Terminal (Ctrl+`)

Does this issue occur when all extensions are disabled?: Yes
Even after I launch Code after multiple re-installations (Using the .exe and zip) and after deleting VS Code files in AppData/Roaming, the integrated terminal does not work properly and I cannot type text into it.

What do I do? I have looked at other forums that showed similar issues and followed their steps with no result. Even powershell does not work so how can I get the terminal working properly?

This is not a duplicate of #43169 . Can you replicate it @Tyriar ?

@WackyWesley please check some things for me:

Do you have compatibility mode on? (right click code.exe, properties, compatibility)
Anything in the console? (Help > Toggle Developer Tools)
What's your settings.json file?
Did the terminal ever work? Do you know when it started? A Windows update or VS Code update?


Added the swivel canon demo which was created during the workshop

Hey! Could you PR this over to clouduboy/microcanvas?
You will find the language conversion feature in the translate() function on the clouduboy-compiler.