Best practice with back swipe gesture

Obviously, without Animations, SwiftUIRouter does not provide native-like back swipes in the navigation hierarchy. Do you know any good way to replicate those edge pan swipes to feel native?
In iOS, swipe is a really important feature and ignoring it is not really an option. That being said using path-based routing offers great benefits over the traditional routing model in SwiftUI. Combining both would be ideal.
Currently, I am using a somewhat hacky solution which is really not nice at all compared with the native feel of back swipes:
struct DefaultBackSwipeGesture: ViewModifier {
    @EnvironmentObject private var navigator: Navigator

    @GestureState private var dragOffset = CGSize.zero

    func body(content: Content) -> some View {
        content.gesture(DragGesture().updating($dragOffset, body: { (value, state, transaction) in
            if(value.startLocation.x < 20 && value.translation.width > 100) {
                navigator.goBack(total: 1)
            }
       }))
    }
}

extension View {
    func defaultBackSwipeGesture() -> some View {
        return modifier(DefaultBackSwipeGesture())
    }
}

as well as the animation ViewModifier as in your example in the docs.
This leads to a fake swipe where the animation transition to the last View happens once you have done a swipe far enough starting from the left edge.
This is obviously not a real swipe, which means you can't stop at some point or swipe (drag) back and forth a little bit without releasing your finger. It just starts the animation at some points and that's it.
If you don't look closely that's enough. But it's certainly not the best ever user experience. Is there a way to combine the real NavigationView back swipes with this library at all? I imagine replicating it from scratch is too much work for too little outcome. Can we somehow reuse/abuse NavigationView exactly for that?

Sad to say I'm unaware of a method or trick to implement something that fully mimicks iOS' native swipe-to-go-back UX. The big challenge here is that SwiftUIRouter is unable to render both the current and previous path simultaneously.
For one app I did implement something that's somewhere between the native UX and your example: When swiping from the left side, the view moves along with the user's finger. Except instead of revealing the previous view - like in iOS - it just reveals a black background. When the user's finger reaches a certain point it commits the navigation. (However, rather than doing navigator.goBack() like in your example, my app does navigator.navigate("..") to go up the path hierarchy, rather than back in history). And the animation as described in the Animating Routes doc takes over.
It's not 100% the same as one might expect from an iOS app - but considering the app deviates a lot from iOS' default UI design anyway, it did the job. 😛
At one point I did come up with the idea to potentially use two Router views to re-create the NavigationView and potentially render two paths simultaneously. But so far have yet the time (and desire) to work out the idea.
I'd love to see more concepts and implementations from other developers. If anyone has better ideas, please share them! 😄


processing dataset

Could you explain how your dataset is processed？Thanks

Except for MIND, the datasets are inherited from KGIN and KGAT.
For MIND, I perform user-based sampling and 5-core filtering based on the raw data, and referring to the KG provided in https://github.com/WHUIR/KOPRA to construct the KG

closed due to inactiveness


Form submit when action is a relative path

http://example.com/test/form.html
<form action="some_relative_path"

browser.submit(my_form)

requests.exceptions.MissingSchema: Invalid URL u'some_relative_path': No schema supplied. Perhaps you meant http://some_relative_path?

Please allow submitting forms fully automatically, resolving the relative action path. This should be resolved to http://example.com/test/some_relative_path

Oh this isn't so bad with urlparse.urljoin
browser.submit(urlparse.urljoin(my_page.url, my_form['action']))

Hi Oleh. Thanks for your message. Let me take a look.
Ah I remember this. The challenge is the form object doesn't know the url it came from. As a convenience I added a second parameter to browser.submit to be used to resolve action:
page = browser.get(url)
form = page.soup.select('form')[0]
browser.submit(form, page.url)

Example https://github.com/hickford/MechanicalSoup/blob/9df83dc607dad5d72bf0fb3c432d34253c43828a/example.py#L24
This deserves a mention in the docs.

page.url is not good, because action URL is different.

Pardon that wasn't clear, it does a urljoin on page.url and action. Check the code https://github.com/hickford/MechanicalSoup/blob/9df83dc607dad5d72bf0fb3c432d34253c43828a/mechanicalsoup/browser.py#L30

Indeed it works exactly the same. Thanks and sorry.


Update version from 0.0.133 to 0.0.134

This is an automated version-update on pyproject.toml.
The workflow was triggered by a succesfull pull request from branch:
With push event SHA of: 95c95cd52a74e052bc9fcb0d2b0083500cca238c
This action is performed by the Github Action: publish.yml after every accepted pull request. When finished,
this will have published the latest patch of the Extractable codebase to Pypi so it can be pip installed.

updated version in pyproject.toml from 0.0.133 to 0.0.134


Added a dashobard

I created a dashboard for Grafana, it's not perfect or production ready and still needs to be worked on but, better than nothing.

Absolutely understandable.


SPARKC-426: Allow POJOS to be set as NULL

Previously a null would hit trigger a CannotConvert error before
getting to the "nulls allowed" check in gettable mapped data. Now we
attempt to pass through the null and catch the exception if we cannot
cast the Null into the acceptable type.

Build against Scala 2.10 finished with success

Build against Scala 2.11 finished with success


Document how to move a subnamespace

Relates to #1045
This PR adds documentation in the howto on how to move a subnamespace within the hierarchy tree.

Thanks @johnpemberton! Can you please sign the CLA?
/assign @rjbez17
/assign @adrianludwin
/ok-to-test
Overall this looks good but some of the wording may need to change to keep with the same vocabulary we use elsewhere.

I signed it

I signed it

Hmm, the k8s-ci-robot still isn't seeing it - you followed all the instructions in the "Some checks were not successful" notice at the bottom of this PR?

Also after you've addressed the comments, can you please squash all your commits into one? (Or before you've addressed them - your choice). We try to have one commit per PR. Thanks!

Missed part of the signing steps.   Should all be good now.  Will hopefully get the changes made to the PR in the next few days.

sgtm!
On Thu, Aug 27, 2020 at 4:39 AM John Pemberton<EMAIL_ADDRESS>wrote:

Missed part of the signing steps. Should all be good now. Will hopefully
get the changes made to the PR in the next few days.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes-sigs/multi-tenancy/pull/1046#issuecomment-681795006,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE43PZEZP4XYRQLRBABX2GDSCYLUVANCNFSM4QKR2H3Q
.

Any update on this @johnpemberton?

I believe this is now covered by #1302 - John, please re-open if you think that doesn't work for you!
Cheers, A
/close


demo, update client.tsp

I used commit https://github.com/Azure/azure-rest-api-specs/pull/26790/commits/52da00d02a866a9d169cbcd9b64e82980b38fd23, where LRO operation and model is not yet commented out, for test purpose.
The generated code will not have LRO at operation or BatchImageGenerationOperationResponse

Thank you for this! I will incorporate it!


[stdlib] Fix an error in max() method documentation

Hi Swift community!
What's in this pull request?
In stdlib/public/core/SequenceAlgorithms.swift.gyb, in max() method’s documentation comment, the explanation says “This example finds the smallest value in an array of height measurements.” But, it should be “the largest value”. The commit in this pull request fixes this documentation error.
Reference
Apple's Swift Standard Library online documentation
Thank you!

@harlanhaskins Can I please ask you to review this PR?

@swift-ci please smoke test

Thanks @keitaito!

Thanks @harlanhaskins for running the smoke test, and thanks @natecook1000 for merging! 😊


[WFLY-16604] Upgrade Batavia to 1.0.15.Final. With this upgrade there…

… is no need to exclude transformed source files that are included in the source directory.
https://issues.redhat.com/browse/WFLY-16604

Thanks @jamezp !


[move-prover] Generalize smoke test feature & custom error messages.

This PR generalizes the smoke test feature and re-implements the existing aborts_if_true smoke test as a transformation.

There is a new processor stackless-bytecode-generator/src/test_instrumenter.rs. Moving forward, we should be able to add more tests of this kind to this file without needing to change much anywhere else. This includes tests which rewrite specs, add specs, or rewrite bytecode.
The feature is based on some new information about spec conditions added to the environment. The ConditionInfo type allows to specify the error message to print if a condition fails and whether a condition is  negative. A negative condition is expected to fail for the test to pass. The boogie wrapper deals with reporting errors if negative conditions succeed.
The new ConditionInfo has been also used to streamline error messages for regular condition failures (e.g. if an aborts_if fails, it not longer prints "a post condition might not hold", but a more concrete error). This lead to lots of updates on baseline files.

