Add screenshots for F-Droid

This PR aims to add screenshots to the listing in the F-Droid store.
Descriptions/ images can either be added to this repo or to https://gitlab.com/fdroid/fdroiddata/tree/master/metadata
The files get updated to the F-Droid store on a release, not by merging this PR.

[ ] A feature image can be added by adding the file ./fastlane/metadata/android/en-US/images/featureGraphic.png.

How to add screens to F-Droid: https://f-droid.org/en/docs/All_About_Descriptions_Graphics_and_Screenshots/
Fastlane's doc: https://docs.fastlane.tools/actions/supply/#images-and-screenshots

Hello @jaller94
Thank you very much for the contribution. The https://github.com/fastlane/fastlane really looks like a unifying way to store metadata for both F-Droid and Google Play, both of which #AndStatus uses.
I was especially impressed by the tool's (advertized...) feature "fastlane supply init: download metadata for an existing app to a local directory", which I understand as ability to initialize metadata with what is already stored in Play Store...
As you may know, AndStatus already has quite a lot of screenshots in Google Play Store https://play.google.com/store/apps/details?id=org.andstatus.app plus several (duplicating them...) - in AndStatus Wiki repository, see: https://github.com/andstatus/andstatus/wiki
It would be good to synchronize them, store in a single location and make available for all usages.
This is why I think that I should start with importing existing images / metadata from Google Play Store, and only after that update that images (if necessary) with your contributed screenshots.
?!

Hi @yvolk.
The screenshots I uploaded are the ones from the Google Play store.
Fastlane does support to store metadata like short_description.txt, long_description.txt, title.txt and video.txt. It also supports update notes which work in both stores.
In the wiki the images could be linked from the master branch. I guess it would get a little awkward if new features are not yet in the master branch but already have an entry in the wiki (if that exists for this AndStatus).

Ok, so I got that you copied from Play Store screenshots for one language. But we need all existing screenshots to be migrated, so I will try to do this using the Fastlane tool and my credentials.
Currently metadata for short_description.txt and long_description.txt is stored inside /docs folder of the repository, so it should be moved to the same unified place also (or maybe it will be copied automatically from Play Store, I need to test this...)

fastlane supply init is an eay way of copying the data from the Google Play Store into the fastlane folder structure, if you want to go all the way.
https://docs.fastlane.tools/getting-started/android/setup/

Hi @yvolk,
did you find some time to test the import from the Google Play Store?
I would be interested in your experience of importing lots of localized content.

Hi @jaller94 , I tried to install Fastlane on Windows + Linux subsystem for Windows - it fails on building some native libraries. So it looks like Fastlane currently is for Mac users mostly :-(
Anyway, as I read from docs, importing image files from Google Play is impossible due to Play Store API limitation...

Two years later I checked if Fastlane is supported on non macOS platforms.
Still no. For this means that there is no point in following its file structure to store metadata, including screenshots.
More details on Fastlane - in this thread: https://github.com/fastlane/fastlane/issues/11687

You can create the folder structure using any operating system. F-Droid will recognize it and use it for its listing. A really working fastlane is not necessary for F-Droid, or am I missing something? 🤔

@KerstinMaur Fortunately, I found better solution: there IS another tool to manage metadata in Google Play that is supported now by F-Droid: https://github.com/Triple-T/gradle-play-publisher
It alloweded me to import automatically existing metadata from Google Play store, and now this metadata is used by F-Drois. I mean you can see the same screenshots at F-Droid web site: https://f-droid.org/packages/org.andstatus.app/


code-gen: improve 'splitability' of the apiClient when isBrowser: true

We generate a closure around the api calls, to help with getting a 'unique' api client for SSR. This however prevents some chunk optimizations that can be done for the client side chunks.

Currently looks something like:
function newApiClient() {
  const foo = {
     bar: () => {... },
     baz: () => {... },
  };

  const quix = {
     bar: () => {... },
     baz: () => {... },
  };

  return {
    quix,
    foo,
  };
}

In combination with the generated hooks you get something like;
const { foo } = useApi();
await foo.bar();
// Or
const api = useApi();
api.quix.baz();

The easiest way would be to pass an Axios instance as the first argument to the api call functions, in combination with a function that adds the interceptors for x-request-id;
export async function apiFooBar(axios: AxiosInstance, parms, body) {
 // ...
}

Then we still need a useApi() hook but use it to store the Axios instance so the react-query hooks can use it.
Was thinking about some other options, but would rather keep it simple :)
/cc @tjonger , @rodymolenaar

The easiest way would be to pass an Axios instance as the first argument to the api call functions, in combination with a function that adds the interceptors for x-request-id;
export async function apiFooBar(axios: AxiosInstance, parms, body) {
 // ...
}

Then we still need a useApi() hook but use it to store the Axios instance so the react-query hooks can use it.
Was thinking about some other options, but would rather keep it simple :)
/cc @tjonger , @rodymolenaar

Is this optimization solely for SSR or those this also provide build size improvements?

Is this optimization solely for SSR or those this also provide build size improvements?

Mainly done for build size improvements.  Doesn't improve much for SSR I think.
I think the last time you pulled up the chunk-analyzer (?) the generated api client was a big offender. By splitting it up in all separate functions all pages can fully tree-shake the unecesary api calls out.
So this
function newApiClient(axios: AxiosInstance) {
  let _requestId: string|undefined = undefined;
  // Setup X-Request-Id handling

  const foo = {
     bar: () => {... },
     baz: () => {... },
  };

  const quix = {
     bar: () => {... },
     baz: () => {... },
  };

  return {
    quix,
    foo,
  };
}

Turns in to this:

// X-Request-Id helper
function checkInterceptors() {}

export async function apiFooBar(axios: AxiosInstance, parms, body) {
  checkInterceptors();

 return axios.request({ ... });
}

export async function apiFooBaz(axios: AxiosInstance, parms, body) {
  checkInterceptors();

 return axios.request({ ... });
}

It's going to look a lot like the generated hooks file.

The easiest way would be to pass an Axios instance as the first argument to the api call functions, in combination with a function that adds the interceptors for x-request-id;
export async function apiFooBar(axios: AxiosInstance, parms, body) {
 // ...
}

Then we still need a useApi() hook but use it to store the Axios instance so the react-query hooks can use it.
Was thinking about some other options, but would rather keep it simple :)
/cc @tjonger , @rodymolenaar

I've looked at this for a while and have concluded that passing the Axios instance as the first parameter is the simplest solution.
However, I'm not sure about the apiFooBar naming. IMHO a generated/api/foo.ts containing a bar() function has preference, because it allows easier discovery of functions and import grouping.
Not sure how much impact this would have, since all other hooks, types, validators, etc. should probably be grouped the same.
Since this is going to be a big breaking change, we might as well do some house keeping of the generated directory.
What are your views @dirkdev98?

I've looked at this for a while and have concluded that passing the Axios instance as the first parameter is the simplest solution.

Noice, was implementing this already :)

However, I'm not sure about the apiFooBar naming. IMHO a generated/api/foo.ts containing a bar() function has preference, because it allows easier discovery of functions and import grouping.

Splitting the generated files in $outputDirecotry/[group]/[generator].{ts,js} and skipping index.js generation seems fine by me, but shortening the exported names gives most likely a worse experience. You would see list and maybe it's a validator, maybe it's an api call, and is it a list of users or a list of some other entity?
I don't have other 'breaking' housekeeping tasks planned. But other suggestions are welcome!

Part one done in #736 .

Splitting the generated files in $outputDirecotry/[group]/[generator].{ts,js}

Extracted to #755


Add new connectrpc/query-es plugin

This adds the @connectrpc/protoc-gen-connect-query plugin to the plugins repo.
Note this can't be merged until the package is officially published on npm.

@timostamm I named this connectrpc/query-es because I feel like connectrpc/query is a bit too vague and has a potential for name clashes down the road.

Once packages are available in the @connectrpc scope, the lock file needs to be generated.


Cerbo 3.0 Update in Read Me

The read me doesn't mention anything new regarding the Cerbo 3.0 Update.
I wonder if there are any incompatibilities after making the update.
@sfstar mentioned to update (but forgot because nothing major happened?):
https://github.com/sfstar/hass-victron/issues/82#issuecomment-1586135681

Cerbo 3.0 ist working fine with the integration


make Date of Assessment widget Date vs Date/Time for form_pscis assess

was giving 00:00:00 time

may as well replace date_time_start with date for simplicity too.


New feature request

Hello,
Possible to add feature which will allow user to either view entire tab or selected region of the tab in pip popup.

Thank you for your feedback!
Currently this extension relies on chrome.tabCapture API.
As far as I know it doesn't support selecting region.
https://developer.chrome.com/extensions/tabCapture
https://github.com/mtsmfm/pip-any-site/blob/a574da6a03dd215f16e4cdbe092d4ec3e6429a1c/background.js#L5
I have no idea how to achieve that though, any pull requests are welcome 😄

could you create something similar to firefox? There is not any solution like this


Abort experiment if MatchMaker is inactive

This does happen already - but there should be an option to tell the MatchMaker to abort immediately, not only when matching starts.


Fix typo in ModuleCmdletBase.cs

PR Summary
PR Context
explictly -> explicitly
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[ ] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[ ] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and opened an issue in the relevant tool repository. This may include:

[ ] Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode
(which runs in a different PS Host).

[ ] Issue filed:

[ ] Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.

[ ] Issue filed:

[ ] Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).

[ ] Issue filed:

[ ] Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

[ ] Issue filed:

@daxian-dbw Is it by design that now new PRs get tests from master branch and fails without rebase the dev branch?

/rebase

I'm not sure. Maybe @adityapatwardhan can comment?

@eltociear Thanks for your contribution!


How to handle events with mpld3 plots?

I am using flask and mpld3 to plot the graphs.
I have 2 plots being rendered initially when the plot_home() is called.However, when I click on each plot, I want it to call a python function plot_parameter() which will render another plot based on which plot is clicked.
I have tried writing this code but I do not know how to detect if first plot is clicked or second plot is clicked. If first plot is clicked, I want to plot a graph and if second plot is clicked I want to plot another graph. How to make these plot clickable such that it opens another plot when clicked?
from flask import Flask
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import mpld3

app = Flask(__name__)

@app.route('/')
def home():
    return plot_home()

