ListrRenderer and ListrTaskObject are not imported

'Custom Renderers' documentations says that user have to do following:
import { ListrRenderer, ListrTaskObject } from 'listr2

but actual result is:
> require('listr2')
{ Listr: [Function: Listr],
  Manager: [Function: Manager],
  ListrError: [Function: ListrError],
  PromptError: [Function: PromptError],
  Logger: [Function: Logger],
  logLevels:
   { silent: 'silent',
     fail: 'fail',
     skip: 'skip',
     success: 'success',
     data: 'data',
     start: 'start',
     title: 'title' },
  newPrompt: [Function: newPrompt],
  createPrompt: [Function: createPrompt] }

Can you fix it, please? It will allow users to create custom loggers and etc.

I have not thought about this for JavaScript but you can also achieve it as follows.
Typescript version
import { ListrRenderer, ListrTaskObject, Listr } from '../src/index'

export class MyAmazingRenderer implements ListrRenderer {
  // Designate this renderer as tty or nonTTY
  public static nonTTY = true
  // designate your renderer options that will be showed inside the `ListrOptions` as rendererOptions
  public static rendererOptions: never
  // designate your custom internal task-based options that will show as `options` in the task itself
  public static rendererTaskOptions: never

  // get tasks to be renderered and options of the renderer from the parent
  constructor (public tasks: ListrTaskObject<any, typeof MyAmazingRenderer>[], public options: typeof MyAmazingRenderer['rendererOptions']) {}

  // implement custom logic for render functionality
  render (): void {
    this.tasks.forEach((task) => console.log(task.title))
  }

  // implement custom logic for end functionality
  end (err): void {}
}

async function main (): Promise<void> {
  await new Listr([
    {
      title: 'Test',
      task: () => {}
    }
  ], { renderer: MyAmazingRenderer }).run()
}

main()

JavaScript version
const { Listr, ListrRenderer } = require('../dist/index')

class MyAmazingRenderer {
  // Designate this renderer as tty or nonTTY
  static nonTTY = true
  // designate your renderer options that will be showed inside the `ListrOptions` as rendererOptions
  static rendererOptions = { test: false }
  // designate your custom internal task-based options that will show as `options` in the task itself
  static rendererTaskOptions = { taskOption: true }
  tasks = []
  options = {}

  // get tasks to be renderered and options of the renderer from the parent
  constructor (tasks, options) {
    this.tasks = tasks
    this.options = options
  }

  // implement custom logic for render functionality
  render () {
    this.tasks.forEach((task) => console.log(task.title))
  }

  // implement custom logic for end functionality
  end (err) {}
}

async function main () {
  await new Listr([
    {
      title: 'Test',
      task: () => {},
      options: {
        taskOption: true
      }
    }
  ], { renderer: MyAmazingRenderer, rendererOptions: { test: false } }).run()
}

main()

The autocomplete will work even though it will not extend the ListrRenderer. It is at the moment as declare class instead of class and since that is the case it can not be extended via JavaScript.
If this solution resolves your case, please close this issue. I have to fix this via utilizing some structural changes.

I have added the Listr base class to extend but accessing tasks and options objects are not possible due to their Typescript nature. Will also push this with next update.
const { Listr, ListrBaseRenderer } = require('listr2')

class MyAmazingRenderer extends ListrBaseRenderer {
  // Designate this renderer as tty or nonTTY
  static nonTTY = true
  // designate your renderer options that will be showed inside the `ListrOptions` as rendererOptions
  static rendererOptions = { test: false }
  // designate your custom internal task-based options that will show as `options` in the task itself
  static rendererTaskOptions = { taskOption: true }
  tasks = []
  options = {}

  // get tasks to be renderered and options of the renderer from the parent
  constructor (tasks, options) {
    super()
    this.tasks = tasks
    this.options = options
  }

  // implement custom logic for render functionality
  render () {
    this.tasks.forEach((task) => console.log(task.title))
  }

  // implement custom logic for end functionality
  end (err) {}
}

async function main () {
  await new Listr([
    {
      title: 'Test',
      task: () => {},
      options: {
        taskOption: true
      }
    }
  ], { renderer: MyAmazingRenderer, rendererOptions: { test: true } }).run()
}

main()


ADD content on how to install the SAMPLE APPS

Please ADD content on how to install the SAMPLE APPS, this used to be one toggle button but now appears separate. Installing Sample Data did not install Sample Apps to do the Labs and Training.

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

ID: 987f5898-c9e4-40e7-9898-e27f6bc64922
Version Independent ID: ebc7cbc9-2edb-b799-95a3-8b68c06a03ad
Content: Add or remove sample data - Power Platform
Content Source: power-platform/admin/add-remove-sample-data.md
Service: power-platform
Sub-service: admin
GitHub Login: @jimholtz
Microsoft Alias: jimholtz

Thanks for your comment, @theresedevine. This issue has been assigned to the doc author for review.

@theresedevine
You can get free trials of apps:
https://dynamics.microsoft.com/en-us/dynamics-365-free-trial/


Add bzip2 to the image

Some build need bzip2, for instance node application installing phantomJS.

This looks like a use case for a slave. These are the packages needed to deploy jenkins himself.

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

:-1: not usefull for jenkins itself. For such additional requirement, creating a derived Dockerfile and building your own image is a trivial task


Instagram blocking embed scrape

They've blocked company IPs, so when the request isn't made from a home IP it redirects to the login screen.

Yeah, it's completely broken.

I am currently testing remote scraping from my LTE dongle, which should hopefully fix some embeds for the next 1-2 hours. I am also checking how much bandwidth it uses as my LTE is not unlimited...

They've blocked company IPs, so when the request isn't made from a home IP it redirects to the login screen.

sorry if this is a stupid question, but yt-dlp still works fine? or they just block ddinstagram.com to request?

They've blocked company IPs, so when the request isn't made from a home IP it redirects to the login screen.

sorry if this is a stupid question, but yt-dlp still works fine? or they just block ddinstagram.com to request?

It will works fine if you only try to download a small number of posts. It became a problem when you have 5 or more posts every second

They've blocked company IPs, so when the request isn't made from a home IP it redirects to the login screen.

sorry if this is a stupid question, but yt-dlp still works fine? or they just block ddinstagram.com to request?

It will works fine if you only try to download a small number of posts. It became a problem when you have 5 or more posts every second

lemme know when you're ready to start a premium service. 👀

I am currently testing remote scraping from my LTE dongle, which should hopefully fix some embeds for the next 1-2 hours. I am also checking how much bandwidth it uses as my LTE is not unlimited...
upd: my dongle just died, please wait for another 2-3 days lol

Hi!
I have setup InstaFix at home with great results. It is available at fxxinstagram.com (It does not support all prefixes). If you need help hosting scrappers with residential IP addresses, I'm more than happy to help!

update: the services is now up again!

Yeap, I am currently testing with my phone as the LTE dongle. Seems to work fine hopefully my stuff will arrive tomorrow

Hello , I've found an easy solution for this issue, how can i contact author?

Hello , I've found an easy solution for this issue, how can i contact author?

Hello you can contact me at<EMAIL_ADDRESS>It would be nice to have more way to scrape, thank you

Seems to be stable enough after running for 3 days, I will close this issue


Fix init_letsencrypt.sh CONFIG_PATH

Problem for nginx cert update was init_letsencrypt.sh uses CONFIG_PATH=./conf, but qfieldcloud-nginx config has been moved to the docker-nginx folder.
Hence changing CONFIG_PATH=./ by default and completing the subsequent paths in init_letsencrypt.sh

Task linked: QF-4050 fix init_letsencrypt.sh CONFIG_PATH

Should not also the docker-compose.yml volume mount be included in the fix somehow?

Good question! I just tested: docker-compose handles relative paths gracefully.
It knows that paths given in docker-compose.yml are  relative to its own folder.

@dddpt can you test once again that this final version works. If it does you can merge it :+1:
thanks alot

tested on staging :ok_hand:


'Customer Address' not reflecting on the PayUDashboard

We are using  "PayUCheckoutPro-iOS" SDK to get payment from our customers. We require customer's address along with PayUPaymentParam for some internal usage. we are passing the address field as mentioned in the documents (Please refer the attachment). But the "Customer Address" field in the PayUDashboard still showing "--".
Can anyone help us with this?

Hi @chintanMaisuriya , As of now we are not using this model for Checkout PRO.
If you have any further queries please contact our integration team at<EMAIL_ADDRESS>Thanks!


check if there is difference between speaking just sentanse and sentanse in context

No difference found. It is the same.


Although I have installed Notebook Editor in advance, I still need to install it on the Consume page.

System Information (please complete the following information):
Windows OS: Windows-11-Enterprise-21H2
ML.Net Model Builder 2022: <IP_ADDRESS>1401 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.2.2)
Net: 6.0
Describe the bug

On which step of the process did you run into an issue:
Generated Notebook on the Consume page.

To Reproduce
Steps to reproduce the behavior:
Pre-Requisites: Install the latest Notebook Editor: <IP_ADDRESS>1003 from private feed https://privategallery.blob.core.windows.net/notebook-gallery/refs/heads/main/atom.xml

Select Create a new project from the Visual Studio start window;
Choose the C# Console App and .NET6.0 project template;
Add model builder by right click on the project;
Select any scenario;
Completed the training.
On the "Consume" page, you will see that you still need to install Notebook Editor.
After you click "Install Notebook" link to download and install it, it will be failed with error "The extension is already installed to all applicable product".

Expected behavior
You can generated Notebook successfully on the Consume page.
Screenshots:

Additional context:
If you didn't install Notebook Editor in advance, then install it directly from Consume page, it is also failed with below error.
6/13/2022 9:40:33 PM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData)    at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData)
at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

@v-Hailishi Does this only happen when you're using the private feed?

Never mind! I found the problem

@JakeRadMSFT What do you think we should do for VS 2019? Not show the Notebook extension at all? Change then link to say something about VS 2022?

@beccamc The Notebook description to include that the extension is required has been changed and link has been changed to always be "add to solution" on the latest main branch: <IP_ADDRESS>7501 for both VS2019&VS2022.


Delete application is currently broken

FOREIGN KEY constraint failed

Update only happens with apps created from cli

@ibolton336 applications assigned to migration waves cannot be delete.
So we need to disable the button and display an alert message.


