[e2e]: go release main config-ldflags-assets slsa3

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.27
Run: https://github.com/slsa-framework/example-package/actions/runs/2594380811
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.27
Date: Fri Jul  1 04:50:03 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.28
Run: https://github.com/slsa-framework/example-package/actions/runs/2600315600
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.28
Date: Sat Jul  2 04:29:45 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.29
Run: https://github.com/slsa-framework/example-package/actions/runs/2603823255
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.29
Date: Sun Jul  3 04:23:14 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.30
Run: https://github.com/slsa-framework/example-package/actions/runs/2607710338
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.30
Date: Mon Jul  4 04:41:03 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.31
Run: https://github.com/slsa-framework/example-package/actions/runs/2613768373
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.31
Date: Tue Jul  5 04:29:43 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.32
Run: https://github.com/slsa-framework/example-package/actions/runs/2620440808
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.32
Date: Wed Jul  6 04:41:23 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.33
Run: https://github.com/slsa-framework/example-package/actions/runs/2627195356
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.33
Date: Thu Jul  7 04:40:20 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.34
Run: https://github.com/slsa-framework/example-package/actions/runs/2633890384
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.34
Date: Fri Jul  8 04:36:16 UTC 2022
Tests are passing now. Closing this issue.


v1.12 backports 2022-08-23

~#20853 -- ingress: Support clustermesh service affinity (@sayboras)~
I tried resolving the conflicts, but it seems like there was a change that changed []backends to []*backends, and that wasn't backported. @sayboras I skipped it.

#20865 -- k8s/watchers: fix panic in CiliumEndpoint labels update (@jaffcheng)

#20911 -- pkg/endpoint: set namedPortsGetter interface on ParseEndpoint (@aanm)

#20313 -- Add ArgoCD issues notes in the official documentation (@Kikiodazie)

#20623 -- docs: second set of video contents added (@Kikiodazie)

#20895 -- don't merge stderr into iptable stdout (@liuyuan10)
Resolved minor conflict around imports.

#20973 -- docs: Add available options for Ingress Controller annotations (@NikhilSharmaWe)

~#20860 -- ingress: Propagate required annotations from Ingress to LB Service (@NikhilSharmaWe)~
I was able to resolve other conflicts, except the ones in cmd/root.go, looks like that file doesn't exist. I wasn't able to find the other variables from the file in v1.12 source code. @aanm/ @sayboras I skipped the backport for this PR.

#21015 -- gh/workflows: stop using ubuntu-18.04 runner (@julianwiedmann)

#20977 -- metrics: fix ts_events API timestamp and scope label cardinality (@tommyp1ckles)

Once this PR is merged, you can update the PR labels via:
$ for pr in 20865 20911 20313 20623 20895 20973 21015 20977; do contrib/backporting/set-labels.py $pr done 1.12; done

/test-backport-1.12

https://github.com/cilium/cilium/pull/20853 -- ingress: Support clustermesh service affinity

I will take care of this manually, thanks 💯

https://github.com/cilium/cilium/pull/20860 -- ingress: Propagate required annotations from Ingress to LB Service

Will take another look for this 💯

4.9s hit - https://github.com/cilium/cilium/issues/20288.
gke - https://github.com/cilium/cilium/issues/21055
Documentation failure is legit -
Please fix the following spelling mistakes:
* Documentation/further_reading.rst:19: (SRv)  Cloud Native Telco Day, Europe 2022 - Leveraging Cilium and SRv6 for Telco Networking:

If the words are not misspelled, run:
Documentation/update-spelling_wordlist.sh SRv

.

The last push only updated the documentation commit -
Documentation Updates / Validate & Build HTML (pull_request) Successful in 1m


Metro Fonts showing like square

I have added Metro 4 to our application, but I have this issue, like you see in the image, the metro fonts are showed like you see, the font just shows the borders like a square shape.
Can you help me to fis this issue?
Thank you very much for your help.
Have a good day..!
This is my console browser, I'm using chrome browser, using Explorer the metro fonts not who nothing:

This is what and how I have the libraries includes in my html:

This is how is showen the fonts in my browser:

You do not have an icon font loaded, check the paths

The browser should add a font that supports a general-purpose PC.
Such as    Microsoft jas black
The font set by the author is not recognized in my country.
He can't support more languages.

@CharlyCUU And this is Metro 3, not Metro 4

The libraries that I have in my project are just Metro 4, I have nothing of Metro 3

@CharlyCUU on your image I see Metro 3 files

@CharlyCUU Please read Metro 4 docs https://metroui.org.ua/intro.html

Ok, then here is my code modified as metro 4 docs:
This is my CSS libraries in code:

This is my JS libraries in code, this libraries are of Meta 4:

I ran again my project and still shown like this the metro fonts:

The console shows it:

Font with icons not loaded. Check file metro.woff in path ~/MetroUI/mif/metro.woff

Ok, this what I Have in mif folder:

Check your server configuration. I can not know why your server does not return a font file.

Ok Olton, thank you, let me see the server configuration

@CharlyCUU try using the library from CDN

Issue resolved:
Thank you all, I had to add this code in web.config:
<system.webServer>

</system.webServer>
Please, go to this link for more information about it.
http://codingstill.com/2013/01/set-mime-types-for-web-fonts-in-iis/

I think the lines of code added were not showen correctly, here is an image:

Charly, if you're using MVC you can also ignore that extension in routeConfig


feat: add EmailPasswordSignInForm component

Changes proposed
Add EmailPasswordSignInForm component
Add tests for EmailPasswordSignInForm component
Add docs for EmailPasswordSignInForm component

@wildergd check this PR https://github.com/nexxtway/rainbow-modules/pull/31


evalFlakeArgs: fix userSpecialArgs defaults

Just tried to drop the line and I realized the type for the attribute was wrong.

You guys should be able to push directly to core for simple things like this. FYI


Something wrong with the demo?

I can reproduce this in Firefox as well as Chrome...gif is from Firefox. Or maybe I don't understand the demo? Thanks!

Hello @leesmith,
The rendered results in the list are coming out of different keys as shown in the API below, so that they are mixed between ["food", "cities", "animals"].
The rendered selection is just single key which is food as in the demo which was Garam Masala Powder that comes from an object with animal value of Starling, red-shouldered glossy.
So if you checked the logged selection in the console.log you should find the original selected value in that object.
You can change the rendered selection as you may like based on your needs, it's totally up to you.
Hope I answered your question.
new autoComplete({
    data: {                              // Data src [Array, Function, Async] | (REQUIRED)
        src: data,
        key: ["food", "cities", "animals"]
    },
    sort: (a, b) => {                    // Sort rendered results ascendingly | (Optional)
        if (a.match < b.match) return -1;
        if (a.match > b.match) return 1;
        return 0;
    },
    placeHolder: "Food & Drinks...",     // Place Holder text                 | (Optional)
    selector: "#autoComplete",           // Input field selector              | (Optional)
    threshold: 0,                        // Min. Chars length to start Engine | (Optional)
    searchEngine: "strict",              // Search Engine type/mode           | (Optional)
    resultsList: {                       // Rendered results list object      | (Optional)
        container: source => {
            resultsListID = "food_List";
            return resultsListID;
        },
        destination: document.querySelector("#autoComplete"),
        position: "afterend"
    },
    resultItem: (data, source) => {        // Rendered result item            | (Optional)
        return `${data.match}`;
    },
    highlight: true,                       // Highlight matching results      | (Optional)
    maxResults: 5,                         // Max. number of rendered results | (Optional)
    onSelection: feedback => {             // Action script onSelection event | (Optional)
        console.log(feedback);
    }
});

Perfect. Thanks!

Demo doesn't work for me on any browser.

Hello @gilbertoalbino,
Which demo are you referring to?

@TarekRaafat  the one provided in the readme.
https://tarekraafat.github.io/autoComplete.js/demo/

@gilbertoalbino I've been checking it regularly since I released the new version and I just did now and it's working for me.
Could you please check the console logs and let me know if you're getting any kind of errors or not, and I would like to know what browser you're using and what version as well.

This confused me as well fwiw (thought the library buggy). It might be more intuitive to show the item that was selected.

Hello @ankane,
I'm glad you found this issue! :sweat_smile:
You're right. I agree with you. I'll change that behavior.
Cheers! :thumbsup:


QR Handler

Hi @Auties00, I finally running project successfully.
I try to make a Spring Boot Rest API and I need to extends your QrHandler.
What I need is to return the QR Image byte array, but you make QrHandler as a Consumer, then I can't return QR code in my API.
There is a way to do this or if you can fix/add something to get the possibility to extends logic?
Other think is the createMatrix method, that is be usefully if you make it protected or public.
Thanks in advance

Hi @Auties00, I finally running project successfully. I try to make a Spring Boot Rest API and I need to extends your QrHandler. What I need is to return the QR Image byte array, but you make QrHandler as a Consumer, then I can't return QR code in my API.
There is a way to do this or if you can fix/add something to get the possibility to extends logic? Other think is the createMatrix method, that is be usefully if you make it protected or public.
Thanks in advance

the reason why it's a consumer is that there's nothing that you could possibly return because there is no concrete caller. Tell me what you want to achieve precisely and I can probably help you better

What I want to make is a Spring Boot API, with "connect" endpoint that receive an id (a store).
If id is passed or is not present into serialized folder, so return the QR Code image to permit the client to make photo and authenticate

What I want to make is a Spring Boot API, with "connect" endpoint that receive an id (a store). If id is passed or is not present into serialized folder, so return the QR Code image to permit the client to make photo and authenticate

The qr is generated after the connect method is invoked, which returns a completable future. You can use a similar construct to achieve what you are talking about:
var future = new Completable future<String>();
Whatsapp.newConnection(Options.newOptions().id(idParamterOrWhatever).qrHandler(future::complete)).connect().get();
return future.get(); // if your API is synchronous, if reactive map it to a Uni

I'm from mobile so this is just a general idea

Hi, I'm try to use the new version (3.1.2) but can't connect.
My code freeze and no QR code shown in console.
I'm using the README code:
`
Whatsapp whatsapp = Whatsapp.lastConnection();
whatsapp.connect().join();
Store store = whatsapp.store();
System.out.println(store.id());
`


boringcrypto: create the dev.boringcrypto.go1.11 branch

Can someone create the go1.11 boringcrypto branch?  Not sure how to to it, or I'd put up a PR.
CC @FiloSottile

Created dev.boringcrypto.go1.11 at 7eb1677c01c3decc510270d532ed69d0bf42bffa, the last commit on dev.boringcrypto before it got merged with master after release-branch.go1.11 branched.
https://go-review.googlesource.com/c/go/+/137135 brings it up to date with go1.11.
https://go-review.googlesource.com/c/go/+/137136 cherry-picks the only change that happened on dev.boringcrypto since.


Enhancements?

[ ] more readable column headers
[ ] loading status
[ ] keep filters always in view

DataTable reference:
https://dash.plotly.com/datatable/reference