def onclick(event):
    print 'button=%d, x=%d, y=%d, xdata=%f, ydata=%f'%(event.button, event.x, event.y, event.xdata, event.ydata)
   return plot_parameter()

@app.route('/')
def plot_home():
    fig = plt.figure()
    fig.set_size_inches(5,5)
    parameter_values = [1,2,3,4]
    axis = fig.add_subplot(211)
    axis.plot(parameter_values,'g')
    fig.canvas.mpl_connect('button_press_event', onclick)

    parameter_values = [5,6,7,8]
   axis = fig.add_subplot(212)
   axis.plot(parameter_values,'g')
   fig.tight_layout()
   fig.canvas.mpl_connect('button_press_event', onclick)
   mpld3.show()

@app.route('/')
 def plot_parameter():
     fig = plt.figure()
     fig.set_size_inches(5,5)
     if(first plot is clicked plot this graph)
        parameter_values = [9,10,11,12]
        axis = fig.add_subplot(211)
        axis.plot(parameter_values,'g')

    if(second plot was clicked plot this graph)
        parameter_values = [13,14,15,16]
        axis = fig.add_subplot(212)
        axis.plot(parameter_values,'g')
   mpld3.show()

if __name__ == '__main__':
    app.run(debug=True)

The event handling of plots can be done in a usual way using matplotlib. But the problem arises when we use flask. I dont think there is a direct way to do it using matplotlib as well in flask. If i get to know, I will surely add to the contribution :)
@danielballan Could you share your work on this? It will be really helpful for me.

Hi @ramkishore31. It looks like plot_parameter should take an argument -- either event or simply (event.x, event.y) to let it determine which plot was clicked. In other words, this looks like a problem you can solve with mpl, not necessarily involving anything special from mpld3.
My somewhat related work invoked IPython widgets instead of mpl events, and it is in #220 if you want to take a look.


add ruby 3.1.x

add ruby 3.1.x
in preparation for moving bosh to ruby 3.1.0
as ruby 3.1.0 supports openssl 3
the upcoming ubuntu-jammy runs on openssl 3

Shouldn't we also remove Ruby 2.6 that is already in security maintenance and soon to be EOL?
@rkoster any thoughts?

Let's have a separate PR / discussion for Ruby 2.6. We would need to investigate if there are still teams relying on it.

Thanks @ramonskie

@bgandon Have created a PR to remove 2.6: https://github.com/bosh-packages/ruby-release/pull/26


SubnetMask vs. PrefixLength

I suggest to use a 'PrefixLength' parameter instead of 'SubnetMask'. A subnet mask is a 4-octect value (like <IP_ADDRESS>) while the prefix length is an integer (from 0 to 32 for IPv4 and from 0 to 128 for IPv6).
The current naming is confusing because the SubnetMask parameter expects a prefix length and not a subnet mask.
Getting rid of subnet masks in favor of prefix lengths is also good as subnet masks are a thing of the past in IP routing.

@barcexwiki - I fully agree with you. But because this would be a breaking change it should be discussed further.
One suggestion I have is that if the xnetworking resource is going to be moved over to HQRM, this change could be done as part of that - HQRM will result in a breaking change anyway.
@travisez13, @kwirkykat?

I think we should do the change.  I don't see the point of delaying it.

@TravisEz13 - cool. Fair enough. I'm happy to make the change for inclusion into the next release if you like?

Working on this now. Should submit the PR later today.


Initial architecture and app shell

The application should have 3 main pages.

Home page: contains general information
Course page: displays the labs of a course
Lab page: renders a markdown file of a lab

Routing and app shell should be set up. All components, services and pages should have unit and E2E tests.
The course data should be stored in a JSON file and downloaded by a service. The menu and the course tables should be rendered based on this information. The metadata should only contain demo courses and labs. The markdown files should also be downloaded on demand.

Done


Address field on entry and profile screens

On the Self registration screen, for the Address fields, (the following tooltips were taken from

make line 1 required, add tooltip 'Flat, House no., Building, Company, Apartment' in the background.
make line 2 optional, add tooltip 'Area, Colony, Street, Sector, Village' in the background
make line 3 optional, add tooltip 'Landmark'

For City, add tooltip 'City/town/taluk' in the background
Move state above district. Make state a dropdown of all the Indian states. I have loaded a list of these in the LocationHierarchy table in the Azure server.
District can be a text field for now. After a list of districts in India is added to the LocationHierarchy table, this can be converted into a dropdown.
Make PIN Code required, only accept 6 digits - numbers, no space in between. If they try to leave it empty and submit, show a tooltip for PIN Code field that it is required and 'enter 000000 if not known'.
In the profile table, just show a caption of the address type, and then show the address as text right underneath the address type. Trim all the empty lines when a field was left blank. Use the following format for concatenation. E.g.:
Temporary residence:
4 Old Jail Road
Line 2, don't show empty line if left blank
Line 3, don't show empty line if left blank
Chennai, Chennai Dist
Tamil Nadu 600001
This will be easier to read and take less space than numerous text boxes for each line of the address.

Completed Address, City fields. State field with dropdown loaded from db and the validations mentioned. Profile screen changes also done. Please check latest release in the commit: 3acc6ddceebceb4a556845da8029f845e74a01b4


Error: write EPIPE

I try to use this to compress png files,but got errors.Here is the code:
[14:04:01] Starting 'imgmin'...
events.js:183
      throw er; // Unhandled 'error' event
Error: write EPIPE
    at _errnoException (util.js:1024:11)
    at WriteWrap.afterWrite [as oncomplete] (net.js:867:14)

and here is the script:
gulp.task('imgmin', function() {
    return gulp.src('qq/*.png')
        .pipe(pngout({
            strategy: 2
        })())
        .pipe(gulp.dest('dist'));
});

How can I fix it?

You have to attach error listener to the stream to see the actual error.
https://www.google.com/search?q=Error%3A+write+EPIPE+gulp&oq=Error%3A+write+EPIPE+gulp&aqs=chrome..69i57j69i58.951j0j1&sourceid=chrome&ie=UTF-8


Add some helper functions to arugements

Added a little Arg helper function that might be helpful

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 51 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.7%) to 57.898%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

overflow/argument.go
0
51
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-1.7%

Covered Lines:
1019

Relevant Lines:
1760

💛  - Coveralls


[Feature]Externalize application yaml

Application yaml includes a list of components, traits, policies and workflows, this could grow rapidly in size and make it difficult to maintain and support.
Similar to openAPI, it might be nice to allow user externalize some portion like component as an individual yaml file,  so we can keep the main application lean. we can also reuse some of the definition especially for traits and policy.

Great, suggestion. Currently, KubeVela Application supports external policy and workflow which allows you to move the complete workflow in a separate object and reference it in the application. This can help to you refactor your application and even reuse. However, the external policy by far mainly works for multi-cluster related policy (topology/override) and it is not for all types of policies. So moving general policy externally and reference it in the application could be a potential develop direction in the future. Thanks for the issue!

FYI, you can go to https://kubevela.net/docs/case-studies/multi-cluster#use-policies-and-workflow-outside-the-application this doc for external policy & workflow in KubeVela application.

External components and traits can cause confusion, one of the biggest concern is:
Should the application reconcile happen once the outside components/traits changed while the application resource doesn't changed?
We can also provide other solution for such kinds of needs, such as Application Template, just like the addon system of KubeVela, it will glue all resources using CUE with a programable way.

I was thinking about the static binding initially. i.e. give developer a friendly way to organize and write the application yaml. once the yaml file checked into git repo,  kubevela can build the application out of  the inputs. This might be easier than the dynamic binding as you described.


Surface the universal function invocation context

We need to make the universal function invocation context available to the rum collector code, so that the correct implementation for the current context can be selected.
It would also be good to see some of this metadata on the calling site. We could add an /info.json endpoint to report this or otherwise we could report it on the headers.

:tada: This issue has been resolved in version 2.3.0 :tada:
The release is available on:

v2.3.0
v2.3.0
GitHub release

Your semantic-release bot :package::rocket:


Website is down (Dom Reg or DNS)

First link in bottle docs is to CrystalData.org which is not responding, possibly due to problem with DNS configuration or domain registration.

OK, wow, the links were JUST updated, so...


Error Invoking the bash Method source - Recorder.bsf (System cannot find the specified file)

Expected behavior
I expect the process to be completed quietly without throwing any exceptions as I believe everything was prepared properly.
Actual behavior
The Load testi thread continues it's work but throws an exception for every process it starts.

Steps to reproduce the problem

Login to Moodle Site
Navigate to site administration/Development
Under development, choose option Create JMeter Test Plan
Complete process to create test plan then download the test plan together with the users.csv
Run JMeter using the Batch Script
Open the Moodle Generated Test Case
Import the users.csv
Run the Test Case after saving.

The moodle test case contains two threads basically. The Warm Up Site and Moodle Test thread(s).
The warm up runs and finishes without any errors but the 2nd one Throws the error in the issue title.
JMeter Version
5.6.2
Java Version
openjdk version 17
OS Version
Windows Version 10

Can you post the complete error?
Best to look into jmeter.log and copy them as text and not as graphics.
Look especially for the first few exception messages, as those are probably the most interesting ones.


eth_getLogs not working as expected

ganache response to eth_getLogs:
curl http://localhost:8545 \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getLogs","params": [{ "fromBlock": "0x4", "toBlock": "0x5", "topics": []}],"id":1}'
{"id":1,"jsonrpc":"2.0","result":[{"logIndex":"0x0","transactionIndex":"0x0","transactionHash":"0xa3efd4fc42f9c7184f23ec4d7b62b626521e3dda3768a8e61bc87e0ec953b097","blockHash":"0x62850366828e24eeb0c0df6b7a010a24b926278951d9195f386dbff2a9c92c7b","blockNumber":"0x4","address":"0x217b896620aff6518b9862160606695607a63442","data":"0x","topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000075e480db528101a381ce68544611c169ad7eb342"],"type":"mined","removed":false}]}%

bodhi.js response
curl http://localhost:8545 \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getLogs","params": [{ "fromBlock": "0x4", "toBlock": "0x5", "topics": []}],"id":1}'
{"id":1,"jsonrpc":"2.0","error":{"code":-32602,"message":"blocktag should be number | 'latest' | 'earliest' (argument=\"blockTag\", value=\"0x4\", code=INVALID_ARGUMENT, version=bodhi.js/providers/2.1.4)"}}%

