How to change default value of nextPage and previousPage in page_view.dart?

I am trying to add a custom value for the nextPage and previousPage methods for PageView. but since both these methods are present in the page_view.dart file, I am unable to find a direct way to override these two methods.
And from he documentation, i cant find a way to import a custom nextPage and previousPage into my widget file.
Could i get some suggestion on how to override these two methods since the PageView is a crucial feature in my application.

Hi @AnuragVadd
you cannot override the default value of "next page"
(besides forking Flutter or change the source code in your project),
but you might want to consider to use animateToPage
I took the liberty of writing a sample code for you.
(It's not the best code in the world, just to give you an idea)
Does this solution fit your needs?
thank you

I essentially need to use an API on the nextPage and previousPage methods in my  application since i will be sending and receiving data using the PageView. I am a bit new to flutter and i am not sure if an API can work on this function. Could you try to use a dummy API and confirm if it works. If it does then it should solve my problem other wise i will have to restructure my application :(

I essentially need to use an API on the nextPage and previousPage methods in my  application since i will be sending and receiving data using the PageView. I am a bit new to flutter and i am not sure if an API can work on this function. Could you try to use a dummy API and confirm if it works. If it does then it should solve my problem other wise i will have to restructure my application :(

Hi again @AnuragVadd,
you can use onPageChanged, please take a look at this code

sample
import "package:flutter/material.dart";

void main()=> runApp(MaterialApp(home: MyApp(),),);

class MyApp extends StatelessWidget {
  static int _page = 0;

  static final List<Widget> _widgets = [
    Container(color: Colors.yellowAccent,),
    Container(color: Colors.blueAccent,),
    Container(color: Colors.redAccent,),
    Container(color: Colors.greenAccent,),
  ];

  static void _pageChangeLogic(int page)=> page>_page?_onNextPage():_onPreviousPage();

  static void _onNextPage()=> print('next');

  static void _onPreviousPage()=> print('previous');

  @override
  Widget build(BuildContext context) => Scaffold(
    body: PageView.builder(
      itemCount: _widgets.length,
      onPageChanged: (i)=>_pageChangeLogic(i),
      itemBuilder: (BuildContext context, int index) => _widgets[index],),
  );
}

This platform is not met for assistance on personal code.
Please see https://flutter.dev/community for resources for asking questions like this,
you may also get some help if you post it on Stack Overflow.
Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you


Add comments to app.py #1

Add comments to app.py to help new team members learn Shiny for Python.

Done


[Bug]: 1.0.1-beta.15 production rename function name , Class too

Details
Production environment will rename function and class names.
config
"devDependencies": {
    "@rsbuild/core": "1.0.1-beta.15",
    "@rsbuild/plugin-react": "1.0.1-beta.15",
    "@rsdoctor/rspack-plugin": "^0.3.11",
    "@types/react": "^18.3.3",
    "@types/react-dom": "^18.3.0",
    "typescript": "^5.5.2"
  }

// rsbuild.config.ts
export default defineConfig({
  plugins: [pluginReact()],
  tools: {
    rspack: {
      plugins: [
        process.env.RSDOCTOR &&
          new RsdoctorRspackPlugin({
          }),
      ],
    },
  },
});

code
import { testFn2 } from "./test2"

class TestClass {

}

function testFn1 (){

}

export const testFn = () => {
  console.log(import.meta.url)
  console.log(testFn2.name)
  console.log(TestClass.name)
  console.log(testFn1.name)
}

production code
            function i() {
                u(),
                console.log("testFn2")
            }
            class c {
            }
            function l() {}
            let u = ()=>{
                console.log("44"),
                console.log(i.name),
                console.log(c.name),
                console.log(l.name)
            }

Reproduce link
No response
Reproduce Steps

run npm run build

This is the default behavior. Minifiers take this as an invariant by default to maximize the performance of the generated code. If you would like to keep function or class names, you may turn on mangle.keep_fnames or mangle.keep_classnames provided by SwcJsMinimizerPlugin


Support for other issue types

Hi.
It would be great to have support for issue types other than Epic,Story,Sub-task.
In some of the projects I'm handling, we have a different set of issue types, i.e:
Epic
  Story
    Sub-task
    Documentation sub task
  Task
    Tech-sub-task
  Bug

This is currently not supported in breakdown, and I understand that this might be difficult to implement, but it would be a significant extension to the plugin's capabilities, if it would support arbitrary issue types trees it would allow handling more kinds of projects.

I´m aiming to support at least the Task issue type. To have customizable issuetypes is probably not possible because to my understanding, the grammar behind needs to be configured upfront and doesn´t allow such variables.

Yeah, I had a quick look at the implementation and had the same feeling.
Would you consider adding Bugs as well ?
In my case we have bugs which might or might not be attached to particular Epics / Stories which currently are not visible at all in breakdown.


README: rename trailofbits/... -> sigstore/...

Now that we've migrated to the Sigstore org, these references need to be updated.
Signed-off-by: William Woodruff<EMAIL_ADDRESS>

Whoops, I should have checked for dupes.
Dupe of #29, closing in favor.


Use native Objective C BOOL type

Objective C has it's own boolean type BOOL, I've changed it across the app.

Looks fine. I'll merge in a bit, doing some things.
I'm still stuck in a C mindset if you couldn't tell, haha.


Monorepo and dependency installation check

What version of Remix are you using?
<EMAIL_ADDRESS>Steps to Reproduce

Setup a mono repo (for example with nx) with a remix application, having it's own package.json, and at least another library that have some third party dependency (simply install and import lodash, that will be enough).
From remix application, import the component from the other library (so the third party is included into the build)
Build or dev the remix application

Expected Behavior
App is built or dev mode is started, no warning.
Actual Behavior
App is build or dev mode is started, application is running fine, but a warning is printed in the console for each dependency that are imported by some of the monorepo component but not by remix application itself.
example:
> npx remix build

Building Remix app in production mode...
The path "react-dom/server" is imported in app/entry.server.tsx but react-dom is not listed in your package.json dependencies. Did you forget to install it?
The path "react" is imported in app/routes/demos/actions.tsx but react is not listed in your package.json dependencies. Did you forget to install it?
The path "@react-hook/size" is imported in ../bar-chart/src/lib/bar-chart.tsx but @react-hook/size is not listed in your package.json dependencies. Did you forget to install it?
The path "@visx/scale" is imported in ../bar-chart/src/lib/bar-chart.tsx but @visx/scale is not listed in your package.json dependencies. Did you forget to install it?
The path "@ngneat/falso" is imported in ../bar-chart/src/lib/bar-chart.tsx but @ngneat/falso is not listed in your package.json dependencies. Did you forget to install it?
The path "@visx/group" is imported in ../bar-chart/src/lib/bar-chart.tsx but @visx/group is not listed in your package.json dependencies. Did you forget to install it?
The path "@visx/shape" is imported in ../bar-chart/src/lib/bar-chart.tsx but @visx/shape is not listed in your package.json dependencies. Did you forget to install it?
The path "lodash/fp" is imported in ../bar-chart/src/lib/bar-chart.tsx but lodash is not listed in your package.json dependencies. Did you forget to install it?
The path "@visx/axis" is imported in ../bar-chart/src/lib/bar-chart.tsx but @visx/axis is not listed in your package.json dependencies. Did you forget to install it?
Built in 357m

Here is a link to the repo that generate those logs (running nx build demo)

@npirotte could you create a reproduction repo for this issue?

ha, I forgot to paste the link: https://github.com/npirotte/hello-visx
Just run nx build demo

remix doesn't know you specify some common those deps at the monorepo root package.json, so this is why remix complains: dep not listed in your package.json dependencies.
https://github.com/remix-run/remix/blob/5144a17eccb788f56ad58f5e0f122af1047631a7/packages/remix-dev/compiler/dependencies.ts#L15-L19
rootDirectory is ./packages/demo

This warning is introduced by https://github.com/remix-run/remix/pull/2558/files#diff-ef8b0a35f03b499672160742c2d6b9688717e8d6b923dde0e10d2631ab0c09d6R419

Would it be possible somehow that remix check parent project dependencies?
Or at least give the possibility to skip that check that can eventually be done by eslint for these more complex cases :)

Would it be possible somehow that remix check parent project dependencies?
Or at least give the possibility to skip that check that can eventually be done by eslint for these more complex cases :)

@jacob-ebey what do you think?

@F3n67u In a DX perspective, the best solution would be to set a path in remix.config.js:
/**
 * @type {import('@remix-run/dev').AppConfig}
 */
module.exports = {
  cacheDirectory: "./node_modules/.cache/remix",
  ignoredRouteFiles: [".*", "**/*.css", "**/*.test.{js,jsx,ts,tsx}"],

  // link to monorepo root
  rootPath: "../../"
};

@F3n67u to me indeed the best solution would be to leave those things up to a specialised tool like eslint https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
Almost all the developers are using it (it might even be already turned on in company wide eslint config), so imo better let remix focus on its core topic: being an awesome framework to build web apps, and don't spend time side things like this :)

@F3n67u to me indeed the best solution would be to leave those things up to a specialised tool like eslint https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md

Makes sense if remix doesn't need to know about dependencies.

I filed a pr to solve this problem. so we have two option now:

merge my pr to solve the warning problem.
remove the warning logic and let eslint do analysis like @npirotte said

I am happy with either option 1 or option 2。

Thumbs up for removing the check and leaving it to eslint.

Closed by #3085


Overhaul documentation infrastructure

Hi there,
this patch modernizes the documentation subsystem.

Get rid of buildout
Use "crate-docs" build system
CI: Run link checker on PRs and each night
Fix broken links
Get rid of mentioning the "enterprise" version
Add "installation" section to README.rst
Add badges

It is thought to support https://github.com/crate/crate-docs-theme/issues/294 and should only be merged after https://github.com/crate/crate-docs-theme/pull/295. It will resolve #327.
With kind regards,
Andreas.

Hi @norosa,
at https://github.com/crate/croud/pull/334#pullrequestreview-676192856, you mentioned:

I think this PR should include:
https://github.com/crate/crate-docs/blob/main/.readthedocs.yml

I believe this would better apply to this patch instead?
With kind regards,
Andreas.

Agreed, re. adding the .readthedocs.yml file to this PR before merging

I just added this file.


centralize imports, fix deprecation warnings and an error, bring up t…

…o 0.4

Thanks for the PR! Looks like you missed a few exports, though.
Did you test it in parallel on 0.4 and observe any parallel speedup? I haven't been able to install 0.4 yet, and noticed the amount of speedup depended quite heavily on the (changing) internals during the development of 0.3.

So I needed parallel sparse matrices for a new branch of LightGraphs.jl, and I found that parallelizing betweenness centrality across 3 cores made the calculation almost 60% faster (560 seconds vs ~1350 not in parallel). I'm not using any of the multiplication but I did notice that issue #6 is causing some problems. I'm trying to fix that now.
Another issue I found in my own code is that since floating-point arithmetic is not associating (that is, 0.6 + 0.1 + 0.1 != 0.6 + 0.2, lots of small errors tend to accumulate. I've found that in my FP-accumulation, after about 300k accums, I'm getting accuracy to about 5 decimal places. It seems to decrease as a function of graph size.
In any case, 5 decimal places is good enough for centrality measures on large graphs, so I'm happy with it. #6 is a puzzler. I'm wondering whether the shared arrays are really as parallel-write-safe as we assume. Might have to explore DArrays as an alternative.

I just updated the discussion of issue #6; the issue is (probably) that the += operation is not thread safe. This means multiplication (but not transpose multiplication) of shared sparse matrices will not be thread safe.
The way to fix it is to introduce a separate result vector for each core and to add them up in serial at the end.

I'm pretty sure that was the approach I took last night as I was mucking about. I'll have a look when I get back home.

I think my latest change to src/parallel_matmul.jl fixes #6; at least it results consistently in ~
julia> max_error = findmax(abs(v1-u1))
(1.4210854715202004e-14,12586)

which is close enough for government work :)

That looks great. Thanks!


int[] type in Data Model used to work in  v2.1.0 rc, no longer works in versions after v2.1rc

Hi, I have a data Model which uses an int array type for one of it's property,  mapped to the _int8 type in PostgreSQL.
The code is like this:
public class MyTable
{
    ...
    [Column(TypeName = "_int8")]
    public int[] MyArray { get; set; }
}

It used to work fine in v2.1.0rc. But no longer works after that version. The error message is following:
The property 'MyTable.MyArray' could not be mapped, because it is of type 'int[]' which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.

What is the correct type should be used in C# that map to _int4/_int8 type in database?

First, you're mapping .NET int[] (which is 4-byte) to PostgreSQL _int8, is that intended or is it a typo?
As @austindrenski said, as long as you're using the default mappings (e.g. int[] to _int4) you can omit the annotation and everything should work.
Finally, 2.1 switched to using the standard, user-exposed type names instead of the internal PostgreSQL ones, so it's now integer[] instead of_int4.


Feat: schedule list actions

Draft pull request for schedule list item actions (rename, duplicate, and delete).

Let's continue this PR after #127 is merged. Closing PR.


Format DSM

The current table formatting makes the DSM utterly useless, because it's impossible to see anything.

[x] make the <th> align the text vertically
[ ] highlight clicked cells

I will stop using issues for my personal feature requests because it makes the project look more broken than it is :sweat_smile:


fix: don't panic if calling .free() multiple times

I sporadically get a TypeError: this.raw is undefined error from EventQueue, this could be a bug in my code where I call .free() to often. However I think the expected behavior is not to crash when doing so

Thanks!


chore(C): add reverse array

PR Checklist:

[x] My submission is formatted according to the guidelines in the contributing guide
[x] My addition is on refer on the language README.md file
[x] My addition does not have a spelling problem
[x] My submission has a proper and user-friendly description of the algorithm
[x] My submission has the time complexity of the algorithm
[x] My submission has sample input-output of the program (NOT FOR PYTHON)
[x] The description does not end with punctuation

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] New algorithm
[ ] Optimization in previous algorithms
[ ] Code style update
[ ] Refactor
[ ] Documentation
[ ] Other, please describe:

