Object.Paths broken with TS 4.9

🐞 Bug Report
Describe the bug
Object.Paths doesn't seem to be working right with 4.9. Not sure where the bug is
Reproduce the bug
https://www.typescriptlang.org/play?ts=4.9.0-dev.20221011#code/JYWwDg9gTgLgBAbzgeQEYCsCmBjeBfOAMyghDgHIYBnAWhgggBtVNGZyBuAKC5gE8wmOGACGMABZU4AXhQYcMAHQAFMZIA8Sca0YQAXHCowowAHYBzOHgB8HIA
paths is of type readonly Key[] in 4.9
Expected behavior
The same snippet running in 4.8
https://www.typescriptlang.org/play?ts=4.8.4&ssl=3&ssc=46&pln=3&pc=44#code/JYWwDg9gTgLgBAbzgeQEYCsCmBjeBfOAMyghDgHIYBnAWhgggBtVNGZyBuAKC5gE8wmOGACGMABZU4AXhQYcMAHQAFMZIA8Sca0YQAXHCowowAHYBzOHgB8HIA
Possible Solution

Screenshots

Additional context

Same issue here, anyone has any idea how to sort that out?

I'm having that same issue here, TypeScript 4.8 works just fine!

Same issue here, anyone has any idea how to sort that out? It seems the lib is abandoned =/

Damn, ran into the same issue on my end @bissolli :D very sad.

Same issue here, anyone has any idea how to sort that out? It seems the lib is abandoned =/

Damn, ran into the same issue on my end @bissolli :D very sad.

As we were not using the lib extensively we ended up removing the lib as it seems to be abandoned!
Hope you find a solution on your end man ;)

type DistributedKeyof<Target> = Target extends any ? keyof Target : never;

type DistributedAccess<Target, Key> =
  Target extends any
    ? Key extends keyof Target
      ? Target[Key]
      : undefined
    : never;

type Leaf =
  | Date
  | boolean
  | string
  | number
  | symbol
  | bigint;

type DepthCounter = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

type ObjectPaths<
  Target,
  Depth extends DepthCounter[number] = 10
> = Depth extends never
  ? never
  : Target extends never
    ? never
    : Target extends Leaf
      ? never
      : {
        [Key in string & DistributedKeyof<Target>]: [Key] | (
          NonNullable<DistributedAccess<Target, Key>> extends (infer ArrayItem)[]
          ? | [Key, number]
            | (ObjectPaths<ArrayItem, DepthCounter[Depth]> extends infer V extends any[]
                ? [Key, number, ...V]
                : never
              )
          : (
            ObjectPaths<NonNullable<DistributedAccess<Target, Key>>, DepthCounter[Depth]> extends infer V extends any[]
            ? [Key, ...V]
            : never
          )
        )
      }[string & DistributedKeyof<Target>];

// ----------

type SomeType = {
    name: string;
    nested: {
        value: number;
    }[]
}

type p = ObjectPaths<SomeType>;
//   ^?

This ObjectPaths type is the code I used to replace ts-toolbelt's Object.Paths. It's probably not perfect in terms of weird edge cases, but works for what I need from it

