Switch data not showing

Hi there,
I just installed the latest verssion of the poller and dashboards on my CentOS system. Everything workes fine and look sgreat so thanks for that.
I have an issue where the poller thinks I do not have a switch in my network. I do have one but it is not shwoing up. if I check my logs is see the following lines:
Oct  2 16:11:46 hades chronograf: time="2019-10-02T16:11:46+02:00" level=info msg="Response: OK" component=server method=GET remote_addr="<IP_ADDRESS>:19753" response_time="40.117µs" status=200 Oct  2 16:11:50 hades unifi-poller: 2019/10/02 16:11:50 [ERROR] json.Unmarshal(usw): json: cannot unmarshal number into Go struct field USW.stp_priority of type string Oct  2 16:11:50 hades unifi-poller: 2019/10/02 16:11:50 [ERROR] Enable Debug Logging to output the failed payload.
Oct  2 16:11:50 hades influxd: [httpd] <IP_ADDRESS> - unifi [02/Oct/2019:16:11:50 +0200] "POST /write?consistency=&db=unifi&precision=ns&rp= HTTP/1.1" 204 0 "-" "InfluxDBClient" 94061732-e51e-11e9-a98c-cad656d28ad9 21338 Oct  2 16:11:50 hades unifi-poller: 2019/10/02 16:11:50 [INFO] UniFi Measurements Recorded. Sites: 1, Clients: 37, Wireless APs: 12, Gateways: 0, Switches: 0, Points: 134, Fields: 7017 Oct  2 16:11:57 hades chronograf: time="2019-10-02T16:11:57+02:00" level=info msg="Response: OK" component=server method=GET remote_addr="<IP_ADDRESS>:19753" response_time="18.392µs" status=200 Oct  2 16:12:08 hades chronograf: time="2019-10-02T16:12:08+02:00" level=info msg="Response: OK" component=server method=GET remote_addr="<IP_ADDRESS>:19753" response_time="33.485µs" status=200
Can you hepl me with this issue?
Thanks,
Jeroen

Hello and thank you for your report! This same problem was reported and corrected #117. Please try the attached package - it contains all the current patches.
unifi-poller-1.5.3-433.x86_64.rpm.gz

Hi David,
Thanks for the quick reply. I missed that one. I did not link it to my issue. Package installed and all working fine now.
Many thanks,
Jeroen


Various questions/suggestions for documentation

I hope you don't mind this mixed bag of questions...

What happens if the code is really deeply recursively nested? The online interpreter showed "unhandled exception: longjmp" in the console.
Is it possible to expose foreign functions/data types manually to the interpreter without the bindgen tool? In cases one doesn't want to create a whole module but only register a few functions that are also used in a main program.
Foreign pointers: How are they handled? Are they type checked as well, rendering it impossible to pass the wrong void* pointer to a foreign function?
Can the interpreter be stopped by the host program? Without loss of data?
(Theoretically speaking of course, given there was some kind of audit) how feasible do you think is it to point untrusted code sources like the internet towards a running interpreter? Easy? Hard? Architecturally impossible?

Thanks in advance!

Closing this as part of the gitlab migration: https://gitlab.com/FascinatedBox/lily/issues/363


Fix setting of 'largeIcon'

Set largeIcon before building the notification, otherwise the icon would not be set.

👍


[hmap][Bazel 6.0] Harden hmap writes

Harden hmap logic. After updating to Bazel 6.0 I hav observed several invalid hmap files in bazel-out and --disk_caches under load only. The system in question was running Bazel 6, intel, and macOS 12.5.2. This hardens the hmap code to fix 2 obscure/intermittent categories of failure.

Fix hmapbuild return code

First if a write fails in rules_ios - in  hmapbuilder.c isn't propagated. This is a longstanding bug and maybe masking other problems.

Call fsync to guard against data corruption

Per the man page

fsync() causes all modified data and attributes of fildes to be moved to
a permanent storage device. This normally results in all in-core
modified copies of buffers for the associated file to be written to a
disk.

Interesting... thanks for tightening the error checking, I added a bit more checks to see if we can catch what is happening.
Do you have examples of the corrupted hmap files? Are they empty? Missing info? Full of NULLs?
Adding the call to fsync() should be unnecessary because close() and process exit semantics are supposed to guarantee flushing the buffers. I left it in but note it'll have about a 15% performance penalty (which might be fine since hmap generation is the fastest piece in the build).
rules_ios ❯ hyperfine "./test" "./test -s"
Benchmark 1: ./test
  Time (mean ± σ):      1.136 s ±  0.028 s    [User: 0.009 s, System: 1.058 s]
  Range (min … max):    1.100 s …  1.182 s    10 runs

Benchmark 2: ./test -s
  Time (mean ± σ):      1.288 s ±  0.051 s    [User: 0.011 s, System: 1.056 s]
  Range (min … max):    1.236 s …  1.389 s    10 runs

Summary
  './test' ran
    1.13 ± 0.05 times faster than './test -s'

That test.c is essentially:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>

int main(int ac, char **av) {
    const char *dir = "/tmp";
    const char *file = "hmaptest.hmap";
    char path[1024];
    char buf[1024];
    int do_fsync = 0;

    if ( ac > 1 && strcmp(av[1], "-s") == 0) {
        do_fsync = 1;
    }

    snprintf(path, sizeof(path), "%s/%s", dir, file);
    int NTIMES = 10000;
    for (int i = 0; i < NTIMES; ++i) {
        int fd = open(path, O_WRONLY | O_CREAT, 0666);
        if (fd < 0) {
            printf("open failed: %s\n", strerror(errno));
            return 1;
        }
        int rc = write(fd, buf, sizeof(buf));
        if (rc < 0) {
            printf("write failed: %s\n", strerror(errno));
            return 1;
        }
        if (do_fsync) {
            if ( fsync(fd) < 0 ) {
                printf("fsync failed: %s\n", strerror(errno));
                return 1;
            }
        }
        close(fd);
        struct stat st;
        if ( stat(path, &st) < 0 ) {
            printf("stat failed: %s\n", strerror(errno));
            return 1;
        }
        if ( st.st_size != sizeof(buf) ) {
            printf("size mismatch: %lld != %ld\n", st.st_size, sizeof(buf));
            return 1;

        }
        if ( unlink(path) < 0 ) {
            printf("unlink failed: %s\n", strerror(errno));
            return 1;
        }
    }
    return 0;
}

@ob We were able to repro the issue on CI workers, from one of the "bad" workspaces I have access to I get (redacted the fmw name):
$ file bazel-out//ios-x86_64-min14.0-applebin_ios-ios_x86_64-dbg-ST-2db1df0745c8/bin/Frameworks/SomeInternalFmw/SomeInternalFmw_private_hmap.hmap
bazel-out//ios-x86_64-min14.0-applebin_ios-ios_x86_64-dbg-ST-2db1df0745c8/bin/Frameworks/SomeInternalFmw/SomeInternalFmw_private_hmap.hmap: empty

During the internal incident we had because of this I remember finding non-empty .hmap files but with only 37B in it and the content was:
$ cat bazel-out//ios-arm64-min12.0-applebin_ios-ios_arm64-dbg-ST-acb08275552e/bin/Pods/Foo/Foo_private_hmap.hmap
pamh$%

Yeah the problem with the original code is it doesn’t check any error codes - so Bazel will persit a bad hmap when writes ( or Hmap creation ) fails.
This said, I’m hitting an un-root-caused issue with the disk cache in Bazel 6.0. These changes were added to guard against misc failures - not explicitly to fix this corruption. What’s odd is it’s only hmaps that pop as messed up.
A penalty on these files would be negligible because they are tiny but just might help stability. Further it’s less of an perf issue because on macOS APFS fsync is buffered and is not a true sync like the standard would have you believe anyhow ( see the man page for what I mean 🤕)
I’ll re post when we get to the bottom of this disk cache corruption. ATM we are making sure the LTS release version ( 5.0 ) is working so we can continue to update rules JFYI @chenxiao0228

PS I’ve both added details and flagged the disk cache issue if you are wanting to know about it:
https://github.com/bazelbuild/bazel/issues/17428#issuecomment-1421052652
The potential way reality is that if this is the only broken rule with disk_cache we can stop disk caching it but I’d like to get to the bottom of it first: if the disk cache is corrupted for all rules it will be an insidious problem so I’m avoiding Bazel 6 until we find the issue 😅


Missclicking

Everything work well except script cannot find button (end turn) and doesn’t click Ok after choosing team. En (Europe) version

Also script doesn’t work on bosses 1-8, stucks at choosing dungeon.


Feature/my reservations

Added a structured list to show the reservations made by the user.
Added animation and styles.

this pr is merged with the details page


draggable & rotate-to-location with Vanilla js

Hi, this is the Lib I was looking for!!
Are there any examples of vanillajs code for draggable & rotate-to-location?
I don't know the react, so I'm having a hard time applying it 😢

Vanilla Cobe with Drag and Rotate feat: https://stackblitz.com/edit/vitejs-vite-aqcwbr?file=src/globe.ts

@wobsoriano Thank you for the perfect demo!!
I'm really sorry, but if possible, could you post an example of Js about Rotate to Location?

Vanilla Cobe with Rotate to Location feat: Stackblitz
I changed only a few lines of code from @wobsoriano's code.
I hope this helps!!

@yumin-jung Thank you so much. It helped a lot!!


Fixup gc visitation in streams readers and writers

PR does a couple of things:

Ensures the the Reader/Writer is gc visiting the strong ref to the ReadableStream/WritableStream
Switches to uses a WeakRef rather than a Maybe bare ref from the ReadableStream/WritableStream to the Reader

There are a number of relevant failures on internal CI. Marking this as a draft while I investigate.

Does the change to WeakRef fix a problem or is it just aesthetics? ...

Fixes a problem in the cleanup ordering that was masked by the memory leak.

Superseded by #1606


Refactoring oooDiscardPoints counter

Unexport property, initialize it during whisper file opening and create function to return updated number since opening.

lgtm, thanks!


Document available Kate integration.

Might help out some folks.

I didn't know about this. Thank you.

Thanks @eikehein!

Thanks! :)


Sidebar does not adapt on small height screens

On screens that are wider than high, when screen height is too small, the bottom of the blue column (sidebar/aside) cannot be accessed.
This becomes a limitation when using several pages and/or a long name/description.

@JBosm thanks for raising the issue. Is there any real device that comes with these dimensions?

Yes, my laptop. I was trying my site with pelican-blue, with 6 pages and one social media. The social was out of screen. I agree that most blogs will not use that many pages.

