fitBounds() based fabric js overlay coordinates & size

I need to zoom in the OSD viewport to fit a fabricjs overlay coordinates & sizes. I have tried using fitBounds() by using OpenSeadragon.Rect() as the parameter with x = fabricobject.left, y= fabricobject.top, width= fabricobject.width, height= fabricobject.height. But it is give me unexpected result, even the OSD image go to the top of viewport and disappear.
When i test a call to getBounds() to get the value of bounds, seem the definition of bounds coordinate is too far compared with fabricobject coordinate and size.
I have tried to get value of getBounds() after zooming the viewport approximately match to drawn fabric rect object. The fabric object made with coordinate : left = 957, top = 2582, width = 8890, height = 2002. But the value of getBounds() give me: x = 0.0898168043184071, y = 0.1856698413064116, width = 0.8208990743349929, height = 0.25840893262375325. Seem something strange and unexpected to me.
Please help me to solve my problem. Thanks in advance.

Looks like your fabric and your OpenSeadragon viewport aren't using the same coordinate system. You might want to brush up on how OpenSeadragon handles coordinates:
http://openseadragon.github.io/examples/viewport-coordinates/
When you create your viewer and load your image, you can specify a size for it... by default it's one unit wide, but you could make it 8,890 units wide instead to match your fabric object.
The other option is to leave things the way they are but convert between the fabric and OpenSeadragon coordinates.

@iangilman thanks a lot for more of OSD learning for me. Seem i have succeed with coordinate conversion as follow:
var x= parseInt(o.get('left')); var y= parseInt(o.get('top')); //Fabric object left and top coordinate
var width=parseInt(o.get('width')); var height= parseInt(o.get('height')); // Fabric object width & height

var bound_coordinate_start = self.viewer.viewport.imageToViewportCoordinates( x, y ); // convert starting point of fabric object
var bound_coordinate_end =  self.viewer.viewport.imageToViewportCoordinates( x + width, y + height );// convert end point of fabric object

var bound_rect = new OpenSeadragon.Rect( bound_coordinate_start.x, bound_coordinate_start.y,  bound_coordinate_end.x, bound_coordinate_end.y);//Rect based on converted coordinate

I am using the bound_rect as viewport.fitBounds() parameter.
However i am curious what if i want to set my viewport width and height to match the image width & height like your first option mentioned? I still not have idea how to make it based on the documentation. There is no function of viewport related to 'setWidth()' or something like that.
Folowing is the script for image opening:
SOSD.viewer.open({
	tileSource:{
		width: data.width, height: data.height,//comes from ajax data
		tileOverlap: 2,
		tileSize: 250,
		getTileUrl: function( level, x, y ){
			return "/drawing/tiles/"+page_number+'/'+level+"_"+x+"_"+y;
		}
	}
});

@bayucandra Apologies for the delayed response!
To set the image's width in the viewport, do like so:
SOSD.viewer.open({
    width: data.width, // the height will be set automatically based on the image aspect ratio
    tileSource:{
        width: data.width, height: data.height,//comes from ajax data
        tileOverlap: 2,
        tileSize: 250,
        getTileUrl: function( level, x, y ){
            return "/drawing/tiles/"+page_number+'/'+level+"_"+x+"_"+y;
        }
    }
});

That outer width specifies the image's size in the viewport, whereas the inner one that you already had specifies how many pixels are in the image.

@iangilman  Wow, that is cool. New learning for me, just add 'width' property. Much easier than coordinate conversion. Thanks a lot for your help.


More details required on IoT Hub Sharding

Can you please add more content on Sharding, How it can be done with IoT Hub as part of one Solution only. limitation or considerations for implementing Sharding with IoT Hub?
This will be helping in terms of performance and Scaling understanding as a IoT Hub user.

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

ID: 45b76f3e-0318-070e-ff9f-0598ed6379b1
Version Independent ID: 52d8706b-30a2-93db-020c-1dc7098730f9
Content: Azure IoT Hub scaling
Content Source: articles/iot-hub/iot-hub-scaling.md
Service: iot-hub
GitHub Login: @wesmc7777
Microsoft Alias: wesmc

@yatish123 Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

#reassign:@JimacoMS3

@yatish123, today, each device belongs to exactly one IoT hub.
With that in mind, I'd like to understand what do you have in mind to achieve with "sharding"?

@rezasherafat i want to understand more about "Sharding" , how it works and what are the screnarios it would be helpful. as the documentaiton does not have more details.

Hi @yatish123  - thanks for pointing out this issue in our documentation. As @rezasherafat stated, we don't support sharding in IoT Hub. We've removed that section from the topic: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-scaling . As this is a documentation repo, I'm going to close this issue.
If you still have questions about constructing an IoT Hub solution, I would suggest trying:

Azure IoT Hub on MSDN Forums (This forum is monitored by Microsoft support engineers)

Azure IoT Hub on Stackoverflow

Again, thanks so much for pointing out this issue.


rocm rhel8 5.3.2 not possible to install

