Uncaught (in promise) DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.

Uncaught (in promise) DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.

Specifications:

html2canvas version tested with: 1.0.0-rc.2
Browser & version: chromium latest release
Operating system: fedora 29

Please share an example html/css to replicate the issue

I have this same issue.  My scenario is an iframe without a height and width attribute it would throw this error.  Height and width set in a style tag was ignored.

I found that setting the width/height below fixes the iframe issue with no width/height attributes.
                    case 12:
                        if (!(container instanceof IFrameElementContainer && container.tree)) return [3 /*break*/, 14];
                        iframeRenderer = new CanvasRenderer({
                            id: this.options.id,
                            scale: this.options.scale,
                            backgroundColor: container.backgroundColor,
                            x: 0,
                            y: 0,
                            scrollX: 0,
                            scrollY: 0,
                            width: **container.bounds.width**,
                            height: **container.bounds.height**,
                            cache: this.options.cache,
                            windowWidth: **container.bounds.width**,
                            windowHeight: **container.bounds.height**
                        });
                        return [4 /*yield*/, iframeRenderer.render(container.tree)];
                    case 13:
                        canvas = _b.sent();
                        this.ctx.drawImage(canvas, 0, 0, container.bounds.width, **container.bounds.height**, container.bounds.left, container.bounds.top, container.bounds.width, container.bounds.height);
                        _b.label = 14;

Hi, i have another issue, white image when take imave from google maps and datatable

I am having similar issue in my form. When I have checkbox field, I get the error
Uncaught (in promise) DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
The checkbox type form field is

I'm having the same issue with an iframe, and this PR fixed it for me:
https://github.com/niklasvh/html2canvas/pull/1863/files

Hi,
I'm having the same error. I have checked the previous version and it works fine on "1.0.0-rc.1" for all version above I'm getting the error.

Samething here

I'm having the same error  on "1.0.0-rc.3"
if use previous version  of  "1.0.0-rc.1", it is  fine

Hi, i'm having the same error on "1.0.0-rc.3" when html have css: "background: linear-gradient()"

I'm having the same error on 1.0.0-rc.1 +
when hav css "background-image"

I'm have the same issue:
html2canvas(document.getElementById('mapWrapper'), {
      useCORS: true,
      allowTaint: false
    }).then(canvas => {
      const url = canvas.toDataURL('image/png');
      saveAs(url, 'image.jpg');
      window.URL.revokeObjectURL(url);
    });