@JBosm Yes, adding too many pages in sidebar is rare. You can fork and add a scroll bar to the sidebar.

it's also the case when you have many tags listed. I will mook into how to add sa croll bar, maybe I can PR here afterwards ?


Retain bounding set when running containers as non root

We need to be able to run sudo commands inside of Dockerfile's
even when containers are setup with non root.
This patch retains the bounding set for containers run with non root user.
Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>

Fixes https://github.com/projectatomic/buildah/issues/996

@TomSweeneyRedHat @nalind @vrothberg @pixdrift @umohnani8 PTAL

@Conan-Kudo PTAL

LGTM

I'll take a look at it later today, thanks!

bot, retest this please

LGTM
Test failures don't look related.

bot, retest this please.

Happy green test buttons.

LGTM

@rh-atomic-bot r=vrothberg

@rh-atomic-bot retry


TypeError: Invalid schema configuration: True is not a valid type at path required.

---- New Info ----
I found that it is because arrayProp(in another word, Array) cannot deal with required: true, please fix this error as soon as possible.
Right now, public array?: ArrayItem[]; cannot be set as required: true, or you could face the error as I did
---- Old Question ----
Here is a deadly simple class:
export class MedicalAccountPersonItem {
  @prop({required: true})
  public personName: string;
  @prop({required: true, min: 0.0})
  public outcome: number;
  @prop({required: true, min: 0.0})
  public remaining: number;
}

export class MedicalAccount extends Typegoose {
  @prop({required: true, index: true})
  public id: string;
  @prop({required: true, ref: DetailedAccount})
  public detailedAccount: Ref<DetailedAccount>;
  @prop({required: true, index: true})
  public timestamp: Date;
  @prop({required: true})
  public item: string;
  @prop({required: true, min: 0.0})
  public unitPrice: number;
  @prop({required: true, min: 0.0})
  public unitNumber: number;
  @arrayProp({required: true, items: MedicalAccountPersonItem})
  public personItems?: MedicalAccountPersonItem[];

  @prop()
  get sumOutcome(): number {
    return this.personItems ? this.personItems.map((p) => p.outcome).reduce((a, b) => a + b) : 0;
  }

  @prop()
  get sumRemaining(): number {
    return this.personItems ? this.personItems.map((p) => p.remaining).reduce((a, b) => a + b) : 0;
  }
}

export const MedicalAccountModel = new MedicalAccount().getModelForClass(MedicalAccount);