https://github.com/AcalaNetwork/bodhi.js/issues/95
https://github.com/AcalaNetwork/bodhi.js/pull/104

TL;DR, By comparing these two data, you can find normal eth rpc use filed type hex, such as field: "blockNumber","logIndex","transactionIndex".

We find some rpc query on acala do not work, it due to the resp strcut from acala.
For most normal evm rpc, it use hex data type.
For example, we call evm chain such as ethereum,bsc,arb, eth by rpc "eth_getLogs".

The resp is always like this:
{
 "jsonrpc": "2.0",
 "id": 1,
 "result": [{
  "address": "0x358234b325ef9ea8115291a8b81b7d33a2fa762d",
  "blockHash": "0xe67aa40addf64a7a0850922dc160b72ba67c4071570922960d77941d8cb900a0",
  "blockNumber": "0x5fa016",
  "data": "0x7ebf0e016765a1fa31a3d45620cc673ba04c48baf4b23adeb09982c823a977f100000000000000000000000051d36e18e3d32d121a3cfe2f3e5771a6fd53274e00000000000000000000000051d36e18e3d32d121a3cfe2f3e5771a6fd53274e000000000000000000000000f4b2cbc3ba04c478f0dc824f4806ac39982dce730000000000000000000000000000000000000000000000000000000011d991500000000000000000000000000000000000000000000000000000000000000061196eb8416e00bc51ca8dc80e346e4581652b7a9874e6238015c6d72dc2aee8aa",
  "logIndex": "0xa",
  "removed": false,
  "topics": ["0x79fa08de5149d912dce8e5e8da7a7c17ccdf23dd5d3bfe196802e6eb86347c7c"],
  "transactionHash": "0x4e5924bcb72cdcde4887f130f7b312ae9a2c1505caf82b9a82276f461877e98e",
  "transactionIndex": "0x19"
 }]
}

While we call acala rpc with "eth_getLogs", it always returns resp below.
[{
 "blockNumber": 422586,
 "blockHash": "0xa1a07ccf1bb31e8da1e1d62cb5aecd3012f8596826ce750f976d7f1fdfb542a5",
 "transactionIndex": 0,
 "removed": false,
 "address": "0xe6F4a83eE9f946B86a2ef008dCD872f4a942DB24",
 "data": "0x426ab38338be5d42c2cafd1075db80e71965e43f87c11536d8cf0a0dae40d54300000000000000000000000029b563951ed0eb9ae5c49692266e1fbc81445cfe00000000000000000000000029b563951ed0eb9ae5c49692266e1fbc81445cfe00000000000000000000000064ff10dced55d2efeb47f132dd09d37616bfbd18000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000002532c0a3b36bf2a0bbe9a9e96ceeb0ef55ed415dfaafae68823b57bcbffab4e0cca",
 "topics": ["0x79fa08de5149d912dce8e5e8da7a7c17ccdf23dd5d3bfe196802e6eb86347c7c"],
 "transactionHash": "0x20220cf9d4bf9a666fc7507b47ae85339a81a899c958a83af644453243c86603",
 "logIndex": 1
}]


The Mix Chapter - First Pass

The Mix Chapter completed in Bangla. Requesting @masnun and @prio101 for a quick check :)

@masnun and @prio101 I added Pattern Matching while at it!

Thank you @code-shoily and @prio101!!


SPFx header application customizer loading twice

What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[ ] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details

SPFx version 1.13.1

Issue description
This Application Customizer provides a global Navigation for each Site in a Tenant.
This component is running in production since more than two years without any problems.
From around 800 Sites, there is one (and only one!) Site which shows the global Navigation twice.

Anybody else stepped into that issue?

The responsible user for this Site added the Global Navigation App to the Site. - That's all.
I have removed the App and everything is back to normal.


More outbound load-balancing/picking mechanisms

The reason why people have multiple servers out of the WALL is, the network condition is changing constantly, so we're struggling on choosing the fastest one. In most cases, we don't care about the network throughput at all because all oversea VPSs provided huge throughput.
So Round-Robin picking mechanism makes less sense, what we really need is to select the best one (e.g. the fastest one to view youtube video or the one with lowest latency) at the current time. Could you guys please provide an outbound picking mechanism based on the estimation of the target server? Simply the ping latency, further the real loading time of a particular target like google.com.
For me I have 4 ss servers oversea, but I find out that the condition of them changes all the time, maybe this is due to the route shifting of the ISP, I don't know. But the influence on me is that I have to change the target server manually. That's a really annoying thing. I have been using COW for now because it hits the most parts of my requirements but I like the flexibility of v2ray! And I would like to deploy an inland forward server based on v2ray, hope you guys put this feature on your list, thanks in advance!

Thank you. I need this feature. When some server been blocked, how to smartly find the fast and available server from multi outbound servers is important, or some app without retry mechanism could be in a dead end.

Issue transferred.


chore(main): release 0.4.4

:robot: I have created a release beep boop
0.4.4 (2024-10-18)
Features