Briefly describe the changes in this PR

Other information:

Yes. You are right. But my PR has not been merged . There was some merge conflict with the PR.

It must have been merged with some earlier PR as the program already exist in the repository.

Yes. You are right. But how do I resolve this?

Yes. You are right. But how do I resolve this?

You don't resolve a problem which doesn't exist at the first place 😆
You have already contributed the aforementioned project to the repo sometime in past.


Uwp controls

:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/TOC.md
:warning:Warning
View
Details

docs/guides/Create-UI-Controls.md
:white_check_mark:Succeeded
View

docs/TOC.md

[Warning] Invalid file link:(~/guides/create-uwp-controls.md).

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Upgrade to Rails 5 2 and add foundation for test suite

upgrades from Rails 5.0 to Rails 5.2
add very basic test suite with example for model, controller and system test
enhance seed with real world data. This is important as we will redesign the site to have realistic content both in development and for review apps with a simple task -> rails db:reset
add a very basic CI to run the test suite and ensure that we can always run rails db:reset (inspired by the CI of RailsDevs)

Next steps:

increase a bit the test coverage
remove some dependencies that are not used
upgrade to Rails 7
upgrade to ruby 3.2

@btrd the preview fails can you let me know what is the error message ?

@btrd the preview fails can you let me know what is the error message ?