But I will get
    throw new TypeError(`Invalid schema configuration: \`${name}\` is not ` +
          ^
TypeError: Invalid schema configuration: `True` is not a valid type at path `required`. See http://bit.ly/mongoose-schematypes for a list of valid schema types.

when import {DetailedAccountModel} from "../../model";. And if I remove ALL the required: true, I can save this model to Mongo correctly.
As you can see in the error info, required: true has been compiled to True, which is really weird...
I have no idea where is wrong, please help...

+1

I'm remove required: true from array properties (personItems in this case) and I solved my problem

include this in schema:
location: {
type: { type: String },
coordinates: [],
required: true
},
now get to know, because of required: true it's giving me this error, please help..

i found this error too, when set @prop({required: true})

Can Confirm
Error:
/projects/testing/node_modules/mongoose/lib/schema.js:820
    throw new TypeError(`Invalid schema configuration: \`${name}\` is not ` +
          ^
TypeError: Invalid schema configuration: `True` is not a valid type at path `required`. See http://bit.ly/mongoose-schematypes for a list of valid schema types.
    at Schema.interpretAsType (/projects/testing/node_modules/mongoose/lib/schema.js:820:11)
    at Schema.path (/projects/testing/node_modules/mongoose/lib/schema.js:596:27)
    at Schema.add (/projects/testing/node_modules/mongoose/lib/schema.js:437:12)
    at new Schema (/projects/testing/node_modules/mongoose/lib/schema.js:117:10)
    at Schema.interpretAsType (/projects/testing/node_modules/mongoose/lib/schema.js:770:29)
    at Schema.path (/projects/testing/node_modules/mongoose/lib/schema.js:596:27)
    at Schema.add (/projects/testing/node_modules/mongoose/lib/schema.js:437:12)
    at new Schema (/projects/testing/node_modules/mongoose/lib/schema.js:117:10)
    at DummyType.Typegoose.buildSchema (/projects/testing/node_modules/typegoose/src/typegoose.ts:72:71)
    at DummyType.Typegoose.setModelForClass (/projects/testing/node_modules/typegoose/src/typegoose.ts:44:20)
    at DummyType.Typegoose.getModelForClass (/projects/testing/node_modules/typegoose/src/typegoose.ts:30:12)
    at Object.<anonymous> (/projects/testing/src/app.ts:20:36)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)

Full Dummy Code to Reproduce:
import { ObjectID } from "bson";
import * as mongoose from "mongoose";
import { arrayProp, prop, Typegoose } from "typegoose";

class DummyItem {
    @prop({ required: true })
    public dummy!: string;
}

class DummyType extends Typegoose {
    @prop({ required: true, index: true })
    public id!: ObjectID;

    @arrayProp({ required: true, items: DummyItem })
    public personItems!: DummyItem[];
}

const DummyModel = new DummyType().getModelForClass(DummyType);

(async () => {
    await mongoose.connect(`mongodb://mongodb:27017/`, {
        useNewUrlParser: true,
        useFindAndModify: true,
        useCreateIndex: true,
        dbName: "verify238",
        user: "test",
        pass: "passwd",
        authSource: "admin",
        autoIndex: true
    });

    await new DummyModel({ } as DummyType).save();
})();

#193 might be related, or this is even a duplicate

#302 seems to have fixed this, at least when i try to execute the reproduce code, it dosnt error anymore
so i think this can be closed
@Ben305


feat: add mutate function

Implement the mutate function content for the createorUpdate topolvmdNode
resource.
Signed-off-by: Juan Miguel Olmo Martínez<EMAIL_ADDRESS>

Forgot to mention earlier, we need to assign containers spec as well in mutate function.


The DOM render has been removed Assertion being fired

I imagine this in response to #5815

Can you provide some context? There is no DOM renderer any more.

I assume he's talking about the warning here?
https://github.com/openlayers/ol3/blob/master/src/ol/map.js#L1466
Just remove renderer: 'dom' from your map config @Benjaki2 to get rid of the warning

That did the trick @bartvde. Thanks guys.


dpe/fuzz: Fix bit-rot

LGTM. Can we also build the fuzz target (no need to run it) in the CI script so we catch things like this before merging PRs?
https://github.com/chipsalliance/caliptra-dpe/blob/d3b9102af176338292e76914eb2c56e87406cb79/ci.sh#L6

Oh. We have https://github.com/chipsalliance/caliptra-sw/pull/700, but that'll only trigger when someone bumps the submodule revision. That'd potentially be a lot of work if DPE went through many changes. Okay


Cogljj/serialization exporter

Pull Request Description
What issue does this change request address?
#1580
What are the significant changes in functionality due to this change request?
Adds serialization features.

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[ ] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[ ] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[ ] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[ ] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[ ] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

Job Test Fedora 31 on 25131d6 : invalidated by @joshua-cogliati-inl
Failed tests/framework/CodeInterfaceTests/RAVEN/Basic

Job Test Ubuntu 18 PIP on 25131d6 : invalidated by @joshua-cogliati-inl
Failed tests/framework/InternalParallelTests/PostProcessor

Job Test qsubs on 5388e0b : invalidated by @joshua-cogliati-inl
Diff tests/cluster_tests/RavenRunsRaven/ROM

Job Mingw Test on 962df91 : invalidated by @joshua-cogliati-inl
restarted civet

Job Test qsubs on 962df91 : invalidated by @joshua-cogliati-inl
Multiple failures.

Job Mingw Test on 962df91 : invalidated by @joshua-cogliati-inl
Failed tests\framework\CodeInterfaceTests\RAVEN\Basic

Note that this PR (as of this writing) does not fully deprecate the <variables> node for ExternalModels, so a conversion script is not included.
However, it does introduce this deprecation that should be finalized at some point.

All comments have been addressed and checklist is complete. Merging.


Allowing DatabaseInstance ssl_mode

Hello!

Vote on this issue by adding a 👍 reaction
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details
GCloud Cloud SQL API now allow for a more refined ssl_mode parameter (https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1/instances#sslmode) to complement/override the current requireSsl (https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1/instances#ipconfiguration). This is especially useful when you want a secure connection but can't always manage client certificate and mutual TLS on the fly or the ROI of doing so is not present.
Affected area/feature
Pulumi Gcloud API support

Thank you for opening this issue @bruno-morel
Since this provider is based on the upstream one, we rely on Google folks to ship support to features in their TF provider. As soon as it ships there, we'll be able to take advantage of it.
I can't find an upstream issue tracking this feature yet: https://github.com/hashicorp/terraform-provider-google/issues?q=is%3Aissue+google_sql_database_instance+ssl+mode+is%3Aopen
But I assume it's coming soon.


Write a C# program to convert weeks to hours

Description
Write a C# program to convert weeks to hours
1 week = 7 days = 168 hours
Input  : 5
Output : 840

How to contribute

Save the solution in ConvertWeeksToHours.cs file
Add ConvertWeeksToHours.cs file in convert-weeks-to-hours folder

!assign


feat: PaintLine

I checked carefully and seems very well done, thanks !
Could you still add 2 test cases
Black image
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
And draw line from (0,1) to (3,2). I would expect something like:
0 0 0 0
1 1 0 0
0 0 1 1
0 0 0 0
And a second example
Black image
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
And draw line from (1,0) to (2,3). I would expect something like:
0 1 0 0
0 1 0 0
0 0 1 0
0 0 1 0
There is also a rebase problem because flip was now merged.

Maybe we should create a new subfolder for the paint-related functions? src/paint ?

Canvas API

would you please give me a link or explain how?

https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API
I'd like to compare the result of paintLine vs something like:
ctx.moveTo(10, 10);
ctx.lineTo(20, 20);
ctx.stroke();

there's a problem while testing with canvas api:
my function draw the first line but in canvas they use the seconde one

maybe we should implement Xiaolin Wu's line algorithm

I see that the main part of the line is identical, so we can merge this.
I was going to open another issue about antialiasing.

Thank you for looking into it btw!


Alignment with PROF

The W3C's Dataset eXchange WG, in addition to producing DCAT 1.1 (DCAT Revised) have produced the Profiles Ontology and MOD needs to look at alignment with that. It's closer to MODS purposes than DCAT.

Thank you, Nicholas, let us check it.


Earthdawn (FASA Official) character sheet v1.000 (new sheet)

Changes / Comments
Roll20 Requests
Include the name of the sheet you made changes to in the title.

If changes fix a bug or resolves a feature request, be sure to link to that issue.
For pull request that change multiple sheets please confirm these changes are intentional for all sheets. This will help us catch unintended submissions.
When updating existing sheets if you are changing attribute names please note what steps you have taken, if any, to assist players in keeping their data.

P.S. This sheet was requested and the name Earthdawn (FASA Official) was approved by<EMAIL_ADDRESS>and several other people with @fasagames.com email addresses.  Andrew is head of tech at FASA and can be contacted if you have any questions about whether the game is FASA Official.

Thanks for including that Chris. :)

Greeting @ChrisDDickey
I have merged this request but in testing I was able to consistently get the sheet workers stuck in a loop.
This happened when I loaded up the character sheet on my test table and made a new character sheet then pressed the Core tab.
You may want to find what sheet workers are triggering this and disable them for the time being. If its triggering due to a change: loop you may want to use the silent option.
Let me know if you are unable to find the issue.
Thanks,
Cassie

Thanks @clevett

I was able to consistently get the sheet workers stuck in a loop.
Let me know if you are unable to find the issue.

Thank you very much, I have been working on this, and I pretty  much knew instantly what it was doing, but can't make it happen on my own computer.
I do have a situation where when A (anything in the AP column) is set, it sets a value into B (the value column), which in turn causes it to set a new value into C (the Base column), When C is set, it checks to see if A is compatible with C, and if not, changes A.
The purpose is to allow the user to edit ether column A or C, and have the other values change to match.
Your video shows the values of A, B and C flipping around madly, so that is obviously the loop it was stuck in. The problem is that I can't duplicate this on my system, because like I said, it should only update A if the value in C is incompatible.
May I ask what browser you are using? I am using Chrome.
The reason I ask is that while working on this I found this
and it might be that this issue is causing different behavior depending upon browser used.
I am also wondering if the computer you were using is remarkably fast or slow? Or is your connection to the database server unusually fast or slow? The reason I ask is the possibility that it might be some sort of timing issue where on my computer a value gets set before being read, and thus works fine, but on your's perhaps it is being read before it is well and truly set? I mean it should not be that, but I can't think of anything else because it should not be doing that and I can't make it do that on my computer.
Anyway, I have a version that both works around the sheet:open issue, and uses the "silent" option when C changes A (with extra code to also set B and everything that uses B silently as well). The new code works fine on my system, but the problem is that the old code also worked fine on mine! I was wondering if you would be willing to repeat the test with this code.
https://drive.google.com/file/d/1c-0HTu5qn4NaJCxyp_o7dcUeSarCZ6Yc/view?usp=sharing
If it works I will put in a new commit/pull req.
Thanks again very much.

Greetings,
I am using Chrome with no APIs.
Can you go ahead and put that new code in as a pull request? I will download it and test it in my local environmen and on our staging environment to see if it gives me the same behavior. I bet the silent option will fix this issue. I've done the same thing once on my Shadowrun sheet. :)
Thanks,
Cassie


Fix build failure for file encoding.

Replacing Unicode characters with ASCII charaters.
audio\sysvad\EndpointsCommon\MiniportAudioEngineNode.cpp(1,1): error C2220: the following warning is treated as an error
audio\sysvad\EndpointsCommon\MiniportAudioEngineNode.cpp(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss

I believe this has been taken care of with https://github.com/microsoft/Windows-driver-samples/pull/784.  Closing this PR


is-tests-consent test cases get failed when MySQL database in configured through the intg-test-runner.sh script.

Description:
After running the intg-test-runner.sh file, the following tables get created in WSO2_CARBON_DB.
CM_CONSENT_RECEIPT_PROPERTY    |
| CM_PII_CATEGORY                |
| CM_PURPOSE                     |
| CM_PURPOSE_CATEGORY            |
| CM_PURPOSE_PII_CAT_ASSOC       |
| CM_RECEIPT                     |
| CM_RECEIPT_SP_ASSOC            |
| CM_SP_PURPOSE_ASSOC            |
| CM_SP_PURPOSE_PII_CAT_ASSOC    |
| CM_SP_PURPOSE_PURPOSE_CAT_ASSC |
But the related test cases are getting failed, which are org.wso2.identity.integration.test.consent.SelfSignUpConsentTest and org.wso2.identity.integration.test.consent.ConsentMgtTestCase(is-tests-consent).  When you source the database manually only, these cases get passed.
OS, DB, other environment details and versions:
Database: MySQL 5.7
OS: Centos
Java: Oracle JDK 1.8
Steps to reproduce:

Provide MySQL database configurations in infrastructure.properties file.
Run intg-test-runner.sh script.
Run integration tests.
Verify if org.wso2.identity.integration.test.consent.SelfSignUpConsentTest and org.wso2.identity.integration.test.consent.ConsentMgtTestCase test cases are passed.

Expected: is-tests-consent test cases should be passed.
Actual: is-tests-consent cases are failed.

Drop databases manually and source WSO2_CARBON_DB database as below and other databases.

create database BPS_DS;
use BPS_DS;
source /../dbscripts/bps/bpel/create/mysql.sql;

create database WSO2_CARBON_DB;
use WSO2_CARBON_DB;
/../dbscripts/identity/mysql-5.7.sql;
/../dbscripts/mysql5.7.sql;
/../dbscripts/consent/mysql-5.7.sql;

create database WSO2_METRICS_DB;
use WSO2_METRICS_DB;
source /../dbscripts/metrics/mysql.sql;

Redo step 3 and 4.
The is-tests-consent test cases are passed.

Fixed via https://github.com/wso2/identity-test-integration/pull/317


[Type checker] Don't substitute into unresolved types.

Unresolved types are formed in a few specific places within the type
checker's recovery path; don't let them bleed into the substitution
logic. Fixes rdar://problem/42448618.

@swift-ci please smoke test and merge

This looks like a workaround. What's the actual problem?

I see, we're building a new generic signature because getTypeOfMember() calls subst() on a GenericFunctionType. Should it really be doing that?


Unable to use in Atom: unrecognized arguments: -f

usage: beautysh [--indent-size INDENT_SIZE] [--backup] [--check] [--tab]
                [--force-function-style FORCE_FUNCTION_STYLE] [--version]
                [--help]
                [FILE [FILE ...]]
beautysh: error: unrecognized arguments: -f
Hide Stack Trace
Error: usage: beautysh [--indent-size INDENT_SIZE] [--backup] [--check] [--tab]
                [--force-function-style FORCE_FUNCTION_STYLE] [--version]
                [--help]
                [FILE [FILE ...]]
beautysh: error: unrecognized arguments: -f
    at /Users/treverchambersewing/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:183:23
    at tryCatcher (/Users/treverchambersewing/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/treverchambersewing/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/treverchambersewing/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/treverchambersewing/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/treverchambersewing/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/Users/treverchambersewing/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/treverchambersewing/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/treverchambersewing/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:147:5)
    at Async.drainQueues (/Users/treverchambersewing/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)

This is a bug in atom-beautify and not in beautysh. They need to update the way they call beautysh since we got rid of the -f flag a long time ago.

Let post the unofficial solution they give us here, easily access.


Downgrade rethinkdb to 2.3.2

Because starting from 2.3.3 rethinkdb seems to have a memory leak issue:
https://github.com/rethinkdb/rethinkdb/issues/5865


sap.ui.model.odata.v4.ODataModel  bindContext mParameters does not support $top or $skip causing excessive traffic

OpenUI5 version:
1.54.7
Browser/version (+device/version):
Chrome Version 68.0.3440.42 (Official Build) beta (64-bit)
Any other tested browsers/devices(OK/FAIL):
No
URL (minimal example if possible):
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:
**Bind Table items to an OData V$ service to a Table

This throws an error because $top is not an alloweable system option within OpenUI5
(https://openui5.hana.ondemand.com/#/api/sap.ui.model.odata.v4.ODataModel/methods/Summary)**
What is the expected result?
**The error is correct according to the OpenUI5 documentation, however OData V4 does support the inclusion of $top and $skip:
~/NW/Employee?$expand=managesEmployee($count=true;$top=0)&$format=json**
What happens instead?
Error reported by OpenUI5
Any other information? (attach screenshot if possible)
Without the support of $top, when requesting only the count of an inline entitycollection all members of that entitycollection will be returned. This can be very large and slow.

Hello Peter!
Thanks for your interest in OData V4. Our model implementation is not yet complete and indeed, we are missing some features. The v4.ODataListBinding is of course able to do paging via $skip and $top, but it does so automatically. Therefore we have chosen to not offer $top to application code. As a consequence, you currently cannot include it into $expand (because we do not yet support paging on such expanded collections). I see the disadvantage this has for you, and I will forward your request to my product owner. But from my point of view, this does not qualify as a bug, but as an enhancement request and thus might take some time (we are pretty busy right now).
Best regards,
Thomas
P.S.: In the meantime, maybe we can find some workaround. If you include $select and select almost no fields, that might speed up things?

Understand that it is an enhancement request.
<<: In the meantime, maybe we can find some workaround. If you include
$select and select almost no fields, that might speed up things>>
This is what I am currently forced to do, but there are still large numbers
of records. I have control over the implementation of the odata endpoint
(odata2sparql) so I am thinking of another workaround that if no fields are
selected nothing is returned (rather than all fields as required by the
semantics of Odata2sparql I think). However I have found that workarounds
often cause me more problems in the long run than doing it right the first
time!
Thanks for your response
On Tue, 3 Jul 2018, 09:38 Dr. Thomas Chadzelek<EMAIL_ADDRESS>wrote:

Hello Peter!
Thanks for your interest in OData V4. Our model implementation is not yet
complete and indeed, we are missing some features. The v4.ODataListBinding
is of course able to do paging via $skip and $top, but it does so
automatically. Therefore we have chosen to not offer $top to application
code. As a consequence, you currently cannot include it into $expand
(because we do not yet support paging on such expanded collections). I see
the disadvantage this has for you, and I will forward your request to my
product owner. But from my point of view, this does not qualify as a bug,
but as an enhancement request and thus might take some time (we are pretty
busy right now).
Best regards,
Thomas
P.S.: In the meantime, maybe we can find some workaround. If you include
$select and select almost no fields, that might speed up things?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SAP/openui5/issues/2090#issuecomment-402058981, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABiasAZ3aegeahhsOXOiVKfxEkMHBIx-ks5uCy2UgaJpZM4U_QWF
.

--
Peter J. Lawrence
inova8
Providing answers for users' information questions
Mobile: +1<PHONE_NUMBER> | Skype: PeterJLawrence
Mobile UK: +44<PHONE_NUMBER> | Phone UK: +44 1298 872375
Email<EMAIL_ADDRESS>| Web: www.inova8.com
*LinkedIn: *http://www.linkedin.com/in/peterjohnlawrence
http://www.linkedin.com/in/peterjohnlawrence

Hello Peter!
We have discussed your issue internally and hope to offer a "workaround" which is clean enough to not cause serious issues in future. You can use server-driven paging to avoid excessively large reponses. We would recommend that in case $top and $skip are missing (and maybe $count is requested), you limit the response to some small number of rows and provide a next link. You should better not do this when $top or $skip are present because our model would then not be able to do proper paging in a table.
Best regards,
Thomas

Many thanks


Changed ignoredHosts to ignoredPatterns

Feature Request
I want to filter out the /ping calls from the server done by NetInfo but they're in the same host as my main server that I am trying to monitor.
If we say the request has the following text
HEAD https://trajano.net/ping

It would simplify us by having rules that look like
ignoredPatterns: [
  /^HEAD https:\/\/trajano.net\/ping$/
]

Additional context

Hi @trajano, this is probably something that can be added and I think someone previously made a start to it. Do you need it to filter by the request method as well, e.g. HEAD as this might be a more complicated pattern to match?

I just made it so it's more flexible and ideally simpler for you to code because you're just filtering on the request line which you already have.  But no I don't think I would need the method filter at the moment.

    if (this.ignoredHosts) {
      const host = extractHost(url);
      if (host && this.ignoredHosts.has(host)) {
        return;
      }
    }

I just found that block.  I guess this would change to something like
    if (this.ignoredPatterns) {
      const toMatch = `${method} ${url}`
      if (this.ignoredPatterns.find((p) => p.matches(toMatch))) {
        return;
     }
    }

I've just added a PR which should cover this. Let me know what you think of it.
Another option I was thinking was to pass a callback function which gives you control of what to ignore.


Trying to use deck.gl with Vite does not work (promisify error)

Describe the bug
When trying to use deck.gl, running npm run build fails with an error about promisify.
Reproduction
Here's a demonstration repo: https://github.com/fdb/vite-bug-deck-gl.
I've also made a demonstration repo with webpack, which does not give an error: https://github.com/fdb/webpack-deck-gl

Make a new Vite project with npm init @vitejs/app and choose Vanilla. cd into the folder and install dependencies.
Install deck.gl with npm install @deck.gl/core @deck.gl/layers
Replace the code in main.js with the basic "hello world" example
The dev server (npm run dev) works well.
Try to build it with npm run build

This gives the following error:
vite v2.0.4 building for production...
✓ 515 modules transformed.
'promisify' is not exported by __vite-browser-external, imported by<EMAIL_ADDRESS>file: /Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/@loaders.gl/core/dist/esm/node/write-file.node.js:2:9
1: import fs from 'fs';
2: import { promisify } from 'util';
            ^
3: import { toBuffer } from<EMAIL_ADDRESS>4: export function writeFile(filePath, arrayBufferOrString, options) {
error during build:
Error: 'promisify' is not exported by __vite-browser-external, imported by<EMAIL_ADDRESS>    at error (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:5279:30)
    at Module.error (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:9996:16)
    at Module.traceVariable (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:10389:29)
    at ModuleScope.findVariable (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:8847:39)
    at FunctionScope.findVariable (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:2641:38)
    at ChildScope.findVariable (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:2641:38)
    at Identifier.bind (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:4017:40)
    at CallExpression.bind (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:2728:23)
    at CallExpression.bind (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:6730:15)
    at CallExpression.bind (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:2728:23)

System Info

Vite version 2.0.4
Operating System: macOS Big Sur
Node version: v14.10.0
Package manager (npm/yarn/pnpm) and version: npm 7.6.0

Logs (Optional if provided reproduction)
  vite:config no config file found. +0ms
  vite:config using resolved config: {
  vite:config   root: '/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl',
  vite:config   base: '/',
  vite:config   mode: 'production',
  vite:config   configFile: undefined,
  vite:config   logLevel: undefined,
  vite:config   clearScreen: undefined,
  vite:config   build: {
  vite:config     target: [ 'es2019', 'edge16', 'firefox60', 'chrome61', 'safari11' ],
  vite:config     polyfillDynamicImport: true,
  vite:config     outDir: 'dist',
  vite:config     assetsDir: 'assets',
  vite:config     assetsInlineLimit: 4096,
  vite:config     cssCodeSplit: true,
  vite:config     sourcemap: false,
  vite:config     rollupOptions: {},
  vite:config     commonjsOptions: { include: [Array], extensions: [Array] },
  vite:config     minify: 'terser',
  vite:config     terserOptions: {},
  vite:config     cleanCssOptions: {},
  vite:config     write: true,
  vite:config     emptyOutDir: null,
  vite:config     manifest: false,
  vite:config     lib: false,
  vite:config     ssr: false,
  vite:config     ssrManifest: false,
  vite:config     brotliSize: true,
  vite:config     chunkSizeWarningLimit: 500
  vite:config   },
  vite:config   inlineConfig: {
  vite:config     root: undefined,
  vite:config     base: undefined,
  vite:config     mode: undefined,
  vite:config     configFile: undefined,
  vite:config     logLevel: undefined,
  vite:config     clearScreen: undefined,
  vite:config     build: {}
  vite:config   },
  vite:config   resolve: { dedupe: undefined, alias: [ [Object] ] },
  vite:config   publicDir: '/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/public',
  vite:config   command: 'build',
  vite:config   isProduction: true,
  vite:config   optimizeCacheDir: '/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/.vite',
  vite:config   plugins: [
  vite:config     'alias',
  vite:config     'vite:dynamic-import-polyfill',
  vite:config     'vite:resolve',
  vite:config     'vite:html',
  vite:config     'vite:css',
  vite:config     'vite:esbuild',
  vite:config     'vite:json',
  vite:config     'vite:wasm',
  vite:config     'vite:worker',
  vite:config     'vite:asset',
  vite:config     'vite:define',
  vite:config     'vite:css-post',
  vite:config     'vite:build-html',
  vite:config     'commonjs',
  vite:config     'vite:data-uri',
  vite:config     'rollup-plugin-dynamic-import-variables',
  vite:config     'vite:import-analysis',
  vite:config     'vite:esbuild-transpile',
  vite:config     'vite:terser',
  vite:config     'vite:reporter'
  vite:config   ],
  vite:config   server: {},
  vite:config   env: { BASE_URL: '/', MODE: 'production', DEV: false, PROD: true },
  vite:config   assetsInclude: [Function: assetsInclude],
  vite:config   logger: {
  vite:config     hasWarned: false,
  vite:config     info: [Function: info],
  vite:config     warn: [Function: warn],
  vite:config     error: [Function: error],
  vite:config     clearScreen: [Function: clearScreen]
  vite:config   },
  vite:config   createResolver: [Function: createResolver]
  vite:config } +5ms
vite v2.0.4 building for production...
✓ 515 modules transformed.
'promisify' is not exported by __vite-browser-external, imported by<EMAIL_ADDRESS>file: /Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/@loaders.gl/core/dist/esm/node/write-file.node.js:2:9
1: import fs from 'fs';
2: import { promisify } from 'util';
            ^
3: import { toBuffer } from<EMAIL_ADDRESS>4: export function writeFile(filePath, arrayBufferOrString, options) {
error during build:
Error: 'promisify' is not exported by __vite-browser-external, imported by<EMAIL_ADDRESS>    at error (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:5279:30)
    at Module.error (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:9996:16)
    at Module.traceVariable (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:10389:29)
    at ModuleScope.findVariable (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:8847:39)
    at FunctionScope.findVariable (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:2641:38)
    at ChildScope.findVariable (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:2641:38)
    at Identifier.bind (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:4017:40)
    at CallExpression.bind (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:2728:23)
    at CallExpression.bind (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:6730:15)
    at CallExpression.bind (/Users/fdb/Desktop/vite-test-deck-gl/vite-test-deck-gl/node_modules/rollup/dist/shared/rollup.js:2728:23)

Expected behavior - the package is not written for the browser and Vite doesn't polyfill Node built-ins.

Encountering similar issue when I try to migrate a project I'm working on from Vue CLI to Vite. Realized is because some of Deck.gl's dependencies are coded to be isomorphic.
See this line:
https://github.com/visgl/loaders.gl/blob/master/modules/core/package.json#L31
The browser field in package.json is meant to inform Webpack which modules are "node only" and will never be touched during runtime on browsers.
My understanding is Webpack will replace these modules with an empty object (https://github.com/defunctzombie/package-browser-field-spec#ignore-a-module).
But this doesn't seem to be handled very well at the moment by Vite.
I have tried different combinations of optimizeDeps.exclude and optimizeDeps.include. But getting nowhere. Hope someone with more knowledge of Vite inner working can provide some advice.
@yyx990803 Can we keep this issue open or at least reopen it under a better title? As I believe the issue that is being surfaced out (Vite's handling of package.json's browser field) is worth digging into further. And Deck.gl is indeed a project meant to be run in the browser.

This problem affects another Uber project XVIZ which also has loaders.gl as dependency.

@yongjun21  -- I am also experiencing this bug/problem, but I have found a workaround. The problem is exactly as you describe: those objects which are present in Node are causing problems for loaders.gl, and thus deck.gl doesn't load.
I'm no expert on this but I found that if you null out a few objects in vite.config.ts, you can convince loaders.gl into thinking that it's in a browser, and then (at least for me) deck.gl loads properly. Maybe this will work for you as well. If not, try looking at the error messages in your build output and null those, too? Just a guess.
vite.config.ts
// ...
export default defineConfig({
  // plugins: [...]
  define: {
    requireFromFile: null,
    'process.platform': null,
    'process.version': null
  }
})

I still get about a dozen error messages during the vite build step, but the build completes and my site seems to be loading OK.
I'm pasting the errors below so google can point others this this page.
Error messages during build:
'null' is not exported by '__vite-browser-external'
'requireFromFile' is not exported by '__vite-browser-external'
'requireFromString' is not exported by '__vite-browser-external'
'requireFromString' is not exported by '__vite-browser-external'
'toBuffer' is not exported by '__vite-browser-external'
'toBuffer' is not exported by '__vite-browser-external'
'toArrayBuffer' is not exported by '__vite-browser-external'
'toArrayBuffer' is not exported by '__vite-browser-external'
'toArrayBuffer' is not exported by '__vite-browser-external'
'toArrayBuffer' is not exported by '__vite-browser-external'
'readFileSync' is not exported by '__vite-browser-external'
'readFileSync' is not exported by '__vite-browser-external'
'writeFile' is not exported by '__vite-browser-external'
'writeFile' is not exported by '__vite-browser-external'
'writeFileSync' is not exported by '__vite-browser-external'
'writeFileSync' is not exported by '__vite-browser-external'

I hope this helps.


Incorrect dashboard image for doc's Tomcat integration page

For https://docs.datadoghq.com/integrations/tomcat/ and https://github.com/DataDog/integrations-core/tree/master/tomcat
Describe the results you received:
The readme/page is linking to the wrong dashboard image.

Describe the results you expected:
Expected to see the Tomcat dashboard.
Additional information you deem important (e.g. issue happens only occasionally):
Link for the dashboard should be https://raw.githubusercontent.com/DataDog/integrations-core/master/tomcat/images/tomcat_dashboard.png

I would have fixed it myself, but I don't think I have the appropriate permissions :)

Fixed


fix(animation): support css animation on older devices

Pull request checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[x] Build (npm run build) was run locally and any changes were pushed
[x] Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?
Issue Number: #20017
What is the new behavior?

a function was added to detect if and what animation prefixes are required for the current browser
prefixes were added on two utility functions setStyleProperty and removeStyleProperty
prefixes were added to the keyframe stylesheet generation createKeyframeStylesheet

Does this introduce a breaking change?

[ ] Yes
[x] No

Other information

Merged. Thank you!


How to interact with sui smart contract with rust?

hey guys, i'm trying for more 1 mounth right now to found a way to interact with Sui chain with rust but i don't found anything. Please can you guys share me a way to interact with sui chain ? from provider to a way to interact with smart contract (read and write function).
Thank you guys.

If I understand you correctly, you want to use Rust code to interact with the Sui blockchain. We have a Rust SDK that you can use, so start here:
https://github.com/MystenLabs/sui/tree/main/crates/sui-sdk
Some examples you can find here:
https://github.com/MystenLabs/sui/tree/main/crates/sui-sdk/examples
Start with coin_read_api.rs, and read_api.rs and go from there.

T

If I understand you correctly, you want to use Rust code to interact with the Sui blockchain. We have a Rust SDK that you can use, so start here: https://github.com/MystenLabs/sui/tree/main/crates/sui-sdk
Some examples you can find here: https://github.com/MystenLabs/sui/tree/main/crates/sui-sdk/examples Start with coin_read_api.rs, and read_api.rs and go from there.

Those example doesn't show you how to interact with smart contract

@stefan-mysten hey, i need support to understand plaese how to interact with move smart contract with rust if possible please

Check out the PTB example here, https://github.com/MystenLabs/sui/blob/main/crates/sui-sdk/examples/programmable_transactions_api.rs Particularly, you'll want to look for the Command type, and figure out how to write a Command that calls a smart contract - for this, you need to use the Command::MoveCall type and pass the right arguments to it.

this is not what i'am looking for. This is really high level interface of making things. I'm def not looking for this. What i'am looking for is a way to use function that are called in smart contract to encode it and send transaction for it
Let's say you have a dex called Name1 and this dex has a function SwapExactSuiForExactToken, what i want is to encode this function and put it into transaction data and send it.. It's not possible to do something like this in Sui .. or what?
I have been looking for this more then 1 mounth..

What do you mean by encode this function SwapExactSuiForExactToken? Encode to what? What is the end result of encoding?

What do you mean by encode this function SwapExactSuiForExactToken? Encode to what? What is the end result of encoding?

If you take look on how to interact in ethereum smart contract, you have various ways for that. The modular one is abigen which generate solidity binding at runtime.  The example doesn't show this..

Ok, so I assume what you want to do is actually call the function X from smart contract Y. In Sui, you have module::package::function, so you'd have to find the module name, package name, and function name and then use MoveCall. You can do this with programmable transaction blocks (PTBs): https://docs.sui.io/guides/developer/sui-101/building-ptb#available-transactions. While this shows code in Typescript SDK, it is similar for Rust. You'll need to use MoveCall, and pass the module, package, function, and then the arguments you need to pass for that function, sign the transaction, and then execute it.

Ok, so I assume what you want to do is actually call the function X from smart contract Y. In Sui, you have module::package::function, so you'd have to find the module name, package name, and function name and then use MoveCall. You can do this with programmable transaction blocks (PTBs): https://docs.sui.io/guides/developer/sui-101/building-ptb#available-transactions. While this shows code in Typescript SDK, it is similar for Rust. You'll need to use MoveCall, and pass the module, package, function, and then the arguments you need to pass for that function, sign the transaction, and then execute it.

Okay so i'm supposed to use this https://github.com/MystenLabs/sui/blob/2ba23be291c9dfed9f27dc2fe2315d359f20edd8/crates/sui-types/src/execution.rs#L260 ?
I will try, and will come back to you. Thank you for your support. Also, does i need to import the full crate ? Since sui sdk doesn't have all crate.. i'am supposed ot import now each crate like sui type, mempool etc etc ?

You'll need to likely import this and probably sui-types for ProgrammableMoveCall.
sui-sdk = { git = "https://github.com/mystenlabs/sui", package = "sui-sdk"}
tokio = { version = "1.2", features = ["full"] }
anyhow = "1.0"

Under sui-sdk you'll find sui_sdk::types::transaction::Command (see this example that I referred to earlier: https://github.com/MystenLabs/sui/blob/main/crates/sui-sdk/examples/programmable_transactions_api.rs).
You'll have to create a mutable PTB with this line:
    // programmable transactions allows the user to bundle a number of commands into one transaction
    let mut ptb = ProgrammableTransactionBuilder::new();

Then, you'll have to build the Command::MoveCall part:
ptb.command(Command::MoveCall(Box::new(
sui_types::transaction::ProgrammableMoveCall {
    package:,
    module: ,
    function: ,
    type_arguments: ,
    arguments:
})));

Then you'll need to call ptb.finish() to build the PTB, and then sign the tx and execute it. https://github.com/MystenLabs/sui/blob/main/crates/sui-sdk/examples/programmable_transactions_api.rs#L64-L92
Before executing, you'll need to fetch your gas coin to pay for the fees.
I hope this helps! If time permits, I'll try to add an example soon.

The other way, is to use this ProgrammableTransactionBuilder stuff sui_transaction_builder::TransactionBuilder

You'll need to likely import this and probably sui-types for ProgrammableMoveCall.
sui-sdk = { git = "https://github.com/mystenlabs/sui", package = "sui-sdk"}
tokio = { version = "1.2", features = ["full"] }
anyhow = "1.0"

Under sui-sdk you'll find sui_sdk::types::transaction::Command (see this example that I referred to earlier: https://github.com/MystenLabs/sui/blob/main/crates/sui-sdk/examples/programmable_transactions_api.rs).
You'll have to create a mutable PTB with this line:
    // programmable transactions allows the user to bundle a number of commands into one transaction
    let mut ptb = ProgrammableTransactionBuilder::new();

Then, you'll have to build the Command::MoveCall part:
ptb.command(Command::MoveCall(Box::new(
sui_types::transaction::ProgrammableMoveCall {
    package:,
    module: ,
    function: ,
    type_arguments: ,
    arguments:
})));

Then you'll need to call ptb.finish() to build the PTB, and then sign the tx and execute it. https://github.com/MystenLabs/sui/blob/main/crates/sui-sdk/examples/programmable_transactions_api.rs#L64-L92
Before executing, you'll need to fetch your gas coin to pay for the fees.
I hope this helps! If time permits, I'll try to add an example soon.

Thank you for your help, what kind of example i could add ? Swappping SUI & USDC could be good one ? :)
if thi sis okay for you, i'll open pr when it's done

Swappping SUI & USDC could be good one

Yes, that's a great example.

if thi sis okay for you, i'll open pr when it's done

Absolutely, thanks for willing to contribute!


Replace Yahoo weather API with OpenWeatherMap

If you're running the "bleeding edge" version (i.e. from master branch ) it seems the weather widget is not working, due to needing an API key, which doesn't have a UI element to fill it's value yet, there is a workaround to get this functional ...
Here's how you can fix it:

create an account (free, no payment needed) at https://home.openweathermap.org/
create an API key: https://home.openweathermap.org/api_keys
open the weather.ini file in an editor, and look for: #WeatherAppID#
replace #WeatherAppID# with the key you got in step 3
enjoy.

keep in mind, this is workaround, and by using the master branch you're running potentially unstable code :)

I don't see the #WeatherAppID# field you mentioned in the latest release. Did you do additional changes to the files?

It's because i didn't implement it 😅
I'll assume @ahmadnassri wanted to show me on how to implement OpenWeatherMap into the skin. Actually i was working on a prototype but since i didn't had much time until recently i've kinda forgot about it.
I'll see on what i can do in the next few days. I'll inform you on the progress on this issue.

@marcopixel indeed, I'm running on Master :)
and it seems to work nicely! also, yes, this is a temporary workaround, i'll update my note to reflect as much!

Hey! Could someone give me a step by step tutorial? It seems i cant get my weather running whatsoever. How do i replace API with with open weather map?what you mean under " clone repo"? where should i replace my files? how do i make this work only for the weather? any codes just to copy could work?
Newbie here, please excuse me! :D thanks

Hey! Could someone give me a step by step tutorial? It seems i cant get my weather running whatsoever. How do i replace API with with open weather map?what you mean under " clone repo"? where should i replace my files? how do i make this work only for the weather? any codes just to copy could work?
Newbie here, please excuse me! :D thanks

Backup everything on Rainmeter and then exit it.
Go to the "Code" section of this repository. Top right you should see a "clone" button. Click and then "Download ZIP". Save it and extract it to your Documents/Rainmeter/Skins folder (if you already had a previous version I suggest you rename it and append "-old" or whatever at the end, so you have an extra backup).
Open Rainmeter again. With the new one loaded you can do 2 things:

Simply re-configure everything as you please with the in-built settings, or
Open both the old and the new one's variables.ini (inside the folder "@Resources") and copy whatever variables you need from the old version.

After setting everything back up, go to the weather folder of the new version, and open weather.ini. In there, simply use the Find function (usually Ctrl + F) to locate the #WeatherAppID# string, and replace it with the new API key you generated (should be a bunch of letters and numbers). Save the file, refresh skin and voilá.
Note: Icons are not working for me, but temperature is, so it's better than nothing!

Gonna get into it soon, thanks for the help! Ill let you know if it didnt work. 🗡

Anyone figure out how to get the weather icon working w/ Open Weather? You can see it briefly pop up before disappearing so seems like it should be fixable.

Note: Icons are not working for me, but temperature is, so it's better than nothing!

  For someone who can't code from scratch but can read and edit.  I found that editing this section of weather.ini...
[MeasureCurrentIcon]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather]
StringIndex=10
Substitute="":"na"   <====HERE

to add more substitutions to adopt the new icon code could be a good temporary fix while still using the same icon set you have in<EMAIL_ADDRESS>[MeasureCurrentIcon]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather]
StringIndex=10
Substitute="01d":"32","01n":"31","02d":"28","02n":"27","03d":"26","03n":"26","04d":"19","04n":"19","09d":"13","09n":"13","10d":"17","10n":"17","11d":"37","11n":"37","13d":"25","13n":"25","50d":"19","50n":"19","":"na"

Note: Icons are not working for me, but temperature is, so it's better than nothing!

  For someone who can't code from scratch but can read and edit.  I found that editing this section of weather.ini...
[MeasureCurrentIcon]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather]
StringIndex=10
Substitute="":"na"   <====HERE

to add more substitutions to adopt the new icon code could be a good temporary fix while still using the same icon set you have in<EMAIL_ADDRESS>[MeasureCurrentIcon]
Measure=Plugin
Plugin=WebParser
URL=[MeasureWeather]
StringIndex=10
Substitute="01d":"32","01n":"31","02d":"28","02n":"27","03d":"26","03n":"26","04d":"19","04n":"19","09d":"13","09n":"13","10d":"17","10n":"17","11d":"37","11n":"37","13d":"25","13n":"25","50d":"19","50n":"19","":"na"

weather.OpenWeatherMap.ini.zip
working fine thanks to above help. You can edit to change language and temperatures unit


Addedd the basic structure for main script

Thanks Lucas. Please, if possible, avoid file names in the middle of the code as in
+if (~exist('/home/lucas/ufpa-face-detection/ViolaJones_version0b/HaarCascades/haarcascade_frontalface_alt.mat'))
Use a variable and initialize it in the beginning of the code.

My bad, I thought I have changed that, teacher


How to reject an upgrade installplan without uninstall the existing operator

Type of question
Are you asking about community best practices, how to implement a specific feature, or about general context and help around the operator-sdk?
Question
What did you do?
I have a operator installed with version v1 and have config the manually approve method for the operator.
When I have a new catalogsource image promoted which triggered the catalogsource updated, it will generated a new Install plan to request to apply the update.
When I select approve, it will install the new version of operators. that's fine
But When I want to deny the install plan request, seems I can not only deny the upgrade request, the deny operators will also remove my existing operators as well. that's not make sense for me.
What did you expect to see?
I just want to deny the upgrade installplan without clean up my existing operators.
What did you see instead? Under which circumstances?
The current behavior is, when I select deny, it will remove my existing operators as well. I need to reinstall it.
Environment

operator-lifecycle-manager version:

hchenxa@hchenxadembp:common-svcs-sert-tests$ oc get co  | grep operator-lifecycle-manager
operator-lifecycle-manager                 4.5.0     True        False         False      101m

Kubernetes version information:

Kubernetes cluster kind:

Additional context
Add any other context about the question here.

This is indeed the current behavior. I think this is an issue that UI Console should fix because I believe it is the component that deletes the Operator, not OLM.

@tlwu2013 Any thoughts?


⚠ Bofrost.lu has degraded performance

In 20dcd02, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1322 ms

Resolved: Bofrost.lu performance has improved in e5db568 after 306 days, 23 hours, 25 minutes.


#497 Expression and code controls are accessible

Fixes https://github.com/elyra-ai/canvas/issues/497
Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

This like this is no longer filled in.


Standard pages

Added
404 pages
500 pages
shutter pages
standard page template
Header pattern
Footer pattern

Apart from the style mentioned above all looks fine as you are just adding a lot of new pages and restructuring the files as we discussed yesterday. I also noticed that you can delete the file 404-mistake-support.html as this isn't being used.


Main

Inconsistency in params in docs vs params in actual constructor.

Thank you for your contribution and fixing the error in the documentation!


Help with incorrect times and fetching upgrade start times

The second(time) variable in UnitIntEvent.second, as well as a lot of other places are wrong. This might be because Blizzard changed the in game timer to reflect real time instead of their sped up time.
Shield batteries aren't listed as buildings (unit.is_building = False)
Is there a way to access when a player starts an upgrade instead of going through events["UpgradeCompleteEvent"] and subtracting the upgrade time from when its completed?

I'd submit a fix myself but I lack the skills to do so

Thanks for submitting this! This project is not too active for improvements, but we are still maintaining it for bugs.
Regarding, the last point about upgrade timing, that is the way that I'm handling it. You can see the logic at https://github.com/StoicLoofah/spawningtool/blob/c9e6a658e6e55adee796906f712ec7ffb2fea145/spawningtool/parser.py#L639 where I pull all of the data coded in at https://github.com/StoicLoofah/spawningtool/blob/master/spawningtool/lotv_constants.py#L315
If you want to get precise timings for when the upgrade started, I believe there are command card events for when they clicked on a specific upgrade in the bottom right hand side of hte screen. However, I never used it that data because it always seemed messier to try to correlate those command cards (different depending on building selected) to specific things in production.
Regarding the first two, I would believe that those are both real bugs and worth addressing. May I ask what skills you think you are lacking? It seems like you have diagnosed the data issues, so is the question about how to submit pull requests or how to navigate the sc2reader library? Happy to help with either or anything else.

So the limit of my skill is to have sc2reader parse the replay, and to grab relevant pieces of info that i need. I have no clue on how to even start modifying the library unfortunately. I only noticed these issues because my output doesn't match the actual replay when i manually checked.
Thanks for the advice on the upgrade timings!
As for the time variable, would you advise me to get the frame data and dividing it by fps instead? If I were to do it this way, is the fps constant at 16.4 for all replays?
Thanks for your time!

I would also really appreciate it if you could point me towards how I could solve these bugs myself.
Thanks again!

@Reaumur95

Regarding modifying the library, is the issue that you don't know how to fork the repository to submit pull requests, or is the issue that you don't know where to get started in reading the sc2reader source code. Happy to help with either or both.

Regarding the FPS, yeah, that's how I'm doing it. I have the FPS specified as 22.4 for LotV https://github.com/StoicLoofah/spawningtool/blob/c9e6a658e6e55adee796906f712ec7ffb2fea145/spawningtool/lotv_constants.py#L6 and just do the math https://github.com/StoicLoofah/spawningtool/blob/c9e6a658e6e55adee796906f712ec7ffb2fea145/spawningtool/lotv_constants.py#L873 It isn't frame-perfect, but it's presumably within +/- 22.4

Can we change the title of this issue?

title changed. Sorry about the ambiguous title
@StoicLoofah
The issue is both, but now that I have a direction to go, I think I can look around on google and organically learn how to do all this. Thanks for your help! I'll ask u questions if I have trouble with this in the future if you don't mind

@Reaumur95 No worries. Let me point you in a few useful directions:
For contributing, you need to first fork this repository to Reaumur98/sc2reader. Then, whenever you have a change to make, you should:

Update your master branch to match ggtracker/sc2reader/upstream
Checkout a new branch
Make your changes and commit them
Push your branch to GitHub
Create a pull request against ggtracker/sc2reader/upstream with your branch

Depending on you familiarity with git, that will either sound very normal or very confusing
For the codebase, there's an outdated docs site that you can check out https://sc2reader.readthedocs.io/en/latest/ . It's still pretty true, so maybe that will be a useful reference. Other than that, i recommend using pdb a lot: Configure it using these instructions https://github.com/ggtracker/sc2reader#for-contributors and just set breakpoints all over the code to see how it flows.
My email address is on my GitHub profile, so feel free to email me anytime with questions


Bump version to 1.10.0

Release version 1.10.0 of the Rust client.
This is a huge release. We can elaborate on this in the change log when publishing the release tag.

Here's a rough draft for what our 1.10.0 change log might look like, inspired by qdrant/qdrant:

Change log
A huge update for the Qdrant Rust client. This update fully revises the crate to
make it a lot more enjoiable to work with.
The API interface has been significantly simplified, and types have been
reorganized. Operations are more direct, no more need for boilerplate code.
Everything is extensible, preventing breakage with future updates. Documentation
has been improved as well. Operations are devided in different categories and
show a simple usage example. It now also links to the respective generic
documentation.
Documentation:

https://docs.rs/qdrant-client
https://docs.rs/qdrant-client/latest/qdrant_client/struct.Qdrant.html

The old client remains usable but has been deprecated. We recommend to switch to
the new client instead.
Improvements

Add new Qdrant client with a much better interface

Thanks to @JojiiOfficial @generall @timvisee for their contributions!


metric_depth模型怎么使用tensorrt进行推理

metric_depth模型怎么使用tensorrt进行推理

currently metric_depth model is not integrated into this repo. sorry.

请问大概什么时候可以集合呢？
spacewalk01 @.***>于2024年6月12日 周三下午3:54写道：

Closed #31
https://github.com/spacewalk01/depth-anything-tensorrt/issues/31 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/spacewalk01/depth-anything-tensorrt/issues/31#event-13127568951,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BHOS6YGBKXXPTDLAWZASYL3ZG75DVAVCNFSM6AAAAABJFT4HIWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGEZDONJWHA4TKMI
.
You are receiving this because you authored the thread.Message ID:
<spacewalk01/depth-anything-tensorrt/issue/31/issue_event/13127568951@
github.com>


fix: Avalonia on Windows - Intermittent "Arithmetic operation resulted in an overflow".

What does the pull request do?
It fixes intermittent Avalonia crashes on windows, as it was taking a Int32 from a larger IntPtr, which causes System.OverflowException
What is the current behavior?
While running a Windows application using Avalonia one can (depends on something) get the following error:
System.OverflowException
  HResult=0x80131516
  Message=Arithmetic operation resulted in an overflow.
  Source=mscorlib
  StackTrace:
   at System.IntPtr.op_Explicit(Int64 value)
   at Avalonia.Win32.WindowImpl.AppWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) in /_/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs:line 648
   at Avalonia.Win32.WindowImpl.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) in /_/src/Windows/Avalonia.Win32/WindowImpl.WndProc.cs:line 30