Start only allows one option

Running start with multiple options:
brew autoupdate start 86400 --upgrade –-sudo

leads to the error:
Error: Invalid usage: This subcommand does not take more than 1 named argument.

But there are definitely use cases when you might want multiple options. --upgrade --sudo --immediate --cleanup, etc.

The command brew autoupdate start 86400 --upgrade --sudo works fine for me.
You are right, I actually recommend running the following combination:
brew autoupdate start 86400 --upgrade --cleanup --immediate --sudo
When I copy and paste your command from above, I somehow get the same error as you. I think there is some strange character in yours. I will try to figure it out.
Update:
Got it, you used - instead of - in the --sudo argument.
This issue can be closed.

Oh god, how embarrassing. I copy/pasted from somewhere with bad formatting. Closing.


Where is that GetJsonAsync() method defined?

...and how it is available in a *.razor file?

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

ID: 36e7dc3c-54c4-35de-203e-d230869e8417
Version Independent ID: dc5b52d5-c8c6-1440-6b3a-fda898167d0c
Content: Build your first Blazor app
Content Source: aspnetcore/tutorials/build-your-first-blazor-app.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @guardrex
Microsoft Alias: riande

Hello @tbebekis ... that coverage is on the way. We're working on the PR now. See: https://github.com/aspnet/AspNetCore.Docs/pull/12477


fix correctness errors for AVS 2020-03-20 API

This is to fix errors identified in:
Swagger Correctness: MICROSOFT.AVS(Azure VMware Solution)
https://msazure.visualstudio.com/Swagger KPIs/_workitems/edit/8187811
& a linting error identified at https://aka.ms/LiveValidation.

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of “no breaking changes
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[ ] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
Adding a new service

[ ] Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable version with Breaking Change Validation errors
[ ] Updating API(s) in preview over 1 year

Please follow the link to find more details on PR review process.

/azp run automation - sdk

/azp run automation - sdk

The 11 errors listed as "breaking changes" listed fall into two categories:

1041 - AddedPropertyInResponse
These are all for Operations_List, to match what is actually returned.
1023 - TypeFormatChanged
The lint errors says that a format is required for integer. It was unspecified. They are all int32. I can roll back afa02748920ca55b97781e4ee37e3b4e8bd6d248 if needed.

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

This is considered an urgent issue, so I created an ICM to get this reviewed:
https://portal.microsofticm.com/imp/v3/incidents/details/210561485/home

@ruowan, there is a one single sdk breaking change reported by the pthon sdk check. It is saying:

Operation ClustersOperations.create_or_update has a new signature

No other SDK has a breaking change. A stable version of the python SDK has not yet been published, so I do not think this is a blocking issue. If you look at https://pypi.org/project/azure-mgmt-avs/#history, you will see two versions:

1.0.0rc1 on July 14 for the 2020-03-20 API
0.1.0 on June 19 for the 2019-08-09 API

The az-vmware-cli uses autorust with --use=<EMAIL_ADDRESS>and there are no breaking changes. The breaking changes check is using --use=<EMAIL_ADDRESS>I'm not sure what version of autorust.python, the 1.0.0rc1 used.
I will ask for a stable 1.0.0 of azure-mgmt-avs after this is merged.

I created this breaking change review: https://msazure.visualstudio.com/One/_workitems/edit/8653604

@changlong-liu Could you pls help to review this Python Breaking Change?

Hi @ruowan @ctaggart , I added comments in the github issue: https://github.com/Azure/azure-sdk-for-python/issues/14735
Hi @ctaggart ,
for breaking change about create_or_update:
It related to the "Cluster" model definition changes in your PR. Originally there are only two properties in it is not readonly, (sku and clusterSize); currently there more properties become to non-readonly. This make the cluster parameter in create_or_update can be flattened in Python.

@changlong-liu those breaking changes are occurring when you run autorest against the current specification: https://github.com/ctaggart/azure-sdk-for-python/pull/1/files#diff-4db79dc989d60426c9b0788a2502c7c7c85acd73e15617a48794ca0691337080R179
There are no breaking changes caused by these spec changes in the Python SDK: https://github.com/ctaggart/azure-sdk-for-python/pull/2

@ruowan, the breaking changes review was approved. Please merge this. I'll request new SDK versions once merged.


backport log4j2 plugin to 1.8.x