Looks like the error is:
2023-01-30 19:53:03.371747999 +0100 CET [web-1] Puma starting in single mode...
2023-01-30 19:53:03.371799993 +0100 CET [web-1] * Puma version: 6.0.1 (ruby 2.7.7-p221) ("Sunflower")
2023-01-30 19:53:03.371801097 +0100 CET [web-1] * Min threads: 5
2023-01-30 19:53:03.371801468 +0100 CET [web-1] * Max threads: 5
2023-01-30 19:53:03.371802180 +0100 CET [web-1] * Environment: production
2023-01-30 19:53:03.371802549 +0100 CET [web-1] * PID: 15
2023-01-30 19:53:08.745738138 +0100 CET [web-1] bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.7.0/bin/puma)
2023-01-30 19:53:08.745745936 +0100 CET [web-1] Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/pids/server.pid
2023-01-30 19:53:08.745746717 +0100 CET [web-1] /app/vendor/bundle/ruby/2.7.0/gems/puma-6.0.1/lib/puma/launcher.rb:304:in `write'
2023-01-30 19:53:08.745747104 +0100 CET [web-1] /app/vendor/bundle/ruby/2.7.0/gems/puma-6.0.1/lib/puma/launcher.rb:304:in `write_pid'
2023-01-30 19:53:08.745808190 +0100 CET [web-1] /app/vendor/bundle/ruby/2.7.0/gems/puma-6.0.1/lib/puma/launcher.rb:112:in `write_state'
2023-01-30 19:53:08.746109007 +0100 CET [web-1] Did you mean? caller
2023-01-30 19:53:08.746216847 +0100 CET [web-1] /app/vendor/bundle/ruby/2.7.0/gems/puma-6.0.1/lib/puma/single.rb:48:in `run'
2023-01-30 19:53:08.746259010 +0100 CET [web-1] /app/vendor/bundle/ruby/2.7.0/gems/puma-6.0.1/lib/puma/launcher.rb:186:in `run'
2023-01-30 19:53:08.746260941 +0100 CET [web-1] /app/vendor/bundle/ruby/2.7.0/gems/puma-6.0.1/bin/puma:10:in `<top (required)>'
2023-01-30 19:53:08.746261748 +0100 CET [web-1] /app/vendor/bundle/ruby/2.7.0/bin/puma:23:in `<top (required)>'
2023-01-30 19:53:08.746261340 +0100 CET [web-1] /app/vendor/bundle/ruby/2.7.0/bin/puma:23:in `load'
2023-01-30 19:53:08.746260498 +0100 CET [web-1] /app/vendor/bundle/ruby/2.7.0/gems/puma-6.0.1/lib/puma/cli.rb:75:in `run'

ok preview works now 🎉, just missing the Sponsor logos....

Merci !


chore: release main

:robot: I have created a release beep boop
bundlesize: 3.0.0
3.0.0 (2024-01-23)
⚠ BREAKING CHANGES

bundlesize: the format of the configuration file has changed.

Features

bundlesize: adding compare capabilities (d628709)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/aversini/node-cli/releases/tag/bundlesize-v3.0.0 :sunflower:


GO:0052039 modification by symbiont of host cytoskeleton -> change to disruption by symbiont of host cytoskeleton

The 2 papers annotated to GO:0052039 modification by symbiont of host cytoskeleton describe disruption -
PMID:24188660 and  PMID:19039103
Jody - Note that 'disruption' is used quite a bit in PathGO, so in favor of that .

Also changed def from
The process in which an organism effects a change in the structure or function of the host cytoskeleton. The host is defined as the larger of the organisms involved in a symbiotic interaction.
to
The process in which an organism effects a change that impairs the structure or function of the host cytoskeleton. The host is defined as the larger of the organisms involved in a symbiotic interaction.


Update the "Swift" evolution proposal template.

I've done three main things here:

updated the header fields for the process we're following now
added a lot of explanatory text and other guidance
recast the API Resilience section to have a somewhat broader purpose of talking about the general impact on adopters

This template is meant for language and library proposals, so it's specific to the Language Workgroup, and I haven't shied from that in the text.

This supersedes #1709 and #1710.

I ran this past the Language Workgroup and everyone was okay with it.


Enhancements to disk monitoring: Error handling and usage threshold alerts

This pull request introduces several enhancements to the disk.js file, improving the functionality and reliability of disk monitoring in the application. Here's a summary of the changes:

Error Handling: Implemented error handling to gracefully manage cases where fetching disk information fails, ensuring the application handles errors more robustly.

Disk Usage Threshold Alerts: Added functionality to trigger alerts when disk usage exceeds a specified threshold. Alerts are triggered based on the configured threshold percentage, providing timely notifications to users about high disk usage.

Performance Optimization: Reviewed and optimized the update frequency and data processing in the disk monitoring module, improving performance and reducing resource usage.

Please review the changes and provide feedback. Thank you!

interrogative: Does this provide accurate disk usage monitoring. In its current configuration, for me (on PopOS currently) it shows disk usage for one of my tmpfs mounts and not the actual mount of my primary drive. The data on disk usage is essentially worthless to me using gtop. I should note for example that when using btop, I see drive information from multiple mounts. Including and most importantly for /

Displays data for a tmpfs mount instead of your actual primary drive. This issue makes the disk usage data essentially worthless for your use case, especially when compared to other monitoring tools like btop, which correctly displays drive information from multiple mounts, including the primary drive.


FIX: Fixes #1074 By passing 4th param to captureMessage().

A 4th param is now passed to to RavenHandler::captureMessage()

The right way to capture the stack is to pass an exception instance in the log context's exception key (as defined in PSR-3), then Raven's captureException is used, which captures the stack.


Local debugging on Ubuntu no longer works

Environment data
dotnet --info output:
.NET SDK (reflecting any global.json):
Version:   6.0.403
Commit:    2bc18bf292
Runtime Environment:
OS Name:     ubuntu
OS Version:  20.04
OS Platform: Linux
RID:         ubuntu.20.04-x64
Base Path:   /snap/dotnet-sdk/187/sdk/6.0.403/
global.json file:
Not found
Host:
Version:      6.0.11
Architecture: x64
Commit:       943474ca16
.NET SDKs installed:
6.0.403 [/snap/dotnet-sdk/187/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.11 [/snap/dotnet-sdk/187/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.11 [/snap/dotnet-sdk/187/shared/Microsoft.NETCore.App]
VS Code version: 1.73.1
C# Extension version: 1.25.2
OmniSharp log
Starting OmniSharp server at 11/15/2022, 12:52:25 PM
Target: /home/steve/development/Bot Service/BotService.Service.Host/BotService.Service.Host
OmniSharp server started with .NET 6.0.403
.
Path: /home/steve/.vscode/extensions/ms-dotnettools.csharp-1.25.2-linux-x64/.omnisharp/1.39.2-net6.0/OmniSharp.dll
PID: 1108207
    Starting OmniSharp on Unknown 0.0 (Unknown)

    Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK

    Using the 'dotnet' on the PATH.

    DotNetPath set to dotnet

    Located 1 MSBuild instance(s)
        1: .NET Core SDK 6.0.403 17.3.2 - "/snap/dotnet-sdk/187/sdk/6.0.403/"

    Registered MSBuild instance: .NET Core SDK 6.0.403 17.3.2 - "/snap/dotnet-sdk/187/sdk/6.0.403/"

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0

    Detecting Cake files in '/home/steve/development/Bot Service/BotService.Service.Host/BotService.Service.Host'.

    Did not find any Cake files

    No solution files found in '/home/steve/development/Bot Service/BotService.Service.Host/BotService.Service.Host'

    Queue project update for '/home/steve/development/Bot Service/BotService.Service.Host/BotService.Service.Host/BotService.Service.Host.csproj'

    Detecting CSX files in '/home/steve/development/Bot Service/BotService.Service.Host/BotService.Service.Host'.

    Did not find any CSX files

    Configuration finished.

    Omnisharp server running using Stdio at location '/home/steve/development/Bot Service/BotService.Service.Host/BotService.Service.Host' on host 1107834.

    Loading project: /home/steve/development/Bot Service/BotService.Service.Host/BotService.Service.Host/BotService.Service.Host.csproj

    Successfully loaded project file '/home/steve/development/Bot Service/BotService.Service.Host/BotService.Service.Host/BotService.Service.Host.csproj'.

    Adding project '/home/steve/development/Bot Service/BotService.Service.Host/BotService.Service.Host/BotService.Service.Host.csproj'

    Update project: BotService.Service.Host

Received response for /v2/codestructure but could not find request.
Received response for /v2/getcodeactions but could not find request.
Steps to reproduce
Choose a donet sdk project
Debug with launch configuration
Debug launches and no debug symbols are ever loaded, process stops with the following displayed in the debug console

You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
Expected  behavior
Expect debugging to start and debug symbols to load
Actual behavior
Cannot debug because no debug code is loaded
Additional context
Add any other context about the problem here.

@SteveCurran can you provide a debugger log?

@gregg-miskelly
<- (E) {"seq":25,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/ProcessCreate","data":{"VS.Diagnostics.Debugger.vsdbg.Distribution.Version":"20.04","VS.Diagnostics.Debugger.vsdbg.TargetArchitecture":"AMD64","VS.Diagnostics.Debugger.vsdbg.Distribution.Name":"ubuntu","VS.Diagnostics.Debugger.vsdbg.OSFamily":"Linux","VS.Diagnostics.Debugger.vsdbg.Version":"17.4.11017.1 commit:fe68eee3d38c1935f4872cebf5f8a86033673f76"}}}
<- (E) {"seq":26,"type":"event","event":"process","body":{"name":"/home/steve/development/Bot Service/BotService.Service.Host/BotService.Service.Host/bin/Debug/net6.0/BotService.Service.Host.dll","systemProcessId":1131231,"isLocalProcess":true,"startMethod":"launch"}}
<- (E) {"seq":27,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":false,"message":"No symbols have been loaded for this document.","line":104}}}
<- (E) {"seq":28,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":2,"verified":false,"message":"No symbols have been loaded for this document.","line":127}}}
<- (E) {"seq":29,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":3,"verified":false,"message":"No symbols have been loaded for this document.","line":145}}}
<- (E) {"seq":30,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":4,"verified":false,"message":"No symbols have been loaded for this document.","line":121}}}
<- (E) {"seq":31,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":5,"verified":false,"message":"No symbols have been loaded for this document.","line":125}}}
<- (E) {"seq":32,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":6,"verified":false,"message":"No symbols have been loaded for this document.","line":127}}}
<- (E) {"seq":33,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":7,"verified":false,"message":"No symbols have been loaded for this document.","line":21}}}
<- (E) {"seq":34,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":8,"verified":false,"message":"No symbols have been loaded for this document.","line":32}}}
<- (E) {"seq":35,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":9,"verified":false,"message":"No symbols have been loaded for this document.","line":31}}}
<- (E) {"seq":36,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":10,"verified":false,"message":"No symbols have been loaded for this document.","line":63}}}
<- (E) {"seq":37,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":11,"verified":false,"message":"No symbols have been loaded for this document.","line":91}}}
<- (E) {"seq":38,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":12,"verified":false,"message":"No symbols have been loaded for this document.","line":39}}}
<- (E) {"seq":39,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":13,"verified":false,"message":"No symbols have been loaded for this document.","line":54}}}
<- (E) {"seq":40,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":14,"verified":false,"message":"No symbols have been loaded for this document.","line":24}}}
<- (E) {"seq":41,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":15,"verified":false,"message":"No symbols have been loaded for this document.","line":36}}}
<- (E) {"seq":42,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":16,"verified":false,"message":"No symbols have been loaded for this document.","line":24}}}
<- (E) {"seq":43,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":17,"verified":false,"message":"No symbols have been loaded for this document.","line":29}}}
<- (E) {"seq":44,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":18,"verified":false,"message":"No symbols have been loaded for this document.","line":70}}}
<- (E) {"seq":45,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":19,"verified":false,"message":"No symbols have been loaded for this document.","line":146}}}
<- (E) {"seq":46,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":20,"verified":false,"message":"No symbols have been loaded for this document.","line":100}}}
<- (E) {"seq":47,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":21,"verified":false,"message":"No symbols have been loaded for this document.","line":186}}}
<- (E) {"seq":48,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":22,"verified":false,"message":"No symbols have been loaded for this document.","line":214}}}
<- (E) {"seq":49,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":23,"verified":false,"message":"No symbols have been loaded for this document.","line":221}}}
<- (E) {"seq":50,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":24,"verified":false,"message":"No symbols have been loaded for this document.","line":25}}}
<- (E) {"seq":51,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/Launch","data":{"VS.Diagnostics.Debugger.vsdbg.Launch.Duration":500,"VS.Diagnostics.Debugger.vsdbg.SourceFileMappings":0,"VS.Diagnostics.Debugger.vsdbg.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.vsdbg.TargetType":"Live","VS.Diagnostics.Debugger.vsdbg.AdapterId":"coreclr","VS.Diagnostics.Debugger.vsdbg.Distribution.Version":"20.04","VS.Diagnostics.Debugger.vsdbg.Distribution.Name":"ubuntu","VS.Diagnostics.Debugger.vsdbg.OSFamily":"Linux","VS.Diagnostics.Debugger.vsdbg.Version":"17.4.11017.1 commit:fe68eee3d38c1935f4872cebf5f8a86033673f76"}}}
<- (R) {"seq":52,"type":"response","request_seq":21,"success":true,"command":"configurationDone"}
-> (C) {"command":"threads","type":"request","seq":22}
<- (R) {"seq":53,"type":"response","request_seq":22,"success":true,"command":"threads","body":{"threads":[]}}

@gregg-miskelly I tried launching and attaching and I see the same issue.

Looks like this really is the same problem as #5460. Thanks for the logs!
I setup a new Linux VM and installed the .NET SDK using Snap, and I could reproduce the problem.
In case this is useful: I don't see this problem installing the .NET SDK via either apt or the dotnet-install script. So potentially you could temporarily switch to installing it that way.


Schema being resolved through the model not the resource

Hi,
I might have found an issue in the resource resolution. I have some "fake" resources that could not be met by any model in the project and as they were related to the User model i thought it would be handy to map the resources to it:

But now, when i send a request to /users the resulting type is password-reset. After some time digging the code i found out that the resource classes (Adapter/Schema/Validators) are resolved through the model instance not the resource name and so i'm not able to have more than one resource mapped to the same model. Is this an expected behavior?

This won't work unfortunately and isn't really a bug... the underlying encoder uses the class of object it is given to determine how to encode it to a JSON API resource. So you cannot use the same class for multiple different resource types.
There's no way to fix this, i.e. it isn't a bug... because in the scenario you've shown, how would the encoder know which resource type to use (users, login, etc) when it encounters a User class object?
We however do something similiar to what you are trying... we have a users and user-accounts resource types, that both effectively map to a User model. What we do however is have a UserAccount class that takes a User model in its constructor - i.e. we wrap the user model in a presenter class, so the encoder knows what to do.
Then our mapping is:
'resources' => [
  'users' => \App\Models\User::class,
  'user-accounts' => \App\JsonApi\UserAccount::class,
]

@lindyhopchris
How does the part with the User as construct parameter work?
Can you provide an example?

@thoresuenert we have to use custom adapters for the user-accounts resource, so that it can create the UserAccount classes correctly. I'd like to document this better in the next version, as I've got some ideas of how to simplify it, but in the meantime custom adapters are documented here:
https://laravel-json-api.readthedocs.io/en/latest/basics/adapters/#custom-adapters

Closing due to lack of activity.


First Android app: Android Basics with Compose

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-first-app#5
In which task and step of the codelab can this issue be found?
Describe the problem
When i add padding to project
modifier = modifier.padding(24.dp)
import androidx.compose.ui.unit.dp
import androidx.compose.foundation.layout.padding
i get error Unresolved reference: GreetingCardTheme

Hi @D3xt3r000
Thank you for writing in.
Please provide your file MainActivity.kt and also a screenshot so we can help troubleshoot it further.
Regards.

Hi,
I didn't use
"Make sure to use Optimize Imports to alphabetize the new imports."
After that program runs correct :)
You can close this Issue #670
Regards
czw., 25 kwi 2024 o 16:17 John Shea @.***> napisał(a):

Hi @D3xt3r000 https://github.com/D3xt3r000
Thank you for writing in.
Please provide your file MainActivity.kt and also a screenshot so we can
help troubleshoot it further.
Regards.
—
Reply to this email directly, view it on GitHub
https://github.com/google-developer-training/basic-android-kotlin-compose-birthday-card-app/issues/670#issuecomment-2077318188,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BICOGCVWTZJLRTGBD7JS7D3Y7EF67AVCNFSM6AAAAABGYXOKLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXGMYTQMJYHA
.
You are receiving this because you were mentioned.Message ID:
<google-developer-training/basic-android-kotlin-compose-birthday-card-app/issues/670/2077318188
@github.com>

Hi @D3xt3r000
Glad you were able to figure out your issue.
Hope you are enjoying the course!
Regards.


use outbound SNI when SSL is active

and allow the hostname to be set by an exchange property

Too old. Please reopen if still relevant.


[wip] Add client side auth

Fixes https://github.com/workos/authkit-nextjs/issues/80
Hopefully fixes https://github.com/workos/authkit-nextjs/issues/146
Introduces new auth hooks via the AuthKitProvider component. Also separates server and client components so no crypto modules are accidentally included, causing errors in client components that attempt to use this library.
This branches off https://github.com/workos/authkit-nextjs/pull/145, hence why it's WIP until that PR is merged.

Hi is there any timeline for this? I am blocked to integrate into our existing app without major refactors.


Nuget package not working on Ubuntu 19.04

The nuget package as a dependency does not work on Ubuntu 19.04 (see https://github.com/GitTools/GitVersion/issues/1744).
Im not shure which binaries it tries tu use, I'd suspect it selects the linux-x64 binaries (the error looks very similar to the one in https://github.com/GitTools/GitVersion/issues/1510).
When built and installed directly on the machine, everything works fine.

Same happens on Ubuntu 20.04, it definitely tries to use linux-x64 which rely on libssl 1.0, instead of 1.1

libssl is no longer a dependency for the LibGit2Sharp builds, thanks to https://github.com/libgit2/libgit2sharp/pull/1618.  Upgrading to the latest nuget package will fix this. https://www.nuget.org/packages/LibGit2Sharp/0.27.0-preview-0096


[ Fancy zone ]  rearrange custom layouts / change shortcut for custom layouts

Provide a description of the new feature / enhancement

rearrange custom layouts.
I wish I could change the order by drag-and-drop.

change shortcut for custom layouts.
"ctrl + window + alt + number" is too hard to press with one hand.

@yugun

already tracked by https://github.com/microsoft/PowerToys/issues/11094
already tracked by https://github.com/microsoft/PowerToys/issues/6973


SSL parameters sslrootcert  in ClickHouse driver setting doesn't work

Description
I can't connect with ssl root ca to cloud
(at any path in system and installed as Root cert)
system can't find cert
javax.net.ssl.SSLException: Failed to get SSL context
Failed to get SSL context
Failed to get SSL context
No certificate data found
No certificate data found
	"provider": "clickhouse",
		"driver": "com_clickhouse",
		"name": "cluster.mdb.yandexcloud.net",
		"save-password": true,
		"read-only": false,
		"configuration": {
			"host": "cluster.mdb.yandexcloud.net",
			"port": "**8443**",
			"url": "jdbc:clickhouse://cluster.mdb.yandexcloud.net:8443",
			"type": "dev",
			"properties": {
				"use_server_time_zone": "false",
				"use_time_zone": "false",
				"ssl": "**true**",
				"sslrootcert": "**C:\\ca.crt**" _any variation_
			},
			"auth-model": "native",
			"handlers": {
				"clickhouse-ssl": {
					"type": "CONFIG",
					"enabled": **true**,
					"save-password": true,
					"properties": {
						"ssl.ca.cert": "**C:\\ca.crt**",
						"ssl.client.cert": "",
						"ssl.client.key": "",
						"ssl.method": "CERTIFICATES",
						"ssl.mode": "**STRICT**"
					}

`
DBeaver Version
СЕ <IP_ADDRESS>210092258
Operating System
Widows 7 Pro 6.1.7601 Service Pack 1 Build 7601
Database and driver
Yandex ClickHouse driver (server version 21.3+)
com_clickhouse
Steps to reproduce
I try to connect to clickhouse cluster with SSL and root cert
dbeaver can't locate file at any path
and setup it in driver or connection tab ( or both)
Additional context
I try same at MacOS with same results
addition found that dbeaver generate temp cert file  and make connection with string.
temp cert  file include path from field in form as string