The callstack shows the WinProc, handling of the windows messages, and the IntPtr.
Specifically it's about WindowsMessage.WM_INPUTLANGCHANGE here.
The lparam (long param) is taken, which is an IntPtr, the details for what it exactly has can be found here, there it specifies: "The low word contains a Language Identifier for the input language. The high word contains a device handle."
Avalonia wants the low word, so the method UnmanagedMethod.LGID(IntPtr) is called and in there the IntPtr.ToInt32() method.
Unfortunately sometimes the device handle value causes issues as the total "value" is bigger than fits in an int (Int32) so an exception is thrown. It doesn't happen often, so intermittent exceptions.
What is the updated/expected behavior with this PR?
No cashes in this part.
How was the solution implemented (if it's not obvious)?
Instead of getting an Int32 (int) causing OverflowException, now a long is retrieved and from this the lower 16 bits are taken.
Checklist

[ ] Added unit tests (if possible)?
A unit test for Avalonia doesn't make much sense, but one can make one around the IntPtr to prove the issue, see down below.
[ ] Added XML documentation to any related classes?
Not needed, will not add value.
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Documentation with user documentation
Not needed, will not add value.

The error example, this causes an exception:
        uint deviceHandle = 0xf765;
        uint languageIdInput = 0xabcd;

        uint longParam = deviceHandle << 16 | languageIdInput;

        var lParam = new IntPtr(longParam);
        long intValue = lParam.ToInt32();

        var languageIdOutput = (uint)(intValue & 0xffff);
        Assert.Equal(languageIdInput, languageIdOutput);

The solution example, no exception:
        uint deviceHandle = 0xf765;
        uint languageIdInput = 0xabcd;

        uint longParam = deviceHandle << 16 | languageIdInput;

        var lParam = new IntPtr(longParam);
        long longValue = lParam.ToInt64();

        var languageIdOutput = (uint)(longValue & 0xffff);
        Assert.Equal(languageIdInput, languageIdOutput);

Breaking changes
Nothing
Obsoletions / Deprecations
Nothing
Fixed issues
I didn't find any reported issues that look like the issue I had.
P.S.
Some additional hints, I found some other places where a IntPtr is squeezed into a uint, and the same exception might be occur.
One example is the TrayIconImpl.WndProc where the lParam.ToInt32 is called, I couldn't simply deduct if this would be an issue as it's a custom message. Another example is in UnmanagedMethods.GetWindowLongPtr, where the return value should be an IntPtr (See p-invoke example). Also look at the SetWindowLongPtr documentation and the implementation. As this might only cause issues in use-cases where Avalonia isn't involved, and some code refactoring will be needed, I didn't look into details (yet).

You can test this PR using the following package version. 11.0.999-cibuild0024847-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

I tested the feed, and there is still something odd, so do not merge.
I got another exception, which doesn't make much sense, I need to check this out.
System.OverflowException
  HResult=0x80131516
  Message=Arithmetic operation resulted in an overflow.
  Source=mscorlib
  StackTrace:
   at System.IntPtr.op_Explicit(Int64 value)

It seems the value was much bigger, and it doesn't even fit in a Int64. This called for different measures.
More or less this describes the issue:
 long longValue = 0x7fff_ffff_ffff_1234;
 var HKL= new IntPtr(longValue);
 // Doing something with HKL here, like ToInt64, or even casting it to a ulong, will fail.

So to fix this, we need to have the conversion in our code (not in that of IntPtr) and disable checking:
 long longValue = 0x7fff_ffff_ffff_1234;
 var HKL= new IntPtr(longValue);
 // Doing something with HKL here, like ToInt64, or even casting it to a ulong, will fail.
 unchecked {
     return (uint)((ulong)HKL & 0xffff);
 }

It's even important to do it in two steps... this will now fix the issue, I'm awaiting the updated build so I can test this.

I'd love to test this, but it seems that the change for #9241 doesn't work for me, I even tried adding
I keep getting:
System.IO.FileLoadException
  HResult=0x80131044
  Message=Could not load file or assembly 'MicroCom.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
  Source=Avalonia.Win32
  StackTrace:
   at .cctor()

You can test this PR using the following package version. 11.0.999-cibuild0025165-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

@Lakritzator might be some nuget/cache issue. I build it from the command line with no issue.

@maxkatz6 The error comes in the project where I use Avalonia, and only during runtime. I'm not even sure why a nuget cache has to do with it.
I actually get the following exception when I run my app standalone (outside of Visual Studio):
Unhandled Exception: System.TypeInitializationException: The type initializer for '' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'MicroCom.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
at .cctor()
--- End of inner exception stack trace ---
at Avalonia.AppBuilderDesktopExtensions.LoadWin32[TAppBuilder](TAppBuilder builder)
at Avalonia.AppBuilderDesktopExtensions.UsePlatformDetect[TAppBuilder](TAppBuilder builder) in /_/src/Avalonia.Desktop/AppBuilderDesktopExtensions.cs:line 22

@Lakritzator it seems your project requires strong named dependencies, and MicroCOM.Runtime is not, CC @kekekeks
Let's merge this PR so you can check on your project from nuget build.

You can test this PR using the following package version. 11.0.999-cibuild0025224-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

@maxkatz6 That is the weird thing about the exception, my project itself does NOT require strong named dependencies.

But as you already merged, where is the version which should solve this?
I tried 11.0.999-cibuild0025224-beta and the latest at this time 11.0.999-cibuild0025230-beta, both give me:
System.IO.FileLoadException
HResult=0x80131044
Message=Could not load file or assembly 'MicroCom.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
Source=Avalonia.Win32
StackTrace:
at .cctor()
I'm very confused about the error...
Here is my startup class:
class Program
{
    // Initialization code. Don't use any Avalonia, third-party APIs or any
    // SynchronizationContext-reliant code before AppMain is called: things aren't initialized
    // yet and stuff might break.
    public static void Main(string[] args)
    {
        BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
    }

    // Avalonia configuration, don't remove; also used by visual designer.
    public static AppBuilder BuildAvaloniaApp()
        => AppBuilder.Configure<App>()
            .UseReactiveUI()
            .UsePlatformDetect()
#if DEBUG
            .LogToTrace(LogEventLevel.Debug);
#else
            .LogToTrace();
#endif
}

@Lakritzator this issue was fixed with that PR https://github.com/AvaloniaUI/Avalonia/pull/9324


more docs and info on the architecture?

Do you have more docs, blogs or a podcast, etc covering the architecture, choosing rust, etc how did you end up here?
I am just curious to learn more about those details.
The current readmes jump straight into the details and the guides, which are awesome, but I was also wondering the big picture and the story behind too. For example the v8 engine part, going with rust, etc. It could make up a nice reading or a podcast, at least to me.
Thanks and feel free to close this issue as it's not really an issue, just curiosity.

@CJHarmath Definitely planning on making more content on the architecture. Is the top of your list specifically the V8 engine & rust? Anything else I should consider that's top of mind?

I mean the whole thing is fascinating to me honestly.
how did you end up with the useServer, side effects, the typing system, server side rendering, code generation etc.
But also your tooling is new and custom to me. such as the cli, the watcher web service etc. It has a lot of cool stuff added on top of FastAPI.
Have you actually considered to work with the FastAPI author to add some of these features to FastAPI?
I've been looking at FastAPI with it's Pydantic schemas and were thinking about looking at UI generation based on the schema of the API with perhaps some UI schema such as https://github.com/rjsf-team/react-jsonschema-form
Were also looking at micro UIs, etc various topics and trying to come up with a way to generate UIs in a Python backend dev friendly way (mostly just on a hobby level, and didn't get anywhere yet)
Were thinking of having:

a list of components for generic things with their schemas (forms, searchable grids, etc mostly for crud)
backend being able to send back the data + UI component schema required to generate the UI
generic frontend to generate the UI
then saw htmx
and now this :)

but this is a whole different level of thinking about things and plumbing things together.
To me it's a brand new novel approach, very innovative and I just want to learn more about the details.
btw, how do you setup your VSCode for debugging?

@CJHarmath I opened a general ticket to track documentation improvements. Feel free to chime there with more specifics: https://github.com/piercefreeman/mountaineer/issues/60
In the meantime I'm also working on a few followup blog posts and some YouTube tutorials. Chime there (or feel free to reopen this ticket) if you have other items on your list.


Ionic serve failed with exception

Hi All,
so I was trying the ionic starter project tutorial, using ionic-cli 1.7.16 is ok, but after update to ionic-cli 2.0.0, I got this error when running ionic serve, there are a lot of exception, but it looks similar, so I only put the last one
Caught exception:
 Error: watch<EMAIL_ADDRESS>ENOSPC
    at exports._errnoException (util.js:893:11)
    at FSWatcher.start (fs.js:1313:19)
    at Object.fs.watch (fs.js:1341:11)
    at createFsWatchInstance (/home/ikhsan/www_data/htdocs/ionic/MyIonic2Project/node_modules/chokidar/lib/nodefs-handler.js:37:15)
    at setFsWatchListener (/home/ikhsan/www_data/htdocs/ionic/MyIonic2Project/node_modules/chokidar/lib/nodefs-handler.js:80:15)
    at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/ikhsan/www_data/htdocs/ionic/MyIonic2Project/node_modules/chokidar/lib/nodefs-handler.js:228:14)
    at FSWatcher.NodeFsHandler._handleFile (/home/ikhsan/www_data/htdocs/ionic/MyIonic2Project/node_modules/chokidar/lib/nodefs-handler.js:255:21)
    at FSWatcher.<anonymous> (/home/ikhsan/www_data/htdocs/ionic/MyIonic2Project/node_modules/chokidar/lib/nodefs-handler.js:473:21)
    at FSReqWrap.oncomplete (fs.js:82:15)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