Cherry-picked from the following commits and adapt for pinpoint 1.8.x:
25cf954cc [#5971] fix test code fail
249c5dd03 [#5971] [#5989] add IT for log4j2 async logger
47b75b104 [#5971] add target profiling class when use "Making All
Loggers Asynchronous" function
4e8e81fe7 [#5971] add guide for log4j2 in per request logging doc
f50f73e13 [#5971] add guide for log4j2 in per request logging doc
fb886ae78 [#5971] update agent-it for log4j2
c004a616b [#5971] Log4j2 plugin
a46775750 [#5971] support log4j2

I squashed into one commit. The adaption-only commit can be viewed at here.

Wow~ good!
Could you add this commit? https://github.com/naver/pinpoint/commit/25cf954cccd9bc31c35700cc2a02882ebbe86e23

Codecov Report

Merging #5991 into 1.8.x will decrease coverage by 0.03%.
The diff coverage is 36.98%.

@@            Coverage Diff             @@
##            1.8.x    #5991      +/-   ##
==========================================
- Coverage   40.66%   40.63%   -0.04%
==========================================
  Files        2670     2673       +3
  Lines       80368    80441      +73
  Branches    10889    10901      +12
==========================================
+ Hits        32685    32687       +2
- Misses      44721    44784      +63
- Partials     2962     2970       +8

Impacted Files
Coverage Δ

...log4j2/interceptor/LogEventFactoryInterceptor.java
100% <100%> (ø)

...navercorp/pinpoint/plugin/log4j2/Log4j2Config.java
100% <100%> (ø)

...navercorp/pinpoint/plugin/log4j2/Log4j2Plugin.java
17.85% <17.85%> (ø)

...vercorp/pinpoint/rpc/packet/ServerClosePacket.java
52% <0%> (-16%)
:arrow_down:

...r/response/DefaultResponseTimeMetricCollector.java
85.71% <0%> (-14.29%)
:arrow_down:

...pc/server/LoggingServerMessageListenerFactory.java
90% <0%> (-10%)
:arrow_down:

...rp/pinpoint/rpc/server/PinpointServerAcceptor.java
84.93% <0%> (-4.8%)
:arrow_down:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
68.96% <0%> (-3.45%)
:arrow_down:

...ofiler/sender/StandbySpanStreamDataSendWorker.java
80.59% <0%> (-2.99%)
:arrow_down:

...om/navercorp/pinpoint/rpc/codec/PacketDecoder.java
61.7% <0%> (-2.13%)
:arrow_down:

... and 7 more

Continue to review full report at Codecov.

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

Merged.


Change "autocmd TextYankPost" to support neovim Y in readme

Change
autocmd TextYankPost * if v:event.operator is 'y' && v:event.regname is '' | execute 'OSCYankReg "' | endif

to
autocmd TextYankPost * if (v:event.operator is 'y' || v:event.operator is 'Y') && v:event.regname is '' | execute 'OSCYankReg "' | endif

to support neovim Y yank (same as y$).
This seems to be working fine on my neovim configuration.

I've tried on Neovim and Y is supported even with the current autocommand. Can you provide more context about this change?

I've tried on Neovim and Y is supported even with the current autocommand. Can you provide more context about this change?

I was 100% sure I didn't get yank with Y when I initially tested. I got stuff to my clipboard with yy.
But now after I reverted my change and tested again, it works as intended.
Don't know what changed, but it works just fine. I'll close this issue as it seems to be failure on my part.


Feature request: commit from cli without opening chat

The utility of writing a commit summary and making a commit is useful outside of the context of a chat.
Something like aider commit, aider /commit or aider --commit.

This is a great idea, I'll keep it in mind. Thanks.

The change is available in the main branch. You can get it by installing the latest version from github:
python -m pip install git+https://github.com/paul-gauthier/aider.git

If you have a chance to try it, let me know if it works better for you.

I'm going to close this issue for now, but feel free to re-open or file a new issue any time.

This is great! I woke up this morning to people talking about it on X :)


Add WebPush support for Safari

PR for #673
Stores the full endpoint url for web push given by the browser, in the registration_id of the model, instead of just the token, and use exactly what the browser gave us when we send the message. Still supports existing registration_id/browser combo's but rasies a warning.
Also:

Adds tests for web push
Update docs for configuring web push
Handle 404/410 when regeistering and deactivate device
Remove pywebpush from APNS' options.extras_require in setup.cfg

The new docs address issues/questions raised in #647, #658, #665
The PR was inspired/informed by #487, #558, #602, #603, #604, #605

tores the full endpoint url for web push given by the browser, in the registration_id of the model, instead of just the token, and use exactly what the browser gave us when we send the message.

I also thought about this aspect some time ago when I added push support and think this is a really good idea. This could also remove the need to extract the browser type via javascript, because we then already have the url of the endpoint we need to send the push to stored in the WebPushDevice object.

iOS 16.4 just landed. What's the current status here? Are there still things that need to be done?

From my prespective, as a first time contributor, this is ready to go.
I assume the next step is a code review.

I am not a maintainer, but I could take this for a test spin. Do you know who could do a release?

Hi, is there any update please?

Hey guys. Any updates on this? Can we do one more push and have it released? Thanks in advance.

I tested this branch on several browsers, including Safari on iOS and I confirm this works!

For what it worth, instead of manually using py-vapid, I could do the key generation dynamically with:
from py_vapid import b64urlencode
from py_vapid import Vapid02 as Vapid
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import ec

def vapid_public_key(path):
    vapid = Vapid.from_file(path)
    pk = vapid.public_key.public_bytes(
        serialization.Encoding.X962, serialization.PublicFormat.UncompressedPoint
    )
    return b64urlencode(pk)

def generate_private_key(path):
    private_key = ec.generate_private_key(ec.SECP256R1, default_backend())
    private_pem = private_key.private_bytes(
        encoding=serialization.Encoding.PEM,
        format=serialization.PrivateFormat.PKCS8,
        encryption_algorithm=serialization.NoEncryption()
    )
    with open(path, "wb") as file:
        file.write(private_pem)
        file.close()

generate_private_key can be used if the private key does not exist, vapid_public_key can be used to get the base64 export of the public key and insert it dynamically in the templates.

@blighj once you address @azmeuk I think this is good to merge.  Nice work!

@blighj looks like there are some newly failing tests

:) Thank you kindly
I think you could now safely close PR #487
And the issues #457, #526, #629, #647, #657, and #665
a release to version 3.1.0 would be much appreciated too


some question about prior_loss

Thanks for your great work.  Recently, I am using the hidden_state output from a large language model as the input of the matcha_tts encoder for training. I have fit a sample tens of thousands of times, but the loss is still very large, especially the priority_loss has always been between 1-2. Is there a solution to this problem? ?

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

what do you mean..

Is your LLM frozen or are you training any aspect of it?

yes， I froze my llm, I noticed that your input text is first converted into a phoneme sequence through the phonemizer library and provided to the speech synthesis model, but I directly use the hidden_state output by llm as input; between the two, is the former easier Training? have you ever tried discretizing text directly as input to the model?

I think since your input is not text but already some representation that should be able to capture hidden nuances of phonemization, it should be fine. It is definitely an easier mapping if the input is phonetised but the model should be able to learn. I am actually not sure, why the prior loss is so high. Did you try listening to the outputs of the model is it utter garbage? (prior loss being MSE can be a bit high sometimes)

Thanks for your such a quick reply! I generated the inference results of the model, which gt is
The Poveys ate all the fish they could and sometimes more than they enjoyed because on his sober days Hollins invariably started his round at the shop, and Constance had to buy for Maggie's sake .
This example is from the training set. The output of the model does not seem to be fully fitted... I have tried the same data and used the text phonetised to train matchatts, and it can be fitted. I also tried increasing the number of training epochs, but the gains were very small.
target.wav_and_model_output.wav.zip

Then, I would have to believe that the hidden representations might not capture what is required to synthesise speech. I am not sure what would be an easy fix to this, perhaps train some part of the output embeddings using LoRA?

Any ideas?


Does Kodein have support for something like Dagger2's @Reusable annotation?

On Android it really makes sense to optimize by making several stateless objects singletons even when we don't really need them to be "true" singletons we just don't want to recreate them over and over.
Dagger has a mechanism for that using @Reusable annotation.
Here's a great blogpost about this too: Single vs Double check
I couldn't find something similar but I may have missed something. If there's not would you consider to add support?

Well, I find this @Reusable annotation very badly named!
If I understand Dagger's SingleCheck code, it's basically a singleton that is not atomically checked, so it may be constructed multiple times in the very rare case of multiple DI request to this type at the exact same time.
What I don't understand is why this is desirable. Especially in Android where allocation is heavy, and where it's probably cheaper to make a double check.
The synchronized part of the double check happens only on allocation and on that rare case of multiple concurent first access.
I need more use case before adding such a corner case to Kodein, which is already a very complex lib!

Indeed allocation is heavy as well but the case which leads to multiple allocation can be considered an edge case itself. In our complex application (which has a deep dependency tree with occasionally several tens maybe hundreds of singletons being initialized on app start) we had significant improvement on App launch time by moving to single checks and keep double where it was not absolutely necessary to be thread safe. It is really rare that the singletons are accessed parallel first time so multiple allocation is pretty rare too.

Version 5.3.0 of Kodein will support singleton(sync = false) and multiton(sync = false).
Using sync = false will disable the use of synchronized, which is indeed a significant startup performance boost.
I'll close this issue once version 5.3.0 is released ;)

Kodein DI 5.3.0 has been released :)
http://kodein.org/Kodein-DI/?5.3/core#_non_synced_singleton


with v4, webpack builds fail

Observed Error
[WEBPACK] ERROR in ./node_modules/multi-progress-bars/dist/multi-progress-bars.es.js 1:0
[WEBPACK] Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0)

This is due to having a "type": "commonjs" in your top-level package.json: https://github.com/kamiyo/multi-progress-bars/blob/master/package.json#L13
Proposed Solution
I think it could be resolved in a way that "just works" with the default webpack behavior by renaming your dist/multi-progress-bars.es.js to instead use a .mjs extension (this would require two matching changes to the package.json).

Sorry I've missed all these issues. I'll take a look.


fix(app): dismiss current run after pipette flow completes

fix RQA-626

Overview

We want to dismiss the runs we're using for pipette attach/detach/calibrate flows once the flow is complete (successfully or exited early)
Note: this is a temporary change to make ABR testing more smooth - the FE maintenance run work will make this irrelevant
Test Plan

Run through any pipette flow and confirm that once you exit, there is not a current run
Changelog

Once the run is successfully stopped, issue dismissCurrentRunMutation
Review requests

Run through the test plan, ensure code change looks sound
Risk assessment
Low

@jerader @smb2268 can put this in internal-release_0.3.0 especialyl since it's temporary?


Add keyword arguments to Sprintf, similar to Python's .format()

In Python, you can use keywords and numbers in format() to refer to the same part of a string for replacement - see https://www.digitalocean.com/community/tutorials/how-to-use-string-formatters-in-python-3#reordering-formatters-with-positional-and-keyword-arguments
You can probably do the same thing in Go, I just don't know how.
It would be useful to have similar functionality in Force too, so that rather than needing to repeat the same argument multiple times:
Sprintf("%s %s %s %s", "banana", "banana", "banana", "cabbage")

We could do things like:
# named references
Sprintf("{one} {one} {one) {two}", one="banana", two="cabbage") # prints "banana banana banana cabbage"

# numbered references
Sprintf("{0} {0} {0) {1}", "banana", "cabbage") # prints "banana banana banana cabbage"

# or maybe the ultimate, more Force-like structure...
Sprintf("{s.One} {s.One} {s.One} {s.Two}", struct s{One: "banana"; Two: "cabbage"}) # prints "banana banana banana cabbage"

This is perhaps easier in Python because of its duck typing.

``
Sprintf("{s.One} {s.One} {s.One} {s.Two}", _{One: "banana"; Two: "cabbage"})

That would be super cool.


Start collecting data at higher tps already

nice, I let dan handle this.

Alright left some inline comments, just a few logic errors, easy fixes. Otherwise great!

I've tested and confirmed this works on CivTest. Merging and closing.


Add Rendevous Routing - Christian Decker

@adamjonas I'm not sure I did this transition how I was supposed to...but this is one step "righter" than the last time.


Parallel Gradle tests have trouble finding valid Docker environment

Hi,
I know about the limitations that JUnit 5 is not tested with a parallel setup and corresponding ticket https://github.com/testcontainers/testcontainers-java/issues/1495.
I'm opening this because it's a slightly different issue (but probably the same effects). We're not using parallel JUnit 5 tests or the testcontainers JUnit 5 extension at all, but specify ./gradlew test --parallel to parallelize the different Gradle tasks in a multi-module setup.
We're often getting the following messages in random modules, while the others work fine (so it's not a general problem where all modules fail). There is even the chance that everything works fine, but the flakyness has increased lately
    15:15:41.847 [Test worker] DEBUG org.testcontainers.dockerclient.DockerClientProviderStrategy - UnixSocketClientProviderStrategy: failed with exception TimeoutException (org.rnorth.ducttape.TimeoutException: java.util.concurrent.TimeoutException). Root cause TimeoutException (null)
    15:15:41.848 [Test worker] DEBUG org.testcontainers.dockerclient.RootlessDockerClientProviderStrategy - $XDG_RUNTIME_DIR is set but '/run/user/997/docker.sock' does not exist.
    15:15:41.850 [Test worker] DEBUG org.testcontainers.dockerclient.RootlessDockerClientProviderStrategy - '/var/lib/jenkins/.docker/run' does not exist.
    15:15:41.895 [Test worker] DEBUG org.testcontainers.dockerclient.RootlessDockerClientProviderStrategy - '/run/user/997/docker.sock' does not exist.
    15:15:41.961 [Test worker] INFO org.testcontainers.dockerclient.DockerMachineClientProviderStrategy - docker-machine executable was not found on PATH ([/usr/local/bin, /usr/bin, /bin, /usr/games])
    15:15:41.994 [Test worker] ERROR org.testcontainers.dockerclient.DockerClientProviderStrategy - Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
    15:15:41.995 [Test worker] ERROR org.testcontainers.dockerclient.DockerClientProviderStrategy -     UnixSocketClientProviderStrategy: failed with exception TimeoutException (org.rnorth.ducttape.TimeoutException: java.util.concurrent.TimeoutException). Root cause TimeoutException (null)
    15:15:41.996 [Test worker] ERROR org.testcontainers.dockerclient.DockerClientProviderStrategy - As no valid configuration was found, execution cannot continue

Our testcontainers part looks roughly like this in a base integration test class that the tests across modules all extend from:
	private static final DockerImageName imageName = DockerImageName.parse("our-artifactory/postgres:latest")
			.asCompatibleSubstituteFor("postgres");

	private static final PostgreSQLContainer<?> postgresContainer = new PostgreSQLContainer<>(imageName)
		.withDatabaseName("db")
		.withUsername("user")
		.withPassword("pass")
		.withStartupAttempts(5)
		.withStartupTimeout(Duration.ofMinutes(2))
		.withLogConsumer(new Slf4jLogConsumer(log));

	static {
		// Only use init script if resource exists
		String initScript = "docker/db/init.sql";
		URL resource = ScriptUtils.class.getClassLoader().getResource(initScript);
		if (resource == null) {
			initScript = null;
		}

		postgresContainer.withInitScript(initScript).start();
	}

Unfortunately, I can't share more or an example project. But any help is highly appreciated.
Cheers,
Christoph

I've raised client.ping.timeout to 30 again - let's see if this solves things.

Raising client.ping.timeout to 30 again solved the issue for me. Maybe the default of 30 can be brought back or this ticket can be turned into a documentation ticket.

Thanks for raising this issue and documenting your findings and a workaround @dreis2211.
This is basically an issue with the Docker daemon (or the machine executing the tests) getting overloaded from the amount of concurrent Testcontainers usage (and thereby Docker usage). The default timeout should be totally fine for regular usage, but it might be worth thinking about how we can document these circumstances under high load.
May I ask how long your build takes with --parallel vs completely sequential?
With regards to the actual issue, I am closing it, but we can continue the conversation here 🙂 .

That particular build step takes ~12 minutes sequentially vs. roughly 6 minutes when we run it with --parallel, @kiview .

@dreis2211 Thanks for letting us know and generally great to hear that using --parallel improves your cycle time. In this case, it might indeed make sense to document the usage of this config property for those scenarios a bit more explicitly.


796 multiple ui tree handles

This PR addresses issue #796
It allows:

Multiple uiTreeHandles within a single uiTreeNode
The ability to pass an arbitrary object to a uiTreeHandle, that object is stored within the handle's scope
The flagging of which uiTreeHandle is used for dragging an element

The upshot of all this is that it is now possible to have multiple drag handles and know which one was used to drag a node, thereby allowing different actions to be taken in the callbacks

Changes Unknown when pulling f88d922c9e259f9f2878d29a3c3a0926504bf202 on PTFS-Europe:796-multiple-ui-tree-handles into ** on angular-ui-tree:master**.

@AndrewIsh thanks for your work!
This seems like a good addition, however I'm curious to learn about your use case for this feature.
Can you please document this behaviour by adding an example page to the website?

@AndrewIsh any updates on this?

Hi @Voles
Sorry, this got completely lost under a pile of other stuff, so I very much appreciate the reminder!
My original use case was that I was creating a UI whereby if a user used one drag handle then the node being dragged was moved, but if they used a different one then the node was copied. I ended up building the UI in a way that didn't require this workflow in the end.
My head is so far out of angular-ui-tree that I'm not even sure if the workflow that originally prompted the PR is a valid one. If you feel it is then I'll be happy to produce an example page. If not, then by all means drop this PR.


Short solution needed: "Using Mysql with Lua " (nginx-lua)

Please help us write most modern and shortest code solution for this issue:
**Using Mysql with Lua ** (technology: nginx-lua)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments to make solution explained.
Link to this issue in comments of pull request.

How to execute Mysql query


[Quantize NanoDet-Plus-m (pytorch)] TypeError: cannot pickle 'torch.memory_format' object

I modified 'example_pytorch_mobilenet_v2.py'script to quantize Nanodet-Plus-m (backbone ShuffleNetv2)
https://github.com/sony/model_optimization/blob/main/tutorials/example_pytorch_mobilenet_v2.py

    # Change the recursion limit
    sys.setrecursionlimit(1500)
    # Load nanodet model
    config = "config/nanodet.yml"
    weights = "nanodet.ckpt"
    load_config(cfg, config)
    local_rank = -1
    torch.backends.cudnn.enabled = True
    torch.backends.cudnn.benchmark = True
    cfg.defrost()
    timestr = 'log'
    cfg.save_dir = os.path.join(cfg.save_dir, timestr)
    mkdir(local_rank, cfg.save_dir)
    logger = NanoDetLightningLogger(cfg.save_dir)

    nanodet_pytorch = Predictor(cfg, weights, logger)
    model = nanodet_pytorch.model

    # Set the batch size of the images at each calibration iteration.
    batch_size = 1

    # Set the path to the folder of images to load and use for the representative dataset.
    # Notice that the folder have to contain at least one image.
    folder = 'test'

    # Create a representative data generator, which returns a list of images.
    # The images can be preprocessed using a list of preprocessing functions.
    from model_compression_toolkit import FolderImageLoader

    image_data_loader = FolderImageLoader(folder,
                                          preprocessing=[np_to_pil,
                                                         transforms.Compose([
                                                             transforms.Resize(320),
                                                             transforms.ToTensor(),
                                                             transforms.Normalize(mean=[103.53, 116.28, 123.675],
                                                                                std=[57.375, 57.12, 58.395]),
                                                         ])
                                                         ],
                                          batch_size=batch_size)

And I got issue
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 230, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 270, in _reconstruct
state = deepcopy(state, memo)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 230, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 230, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 264, in _reconstruct
y = func(*args)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 263, in
args = (deepcopy(arg, memo) for arg in args)
File "/mnt/hdd10tb/Users/thaovu/.conda/envs/yolov5/lib/python3.8/copy.py", line 161, in deepcopy
rv = reductor(4)
TypeError: cannot pickle 'torch.memory_format' object
Do you have any suggestion?

Can you please give more information about the error output? I cannot understand where the error is coming from in the MCT library.
Can you please provide:

The full stack of the error?

If there is an available public model, so we can reproduce the same error?

Thank you for your quickly reply :D
I met same error when quantize ShuffleNetv2. Here is my code.
# Copyright 2022 Sony Semiconductors Israel, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
from torchvision.models import mobilenet_v2
from PIL import Image
from torchvision import transforms
import model_compression_toolkit as mct

import torch
import os
import sys

"""
This tutorial demonstrates how a model (more specifically, MobileNetV2) can be
quantized and optimized using the Model Compression Toolkit (MCT).
"""

def np_to_pil(img):
    return Image.fromarray(img)

if __name__ == '__main__':
    sys.setrecursionlimit(1500)

    # Set the batch size of the images at each calibration iteration.
    batch_size = 1

    # Set the path to the folder of images to load and use for the representative dataset.
    # Notice that the folder have to contain at least one image.
    folder = 'test'

    # Create a representative data generator, which returns a list of images.
    # The images can be preprocessed using a list of preprocessing functions.
    from model_compression_toolkit import FolderImageLoader

    image_data_loader = FolderImageLoader(folder,
                                          preprocessing=[np_to_pil,
                                                         transforms.Compose([
                                                             transforms.Resize(320),
                                                             transforms.ToTensor(),
                                                             transforms.Normalize(mean=[103.53, 116.28, 123.675],
                                                                                std=[57.375, 57.12, 58.395]),
                                                         ])
                                                         ],
                                          batch_size=batch_size)

    # Create a Callable representative dataset for calibration purposes.
    # The function should be called without any arguments, and should return a list numpy arrays (array for each
    # model's input).
    # For example: A model has two input tensors - one with input shape of [3 X 32 X 32] and the second with
    # an input shape of [3 X 224 X 224]. We calibrate the model using batches of 20 images.
    # Calling representative_data_gen() should return a list
    # of two numpy.ndarray objects where the arrays' shapes are [(20, 3, 32, 32), (20, 3, 224, 224)].
    def representative_data_gen() -> list:
        return [image_data_loader.sample()]

    # Get a HardwareModel object that models the hardware for the quantized model inference.
    # The model determines the quantization methods to use during the MCT optimization process.
    # Here, for example, we use the default model that is attached to a Pytorch
    # layers representation.
    hardware_model = mct.get_model('pytorch', 'default')

    # Create a model and quantize it using the representative_data_gen as the calibration images.
    # Set the number of calibration iterations to 20.
#    model = mobilenet_v2(pretrained=True)
    model = torch.hub.load('pytorch/vision:v0.10.0', 'shufflenet_v2_x1_0', pretrained=True)
    # set quantization configuration
    quantization_config = mct.DEFAULTCONFIG
    # Configure z threshold algorithm for outlier removal. Set z threshold to 16.
    quantization_config.z_threshold = 16
    # run post training quantization on the model to get the quantized model output
    quantized_model, quantization_info = mct.pytorch_post_training_quantization(model,
                                                                                representative_data_gen,
                                                                                fw_hw_model=hardware_model,
                                                                                n_iter=20)

Hi,
We currently don't support dynamic input shapes to the 'view' operator (that come from operators in the model graph, such as 'torch.Tensor.Size'). This is present in the "channel_shuffel" function. We are working to support this in the coming release.
I can suggest a quick fix if you would like to run this network. You need to replace the places where the input sizes to 'view' are dynamically calculated. Specifically, you need to replace the function:
def channel_shuffle(x: Tensor, groups: int) -> Tensor:
    batchsize, num_channels, height, width = x.size()
    channels_per_group = num_channels // groups

    # reshape
    x = x.view(batchsize, groups, channels_per_group, height, width)

    x = torch.transpose(x, 1, 2).contiguous()

    # flatten
    x = x.view(batchsize, -1, height, width)

    return x

to
def channel_shuffle_with_constant_shapes(x: Tensor, groups: int, num_channels: int, height: int, width: int) -> Tensor:
    channels_per_group = num_channels // groups

    # reshape
    x = x.view(-1, groups, channels_per_group, height, width)

    x = torch.transpose(x, 1, 2).contiguous()

    # flatten
    x = x.view(-1, num_channels, height, width)

    return x

Please use this function only with constant integer values (that don't come from x.size).
In addition, we found a minor issue which we fixed. So when you run this network, please use the nightly version (pip install mct-nightly).


select array_concat([]) panicked

Describe the bug
thread 'main' panicked at datafusion/datafusion/functions-array/src/concat.rs:275:32:
index out of bounds: the len is 0 but the index is 0
To Reproduce
Run any of the following queries in CLI.
DataFusion CLI v37.1.0
> select array_concat([]);

DataFusion CLI v37.1.0
>  select array_concat(make_array());

Expected behavior
No response
Additional context
No response

I can fix this one if no one is working on this

@Lordworms Not sure what is your idea to solve this problem. I expect this to be solved with the correct signature.
I had done it at https://github.com/apache/datafusion/pull/8594. If you come out with another better idea, it is also nice.

select array_concat(make_array());

Hi @jayzhan211 I was going to implement the same behavior like DuckDB

I could directly check the returnType here do match the behavior of DuckDB

and make datafusion support query like

@Lordworms
I think arguments validity check are more like signature instead of one that need to be computed by the user in return_type.

@Lordworms I think arguments validity check are more like signature instead of one that need to be computed by the
Yes, I understand, but if we need to validate argument in signature a suitable way to do it is more likely what you did in https://github.com/apache/datafusion/pull/8594
user in return_type.
I'll try to see if I can come up with a better way, thanks for your advice!

After #10439, I believe array_concat should use user-defined signature given it's speciality, therefore we can check the empty array in coerce_types for array_concat and return exec_error instead of panicking
cc @Lordworms

I have a PR that updates the array_concat signature, maybe I can resolve the panic issue together.

Actually, I'm thinking about whether we should change the behavior of array_concat similar to postgres and duckdb.
It is one of the earliest array functions that we don't follow what postgres and duckdb's behavior 🤔

Fixed by #10790 10790


Add decoder and encoder latency log to yamidecode and yamitranscode(for performance test)

add latency information to yami-utils

move it to yami-util (https://github.com/01org/libyami-utils/issues/52) and close it.


Add screenshots for updating the wiki

Purpose/implementation Section
What changes are being implemented in this Pull Request?
WIth all the recent changes -- #458 #449, #448, etc, the wiki needs to be updated accordingly.
I'm adding some screenshots in order to do that.

I was trying to see if more steps could be consolidated for pull request checks, but it does not appear to work that way.


Spyder 5.2.1 installs two DLL's for numpy gfortran. Deleting one of those DLL's makes the warning go away.

Issue Report Checklist

[X ] Searched the issues page for similar reports
[X ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[X] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[X] Could not reproduce inside jupyter qtconsole (if console-related)
[X] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[ ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
Installing 5.2.1 via the Windows Download package created two DLL's for numpy gfortran in this folder, one dated Nov 2021 and one dated Dec 2021.
C:\Program Files\Spyder\pkgs\numpy.libs
That led to an error message when starting Spyder
What steps reproduce the problem?

Hm.... I didn't. I deleted the older of the two DLL files to see what would happen. Spyder appears to be working just fine.

Not exactly the world's worst bug :-) Thanks for the continued support of Spyder.

Hi @Tunneller thank you for the feedback! When you used the installer for version 5.2.1 did you had a previous version installed? I think we don't have that documented but the installer will overwrite the files in the installation dir but will not remove old files so for a clean installation you need to first uninstall the old version and then install the current one (maybe we should check a way to do this automatically though).
I checked my installed 5.2.1 version and under .../Spyder/pkgs/numpy/.libs I only found one .dll
Let us know if the above makes things more clear!

Closing due to lack of response. Probably related to https://github.com/spyder-ide/spyder/issues/17025


Error when selecting the following delegator: WePiggy Staking

I would like to transfer my tokens out of the following delegator: WePiggy Staking, however every time I click on the name it takes me to a blank page and I am kicked out of my wallet (as shown in the video, I get taken out to the following URL that doesn't load https://wallet.oasisprotocol.org/account/oasis1qz23vch5ah2gxx0lt048nlp03swvvu9q0care53a/active-delegations). This issue is not prevalent when I select other delegators.
https://user-images.githubusercontent.com/98562413/151459565-c8906050-bd35-4420-a2fb-7423ba208cdb.mp4
Can someone please explain what is happening?

thanks for the detailed report! let's see if #611 fixes this

Thank you for reporting this issue. We have updated our Oasis Wallet with bug fixes and new features which should also solve mentioned issue above.
If you still encounter same or similar issue, please check our FAQ or send an email to our support team at<EMAIL_ADDRESS>


uxn: 2021-08-30 -> 2022-10-22

Description of changes

Now trying to use the builder script.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Duplicates #197698
@AndersonTorres is it a coincidence that you opened this one hour after mine?!

Yes, it was.
I didn't notice your notifications until now, among with others from the github android app.


Wicked is breaking form_for

Hi,
I used this gem on a Rails 3.2 project and I have needed to use similar flow for a new project.  I decided to use the gem again.  The new project is Rails 4.2.
As soon as I install the gem all of my form_for break with
wrong number of arguments (0 for 1)

These forms strangely work if I swap them for simple_form_for and work again straight away if I remove the wicked gem.

Can you give me a really simple example that reproduces the problem? We don't modify the form at all.
—
Sent from Mailbox
On Tue, Mar 10, 2015 at 3:30 AM, Craig Sheen<EMAIL_ADDRESS>wrote:

Hi,
I used this gem on a Rails 3.2 project and I have needed to use similar flow for a new project.  I decided to use the gem again.  The new project is Rails 4.2.
As soon as I install the gem all of my form_for break with
wrong number of arguments (0 for 1)

These forms strangely work if I swap them for simple_form_for and work again straight away if I remove the wicked gem.
Reply to this email directly or view it on GitHub:
https://github.com/schneems/wicked/issues/166

These both fail with the above error; (Note that these were basically copied from the project using this gem but using Rails 3.2 where this all works)
# wizard example
= form_for @basket, url: wizard_path, method: :put do |f|
# normal form example
= form_for :enquiry, url: enquiry_form_url, method: :post, class: 'form-horizontal' do |form|

If i change to the below it works.
= simple_form_for @basket, url: wizard_path, method: :put do |f|

Can you put that into a runable example with instructions?
—
Sent from Mailbox
On Tue, Mar 10, 2015 at 9:51 AM, Craig Sheen<EMAIL_ADDRESS>wrote:

These both fail with the above error; (Note that these were basically copied from the project using this gem but using Rails 3.2 where this all works)
# wizard example
= form_for @basket, url: wizard_path, method: :put do |f|
# normal form example
= form_for :enquiry, url: enquiry_form_url, method: :post, class: 'form-horizontal' do |form|

If i change to the below it works.
= simple_form_for @basket, url: wizard_path, method: :put do |f|

Reply to this email directly or view it on GitHub:
https://github.com/schneems/wicked/issues/166#issuecomment-78069531

Hmm, I created a new project and it works fine, so maybe it's something else.  Although if I remove the gem or change them to simple_form_for my forms start working, which is strange.
I'll close and see if I can figure it out.


Simplify fetch() calls in JavaScript

The fetch() init object does not have a property "url", so remove it.
The element being either a button or a element is mutually exclusive, so
use an "else if".
When a button is pressed, an enclosing form element already exist, so
remove the guard.
Assign the object properties in the object literal instead of after.

I think this looks good, thanks!

🎉


Updating to Latest Vizia

I'm interested in bringing nih-plug's Vizia dependency up to date.
I'm not sure how large of an undertaking this actually is, as the fork does not seem to have large changes.
I've gotten things compiling with the latest Vizia but I'm stumped here & looking for leads. The GUI is unresponsive in standalone mode as the majority of the CPU time is spent in this stack trace re-styling the interface.
Any thoughts on what I might be missing here?
Let me know if there is a better way for me to get input on this issue. I would love to be able to use the latest Vizia as the patched fork is quite far behind main.
20432	crisp (60668)
17306	Main Thread  0x5f8225
17306	start
17306	main
17306	std::rt::lang_start::h529363aee13a6c62
17306	std::rt::lang_start_internal::h434fe84e11a92429
17306	std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h11ab781115c04bcf
17306	std::sys_common::backtrace::__rust_begin_short_backtrace::h4a882756e564a802
17306	core::ops::function::FnOnce::call_once::h2586012a7f0b7b1b
17306	crisp::main::h90babba28b85b71c
17306	nih_plug::wrapper::standalone::nih_export_standalone::h6392a52de9779039
17306	nih_plug::wrapper::standalone::nih_export_standalone_with_args::h79bb98ca4ce11711
17306	core::result::Result$LT$T$C$E$GT$::or_else::h55aafd6c10fd263b
17306	nih_plug::wrapper::standalone::nih_export_standalone_with_args::_$u7b$$u7b$closure$u7d$$u7d$::h16f8cbb54676226d
17306	nih_plug::wrapper::standalone::run_wrapper::hd2d70150e7a8e42b
17306	nih_plug::wrapper::standalone::wrapper::Wrapper$LT$P$C$B$GT$::run::h2699ffd24d47e27d
17306	baseview::window::Window::open_blocking::h97a50e827f25e1e8
17306	baseview::macos::window::Window::open_blocking::h9de9916bf8a48644
17306	_$LT$$BP$mut$u20$objc..runtime..Object$u20$as$u20$cocoa..appkit..NSApplication$GT$::run::hcf2921796ce7adf6
17306	objc::message::platform::send_unverified::h188f516897c74c44
17306	_$LT$$LP$$RP$$u20$as$u20$objc..message..MessageArguments$GT$::invoke::hdc27c3db03cbd3c0
17306	-[NSApplication run]
17306	-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
17306	_DPSNextEvent
17306	_BlockUntilNextEventMatchingListInModeWithFilter
17306	ReceiveNextEventCommon
17306	RunCurrentEventLoopInMode
17306	CFRunLoopRunSpecific
17306	__CFRunLoopRun
17229	__CFRunLoopDoTimers
17227	__CFRunLoopDoTimer
17222	__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
17222	baseview::macos::window::WindowState::setup_timer::timer_callback::h9e4ee84e7fbf4037
17222	baseview::macos::window::WindowState::trigger_frame::h3dd68f6ccda1a5d0
17221	_$LT$vizia_baseview..window..ViziaWindow$u20$as$u20$baseview..window..WindowHandler$GT$::on_frame::h1a1fc8d766fd72d1
10337	vizia_baseview::application::ApplicationRunner::on_frame_update::h65619d0115cd22fb
10294	vizia_core::context::backend::BackendContext::process_style_updates::haf29c635292cebcf
10182	vizia_core::systems::style::style_system::hee4b9919174c6c43
9754	vizia_core::systems::style::compute_matched_rules::hd8b4f574bed92254
7281	selectors::matching::matches_complex_selector_internal::h3d8404151ab26811
4885	selectors::matching::matches_compound_selector::h13237745c6db8ca5
2164	selectors::matching::matches_local_name::h8a01d9d0d78049ee
2117	_$LT$vizia_core..systems..style..Node$u20$as$u20$selectors..tree..Element$GT$::has_local_name::h57341f2f2946c5f4
1725	std::collections::hash::map::HashMap$LT$K$C$V$C$S$GT$::get::h1a1edbd6698661a2
1680	hashbrown::map::HashMap$LT$K$C$V$C$S$C$A$GT$::get_inner::h22b60ea0b1e1cdc1
924	hashbrown::raw::RawTable$LT$T$C$A$GT$::get::h44d87ba416aec045
885	hashbrown::raw::RawTable$LT$T$C$A$GT$::find::h486693bb02b42787
427	hashbrown::raw::RawTable$LT$T$C$A$GT$::find::h486693bb02b42787
275	hashbrown::raw::RawTableInner$LT$A$GT$::find_inner::h3a3fe0b13719c4b6

Here are my modifications for reference:
https://github.com/vizia/vizia/compare/main...ejjonny:vizia:e/update?expand=1
https://github.com/robbert-vdh/nih-plug/compare/master...ejjonny:e/update?expand=1

There's a fork here that does most of the styling, but it suffers from the same problems you mentioned: https://github.com/geom3trik/nih-plug/commit/122c668e6f4211fb0eb6cf3cd0cb37c259a846f6
I started work on the branch you linked but I quickly realized that it would probably be best to wait for Vizia to stabilize again and for the kinks to get ironed out, instead of potentially having to do this work twice. The issues I remember that would need to be fixed on Vizia's side are the nonfunctional interaction thing you mentioned, some positioning things not yet being implemented after the styling system change requiring workarounds everywhere, a regression in the font handling (you can no longer refer to e.g. Noto Sans Light by name), some of the resizing behavior not working, and Spectral Comrpessor not drawing correctly (I only checked that plugin for now).

Oh, good to know! Looks like the unresponsive UI is reproducible in vizia's example apps so I've opened an issue there.


No instrumentation detected error

I am having the error while starting the fussing session with my harness application as No instrumentation detected. The same is working on windows 7 but on windows 10 it is giving the error. I have build the Win AFL with DynamoRIO 8.0.0. The issue is specific to some binaries. previously I have run the successful fuzzing sessions with same build.

Hi, on the newer Windows, you should be using the weekly DynamoRIO build from https://github.com/DynamoRIO/dynamorio/releases, not 8.0.0

Hi, on the newer Windows, you should be using the weekly DynamoRIO build from https://github.com/DynamoRIO/dynamorio/releases, not 8.0.0

Actually we are trying to fuzz usp10.dll with the help of below harness https://github.com/googleprojectzero/BrokenType/blob/master/ttf-otf-windows-loader/ttf-otf-windows-loader.cpp
but it is showing the same error irrespective of DynamoRIO version we have also tried with latest weekly builds of DynamoRIO.

Hm, if you're still having issues with the latest DR, then the only option is to either use an older Windows version or a different instrumentation backend. You can also try Jackalope (https://github.com/googleprojectzero/Jackalope) which is a different fuzzer I wrote and uses TinyInst (https://github.com/googleprojectzero/TinyInst) for instrumentation. It was reported that it works in some cases where DR does not (on the newer Windows versions). At some point I also plan to add TinyInst as a backend for WinAFL, but at this point I'm still working on improving some of its features.

Hm, if you're still having issues with the latest DR, then the only option is to either use an older Windows version or a different instrumentation backend. You can also try Jackalope (https://github.com/googleprojectzero/Jackalope) which is a different fuzzer I wrote and uses TinyInst (https://github.com/googleprojectzero/TinyInst) for instrumentation. It was reported that it works in some cases where DR does not (on the newer Windows versions). At some point I also plan to add TinyInst as a backend for WinAFL, but at this point I'm still working on improving some of its features.

Even I am too facing the same issue, as I have also tried to fuzz the same harness earlier with WinAFL, then i also tried to fuzz it using Jackalope, but for me it too didn't work as it threw error, "No interesting input files"


corrected example docs path

Signed-off-by: Sebastian Brandt<EMAIL_ADDRESS>
What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Release note:

NONE

Thank you 🙏
/ok-to-test
/lgtm
/approve


added Puppetfile.lock into gitignore; Some cleaning is a good practice; Please merge it into master

:-1: Puppetfile.lock is required, primarily for bootstrapping. Why do you want to remove it?

required for bootstrapping?
Just created when puppet is processed.

Without Puppetfile.lock, same as Gemfile.lock, you can end up with a dependency cycle – think authentication – when you bootstrap a brand new machine.
Again, why do you think this file should be removed?

isn't it created by Puppet for the first time (even for bootstrapping) ?

@julienlavergne it may be regenerated if you've changed Puppetfile (by librarian-puppet, not by Puppet), but that shouldn't be happening when bootstrapping

@dgoodlad effectively using librarian-puppet prevents it.


feat: add creator column to alert/list

SUMMARY

Adds a column to alert/list to view who created each alert
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

[x] local
[x] dropbox staging

ADDITIONAL INFORMATION

[ ] Has associated issue:
[x] Changes UI

Codecov Report

Merging #10789 into master will decrease coverage by 1.93%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #10789      +/-   ##
==========================================
- Coverage   61.22%   59.29%   -1.94%
==========================================
  Files         802      769      -33
  Lines       37814    36699    -1115
  Branches     3555     3302     -253
==========================================
- Hits        23153    21759    -1394
- Misses      14475    14755     +280
+ Partials      186      185       -1

Flag
Coverage Δ

#cypress
56.09% <ø> (?)

#javascript
?

#python
61.01% <100.00%> (+<0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

superset/views/alerts.py
73.95% <100.00%> (+0.27%)
:arrow_up:

...uperset-frontend/src/dashboard/util/dnd-reorder.js
0.00% <0.00%> (-100.00%)
:arrow_down:

...rset-frontend/src/dashboard/util/getEmptyLayout.js
0.00% <0.00%> (-100.00%)
:arrow_down:

.../src/dashboard/util/getFilterScopeFromNodesTree.js
0.00% <0.00%> (-93.48%)
:arrow_down:

.../src/dashboard/components/FilterIndicatorGroup.jsx
11.76% <0.00%> (-88.24%)
:arrow_down:

...c/explore/components/controls/withVerification.jsx
9.09% <0.00%> (-87.88%)
:arrow_down:

...src/dashboard/components/gridComponents/Header.jsx
10.52% <0.00%> (-86.85%)
:arrow_down:

...rset-frontend/src/profile/components/Favorites.tsx
0.00% <0.00%> (-86.67%)
:arrow_down:

...rc/dashboard/components/gridComponents/Divider.jsx
13.33% <0.00%> (-86.67%)
:arrow_down:

...uperset-frontend/src/utils/getClientErrorObject.ts
0.00% <0.00%> (-86.49%)
:arrow_down:

... and 322 more

Continue to review full report at Codecov.

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


Add category collection

add CRUD for categories

GET /categories used to render the list of categories in Edit/Add question FE (@AidenLYT)
POST /categories for admin to create new categories via the dropdown when they wish to edit/add questions
update/delete categories included for completion, but don't necessarily need to be integrated to frontend at the moment

trigger the addition of new categories to the category collection when adding/updating question (if category does not already exist in the collection)

note: deleted questions have no effect on the category collection,  category is retained for future use when adding/editing questions

add GET /questionCategories endpoint to retrieve active categories (i.e. categories that are tagged to at least 1 qn at the moment)

Fixed bugs for CreateQuestion and UpdateQuestion related endpoints to remove UpsertCategories
Fixed bugs for wrong id returned to Frontend response upon category/question creation
Refactored code segments


Request for is_activated function in rpc library

We have a flow,, and will have more in the future, that we don't want to call if the device hasn't been successfully activated.  Today we are calling rpc amtinfo and parsing the output for a particular string to determine if the device is activated.  It would be optimal if we could call a specific function that returned a status code (activated or not).

Hi @msbreton ,
This is possible today with RPC.
The following command will return a JSON response with only the controlMode eliminating the need for any string parsing.
rpc amtinfo -mode -json

Example return output:
{
  "controlMode": "pre-provisioning state"
}

Other possible return controlModes:
"activated in admin control mode"
"activated in client control mode"

You can find all possible amtinfo flags in the RPC CLI Documentation
Please let us know if this existing capability meets what you are looking for. Thanks!

Did the team reach a decision on if this feature will work? Or do we need to explore some other options?

My apologies for the delay.  Seems we had some issue parsing the output as  you suggested, possibly because we are writing in C# but calling Golang rpc.  We thought this might be an easier way to resolve that.  Upon further discussion, we will need to parse additional amtinfo output in the future and thus must resolve our parsing issue.  Closing this request.  Thank you.


Docs fixes, add sample programs and a runner to help with ephemeral TigerBeetle instances

This PR:

Drops the global flag from the recommended npm install step in the top-level README
Adds a helper for parsing AccountFlags and TransferFlags in the Go client
Go, Node and Java all have the basic and two-phase sample programs

Runs all of these in CI against real TigerBeetle instance on windows, mac and linux (except for node on windows)

Adds a run_with_tb.zig program to schedule ephemeral TigerBeetle instances while running another program (mainly a TigerBeetle client)
Breaks the two-phase FAQ entry into its own page and adds some info based on the recent discussion in community Slack

Pre-merge checklist

[X] I am very sure this PR could not affect performance.

Great point about the arena signature, @batiati !   I will adjust that.

Squashed commits, @batiati can I get a reapproval?

Thanks Rafael and DJ for the review!


Not exactly an issue but...

I can't find any proper help either on Unknowncheats or any Discord server but I was looking to implement this TTT traitor detector into Osiris, but all I have tried in the instructions that the author left yielded no results... if somebody could give me a tip on how to do it properly I'll be extremly thankful 🙏🏼
https://www.unknowncheats.me/forum/counterstrike-global-offensive/304526-trouble-terrorist-town-csgo-traitor-detector.html
Thanks in advanace!^^

From what i undetstand, you create a file on the sdk folder called PlayerLogic.cpp/.h then you paste the codes provided there. then you do something on eventlistener i think

From what i undetstand, you create a file on the sdk folder called PlayerLogic.cpp/.h then you paste the codes provided there. then you do something on eventlistener i think

I thought so as well. I did create both of those files and pasted the codes inside them, and moved them to the SDK folder, but I couldn't figure out what to do next with the eventlistener thingy. He mentioned putting clearmap() into round_end but I can't find round_end, nor player_hurt

@wemanzoz Okay so I worked on the code a bit and managed to put the necessary functions and code snippets into round_end (it wasn't there so I just created one lol), and player_hurt, so I think the technical parts are done (it wasn't that easy since I'm quite new to c++), but now I have to rename quite a lot of functions and declare variables since I get around 39 errors in total, 21 in GameListener, and around 8 in PlayerLogic.h and PlayerLogic.cpp

you didnt define the identifier on eventlistener.h and u did something wrong on eventlistener aswell

@wemanzoz Okay so I worked on the code a bit and managed to put the necessary functions and code snippets into round_end (it wasn't there so I just created one lol), and player_hurt, so I think the technical parts are done (it wasn't that easy since I'm quite new to c++), but now I have to rename quite a lot of functions and declare variables since I get around 39 errors in total, 21 in GameListener, and around 8 in PlayerLogic.h and PlayerLogic.cpp

you didnt define the identifier on eventlistener.h and u did something wrong on eventlistener aswell

I don't know how to define it tho, it just looks like this atm


Some hard time compiling mxnet on mac :(

Operating System: macOS Sierra
Following the installation steps goes well.
Finally when executing "make -j$(sysctl -n hw.ncpu)", I get the following errors:
clang: error: no such file or directory: '/usr/local/lib/libopencv_calib3d.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_contrib.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_core.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_features2d.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_flann.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_gpu.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_highgui.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_imgproc.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_legacy.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_ml.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_nonfree.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_objdetect.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_ocl.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_photo.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_stitching.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_superres.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_video.dylib'
clang: error: no such file or directory: '/usr/local/lib/libopencv_videostab.dylib'
if looking in my directory, I see my libs all have the 2.4.7 suffix, such as: libopencv_calib3d.2.4.7.dylib
Any thought? Either changing the make or the names of the libs would work?
Many thanks !

Try reinstalling opencv?

how did you install opencv? homebrew?
what's the output of pkg-config --cflags --libs opencv?

I used "brew install opencv"... but I also updated my Anaconda install. Could be this.
pkg-config --cflags --libs opencv
-I/usr/local/include/opencv -I/usr/local/include /usr/local/lib/libopencv_calib3d.dylib /usr/local/lib/libopencv_contrib.dylib /usr/local/lib/libopencv_core.dylib /usr/local/lib/libopencv_features2d.dylib /usr/local/lib/libopencv_flann.dylib /usr/local/lib/libopencv_gpu.dylib /usr/local/lib/libopencv_highgui.dylib /usr/local/lib/libopencv_imgproc.dylib /usr/local/lib/libopencv_legacy.dylib /usr/local/lib/libopencv_ml.dylib /usr/local/lib/libopencv_nonfree.dylib /usr/local/lib/libopencv_objdetect.dylib /usr/local/lib/libopencv_ocl.dylib /usr/local/lib/libopencv_photo.dylib /usr/local/lib/libopencv_stitching.dylib /usr/local/lib/libopencv_superres.dylib /usr/local/lib/libopencv_ts.a /usr/local/lib/libopencv_video.dylib /usr/local/lib/libopencv_videostab.dylib
I will try re-installing opencv... even if from that, everything seems ok, no?
Many thanks for your help !

Ah actually I get the following message:
brew install opencv
Warning: homebrew/science/opencv-<IP_ADDRESS> already installed, it's just not linked.

OK got it.
Permission issue - pretty tough to find out how to overcome the brew limitations to link in the root...
Again many thanks for your inputs!
AL


Multiple upstream servers

Hi,
is there a way to specify multiple upstream servers and, in case of fail, switch to another one?

You can use dnsdist as your upstream for load balancer and failover

Hmm, I'll show you what I'd like to do.

If you connect to only one dns server(dnsdist) then it is a Single Point of Failure.
Nginx will not know whether DoH Proxy 1 can resolve or not if DNSdist 1 dies. Therefore, in case of a fail, it will still route traffic to the "faulty" DoH server.


Except for 4K, everything else working

But why not support 4k?

Hevc installed, The latest version of edge, T,he latest version of windows.

1, MAX 4K https://help.netflix.com/zh-tw/node/13444


Stylus

Please support highlight stylus files

It should work out-of-the-box, but you have to make sure that you've installed the specific language extension like for language-stylus.


fix encoding issue with python 3

I overlooked that the default value of JobResult.message is '', which results in the following failure when running under Python 3:
Traceback (most recent call last):
  File "grpc/tools/run_tests/run_xds_tests.py", line 1121, in <module>
    multi_target=True)
  File "/tmpfs/src/github/grpc/tools/run_tests/python_utils/report_utils.py", line 69, in render_junit_xml_report
    replace_dots)
  File "/tmpfs/src/github/grpc/tools/run_tests/python_utils/report_utils.py", line 110, in append_junit_xml_results
    filtered_msg = _filter_msg(result.message, 'XML')
  File "/tmpfs/src/github/grpc/tools/run_tests/python_utils/report_utils.py", line 36, in _filter_msg
    msg.decode('UTF-8', 'ignore')))
AttributeError: 'str' object has no attribute 'decode'

AFAICT this bit of ugliness is the best way to address the difference between Python 2 and Python 3 and the existence/non-existence of the str#decode method.

@lidiz - this corrects a mistake from https://github.com/grpc/grpc/pull/22444


Allow AWS to handle encryption

On a PUT request to AWS backend, AWS will handle encryption.

@ironman-machine go

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/S3C-48-awsBackendEncryption"}
Please follow http://ci.ironmann.io/gh/scality/Integration/13772 for CI status.

@ironman-machine go

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/S3C-48-awsBackendEncryption"}
Please follow http://ci.ironmann.io/gh/scality/Integration/13782 for CI status.

@ironman-machine go

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/S3C-48-awsBackendEncryption"}
Please follow http://ci.ironmann.io/gh/scality/Integration/13796 for CI status.

@ironman-machine go

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/S3C-48-awsBackendEncryption"}
Please follow http://ci.ironmann.io/gh/scality/Integration/13812 for CI status.

@ironman-machine go2

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/S3C-48-awsBackendEncryption"}
Please follow http://ci.ironmann.io/gh/scality/Integration/13815 for CI status.

@ironman-machine go3

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/S3C-48-awsBackendEncryption"}
Please follow http://ci.ironmann.io/gh/scality/Integration/13825 for CI status.


Do not install wasm-pack for webpack projects

This PR will fix #745 and is blocked by the following action items:

Publishing of binary-install to the npm registry
Publishing of wasm-pack to the npm registry
Merging this PR that allows the wasm-pack-plugin to install wasm-pack via npm by itself without needing Wrangler to handle that installation

@xtuc - would love feedback on the test fixture I've put in here. I plan on making it so that wasm_pack is only installed if the plugin is included in the webpack config.
This logic may need to live in wranglerjs itself, but we will need to pass the conditional off to wrangler.

https://github.com/cloudflare/wrangler/blob/master/wranglerjs/index.js#L58 fullConfig should contains the computed list of plugins. We'll need to communicate this information to wrangler, via the bundle https://github.com/cloudflare/wrangler/blob/master/wranglerjs/index.js#L92.

So it seems like the webpack config plugin section looks like this:
 plugins: [
  {
    "_ranInitialCompilation": false,
    "crateDirectory": "/Users/averyharnish/Documents/work/_tmp/webpack-rust-worker-template/crate",
    "extraArgs": [],
    "outDir": "pkg",
    "outName": "index",
    "watchDirectories": [
      "/Users/averyharnish/Documents/work/_tmp/webpack-rust-worker-template/crate/src"
    ],
    "watchFiles": [
      "/Users/averyharnish/Documents/work/_tmp/webpack-rust-worker-template/crate/Cargo.toml"
    ],
    "wp": {
      "_events": {},
      "_eventsCount": 0,
      "options": {
        "aggregateTimeout": 200
      },
      "watcherOptions": {},
      "fileWatchers": [],
      "dirWatchers": [],
      "mtimes": {},
      "paused": false,
      "aggregatedChanges": [],
      "aggregatedRemovals": [],
      "aggregateTimeout": 0
    },
    "isDebug": false,
    "error": null
  }
]

unfortunately this doesn't really give me too much identifiable information to work with

This is currently blocked on https://github.com/rustwasm/wasm-pack/pull/760


Fix Keystone gate breakage

Kombu was updated to 4.0 and oslo.messaging doesn't set an upper
bound to it resulting in package conflict versions for amqp.
Closes: #675

@naved001 @henn @zenhack

Looks good to me.  I guess it means we ought to be a little more careful with package related to openstack cause it may break from time to time?

@shwsun I'm not sure. In the global upper contraints there is an upper constraint following the kombu 3.0.x releases all the way to a few years back, so I don't know why it still chose to install kombu 4.0 despite that.

The missing bound is an upstream bug. I'd like to handle it as follows:

See if it's been reported. If not, report it.
Open an issue on our tracker to monitor it
Refer to both issues in the comment in the CI script

The right place to fix this is in keystone, and I don't want to leave a workaround in our source longer than we need to; I want to monitor upstream bugs and remove outdated workarounds when we can.
@shwsun, as much as possible I'd like to have the CI do the thing that's supposed to work, so we can find out early if upstream has broken something that's going to break us, rather than wait until we update the CI to use a new version. Some things are volatile enogh that we shouldn't expect them to stay the same from one version to the next, but for things that we expect to work, I want to flush out bugs sooner rather than later.

@zenhack The issue is known and there's already two patches up related to the issue https://review.openstack.org/#/c/392135/ and https://review.openstack.org/#/c/392245/

Ok, great. I do want to make sure we track this and remove the workaround once that's upstream; would you (a) link to the relevant issues/patches, and (b) Open an issue to monitor the upstream bug and remove this workaround once it's no longer needed?

@zenhack I linked to #675 in the comment and also to the upstream bug. I'll monitor the state upstream and remove the workaround once fixed.

Looks good to me.

I agree with @zenhack  and @knikolla , let's merge this one and keep the issue open.


Add sudo support for systemctl

This fix https://github.com/Homebrew/homebrew-services/issues/434#issuecomment-1007484572

Thanks @Red54!


Scaffold lesson

Structured according to schedule posted in the Zulip chat.
Things are organized such that we have:

2 lectures per day - 1 before, 1 after the break - lectures are allocated 30 minutes, questions excluded,
1 demo/tutorial - before the break -  I'm thinking of this as code-along, where the tutors broadcast the coding, and
1 exercise - after the break - which is a coding assignment capping off the day.

There should be short quizzes interspersed during the days. I am not sure how to handle them yet, I've opened #4 to evaluate options.
Day 1  2020-12-08  Communicators, groups, derived datatypes

9:00 - 9:10
Welcome and introduction to the training course

9:10 - 9:40
Lecture 1

9:40 - 9:50
Questions

9:50 - 10:30
Demo

10:30 - 10:45
Break

10:45 - 11:15
Lecture 2

11:15 - 11:25
Questions

11:25 - 12:20
Exercise

12:20 - 12:30
Questions and wrap-up

Day 2  2020-12-09  One-sided communication

9:00 - 9:10
What did we cover yesterday?

9:10 - 9:40
Lecture 1

9:40 - 9:50
Questions

9:50 - 10:30
Demo

10:30 - 10:45
Break

10:45 - 11:15
Lecture 2

11:15 - 11:25
Questions

11:25 - 12:20
Exercise

12:20 - 12:30
Questions and wrap-up

Day 3 2020-12-10  Collective communication (including nonblocking)

9:00 - 9:10
What did we cover yesterday?

9:10 - 9:40
Lecture 1

9:40 - 9:50
Questions

9:50 - 10:30
Demo

10:30 - 10:45
Break

10:45 - 11:15
Lecture 2

11:15 - 11:25
Questions

11:25 - 12:20
Exercise

12:20 - 12:30
Questions and wrap-up

Day 4  2020-12-11 MPI and threads or Parallel I/O

9:00 - 9:10
What did we cover yesterday?

9:10 - 9:40
Lecture 1

9:40 - 9:50
Questions

9:50 - 10:30
Demo

10:30 - 10:45
Break

10:45 - 11:15
Lecture 2

11:15 - 11:25
Questions

11:25 - 12:20
Exercise

12:20 - 12:30
Questions and wrap-up

I have looked at this CodeRefinery lesson to begin scaffolding. They use Markdown, rather than reStructuredText and it might be that those directives are not needed.


Crash on Launch, 7.2.199 Mac OS X

With the build downloaded from toggle.com (7.2.199), the app crashes immediately on launch (so quick it doesn't look like it's opening at all).
The crash log has this line, among others:
Application Specific Information:
abort() called
terminating with uncaught exception of type Poco::WriteFileException: Cannot write file

seems like to have no permissions to write to the app data folder:
~/Library/Application Support/Kopsik/production
(where ~ is your home directory, for example /Users/tanellebedev in my case)
Can you confirm that you have write permissions to that folder?

I deleted that folder, and it is launching correctly now. Thank you.
The association between the Kopsik folder and TogglDeskop wasn't obvious to me.


openerp.modules.module: name 'hw_proxy' is not defined

Trying to get hw_printer_network up and running leads into this error message when starting up Odoo / PosBox:
posbox_1  | 2018-07-05 19:26:43,862 1 INFO ? openerp: OpenERP version 8.0-20171009
posbox_1  | 2018-07-05 19:26:43,862 1 INFO ? openerp: addons paths: ['/var/lib/odoo/addons/8.0', u'/mnt/extra-addons', u'/usr/lib/python2.7/dist-packages/openerp/addons']
posbox_1  | 2018-07-05 19:26:43,862 1 INFO ? openerp: database hostname: db
posbox_1  | 2018-07-05 19:26:43,862 1 INFO ? openerp: database port: 5432
posbox_1  | 2018-07-05 19:26:43,862 1 INFO ? openerp: database user: odoo
posbox_1  | 2018-07-05 19:26:44,124 1 ERROR ? openerp.addons.hw_scanner.controllers.main: Odoo module hw_scanner depends on the evdev python module
posbox_1  | 2018-07-05 19:26:44,136 1 ERROR ? openerp.addons.hw_escpos.controllers.main: ESC/POS cannot initialize, please verify system dependencies.
posbox_1  | 2018-07-05 19:26:44,140 1 CRITICAL ? openerp.modules.module: Couldn't load module hw_printer_network
posbox_1  | 2018-07-05 19:26:44,140 1 CRITICAL ? openerp.modules.module: name 'hw_proxy' is not defined
posbox_1  | 2018-07-05 19:26:44,140 1 ERROR ? openerp.service.server: Failed to load server-wide module `hw_printer_network`.
posbox_1  | Traceback (most recent call last):
posbox_1  |   File "/usr/lib/python2.7/dist-packages/openerp/service/server.py", line 882, in load_server_wide_modules
posbox_1  |     openerp.modules.module.load_openerp_module(m)
posbox_1  |   File "/usr/lib/python2.7/dist-packages/openerp/modules/module.py", line 322, in load_openerp_module
posbox_1  |     getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
posbox_1  |   File "/mnt/extra-addons/hw_printer_network/__init__.py", line 5, in post_load
posbox_1  |     from . import controllers
posbox_1  |   File "/mnt/extra-addons/hw_printer_network/controllers/__init__.py", line 4, in <module>
posbox_1  |     from . import hw_printer_network_controller
posbox_1  |   File "/mnt/extra-addons/hw_printer_network/controllers/hw_printer_network_controller.py", line 162, in <module>
posbox_1  |     hw_proxy.drivers['escpos_network'] = network_driver
posbox_1  | NameError: name 'hw_proxy' is not defined
posbox_1  | 2018-07-05 19:26:44,141 1 INFO ? openerp.service.server: HTTP service (werkzeug) running on <IP_ADDRESS>:8069

Using the following command parameter: --load=web,hw_proxy,hw_posbox_homepage,hw_scanner,hw_escpos,hw_printer_network and the following Git commit: ac8f469f39378f910b995a5d028771a5a6b5ab15.
Any idea why hw_printer_network can't be loaded?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@tobru what version of the module are you using? Please note the hw_printer_network module available on pos-addons since 10.0 version. Also probably you have old version of PosBox image. You can download last version of posbox_image https://nightly.odoo.com/master/posbox/

I'm running it in Docker and some dependencies where missing. Now it's running.


Get-DbaAgReplica - Add custom property for secondary connections

Summary of new feature
A bug that has already been reported when dealing with an instance that is on a non-default port does not contain enough information to make a connection to that secondary just from the Name property.
A property would need to be added that looks up if there is a non-default port and then added to the property.
// @nvarscar
Proposed technical details (if applicable)
Add a property string that is basically SqlInstanceName,port from the secondary object. Only place the port is likely found is in the endpoint URL so may just string manipulation where we strip it out.

Endpoint URL points towards the hadr DATABASE_MIRRORING endpoint, which does not accept any connections other than AG synchronization, so that port is pretty much useless for our case. So far, I failed to discover a way of learning the custom TCP port of the secondary server in AG, except, maybe, WMI or CIM2 query to the secondary server - but that's not going to be trivial: somehow the script should be able to find the right network configuration item among all others and figure out which one is a correct one. I might try to dig in that direction, but that will probably turn the lightweight command into a heavy-lifter.

After spending some time researching the DMVs and SMO, I can only confirm that there is no information on what port the secondary instance(s) is listening on. If we're going to go with the road of assumptions, it should be something like this:
try { Connect-SqlInstance -SqlInstance $SERVER\$INSTANCE }
catch {
  try { Connect-SqlInstance -SqlInstance $SERVER\$INSTANCE,current_listener_port }
  catch {
    try { Connect-SqlInstance -SqlInstance $SERVER\$INSTANCE,current_connection_port }
    catch { fail-miserably }
  }
}

The other way around would be to use the ManagedComputer object and to get the current IP port from the remote machine(s):
$wmi = New-Object Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer($Computer)
$ips = $wmi.ServerInstances[$InstanceName].ServerProtocols['Tcp'].IPAddresses
$ports = $ips | ? { $_.IPAddress.IPAddressToString -in @('<IP_ADDRESS>',(Resolve-DbaNetworkName $Computer)) } |  % { $_.IPAddressProperties["TcpPort"].value }
if (!$ports) {
  $ports = $ips | ? { $_.IPAddress.IPAddressToString -in @('<IP_ADDRESS>',(Resolve-DbaNetworkName $Computer).IPAddress) } |  % { $_.IPAddressProperties["TcpDynamicPorts"].value }
}
foreach ($portString in ($ports | ? { $_ } )) {
  foreach ($port in $portString.Split(',')) {
    try { $s = Connect-DbaInstance -SqlInstance "$Computer\$InstanceName,$port" }
    catch{ }
    if ($s) { break }
  }
  if ($s) { break }
}
$s.Name

Closing this as not supportable.


Remove "_multiple_parent" (always empty) and replace "_single_parent" with "_parent"

Now no Neo object can have more than one parent, so we can clean up a bit

Hi @apdavison,
I think the merge of this PR depends on the discussion in https://github.com/NeuralEnsemble/python-neo/issues/914 as introducing multiple group objects as parents of spiketrains might a solution to this discussion.

Decision made during PR meeting on 2021-03-04 to merge this; the problems in #914 will be handled separately


CB-5643 Periscope is unable to call FreeIPA endpoints with internal CRN

As part of HBase Autoscaling initiative we came across a bug in Periscope: LDAP and Kerberos services haven't been prepared to accept Internal CRNs which is a must for Periscope to work properly.
This patch enables the required endpoint for Internal usage.
No tests added yet, but recommendations are welcome.
Closes CB-5643

Moving to 2.18


Any plan for including other fields? (and some suggestion about social features)

I'm from the quantum information field and would be interested to use a similar service.
By the way, we have a crowd-rating website for arXiv papers https://scirate3.herokuapp.com/
It might be interesting to combine these two features.

I wasn't able to access this url, but I'd love to see arxiv sanity help quantum information field. Have you tried running it?

Try https://scirate.com ("https://scirate3.herokuapp.com" is the redirected address before)
Haven't tried to run the code. I'm still quite new to Python + no good computer :(

Hi @karpathy,
I have run  the arxiv sanity for math.NA and math.PR, and it's great. Any plans on adding those or should I look into independently hosting them? :smile:

hi, yes for now you'd have to host yourself, since it's a bit expensive to compute already. sorry about that!

Not a problem, thanks.


Table column disappears when paging

On mac safari I observed that the table display changes when paging. I don't believe this is intended as I can't see the allele frequency.

Looks like the table is just overflowing to the right and getting cut off. Some indication that this is what is happening would clear things up.

@strbean Yes, it appears to be a problem with the table columns changing size when paging.

strange, I'm looking into it now.

ah yea, this is related to issue #145 -- I'll put in a PR to standardize table column sizes based on screen size and make sure there's a scrollbar on the table if the width of the screen is too small to contain the entire table.


API Key functionality improvements

Problem
The following features need to be implemented to improve the API Key capabilities.

API Key Update feature - Currently, there is no way to update the existing API keys.
API Key history - Currently, we don't persist any data regarding API key creation.

Solution
Currently, we don't persist the API Key in the database due to database overhead. We need to find an alternative way to persist the API key and related information to implement the above features.
Affected Component
APIM
Version
Latest

One of the main purpose of this feature would be to track the API keys along with the created by, created date fields. If update is allowed, the updated by field as well.  Something like auditing for API keys.