I get this error:
Error: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
    at CanvasRenderer.<anonymous> (html2canvas.js:6289)
    at step (html2canvas.js:83)
    at Object.next (html2canvas.js:64)
    at fulfilled (html2canvas.js:54)
    at ZoneDelegate.invoke (zone-evergreen.js:365)
    at Object.onInvoke (core.js:39698)
    at ZoneDelegate.invoke (zone-evergreen.js:364)
    at Zone.run (zone-evergreen.js:124)
    at zone-evergreen.js:851
    at ZoneDelegate.invokeTask (zone-evergreen.js:400)
    at resolvePromise (zone-evergreen.js:793)
    at resolvePromise (zone-evergreen.js:752)
    at zone-evergreen.js:854
    at ZoneDelegate.invokeTask (zone-evergreen.js:400)
    at Object.onInvokeTask (core.js:39679)
    at ZoneDelegate.invokeTask (zone-evergreen.js:399)
    at Zone.runTask (zone-evergreen.js:168)
    at drainMicroTaskQueue (zone-evergreen.js:570)
    at invokeTask (zone-evergreen.js:485)
    at ZoneTask.invoke (zone-evergreen.js:470)```

I am also facing the same issue as @shaji-Dev , when trying to capture google maps. Any updates here?

@rdpatel3996 Yes, I just needed to add the ignoreElements configuration and all is well, appearently the new version of Google Maps use iframe elements inside which makes it impossible to capture.
const mapWrapper = document.getElementById('mapWrapper');
      html2canvas(mapWrapper, {
        useCORS: true,
        allowTaint: false,
        logging: isDevMode(),
        ignoreElements: (node) => {
          return node.nodeName === 'IFRAME';
        }
      }).then(canvas => {
        canvas.toBlob(blob => {
          resolve(blob);
        });
      }).catch(reject);

The key is to add this config:
ignoreElements: (node) => {
          return node.nodeName === 'IFRAME';
        }

I got the similar error InvalidStateError: CanvasRenderingContext2D.createPattern: Passed-in canvas has width 0 which only occurs in Firefox. After some investigation I found out it occurs on svg-images set as background-image.
See this jsfiddle for demo.
Including the lines
ignoreElements: (node) => {
    return node.style['background-image'].indexOf('image/svg') !== -1;
}

is a quickfix.

I got the similar error InvalidStateError: CanvasRenderingContext2D.createPattern: Passed-in canvas has width 0 which only occurs in Firefox. After some investigation I found out it occurs on svg-images set as background-image.
See this jsfiddle for demo.
Including the lines
ignoreElements: (node) => {
    return node.style['background-image'].indexOf('image/svg') !== -1;
}

is a quickfix.

I have the same issue, but I have the problem that the SVG background image is in a CSS pseudo element :before. Since those are not real DOM nodes, they will not be checked here but also cause the same error, only on Firefox. I came up with the following quickfix for that case:
html2canvas(document.body, {
	ignoreElements: (node) => {
		var stylesBefore = window.getComputedStyle(
			node, ':before'
		);
		var stylesAfter = window.getComputedStyle(
			node, ':after'
		);
		var stylesFirstLetter = window.getComputedStyle(
			node, ':first-letter'
		);
		var stylesFirstLine = window.getComputedStyle(
			node, ':first-line'
		);
		var stylesSelection = window.getComputedStyle(
			node, ':selection'
		);
		return stylesBefore['backgroundImage'].indexOf('.svg') !== -1 ||
			stylesAfter['backgroundImage'].indexOf('.svg') !== -1 ||
			stylesFirstLetter['backgroundImage'].indexOf('.svg') !== -1 ||
			stylesFirstLine['backgroundImage'].indexOf('.svg') !== -1 ||
			stylesSelection['backgroundImage'].indexOf('.svg') !== -1;
	}
})

Hello,
Thanks for this fantastic library! I am observing this issue in v1.0.0-rc.5
The trigger condition is slightly different than observed by others in this thread however, as it is only observed when the browser is ZOOMED OUT [i.e. window.devicePixelRatio < 1], though the exact zoom level at which it triggers appears to vary [unsure why]. I can consistently reproduce error @ 67% zoom level.
Looking through the stack trace a little, I notice that one of my children elements is pushed to stackingContext.nonInlineLevel, and when its height is later evaluated via bounds, height < 1 [e.g. 0.984 @ 67% zoom], which gets floored to 0. This is in contrast to either 100% zoom level or higher [i.e. window.devicePixelRatio >= 1], where height = 1.

me too. this is my solution
   ignoreElements: (el) => {
          const { height } = el.getBoundingClientRect();
          const IGNORE_NODE = ['HEAD','STYLE','META', 'TITLE', 'LINK']
          return el.id === "hide" || (!height && !IGNORE_NODE.some(t => t ===el.nodeName));
        }

I have the same error, I don't know how to fix it...
function descargaPDF() {
    var HTML_Width = $(".factura").width();
    var HTML_Height = $(".factura").height();
    var top_left_margin = 15;
    var PDF_Width = HTML_Width + (top_left_margin * 2);
    var PDF_Height = (PDF_Width * 1.5) + (top_left_margin * 2);
    var canvas_image_width = HTML_Width;
    var canvas_image_height = HTML_Height;

    var totalPDFPages = Math.ceil(HTML_Height / PDF_Height) - 1;

    html2canvas($(".factura")[0]).then(function (canvas) {
        var imgData = canvas.toDataURL("image/jpeg", 1.0);
        var pdf = new jsPDF('p', 'pt', [PDF_Width, PDF_Height]);
        pdf.addImage(imgData, 'JPG', top_left_margin, top_left_margin, canvas_image_width, canvas_image_height);
        for (var i = 1; i <= totalPDFPages; i++) {
            pdf.addPage(PDF_Width, PDF_Height);
            pdf.addImage(imgData, 'JPG', top_left_margin, -(PDF_Height*i)+(top_left_margin*4),canvas_image_width,canvas_image_height);
        }
        pdf.save("Factura.pdf");
        $(".factura").hide();
    });
}

Just as a side-note for those who are having issues with capturing maps (@shaji-Dev , @rdpatel3996, @KinG-InFeT): another thing to consider when you have issues painting a map on a canvas is cross-origin policy.
A canvas will be tainted by images from another origin than the one your site is being served from. You can check if the map-server allows for CORS by setting the  Access-Control-Allow-Origin header. I'm not sure if this is still a thing, but you might also have to set a crossorigin-attribute on your canvas (though honestly I'd have to google that a little more...)
But this is of course no solution to the svg-issue.

I removed a horizontal rule tag with the closing slash <hr /> that was causing this error.

Fixed with https://github.com/niklasvh/html2canvas/pull/2409


Lidi datasets testing evaluation

please review, approve and lets merge - its all new fi;es will no harm
@AlonShm @GuyYar1 @einavlapid

meant something else :)


Tweak brewTags on brewItem

Via #2318

it might be worth another PR to add a similar styling for each tag as it appears in the Metadata panel. Otherwise it can be hard to tell where one tag ends and another begins, especially with multi-word tags:

  Campaign
  D&D 2e
  SpellJammer

.brewTags span {
  background-color: #c8ac6e3b;
  margin-left: 2px;
  border-radius: 4px;
  padding: 2px;
  border: 1px solid #c8ac6e;
  font-weight: 600;
}

and change this generator code:
https://github.com/naturalcrit/homebrewery/blob/8d10800cb69586dabdec86f83c40b697e577d005/client/homebrew/pages/basePages/listPage/brewItem/brewItem.jsx#L109

Fixed by #2344


AsyncCallback JSObjects nulls out

It is indeed possible to convert the parsed Uint8Array to byte[]. And return a byte[] from the AsyncCallback.
@JSBody(params = {"data"}, script = "return data;") 	public static native byte[] conversion(Uint8Array data);
Once returned; convert the byte[] back to Uint8Array. However, for huge arrays these operation, especially the inital conversion, can be extremely slow.
JSObject callback would be required for tasks where conversions are not optimal or suitable. Here is a simplified test to show-case the issue:
Note, that this issue also applies to: JSNumber, JSString, JSBoolean, etc.
public static void main(String args[]) throws InterruptedException {
Uint8Array arr = Uint8Array.create(256);
      for (int i = 0; i < arr.getLength(); i++)
       arr.set(i, (byte) i);
      System.out.println(retrieve(arr).getLength());
}

@Async
public static native Uint8Array retrieve(Uint8Array arr);

public static void retrieve(Uint8Array arr, AsyncCallback<Uint8Array> callback) {
	System.out.println(arr.getLength());
	callback.complete(arr);
}

Output : 256
Output: �
My question therefore is - are there any alternatives for what I am trying to accomplish? {retrieve and return Uint8Array asynchronously fast and efficiently}

In this particular case it looks like bug. You can try to workaround by passing Uint8Array in some wrapper class. Also, to avoid copying arrays, you can use @JSByRef. Note that you should use this annotation on your own risk - it violates Java semantics. Additionally I'm thinking about improving ByteBuffer implementation performance and introducing ability to support ByteBuffer directly in JSO.

I tried @JSByRef and was hit by some stacktraces. Wrapping it seems like the solid solution for now. Good call. Appreciate the quick in depth answer 👍


[NEW ALGORITHM] ADD DESCRIPTION ABOUT ROTATING THE MATRIX BY 180 DEGREES.

Issue will be closed if:

You mention more than one algorithm. You can create a separate issue for each algorithm once the current one is completed.
You propose an algorithm that is already present or has been mentioned in a previous issue.
You create a new issue without completing your previous issue.

Note: These actions will be taken seriously. Failure to follow the guidelines may result in the immediate closure of your issue.

Name:
[NEW ALGORITHM]
About:
Rotating a matrix by 90 degree is already explained. I want to explain the 180 degree rotation.
PLEASE ASSIGN THE ISSUE TO ME....AND ADD PROPER LABELS.

Labels:
new algorithm, gssoc-ext, hacktoberfest-accepted, level1

Assignees:

[x] Contributor in GSSoC-ext
[x] Want to work on it

@ABHISIKTAcommits assigned

@pankaj-bind please add the label of hacktoberfest-accepted.


Rocky logos package split

The Rocky data needs the same fix that Oracle received in https://github.com/AlmaLinux/leapp-data/commit/fcb09336bb56850f5de32b2f07d4c2881db6cc61

Added new action https://pes.almalinux.org/view_action/2219
Will sync json with PES soon

New version of leapp-data-rocky package was released


Add demo disclaimer

This PR partially closes #156.
I will add the feedback link after we have finalized copy for the About page in #175.

Looks good for me on desktop and mobile.

Thanks for the review @shaavan.

You can squash the two commits together for clean commit history.

We'll be using Github's Squash and merge going forward. I think GH automatically does that for us if you use this merge strategy:

I have noticed the .vscode/settings.json file being edited in multiple PR that are not relevant to PR's purpose. We can do good by removing this file from the codebase.

I have noticed this too, I think its caused by the \ used for Windows paths while MacOS/Linux use /. One solution is to add the settings.json file to our .gitignore, we don't seem to be using a whole lot of other settings anyway.


Handle Errors & Pagination

Closes #15.
This PR does the following

Updates the delivery module to the standard {:ok, response} {:error, response} convention, rather than throwing exceptions using get!
Returns entire response, not just response["items"], so the keys like total, limit, & skip are also returned for pagination purposes.
Add better error handling around 404s & 401s.
Update tests to reflect changes.

@dlitvakb Would be great if you have a chance to review this PR and maybe close out or merge some of the other open PRs :) Thanks!

Looks good! Thanks!
Merging


No support for SQL Full Text Index in Direct Query Mode

The visual does not support FULL TEXT index type. My guess is that this is depending on the DAX-SQL translation and nothing that you can do anything about. I Create this issue anyway just to inform that the feature is missing
Using CONTAINS() instead of CHARINDEX() would have made the visual supporting FULL TEXT index types
In short, the DAX code below:
FILTER(
KEEPFILTERS(VALUES('Table'[Column])),
SEARCH("/Text to be searched for/", 'Table'[Column], 1, 0) >= 1
)
Is translated into the SQL code below:
WHERE
(
CHARINDEX(N'/Text to be search for/',
COALESCE([t10].[Column], '')
)
And CHARINDEX does not take advantage of indexes of type "FULL TEXT"
/* DAX and SQL (short versions) code below */
The DAX Code generate looks something like below:
// DAX Query
DEFINE
VAR __DS0FilterTable =
FILTER(
KEEPFILTERS(VALUES('Table'[Column])),
SEARCH("/Text to be searched for/", 'Table'[Column], 1, 0) >= 1
)
VAR __DS0Core =
CALCULATETABLE(
SUMMARIZE(
'Table',
'Table'[Column],
'Table'[Column2],
'Table'[Column3]
),
KEEPFILTERS(__DS0FilterTable)
)
VAR __DS0PrimaryWindowed =
TOPN(
501,
__DS0Core
)
EVALUATE
__DS0PrimaryWindowed
The SQL looks something like below:
// SQL
SELECT
TOP (501) [t10].[Column], [t10].[Column2], [t10].[Column3]
FROM
(
(select [$Table].[Column] as [Column],
[$Table].[Column2] as [Column2],
[$Table].[Column3] as [Column3]
from [schema].[Table] as [$Table])
)
AS [t10]
WHERE (CHARINDEX(N'/Text to be search for/', COALESCE([t10].[Column], '')) >= 1)

Just pinging this issue to keep it alive. Yes SQL full text index is probably not supported in the open API. But if Microsoft are serious in their investments in Direct Query I think it would be a great idea to support this. So this is probably not a request to this visual, it’s rather a request bro the API or direct query connector.


Restructure & Cleanup

There are going to be a lot of changes to the structure as well as some cleanup

I am going to use https://github.com/fullstackhero/dotnet-webapi-boilerplate as an inspiration for some design/architectural decisions
Some of these changes are going to be splitting up IdentityService into different services, as an example: UserService, RoleService, etc.

Planning on using MediatR - CQRS as I would like to test it out and seeing that it could be nice to have. I am looking to use it for a few things.

Add SignalR and possibly some Caching similar to how https://github.com/fullstackhero/dotnet-webapi-boilerplate does it.

Switch mapper to Mapster: https://github.com/MapsterMapper/Mapster

Remove multitenancy used by dotnet-webapi-boilerplate, as it does not seem to work correctly with IdentityServer. Might be added in the future, if I figure out a way to do it properly. Or if somebody has a sample/example that works which I can look at.

This means new migrations again, as I am going to do a lot of changes :smile:

A little update on the above, most of these changes have been done/completed. I am currently looking into these things:

Switch from React Router to React Location. There is obvious reasons as to why I am doing it and you can read more about React Location here: https://react-location.tanstack.com/

I have also been looking at React Table: https://react-table.tanstack.com/ But I am not sure if I will switch to it

Decided to use React Charts: https://react-charts.tanstack.com/ for charts when that time comes


Mechanisms to support asynchronous training protocol in FL

As the title said.
Some ideas can be borrowed from asynchronous SGD, including but not limited to:

Timeout strategy
oversampling
staleness toleration
variances toleration

A simulator can also be provided for running asynchronous FL standalone.

Any ideas and discussions of asynchronous FL are welcome :)


[Fixes] History, Trades, Gateway names, Languages, Chart embeded

Adding gateway label support on trade tab
Trade chart embeded
Trade chart embeded set up type candlestick
Fixed history unknown transactions
Removed undefined XRP gateway name in Trades
Enable languages i10n
History send amount btc fixed

#1


Usage example

Hi any usage example / tutorial on how to use with phpleauge oauth2 server? I read your readme.md but not really understand how to use it

@cyberfly I'm currently working on some examples and they should be available soon.
How far have you gotten? Can you post your configuration?


Missing compiled code in the package

Deployed package missing dist directory specified for compiled files
https://www.npmjs.com/package/link-meta-extractor?activeTab=code

Deployed package missing dist directory specified for compiled files
https://www.npmjs.com/package/link-meta-extractor?activeTab=code

Let me test and fix it.

Deployed package missing dist directory specified for compiled files
https://www.npmjs.com/package/link-meta-extractor?activeTab=code

dist was somehow missed while publishing. I have published a new version with the dist folder.
You can re-install the package with the latest version and you should be able to use it.
Thanks for noticing this issue.


ConfigMgr artifact updated

ReadMe Updated
Support for SQL 2016 implemented
Error handling improved

Hi @rzander, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.
TTYL, AZPRBOT;

When do we get that stuff, waiting since 3 Weeks, would be great to get it faster trough your process, then I can build my lab over the weekend, I have a class next week!

Hi Roger - sorry this fell off my radar. I will approve the changes, but it looks like there is a merge conflict that needs to be resolved.

Is there anything I can or have to do ?

Sync to master, rebase branch, resolve conflicts.

Leave a comment

Hi @rzander, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.
TTYL, AZPRBOT;


tests, integ: fix minor typo in assertlib

Signed-off-by: Fernando Fernandez Mancera<EMAIL_ADDRESS>

Coverage increased (+0.04%) to 66.021% when pulling 0b566fcd4a05c25c08fc32ff7523278f01af9e3e on ffmancera:typo_statelib into ded665336fa1841a02caf14d875a030782d36808 on nmstate:master.

Coverage increased (+0.04%) to 66.021% when pulling 0b566fcd4a05c25c08fc32ff7523278f01af9e3e on ffmancera:typo_statelib into ded665336fa1841a02caf14d875a030782d36808 on nmstate:master.


[cli] Change log level

Could help investigation or operations with kong to be able to change the log level at runtime from command line.
Example:
kong log set debug

You can set an environment variable and start Kong like:
KONG_LOG_LEVEL=debug kong start

I think the point of this issue was that something like this could be available at runtime. However, doing so would necessitate that config options are stored in the database, so I would assume this would actually be fleshed out into a more abstract command line interface that might look something like
kong config log debug
Or something akin to this. Again, since this requires the whole of the Kong runtime config to be stored in the DB, this is a long way out. the other point of note for this issue is that we would need to reconsider how we define and manage log levels, since this is current statically set at worker start based on the config, so a variable log level environment would require work in addition to the native error log facility.
An alternative, currently workable with Kong running in a custom nginx config and a bit of elbow grease, would be to use the debug_connection directive: http://nginx.org/en/docs/ngx_core_module.html#debug_connection, but this is only tangentially related to the original intent of this issue.

how about KONG_LOG_LEVEL=debug kong reload ?

@thefosk, @Tieske as @p0pr0ck5 said this issue is related to set the level of the log at runtime to avoid changing the state of the process.


Update error code notes

A lot of the error code notes were outdated. I think I updated all the notable ones, so please implement this.

Thanks, I'm sure there will be less people confused about the Nintendo Channel error codes now.


Guide: Bounties and Autark's project app

This issue was funded with 90 DAI, see more issues on our dao projects app.
Create a guide on how to use Autark's projects app to work on issues.
Things to cover:

How to request to work on an issue
How to claim a bounty
How to fund an issue

See https://github.com/aragon/hack/pull/154#issuecomment-494591016 and https://github.com/aragon/hack/issues/160 for an outline of the process (modulo 3).

Closing; these types of guides should either live in help.aragon.org or OpenEnterprise's own documentation.


Ocasional crashs on iOS 9 and 10

Hey guys,
I'm using this lib on a project of mine and I'm having ocasional crashs on iOS 9 and 10.
The stack trace:
Crashed: com.flipboard.framecachingqueue
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000010d07c000
0  libsystem_platform.dylib       0x18b51ee60 platform_memmove + 96
1  ImageIO                        0x18e2d9a6c GIFReadPlugin::copyImageBlockSet(InfoRec, CGImageProvider_, CGRect, CGSize, CFDictionary const) + 3244
2  ImageIO                        0x18e2d9a6c GIFReadPlugin::copyImageBlockSet(InfoRec, CGImageProvider_, CGRect, CGSize, CFDictionary const) + 3244
3  ImageIO                        0x18e2d8788 GIFReadPlugin::CopyImageBlockSetProc(void, CGImageProvider_, CGRect, CGSize, CFDictionary const) + 124
4  ImageIO                        0x18e13a8a4 IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider, CGRect, CGSize, CFDictionary const) + 496
5  ImageIO                        0x18e138830 IIOImageProviderInfo::CopyImageBlockSetWithOptions(void, CGImageProvider_, CGRect, CGSize, _CFDictionary const) + 356
6  CoreGraphics                   0x18da7b8f8 img_blocks_create + 260
7  CoreGraphics                   0x18da83328 img_data_lock + 1896
8  CoreGraphics                   0x18da82b6c CGSImageDataLock + 152
9  CoreGraphics                   0x18d89b8e8 ripc_AcquireImage + 712
10 CoreGraphics                   0x18da97404 ripc_DrawImage + 676
11 CoreGraphics                   0x18da874a8 CGContextDrawImageWithOptions + 636
12 APP                      0x1000c2f38 +FLAnimatedImage predrawnImageFromImage:
13 APP                      0x1000c2474 -FLAnimatedImage imageAtIndex:
14 APP                      0x1000c1fc8 __42-[FLAnimatedImage addFrameIndexesToCache:]_block_invoke_3 (FLAnimatedImage.m:452)
15 Foundation                     0x18cf30888 __NSIndexSetEnumerate + 824
16 APP                      0x1000c1f00 __42-[FLAnimatedImage addFrameIndexesToCache:]_block_invoke_2 (FLAnimatedImage.m:481)
17 libdispatch.dylib              0x18b31d200 _dispatch_call_block_and_release + 24
18 libdispatch.dylib              0x18b31d1c0 _dispatch_client_callout + 16
19 libdispatch.dylib              0x18b32b444 _dispatch_queue_serial_drain + 928
20 libdispatch.dylib              0x18b3209a8 _dispatch_queue_invoke + 652
21 libdispatch.dylib              0x18b32b940 _dispatch_queue_override_invoke + 360
22 libdispatch.dylib              0x18b32d38c _dispatch_root_queue_drain + 572
23 libdispatch.dylib              0x18b32d0ec _dispatch_worker_thread3 + 124
24 libsystem_pthread.dylib        0x18b5252c8 _pthread_wqthread + 1288
25 libsystem_pthread.dylib        0x18b524db4 start_wqthread + 4
I know EXC_BAD_ACCESS is normally memory leak.
Any ideas on how to solve this problem?
Thanks in advance.

The same here. Very rare(<0.1%) and hard to repro, but it's happening everyday in our production.

Use https://github.com/ibireme/YYWebImage it works great for me on GIF loading!!

Suggesting another library is not a solution to this problem. Bad form.

@master-nevi agree... except that this FLAnimatedImage is no longer actively maintained... and YYWebImage works perfectly, lol.

Same crash here.


Kbc 2306 enable branch endpoints

Jira: KBC-2306
Connection: https://github.com/keboola/connection/pull/3570
Before asking for review make sure that:

[x] New client method(s) has tests
[x] Apiary file is updated
[x] You declared if there is a BC break or not (will affect next release of a client)

btw prosim davej do description link na connection PR pokud existuje, at se to da zpetne prokliknout


Leaflet block map

Can you tell me if you know the reason of this blocked map when i put
if (zoomLevel<13 && map.hasLayer(contacts) ) {
//map.removeLayer(contacts);
}
I can't move on the map but when I put this
if (zoomLevel<13  ) {
//map.removeLayer(contacts);
}
there is no issue

Please create a jsfiddle to reproduce this.
What do you mean by 'blocked map' ?

Think You
http://jsfiddle.net/VaGy5/475/
if (map.getZoom()<10 && map.hasLayer(square)) {
map.removeLayer(square);
}
Don't work and the map is blocked
But with this the script work
if (map.getZoom()<10 ) {
// map.removeLayer(square);
}
for example, I want to remove the layers when zoom is under 10

http://jsfiddle.net/VaGy5/476/
I want to remove "square if zoom is under 10

In the example you've posted, square is not defined the first time it is used.

Ok thinks, Before I was putting "var square" after "map.on('moveend', function() { "
But now I put it Before and it works thinks


Don't offer auto-importing completion unless at least 3 characters are already typed

With only two idents, we usually have a whole bunch of potential candidates, which noticeable slows down completion.
MOre generally, I feel we might want to play with thresholds here somewhat?
cc @SomeoneToIgnore

cc https://github.com/microsoft/language-server-protocol/issues/1101

(Consider making an exception for Rc)

We could probably make an exception for all exact matches?

This seems to be already implemented in matklad.rust-analyzer-0.2.694
See capture from vscode:


Remove docs that no longer need to exist here

Closes #1789

Added a special thanks section in our changelog, for @davidhousedev and @mrkldshv .
If either of you don't feel comfortable with this, please let me know (either here, or privately through Discord or Twitter or some other way) and I'll remove it. But we wanted to thank you for your contributions, even if they don't show up in our changelogs at times.


feat: langchain4j-qdrant

This PR introduces a new module langchain4j-qdrant to enable Qdrant - https://qdrant.tech/ to be used as a vector database in Langchain4J.
Integration tests have been implemented by extending EmbeddingStoreIT and using org.testcontainers to spawn a local Qdrant instance.

@Anush008 thanks a lot for your contribution! Some tests in QdrantEmbeddingStoreIT are failing, please check

Hi @langchain4j. They pass now I think.

Hi @langchain4j. They pass now I think.

They are failing on my local setup. Unfortunately ITs are not running via CI now (working on enabling them)

should_add_multiple_embeddings_with_segments and should_add_multiple_embeddings are failing

Can you share some logs or traceback?

should_add_multiple_embeddings:

Expected :Embedding { vector = [-0.086097434, 0.033505224, 0.017902793, 0.065050885, -0.024954641, -0.06060963, 0.048882663, 5.764136E-4, -0.04786572, -0.030424029, -0.032737613, 0.01727105, -4.0147905E-4, -0.045942158, 0.053153332, 0.050249416, 1.284951E-4, - ...
Actual   :Embedding { vector = [-0.08609743, 0.03350522, 0.017902792, 0.06505088, -0.024954638, -0.060609624, 0.048882656, 5.764135E-4, -0.04786571, -0.030424025, -0.03273761, 0.017271047, -4.01479E-4, -0.045942154, 0.053153325, 0.05024941, 1.2849508E-4, -0.06 ...

should_add_multiple_embeddings_with_segments:

Expected :Embedding { vector = [-0.086097434, 0.033505224, 0.017902793, 0.065050885, -0.024954641, -0.06060963, 0.048882663, 5.764136E-4, -0.04786572, -0.030424029, -0.032737613, 0.01727105, -4.0147905E-4, -0.045942158, 0.053153332, 0.050249416, 1.284951E-4, - ...
Actual   :Embedding { vector = [-0.08609743, 0.03350522, 0.017902792, 0.06505088, -0.024954638, -0.060609624, 0.048882656, 5.764135E-4, -0.04786571, -0.030424025, -0.03273761, 0.017271047, -4.01479E-4, -0.045942154, 0.053153325, 0.05024941, 1.2849508E-4, -0.06 ...

Ok I guess we should make tests a bit more less strict, I will check this

Seems like a float precision issue.

What is strange: precision drops on the second vector, the first one is ok

I will make the test less strict, but you might want to look into this, seems like a bug

You mean the second vector in the result?

yes

Can I get your Java version and local environment/setup info? Will be helpful in reproducing later. Since it works fine on mine.

Sure:
OS Name	Microsoft Windows 11 Pro
Version	10.0.22621 Build 22621
Processor	13th Gen Intel(R) Core(TM) i5-13400, 2500 Mhz, 10 Core(s), 16 Logical Processor(s)
Docker 4.20.0 (109717)
Java: temurin-21.0.1
Intellij IDEA Build #IC-231.9011.34, built on May 16, 2023

Curious how this goes in the CI.

I experience the same issue with this machine:
Édition	Windows 11 Famille
Version	23H2
Build du système d’exploitation	22631.3085
Expérience	Windows Feature Experience Pack 1000.22684.1000.0
Processor  i7-13620H
Docker 4.26.1
Java: coretto 17.0.9
IntelliJ IDEA 2023.3.3 (Ultimate Edition)
Build #IU-233.14015.106, built on January 25, 2024


Add correct lawyer bags to loadouts

About the PR

Lawyers weren't getting the filled bags with stamps in them. That's all.
Why / Balance

Stamp.
Fixes #27063
Technical details

Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

no cl too small

Please check your changes ingame and don't webedit.

Fixed em, and also found out this issue has been reported so added that.


Dotnet - Could not create SSL/TLS secure channel.

Any idea what's going on here?
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209
I have the proxy application set up and configured to use ASP.NET v4.0. I am hitting a url like this:
https://apps.myapps.com/proxy/proxy.ashx?https://apps.myapps.com/arcgis/rest/services
Server Error in '/ags_proxy' Application.
The request was aborted: Could not create SSL/TLS secure channel.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
Source Error:
Line 490:            if (bytes != null && bytes.Length > 0)
Line 491:                req.ContentLength = bytes.Length;
Line 492:            using (Stream outputStream = req.GetRequestStream()) {
Line 493:                outputStream.Write(bytes, 0, bytes.Length);
Line 494:            }

Source File: c:\inetpub\wwwroot\ags_proxy\proxy.ashx    Line: 492
Stack Trace:
[WebException: The request was aborted: Could not create SSL/TLS secure channel.]
   System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) +1176
   System.Net.HttpWebRequest.GetRequestStream() +23
   proxy.doHTTPRequest(String uri, Byte[] bytes, String method, String referer, String contentType, NetworkCredential credentials) in c:\inetpub\wwwroot\ags_proxy\proxy.ashx:492
   proxy.doHTTPRequest(String uri, String method, NetworkCredential credentials) in c:\inetpub\wwwroot\ags_proxy\proxy.ashx:470
   proxy.getNewTokenIfCredentialsAreSpecified(ServerUrl su, String reqUrl) in c:\inetpub\wwwroot\ags_proxy\proxy.ashx:565
   proxy.ProcessRequest(HttpContext context) in c:\inetpub\wwwroot\ags_proxy\proxy.ashx:257
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

I should also note, I'm running Windows Server 2008 R2 Service pack 1, 64bit.

@roemhildtg in my experience, it looks like the remote server SSL certificate is not listed as trusted certificates on the web server where the proxy is hosted.
Can you try browsing the remote URL (https://apps.myapps.com/arcgis/rest/services) in the browser on the web server where the proxy is hosted ? You should see in the browser that the SSL certificate is not trusted.
Also if you can try whether the same issue occurs when you proxy the same URL in HTTP instead of HTTPS
Hope this helps.

That's correct. The arcgis (remote) server does not have a valid ssl certificate. The reason is it is not a publicly accessible server, we're using web-adapter to allow external access. Using HTTP instead of HTTPS doesn't work either since the service we're accessing is secured with arcgis credentials. The proxy script is forced to use HTTPS since it needs to acquire an access token.
In the example urls above, https://apps.myapps.com/arcgis/rest/services is the url to our web adapter.

Just a follow up, the url  https://apps.myapps.com/arcgis/rest/services does have a valid certificate. It is the internal arcgis server that does not. But that shouldn't matter since web adapter is being used, correct?

Apparent fix is to change:
 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

to
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;

I realize this isn't "secure" but since we're accessing an internal server there shouldn't be an issue, right?

I see 2 solutions, either require .net 4.5 or change to SecurityProtocolType.Tls11.

I see 2 solutions, either require .net 4.5 or change to SecurityProtocolType.Tls11.

Thanks @steenhulthin for summarizing that.
@esoekianto @jgravois - what do you think? Seems like neither solution is great... (I'm leaning towards the#406 solution -> thus changing the minimum requirement to .NET 4.5)

@bsvensson
Can we have the best of the both world by somehow having this (security protocol type) as an option that you can be configured in config file?

... or maybe use feature detection to pick TLS1.2 when possible.

while working with few customers who faced the same issue, this seems to work all the time,
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;
I can create PR for this @bsvensson, if we agree that this is how we want to fix this issue

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;

We should use TLS 1.2 whenever possible (for better security).
@esoekianto - If a user has a server that supports TLS 1.1 and TLS 1.2, and uses .NET 4.5, doesn't your suggestion mean they end up with the less secure TLS 1.1?
If we can't use feature detection, then your earlier suggestion about an option in the config file might be the better option. :)

yes, also because there are server set in hsts

When that error appears, it's because you have a version that is not .Net Framework 4.6.1 or higher, or because the website you want to open using ssl method is not an https one, but probably an http.

oof

Closing issue.
Microsoft ended support for .NET 4.0 (as well as for 4.5 and 4.5.1) back on 2016-01-12.


AttributeError at /auth/register

AttributeError at /auth/register
'UserRegistrationSerializer' object has no attribute 'init_data'

I was trying to create a new user by issuing a POST request to /auth/register. Exception location is at djoser/djoser/serializers.py in save, line 34
Here are my package versions -
Django==1.7.1
djangorestframework==3.0.0
djoser==0.1.0

Can you tell me why this is happenning?

Hi @nigelsmith! Thank you for your comment!
Yep, you are right - initial_data are unvalidated and they shouldn't be used here. Furthermore, this is internal serializer API. Unfortunately, there is no easy way to access validated data in save or save_object method (DRF2). As you pointed out, this problem is fixed in DRF3. One of reasons why DRF author changed it, fit very well into djoser issue - DRF3 changelog:

Instantiating model instances directly means that you cannot use model manager classes for instance creation, e.g. ExampleModel.objects.create(...). Manager classes are an excellent layer at which to enforce business logic and application-level data constraints.

If we still want to use User.objects.create_user (which is good idea IMHO) we could call it in restore_object method:
def restore_object(self, attrs, instance=None):
    return User.objects.create_user(**attrs)

... but in this case we also have to override save_object method:
def save_object(self, obj, **kwargs):
    return obj

... because it uses obj.save(force_insert=True), which will raise IntegrityError in this case (user was created in restore_object). But even if we choose this option (which I don't like), there will be problem with DRF3:

AssertionError: Serializer djoser.serializers.UserRegistrationSerializer has old-style version 2 .restore_object() that is no longer compatible with REST framework 3. Use the new-style .create() and .update() methods instead.

Maybe we should create different classes for DRF2 and DRF3 (we could check rest_framework.VERSION)? We could also move creation step into view create method, but this will be also problematic - DRF3 has different flow in this method.

I agree that using User.objects.create_user here is a good practice. It delegates user creation responsibility to default behaviour of Django auth system.
Considering assertions in DRF3 that prevents overriding DRF2 methods of serializer class I think that @konradhalas suggestion about providing different classes for different DRF versions is actually a good idea. It looks like there is no other choice.

Ok, thanks - I will try to come up with sth.

Fixed https://github.com/sunscrapers/djoser/commit/4b9593b315b88add4a1970352779356eb85d2457


Non-Async Servlets

Ktor relies on Async Servlets at the moment - which as of June, is literally the only thing stopping it working on Google App Engine Standard. See: https://cloud.google.com/appengine/docs/standard/java/release-notes#june_28_2017
As you're using Coroutines, is it necessary to use AsyncServlets? Or could I simply fork the http-servlet module and remove the async call?

The only way to get it work in sync mode is to use blocking coroutine dispatcher and somehow run everything on it. Not sure if it is possible to support all the stuff in single-threaded environment.

At least async channels couldn't be implemented on top of blocking ServletInputStream/ServletOutputStream (attempting to do so will cause deadlock)

On the other hand we can use ThreadManager to launch new theads to workaround it. However it could have performance penalty. Need to be designed carefully.

Would be nice to make it possible, there is a significant cost difference between AppEngineStandard/Beanstalk over running flex/containers.
I haven't done enough with Coroutines yet, I think everything still can be async, just that you would have to wait for a response from the execute method?
Don't call:
val asyncContext = request.startAsync().apply { timeout = 0L }

Then do a blocking call to:
hostPipeline.execute(call)

Although I'm guessing I'm missing something if it was that easy?

No, unfortunately it is not going to work so easy. It could only work in some simple cases. Of course Servlet/Read/WriteChannels need to be rewritten to do blocking (that could cause deadlocks as blocking stops all call-related coroutines). Also respondWrite { } could cause issues. For sure websockets will not work at all.

So I dove in a bit, got stuck at the ServletOutputStream, as that streams out in an async manner, seem like it would require a bit of architectural changes, so that you would buffer the response then flush it when the pipeline has finished.. :/

For sure we should collect neither response nor request body as it could be too huge.
call.respondWrite {
    val ch = call.receive<ReadChannel>()
    while (true) {
        val something = TODO("read something from channel ch")
        append(something)
    }
}

Another example
withTimeout(...) {
    call.respond(....)
}

will never fail with timeout as all coroutines could get stuck

OK, looks like this will be a massive pain. Or will be really hacky. There is a feature request open with Google, but knowing how these things go... will be a while before that ever happens: https://issuetracker.google.com/issues/65104189

They are already using jetty so I wonder why AppEngine doesn't support async servlets.

I saw that you added support for blocking servlets in 0.9.1. Does that mean that we can run non async serverlets?

@chrisjenx Yes, now ktor can run in servlet-containers with no async support such as GAE

@chrisjenx You have a sample for GAE here: https://github.com/ktorio/ktor-samples/tree/master/deployment/google-appengine-standard

Awesome, yeah I got this working last night. Awesome work! I really
appreciate this effort!
I'll buy you a beer at kotlin conf if you're around!
I'll close this out.
On Fri, 18 May 2018, 06:16 Carlos Ballesteros Velasco, <
<EMAIL_ADDRESS>wrote:

@chrisjenx https://github.com/chrisjenx You have a sample for GAE here:
https://github.com/ktorio/ktor-samples/tree/master/deployment/google-appengine-standard
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ktorio/ktor/issues/219#issuecomment-390188522, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABHRsa9xdhAz_QGE6dZhPpwfKflCf89Eks5tzruhgaJpZM4P8VPc
.


Vulnerability of dependency "github.com/gin-gonic/gin"

Hello, we are a team researching the dependency management mechanism of Golang. During our analysis, we came across your project and noticed that it contains a vulnerability (CVE-2023-26125). In your project, the github.com/gin-gonic/gin package is being used at version github.com/gin-gonic/gin v1.1.1, but the patched version is v1.9.0. To fix the vulnerability, we recommend modifying the go.mod file to update the version to v1.9.0 or higher. Thank you for your attention to this matter.

Was fixed in #815.


Not able to access ADX cluster deployed in a VNet

Describe the bug
ADX cluster is deployed in a VNET. Custom code running in AKS or Azure Functions cannot create records in the ADX database using the SDK. AKS and Azure Functions are in the same VNet. There are no issues with the same code when the ADX cluster is not part of the Vnet
Error Message:  IOError when trying to retrieve CloudInfo
Stack Trace:
com.microsoft.azure.kusto.ingest.StreamingIngestClient.ingestFromStream(StreamingIngestClient.java:176)
com.microsoft.azure.kusto.ingest.StreamingIngestClient.ingestFromStream(StreamingIngestClient.java:137)
com.wba.Function.run(Function.java:83)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
com.microsoft.azure.functions.worker.broker.JavaMethodInvokeInfo.invoke(JavaMethodInvokeInfo.java:22)
com.microsoft.azure.functions.worker.broker.EnhancedJavaMethodExecutorImpl.execute(EnhancedJavaMethodExecutorImpl.java:55)
com.microsoft.azure.functions.worker.broker.JavaFunctionBroker.invokeMethod(JavaFunctionBroker.java:61)
com.microsoft.azure.functions.worker.handler.InvocationRequestHandler.execute(InvocationRequestHandler.java:33)
com.microsoft.azure.functions.worker.handler.InvocationRequestHandler.execute(InvocationRequestHandler.java:10)
com.microsoft.azure.functions.worker.handler.MessageHandler.handle(MessageHandler.java:45)
com.microsoft.azure.functions.worker.JavaWorkerClient$StreamingMessagePeer.lambda$onNext$0(JavaWorkerClient.java:92)
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base/java.lang.Thread.run(Thread.java:829)
To Reproduce
Create an ADX cluster in a VNet
Access the ADX cluster to create a record a table using Kusto SDK
Auth method- Service Principle

Hi
This does not seem to be an issue in the sdk, please follow this and report the result
https://docs.microsoft.com/en-us/azure/data-explorer/vnet-deploy-troubleshoot?tabs=windows
Please add client version and the full stacktrace

Hi This does not seem to be an issue in the sdk, please follow this and report the result
https://docs.microsoft.com/en-us/azure/data-explorer/vnet-deploy-troubleshoot?tabs=windows
Please add client version and the full stacktrace

That is correct. It was a network related issue.  In our case both the client service (AKS) and the ADX Clusters were part of the same VNet, but different subnet. We had to do two things to get this working.

Use the private URL for the ADX cluster - (It is hidden in the ADX cluster Overview page on Azure Portal)
Configure outbound NSG rules for AKS and inbound NSG rules for the ADX Cluster

Thanks for checking. You can close this issue.

That is correct. It was a network related issue.  In our case both the client service (AKS) and the ADX Clusters were part of the same VNet, but different subnet. We had to do two things to get this working.

Use the private URL for the ADX cluster - (It is hidden in the ADX cluster Overview page on Azure Portal)
Configure outbound NSG rules for AKS and inbound NSG rules for the ADX Cluster

Thanks for checking. You can close this issue.


Organising Solutions According to Language and Topic

There are a lot of submissions on the repo. the codes available for different problems are unorganized and it becomes difficult for anyone to find submissions/codes.
So what I think is the repo should be organized on language at a high level and then topic-wise.

I am ready to work on this issue. Can you assign me?


Change request for Unsupported combination

Last one in the table Unsupported combinations for On premise AD does not make since with the additional comment of Enterprise Voice must be enabled first.

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@CarolynRowe PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Fix memory leak caused by long-duration intervals or timeouts

Fixes AngleSharp/AngleSharp.Scripting#41

Thanks for the PR! 👍
I will look into changing the build.ps1 / Cake for using the csproj again. Will be merged asap then!
🍻

I'm actually fiddling around with Cake right now trying to get it to build. It loads the new .NET Core .csproj file just fine, but it's looking for the source files in C:\ instead of the project directory. It may be a local configuration issue for me...I'm still digging around.

Technically I believe this can actually be merged in before the project files are migrated, but it'd be good to get those migrated so a prerelease version can be published to NuGet.

Agreed!

I just pushed to #578 again...I still can't get the project to build in Cake on my workstation but it builds on my tablet with a fresh clone of my csproj branch, so it must be a machine issue.

Looks great - now I will need to look into #566.

@FlorianRappl that should be fixed with the migration to .csproj, which involved removing the .NET Portable frameworks (as they are effectively deprecated... .NET Core has pretty much replaced portable frameworks).

Hm if it is solved then why is the build failing on AppVeyor? Am I missing something?

I changed the project format in a different PR/branch, so this PR is still trying to build with project.json. The code should compile fine in VS but I've noticed all the recent PRs have been failing in AppVeyor because of the .NET Core format change

Yeah sorry I was confused about #578 (two PRs). The last two comments from me actually referred to #578.

The PR of course looks great!
Merged 🥇 !


How to apply for a pan-domain name in the global configuration

my configuration is as follows, but it is wrong
{
acme_dns {
access_key_id my_key_id
access_key_secret my_key_secret
}
}
error log:
validate: adapting config using caddyfile: parsing caddyfile tokens for 'acme_dns': ./Caddyfile:4 - Error during parsing: Wrong argument count or unexpected line ending after 'access_key_id'

This Doc will help you.

This Doc will help you.

Thank you, I have seen the updated content of the document. In fact, I have tried that. There may be other problems. I will try other methods.


ERR_INVALID_RESPONSE from PDF button

Summary of problem or feature request
Exporting a PDF shows a page with an error ERR_INVALID_RESPONSE
Exporting other formats is fine
I have asked about a 500 error too before but was told I needed to provide more info but it's impossible to debug there is no feedback from datatables about the errors. It would be good if it returned the info from the whoops page if it errors.
Why would the getDataForExport() function return a 500 error when on the page it loads fine and all it's doing is the same thig but putting it into a xls/pdf right??
Also so now why would it give an ERR_INVALID_RESPONSE for the PDF but works fine for XLS?

Operating System Windows/Linux
PHP Version 5.6/7
Laravel Version 5.2
Laravel-Datatables Version

What driver are you using for the pdf? snappy or excel? I suggest you use snappy as I found dompdf to be buggy.

OK yeah I think it's using dompdf. Will take a look at snappy. Thanks.

I have the same problem. Just try it in linux environment
https://github.com/yajra/laravel-datatables/issues/718#issuecomment-244589857


Allow specifying integration id and keys to zuul

When using zuul as an integration you need to specify the integration id
and the private key to zuul. Plumb these config variables into hoist.
Signed-off-by: Jamie Lennox<EMAIL_ADDRESS>

Build failed.

http://logs.bonnyci.com/check_github/BonnyCI/hoist/155/1487163414.88/bonnyci-run-check-multinode : POST_FAILURE in 2h 15m 06s

recheck


Set new --reconfiguration_policy mesos flag.

High-level description
This commit sets the newly added reconfiguration policy
for mesos-agent to additive, in order to allow agents
to add new domains without draining all tasks.
Corresponding DC/OS tickets (obligatory)
These DC/OS JIRA ticket(s) must be updated (ideally closed) in the moment this PR lands:

DCOS_OSS-1959

Related tickets (optional)
Other tickets related to this change:

MESOS-1739 Allow slave reconfiguration on restart
CORE-1244 Allow agent domain re-configuration without losing tasks

Checklist for all PRs

[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

PLEASE FILL IN THE TEMPLATE ABOVE / DO NOT REMOVE ANY SECTIONS ABOVE THIS LINE
Instructions and review process
What is the review process and when will my changes land?
All PRs require 2 approvals using GitHub's pull request reviews.
Reviewers should be:

Developers who understand the code being modified.
Developers responsible for code that interacts with or depends on the code being modified.

It is best to proactively ask for 2 reviews by @mentioning the candidate reviewers in the PR comments area. The responsibility is on the developer submitting the PR to follow-up with reviewers and make sure a PR is reviewed in a timely manner. Once a PR has 2 ship-it's, no red reviews, and all tests are green it will be included in the next train.

@mesosphere-mergebot bump-ee

@vinodkone @adam-mesos  Could you review this?

Q1. Do we actually want this enabled by default for all customers, even customers upgrading from 1.10 where they may have relied on the previous behavior?
Q2. Even if we want it enabled by default, should we add a config.yaml parameter so that customers can selectively disable this new behavior? Is there a chance somebody won't want it?

Making it configurable via config.yaml sounds reasonable to me. As far as
what should be the default, it should definitely be additive otherwise
upgrades to 1.11 EE won't work (since that sets the fault domains).
On Thu, Dec 7, 2017 at 6:31 PM, Adam<EMAIL_ADDRESS>wrote:

Q1. Do we actually want this enabled by default for all customers, even
customers upgrading from 1.10 where they may have relied on the previous
behavior?
Q2. Even if we want it enabled by default, should we add a config.yaml
parameter so that customers can selectively disable this new behavior? Is
there a chance somebody won't want it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dcos/dcos/pull/2169#issuecomment-350155089, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAC8A9hVstNOEW65pK2_4FNzbYnOp7Qhks5s-J-fgaJpZM4Q5mwb
.

@adam-mesos The old behaviour in this case would be for the agent to crash and do nothing until manual intervention occurs, so I doubt anyone depends on that.
@vinodkone I was looking through the existing integration tests but didn't really see anything that does a similar thing (I assume the test that we want is "Run a 1.10 cluster w/o fault domains and upgrade to an 1.11 cluster w/ fault domains configured.") Is there maybe an existing set of upgrade tests somewhere that would be a better fit for this?

@lava there is an upgrade test that @mnaboka is working on. so we probably don't need another one.

Looks like @adam-mesos and myself approved this PR. Is there anything else the core team needs to do to get this merged? cc @orsenthil

@vinodkone By the CI status, mergebot/enterprise/review/approved/min_2 is still waiting for a second approval on the EE PR: https://github.com/mesosphere/dcos-enterprise/pull/1827


python3Packages.policyuniverse: <IP_ADDRESS>20110 -> <IP_ADDRESS>20414

Description of changes
Update to latest upstream release <IP_ADDRESS>20414
Requires #168710

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 168699 run on x86_64-linux 1

1 package failed to build:

checkov

2 packages built:

python310Packages.policyuniverse
python39Packages.policyuniverse

Result of nixpkgs-review pr 168699 run on x86_64-linux 1

3 packages built:

checkov
python310Packages.policyuniverse
python39Packages.policyuniverse


Typo: that --> than

Thus, dataset’s fields structure will always be more complete that than source’s.

Thanks. Changed in 4.8.2


v0.1.0 unpatched function error

It seems that libc.prx is not loaded
See this: https://github.com/InoriRus/Kyty/discussions/14


Making typed.List a typing Generic

This PR adds typing information to the typed List, so in can be used as a Generic in variable annotations, e.g.
from numba.typed import List

my_list:List[int] = List()
my_list.append(1)
my_list.append('a') # would be rejected by mypy

for i in my_list:
    a: str = i # would be rejected by mypy
    print(a)

While some of these would also be runtime errors, this PR allows List to be fully checked as a generic by mypy.
This is not related to checking Numba itself with mypy, this just allows users to check their typed.List code with mypy.
Besides setting List as a Generic, it also annotates the main methods (append, getitem, setitem), and the methods for protocols: Iterable[T], Sized, Container[T], and Collection[T].

@luk-f-a thanks for reporting this, I have added it to the review queue for now.

@EPronovost would you have time to review this PR?

@EPronovost thanks for the review. I fixed what you found, plus other similar things, eg other methods returning None which I hadn't annotated. I also completed those annotations that were incomplete, those where I had only annotated one input variable, like getitem, insert, index.

Interesting finding from typeguard after I annotated typed.List
======================================================================
ERROR: test_extend_empty_unrefined (numba.tests.test_typedlist.TestExtend)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vsts/work/1/s/numba/tests/test_typedlist.py", line 779, in test_extend_empty_unrefined
    l.extend(tuple())
  File "/home/vsts/miniconda3/envs/travisci/lib/python3.8/site-packages/typeguard/__init__.py", line 841, in wrapper
    check_return_type(retval, memo)
  File "/home/vsts/miniconda3/envs/travisci/lib/python3.8/site-packages/typeguard/__init__.py", line 665, in check_return_type
    raise exc from None
  File "/home/vsts/miniconda3/envs/travisci/lib/python3.8/site-packages/typeguard/__init__.py", line 663, in check_return_type
    check_type('the return value', retval, memo.type_hints['return'], memo)
  File "/home/vsts/miniconda3/envs/travisci/lib/python3.8/site-packages/typeguard/__init__.py", line 620, in check_type
    raise TypeError(
TypeError: type of the return value must be NoneType; got numba.typed.typedlist.List instead

Reproducer (it should always return None but in some cases it's returning self)
from numba.typed import List
  ...: my_list = List([1,2])
  ...: print(my_list.extend(List([1,2])))
  ...: print(my_list.extend(tuple()))
None
[1, 2, 1, 2]

@EPronovost I made some fixes following your latest comments, and also improved other things:

I had only partially annotated __setitem__, now it has full annotations with overloads.
in order to improve legibility by keeping signatures to one line, I created two type aliases.
I ran mypy on this file and added a few fixes to remove fails

added  # type: ignore[override]. Without this mypy complains that the method conflicts with the supertype MutableSequence (a problem with the contravariance required by Liskov's substitution principle).
in the annotation to extend I had to change the input from Iterable to Sequence because the method calls len(iterable) and iterable[0].

Related to this last point (running mypy), the file now passes basic tests and it could included in "level 3" files. However, I didn't actually change mypy.ini because I'd like to do it on your improved version of mypy.ini from #6222. What's the best way to do it? Wait for it to be merged or just copy and paste your version here?

Note that if we want mypy to consider these type annotations in users' projects we need to add a py.typed file https://www.python.org/dev/peps/pep-0561/#packaging-type-information

I don't really understand this PEP. Does it mean that without a py.typed file someone with a project that imports numba would not be able to make use of the typed.Listannotation when running mypy on their project?

Sorry for the delay. Yes to your above question.  There's relevant code in the mypy module finder here: https://github.com/python/mypy/blob/master/mypy/modulefinder.py#L180-L194

Sorry for the delay. Yes to your above question. There's relevant code in the mypy module finder here: https://github.com/python/mypy/blob/master/mypy/modulefinder.py#L180-L194

thanks. I've added the py.typed file in the latest commit. I'm still thinking how I could test that it's working correctly. Before I added py.typed I ran the following
from numba.typed import List

l:List[int] = List([1, 2])
a=l[0]
l.append(2)
reveal_locals()
reveal_type(l)

and the result was correct (even without py.typed). So I don't know how to check whether py.typed is making a difference now.

Test is failing because Protocol is also new on py3.8.

Test is failing because Protocol is also new on py3.8.

typeguard is failing for numba.tests.test_typedlist. On CI, the test slices didn't run any of the failing tests by "luck".

what's the solution? Did you run the full suite locally? Is it possible to expand typeguard to run on more slices?

typeguard is failing for numba.tests.test_typedlist. On CI, the test slices didn't run any of the failing tests by "luck".

what's the solution? Did you run the full suite locally? Is it possible to expand typeguard to run on more slices?

Test is failing because Protocol is also new on py3.8.

I tried a fix but made it worse. I'll build something better tomorrow.

Test is failing because Protocol is also new on py3.8.

I tried a fix but made it worse. I'll build something better tomorrow.

what's the solution? Did you run the full suite locally? Is it possible to expand typeguard to run on more slices?

Right, we will need to make more configs use typeguard.

what's the solution? Did you run the full suite locally? Is it possible to expand typeguard to run on more slices?

Right, we will need to make more configs use typeguard.

If we guard the protocol type for py3.8 only and use a string to refer to it, we can avoid changing the implementation of extend.
something like
if python_version >= (3, 8):
    class _Sequence(pt.Protocol[T_co]): ...

class List:
    def extend(self, iterable: "_Sequence"): ...

If we guard the protocol type for py3.8 only and use a string to refer to it, we can avoid changing the implementation of extend.
something like
if python_version >= (3, 8):
    class _Sequence(pt.Protocol[T_co]): ...

class List:
    def extend(self, iterable: "_Sequence"): ...

I think it's ok to do type-checks on only py>=3.8. I'm seeing that Protocol is essential.

I think it's ok to do type-checks on only py>=3.8. I'm seeing that Protocol is essential.

Thanks @sklam, I'll try what you suggested above. Funny you found a 5th option, I was considering the pros/cons of:

keeping extend untyped until 3.8 is the minimum supported version
changing extend such that it does not require len and getitem (I tried this yesterday and failed) so it can be types as Iterable
requiring typing_extensions as a dependency (cons: not worth adding a dependency for this)
typing with _Sequence but not with _Sequence[T], and _Sequence is Any for <3.8

Thanks @sklam, I'll try what you suggested above. Funny you found a 5th option, I was considering the pros/cons of:

keeping extend untyped until 3.8 is the minimum supported version
changing extend such that it does not require len and getitem (I tried this yesterday and failed) so it can be types as Iterable
requiring typing_extensions as a dependency (cons: not worth adding a dependency for this)
typing with _Sequence but not with _Sequence[T], and _Sequence is Any for <3.8


Doen not seem to work on PowerShell .ps1 and .psm1 files

Is your feature request related to a problem? Please describe.
It does not seem to work on PowerShell .ps1 and .psm1 files.
Describe the solution you'd like
I wish it would.
On C# it's awesome, thank you!

Fixed in latest version. However, the way Powershell files are classified, only some of the braces/brackets are colorized.

Confirmed to work on the braces, but not the parentheses nor brackets.


recipes-python/python-absl: new upstream release (0.15.0-2)

Signed-off-by: Cedric Hombourger<EMAIL_ADDRESS>Acked-by: Felix Moessbauer<EMAIL_ADDRESS>

Unfortunately, the 0.15.0-1 tag has been removed on Debian salsa, breaking all builds that use the meta-coral layer prior to this patch. By that, we urgently have to merge this patch, cherry-picked from #22 .

@fmoessbauer , do you know the exact commit-ish for the 0.15.0-1 tag?

btw, is it possible that someday the 0.15.0-2 tag is removed as well? Could we use the commit-ish instead of the tag?
Another question is that, such kind of removal of the old tags is allowed in Debian?

do you know the exact commit-ish for the 0.15.0-1 tag?

Just checked. It was 785d1ab505941df008608015d14d5b3ce6e30764

btw, is it possible that someday the 0.15.0-2 tag is removed as well? Could we use the commit-ish instead of the tag?

Hopefully not. It looks like they re-wrote the whole git history of the project, so pinning the commit-ish would also not have worked.

Another question is that, such kind of removal of the old tags is allowed in Debian?

AFAIK it is not common to rewrite the history on debian salsa (or remove tags), but salsa is not Debian. For Debian, just the things that are uploaded to the FTP servers are relevant, and there are very strict rules. But for salsa we basically have to hope for the best.

so pinning the commit-ish would also not have worked.

That could be an issue for our https://github.com/siemens/meta-iot2050, we are using the old tag, removal of it makes our 1.3.1 release not reproducible.
Could you ship me an old clone of the repo https://salsa.debian.org/python-team/packages/python-absl? I'd like to create the mirror just in case somebody need to reproduce the released image.

@BaochengSu I just sent you the mirror. But as just the packaging was changed, not the version of the sources, it is probably better to simply bump the version in meta-iot2050 as well (or transitively by bumping meta-coral).
IMO these tag changes are very rare, so if we really want to avoid them, we would have to fork or mirror all dependencies.

@BaochengSu I just sent you the mirror. But as just the packaging was changed, not the version of the sources, it is probably better to simply bump the version in meta-iot2050 as well (or transitively by bumping meta-coral).

Thanks for your help, I've cleared all the local build hence I am not able to create such kind of mirror by myself. Yep, we will bump the version in the master branch, however, for the released v-tag, there is requirement to reproduce the binary with the locked package version, unfortunately, this removed tag is in the freezing list.

IMO these tag changes are very rare, so if we really want to avoid them, we would have to fork or mirror all dependencies.

I think it's ok if this is rare case, forking or mirroring all dependencies is definitely not feasible.


assertion failure: spirv-opt: `def != nullptr'.