9.1 MB bytes written (17.29 seconds)
[15:07:45] Finished 'watch' after 35 s
[15:07:45] Starting 'serve:before'...
[15:07:45] Finished 'serve:before' after 8.61 μs

Live Reload failed to start, error: Error: watch /home/ikhsan/www_data/htdocs/ionic/MyIonic2Project/www/build ENOSPC
Ionic serve failed - error: Error: watch /home/ikhsan/www_data/htdocs/ionic/MyIonic2Project/www/build ENOSPC
Ionic server commands, enter:
  restart or r to restart the client app from the root
  goto or g and a url to have the app navigate to the given url
  consolelogs or c to enable/disable console log output
  serverlogs or s to enable/disable server log output
  quit or q to shutdown the server and exit

ionic $

regards :)

running npm install, I got this message
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>npm WARN myionic2project@ No repository field.
npm WARN myionic2project@ No license field.

my os is ubuntu 16.04 x64 btw

its strange, after restart the ionic serve running flawlesly


XMonad.Util.Run.spawnPipe is unable to handle UTF-8 characters. safeSpawn destroys UTF-8 characters.

Problem Description
import XMonad.Util.Run (spawnPipe)

_gxMsgOpts :: String -> X ()
_gxMsgOpts msg = do
  h <- spawnPipe $ "gxmessage -file -"
  liftIO $ hPutStr h msg
  liftIO $ hClose h
  return ()