hello,
Try to install rocm-5.3.2 for rhel8 (rocky8 in my case) but look there is permission error on some file:
https://repo.radeon.com/rocm/rhel8/5.3.2/main/repodata/dbc2743caaab3e018c806bb7d5474028a85071c6dc866a45dae1021af9416e86-filelists.xml.gz
report => 403 Forbidden
(did'nt test all files... it may be the only "error")

it work now. thank-you!


Reference lines and reference areas

Description
This PR adds reference lines and areas to charts.
For now, these are separate components: ReferenceLine and ReferenceArea, which are used by inserting them into a slot within a chart. For example:
<LineChart
   data={sales_data}
   x=date
   y=sales
>
   <ReferenceLine yVal=120 label="Target"/>
</LineChart>

These can be applied by hardcoding values (e.g., if you want a horizontal line at y=50) or with a dataset (e.g., you have a table of events or time ranges you want to include in a chart to add context to the viz).
Reference Line
Props
Required:

x or y

Optional:

data
label
color
lineType
lineColor
labelColor
lineWidth
showValueInLabel
labelTextOutline
labelBackground

<LineChart
    data={daily_complaints}
    x=date
    y=number_of_complaints
    title="Complaint Calls to Austin 311"
>
    <ReferenceLine yVal=2500 label=Threshold/>
</LineChart>

Reference Area
Props
Required:

At least one of x1, x2, y1, y2

Optional:

data
label
color
opacity
labelColor
border
borderColor
borderType
borderWidth
labelPosition

<LineChart
    data={daily_complaints}
    x=date
    y=number_of_complaints
    title="Complaint Calls to Austin 311"
>
    <ReferenceArea data={annotate} xMin=start_date xMax=end_date label=label/>
</LineChart>

Use Cases
This opens up some pretty exciting use cases for adding relevant context to data viz.

To Do

Add lineType prop to reference line (dashed, solid, etc)
Formatted label numbers
How to treat label when no label is supplied (show value or nothing?)
Fix gridline z level - histogram issue
Fix tooltip hover issue by setting markLine and markArea to silent
Work in composable charts?
Open slots on all XY chart types
Naming - highlight area?
Switch yVal to y?
Switch yMin to y0 or y1?
Default label positions (swapXY, chart types, etc.)
Error handling
Styling for labels - add white outline to text? Inherit colour of area background for that outline?
Add docs

Deferred for future upgrades

Reference area should cover full bar width area rather than stopping at midpoint of bar. This is fixed in Echarts v5.4.2, so an upgrade of that dependency will be required. Unclear if this will require the mark series to be bar rather than line as it is now
Shorthand for using in normal chart props
Colours - offer presets or a default opacity level?

It would be nice to be able to use color=red in ReferenceArea and have it produce a faded red/pink background with a darker red label

Label word breaking/overflow behaviour

Issues to be solved

Label rotation for vertical reference lines (see echarts issue here: https://github.com/apache/echarts/issues/13153)
For reference areas, label z level should be different than area z level

Area should be behind gridlines, but label should be in front of them
Open echarts issues for this here:

https://github.com/apache/echarts/issues/18597
https://github.com/apache/echarts/issues/18608

Error Handling
Implemented using the ErrorChart component.
Covers these scenarios:

Checklist

[x] For UI or styling changes, I have added a screenshot or gif showing before & after
[x] I have added a changeset

The last outstanding issue that may need to be tackled before merging is the default styling of labels. The basic labels look fine, but when a label is overtop of lines/bars/etc it doesn't look right.
Options are adding a white outline on the text or adding a background colour to the label (either full opacity or with some transparency).
Given the number of permutations here, it might be worth merging with a small white text outline as a starting point, and spending time to solve this in a more general sense once we have a bit of user feedback.

Update: I've added a white text outline by default on reference line labels, but have also included a prop for labelBackground which if set to true, will include a white semi-transparent background behind the label

Thanks @archiewood.

What were you trying to achieve with reference line?

I recently added in labelPosition for reference line, so that might help some of the issues there

Agree on the prop names. Think I'll switch back to yMin and yMax for ref area
Preset colours are now included to override the CSS colour names. It includes:

red
green
yellow
blue
grey

I've set the default area label position to top left, but mostly because of the x-axis case (e.g., date range). I agree if it's y-based, it should probably be right centre
Good idea on hideValue
Agreed on shorthand within the component. I think better to tackle that in the next version - there might be a way to get reference area into that strategy as well
Line might need to be thicker - especially when there's a lot of data on a chart

Unrelated, but I'm also wondering if our bars are too spaced out on the bar chart - looks visually overwhelming. Might also just be the high contrast between the blue and the white background

I think I want more precisions on target line label than the axis. Should I be able to configure this?

What do you mean by precisions?

I was trying to achieve two lines where the labels didn't overlap
By more precision (typo), here I meant I wanted the format to show $3,800 not $4k.

Ahh that's a great point. Do you think a good solution to that might be a format override prop like valueFmt or similar?

Yes I think so.
Or accept the format function as I tried and failed to do

I've added value format control to the list of future improvements.
Just pushed some simplification to the props and label positions

@hughess as discussed I think we should probably leave the behaviour as is for numeric axes highlighting.
It's kind of a difficult problem as barcharts are sort of a discrete chart type, but are often used in a continuous setting (eg dates, numeric ranges).
Given the workarounds exist (workaround 1 in particular), I think until we are clear on what users need here, leaving as is makes sense

There are only 2 things blocking this PR from merging:

Format test failing, but this is only for markdown pages - @ItsMeBrianD wanted to double check that this is okay
Docs - since this includes docs changes, assume we should wait until we're close to release?

Removed formatting checks for markdown files in the example project +page.md files.


Constance in multiprocess environment

Hi everyone,
I wanted to know what will happen if we run constance in multiprocess environment.
Let's say there are two instances of same django application running behind a load balancer, connected to same backend. Will updating the value on one instance cause config_updated signal to be triggered on other instance too ?
Regards,
Ashish Bansal

Off the top of head, I would say no, signals are not meant to be sent/received across workers or threads. From the docs, it's used for signaling other apps of changes, facilitating decoupling.
Now in the context of django-constance, as long as your other threads/workers are getting constance settings from the same instance (redis/db/cache), you should be safe, but it really depend on the usage of your constance settings.

Linking #343 for an example of problem that may rise in tests.


Migrating webpack build to vite

The existing build for end to end tests should be migrated to Vite. End to end tests

Replace webpack and its loader with vite
Replace scripts using webpack with vite commands
Adapt the e2e runner.js to work with Vite instead of webpack
Make sure the runner builds the project and serves it when passed the --local option (for older browsers)

ok,i understand.ths


Add support for NixOS

When trying to invoke sourcekit-lsp on Nix, I get an error:
2024-05-03 14:47:53.510 sourcekit-lsp[25781:4ffff6c0] Could not determine host OS. Falling back to using '.so' as dynamic library extension
Is adding NixOS support a possibility / planned for the future?

Looks like we are not detecting NixOS as a Linux OS here: https://github.com/apple/swift-package-manager/blob/32442c6604bebdeac45e3433aa7690967bb1170c/Sources/PackageLoading/Platform.swift#L43-L53.
What does uname output on NixOS?

Here are the results:
uname
Linux

uname -a
Linux nixos <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 GNU/Linux

Synced to Apple’s issue tracker as rdar://127491941

Interesting, that definitely is what we are expecting uname to return. In practice, the log message probably shouldn’t cause any issues because we’re falling back to using .so, which is correct for Linux.
Which version of SourceKit-LSP are you using? Ie. which Swift toolchain do you have installed? If it’s some Swift 5 version, could you try if the issue still reproduces with a Swift 6 development snapshot from https://www.swift.org/download/#swift-60-development? I’ve made a lot of improvements to SourceKit-LSP during the Swift 6 development cycle and I vaguely remember seeing that log message before but can’t remember when or if I fixed it.

Ah, I remember now: I was seeing a similar issue at some point because for some reasons (I can’t remember the details) uname was not in PATH. But that must have been a few years ago and fixed now, even though I don’t remember the fix.
The problem here is that we only detect debian and fedora as Linux distributions here
https://github.com/apple/swift-package-manager/blob/32442c6604bebdeac45e3433aa7690967bb1170c/Sources/PackageLoading/Platform.swift#L57-L77
With that information, it’s not necessary for you to test the Swift 6 snapshot since it also won’t have support for NixOS. I’ll move the issue over to SwiftPM because that’s where the platform detection logic lives.


Update cli python template version and description

Is your feature request related to a problem? Please describe.

Next release of CT will include a brand new cli python template. Its versions etc. has to be updated on template subpage.
Describe the solution you would like

Don't forget to update the cli python template description and its version on templates subpage.

I still wish this was automated :)


Remove the v1alpha2 API

How to categorize this PR?

/kind cleanup
What this PR does / why we need it:
The PR removes the v1alpha2 API.
Which issue(s) this PR fixes:
Part of #3
Special notes for your reviewer:

[x] Depends on https://github.com/gardener/gardener-extension-registry-cache/pull/151. This PR can be included in a release after a release that includes https://github.com/gardener/gardener-extension-registry-cache/pull/151.

Release note:

The `registry.extensions.gardener.cloud/v1alpha2` API version is removed. Use `registry.extensions.gardener.cloud/v1alpha3` instead.

The `registry.extensions.gardener.cloud/v1alpha2` API version is removed. Before upgrading to this version, make sure that there are no usages of the `registry.extensions.gardener.cloud/v1alpha2` API version in the landscape.

/remove-lifecycle stale

/approve


Error when calling lsp_finder

Describe the bug
When calling lsp_finder, I get a key error
Error detected while processing CursorMoved Autocommands for "<buffer=10>":
Error executing lua callback: ...te/pack/packer/start/lspsaga.nvim/lua/lspsaga/finder.lua:672: invalid key: title
stack traceback:
        [C]: in function 'nvim_win_set_config'
        ...te/pack/packer/start/lspsaga.nvim/lua/lspsaga/finder.lua:672: in function 'open_preview'
        ...te/pack/packer/start/lspsaga.nvim/lua/lspsaga/finder.lua:410: in function <...te/pack/packer/start/lspsaga.nvim/lua/lspsaga/finder.lua:408>

The bug is introduced here. I get the same error for title_pos. It's weird that according to the neovim docs those keys should be valid.
Steps to reproduce
:Lspsaga lsp_finder
Expected behavior
lsp_finder should work without errors.
Neovim version (nvim -v)
0.8.3
lspsaga commit
9a7013874a9d5e0413039fc9ded613fcdbd59cbd
Terminal name/version
iTerm2  3.4.19

thanks for the fix @glepnir !

I'm getting a different error, when the preview file is not modifiable. You can lsp_finder over 'set' in vim.keymap.set if you would like to reproduce.

fixed.

I am on c5b1ad8 and I get a similar error when opening code actions on a module in Rust
#[cfg(test)]
mod tests { // <--- Cursor on the word tests

Executing the command `:Lspsaga code_action'
Leads to this error, whichs seems related to the lsp_finder error, so I did not open up a new issue
Error detected while processing CursorMoved Autocommands for "<buffer=119>":
Error executing lua callback: .../share/nvim/lazy/lspsaga.nvim/lua/lspsaga/codeaction.lua:295: attempt to index field 'textDocument' (a nil value)
stack traceback:
        .../share/nvim/lazy/lspsaga.nvim/lua/lspsaga/codeaction.lua:295: in function 'get_action_diff'
        .../share/nvim/lazy/lspsaga.nvim/lua/lspsaga/codeaction.lua:335: in function 'action_preview'
        .../share/nvim/lazy/lspsaga.nvim/lua/lspsaga/codeaction.lua:180: in function 'set_cursor'
        .../share/nvim/lazy/lspsaga.nvim/lua/lspsaga/codeaction.lua:73: in function <.../share/nvim/lazy/lspsaga.nvim/lua/lspsaga/codeaction.lua:72>

why you think is same ? code action not finder

fixed.

because it was also related to CursorMoved Autocommands but you are right. Thanks for fixing

I don't get your point. you opened codeaction window.

fixed.

Wow! That was fast. Unfortunately, the issue is still there. It seems you fixed it when it initially opens but if you scroll down to a 'reference', when you scroll back up to 'definition' the error will still appear. (I can provide a screenshot but it is verbatim the same error just under different circumstances.)
Thank you for the quick fixes!

fixed.

Wow! That was fast. Unfortunately, the issue is still there. It seems you fixed it when it initially opens but if you scroll down to a 'reference', when you scroll back up to 'definition' the error will still appear.
Thank you for the quick fixes!

Wow! Thank you for the quick fixes. Unfortunately, it seems there is still an issue. To reproduce, lspsaga_finder over 'set' in vim.keymap.set and scroll down to 'references' when you scroll back to 'definition' you will get this error. Thanks again for your hard work.

Just updated with your recent fix and it all works as expected. Much appreciated!


Profile v2

I guess it's around clock we would rework profiles a bit.
In anticipation of customization and personalization we would still lovely keep something for unified Interface about it
Anticipated changes would carry

way how and what profile pictures shows - we are thinking making it part of KODA protocol to show you avatars
banners - yes, we've got zestymarket who could be amazing partner on this and hence we have few brilliant ideas how your profiles could shine
slugs - yes. We would like bring fresh new urls for your profiles to be easily shared among friends and your audience
choose card which picture to render on social medias
feed - pick what to choose show to your beloved audience, like 📌 artwork, brief bio with markdown support, I bet up to 1k chars should be enough for everyone for now?
thinking adding p5.js as hence Github Profiles offers customization, why not we could offer the same?
GitHub punch card like to show how often artist is minting on time scale
redesigned activity feed of artists per se

I can expand more on this on upcoming Meta Hours 4 check 2007

Suggestion from https://autocode.com/achievements/

link #6663


Question: How to programmatically delete or supress or hide a line?

I'm writing the ability to have AvalonEdit render text that is colored with ANSI control sequences.  I believe I have all of that mostly ironed out.  Now, I need to programmatically delete or hide a line based off a regular expression in an efficient way (basically, gag the line from rendering).  Since the text added to the editor could be sent to me in chunks I don't always have the full line at once which is why doing the gag when the line is rendered is appealing (e.g. I might get the first part of a line, and then get the second mark 200ms later, they're added as they are received).
I'm using a DocumentColorizingTransformer to color the text.  It then hides the control sequences by setting their font size to very small (which works surprisingly well).  I can hide the enter line based on a regex that matches with the same technique but it leaves an entire blank line when I want to suppress that line (e.g. take up no vertical space).  Is there anyway to do this or what route should I take?

For posterity for anyone who finds this via searching, here is a VisualLineElementGenerator that can be used to hide ANSI sequences.  There are more codes than I listed in here, all you'd need to do is add to the end markers char[] in order to support those.  I kept mine to the bare minimum set I care about.  I opt'd to not use RegEx's.
Usage
// Assumes "editor" is an AvalonEdit control.
editor.TextArea.TextView.Options.ShowBoxForControlCharacters = false;
editor.TextArea.TextView.ElementGenerators.Add(new HideAnsiElementGenerator());

Code
    /// <summary>
    /// Gags ANSI color codes and control sequences.
    /// </summary>
    /// <remarks>
    /// Written by: Blake Pell<EMAIL_ADDRESS>    /// </remarks>
    public class HideAnsiElementGenerator : VisualLineElementGenerator
    {
        public bool ParseExtended { get; set; } = true;

        /// <summary>
        /// A basic list of ANSI control sequences.
        /// </summary>
        private static readonly char[] _endMarkers = { 'm', 'A', 'B', 'C', 'D', 'J' };

        /// <summary>
        /// A more extensive list of the ANSI control sequences.
        /// </summary>
        private static readonly char[] _endMarkersExtended = { 'm', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'S', 'T'};

        /// <summary>
        /// A match of a control sequence containing only the match's offset and the length
        /// to the end of the sequence.
        /// </summary>
        private struct Match
        {
            public int MatchOffset;
            public int Length;
        }

        /// <summary>
        /// Finds the position and length of the next ANSI sequence starting at the specified offset.
        /// </summary>
        /// <param name="startOffset"></param>
        private Match FindPosition(int startOffset)
        {
            int endOffset = CurrentContext.VisualLine.LastDocumentLine.EndOffset;
            var relevantText = CurrentContext.GetText(startOffset, endOffset - startOffset);
            int index = relevantText.Text.IndexOf('\x1B', relevantText.Offset, relevantText.Count);

            var m = new Match
            {
                MatchOffset = index > -1 ? index - relevantText.Offset + startOffset : -1
            };

            if (index == -1)
            {
                return m;
            }

            int endIndex = relevantText.Text.IndexOfAny(ParseExtended ? _endMarkersExtended : _endMarkers, index);

            if (endIndex > -1)
            {
                endIndex++;
                m.Length = endIndex - index;
            }
            else
            {
                // There was no end to this sequence which might be a partial sequence.
                m.MatchOffset = -1;
            }

            return m;
        }

        /// <inheritdoc />
        public override int GetFirstInterestedOffset(int startOffset)
        {
            // This will return either the offset or a -1 if it's not found as per the AvalonEdit docs.
            return FindPosition(startOffset).MatchOffset;
        }

        /// <inheritdoc/>
        public override VisualLineElement ConstructElement(int offset)
        {
            var m = FindPosition(offset);

            // The offset must have found a match and be equal to the offset specified
            // in order to have the HiddenTextElement created, otherwise we ignore it
            // and return a null from here.
            if (m.MatchOffset > -1 && m.MatchOffset == offset)
            {
                return new HiddenTextElement(m.Length);
            }

            return null;
        }
    }


Termdebug: allow disabling the window toolbar

Problem:    The termdebug plugin assumes mouse being enabled means the user wants the window toolbar, which may not be correct.
Solution:   Add an option to explicitly disable the window toolbar (closes #11442)

I'll include it, thanks.

Not to be pushy, but I don't think this change (or anything equivalent) made it into master.
Have you perhaps forgotten about it?

Will be in the next runtime files update.

Will be in the next runtime files update.

I see. Wasn't familiar with the workflow here, sorry for the inconvenience.


Support blob syntax or listing directories in -O options command

So, maybe I shouldn't but I use the -O flag to pass in some json that represents data in my app. I do this to separate data about events (like in person events) on my website, from all the various code that controls how to display the data about those events. Then I compile my pug files into static website assets, which is why there's no server where I can affect locals.
I'd suggest supporting listing a directory for the -O flag, so that it'll load multiple json files or javascript files and the variables they declare, into pug.
My higher level interest is to be able to make app data available in pug even when there's no server code, as in static site development. I just run two npm scripts to watch and build my site.

No thoughts on this?
For anyone else who arrives here, I ended up stringing together several files with jq using this command: jq -s '.[0] + .[1]' site-data.json public-keys.json >options.json and then running pug with that options.json object using the -O flag.


The useQuery composable not recognizing clients.

Environment
{
    "name": "nuxt-app",
    "private": true,
    "scripts": {
        "build": "nuxt build",
        "dev": "nuxt dev",
        "generate": "nuxt generate",
        "preview": "nuxt preview",
        "postinstall": "nuxt prepare"
    },
    "devDependencies": {
        "@nuxt/eslint-config": "^0.1.1",
        "@nuxtjs/apollo": "^5.0.0-alpha.6",
        "@nuxtjs/eslint-module": "^4.0.2",
        "@nuxtjs/i18n": "^8.0.0-beta.12",
        "@nuxtjs/tailwindcss": "^6.7.0",
        "@types/node": "^18",
        "eslint": "^8.41.0",
        "nuxt": "^3.5.0",
        "sass": "^1.62.1"
    },
    "dependencies": {
        "@vue/apollo-composable": "^4.0.0-beta.11",
        "@vueuse/core": "^10.2.0",
        "lodash.debounce": "^4.0.8",
        "nuxt-icons": "^3.2.1",
        "nuxt-swiper": "^1.1.0"
    }
}

Describe the bug
I'm trying to perform a simple API call with useQuery composable. First of all, to use this composable I need to install @vue/apollo-composable with --force in order to be able to use useQuery. There is no mention of this in the documentation. The main problem is as follows. These are my configs:
nuxt.config.ts:
export default defineNuxtConfig({
    modules: [
        '@nuxtjs/eslint-module',
        '@nuxtjs/tailwindcss',
        '@nuxtjs/i18n',
        'nuxt-icons',
        'nuxt-swiper',
        '@nuxtjs/apollo'
    ],

    apollo: {
        clients: {
            default: './apollo/clients/default.ts',
            rick: './apollo/clients/rick.ts'
        }
    }
})

apollo/clients/default.ts:
import { defineApolloClient } from '@nuxtjs/apollo'
export default defineApolloClient({
    httpEndpoint: 'http://headless.local/graphql'
})

apollo/clients/rick.ts:
import { defineApolloClient } from '@nuxtjs/apollo'
export default defineApolloClient({
    httpEndpoint: 'https://rickandmortyapi.com/graphql'
})

And this is the setup script of my test.vue page:
<script setup lang="ts">
const query = gql`
    query character {
        results {
            image
            id
        }
    }
`
const variables = {}
const options = { clientId: 'rick' }
const data = useQuery(query, variables, options)
console.log(data)
</script>

Instead of getting the standard response object in browser console, I'm getting this error:
Uncaught (in promise) Error: No apolloClients injection found, tried to resolve 'rick' clientId
Expected behaviour
I'm not getting the expected response from useQuery request as described in "Describe the bug" section. I provided the used version of all packages inside the "Environment" section.
Reproduction
No response
Additional context
No response
Logs
No response

For what it's worth, I'm fighting with the same situation. I'm totally new to nuxt, so some user error is likely on my behalf.

Same problem here. useQuery composable does not work. It says @vue/apollo-composable is missing.
Documentation does not say we need to install @vue/apollo-composable and even trying it had a dependency conflict and needs a --force param.
comparing this module to vue-apollo, there are many features those are missing here.
I've tried to use vue-apollo without this module but I haven't been able to properly add it to nuxt: 3.7.

Any news?

I remember I already encountered this problem and I'm surprised it's still a thing. This issue has been present for several months now.

Also experiencing this!

For what it's worth, I think I found a work-around. When you install @vue/apollo-composable to fix the dependency issue, use the specific version defined in this project's dependencies, which at the time of writing is<EMAIL_ADDRESS>npm i -D<EMAIL_ADDRESS>pnpm i -D<EMAIL_ADDRESS>yarn add -D<EMAIL_ADDRESS>
With this version, things appear to be working again!

hitting the same issue it's unsable at the moment ...

For what it's worth, I think I found a work-around. When you install @vue/apollo-composable to fix the dependency issue, use the specific version defined in this project's dependencies, which at the time of writing is<EMAIL_ADDRESS>npm i -D<EMAIL_ADDRESS>pnpm i -D<EMAIL_ADDRESS>yarn add -D<EMAIL_ADDRESS>
With this version, things appear to be working again!

This fixed the issue for me

More possibly useful info, if you need the latest version of @vue/apollo-composable like I did to gain access to awaitable load from useLazyQuery for suspense support, you can work around the provide issue by creating this plugin in your plugins directory:
// plugins/apollo.client.ts
import { provideApolloClients } from '@vue/apollo-composable';

export default defineNuxtPlugin((nuxtApp) => {
  // @ts-expect-error nuxt-apollo module needs updated types
  provideApolloClients(nuxtApp.$apollo.clients);
});

This issue is fixed and a workaround is no longer required in my project on the latest version!

@Diizzayy Looks like this issue is appearing again. 😢
I did a little more investigating and I think I know why. The DefaultApolloClient and ApolloClients keys meant to be used for provide/inject exported by @vue/apollo-composable are Symbols, and as such when the @vue/apollo-composable version being used by this module (4.0.0-beta.11 at time of writing) and the version used in a project (4.0.0-beta.12 is the latest release), the keys being used do not match anymore because technically the symbols being exported/imported are different values when coming from different versions.
I feel a possible long-term solution to this problem would be to make @vue/apollo-composable a peerDependency in this project so that the internal version used matches the version used in the project. I believe you can also mark peer deps as optional so that people can still install the module without explicitly installing the peer dep for simplicity sake.
This also means there is yet another workaround for people like me... if you set the overrides field in your package.json to be the latest version it should start working again (as long as this module is still compatible of course!)
"overrides": {
  "@vue/apollo-composable": "^4.0.0-beta.12"
}

Thanks a lot @danielwaltz it has resolved issue. Now I am able to use useMutation with clientId.


Microphone access not granted on several services

Describe the bug

The microphone is unavailable on Discord and Jitsi service.
To Reproduce

On Discord:
Try to enable your microphone

Nothing append
Go on settings
A message says "Allow access to your microphone" (Sorry for the capture in French)

On Jitsi
Try to start a meeting.
A message says "Failed to access your microphone"

go on the settings

Expected behavior

A good access to the microphone or the prompt notification which allowed to granted the access.
Screenshots

Desktop:

OS: Linux
Ferdi 5.4.4 and 5.5.0-gm2

Server Used: [e.g. https://api.getferdi.com]

Debug information: https://debug.getferdi.com/...
Additional context

@tristanplouz Thank you for reporting this! 🙏

You're welcome,
After more test on more services, the error occur on whatsapp (with a message "Microphone not found") and on a custom website to test the microphone (https://mictests.com/) some errors pops on the console.

Thanks for your great work on this usefull application!

Hello,
After some research on my computer and on the internet, I find the solution. A electron method can handle the permission request of the webservice.
To fix the issue
You have to add a code portion to the webview.js of one of your service.
This code will handle and grant the permission request.
const {remote} = require('electron');
const webContents = remote.getCurrentWebContents();
const {session} = webContents;

module.exports = Ferdi => {
	session.setPermissionCheckHandler((webContents, permission) => {
		console.log(permission);
		if(permission=='media'){
			return true;
		}
		return false;
	});
	session.setPermissionRequestHandler((webContents, permission, callback) => {
		console.log(permission);
		if(permission=='media'){
			callback(true);
		}
		callback(false);
	});
/*
Add the others lines originaly here
*/
}

@kytwb I'm sorry but i don't know how to correct this on the project (I'm not really comfortable with git) and maybe it is possible to add this code at more higher level than in a service...

@all-contributors please add tristanplouz for code and ideas

@kytwb - has this code been committed into the repo? I couldn't find it - and this ticket is still open.

I'm still affected by this but on the latest version

$ snap info ferdi
name:      ferdi
summary:   All your messaging services in one place
publisher: Ferdi (getferdi)
store-url: https://snapcraft.io/ferdi
contact<EMAIL_ADDRESS>license:   unset
description: |
  Ferdi is a messaging browser that allows you to combine your favorite messaging services into one
  application.
commands:
  - ferdi
snap-id:      c9FsJPOVsNaH3lLn0KtmU76g0CKm1N6R
tracking:     latest/stable
refresh-date: 25 days ago, at 22:01 CET
channels:
  latest/stable:    5.6.3            2021-11-07 (113) 122MB -
  latest/candidate: ↑
  latest/beta:      5.6.3-beta.4     2021-11-07 (111) 122MB -
  latest/edge:      5.6.4-nightly.22 2021-12-02 (137) 122MB -
installed:          5.6.3                       (113) 122MB -


Packs that have actions in sub-directories importing modules in same sub-directory fail

SUMMARY
I have observed in a couple of packs when using StackStorm 3.4dev that they now get ModuleNotFoundError when the pack has a module actions/lib/moduleA.py and that moduleA.py has an import moduleB where moduleB is in the same library.
These packs were working in previous versions.
Observed in both ActiveDirectory and Excel packs.
STACKSTORM VERSION
st2 3.4dev (c422f0029), on Python 3.6.8
OS, environment, install method
CentOS 8.2, single line bash installer
Steps to reproduce the problem
Observed with following actions:

activedirectory.get_ad_user
excel.get_keys_for_rows

Expected Results
Actions to work as before and not throw ModuleNotFoundError
Actual Results
Excel Stack Trace:
{
  "stdout": "",
  "stderr": "Traceback (most recent call last):
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 238, in _get_action_instance
    actions_cls = action_loader.register_plugin(Action, self._file_path)
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/util/loader.py\", line 166, in register_plugin
    module = imp.load_source(module_name, plugin_abs_file_path)
  File \"/opt/stackstorm/virtualenvs/excel/lib64/python3.6/imp.py\", line 172, in load_source
    module = _load(spec)
  File \"<frozen importlib._bootstrap>\", line 684, in _load
  File \"<frozen importlib._bootstrap>\", line 665, in _load_unlocked
  File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module
  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed
  File \"/opt/stackstorm/packs/excel/actions/get_keys_for_rows.py\", line 14, in <module>
    from lib import excel_action, excel_reader
  File \"/opt/stackstorm/packs/excel/actions/lib/excel_reader.py\", line 16, in <module>
    import string_converter
ModuleNotFoundError: No module named 'string_converter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 334, in <module>
    obj.run()
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 192, in run
    action = self._get_action_instance()
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 245, in _get_action_instance
    raise exc_cls(msg)
ModuleNotFoundError: Failed to load action class from file \"/opt/stackstorm/packs/excel/actions/get_keys_for_rows.py\" (action file most likely doesn't exist or contains invalid syntax): No module named 'string_converter'

Traceback (most recent call last):
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 238, in _get_action_instance
    actions_cls = action_loader.register_plugin(Action, self._file_path)
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/util/loader.py\", line 166, in register_plugin
    module = imp.load_source(module_name, plugin_abs_file_path)
  File \"/opt/stackstorm/virtualenvs/excel/lib64/python3.6/imp.py\", line 172, in load_source
    module = _load(spec)
  File \"<frozen importlib._bootstrap>\", line 684, in _load
  File \"<frozen importlib._bootstrap>\", line 665, in _load_unlocked
  File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module
  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed
  File \"/opt/stackstorm/packs/excel/actions/get_keys_for_rows.py\", line 14, in <module>
    from lib import excel_action, excel_reader
  File \"/opt/stackstorm/packs/excel/actions/lib/excel_reader.py\", line 16, in <module>
    import string_converter
ModuleNotFoundError: No module named 'string_converter'

",
  "exit_code": 1,
  "result": "None"
}

Active Directory StackTrace:
{
  "stdout": "",
  "stderr": "Traceback (most recent call last):
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 238, in _get_action_instance
    actions_cls = action_loader.register_plugin(Action, self._file_path)
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/util/loader.py\", line 166, in register_plugin
    module = imp.load_source(module_name, plugin_abs_file_path)
  File \"/opt/stackstorm/virtualenvs/activedirectory/lib64/python3.6/imp.py\", line 172, in load_source
    module = _load(spec)
  File \"<frozen importlib._bootstrap>\", line 684, in _load
  File \"<frozen importlib._bootstrap>\", line 665, in _load_unlocked
  File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module
  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed
  File \"/opt/stackstorm/packs/activedirectory/actions/run_cmdlet.py\", line 1, in <module>
    from lib import action
  File \"/opt/stackstorm/packs/activedirectory/actions/lib/action.py\", line 1, in <module>
    from winrm_connection import WinRmConnection
ModuleNotFoundError: No module named 'winrm_connection'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 334, in <module>
    obj.run()
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 192, in run
    action = self._get_action_instance()
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 245, in _get_action_instance
    raise exc_cls(msg)
ModuleNotFoundError: Failed to load action class from file \"/opt/stackstorm/packs/activedirectory/actions/run_cmdlet.py\" (action file most likely doesn't exist or contains invalid syntax): No module named 'winrm_connection'

Traceback (most recent call last):
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 238, in _get_action_instance
    actions_cls = action_loader.register_plugin(Action, self._file_path)
  File \"/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/util/loader.py\", line 166, in register_plugin
    module = imp.load_source(module_name, plugin_abs_file_path)
  File \"/opt/stackstorm/virtualenvs/activedirectory/lib64/python3.6/imp.py\", line 172, in load_source
    module = _load(spec)
  File \"<frozen importlib._bootstrap>\", line 684, in _load
  File \"<frozen importlib._bootstrap>\", line 665, in _load_unlocked
  File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module
  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed
  File \"/opt/stackstorm/packs/activedirectory/actions/run_cmdlet.py\", line 1, in <module>
    from lib import action
  File \"/opt/stackstorm/packs/activedirectory/actions/lib/action.py\", line 1, in <module>
    from winrm_connection import WinRmConnection
ModuleNotFoundError: No module named 'winrm_connection'

",
  "exit_code": 1,
  "result": "None"
}

Workarounds were possible to get this to work, e.g. change the ActiveDirectory to use "from .winrm_connection import WinRm"

Create fresh CentOS 8.2 VM and install STackStorm 3.3. Install excel pack. Put in place blank spreadsheet. Run excel.get_keys_for_rows -> all ok
Create fresh CentOS 8.2 VM and install StackStorm unstable. Repeat above -> get the import error. (So reproduced it on 2 different CentOS 8.2 VMs now - just in case I was going mad!)

e.g. just run:
st2 run excel.get_keys_for_rows sheet=<sheetname> excel_file=<spreadsheet>
In fact don't even need to have a valid spreadsheet e.g.
$ st2 run excel.get_keys_for_rows sheet=rubbish excel_file=/opt/stackstorm/rubbish.xlsx
.
id: 601055e7509b8ab7a3c1b0d7
action.ref: excel.get_keys_for_rows
context.user: st2admin
parameters:
  excel_file: /opt/stackstorm/rubbish.xlsx
  sheet: rubbish
status: failed
start_timestamp: Tue, 26 Jan 2021 17:48:23 UTC
end_timestamp: Tue, 26 Jan 2021 17:48:24 UTC
result:
  exit_code: 1
  result: None
  stderr: "Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 238, in _get_action_instance
    actions_cls = action_loader.register_plugin(Action, self._file_path)
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/util/loader.py", line 166, in register_plugin
    module = imp.load_source(module_name, plugin_abs_file_path)
  File "/opt/stackstorm/virtualenvs/excel/lib64/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/stackstorm/packs/excel/actions/get_keys_for_rows.py", line 14, in <module>
    from lib import excel_action, excel_reader
  File "/opt/stackstorm/packs/excel/actions/lib/excel_reader.py", line 16, in <module>
    import string_converter
ModuleNotFoundError: No module named 'string_converter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 334, in <module>
    obj.run()
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 192, in run
    action = self._get_action_instance()
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 245, in _get_action_instance
    raise exc_cls(msg)
ModuleNotFoundError: Failed to load action class from file "/opt/stackstorm/packs/excel/actions/get_keys_for_rows.py" (action file most likely doesn't exist or contains invalid syntax): No module named 'string_converter'

Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 238, in _get_action_instance
    actions_cls = action_loader.register_plugin(Action, self._file_path)
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/util/loader.py", line 166, in register_plugin
    module = imp.load_source(module_name, plugin_abs_file_path)
  File "/opt/stackstorm/virtualenvs/excel/lib64/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/stackstorm/packs/excel/actions/get_keys_for_rows.py", line 14, in <module>
    from lib import excel_action, excel_reader
  File "/opt/stackstorm/packs/excel/actions/lib/excel_reader.py", line 16, in <module>
    import string_converter
ModuleNotFoundError: No module named 'string_converter'

"
  stdout: ''

Create fresh CentOS 8.2 VM and install STackStorm 3.3. Install excel pack. Put in place blank spreadsheet. Run excel.get_keys_for_rows -> all ok
Create fresh CentOS 8.2 VM and install StackStorm unstable. Repeat above -> get the import error. (So reproduced it on 2 different CentOS 8.2 VMs now - just in case I was going mad!)

e.g. just run:
st2 run excel.get_keys_for_rows sheet=<sheetname> excel_file=<spreadsheet>
In fact don't even need to have a valid spreadsheet e.g.
$ st2 run excel.get_keys_for_rows sheet=rubbish excel_file=/opt/stackstorm/rubbish.xlsx
.
id: 601055e7509b8ab7a3c1b0d7
action.ref: excel.get_keys_for_rows
context.user: st2admin
parameters:
  excel_file: /opt/stackstorm/rubbish.xlsx
  sheet: rubbish
status: failed
start_timestamp: Tue, 26 Jan 2021 17:48:23 UTC
end_timestamp: Tue, 26 Jan 2021 17:48:24 UTC
result:
  exit_code: 1
  result: None
  stderr: "Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 238, in _get_action_instance
    actions_cls = action_loader.register_plugin(Action, self._file_path)
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/util/loader.py", line 166, in register_plugin
    module = imp.load_source(module_name, plugin_abs_file_path)
  File "/opt/stackstorm/virtualenvs/excel/lib64/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/stackstorm/packs/excel/actions/get_keys_for_rows.py", line 14, in <module>
    from lib import excel_action, excel_reader
  File "/opt/stackstorm/packs/excel/actions/lib/excel_reader.py", line 16, in <module>
    import string_converter
ModuleNotFoundError: No module named 'string_converter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 334, in <module>
    obj.run()
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 192, in run
    action = self._get_action_instance()
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 245, in _get_action_instance
    raise exc_cls(msg)
ModuleNotFoundError: Failed to load action class from file "/opt/stackstorm/packs/excel/actions/get_keys_for_rows.py" (action file most likely doesn't exist or contains invalid syntax): No module named 'string_converter'

Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 238, in _get_action_instance
    actions_cls = action_loader.register_plugin(Action, self._file_path)
  File "/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/util/loader.py", line 166, in register_plugin
    module = imp.load_source(module_name, plugin_abs_file_path)
  File "/opt/stackstorm/virtualenvs/excel/lib64/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/stackstorm/packs/excel/actions/get_keys_for_rows.py", line 14, in <module>
    from lib import excel_action, excel_reader
  File "/opt/stackstorm/packs/excel/actions/lib/excel_reader.py", line 16, in <module>
    import string_converter
ModuleNotFoundError: No module named 'string_converter'

"
  stdout: ''

I believe that this is related to the PYTHONPATH changes in #5100. I'm working on a fix for this now.

I believe that this is related to the PYTHONPATH changes in #5100. I'm working on a fix for this now.


Complex power

Feature request

I am using numba do some simulation,however when i try the complex power in cuda,it report error,and i try a very simple coda as below, the code and the error numba suggests are as below, it there something wrong with my code or is just the numba still not support it:

CudaAPIError                              Traceback (most recent call last)
/mnt/F/ubuntu/anaconda/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py in complete(self)
1616         try:
-> 1617             driver.cuLinkComplete(self.handle, byref(cubin), byref(size))
1618         except CudaAPIError as e:
/mnt/F/ubuntu/anaconda/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py in safe_cuda_api_call(*args)
289             retcode = libfn(*args)
--> 290             self._check_error(fname, retcode)
291         return safe_cuda_api_call
/mnt/F/ubuntu/anaconda/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py in _check_error(self, fname, retcode)
324                     raise CudaDriverError("CUDA initialized before forking")
--> 325             raise CudaAPIError(retcode, msg)
326
CudaAPIError: [999] Call to cuLinkComplete results in CUDA_ERROR_UNKNOWN
During handling of the above exception, another exception occurred:
LinkerError                               Traceback (most recent call last)
 in ()
1 array1 = np.array([1,2,3,4,5],dtype = np.complex)
----> 2 power_complex4,4
/mnt/F/ubuntu/anaconda/lib/python3.6/site-packages/numba/cuda/compiler.py in call(self, *args)
751         Specialize and invoke this kernel with args.
752         '''
--> 753         kernel = self.specialize(*args)
754         cfg = kernel[self.griddim, self.blockdim, self.stream, self.sharedmem]
755         cfg(*args)
/mnt/F/ubuntu/anaconda/lib/python3.6/site-packages/numba/cuda/compiler.py in specialize(self, *args)
762         argtypes = tuple(
763             [self.typingctx.resolve_argument_type(a) for a in args])
--> 764         kernel = self.compile(argtypes)
765         return kernel
766
/mnt/F/ubuntu/anaconda/lib/python3.6/site-packages/numba/cuda/compiler.py in compile(self, sig)
781             self.definitions[(cc, argtypes)] = kernel
782             if self.bind:
--> 783                 kernel.bind()
784         return kernel
785
/mnt/F/ubuntu/anaconda/lib/python3.6/site-packages/numba/cuda/compiler.py in bind(self)
498         Force binding to current CUDA context
499         """
--> 500         self._func.get()
501
502     @property
/mnt/F/ubuntu/anaconda/lib/python3.6/site-packages/numba/cuda/compiler.py in get(self)
383             for path in self.linking:
384                 linker.add_file_guess_ext(path)
--> 385             cubin, _size = linker.complete()
386             compile_info = linker.info_log
387             module = cuctx.create_module_image(cubin)
/mnt/F/ubuntu/anaconda/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py in complete(self)
1617             driver.cuLinkComplete(self.handle, byref(cubin), byref(size))
1618         except CudaAPIError as e:
-> 1619             raise LinkerError("%s\n%s" % (e, self.error_log))
1620
1621         size = size.value
LinkerError: [999] Call to cuLinkComplete results in CUDA_ERROR_UNKNOWN
error   : Undefined reference to 'numba_cpow' in ''

Thanks for the report. I don't think this is supported. But also think that that error message ought to be improved and that it probably shouldn't be going down the compilation path it has taken (numba_cpow is a reference to the CPU impl). So this is also a bug!


Local rust-libsql reads 200+X slower than vanilla rusqlite

Disclaimer: The title sounds worse than it is. Read to the end. The performance is roughly as expected just not great compared to the alternatives.
I've been working with libsql for a while and noticed that reads are slower than I would have naively assumed so I wrote some micro benchmarks: https://github.com/ignatz/libsql_bench
My general goal is to get as much read/write thoughput on a multi-threaded tokio executor as possible. I'm comparing libsql with tokio_rusqlite (which uses a dedicated worker thread), shared rusqlite client behind a mutex and a rusqlite client per thread.
Running above benchmarks (just run make), i'm getting:
cargo run --release -p rusqlite_bench
    Finished `release` profile [optimized] target(s) in 0.04s
     Running `target/release/rusqlite_bench`
DB file: "/tmp/.tmpFQJcnK/rusqlite.sqlite"
Sqlite v"3.46.1"
Inserted 1600000 rows in 11.219563428s
Read 1600000 rows in 32.737431ms

cargo run --release -p rusqlite_mutex_bench
    Finished `release` profile [optimized] target(s) in 0.04s
     Running `target/release/rusqlite_mutex_bench`
rusqlite_mutex DB file: "/tmp/.tmpBGkhBR/rusqlite_mutex.sqlite"
Sqlite v"3.46.1"
Inserted 1600000 rows in 18.672236257s
Read 1600000 rows in 1.29174221s

cargo run --release -p libsql_bench
    Finished `release` profile [optimized] target(s) in 0.05s
     Running `target/release/libsql_bench`
DB file: "/tmp/.tmpVuHRK6/libsql.sqlite"
Sqlite v"3.45.1"
Inserted 1600000 rows in 14.390506034s
Read 1600000 rows in 7.434578596s

cargo run --release -p tokio_rusqlite_bench
   Compiling tokio_rusqlite_bench v0.1.0 (/home/sebastian/delme/rust/libsql_bench/tokio_rusqlite)
    Finished `release` profile [optimized] target(s) in 0.64s
     Running `target/release/tokio_rusqlite_bench`
DB file: "/tmp/.tmpq4X69P/tokio_rusqlite.sqlite"
Sqlite v"3.46.1"
Inserted 1600000 rows in 12.741168998s
Read 1600000 rows in 533.421978ms

Not sure how much can be attributed to the different sqlite baseline versions but writes are generally pretty similar. Writes are more expensive than reads and thus any overhead (async, lock congestion, ...) should weigh less.
To be fair the performance is the same order of magnitude (7s vs 1s) as the rusqlite+mutex version. Which is probably expected given libsql relies on sqlite's internal locking (mutex performance matters here) and then adds some async overhead.
Yet, there's a lot of performance left on the floor for the implementation of the local connection. Even just adopting an execution model like tokio_rusqlite and disabling sqlite's internal locking would probably provide a 10+X speedup.

Made a grave mistake being not yet too familiar with rusqlite. Unlike libsql, rusqlite evalutes the first result of stmt.query() lazily. Fixing the benchmark brings everyone much closer together. TL;DR: when measured more correctly, libsql is about as fast as the trivial mutex implementation, 3x slower than a dedicated worker thread, and 25x slower than multi-client (which makes a lot more sense given the ability to concurrently read and my machine having 16 threads).
In other words, my bad and oops. I'm not closing this because it couldn't be better but it's working as implemented. Sorry
    Finished `release` profile [optimized] target(s) in 0.07s
     Running `target/release/rusqlite_bench`
DB file: "/tmp/.tmpusvmdG/rusqlite.sqlite"
Sqlite v"3.46.1"
Inserted 1600000 rows in 11.978294713s
Read 1600000 rows in 442.869067ms
cargo run --release -p rusqlite_mutex_bench
    Finished `release` profile [optimized] target(s) in 0.04s
     Running `target/release/rusqlite_mutex_bench`
rusqlite_mutex DB file: "/tmp/.tmpSs4pdc/rusqlite_mutex.sqlite"
Sqlite v"3.46.1"
Inserted 1600000 rows in 25.390412263s
Read 1600000 rows in 9.748033341s
cargo run --release -p libsql_bench
    Finished `release` profile [optimized] target(s) in 0.07s
     Running `target/release/libsql_bench`
DB file: "/tmp/.tmplPwoRt/libsql.sqlite"
Sqlite v"3.45.1"
Inserted 1600000 rows in 15.670807778s
Read 1600000 rows in 10.994643026s
cargo run --release -p tokio_rusqlite_bench
    Finished `release` profile [optimized] target(s) in 0.06s
     Running `target/release/tokio_rusqlite_bench`
DB file: "/tmp/.tmpjVWdPh/tokio_rusqlite.sqlite"
Sqlite v"3.46.1"
Inserted 1600000 rows in 12.701616449s
Read 1600000 rows in 3.693624272s
    Finished `release` profile [optimized] target(s) in 0.79s
     Running `target/release/libsql_rusqlite_bench`
DB file: "/tmp/.tmpBAo6aV/rusqlite.sqlite"
Sqlite v"3.45.1"
Inserted 1600000 rows in 11.646239951s
Read 1600000 rows in 1.804165874s


new object by constructor

I get following error:

TS2351	Cannot use 'new' with an expression whose type lacks a call or construct signature.

class A {
constructor() { ... }
refresh() { return new this.constructor; }
}

new this.constructor works in pure JS.
Thanks:)

The type of constructor is just Function, unfortunately. You can write this instead:
class A { constructor() {  } refresh() { return new (<typeof A>this.constructor); } }


Update gtest to 1.8.0 and use new_http_archive [phab:D1118]

Created by shahms at 2016-10-25 23:11:41:
Update gtest to 1.8.0 and use new_http_archive

shahms wrote at 2016-10-25 23:28:42:

add sha256 parameter

zarko accepted this revision at 2016-10-25 23:43:24

shahms closed via commit 6b99f06b2e712b4e44e37fc35de617d40b13c70b at 2016-10-26 16:33:26


Error while bulk updating Primary Campaign Source field in Donation

While updating the Primary Campaign Source field (CampaignId) for multiple Donations (Opportunities) using Dataloader, its throwing an exception:
npsp.TDTM_Opportunity: execution of AfterUpdate

caused by: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, npsp.TDTM_CampaignMember: execution of AfterInsert

caused by: System.QueryException: List has more than 1 row for assignment to SObject

External entry point
Class.npsp.TDTM_TriggerHandler.runClass: line 193, column 1
Class.npsp.TDTM_TriggerHandler.run: line 113, column 1
Class.npsp.TDTM_Config_API.run: line 92, column 1
Trigger.npsp.TDTM_CampaignMember: line 33, column 1: []

Class.npsp.UTIL_DMLService.insertRecords: line 104, column 1
Class.npsp.TDTM_TriggerHandler.processDMLAllOrNothing: line 298, column 1
Class.npsp.TDTM_TriggerHandler.processDML: line 278, column 1
Class.npsp.OPP_CampaignMember_TDTM.run: line 112, column 1
Class.npsp.TDTM_TriggerHandler.runClass: line 193, column 1
Class.npsp.TDTM_TriggerHandler.run: line 113, column 1
Class.npsp.TDTM_Config_API.run: line 92, column 1
Trigger.npsp.TDTM_Opportunity: line 33, column 1

hi @aditya930 we don't provide support here in GitHub. Can you please post in the Power of Us Hub Group for NPSP and we can get you support.


tap throws in empty Promise-chain

(Not-)working example as REPL : https://goo.gl/WQfxZ3

Hi @PutziSan,
This was resolved, however I don't think it has been released yet. The fix is implemented here

Hi,
thx for the info, I just looked for open issues, sorry.
Are there any plans when it will be released?


(maint) Pin RuboCop gem

This commit pins the RuboCop gem in the Gemfile to version 1.28.0.
This version was chosen because it's the last version of RuboCop
that supports Ruby 2.5, which we still use to run some RSpec tests
for Puppet.
Additionally, this commit regenerates the .rubocop_todo.yml file
using the updated gem version.

rubocop and rspec (ubuntu) passed so merging.


Undo after closing a tab group

Expected Behaviour
Pressing the undo button after closing a tab group should reopen the tab group.
Actual Behaviour
Pressing the undo button after closing a tab group opens the most recently closed tab.
Steps to replicate the bug

Close a tab group with more than one tab in it.
Press the undo button.

I'll work on this!


Cucum test i2

Merging of test branch with master. Changed travis.yml file to not fail on exiting with 1 due to cuke tests.

Looks good.


perf-core

@ocramz Thanks for #5
So, I see you are quite serious about commitment to lightening up on dependencies.
I'll sit on your PR for a few days if you don't mind, and contemplate.  If we head down this path, I'd rather replace the existing library with the perf-core you extracted, and shuffle the existing library towards an r&d shell.

When you measure how fast something is n times, the statistics that summarise the n runs feel fairly fundamental.
tdigest pulls in vector, vector-algorithms mostly.  The actual library is somewhat sketchy for sure, but I went with a lightweight, blazingly fast percentile calculation, compared with using statistics.


[UNO] Add extractor for United Nations

Please follow the guide below

Before submitting a pull request make sure you have:

[x] Searched the bugtracker for similar pull requests
[x] Read adding new extractor tutorial
[x] Read youtube-dl coding conventions and adjusted the code to meet them
[x] Covered the code with tests (note that PRs without tests will be REJECTED)
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[x] New extractor
[ ] New feature

Description of your pull request and other information
This PR adds support for extraction from media pages with proceedings, meetings and events in the United Nations website.
Requested in and resolves #30612.

PS D:\Mateus\Arquivos Diversos\Política\Internacional\United Nations> yt-dlp --write-subs --sub-langs en,ru,pt --write-auto-subs -o "%(uploader)s-%(upload_date>%Y%m%d%H%M)s-%(playlist_index|)s%(playlist_index&-|)s%(title)s-%(id)s.%(ext)s" --cookies-from-browser chrome --throttled-rate 200K --no-playlist -c -i -w -f "bestvideo[height=1440]+bestaudio/bestvideo[height=1080]+bestaudio/best" https://media.un.org/en/asset/k1p/k1pvngjn8e [Cookies] Extracting cookies from chrome [Cookies] Extracted 1425 cookies from chrome [UNO] k1pvngjn8e: Downloading webpage WARNING: [UNO] unable to extract author; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U WARNING: [UNO] unable to extract publisher; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U [Kaltura] 1_pvngjn8e: Downloading video info JSON ERROR: 1_pvngjn8e: An extractor error has occurred. (caused by KeyError('dataUrl')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
How can I help you, if needed?


Ensure exclusive allocation of master port

The base class for distributed tests allocates master port after checking availability of ports and PYTEST_XDIST_WORKER. This potentially leads to conflicts of ports:

Anther process may allocate the port after checking the availability of ports
The scope of PYTEST_XDIST_WORKER is a single workflow but we run multiple workflows in parallel.

This PR maintains the use of ports by keeping records in a file. We lock the file when updating the records to ensure exclusive allocation of master port.

Closing as we don't run multiple workflows in parallel on the same machine.


Allow multiple subtables (Meta #126)

There can be multiple subtables within the accordion like in our health demo (patients)

@renestalder I did a complete refactor now, splittet things better in functions and made things clearer within comments/JSDocs


Depth sensor devel

to be merged only after @MFernandezCarmona has fixed the maintainer emails, see https://github.com/LCAS/depth_sensors/commit/a1b79a3b07584c8891c1bde38e4cea398ba1f618#commitcomment-29741499

sorry, accident ;-)


5_Eliminate space between "my CV"

Remove space between "cv" and Twitter

@dhritirajsen I couldn't figure which line you are referring to. Please attach screenshots.


Pass in functions as arguments to various methods

Is it possible to pass in functions as arguments to various methods? If it is, how would this be done; and if not, would it be possible to implement it?
Here is a (silly) example of what I'm trying to do:
const Horseman = require('node-horseman');
const horseman = new Horseman();

function foo(cb) {
  console.log('Foo worked.');
  cb();
}

function bar() {
  console.log('Bar worked.');
}

horseman
  .userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.4.10 (KHTML, like Gecko) Version/8.0.4 Safari/600.4.1')
  .open('https://www.google.co.uk/')
  .evaluate(foo, bar)
  .close();

At this point I was looking to have this functionality in the following methods:

.do
.evaluate
.waitFor

As for .evaluate and .waitFor, since the communication of arguments between Node.JS and PhantomJS is done through JSON, you cannot pass functions. You can emulate it by passing the functions as strings (not pretty, but it's all you can do).
const Horseman = require('node-horseman');
const horseman = new Horseman();

function foo(cbstr) {
  var cb;
  eval('cb = ' + cbstr);
  console.log('Foo worked.');
  cb();
}

function bar() {
  console.log('Bar worked.');
}

horseman
  .userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.4.10 (KHTML, like Gecko) Version/8.0.4 Safari/600.4.1')
  .open('https://www.google.co.uk/')
  .evaluate(foo, bar)
  .close();

For .do, the function you give it runs in Node.JS along with your horseman code. It doesn't take any arguments, but it can just access the outer scope's variables directly
const Horseman = require('node-horseman');
const horseman = new Horseman();

function foo() {
  console.log('Foo worked.');
  bar();
}

function bar() {
  console.log('Bar worked.');
}

horseman
  .userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.4.10 (KHTML, like Gecko) Version/8.0.4 Safari/600.4.1')
  .open('https://www.google.co.uk/')
  .do(foo)
  .close();

Ahhh right, thanks for speedy reply @awlayton! It's not pretty indeed, but it seems like that's the way I'll have to go. (Or inject a JS file and call methods from that) Thank you!


Reorder Resource Functions To Enable Better Extensibility

should resolve #14

Could you please also add a test that maybe uses the before_patch hook to edit the request args?


Windows 7 BCDBoot failed with error

I can create instance on HyperV but i cant run windows-imaging-tool, gives an error this : http://paste.openstack.org/show/725336/
How can i fix this, any idea ?

Hello,
I have reproduced this issue using Win7 iso en_windows_7_professional_with_sp1_x64_dvd_u_676939.iso on a Windows 10 UEFI host. I have created a PR https://github.com/cloudbase/windows-openstack-imaging-tools/pull/217 with the fix.
Can you try it and check if it works?
Thank you,
Adrian Vladu

i use windows server 2016 but it gave same error again

no it does not work. the bcdboot.exe is the host machine ? it is at Windows/System32/bcdboot.exe in windows server 2016 . How can i write it ?

it is not working and error http://paste.openstack.org/show/725529/

Hello,
"no it does not work." - are you sure you have applied the patch from PR https://github.com/cloudbase/windows-openstack-imaging-tools/pull/217 ?
To make sure that you have the right code you need to follow these steps:
git remote add ader1990 https://github.com/ader1990/windows-openstack-imaging-tools
git fetch ader1990
git checkout fix_win7_bcdboot

# if you have changed the code previously, the checkout might not work correctly, make sure you have a  clean repo clone or you can perform a "git reset --hard"

# to clean your environment from older PowerShell Modules
Remove-Module WinImageBuilder

# now you can restart the image generation

I installed windows 10 instead of windows server 2016, i changed manually WinImageBuilder.psm1 but not working. Now i try to change git branch.

I have merged the fix in the master branch, you can use it now.

yes it works.

Great, thanks for reporting the issue and your help testing the fix!


Error on "Make Payment" for Sandbox

I am using<PHONE_NUMBER>000007 and amount 500 to retrieve test USDC with the payments-sample-app.
However, if I fill out the data and want to submit ("Make Payment"), I always get this error ("Unable to encrypt message"):
vue.runtime.esm.js:619 [Vue warn]: Invalid prop: type check failed for prop "error". Expected Object, got Error
found in
--->  at components/ErrorSheet.vue
 at pages/flow/charge/index.vue

 at layouts/default.vue

@ice09 take a look to this issue https://github.com/circlefin/payments-sample-app/issues/126


Set permissions more sanely on log dir. Add tests.

Only sets permissions on the redis_logfile directory if the
directory has just been created. Otherwise, it will touch the
log file with ownership of the redis user.
I'm probably a bad person for not doing this in separate commits,
but this also adds in a test-kitchen test suite.

Closes #83


CI: improve test:multiverse:clobber

rake test:multiverse:clobber improvements

refactor the Removers module into a new Multiverse::Clobber class, and have it live beneath test/multiverse
add rake content that is broken without test/ content to .build_ignore
update rake test:multiverse:clobber to delete Postgresql databases in addition to MySQL databases. Errors encountered for one will not prevent attempts to delete databases for the other.
update rake test:multiverse:clobber with individual rescues for each operation; especially individual database drop calls
add additional puts statements for improved output

resolves #964

These changes are great. My repo feels so much cleaner. 🧹
One small thing -- on my machine, I needed to use rake test:multiverse:clobber to get the task to run. Were you able to use only rake multiverse:clobber?

Ah, whoops. Thanks, @kaylareopelle. The task is indeed test:multiverse:clobber. That part hasn't been changed, I just typed it wrong in the PR title and description. The title and description have been updated.


Rotations don't show in the list for the last git clone

Hi. Patch to make it work:
--- a/mainwindow.py
+++ b/mainwindow.py
@@ -610,13 +610,13 @@ class JLCPCBTools(wx.Dialog):
             # First check if the part name mathes
             for regex, correction in corrections:
                 if re.search(regex, str(part[1])):
-                    part[8] = correction
+                    part[8] = str(correction)
                     break
             # If there was no match for the part name, check if the package matches
             if part[8] == "":
                 for regex, correction in corrections:
                     if re.search(regex, str(part[2])):
-                        part[8] = correction
+                        part[8] = str(correction)
                         break

             self.footprint_list.AppendItem(part)

Check this pull request:
https://github.com/Bouni/kicad-jlcpcb-tools/pull/443

@Bouni fix for this is merged into main.


Update Test-M365DataAtRestEncryptionPolicy.md

Docs Build status updates of commit 98c4475:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Test-M365DataAtRestEncryptionPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 98c4475:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Test-M365DataAtRestEncryptionPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Allow open settings complex command to target extension settings

There exists an (undocumented) internal complex command that can open vscode settings:
vscode.commands.executeCommand("workbench.action.openSettings2")

Which I think eventually makes its way to here https://github.com/Microsoft/vscode/blob/059a3e1642f74c0f97589e4739a1a303fe8cdd23/src/vs/workbench/services/preferences/browser/preferencesService.ts#L185
I see in the codebase that it's possible to pass a query directly to this function, which I imagine filters the settings shown. It would be useful for an extension to be able to do this as well. For example: a vscode error message could direct a user to the extension's settings immediately via a button click.
This feature request is two parts:

Document this complex command in the docs somewhere :)
Allow a user to pass a string/id to filter the shown settings to the extension's settings.

Now workbench.action.openSettings will take a query. However, these are not well documented and that is an issue with commands for extensions in general :(


[setup] problem when installing on a second machine

hey,
i followed the steps you described in the setup section.
then i uploaded the changes to my git repo.
after that i cloned the repo on another machine and tried to npm install.
that try gave an error, which says that the file tools/install.js is missing.
i saw in the .gitignore, that you are ignoring that file and so its not going to be uploaded into the repo.
i copied the file manually and after that npm install is running fine.
so i wanted to ask why you are ignoring the install.js.

Actually it's not ignoring it (the opposite):
https://github.com/NathanWalker/angular2-seed-advanced/blob/master/.gitignore#L38

The change went in 14 days ago:
https://github.com/NathanWalker/angular2-seed-advanced/commit/dbfc791ed31a7282783269be93bf1b871160568c
It's possible you are working off a version of the seed prior to that commit which may have been ignoring that file which is why you did not have it on yours.
Please ensure you are up to date with latest master:
git fetch upstream
git merge upstream/master

Sorry for coming back on this.
I found this file:  " tools/install.js " in the correct folder and its part of .gitignore like you described above.
But if i try:
git fetch upstream
git merge upstream/master

I get this message:
error: The following untracked working tree files would be overwritten by merge:
        tools/install.js
Please move or remove them before you can merge.
Aborting

That seems to solve this problem:
git reset --hard upstream/master

Thanks for reporting a proper fix for anyone else that may run into this @JanOschii  👍


[#117991263] upgrade concourse to 1.5.1

What
Upgrade Deployer Concourse
How to review
Run bootstrap pipeline & watch it upgrade your concourse. Run your new concourse to confirm all still works fine. A good test is to run pipeline against existing environment and observe if anything is being changed.
Merging
Before you merge check if any other PRs have been merged since this PR was opened. If so, check if any changes to pipelines use/introduce image: definition of container. If so, rebase on master and convert this to image_resource like the rest of container specifications in the pipelines. Note that bootstrap create/destroy and auto-delete pipelines should still use image: as they are meant for older bootstrap concourse.
This PR depends on https://github.com/alphagov/paas-docker-cloudfoundry-tools/pull/60. Review that as a part of reviewing this PR. Remove 922fec7 after https://github.com/alphagov/paas-docker-cloudfoundry-tools/pull/60 is merged.
Who can review
not @combor @mtekel or @benhyland

It is not possible for outsiders to view the 'What' on this story as we don't all have access to the private tracker used.

That's a pity. It links to an epic story of concourse upgrade where we attempted to upgrade to version 1.0 at first, finding out we couldn't. We made a PR to fix the issues for bosh-init, which were merged to 1.3 concourse, which unfortunately had issue with too many containers. Then we tried 1.4.0 and 1.4.1, which still didn't fix the issue. Finally 1.5.1 seems to work OK. Except we now need to extend fly hijack to be able to specify container type to hijack, so that we don't get multiple container choices when doing bosh-cli...

Deploys good for me... lets see how it deploys :)

It seems like t2.medium is not fast enough for this version/setup of concourse. I left mine running over the weekend doing nothing. Initially it was regaining credits, but then it stopped next day. Current load is 0.4, which is exactly how much credits that instance gets. Looking at the server, there's not much going on. It is possible that if e.g. there is some issue/change with external dependencies (dockerhub, github), resource checks can consume more CPU. I suggest we play Change deployer-concourse to use a non-burstable instance type. story. c4.large looks like a good replacement or m4.large if we need 8G of RAM (for e.g. disk cache).

@mtekel thanks for checking. Is the new version usable on the existing instance type? Will we be able to upgrade first and then change the instance type afterwards, in separate stories?
@bleach any concerns about the cost? Urmi won't be about to ask.

Yes we'll be able to do 2 changes, but it means 2 changes (someone has to manually run bootstrap pipeline in all environments for each of the stories).
Regarding costs: c4.large is 2x more expensive than t2.medium. m4.large is 2.5x times more expensive. For our ~ 12 environments (dev + ci + prod + stage), the difference per year was about $5k (we checked this with @benhyland on Friday).

For reference, a t2.medium costs $0.056/hr and a c4.large costs $0.119/hr

Can we explain why we cannot use link() in 4f236663c15844f8ab18e2f8614897145211b6a7
Something like:

bosh_init does not support link services as bosh does. Concourse release now relies on links to configure services between jobs, although it can be disabled specifying all the properties. This can break in the future, as concourse does not recommend use bosh_init to deploy it.

I would squash b0c38ae1566c38e7d7fb7689de747f2a7accb6c4 and23375c703a27daf7cc94c5272dfbd7047c67cd14, and also explain that we need to keep image in the job definition until https://github.com/concourse/fly/issues/98 is fixed.

The PR seems fine, concourse deploys and the pipeline runs successfully.
We need to clarify if we want to upgrade the instance type or not.

I think the cost of upgrading to a c4.large is justified if the current instance size causes our concourses to effectively and the larger size fixes that problem without us spending too much engineer time on it. It seems like this is the case from the comments above.
If this problem is introduced or made much worse by the upgrade then I would opt to fix it during the upgrade; if it does cause problems it will hamper our ability to get anything delivered to production.

tl;dr; if the choice is between between paying $5k/ year to upgrade all our concourses or having them grind to a halt every so often, we should pay the $5k

Given the situation (and the fact that it keeps breaking), I'd say changing instance type is not much of a choice. If we care about the costs, we can possibly save more elsewhere (e.g. different VM types in cloud config for dev).
I have updated the comment messages, squashed commits and PR description.
922fec7 should be removed after https://github.com/alphagov/paas-docker-cloudfoundry-tools/pull/60 is merged.

@mtekel thanks for finding a solution to the bosh-cli usage and let's go ahead with the instance type change 👍

half of the credit for the solution goes to @keymon

LGTM, merging!

Now that #364 has been merged there is a reference to image used instead of image_resource, in the update-kibana-timezone task, so this branch needs updating before merging.

Now that #364 has been merged there is a reference to image used instead of image_resource, in the update-kibana-timezone task, so this branch needs updating before merging.

Rebased and updated


How to create back or previous button on inertia-laravel

Hi
Sorry If this is just a question, close this issued if you're all have the best approach and answer, I hope this is can be added on documentation / routing section
For normal blade I just use
<a class="btn btn-info" href="{{ URL::previous() }}"> Back </a>

On the other hand vue-router can write something like
<a @click="$router.back()"> Back </>

How to do this on inertia, especially on laravel vue/react ?

Better to ask such things on discord. But if it is not a static route to navigate back, you could use a prop from the controller.

Thanks for your help here @herpaderpaldent and @sagalbot!
@adiramardiani You can also just use window.history.back() to go back in history in JavaScript.


Add generated crossplane-runtime methodsets

Description of your changes

This PR uses https://github.com/negz/angryjet to generate the crossplane-runtime method sets for all Crossplane resource claims and portable resource classes, i.e. resource.Claim and resource.PortableClass. I've made it a draft to discuss how we feel about using a project from my personal Github org to generate Crossplane code. I'm happy to donate the code to the crossplaneio org if this is functionality we'd like.
Checklist

I have:

[x] Run make reviewable to ensure this PR is ready for review.
[x] Ensured this PR contains a neat, self documenting set of commits.
[ ] Updated any relevant documentation, examples, or release notes.
[ ] Updated the RBAC permissions in clusterrole.yaml to include any new types.

It is my opinion that if you are willing to donate this library to the crossplaneio org, thus making it a more formal part of the Crossplane ecosystem (i.e. use similar release process / cadence, look more streamlined as an import, etc.), that it would be a big win for the community.

Yeah - I think we should avoid taking a dependency on something distinct from the core Crossplane org both for branding reasons and because it makes me a SPOF as a maintainer of the project.

However, I would like to purpose that we explicitly denote you as the original author in a section of the README.md because this has been a mostly individual effort that will have a massive impact :)

I'm not worried about credit. I started the project in my own Github org rather than Crossplane primarily because I could move and experiment faster without having to worry aligning on naming, using the build submodule, etc.

@jbw976 Any thoughts on whether we should adopt angryjet as a "real" Crossplane project? I imagine this would require:

Moving the repo to the crossplaneio org
Adding license headers, governance documentation, etc
Giving it a less awesome name, perhaps crossplane-tools? I see it as potentially becoming the project that handles all shapes of Crossplane code generation, similar to kubebuilder's controller-tools.

@jbw976 I'd like to:

Transfer https://github.com/negz/angryjet to the crossplaneio org
Rename the repo to crossplane-tools
Add license headers, and update the README to link to Crossplane's contributing, governance, etc

I just tried step 1 and was told:

You don’t have the permission to create public repositories on crossplaneio

@negz that sounds good to me.  I think you should have permissions to create a repo now.  In terms of license files etc. I would follow the model we have in place for crossplane-runtime, e.g.:

LICENSE
DCO
Governance: https://github.com/crossplaneio/crossplane-runtime#governance-and-owners
Code of conduct: https://github.com/crossplaneio/crossplane-runtime#code-of-conduct
Other useful sections (that mostly link back to the main crossplane repo) in the readme: https://github.com/crossplaneio/crossplane-runtime/blob/master/README.md


Add instance storage wrapper

What
Add instance storage wrapper
Why
Instance storage is introduced in host to make it cheaper to store data bound to the contract instance.
Known limitations
N/A

Seems to have a compile error.

Seems to have a compile error.

Oh, sure, this is blocked by env pr https://github.com/stellar/rs-soroban-env/pull/886


Shorthand for spacing utilities

https://getbootstrap.com/docs/4.3/utilities/spacing/#notation
It would make me really happy if there could be a shorthand notation for the p and m classes, as far as responsiveness/breakpoints.
Currently, you have to set a class with which side(s), which breakpoint, and then the value for each padding/margin style.
It would be great to have the option of something like:
{property}{sides}-{xl size}-{lg size}-{md size}-{sm size}-{xs-size}
so for example:
mx-5-4-3-2-0
That may be a lot of work for a little return (5! different classes/cases), but I think could it save a lot of time while coding versus
mx-xl-5 mx-lg-4 mx-md-3 mx-sm-2 mx-0
Or maybe I'm just lazy!

Just my opinion: I find it harder to read than the current one. Also, it will increase the size of the generated css file. And last, it wouldn't be consistent with other css classes like col{breakpoint}-{size}, etc.

Laziness isn't a bad thing haha, but I think this is less clear. Keeping it as-is for now :).


Upgrade packages to major versions

Upgrade packages to major versions
This PR relates to #63.
Major Changes
This PR is the result of flutter pub upgrade --major-versions or dart pub upgrade --major-versions.

Using the major versions, to ensure compatibility with other plugins (my case), and it's a good practice to avoid bugs and exploits.

Solved on #3ceb4eb. Will close the PR.


Added $FZF_BIN_PATH for customisation

It's convenient to allow users to customise which fzf they want to
use. This commit add a new environment variable, FZF_BIN_PATH, via
which users can configure the full path to the fzf binary that they
want fzf-z to use.

Hi. Thanks for the pull request. My assumption is that users would have the path to fzf already specified in their $PATH. Do you have a usecase for where specifying it separately is needed?

Hi,
My fzf is installed via zplug, which is loaded in .zshrc and so it's only in the $PATH for interactive shell.
The reason why I didn't append this to $PATH in my .zprofile or .zshenv is that:

the former one is loaded for login shell, which is not interactive when you use a graphical login manager. Though adding fzf to $PATH there won't cause problem, I prefer not leaving any interactive-shell-only settings there.
the latter one is loaded for every invocation of zsh, and setting things their is inefficient.

Accepted! Sorry for the delay. Thanks for your contribution.


use non-durable subscription?

Would the extension still work if the subscription is changed to non-durable?
link

Hi,
There is a critical bug in the extension and we investigating on fixing it.
Until then, please refrain using this extension.
Thanks,
Kunal
On Wed, Jun 15, 2016 at 11:22 AM, RaGe<EMAIL_ADDRESS>wrote:

Would the extension still work if the subscription is changed to
non-durable?
link
https://github.com/Appdynamics/ibm-websphere-msg-broker-monitor/blob/dd14f06152eebf2aae1911a9f2ed9504178bcf1a/src/main/java/com/appdynamics/extensions/wmb/WmbMonitor.java#L77
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Appdynamics/ibm-websphere-msg-broker-monitor/issues/1,
or mute the thread
https://github.com/notifications/unsubscribe/AGz89ebm4_jzytLx1yHy2vYn75_Pm9s4ks5qMELugaJpZM4I2pjK
.

--

Kunal Gupta * | Principle Software Engineer
AppDynamics
Monitor your Apps in Production. Now.
Watch http://www.appdynamics.com/player/whydemo.php our Video | Download
http://www.appdynamics.com/products-free-download.php AppDynamics for
Free
Twitter http://www.twitter.com/appdynamics | Facebook
http://www.facebook.com/pages/AppDynamics/193264136815?ref=nf |
appdynamics.com http://www.appdynamics.com

Thanks for the heads up Kunal. Would you be able to share any information around what the bug is about?

There is a connection leak
On Wed, Jun 15, 2016 at 3:36 PM, RaGe<EMAIL_ADDRESS>wrote:

Thanks for the heads up Kunal. Would you be able to share any information
around what the bug is about?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Appdynamics/ibm-websphere-msg-broker-monitor/issues/1#issuecomment-226340394,
or mute the thread
https://github.com/notifications/unsubscribe/AGz89TRVnl6XLPxmNaF46CwSBFqCt3QQks5qMH5SgaJpZM4I2pjK
.

--

Kunal Gupta * | Principle Software Engineer
AppDynamics
Monitor your Apps in Production. Now.
Watch http://www.appdynamics.com/player/whydemo.php our Video | Download
http://www.appdynamics.com/products-free-download.php AppDynamics for
Free
Twitter http://www.twitter.com/appdynamics | Facebook
http://www.facebook.com/pages/AppDynamics/193264136815?ref=nf |
appdynamics.com http://www.appdynamics.com

Ah, Thanks. Would really appreciate it if you can update this issue once you have a resolution.

I have fixed this issue


running is intercepted with error between StarCraft 2 app

Hi I tried running qmix with MMM map
(star2) D:\Documents\star2_multi_agents\pymarl-master\pymarl-master\src>python main.py --config=qmix_smac --env-config=sc2 with env_args.map_name=MMM
main.py:71: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config_dict = yaml.load(f)
main.py:50: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config_dict = yaml.load(f)
[INFO 14:27:16] root Saving to FileStorageObserver in results/sacred.
[DEBUG 14:27:19] pymarl Using capture mode "fd"
So this is run now but any unit in sc2 does not move and time is not started just stay in 0:00. And the picture I posted is come up with sc2 app. I live in Korea so in English that does mean "There is an error in access authorization from core". second sentence meant "Please explain the situation when an error occurred to help development team solve the problem". Last one meant "when you are discussing with blizzard about this problem, use below ID". The buttons are respectively "running again", and "close".
As a result, I clicked "close" button but any unit in sc2 app does not take any action.

Seems like there could something wrong with your StarCraft II installation. Have you tried testing thee SMAC package? Try running this command:
$ python -m smac.examples.random_agents


[Datumaro] Fix convert command

Motivation and context

Updates datum convert command after converter interface changes.
How has this been tested?

Manual test
Checklist

[x] I submit my changes into the develop branch
[ ] I have added description of my changes into CHANGELOG file
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (read github docs)
[ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[ ] I have updated the license header for each file (see an example below)

# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT

Pull Request Test Coverage Report for Build 6604

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.03%) to 64.973%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

datumaro/datumaro/cli/commands/convert.py
0
3
0.0%

Totals

Change from base Build 6575:
0.03%

Covered Lines:
11087

Relevant Lines:
16658

💛  - Coveralls


Feature request: support numeric annotation in oncoplot.

> oncoplot(
+     maf = laml,
+     draw_titv = TRUE,
+     clinicalFeatures = c('FAB_classification', 'Overall_Survival_Status', "days_to_last_followup"),
+     additionalFeature = c("Tumor_Seq_Allele2", "C"),
+     sortByAnnotation = TRUE,
+     logColBar = TRUE
+ )

Support continuous scale?

This is already taken care of in #207. Since the clnicalfeature is not a numeric - its plotted as a categorical variable. You coudl try the below and it should work.
laml@clinical.data[,days_to_last_followup := as.numeric(as.character(days_to_last_followup))]

@PoisonAlien
I don't see what I want from running the following code
library(maftools)  # I used the latest version from GitHub
laml.maf = system.file('extdata', 'tcga_laml.maf.gz', package = 'maftools')
laml.clin = system.file('extdata', 'tcga_laml_annot.tsv', package = 'maftools')
laml = read.maf(maf = laml.maf, clinicalData = laml.clin)

laml@clinical.data[,days_to_last_followup := as.numeric(as.character(days_to_last_followup))]
<EMAIL_ADDRESS>
oncoplot(
  maf = laml,
  draw_titv = TRUE,
  clinicalFeatures = c('FAB_classification', 'Overall_Survival_Status', "days_to_last_followup"),
  sortByAnnotation = TRUE,
  logColBar = TRUE
)

oncoplot(
  maf = laml,
  draw_titv = TRUE,
  clinicalFeatures = c('FAB_classification', "days_to_last_followup"),
  sortByAnnotation = TRUE,
  logColBar = TRUE
)

oncoplot(
  maf = laml,
  draw_titv = TRUE,
  clinicalFeatures = c("days_to_last_followup"),
  sortByAnnotation = TRUE,
  logColBar = TRUE
)

The last plot seems right but has a bad legend.

Okay, I will fix this. This doesnt seem good.

Hi, legend issue seems to still occur

Hahah, @PoisonAlien you maybe have forgotten this 😭

Ah! I somehow overlooked it. I will work on it soon..

It seems this issue suspends for almost a year. I will try to implement it and submit a PR recently.

Is this issue resolved? I am having the same issue (maftools 2.8.05) where the numeric annotation does not show up as a continuous scale but as individual values in the legend.

Was solution to allow this numeric annotation provided yet? Please share if you know how.
Currently, it looks like only categorical value can be plotted.
How do you annotate scores per sample? This will be very helpful for maftool users.

Hi,
I will have a look around soon.

Thank you. It will be great if you could resolve this issue.
On Thu, Aug 17, 2023 at 2:45 AM Anand Mayakonda @.***>
wrote:

Hi,
I will have a look around soon.
—
Reply to this email directly, view it on GitHub
https://github.com/PoisonAlien/maftools/issues/363#issuecomment-1681715913,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM72VJVJKUIVR5B4FGPRAM3XVW4ZZANCNFSM4IBMNB3Q
.
You are receiving this because you commented.Message ID:
@.***>

--
Best regards,
Wungki Park

Hi,
I have pushed changes to handle numeric annotations. Make sure that the annotation you're trying to annotate is of the class numeric or else they will be considered categorical.
laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools")
laml.clin = system.file('extdata', 'tcga_laml_annot.tsv', package = 'maftools')
laml <- read.maf(maf = laml.maf, clinicalData = laml.clin)

# by default days_to_last_followup is of characters class. Converting it to numeric
<EMAIL_ADDRESS>=<EMAIL_ADDRESS>
oncoplot(maf = laml, clinicalFeatures = "days_to_last_followup")

Please let me know if this works for you..

This is amazing! I have been using customised palette for other annotations. Would it be possible to use a continuous palette  colors instead of this default scale in red brown here? I really appreciate this help. Very helpful!