@voregnev Hi. We reopened the Clickhouse SSL ticket. You can track progress there https://github.com/dbeaver/dbeaver/issues/17363
Closing this one as a duplicate


Env var to toggle to emitting warnings instead of errors

This is blocked by #[feature(proc_macro_diagnostic)] which is currently unstable 😞 There don't seem to be a workaround.

Maybe having an env var or feature flag that disables the feature altogether (for purity of builds) would be a reasonable idea too? And hopefully it wouldn't be blocked by proc_macro_diagnostic, which'd allow people to start using it in contexts that sometimes need pure builds easier :)

You mean like this https://docs.rs/todo-or-die/0.1.1/todo_or_die/#skipping-checks?

Huh ok I'm stupid I don't know how I missed that… sorry and thank you for the link!


[FR] Partial template injection

Originally posted by @bl0nd in #6
every time I update a config file (say polybar's), I also have to update polybar's _mondo-template, otherwise when the former gets overwritten when I apply a theme, it'll be outdated by an edit. This updating gets a little tedious, especially when you got 4 or 5 other generators.
I thought it'd be a good idea to maybe have __mondo-template contain only lines from the original config that require substitution, so like for polybar:
~/.config/mondo/generators/polybar/_mondo-template
background = %%activebg%%
background-alt = %%inactivebg%%
foreground = %%activefg%%
foreground-alt = %%inactivefg%%
primary = %%blue%%
secondary = %%yellow%%
alert = %%red%%
That way, whenever we update the original polybar config, we don't need to update the polybar _mondo-template. And to apply the theme, we'd just need to update the original config with the generated theme files instead of overwriting the entire original config. The only problem is I don't know how to do that just yet. I think diff could help but the real problem is how to replace the appropriate lines in the original config file.
I saw that your mondo-contrib repo was structured like this so I have no idea if this is already a feature? If it is, it hasn't worked for me so far (though maybe I'm just being dumb and messing up) so thought I'd just bring it up.

I have my polybar config set up something like this:
~/bin
  polybarreload
~/.config/polybar
  config
  settings
  theme
~/.config/mondo/generator/polybar/_mondo-template

~/.config/polybar/config is the config file that polybar uses to render the actual bar. But i have moved everything except the "theme", to a file called settings, and the theme to a file called theme, then made a mondo template based on the theme file.
So whenever i want to change my polybar config, i do the changes to "settings" and then have a script (polybarrestart) that merge settings and theme into a new config, (the restart script also restarts polybar and some listener scripts).
cat ~/.config/polybar/settings ~/.config/polybar/theme > ~/.config/polybar/config
polybar-msg restart

I have similar things for other programs such as i3 and dunst. But I totally get what you are saying, and it is a good idea.
But it might have some side effects. If I would implement this, i would search the target file (let say polybar/config) for each line in _mono-template, but with mondo variables replaced by a regexp matching any word. This would probably work 99% of the time. But what if there are more then one matches or zero matches...
Another approach could be to add something like (lets take the polybar file as example again):
; >> date
[module/date]
type = internal/date
interval = 5

date =
date-alt = ""

time = %H:%M
time-alt = %m|%d

format-prefix =

label = %time%
; label-margin-left = 1

[settings]
screenchange-reload = true

; >> colors
; MONDO-BEGIN
[colors]
background = #8888c8
foreground = #FFFFE8
accent = #424242
alert = #b85c57
; MONDO-END
; >> settings
[bar/example]
font-0 = FixedFixedsys:style=Regular:size=12:antialias=false;1

notice the MONDO-START and MONDO-END, then i guess we would also need to add a _mondo-setting, like inject=true  .
And yeah, you get it, it would replace anything within the special blocks with the generated theme.
This second approach, will be much easier to predict, and i think i like it a lot. Also by using the settings variable, it will not break or change any existing mondo usage...
I will try to add this feature to the next mondo release.

Yeah regexing this seemed a lot messier to me as well. I really like the 2nd solution though, can't wait for it to be added!

@bl0nd test the newest release, the inject feature should work exact as described in my previous comment. https://github.com/budlabs/mondo-contrib/tree/master/lets/generator/polybar

@budRich Works like a charm, thanks for adding it!

It seems that if you only have 1 thing to replace, like a theme file path in Xresources:
~/.Xresources

...
! MONDO-BEGIN
#include ".xfiles/themes/ayu-mirage"
! MONDO-END
...

Mondo will just append the template variable instead of replacing:
~/.Xresources

...
! MONDO-BEGIN
#include ".xfiles/themes/ayu-mirage"
! MONDO-END
...
#include ".xfiles/themes/some_other_theme"

np, thanks for bringing it up. I think i had thought about something like this before, but had some strange idea, keeping it simple, strict rules on what the program does and so on. But when you brought it up I gave it some more thought, and now when I have been using mondo quite a lost myself i know that this is a very common thing (to be able to only change parts of a config), and it totally makes sense and feels like a missing piece of the puzzle.
Please let me know if you got any other issues or feature requests for mondo.


Support for IPv6 Host

Added support for IPv6 host
Version bumped to 2.2.0

Previously, we used to set up connections with a fixed base URL that couldn't be modified afterward. Now, we are creating connections where the entire URL is specified at the time of the request. This gives us the flexibility to direct requests to either the 'v6' or 'v4' host as needed.


TypeError: cannot unpack non-iterable NoneType object

Environment

System OS: Linux

Python Version: 3.9.2

Install Source:
pip install spotdl

Version OR Commit hash:
3.4.1

Expected Behaviour
The song would download correctly
Actual Behaviour
There comes a TypeError: cannot unpack non-iterable NoneType object
Steps to Reproduce

pip install spotdl
spotdl https://open.spotify.com/track/1j4kHkkpqZRBwE0A4CN4Yv?si=xKwjYFs8SAuzBly22AAQVA

Traceback