If msg contains UTF-8 characters, _gxMsgOpts destroys them. Look at the screenshot below. A message box containing "Close these windows" contains broken characters.

The following two implementations handle UTF-8 characters smoothly.
import XMonad.Util.Run (runProcessWithInput)

_gxMsgOpts :: MonadIO m => String -> m ()
_gxMsgOpts msg = do
  _ <- xfork $ do
    _ <- runProcessWithInput "gxmessage" ["-file", "-"] msg
    return ()
  return ()

import System.Process (createProcess, proc)

_gxMsgOpts :: MonadIO m => String -> m ()
_gxMsgOpts msg = io $ do
  _ <- createProcess (proc "gxmessage" [msg])
  return ()

By just replacing spawnPipe with runProcesswithInput or createProcess, UTF-8 characters are handled properly.
I tried safeSpawn, too. It destroys UTF-8 characters via encodeString.

Do I need to fork runProcessWithInput with xfork? runProcessWithInput alone doesn't seem to freeze XMonad.

I'd expect this to be fixed with e.g. spawnPipeWithUtf8Encoding; @crocket can you confirm?

I migrated to sway. I can't confirm. I don't have xmonad config.

I will close this for now then; haven't heard of this bug ever since these were merged.  Feel free to re-open if you ever happen to jump back to xmonad and are still experiencing this on your system!