Motivation
Spec testing (Kevin's intern project)
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Existing tests
Related PRs
NA

@bors-libra r=kkmc

:pushpin: Commit 9d5f88b has been approved by kkmc

:hourglass: Testing commit 9d5f88b6e6f2289412a45c1ebe2e8f7b7f094479 with merge c8216eccfd858ff39cf7b563a1863f35b403b918...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: kkmc
Pushing c8216eccfd858ff39cf7b563a1863f35b403b918 to master...


Control candlestick width

Hi,
Fantastic charting library by the way!
Is it possible to control the width of a candlestick? My use case is that I am using the candlestick chart type to display a renko brick chart.
Ideally, the height of my bricks (which is calculated prior to rendering) would be the same as the width, giving a more "typical renko brick" appearance.
Thanks

Merged to #272

If merging this with issue #272 is to suggest that renko should be implemented as a plugin, I ask for reconsideration since renko always have a certain width. Namely if I redefine
optimalCandlestickWidth(barSpacing,pixelRatio) {
  return Math.floor(pixelRatio*(barSpacing+1));
}
``` then my candle series plots like renko. Seemingly, less code is needed to add a "renko" option to `CandleStickStyleOptions` than to create a new plugin, and of course also it would benefit everyone who wants to use renko out-of-the-box.


Checkpoint not created in blob container

Operating System: Azure Function / Azure IoT hub
Python Version: 3.6

Describe the bug
Checkpointing when reading Azure Iot hub events is not created in blob container
To Reproduce
Steps to reproduce the behavior:

create a http trigger Azure function that reads from an IoT Hub events, code here.
specified container name as CONTAINER_NAME = "path/to/my-container"
start the azure function and check the blob: empty blob

Expected behavior
Azure function can't store the current checkpoint when the path to a container in a subfolder, I created one instead as CONTAINER_NAME = "myContainer" and it worked.
I was looking for the problem for two days and could not find out, is this behavior already known? I couldn't find any restriction in naming containers in the doc

Thanks for the feedback, we’ll investigate asap.

@xiangyan99 seems that the container where I created my folder was Private in the 'Public access level', I tested one with 'Public access level' set to Container and it worked.

If you don't mind, I will close the issue?

yes and thank you


New main branch SDK doesn't use the intended user agent string format

Prerequisites

[*] Have you tested the operation in the API directly? (Yes, this isn't an OAS issue)
[*] Do you have the latest SDK version? (Yes, this is a bug found in the code, not from using the library)
[*] Review compability matrix (no compatibility issue found)

Describe the bug
In https://github.com/meraki/dashboard-api-go/blob/main/sdk/api_client.go, line 85 reads
c.SetUserAgent("MerakiGolang/2.0.4 Cisco")
This UA string has a couple of issues.
Expected behavior

It should not have 'Cisco' in it (the equivalent Meraki Python SDK doesn't include 'Cisco' and we want to follow that pattern)
If the user doesn't supply any additional string, then it should be formatted go-meraki/{equivalent Meraki OAS revision number}, e.g. go-meraki/1.47.0
The library should allow a user to name their own application/provide their own string, such as ApplicationName VendorName (similar to the python SDK, see line 86 here and line 75 here)
It should include the user's self-defined UA string (e.g. ApplicationName VendorName) so that the full UA string submitted ends up following this format:

go-meraki/1.47.0 ApplicationName VendorName where 1.47.0 is the dashboard API revision for which the library is built
Screenshots
N/A
Environment (please complete the following information):
N/A
Thanks in advance for helping with this.

Note that the community version of the go SDK already uses and should continue to use golang-meraki/* to differentiate.

UserAgent is now custom.
And with format golang-meraki/* at default

And with format golang-meraki/* at default

This doesn't sound like the right solution, based on my report.


Manual setup time zone for calendar

I set up CalDAV calendar for my work events. All events I get is in UTC time. But I live in UTC+8 and calendar settings is set to UTC+8.
The problem is it's in closed network so I don't think it's possible to debug. Also I don't want to break NDA and any data leaks.
So my request is to add setting for calendar to set time zone manually (time diff). Is it possible?
Thank you!

Also I think it will be useful for "Full note" calendars: if you traveling it's tricky to change all events time when you change your time zone of living. So it will be more confortable to change just time zone of calendar to move all your events.


Manual pre-deploy checklist for release 1.10.0

This is the manual pre-deploy checklist for version 1.10.0.  Refer to the Google Doc for items to check in each group. This deploy is staged on http://beta.hydroshare.org
Please if your name is below check the box next to it when you have signed off on the functionality.
Please finish checking before May, 3rd, 2017
New Features and Enhancements

[ ]  #1955 Resource access control (undo permission) [Mauriel] @mauriel133
[x]  #74 Resource creation revamp [Mauriel] @mauriel133
[x]  #1988 File icon for Ref TS [Mauriel] @mauriel133
[x]  #1996 Navigation Bar logo [Mauriel] @mauriel133
[x] #1900 Inline JS refactor [Mauriel] @mauriel133
[x] #1977 Composite resource type -default resource type [Mauriel] @mauriel133
[ ]  #1976 File type keywords [Pabitra] @pkdash
[ ]  #1975 Message for missing file type metadata [Pabitra] @pkdash
[ ] #1953 Composite resource fixes [Pabitra] @pkdash
[ ] #1687 Resource File API [Alva] @alvacouch
[ ] #2000 Fix for bag flag [Alva] @alvacouch
[ ]  #2025 File URLs bug fix [Alva] @alvacouch
[ ]  #1999 Resource file API bug fix [Alva] @alvacouch
[ ]  #1566 File quota [Hong] @hyi
[ ]  #1815 Model program bug fix [Jeff S] @jsadler2
[ ]  #1924 NetCDF metadata editing in file [Tian] @gantian127
[x]  #1933 Web App Resource icon [BYU] @zhiyuli
[ ]  #1947 Discovery of non-core meta [Zhaokun] @xuezhaokun
[ ] #1871 REST endpoint for listing resources based on spatial coverage [Mark] @aphelionz
[ ] #1998 Discovery suppress finding obsoleted resources where a new version exists @xuezhaokun
[ ] #1973 Add about to header and footer @mjstealey See also #2065

Help documentation on pages.Hydroshare.org

[ ] General spot check that documentation is consistent with functionality [Christina] @ChristinaB
[ ] Documentation for resource creation revamp per #74 [Liza]
[ ] Documentation for Access control undo per #1955 [Liza]
[ ] Documentation for Multidimensional resource and file type metadata editing per #1924 [Liza]

General functionality

[x] Profile and Homepage [Mauriel] @mauriel133
[ ] Access control  [Pabitra] @pkdash
[ ] iRODS connections [Hong] @hyi
[ ] Signing up, signing in and signing out [Michael] @mjstealey
[x] Resource creation from iRODS with a file larger than 1GB [Ray] @rayi113

Resources (Note: Due to #74 and #1900 each resource type creation and resource editing needs to be tested with bit more attention)

[ ] Time Series  [Jeff H] @horsburgh
[ ] HIS time Series [BYU] @danames
(Test that it is not possible to create HIS time series) --- HIS option is missing from creation page
[ ] Geographic Raster [Tian] @gantian127
[x] Geographic Feature [BYU] @danames
[ ] Multidimensional (NetCDF) [Tian] @gantian127
[ ] Model Program [Tony] @Castronova @goodalljl
[ ] Model Instance [UVA] @goodalljl
[ ] SWAT Model Instance [Purdue] @vmmerwade [apps]
[ ] SWAT Model Instance [UVA] @goodalljl [creation, update, and new versions]
[ ] MODFLOW Model Instance [UVA] @goodalljl
[x] Web App [BYU] @danames
[x] Script [BYU] @danames
[x] Collection [BYU] @zhiyuli
[ ] Composite [USU] @dtarb Tested but discovered problems. See #2059, #2060, #2062, #2063, #2064

Below are the issues I've found and will be addressing while doing this pre-deploy checklist.

Found remains of merge conflicts

Quota holder text is unreadable

Change quota holder button style

Use quota holder to render manage access interface state. In the example below, the remove buttons should be disabled for the quota holder item.

Unable to unshare resource with dynamically added group item

I posted some new issues as a result of my testing of Time Series.
See: #2069, #2068, #2067, #2066

I posted the following issues testing composite resources
#2059, #2061, #2062, #2063, #2064

In the new HydroShare resources list, it would be great if we can have the old arrangement of the model resources: Model Program, Model Instance, SWAT Model Instance, and MODFLOW Model Instance. Also, What about including the resource types categorization too?

Also related: https://github.com/hydroshare/hydroshare/issues/2086
@mohamedmorsy, @dtarb, @horsburgh any ideas for category name for the first section containing Collection, Composite, Generic and Web App?

What about "General", but where is the category name used.

@dtarb @mjstealey Tested the coverage endpoints. There is a small bug where the subject search is case sensitive but i think we can fix that in the next release

@dtarb, see https://github.com/hydroshare/hydroshare/pull/2091 for discussion on this change.


Error when run: yarn package

I have an error at file Routes.js when build product version (yarn package)! What is wrong?

Thanks you!

Please resubmit your issue using the issue template so we can better understand your issue, thanks.


Some of the Cadence tests are failing unexpectedly

I was running all of the cadence tests at once and it looks like there are workers hanging around after their clients have been disposed of (which I think was the expected behavior).  This is causing decision task timeouts in almost all of the Test_EndToEnd tests as well as Test_MultiClient.Multiple_TaskLists.  This seems like a recent issue.  Test_MultiClient.Multiple_TaskLists fails with a heartbeat timeout waiting for this line to be true:
 return await Task.FromResult(Activity.Client.ClientId == workerClient1.ClientId);

Will do a deeper investigation into the issue.

The workers should be disposed when connections are closed.
I might have tweaked that behavior recently.
—Jeff
On Thu, Oct 24, 2019 at 9:49 AM Jeff Lill<EMAIL_ADDRESS>wrote:

Yeah, I’ve been looking at this too.  I’m not sure what happened.
—Jeff
On Thu, Oct 24, 2019 at 9:45 AM Jack Burns<EMAIL_ADDRESS>wrote:

Will do a deeper investigation into the issue.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/nforgeio/neonKUBE/issues/709?email_source=notifications&email_token=ABFOLDZ3BANWUQ6RXNCYTLLQQHGMBA5CNFSM4JEWS5PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFV63I#issuecomment-546004845,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFOLD4WHF4WM2T55JUIFD3QQHGMBANCNFSM4JEWS5PA
.

Yeah, I’ve been looking at this too.  I’m not sure what happened.
—Jeff
On Thu, Oct 24, 2019 at 9:45 AM Jack Burns<EMAIL_ADDRESS>wrote:

Will do a deeper investigation into the issue.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/nforgeio/neonKUBE/issues/709?email_source=notifications&email_token=ABFOLDZ3BANWUQ6RXNCYTLLQQHGMBA5CNFSM4JEWS5PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFV63I#issuecomment-546004845,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFOLD4WHF4WM2T55JUIFD3QQHGMBANCNFSM4JEWS5PA
.

I've commented out the code that's causing this.  I'm not sure it's worth fixing since it's just checking for developer errors but I'll put on the backlog to have another look later.

I'm seeing one test fail with an activity timeout error but I think it's unrelated to recent changes.  I went ahead an re-enabled this code and am going to close this.


wrong index for variant

Hello, I am trying to retrieve how many relays are still holding a specific message and therefore i am trying to filter for id.
No matter what method for retrieving i use, get, querysnc or subscribemany, i always get:

My function looks like this:

what am i doing wrong?
Thanks in advance

The error is coming from the relay, in this case strfry. Do other relays give the same error?

What is the id you're giving there? Looks like it's an invalid id.

What is the id you're giving there? Looks like it's an invalid id.

My functionm for posting a message retourns the proerty field id of an event, this is the one that i am using for the query as parameter id. The code for the post looks like this.

Or is the id something else? I thought i must be correct as invalid ids are rejected by the relays.
Regarding @alexgleason: I have used 5 different relays and as seen two on the screenshot have replied in the same way. I will try also to use some other ones.

Try changing your code to this:
const event = await window.nostr.signEvent(baseEvent)
pool.publish(relays, event)
return event.id

Hey thanks for the idea, i have tried it out but the resulting Id from your code is identical to the one i used via the hash function.

Results in

If you change the pubkey you'll get a different id, that is probably what is happening there.
Anyway, what was your problem again? In your initial post you were getting an error from relays because (I guess) the id you were giving them. If you could run that part again and print out the id you were passing to the countActiveRelays function and then I can try it here locally that will be great.

I have resolved the error now, the problem was the type of the id in the function parameters of countActiverelays, it has to be string[] instead of string. Now i dont get the stgfy error anymore from the relays, but still not the message back that i am trying to filter for. But i guess i will figure that or make a new post. Thanks anyways :-)

I have resolved the error now, the problem was the type of the id in the function parameters of countActiverelays, it has to be string[] instead of string. Now i dont get the stgfy error anymore from the relays, but still not the message back that i am trying to filter for. But i guess i will figure that or make a new post. Thanks anyways :-)


Add navbar

Changes:

added the logo font to TailwindCSS' config
added a responsive Navbar component
added a Layout component that all pages will use
removed the starter template styles
added last-child to global.css because TailwindCSS lacks it
made index page use the Layout component

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


Missing support for npm local path dependencies

Describe the issue
The following POSIX shell script generates 3 JSII projects (A,B,C), where 2 of the projects (B,C) are dependent upon the other project (A). Project B depends upon project A by version reference, project C depends upon project A by local path reference.

mkdir -p project-a/lib project-b/lib project-c/lib

touch project-a/README.md project-b/README.md project-c/README.md

PROJECT_A_PREFIX=$(tr -dc a-z0-9 </dev/urandom | head -c 5)

cat << EOF > project-a/package.json
{
  "name": "$PROJECT_A_PREFIX-project-a",
  "version": "0.0.0",
  "author": "Sample Author",
  "description": "Sample Description",
  "license": "GPL-3.0-only",
  "repository": {
    "type": "git",
    "url": "about:blank"
  },
  "type": "module",
  "main": "lib/index.js",
  "devDependencies": {
    "@types/node": "10.17.27",
    "constructs": "10.1.285",
    "jsii": "^1.71.0",
    "typescript": "~4.9.3",
    "jsii-pacmak": "^1.71.0"
  },
  "dependencies": {},
  "bundleDependencies": [],
  "peerDependencies": {
      "constructs": "10.1.285"
  },
  "types": "lib/index.d.ts",
  "stability": "experimental",
  "jsii": {
      "outdir": "dist",
      "targets": {}
  }
}
EOF

cat << EOF > project-b/package.json
{
  "name": "project-b",
  "version": "0.0.0",
  "author": "Sample Author",
  "description": "Sample Description",
  "license": "GPL-3.0-only",
  "repository": {
    "type": "git",
    "url": "about:blank"
  },
  "main": "lib/index.ts",
  "devDependencies": {
    "@types/node": "10.17.27",
    "jsii": "^1.71.0",
    "typescript": "~4.9.3",
    "constructs": "10.1.285",
    "$PROJECT_A_PREFIX-project-a": "0.0.0",
    "jsii-pacmak": "^1.71.0"
  },
  "dependencies": {
  },
  "peerDependencies": {
      "constructs": "^10.1.285",
      "$PROJECT_A_PREFIX-project-a": "0.0.0"
  },
  "bundleDependencies": [
  ],
  "types": "lib/index.d.ts",
  "stability": "experimental",
  "jsii": {
      "outdir": "dist",
      "targets": {}
  }
}
EOF

cat << EOF > project-c/package.json
{
  "name": "project-c",
  "version": "0.0.0",
  "author": "Sample Author",
  "description": "Sample Description",
  "license": "GPL-3.0-only",
  "repository": {
    "type": "git",
    "url": "about:blank"
  },
  "main": "lib/index.ts",
  "devDependencies": {
    "@types/node": "10.17.27",
    "jsii": "^1.71.0",
    "typescript": "~4.9.3",
    "constructs": "10.1.285",
    "$PROJECT_A_PREFIX-project-a": "file:../project-a",
    "jsii-pacmak": "^1.71.0"
  },
  "dependencies": {},
  "peerDependencies": {
      "constructs": "^10.1.285",
      "$PROJECT_A_PREFIX-project-a": "0.0.0"
  },
  "bundleDependencies": [
  ],
  "types": "lib/index.d.ts",
  "stability": "experimental",
  "jsii": {
      "outdir": "dist",
      "targets": {}
  }
}
EOF

cat << EOF > project-a/lib/index.ts
import {
    Construct,
    IConstruct,
} from 'constructs';

export interface ISampleConstruct extends IConstruct {}

export class SampleConstruct extends Construct implements ISampleConstruct {

    constructor(construct: Construct, id: string) {

        super(construct, id);
    };
}
EOF

cat << EOF > project-b/lib/index.ts
import {Construct} from 'constructs';
import {
    SampleConstruct,
    ISampleConstruct,
} from '$PROJECT_A_PREFIX-project-a';

export class ChildSampleConstruct extends SampleConstruct implements ISampleConstruct {

    constructor(construct: Construct, id: string) {

        super(construct, id);
    };
}

new ChildSampleConstruct(undefined as unknown as Construct, 'sample');
EOF

cp project-b/lib/index.ts project-c/lib/index.ts

sh -c "cd project-a && npm install && npx jsii && npx jsii-pacmak -v --target js && npm publish"

sh -c "cd project-b && npm install && npx jsii && npx jsii-pacmak -v --target js"

sh -c "cd project-c && npm install && npx jsii && npx jsii-pacmak -v --target js"

results in:

up to date, audited 93 packages in 752ms

12 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
[jsii-pacmak] [INFO] Found 1 modules to package
[jsii-pacmak] [INFO] Packaging NPM bundles
[jsii-pacmak] [INFO] Loading jsii assemblies and translations
[jsii-pacmak] [INFO] Packaging 'js' for 1413x-project-a
[jsii-pacmak] [INFO] js finished
[jsii-pacmak] [INFO] Packaged. npm pack (0.7s) | js (0.0s) | load jsii (0.0s) | cleanup (0.0s)
npm notice
npm notice 📦<EMAIL_ADDRESS>
npm notice === Tarball Contents ===
npm notice 2.8kB  .jsii
npm notice 0B     README.md
npm notice 247B   lib/index.d.ts
npm notice 1.3kB  lib/index.js
npm notice 664B   package.json
npm notice 38.1kB tsconfig.tsbuildinfo
npm notice === Tarball Details ===
npm notice name:          1413x-project-a
npm notice version:       0.0.0
npm notice filename:      1413x-project-a-0.0.0.tgz
npm notice package size:  7.6 kB
npm notice unpacked size: 43.1 kB
npm notice shasum:        08ac78b1ee97f5b5fe5af6c669d518542fd1c1ca
npm notice integrity:     sha512-sw35CNjB/8VmT[...]KT99NTzjWIGMw==
npm notice total files:   6
npm notice
npm notice Publishing to https://registry.npmjs.org/ with tag latest and default access
+<EMAIL_ADDRESS>+<EMAIL_ADDRESS>
added 36 packages, removed 1 package, and audited 94 packages in 3s

12 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
[jsii-pacmak] [INFO] Found 1 modules to package
[jsii-pacmak] [INFO] Updated .npmignore
[jsii-pacmak] [INFO] Packaging NPM bundles
[jsii-pacmak] [INFO] Loading jsii assemblies and translations
[jsii-pacmak] [INFO] Packaging 'js' for project-b
[jsii-pacmak] [INFO] js finished
[jsii-pacmak] [INFO] Packaged. npm pack (0.7s) | js (0.0s) | load jsii (0.0s) | cleanup (0.0s)

added 36 packages, removed 1 package, and audited 94 packages in 2s

12 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
warning JSII6: A "peerDependency" on "1413x-project-a" at "0.0.0" means you should take a "devDependency" on "1413x-project-a" at "0.0.0" (found "file:../project-a")
[jsii-pacmak] [INFO] Found 1 modules to package
[jsii-pacmak] [INFO] Updated .npmignore
[jsii-pacmak] [INFO] Packaging NPM bundles
[jsii-pacmak] [INFO] Loading jsii assemblies and translations
[jsii-pacmak] [INFO] Packaging 'js' for project-b
[jsii-pacmak] [INFO] js finished
[jsii-pacmak] [INFO] Packaged. npm pack (0.7s) | js (0.0s) | load jsii (0.0s) | cleanup (0.0s)

The warning indicates, that local paths of dependencies inside package.json are currently not supported, whatever that implies.
This has been confusing to me, since i tried fixing it by following the suggestions, which lead upon many iterations of switching the dependency types and running into fatal errors.
It is nice to have the npm local path feature, since it speeds up development across multiple dependent JSII npm packages, but at least a notice about them not being supported, or a more thorough explanation on what is not expected to work would be nice.
Links
https://aws.github.io/jsii/user-guides/lib-author/configuration/#dependency-considerations
https://docs.npmjs.com/cli/v7/configuring-npm/package-json#local-paths

Related to https://github.com/aws/jsii/issues/4016


FaceRecognition.FaceLocations() method improvement needed not to use yield return.

public IEnumerable FaceLocations(Image image, int numberOfTimesToUpsample = 1, Model model = Model.Hog);
var faceLocations = faceRec.FaceLocations(img);
The above method takes about 4 second on a image.
And when I call  "faceLocations.Count()" it takes another 4 seconds.
(I have to call Count() to avoid further logic in case there is no Face detected.)
Each time, I call any method of IEnumerable, it seems do all routine again.
When I remove "yield return", it works as expected.
Also, the same performance issue occurs for all methods using yield return.
I like to use Nuget package instead of my own compile. If you improve this, I think it will be great since that's the significant performance bottleneck.

@goodmorningsky
Thank you for your good report.
OK, I will check and try modified code.
BTW, could you provide minimum sample code to measure performance?
I may mistake and it may not work after release.
Thank you for your cooperations.

Here is brief meansure:
var faceLocations = faceRec.FaceLocations(img); // this takes 4 seconds
if(faceLocations.Count() > 0) // this takes 4 seconds.
var arrayOfFaceLocation = faceLocations.ToArray(); //this also takes 4 seconds or little more.
Worst part is related Encoding. Here are my testing.
var faceEncodings = faceRec.FaceEncodings(img, faceLocations, 1); //this takes 33 seconds.
var faceEncodingArray = faceEncodings.ToArray(); //this takes another 33 seconds.
foreach (var faceEncoding in faceEncodings) // "in" takes also 33 seconds.
When I remove the yield return using List<> like below. It works fine.
List list = new List();
var rawLandmarks = this.RawFaceLandmarks(image, knownFaceLocation, predictorModel, model);
foreach (var landmark in rawLandmarks)
{
var ret = new FaceEncoding(FaceRecognitionModelV1.ComputeFaceDescriptor(this._FaceEncoder, image, landmark, numJitters));
landmark.Dispose();
list.Add(ret);
}
return list;

@goodmorningsky
Thanks.
I was able to reproduce your issue and created PR #184
Is it what you intend to?

@goodmorningsky Thanks. I was able to reproduce your issue and created PR #184 Is it what you intend to?

Yes. Thank you.

@goodmorningsky
We have already release new version <IP_ADDRESS>.


chore(main): release 0.10.1

:robot: I have created a release beep boop
0.10.1 (2023-12-15)
Miscellaneous Chores

release 0.10.1 (79226b8)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/kevinah95/hacienda/releases/tag/v0.10.1 :sunflower:


Auto required() if rules contain required term

If form field rule contains required term
$form->text('title', 'Title')->rules('required');
will be equal to
$form->text('title', 'Title')->rules('required')->required();
Not need to use required() method because field is already required.

Thanks!

i don't support this feature. whenever i want to update user information with password i am always prompted to input a password when i don't intend to update change the password.


Loading local tiles to geoviews

Hi, I have already been using for a long time datashader in combination to holoviews and bokeh to plot high-throughput microscopy data from my lab and the results are great. But, we are interested in plotting at the same time the images which have a really large size: can be more than 5GB.
I tried to generate tiles with gdal, but I am not sure if these can be loaded locally using geoviews. And, I don't seem to find a way in geoviews to load local tiles, so that the whole large image does not have to be loaded as gv.Image (in this case it will crash).
I would really like to know if what I want to do would be possible and if you would have any suggestions.
I really appreciate your help and time, thank you so much.

Glad to hear it!  You can surely launch a WMTS tile server on a local port and pass that URL to gv.WMTS(), if you want to.  GeoViews shouldn't care whether it's local or remote, as long as it's a working URL.
But using GeoViews and WMTS is obviously not a great solution, because the data isn't geo located in the first place. The underlying tile support in Bokeh seems like it should work for non-geo coordinates (bokeh.models.TileSource), and I've seen an example using it for non-geo data in private code several years ago, but I don't have any public examples to work from for adding a tile source object to HoloViews to cover non-geo cases like this.
In any case, tiles on disk like that are probably only really useful for publishing to a static web server; for interactive exploration of novel data, it would be better if things just worked with the real data, albeit more slowly.  Dask should let you do that, with out of core and distributed computation,, though we may need to do work in Datashader and HoloViews to support that better.
You can see discussion of this use case in https://github.com/bokeh/datashader/issues/478 , and an example of navigating an EM stack at pangeo.pydata.org (launch a server and select scikit-image-example.ipynb from the examples).  If you try that example on your own machine, you should use the very latest HoloViews alpha release 1.10.0a2 (from conda install -c ioam/label/dev holoviews), which has  massive speed improvements for this case.  Does this approach get close to handling the data size you need?

Thank you so much, I still need to fix the code for the visualization, but so far simply using the regrid() did the trick to plot the large image, as in the example bokeh/datashader#478.  Even though, I still need to try it with larger images.
I will also try the example at pangeo.pydata.org and see how it goes. But, so far it looks feasible.
Thank you so much, this will help us a lot!!!

Thanks for referring me to this example.
I just tried to run the EM stack example on the Pangeo server which is running holoviews '1.10.0a2.post26+g3f015c0'. Unfortunately, the import of regrid fails
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-8-bedc7f2208a4> in <module>()
      2 import holoviews as hv
      3 import numpy as np
----> 4 from holoviews.operation.datashader import regrid
      5 hv.extension('bokeh')

/opt/conda/lib/python3.6/site-packages/holoviews/operation/datashader.py in <module>()
    184
    185
--> 186 class AggregationOperation(ResamplingOperation):
    187     """
    188     AggregationOperation extends the ResamplingOperation defining an

/opt/conda/lib/python3.6/site-packages/holoviews/operation/datashader.py in AggregationOperation()
    200         'any':   rd.any,
    201         'count': rd.count,
--> 202         'first': rd.first,
    203         'last':  rd.last,
    204         'mode':  rd.mode,

AttributeError: module 'datashader.reductions' has no attribute 'first'

Ok, I can see that it has to do with the datashader version on the pangeo server not being up to date (it has datashader.__version__ = '0.6.4dev1'). Probably need to set all of this up on a local machine to try it out.

Hmm; that's odd; it worked when I tried it a few weeks ago.  The pangeo project is happy to engage with external contributors, and I'm sure they'd like to see a PR to update the datashader version to be the 0.6.5 release since it seems broken there right now.

They are installing HoloViews from master, which had some recent changes that made it incompatible with datashader < 0.6.5.  You can easily pop up a console on pangeo and upgrade datashader yourself. I'll get in touch with them to get datashader updated globally though.

first of all : Thanks for the super nice work on this, @jbednar !
Just for the note:

I generate some tiles using roblabs/gdal2tilesp: Enhancements to tile cutter for parallelism and image format support with the option -o xyz that generate the tiles in Slippy map tilenames, slightly different from TMS.
serve the tiles locally with a simple webserver (python -m http.server)
display the tiles with geoviews via gv.WMTS(WMTSTileSource(url='http://<IP_ADDRESS>:8000/temp_xyz/{Z}/{X}/{Y}.png')

Note the spaw in X<>Y . Don't know why, I found this workaround once with jupyter-widgets/ipyleaflet and works here too.

In the picture, on the right I overlay ~6M points via holoviews.operation.datashader.rasterize and this image doesn't wrap the boundary like the Tiles.
One thing I'm not sure of:
if I create a layout via tms+rasterized, how can I automatically link the zoom/pan around?
I set the same rasterized kdims name like the Tiles Map, but it is not working.

As long as the data corresponds to one of the known tile formats this is already possible.


Base URl

I'm using webapi in Owin iis hosted code.
Trying to set Base Url value.
This wont't do it,
c.RootUrl(s => "https://localhost:44310");
Found this in documentation :
SwaggerSpecConfig.Customize(c =>
{
c.ResolveBasePathUsing(req =>
req.RequestUri.GetLeftPart(UriPartial.Authority) +
req.GetRequestContext().VirtualPathRoot.TrimEnd('/'));
}
I'm able to handle event
[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(SwaggerConfig), "RegisterAfter")]
But how excalty use SwaggerSpecConfig.Customize or Where..
BR,
-mikko

I assume from the config. snippet above, that you're using a pre-5.x version of SB?
If you're using OWIN, you should avoid WebActivatorEx to bootstrap SB and instead configure manually in Startup.cs. This is all described in the OWIN specific section of the readme. The key point is to pull in the "Swashbuckle.Core" Nuget instead of "Swashbuckle" because the latter is for standard IIS hosted WebApi's only.
For OWIN or self-hosted, you simply reference the Core library and then manually configure as shown in the readme. Again, if you're using a pre 5.x version of SB, refer to the docs here - https://github.com/domaindrivendev/Swashbuckle/tree/v4.2.0.
Thanks


Validator factory not work

In server.conf.php the factory of NoObjectExists and ObjectExists not work

Those each work fine for me.  Can you provide more detail?

@TomHAnderson see my commit plz

I do not see an issue with the zf-apigility-doctrine factory: https://github.com/zfcampus/zf-apigility-doctrine/blob/master/src/Server/Validator/ObjectExistsFactory.php#L59
Your fix overrides the validator for DoctrineModule though those classes are used in these validator factories.
I do see that the validator factory may not be useful in a non-doctrine.entitymanager.orm_default ORM.  Please give more details.

As you can see in the server.conf.php file, the reference to the Validator \ NoObjectExists and Validator \ ObjectExists class do not exist, which causes it to use invokablefactory instead of the correct factory

ZF\Apigility\Doctrine\Validator\[No]ObjectExists is configured in the factories section of the validators service manager array.  So trying to instantiate this class the service manager uses the factory which correctly creates the class.  I see no issue with the configuration as-is.

The problem is that the factories session configures the factory for "ZF\Apigility\Doctrine\ServerValidator[No]ObjectExists::class", but that class does not exists. My commit solves this issue.
The only reason that the validators are being built is duo to the Invokable Factory that happens to build then right. But when I try to use another abstract factory as a default for my application, it crashes.

"ZF\Apigility\Doctrine\Server\Validator[No]ObjectExists::class", but that class does not exists.

Yes, that is intentional.  I think your problem lies somewhere else.

If i put
   'validators' => [         'abstract_factories' => [             ConfigAbstractFactory::class,             ReflectionBasedAbstractFactory::class,         ],
in my config file, [No]ObjectExists no longer works

Do one of those factories not correctly report the list of aliases they create?
interface AbstractFactoryInterface extends FactoryInterface
{
    /**
     * Does the factory have a way to create an instance for the service?
     *
     * @param  ContainerInterface $container
     * @param  string $requestedName
     * @return bool
     */
    public function canCreate(ContainerInterface $container, $requestedName);
}

If your abstract factory is reporting that it can create anything under the sun that would be a problem.

@fabioginzel
I've tried it with zf-apigility-admin and field is created with validator ZF\\Apigility\\Doctrine\\Server\\Validator\\NoObjectExists.
Here is part of my generated configuration (module.config.php):
    'input_filter_specs' => [
        'NewApi\\V1\\Rest\\Album\\Validator' => [
            0 => [
                'name' => 'name',
                'required' => false,
                'filters' => [],
                'validators' => [
                    0 => [
                        'name' => 'ZF\\Apigility\\Doctrine\\Server\\Validator\\NoObjectExists',
                        'options' => [
                            'entity_class' => \Application\Entity\Album::class,
                            'fields' => 'name',
                        ],
                    ],
                ],
            ],
...

All seems to be fine.

@webimpress  but if i dont use zf-apigility-admin, this not work

@fabioginzel How do you mean? You don't need to use zf-apigility-admin.
Are you using then ZF\Apigility\Doctrine\Server\Validator\NoObjectExists / ZF\Apigility\Doctrine\Server\Validator\ObjectExists validators or you try to use DoctrineModule\Validator\NoObjectExists / DoctrineModule\Validator\ObjectExists straight away?
If you want use names from DoctrineModule you have to provide factories for them. This library provides different aliases consistent with the library with factories which produces configured validators. Yes, these are instances of validators from DoctrineModule.

where are ZF\Apigility\Doctrine\Server\Validator\NoObjectExists /  and ZF\Apigility\Doctrine\Server\Validator\ObjectExists ??

@fabioginzel These are virtual services defined here:
https://github.com/zfcampus/zf-apigility-doctrine/blob/master/config/server.config.php#L52-L53
If you want to use these validators from that package you should use these virtual services.


Do not add period after package and show type info

This fixes #21, #20 and #17
Package completion should not add a period after as it is unintuitive and type info is also now shown. The completion names are also not aligned.

@nhooyr Fix show type info looks good.
But why unnecessary is dot completion and aligned?
I am a troublesome to type the dot. and It will be slow to write the code.
Also does not aligned of class is too creepy.

@zchee Its kinda of the same problem as #7
If the dot is typed automatically, you can't see all of the completion options immediately. You have to press <c-y> or delete it and enter it again. Or you continue typing. I prefer this behaviour. I described it in more detail with #21
I also found another bug that I'm taking a look at, I'll just include the fix into this pull request.

@nhooyr Sorry, I do not understand all.

you can't see all of the completion options immediately

What is all of the completion options?
That means parser package functions? e.g. ParseDir() ParseExpr()
Meaning you said, typed par, and select parser and hit <C-y>, but parser functions does not appear.
Therefore, displaying parser functions need remove the dot, and retyping dot.
Correct?

@zchee yes the parser package functions. But after I hit <c-y> they do appear. Its just that the typing the period to get them to appear is more intuitive (it's like that in other IDE's and previous go completion plugins). Instead now you have to press <c-y> (which works) OR remove and then retype.

Fixed. The offset for gocode is 1 behind vims offset. You can check it yourself by running gocode as
gocode -s -debug

Then try completing this file (| is the cursor)
package main

import (
	"go/parser"
	"go/token"
)

func main() {
	parser.ParseFile(token.|)
}

It won't complete properly because it thinks you are at the ) but you are really at the .

@nhooyr got it.

yes the parser package functions. But after I hit  they do appear. Its just that the typing the period to get them to appear is more intuitive (it's like that in other IDE's and previous go completion plugins). Instead now you have to press  (which works) OR remove and then retype.

That problem is due to your environment.
It worked my environment.
deoplete.nvim is asynchronous call source plugin.
So If use the low spec PC, or When pressure on the CPU, or something other plugin blocking deoplete.nvim, or etc... (I'm not saying your PC is a low spec)
In this situation, will occur you said behavior.
Maybe not caught up with the speed at which the dot is automatically input.
However, It is troublesome better things to remove the dot and retype dot than to manually insert dot.
So I will implement setting value. Also aligned class.
WDYT?
If you agreed, please revert of PR.

The offset for gocode is 1 behind vims offset.

Good catch. that is a bug. Thanks!

@nhooyr FYI, https://asciinema.org/a/35756

@zchee
Nooo. Nothing to do with specs. This isn't a bug or a problem. Its just about which is easier to use. For me, not completing the period and typing it after is easier. For you, pressing <c-y> to complete is easier. Most other IDE's use the method without auto inserting the period.
I'll upload an asciinema as well to show you what I mean. How long will you be up?

@nhooyr I wait forever for you upload asciinema.

Ok first, this is how it currently works.
https://asciinema.org/a/7vt8kie2bc6ddcz56ujccx43n
I have to press <c-y> to show the completion options.
Now here is my version.
https://asciinema.org/a/2apb7zat1g9p9ucd7thz7j7e0
I only have to select the package, then press the period and continue typing.
So yea I can revert it if you create an option for this and the alignment, no problem.

@nhooyr Oh, Now I understand! That's correct.
caused by different select of completion by you and me(?)
Sorry for It was too contain their preferences. and Thank you to long discuss.
I will create on/off option, also alignment.
and, add the user setting as long as the performance permit.

@nhooyr the . was also problematic for me but in my case I don't need to press c-y. It just is re-triggered. I wonder if it's because of some settings. Like noinsert or noselect ? I'm not sure but it just works for me.

@fatih i think its noinsert but I'll look it all over tomorrow.
@zchee I can add the options and all the documentation myself tomorrow. I'm gonna sleep now.

@fatih wait are you typing after the period. Or do you just select the package and bam it switches? It should only switch if you accept the package completion.

I'm not typing anything, the completion menu comes automatically. After that I can go and select another item.

@nhooyr OK.
but self.vim.vars is occured error if deoplete#sources#go#foo is none (not set in init.vim).
Therefore I use try...except.
So I think better way set default value with vim-side. such as autoload.

@fatih idk, probably some little configuration detail we're forgetting.
@zchee i'll do that.

@zchee can we merge this PR? Let's to the . adding in another one. I really need this. I can pull and merge it myself but prefer to use upstream.

Whatever you guys think is good. I'd rather sleep anyway.

@nhooyr go ahead and sleep. It's not wise to hack on something while half sleep :stuck_out_tongue:

Great idea. Good night.

lol


feat: use REG_CGAS as default forwarded gas

Use REG_CGAS register if no gas_forwarded was not set for a specific call.
Checklist

[x] I have added necessary labels.
[x] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[x] I have requested a review from the relevant team or maintainers.

Thank you very much for reviewing this so quickly!
I have made a small change where the gas_forwarded is not added to the data at all if it is not set.

Special thanks to @MujkicA for helping me on this task!


Fix for issue #803

MS SQL Server identifiers are not case-sensitive (even if quoted).
The keyword AS for introducing column aliases is optional. The updated approximate column name extraction now allows that.

Thanks Roman!


Catch-22 on 'Azure Machine Learning workspaces should be encrypted with a customer-managed key'

BIO has the policy "Azure Machine Learning workspaces should be encrypted with a customer-managed key" enabled by default.
https://github.com/Azure/Bio-Compliancy/blob/main/ARM/BIO-azuredeploy.json#L1981
When you comply with this policy, then Azure creates a MS-managed resource group with some resources in your subscription: CosmosDB, Search, Storage, vnet.
https://learn.microsoft.com/en-us/azure/machine-learning/concept-customer-managed-keys?view=azureml-api-2#customer-managed-keys
These MS-managed resources trigger multiple new BIO-noncompliances. One example:

"Audit diagnostic setting for selected resource types" → the Azure Cosmos DB account is non-compliant.

You cannot place a policy exemption on these resources, because MS also places a Deny Assignment on the resource group. This blocks any modifications, including exemptions.
Meaning, if you want to be compliant, you have to be non-compliant. 🤡
Can you reconsider the default setting for this policy?
Note 1: The ASC-initiative (azure security center aka Defender) includes the same policy, but ASC has it set to Disabled by default.
Note 2: These CMK-resources are quite expensive: in their base configuration, they cost around €700 per month.

Wil be fixed in #25


Move the project upload version update to the very end after all the project related files are uploaded in the db.

If the version is updated before property files are uploaded there can be a race condition where a flow comes in and uses the updated version and webserver may need to use one of the project properties which are not yet uploaded.

Pull Request Test Coverage Report for Build 6514

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 45.476%

Totals

Change from base Build 6512:
0.0%

Covered Lines:
17992

Relevant Lines:
39564

💛  - Coveralls


Failed to start VM using machine type pc-i440fx-3.1

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
Failed to start VM using machine type pc-i440fx-3.1
What you expected to happen:
Kubevirt version v0.17.0 is upgraded to v0.26.0, the problem occurs when starting the virtual machine. How can i solve?
Environment:

KubeVirt version v0.26.0
Kubernetes version v1.13.5

How to reproduce it (as minimally and precisely as possible):
win2k3.yaml:
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
  name: test-vm-5
spec:
  domain:
    machine:
      type: pc-i440fx-3.1
    cpu:
      cores: 2
    resources:
      requests:
        memory: 2048M
    devices:
      rng: {}
      disks:
      - name: mypvcdisk
        disk:
          bus: virtio
  volumes:
    - name: mypvcdisk
      ephemeral:
        persistentVolumeClaim:
          claimName: test-pvc

kubectl create -f win2k3.yaml

Starting the VirtualMachineInstance failed
[root@ip-192-168-4-100 ~]# kubectl logs -f virt-launcher-test-vm-7-7v8ld  -c compute
{"component":"virt-launcher","level":"info","msg":"Collected all requested hook sidecar sockets","pos":"manager.go:68","timestamp":"2020-06-18T09:08:04.566800Z"}
{"component":"virt-launcher","level":"info","msg":"Sorted all collected sidecar sockets per hook point based on their priority and name: map[]","pos":"manager.go:71","timestamp":"2020-06-18T09:08:04.567018Z"}
{"component":"virt-launcher","level":"info","msg":"Watchdog file created at /var/run/kubevirt/watchdog-files/default_test-vm-7","pos":"virt-launcher.go:143","timestamp":"2020-06-18T09:08:04.569410Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon: qemu:///system","pos":"libvirt.go:355","timestamp":"2020-06-18T09:08:04.575014Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon failed: virError(Code=38, Domain=7, Message='Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory')","pos":"libvirt.go:363","timestamp":"2020-06-18T09:08:04.575776Z"}
{"component":"virt-launcher","level":"info","msg":"libvirt version: 5.6.0, package: 7.fc31 (Unknown, 2019-11-22-21:16:59, )","subcomponent":"libvirt","thread":"40","timestamp":"2020-06-18T09:08:04.651000Z"}
{"component":"virt-launcher","level":"info","msg":"hostname: test-vm-7","subcomponent":"libvirt","thread":"40","timestamp":"2020-06-18T09:08:04.651000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"virDBusGetSystemBus:108","subcomponent":"libvirt","thread":"40","timestamp":"2020-06-18T09:08:04.651000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Child process (/usr/sbin/dmidecode -q -t 0,1,2,3,4,17) unexpected exit status 1: /dev/mem: No such file or directory","pos":"virCommandWait:2792","subcomponent":"libvirt","thread":"40","timestamp":"2020-06-18T09:08:04.664000Z"}
{"component":"virt-launcher","level":"info","msg":"Connected to libvirt daemon","pos":"libvirt.go:371","timestamp":"2020-06-18T09:08:06.053408Z"}
{"component":"virt-launcher","level":"info","msg":"Registered libvirt event notify callback","pos":"client.go:294","timestamp":"2020-06-18T09:08:06.061538Z"}
{"component":"virt-launcher","level":"info","msg":"Marked as ready","pos":"virt-launcher.go:73","timestamp":"2020-06-18T09:08:06.062478Z"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Executing PreStartHook on VMI pod environment","name":"test-vm-7","namespace":"default","pos":"manager.go:775","timestamp":"2020-06-18T09:08:07.091987Z","uid":"35921355-b143-11ea-b025-0050563d4d0a"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Starting PreCloudInitIso hook","name":"test-vm-7","namespace":"default","pos":"manager.go:794","timestamp":"2020-06-18T09:08:07.092216Z","uid":"35921355-b143-11ea-b025-0050563d4d0a"}
{"component":"virt-launcher","level":"info","msg":"updated MAC for eth0 interface: old: 06:29:e9:4d:a9:43 -\u003e new: 06:29:e9:d4:11:41","pos":"common.go:255","timestamp":"2020-06-18T09:08:07.095499Z"}
{"component":"virt-launcher","kind":"","level":"info","msg":"bridge pod interface: VIF: { Name: eth0, IP: <IP_ADDRESS>, Mask: ffffffff, MAC: 06:29:e9:4d:a9:43, Gateway: <IP_ADDRESS>, MTU: 1500}","name":"test-vm-7","namespace":"default","pos":"podinterface.go:258","timestamp":"2020-06-18T09:08:07.098478Z","uid":"35921355-b143-11ea-b025-0050563d4d0a"}
{"component":"virt-launcher","level":"info","msg":"Found nameservers in /etc/resolv.conf: \n+\u0000\n","pos":"converter.go:1508","timestamp":"2020-06-18T09:08:07.098767Z"}
{"component":"virt-launcher","level":"info","msg":"Found search domains in /etc/resolv.conf: default.svc.cluster.local svc.cluster.local cluster.local","pos":"converter.go:1509","timestamp":"2020-06-18T09:08:07.098870Z"}
{"component":"virt-launcher","level":"info","msg":"Starting SingleClientDHCPServer","pos":"dhcp.go:64","timestamp":"2020-06-18T09:08:07.099119Z"}
{"component":"virt-launcher","level":"info","msg":"Driver cache mode for /var/run/kubevirt-ephemeral-disks/disk-data/mypvcdisk/disk.qcow2 set to none","pos":"converter.go:175","timestamp":"2020-06-18T09:08:07.162581Z"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Domain defined.","name":"test-vm-7","namespace":"default","pos":"manager.go:1054","timestamp":"2020-06-18T09:08:07.366263Z","uid":"35921355-b143-11ea-b025-0050563d4d0a"}
{"component":"virt-launcher","level":"info","msg":"DomainLifecycle event 0 with reason 0 received","pos":"client.go:259","timestamp":"2020-06-18T09:08:07.366505Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"virDBusGetSystemBus:108","subcomponent":"libvirt","thread":"26","timestamp":"2020-06-18T09:08:07.570000Z"}
{"component":"virt-launcher","level":"error","msg":"At least one cgroup controller is required: No such device or address","pos":"virCgroupDetect:419","subcomponent":"libvirt","thread":"26","timestamp":"2020-06-18T09:08:07.631000Z"}
{"component":"virt-launcher","level":"info","msg":"kubevirt domain status: Paused(3):StartingUp(11)","pos":"client.go:180","timestamp":"2020-06-18T09:08:07.638259Z"}
{"component":"virt-launcher","level":"info","msg":"Detected domain with UUID ff7f2648-f381-40a4-b34c-9b170645816f","pos":"virt-launcher.go:234","timestamp":"2020-06-18T09:08:07.646537Z"}
{"component":"virt-launcher","level":"info","msg":"Monitoring loop: rate 1s start timeout 5m0s","pos":"monitor.go:237","timestamp":"2020-06-18T09:08:07.646692Z"}
{"component":"virt-launcher","level":"error","msg":"Unable to read from monitor: Connection reset by peer","pos":"qemuMonitorIORead:603","subcomponent":"libvirt","thread":"23","timestamp":"2020-06-18T09:08:07.757000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: qemu unexpectedly closed the monitor: 2020-06-18T09:08:07.724757Z qemu-kvm: -machine pc-i440fx-3.1,accel=kvm,usb=off,dump-guest-core=off: unsupported machine type","pos":"qemuProcessReportLogError:2098","subcomponent":"libvirt","thread":"23","timestamp":"2020-06-18T09:08:07.758000Z"}
{"component":"virt-launcher","level":"info","msg":"Use -machine help to list supported machines","subcomponent":"libvirt","timestamp":"2020-06-18T09:08:07.759157Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: process exited while connecting to monitor: 2020-06-18T09:08:07.724757Z qemu-kvm: -machine pc-i440fx-3.1,accel=kvm,usb=off,dump-guest-core=off: unsupported machine type","pos":"qemuProcessReportLogError:2098","subcomponent":"libvirt","thread":"26","timestamp":"2020-06-18T09:08:07.760000Z"}
{"component":"virt-launcher","level":"info","msg":"Use -machine help to list supported machines","subcomponent":"libvirt","timestamp":"2020-06-18T09:08:07.760871Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Starting the VirtualMachineInstance failed.","name":"test-vm-7","namespace":"default","pos":"manager.go:1082","reason":"virError(Code=1, Domain=10, Message='internal error: process exited while connecting to monitor: 2020-06-18T09:08:07.724757Z qemu-kvm: -machine pc-i440fx-3.1,accel=kvm,usb=off,dump-guest-core=off: unsupported machine type\nUse -machine help to list supported machines')","timestamp":"2020-06-18T09:08:07.765469Z","uid":"35921355-b143-11ea-b025-0050563d4d0a"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Failed to sync vmi","name":"test-vm-7","namespace":"default","pos":"server.go:161","reason":"virError(Code=1, Domain=10, Message='internal error: process exited while connecting to monitor: 2020-06-18T09:08:07.724757Z qemu-kvm: -machine pc-i440fx-3.1,accel=kvm,usb=off,dump-guest-core=off: unsupported machine type\nUse -machine help to list supported machines')","timestamp":"2020-06-18T09:08:07.765802Z","uid":"35921355-b143-11ea-b025-0050563d4d0a"}
{"component":"virt-launcher","level":"info","msg":"Still missing PID for ff7f2648-f381-40a4-b34c-9b170645816f, Process ff7f2648-f381-40a4-b34c-9b170645816f not found in /proc","pos":"monitor.go:193","timestamp":"2020-06-18T09:08:08.652241Z"}
{"component":"virt-launcher","level":"info","msg":"DomainLifecycle event 0 with reason 1 received","pos":"client.go:259","timestamp":"2020-06-18T09:08:08.760924Z"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Synced vmi","name":"test-vm-7","namespace":"default","pos":"server.go:167","timestamp":"2020-06-18T09:08:08.764074Z","uid":"35921355-b143-11ea-b025-0050563d4d0a"}

When I return kubevirt to v0.17.0, vm starts normally
Thanks in advance.

please help me

the problem has been solved, thanks to kubevirt

the problem has been solved, thanks to kubevirt

hello how do you solve this problem？ Can you share your step?


Changes PerReplica params to floats and adds unit test

Fixes #12.
Make PerReplica params floats to gain more precise control. One more unit test is added, I wonder should we combine the new TestScaleFromSingleParamFloat() with the old one?
@bowei

Please hold off review this, I decided to combine the unit tests together.

Done, float test is combined into TestScaleFromMultipleParams().


chore: Upgrade mkdocs to 1.2.4 and remove unnecessary jinja2

New version has been released https://github.com/mkdocs/mkdocs/issues/2799 that should fix the issue we we had https://github.com/argoproj/argo-workflows/pull/8254.
Signed-off-by: Yuan Tang<EMAIL_ADDRESS>

Did you run mkdocs server to check it works ok?

Yes
mkdocs --version
mkdocs, version 1.2.4 from /opt/homebrew/lib/python3.9/site-packages/mkdocs (Python 3.9)

mkdocs build
INFO     -  Cleaning site directory
INFO     -  Building documentation to directory: /Users/terrytangyuan/go/src/github.com/argoproj/argo-workflows/site
INFO     -  The following pages exist in the docs directory, but are not included in the "nav" configuration:
              - survey-data-privacy.md
              - cli/argo_archive_resubmit.md
              - cli/argo_archive_retry.md
              - use-cases/ci-cd.md
              - use-cases/data-processing.md
              - use-cases/infrastructure-automation.md
              - use-cases/machine-learning.md
              - use-cases/other.md
              - use-cases/stream-processing.md
INFO     -  Documentation built in 2.35 seconds


examples/pmod: add nmigen pmod example

As per https://github.com/greatscottgadgets/luna/issues/109

Example code in general is always good, but I'm not sure this is the right place for this.
Questions:

Does this belong in the LUNA repository itself? This more seems like an example of using nmigen, rather than an example of anything LUNA-specific. (See the hw_features for LUNA-specific examples.)
Is this a good example of PMOD use, if we do decide yes on the former? I'd prefer examples to be relatively self-contained and to have walkthrough-level documentation (like they would if they were in a minimal tutorial).

@ktemkin thanks, I agree but I do think an example showing the pmod connectors in use would be good in luna.  Perhaps an extension of blink that puts the led output through a cable looping pmod A to pmod B?
Alternately I'd be happy to add documentation.  As per https://github.com/greatscottgadgets/luna/issues/72 the examples need a structure within which to document them.

@straithe cool, I'm still around.  I passed my luna on to some who had a more immediate need but I'm fine with getting this example into shape as needed.  Thanks for your hard work.

I'm gonna go ahead and close this as we're moving board-specific components out of this repo. We'll integrate something like this into an example or tutorial as we flesh out the Cynthion documentation. Thanks!


Add capslock script

What are you experiencing an issue with?

[ ] Aurora
[ ] Aurora supported game, (Fill in the game)
[ ] Aurora Wrapper
[ ] Aurora Profile
[ ] Aurora supported device, (Fill in problematic devices)
[x] Aurora Scripts
[ ] Aurora Updater
[ ] Aurora Lighting issue
[ ] Other, (Fill in another issue here)

What kind of an issue is it?

[ ] Crash
[ ] Performance problems
[ ] Visual bug
[ ] Localization issue
[x] Enhancement suggestion
[ ] Device issue
[ ] Other, (Fill in another type of issue here)

Would like to see a script added so when I press my capslock key that all the letters light up when caps is enabled and off when not. Could also work with numlock and FN keys as well

Maybe you could just add a layer type as Text Document layer so you can have it active when you open things like Notepad and Word.

Have you seen the "Lock Color Layer" it should allow you to achieve what you want. If you don't have it you may need to update to the [latest development version](https://github.com/antonpup/Aurora/releases?


ci: Add github credentials to action

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 15.66%. Comparing base (8ddffed) to head (276422d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #215       +/-   ##
===========================================
+ Coverage   15.53%   15.66%    +0.13%
===========================================
  Files        1689      187     -1502
  Lines      150784    16753   -134031
  Branches   134699      670   -134029
===========================================
- Hits        23419     2624    -20795
+ Misses     126168    14129   -112039
+ Partials     1197        0     -1197

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Load average for a node is N/A?

Just installed this plugin v2.1.2 and it looks really nice.. The only strange thing is that load average for a node reports as N/A sometimes and sometimes id displays a load.. Not sure if it's that the load average is 0.00 then it displays N/A, can that be the case? But then, if the load is 0 shouldn't it display 0 then?

What version of ES are you using?

I am using v2.4.0..


Fix language issue

This PR deletes an (accidentally created?) file which seems to overwrite all translation strings from Minecraft.
Seeing as this bug is a regression, I looked through the diff of https://github.com/xanthian/variantcraftingtables/commit/dfb5d8cf1dd2d5b33faec4ebb65427c728b21f90 and noticed that this file got (accidentally?) included:
https://github.com/xanthian/variantcraftingtables/blob/dfb5d8cf1dd2d5b33faec4ebb65427c728b21f90/src/main/resources/assets/minecraft/lang/en_us.json#L1-L3
My hypothesis is that the file overwrote all translation strings of the game. I just tried building the mod with that file deleted & the logs are back to normal again. It looks like this translated string is already incldued in the generated assets here:
https://github.com/xanthian/variantcraftingtables/blob/dfb5d8cf1dd2d5b33faec4ebb65427c728b21f90/src/main/generated/assets/variantcraftingtables/lang/en_us.json#L2
Looking in-game, this translation does get applied, so I'm not expecting any more regressions/bugs from this.

Fixes #31

oo er, not sure what happened there.
i dont accept PR's but I will amend this and release asap (today)
thank you for finding it, saved me a job!


Update .NET ARM Library to supported package

Fixes https://github.com/Azure/azure-sdk-for-net/issues/34711

@microsoft-github-policy-service agree


I2C Updates

Closes #25.

Any thoughts on this @dtwood ?

Paging @dtwood...?

Thanks for the changes. I will Merge And Be Damned, but I will also endeavour to test them before I push out a new release.

Umm, I can't push to this repo any more, so I've had to open a PR from a personal fork.


multi deploy: not supported by windows

when I executed weaver multi deploy weaver.toml, it doesn't work.
config
[serviceweaver]
name = "weaver"
binary = "./weaver.exe"

temp/serviceweaver/logs/weaver-multiweaver..f1de7a14-6cfb-49fb-9f63-1fec84875a3b.error.log
,
weaver
babysitter"$f1de7a14-6cfb-49fb-9f63-1fec84875a3b)#9N? 2error:dC:/Users/lemon/go/pkg/mod/github.com/!service!weaver/weaver@v0.1.1/internal/babysitter/babysitter.go@?Je.RunRserviceweaver/systemR RerrRSfork/exec C:\Users\lemon\GolandProjects\weaver\weaver.exe: not supported by windows,
weaver
babysitter"$f1de7a14-6cfb-49fb-9f63-1fec84875a3b)#9N? 2error:dC:/Users/lemon/go/pkg/mod/github.com/!service!weaver/weaver@v0.1.1/internal/babysitter/babysitter.go@?Je.RunRserviceweaver/systemR RerrRSfork/exec C:\Users\lemon\GolandProjects\weaver\weaver.exe: not supported by windows

is weaver multiprocess does not support windows?

it's a bug and the team fixing it I guess. In the mean time you can change the name and delete files on /tmp/serviceweaver/logs/weaver-multi to try again to see if it help

it's a bug and the team fixing it I guess. In the mean time you can change the name and delete files on /tmp/serviceweaver/logs/weaver-multi to try again to see if it help

delete files doesn't work. i think  the problem is ExtraFiles is not supported on Windows.
// ExtraFiles specifies additional open files to be inherited by the
// new process. It does not include standard input, standard output, or
// standard error. If non-nil, entry i becomes file descriptor 3+i.
//
// ExtraFiles is not supported on Windows.
ExtraFiles []*[os](https://pkg.go.dev/os).[File](https://pkg.go.dev/os#File)

Duplicate of #81


User Guide Draft: Write introduction, FAQ and 'done' command

Week 6 user guide draft.

Finished writing on introduction, FAQ and 'done' command in the draft UG


Add support for update operator

Like $push, $unset, ecc...

This issue has been automatically solved by #30 .


[BUG] Spacebar is not working

Description
In the code, the spacebar is used for shooting bullets, but in the deployment link, the spacebar is not working.
Screenshots
No response
Any additional information?
No response
What browser are you seeing the problem on?
No response
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[x] I'm a Hacktoberfest'24 contributor
[X] I am willing to work on this issue (optional)

@Karan-Mahato  Space bar functionality is working but the issue is that for accessing the shoot functionality You need to press it continuously for longer duration .The responsiveness of the shoot command is affected by the duration of the press. A quick tap isn't registering properly

@Deepak0yadav okay, thanks for explaining the issue


WIKI

There is something wrong in the dataset you supplied , because there is no downfacing rosbag .what's more, could you tell me the input and output of deblurnet and homography net.I can not understand the wiki instruction.

Hi,
You're right, the down-facing images are missing. (We'll try to get that soon). Meanwhile, if you want to run the deblurnet and homography net, you can run them directly on the front facing images.
To run deblurnet: Please go to code\DeblurNetUnsup\  then run RunEVDeblurNet.py with the appropriate command line flags . The command would be:
RunEVDeblurNet.py --ModelPath=YOURMODELPATH --ReadPath=YOURPATHTOFRONTORDOWNIMGS --WritePath=PATHTOSAVEOUTPUTS
For e.g.,
RunEVDeblurNet.py --ModelPath=/media/nitin/Research/EVDodge/CheckpointsDeblurNetLR1e-4GradAndPhoto/399model.ckpt--ReadPath=/media/nitin/Research/EVDodge/DatasetChethanEvents/processed --WritePath=/media/nitin/Research/EVDodge/DatasetChethanEvents/Deblurred
Once you have run the DeblurNet, you can use these outputs to run the HomographyNet if you are using the models with DB prefix from here.
To run homographynet: Please go to code\HomographyNetUnsup\  then run RunEVHomographyNet.py with the appropriate command line flags . The command would be:
RunEVHomographyNet.py --ModelPath=YOURMODELPATH --ReadPath=YOURPATHTOIMGSAFTERDEBLURRING --WritePath=PATHTOSAVEOUTPUTS
For e.g.,
RunEVHomographyNet.py --ModelPath=/media/nitin/Research/EVDodge/CheckpointsDeblurHomographyLR1e-4Epochs400/399model.ckpt --ReadPath=/media/nitin/Research/EVDodge/DatasetChethanEvents/Deblurred --WritePath=/media/nitin/Research/EVDodge/DatasetChethanEvents/DeblurredHomography
We used the downfacing images in the paper, but found that just using front facing images for homography directly works well if the image is more or less planar (only fails when the moving object is in the image crop used by the network).
This model for homographynet has to be run after using this model for deblurring.
How do you know which DB model to use?
Look at the downloaded homography model. It contains a file called RunCommand.md which for e.g., looks like this ./TrainEVHomographyNetAllLosses.py --BasePath=/home/nitin/EVDodge/DatasetsForPaper/DownfacingEventsProcessedDBChabM --NumEpochs=200 --NetworkType=Small --CheckPointPath=/home/nitin/EVDodge/prg_evdodge/CheckpointsHomography/ --LogsPath=/media/nitin/Research/EVDodge/LogsHomography/ --GPUDevice=1 --LR=1e-3 --TrainingType=S  for the above case. Look at the BasePath, it says DBChabM at the end, this name corresponds with the deblurring model name.

There is something wrong in the dataset you supplied , because there is no downfacing rosbag .what's more, could you tell me the input and output of deblurnet and homography net.I can not understand the wiki instruction.

Do let me know if you face any more issues.


Added chrome cache_path as property

Is setting settings.cache_path to "" correct in the no path case?
In the no path case it should run like incognito - it should not persist the cache.
@jakeloo  on a different related topic - I see that we get the log path from the registry - that doesn't seem right.

I couldn't find any documentation regarding what happens when you set CefSettings.cache_path = "".
@BattulgaTS can you test the case to see what happens? if it hits assertion error or works as no cache.
--
@fpn yup, that seems wrong. It's there since day 0, we should probably clean it up.

if we don't specify cache_path in cef_settings, CEF version 3.3282 we use today saves cache in "%LOCALAPPDATA%\CEF".
However latest version of CEF creates browsers in "incognito mode" if no cache_path is provided, therefore it does not persist cache data.
https://bitbucket.org/chromiumembedded/cef/src/96f907e55a7e99eb56f3908a343f9f001d301207/include/internal/cef_types.h?at=3282&fileviewer=file-view-default#cef_types.h-224


IE 10 issue

This works well with other browser except IE10.
Shows unhandled promise rejection with an object of access denied
Any work around for this issue?

I don't have IE10. I use Ubuntu with Firefox, Chrome and Opera. I have gaming PC machine with Windows 8.1 so but I am not sure what kind of IE version is there. Are you sure this is code IE browser support issue? not env or something else? This method is according to the pdf.js documentation so this should work under other browsers as well. However, I will try to find IE somewhere and find out what is going on. Thanks for this issue, I will leave it open until I find IE10 and test it. However, this may require fake node installation on Windows. May I ask how did You tested on Windows with IE10? I will try to reproduce it then.

I have just seen that IE might be partially supported. So there might be problem with the library itself.
https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support
However, I will be trying to reproduce it, probably this week.

@javascriptiscoolpl Thanks for the fast response.
I have a window machine which I use to test for IE10 and Edge. Been researching on PDF.js as well. it seems to be an issue on the data I was passing, as I was using a base64 encoded pdf data and it seems that IE does not want that.

Oh, OK. For base64 there must be decoding part so this should not work also under other browsers, I guess. Did You tested it under Firefox or any other browser as well? Maybe I should add something for encoded pdfs as well, option or something automatic better to keep it simple to use.
Maybe more details about the window with IE machine? This is wine? or this is any kind of platform simulator?

simplePdf actually works fine with other browser whether it be url or base64 data. Will update you about the window machine details. currently we have a dev environment which we can publicly access over intranet to test out with windows IE.
My current machine is a macOS sierra, tested it on Firefox, chrome and safari.

I don't have macOS too but system should not be a problem if the node environment is correctly installed, I guess. Good to know that base64 works as well. As I remember there are problems in case of advanced pdf documents, like special fonts or something with localization.
Nice to hear You can share the access to the reproduce lab. Can't wait. Thanks.

By the way I make small research regarding the error message:
unhandled promise rejection and access denied
and this all go into security issue direction strictly related to the CORS (Cross-Origin Resource Sharing). You can also make more research on that.

manage to display the pdf by converting base64 data to uint8Array. Problem now is in simplePDF node.clientWidth returns 0 on the first page then will have a proper clientWidth on the second page.

Nice to hear it starting to work. If now the problem is with width, You probably have to define .SimplePDF class with width and height. The pdf canvas automatically adjust the size to the box container of .SimplePDF class. This use box model. There are no defaults for width and height. Just define somewhere the CSS rule:
.SimplePDF {
width: 350px;
height: 500px;
}
See Readme or index.html example for more details in demo folder.
However, I will leave this issue open and will try to test this module on Windows under IE (don't know what version IE I have there). Because this module has never been tested under the Windows and IE, so I have no idea if this works there or not, in fact.

I have just tested this on my PC gaming machine under Windows 8.1. There is IE11+ version and I was able to reproduce the error message.
I can confirm there is security IE issue probably described here:
https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-xhr
https://www.webdavsystem.com/ajax/programming/cross_origin_requests
This issue is related to IE only, because on the same machine Firefox loaded the demo index.html file without any problems.
I will leave this issue open for some time. I need to rethink if the code changes are needed.

There is currently CORS security issue also in google-chrome and opera. Probably they released new CORS feature there. So, I decided to create new example with server-client idea:
simple-react-pdf-service: https://www.npmjs.com/package/simple-react-pdf-service
Also we can wait what Mozilla will do with it, because now only Firefox support it. However, when client through JavaScript is starting to read the filesystem there is always confusion around :-)
I am going to close this issue, if there will not be more comments.


Fix XPU inference

What does this PR do?

With device_map = {"xpu": "16GB", "cpu": "32GB"} on an Intel XPU, it will complain about
Device xpu is not recognized, available devices are integers(for GPU/XPU), 'mps', 'cpu' and 'disk'"

but you cannot just put 0 as device, or it will treat 0 as CUDA device, then complains again that torch is not compiled with CUDA enabled.
You will need safetensors >= 0.4.2 if using safetensors files (https://github.com/huggingface/safetensors/pull/428).
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[x] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@SunMarc I have added the check of safetensors version, and fixed style errors.


Move go-licenses to generate and separate generate into a frontend and backend component

The go-licenses make task introduced in #21034 is being run on make vendor
and occasionally causes an empty go-licenses file if the vendors need to
change. This should be moved to the generate task as it is a generated file.
Now because of this change we also need to split generation into two separate
steps:

generate-backend
generate-frontend

In the future it would probably be useful to make generate-swagger part of generate-frontend but it's not tolerated with our .drone.yml
Ref #21034
Signed-off-by: Andrew Thornton<EMAIL_ADDRESS>

ah this will require a little more finesse...

make L-G-T-M work

There's still an intermittent issue with the go-licenses make target that appears to drop the code.gitea.io license from time to time.
@silverwind do you have any ideas what's happening here?

Not sure I understand why these changes here were all necessary, but I'd probably just have dropped the tidy dependency of vendor. Reason being that tidy is unnecessary in the release pipeline as the complicance pipeline already ensures that tidy is consistent.

@silverwind do you have any ideas what's happening here?

Hmm, I could only imagine that the go-licenses tools fails to download sometimes, but I think it's using GOPROXY so it should work even if code.gitea.io is down.

If automating this proves too difficult, we could also opt to make the target standalone without any dependants and just have it as a manual task after dependency update.


feat(transformer): add CompilerAssumptions to TransformContext

#7369  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


Show the current license owner & total amount in getassetinfo.

Add some more license information in getassetinfo.

pass

pass


TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):
File "imgsearch.py", line 32, in
res_reg = [w[1] for w in src.query(imlist[q_ind])[:nbr_results]] # 查询的结果
File "/opt/conda/lib/python3.8/site-packages/PCV/imagesearch/imagesearch.py", line 128, in query
h = self.get_imhistogram(imname)
File "/opt/conda/lib/python3.8/site-packages/PCV/imagesearch/imagesearch.py", line 96, in get_imhistogram
return pickle.loads(str(s[0]))
TypeError: a bytes-like object is required, not 'str'
env: python3.8.8

TypeError: 'cmp' is an invalid keyword argument for sort()


Apple will stop accepting submissions of apps that use UIWebView APIs

After uploading our app to AppStoreConnect, I received the following email from Apple:

Dear Developer,
We identified one or more issues with a recent delivery for your app, "autoSense Fuel DEV" 1.2.1 (2). Your delivery was successful, but you may wish to correct the following issues in your next delivery:
ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.
After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to App Store Connect.
Best regards,
The App Store Team

Is somebody already working on replacing UIWebView (APIs) with WKWebView? If not, I will probably fork it myself.

Any updates ?

https://github.com/sgr-ksmt/PDFGenerator/pull/117

I'm really sorry for the late reply to you.
I have just publihsed v3.1.0 to resolve this issue.
Thanks @rlester 🙏

Awesome! 👍

I think we're good to close this no?

Yes! Sorry...


file limitation more than 130 kb ?

With javascript source files of more than 130 kb, the output (minifyed file) is empty.

Please attach the sample javascript file.

@mms-mMarconi please attach the file or a similar one. If there is an exception with syntax error, that it is related to #3

Please test version 2.4.0.