Traceback (most recent call last):
  File "/home/username/.local/bin/spotdl", line 8, in <module>
    sys.exit(console_entry_point())
  File "/home/username/.local/lib/python3.9/site-packages/spotdl/__main__.py", line 109, in console_entry_point
    song = SongObj.from_url(request)
  File "/home/username/.local/lib/python3.9/site-packages/spotdl/search/songObj.py", line 60, in from_url
    youtubeLink = SongObj.searchProvider(
  File "/home/username/.local/lib/python3.9/site-packages/spotdl/search/provider.py", line 268, in search_and_get_best_match
    results = search_and_order_ytm_results(
  File "/home/username/.local/lib/python3.9/site-packages/spotdl/search/provider.py", line 228, in search_and_order_ytm_results
    albumMatch = match_percentage(result['album'], songAlbumName)
KeyError: 'album'
Exception ignored in: <function tqdm.__del__ at 0x7f282a5aac10>
Traceback (most recent call last):
  File "/home/username/.local/lib/python3.9/site-packages/tqdm/std.py", line 1145, in __del__
  File "/home/username/.local/lib/python3.9/site-packages/tqdm/std.py", line 1299, in close
  File "/home/username/.local/lib/python3.9/site-packages/tqdm/std.py", line 1492, in display
  File "/home/username/.local/lib/python3.9/site-packages/tqdm/std.py", line 1148, in __str__
  File "/home/username/.local/lib/python3.9/site-packages/spotdl/download/progressHandlers.py", line 22, in format_dict
  File "/home/username/.local/lib/python3.9/site-packages/tqdm/std.py", line 1450, in format_dict
TypeError: cannot unpack non-iterable NoneType object

Any other information:
the song is available in my country

I get the same error for some other songs too, so I guess this is an issue on my end only. Can anyone confirm?

I get the same error for some other songs too, so I guess this is an issue on my end only. Can anyone confirm?

Fixed in the dev branch
INSTALLING FROM DEV:

pip install pip-autoremove
pip-autoremove spotdl
pip cache purge
pip install https://codeload.github.com/spotDL/spotify-downloader/zip/dev
spotdl [trackUrl]

fixed in v3.4.2


start-x11 step fails (but ignored) on build-marist-rhel74-s390x-1

TASK [x11 : Start X11] *********************************************************
15:07:27
changed: [build-scaleway-ubuntu1604-x64-2]
changed: [build-scaleway-ubuntu1604-armv7-1]
changed: [build-scaleway-ubuntu1604-armv7-2]
changed: [build-packet-ubuntu1604-armv8-2]
changed: [build-osuosl-centos74-ppc64le-2]
fatal: [build-marist-rhel74-s390x-1]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}
...ignoring

Likely dup of https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/464 where the machine is out of space. Will reopen if it recurs


[5.3] Limit in eager loading doesn't feel right

Laravel Version: 5.3.6
PHP Version:5.6.15
Database Driver & Version:Mysql 5.6.31

I have this eloquent Query
$themes = DataTheme::withCount('dataSets')
->with([
    'dataSets' => function ($query)
    {
        $query->limit(5);
    }
])
->orderBy('data_sets_count', 'desc')
->get();

The dataSets on the DataTheme model is belongsToMany()
This is how i understand the eloquent query
Select all data themes
Select the total count of data sets related to each data theme
For each data theme select only 5 data sets
And this is the generated sql
SELECT
  *,
  (SELECT
    COUNT(*)
  FROM
    `data_sets`
    INNER JOIN `data_set_data_theme`
      ON `data_sets`.`id` = `data_set_data_theme`.`data_set_id`
  WHERE `data_set_data_theme`.`data_theme_id` = `data_themes`.`id`) AS `data_sets_count`
FROM
  `data_themes`
ORDER BY `data_sets_count` DESC;

SELECT
  `data_sets`.*,
  `data_set_data_theme`.`data_theme_id` AS `pivot_data_theme_id`,
  `data_set_data_theme`.`data_set_id` AS `pivot_data_set_id`
FROM
  `data_sets`
  INNER JOIN `data_set_data_theme`
    ON `data_sets`.`id` = `data_set_data_theme`.`data_set_id`
WHERE `data_set_data_theme`.`data_theme_id` IN ('1', '2', '3', '4')
LIMIT 5

As you can see the Explenation that i provided doesn't match the sql code.
The sql is just selecting 5 datasets and not 5 datasets for each data theme
Is my explenation of the Eloquent query correct ?

Looks correct. It's just not possible to limit in the way that you want. This has come up before I think.


Support for sway?

I was wondering whether this project supports sway. If not, would it be possible to add support for sway?

Hi @AndreasBackx. This project currently does not support sway; mostly because I don't use it, but also because sway does not (yet) have support for the append_layout command that is required for i3nator to work.
There seems to be a PR, although it seems to have been abandoned.
Once sway supports the append_layout feature I'll gladly take contributions on support for it, right now it simply isn't possible.
Thanks for your interest!

Ah bummer! I wanted to get something similar to tmuxinator but don't want to change my muscle memory for stuff like CTRL+SHIFT+C and the like. Thank you though.


[tutorials] Add tutorial on Reactivity

Designed as the second tutorial in the "Learn" series.

Completed by https://github.com/lit/lit.dev/pull/791


[WIP] Move collection filtering by tags into toolbar

These changes are part of adjustments related to content sync feature.
The goal of this PR is to move filtering by tags from sidebar into a toolbar together with filtering by name and sync status.
TODO

[ ] params properties are not restored from URL for tags and sync status
[ ] styling Chip group
[ ] filtering for Sync can not be applied yet (waiting for https://github.com/ansible/galaxy_ng/issues/45)
[ ] test that the filtering is applied correctly

Links

story: https://github.com/ansible/galaxy_ng/issues/17
ux mockup

Steps for Testing/QA

Go to Collections page in Automation Hub UI
Toolbar at the top contains the options

Current status:

One minor fix: can you use sentence case for the tags?
Under the tag dropdown, "Sync Status" should be changed to "Sync status"

By default, Sync on should be selected.

Current status:

Looks good!


RHEL 6 STIG v1r19 released

And new benchmark. What tools do you use to compare, besides the MK1 eyeball?

Iusually find them...lacking...

[x]  V-38482 - Added "/etc/pam.d/password-auth" to the check and fix.
[ ]  V-38497 - Added "/etc/pam.d/password-auth" to the check and fix. (PR incoming)
[ ]  V-38569 - Added "/etc/pam.d/password-auth" to the check and fix.
[ ]  V-38570 - Added "/etc/pam.d/password-auth" to the check and fix.
[ ]  V-38571 - Added "/etc/pam.d/password-auth" to the check and fix.
[ ]  V-38693 - Added "/etc/pam.d/password-auth" to the check and fix.

Here's a start.  I'm doing some updates and will send a PR.


Delete Key from Document

Investing the code for delete key from iroh document.
Its seem we set empty content for a key but not delete a key itself, When we do query all keys key still return key with empty content
Is this a bug or feature?  Do we have api to delete key as well as it content

Deleting a key is the same as setting an empty value, so this is expected behaviour


Fix a bug in the CMake file for the unit tests [cmake-unit-tests-fix]

This bug was causing the unit tests build with CMake to fail.
This resolves #784.

There is still one other problem with the Visual Studio build, which I'm working on; test_datacollection.cpp calls unistd.h which has no direct analog under windows, you will need to replace rmdir with _unlink, so the fix will involve a platform chack and a pseudo unistd in the windows branch, along with a platform generic MFEM_RMDIR
https://github.com/mfem/mfem/blob/master/tests/unit/fem/test_datacollection.cpp

@jonesholger, I think you can also use _rmdir from <direct.h> under windows, see https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/rmdir-wrmdir?view=vs-2015. In https://github.com/mfem/mfem/blob/master/fem/datacollection.cpp we already use that header for _mkdir. The claim is that _rmdir is "ISO C++ conformant" according to https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/rmdir?view=vs-2015.

@v-dobrev , yes that seems reasonable. and is an extremely easy fix. I'll try it out. Also, I'm thinking of these #defines, but  _WIN32 may be totally sufficient
#if defined(_WIN32)
#define PLATFORM_NAME "windows" // Windows
#elif defined(_WIN64)
#define PLATFORM_NAME "windows" // Windows
#elif defined(CYGWIN) && !defined(_WIN32)

ok, those changes cleared up all the build issues, but we still may have a data issue
in test_datacollection.cpp added
#ifndef _WIN32
#include <unistd.h>  // rmdir
#else
#include <direct.h>  // _rmdir
#define rmdir(dir) _rmdir(dir)
#endif
@v-dobrev can I defer to you to add that change.
and ran tests with the following result
InverseElementTransformation
{ Spiral Q20 Quad }
C:\Users\jones\source\repos\mfem\tests\unit\fem\test_inversetransform.cpp(53)
...............................................................................
C:\Users\jones\source\repos\mfem\tests\unit\fem\test_inversetransform.cpp(125): FAILED:
REQUIRE( mesh_file.good() )
with expansion:
false
===============================================================================
test cases:     74 |     73 passed | 1 failed
assertions: 142751 | 142750 passed | 1 failed

@jonesholger,
Let's make the additional fixes for Windows in a separate PR. I'll merge this PR as it is.


[ NeuralForecast: TFT|TemporalCovariateEncoder| nn.lstm ]

Description
Hi could you add a number of layers parameters in the TFT's LSTM so we can do stacking of LSTM?
Like num_layers=1 by defaults?
Use case
I am trying to get a better accuracy for the TFT, by stacking more LSTM layers in the TFT TemporalCovariateEncoder.

Hi! I experimented with this and it seems the architecture does not allow that unless we rework more parts of the model. To improve accuracy, you can always experiment with different activation functions or number of attention heads.


[LiveComponent] Smooth out parent-child component relationship

Q
A

Bug fix?
yes

New feature?
yes

Tickets
#102 addresses Bug C and Bug F

License
MIT

This PR is to address a few outstanding issues related to nested or "parent/child" components:

[X] #102 Bug C: When a model is updated in a child component, that parent component does not receive that component update (e.g. imagine a form that renders a component... and one field is rendered inside another component - when the child component's model is updated, it should also update that same model in the parent component [the form]).
[X] Change data-model to take priority over name so that child components can use data-model and allow parent components to still use the name attribute to match up with their model.
[X] Change the new live:update-model event to also (when possible) pass the relevant element so that the listener can look at both the name and data-model attribute to find a match. Or find an alternative solution.
[X] Document how parent/child components work (e.g. that when a parent re-renders, the child does not re-render)
[X] #102 Bug F:  Add a way to "force" a child component to re-render
[x] Document a known edge case: if a child component re-renders, and the shared model value (shared with a parent component) CHANGES in the AJAX response (e.g. content=foo is sent to the server but content=FOO is returned, and so FOO is now the new value of the content model), a parent will not be aware of this change.
[x] Add way to "map" a child model onto a parent model so that you can "map" a private LiveProp from a child onto a parent so that it's not lost if the parent renders over the child.
[x] Standardize / cleanup more tests with mockRerender().

This is ready to go - the README.md is updated. Mostly, this makes parent-child relationships much smarter to capture the "95%" use-case without any extra config.


Overwhelmed by life threatening situation and standing on Elbereth forever

poetry run python replay_commit.py c93f09f5f252d2a787960a789d16938bfef725ed
c93f09f5f252d2a787960a789d16938bfef725ed

b9675d7e9645b3e4631aa49128af5d90e54886c0

Mostly resolved!


Invalid Step Files Should Not Be Able to Crash Etterna

A number of issues have arisen due to invalid step files crashing Etterna.
One particularly notable example is that any files with zero-length holds (see: Osu maps) will crash Etterna and leave the person to have to hunt down which file has them.
Ideally, we should not crash Etterna under any invalid input, and should instead just "skip" that file, printing an unhappy warning message in the logs.
At a minimum, if loading a file crashes Etterna in any way, anywhere, the last output to the log should be the name of the file, as well as some basic debug info if possible to aid people trying to find the issue.
In general, Etterna should be hardened against invalid user input of any kind, failing gracefully whenever possible and crashing with useful debugging info otherwise.
I'm reasonably certain that an issue a user is experiencing right now is caused by a malformed dwi file, but the crash output is a random access violation, which is near-useless for troubleshooting. This is why I made this PR in the first place.

One point of exception handling for song load in general, assuming exceptions just propagate through the call stack without any help, would be handling it in Song::LoadFromDir (loader LoadFromDir) and Steps::GetNoteDataFromSimfile (loader LoadNoteDataFromSimfile)
That probably would catch most io/load related issues.


Migrate repo to acmcsufoss/acmcsuf.com

What's your idea?
As much as we and I love Ethan, he won't be around forever; both for future maintenance reasons, and for professionalism, we should work on migrating this repo to acmcsufoss/acmcsuf.com.

Thanks for the feedback, @amyipdev :)
acmcsuf.com is currently hosted on my free Netlify account. Once we identify a CI/CD solution for our GitHub organization, I'll be happy to migrate the repository to a more collaborative environment.

We're hosting on free Netlify? Wow, didn't realize that at all - I thought we were hosting on Cirno.
Could migrating to Cirno be an option?

Could migrating to Cirno be an option?

If I recall correctly, Cirno is an AWS EC2 instance. We previously had an automated deployment process for Cirno using GitHub Actions/Workflows. I'm uncertain about its current status and if it's still operational.

Yes, Cirno is EC2, and yes that process still works - I actually am the one who oversees it now.

Sounds good to me. Then once we completely migrate acmcsuf.com to Cirno, I’ll move forward with transferring the GitHub repository to @acmcsufoss!


Dynamic SVG

[Y] You are using the latest version
[Y] You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console

Question:
An SVG without dynamic attributes is included in the image output.
An SVG with dynamic attributes is NOT included in the image output.
There is an error in the console:

How do I adjust the dynamic SVG so that it will work with html2canvas?
https://codepen.io/richcorbs/pen/zYBewjv
Note the blue circle in the codepen above is static and the green circle is dynamic. The blue circle is included in the downloaded screenshot and the green one is not.
Any quick fix for me?

I found that html2canvas didn't like the dynamic attributes. I was able to remove them prior to generating the canvas and all worked as expected.
For the next person who gets here the secret for me was looping through my lines and removing the dynamic attributes. I've updated the codepen to a working order but here is a snippet:
        var el = document.getElementById('artboard')
        var lines = el.getElementsByClassName('connector-line')
        Array.from(lines).forEach((line) => {
          line.removeAttribute(':height')
          line.removeAttribute(':width')
          line.removeAttribute(':viewbox')
        }


Not working with url_base_pathname set in dash.Dash()

Description
The dash uploader component does not work (i.e. upload does not start) is url_base_pathname is set when initializing the dash.Dash().
MWE
from pathlib import Path
import uuid

import dash_uploader as du
import dash
import dash_html_components as html
from dash.dependencies import Input, Output, State

app = dash.Dash(__name__, url_base_pathname='/base/')

UPLOAD_FOLDER_ROOT = r"C:\tmp\Uploads"
du.configure_upload(app, UPLOAD_FOLDER_ROOT)

def get_upload_component(id):
    return du.Upload(
        id=id,
        text='Drag and Drop files here',
        text_completed='Completed: ',
        cancel_button=True,
        max_file_size=1800,  # 1800 Mb
        upload_id=uuid.uuid1(),  # Unique session id
    )

def get_app_layout():

    return html.Div(
        [
            html.H1('Demo'),
            html.Div(
                [
                    get_upload_component(id='dash-uploader'),
                    html.Div(id='callback-output'),
                ],
                style={  # wrapper div style
                    'textAlign': 'center',
                    'width': '600px',
                    'padding': '10px',
                    'display': 'inline-block'
                }),
        ],
        style={
            'textAlign': 'center',
        },
    )

# get_app_layout is a function
# This way we can use unique session id's as upload_id's
app.layout = get_app_layout

# 3) Create a callback
@du.callback(
    output=Output('callback-output', 'children'),
    id='dash-uploader',
)
def get_a_list(filenames):
    return html.Ul([html.Li(filenames)])

if __name__ == '__main__':
    app.run_server(debug=True)

Versions
dash-uploader version: 0.3.1
dash: 1.14.0

From devtools, it can be seen that there is a HTTP request with Status Code 500 INTERNAL SERVER ERROR.
The request URL is
http://<IP_ADDRESS>:8050/base/API/resumable?resumableChunkNumber=1&resumableChunkSize=1048576&resumableCurrentChunkSize=74&resumableTotalSize=74&resumableType=&resumableIdentifier=74-testmd&resumableFilename=test.md&resumableRelativePath=test.md&resumableTotalChunks=1&upload_id=9711e480-187a-11eb-8cc5-2016b9d15494

without the url_base_pathname, an example HTTP POST is pointed to
http://<IP_ADDRESS>:8050/API/resumable?resumableChunkNumber=1&resumableChunkSize=1048576&resumableCurrentChunkSize=74&resumableTotalSize=74&resumableType=&resumableIdentifier=74-testmd&resumableFilename=test.md&resumableRelativePath=test.md&resumableTotalChunks=1&upload_id=0c67b705-187b-11eb-b5a4-2016b9d15494

The only difference seems to be the beginning. The server does not POST requests pointed to http://<IP_ADDRESS>:8050/base/API/resumable. Have to check the configuration steps in du.configure_upload().

Looking from the app.config, the url_base_pathname sets actually three things:
 'url_base_pathname': '/base/',
 'routes_pathname_prefix': '/base/',
 'requests_pathname_prefix': '/base/',

Now I have to think how to fix this without breaking the functionality with requests_pathname_prefix (see this issue: https://github.com/np-8/dash-uploader/issues/3). If I try to set both, requests_pathname_prefix and url_base_pathname, I will get somewhat helpful explanation:
dash.exceptions.InvalidConfig: You supplied `url_base_pathname` and `requests_pathname_prefix`. This is ambiguous.
To fix this, set `routes_pathname_prefix` instead of `url_base_pathname`.

Note that `requests_pathname_prefix` is the prefix for the AJAX calls that
originate from the client (the web browser) and `routes_pathname_prefix` is
the prefix for the API routes on the backend (this flask server).
`url_base_pathname` will set `requests_pathname_prefix` and
`routes_pathname_prefix` to the same value.
If you need these to be different values then you should set
`requests_pathname_prefix` and `routes_pathname_prefix`,
not `url_base_pathname`.

If I try to set the requests_pathname_prefix and routes_pathname_prefix to be different, I will get also an error:
dash.exceptions.InvalidConfig: `requests_pathname_prefix` needs to ends with `routes_pathname_prefix`.

also
dash.exceptions.InvalidConfig: `routes_pathname_prefix` needs to end with `/`
dash.exceptions.InvalidConfig: `routes_pathname_prefix` needs to start with `/`
dash.exceptions.InvalidConfig: `requests_pathname_prefix` needs to start with `/`

which means that all possible combinations are either
Case 1
routes_pathname_prefix = /foo/
requests_pathname_prefix= /foo/

or
Case 2
routes_pathname_prefix = /foo/
requests_pathname_prefix= /bar/foo/

where both foo and bar may contain forward slashes (/).

Fixed in https://github.com/np-8/dash-uploader/commit/42ee6f7a300c5cf9c43865300acdc43d809d481b


Request attributes by keys and values

The section "Request attributes by keys and values" is not clear. Specifically the statements "The value of the header (1=1) might be detected as an attack by the WAF. But if you know this is a legitimate value for your scenario, you can configure an exclusion for the value of the header. To do so, you use the RequestHeaderValues request attribute, and select the header name (My-Header) with the value that should be ignored."
The text, as written, hints that can be excluded only for value '1=1'. However, the implementation seems to be that all values for My-Header will be ignored.
I suggest adding the statement, at the end: "This configuration will stop evaluation of all values for the header 'My-Header'."

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

ID: b4cf0428-ac89-d265-d2c2-0a0d932c99c9
Version Independent ID: 8200ffa3-22ec-39a8-6227-ed1cbe9043a4
Content: Web application firewall exclusion lists in Azure Application Gateway - Azure portal
Content Source: articles/web-application-firewall/ag/application-gateway-waf-configuration.md
Service: web-application-firewall
GitHub Login: @vhorne
Microsoft Alias: victorh

@lmalmeida
Thanks for your feedback! We will investigate and update as appropriate.

@lmalmeida, I shall assign this to the author @vhorne for further review.
@vhorne , Please update the document as required once our Product group shares their feedback

Updated
#please-close


REQ - Auto remove post ≥ 4

Now that we can track ID's I haven't seen anything that I'd consider a false positive. So I'm of the opinion that it could be time to progress the bot to auto removal of posts.
What I'd like to see :

Only auto remove the ≥4th post within 24hours. (my logic is that unless it's a spammer,  posters with 3 or less would have been reviewed manually already)
Create an automatic removal reason, containing the ID's of the previous posts + the reason we use from toolbox.
Specifically mention that this was an automatic removal in the "message the moderators" section.

The auto removal comment would look like this  :
Hello, as this is your nth post today^1, we have unfortunately had to remove it. Please note the following from our [subreddit rules](https://www.reddit.com/r/buildapc/wiki/rules):

>No excessive posting (more than one submission in 24 hours).
>To prevent spam and allow everyone to receive they help they want, only one post per 24 hours is permitted.

In the future, if you are unhappy with the attention your post got, or are looking for advice on a range of topics, you can :

* Comment in the daily [Simple Questions Thread](https://reddit.com/r/buildapc/hot/)
* Wait 24 hours & make a post again
* Visit our [Discord server](https://discordapp.com/invite/buildapc).

^1 Today's previous posts : 'id1', 'id2, 'id3', 'id4'

---

[^This is an automated removal, if  you think it was in error, (click here to message the moderators)](https://www.reddit.com/message/compose?to=%2Fr%2Fbuildapc)

Quick thought, if we can't track from 24hours per post, then I think making the bot reset at midnight UTC each day would be an acceptable workaround.

This will need some more refinement, but a basic enhancement to the existing removal should be possible.

Can already be set in config.py
Should be possible with SubredditModeration.removal_reasons. Toolbox integration blocked by #8.
Not sure what this is referring to.

Quick thought, if we can't track from 24hours per post, then I think making the bot reset at midnight UTC each day would be an acceptable workaround.

I'm not sure how this is better than counting the period from the first post.


SOX returns a lot of non-human genes

As reported at https://github.com/NCATSTranslator/Feedback/issues/547 and replicated with https://name-lookup.ci.transltr.io/lookup?string=SOX&offset=0&limit=100&biolink_type=Gene
Since UI filters out all non-model-organism genes, that means that a search for SOX returns nothing, but trying SOX1 starts returning results.
Now that we're approaching the end of the code freeze, it's time to think of a more permanent solution for this problem. I can't really think of one apart from the obvious one -- NameRes should include taxon information, and provide an option to filter to a particular set of model organisms -- so that's the one I'm going to start working on soon unless anybody objects.

We can now filter by taxon, which should make it easier to find the right SOX. We might want to implement taxon boosting at some point (where we prefer e.g. human and model organism genes, but without filtering out all the other results), but I've opened a separate ticket for that (#164). So I'll close this one.


Remove Detectron dependency

Contribution to CityScapes -> COCO converter, following up on #447 .
I have looked into the boxes.py to swap these lines:
import detectron.utils.cython_bbox as cython_bbox
import detectron.utils.cython_nms as cython_nms

from maskrcnn_benchmark.structures.boxlist_ops import boxlist_iou
from maskrcnn_benchmark.structures.boxlist_ops import boxlist_nms

However some functions are missing from the boxlist_ops like the soft_nms .
So I just tried to modify the maskrcnn-benchmark/tools/cityscapes/convert_cityscapes_to_coco.py script.
Here we have polys_to_boxes function from segms.py and I could not find its analogous in the maskrcnn_benchmark lib. It seems to me that the original function in segms.py is using pure lists, while for the BoxList.convert I had to create a new entity for each object.
Seeing that the whole box is finally converted back to native python list seemed to have huge overhead, so I just wrote two auxiliary functions reusing the boxList's convert method( https://github.com/facebookresearch/maskrcnn-benchmark/blob/master/maskrcnn_benchmark/structures/bounding_box.py#L67L70 )
and Detectron's polys_to_boxes ( https://github.com/facebookresearch/Detectron/blob/b5dcc0fe1d091cb70f9243939258215dd63e3dfa/detectron/utils/segms.py#L135L140 ) to be applicable to a single instance:
def poly_to_box(poly):
    """Convert a polygon into a tight bounding box."""
    x0 = min(min(p[::2]) for p in poly)
    x1 = max(max(p[::2]) for p in poly)
    y0 = min(min(p[1::2]) for p in poly)
    y1 = max(max(p[1::2]) for p in poly)
    box_from_poly = [x0, y0, x1, y1]

    return box_from_poly

def xyxy_to_xywh(xyxy_box):
    xmin, ymin, xmax, ymax = xyxy_box
    TO_REMOVE = 1
    xywh_box = (xmin, ymin, xmax - xmin + TO_REMOVE, ymax - ymin + TO_REMOVE)
    return xywh_box

The upside of this solution that it uses native python lists so there is less overhead (if that counts here).
I haved tested it in a fresh conda environment using only the maskrcnn_benchmark install and it has been producing the same output as the previous.

Thanks for the quick PR!
Can you also remove the mention of detectron in the README, now that it's not a dependency anymore?

Sure, forgot to do in this PR, but filed another...


How can i add x5chain in unprotected headers?

How to add x5chain to unprotected headers?
const headers = {
    p: { alg: 'ES256' },
    u: { kid: '11',
    crit: ["DER format of X509 cert"]
}
};

Adding x5chain doesn't work.
const headers = {
    p: { alg: 'ES256' },
    u: { kid: '11',
    x5chain: ["DER format of X509 cert"]
}
};

Also have this question. Is this library still maintained?

This worked for me.
    const cert = '30820260....Der encoded cert';
    const certBuffer = Buffer.from(cert, 'hex');

    const headers = {
        p: { alg: 'ES256' },
        u: { x5chain: certBuffer }
      };

      you can add in unprotected or protected headers.

    Not sure about the library, but everything works.

You are correct, i have forked this repo and made changes as needed.
https://github.com/oneproof-inc/cose-js/tree/master

Very nice! But fyi, think you need to update the header types too

To be hones I have not put in any time working on this recently, and that is likely to stay that way for at least a few more months.
I would be happy to merge a pull request if you have working code @madhugoundla-oneproof

@erdtman i do have working code, how can i create pull request?

Fork this repo and update the code accordingly, and point me to the repo and I can do the work of pulling in the code and publish  new version

@erdtman done https://github.com/madhugoundla-oneproof/cose-js

merged and released


Add the option for container user in README

I discovered the minergate-cli (cryptocurrency miner) running in one of my tmpnb containers (based on jupyter/docker-stacks datascience-notebook), fully eating all the 16 cores on server. With the recipe in "Quick start" session of README.md it is possible to install and run arbitrary software as root in the container. It is very dangerous, especially if running containers several days...
This can be cured by adding the option --container-user=jovyan to orchestrate.py in the sample command in section "Quick start" as suggested in issue #266.  That is the purpose of this PR.

Thank you!


Fix #1673: Make genAnonFunction() compatible with Scala 2.11.7.

Instead of relying on a known ordering of format parameters and captures, we identify which arguments are captures using the same FreeVarTraverser used by scalac's delambdafy phase.
We still have a hacky way to deal with This() in the receiver.

This currently blocks Scala's community build, so it should be given high priority.
Review by @gzm0 please.
/cc @retronym

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/1713/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2221/
Test PASSed.

Commit message has a typo: "format parameters" -> "formal parameters"

LGTM otherwise.

OK thanks :)

Thanks for the speedy fix!

Maybe a simpler way to differentiate captures from lambda params in:
((x: Object) => HelloWorld.this.$anonfun$1(n, h, x)).$asInstanceOf[Function1]()

is just to look at the params of the Function and compare with the args of the application. Then you don't need to repeat the free var traversal.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/1716/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2224/
Test PASSed.

@retronym Not sure that's simpler in the sense that FreeVarTraverser already exists for us to take advantage of. Also it's probably more robust against possible future changes.


Is it possible to provision more than one EFS to an EKS cluster?

Hi,
I need to allocate persistent volumes to pods in our EKS cluster, using EFS as the underlying storage. Each namespace needs to have access to one (and only one) EFS volume.
I tried to implement the intended design by running EFS provisioners for two users, user-a and user-b. user-a has an EFS with an id of fs-1234. user-b has an EFS with an id of fs-5678.
The efs-provisioner running in namespace user-a is started passing the EFS file system id for user a - fs-1234.
The efs-provisioner running in namespace user-b is started passing the EFS file system id for user b - fs-5678.
However - when user-a deploys a pod that makes a persistent volume claim, the claim is processed by the provisioner running in user-b's namespace and the persistent volume is created and stored using user-b's EFS volume (fs-5678) - which is a big problem.
I can't think of a way to direct the claim to the appropriate provisioner.
Is my desired configuration possible - or am I restricted to using only one EFS volume for my cluster?
Many thanks for any help or guidance,
Nick

I realised I can do this by defining a storage class for each namespace and linking the storage class to a specific provisioner. Closing this.


how to test it on my data

I want to test your model on my data, I have 5k sentences consisting of some misspelled words. How can I use your model for the same. I don't want to use the segment of code in which you have injected artificial noise to the data. I just want to test it on my data.
Please help me regarding this.
Thanks in advance.

You will need to modify https://github.com/vuptran/deep-spell-checkr/blob/master/evaluate.py on your own test words or sentences.

I don't want to use the code to inject artificial noise in the sentences. What should i modify in evaluate.py to remove that part?

Don't add the transform function to your code https://github.com/vuptran/deep-spell-checkr/blob/master/evaluate.py#L32, but I suspect you will need to modify the rest of the script for it to properly work.

There is a function named decode_sequences in  https://github.com/vuptran/deep-spell-checkr/blob/master/utils.py#L181 which takes target_tokens as its input. I only have a mis-spelled test sentence, i don't have target sentence so what should I pass in this function in place of target_tokens?

There is a function named decode_sequences in https://github.com/vuptran/deep-spell-checkr/blob/master/utils.py#L181 which takes target_tokens as its input. I only have a mis-spelled test sentence, i don't have target sentence so what should I pass in this function in place of target_tokens?

Can you please help me regarding this?

There is a function named decode_sequences in https://github.com/vuptran/deep-spell-checkr/blob/master/utils.py#L181 which takes target_tokens as its input. I only have a mis-spelled test sentence, i don't have target sentence so what should I pass in this function in place of target_tokens?

Can you please help me regarding this?

Were you able to fix that? I am having the same issue


Trusted Services - Managed Identities

It seems that there is a decent amount of confusion surrounded Trusted Services and how they work inside and outside of a subscription. Specifically, this would fall under the managed identity section which does not explicitly define this. Now we know that managed identities work across subscriptions in the same tenant but either putting this as a note, or even just a link for managed identity documentation may be useful here. Otherwise, I can see it being a little confusing if the person does not fully understand managed identities.
It may also be nice to put something under the Grant access to trusted Azure services main paragraph about there being two types of trusted access with one being the resources registered in your subscription and the other being the based on a managed identity. Maybe even have these as bullets with links to the anchored sections below.

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

ID: 2632af75-7664-b79b-ac5b-c7c17e6a609a
Version Independent ID: 6ecf71b6-77c4-3ab6-8ec9-353ea407d70f
Content: Configure Azure Storage firewalls and virtual networks
Content Source: articles/storage/common/storage-network-security.md
Service: azure-storage
Sub-service: storage-common-concepts
GitHub Login: @normesta
Microsoft Alias: normesta

@justingross-msft
Thanks for your feedback! We will investigate and update as appropriate.

@justingross-msft
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly.

Thanks for your contribution to our documentation
We are making overall enhancements to our content. As part of that effort, we are creating a content request in our backlog to address this gap and are closing this GitHub issue. The updated content will be published shortly.

Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


[add-resource] New Grav Skeleton

Bonjour,
I would like to add a new Skeleton to the Grav Repository.
Here are the project details:
https://github.com/CaribThemes/grav-skeleton-saba
Thank you to let me know if I did something wrong.
Thanks very much,
MATsxm

done!


Suggested Refinement

If your target overrides the one that has an empty definition in an imported targets list, as does this one, the override must appear last, or the predefined target overwrites it.

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

ID: 160a060d-7dc1-5826-8beb-f47097d0928f
Version Independent ID: cc8a11cf-df37-97e9-bd0a-8c8ddd5037c7
Content: Copy Task - Visual Studio
Content Source: docs/msbuild/copy-task.md
Product: visual-studio-windows
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

@txwizard. So, it looks like the proposal is to add the text to the example section, after the first sample code? Can you clarify the suggestion below:
"If your target overrides another target that has an empty definition in an imported targets list, as in the preceding example, the override must appear last, or the predefined target overwrites it."
I don't see an imported targets list, so that confuses me a bit. @rainersigwald for comment

In this case, there's no override of targets because these minimal example projects don't have any imported targets. But we should indeed mention the last-one-wins nature of targets in more places; the only one I found was in How to: Extend the Visual Studio build process, but it would be relevant in the Targets overview and the Target element.

OK, thanks, I'll plan to update.


QuantinuumJob response is sometimes JobStatus

Summary
(Closes #27)
Over at https://github.com/SRI-International/QC-App-Oriented-Benchmarks, we're trying to use this provider to benchmark Quantinuum devices. However, adding the provider to that repository, it always raises an exception due to an unhandled case in the method status(), where one or more items in self._experiment_results is a JobStatus instance.
Following your logic in the same region of code, we extract the maximum information we can for the experiment_result, then we add the header and append to the results list otherwise exactly according to how it was already done.
This fixes our issue in the benchmarks repository, allowing us to get the results we expect.
Details and comments
For coverage: I can see that the original code leads to an exception and stack trace in https://github.com/SRI-International/QC-App-Oriented-Benchmarks, while the code is this branch works. I'm not sure how to encapsulate this in a unit test, but, apparently, the original code coverage didn't cover this logical case, of a JobStatus response.

Just want to mention that this PR is a continuation of the recent fix from https://github.com/qiskit-community/qiskit-quantinuum-provider/pull/28. I've tested this on my end and would find this being merged in master a very valuable contribution!
fyi @1ucian0 / @mtreinish

Just following up on this PR. It looks like @WrathfulSpatula made the requested change asked by @mtreinish .
Are there any other outstanding issues you think would be worth addressing, or is this okay to be merged into master?
Thanks again!

@1ucian0 @chris-theroux @mtreinish Any chance this can be merged into master?

I don't have permissions to merge. Pinging @mtreinish


bugfix(axum): downgrade axum from 0.5.14 to 0.5.13

https://crates.io/crates/axum/versions
https://github.com/tokio-rs/axum/issues/1202#issue-1319668255

Well need to update the lock file in order to actually downgrade, assuming the lock file already contains the yanked version of axum.

Yes thank you so much for the contribution @rsilvestre !!


Error while creating a new role

Hello,
When I try to add a new role, nothing is happening. I checked the console and get this error :
[0]/module.exports.methods.save()
role-index.js:87```

Is it a known problem or is it just me ? I tried with the version 0.10.1 and from the source, same problem.

Thanks a lot !
Kevin

Thanks for reporting!


Hue 3.11.0 doesn't seem to support newly added AWS regions for example us-east-2/eu-west-2/ca-central-1

Hue 3.11.0 doesn't seem to support newly added AWS regions for example us-east-2/eu-west-2/ca-central-1
_"""
Potential misconfiguration detected. Fix and restart Hue.
aws.aws_accounts.default.region 	Unknown region us-east-2
aws.aws_accounts.default.region 	Unknown region eu-west-2
aws.aws_accounts.default.region 	Unknown region ca-central-1
"""_
As per https://github.com/cloudera/hue/blob/master/desktop/libs/aws/src/aws/s3/s3fs.py, I dont see those regions being added.
if get_default_region() in (Location.EU, Location.EUCentral1, Location.USWest, Location.USWest2, Location.SAEast,
Location.APNortheast, Location.APSoutheast, Location.APSoutheast2, Location.CNNorth1):
Is there a plan to add these new regions as well?

Thanks for making us aware of it, created https://issues.cloudera.org/browse/HUE-5851


Add TIOC*BRK constants for Android

Missed these in #1587.

r? @JohnTitor
(rust_highfive has picked a reviewer for you, use r? to override)

I think the previous failure was not related to this PR so I'm force-repushing to trigger a new CI run.

Disabled them temporarily, could you rebase?


feat(DDI-919): Adding new font-face roboto-mono

Added new font-face roboto-mono

:tada: This PR is included in version 1.0.0-alpha.19 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.0.0-alpha.101 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.141 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0-alpha.11 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat(CategoryTheory/Category/RelCat): Make rel_iso_iff universe polymorphic.

Make rel_iso_iff universe polymorphic by changing C := Type to C := Type u.

As the theorem is currently written, C := Type makes RelCat : Type 1. My proposal is to make C := Type u so that RelCat : Type (u + 1). In this sense, the theorem becomes universe polymorphic. I also updated the documentation accordingly.

bors merge

bors r-

Sorry. I got confused with your branch name whether the PR was from a fork (which bit me yesterday).
bors merge


Rename DecodeFromFullSignature and EncodeToFullSignature

Both function names are mouthful, Go libraries often just use Encode to encode a concrete type to []byte, and Decode to unmarshal from a []byte.
/cc @acetechnologist

Fixed via https://github.com/census-instrumentation/opencensus-go/commit/e44dcfdecf8068450d0b18eefaf32d59ed98e140.


Question - text_request with session id?

Hi,
I have a question is that how can I make a text request with a session id to distinguish users? I have  created a singleton client instance like:
require 'singleton'
class someClass
  include Singleton
  def initialize
    @client = ApiAiRuby::Client.new(
    client_access_token: 'token'
    )
  end
  def client
    return @client
  end
end

Then I make a request with the session id of a user:
response = Someclass.instance.client.text_request 'request', sessionId: session[:user_id]

To test it, I've made an intent which consists of 3 levels of FAQ. But according to the responses, the Bot did not distinguish different users and conversations (for the same intent) from different users interfered with each other. Did I send the request in a wrong way? Or do I have to create a client instance with the session id per user? Thanks in advance.

@21stChannel looks like from https://github.com/api-ai/apiai-ruby-client/blob/b02a8f7d7a41eff27304674e27e3ee2af92bb9cd/lib/api-ai-ruby/request/request_query.rb that sessionId is not extracted from options, it comes from client.api_session_id. So you'd have to set it on the client before each request, or open a PR -- reading it from options looks like it would be easy and not break backwards compat.

@lukeasrodgers Thanks for the link :) I will try to change my design base on that.


add ability to manually trigger completion

Having something like cm#manual_complete would force refresh completions and show the autocomplete. Then anyone can add a mapping such as <c-space> to trigger it.

Disable auto popup and use <c-g> to trigger the popup:
g:cm_auto_popup = 0
imap <c-g> <Plug>(cm_force_refresh)

If you interested I'm created function to use tab to select the popup menu or trigger the popup:
function! SmartTab()
	if pumvisible()
		return "\<C-n>"
	endif
	let l:ctx = cm#context()
	let l:typed = l:ctx['typed']
	let l:kw = matchstr(l:typed,'\v\S+$')
	if len(l:kw)
		return cm#_force_refresh()
	endif
	return "\<Tab>"
endfunction

let g:cm_auto_popup = 0

imap <silent> <Tab> <c-r>=SmartTab()<cr>


Application with multiple detection rules fails with "Given application detection rule duplicates rule"

Hello
During the upload of downloaded data with monaco following error is reported
2021-03-12 11:13:35 ERROR Deployment to perform failed with error Failed to upsert DT object Web admin tools (HTTP 400)!
Response was: {"error":{"code":400,"message":"Constraints violated.","constraintViolations":[{"path":"","message":"Given application detection rule duplicates rule 57edee13-13ce-4202-bfbe-8b68cd9674f7","parameterLocation":"PAYLOAD_BODY","location":null}]}}, responsible config: perform/app-detection-rule/Webadmintools.json
Create application with multiple detection rules.
Execute:
monaco download -e environment.yaml
-- data stored to folder perform
Execute:
monaco -e environment.yaml -v perform/

@diegorqc maybe you can help here?

I will need more details about the yaml file and json file downloaded, but at first this looks similar to #179 specifically the comment from Kristof. Also I noticed that the  Dynatrace API for app detection rules has 3 possible values when getting the configs. Only 2 of those values include a name, so this might be something to consider, since we are using the name to identify the config

See also: https://github.com/dynatrace-oss/dynatrace-monitoring-as-code/discussions/293#discussioncomment-619795


support multiple tf versions (and test against each through CI)

Closes #2.

Codecov Report

Merging #3 (7c6b760) into main (565ca65) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #3   +/-   ##
=======================================
  Coverage   95.23%   95.23%
=======================================
  Files           3        3
  Lines          21       21
=======================================
  Hits           20       20
  Misses          1        1

Flag
Coverage Δ

unittests
95.23% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out 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 565ca65...7c6b760. Read the comment docs.


Opprette spdx:Checksum

#52
"A value that allows the contents of a file to be authenticated. This class allows the results of a variety of checksum and cryptographic message digest algorithms to be represented."

Gjelder versjon 1.1


Revert "Issue#179"

Reverts sairish2001/MakesMathEasy#238

Your PR is creating conflicts, kindly update your code and make required changes


Use of words_splitter

Hi, I notices that the configuration provides several choices for words_splitter which the default choice is 'whitespace'. I want to finetune the model on Japanese data, so I'll need to switch to another words_splitter. The thing is that I didnt see how this words_splitter get called when preprocess the input data. Could you please explain this and also provide some suggestions if I want to finetune on other langauges?

I've figured this out. Words_splitter is only called during inference time, for training time the model only takes pre-tokenized text.