Remove reduce option from F.black_out

This PR removes reduce option from F.black_out. Different from v1, F.black_out outputs sample wise loss values in v2. Related to #2558 #2600

Following the tentative conclusion I wrote here, I close this PR. Thank you.


web suppport

does this web support web? and can it support it?

Using inapp hotkey on the web? Because system hotkey has no meaning on the web platform.


Fix source and target values in Maven example pom.xml

The source and target versions are set as 7, which is not recognized.
As a result, no source level is set. Generating the Maven project with:
mvn eclipse:eclipse
and writing code like:
List myList = new ArrayList<>();
results in the errors:
'<>' operator is not allowed for source level below 1.7
Incorrect number of arguments for type ArrayList; it cannot be parameterized with arguments <>
Syntax error, parameterized types are only available if source level is 1.5 or greater
Change the values to 1.7.
Change-Id: I476555d28e6e8da477f8f46a3403d248219cf3ec

Please don't merge this yet.  The cla: yes label has been applied, but I suspect the CLA is from my previous employer.  I will probably need to invalidate that and get a new one.

It looks like the CLA is correctly updated to my current employer.


swap visualization techniques

implement a hook to switch between layers on the go. Likely will require sharing vtkPolydata and/or vtkPoints between layers.

similarly but not identically; add functionality to switch between different types of channel modulation (within one layer). Actually this might be a bigger challenge than the swapping of layers;