I actually found this code online somewhere, does the same thing...
export type NestedKeyPaths<ObjectType extends object> = {
    [Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object
        ? `${Key}.${NestedKeyPaths<ObjectType[Key]>}`
        : `${Key}`;
}[keyof ObjectType & (string | number)];

👍 That code is similar to mine, but doesn't handle unions or circular types


Add tag support in flux_sync

Hey,
Currently flux_sync accept only branch name and it is not possible to use a tag.
When using branch flux will fetch "refs/heads/"
When using tag flux has to fetch "refs/tags/"
As you can see those are not interchangeable.
Flux cli already has support for tag and tag-semver as described here: https://fluxcd.io/docs/cmd/flux_create_source_git/
Currently new inactive branch must be created to pin deployment to commit_id, using tags would resolve this issue for us.

Hi, I'd be interested in giving this a go if that's alright? Will depending on the above PR though


Implement Enhanced Gibbet and Gallows proc tracking

Completes Task "Enhanced vs Unenhanced Gibbet" in #1372
Included functionality:
Tracks dropped Enhanced Gibbet and Enhanced Gallows procs
Tracks overwritten Enhanced Gibbet and Enhanced Gallows procs
Edit alongside 2b93f73: fixed incorrect task reference

RE: Commit 050ffac: I spoke with Agile, Toast, and Kelos in discord about an issue with CoreProc, and after significant discussion, the consensus we came to was that Void/Cross reaping tracking should be spun out and included with the Enshroud tracker, since those actions will be tracked as part of identifying a "standard" enshroud window

@ayyaruq if you could go in and make sure that your code passes lint, I'd appreciate it. I'm not on my usual development computer, so it'll be very difficult for me to fix it myself. lint error above is what I couldn't fix myself.

Thanks so much.
Also, I apologise for my time earlier, i didn't notice that it was unprofessional until after you had already posted a couple commits.


[fature] List (for later removal) unused SGs/AMIs/Volumes/Snapshots

Hey,
there are a bunch of different scripts for finding and cleaning up unused resources, it would be nice to integrate such functionality in awless to have it all in one place and easy to use.
AMIs and Snapshots cleaner example:
https://github.com/bonclay7/aws-amicleaner
Some rough SG list example:
https://gist.github.com/asinghal/f72afd1aebeba26789fd6ff3789cf4d4

Thanks for the suggestion, this is a good idea and is something we want to do.
A way to do it would be to add new inspectors. For example, as a proof of concept, you can try awless inspect -i port_scanner that display, in particular, the security groups that are not used by instances, nor network interfaces, nor loadbalancers.
We also could imagine an inspector that directly outputs an awless template to delete all unused securitygroups/images/volumes/snapshots.

@fxaguessy cool, I didn't know about awless inspect -i port_scanner.
Would be nice to add "rds/elasticache/lambdas/etc" to the applying on nothing check.

Note - as @fxaguessy is saying - that the port scanner inspector is not production ready and was done quickly. Its output is not really usable and friendly.
We will do a proper one soon enough though.


New Package vtk-dicom

Can make use of the feature 'gdcm' to decompress DICOM files for use with VTK.
I didn't include options for the python or tcl wrapper.
The vtk-dicom project lives here and is somehow mandatory if you want to use vtk with imaging modalities in productive environments outside university.

Ooops, CAPSLOCK typo. Will come back.

Thanks for the PR and sorry for taking so long to merge!


Collation for v0.5

Coverage decreased (-0.04%) to 88.759% when pulling fdb44210203defee6e9d71aa0f1ca6e40f3abb90 on collate into fe413fc58678b8dda4d1235e973c97031ecbfdb8 on development.

Coverage remained the same at 88.801% when pulling b31f2d2f99c2fe140b6ecd247738ad0164da0084 on collate into fe413fc58678b8dda4d1235e973c97031ecbfdb8 on development.

Coverage decreased (-0.04%) to 88.759% when pulling b31f2d2f99c2fe140b6ecd247738ad0164da0084 on collate into fe413fc58678b8dda4d1235e973c97031ecbfdb8 on development.


Improve Filter Experience in drizzle-studio especially for Enum Columns

Description:
When applying filters to columns with enum data types in Drizzle Studio, the current implementation can be frustrating. Each time a character is added to the input box, an error dialog box appears, indicating an "invalid input value for enum [enum_name]". This repetitive error message can disrupt the user's workflow and make the filtering process difficult.
Feature Request:
To improve the user experience, I think the addition of an "Apply Filter" button when applying filters in Drizzle Studio would help. This button would allow users to intentionally apply the filter only when they have finished typing their input, rather than triggering an error dialog box after each keystroke.

@Adithyan777 Hey! This button has been added to Drizzle Studio.


Publish dynamic cluster offer with AAD and DB

arm-oraclelinux-wls-dynamic-cluster-1.0.15-arm-assembly.zip

Changes caught during acceptance testing.
https://github.com/wls-eng/arm-oraclelinux-wls-dynamic-cluster/pull/30
arm-oraclelinux-wls-dynamic-cluster-1.0.16-arm-assembly.zip

Use zip from https://github.com/wls-eng/arm-oraclelinux-wls-dynamic-cluster/actions/runs/137775712 .

Please use Microsoft.Compute.UserNameTextBox. It comes with built-in validation for Windows and Linux user names
https://solutiontemplates.visualstudio.com/marketplacesolutions/_git/oracle/pullrequest/7661
Same as the other PR(7661), change all of user names to Microsoft.Compute.UserNameTextBox
https://solutiontemplates.visualstudio.com/marketplacesolutions/_git/oracle/pullrequest/7659


Update FAQ on maintaining CF

The last section, "Maintaining the CF standard", needs some serious updating to bring it into the GitHub era. Or needs removing or to be replaced with a pointer to CONTRIBUTING.md and/or rules.md.

Originally posted by @ethanrd in https://github.com/cf-convention/cf-convention.github.io/issues/278#issuecomment-1255158238
Referring to faq.md.
I think this is a good idea too. Unfortunately I'm a bit short on time so won't get to it right away but am happy that it's been proposed, and will happily support it once I find a few minutes if nobody has in the interim!

I would say the same, and likewise would like to spend some time on the FAQ, when I can.

I also agree, and maybe I can help a bit too (making suggestions here and there, perhaps reviewing an eventual PR, etc.).

The link checker repeatedly finds these broken links, which I'm recording here for reference, to be dealt with when time allows.
[faq.md]:
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2010/048064.html | Failed: Network error: Not Found
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2008/052705.html | Failed: Network error: Not Found
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2009/047768.html | Failed: Network error: Not Found
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2010/053657.html | Failed: Network error: Not Found
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2008/052334.html | Failed: Network error: Not Found
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2012/055875.html | Failed: Network error: Not Found

Possible mapping:

https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2010/048064.html

https://cfconventions.org/mailing-list-archive/Data/3450.html

https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2008/052705.html

https://cfconventions.org/mailing-list-archive/Data/2500.html

https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2009/047768.html

I couldn't find this, there is a single message from Rob in the list archive: https://cfconventions.org/mailing-list-archive/Data/3154.html

https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2010/053657.html

https://cfconventions.org/mailing-list-archive/Data/2517.html

https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2008/052334.html

https://cfconventions.org/mailing-list-archive/Data/2098.html

https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2012/055875.html

I couldn't really find this either, maybe: https://cfconventions.org/mailing-list-archive/Data/5543.html

Dear Andrew @DocOtak
This is great! Thanks a lot for your time and effort. That's a big step towards fixing the final missing links.
I think the posting from Rob Raskin that you found is the correct one. The reference to it says "list post mention". He mentions it just in the last sentence, saying it's the subject of another communication. I too cannot find anything else from him about it, though Russ Rew mentioned something similar in https://cfconventions.org/mailing-list-archive/Data/0418.html. In this case, the link to the posting isn't useful, I would say, but the document could be of interest.
For the final one also, I think you have found the only possibility. Piasecki is not mentioned anywhere else. In this case, we don't have a link to the document concerned, so I suppose we might as well delete this item - would you agree?
I see that the FAQ mentions the pipermail archive in a few places. We should change them as well.
Best wishes
Jonathan

Dear Andrew @DocOtak
I have prepared PR 401 to replace the mailing list links, and remove some other references to the mailing list. There are plenty of other updates of content needed, but I didn't change anything else, except for referring to the CF repos in a consistent way. I believe that once these changes are implemented, the website won't have any missing links.
Would you mind checking the PR? I would be grateful. Thanks for your work on this issue.
Cheers
Jonathan

Dear all
I'm rather keen to see whether this PR fixes the remaining broken links on the website, which are all in the FAQ, so I'd be happy if anyone has a minute to check and merge it if it looks OK. It implements the fixes that @DocOtak helpfully identified.
Thanks
Jonathan

Thanks all for the hard work - it looks good for me so I will merge.

Thanks, @erget

Glad to see my suggestions go in, thanks for doing it @JonathanGregory


How to reenable Bing Search when using Search via the Start Menu

I love this tool, except for this part. How would I go about restoring the functionality or keeping the script from removing it in the first place?

just use google search 100x better than bing.


I'm using image to 3d functiona and i'm getting NaNs issues.

Description
I am using RTX 3060 with 12GB vRAM, cuda 11.6 pytorch 1.13.1 ubuntu 20.04
Steps to Reproduce
When i input script: main.py -O --image ./data/mushroom_rgba.png --workspace mushroom --save_mesh --iters 5000
After Epoch 17 i will get NaN or Inf found in input tensor everytime.
Is that a normal situation or might be some problem?
Start Training mushroom Epoch 17/50, lr=0.050000 ... loss=1.0718 (1.0801), lr=0.050000: : 100% 100/100 [00:16<00:00,  5.94it/s] ==> Finished Epoch 17/50. ++> Evaluate mushroom at epoch 17 ... loss=0.0000 (0.0000): : 100% 5/5 [00:04<00:00,  1.03it/s] ++> Evaluate epoch 17 Finished. ==> Start Training mushroom Epoch 18/50, lr=0.050000 ... loss=1.0503 (1.0854), lr=0.050000: :  18% 18/100 [00:02<00:12,  6.54it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  19% 19/100 [00:03<00:13,  6.22it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  20% 20/100 [00:03<00:11,  6.82it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  21% 21/100 [00:03<00:12,  6.29it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  22% 22/100 [00:03<00:11,  6.76it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  23% 23/100 [00:03<00:12,  6.08it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  24% 24/100 [00:03<00:11,  6.55it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  25% 25/100 [00:04<00:11,  6.26it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  26% 26/100 [00:04<00:10,  6.84it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  27% 27/100 [00:04<00:11,  6.15it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  28% 28/100 [00:04<00:10,  6.61it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  29% 29/100 [00:04<00:11,  6.25it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  30% 30/100 [00:04<00:10,  6.81it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  31% 31/100 [00:05<00:11,  6.11it/s]NaN or Inf found in input tensor. loss=nan (nan), lr=0.050000: :  32% 32/100 [00:05<00:10,  6.68it/s]NaN or Inf found in input tensor.
Expected Behavior
Is that a normal situation or might be a problem?
Environment
Ubuntu20.04 Pytorch1.13 Cuda 11.6

I noticed that using -O2 also leads to nans the the latest commit however in commit b6243518553cf8e10bdbd077f6951f25d1ef9638 the nans do not occur and it works fine. Further, notice that in the latest commit nans tend to reappear after several iterations.

@aradhyamathur Hi, could you give more details on the environment and command lines to reproduce?

I got the same issue. I'm using the latest commit and I got Nan even I tried a lot again and again.

@ashawkey sure, heres the command that leads to nans.
 main.py --text a dslr photo of hamburger --workspace burger --iters 15000 -O2 --eval_interval 50 The nans start to appear after 8 epochs.  The following are the logs.
[INFO] Cmdline: main.py --text a dslr photo of hamburger --workspace burger --iters 15000 -O2 --eval_interval 50
[INFO] Trainer: df | 2023-05-11_16-15-17 | cuda | fp16 | burger
[INFO] #parameters: 18983
[INFO] Loading latest checkpoint ...
[WARN] No checkpoint found, model randomly initialized.
==> [2023-05-11_16-15-18] Start Training burger Epoch 1/150, lr=0.005000 ...
loss=1.0007 (1.0011), lr=0.004924: : 100% 100/100 [00:18<00:00,  5.36it/s]
==> [2023-05-11_16-15-37] Finished Epoch 1/150. CPU=5.6GB, GPU=16.1GB.
==> [2023-05-11_16-15-37] Start Training burger Epoch 2/150, lr=0.004924 ...
loss=1.0002 (1.0006), lr=0.004849: : 100% 100/100 [00:18<00:00,  5.51it/s]
==> [2023-05-11_16-15-55] Finished Epoch 2/150. CPU=5.8GB, GPU=16.1GB.
==> [2023-05-11_16-15-55] Start Training burger Epoch 3/150, lr=0.004849 ...
loss=1.0003 (1.0003), lr=0.004775: : 100% 100/100 [00:18<00:00,  5.50it/s]
==> [2023-05-11_16-16-13] Finished Epoch 3/150. CPU=5.8GB, GPU=16.1GB.
==> [2023-05-11_16-16-13] Start Training burger Epoch 4/150, lr=0.004775 ...
loss=1.0002 (1.0002), lr=0.004702: : 100% 100/100 [00:18<00:00,  5.51it/s]
==> [2023-05-11_16-16-32] Finished Epoch 4/150. CPU=5.8GB, GPU=16.1GB.
==> [2023-05-11_16-16-32] Start Training burger Epoch 5/150, lr=0.004702 ...
loss=1.0000 (1.0002), lr=0.004631: : 100% 100/100 [00:18<00:00,  5.47it/s]
==> [2023-05-11_16-16-50] Finished Epoch 5/150. CPU=5.8GB, GPU=16.1GB.
==> [2023-05-11_16-16-50] Start Training burger Epoch 6/150, lr=0.004631 ...
loss=1.0004 (1.0002), lr=0.004576: :  77% 77/100 [00:14<00:04,  5.49it/s]NaN or Inf found in input tensor.
loss=1.0000 (nan), lr=0.004560: : 100% 100/100 [00:18<00:00,  5.48it/s]
==> [2023-05-11_16-17-08] Finished Epoch 6/150. CPU=5.8GB, GPU=16.1GB.
==> [2023-05-11_16-17-08] Start Training burger Epoch 7/150, lr=0.004560 ...
loss=1.0006 (1.0002), lr=0.004491: : 100% 100/100 [00:18<00:00,  5.47it/s]
==> [2023-05-11_16-17-26] Finished Epoch 7/150. CPU=5.8GB, GPU=16.1GB.
==> [2023-05-11_16-17-26] Start Training burger Epoch 8/150, lr=0.004491 ...
loss=1.0002 (1.0002), lr=0.004460: :  45% 45/100 [00:08<00:10,  5.48it/s]NaN or Inf found in input tensor.
loss=1.0000 (nan), lr=0.004456: :  50% 50/100 [00:09<00:09,  5.49it/s]NaN or Inf found in input tensor.
loss=1.0005 (nan), lr=0.004453: :  55% 55/100 [00:09<00:08,  5.51it/s]NaN or Inf found in input tensor.
loss=1.0000 (nan), lr=0.004449: :  60% 60/100 [00:10<00:07,  5.52it/s]NaN or Inf found in input tensor.
loss=1.0000 (nan), lr=0.004448: :  62% 62/100 [00:11<00:06,  5.53it/s]NaN or Inf found in input tensor.
loss=nan (nan), lr=0.004447: :  63% 63/100 [00:11<00:06,  5.55it/s]NaN or Inf found in input tensor.
loss=1.0002 (nan), lr=0.004445: :  66% 66/100 [00:11<00:06,  5.54it/s]NaN or Inf found in input tensor.
loss=1.0003 (nan), lr=0.004442: :  71% 71/100 [00:12<00:05,  5.52it/s]NaN or Inf found in input tensor.
loss=1.0000 (nan), lr=0.004439: :  76% 76/100 [00:13<00:04,  5.51it/s]NaN or Inf found in input tensor.

The torch version is '2.0.1+cu118'

Also sometimes even if there are no nans the loss stops to go down and generates blank / green images.

-O2 is not well tested, could you try with -O?

Actually I have been playing around with -02  for the past few months and never encountered this issue especially with the default prompts. I shall also check -0

-O seems to be working fine.

I have checked -O seems to be working.

However -O2 still gives nans, I think this issue and the issue here are interlinked.

@m0eak can you check this once and see if using the configuration in this commit works.  here


Add function optimization

This should address #4.
Currently it does multiple recursive passes to resolve the values of nodes that are fixed. It however doesn't free the old ones at all.

Actually, since eval and optimize_expr are really similar, I wonder if there's a way to unify them somehow :thinking:

Also, I wanted to implement freeing the discarded nodes, but I'm not really familiar with arena allocators.
As I understand it, it's a linked list of regions.
My first thought was to free the regions containing the nodes I need to free, and update the linked list accordingly.
I however don't really understand what size the regions are and how the addresses of objects inside the region are determined.

Doesn't have that big of an impact on performance in the end


Prefix all routes

At this moment I want to prefix all routes of my api, so I have in blueprints this:
blueprints:
  actions: false
  shortcuts: false
  prefix: '/v1'

Works fine, but (only prefix blueprints methods (obviously).
Exist a way to prefix all routes? I know that in express 4 is possible prefix easily with:
app.use('/v1', routerObject);

I know that is possible write a policie, but just I want to set up in the config...
Sorry if is  possible to prefix now, but I don't see nothing in the documentation.

Hi @Kikobeats, it's not entirely clear what you're trying to do here--if you put actions back to true, then all of your routes mapped automatically to controller actions will have the prefix.  Routes that you define in config/routes.js won't ever be prefixed, because you are after all explicitly stating what you want the path to be!

@sgress454 exactly I want to do is something to avoid explicity prefix the routes in config/routes.js and prefix all routes (like is possible in blueprints with prefix option, but out of blueprints as well).
why? because when you are creating different versions of the same API (/v1, /v2/, ...) can be useful for streamline the process just changing one value that define the global prefix instead of all individuals routes.
Do you think that can be useful?

Would be nice to have something similar to rails namespaces for this

I actually worked on this on a flight a few weeks ago, then lost it and forgot to post.  So, here it is:
You can do this with policies--just not with the config/policies.js file.  Instead, you need to inject the policy directly into config/routes.js as a wildcard:
'/*': {policy: 'selectApiVersion', skipAssets: true},

Then in api/policies/selectApiVersion:
module.exports = function(req, res, next) {

  // Alter the URL based on the desired API version
  req.url = "/v" + (sails.config.apiVersion || 1) + req.url;
  return next();

};

At the time, there was an issue where skipAssets wouldn't work with the policy route syntax.  That's been patched on master, so the above will work, but we'll need to push out a patch release of Sails to make it available on NPM.

Sounds good! thanks for the clarification :-)


Alert should go away or only show up periodically

I get this alert every time I login. Seems redundant

Can we make this a snackbar with a long timeout (5 - 10 sec) that only displays when you first login?

Timeout is fine. Or add an x. I would also make it like once a month if possible. Don't want the reminder every time, but occasionally would be nice

It's a lot of effort to remember this, which should be done in the backend.
It's not worth it at the moment since we'll be phasing out magic links soon.


Some question about CDFSL

Hello, About this challege, 15 query samples of each category can be used for unsupervised training in each episode??

Hi, this can be transductive learning for few-shot learning, please see https://arxiv.org/abs/1909.02729.


Inefficient Usage of JCF

Hi,
We find that there are several ArrayList objects which are not manipulated by random access. Due to the memory reallocation triggered in the successive insertions, the time complexity of add method of ArrayList is amortized O(1). We notice that these objects are only used for traversal, the retrieval, and removal of the first or the last element.
This functionality can be implemented by LinkedList. Moreover, the insertion of LinkedList is strictly O(1) time complexity because no memory reallocation occurs.
Meanwhile, we also found several LinkedHashSet and LinkedHashMap objects which are not necessary to maintain the order of insertions. To achieve the same functionality, HashHap and HashSet are enough. The replacement can also reduce the time cost in the modification of the map objects.
We discovered the above inefficient usage of containers by our tool Ditto. The patch is submitted in #1079. Could you please check and accept it? We have tested the patch on our PC. The patched program works well.
Bests
Ditto

Thank you for your PR, we will check the changes later.Performance is important for us, your work can help us a lot


Cloud translation Google.Apis.Translate.v2 fails for short texts... "The Uri string is too long"

I am trying to get Translate to work for relatively short texts that are not based on latin alphabets... and in some cases the API behaves strangely.
I am using .Net Framework 4.6.1 - and Google.Apis.Translate.v2 V <IP_ADDRESS>5.  The c#code I use is really simple:
           string text = File.ReadAllText(@"prikaz_o_polojenii_88Long.txt");             TranslationClient client = TranslationClient.Create();             var response = client.TranslateText(text, "en", "uz", TranslationModel.ServiceDefault);             outputTtextBox.Text = response.TranslatedText;
and when I execute this I get the following exception:
System.UriFormatException   HResult=0x80131537   Message=Invalid URI: The Uri string is too long.   Source=System   StackTrace:    at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)    at System.Uri..ctor(String uriString)    at Google.Apis.Requests.RequestBuilder.UriJoin(Uri baseUri, String path)    at Google.Apis.Requests.RequestBuilder.BuildUri()    at Google.Apis.Requests.RequestBuilder.CreateRequest()    at Google.Apis.Requests.ClientServiceRequest1.CreateRequest(Nullable1 overrideGZipEnabled)    at Google.Apis.Requests.ClientServiceRequest1.d__33.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Google.Apis.Requests.ClientServiceRequest1.Execute()    at Google.Cloud.Translation.V2.TranslationClientImpl.TranslateText(IEnumerable1 textItems, String targetLanguage, String sourceLanguage, Nullable1 model)    at Google.Cloud.Translation.V2.TranslationClient.TranslateText(String text, String targetLanguage, String sourceLanguage, Nullable1 model)
at OCRTranslatePilot.Form1.button1_Click(Object sender, EventArgs e) in C:\Development\tax-diamond-ocr-translate-pilot\OCRTranslatePilot\OCRTranslatePilot\Form1.cs:line 555
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at OCRTranslatePilot.Program.Main() in C:\Development\tax-diamond-ocr-translate-pilot\OCRTranslatePilot\OCRTranslatePilot\Program.cs:line 19`
Whenever I do this with Spanish, German or French I have no issue, but non latin alphabets are complicated.
When I feed the same code a Chinese file, I get another exception:
Google.GoogleApiException   HResult=0x80131500   Message=Google.Apis.Requests.RequestError Invalid Value [400] Errors [ 	Message[Invalid Value] Location[ - ] Reason[invalid] Domain[global] ]   Source=Google.Apis   StackTrace:    at Google.Apis.Requests.ClientServiceRequest1.d__34.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Google.Apis.Requests.ClientServiceRequest1.Execute()    at Google.Cloud.Translation.V2.TranslationClientImpl.TranslateText(IEnumerable1 textItems, String targetLanguage, String sourceLanguage, Nullable1 model)    at Google.Cloud.Translation.V2.TranslationClient.TranslateText(String text, String targetLanguage, String sourceLanguage, Nullable1 model)
at OCRTranslatePilot.Form1.button2_Click(Object sender, EventArgs e) in C:\Development\tax-diamond-ocr-translate-pilot\OCRTranslatePilot\OCRTranslatePilot\Form1.cs:line 563
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at OCRTranslatePilot.Program.Main() in C:\Development\tax-diamond-ocr-translate-pilot\OCRTranslatePilot\OCRTranslatePilot\Program.cs:line 19`
So it seems that the Google API Google.Apis.Translate.v2 for .NET have poor support for non-latin languages...
or I am doing something terribly wrong.  Please let me know if this is something that can be fixed on my end.
Attached are the texts I used to test the AIP.
Chinese.txt
prikaz_o_polojenii_88Long.txt
Ivan

Could I ask which version of Google.Cloud.Translate.V1 you're using? The same problem was reported by another user recently, but it's fixed in version 1.2.0-beta01. If that's not the version you're using, could you give that a try please?

I am using Google.Apis.Translate.v2 V <IP_ADDRESS>5.
I think that the issue I am having has something to do with the fact that the text has new lines inside... and since the API passes the text in the URI string... everything breaks.  I figured that the API would URI encode the string to pass it to the web service...
Best regards
Ivan

The code you quoted (using TranslationClient rather than just TranslateService) is using Google.Cloud.Translation.V2 - which wraps Google.Apis.Translate.v2. Please tell me the version of Google.Cloud.Translation.V2 that you're using.

Sorry.  I was using Google.Apis.Translate.v2 directly.    Will try Google.Cloud.Translation.V2 and report shortly.
Thanks!!!
Ivan

Sorry. I was using Google.Apis.Translate.v2 directly

The code you quoted in the first comment is not using it directly though. That's code using Google.Cloud.Translation.V2. Is that not your code?

Yes.  I am sorry.  Its getting confusing with all the libraries I have installed  I am using V1.1.0 of Google.Cloud.Translation.V2.
I will try to install V1.2.0-beta01 - will take a little while since I have to figure out how to get and install that version... my NuGet package manager does not list it   :)
Ivan

my NuGet package manager does not list it :)

You probably haven't got the box for including prereleases checked.

Tried it... seems to work with V1.2.0-beta01!   Thanks a million and I am worry I wasted some of your precious time.
Ivan

Not a problem at all - that's what I'm here for :)


[cuDNN] Add lowering from cudnn.relu + relu custom call

Relu operation should be supported by cudnn compiler plugin and runtime.

We actually already have custom call here: https://github.com/openxla/openxla-nvgpu/blob/628fc75bcfe00c0ab2551824914a896668f21909/runtime/src/openxla/runtime/nvgpu/cudnn/cudnn_module.cpp#L195-L200 but no correspodning lowering here: https://github.com/openxla/openxla-nvgpu/blob/main/compiler/src/openxla/compiler/nvgpu/Dialect/CUDNN/Conversion/ConvertCUDNNToRuntime.cpp

I think this bug can be closed since 9c5504a is committed.


Do not checkout the website repository twice in update.yml

This is good because checking out a non-existing branch:

takes nearly 30s, and most PR does not have a branch with the same name declared in both release-data and endoflife.date repository,
pollute workflow summary with cryptic error messages.

So overall this save a lot of time and is cleaner.

Checks ok, merging.


Fix issues detected when running integration tests

Context
Refer the solution in this PR.
Fix wget command to include --no-check-certificate flag when downloading oc.tar file from the specified URL.

Closing this, it is duplicated with https://github.com/Azure/rhel-jboss-templates/pull/211.


Terminal does not display command  after go-prompt exit

Bug reports
After go-prompt exit the BASH doesn't show what I have inputed.
It's All ok when go-prompt doesn't been run.
input: date + enter
[root /ctl]
$date
Fri Apr  9 11:49:41 CST 2021

[root /ctl]
$./ctl ops
>>> exit
Bye!

After  go-prompt run, command date I have input missed.
input: date + enter
[root /ctl]
$Fri Apr  9 11:49:48 CST 2021

command reset  make terminal return normal.

I noticed the same thing - I think it is due to the pkg/term upgrade in v0.2.6 - downgrading to v0.2.5 seems to avoid this issue.

for those you have the same issue. I did a workaround with the following code
func handleExit() {
	rawModeOff := exec.Command("/bin/stty", "-raw", "echo")
	rawModeOff.Stdin = os.Stdin
	_ = rawModeOff.Run()
	rawModeOff.Wait()
}

func main(){
	defer handleExit()
....
}

Confirm @nodauf's solution works nicely. I believe stty sane is also a valid choice here.

reset  command can restore the tty attribution

This happens because getOriginalTermios() returns a pointer to the original unix.Termios struct, and then SetRaw() modifies it. This can be fixed by changing getOriginalTermios() to copy saveTermios into a new struct and returning that:
func getOriginalTermios(fd int) (unix.Termios, error) {
	var err error
	saveTermiosOnce.Do(func() {
		saveTermiosFD = fd
		saveTermios, err = termios.Tcgetattr(uintptr(fd))
	})
	return *saveTermios, err
}

SetRaw() and Restore() would then need to be adjusted to pass a pointer to the variable they pass into termios.Tcsetattr().

Incidentally, the reason this broke in v0.2.6 is that this was the version that changed getOriginalTermios() to return a pointer instead of a copied struct.

@c-bata Is there any timeline for implementing this fix? I see there is a pr linked here and a similar one to address the same issue from June 2021 https://github.com/c-bata/go-prompt/pull/239. I am also experiencing this issue consistently.


Displaying Calendar for Weekdays Only

Feature
Hello Kizitonwose Calendar Team,
I hope this message finds you well. I am currently integrating your calendar library into my Android application and would like to customize the calendar to display only weekdays, excluding weekends.

I have explored various options, but I am encountering challenges in achieving this specific configuration. My goal is to have a calendar that shows weekdays (Monday to Friday) and omits the weekends, allowing for larger day sizes.
Could you please provide guidance or suggestions on how to achieve this customization within the Kizitonwose Calendar library?
Your assistance is highly appreciated.
Thank you,
Francis

Are you using the compose library or view?

Unfortunately, this is not possible at the moment and I do not think it is worth adding to the core library as the use case is too specific. However, you can fork the library and add these changes for personal use. I tried to see if I could add it but found myself rewriting more things than I wanted.
Here's what it looks like just by changing this and this from dayHolders.count() to 5 and setting the views with Saturday and Sunday to View.GONE (of course you would need to update the weekday header too):

Closing this as there is no plan to implement it in the library

Hey ! I tested your solution look at my code it doesn't really work from my fork :
If I take Example2Fragment :
calendarView.dayBinder = object : MonthDayBinder<DayViewContainer> {
            override fun create(view: View) = DayViewContainer(view)

            override fun bind(container: DayViewContainer, data: CalendarDay) {
                container.day = data
                val textView = container.textView

                if (isWeekend(data.date)) {
                    // Masquer la vue du jour si c'est un week-end
                    textView.makeInVisible()
                } else {
                    textView.makeVisible()
                    textView.text = data.date.dayOfMonth.toString()

                    if (data.position == DayPosition.MonthDate) {
                        when (data.date) {
                            selectedDate -> {
                                textView.setTextColorRes(R.color.example_2_white)
                                textView.setBackgroundResource(R.drawable.example_2_selected_bg)
                            }
                            today -> {
                                textView.setTextColorRes(R.color.example_2_red)
                                textView.background = null
                            }
                            else -> {
                                textView.setTextColorRes(R.color.example_2_black)
                                textView.background = null
                            }
                        }
                    } else {
                        textView.makeInVisible()
                    }
                }
            }

            // Fonction pour vérifier si une date est un jour de week-end
            private fun isWeekend(date: LocalDate): Boolean {
                val dayOfWeek = date.dayOfWeek
                return dayOfWeek == DayOfWeek.SATURDAY || dayOfWeek == DayOfWeek.SUNDAY
            }
        }

This modification allows me to hide weekends.
and I've also modified the WeekHolder code:
    fun inflateWeekView(parent: LinearLayout): View {
       return WidthDivisorLinearLayout(parent.context).apply {
           weekContainer = this
           val width = if (daySize.parentDecidesWidth) MATCH_PARENT else WRAP_CONTENT
           val height = if (daySize.parentDecidesHeight) MATCH_PARENT else WRAP_CONTENT
           val weight = if (daySize.parentDecidesHeight) 1f else 0f
           layoutParams = LinearLayout.LayoutParams(width, height, weight)
           orientation = LinearLayout.HORIZONTAL
           weightSum = 5.toFloat()
           widthDivisorForHeight = if (daySize == DaySize.Square) 5 else 0
           for (holder in dayHolders) {
               addView(holder.inflateDayView(this))
           }
       }
   }

But with these changes I've got an empty page!

 widthDivisorForHeight = if (daySize == DaySize.Square) 5 else 0
   for (holder in dayHolders) { // This is a loop of 7 items, you need to add 5 items
       addView(holder.inflateDayView(this))
   }

file:///home/francois/T%C3%A9l%C3%A9chargements/Screenshot_20231219-133556_Calendar%20Sample.jpg

It was the same problem look the screenshot

And I did modify the code though :
    fun inflateWeekView(parent: LinearLayout): View {
        return WidthDivisorLinearLayout(parent.context).apply {
            weekContainer = this
            val width = if (daySize.parentDecidesWidth) MATCH_PARENT else WRAP_CONTENT
            val height = if (daySize.parentDecidesHeight) MATCH_PARENT else WRAP_CONTENT
            val weight = if (daySize.parentDecidesHeight) 1f else 0f
            layoutParams = LinearLayout.LayoutParams(width, height, weight)
            orientation = LinearLayout.HORIZONTAL
            weightSum = 5.toFloat()
            widthDivisorForHeight = if (daySize == DaySize.Square) 5 else 0
            for (holder in dayHolders) { // This is a loop of 7 items, you need to add 5 items
                addView(holder.inflateDayView(this))
            }
        }
    }

Le pire c'est quand je met le code comme ceci j'ai un résultat sur 4 qui est vraiment bien ! mais pour 5 impossible ... :

The worst thing is when I put the code like this I get one result out of 4 which is really good! but for 5 impossible ...
    fun inflateWeekView(parent: LinearLayout): View {
        return WidthDivisorLinearLayout(parent.context).apply {
            weekContainer = this
            val width = if (daySize.parentDecidesWidth) MATCH_PARENT else WRAP_CONTENT
            val height = if (daySize.parentDecidesHeight) MATCH_PARENT else WRAP_CONTENT
            val weight = if (daySize.parentDecidesHeight) 1f else 0f
            layoutParams = LinearLayout.LayoutParams(width, height, weight)
            orientation = LinearLayout.HORIZONTAL
            weightSum = 8.toFloat()
            widthDivisorForHeight = if (daySize == DaySize.Square) 4 else 0
            for (holder in dayHolders) {
                addView(holder.inflateDayView(this))
            }
        }
    }


Adjoint protocol

Given a bloq, we often want an adjoint (often equal to the inverse) version of it.
Requirements

A method that a bloq user can call to get the adjoint version of a bloq
Some encapsulation of the default behavior: i.e. by default, we get the adjoint by reversing the order of subbloqs and taking the adjoint of each subbloq.
A way for bloq authors to provide specialized adjoint or controlled versions of a bloq.

Design
Introduce a new method on Bloq: Bloq.adjoint(). By default, it will return Adjoint(bloq=self) where the latter is a new special-purpose “metabloq” that takes a bloq as its main attribute.
The Adjoint metabloq delegates all its protocols with modification: The decomposition partially delegates to its member-bloq’s decomposition but will reverse the order of operations and call subbloq.adjoint() on each of the subbloqs.
Bloq authors can override the adjoint() method to provide special constructions of an adjoint operation.
For example: the two-bit And operation has a special decomposition for its adjoint that saves toffolis. This is currently flagged by an attribute on And called “adjoint” that is a boolean. This sort of bloq dispatch will continue to be supported and is appropriate here.
[Note: the existing attribute will have to be renamed to not conflict with the method (follow-on PR)]
For the second, continued example: The MultiAnd (multi-bit and) operation should lose its adjoint attribute since it uses the default adjoint behavior. Make a very important note that even though the subbloqs (i.e. And) have a special adjoint, the way they are composed in Adjoint(MultiAnd()) is standard.
The signature of an adjoint bloq must follow the rules: the same set of registers in the same order except LEFT and RIGHT are switched. This has implications for e.g. Split and Join which need to have their registers renamed to be a mutually agreed-upon name.

this requires #564

Happy to combine this with #566 if you want one big but complete PR

Happy to combine this with #566 if you want one big but complete PR
Eh, no, this is good.


Cannot use quote marks to update an option

Expected/Desired Behavior
Updating an option using a quoted string stores the contents of the quoted string.
Actual Behavior
The quotes are also encoded and stored in the option.
Steps to Reproduce the Problem

wp option update blogname "Hello, World!"
wp option get blogname

Observe that the blogname option now includes encoded quote marks.
I've confirmed that this behaviour is specific to VIP and doesn't affect WP-CLI.

I should probably note that this is via the interactive sub-shell thing on VIP that I first log into using vip wp and then choose an account and a site.


Release <IP_ADDRESS>: Number shown in Title bar says "Accessibility Viewer - <IP_ADDRESS>"

On Windows 7, after I uninstalled my prior versions of aViewer and installed the new <IP_ADDRESS> version of aViewer when I open aViewer it shows a different version number (<IP_ADDRESS>) in the title bar of the window. See screenshot below.

the 32bit and 64bit versions have slightly different minor sub-patch numbers, so for simplicity we round up the very last digit to 0 in the packaged version. something possibly simplified/addressed in future if it can be automated via innosetup


Connect to Slack connect channels (connect from MM to other companies' Slacks)

Is your feature request related to a problem? Please describe.
I'm wondering, if I can setup my paid Slack instance with myself only and setup a matterbridge to my working mattermost, where all of my team mates.
I will then create a channel inside Slack, that I will connect from my team A to other team B (channel a2b-connect) via Slack's connect.
Will this channel be replicated back to my mattermost, so that everyone from team A would be able to chat to team B, without paying for every user in team A (and paying just for me, as a 'hosting' user).
Describe the solution you'd like
Ideally, I would like to keep Slack instance with connects to other Slack connects, to make sure we can communicate - the guys living in Slack, will keep living in Slack; and myself and my team will remain in Mattermost.
Describe alternatives you've considered
N/A as far as I'm aware.
Additional context
Guess that's pretty much it

I've no experience with slack connect.
Did you try it ?

Yep. You create a regular Slack channel, then you connect it to other company Slack channel and everyone you will add to it, can speak to another company.
You can regulate access to the channel (private/public), just like to any other channel.
Does it makes sense?

Ok, i'm not following, do you say you tested it with matterbridge and mattermost and it works? So this issue can be closed?

No, I didn’t yet - wondering if this kind of connection could be done.
I have separate Slack & Mattermost instances running for a different teams would love to unify things inside Mattermost.

Well, that's why I said just try :-)
If it doesn't work, run with --debug

Closed because no further feedback


Merge of Path Patterns

This PR introduces a method for the translator object, which takes a set of NodeMatchClause and EdgeMatchClause and merges them into longer path patterns (PathMatchPattern).
To implement this method, all Match clauses are added into a "graph pattern", which is in class LabeledGraph. This class provides methods for finding the longest (simple undirected) path in the graph, and removing paths from the graph.
This PR also fixes a bug in the visitor pattern, where objects in lists need to be extracted in the reverse order they were put in the stack.

I think all comments have been addressed now @hartig


Better log messages for eureka-clients

Is your feature request related to a problem? Please describe.
When eureka-instance is registering itself during startup, it is logging the registration state with messages containing the eureka.instance.instand_id.  the default instance_id uses the host-name (machine hostname) which usually is the same as default eureka.instance.hostname.  After changing the eureka.instance.hostname without changing the instance_id, the log messages still showing the machine hostname (because instance_id is the same default one). This is confusing for some developers because they think the log message is showing them the old eureka.instance.hostname where in fact the message is not related to instance hostname.
example logs:
DiscoveryClient_MY-CLIENT/<IP_ADDRESS>:my-client: registering service...
DiscoveryClient_MY-CLIENT/<IP_ADDRESS>:my-client - registration status: 204

log format:
DiscoveryClient_<app name>/<host-name>:<app name>: message

Here is a sample issue which is the result of the same confusion
Describe the solution you'd like
Adding extra info about the instance.hostname or changing the log format to make it clear that above value is the instance_id and not the hostname.

i want to work on this @OlgaMaciaszek

Sounds great @MallikharjunaTeja. I have assigned the issue to you. Feel free to submit a PR.

@MallikharjunaTeja please work on the PR against 3.1.x branch instead of main for this feature.

@OlgaMaciaszek i am unable to build and getting this error

@MallikharjunaTeja Please build and add changes for it on 3.1.x branch.

@spencergibb I'm not finding the appropriate file to  make the changes mentioned in the issue. Can you help me on that.

Not sure why we thought this could be done here. These messages are in https://github.com/Netflix/eureka/blob/master/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java#L873


[PartEditor] Use normal string for template literal types

This will revise to use normal string instead of using template literal types.
ONE-vscode-DCO-1.0-Signed-off-by: SaeHie Park<EMAIL_ADDRESS>

related #641
usage is simple case so just using normal string is enough.


This is a better workaround for the missing safety doc in the macro

Unfortunately, can't do the same thing inside the bulwark_plugin macro, it's not a valid location for an inner attribute.

Summary by CodeRabbit

Chores

Improved code quality by adjusting linting rules related to safety documentation.

Since we can't use an inner attribute in our own macro, we still need a fix for bytecodealliance/wit-bindgen#922.


loading objects take too much time when editing via ID

On my brand new computer, I've a really anoying problem :
When I start editing the map, it takes about one to two minutes to load every objects in the bounding box of my map.
Here an example :
On this place: https://www.openstreetmap.org/edit#map=18/46.18490/6.32282
The first "state" is the aerial view without any object to modify.

After about 60 secondes, objects are loaded and I can modify them as usual :

If I pan the map, same thing, objects that are loaded are available for the modification but I have to wait another minute to load the other objects.
Really anoying... and thus nearly impossible to update OSM data.
Test on Firefox Developer 87.0b2 and Firefox 86.0 (64 bits)
Windows 10
Connexion speed, about 10 Mb (background map are loaded without any trouble)
No requests are blocked (developper tools)
No error into the console
No problem on another computer (which is a macbook Pro) with the same Firefox version...
On the same router (same internet connexion)
I think the problem is linked to the computer I'm using but I'm unable to locate the source of the trouble.
If you can help me, I really appreciate.
Savoierider

OK, I've made some other tests, it work perfectly with EDGE.
So the trouble comes from Firefox but I don't know from what...
I've desabled all my extensions but the trouble is still here.
Any idea ?!
Thanks


Watch OS SDK is missing armv7k architecture

Version 9.2 had arm64_32 architecture support added for Watch 4. Unfortunately armv7k is missing which is required for Watch 1 and from what I can tell is needed to compile in XCode 10.

Is @flurrydev able to get a fix for this one?

@ckhsponge Could you please provide the following information as we are unable to reproduce the issue locally.

Which subspec/s are you using?
Which version of watchOS and Xcode are you using?
Is this issue seen on all watch series or a particular watch series (for example series 2 vs series 3)

We are actively looking into identifying the root cause of this issue.

@rajkaur01
In addition, it makes sense to make sure that you have armv7k architecture applied for Watch OS targets

I think what @Peregreen told is correct - you've to verify on Build Settings the availability of both
architectures - that's why it complains about 2 slices. Here you can see more clearly:

What is curious is that: When I call anything related to FlurryWatch it does not compile, otherwise it won't show the error that @ckhsponge showed us, thus compiling normally.
I've tried to run on a Watch Simulator, and apparently, everything is working fine.

OK, FINAL GUESS ABOUT ALL OF THIS:
I've modified a bunch of things in the Build Settings, because I'm heavily inclined to think that it's a simple configuration. What is interesting is this:
I had my Library Search paths replicated multiple times, and Xcode was getting confused.
I've changed this

To this

I've resetted all my other changes and I can confirm this is what solved my problem.

We will be pushing out 9.2.1 soon to fix this issue.

Confirmed fixed in 9.2.3. Thanks!


[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative/operations-wg-leads
/assign knative/operations-wg-leads
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/caching 06b7468...5c740fb:
  > 5c740fb upgrade to latest dependencies (# 499)
bumping knative.dev/serving b4b3ad9...05af7d4:
  > 05af7d4 Update net-contour nightly (# 11643)
  > 782a827 Bump a few assorted deps (# 11662)
  > 92df69f upgrade to latest dependencies (# 11660)

/lgtm
/approve


Test against MySQL 8.4 (the new LTS) in general matrix

MySQL have released MySQL 8.4 which is a new LTS release
We recently made the decision to support LTS versions of MySQL so we should update the matrix to test against this version, and make any code changes that are necessary for CI to be green.
We'll keep testing MySQL 8.0 alongside 8.4 LTS.
Acceptance criteria

CMS 5 MySQL 8.0, 8.4, 5.7 in CI + mariadb - php 8.1, 8.2, 8.3
CMS 6 MySQL 8.0, 8.4 in CI + mariadb - php 8.3 for all, though would introduce new php versions as they're released
CMS 4 branches test whatever they currently test (i.e. no change for CMS 4 CI runs)
recipe kitchen sink ci should test only against mysql 8.4
CI is green for all supported modules.

Test runs

CMS 5 https://github.com/emteknetnz/silverstripe-campaign-admin/actions/runs/11883621325
CMS 6 https://github.com/emteknetnz/silverstripe-campaign-admin/actions/runs/11883622245
.env file is echoed in Final Preparation step so we can validate the port 3384 is used for MySQL 8.4 jobs

PRs

https://github.com/silverstripe/gha-ci/pull/159
https://github.com/silverstripe/gha-generate-matrix/pull/112

PRs merged. Reassigned to steve to check it is correct for all supported CMS versions

This are working as expected
CMS 5 - https://github.com/silverstripe/silverstripe-campaign-admin/actions/runs/11904968239
CMS 6 - https://github.com/silverstripe/silverstripe-campaign-admin/actions/runs/11904969508


Makefile, gitignore and MAINTAINERS improvements

I have improved the Makefile to result in reproducable builds, I have replaced the build date with the commit short SHA. I have also updated the list of maintainers and the gitignore to ignore coverage   output.

LGTM - I like the build from commit hash instead of the build on date :)

LGTM


OSC-Platform-031: Secret management for proprietary data ingestion

We have two issues currently with secret management for AWS S3 buckets:

The first one is for ingestion purpose, we have some public sources which we can all make accessible through one set of secrets on redhat-osc-physical-landing-647521352890. But there are other data sources (LSEG, Urgentem, etc...) where we don't want just any pipeline that does ingestion to have access to the data (i.e we should have one set of secrets per data source, as they will be ingested in independent pipelines that sit in different github repos).
The second issue is managing secrets, sending secrets for people to update in their credentials.env is not great - ideally we need a secret store where the require secret can be retrieved at pipeline runtime based on credentials of the pipeline user (or process user, when we automate it in prod).

We want to go preferably towards a secret management solution that works with a secretless broker to make the process seamless for developers, example with Conjur secret store:
https://github.com/cyberark/secretless-broker

See can this be part of Operate first

ODH team to provide guidance on secret mgmt (Landon Smith) - Heather to ask on support channel in slack

@HeatherAck to schedule week of 14-Nov

meeting planned for 8-Dec; will mark as blocked until that date

Prefer to use airflow as scheduler - handle more complex data pipelines - can we inject secrets into airflow pipeline so don't need secrets manager - https://github.com/cyberark/secretless-broker ; integrate with corp vault.  need to define full set of components and integration between them.

@redmikhail still investigating
re: 3:  customize plugin; certificates (need to be updated - expiring on 1-Jan, issue with cert mgr - manual)

@bryonbaker will help with HashiCorp.  @redmikhail to reply to email and still validating airflow's use. @HeatherAck to ensure ticket created in LF

I have started PoCing HashiCorp Vault and various means to inject and access secrets, but would like to get a broader view of the team's needs to make sure I come up with the right solution.
Who is the best source of requirements?

Here is a list of secrets currently required for data pipeline ingestion:

[ ] S3 bucket credentials for data landing zone (accessible through SFTP) as well as data buckets for Parquet / Iceberg
[ ] Pachyderm credentials
[ ] Trino credentials
[ ] DBT profiles (YAML which includes Trino JWT token)

Ideally the secrets should be injected to Airflow in runtime, including the generation of a JWT token for Trino access which is used for both data ingestion and read (probably the most complex requirements).
Also we need to check if we can automate the execution of OpenMetadata at end of the data pipeline which may require secrets of the OpenMetada admin acount (automation not tested yet, we need to open a dedicated issue for this).

Is there any reason we could not use Hashicorp vault with service accounts to give all pods in a namespace access to a set of secrets?
We can do this either via injection or calling the vault.
I know airflow lets you assign attributes to the scheduled pods so that would enable injection.


chore(curriculum): add quotes to strings in OOP shopping cart

Checklist:

[ x ] I have read and followed the contribution guidelines.
[ x ] I have read and followed the how to open a pull request guide.
[ x ] My pull request targets the main branch of freeCodeCamp.
[ x ] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

This PR relates to #51036
I have looked through all of the stages in Learn Basic OOP by Building a Shopping Cart (part of JavaScript Algorithms and Data Structures (Beta)) and identified the following stages for updating: 6, 7, 12, 13, 33, 39, 40 This PR makes changes to all of those stages except for Stage 7 (more on that below).
The changes I've made to stages 6, 12, and 13 seem to me to be clearly in line with the original issue.
The changes I've made to stages 33, 39, 40 I think make sense, because it helps to add some clarity for campers. However, these may not line up exactly with the original intention of the issue. So, I'm happy to drop these changes if needed.
Finally, for Stage 7, there is a table with a number of items which could be wrapped in quotation marks. This would be consistent with Stage 6. However, I think that if campers have completed Stage 6 successfully, it should be sufficiently clear that they need to do more of the same. I have not made any changes to Stage 7 yet, but am happy to update Stage 7 as well, if that's requested.

Checklist:

[ x ] I have read and followed the contribution guidelines.
[ x ] I have read and followed the how to open a pull request guide.
[ x ] My pull request targets the main branch of freeCodeCamp.
[ x ] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX
This PR relates to #51036
I have looked through all of the stages in Learn Basic OOP by Building a Shopping Cart (part of JavaScript Algorithms and Data Structures (Beta)) and identified the following stages for updating: 6, 7, 12, 13, 33, 39, 40 This PR makes changes to all of those stages except for Stage 7 (more on that below).
The changes I've made to stages 6, 12, and 13 seem to me to be clearly in line with the original issue.
The changes I've made to stages 33, 39, 40 I think make sense, because it helps to add some clarity for campers. However, these may not line up exactly with the original intention of the issue. So, I'm happy to drop these changes if needed.
Finally, for Stage 7, there is a table with a number of items which could be wrapped in quotation marks. This would be consistent with Stage 6. However, I think that if campers have completed Stage 6 successfully, it should be sufficiently clear that they need to do more of the same. I have not made any changes to Stage 7 yet, but am happy to update Stage 7 as well, if that's requested.

Try to make sure the checklists are checked. Each should be [x] and not [ x ].


Update CAShapeLayerLineCap enum to address complier errors.

@zorn  can you Please merge 4.2 support PR


Make sure to pass an absolute directory for JENKINS_HOME

Not doing this results in an issue when loading Jenkins in https://github.com/jenkinsci/jenkins/blob/9f48a332e5ff542a32d95caeb02b583e5f043829/core/src/main/java/jenkins/model/Jenkins.java#L3204

Reproduction case:

current head of master
using 2.249.1
runHome points to a relative directory


Replace "contains: " with "relationship: contains"

Seems like the MOD:00234 still has a contains: ... term instead of using relationship: contains ..., such as MOD:01148.
See issue fastobo/fastobo-py#100
Can I just edit the obo file and open a PR, or is there a slightly more complex dev workflow?

Go ahead and open a PR!


SmalMolecule (PUBCHEM.COMPOUND:241) - related_to - DiseaseOrPhenotypicFeature: No results from CAM-KP

This issue has been created to address https://github.com/NCATSTranslator/testing/issues/99.

Bulk closing testing issues; will open new as problems come up going forward.


fix iOS touch: added scale factor

jmeAppDelegate.m: without the scale factor (which is device specific) you'll hit the wrong location
jmeAppDelegate.m: the cast (long) is required for the simulator
logging.properties: added comments how to turn on logging, this can be really helpful

I have no idea why the build has failed.

The CI failures are my fault: https://travis-ci.org/jMonkeyEngine/sdk/jobs/656986786#L1263
Actually in order to use 11.2 I had to add a command line which updates Netbeans to the latest version (here in the meantime 11.3) and thus the harness override seems faulty.
I could fix that in master, if you have a strong git-fu, you can rebase your PRs on that and force push so that CI runs again, but if not it's okay as well, because I guess none of the PRs touch files affecting the build anyway.

Thanks and good to know it's not my fault, but I haven't seen other checkins...

The proper cast would probably be jlong, also see here:
https://github.com/mapbox/jni.hpp/blob/385dede669c843144b9ad68bbb7af3989d76104e/test/openjdk/jni.h#L42-L43
The size of a long depends on the architecture. I think only on linux 32 bit, long is 32bit, and everywhere else long = long long = 64bits, see:
https://github.com/mapbox/jni.hpp/blob/master/test/openjdk/jni_md.h#L34-L38
Now that way, your code would actually "break" on 32bit architectures, as you only pass the lower half of the timestamp.
Casting might've become necessary with an Apple API Change, see: https://developer.apple.com/documentation/uikit/uitouch/1618144-timestamp
This however is a Double, see: https://developer.apple.com/documentation/foundation/timeinterval
I guess when you pass a double to a java method expecting a long, the method call probably failed.
What was the old behavior? Was an exception thrown? Or could we need more error checking here?

Without the cast, there was no exception, just the wrong touch location was submitted, but only in the x86_64 simulator. On a iOS 64 bit device (my iPhone 6) the correct touch location was submitted, but a wrong timestamp, which didn't harm. I don't use it.
I did these tests now:
Test case: Touch at down left

 On x86_64 simulator
-----------------------
 Test 1: w/o cast
 iOS:  timestamp=152632.369324   x=9.000000  y=1331.000000
 Java: timestamp=140735507257888 x=152632.38 y=9.0

 Test 2: w/ cast to long
 iOS:  timestamp=152947.991889 x=9.000000 y=1333.000000
 Java: timestamp=152947        x=9.0      y=1333.0

 Test 3: w/ cast to jlong
 iOS:  timestamp=153071.750553 x=7.000000 y=1327.000000
 Java: timestamp=153071        x=7.0      y=1327.0

 On iPhone 6
--------------
 Test 1: w/o cast
 iOS:  timestamp=725230.854457       x=34.000000 y=1301.000000
 Java: timestamp=4694476897696575817 x=34.0      y=1301.0

 Test 2: w/ cast to long
 iOS:  timestamp=725354.845563 x=50.000000 y=1286.000000
 Java: timestamp=725354        x=50.0      y=1286.0

 Test 3: w/ cast to jlong
 iOS:  timestamp=725432.918414 x=37.000000 y=1312.000000
 Java: timestamp=725432        x=37.0      y=1312.0

As you see, in the simulator the iOS timestamp messes the Java timestamp and the x value. And y contains the x value.
A cast to jlong would be probably the best solution. Tell me, if you should commit it.

Well, I guess we have a bad corner case there, where without the cast, the timestamp is seen as the X parameter. I wonder what the timestamp is there, probably some pointer.
I guess Apple doesn't allow 32bit anymore? Technically speaking jlong isn't required there anymore, but please include it for the sake of professionality/completeness.
Otherwise I'd be curious to see the output of a 32bit simulator, because there, timestamp probably is faulty when using a long cast.
And thanks for taking the time! :)

You're welcome. I committed the cast to jlong.
Indeed with latest Xcode you cannot submit 32 bit apps. When I submitted my 32 bit apps some years ago, there was no difference between device or simulator, but I haven't checked the timestamp.

I finally found some link: https://software.intel.com/en-us/articles/size-of-long-integer-type-on-different-architecture-and-os
Unfortunately it does not talk about ARM, but it's funny to see how long seems to be a completely random size :D
Thanks again!

Thanks! And thanks for providing all the links. Now I know better...


Error when trying deploy FanBoost Subscription

What is the problem?
When running prisma deploy after updating the schema to have a FanBoost type it fails.
Error message:
Errors:

  Driver
    × You are creating a required field but there are already nodes present that would violate that constraint.

Deployment canceled. Please fix the above errors to continue deploying.
Read more about deployment errors here: https://bit.ly/prisma-force-flag

What does the schema look like?
type Driver {
    id: ID! @unique
    createdAt: DateTime!
    name: String!
    team: String!
    points: Int!
    pictureURL: String!
    country: String!
    podiums: Int!
    championshipWins:Int!
    postedBy: User
    boosts: [FanBoost!]!
}

type User {
    id: ID! @unique
    name:String!
    email: String! @unique
    password: String!
    drivers: [Driver!]!
    boosts: [FanBoost!]!
}

type FanBoost{
    id: ID! @unique
    driver: Driver!
    user: User!
}

I managed to solve this by redeploying the service.


Appstudio update test-component-pac-tdqh

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-tdqh-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
6 seconds
init

✅ Succeeded
19 seconds
clone-repository

✅ Succeeded
33 seconds
build-container

✅ Succeeded
12 seconds
inspect-image

✅ Succeeded
11 seconds
deprecated-base-image-check

✅ Succeeded
34 seconds
clamav-scan

✅ Succeeded
9 seconds
clair-scan

✅ Succeeded
9 seconds
sbom-json-check

✅ Succeeded
15 seconds
optional-label-check

✅ Succeeded
15 seconds
label-check

✅ Succeeded
6 seconds
show-sbom

✅ Succeeded
7 seconds
show-summary


Broken link to Scraper Comments ?

Hi
I am receiving - 502 Bad Gateway.

Yes, the server got corrupted and I had to deactivate the scraper. I will set up a replacement server when I have the time.

New server is up and running.

Apologies for bothering you again

, however it seems that the web link is still broken.  I am receiving that Safari cannot connect to the server. This website is a great deal of help for my research. Thank you for your support and efforts!

Thank you. Now its working!
Best


Model Fine-Tuning Results Do Not Match the Author's Results

Dear Author,
I have fine-tuned the ABR model according to the instructions using the provided hyperparameters. However, the results I obtained are noticeably different from the results reported in the paper. I have attached two figures to illustrate the problem:
Figure 1: Shows the loss curve and the reward curve during my fine-tuning process.
Figure 2: Compares the baseline, my fine-tuned large model (purple curve), and your fine-tuned large model (green curve).
As observed, my fine-tuned model performs significantly worse than the model provided by you, despite using the same hyperparameters. Could you please advise if there are specific hyperparameters I should further adjust, or if there are any additional configurations that I might have missed?
Thank you very much for your assistance!
Best regards,
Reamon

Hi, Reamon.
Thanks for using our codes!
We met a similar problem when we retrained a new model with the same hyperparameters used for the checkpoint on a different server. So we suspect that this problem could caused by the difference of hardware settings (e.g., cuda version, gpu specifications, etc.).
Here are some suggestions that may improve your results.

Try different settings for the hyperparameters such as "--w", "--target-return-scale", "--rank".
Try different random seeds for training. This may sound weird but it can produce magic sometime.

Plus, there are some additional suggestions which I think will very likely improve your results but require additional modifications on the codes. You can decide whether to take them or not.

Increase the size of experience pool.
The model may face the problem of exposure bias. So you may try scheduled sampling to improve the training process. See this blog for more details: https://www.activeloop.ai/resources/glossary/scheduled-sampling/

Thank you!

I have tried adjusting several parameter values, and the test results are as follows:
Adjustment: --target-return-scale does not change significantly
Adjustment: --rank performance will decrease regardless of whether it is increased or decreased
Adjustment: --w, performance will decrease after increasing it, and performance will be close to the author's model after decreasing it and increasing the epoch
Finally, the best performance is achieved when w is adjusted to 10. If you encounter similar problems, you can also adjust and test it this way

Hi, did you fine-tune the model on the VP task? I followed the instructions for fine-tuning, but my results don’t seem to match the ones reported in the paper (e.g., the results of my MAE > 50).

Hi, did you fine-tune the model on the VP task? I followed the instructions for fine-tuning, but my results don’t seem to match the ones reported in the paper (e.g., the results of my MAE > 50).

Sry, I haven't done any further fine tuning or testing on the VP missions.

Thanks for your help! Could you share the hyperparameters you used for fine-tuning on the ABR task after your experiments? Besides setting w to 10, are there any other adjustments you would recommend?

Thanks for your help! Could you share the hyperparameters you used for fine-tuning on the ABR task after your experiments? Besides setting w to 10, are there any other adjustments you would recommend?

Just adjusting the parameter w, the other parameters either have insignificant effects or worse results. Of course, it doesn't matter if you increase the epoch appropriately.


fix(doc strings): Fix bug related documentation/clean up of default configurations #2331

Bug fix for the last comments here #2331 (review) which were not fixed before master.
Checklist:

[x] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[x] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[ ] I have written unit and/or e2e tests for my change. PRs without these are unlike to be merged.
[ ] Optional. I've added My organization is added to the README.
[x] I've signed the CLA and required builds are green.

FYI simster7  PR with your requested changes from https://github.com/argoproj/argo/pull/2331

LGTM, thanks @NikeNano! Can I encourage you to look at our help wanted issues and keep contributing? 😄

Yeah, I will continue to contribute :)

I think we should have a page under /docs telling people how to use this and provide some examples.

I think we should have a page under /docs telling people how to use this and provide some examples.
Agreed... @NikeNano would you own this?

I think we should have a page under /docs telling people how to use this and provide some examples.

Agreed... @NikeNano would you own this?

Sure, I will work on this!

Great! Docs will encourage people to try the feature out. It might be worth while adding stability icon (e.g. alpha) and version (v2.7), example:
https://github.com/argoproj/argo/blob/master/docs/workflow-archive.md


go main: remove unused main file

This template repo actually does not need any
go files in it. These files would be expected
to be immediately deleted upon templating, so
just remove them now.

It turns out CI will require us to have some package! Going to change this to encourage libraries then.


Unable to deserialize Response type from Value

I was trying to deserialize a json string into a Response, however it seems I can only deserialize the object from string and bytes, but not from a Value:
use json_rpc_types::Response;
use serde_json::Value;
fn main() {
    let json_str = r#"{"id":1,"jsonrpc":"2.0","result":null}"#;
    let value: Value = serde_json::from_str(json_str).unwrap();
    println!("{:?}", value);
    let response: Response<(), ()> = serde_json::from_str(json_str).unwrap();
    println!("{:?}", response);
    let response2: Response<(), ()> = serde_json::from_slice(json_str.as_bytes()).unwrap();
    println!("{:?}", response2);
    let response3: Response<(), ()> = serde_json::from_value(value).unwrap();
    println!("{:?}", response3);
}

Object({"id": Number(1), "jsonrpc": String("2.0"), "result": Null})
Response { jsonrpc: V2, payload: Ok(()), id: Some(Num(1)) }
Response { jsonrpc: V2, payload: Ok(()), id: Some(Num(1)) }
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("invalid type: string \"id\", expected a borrowed string", line: 0, column: 0)', src/main.rs:28:71

I was trying to inspect the json value to decide if the incoming json is a request or a response, then tried directly to deserialize from the value. Easy to work around though.
Looks like another subtlety of serde, but unfortunately I don't know how to fix that.

Let me check it out, I'll add test and let you know

@HarukaMa I actually think it is not problem of id but rather serde-json being retarded when you attempt to deserialize it as map.
I'll need to check their code

@DoumanAsh Yeah it's not actually id. I've tried to remove id then it complained "invalid type: string "jsonrpc"" instead.

The problem is keys of map.
I try to parse it as string, cuz in json it is always string, but serde-json's Map is using weird key

nevermind last comment. key is String and serde is incapable to deserialize owned string as borrowed

@HarukaMa  version 1.0.3 is released


Don't require devtoolset-11-toolchain on EL 8

Fix the conditional BuildRequires so that devtoolset-11-toolchain is only brought in on EL 7, where it is used.

Does this work on RHEL8 as well?  I was thinking that cmake3 shouldn't have been pulled in on 8.

I'm not sure but according to my test build, devtoolset-11-toolchain doesn't exist on EL8.

Closing: superseded by #2


Better classifying

Use more keywords for platform specific commits, exclude those with Showcase. Probably closes #1 & #2.

thank you! I need to look into this soon!

@knowbody @radko93 maybe we should make a call (btw we are all Polish) to think how can we make it better? I am also interested in getting it more release-non-draft ready as the process is somehow slow!

@grabbou don't mind having a call, but would like to be transparent with all that. I created #4, let's continue the discussion there. Let me know if I've missed anything or if there are better solutions


Automatic detection not working

Even when trying to run with administrator mode, none of the images/notes show up. When I press reload, I see the notes for a second, but nothing shows up ingame.
Not sure if it matters, but I'm using the Korean client:
C:\Daum Games\Path of Exile\PathOfExile_x64_KG.exe
which gets launched directly by starting it on https://poe.game.daum.net/

Okaay, problem identified - I've been using Vulkan as a renderer. Once I changed it to DirectX11, the display was working again.

https://github.com/PoE-TradeMacro/POE-TradeMacro/issues/1149
Seems like a bug native to AHK w/ Vulkan

Yeah, I'm keeping an eye on this. If a fix becomes available on my end I'll update it right away. But I think we have to wait for GGG to update their Vulkan renderer.

I have added Vulkan Support. Please download the newest version and make sure PoE is in "Windowed" mode not "Windowed Fullscreen". My tool will put it back in Fullscreen but with the Overlay still visible.