[pt1.] version cmd (#281) (563e0a3)
allow overriding env vars in flows (#270) (657df8a)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/kurtosis-tech/kardinal/releases/tag/0.4.4 :sunflower:


Avoid some chain client and chain state locking.

Motivation
In #1066 we are seeing deadlocks that seem to be related to chain clients and chain guards. Some of the locking we do isn't even necessary.
Proposal
Don't cache chain state views returned by the GraphQL chain query. Use storage directly in the QueryRoot, rather than locking chain clients.
Test Plan
No business logic was changed.
Release Plan
N/A
Links

Commit that reproduces the deadlock: https://github.com/linera-io/linera-protocol/pull/1066/commits/bc2b84812ca7d03d660e3898c4fcdb03d548a276
reviewer checklist

Yes, I'm not entirely sure what gets cached; and I can confirm that it doesn't fix the deadlock.


feat: hl groups for 'p00f/nvim-ts-rainbow'

You need to add the file to lua/nordic/colors/init.lua.

You need to add the file to lua/nordic/colors/init.lua.

Of course, thank you for the hint.

Could you share a screenshot of how this looks ? :blush:

Sure,

LGTM. Thanks!


Ken/heartbeat

Summary

Changelist

Testing Done

Resolved Issues

Checklist
Please change [ ] to [x] when you are ready.

[ ] I have read and followed the code conventions detailed in README.md (This will save time for both you and the reviewer!).
[ ] If this pull request is longer then 500 lines, I have provided explicit justification in the summary above explaining why I cannot break this up into multiple pull requests (Small PR's are faster and less painful for everyone involved!).

@garethellis0 Can you give this a quick first pass? It's pretty much done; Just haven't ported it to all the boards.


Request: Change domain of numeric datapoints

Feature request: change entity domain for numeric datapoints to "number"
For statistical purposes it would be great if the entity from numeric datapoints could be categorized as numbers, not as sensors.
Currently all numeric datapoints, which are not writeable are "normal" sensors. So you can't use the built-in historical view as the and the statistics of home assistant can't use the value (see: https://www.home-assistant.io/integrations/statistics/)
Here's a screenshot of a numeric datapoint, which is a "normal" sensor:

And here's a screenshot of a numeric datapoint, which is a "number" sensor, because it is writeable & percent/temp:

I would change the definition of the categorization from:
# Number + NOT Writeable + Percent/Temp = Sensor
# Number + Writeable/NOT Writeable + OtherType = Sensor

to:
# Number + NOT Writeable + Percent/Temp = Number
# Number + Writeable/NOT Writeable + OtherType = Number

Example datapoint description of "Brennerstarts Stufe 1" (OZW JSON):
{
  "Description":
    {

      "Type": "Numeric",
      "Value": "7099.000000",
      "Unit": "",
      "Name": "Brennerstarts Stufe 1",
      "Min": "0.000000",
      "Max": "2147483647.000000",
      "Resolution": "1.000000",
      "FieldWitdh": "10",
      "DecimalDigits": "0",
      "HasValid": "false",
      "IsValid": "true"
    },
    "Result": {
      "Success": "true"
    }
}

Hi.  This is a good idea.
The Non-Writeable Number sensors I support today are only Percent or Temp Sensors.  I will look into adding support for non-writeable generic numbers.

The next release will have this fix in.  Implemented as a Sensor with statistics.

Domain changed for numerics


Zephyr

initial partial support for zephyr OS. it allows this repo to be "imported" (by west) as a module into an existing Zephyr OS project (see for example https://github.com/cooked/zephyr-trinamic)

Hello,
your pull request is very special for Zephyr OS and can't be supported by us. Please add these files directly in Zephyr OS.
Regards,
Enrico

Hello,
your pull request is very special for Zephyr OS and can't be supported by us. Please add these files directly in Zephyr OS.
Regards, Enrico

There are like 5 simple files that make it much simpler to use your API with Zephyr, is there a reason you don't want to be nicely integrated into the biggest state of the art RTOS?


Build fails

Issue template

Hardware description: Arduino Portenta H7 machine control
RTOS: mbed
Installation type: from source
Version or commit hash: latest master from this repository

Steps to reproduce the issue
On a Clean Ubuntu 20.04 LTS:
sudo apt install python3-pip
sudo apt install ninja-build
sudo apt install arm-none-eabi-g++
git clone https://github.com/Kitware/CMake/; cd CMake
git checkout v3.19.8
./bootstrap && make && sudo make install
cd ..
cd micro_ros_mbed
pip3 install catkin_pkg lark-parser empy colcon-common-extensions
pip3 install prettytable future jinja2 intelhex
pip3 install mbed-tools
mbed-tools deploy
mbed-tools compile -m PORTENTA_H7_M7 -t GCC_ARM -f

Expected behavior
Compiles with no errors
Actual behavior
# mbed-tools -v compile -m PORTENTA_H7_M7 -t GCC_ARM -f
Configuring project and generating build system...
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python3: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter
-- Checking for Python package prettytable -- found
-- Checking for Python package future -- found
-- Checking for Python package jinja2 -- found
-- Checking for Python package intelhex -- found
micro_ros_mbed
-- Configuring done
-- Generating done
-- Build files have been written to: /micro_ros_mbed/cmake_build/PORTENTA_H7_M7/develop/GCC_ARM
Building Mbed project...
[7/291] Performing build step for 'libmicroros_project'
make: Nothing to be done for 'all'.
[18/291] Building C object CMakeFiles/micro_ros_mbed.dir/mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/rtx_kernel.c.obj
../../../../mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/rtx_kernel.c: In function 'svcRtxKernelInitialize':
../../../../mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/rtx_kernel.c:93:3: warning: 'memset' offset [17, 164] from the object at 'osRtxInfo' is out of the bounds of referenced subobject 'kernel' with type 'struct <anonymous>' at offset 8 [-Warray-bounds]
   93 |   memset(&osRtxInfo.kernel, 0, sizeof(osRtxInfo) - offsetof(osRtxInfo_t, kernel));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[31/291] Building CXX object CMakeFiles/micro_ros_mbed.dir/main.cpp.obj
FAILED: CMakeFiles/micro_ros_mbed.dir/main.cpp.obj
/usr/bin/arm-none-eabi-g++ @CMakeFiles/micro_ros_mbed.dir/main.cpp.obj.rsp -MD -MT CMakeFiles/micro_ros_mbed.dir/main.cpp.obj -MF CMakeFiles/micro_ros_mbed.dir/main.cpp.obj.d -o CMakeFiles/micro_ros_mbed.dir/main.cpp.obj -c ../../../../main.cpp
../../../../main.cpp:3:10: fatal error: rcl/rcl.h: No such file or directory
    3 | #include <rcl/rcl.h>
      |          ^~~~~~~~~~~
compilation terminated.
[40/291] Building CXX object CMakeFiles/micro_ros_mbed.dir/mbed-os/drivers/source/BufferedSerial.cpp.obj
ninja: build stopped: subcommand failed.
ERROR: CMake invocation failed!

I have replicated your use case with correct results, at the end I have the binary: https://asciinema.org/a/ECQ3Is1P9SvgiuWLaZNmX5ViO
Maybe the only difference is this part:
cd micro_ros_mbed
echo https://github.com/ARMmbed/mbed-os/\#mbed-os-6.10.0 > mbed-os.lib
mbed-tools deploy
mbed-tools compile -m DISCO_L475VG_IOT01A -t GCC_ARM

But I guess that this is part of mbed installation process. Let us know if it works and we can update the README.md

I did the changes you suggested but I get:
CMake Warning (dev) at /opt/ros/galactic/share/rosidl_typesupport_cpp/cmake/rosidl_typesupport_cpp_generate_interfaces.cmake:84 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
Call Stack (most recent call first):
  /micro_ros_mbed/micro_ros_dev/install/ament_cmake_core/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
  /micro_ros_mbed/micro_ros_src/install/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions)
  CMakeLists.txt:16 (rosidl_generate_interfaces)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
  (Required is at least version "3.5")
Call Stack (most recent call first):
  /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.19/Modules/FindPythonLibs.cmake:310 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /opt/ros/galactic/share/python_cmake_module/cmake/Modules/FindPythonExtra.cmake:133 (find_package)
  /opt/ros/galactic/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:23 (find_package)
  /micro_ros_mbed/micro_ros_dev/install/ament_cmake_core/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
  /micro_ros_mbed/micro_ros_src/install/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions)
  CMakeLists.txt:16 (rosidl_generate_interfaces)

Make sure that your ROS 2 is not sourced. Also, make sure that you are not sourcing your ROS 2 installation in your .bashrc.

Un-sourcing ROS2 did the trick:
unset ROS_VERSION
unset ROS_PYTHON_VERSION
unset AMENT_PREFIX_PATH
unset PYTHONPATH
unset LD_LIBRARY_PATH
unset ROS_LOCALHOST_ONLY
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
unset ROS_DISTRO

Thanks for the tip.
Can I ignore this error in the end:
[291/291] Linking CXX executable micro_ros_mbed.elf
-- built: /emily_microros/ros2_ws/micro_ros_mbed/cmake_build/PORTENTA_H7_M7/develop/GCC_ARM/micro_ros_mbed.bin
-- built: /emily_microros/ros2_ws/micro_ros_mbed/cmake_build/PORTENTA_H7_M7/develop/GCC_ARM/micro_ros_mbed.hex
| Module             |         .text |       .data |          .bss |
|--------------------|---------------|-------------|---------------|
| [fill]             |     124(+124) |       7(+7) |       47(+47) |
| [lib]/c.a          |   9880(+9880) | 2116(+2116) |       60(+60) |
| [lib]/gcc.a        |     920(+920) |       0(+0) |         0(+0) |
| [lib]/microros.a   | 44316(+44316) |   160(+160) |   9803(+9803) |
| [lib]/misc         |     248(+248) |       4(+4) |       28(+28) |
| main.cpp.obj       |     396(+396) |       0(+0) |         8(+8) |
| mbed-os/cmsis      |   6998(+6998) |   168(+168) | 22112(+22112) |
| mbed-os/drivers    |   1696(+1696) |       0(+0) |         0(+0) |
| mbed-os/hal        |   1636(+1636) |       8(+8) |     114(+114) |
| mbed-os/platform   |   6302(+6302) |   276(+276) |     464(+464) |
| mbed-os/rtos       |     226(+226) |       0(+0) |         0(+0) |
| mbed-os/targets    | 19408(+19408) |     13(+13) |   1564(+1564) |
| transports.cpp.obj |     462(+462) |       0(+0) |   2208(+2208) |
| Subtotals          | 92612(+92612) | 2752(+2752) | 36408(+36408) |
Total Static RAM memory (data + bss): 39160(+39160) bytes
Total Flash memory (text + data): 95364(+95364) bytes

ERROR: No Mbed enabled devices found.

Well, I guess that ERROR: No Mbed enabled devices found. means that it is not able to flash any device because the device is not recognized or the device is not connected.

Thanks. This can be closed now

Two small questions:

is CMake 3.19 really required? It is not available in any stable Ubuntu release.
is there a technical reason why Ethernet transport is not supported on the PORTENTA_H7_M7 target? I would like to implement it, but if there is a technical reason why it will not work, then I would like to not waist my time.

Two small questions:

is CMake 3.19 really required? It is not available in any stable Ubuntu release.

If I remember well it is a mbed requirement, I should check. But micro-ROS do not need CMake 3.19. Let us know if you give a try.

is there a technical reason why Ethernet transport is not supported on the PORTENTA_H7_M7 target? I would like to implement it, but if there is a technical reason why it will not work, then I would like to not waist my time.

No, there is not. We just implement serial transport for simplicity. You can implement networking transport using the mbed networking API. Here you have some info about micro-ROS external transports: https://micro.ros.org/docs/tutorials/advanced/create_custom_transports/ . In this case, you just need to implement a UDP transport in the client side because agent already supports UDP.
It would be super nice if you can contribute this work to this repo so other users can use mbed with micro-ROS network transports. Do not hesitate to open a new issue if you have any problem developing it.

BTW with network transport, you will need to disable the framing interface when setting the transport callbacks.


fix Incorrect computation of Label Height in some ConstraintLayout

Update to #31

@badoualy Please review the PR

Sorry for the delay, merged :)
Thanks for the participation on this lib!


Completely disallow injecting transform input artifact as java.io.File

This corrects the error message produced when injecting @InputArtifact as anything other than a Provider<FSL> to not include java.io.File as an option. It also removes the now unnecessary documented failure and the special test case targeted at File.
Fixes #15546.

@bot-gradle test QFL please.

OK, I've already triggered the following builds for you:

QuickFeedbackLinux build

@bot-gradle test and merge.

OK, I've already triggered a build for you.


Implement minimum bet and raise amount

You have to at least double the previous bet in no-limit Texas Holdem when you make a raise. The least you can bet is the same amount as the big blind.
E.x.lets assume the blinds are 50/100 in a no limit game. Player 1 who is first to act after the big blinds (pre flop) raises to 300. With 100 blinds this means that the actual raise is 200. The minimum that player 2 (Wood) could raise to is therefore 500 (300+200).
The rules are the same for all betting rounds. But in each new betting round the minimum bet is always goes back to the same size as the big blind.

This is known issue. Currently we don't have time to implement it and the AI battles will be played that way.


[Help] Loading popup in active session

Hello guys,
you have built a neat library but there is something I am not sure how to do, in the web application I am building I have a token ot access API stuff and after that I can review products that are a popup to the main page that change the url to something like https://www.domain.com/products/productID I have already made the initial route to transit to the home page if token is valid what I want to achive is if I send that link to another user that is already logged in to show him the same popup as with this user when I type the Id i always get redirected to products back.
Any idea how to achive that ?

Hey @dimityrivanov :wave:
Can you provide some details on how you solved your problem and what was it exactly?


docs: Write a guide on update strategies

This comes from frequent questions in the Discord. I'm sure
there is more we can do here.
Fixes https://github.com/shorebirdtech/shorebird/issues/1130
Fixes https://github.com/shorebirdtech/shorebird/issues/1123

Opened https://github.com/shorebirdtech/docs/pull/129 with suggestions

Honestly we should just land this (or something like it) and you and others should rework it to their heart's content.  I'm sure we'll get feedback from customers too.


Does the library implement queue for sockets?

I have a real time application that uses react native udp. my application send packets every 1000 msec. What is the best way of using this library for my purpose?
Does the library implement queue for sockets? And I can use one socket for all packets (if it's possible) ?
Or I've to create a socket for every packet and close it in the end of receive response?

@baharb, you should create one socket and send a package each time with the same socket. You could use setInterval() for this purpose.

@baharb, you should create one socket and send a package each time with the same socket. You could use setInterval() for this purpose.

@Rapsssito , tnx for reply.
I had implemented this, but there is a problem.
If I create a socket, and bind that, I can't bind that socket any more, for other packets. (Error: Socket is already bound )
If I bind one time, when the socket was created, the app stop sending packets.


Upgrade akita to latest

https://ucsc-cgl.atlassian.net/browse/SEAB-2524

I am wary of such a big Akita version change, since it is a key component almost everywhere. Even though all the tests passed....
Going to wait until for Gary to approve first.

I had the same thought, definitely don't want to merge without Gary. In addition, I wonder what kind of tests would give you more confidence? The fact that nothing broke could speak highly to the akita developers for keeping API parity?

In addition, I wonder what kind of tests would give you more confidence?

I think our tests are fairly comprehensive, but I still can't quite get over a 2 major version upgrade for a major component requiring no changes.

The fact that nothing broke could speak highly to the akita developers for keeping API parity?

Could be... I have vague recollections of Gary mentioning some Akita migration being difficult.

The migration difficulty depends on which major version.  Sometimes there's a lot of breaking changes, sometimes there is not.  In particular, check that the akita-ng-forms-manager still works.

At Gary's suggestion I tested out the parts of the site that rely on akita-ng-forms-manager: Collections and Organizations. I was able to add an organization, edit its members, create a collection, modify the collection, and add entries to it. If anyone has other suggestions of parts to test before this is merge-able feel free to ask. It does seem to me like this is covered by the cypress tests, too https://github.com/dockstore/dockstore-ui2/blob/develop/cypress/integration/group2/organizations.ts#L134


compressed file for mnist dataset

Description
Motivation and Context
The changes were motivated by the need to improve model accuracy, generalization, and evaluation comprehensiveness. The enhanced CNN architecture and optimization techniques aim to address overfitting and performance issues observed in the initial model.
Dependencies
TensorFlow or PyTorch (for building and training the CNN)
Scikit-learn (for additional metrics and hyperparameter tuning)
Numpy and Pandas for data handling and preprocessing
Matplotlib for data visualization
Fixes # 326
Type of change

[x] Added a new machine learning frameworks, libraries or software.
[x] Documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

@sanjay-kv  now is the file size ok ?


Multiple subject-level RBAC bindings per principal are ignored

Describe the bug
JulieOps ignores subject-level role bindings if topology file contains more than one subject per principal.
To Reproduce
Run JulieOps against RBAC enabled cluster using the following topology file.
(note - no topic definitions required to reproduce the bug)
context: "dev"
projects:
  - name: "orders"
    schemas:
      - principal: "User:user_a"
        subjects:
          - "subject_a"
          - "subject_b"
    topics: []

JulieOps creates only one subject-level role bindings for user_a: either for subject_a or subject_b.
Expected behavior
JulieOps creates two subject-level role bindings for user_a: for subject_a and subject_b.
Screenshots
If applicable, add screenshots to help explain your problem.
Runtime (please complete the following information):

OS: Windows
JVM version: 11
Version 2.1.2

Technically the root cause is that AccessControlManager.buildUpdateBindingsActions() collects all TopologyAclBindings into Set:
    Set<TopologyAclBinding> allFinalBindings =
        eitherStreamOrError.stream()
            .filter(Either::isLeft)
            .flatMap(e -> (Stream<TopologyAclBinding>) e.getLeft().get())
            .collect(Collectors.toSet());

Both subject-level bindings look exactly the same for this Set, i.e. they're equal. Hence only of them is preserved by the Set and another one is evicted. See defnition of TopologyAclBinding.equals() and my added comments:
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TopologyAclBinding binding = (TopologyAclBinding) o;
    return getResourceType() == binding.getResourceType()   // this is set to CLUSTER in both ACLs
        && getResourceName().equals(binding.getResourceName())   // this is set to "cluster" in both ACLs
        && getHost().equals(binding.getHost())   // this is set to "*" in both ACLs
        && getOperation().equals(binding.getOperation())   // this is set to "ResourceOwner" in both ACLs
        && getPrincipal().equals(binding.getPrincipal())   // this is set to "User:user_a" in both ACLs
        && getPattern().equals(binding.getPattern());   // this is set to "LITERAL" in both ACLs
  }

The only difference between these two TopologyAclBindings is in the scope field (which contains name of the subject internally) but it isn't checked by the equals() and hashCode() methods.
However, as I already mentioned in https://github.com/kafka-ops/julie/issues/285#issuecomment-849930431, I'm not sure why subject-level rbac bindings are cluster-level:

I guess the bigger question is why subject-level RBAC binding is considered as cluster-level binding. Does it properly represent actual domain model of the RBAC?

Hi @lsolovey, indeed, I've fixed this issue by adding the scope in the to functions (hashCode and equals).
I can add the fix to the PR #301 with a test. Wdyt ?

I thought that your fix in #301 would be sufficient as-is to fix this bug.
Your new code in RBACBindingsBuilder.setSchemaAuthorization() already does this now:
    return subjects.stream()
        .map(
            subject ->
                apiClient
                    .bind(principal, RESOURCE_OWNER)
                    .forSchemaSubject(subject)
                    .apply("Subject", subject))

It should create TopologyAclBinding with resourceName set to the subject name instead of "cluster" constant. Hence even current implementation of equals and hashCode should work properly based on the difference in resourceName field .
Regarding adding the scope to equals and hashCode - this is risky. There is a logic to load actual ACL's from cluster, and compare them with proposed ACLs to calculate the diff to be actually applied to cluster.
See AccessControlProvider.listAcls(), and how is it used.
So, the problem is that these "actual" ACLs from cluster don't have the scope set. Therefore this diffing logic may be broken if you include scope in the equals and hashCode.


Svelte working branch

Here it is.

Merge will need some cleanup but off we go


reject after resolve?

Hi,
in https://github.com/jyu213/ssh2-sftp-client/blob/master/src/index.js#L73
there is (in the get() function)
                let stream = sftp.createReadStream(path, options);
                stream.on('error', reject);
                resolve(stream);

however, the reject() is not called (for example on a missing file) because resolve() was already called.
I'm not sure, but perhaps it should be something like:   stream.on('readable', ()=>resolve(stream)) so that it waits until the stream is readable? Still learning about streams.

So I worked past this like so.
I had this:
sftp.get(path)
.then(doSomethingWithStream)
…

but it would never continue if the file was not found.
I changed it to:
sftp.get(path)
.then((stream) => new Promise((resolve, reject) => {
   stream.on('error', reject);
   doSomethingWithStream(stream)  //
   .then(resolve, reject);
})
.then(…) // worked! Continue chain…
.catch((e) =>{
   // error; could be file not found or something else
})

I tried stream.on('readable', …) but that didn't work— listening to that event caused the stream not to be usable later on somehow.
Thanks!

@srl295 thanks for your advise.I will fix it later.
how about use stream.on('end', ...)?

Any news on this?

update new version 2.0.1

For future reference, the fix was done in ab32b227f.


All content types for inline bots

https://core.telegram.org/bots/api#inlinequeryresult

Related #32
I will implement the whole Result type thing on my own unless the author won't get in touch any soon.

#50 implements a little over half of these.


Fix SSA for Checkpointed VHD Disks on HyperV

In order run SSA correctly on previously checkpointed (snapshotted)
VHD format virtual disks on HyperV, the hyperv_connection
must be passed to MiqDisk.getDisk() when it is called to get the parent
disk.
VHDX disks are already working in this scenario.
@roliveri @Fryguy @chessbyte Please review and merge when appropriate.  Thank you.

Looks good to me.


Making exterior doors appear in the description of a RoomWithDoor

Previously, the exterior doors didn't appear in the description when we were inside a room with an exterior door.

Thanks for catching this! If you're interested, I'm happy to send you draft PDFs of the upcoming 4th edition that we're still working on. I think we made some really nice improvements to the upcoming chapters.

My pleasure, I'm enjoying the book and would happily continue practicing from the new draft and see if I catch any more mistakes. My email is erik.martinessanches at gmail dot com.

I just sent you an invite to a private repo. I hope you enjoy the new edition! It's in very good shape right now, but it's still a draft so definitely let us know if you find any mistakes.

Thanks, I've accepted, yes will let you know if I spot any mistakes. Looking forward to checking out the new edition!


libign_ros2_control-system.so: undefined symbol

When I run this command:ros2 launch ign_ros2_control_demos cart_example_effort.launch.py,
the whole program crashes and the log output is  ign gazebo server:

symbol lookup error: /opt/ros/humble/lib/libign_ros2_control-system.so: undefined symbol: _ZN18hardware_interface15ResourceManager9load_urdfERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbb

[ERROR] [ros2-4]: process has died [pid 26055, exit code 2, cmd 'ros2 control load_controller --set-state active joint_state_broadcaster'].

Is there a solution?

Which operating system are you using, and how did you install ign_ros2_control?

I fixed with:
sudo apt-get update
sudo apt-get upgrade
and then compiling from source.
I also added:
export IGN_GAZEBO_SYSTEM_PLUGIN_PATH=/opt/ros/humble/lib/
export GZ_SIM_SYSTEM_PLUGIN_PATH=/opt/ros/humble/lib/
to .bashrc
hope this help

the solution not workout for me.is there another solution for this


The layoutParams of the view are not being displayed properly.

fix in https://github.com/CoXier/LayoutInspectorV2-Pro/commit/83d4d79eee931faada11709c4f7c16cbd2bcb973


Fixed #479, updated scheduling for :year

" every :year, at: 'July 24th' " was considering

month as December by default
time was considered as 12:00

Updated code in way that it should consider

month (if provided) or should set January as default instead of December
default time should be beginning of the day

Closing in favour of https://github.com/javan/whenever/pull/692


Integration Test - Release - 2021/12/27 04:14:49

Auto create for integration test. IssueCommandFlow

#pri1


Flaky test: DockerSuite.TestContainerWithConflictingSharedNetwork

Observed in #25820
Output:
19:08:29 ----------------------------------------------------------------------
19:08:29 FAIL: docker_cli_run_test.go:3944: DockerSuite.TestContainerWithConflictingSharedNetwork
19:08:29
19:08:29 docker_cli_run_test.go:3958:
19:08:29     c.Assert(out, checker.Contains, runconfig.ErrConflictSharedNetwork.Error())
19:08:29 ... obtained string = "error during connect: Post http://%2Fgo%2Fsrc%2Fgithub.com%2Fdocker%2Fdocker%2Fbundles%2F1.13.0-dev%2Ftest-integration-cli%2Fdocker.sock/v1.25/networks/testnetwork1/connect: EOF\n"
19:08:29 ... substring string = "Container sharing network namespace with another container or host cannot be connected to any other network"
19:08:29
19:08:37
19:08:37 ----------------------------------------------------------------------

ping @mrjana @aboch @sanimej

Looks like real failure. Closing for now.


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v5.10.76",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=93be0eeea14cf39235e585c8f56df3b3859deaad"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "93be0eeea14cf39235e585c8f56df3b3859deaad",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "ocfs2: mount fails with buffer overflow in strlen\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.10.76 by commit 93be0eeea14cf39235e585c8f56df3b3859deaad. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1002043


Support programmatic pairing selection instead of build constraints

Currently, choosing between BN256, BLS377, and BLS381 is a compile-time decision controlled by build constraints. If none of bn256, bls377, or bls381 are provided as build tags, the library is currently unusable.
The current situation is undesirable for several reasons:

Go libraries should be usable with a simple go get and without the need for a Makefile or adding custom build tags. Relying on the Go toolchain to handle all of this allows the project to be painlessly used as a (possibly transitive) dependency.
Users of the library may need to work with a specific pairing. For example, proving statements about a custom twisted Edwards curve requires that the curve's field is the order of G1, and so users that provide such curves and make assumptions about them must also have a guarantee that gnark is using the correct pairing.
Build constraints in Go are primarily meant for including architecture-specific optimizations (see for example the use in big and other uses in the standard library). The infrastructure is built around this intended use. Because of this, gnark is currently difficult to use as a transitive dependency. For example, if a developer writing an application depends on a networking library, that networking library depends on a crypto library, and that crypto library depends on gnark, then the application developer is now responsible for choosing the pairing used by gnark even though they are likely in no position to make an informed choice.
If Library 1 depends on gnark and requires BLS381, and Library 2 depends on gnark and requires BLS377, then no application can depend on both Library 1 and Library 2.

While most of these issues could be solved by simply making one pairing the default (e.g., BLS381) when the other build tags are not present, that would pose a problem in the future if the default option is shown to have a security flaw, because then the default could not be changed without breaking old users.
The behavior that I would expect as a library user after this enhancement would be:

Expose all of the different pairing choices in the API and let the user choose between them based on which packages they import.
In cases where exported functions need to access the underlying pairing, allow the user to pass in the pairing that is in use (either with an interface implemented by other parts of the library or, less desirably, with a constant) or extract that information from the unexported contents of other parameters.
If a default is provided, then ensure that there is some way to detect that an old default is in use and behave accordingly if the default is changed in the future.
Export information about the different pairing choices (e.g., the order of the groups). It would be convenient for users requiring a specific pairing to ask the library for the modulus rather than assigning a big.Int themselves.

Fair points, here is the though process we had and the (current) options:

Currently, gnark uses bls377 as default, if no build tags is specified. So all the go commands should work. The Makefile is for users needing a CLI, supporting all curves.
#16 is on our short-term roadmap --> in short, the ecc package won't be in  gnark, and gnark will just import the curve it needs through go.mod.
If users need to add their own curve (which we don't suspect is a widespread need), that's generated through our ecc generation, I suspect the best path would be either to open a PR to gnark to add a build tag and a cs/internal/curve.go, or fork gnark . Is that what you had in mind or do you mean using an existing gnark curve code, with a different pairing function?

We rely on build tags for performance reasons.
In an ideal world, we have generics, and groth16 algorithms use them .
Another option, in the cs package, is to use interfaces for the curve, the points and the field elements. Problem is: as the circuits scale, we manipulate hundred of millions of these objects and interfaces being pointer, we have (significant) GC overhead and performance impact (memallocs).  At a minimum, we need the prover data structures to be pointer-less (no slice, no interface, no pointers).
Yet another option, is to duplicate cs code through code generation, and have them sit in either different subpackages or different github branches, solving the transitive dependency issue you raised.
It is still unclear to us how to achieve "having curve as a programmatic parameter" to the whole cs package, will keep the issue open and see if we can find a solution that's elegant and doesn't affect performance.

That makes sense. After using gnark for a bit longer I think that explaining my particular use will help to get at the underlying issues.
I am writing a cryptography library that is intended to be used by other developers. I'm using gnark internally to prove and verify some statements, but the developers using my library should not know or care about this. Specifically, I am using the twisted Edwards curves provided by gnark. I am using the group operations and gadgets in cs/std/{gadget,reference}/algebra/twisted_edwards for the proofs and public computations.
It makes sense that the Makefile is only for the gnark CLI and not for libraries, which is perfectly reasonable assuming that build tags are required. I was unaware that BLS12-377 is an automatic default because I was using twisted_edwards.GetEdwardsCurve() to initialize the CurveParams that I use, but while there are curves defined for use with BLS12-381 and BN-256, there is none for BLS12-377. (As an aside, ZEXE does propose parameters for such a curve, but it is not included in gnark: see IACR 2018/962 Figure 16 and the ZEXE repository where it is given A = -1 and D = 3021 with cofactor 4 and an allegedly random generator.)
It is the definition of this twisted Edwards curve that depends on the build tags in use, since the CurveParams are only valid when G1 has the expected order.
I think that a lot of the problems here can be solved as part of #16. If a twisted_edwards.GetEdwardsCurve() function is defined for BLS12-377 using the ZEXE curve, then it will be possible to blindly call that function to get some appropriate curve for the application. However, this still doesn't address the problem that if I were to define my own CurveParams and the program was compiled with different build tags, the only indication of anything being wrong would be that proofs would fail.
I can see two clear ways to move forward:

Provide a convenient mechanism for callers to determine which curves are in use (i.e., bls377, bls381, bn256, or something else.) While it would be possible to do this by checking the build tags in my own library, this would be brittle if new curves are added to gnark later (since I would need to distinguish between the absence of tags meaning bls377, or an unknown tag meaning something else). Something that returns the current ecc.ID would work (perhaps it already exists and I just missed it in the documentation, but the only usage GoLand can see is in the gob implementation).
Given this mechanism, callers would have two choices: they could either ensure that they make no assumptions about the curves in use (most likely the case for most users), or they could use the mechanism to expect a specific setting (probably BLS12-377 to avoid forcing their own users to specify gnark build tags in their application) and panic early if the compilation uses something else.

Somehow allow the caller to specify which setting to use at runtime.

The second option was my original suggestion, but it sounds like that might be impossible for performance reasons. I haven't looked at the gnark internals at all, but it sounds like you've already explored this possibility. My initial thought was that you could define an interface with unexported functions that capture the behavior of everything curve-specific in internal and use the code generator to produce implementations to pass around at runtime. I understand that this introduces pointer dereferencing overhead, but it's not clear to me why it should necessarily add GC pressure. In any case if benchmarks have shown that the overhead from indirect function calls alone is already too much overhead, then this option is truly a non-starter.
The first option does not solve the dependency problems I mentioned initially, but it does at least allow curve-dependent applications to use gnark in a safe way.
Aside from the lack of a twisted Edwards curve for BLS12-377, the only other issue that I've encountered in my application is that most curve-related functions require a cs/internal/curve.Element, which is an internal type. Although I can initialize values with cs.Element(...), my application requires interpreting the value as a big.Int in regular form, doing some arithmetic, and converting back to Montgomery form, as well as various other manipulations. I can't see a way to do this other than importing ecc/bls377/fr and type converting to fr.Element, but this adds an explicit dependency on BLS12-377 when I otherwise might not need one. These scalar operations are also application specific and thus should not be upstreamed to gnark. This particular issue would be solved if curve.Element is made public as part of #16 or if cs_api.go is expanded to include more operations on fr.Element.

You can already do something like:

import "github.com/consensys/gnark/cs"
import "github.com/consensys/gnark/ecc"

func init() {
  if cs.CurveID != ecc.BLS377 {
     panic("...")
  }
}

Although, that do constrain you to use the default build tag of gnark, which is far from ideal.

Problem is "everything curve specific" includes the data structures (proving and verifying key for example) and the field elements that are used throughout the prover (in the constraint solver and the fft for example). Pointer dereferencing is costly for field operations, but memory allocations and garbage collection indexing is even more so, especially when we scale to very large circuits (>10M constraints), where memory management matters.

So, another idea that I'm looking at, that may be beneficial to this issue (and perf related stuff): generate code for the prover. Technically, usually (as far as we know) users don't need to "dynamically" define circuits. They write the circuit once, run the setup, and then, in application-specific code, prove and verify execution of the circuit. Similarly, we don't see use cases where one would want to dynamically change the proving scheme or the underlying curve. What I propose is the following workflow:
a. You write your circuit, with the APIs in cs_api.go
b. From that circuit object, you "export" the groth16 code (ie generate Go code). Which means, in your library, you have an "internal" go generate action to generate go code that is typed to a curve (and, not related to dependency but to perf, since we know the size of the circuit, we can better manage memory and do some precomputations for the prover).
c. the generated code mostly only depends on ecc/bls381[bn256,...] -- your library users don't need build tags. Your library need build tags only to re-generate the circuit code.

--> Do you think that would fit your needs?

On the other issue you mentioned, about exposing cs.Element . Correct me if I'm wrong: you're talking about the circuit definition phase, correct? That is, when you use std/reference/algebra (the reference part, not the gadget one?), you're force to call func NewPoint(x, y curve.Element) Point { or func (p *Point) ScalarMul(p1 *Point, ecurve CurveParams, scalar curve.Element) *Point { but handling curve.Element type on your side is not .. possible without strong typing, correct?

Ah, somehow I missed the cs.CurveID field. Yes, that at least makes it safe to rely on a particular curve, but does not help with multiple dependencies relying on different curves. The performance issues also make sense; thanks for clarifying.
Indeed, I do not need to dynamically generate circuits for my application. Since defining a new circuit requires a new trusted setup, applications that do this dynamically would need some fairly elaborate infrastructure for dynamic trusted setups that would be eyebrow-raising to say the least. The go generate solution would be excellent and would solve all the problems I've raised in this issue (at the cost of excluding that dynamic circuit definition case).
For the cs.Element issue, the problem is not just during circuit generation but mainly during circuit usage. I'm defining a circuit that is used to prove statements about curve points. However, these points are the output of the actual computation that I'm doing, and that computation requires doing arithmetic on scalars and performing scalar multiplications on the twisted Edwards curve. I do these computations with the implementation in std/reference/algebra. I cannot explicitly use the curve.Element type because it is in an internal package (attempting to use it produces a compiler error). Using fr.Element works, but fr refers to different packages based on the build tags.
So in the case that circuit generation is moved into go generate, I'd still need some way to work with scalars and points on the twisted Edwards curve that I'm expecting for my circuit.

Sorry this took so long to close, this is addressed in v0.3.X (and merged into master)


VR setup instructions with Mujoco

Hello,
I am a beginner in using Mujoco.  I went through the tutorial and was able to run some basic simulations.  I am interested in learning more about how to enable VR integration for rending with mujoco.  In the documentation it is mentioned a code sample may be posted in the future.  I was wondering if someone can outline the steps I can follow for doing this.  From what I understand we need to render the views for left eye and right eye.  I would like to understand how we

Specify the camera information for left eye, right eye
How we setup the openGL contexts
How we render

Thanks.

We have an advanced draft of the VR utility, updated to latest MuJoCo. It should be submitted soon.

Thank you!  Looking forward to it!

Hello! Do you believe it will be released soon?

Please can check out #1452 and comment on the PR with any questions.
This is still under development but the basic functionality is there.

I've succeeded in making a VR app using MuJoCo. For future reference, I have written a paper here than contains a lot of useful information for future folks wanting to make a VR x MuJoCo software.
I hope it will benefit to some people!

Amazing! cc @nishbo


Questions during inference for Wikipedia

Hi there,
for your wiki dataset, I've seen that there are no gold labels for each document, such as (I've shortened this document)
[[["images/1/8094.png", null], ["images/12/1
13835.png", null], ["images/10/95720.png", null]], [["Ubuntu (operating system)", null], ["If you update this article please remember to update other Ubuntu derivatives which include (but are not limited to): Ub
untu, Kubuntu, Edubuntu, Xubuntu, Gobuntu, Ubuntu Studio, and Mythbuntu Ubuntu ( ), is a computer operating system based on the Debian Linux distribution.", null],  ["Canonical endorses and provides support for three additional Ubuntu-derived operating systems: Kubuntu, Edubuntu and Ubuntu Server Edition.", null]],  "text/en/3/327504"]

During inference, how do you interpret predictions?
From my understanding, during inference, we can get the textspread score and imagespread score. How do we determine which sentence is more likely to match which image?
Thank you very much.

Hey again @AiliAili ! :)
As described in Sec 6 of the paper, because there are no labels for wikipedia, we are limited to qualitative evaluation (instead of computing, e.g., precision or AUC, as with the other 6 corpora). That being said, one could hand label a small set of them to estimate AUC. Or --- one could find metadata about the images from wikipedia and see how much they overlap with the predicted links.

Thank you very much for your timely reply.
Yeah, I've read that part multiple times, but I still don't have a clear idea of what you do to select the most probable images for sentences.
I am not aiming to measure the predictions based on precision or recall. Instead, I am trying to match the most probable image for each sentence. (like the one you show in Fig. 5).
What should I do?  What textspread and imagespread score are used for thresholding?
Thank you very much.

Oh! Gotcha. We use the estimated M hat matrices (which are produced without labels during the training process). In particular, the M hat matrix estimates similarity between all pairs of images/sentences. Then, much like for the AP algorithm, we solve for the optimal assignment of images to sentences, and use that as our predictions.

Thank you very much for your explanation.
Given what you said, I should use the data as the training set if I want to predict the correspondence of sentences and images in the dataset?
For AP algorithms, after we get the M hat matrics, I think we should use this one (https://github.com/jmhessel/multi-retrieval/blob/master/bipartite_utils.py ). Could you please provide a sample command line to get the optimal assignment of images to sentences, given the M hat matrices.
Sorry, I have so many questions.
Thank you again for your time. : )

Hey @AiliAili ---
I am swamped at the moment, so I don't have time to make a command line tool.
However, the function in this file
https://github.com/jmhessel/multi-retrieval/blob/master/bipartite_utils.py
should be okay. These lines are the ones that do it:
https://github.com/jmhessel/multi-retrieval/blob/master/train_doc.py#L462-L466
so, you generate the function, then you can call it with a numpy array (at least in the latest version of tf)
It wouldn't be too hard to make a command line tool for this, but I am swamped right now. Would you potentially be interested in adding a main function to bipartite_utils.py that takes in a numpy array (e.g., cached as a npy file) and outputs the solution?
Jack


Checklist item #10 wrong link. Must be "Create a Claims Provider Trust"

Checklist item #10 reads: "create a claims provider trust relationship by using the AD FS Management snap-in", but the link leads to article that shows how to create relying party trust.  I think it should link to "Create a Claims Provider Trust": https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/create-a-claims-provider-trust

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a6bc8336-382f-bd3e-0d5e-0ec19128cae9
Version Independent ID: 138957a3-79b0-24e6-333c-446ef40fb8ed
Content: Checklist - Configuring the Resource Partner Organization
Content Source: WindowsServerDocs/identity/ad-fs/deployment/Checklist--Configuring-the-Resource-Partner-Organization.md
Service: unspecified
GitHub Login: @billmath
Microsoft Alias: billmath

Thank you for reporting that issue and the suggested correction. I agree. Sorry for taking so long to find this ticket and replying to it.

It has been a long time, I know. I hope this material will still be useful for someone. Pull Request #4879 is ready for review.


Add sqlite support for storing lightning payments

note: this is just the insert/load API with tests, adding it now to avoid trouble rebasing later (and to spark a conversation whether we should use one or two tables (inbound / outbound payments)

converting to draft as we still obviously need payment hash😓

the rebase will take quite a while now, due to the large refactor that got in in the meantime 😢

the rebase will take quite a while now, due to the large refactor that got in in the meantime 😢

If you need help let me know.
Note: Reminder that  the sqlx-data.json can be fixed by just taking either and then running the prepare script again to generate the actual one to be used. No need to try to merge this :)

the rebase will take quite a while now, due to the large refactor that got in in the meantime 😢

If you need help let me know.
Note: Reminder that the sqlx-data.json can be fixed by just taking either and then running the prepare script again to generate the actual one to be used. No need to try to merge this :)

thanks for the offer, I managed to solve this :)

bors r+

bors r-

bors r+


[FancyZones] Win+Left/Right is skipping zone 2 in 0.31.1

ℹ Computer information

PowerToys version: 0.31.1
PowerToy Utility:
Running PowerToys as Admin: No
Windows build number: 19042.789

📝 Provide detailed reproduction steps (if any)
I've been using PowerToys--primarily for FancyZones--pretty much since it was introduced, so first off, thanks! It's a great tool for managing content on my side-by-side 34" ultrawide monitors. My left monitor has three zones and my right monitor two. I use Win+Left/Right HEAVILY for moving windows to the desired zones. In the latest update, for some reason that function is skipping zone 2 on my right monitor. Everything else works just fine, but the zone order when using Win+Right is now L1, L2, L3, R1, R3, R4 and the reverse when using Win+Left. Notice that R2 is not included in that list. Note that I when I use Shift+Drag, zone R2 does work properly as a target.
✔ Expected result
The expected result is a zone order when using Win+Right of L1, L2, L3, R1, R2, R3, R4 and the reverse when using Win+Left.
❌ Actual result
The actual result is a zone order when using Win+Right of L1, L2, L3, R1, R3, R4 and the reverse when using Win+Left. Again, R2 is missing.
📷 Screenshots
I'm happy to provide an animated gif showing the behavior if you'd like. Just let me know if that would be useful.

@SCWells72
thank you for reporting the issue. We will release a hot fix.
The tracker for this bug is https://github.com/microsoft/PowerToys/issues/9453

@enricogior I just updated to 0.31.2 and the exact same behavior still occurs. Is there something I needed to do other than just update to the latest?

@enricogior @crutkas Okay, maybe this is a feature and not a bug? The zone that's being skipped is in a layout that's arranged as follows:

The specific zone is denoted as 2 there. If I'm in zone 1 and use Win+Right, it goes to zone 3 instead of zone 2. If I then use Win+Left, it goes back to zone 1, again skipping zone 2. However...if I use Win+Up or Win+Down from zone 3, it goes to zone 2 and then cycles between zones 2 and 3. So it seems it's the Win+Left/Right behavior that's changed so that it takes you to the last zone in a vertical column of zones, though now Win+Up/Down allows you to cycle through zones in that column (maybe it always did?).
Certainly skipping zone 2 when using Win+Left/Right is a behavioral regression relative to previous builds, though.

Also, it doesn't look like I can reopen this issue given that it still occurs under the latest build. Can one of you do so, or should I clone into a new issue so that it's back in an open status? I don't want to be a pest, so I'll wait to see whether it can be handled in the context of this existing issue for a day or two before cloning into a new one.

@

@SCWells72
can you please post a screenshot of you settings for these options?

You bet:

FWIW, I unchecked "Move windows based on their position" and that seems to have resolved the issue. I'll play with it a bit more, but it looks promising.

@SCWells72
if you resize zone 2 to increase its size and reduce zone 3, and using your previous settings, does the window move where you expect it?
The reason might be the same as https://github.com/microsoft/PowerToys/issues/8590

@enricogior These zones are explicitly sized based on editing the JSON config file directly (and have been since the very early versions). I want the zones to be 100% precise. I'm happy to provide that config file for review if you'd like, but there have never been issues prior to this build, and it seems that the new "Move windows based on their position" option causes it. For what it's worth, I only enabled that option when 0.31.1 was causing so many issues with keyboard-based window movement across zones, and unchecking it seems to restore the previous/correct behavior.

@SCWells72
you can duplicate the layout and make the change to the duplicated layout.
If you make that test we will know for sure if the problem you are seeing is the same as reported in https://github.com/microsoft/PowerToys/issues/8590

Hi, I've got a layout with ten overlapping zones including a full screen, seven horizontal and two vertical ones. Unfortunately it seems, the Override Windows Snap shortcut stopped working, when set by istself. When activating Move windows based on their postion as well, the override shortcut works again, but will do the position based behaviour of course. It would be great, if the override shortcut would work in standard mode again as well, as it did before. Btw, any plans for being able to access zones via a shortcut including numbers? That would save me from going through multiple zones in order to reach the desired one. 😉
Thanks. 🙏
{"uuid":"{2A103372-0CFA-4916-BD37-E93C8728A210}","name":"LJ_v1","type":"canvas","info":{"ref-width":3440,"ref-height":1410,"zones":[{"X":0,"Y":0,"width":1720,"height":1410},{"X":1720,"Y":0,"width":1720,"height":1410},{"X":0,"Y":0,"width":1146,"height":1410},{"X":1146,"Y":0,"width":1146,"height":1410},{"X":2292,"Y":0,"width":1146,"height":1410},{"X":0,"Y":0,"width":2292,"height":1410},{"X":1146,"Y":0,"width":2292,"height":1410},{"X":0,"Y":0,"width":3440,"height":705},{"X":0,"Y":705,"width":3440,"height":705},{"X":0,"Y":0,"width":3440,"height":1410}],"sensitivity-radius":20}}

@LarsJandel
the problem you are describing is different from the problem discussed in this issue.
What version are you running? Make sure to have 0.31.2 that was just released.

Argh - sorry, sounded similar regarding a shortcut issue. And YES, the update fixed my issue. 🎉 Thanks for the super quick reply and the update.
...should I delete my comments from this issue entry?

@SCWells72
I'm glad that 0.31.2 worked for you. No problem with the comment, I hid it.


feat(color): add new colors and schema tokens in Teams theme

Added new brand and onyx colors and background4 token for default and brand color schemes.

Warnings

:warning:
There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

  Generated by :no_entry_sign: dangerJS


Enable TCP_FASTOPEN, if available.

Note that it doesn't affect clients that do not support it.

Where is that define enabled or checked for?

/usr/include/netinet/tcp.h:#define TCP_FASTOPEN		 23 /* Enable FastOpen on listeners */

I would be best, I think, to check for this at build-time ala autoconf and use the normal HAVE_*. This also requires that APR be aware of it as well, to really be complete.

Is it still not implemented? Would be great if it was, very easy to fix apparently :| :)


optional docstring for lt macros

hey guys,
to be honest I have never written a macro so I don't know if this is actually possible or not, but anyway here it goes. I was having troubles understanding some of the uses of some UIs and also some behaviors, the problem being that they don't have any documentation which is not a surprise.
The real problem though is that (from my limited understanding of macros) it is also not possible to (currently) add docstrings to them since the macro was never intended for it. This is true for both defui and behavior although I am not sure how plausible it would be with behavior since the name gets munged.
;; currently
(defui hello-panel []
  [:h1 "Hello from the playground"])

;; expectation
(defui hello-panel
"creates a hello panel as an h1 tag"
 []
  [:h1 "Hello from the playground"])

I think that adding the option of docstring for the BOT elements would make understanding a plugin code much easier as currently we have to go with the best guess based on name, triggers and similars.

@carocad What about just doing what defn does itself? Doc-strings are just added to the var's metadata – to the :doc key specifically. So, to add a doc-string to the hello-panel var, you could just do:
(with-meta
  (defui hello-panel []
    [:h1 "Hello from the playground"])
  {:doc "This is the doc-string for `hello-panel`."})

We could of course also add support for optional doc-strings to the behavior and defui macros, but that's a low priority for us (including reviewing submitted PRs for those changes).
Given that neither behavior or defui add metadata to its symbol arguments, it should be safe to add doc-strings directly as above.

@kenny-evitt that's not a very sustainable solution. For what is worth I would rather put comment lines above or below the definition and just read them when I need to.
Of course I understand and agree that this is not a priority right now and I also didn't intend it to be, but I wanted to make clear that this should be addressed at some point; hopefully sooner than later (more behaviors and ui-widgets without any kind of docs will only make things more complicated for everyone in the future, especially taking into account that the LT code is not sequential)
On another note, I saw that behaviors name are being munged, so I don't know if adding the metadata works as expected (from the retrieving part). I also saw some behaviors with a :desc keyword. I guess that for understanding the code, it would be enough to have those, although it leaves the same retrieving docstring problem open.

PR #2276 addresses this request with the :doc key for objects, behaviors, and defui. Do note that due to https://github.com/LightTable/LightTable/issues/2203 it will likely not be possible to get this optional docstring for defui when developing plugins. In other words, this functionality currently limited to developing on the core of Light Table until that issue is addressed.


Bypassing the login for Supreset using iframe

Make sure these boxes are checked before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if any
[x] I have reproduced the issue with at least the latest released version of superset
[x] I have checked the issue tracker for the same issue and I haven't found one similar

I am using Superset version 0.22.1. I create a slice and use its iframe to embed into my webpage. When I do so, it directs me to superset login on the webpage. Is there a way I can pass the username and credentials using iframe as a parameter if yes please let me know the iframe parameter name for that?
Superset version
0.22.1
Expected results
bypass authentication
Actual results
asking for authentication

I think you might need to leverage the Public role to allow others to see this dashboard without logging in. Checkout this doc http://superset.apache.org/security.html#public for more information.

thanks for your response , I could see from the documentation
http://superset.apache.org/security.html#public
"Public- It’s possible to allow logged out users to access some Superset features.By setting PUBLIC_ROLE_LIKE_GAMMA = True in your superset_config.py"
so my next set of doubts --

where is this superset_config.py location ? can i create this file and add this to export PYTHONPATH="/home/user/superset/:$PYTHONPATH" ... please help
2)also struggling to find the super set installation location ?

pip/setuptools/python manages your pypi packages, no need to worry about that. superset_config.py can live anywhere, but you need to export PYTHONPATH=/wherever/your/superset_config/lives. As you fire up the superset command, you should see something like:
Loaded your LOCAL configuration at [/wherever/your/superset_config/lives/superset_config.pyc]

I got some reference to locate the superset install path and I figure out the location and updated the superset/config.py  and edited the "PUBLIC_ROLE_LIKE_GAMMA = True" and add the data sources to the role manually to bypass the user login, it is working now , thanks for the support.

You probably want to avoid changing superset/config.py (which means you're modifying the Superset package) and use superset_config.py which is intended to be the way to override the defaults in the configuration.

got it, I will do that. Thanks

Hi @goldymanikoth  and @mistercrunch , I have been into the same issue i modified  "PUBLIC_ROLE_LIKE_GAMMA = True" in both superset/config.py and superset_config.py . Added the datasource to PUBLIC as per the link suggested.But still getting the AUTH login page while accessing th iframe .Can anyone explain me in more detail please

did you run superset init ? Public should then be like Gamma, to which you can start adding tables / databases

@mistercrunch You mean to say ,should run superset init before adding the role PUBLIC .Can you please ellaborate as i am new to superset and needed to achieve it badly

Thank you so much @mistercrunch , superset init command did the magic we want!I could able to access the chart without authentication prompt now.

I am facing the same issue. But in my case Superset is installed via HDP. I am not able to find the superset location (config.py). And I am not sure where is it.? Help is very much appreciated.

can anyone please tell how to fetch value of guest token in superset_config.py file ...as in url am passing token and that token need to verify in config file so it bypass the login screen of superset for user.
http:/localhost.com:8080/login?token=1234&next=/superset/dashboard/11?standalone=true
Thanks in advance!!!!!!

@falgunifb were you able to resolve this issue


Registries AWS

Is there an existing issue for this?

[X] I have searched the existing issues

Feature description
In order to update the security requirements , i propose that Dependantbot can use roles to connect to AWS not only secret_id and secret_key, because the use of shared secrets are a vulnerability.
Here you can see how AWS config works https://github.com/aws-actions/configure-aws-credentials

I'm unclear what registries you're asking for... AWS has multiple.
However, there's already a few similar requests, pretty sure you want one of these so closing as a duplicate:

https://github.com/dependabot/dependabot-core/issues/1009
https://github.com/dependabot/dependabot-core/issues/6580

Sorry @jeffwidman i don't find the issue opened for this.
I move my comments to #1009


Unused function arguments

Hi 👋 I wonder if it's possible to somehow cleverly handle the case where there are unused function arguments that don't require a docstring. These situations may occur when you are forced to maintain a specific function signature, e.g. when writing attrs-validators.
For example:
def foo(_: int, b: float):
    """Bar.

    Args:
        b: a number
    """

In this case, pydoclint will complain with
debugging.py:1:1: DOC101 Function `foo`: Docstring contains fewer arguments than in function signature.
debugging.py:1:1: DOC103 Function `foo`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [_: int, b: float]. Arguments in the docstring but not in the function signature: [b: ].

Hi @AdrianSosic , thanks for submitting this issue!
I've made a code change in the PR linked above.
It ignores _, __, ___, ... in the argument list of the function signature.  Are they all the cases that I should consider, or are there anything else?
If not, I'll merge this PR and publish a new version.

No, these are all the cases that I can currently think of… Awesome, thanks a lot for the quick fix!! 👍

Following up on this: I work on a project where we quite a lot of attrs-validation function. All of these start with _validate, and we would like to include a Raises: section in the docstring without the need of specifying the Args: section of every docstring. This however raises the same errors mentioned in the original issue here.
My quetsion is thus: Is it possible to configure something like that without having to put ´#noqa` manually everywhere? If not, would including an option to exclude errors based on specific function names or decorators be a reasonable option to add?

Hi @AVHopp , I think for your use case, using #noqa at each function may actually be the cleanest solution.
If pydoclint is to implement "custom filter", it will need to parse a config file, which will contain the file name, the function name, the violation to be ignored...  This is actually not much different from the flake8 config file.

Ok, thank you for the suggestion :)


How to change/Revert Language to English

I by Mistake got my Language changed to Language other than English.
How do I change it back to English.
Tried Re-installing, but still default to some other non-English Language,

@nssidhu the language can be reset using the "Configure Display Language" command.  This can be executed from the Command Palette (which can be shown with "F1" key, for example).
In the Command Palette, typing "language", selecting "Configure Display Language", then select "en" to restore back to the English.  Please let me know if that doesn't work.

That worked


chore(focus-trap): move template to a separate file

Moves the focus trap to a separate file, as per a TODO.

@crisbeto does gulp build:release work with this change? I remember there being some reason that the separate template file didn't work for anything in core. (Without I should have written in that comment...)

Seems like it does - it didn't throw any errors and the template gets inlined in the<EMAIL_ADDRESS>as well as<EMAIL_ADDRESS>Is there anywhere else I should be looking at?

I guess it's fine, then


Is it works?

Hello, Stevenic!
Got your repository from https://community.openai.com/t/dissecting-auto-gpts-prompt/163892/15
Does it work or in progress?
I see missing root tsconfig.json and tsc -b command fails, due to bad types.

Hey @cainrus... My employer, Microsoft, requested I move the code to a private repo during development. I've deleted the code that's out there (really old incomplete code) to avoid any confusion. I'll have more I can share in a few weeks.


Disable swiping on elements

I want to disable swiping on specifing elements by css class. Maybe Option like no-swiping-class.

+1

+100