add a function to Layer to setModulationMode(int mode)?
Have different layers and just pretend it's only changing modulation?

Either way this is going to involve another callback.


Mathjax input boxes don't "remember" inputs

For example, in Stage 1, at marker dop_cal4, if you input the wavelengths into the equation box, open the calculation dialog, then close the dialog, in order to reopen the dialog, you have to re-input the wavelength values.

So in the Voila version, we used the fact that the app state was frontend-accessible to update the state on (I believe) a focus change.
I think in the Solara version we could achieve the same thing using an event callback that we invoke inside the input listener.


403 Client Error

Using the module seems no longer be possible.
>>> import pocketcasts as pc
>>> api = pc.Api('the_username', 'the_passwrod')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/fab/Documents/repos/ha/home-assistant/lib64/python3.6/site-packages/pocketcasts/api.py", line 18, in __init__
    response.raise_for_status()
  File "/home/fab/Documents/repos/ha/home-assistant/lib64/python3.6/site-packages/requests/models.py", line 939, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://play.pocketcasts.com/users/sign_in

Reported at https://github.com/home-assistant/home-assistant/issues/16103

Looks like they have swapped to "https://api.pocketcasts.com/user/login" instead of "https://play.pocketcasts.com/users/sign_in"

I'm able to leverage the new API. I will see if I can make a fork and get it updated.

The fork works great, thanks so much! :)

Spoke too soon! Broken for a few things, such as search:
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://play.pocketcasts.com/web/podcasts/search.json

I'll take a look at it this week. Sorry, been super busy!

I got it work using a POST
        params = {'term': search}
        response = self._session.post(
            "https://api.pocketcasts.com/discover/search",
            headers=self._api_header,
            data=params
            )
        response.raise_for_status()

        podcasts = []
        for podcast_json in response.json()['podcasts']:
            podcasts.append(podcast_json)

        return podcasts


Cherry Pick Cypress v4 fixes to v5

This is still failing tests but I wanted to see the current overall build status.
Submitter:

[x] This pull request describes why these changes were made.
[x] Internal ticket for this PR: https://jira.mitre.org/browse/CYPRESS-376
[x] Internal ticket links to this PR
[x] Code diff has been done and been reviewed
[x] Tests are included and test edge cases
[x] Tests have been run locally and pass

Reviewer 1:
Name:

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code

Reviewer 2:
Name:

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code

@okeefm @mayerm94 This should be rebased and ready for review.


ncgen w/ classic and NOFILL have different lengths on Windows, Linux/OSX

While modifying the shell-script based tests to work on any Windows install which has bash available, I've discovered some strange behavior.  In ncdump/tst_lengths.sh, we find the following stanza:
echo "*** testing length of classic file written with NOFILL"
../ncgen/ncgen -b -x ${srcdir}/small.cdl
if test `wc -c < small.nc` != 68; then
    exit 1
fi

On Linux/OSX, wc-c < small.nc gives 68 as expected.  On Windows 8.1 using MSVC 2010-generated executables (64-bit, 'Release' configuration), wc-c < small.nc gives 65, resulting in a failed test.  Examining the contents of small.nc in a hex editor on each platform shows that the three trailing zero bytes on Windows are not written to file (see attached images; too hard to cut-and-paste into markdown).
I need to figure out why this happened, is it a property of File I/O on Windows/NTFS, is it something in ncgen, etc.
OSX

Windows

weird.
Ward Fisher wrote:

While modifying the shell-script based tests to work on any Windows install which has bash available, I've discovered some strange behavior.  In ncdump/tst_lengths.sh, we find the following stanza:
echo "*** testing length of classic file written with NOFILL"
../ncgen/ncgen -b -x ${srcdir}/small.cdl
if test `wc -c < small.nc` != 68; then
    exit 1
fi

On Linux/OSX, wc-c < small.nc gives 68 as expected.  On Windows 8.1 using MSVC 2010-generated executables (64-bit), wc-c < small.nc gives 65, resulting in a failed test.  Examining the contents of small.nc in a hex editor on each platform shows that the three trailing zero bytes on Windows are not written to file (see attached images; too hard to cut-and-paste into markdown).
I need to figure out why this happened, is it a property of File I/O on Windows/NTFS, is it something in ncgen, etc.
OSX

Windows

Reply to this email directly or view it on GitHub:
https://github.com/Unidata/netcdf-c/issues/103

Further experimentation with Windows 7 (64-bit), Visual Studio 2010.

Debug build works, or at least generates a binary .nc file of expected size.
Release build does not work. So, new hypothesis is that some sort of optimization is causing the problem. Will investigate this further.

After speaking with @russrew, there is a question about the utility of this test and whether or not it is portable enough to keep.  We would need to maintain the test in place, simply because other tests rely on the file generated, but it's possible that checking the number of bytes in the file isn't a great way to test the functionality, particularly since using ncdump on the binary files returns the same information, regardless of whether the binary file was 65 or 68 bytes.

I agree. One possibility is to use diff -wBb
to compare the two files for equality.
=Dennis
Ward Fisher wrote:

After speaking with @russrew, there is a question about the utility of this test and whether or not it is portable enough to keep.  We would need to maintain the test in place, simply because other tests rely on the file generated, but it's possible that checking the number of bytes in the file isn't a great way to test the functionality, particularly since using ncdump on the binary files returns the same information, regardless of whether the binary file was 65 or 68 bytes.

Reply to this email directly or view it on GitHub:
https://github.com/Unidata/netcdf-c/issues/103#issuecomment-72067509

Test is too strict, curve too steep, lets just drop it.


RoBERTa model not loadable

🐛 Bug
I just trained a RoBERTa GottBERT model and obtain the following error while trying to load the final checkpoint
omegaconf.errors.ConfigKeyError: Key 'include_index' not in 'MaskedLMConfig'
        full_key: include_index
        reference_type=Optional[MaskedLMConfig]
        object_type=MaskedLMConfig

To Reproduce
Steps to reproduce the behavior (always include the command you ran):
train some GottBERT model using fairseq-train and then load the checkpoint
gottbert = GottbertModel.from_pretrained('path/to/checkpoints', checkpoint_file='checkpoint_best.pt')

Expected behavior
Should load the model as usual
Environment

fairseq Version (e.g., 1.0 or main): 0.12.2
PyTorch Version (e.g., 1.0): 2.0.1
OS (e.g., Linux): Ubuntu 20.04
How you installed fairseq (pip, source): pip
Build command you used (if compiling from source): pip install .
Python version: 3.9.16
CUDA/cuDNN version: -
GPU models and configuration: -
Any other relevant information: -

Additional context
with the installation from source the entire RoBERTa stuff seems to be broke. There I obrain allready errors by simply importing classes, such as
from fairseq.models.roberta import RobertaModel
# or
from fairseq.models.roberta import GottbertModel

Solved it by a workaround. I added the missing field to the checkpoint file;
import torch
model = torch.load("checkpoints/checkpoint.pt")
model['cfg']['include_index'] = False

torch.save(new_model, 'checkpoints/checkpoint_fixed.pt')

I'm not that sure, whether include_index should be false or true? I would be happy, if someone could give some feedback concerning that.