Security vulnerability

We found a serious vulnerability in the source code of this project. We've tried contacting you at info, root and postmaster @librivox.org with no success.
Can you share an email we can use to discuss this?

This is indeed a massive problem, and will take time and effort to fix (not just sticking a $this->db->escape in a couple of places, unfortunately). Grepping the code for $this->db->query($sql) (as opposed to $this->db->query($sql,  which is the parametrized variant, and should be safe, yields:
artom@librivox-dev:/librivox/www/librivox.org/catalog$ grep -l -F '$this->db->query($sql)' -R application/
application/core/Catalog_controller.php
application/libraries/Librivox_search.php
application/libraries/Librivox_simple_search.php
application/models/Project_model.php
application/models/Project_reader_model.php
application/models/User_model.php
application/models/Author_model.php
application/models/Section_model.php
application/models/Form_generators_authors_model.php
application/models/Stats_model.php
application/controllers/cron/Project_status_stats.php
application/controllers/cron/Search_table_update.php

Some of these might be safe because they this->db->escape their inputs before concatenating them into the $slq query, but each one will need investigation.
I think what I'll do is use this comment (and edit it as things progress) to track the status of each file, and link patches where applicable.

https://github.com/LibriVox/librivox-catalog/pull/145 is a start at this

I would suggest keeping the pull requests hidden until the fix is released (I think github has a feature for this): this vulnerability can be used to drop your database in production right now

Fair point, though given the code has been public for years, I wonder how real the practical risk actually is. I couldn't find a way to make pull requests private, so what I think I'll do is just merge them bit by bit to avoid have them open for too long.


Ensure that the default minikube IP range configuration works for multi-node clusters

In the eCHO livestream with Duffie today, we deployed multiple nodes in a minikube setup and this caused both the underlying VirtualBox network to allocate 10.0.x.y networks as well as having the pod IPAM use the same IP ranges.
I'm not sure if we should improve this in the docs side (https://docs.cilium.io/en/latest/gettingstarted/k8s-install-default/) or directly in the CLI by somehow detecting the underlying network ranges being used, but we should help users to avoid hitting this kind of issue when first trying out Cilium.

The problem I ran into specifically was that I had created a three node minikube cluster.
Minikube with virtualbox  uses <IP_ADDRESS>/24 for the nat network cidr. In virtualbox each node will have a default route for 10.0.2/24 to dev eth0 so that connectivity to the outside world will be natted.  Virtualbox also configured dns leveraging <IP_ADDRESS> as the dns resolver ip address.
When I create 3 nodes each node is allocated a subnet by Cilium.
node 1 <IP_ADDRESS>/24
node 2 <IP_ADDRESS>/24
node 3 <IP_ADDRESS>/24
And each node gets a route sending each of those subnets up to the cilium-host interface.
This resulted in sending my dns traffic over the cilium overlay to an address that did not exist.
We worked around this in the session by creating a more specific route for the dns ip.
ip route add <IP_ADDRESS>/32 dev eth0 on each node.
This was most of the solution. Still needed to reconfigure coredns to use another resolver to make it all work.
In the docs there should be an easy way to configure "cluster-pool-ipv4-cidr" either as a --config option or as a separate command line option.

I run minikube on kvm in no-CNI mode as my main dev setup: minikube start --driver kvm2 --nodes 2 --network-plugin=cni --cni=false. I don't see this issue.
Perhaps we should recommend kvm as the go-to driver instead? I guess macOS users might need to.
I'll triage this, but if there's nothing actionable here, we should consider closing.


Repacked scripts makes game crash:

After the recent update on C,System, I was able to extract this old TinkerBell game's script but even with the mere unmodified repacked scripts + repacking with CSystemArc tool, makes the game crash. And this is probably because of script repack since normal unpack/pack works on this game. Script is also extracted fine and so I am not sure what is the cause here. But would appretaite the help, thanks! Adding the Arc.dat files for convenience and the game is いじケア～ノエルくんのご奉仕日記～
Arcfiles.zip

Also about Csystem, my issue mentioned Tsumama' script is encrypted, but I recognized they're just unicode string


Status for support for expert storage configuration

Hi,
Is there a support for expert storage configuration under the storage tab?
If support is there can you please point me to the script and if not is it in a plan to automate it.
Below are screenshots I have attached step by step for expert storage configuration.

Regards,
Anmol

@shailymehta,
Can you please check this.

@GoelJatin @Anu-26
Will check and get back.

Hi @Anu-26
The share mount path folder functionality is added in storage.py:
https://github.com/CommvaultEngg/cvpysdk/blob/master/cvpysdk/storage.py#L882

Hi Shaily,
Sorry for late response .
Is it possible to add code changes  support to CV11 SP11 branch because we are using code of  CV11 SP11 branch and also all our commvault setups are on SP11 .

Please open Commvault support ticket.


[FEATURE] Enable Generic HTTP Actions in Java Client

Description
Enable Generic HTTP Actions in Java Client.
USER_GUIDE.md update is on me once we settle up on the APIs.
Issues Resolved
Closes https://github.com/opensearch-project/opensearch-java/issues/377
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Let's talk about how it's going to be used? I think we don't want a generic client. Is there a world where I can mix and match?

Yes and no (if by mix and match you mean reuse existing models), sadly it turned out to be rather difficult, for simple cases it works pretty well (snippets from the tests):
GenericResponse response = javaClient().generic() .execute(
        new GenericRequest(
            "PUT",
            "/" + index + "/_doc/" + id,
            Collections.emptyList(),
            GenericBodies.json(document, javaClient()) // <-- document is arbitrary Java class here
        )
    )

final CreateIndexResponse r = GenericBodies.json(response.getBody().get(), CreateIndexResponse._DESERIALIZER, javaClient());
assertThat(r.acknowledged(), equalTo(true));

But others are very difficult to implement at the moment.

I think the main thing we need is the intermediate sample/doc/test for sending and receiving structured JSON with a library (gson?).

I would be very reluctant to do show case that, for 2 reasons:

we always require the instance of the JsonpMapper mapper when creating OpenSearchTransport and AFAIK we don't have JsonpMapper  for GSON
there should be a reason to introduce POJOs that are not already provided by the opensearch-java as part of API, I am happy to craft the example if you point me out to those (otherwise we would just encourage to do unnecessary work)

Ok this is great. Did a careful review.

❤ thanks a lot @dblock

I want to make sure we discuss not wanting to handle errors.

Sure, great question (as always). So here is my reasoning: with generic HTTP client, we give a freedom to basically deal with raw HTTP requests and responses (the generic client is literally just a messenger, it delivers some message and brings some response back, no implied knowledge what it is). Since we don't know the intent (may be caller expects 404), it is better to leave every decision to the caller, including how to handle status codes.

Ok this is great. Did a careful review.

❤ thanks a lot @dblock

I want to make sure we discuss not wanting to handle errors.

Sure, great question (as always). So here is my reasoning: with generic HTTP client, we give a freedom to basically deal with raw HTTP requests and responses (the generic client is literally just a messenger, it delivers some message and brings some response back, no implied knowledge what it is). Since we don't know the intent (may be caller expects 404), it is better to leave every decision to the caller, including how to handle status codes.

From the user requests I've seen the reasons to go to a lower level client are usually that we don't support a specific API, not to get more control. Does this change your mind? Is there a way to have both of these worlds?

Thanks @dblock

From the user requests I've seen the reasons to go to a lower level client are usually that we don't support a specific API, not to get more control. Does this change your mind?

There are certainly pros and cons to both approaches. From implementation perspective, it is always safer to start simple (return the response as is) and add complexity progressively.

Is there a way to have both of these worlds?

Yes, but I would better be guided by usage patterns to be fair: we have pretty extensive typed model, with full fledged error handling. It seems like it was not enough - the generic client is an opposite of that,

Thanks @dblock

From the user requests I've seen the reasons to go to a lower level client are usually that we don't support a specific API, not to get more control. Does this change your mind?

There are certainly pros and cons to both approaches. From implementation perspective, it is always safer to start simple (return the response as is) and add complexity progressively.

Is there a way to have both of these worlds?

Yes, but I would better be guided by usage patterns to be fair: we have pretty extensive typed model, with full fledged error handling. It seems like it was not enough - the generic client is an opposite of that,

Does the underlying HTTP client throw errors on network failure? This renders error handling inconsistent, doesn't it?

it is always safer to start simple (return the response as is) and add complexity progressively.

In this case it's not actually true. If the server returns a 401 right now there's no error with the generic client. If we change this in the future it will be a breaking change.

Does the underlying HTTP client throw errors on network failure?

Not really: the request was sent and response was received. Interpretation of the HTTP status code is subjective - the caller decides what he expected or not expected. Receiving the response is not a failure, everything else is.

Not really: the request was sent and response was received. Interpretation of the HTTP status code is subjective - the caller decides what he expected or not expected. Receiving the response is not a failure, everything else is.

This is not true. HTTP is very clear on what's an error and what is not!

We should take into account that we are not building generic HTTP client, but complementary OpenSearch client favour that should only be used when typed ones do not fit.

Correct. Error codes aren't a matter of type.

Not really: the request was sent and response was received. Interpretation of the HTTP status code is subjective - the caller decides what he expected or not expected. Receiving the response is not a failure, everything else is.

This is not true. HTTP is very clear on what's an error and what is not! Just like TCP (which raises timeout errors for example).

This is not what I meant, sorry about that (HTTP is very clear indeed),  interpretation of the HTTP status code is subjective from the caller perspective (I have tons of examples), but I think we should be discussing that in https://github.com/opensearch-project/opensearch-java/issues/927, thanks @dblock !


Gnina installation on WSL hosted Ubuntu 22.04

Issue summary
Installation of gnina on WSL2 Ubuntu-22.04
The Ubuntu repositories omit the installation of the Nvidia graphics driver when installing the nvidia-cuda-toolkit in WSL, as it is controlled by the W11 graphics driver. However, a "glitch" arises: the CUDA versions can be tied to older versions of the graphics driver. Therefore, to ensure compatibility, it's necessary, after you update the W11 graphics driver, to uninstall the Ubuntu repository installation of the toolkit first, and then install the appropriate toolkit from the Nvidia developer's site.
Steps to reproduce
$ sudo apt-get remove nvidia-cuda-toolkit
$ wget https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux.run
$ chmod 700 cuda_12.4.0_550.54.14_linux.run
$ sudo sh cuda_12.4.0_550.54.14_linux.run
At this point it is recommended that you install the CUDNN library:
$ wget https://developer.download.nvidia.com/compute/cudnn/9.0.0/local_installers/cudnn-local-repo-ubuntu2204-9.0.0_1.0-1_amd64.deb
$ sudo dpkg -i cudnn-local-repo-ubuntu2204-9.0.0_1.0-1_amd64.deb
$ sudo cp /var/cudnn-local-repo-ubuntu2204-9.0.0/cudnn-*-keyring.gpg /usr/share/keyrings/
$ sudo apt-get update
$ sudo apt-get -y install cudnn-cuda-12
Then proceed with the following steps:
Install prerequisites:
$ apt-get  install build-essential git cmake wget libboost-all-dev libeigen3-dev libgoogle-glog-dev libprotobuf-dev protobuf-compiler libhdf5-dev libatlas-base-dev python3-dev librdkit-dev python3-numpy python3-pip python3-pytest
Install OpenBabel3.
$ git clone https://github.com/openbabel/openbabel.git
$ cd openbabel
$ mkdir build
$ cd build
$ cmake -DWITH_MAEPARSER=OFF -DWITH_COORDGEN=OFF -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON ..
$ make -j8
$ sudo make install
Install gnina
$ git clone https://github.com/gnina/gnina.git
$ cd gnina
$ mkdir build
cd build
$ cmake ..
$ make -j8
$ sudo make install
Your system configuration
Operating sysstem: WSL Ubuntu 22.04
Compiler: GNU 11.5
CUDA version (if applicable): 12.4
CUDNN version (if applicable): 9
Python version: 311

This is less an issue than a recipe for installation on WSL that can be added to the readme, right?

Of course, I put it as an issue because I couldn't pull a request for the README.

Hi @demos57, I am trying to install in WSL2. Have you finished it? Please help me to solve https://github.com/gnina/gnina/issues/255
Thank you very much.


At html4-entities, yuml is repeated twice instead of distinguish between yuml and Yuml

Same happens with dagger

... and same with all uppercase greek letters
(sorry for being a PITA :P)

Hello @hwangar, can you please provide a short code demonstrating the problem?

Of course:
`
var Entities = require('html-entities'). Html4Entities;
var entities = new Entities();
var raw='Ÿ†‡ ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ';
assert.equal(entities.decode(entities.encodeNonUTF(raw)), raw);
`

′ is duplicated too

I fixed the file as I found typos, do you want me to attach the fixed html4 js?

fixed on 2017-04-01 by Karman Kertesz. Please close this issue.


Second run on load balancer fails with AWS::Core::OptionGrammar::FormatError

Following fails on the second run:
load_balancer "appserver-elb" do
  load_balancer_options({:listeners=>[{:port=>3001, :protocol=>"HTTP", :instance_port=>3001, :instance_protocol=>"HTTP"}],
  :availability_zones=>["us-west-2c", "us-west-2a", "us-west-2b"]})
end

with
Generated at 2015-03-11 21:15:54 -0500
AWS::Core::OptionGrammar::FormatError: expected enumerable value for option subnet_ids
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/aws-sdk-v1-1.61.0/lib/aws/core/option_grammar.rb:240:in `validate'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/aws-sdk-v1-1.61.0/lib/aws/core/option_grammar.rb:590:in `block in validate'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/aws-sdk-v1-1.61.0/lib/aws/core/option_grammar.rb:586:in `each'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/aws-sdk-v1-1.61.0/lib/aws/core/option_grammar.rb:586:in `validate'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/aws-sdk-v1-1.61.0/lib/aws/core/option_grammar.rb:601:in `request_params'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/aws-sdk-v1-1.61.0/lib/aws/core/query_request_builder.rb:37:in `populate_request'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/aws-sdk-v1-1.61.0/lib/aws/core/client.rb:740:in `block (2 levels) in define_client_method'

This should be in much better shape on master--mind trying it now?  I'm not seeing that behavior but it doesn't mean you won't.  I tend to live in vpcs at the moment.

Still happening for me

Actually, I think it should just be:
 unless lb_options[:subnets].nil?

because it's not valid to have an empty array of subnets.
I tried this out and it seems to work (whether specifying availability zones, or subnets).


fix(package): remove low vulnerability by upgrading dependencies

More info: https://nodesecurity.io/advisories/577

As sinon had been updated to 5.x from 1.x, this could be maybe a BREAKING CHANGE?

I would consider it breaking as it is not a dev dependency

@blacksonic I added a new commit and renamed the PR.

:tada: This PR is included in version 3.0.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Make it clearer where the issues tracker is

Right now there are 3 different places to file bugs/issues:

janinko/ghprb (this repo is behind the jenkins one, so perhaps close this down/mark it as obsolete?)
jenkinsci/ghprb
JenkinsCi.org

That must be both confusing for you reviewing the issues and the users of the plugin. Please close down unofficial issue trackers and improve the documentation for where to direct issues.
I have no idea where the best place to file any issues is.

I completely agree with you.  I haven't seen any input from @janinko for several years, and an owner the r would be the only one that can remove the PR section here.  Also you can't remove the issues section from a repo in GitHub.
The issues tracker in jira is created for every plugin for jenkins.
I will see about adding some documentation to direct everyone to the jenkins fork for issues and pull requests.


gl crashes if directory does not contain a repo with AttributeError: 'NoneType' object has no attribute 'decode'

If I run gl command in a directory which does not contain a git repository, it crashes:
ks-mbp:foo ks$ ls -la
total 0
drwxr-xr-x    2 ks  staff    64 Aug  7 12:01 .
drwxr-xr-x  219 ks  staff  7008 Aug  7 12:30 ..
ks-mbp:foo ks$ gl -h
Traceback (most recent call last):
File "/opt/local/bin/gl", line 11, in
load_entry_point('gitless==0.8.6', 'console_scripts', 'gl')()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/init.py", line 479, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/init.py", line 2703, in load_entry_point
return ep.load()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/init.py", line 2321, in load
return self.resolve()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/init.py", line 2327, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gitless/cli/gl.py", line 43, in
repo = core.Repository()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gitless/core.py", line 115, in init
self.git_repo = pygit2.Repository(path)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygit2/repository.py", line 1208, in init
path = path.decode('utf-8')
AttributeError: 'NoneType' object has no attribute 'decode'
I cannot even create a repository with "gl init" as it crashes with the same error.

Apparently this behavior was caused by recent upgrade of libgit2 and py27-pygit2 form 0.26.4_0 to 0.27.4. Rolling back to 0.26.4_0 restored normality. Is there any incompatibility between gitless and libgit2 0.27.4?

Thanks for looking into this. A breaking change was introduced in pygit 0.27 (changelog link) but PR #180 fixed it. If you are running Gitless 0.8.6 then you should use pygit 0.26, if are running from HEAD then both pygit 0.26 and pygit 0.27 should work.

The breaking change introduced in pygit2 0.27 is also causing it to crash on gl init. I will cut a new release with the fix soon.


Bug: While creating keystore

System information
Ubuntu 22.04
Commit id
main
Description & steps to reproduce
I've used this cmd:
polycli wallet inspect --mnemonic 'cupboard hip vibrant tank alert bounce pepper light round neglect dish foster' --addresses 10 | tee keys.txt | jq -r '.Addresses[] | [.ETHAddress, .HexPrivateKey] | @tsv' | awk 'BEGIN{split("sequencer,aggregator,claimtxmanager,timelock,admin,loadtest,agglayer,dac,proofsigner,l1testing,claimsponsor",roles,",")} {print "# " roles[NR] "\n"zkevm_l2_" roles[NR] "address": "" $1 "","; print ""zkevm_l2" roles[NR] "_private_key": "0x" $2 "",\n"}'
And
cast wallet new-mnemonic
to generate the mnemonic and the newly addresses in local l1 chain.
Desired behavior
But I got this issue:

What is the severity of this bug?
Critical; I am blocked and Kurtosis CDK is unusable for me because of this bug.

@praetoriansentry @jhkimqd please help to solve this issue

@TSV is not a valid operator. Check your logs and if you look at the jq docs, you'll see you should use @tsv.

Sorry typo mistake, I've used this cmd. Again got same issue @jhkimqd
polycli wallet inspect --mnemonic 'cupboard hip vibrant tank alert bounce pepper light round neglect dish foster' --addresses 10 | tee keys.txt | jq -r '.Addresses[] | [.ETHAddress, .HexPrivateKey] | @tsv' | awk 'BEGIN{split("sequencer,aggregator,claimtxmanager,timelock,admin,loadtest,agglayer,dac,proofsigner,l1testing,claimsponsor",roles,",")} {print "# " roles[NR] "\n"zkevm_l2_" roles[NR] "address": "" $1 "","; print ""zkevm_l2" roles[NR] "_private_key": "0x" $2 "",\n"}'

If you look at the error log, it also mentions invalid hex character '<' in private key. Try checking your input params.

This is my pvt keys:
DEFAULT_ACCOUNTS = {
# sequencer
"zkevm_l2_sequencer_address": "0x590cbD93bF922Fb3Fa4D8c156136D94509B3ACcc",
"zkevm_l2_sequencer_private_key": "0xd802af92e2f1f89b2d8f7403a124d4e6162c3b14913838fad0d978f6fa4f84a8",
# aggregator
"zkevm_l2_aggregator_address": "0x50689e96bD163a628A66d9D11a0F26CA31Bc4DF5",
"zkevm_l2_aggregator_private_key": "0xc186e63a8675d5761bf6e3badadfeefe52ffa8e04fb74a0b949970e61a74be25",

# claimtxmanager
"zkevm_l2_claimtxmanager_address": "0x4Dda86C9EC273bea7c9B4Ed05e05f5ad99697454",
"zkevm_l2_claimtxmanager_private_key": "0xcf67e63994a00e46e8dd5c0bc696234418464c1850c5b9abe0447a85204300c7",

# timelock
"zkevm_l2_timelock_address": "0x7F92A91E3008cc43DAc8f74E142a0bcEb6c95893",
"zkevm_l2_timelock_private_key": "0x4d16a0c31c58f4f97242de3f01b5bd323b6e59993e5b155072890663f83f9579",

# admin
"zkevm_l2_admin_address": "0x824D7437793a46A942846c951EE152dBdDC97D5a",
"zkevm_l2_admin_private_key": "0x48208431ab8681c5b77eb3eca33b09c047411b5a8ea3b84c889c5e99480d09cc",

# loadtest
"zkevm_l2_loadtest_address": "0x881c0F1a9D08472ED8e8F026711405091C19A23A",
"zkevm_l2_loadtest_private_key": "0x1446e90de4901f999544318a41d8540d280595e4636ef4e5d5e72fed489e7299",

# agglayer
"zkevm_l2_agglayer_address": "0xB02c9E0B42142Ff3EEF59cBAfAd26c7a0a875DDb",
"zkevm_l2_agglayer_private_key": "0xbe6e2b86c6b55531ca2aa0777748f1636a5fc12c6bd45999d15c6574aa7f93b8",

# dac
"zkevm_l2_dac_address": "0x4a31267e020D0996Ed4b2681F08fc0071409bD2c",
"zkevm_l2_dac_private_key": "0xc6ec61f9b472582b055ed688b25173d41616143cff3f0c6f71573c351cda85e8",

# proofsigner
"zkevm_l2_proofsigner_address": "0x862eA9F94067da521320CcD06b4d210009E1F291",
"zkevm_l2_proofsigner_private_key": "0x2634608ece47187e86ebcc2052bbd621e0bcacc519457dfaafc08456d4c375a1",

# l1testing
"zkevm_l2_l1testing_address": "0xD85B9267862dF61115641FC76ce2FCA0ef6FCA45",
"zkevm_l2_l1testing_private_key": "0x3d12bf06855bd77c272f757c9f610663ba2556099907b0856af635a8973a9a8f",

}
@jhkimqd

When I update this:     "l1_preallocated_mnemonic": "charge force federal small afraid muscle profit camp dentist pen green seminar"
Then it gives this error

I've missed one address in Default L1 addresses


Error: root struct of file 'Build' has no member named 'LogStep'

I am trying to follow the instructions on MacOS with zig v0.11.0 and get the following error whenever I try to do zig build get-tools or zig build get-v8:
/Users/munjalapatel/workspace/playground/zig-v8/build.zig:362:42: error: root struct of file 'Build' has no member named 'LogStep'
fn createGetTools(b: *Builder) *std.build.LogStep {
                                ~~~~~~~~~^~~~~~~~
referenced by:
    build: /Users/munjalapatel/workspace/playground/zig-v8/build.zig:21:23
    runBuild__anon_6791: /Users/munjalapatel/.zig/lib/std/Build.zig:1639:37
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

@munjalpatel *std.build.LogStep was removed from v0.11.0. The v0.10.1 API should be compatible with the current build.zig implementation.


Use header cache when creating state.

Currently each runtime call makes a header query to the database for the state root. This PR adds state_root to the header metadata cache so that it can be used for creating state objects.
Also fixed warnings in client/service/client

bot merge


Using ext_contract: Cannot find function in module

Lately, when I try using the ext_contract macro, It appears that the corresponding modules are generated, but the desired functions are missing. See my reproducible example. Issuing cargo check fails:
error[E0425]: cannot find function `ft_transfer` in module `crate::interface::ext_ft`
 --> src/lib.rs:6:31
  |
6 |     crate::interface::ext_ft::ft_transfer(
  |                               ^^^^^^^^^^^ not found in `crate::interface::ext_ft`

For more information about this error, try `rustc --explain E0425`.
error: could not compile `near-sdk-issue` due to previous error

According to the docs, this should have worked.

According to the docs linked, you need to provide the account_id of the contract first.
 ext_calculator::ext(calculator_account_id)
            .sum(a, b)

The API for promises was changed for the better to create a builder out of the call so that the function signature of the call is separate from the config for gas and deposit and of course the receiver.


Prevent admins from bypassing spawning permissions using brief

About the PR
Cherry picked directly from Delta as is.
Changes the permission on brief to spawn, since the entity field doesn't check if the entity you're trying to spawn is actually a mob or not. Also adds rbrief on the old permission since it is a useful tool for trial admins and such.

The main issue with brief was that while it does only suggest prototypes starting with "mob" for autocompletion, its never actually checked. Meaning it'd happily spawn any prototype provided, and since its on the "admin" permission and not "spawn" it means you could bypass not having spawning abilities rather easily

actual code looks OK, although it's dawned on me again how the comp and command use weird naming that's not intuitive

If it needs to be renamed, I can make that happen

Yeah, a better name is all I'm asking

@DEATHB4DEFEAT
The permissions were already fixed on Parkstation, and the naming is something I've spoken to Death about before.

Oh right I totally forgor about this

I'd rather just extract this entire thing as-is, re: Brief and remove it from the codebase.
Why is it invading GhostSystem in such a specific way? Why does it have an inscrutable name? Admin commands are the sort of thing that everyone can benefit from unless they deal with some very specific system (hence why it should be offered to SS14 if it's useful). The general concept as I understand it is to turn an admin into a specific mob. There's already tools to do that. If the problem is character appearance, clothing, then there's the mirror and an admin can already spawn clothing.
Can anyone justify why this system must continue its existence here? It's very narrow in scope.

Can anyone justify why this system must continue its existence here? It's very narrow in scope.

It could get replaced with a functionality to load a human character profile onto a mob, something the mirror cannot do completely with stuff like sex

Can anyone justify why this system must continue its existence here? It's very narrow in scope.

It could get replaced with a functionality to load a human character profile onto a mob, something the mirror cannot do completely with stuff like sex. That's the only relevant part and the command to load a profile would be much cleaner anyway

I already have code written for this on delta that does exactly this.
The only reason brief is handy is because admins without spawn have no other way of spawning in a character (on Nyano code, at least).

The usefulness of Brief has proven to be mostly speed- in a situation where you need to get a CentCom officer in fast, or when you quickly need to react to a situation with a specific character, it's much faster than spawning a mob, adding the clothing, changing the name, taking control, and then finally being ready to interact. Just an extremely convenient collection of actions, really. Certainly not vital for everyone, but I've found it to be extremely useful.
I can't argue for the specific coding of it, as I'm not intimately familiar with it.

(on Nyano code, at least).

You're saying that this is an aspect of this codebase and not representative of SS14 as a whole?

(on Nyano code, at least).

You're saying that this is an aspect of this codebase and not representative of SS14 as a whole?

I'm not familiar with wizdens admin tools, and can't be bothered to check if they implemented something like it


Cluster owner cannot add authorized users to Istio RBAC

rancher/rancher:master-head bc57ac2d1

Deploy Rancher
Create two standard users
As the standard user create a cluster
Add the second user as a project member
Enable istio
In Istio settings, add the second user as an authorized user in member access
Save

The payload to <project>:cluster-istio?action=upgrade does not contain the member info for authorized access.
When adding an authorized user as a Global Admin, the payload correctly contains the member info and the operation succeeds:

I also see that when searching principals as the cluster owner, the request is using the plain user id instead of the principal user id.
Cluster owner:

Admin:

This also occurs when initially enabling Istio.

https://github.com/rancher/system-charts/blob/dev/charts/rancher-istio/0.0.2/templates/istio-service-rbac.yaml#L14-L28
We need to pass the user id instead of principal id to the charts.  principal id doesn't work. But standard users cannot list users so they can not see the user id.

Logan is correct about what is happening. We're using a standard user to add new members to the istio install. Those members are searched and retrieved from the principals api. The logic in the UI then looks through the global users list to find the correct user and grab that id rather than using the principal id. This doesn't work in this case because we have two standard users who do not have access to the corresponding each others user info (only principal).
I think the bug is in the Istio implementation. When creating PRTB/CRTB's we use the principal info and the backend is able to derive the info it needs for RBAC from that. I am not sure why the istio backend (or rancher inbetween) can't use that to determine it's RBAC roles like we do everywhere else.

When using external auth, the Global Admin is hitting this issue as well -- the user info is not supplied in the answers to Istio.

Compromise solution is to only expose groups in this area (because they work).

As a quick recap of the functionality / issues as it stands pre-fix:

Local Auth

Admin - can add user, can allow all
Standard user - cannot add user, can allow all

External Auth

Admin - cannot add user (unless user logs in first), can add group, can allow all
Standard user - cannot add user, can add group, can allow all

Standard users cannot view existing users added by admin (500 on request to principals search - id is in wrong format - https://<>/v3/principals/u-75s76v6b2h?sort=name)

New functionality will limit the search to groups only. Verbiage has changed to indicate as much.  Will be available in UI tag 2.3.13.

rancher/rancher:v2.3.0-rc11

Local Auth:

Cluster owner

Can allow all

Admin

Can allow all

External Auth:

Cluster owner

Can allow groups
Can allow all

Global admin

Can allow groups
Can allow all

Text in UI is changed to reflect the change to allow group access or all only

Regular members do not show in search when adding to group access

Cluster owners can view all external links

When 'allow all' is selected, all users with project access can view Kiali / Jaeger / Traffic Graph

When a group is added, members of the group can view allowed resources


[QUESTION] PyFilesystem2 vs fsspec

I found this comparison in the fsspec docs so thought to raise it here in case anyone is interested!

It might have been conceivable to reuse code in pyfilesystems, which has an established interface and several implementations of its own. However, it supports none of the highlight, critical to cloud and parallel access, and would not be easy to coerce. Following on the success of s3fs and gcsfs, and their use within Dask, it seemed best to have an interface as close to those as possible. See a discussion on the topic.

Other newer technologies such as smart_open and pyarrow’s newer file-system rewrite also have some parts of the functionality presented here, that might suit some use cases better.

see also intake/filesystem_spec#5

I got thinking about this because fsspec supports file caching from s3 on read via s3fs
so I can call
import fsspec
from fugue import FugueWorkflow
import pandas as pd

of = fsspec.open("filecache::s3://my-bucket/my-file.parquet", filecache={"cache_storage": "data"})

df = pd.read_parquet(of) # caches to data/HASH on first read

with FugueWorkflow() as dag:
    df = dag.load(filepath).show() # fails

fugue fails with:
_0 _State.RUNNING -> _State.FAILED  .parquet'> is not supported
NotImplementedError: .parquet'> is not supported

I got thinking about this trying to use the fsspec OpenFile object with fugue to read and cache a file from s3 via s3fs which proved problematic:
import fsspec
from fugue import FugueWorkflow
import pandas as pd

of = fsspec.open("filecache::s3://codema-dev/my-file.csv", s3={"anon": True}, filecache={"cache_storage": "data"})

df = pd.read_csv(of) # caches to "data/HASH" on first read

with FugueWorkflow() as dag:
    df = dag.load(of).show() # fails with:

# _0 _State.RUNNING -> _State.FAILED  .parquet'> is not supported
# NotImplementedError: .parquet'> is not supported

I can do the same thing easily enough to download the files locally with pyfilesystem using https://github.com/PyFilesystem/s3fs

I am not sure if you used s3fs in your work. Actually if you install s3fs, pandas will use that to interact with s3. To be honest, this pkg has a lot of issues. For example it has different behaviors (i don't know if I should call them bugs) on fundamental operations on almost every version between 0.2 and 0.4, and then I have to give up. I know pandas is using it through fsspec, it also created some ridiculous issues. For example, if you use spark to save a file to s3, and then with the same process, you will not be able to load that folder of files using pandas+s3fs.
On the other hand, I find the s3fs of PyFileSystems2 is very reliable, and also a lot faster...
To give you another example, I once did an experiment. I uploaded a parquet of 3g to s3. Then use
df = pd.read_parquet("s3://<path>") #s3fs will be used

and use pyfilesystems2
with fs.open("s3://<path>", "rb") as f:
    df = pd.read_parquet(f)

The 2nd way is 2-3x faster.
So I am not sure if s3fs is a success at all. And highlights are not as convincing as reliable performance I got from pyfilesystems2.

Thanks Han, that clears it up. I do like how s3fs hides behind pandas and dask letting them just receive a URL, so raised it in case you hadn’t come across it!

Hey @rdmolony and @goodwanghan, I'm trying to find resources that compare pyfilesystem and fsspec, and there's not much out there. It seems from this issue that PyFilesystem2 is better for your use case? Are there any uses cases where you'd consider using fsspec instead?

Hey @rdmolony and @goodwanghan, I'm trying to find resources that compare pyfilesystem and fsspec, and there's not much out there. It seems from this issue that PyFilesystem2 is better for your use case? Are there any uses cases where you'd consider using fsspec instead?

Actually, Fugue is an abstraction layer, and we can't stop the underlying frameworks from using fsspec, for example pandas will use it. For the explicit part where Fugue has to directly interact with filesystems, it's all based on PyFileSystem2. Notice that, the direct interaction from Fugue to filesystems requires only basic operations, so we need a solution that is extremely solid and consistent on basic file operations. And we find PyFileSystem is superior on this, and also faster.
Fsspec has advanced operations, for example you can read a file from an offset, and as well as asynchronous operations. They can be very useful for users who are dealing with large data from a single machine. But when you want to interact with large files or large quantity of files from a single machine, why not consider a truly distributed approach instead? If you are bounded by a single machine, it can't scale well no matter how asynchronous and flexible a filesystem framework can give you.
But that is just my opinion, and as for Fugue, it uses PyFileSystems2 explicitly and fsspec implicitly.

Got it, thanks! One major detail I hadn't noticed is that it looks like Pyfilesystem2 doesn't seem to support Azure Blob Storage yet, which, if true, would be a deal breaker for me


Trainer.save_model dumps one checkpoint per neuron core

Trainer.save_model invokes save_model from super class, which doesn't handle multi-core dist training correctly for Trainium. The side effect is that it dumps one copy (checkpoint) of the trained model per core. This creates a huge amount of data, specially for big models trained with 32 cores. It would be better to invoke: xm.save that takes care of this complexity and saves only 1 copy of the model.
  def save_model(self, output_dir: Optional[str] = None, _internal_call: bool = False):
       if output_dir is None:
           output_dir = self.args.output_dir
       if self.accelerator.distributed_type is NeuronDistributedType.XLA_FSDP:
           self.accelerator.state.fsdp_plugin.save_model(self.accelerator, self.model, output_dir, 0)
       elif self.accelerator.distributed_type is NeuronDistributedType.TENSOR_PARALLELISM:
           parallelizer = ParallelizersManager.parallelizer_for_model(self.model)
           parallelizer.save_model_checkpoint(self.model, output_dir, as_regular=False)
       else:
        (this line)-->   return super().save_model(output_dir=output_dir, _internal_call=_internal_call)

For instance. This is the output of a 2-cores training job:
1.3G	model/checkpoint-1022
1.3G	model/checkpoint-9198

model/checkpoint-9198
model/checkpoint-9198/rng_state_1.pth
model/checkpoint-9198/rng_state_0.pth
model/checkpoint-9198/config.json
model/checkpoint-9198/training_args.bin
model/checkpoint-9198/optimizer.pt
model/checkpoint-9198/trainer_state.json
model/checkpoint-9198/pytorch_model.bin
model/checkpoint-9198/scheduler.pt
model/checkpoint-1022
model/checkpoint-1022/rng_state_1.pth
model/checkpoint-1022/rng_state_0.pth
model/checkpoint-1022/config.json
model/checkpoint-1022/training_args.bin
model/checkpoint-1022/optimizer.pt
model/checkpoint-1022/trainer_state.json
model/checkpoint-1022/pytorch_model.bin
model/checkpoint-1022/scheduler.pt

The output you give is the current way it is working? Because it seems fine to me.

Yes, I just ran a Training job for bert-base-uncased (binary text classification) with 2 cores and that was the result of save_model for me. I tried both 0.0.8 and 0.0.9, but the result is the same. I also tried 32 cores and I got 32 checkpoints!! Here you can see the training code:
https://github.com/aws-samples/ml-specialized-hardware/blob/main/purpose-built-accelerators/notebooks/02_ModelFineTuning.ipynb

@michaelbenayoun I re-built my training script and realized it was my mistake. I managed to get the correct results. Closing this ticket, then. Thanks.


Add cmip6 documentation to website

Description
These notebooks show how to create a kerchunk reference for NetCDF files on S3 and how to publish a collection for that kerchunk reference to VEDA STAC. It uses the CMIP6 dataset.
What type of example is this?
Tutorial
Checklist
The following checklist ensures that our notebooks are internally consistent (read more)

[x] The first cell contains the rendering information with author and data
[x] The notebook has a Run this Notebook section (with filename in link)
[x] The notebook has an Approach section
[x] All the packages that are imported in the notebooks are used within the notebook
n/a Any complex geometries are accessed from remote storage
[x] Each code cell comes after a markdown cell containing explanatory text
[x] All cells in the notebook book have been run in order with a fresh kernel (cell numbers should be 1, 2, 3, 4, ...)
n/a If the example type is Dataset the filename is <collection_id>.ipynb

thanks for catching that @j08lue ! I had made the changes but on a different copy of the notebook on my local machine 🤦🏽♀ I've updated the PR with those changes which are now rendered here: https://nasa-impact.github.io/veda-docs/pr-preview/pr-109/notebooks/veda-operations/publish-cmip6-kerchunk-stac.html


removing tags from assets, since it is not specify which tag should b…

since it is not specify which tag should be sown and should they be localized
testing url: https://removing-tags-from-assets--dme-partners--adobecom.hlx.live/channelpartners/drafts/dragana/search

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

Project coverage is 82.84%. Comparing base (e7de663) to head (6cef5d6).

Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #126      +/-   ##
==========================================
- Coverage   82.99%   82.84%   -0.16%
==========================================
  Files          10       10
  Lines        3252     3252
==========================================
- Hits         2699     2694       -5
- Misses        553      558       +5

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


Fixed publish button / dropdown interaction

When all the children of the dropdown were publish buttons it showed up empty menu instead of hiding it. This PR fixes that

Coverage increased (+0.06%) to 82.688% when pulling cdfff9dd33045db1be4c4276f81455d6d3e889b8 on vxsx:bugfix/dropdown-publish into 3e3a34f81e221192096a0fb761b3f0b3c7df5927 on divio:release/3.4.x.


Add support for Draper

I'm using RailsAdmin for my project and I want to keep some presentation details out of my model using Draper.
Unfortunately, there's no way to use the decorator in the RailsAdmin configuration, or at least, I haven't seen it.
Is there a way to configure a field to be a method call on another object? Right now I have it has an ActiveRecord::Base#delegate but it still forces me to expose a presentation concern in my model.
Something along the lines of:
config.model User do |user|
  list do
    field :full_name do
      UserDecorator.decorate(user).full_name
    do
  do
end

+1.  Worked for me


Add support for absolute paths in envFileName

Sbt-dotenv currently always prepends the envFileName with the base directory.
https://github.com/Philippus/sbt-dotenv/blob/ab634f702fc80ac438f9678f738487a244da15e4/src/main/scala/au/com/onegeek/sbtdotenv/SbtDotenv.scala#L89
I think it would make sense to check if the first character of envFileName is a /, and if so, don't prepend the base directory.
The use case for me would be to inject an envfile in GitLab CI. It allows you to define environment specific files, and provides an absolute path to these files in an environment variable. It would be convenient to be able to plug that into sbt cli like so:
sbt "set ThisBuild  / envFileName := \"$SBT_DOT_ENV\"" test
Would you accept a PR for this?

Sure, sounds like a welcome addition.

Fixed in https://github.com/Philippus/sbt-dotenv/pull/139.


gcc-arm-none-eabi@9-2020-q2-update: Download failed

Installing 'gcc-arm-none-eabi' (9-2020-q2-update) [64bit]
The remote server returned an error: (404) Not Found.
URL https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-win32.zip.bz2 is not valid

The correct URL looks like so https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-win32.zip

seems like zip.bz2 version has been removed?
This is valid https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-win32.zip


Commands stopped working randomly

So my covid commands were working fine this morning i try to use them again and im receiving an error that says Unexpected toxen < at JSON, I asked on the discord.js server and they said it looks like i was banned from the API why though

this has nothing to do with the package itself, you are sending too many requests so the API is rate limiting you


Workspace-level metadata

Some projects don't have a definite "main" crate in workspace, so it would be nice to be able to define all metadata at the workspace level, esp since workspace-level package metadata is a thing.

How hard would it be for cargo-deb to just read [workspace.package.metadata.deb] or something like this from the top-level Cargo.toml? Maybe keep the name key arbitrary and add a package = "workspace-member" key.
My project is running into this because our "main" will be in src/main/Cargo.toml as our server is completely modular. So there's no [package] key, only a [workspace.package] key at the top level Cargo.toml.
The rationale for this is to make it harder for this kind of metadata or information to go out of sync or outdated, keeping it in the top level is strongly preferred instead of putting it in another Cargo.toml that could get lost.
Additionally, being forced to put this in a workspace now causes assets to use fragile and unappealing relative paths:
license-file = ["../../LICENSE", "3"]
# ..
maintainer-scripts = "../../debian/"
# ..
assets = [
	["../../debian/README.md", "usr/share/doc/conduwuit/README.Debian", "644"],
	["../../README.md", "usr/share/doc/conduwuit/", "644"],
	["../../target/release/conduwuit", "usr/sbin/conduwuit", "755"],
	["../../conduwuit-example.toml", "etc/conduwuit/conduwuit.toml", "640"],
]

If my quick design there was implemented, my top level Cargo.toml would look something like this:
[workspace]
resolver = "2"
members = ["src/*"]
default-members = ["src/*"]

[workspace.package]
description = "a very cool fork of Conduit, a Matrix homeserver written in Rust"
license = "Apache-2.0"
authors = [
    "strawberry<EMAIL_ADDRESS>    "timokoesters<EMAIL_ADDRESS>]
version = "0.4.0"
edition = "2021"
# See also `rust-toolchain.toml`
rust-version = "1.77.0"
homepage = "https://conduwuit.puppyirl.gay/"
repository = "https://github.com/girlbossceo/conduwuit"
readme = "README.md"

[workspace.package.metadata.deb]
name = "conduwuit"

# workspace member package name at: src/main/Cargo.toml
package = "conduwuit"

maintainer = "strawberry<EMAIL_ADDRESS>copyright = "2024, strawberry<EMAIL_ADDRESS>license-file = ["LICENSE", "3"]
depends = "$auto, ca-certificates"
extended-description = """\
a cool hard fork of Conduit, a Matrix homeserver written in Rust"""
section = "net"
priority = "optional"
conf-files = ["/etc/conduwuit/conduwuit.toml"]
maintainer-scripts = "debian/"
systemd-units = { unit-name = "conduwuit", start = false }
assets = [
	["debian/README.md", "usr/share/doc/conduwuit/README.Debian", "644"],
	["README.md", "usr/share/doc/conduwuit/", "644"],
	["target/release/conduwuit", "usr/sbin/conduwuit", "755"],
	["conduwuit-example.toml", "etc/conduwuit/conduwuit.toml", "640"],
]

With this, I no longer need to rely on relative paths from a workspace member in another directory, I no longer need to do -p <package> in my CI for cargo-deb as it can simply read the top level Cargo.toml, and this information is easier to maintain.

At a minimum, would be great if cargo-deb supported relative asset paths from either the workspace root or the crate root, similar to how cargo-generate-rpm works.

cargo-generate-rpm seems to use current directory, and then package-relative path as a fallback. I think that's fragile — the current dir could be anywhere, not just at the root of the workspace, but even completely outside of it. And fallback makes paths ambiguous.
cargo-deb interprets paths relative to CARGO_MANIFEST_DIR. You can use ../../path for assets to reach outside of the crate into the workspace.


[MetaSchedule] Implement ScheduleFn as a C++ class

This PR implements the existing python-based ScheduleFn in C++ for
broader usecases, for example, multi-threaded search with customized
schedule function.
cc @junrushao1994

CC: @zxybazh @MasterJH5574 @spectrometerHBH


Razor tooling in VS Code is slow to start up

When I open a .razor file in VS Code, it seems to take a while for the Razor tooling to fully start up. When I test this in Windows Sandbox on my desktop machine, it seems to take over 10sec for the Razor tooling to startup with just the default Blazor Web App template. Is there anything we can do to speed this up?
Here's a screen capture of how long things take for me using the latest C# extension bits I got from @ryzngard:

2.60.26 has a significant perf improvement for medium and large projects. On my machine startup on small projects is ~11 seconds now. This is slightly slower than a small cs only project (~8 seconds).


@spec Auto Suggestion Broken since somewhen around 0.6.2?

Environment

Elixir & Erlang versions (elixir --version): Erlang/OTP 23 [erts-11.2] [source] [64-bit] Elixir 1.11.4 (compiled with Erlang/OTP 21)
Operating system: Windows 10 /WSL Arch
Editor or IDE name (e.g. Emacs/VSCode): VSCode
Editor Plugin/LSP Client name: ElixirLS

Troubleshooting

[X] Restart your editor (which will restart ElixirLS) sometimes fixes issues
[X] Stop your editor, remove the entire .elixir_ls directory, then restart your editor

NOTE: This will cause you to have to re-run the dialyzer build for your project

If you're experiencing high CPU usage, it is most likely Dialyzer building the PLTs; after it's done the CPU usage should go back to normal. You could also disable Dialyzer in the settings.
Logs

Check the output log by opening View > Output and selecting "ElixirLS" in the dropdown. Please include any output that looks relevant. (If ElixirLS isn't in the dropdown, the server failed to launch.)
No Errors

Check the developer console by opening Help > Toggle Developer Tools and include any errors that look relevant.
No Errors

Installing 0.7.0 then repeatedly deleting .elixir_ls does not help
installing 0.6.2 then repeatedly deleting .elixir-ls does help
with 0.6.2 i get suggestions for the @spec , with 0.7.0 i dont
0.6.2: https://cdn.discordapp.com/attachments/269508806759809042/829735077779996712/unknown.png
0.7.0: https://media.discordapp.net/attachments/646832679999897610/829994787565731911/unknown.png

@gallexme What do you mean by "@spec Auto Suggestion"? Do you mean Code Lens suggesting type specs for functions/macros (which I verified is working) or @spec attribute code completion (which is also working) or code completions inside typespecs (which is also working)? We need more info and a project that reproduces this issue.

0.6.2 Pic shows the suggestion I'm talking about, a gray @spec recommendation which u can click and automatically gets inserted into the code, I'm not the only one with the issue, it happens with any project
I'm using Windowsz, but same issue with arch Linux on wsl2
For one guy it worked by repeatedly installing 0.7, but for me only after installing a 0.6 version
@axelson
Meant
"Hmm, that's likely a bug introduced since we generalized that portion of the code. Please file a bug report thumbsup"
Other user having same issue:

Im using Using otp 23 and elixir 1.11
Same issue happens with otp24 rc2 and elixir 1.11 on arch Linux
How can I provide u more Infos?
https://gitlab.com/zen_core/zen_core
Is one project where that issue happens
But I also see it happening on empty elixir applications

@gallexme you didn't post any pic.

a gray @SPEC recommendation which u can click and automatically gets inserted into the code

It's called Code Lens and the problem is on Windows only. On macOS it works fine.

did post those 2 pics in the issue
but its okay :)
0.6.2: https://cdn.discordapp.com/attachments/269508806759809042/829735077779996712/unknown.png
0.7.0: https://media.discordapp.net/attachments/646832679999897610/829994787565731911/unknown.png


Refresh in Oxide after app is close doesn't work correctly

Environment setup:
remarkable2-framebuffer: 706f4cb..
oxide: af869c6... (with adding LD_PRELOAD=/home/root/fb/librm2fb_client.so before application launch)
LD_PRELOAD=/home/root/fb/librm2fb_server.so /usr/bin/remarkable-shutdown &
systemctl start tarnish
Steps:

Start "Process Manager"
Press "Back"

Actual:
"Process Manager" elements are still visible.
Expected:
Oxide should look like after the launch.
I'm attaching video.
The code responsible for the redraw:
https://github.com/Eeems/oxide/blob/af869c69304a9d8debf21dc705783cc9f1c7fdef/applications/system-service/application.h#L162
IMG_0993.mov.zip

it could be waveform mode auto, i checked and both remux and oxide are using it.

it could be waveform mode auto, i checked and both remux and oxide are using it.

I did ~steal code~ ~borrow code~ take inspiration from remux.

if you change it to WAVEFORM_MODE_GC16, then it should work

@Witos would you be able to test that?

Tested this patch:
https://github.com/Witos/oxide/commit/8ca3ea450050bb0eb5e9cea3783e228bb06c0ed0
It didn't change anything.

Log from server:
reMarkable: ~/ cat server.log
OPENED SHARED MEM: /dev/shm/swtfb.01 at 751a9000, errno: 0
BIN FILE: /usr/bin/remarkable-shutdown
ADDR: 21f54
REPLACING THE IMAGE with shared memory
SWTCON initialized \o/
STARTING RM2FB
Reading waveforms from /usr/share/remarkable/320_R299_AFC421_ED103TC2U2_VB3300-KCD_TC.wbf
Running INIT (135 phases)
1404 1872 16
reMarkable: ~

Yeah, I've tried to debug this but the fact that tarnish stops the wifi just makes this unnecessarily difficult.
You can get more info from the server by adding:
#define DEBUG
#define DEBUG_DIRTY

to https://github.com/ddvk/remarkable2-framebuffer/blob/master/src/server/main.cpp#L37
It would be nice to see if the ioctl sent by tarnish is actually received.
I suspect the problem is with oxide or tarnish and the way LD_PRELOAD gets propagated.

reMarkable: ~/ cat server.log
OPENED SHARED MEM: /dev/shm/swtfb.01 at 75272000, errno: 0
BIN FILE: /usr/bin/remarkable-shutdown
ADDR: 21f54
REPLACING THE IMAGE with shared memory
SWTCON initialized \o/
STARTING RM2FB
Reading waveforms from /usr/share/remarkable/320_R299_AFC421_ED103TC2U2_VB3300-KCD_TC.wbf
Running INIT (135 phases)
1404 1872 16
WAITING FOR SEND UPDATE ON MSG Q
Dirty Region: 0 0 1404 1872
doUpdate
mxc: waveform_mode 3
mxc: update mode 0
mxc: update marker 1
final: waveform 3 flags 0
Dirty Region: 1218 6 103 43
doUpdate
mxc: waveform_mode 3
mxc: update mode 0
mxc: update marker 2
final: waveform 3 flags 0
Dirty Region: 1218 6 43 43
doUpdate
mxc: waveform_mode 3
mxc: update mode 0
mxc: update marker 3
final: waveform 3 flags 0
Dirty Region: 23 75 187 222
doUpdate
mxc: waveform_mode 3
mxc: update mode 0
mxc: update marker 4
final: waveform 3 flags 0
Dirty Region: 0 0 1404 1872
doUpdate
mxc: waveform_mode 3
mxc: update mode 0
mxc: update marker 1
final: waveform 3 flags 0
Dirty Region: 0 0 1404 1872
doUpdate
mxc: waveform_mode 2
mxc: update mode 1
mxc: update marker 0
final: waveform 2 flags 1
Dirty Region: 23 6 1238 291
doUpdate
mxc: waveform_mode 3
mxc: update mode 0
mxc: update marker 5
final: waveform 3 flags 0

Tried to get a screenshot:
/opt/bin/rot screen call screenshot
and it's all black.

I'm using the following code to create a screenshot: https://github.com/Eeems/oxide/blob/master/applications/system-service/fb2png.cpp

Dirty Region: 0 0 1404 1872
doUpdate

So the update is received by the server, if that's what gets shown after the restore happens.
I think the screenshot does not work as we don't set the bits per channel in the get screen info ioctl correctly. So vinfo.red.length and vinfo.red.mask will be incorrect. Can you dump the  raw framebuffer you save and check if it's correct after restoring, before calling the update ioctl?

I don't have an rM2 so I can't test anything. @Witos ?
@timower Feel free to also spin up a build and try things out yourself.

@timower those are the values:
vinfo ----------->
bits_per_pixel=16, xres=1404, yres=1872
red: offset=56, length=1982819968, msb_right=2128790624
green: offset=16, length=8, msb_right=31750184
blue: offset=2128790336, length=2128790360, msb_right=63
finfo line_length=2808
vinfo <-----------

The screenshot code is not used when the screen is saved for app switching....

Refreshing works like that:
qDebug() << "Saving screen...";
int frameBufferHandle = open("/dev/fb0", O_RDWR);
char* frameBuffer = (char*)mmap(0, DISPLAYSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, frameBufferHandle, 0);
qDebug() << "Compressing data...";
auto compressedData = qCompress(QByteArray(frameBuffer, DISPLAYSIZE));
close(frameBufferHandle);
screenCapture = new QByteArray(compressedData);
and then:
int frameBufferHandle = open("/dev/fb0", O_RDWR);
auto frameBuffer = (char*)mmap(0, DISPLAYSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, frameBufferHandle, 0);
memcpy(frameBuffer, uncompressedData, DISPLAYSIZE);
    mxcfb_update_data update_data;
    mxcfb_rect update_rect;
    update_rect.top = 0;
    update_rect.left = 0;
    update_rect.width = DISPLAYWIDTH;
    update_rect.height = DISPLAYHEIGHT;
    update_data.update_marker = 0;
    update_data.update_region = update_rect;
    update_data.waveform_mode = WAVEFORM_MODE_GC16;
    update_data.update_mode = UPDATE_MODE_FULL;
    update_data.dither_mode = EPDC_FLAG_USE_DITHERING_MAX;
    update_data.temp = TEMP_USE_REMARKABLE_DRAW;
    update_data.flags = 0;
    ioctl(frameBufferHandle, MXCFB_SEND_UPDATE, &update_data);

You might want to edit and wrap the code in ```

Dumped the buffer (char* frameBuffer). I attaching. It's not empty, at least, but says nothing to me.
debugfb.txt

Experiment - I commented out:
//auto frameBuffer = (char*)mmap(0, DISPLAYSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, frameBufferHandle, 0);
//memcpy(frameBuffer, uncompressedData, DISPLAYSIZE);

and tested. It doesn't change anything at all. The screen looks exactly the same as when those above were on.

@Witos I think we need to solve why copying the framebuffer isn't producing a proper image yet first before we attempt to solve why restoring the framebuffer is broken.

@Eeems , how do you know it's not producing a proper image? Did you check the attached debugfb.txt?

https://github.com/ddvk/remarkable2-framebuffer/issues/30#issuecomment-742795033

i wonder if it is related to the call to close(fbfd) in fb2png and other places. rm2fb does not intercept the close and so closing the FB file descriptor and then re-opening may not work properly. one way to check would be to remove the close() calls and re-compile oxide. if it is the problem, then we should override close() and do nothing if close is calling on the swtfb FD.

ok, I checked and I don't think the close() is the reason oxide isn't redrawing itself after closing the currently running process. I think oxide just needs to refresh after the current app closes.

@Eeems, I was curious about the numbers returned by ioctl FBIOGET_VCREENINFO. They seemed invalid. I added memset:
struct fb_var_screeninfo vinfo;
memset(&vinfo, 0, sizeof(struct fb_var_screeninfo));
ioctl(fbfd, FBIOGET_VSCREENINFO, &vinfo)
This results in:
vinfo ----------->
bits_per_pixel=16, xres=1404, yres=1872
red: offset=0, lenght=0
green: offset=0, lenght=0
blue: offset=0, lenght=0
vinfo <-----------

yes, we need to fix those
On Mon, 14 Dec 2020 at 08:31 Witos<EMAIL_ADDRESS>wrote:

@Eeems https://github.com/Eeems, I was curious about the numbers
returned by ioctl FBIOGET_VCREENINFO. They seemed invalid. I added memset:
struct fb_var_screeninfo vinfo;
memset(&vinfo, 0, sizeof(struct fb_var_screeninfo));
ioctl(fbfd, FBIOGET_VSCREENINFO, &vinfo)
This results in:
vinfo ----------->
bits_per_pixel=16, xres=1404, yres=1872
red: offset=0, lenght=0
green: offset=0, lenght=0
blue: offset=0, lenght=0
vinfo <-----------
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ddvk/remarkable2-framebuffer/issues/30#issuecomment-744235637,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIYZFLU3TUPJXNA7EFTCZPLSUW5MDANCNFSM4UUBRVHQ
.

       else if (request == FBIOGET_VSCREENINFO) {
    1
    2         fb_var_screeninfo *screeninfo = (fb_var_screeninfo *)ptr;
    3         screeninfo->xres = 1404;
    4         screeninfo->yres = 1872;
    5         screeninfo->grayscale = 0;
    6         screeninfo->bits_per_pixel = 16;
    7         return 0;
    8       }

This is still not the reason why the original refresh is not working, because it doesn't use vscreeninfo at all. It just copies the raw memory around. How to perform raw refresh, @raisjn, without this fb copying?

there should be something in qt where you can redraw the app or main window

can you try with the latest master? i see that the screenshot of oxide uses the rgb offsets

@ddvk , will try that this evening (UTC+1)
@raisjn , will try to find something, but it seems it's not that obvious to force repaint in Qt

you can force repaint by hiding the main window, then showing it with
Qt.callLater
On Mon, 14 Dec 2020 at 09:05 Witos<EMAIL_ADDRESS>wrote:

@ddvk https://github.com/ddvk , will try that this evening (UTC+1)
@raisjn https://github.com/raisjn , will try to find something, but it
seems it's not that obvious to force repaint in Qt
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ddvk/remarkable2-framebuffer/issues/30#issuecomment-744256778,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIYZFLXIZTN3RJENGXICRF3SUXBM5ANCNFSM4UUBRVHQ
.

ok, I checked and I don't think the close() is the reason oxide isn't redrawing itself after closing the currently running process. I think oxide just needs to refresh after the current app closes.

That defeats the entire point of recalling the stored screen. Not to mention there is no easy way to ensure that other apps redraw themselves on resume.

Screenshot feature works fine after @ddvk patch. Attaching the screenshot captured as a proof.

Does screen recalling when switching apps work now? Or is that still broken?

No, it's still broken. Attaching

screenshot when the screen is malformed.

And this is with WAVEFORM_MODE_GC16?

it now works for me using master (ddvk's fix for screen info + close() impl)

Good job @raisjn , good job @ddvk - I confirm it works.


Dependabot weekly -> monthly

Weekly updates are a bit too much for the size of our team, and frequency of releases. Let's do it monthly instead.

How can I fix tests? '^^


Update build configuration

The build configuration of this project is outdated and may no longer work.
This pull request will be merged automatically if there are no conflicts.

:tada: This PR is included in version 2.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


clear() or sendKeys('') not working on input types: date, time, datetime-local, month, or week

This directly relates to the documentation tests on a pull request on the Angular.js project: https://github.com/angular/angular.js/pull/5864
For now I'm going to work around it, I guess. But the issue seems to be that due to the custom controls in browsers like Chrome, protractor simply doesn't know what to do to interact with them in order to clear them. It's sort of late, and I haven't dug any further into than that for now.
I did, however see a few StackOverflow questions that seemed to relate, although none of the workarounds I found there worked.
http://stackoverflow.com/questions/15360362/clear-date-input-fails-on-chromewebdriver
Also possibly related?
http://stackoverflow.com/questions/21295314/how-to-set-html5-type-date-input-fields-e-g-in-chrome-using-selenium-protra

@mcalthrop

Note: I've used lodash, cos I'm lazy – and I also added a test for the length of the existing text in the input, so that the number of backspaces sent is exact.

Then I'd suggest this:
function clear(elem) {
  elem.getAttribute('value').then(function (text) {
    var len = text.length
    var backspaceSeries = Array(len+1).join(protractor.Key.BACK_SPACE);
    elem.sendKeys(backspaceSeries);
  })
}

Not good at js. Can someone tell me how the workaround will work for me? I am also using protractor to a non-angular page here, so guess I do not have to worry about the model validation here
I do not have an id for my dtepicker, hence I cannot do the workaround    browser.executeScript("document.getElementById('someElem').value = '2011-11-11';");
I can lookup the element using the css selector like
element(by.css('.mySubSection .dateInput > input')).
Please help!!

I have protractor 2.2.0. The clear() function does not work on input of type number. I have tried most of the solutions given here. Please help me. Below is my code:
element(by.model('lineup.voltage_limit')).click().clear().sendKeys(value);
I have tried to even resolve the promise from clear() like below
element(by.model('lineup.voltage_limit')).click().clear().then(function(){
element(by.model('lineup.voltage_limit')).sendKeys(value);
});
clear() just does not seem to work! It just keeps on appending to the text in the input box.

Why not injecting a "browser script command" to just set the field value to
zero?
On Mon, 31 Aug 2015 at 22:55 nehaw07<EMAIL_ADDRESS>wrote:

I have protractor 2.2.0. The clear() function does not work on input of
type number. I have tried most of the solutions given here. Please help me.
Below is my code:
element(by.model('lineup.voltage_limit')).click().clear().sendKeys(value);
I have tried to even resolve the promise from clear() like below
element(by.model('lineup.voltage_limit')).click().clear().then(function(){
element(by.model('lineup.voltage_limit')).sendKeys(value);
});
clear() just does not seem to work! It just keeps on appending to the text
in the input box.
—
Reply to this email directly or view it on GitHub
https://github.com/angular/protractor/issues/562#issuecomment-136363105.

@kayhadrin I was able to clear the existing numerical text from the input box using executeScript but then it does not clear the text it inserts a 0 if I say
browser.executeScript("document.getElementById('lineup_voltage_limit').value = ' ';");
I want to clear the value which somehow I am unable to do.

I'm testing this kind of numerical input field with a value as "" and it
shows effectively nothing in it.
So what's the HTML of your input field atm?
And what browser version are you using?
e.g. <input id="test" value="" type="number">
On Tue, 1 Sep 2015 at 18:57 nehaw07<EMAIL_ADDRESS>wrote:

@kayhadrin https://github.com/kayhadrin I was able to clear the
existing numerical text from the input box using executeScript but then it
does not clear the text it inserts a 0 if I say
browser.executeScript("document.getElementById('lineup_voltage_limit').value
= ' ';");
I want to clear the value which somehow I am unable to do.
—
Reply to this email directly or view it on GitHub
https://github.com/angular/protractor/issues/562#issuecomment-136639995.

@cnishina we need to confirm whether this is still a problem and file an appropriate webdriver bug if so.

I am facing similar issue on Chromium Version 49.0.2623.108, however Firefox (45.0.2) works fine.
protractor version 3.3.0
selenium standalone versions available: 2.52.0 [default]
chromedriver versions available: 2.21 [default]
Also checked with newes selenium (2.53.1) chromedriver (2.22) versions -- result is the same.
...
Input clear problem occurs when i start entering invalid values (like "e") to the number input. Furthermore when entered invalid value getAttibute('value') returns empty string and i have a feeling that those two issues are related.
Here is a yet another workaround:
input.sendKeys(protractor.Key.chord(protractor.Key.CONTROL, 'a'));
input.sendKeys(protractor.Key.DELETE);

Sending keys appears to work:
    let tab = protractor.Key.TAB;
    element(by.css('.myform-date')).sendKeys('01/01/1970');
    element(by.css('.myform-time')).sendKeys('02:30PM');
    element(by.css('.myform-datetime')).sendKeys('01/01/1970 ' + tab + '02:30AM');
    element(by.css('.myform-month')).sendKeys('January' + tab + '2016');
    element(by.css('.myform-week')).sendKeys('51 2017');

Clearing the input field throws an error:
Started
F

Failures:
1) date form should do this
  Message:
    Failed: invalid element state: Element must be user-editable in order to clear it.
      (Session info: chrome=55.0.2883.95)
      (Driver info: chromedriver=2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1),platform=Mac OS X 10.12.2 x86_64)
  Stack:
    InvalidElementStateError: invalid element state: Element must be user-editable in order to clear it.
      (Session info: chrome=55.0.2883.95)
      (Driver info: chromedriver=2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1),platform=Mac OS X 10.12.2 x86_64)
        at WebDriverError (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/error.js:27:5)
        at InvalidElementStateError (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/error.js:138:5)
        at Object.checkLegacyResponse (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/error.js:639:15)
        at parseHttpResponse (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/http/index.js:538:13)
        at client_.send.then.response (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/http/index.js:472:11)
        at ManagedPromise.invokeCallback_ (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/promise.js:1379:14)
        at TaskQueue.execute_ (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/promise.js:2913:14)
        at TaskQueue.executeNext_ (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/promise.js:2896:21)
        at asyncRun (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/promise.js:2820:25)
        at /Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/promise.js:639:7
    From: Task: WebElement.clear()
        at Driver.schedule (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/webdriver.js:377:17)
        at WebElement.schedule_ (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/webdriver.js:1744:25)
        at WebElement.clear (/Users/cnishina/src/protractor-cookbook/protractor-forms/node_modules/selenium-webdriver/lib/webdriver.js:2099:17)

My proposal is before we run the command .clear, we would check the attribute type of the input and if it is one of these, we send the right amount of back spaces and tabs to clear the field out. So for type="date" or type="time", we would:
.sendKeys(protractor.Key.BACK_SPACE + protractor.Key.TAB + protractor.Key.BACK_SPACE + protractor.Key.TAB + protractor.Key.BACK_SPACE);

On second thought, let's not do that PR...this bug has been filed.
https://bugs.chromium.org/p/chromedriver/issues/detail?id=1319&q=clear&colspec=ID Status Pri Owner Summary

Added clearByBs function to ngpo if you're using that for Protractor page objects.  See How to append custom fns for example to clear a date field.  Thanks @FilipZawada for your code.

Try this
await element(By.css('#someId')).sendKeys('', protractor.Key.HOME);
await element(By.css('#someId')).sendKeys('123123123');


authenticate without browser

Is it possible to authenticate without using a browser?
I want to be able to parse a onenote file in onedrive without having to authenticate through a browser (like in oauth2client)

Really, usually you want to use an API to automate somethin, that is, ideally, without a user needing to response to a browser that is being opened.

I would echo the same, it kinda kills the automation if we need to also need manual elements in between. If there's any document on how to accomplish that. Please point us towards that.
Thanks.

Closing this issue as we are archiving this repository. Please see https://github.com/microsoftgraph/msgraph-training-pythondjangoapp for a Python sample.


10.0.22631.3374 service state stopped

i just added the 10.0.22631.3374 rdwrap.ini and listener state says [fully supported]
however when i start the remote desktop services, it just starts for 2-3 seconds and stops.

Run RDPWInst.exe -r

not working

RDPWrap-v1.8.2.zip
Try running uninstall.bat then running install.bat

You guys are generating the .ini file wrong, you need to paste the offsets in order check what numbers goes after...
Here is my .ini file easily generated with https://github.com/llccd/RDPWrapOffsetFinder/releases
Just use this file and you should be good, but keep in mind the order of where the offset goes next time!
rdpwrap.ini.zip

Problems with each version of termsrv.dll are best discussed in the corresponding issue. This is discussed at https://github.com/stascorp/rdpwrap/issues/2528


RedmineInternalError is derived from Error, should be derived from Exception/Runtime Exception

While reviewing my error handling, I noticed, that RedmineInternalError is not derived from Exception but from Error. I think this is wrong - from the documentation for Error:
An {@code Error} is a subclass of {@code Throwable}
that indicates serious problems that a reasonable application
should not try to catch.

In this case I'm connection to a "non-redmine" url and that of course can't reply with a project list. I thought I caught it (I caught Exception), but was missing this case. To reproduce:

Instantiate an RedmineManager with target url https://www.google.de
Call getProjectManager().getProject() on it

I consider this normal usage (replace google with any valid URL, without redmine installation) should give same problem.
From my perspective, nothing in redmine-java-api should generate Throwables not derived from exception. Errors are for JVM-Fatal problem: OutOfMemoryError, StackOverflowError, that are unlikely to be recoverable.
Easiest fix:
# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- HEAD
+++ Modified In Working Tree
@@ -6,7 +6,7 @@
  * @author maxkar
  *
  */
-public class RedmineInternalError extends Error {
+public class RedmineInternalError extends RuntimeException {

     private static final long serialVersionUID = 1L;

we had a similar request in Issue #125, but for whatever reason decided to not change that. fixed.


Example of snapshot changes on macOS

Encountering these failures locally, suspicious of the test context changes.
But... if I go back to a959772074fbdf45eb00c8f6dfd7297e7377eaf0 this reproduces, actually. So I'm not sure what's going on here.
And... reproduces all the way back on 9d1cd8e48c534544ada11ac2c95832b7b687382f — something really wrong on my machine I guess?

Needed to run uv python install


Automatic writing/exception debugging

I have an integer declared in an interface extension, when I modify this property, it is automatically being written to disk (I know because I am getting an exception: Attempting to modify object outside of a write transaction - call beginWriteTransaction on an RLMRealm instance first. I am not even surrounding it in the begin/commit transaction sequence and it is automatically being included in a write transaction. Is it true that changes are automatically written when calling a setter? If not, how can I track down what is being written to disk? Currently I am searching for instances of commitWriteTransaction, and it seems they are all balanced by beingWriteTransaction...is this the wrong approach/assumption to make? Do all changes to an object need to be surrounded by beginWriteTransaction?
This leads me to my second issue, is it really required to list all properties that are to be ignored from being persisted and if so, is there a type-safe way to do this (strings seem kind of clunky and refactoring seems like it could be a pain)? It seems that properties I define in my interface extension should automatically be excluded, no? It only makes sense to me that properties in the public header would be included. Also, I got warnings regarding some types such as NSArray, etc..shouldn't it be possible to just automatically exclude these or is there a design reason that I must explicitly exclude these types that aren't able to be persisted?
Particularly in the development of a new project, I am making a lot of changes/additions to the model. For every change, I am warned about the migration...is there a way to bypass when working on the initial version where I wouldn't necessarily want to have the migration support and I am making a bunch of changes to the model? The only way I've found so far is to delete the app from my device and re-build.
Lastly, is there a way to use the Realm browser to inspect/modify the realm DB on a device?

Writing to a property outside of a write transaction will indeed cause an exception to be thrown, which is exactly what you are seeing -- that is intentional. All changes to the database occur inside write transactions, which is what makes Realm a transactional database. In short, yes, all changes to an object need to happen inside a write transaction, either via beginWriteTransaction and commitWriteTransaction or transactionWithBlock.
As to your second question, yes, you must explicitly list all ignored properties as an array of strings. Since an interface extension gets folded into your class definition at compile time, there would be no way to know it came from an extension. The reason you need to explicitly ignore types that are currently unpersistable in Realm is for forwards-compatibility reasons: they might be supported in the future, and we wouldn't want your model schema to change without you making explicit changes to it.
When in development, your best bet will probably be to delete the realm file when you make changes to your schema.
Finally, you can certainly copy the Realm file from your device to your Mac to use the Realm Browser, but there's a cool alternative called NBNRealmBrowser that acts as an on-device browser.
I hope this was helpful!

Here is a snippet of code that works nicely when wanting to delete the file automatically
[[NSFileManager defaultManager] removeItemAtPath:[RLMRealm defaultRealmPath] error:nil];


[Request for a feature] Dynamic claims request

Hi,
I would like to ask if the 'Dynamic Claims Request' feature described in this repository  is implemented in omejdn-daps repository.
If yes, are these two advisable features supported: DAPS implementations are advised to explicitly white-list any requestable claims and to check requested values as appropriate. If the requested values are checked how are they checked? Is there any cross-check mechanism to cross-check the claims of the clients?

Hi, sorry for the late reply. One day I should find out how to subscribe to new issues.
Yes, Omejdn is able to issue claims dynamically.
To enable a claim for a particular connector, the corresponding attribute should look like this:
- key: transportCertsSha256
  value: whatever default value you would like
  dynamic: true

There is currently no way of specifying and checking valid values.
If that is something you desperately need (and you know a bit about Ruby), you might want to have a look at writing a plugin for Omejdn.


Tree shaking is not working at all

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

I'm submitting a  bug ...
[*] bug report

What is the current behavior?
Unused modules are not shaken out and they'll end up in main bundle both for AOT and JIT.

**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal

I've created a folder called files in the app directory as bellow :
app.module.ts
app.component.ts
files :
-------index.ts
-------SHOULD_BE_SHAKEN.TS
-------SHOULD_BE_THERE.TS
I have two files , which I'm exporting them inside the index.ts of files folder as bellow :
export { SHOULD_BE_THERE } from './SHOULD_BE_THERE'
export { SHOULD_BE_SHAKEN } from './SHOULD_BE_SHAKEN'

And inside my app.module.ts , I'm only importing and using SHOULD_BE_THERE:
import { SHOULD_BE_THERE } from './files';
@NgModule( {
    bootstrap    : [ AppComponent ],
    declarations : [
        AppComponent
    ],
    imports      : [
        BrowserModule,
        FormsModule,
        HttpModule,
    ],
    providers    : [
        SHOULD_BE_THERE
    ]
} )
export class AppModule {
    constructor ( service : SHOULD_BE_THERE ) {
    }
}

And here is inside both those services :
SHOULD_BE_SHAKEN.ts
import {
    Injectable,
    EventEmitter
} from '@angular/core';
@Injectable()
export class SHOULD_BE_SHAKEN {
    constructor () {
        let m = "SHOULD_BE_SHAKEN";
        alert(m);
    }
}

SHOULD_BE_THERE
import {
    Injectable,
    EventEmitter
} from '@angular/core';
@Injectable()

@Injectable()
export class SHOULD_BE_THERE {
    constructor () {
        let m = "SHOULD_BE_THERE";
        alert(m);
    }
}

@Injectable()
export class SHOULD_BE_SHAKEN2 {
    constructor () {
        let m = "SHOULD_BE_SHAKEN2";
        alert(m);
    }
}

And then I'm running npm run build:prod or build:aot:prod expecting not to find the SHOULD_BE_SHAKEN and SHOULD_BE_SHAKEN2 inside the main bundle , but as you can see both of them ended up there :
Inside the main bundle (minified of course ) :
{function t(){var t="SHOULD_BE_SHAKEN";alert(t)}return t})();r=_.b([n.i(i.a)(),_.c("design:paramtypes",[])],r)},357:function(t,e,n){"use strict";var _=n(229);n.d(e,

{var t="SHOULD_BE_SHAKEN2";alert(t)}return t})();o=_.b([n.i(i

What is the expected behavior?

SHOULD_BE_SHAKEN and SHOULD_BE_SHAKEN2 not to be bundled.

Please tell us about your environment:
Mac os, latest, Siera

And I've got the :
 "name": "angular2-webpack-starter",     "version": "5.4.1",
This is really crucial for us as the bundle ends up being 3mg !
Thanks and Cheers

Maybe webpack/webpack#2867

@xe4me Does this problem still exist?  Does it make any difference if you import like this?:
import { SHOULD_BE_THERE } from './files/SHOULD_BE_THERE';

Looks like it's a feature that will be fixed in 2.4 webpack as per @admosity issue link


Fix Xcode 11 compile error for example project

Today, When update Xcode11, I found AFNetWorking Example project compile failure. See：

Today, When update Xcode11, I found AFNetWorking compile failure. See：

Any chance this will get merged? It's still affecting Carthage builds as of Xcode 11 Beta 6

Thanks for the PR, but this has been fixed by #4409.