The message is similar to that of #2232, but the positions of the assertions seem totally different.
Running ./command in the attachment should reproduce the problem.
Brief summary: running spirv-opt (debug build) with arguments:
--fold-spec-const-op-composite --compact-ids --eliminate-dead-functions --eliminate-dead-branches --merge-return
leads to the following error (numbers have been replaced with _ to avoid duplicates):
spirv-opt: source/opt/constants.cpp:_: spvtools::opt::Instruction* spvtools::opt::analysis::ConstantManager::GetDefiningInstruction(const spvtools::opt::analysis::Constant*, uint__t, spvtools::opt::Module::inst_iterator*): Assertion `def != nullptr' failed.
SPIRV-Tools v2018.7-dev v2018.6-94-geaa351a5
Found using GraphicsFuzz.
7790.zip

Duplicate of #2220


fluent_rviz: 0.0.2-1 in 'foxy/distribution.yaml' [bloom]

Increasing version of package(s) in repository fluent_rviz to 0.0.2-1:

upstream repository: https://github.com/ForteFibre/FluentRviz.git
release repository: https://github.com/ros2-gbp/fluent_rviz-release.git
distro file: foxy/distribution.yaml
bloom version: 0.11.1
previous version for package: null

@wjwwood
Sorry, I missed adding the LICENSE file!
I will add it in version 0.0.3.


Republish after upgrade

Hi, I'm brand new to GitHub and AL-Go.   Our Sandbox environment upgraded this morning. When trying to run the action "Publish to Environment", I get an error that an new version was already synchronized.  Typically, I make a code change, complete the pull request and the app is automatically published, so this is the first time I'm redeploying.  I've tried to run the action "Increment Version Number" which runs without error, but doesn't actually increment version number.  I've tried the action to "Create Release", and I see my repoVersion updating settings.json, but the version number still isn't updating on the published app.  Can you tell me what the sequence of events are to republish, or do I have to fake a change and complete a pull request to fire off the "CI/CD" action?  Thank you!

Sorry for the delay in answering.
After modifying the version number you can run the CI/CD workflow to generate an app with the new version number.

Hi Freddy, this doesn't synchronize the numbers everywhere.  The version number updates in the release name and the .AL-Go\Settings.json file, but the artifacts folder and app name inside the artifacts folder doesn't update.  Can you advise?

This workshop step explains in details how versioning should work: https://github.com/microsoft/AL-Go/blob/main/Workshop/Versioning.md
and, when I run the increment version number - it creates a PR which changes all app.json files + the repoversion.
https://github.com/BusinessCentralApps/BingMaps.PTE/pull/233/files
Is this not what you see?
Did you only see the change in the .AL-Go/Settings.json file?

The issue about not running the CI/CD and creating a new artifact after creating a release or incrementing the version number can be tracked in Issue #555


IGNORE - opened by an accident

No worries, in any case I don't think you should use the font size as the line height. The top + bottom should be the same as the line height as specified in the OS/2 SFNT tables.
What problem were you having? I'm surprised we don't use top actually in the code...

Hey, iirc it was to mimic Fabric.js's specific behavior we had to replicate to match renders with an old renderer, but I could be wrong. It's been a while though, if we run into anything, we will let you know. Thanks for the message, though!


matcher issue

FAQ

[X] I have checked the FAQ and it didn't resolve my problem.

Announcement

[X] I have checked Breaking change announcement.

Minimal reproducible full config

Description
this is a fuzzy matcher bug
Steps to reproduce
    local score, matches = matcher.match('core', 'lua/cmp/core.lua', config.matching)
    print(score)
    print(vim.inspect(matches))

add these code in matcher_spec.lua, and run vusted ./lua/cmp/matcher_spec.lua
Expected behavior
can see a lua table to print
Actual behavior
0
{}
...

Additional context
No response

  matching = {
    disallow_partial_fuzzy_matching = false, -- default: true
    disallow_symbol_nonprefix_matching = false, -- default: true
  }

add this option is a temp workaround

Hi is this issue still present in my fork of nvim-cmp, magazine.nvim ?

If the matcher code had not been modified, the problem would still exist.
Later on, I will submit a PR and add an option to change the matcher, which can use the same fuzzy matcher as Telescope.

If the matcher code had not been modified, the problem would still exist.
matcher code has been modified quite a bit to fix bugs (#1900 & others) and to add caching (#1980)

matcher code has been modified quite a bit to fix bugs (#1900 & maybe others) and to add caching (#1980)

When I have time, I will go test it and leave a message on this issue once I have the results.


Use Alpaca template with Phi-3

Hello!
Is there a way to use the Alpaca template with Phi-3?
I'm struggling a bit to understand the documentation, I was wondering if anyone can help me understand how to use it here and define the proper mapping:
from unsloth.chat_templates import get_chat_template

tokenizer = get_chat_template(
    tokenizer,
    chat_template = "phi-3", # Supports zephyr, chatml, mistral, llama, alpaca, vicuna, vicuna_old, unsloth
    mapping = {"role" : "from", "content" : "value", "user" : "human", "assistant" : "gpt"}, # ShareGPT style
)

def formatting_prompts_func(examples):
    convos = examples["conversations"]
    texts = [tokenizer.apply_chat_template(convo, tokenize = False, add_generation_prompt = False) for convo in convos]
    return { "text" : texts, }
pass

from datasets import load_dataset
dataset = load_dataset("philschmid/guanaco-sharegpt-style", split = "train")
dataset = dataset.map(formatting_prompts_func, batched = True,)

Also, a few days ago the Phi-3 Colab notebook was different and it seemed to be using the alpaca template, why did it change?

@eugeniosegala Oh sorry on the issue. For Alpaca, take our Llama-3 one here: https://colab.research.google.com/drive/135ced7oHytdxu3N2DNe1Z0kqjyYIkDXp?usp=sharing then change the model name from unsloth/llama-3-8b-bnb-4bit to unsloth/Phi-3-medium-4k-instruct-bnb-4bit or unsloth/Phi-3-mini-4k-instruct-bnb-4bit

Thank you @danielhanchen !


internal/runner: Implement LRU/"AutoSession" mechanism

It would be nice to have an "auto session" mechanism, particularly for the run command.
Basically, the gRPC server would just hold a pointer to the most recently used session, and when this proto flag (maybe called AutoSession) is provided on an initial request, it will use this session, or create a new one if there is none.
This does potentially create a security concern, because a potential attacker can now get access to a session and all of it's variables without needing to know it's session ID.

@sourishkrout thoughts?

@sourishkrout thoughts?

Agreed, we should start with something simple. Like you suggested, any security concerns can be mitigated by not making it default behavior yet.


Enable local caching for Jenkins slaves.

Currently each bazel build will download workspace dependencies. Same thing for go deps.
Note that I tried using a NFS mount point on each slave, but bazel just hangs writing a lock.
My next try will be to use have a daily jobs that persist each module bazel cache and mount it using aufs on each slave. This would require changing the slave entrypoint and probably using a NFS in conjonction with aufs mount.

A new idea is to use multiple node in our k8s cluster and to mount a SSD disk on every node. Using NodeSelector we can have as much build nodes as we have nodes. Due to configuration limitation in kubernetes-plugin we might have to wait until pod affinity is GA in k8s.

This should speed up build enough. We can re-open if more needs to be done.


Hung task process killer

Sometimes Tasks can hang, so we should have a way to detect that and kill the task if it's been running too long.    This is related to https://github.com/google/turbinia/issues/559, but can be implemented independently with a simple timer if don't have a heartbeat mechanism.

Fixed by #812 .


chore: update dependency typeorm to v0.3.6

BREAKING CHANGE: Connection API is deprecated and removed.

Why don't you merge and provide support for typeorm v0.3.6?

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

41 of 105 (39.05%)  changed or added relevant lines in 12 files are covered.
8 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-38.0%) to 62.037%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/datasource/DataSourceManager.ts
8
9
88.89%

src/errors/DataSourceNotProvidedError.ts
1
2
50.0%

src/commands/seed.command.ts
0
62
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/errors/DefaultSeederNotDefinedError.ts
1
50.0%

src/errors/SeederImportationError.ts
1
50.0%

src/commands/seed.command.ts
6
0%

Totals

Change from base Build<PHONE_NUMBER>:
-38.0%

Covered Lines:
109

Relevant Lines:
181

💛  - Coveralls


tsd duplication error

Hi,
I am using ag-grid.tsd and it has declaration for require function declare function require(name: string): any; (line 1467).
The conflict is with "awesome-typescript-loader" library, it's runtime.d.ts.
Here is a screenshot of the error:
http://prntscr.com/9thxro
I have also opened issue in DefinitelyTyped repo. Here is a link:
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/7738

did you take ag-grid.tsd from Definitely typed repo, or the one that comes with ag-Grid distribution?
also, i'm confused, is it a problem with the grid or awesome-typescript-loader? if the latter, then nothing i can do???

@ceolter Looks like the typings in DefinitelyTyped repo are not updated, maybe kill that file with a note that says "just use the typings in the distribution"?

looks like own issue that' snow solved, closing


Should category be case insensitive?

Probably more of an issue when multiple people are working on the style guide, if one person references atoms and another Atoms, 2 links will appear in the navigation (expected?) but both link to the same page atoms.html - maybe parsing the category could be case insensitive.
Or maybe this can be a known "issue", just thought I'd raise in case you wanted to fix!

May be resolved with #36. Requires checking.


Missing OCI configuration file

When I run a playbook, oci-2024-certified-networking-professional/design-and-deploy-oci-virtual-cloud-networks-vcn/examine-vcnsubnets-characteristics.yml, I get the following messages (reformatted):
fatal: [localhost]: FAILED! => {
  "changed": false,
  "msg": "Could not find config file at /home/douglas/.oci/config, please follow the instructions in the link to setup the config file https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm",
  "troubleshooting_tips": "Refer to troubleshooting guide https://docs.oracle.com/en-us/iaas/tools/oci-ansible-collection/latest/guides/troubleshooting-guide.html"
}

Procedure to create file has been documented in "Create OCI Configuration File".


Update mastodon extension

Description

Drop redundant pnpm-lock.yaml file since we already have package-lock.json
Add a new action Add File From Clipboard to Add Status command

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

@LitoMore  I've reviewed the changes and everything looks good to me. Thank you!


Firefox can't preview nodes on the first dragging

Firefox is not rendering the node preview on the first time you drag a node from the left panel to canvas.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27362940-firefox-can-t-preview-nodes-on-the-first-dragging?utm_campaign=plugin&utm_content=tracker%2F18331319&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18331319&utm_medium=issues&utm_source=github).

Oh, on microsoft edge, dragging doesn't even work.

Fixed.
Edge is a lost case.


Move GPyOpt optimizer to emukit

This removes the dependency on GPyOpt by moving the GPyOpt acquisition optimizer functionality into emukit.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

I missed a GPyOpt usage in the BayesOpt acquisition functions

Codecov Report

Merging #201 into master will decrease coverage by 0.4%.
The diff coverage is 85.63%.

@@            Coverage Diff             @@
##           master     #201      +/-   ##
==========================================
- Coverage   89.47%   89.07%   -0.41%
==========================================
  Files         105      107       +2
  Lines        2861     2975     +114
  Branches      292      304      +12
==========================================
+ Hits         2560     2650      +90
- Misses        249      266      +17
- Partials       52       59       +7

Impacted Files
Coverage Δ

...ptimization/random_search_acquisition_optimizer.py
100% <100%> (ø)
:arrow_up:

..._optimization/acquisitions/expected_improvement.py
98.41% <100%> (+0.16%)
:arrow_up:

...ore/optimization/gradient_acquisition_optimizer.py
100% <100%> (ø)
:arrow_up:

emukit/core/optimization/acquisition_optimizer.py
78.12% <100%> (-6.73%)
:arrow_down:

...ization/acquisitions/probability_of_improvement.py
96.66% <100%> (+0.51%)
:arrow_up:

emukit/core/optimization/__init__.py
100% <100%> (ø)
:arrow_up:

...optimization/multi_source_acquisition_optimizer.py
90.62% <100%> (ø)
:arrow_up:

emukit/core/optimization/optimizer.py
74.66% <74.66%> (ø)

emukit/core/parameter_space.py
96.61% <80%> (-0.45%)
:arrow_down:

emukit/core/optimization/context_manager.py
92.59% <88.23%> (+4.35%)
:arrow_up:

... and 5 more

Continue to review full report at Codecov.

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

This PR now also modifies the BO acquisition functions to remove GPyOpt dependency


My value is stored as a number. Why does it become a string after being taken out with .get()?

key = 'id'
value = 111
await redisdb.set(key, value)
res = await redisdb.get(key)
print(res, type(res))

Is there a way to keep the number type?
Thanks

As expected: https://github.com/aio-libs/aioredis/blob/8c6cb22e1606d75f15066d0e3725d9505e24b90b/tests/string_commands_test.py#L220-L234
All in all, you can do something like this (from django-async-redis):
import pickle
from typing import Any

from django.core.exceptions import ImproperlyConfigured

from .base import BaseSerializer

class PickleSerializer(BaseSerializer):
    def __init__(self, options):
        self._pickle_version = -1
        self.setup_pickle_version(options)

    def setup_pickle_version(self, options):
        if "PICKLE_VERSION" in options:
            try:
                self._pickle_version = int(options["PICKLE_VERSION"])
            except (ValueError, TypeError):
                raise ImproperlyConfigured("PICKLE_VERSION value must be an integer")

    def dumps(self, value) -> bytes:
        return pickle.dumps(value, self._pickle_version)

    def loads(self, value) -> Any:
        return pickle.loads(value)

Don't worry about base serializer. Nothing is actually in there.
What you can do is add a util function or use some kind of class as a helper to decode: https://github.com/Andrew-Chen-Wang/django-async-redis/blob/7aae00e632d8677738d77a1e717ba53b5c5c0143/django_async_redis/client/default.py#L354-L367

Bit late but worth pointing out that Redis doesn't really have a concept of integers as far as I've determined. Anything involving integers will be converted to string automatically. Using set only stores "strings", so if something is an integer, it gets converted before being stored, hence why your returned value from get() is now a string. You will just have to know which keys will be a pure integer and then cast them to a Python integer.
Side note: I wouldn't recommend using Pickle for this kind of thing, seems a bit unnecessary. Just test your key for whether it returns None (meaning it doesn't exist) or convert to int in your code when it does.

@Andrew-Chen-Wang but what about other data types?
For example model data types, etc.
How Django understand that what type of data we have stored in cache?

@MojixCoder That's the point of pickling; Python will convert whatever you've got to a byte stream. When deserializing, or unpickling from the cache, we're "unwrapping" that bytestream to have your original object. That's why you can cache model objects if you've ever used django-redis.

@Andrew-Chen-Wang Pickling is working great. Thanks for your early response and help.


energy storage is insanely high

So I really like this mod and it looks awesome, and started to add it to my setup to check it out, when I reached the Simulation Chamber step to keep it training, the moment I put the machine it completely took over the energy grid and other machines barely get any power (I didn't realize it for a while why they stopped working), turns out it was trying to fill the 256M energy storage and taking every energy bit... can a limiter or something be implemented to help with this situation? cause to give you an example, my model went from %12 to around %21 using less than 1m RF, so all of that energy is probably not needed (at least in my use case for a cow model), I really wish the storage was something like 1m or at most 5m, I had to cut the Simulation Chamber off the grid manually and seems like the 15m that got charged are gonna last a long time with how slow it moves tbh
I love the mod aesthetics tho :D

What modpack did you experience this issue on?
Do note some modpacks, including All the Mods 7, have configuration changes, one of which increases the Simulation Chamber battery capacity to 256 MFE instead of the default value of 2 MFE.
To resolve this, go into the config folder of the instance and reduce the value of Sim Chamber Power Cap to a more reasonable value.
The relevant line in the default config is:
    I:"Sim Chamber Power Cap"=2000000

Oh yeah it's ATM 7, I thought it was the default of the mod's, sorry about that I will check the modpack's config files


SUPPORT-6304 -  changed the log level to info

SUPPORT-6304 - changed the log level to info

Thank you, @garima-camunda . Your change is merged.
I reduced the log-level of the filter to debug and added more information how to get the debug messages into the console.
And I increased the version and set the Camunda-version to 7.10


Update React-Redux template to use TypeScript instead of JavaScript

We used npx create-react-app --typescript and then updated the current React-Redux template to use the TypeScript files instead of the JavaScript files

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

@martinpe36 the PR checks are failing on this, could you resolve it so that they pass? To test it locally just do .\build.cmd.

Hi, we are closing this PR because the source code has all been moved to https://github.com/aspnet/AspNetCore/tree/master/src/Templating so that all the ASP.NET Core source code is in one place. If you are interested in continuing this contribution, we recommend you log a new issue in https://github.com/aspnet/AspNetCore/issues with details and if the proposal is accepted, send a new PR so the new repo. Sorry for any inconvenience!


"Gesamtes Bundesland" is not visible (EXPOSUREAPP-8437)

Description
This PR adds the ability to select a whole "Bundesland" for the local incidence cards, this is accomplished by selecting the state and using the "Gesamtes Bundesland" list entry at the top
Screenshots

Note
As there are no translations as of yet the top entry might be empty if your device is not set to german
Steps to reproduce

Add a new local incidence card
Select a State
Select "Gesamtes Bundesland"

Add whole Bayern then Aichach and app get stuck in this state:

Should both be fixed with the changes to stableid


duplicate ClusterRole in knative-v1.12.1/eventing-kafka-post-install.yaml

Describe the bug
A clear and concise description of what the bug is.
The released file eventing-kafka-post-install.yaml contains the ClusterRole knative-kafka-controller-post-install twice.
Once in line 15 and another time in line 320.
Tools like the kubectl_file_documents data of the terraform provider gavinbunney/kubectl will fail with:
Error: duplicate manifest found with id: /apis/rbac.authorization.k8s.io/v1/clusterroles/knative-kafka-controller-post-install

Expected behavior
A clear and concise description of what you expected to happen.
All resources within the yaml-manifest are unique.
To Reproduce
Steps to reproduce the behavior.
see file
Knative release version
knative v1.12.1
Additional context
Add any other context about the problem here such as proposed priority

This is a duplicate of https://github.com/knative-extensions/eventing-kafka-broker/issues/3316, there is a PR to fix this https://github.com/knative-extensions/eventing-kafka-broker/issues/3533

/triage accepted


Error after login

On login after can't navigation to home page only black screen showing and in debug object error

what's the detailed error?

In your hosted sql project login after seeing
On Thu, 14 Nov, 2024, 2:46 pm neo.zhu, @.***> wrote:

what's the detailed error?
—
Reply to this email directly, view it on GitHub
https://github.com/neozhu/CleanArchitectureWithBlazorServer/issues/800#issuecomment-2475805853,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APMVU4QF2LQMHXRPPUSNAJL2ARS6LAVCNFSM6AAAAABRYD6NU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVHAYDKOBVGM
.
You are receiving this because you authored the thread.Message ID:
@.***
com>

You can't navigation after login to home page
On Thu, 14 Nov, 2024, 2:47 pm SUNIL SONI, @.***> wrote:

In your hosted sql project login after seeing
On Thu, 14 Nov, 2024, 2:46 pm neo.zhu, @.***> wrote:

what's the detailed error?
—
Reply to this email directly, view it on GitHub
https://github.com/neozhu/CleanArchitectureWithBlazorServer/issues/800#issuecomment-2475805853,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APMVU4QF2LQMHXRPPUSNAJL2ARS6LAVCNFSM6AAAAABRYD6NU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVHAYDKOBVGM
.
You are receiving this because you authored the thread.Message ID:
@.***
com>

architecture.blazors.app The domain link has significant network latency, which is causing the issue you mentioned some time. I think you can ignore it

https://localhost:44375/pages/authentication/login?returnUrl=
Error: post request to https://localhost:44375/pages/authentication/login?returnUrl= returned non-HTML content of type application/problem+json.
Error Page (page "/pages/authentication/login")( Row(135):   var result = await SignInManager.PasswordSignInAsync(Input.UserName, Input.Password, Input.RememberMe, true);

I don't know. I can't reproduce your problem here


Failed to do SSD post-processing with road-segmentation-adas-0001

Hello @dsmertin
I have tried some scenarios and has done some changes in code.
road_segm_postproc.txt
Can you please check once what is the issue while adding colors?
and output is:

Thanks
Pulkit

Thanks @dsmertin and @mliu2020
I have done my road segmentation.
Thanks for all your support :)


group policy settings  is available in win 10 pro

I just added extra line,  because i have applied group policy settings  in windows 10 pro and enterprise.
Thanking you

@nenonix  Copy editing is needed for this PR. Thanks.

@RAJU2529 Please follow-up with suggested copy editing changes. Thanks.

Looks like this is ready for final review (maybe author & manager Daniel Simpson can verify this).

@dansimp A community contributed PR is available for review. Thanks.

@Dansimp Any updates with the PR? Thanks.

@Dansimp A community contributed PR is pending for review. Thanks.


import DataFunctionArgs from @remix-run/node instead of @remix-run/server-runtime

Import DataFunctionArgs type from @remix-run/node instead of @remix-run/server-runtime to maintain consistency with the rest of the app.

I believe they are deprecating DataFunctionArgs in favor of LoaderFunctionArgs and ActionFunctionArgs
https://github.com/remix-run/remix/pull/8089

Never mind. I see you've addressed it in #573


Etcd periodic cleaner

need to use lease for deleting etcd data esily when job ended

i ran a pipeline and after the pipeline completion i looked at the etcd and i saw the job in job results and in job status.
looks like the etcd cleaner dosent really work as needed

pipeline clieaner should clean status and results


Upload scala style output file if failure

Why are the changes needed?

Help to debug
How was this patch tested?
Pass CI

cc @pan3793


Nightmare installing pip for Python 3

Someone please be a good Samaritan here :0
So I saw @modrzew comment on one of the issues here saying that Pokeminer runs much smoother on Python 3.
So 1st: Which Python? 3.0.0? 3.0.1? or like 50 other releases after 3?
I've uninstalled 2.7, and tried installing 3.0.0 AND 3.0.1 and followed gprez's guide on the installation.
https://pip.pypa.io/en/stable/installing/ says that I simply need to upgrade pip, since it comes with Python 3.
Regardless, I've tried upgrading AND installing it from scratch multiple times.
With Python 2.7 I just BSed my way through it until it worked.
When I try to run get-pip.py the cmd flashes, but I was able to record it and take a still.
It randomly shows the 2 different errors in the pictures.
Someone please let me know how to actually install pip in the case, because pip website just gives command prompt commands without explaining where or how to run them, or what to do when they don't work.
Also, when I run "python -m pip install -U pip" in Python directory, it says "no module named pip"

First of all. Extract all those files from the zip-file to a folder. Then open cmd in that folder (shift + right click, "Open command window here") where you extracted the files and type python get-pip.py.
You can use the latest Python 3 version.
Protip: take screenshots, no need for pics taken by phone.

I have done that many times. I'm not sure what you mean by zip: python zip or pokeminer zip?
But just in case, I did both, here you go, Python 3.0.0 and pokeminer, here are the errors, same thing :(

Okay, I actually managed to install the latest python version properly and update pip to 3.1.2 or something like that, now when I run the pip install -r requirements.txt in the pokeminer folder it gives me this! Something wrong with permissions! What do I do?

Installed last version of python and pip, and here's what I get when installing requirements for pokeminer.
Please someone explain :'(
I'm so confused, could this have something to do with admin rights? I made myself admin already!

you do not like googling?
http://www.pandastack.com/unable-to-find-vcvarsall-bat-how-to-fix-on-windows/

@Aiyubi Sorry haha
I did Google it, found similar issues, and yeah I installed the C++ Compiler 14 already, there were a couple more errors, but I figured it out.
I'm just really new to Python, that's why I keep creating new issues here.
Anyway, hard work and BSing my way through it payed off! haha
I just don't know how the Pokeminer runs smoother on Python 3 than on 2.7, maybe all this was for nothing haha

I didn't say it runs smoother. I said that Python 2.7 has not been supported (i.e. developed) for 6 years already, and all new things I want to use in pokeminer are in Python 3. They may not matter that much to the end user, but they matter so, so much to the developer.
Moreover, you should stick to the most recent version of Python 3 - right now it's 3.5. I've been running it for long time already without bigger issues.