Unable to add any recipe

pressing the "+" icon has no effect
This happens on the default microsoft edge browser with no extensions, as well as the browser I actually use

I seem to have lost the add label functionality somewhere, but this is a bug.

I seem to have lost the add label functionality somewhere, but this is a bug.

Thank you for reporting this. I was worried something like this might happen, but I haven't been able to reproduce it. If I'm not mistaken, you should be able to open an incognito window in any of these browsers and use the site without problems. If I'm wrong about that, then there is a bigger problem here but I can say that the website is definitely working for me.
Could you possibly send the value of the "state" key in the browser's local storage? In Chrome, the steps are:

Right click anywhere in the page and select "Inspect"
Go to the "Application" tab of the developer tools
In the left navigation menu, expand "Local Storage" and select "https://factoriolab.github.io"
There should be a few keys, or at least one. The one I'm interested in is the key "state".
Double click in the value column and you should be able to edit/copy the value out.

If you can copy it and send it I should be able to reproduce your problem and determine a fix.
Feel free to message me on discord via @ilbJanissary as I want to get this resolved ASAP; I doubt you are the only one with this issue.

Thank you for reporting this. I was worried something like this might happen, but I haven't been able to reproduce it. If I'm not mistaken, you should be able to open an incognito window in any of these browsers and use the site without problems. If I'm wrong about that, then there is a bigger problem here but I can say that the website is definitely working for me.
Could you possibly send the value of the "state" key in the browser's local storage? In Chrome, the steps are:

Right click anywhere in the page and select "Inspect"
Go to the "Application" tab of the developer tools
In the left navigation menu, expand "Local Storage" and select "https://factoriolab.github.io"
There should be a few keys, or at least one. The one I'm interested in is the key "state".
Double click in the value column and you should be able to edit/copy the value out.

If you can copy it and send it I should be able to reproduce your problem and determine a fix.
Feel free to message me on discord via @ilbJanissary as I want to get this resolved ASAP; I doubt you are the only one with this issue.

It magically fixed itself, but not on edge.
The key on edge is:
{"productsState":{"ids":["0"],"index":1,"entities":{"0":{"id":"0","itemId":"follower-robot-count","rate":17,"rateType":0}}},"itemsState":{"iron-ore":{"ignore":true},"copper-ore":{"ignore":true},"crude-oil":{"ignore":true},"steel-plate":{"ignore":true}},"recipesState":{"iron-ore":{"factoryModules":["module","module","module"]},"copper-ore":{"factoryModules":["module","module","module"]},"speed-module-3":{"factoryModules":["speed-module-3","speed-module-3","speed-module-3","speed-module-3"]},"productivity-module-3":{"factoryModules":["speed-module-3","speed-module-3","speed-module-3","speed-module-3"]},"speed-module-2":{"factoryModules":["speed-module-3","speed-module-3","speed-module-3","speed-module-3"]},"productivity-module-2":{"factoryModules":["speed-module-3","speed-module-3","speed-module-3","speed-module-3"]}},"factoriesState":{"ids":null,"entities":{}},"settingsState":{"preset":3,"baseId":"1.1","disabledRecipes":null,"expensive":false,"belt":null,"fuel":"electric-furnace+electric-mining-drill+assembling-machine-3+oil-refinery+chemical-plant+rocket-silo+offshore-pump","flowRate":1500,"displayRate":1,"miningBonus":12,"researchSpeed":250,"inserterTarget":1,"inserterCapacity":null},"preferencesState":{"states":{},"columns":{"Items":{"show":true,"precision":1},"Belts":{"show":true,"precision":1},"Wagons":{"show":true,"precision":1},"Factories":{"show":true,"precision":1},"Beacons":{"show":true,"precision":1},"Power":{"show":true,"precision":1},"Pollution":{"show":true,"precision":1},"Link":{"show":true,"precision":1}},"linkValue":2}}
Looking at it, it seems like the bookmark I had (I bookmarked a specific factory) is no longer compatible or something.

It magically fixed itself, but not on edge.
The key on edge is:
{"productsState":{"ids":["0"],"index":1,"entities":{"0":{"id":"0","itemId":"follower-robot-count","rate":17,"rateType":0}}},"itemsState":{"iron-ore":{"ignore":true},"copper-ore":{"ignore":true},"crude-oil":{"ignore":true},"steel-plate":{"ignore":true}},"recipesState":{"iron-ore":{"factoryModules":["module","module","module"]},"copper-ore":{"factoryModules":["module","module","module"]},"speed-module-3":{"factoryModules":["speed-module-3","speed-module-3","speed-module-3","speed-module-3"]},"productivity-module-3":{"factoryModules":["speed-module-3","speed-module-3","speed-module-3","speed-module-3"]},"speed-module-2":{"factoryModules":["speed-module-3","speed-module-3","speed-module-3","speed-module-3"]},"productivity-module-2":{"factoryModules":["speed-module-3","speed-module-3","speed-module-3","speed-module-3"]}},"factoriesState":{"ids":null,"entities":{}},"settingsState":{"preset":3,"baseId":"1.1","disabledRecipes":null,"expensive":false,"belt":null,"fuel":"electric-furnace+electric-mining-drill+assembling-machine-3+oil-refinery+chemical-plant+rocket-silo+offshore-pump","flowRate":1500,"displayRate":1,"miningBonus":12,"researchSpeed":250,"inserterTarget":1,"inserterCapacity":null},"preferencesState":{"states":{},"columns":{"Items":{"show":true,"precision":1},"Belts":{"show":true,"precision":1},"Wagons":{"show":true,"precision":1},"Factories":{"show":true,"precision":1},"Beacons":{"show":true,"precision":1},"Power":{"show":true,"precision":1},"Pollution":{"show":true,"precision":1},"Link":{"show":true,"precision":1}},"linkValue":2}}
Looking at it, it seems like the bookmark I had (I bookmarked a specific factory) is no longer compatible or something.


Can I extract the download button of the player?

Hey! is it possible to extract or make a handler of the button to download the video ?
I just want to make my custom button in a corner  of the screen but make the same behaviour that the download button of the player
I'm rendering a File video coming from an Url
Example: https://storage.googleapis.com/m-infra.appspot.com/public/res/Sirena/f3c8/fb1b/c3f0/2560/59d5/00c0/d1c5/8f5d/f3c8fb1bc3f0256059d500c0d1c58f5d.mp4
What can I do ?

Regarding a custom download button, see https://github.com/CookPete/react-player/issues/563.
To disable the native download button, see https://github.com/CookPete/react-player/issues/323#issuecomment-364357541


How do I disable autoplay?

Main problem
I was making a bot using the Distube NPM package, but then it says "Autoplay: On"
Expected behavior
I expected it to not have any autoplay.

Autoplay is on by default. To change default setting, use initQueue event. To turn it on/off by a command, use toggleAutoplay.


Fix bug in custom readiness queue

A call to Poll::poll could corrupt the readiness queue's linked list
under certain conditions. This commit fixes the logic around inserting
the sleep_token, which allows producers to know when they need to
wakeup Poll.
Fixes #570

Actually, I don't think that this is correct yet


Simple API

Remove complexity from API.

Closing to create single mammoth pull request for all changes I have been working on.


fix: android app crashes when backgrounded

Fixed an issue causing the application to crash when transitioning to the background due to a mismatch between the Android and NDK agents.
#183 #196

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

Project coverage is 90.37%. Comparing base (62ed648) to head (1484437).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #197   +/-   ##
=======================================
  Coverage   90.37%   90.37%
=======================================
  Files          11       11
  Lines         457      457
  Branches       88       88
=======================================
  Hits          413      413
  Misses         39       39
  Partials        5        5

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


Travis build can't handle unicode strings in query

Although it works fine under OS X, I'm getting an error when running a query with a unicode word (Cherokee characters) on Travis.
It's raised by MySQL when the API is called:
OperationalError: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")

There must be somewhere that either the host or the client of MySQL isn't being coerced into using unicode.
I'm not sure if this is Travis-specific, or likely to occur on a lot of Ubuntu platforms.

I have added an explicit forcing of unicode to the db creation code which seems to fix this on Travis.
https://github.com/Bookworm-project/BookwormDB/commit/a64186650f1137a2abd5ec7d8909be2245b518bd


Recheck StateClass Tests

StateClass changed slightly.  Test coverage is still 100%, but perhaps there is room to add specific tests for the change?

Need to test stateEvents hash


Should attributes be allowed in Assets?

Currently, the spec only allows these attributes to be in Item Properties. However, there may be some utility is allowing them in Assets also. The current sentinel2 stactools package puts the per-asset view:azimuth and view:incidence_angle in the Asset.
Should these attributes also be allowed in Assets by the spec?

These can be added to assets as well. Any property defined in an extension can be used at the Item of Asset level as per https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md#additional-fields-for-assets

Ah, so knowing that, I think we need to add a section like in EO https://github.com/stac-extensions/eo/blob/b4f74a350c6ced21d63217d2adb45eeb5096089e/json-schema/schema.json#L32 to does a conditional check if the attributes are defined in assets.
I should have led this question with the problem I'm actually seeing - validation via the json schema fails if the Item only has the view attributes defined in the assets, and not also in Properties.

The JSON Schema allows and validates them in assets (https://github.com/stac-extensions/view/blob/main/json-schema/schema.json#L40), but the README was not overly clear on this. I've updated the section to correctly reflect for which scopes the fields are allowed.


Google maps block

Just wondering would anyone be interested in a google maps block?
The idea being you find the point on your map, got the 'embed' code and grab the provided iFrame.
At that point it renders the map and adds it into your Sir Trev blocks.
It is an early work in progress and is mostly just a rip off of the video block (so far).
Anyways might see what I can do with this over the weekend.
https://github.com/SgtOddball/sir-trevor-gmaps-block/tree/master

Sure, we want community to take part in making Sir Trevor better, and one of the ways is creating custom blocks for ST.
We still need to figure out what would be the best way to make them easily discoverable (and easy to install), but that shouldn't stop you from doing it!

What @lukaszsagol said. There is also this repo https://github.com/madebymany/sir-trevor-blocks.

@ilyaporopudas That... i did not know about.. plus it's got an iframe block already which pretty much covers what I was intending.
On a side note, some documentation on whats required, what functions can be addressed for different actions and how to address the store correctly (retrieving and updating the store would be helpful for things like file uploads for when you delete a file, tried sorting that one but gave up in the and took a different approach that works).

Right then,
I've gone over the iFrame block listed in the repo https://github.com/madebymany/sir-trevor-blocks.
and rejigged how it handles it's work since I found it quite easy to cause the Regex to fall over, plus it was missing some fairly fundamental iFrame attributes and checks.
Instead it now coverts the pasted string into an element and checks for the desired attributes rather than just runs a blind check that can fall over with very little effort. This also means that the attributes can be addressed directly rather than extracted.
It does mean that the 'iframe' block in the JSON string will need to be correctly parsed but I doubt it's beyond the wit of most people likely to use the block.
Feedback/abuse welcome.

Looks good!
Maybe something like this would make the attribute checking easier?
["src", "width", "height", "style", "sandbox", "seamless", "title", "frameborder"].forEach(function(attribute){
  if(el.attributes[attribute].value) {
    obj[attribute] = el.attributes[attribute].value;
  }
});

Thats not a bad idea (keep forgetting you can just bang everything in an array and work it off that).
Only thing to be warry of is that not all attributes might have a value (seamless for example is perfectly valid as seamless as well as seamless="seamless") but when I've got a mo I might switch over to this as it reads abit better and is less messing around to update later on.

Got the array to work for checking the attributes, also changed the file name over to https://github.com/SgtOddball/sir-trevor-gmaps-block/blob/master/iFrame.js since that makes more sense over gmaps-block.
I've also removed the seamless checks since on further checking it's pointless anyway as it never made it to the html5 spec (W3schools.. you lied to me) so all's well with the world.
Now I wonder if this approach could be taken for videos? Anyways..
@ninjabiscuit et al. Not sure how you want to handle the iframe block. Could there be a wiki page set up for 3rd party blocks where links could be added? Just as my 2 pence worth.

@SgtOddball Sure thing, feel free to add it to wiki!

@lukaszsagol In that case, done and I'll close the issue.

Cool, thanks!

Hey ... I did not understand how I add google map :(

if you use the iFrame block, then all you need to do is find a google map and then find the 'embed map' option and copy the iframe provided.


when playing a "chord" certain notes "stick"

Im sending a group of notes (one of the 3 below) and for some reason, something with one of these "chords" is causing a note to "stick" and not stop playing. Other groups of notes dont have this issue. Any ideas?
 0 : ['G', 'C', 'E', 'G', 'B','G', 'C', 'E', 'G', 'B', 'G', 'C'],     1 : ['A', 'D', 'F#', 'G', 'B', 'A', 'D', 'F#', 'G', 'B', 'A', 'D'],     2 : ['A', 'E', 'A', 'B', 'E', 'A', 'E', 'A', 'B', 'E', 'A', 'E'],
Calling the synth as below:
 Tone.context.resume(); // needed to address auto play of audio browser issues without user interaction                 polySynth = new Tone.PolySynth(chord.length,Tone.AMSynth).connect(phaser).toMaster();                 polySynth.set(AudioDefaults.AMSYNTH_DEFAULTS);                 polySynth.triggerAttackRelease(chord, '8n');

Im just repeating the first 5 notes in the above arrays FYI.

is it possible to create a minimal jsfiddle example which illustrates your issue?

I couldn't get it to work in JSFiddle for some reason but here is the general idea:
`const Tone = require('tone');
let chords = {
1: ["C4", "G2", "C2"],
2: ["E4", "G2", "C2"],
3: ["C4", "E4", "G2", "C2"],
4: ["G4", "B4", "G2", "C2"],
5: ["G4", "B4", "G2", "C2"],
6: ["G2", "C2"],
7: ["G2", "C2"],
8: ["G4", "B4", "E3", "G3", "G2", "C2"],
9: ["G4", "B4", "G3", "C3", "E3", "G3", "G2", "C2"],
10: ["B4", "E3", "G2", "C2"],
11: ["B4", "E3", "G2", "C2"],
12: ["G4", "B4", "G3", "C3", "E3", "G3", "G2", "C2"],
13: ["G4", "B4", "E3", "G3", "G2", "C2"],
14: ["G2", "C2"],
15: ["G2", "C2"],
16: ["B2", "G2", "C2"],
17: ["B4", "G2", "C2"],
18: ["G4", "B4", "G3", "G2", "C2"],
19: ["G4", "G2", "C2"],
20: ["G2", "C2"],
21: ["G2", "C2"],
}
let counter = 1;
setInterval(() => {
var polySynth = new Tone.PolySynth(chords[counter%21].length, Tone.AMSynth).toMaster();
polySynth.triggerAttachRelease(chords[counter], '8n');
counter+=1;
}, 1000);
`

Here is the general idea:
let chords = {
    1: ["C4", "G2", "C2"],
    2: ["E4", "G2", "C2"],
    3: ["C4", "E4", "G2", "C2"],
    4: ["G4", "B4", "G2", "C2"],
    5: ["G4", "B4", "G2", "C2"],
    6: ["G2", "C2"],
    7: ["G2", "C2"],
    8: ["G4", "B4", "E3", "G3", "G2", "C2"],
    9: ["G4", "B4", "G3", "C3", "E3", "G3", "G2", "C2"],
    10: ["B4", "E3", "G2", "C2"],
    11: ["B4", "E3", "G2", "C2"],
    12: ["G4", "B4", "G3", "C3", "E3", "G3", "G2", "C2"],
    13: ["G4", "B4", "E3", "G3", "G2", "C2"],
    14: ["G2", "C2"],
    15: ["G2", "C2"],
    16: ["B2", "G2", "C2"],
    17: ["B4", "G2", "C2"],
    18: ["G4", "B4", "G3", "G2", "C2"],
    19: ["G4", "G2", "C2"],
    20: ["G2", "C2"],
    21: ["G2", "C2"],
}

let counter = 1;
setInterval(() => {
  var polySynth = new Tone.PolySynth(chords[counter%21].length, Tone.AMSynth).toMaster();
  polySynth.triggerAttackRelease(chords[counter%21], '8n');
  counter+=1;
}, 1000);

This should be fixed in tone@next. There's a very small API change to the PolySynth that it no longer requires the polyphony count.
https://jsfiddle.net/yotammann/v3oupaqk/1/

How do I address this using the traditional NPM install?  Im using this in a react app.
Calling it with es6 styling:
import * as Tone from "tone";

npm install tone@next and that import statement should still work.

So after installing this version of Tone, and removing the array length argument, the sticking notes issue goes away! However, in Chrome now it seems to run much slower and after a few seconds all the audio gets cracky and then just stops playing. In Firefox it stutters out almost immediately. Safari has more similar results to Chrome. Im using a 2019 MBP, Catalina and the newest versions of all three browsers.

Update: In my app Im playing several chords per second. It appears that if I slow down the interval to even 500ms it seems to work much better in Chrome. The same interval in Firefox actually plays for 20 seconds or so now (which it never did before) but still fizzles out and drops the audio. Ive sort of recreated the issue as well in the jsfiddle example you posted above by lessening the interval done from a full second per chord where it when loaded.

Sorry i had an issue in the code where it was creating a new PolySynth in each update which will end up creating hundreds of PolySynths after about 20 seconds.
I fixed that issue https://jsfiddle.net/yotammann/v3oupaqk/

Thanks! I was going to say it always happened like 15-20 seconds in even with note randomization.


Configuration and CLI improvements using Viper

This pull request makes two changes to the user CLI:

It adds the much esteemed spf13/viper to complement spf13/cobra. Configuration loading and saving is now handled entirely through Viper. The rationale behind this change is that Viper is more fully-featured out of the box than our hacked together solution.
Remove --short-version and --long-version, replacing them with a condensed --version flag.

2. Remove --short-version and --long-version, replacing them with a condensed --version flag.

Hey @fnickels If I understand correctly, you added --short-version to use in some automation
https://github.com/RiotGames/key-conjurer/pull/79
Is it okay for you to replace it with --version? Can you have a look at this PR please?

I’ll be pulling that change from this PR
Sent from Proton Mail for iOS
On Thu, Nov 10, 2022 at 03:24, Artem Smotrakov @.***> wrote:

Remove --short-version and --long-version, replacing them with a condensed --version flag.

Hey @.***(https://github.com/fnickels) If I understand correctly, you added --short-version to use in some automation
#79
Is it okay for you to replace it with --version? Can you have a look at this PR please?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Remove --short-version and --long-version, replacing them with a condensed --version flag.

Hey @fnickels If I understand correctly, you added --short-version to use in some automation
#79
Is it okay for you to replace it with --version? Can you have a look at this PR please?

Totally fine with this change, did not want to break backward compatibility with my previous changes, love the adoption of the one-line '--version' format.


fix: build should honor registry specified in -r

Signed-off-by: Zbynek Roubalik<EMAIL_ADDRESS>
Changes

:bug: build should honor registry specified in -r

Fixes #506

Drat.  It merged the PR before I could add the /hold label to wait for an answer on the potential test requested by @lance

@lkingland I will add tests in another PR


How to draw table with complex data where each object from array contain another level of array of objects.

I have a simple requirement where I have to draw a table with complex data where each object from array contain another level of array of objects. Something like below structure:
"data": [
{
"uuid": "616509f786a",
"emailId"<EMAIL_ADDRESS>"password": "cvdfgfgdfvsdjgsdhgjkdsbgdjkbgvd",
"firstName": "TEST",
"middleName": "Tester",
"lastName": "test",
"mobile": "7684674986",
"roles": [
{
"id": 1,
"roleName": "ROLE_1",
"roleDesc": "Role 1",
"privileges": [
{
"id": 1,
"privilegeName": "PRIVILEGE_1",
"privilegeDesc": Privilege 1",
"createdAt": "2020-06-25T14:11:49.000+0000",
"createdBy": "SYSTEM",
"updatedAt": null,
"updatedBy": null,
"deletedAt": null,
"deletedBy": null,
"flag": 0
}
],
"createdAt": "2020-06-25T14:11:49.000+0000",
"createdBy": "SYSTEM",
"updatedAt": null,
"updatedBy": null,
"deletedAt": null,
"deletedBy": null,
"flag": 0
}
],
"privileges": [
{
"id": 1,
"privilegeName": "PRIVILEGE_1",
"privilegeDesc": "Privilege 1 desc.",
"createdAt": "2020-06-25T14:11:49.000+0000",
"createdBy": "SYSTEM",
"updatedAt": null,
"updatedBy": null,
"deletedAt": null,
"deletedBy": null,
"flag": 0
}
],
"registeredAt": "2020-06-25T14:11:49.000+0000",
"registeredBy": "SYSTEM",
"updatedAt": "2020-07-11T11:41:26.000+0000",
"updatedBy": null,
"deletedAt": "2020-07-11T11:41:26.000+0000",
"deletedBy": null,
"flag": 0,
"isAccountNonExpired": true,
"isAccountNonLocked": true,
"isCredentialsNonExpired": true,
"isEnabled": true
}
],
"pageable": {
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"offset": 0,
"pageSize": 20,
"pageNumber": 0,
"unpaged": false,
"paged": true
},
"last": true,
"totalElements": 1,
"totalPages": 1,
"size": 20,
"number": 0,
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"numberOfElements": 1,
"first": true,
"empty": false
}
Now, how would i print data something like below:

In the table I will have a few link / button which can open another page or popup to edit/delete/ view specific record. The role and privilege may may contain may not be or may be more than 1 record into an array. Please tell me how can I achieve this functionality with this library or I should go with a regular table.

@manojsharma20  use column.formatter.
some example


docs update: Add Crossmint to Custodial Wallets doc page

I'm Rohit and I work as a DevRel Engineer at Crossmint. I am creating this PR to add Crossmint to the Custodial Wallets doc page.
Crossmint provides Wallet APIs to create custodial wallets for users on SKALE.

@TheGreatAxios Can you review this?

Hey @rohit-710
We've recently reorganized the docs.
If you would be open to updating your PR to match our recent updates that would be great otherwise we'll work to get this included ASAP.
Thank you!


Create a default case for un-rankable field types

If I have documents that contain `release_date' and I want to sort them by that date, I need to add this field to the ranking_rules. But if in a document this field doesn't exist or is not a number, all reindexing will fail and the ranking_rules will never be applied.
To solve this problem I propose the following update.
Create a new case in the enum Number which could be Null. This new option will be the default if the value cannot be converted to a number. It will necessarily be less than any other option and equal to each other.

how to query sort documents by date?

Hey @jet10000,
You must first make you dates be simple integers (timestamps will do the job) then add the field name to the list of criteria the engine will use.


Rebase ZNC patches onto master

This adds support for separate key file configuration with LetsEncrypt (#1192), but patches like toggling SSL verification need to be rewritten.

Done in testing branch.


Upgrade org.sonarsource.scanner.maven:sonar-maven-plugin <IP_ADDRESS>1 -> <IP_ADDRESS>5

This PR contains the following updates:

Package
Update
Change

org.sonarsource.scanner.maven:sonar-maven-plugin (source)
minor
<IP_ADDRESS>1 -> <IP_ADDRESS>5

Release Notes

SonarSource/sonar-scanner-maven
v<IP_ADDRESS>5
Compare Source

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade sonar-maven-plugin <IP_ADDRESS>1 -> <IP_ADDRESS>5

See:
- https://github.com/SonarSource/sonar-scanner-maven/releases/tag/<IP_ADDRESS>5
- https://github.com/SonarSource/sonar-scanner-maven/compare/<IP_ADDRESS>1...<IP_ADDRESS>5


rocminfo error Unable to open /dev/kfd read-write Failed to get user name to check for video group membership

my system - Linux shreyash-Nitro-AN515-42 4.15.0-99-generic #100~16.04.1-Ubuntu SMP Wed Apr 22 23:56:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
acer nitro 5 ryzen 5
processor - AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx × 8
graphics - AMD RAVEN (DRM 3.36.0 / 4.15.0-99-generic, LLVM 6.0.0) in all setting-> details
amd radeon rx560x real hardware from manufacturer, are these same or not
(base) shreyash@shreyash-Nitro-AN515-42:~$ /opt/rocm/bin/rocminfo
ROCk module is loaded
Unable to open /dev/kfd read-write: Cannot allocate memory
Failed to get user name to check for video group membership
hsa api call failure at: /src/rocminfo/rocminfo.cc:1142
Call returned HSA_STATUS_ERROR_OUT_OF_RESOURCES: The runtime failed to allocate the necessary resources. This error may also occur when the core runtime library needs to spawn threads or create internal OS-specific events.
(base) shreyash@shreyash-Nitro-AN515-42:~$ groups
shreyash adm cdrom sudo dip video plugdev lpadmin sambashare

try dmesg | grep kfd, check info like [ 5.737933] kfd kfd: skipped device 1002:67df, PCI rejects atomics, GFX8(like rx580) need both cpu and motherboard support 'PCIe atomics', please refer the offical readme : https://github.com/RadeonOpenCompute/ROCm#supported-cpus

Hi @Shreyashwaghe
Thanks for reaching out.
Can you please try with the latest ROCm 3.10 and share me an update.
Thank you.

Hi
I have the same system.
The problem still persists on ROCm v4
dmesg | grep kfd
does not give any output.

Hi
I have the same system.
The problem still persists on ROCm v4
dmesg | grep kfd
does not give any output.

Hi @Shreyashwaghe
As per the info @ https://github.com/RadeonOpenCompute/ROCm#Hardware-and-Software-Support, Raven is not an official supported hardware. Only OpenCL things might work.
Thank you.

Hi @Shreyashwaghe
As per the info @ https://github.com/RadeonOpenCompute/ROCm#Hardware-and-Software-Support, Raven is not an official supported hardware. Only OpenCL things might work.
Thank you.


Python3.9 Installation Issue

Hey @collinb9, I tried to install it with python3.9 and there is an issue. I am not sure py3.9 support is ready or not but just for your information, i am sharing error message. And I am able to install other packages with that pip, just fyi.
→ python3.9 -m pip install understatapi
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting understatapi
  Downloading understatapi-0.6.1.tar.gz (397 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 397.2/397.2 kB 1.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [38 lines of output]
      Traceback (most recent call last):
        File<EMAIL_ADDRESS>line 102, in __init__
          req = REQUIREMENT.parseString(requirement_string)
        File<EMAIL_ADDRESS>line 1143, in parse_string
          raise exc.with_traceback(None)
      pkg_resources._vendor.pyparsing.exceptions.ParseException: Expected string_end, found ':'  (at char 4), (line:1, col:5)

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File<EMAIL_ADDRESS>line 177, in get_requires_for_build_wheel
          return self._get_build_requires(
        File<EMAIL_ADDRESS>line 159, in _get_build_requires
          self.run_setup()
        File<EMAIL_ADDRESS>line 174, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 1, in <module>
        File<EMAIL_ADDRESS>line 86, in setup
          _install_setup_requires(attrs)
        File<EMAIL_ADDRESS>line 78, in _install_setup_requires
          dist.parse_config_files(ignore_option_errors=True)
        File<EMAIL_ADDRESS>line 871, in parse_config_files
          self._finalize_requires()
        File<EMAIL_ADDRESS>line 578, in _finalize_requires
          self._move_install_requirements_markers()
        File<EMAIL_ADDRESS>line 618, in _move_install_requirements_markers
          inst_reqs = list(_reqs.parse(spec_inst_reqs))
        File<EMAIL_ADDRESS>line 3102, in __init__
          super(Requirement, self).__init__(requirement_string)
        File<EMAIL_ADDRESS>line 104, in __init__
          raise InvalidRequirement(
      pkg_resources.extern.packaging.requirements.InvalidRequirement: Parse error at "': requir'": Expected string_end
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: There was an error checking the latest version of pip.

Thanks for creating the issue. I haven't been able to reproduce the issue with python 3.9.13. I wonder if that deprecation warning at the top of your output is relevant to you? Are you having this issue with other versions of python?

Thanks for your reply. That deprecation warning is related with https://github.com/Homebrew/homebrew-core/issues/76621 and that should not break anything. My python version is Python 3.9.13 as well. Also some other people has that issue as well with different packages https://stackoverflow.com/q/59552380. So something can be broken with my pip as well. I'll continue to investigation and come back to you. 🏃

Yeah I looked at the linked issue and there shouldn't be any problem related to that. Sounds good. If you find that there is an issue with this repo feel free to submit a pull request

Just fyi, able to install version 0.5.2 from pip. Possibly v0.6 related build changes broke something in my pip. I'll continue to investigation and update you later on. 💯

I solved the issue with creating new fresh environment with venv. Now, it is working without any issue. So if anyone would encounter with this issue, can think that something is problematic with one of the installed packages (most likely malfunctioned pip installation) and can check this answer. There is no global solution, so i definitely suggest that use fresh venv if you can do.


sys/linux: improve fscrypt descriptions

Make some improvements to the fscrypt descriptions which should make it much more likely that syzkaller will generate programs that both add an encryption key to the kernel (FS_IOC_ADD_ENCRYPTION_KEY or add_key$fscrypt_v1) and create a directory that is encrypted using that key (mkdir() + FS_IOC_SET_ENCRYPTION_POLICY):

sys/linux: make some fscrypt ioctls take fd_dir
sys/linux: describe old way of adding fscrypt keys
sys/linux: add some sample fscrypt keys
sys/linux: annotate more field directions in fscrypt structs

Looks good to me. Thanks.
Nice to see this level of care about a subsystem, I think only few with periodically updated/improved descriptions :)
Btw, syzkaller recently got an ability to seed corpus with manually written programs. Any program submitted here will automatically seed syzbot corpuses:
https://github.com/google/syzkaller/tree/master/sys/linux/test
You can see some non-trivial ones people added as seeds, e.g.:
https://github.com/google/syzkaller/blob/master/sys/linux/test/fuse_getdents64
Reading your commit messages it seems that this may be a useful opportunity for fscrypt.


support tracking_context in jwt token.

XCOM-208
@clintonb @rlucioni please review.    The first commit will go away when #2 is merged.

Changes Unknown when pulling c8012d70119894b2ec44dcafbf45267493c2663b on jsa/xcom-208 into ** on master**.

@jimabramson My rebasing for #2 threw things out of whack. Rebase on master, and we should be good to go.

:+1:

Coverage remained the same at 100.0% when pulling cf398e77154e953e1dda75cccef50692ec546202 on jsa/xcom-208 into 423f634d36c1aa5c1efc363010ad089acf5cde5c on master.

Coverage remained the same at 100.0% when pulling 039e54190ab60adc11c49cc0db27b8e2982752e4 on jsa/xcom-208 into 423f634d36c1aa5c1efc363010ad089acf5cde5c on master.

If tracking_context remains a dictionary over in #80, :+1:. If the JWT payload is kept flat, please update this accordingly.

I think this change warrants incrementing the version number in setup.py.


all: update go.mod and go.sum

For some reason 1.12 builds are failing with a permissions issue on go.mod and go.sum. I'm hoping regenerating them will fix the problem.

Sent #990 to try to deflake one of the tests. Will have other PRs for the others.


Task 167-169: StrategyQA dataset

tasks based on StrategyQA dataset: https://github.com/eladsegal/strategyqa

Some thoughts regarding the task definitions:

task167_strategyqa_question_generation:  (a) I think questions that are easy for humans to answer based on two or more facts, but are challenging for modern AI systems this is not adding any information (we will give these descriptions to computers). I would drop it. (b) There are some repeated content here that can be condensed. For example, these two sentences could be merged: Create a question such that the answer is the one provided to you. The question should be about the given term..  (c) How about we split this task into two subtasks? one for question generation and the other one for fact generation.

task168_strategyqa_question_decomposition: looks good. Minor rephrasing: answer. There are no redundant questions.  -> `answer and there should be no redundant steps in the decomposition.

not sure if task169_strategyqa_answer_generation.json is well-defined. The outputs are evidence documents from Wikipedia which contain many details not not used in the input. I am not sure if even humans can reasonably do this. I am in favor to dropping it.

(a)(b) That makes sense. Sure! (c) Yes, That's a great idea. I think I can replace task 169 with the fact generation task.
Thanks! Will do.
I see what you mean. I'll drop it.

Thanks! Please resolve the conflict so the automatic tests get triggered.

Thanks! All the changes have been applied.

I have changed the category in the readme, but am unable to change it in the file.

Thanks! I'll fix it now.


Out-of-heap memory leaks in FlightClient.getStream

I'm trying to use Arrow and Flight in my Java project, I used FlightClient.getStream to request data from a remote node, but I found the allocator's allocated memory size grows with the request.
Java version: 8
Flight&Arrow version: 3.0.0
Here's a snippet of my code, I found the allocated memory of flithStream still exist after root.close:
try (FlightStream flightStream = client.getStream(ticket, CallOptions.timeout(1, TimeUnit.MILLISECONDS))) {
VectorSchemaRoot root = flightStream.getRoot();
root.clear();
while (flightStream.next())
{         // transfer root to ArrowRecordBatch and execute         dispatchNext(shuffleChunk, root);         root.clear();     }
root.close();
} catch (FlightRuntimeException fe) {
String errorMsg = "IndexReadOperator read index fail ={}  "+indexChunkDesc.toString();
LOGGER.error(errorMsg, fe);
throw new NetworkException(errorMsg, fe);
} catch (Exception e)
{     LOGGER.error("IndexReadOperator read index fail!", e); throw new NetworkException("IndexReadOperator getStream fail! ", e); }
Is this a bug or am I using it incorrectly?

HI @UglyLLJ we generally prefer questions be asked on the user@ or dev@ mailing list as appropriate.  My guess with the limited code example is that in the code if you are transferring data to a ArrowRecordBatch so memory will persist unless the record batch is closed as well.

If this doesn't fix the issue, please try emailing one of the lists mentioned above.


Bump openshift/api

This will allow us to get latest feature gates about CSI migration
Note: this is needed for CSI migration feature to work in OCP 4.9.
Goal of this PR is to apply --feature-gate= CSIMigrationGCE=true, CSIMigrationAzureDisk=true to kubelet when TechPreviewNoUpgrade featureSet is enabled, which was introduced in openshift/api#957

/assign @bertinatto
/assign @jsafrane

Why does this PR matter? Why does kube-apiserver have to get a feature gate that kubelet is supposed to receive?

Why does this PR matter? Why does kube-apiserver have to get a feature gate that kubelet is supposed to receive?

@sttts Thanks a lot for your review.
I did not edit kube-apiserver, I just bumped https://github.com/openshift/api/pull/957 since we are wroking on CSIMigration for GCP & AzureDisk, both were added in this PR
@bertinatto @jsafrane  correct me if I am wrong please

@sttts since ci/prow/verify failed, I have ran make verify and got the following
make: *** [verify-apirequestcounts-crd] Error 1
git_prompt_info:20: character not in range

May I ask how to fix that ?

/retest

/retest

@soltysh the failing test is flaky, has nothing to do with the commit

/lgtm
/assign @sttts @soltysh
for approval

/test e2e-aws-single-node

I still miss the point of this PR. It does not add a feature gate to the apiserver.
/hold

I still miss the point of this PR. It does not add a feature gate to the apiserver.
/hold

This PR is meant to simply bump openshift/api to get the changes introduced in https://github.com/openshift/api/pull/957.
The goal of this bump is: now when the user sets the TechPreviewNoUpgrade feature set, this operator will apply to the apiserver 2 additional feature gates: CSIMigrationGCE and CSIMigrationAzureDisk.
This needs to be done in all control-plane components, except the Attach Detach controller from KCM that works a bit differently. There, we always enable the gates in the Attach Detach controller (see https://github.com/openshift/kubernetes/pull/831), and the rest of the controllers rely on the TechPreviewNoUpgrade feature set to enabled the CSI migation gates.
Please note that this isn't new, the same has been done in 4.8 to enable 2 other gates: CSIMigrationAWS and CSIMigrationOpenStack (see https://github.com/openshift/cluster-kube-apiserver-operator/pull/1098).
This whole approach is described at https://github.com/openshift/enhancements/pull/549.

Superseded by https://github.com/openshift/cluster-kube-apiserver-operator/pull/1173
/close


Clean up env

use black
update packages
update ci versions
remove ctags

Codecov Report

Merging #28 into master will increase coverage by 1.88%.
The diff coverage is 16.4%.

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
+ Coverage   50.47%   52.36%   +1.88%
==========================================
  Files          29       29
  Lines         731      760      +29
  Branches       68       68
==========================================
+ Hits          369      398      +29
- Misses        360      361       +1
+ Partials        2        1       -1

Impacted Files
Coverage Δ

rplugin/python3/curstr/action/group/__init__.py
100% <ø> (ø)
:arrow_up:

rplugin/python3/curstr/action/group/directory.py
72.72% <ø> (+2.72%)
:arrow_up:

rplugin/python3/curstr/action/group/listable.py
77.77% <ø> (+6.34%)
:arrow_up:

rplugin/python3/curstr/action/group/nothing.py
71.42% <ø> (ø)
:arrow_up:

rplugin/python3/curstr/action/facade.py
44.44% <ø> (ø)
:arrow_up:

rplugin/python3/curstr/action/group/tags.py
66.66% <ø> (+3.03%)
:arrow_up:

rplugin/python3/curstr/action/group/helps.py
66.66% <ø> (+3.03%)
:arrow_up:

rplugin/python3/curstr/action/group/tag.py
60% <0%> (+6.15%)
:arrow_up:

rplugin/python3/curstr/exception.py
71.42% <0%> (ø)
:arrow_up:

...gin/python3/curstr/action/group/dispatcher/file.py
62.5% <0%> (ø)
:arrow_up:

... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48a0823...37c86f2. Read the comment docs.


Windows named pipe error: The system cannot find the file specified. (code: 2)

Hi,
I'm adding Conveyor app to Kibana,
I have downloaded the Conveyor 1.1.1 source code and using the Kibana 6.1.1 and ElasticSearch 6.1.1,
Installed the docker, I'm running the command docker-compose up, facing below issue
ERROR: Windows named pipe error: The system cannot find the file specified. (code: 2)
Kibana running on http://localhost:5601
ElasticSearch running on http://localhost:9200
Both Kibana and ElasticSearch are running.
Any solution.
And also in Kibana I added the Conveyor in the plugin, Conveyor got added in Kibana below are the screenshot, but its showing "Nothing Found".

And also in Kibana I added the Conveyor in plugin, Conveyor got added in Kibana below are the screenshot, but its showing Nothing Found.

Hi @ShrikanthSRK
Conveyor 1.1.1 was tested on ES and Kibana 6.2.1, if I have some free cicles I'll try to see if where the error is coming from/
The channels are added after the plugin is installed, using our docker-compose file this is done during setup ( I realized we missed that in the docs) you can do it manually by running this command from the source folder:
$ cd channel-sources
$ python ./install-channels.py

Let me know if this works for you

Hi @malave
Thanks for the response, while I'm running manually in windows, I'm facing proxy and socket.gaierror, I'll resolve them and I'll try to run it manually and I'll let you know the status.
If possible could you please share the conveyor which supports ES and Kibana 6.1.1
Thanks,
Shrikanth


What's the proper way to reset the watcher?

Hi again.
I've been working with the library and I managed to do what I want but I've noticed the watcher stops monitoring selected folders sometimes. The only way I found to get the library triggering events for the stuck folder again was reseting my app. I've tried to pause/resume the fileWatcher but nothing changes. Is there a proper way to restart the watcher completely?
Thanks

Is there a specific reason for the event watcher to stop monitoring some folders? If the issue is easily reproducible then let me know so I can debug it better and maybe fix the underlying issue. Otherwise, if you can somehow detect when monitoring stops, you can try to set your watcher variable to nil and reinitialize it with same paths as this will completely reset everything.

Hi.
In fact, If I make fileWatcher var optional and I set to nil, I always get an EXC_BAD_ACCESS from SwiftFSWatcher’s private method innerEventCallback. However I’ve just done the same thing to the class where the fileWatcher is initialized and it seems to work as expected.
But now I found a even more strange behavior. I keep having events from folders I’ve removed from the array of watching directories!
Even making the aforementioned observer class reset when I remove a folder path the events still are notified. I log the watching folders on fileWatcher and the the deleted paths are really gone but still...
I guess I’m having something wrong (no idea what, tho) but this is something easy to test so I’d like you to confirm I’m crazy. ^_^U
Thanks
--
Ricardo Mantero
El 6 de junio de 2016 a las 7:59:04, Gurinder Hans<EMAIL_ADDRESS>escribió:
Is there a specific reason for the event watcher to stop monitoring some folders? If the issue is easily reproducible then let me know so I can debug it better and maybe fix the underlying issue. Otherwise, if you can somehow detect when monitoring stops, you can try to set your watcher variable to nil and reinitialize it with same paths as this will completely reset everything.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

If I make fileWatcher var optional and I set to nil, you can't do this since the initial watcher has to be class scoped and be initialized there as well, so yea you got this part fixed.
I keep having events from folders I’ve removed from the array of watching directories!

I will have a look at this tonight, as it could just be a simple bug where I'm not internally refreshing the watching paths. In the meantime can you try to pause then resume after the the file / directory is removed from the array to refresh the watcher?

PS: By no means this watcher is perfect, so you're probably not crazy :p

Yeah, I’ve confirmed it doesn’t change behavior if paths are added or deleted once initialized. I mean, the watchingPaths do change but the events seems to be the same. The pause/resume doesn’t work for me either. Since I’ve built my app based on this library and I love the results I’ve got with it, I’m going to try to restart the app when the paths change (this should be very unfrequent). My app is a menu bar app so I guess it won’t be even noticed. Of course, if you come up with a proper fix I’ll be even more grateful :)
Thank you for your interest.
--
Ricardo Mantero
El 6 de junio de 2016 a las 22:01:53, Gurinder Hans<EMAIL_ADDRESS>escribió:
If I make fileWatcher var optional and I set to nil, you can't do this since the initial watcher has to be class scoped and be initialized there as well, so yea you got this part fixed.
I keep having events from folders I’ve removed from the array of watching directories!
I will have a look at this tonight, as it could just be a simple bug where I'm not internally refreshing the watching paths. In the meantime can you try to pause then resume after the the file / directory is removed from the array to refresh the watcher?
PS: By no means this watcher is perfect, so you're probably not crazy :p
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I can confirm the behavior you're facing since the paths aren't actually being updated in the actual FSEventStream, just watchingPaths is updated which serves no purpose. I will put out a fix in a day or two :)

Thak you! :)
--
Ricardo Mantero
El 7 de junio de 2016 a las 7:29:46, Gurinder Hans<EMAIL_ADDRESS>escribió:
I can confirm the behavior you're facing since the paths aren't actually being updated in the actual FSEventStream, just watchingPaths is updated which serves no purpose. I will put out a fix in a day or two :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Mocking consistent interface type

I'd like to mock the node interface of a Relay GraphQL server.
The best that I've come up with is:
addMockFunctionsToSchema({
  schema,
  mocks: {
    Node: (_, { id }) => {
      return ({
        id,
        typename: 'Faction',
      });
    },
  },
});

This is more or less okay for a Relay application because it's unlikely that the Node will be expanded to include additional fields besides the id, but I'd really like to skip customizing the resolver and instead allow the default resolution to occur (assigning a generated id) while locking in the type as Faction rather than getting a random type of either a Faction or Ship.
Any thoughts on making this happen?
I'm happy to open a documentation PR if it is… I just couldn't find anything. I browsed the source a bit as well as a few open PRs, but couldn't figure anything out.
Thanks!

hi, @wbyoung im not sure if i got you right,
but basically, if you wont send id field, it will go resolving Faction next, then because id is missing, it will just mock the id which should give the same result i understand you want.

@DxCx yup, you're correct — I was misinterpreting the failure that I was receiving. Relay was ignoring the result since the ID returned did not match the requested ID. So I believe what I have is simplest way to set up the tests that I want to create and that everything is actually working as expected.
Thanks for the quick response, and sorry for the mixup.


Revert "feature: pin binaries to create proto buffer go code"

@cdelimitrou Apologies, I pushed the previous PR #294 without some code which is causing build errors. I will fix the this later and make a new PR to properly provide the feature.
Until then, perhaps we can revert the PR in order to not block the builds?

Just reverted, thanks.


Problems with dependency to piper-library-os

Hi!
We are using the cloud-s4-sdk-pipeline-lib project to create an own build pipeline. This pipeline is very simple and basically runs End-2-End / synthetic monitoring tests over our suite of Microservices (each of them uses the standard cloud-s4-sdk-pipeline).
Until last week, our Jenkinsfile included @Library(['piper-library-os']) and everything worked fine. Then we suddenly had issues with our pipeline and figured out, that we needed to specify an absolute piper-library-os version (we looked that up in the cloud-s4-sdk-pipeline). So we updated our Jenkinsfile and replaced the piper-library-os statement with @Library(['piper-library-os@6dc13801b0223b9d4ea93eb36098773edf504883']), added the step library "piper-library-os@6dc13801b0223b9d4ea93eb36098773edf504883" and again, everything was fine.
This week, the pipeline crashed again: npm install failed from the script stageBuildFrontend. After some research we found out, that the piper-library-os version used in the cloud-s4-sdk-pipeline changed to @Library(['piper-library-os@2716054392ead88ecba5c984967d1ab64279db02']). After switching to that version, our build pipeline was running fine again.
Is there a way to avoid the need, to specify the version of piper-library-os? It's quite time consuming to identify the issue and to fix the build pipelines.
Thanks and kind regards,
Helmut

Hello Helmut,
As discussed:
Instead of @Library(['piper-library-os']) and library<EMAIL_ADDRESS>you can use the step loadPiper.
However, better is even to use the step initS4SdkPipelineLibrary.
You can find an example here:
https://github.com/SAP/cloud-s4-sdk-pipeline/blob/master/s4sdk-pipeline.groovy#L17
To get the configuration for a stage you can use:
script?.commonPipelineEnvironment?.configuration?.stages?.<REPLACE WITH STAGENAME>
Kind regards,
Daniel

Hi Daniel,
thanks again for your support, the issue is now resolved. The pipeline now completes successfully without the direct piper dependency.
Kind regards,
Helmut


Encoding Too Long.

When connecting to my server getting the error: Encoding too long.

https://github.com/rzcoder/node-rsa/issues/23
are you using the private key?

Yes I am, with passphrase enabled. I check as well if its the same one for when I SSH in normally and it is.

Could be this problem maybe? https://github.com/mscdex/ssh2/issues/422

@maxcnunes that fixed it but created a new issue...
I am connecting though SSH Tunnel using the same setting I use in Sequal Pro so I know it all works.
I connect - Asks for Passphrase - Connecting to database - Bottom left displays connection to database established - But stay on the menu and is unresponsive. A few moments later it crashes saying object destroyed.

Could you please open a new issue for that and maybe include the log as well? https://github.com/sqlectron/sqlectron-gui/blob/master/docs/app/logging.md
Closing it since the original problem has been solved.

@eqxDev I have solved the other bug you have found as well. (fixed with 8dbfac4)
Btw, I also got the Encoding too long when I was using a wrong passphrase.


feat!: Fernet

To be discussed:

We probably need to have both sequencer and reward_recipient such that they can be specified separately 🤔.
Should we keep "history" (header hashes) in storage making it easy to enforce the bonds? Alternatively, at verification we can lookup if there is a bond, and if there is mark it as "available for withdrawal".
What should the simple strategy look like? For sandbox just using propose if you are winner would do fine.

To implement Fernet as outlined from the yellow paper, a lot of tasks spanning the code-base is to be completed.
### Preparation
- [ ] https://github.com/AztecProtocol/aztec-packages/issues/3821
- [ ] https://github.com/AztecProtocol/aztec-packages/issues/3533

Ethereum Contract Tasks

Staking

We need some ability to deposit  assets and in return be eligible to propose blocks.
There might need to be a enter/exit delay.
The receipt could be transferrable or not, it is really up to the instance. Making them transferrable can essentially be done through a 1-hop contract similar to Lido in the middle, so the actual diff might be less than expected.
Slashing rules. Right now it don't seem like there actually is staking.

RANDAO values.

mapping(block_number => randao) randaos
We should have some way to map a block number to a RANDAO value. How exactly this value is filled is still do be figured out.

Phases

Proposal: The proposal must be put on L1.

A "proposal" is a commitment to the block header following the definition from the yellow paper.
We keep track of only the currently winning proposal
Proposals are scored based on keccak256(randaos[l2_block_number], l2_block_number, proposer_address)

The l2_block_number might be redundant as it is influencing the randao value used.

When proposing, proposer_address = msg.sender.
If the proposal have a better score, it replaces the current winner, otherwise the tx reverts.
Proposals are only accepted when in the proposal phase

Prover commitment

A bond is put up for the specific proposal.
The bond must be put up by the sequencer, or the sequencer must have approved it.

This can be sequencer == msg.sender
or sequencer have provided a signature where address_recovered == sequencer. Over the inputs for the function call.

For sequencer that desire to be maximally following the markets, could use a contract to deposit in that integrate with a market contract etc.
The bond can only be recovered if the block made its way into the history.

If we keep track of the history in the state of the contract, we can simply lookup if the l2 block indeed was inserted or not.

Backup

In the case that no bond have been put up. It is a free for all.
I'm thinking that we can simply have a phase in the sequencer selection contract, and then it can be queried for a specific block.
If we query the phase and no bond was put up, it should be backup
Otherwise should return the active phase AND if waiting for proof submission it should return the tuple (phase, sequencer).

Reveal

Unclear if this process is directly desired as part of the sequencer selection. Regardless, it must be published before the verification can happen.
This should use the availability oracle that we spoke about in the Yellow-paper, but are still to implement.

Verification

The header and proof is passed to the state transitioner.
The state transitioner check what state the sequencer selector is in

if in backup continue
if in proof_submission the sequencer value fetched must match the sequencer of the block AND the block must match what was committed to in the commitment phase, i.e., can be checked by hashing the header and then comparing it to the value stored in sequencer_selection.
[?] We probably need to have both sequencer and reward_recipient such that they can be specified separately 🤔.

The state transitioner otherwise progresses as it usually does
The state transitioner pays out rewards to the reward_recipient.

These rewards will be based on a call to governance but for now, we can just have a claim_rewards(to, amount) function where amount will be the amount instance is trying to pay out, if amount > claimable by the instance, it should revert, if passing type(uint256).max as amount simply spend the remaining claimable.
The minting logic will be handled by the governance registry, but we can mock it with just a wrapper around a mint function initially.

### Ethereum Contracts
- [ ] Implement "staking" (locking) for sequencer privileges
- [ ] Implement block_number => randao map function
- [ ] Implement Proposal phase
- [ ] Implement Prover commitment phase
- [ ] Implement Backup phase
- [ ] Implement Verification (finalization) Phase + reward payout

Circuit tasks

The changes to the circuits are fairly minimal.
The reward_recipient should be added.

What is the benefit of reward_recipient? It becomes much simpler to collect rewards in cold storage than if it is the same entity that needs to participate in some of the phases or create signatures. Also for operators that operate multiple sequencers it is much simple for them to aggregate their rewards.

### Tasks
- [ ] Add reward recipient

Node (sandbox)

Need a split of nodes which use different strategies for proposing.

Full-node that just syncs and participate in network but don't propose
Backup which is a full-node that will propose blocks if in backup phase (don't stake but need ethereum wallet to publish block)
Sequencer, a full-node that deposit funds and participate in SS

Default sandbox node should be sequencer type and deposit as part of its setup
The node software needs to listen to the sequencer selection contract for phases
The node software needs to follow a strategy for proposing blocks.

A strategy could be only propose if you are the "winner", e.g., compute everyones scores and then propose if you have the highest.
Another would be propose if you are top 10% etc.

The sandbox should be fully self-proving for now (no actual proving).
For the sandbox we can accept going with pure self-proving, and putting up the bond itself

We shall run a multi-sequencer (all self-proving) end-to-end test to replace the current p2p test.

### Node Tasks
- [ ] Implement SS for node that follows the contract
- [ ] Write strategies for proposing blocks
- [ ] Node settings for (full, backup, sequencer)
- [ ] Standard sandbox node should be sequencer and deposit as part of setup
- [ ] E2E test with a set of nodes all run the SS following the strategy
- [ ] E2E test with a node that run SS and some full that just participate in network
- [ ] E2E test with a set of nodes that never propose, and a backup that should propose
- [ ] E2E test with set of nodes that all run SS with a strategy that make multiple propose and "compete"

According to some ethereum documentation, staking is the "act of depositing tokens to activate validator software" (ref) which (as far as I know) should be aligned with the definitions being used in the yellowpaper.

But with a validator, your funds are at stake. Image related.

The state transitioner pays out rewards to the reward_recipient.

The reward_recipient was what I though of as a sequencer controlled address. Think I was just a bit too quick when here.

Why does the sandbox itself need to implement Fernet

Sandbox is essentially a local node. It might be how people are testing contracts etc, but it is also how we test the node atm 🤷. For a pure sandbox mode, it would likely just be running with shorter timeframes such that it can always run in backup -> the backup strategy might be better for that then 🤷

There should be (up to) 3 reward_recipients, correct? Maybe I'm out of context. But the current sequencer, the prover address committed to, and the address that submits the rollup to L1. For the initial instance it may be ok to assume that these are vertically integrated and therefore a single entity. Just wanna clarify what this intention is

Actually, we would likely have 4 here. 1 for fees paid within the rollup, 1 for block rewards, 1 for prover and then 1 for the publisher.


[2.5] Backport http proxy fleet

Co-authored-by: Dan Ramich<EMAIL_ADDRESS>

Backport https://github.com/rancher/rancher/pull/29936

https://github.com/rancher/rancher/issues/30042


External authentication failing on iOS 12

Please only use the issue tracker for bug reports and/or feature requests. For general security questions, or free or commercial support options do not use the issue tracker and instead see here for more details.
For bug reports,  include the relevant log files related to your issue. See here how to enable logging. Delete this line once you have.
Finally, please keep the issue concise and to the point. If you paste in more code than the text for the issue you are reporting then we will most likely not read it.
Issue / Steps to reproduce the problem
External authentication failing in iOS 12 Safari.
I am seeing failures across all iOS 12 (beta) devices when authenticating using an external provider. There is no issue with iOS <11 or mobile Firefox, Chrome (nor desktop/Android browsers).
 var result = await HttpContext.AuthenticateAsync(IdentityServer4.IdentityServerConstants.ExternalCookieAuthenticationScheme); is failing for devices running Safari in iOS 12. Tracing the request, it looks like idsrv.external cookie is empty when redirecting from signin-oidc endpoint to the externalcallback endpoint, but is populated if you simply refresh the browser on the externalcallback page.
If you refresh the errored /externalcallback page, it will continue on and work fine.
I understand that iOS 12 is a beta OS, but it is very close to release and it would be nice to get this figured out.
Update: I was able to replicate this in Safari 12.0 for macOS Mojave as well. My guess is this may be more related to Microsoft authentication libraries...
Relevant parts of the log file
2018-09-07 01:58:39.674 +00:00 [Error] Microsoft.AspNetCore.Server.Kestrel: Connection id "0HLGKCKUC9350", Request id "0HLGKCKUC9350:0000000C": An unhandled exception was thrown by the application.
System.Exception: External authentication error
   at IdentityServer.UI.AccountController.ExternalLoginCallback() in C:\Users\Ryan\Projects\Identity Server\src\IdentityServer\UI\Account\AccountController.cs:line 192
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.Invoke(HttpContext context)
   at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at IdentityServer.Startup.<>c.<<Configure>b__6_0>d.MoveNext() in C:\Users\Ryan\Projects\Identity Server\src\IdentityServer\Startup.cs:line 213
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

        /// <summary>
        /// Post processing of external authentication
        /// </summary>
        [HttpGet]
        public async Task<IActionResult> ExternalLoginCallback()
        {
            // read external identity from the temporary cookie
            var result = await HttpContext.AuthenticateAsync(IdentityServer4.IdentityServerConstants.ExternalCookieAuthenticationScheme);

            if (result.Succeeded != true)
            {
                throw new Exception("External authentication error");
            }
            ...
         }

I have the same issue, but can provide more information.
I don't believe this is a problem with the Identity Server package itself, rather with your application that is hosting the Identity Server package (not your client application). I guess like me you built your Identity Server application using one of the quick start samples. These all use a class called SecurityHeadersAttribute.cs which adds a Content Security Policy (CSP).
I think the upcoming version of Safari either has a bug in it that means it is interpreting this CSP incorrectly and no longer sending cookies with a cross domain POST... or they have implemented a tighter level of security than previously (and tighter than other browsers) which results in the same thing... the correlation and nonce cookies that are set by your client application during authentication are not being sent back to your client application as the user's browser POSTs back from the Identity Server application.
I suspect there are many more client applications out there (that are based on the samples) who will fall foul of this in two weeks time unless Apple know there is an issue and are about to fix it or they weaken/remove the CSP built into their Identity Server.

@pierslawson thanks for the insight! I removed my CSP policies from AccountController and ExternalController, but I'm still seeing the issue. I noticed that this problem does not exist with the IdentityServer4 Demo site.

@Tratcher interesting. Any idea how to disable same site on the ExternalCookieAuthenticationScheme? Am I best off just creating a custom scheme?

Looks like bullet dodged on potential login failures starting next week.
This did it for me:
.AddCookie(Constants.PingExternalAuthenticationScheme, options =>
{
     options.Cookie.Name = Constants.PingExternalAuthenticationScheme;
      options.Cookie.SameSite = Microsoft.AspNetCore.Http.SameSiteMode.None;
})

Ah, services.ConfigureExternalCookie(...); for folks using ASP.NET Identity.

@Tratcher would this be considered a bug in Safari 12's implementation of SameSite cookies? I used their Feedback app to report the discrepancy in behavior;  not sure if there is a better route.

None of the browsers have quite decided how to handle OAuth scenarios with SameSite. When we tested them a few months ago they all broke and we had to disable SameSite. I hear a few of them now work the the Lax setting but apparently not IOS.

Got it... so disabling SameSite completely is the best option for now. Thanks for your background on the issue!

@brockallen , it looks like the idsrv.external cookie options in AddIdentityServer cannot be overridden, or I can't figure out how. This cookie is being assigned the samesite=lax setting. This setting breaks in iOS 12. Any direction on how to change this?
I need to add options.Cookie.SameSite = SameSiteMode.None;
to ConfigureInternalCookieOptions Line 41
if (name == IdentityServerConstants.ExternalCookieAuthenticationScheme)
{
    ///need options.Cookie.SameSite = SameSiteMode.None; here
    options.Cookie.Name = IdentityServerConstants.ExternalCookieAuthenticationScheme;
}

You don't have to use our external cookie. As such, configure your own and make your UI use it (instead of ours).

Thanks again for the great tools @brockallen and for supporting the community.

When is this fit set to release @brockallen ?

We will be working on the next preview late next week.

Okay, thanks for answering. :)
I can comfirm creating our own cookie scheme, without SameSite solved all iOS 12 related problems here as well.

Running into this problem as well using Azure AD for authentication.
@NickyM can you please post some code on what you had to do to get your own cookie scheme working? Thanks!

@dpotoole, well basically I just renamed the cookiescheme, and then signed in using that cookie scheme.
I have to instances of IdentityServer, where one is using AspNetIdentity and one dont.
Identity server with external login (MS + Google), and AspNetIdentity for handling local users
Startup.cs:
services.AddAuthentication(".YourCookieScheme.Name")
	.AddCookie(".YourCookieScheme.Name", options =>
	{
		options.Cookie.Name = ".YourCookieScheme.Name";
		options.Cookie.SameSite = SameSiteMode.None;
	})
	.AddMicrosoftAccount(options =>
	{
		options.CorrelationCookie.SameSite = SameSiteMode.None;
		options.SignInScheme = ".YourCookieScheme.Name";
		//Rest of settings here
	})
	.AddGoogle(options =>
	{
		options.CorrelationCookie.SameSite = SameSiteMode.None;
		options.SignInScheme = ".YourCookieScheme.Name";
		//Rest of settings here
	});

And in /Account/ExternalLoginCallback:
public async Task<IActionResult> ExternalLoginCallback(string returnUrl = null, string remoteError = null)
{
	var info = await GetExternalLoginInfoAsync();

	//( ... inrellevant business logic ... )

	var result = await _signInManager.ExternalLoginSignInAsync(info.LoginProvider, info.ProviderKey, isPersistent: false);

	//( ... irellevant business logic ... )

	await _httpContextAccessor.HttpContext.SignOutAsync(".YourCookieScheme.Cookies");

	//( ... irellevant business logic ... )
}

Where GetExternalLoginInfoAsync() is modified copy of _sigInManager.GetExternalLoginInfo (https://github.com/aspnet/Identity/blob/master/src/Identity/SignInManager.cs)
private async Task<ExternalLoginInfo> GetExternalLoginInfoAsync(string expectedXsrf = null)
{
	var auth = await _httpContextAccessor.HttpContext.AuthenticateAsync(".YourCookieScheme.Name");
	//rest of method
}

private async Task<IEnumerable<AuthenticationScheme>> GetExternalAuthenticationSchemesAsync()
{
	var schemes = await _schemes.GetAllSchemesAsync();
	return schemes.Where(s => !string.IsNullOrEmpty(s.DisplayName));
}

Identity server, that uses another identity server for login
Startup.cs:
services.AddAuthentication(".AnotherCookieScheme.Name")
	.AddCookie(".AnotherCookieScheme.Name", options =>
	{
		options.Cookie.Name = ".AnotherCookieScheme.Name";
		options.Cookie.SameSite = SameSiteMode.None;
	})
	.AddOpenIdConnect(options =>
	{
		options.CorrelationCookie.SameSite = SameSiteMode.None;
		options.SignInScheme = ".AnotherCookieScheme.Name";
		//Rest of settings here
	})

Account/ExternalLoginCallback:
public async Task<IActionResult> ExternalCallback(string returnUrl)
{
	//Read external identity from the tempoary cookie
	var result = await HttpContext.AuthenticateAsync(".AnotherCookieScheme.Cookies");

	//(.... extracting claims from result and signing in ... )

	// Delete tempoary cookie used during external authentication
	await HttpContext.SignOutAsync(".AnotherCookieScheme.Cookies");
}

Hope that it helps.  I have no clue, if this is the best and most optimal solution, but it works and I'm happy.

After looking more closely at what IdentityServer was doing, I figure out a workaround. This has been confirmed on our system. My workaround just targets this cookie:
    public class FixIos12Cookies : IConfigureNamedOptions<CookieAuthenticationOptions>
    {
        public void Configure(CookieAuthenticationOptions options)
        {
        }

        public void Configure(string name, CookieAuthenticationOptions options)
        {

            if (name == IdentityServerConstants.ExternalCookieAuthenticationScheme)
            {
                options.Cookie.SameSite = SameSiteMode.None;
            }
        }
    }

Then after you setup IdentityServer, you add this to DI
var idServerBuilder = services.AddIdentityServer();
...
services.AddSingleton<IConfigureOptions<CookieAuthenticationOptions>, FixIos12Cookies>();

This should be able to be removed when the patch goes through.

I tried the workaround above and it didn't work. But keep reading if it didn't work for you either. I then tried the solution described here: https://github.com/aspnet/Identity/issues/1970#issuecomment-424566071 which did work.
Then I thought that this option may work after all, but the singleton needs to be registered AFTER services.AddAuthentication().
Please correct me if I'm wrong @cdwaddell :)
Deeper information below
I've kept reading on as I wanted to know what this SameSite cookie option was and why it was broken in iOS 12, which led me to the following bug reported to Webkit: https://bugs.webkit.org/show_bug.cgi?id=188165
And that led me to https://datatracker.ietf.org/doc/draft-ietf-httpbis-rfc6265bis/ which is an Expired Internet Draft.
As far as I can see, Webkit implemented an expired draft, which is probably expired for a reason (seeing it doesn't work with oAuth).

@Devvox93 , you do have to combine it with a couple of other settings changes that I had posted earlier. The most important is changing the MinimumSameSitePolicy to allow the SameSiteMode.None. Otherwise the same site setting may not get applied because it is too low. Here they all are in one place.
            service.ConfigureApplicationCookie(options =>
            {
                options.Cookie.SameSite = SameSiteMode.None;
            });

            service.ConfigureExternalCookie(options =>
            {
                options.Cookie.SameSite = SameSiteMode.None;
            });
...
            app.UseCookiePolicy(new CookiePolicyOptions {MinimumSameSitePolicy = SameSiteMode.None});
...
           //for each of your external login providers
           options.CorrelationCookie.SameSite = SameSiteMode.None;

If it still doesn't work for you, then you have another cookie with the bad policy. The way I tracked them all down was inspecting the cookies in Chrome's Developer Tools. I had to inspect each response for new cookies being added. Each cookie needed it's own samesite policy change. After the changes above, the external cookie itself still had the issue. That was what caused the need for the workaround:
    public class FixIos12Cookies : IConfigureNamedOptions<CookieAuthenticationOptions>
    {
        public void Configure(CookieAuthenticationOptions options)
        {
        }

        public void Configure(string name, CookieAuthenticationOptions options)
        {

            if (name == IdentityServerConstants.ExternalCookieAuthenticationScheme)
            {
                options.Cookie.SameSite = SameSiteMode.None;
            }
        }
    }

Then add it to DI. The only requirement (I think) is for it to be after AddIdentityServer:
var idServerBuilder = services.AddIdentityServer();
...
services.AddSingleton<IConfigureOptions<CookieAuthenticationOptions>, FixIos12Cookies>();

In my case, this (and only this) was what I did to fix the issue:
services.AddAuthentication()
    .Services.ConfigureExternalCookie(options =>
    {
        options.Cookie = new CookieBuilder
        {
            SameSite = SameSiteMode.None
        };
    });

I see @NickyM also setting the None setting on the correlation cookies for the external providers. Can anyone confirm if that is also necessary for this iOS 12 browser issue? I did not see that as necessary from the Microsoft announcement.

@brockallen: I'll double check tomorrow morning. It's 10:15pm here, and I'll have to get to my workplace to run and iOS device agains my development machine.
Better have as little disabled as possible. Haven't tried the ConfigureExternalCookie. ConfigureApplicationCookie alone isn't enough, and I did unfortunately not spot that one at the time of patching.

I've made the change for the external cookie (also done in the ASP.NET Identity integration library as well).

@brockallen @NickyM The correlation cookies already default to none due to issues we observed with earlier implementations on other browsers.

Ok, good to hear. Thanks for the info @Tratcher.

Given that info, I can close this. Thanks all.

@brockallen any idea when this will be released? I can implement one of these workarounds but if it's going to be pushed out this week I'll just wait. Thanks!

preview2 will be in the next week. rtm end of next month (november).

Hi @leastprivilege , have the same issue (I think) in Safari for windows. Have upgraded to 2.3.0 and can see that the external cookies now gone from LAX to None. Any ideas?

does this mean that updating my identityserver to 2.3.0 would not need these workarounds? should there be any codes changes in the web client app as well? Thanks!

@prflores updating to 2.3 fixed this issue for me

Thanks for the info @rushfrisby. I am not sure if this is related to my issue but I'm experiencing an infinite redirection between my identityserver and client site from iOS 12 users only (android, windows desktop and old version of iOS is fine) when signing-in (identity server with asp.net identity). I upgraded to 2.3.0 but still same result. I compared the logs got from iOS users and desktop users and surprised it is almost the same. I'm not sure where to start checking. Any help would do. Thank you.


[BUG] ImportError: cannot import name 'V4L2_CID_MPEG_VIDEO_H264_PROFILE' from 'v4l2'

Please only report one bug per issue!
Describe the bug
Cannot use picamera2 with OpenCV
To Reproduce
If you have the same issue
$python3
Expected behaviour
No error when importing picamera2
Console Output, Screenshots
Traceback (most recent call last):
File "/home/dima/Desktop/test.py", line 2, in
from picamera2 import Picamera2
File "/usr/lib/python3/dist-packages/picamera2/init.py", line 9, in
from .picamera2 import Picamera2, Preview
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 26, in
from picamera2.encoders import Encoder, H264Encoder, MJPEGEncoder, Quality
File "/usr/lib/python3/dist-packages/picamera2/encoders/init.py", line 21, in
from .h264_encoder import H264Encoder
File "/usr/lib/python3/dist-packages/picamera2/encoders/h264_encoder.py", line 3, in
from v4l2 import (V4L2_CID_MPEG_VIDEO_H264_I_PERIOD,
ImportError: cannot import name 'V4L2_CID_MPEG_VIDEO_H264_PROFILE' from 'v4l2' (/home/dima/cv/lib/python3.11/site-packages/v4l2.py)
Hardware :
Please state what kind of Pi you are using, and what camera is attached.
Additional context
Add any other context about the problem here.
Raspberry Pi 4 Model B Rev 1.5
Raspberry Pi Camera rev 1.3
Name: v4l2-python3
Version: 0.3.2
Summary: Python bindings for the v4l2 userspace api.
Home-page: https://pypi.org/project/v4l2-python3/
Author:
Author-email:
License: GPLv2
Location: /home/dima/cv/lib/python3.11/site-packages
Name: picamera2
Version: 0.3.18
Summary: The libcamera-based Python interface to Raspberry Pi cameras, based on the original Picamera library
Home-page: https://github.com/RaspberryPi/picamera2
Author: Raspberry Pi & Raspberry Pi Foundation
Author-email<EMAIL_ADDRESS>License: BSD 2-Clause License
Location: /usr/lib/python3/dist-packages

Hi, it sounds like you have an out of date version of python3-v4l2 - the latest is 0.3.4. Please update it and try again. Thanks!


Emmet Support

Is your feature request related to a problem? Please describe.
It's painful to write html without emmet
Describe the solution you'd like
Emmet support for completion-nvim
Describe alternatives you've considered
UtliSnips with emmet plugin but UltiSnips is painstakingly slow.

yep we should be has a completion source from emmet.

I never done some serious html development so I have zero experience on using emmet...It would be better if others that have more knowledge on emmet can implement it.

I could try to implement it although are there any docs on how to add completion sources?

See wiki for some guide. Also I think there are some links in README which links to other external sources and that might be helpful. Feel free ask me anything if you're stuck:)

@haorenW1025 The prefix resets when a character like >, #, . are typed but emmet can't work without those. Is there any way to include those in prefix?

@haorenW1025 @blackCauldron7 @glepnir
I needed something to replace coc-emmet. And I just implemented it as another language server. Could you try this out?
https://github.com/aca/emmet-ls

@haorenW1025 @blackCauldron7 @glepnir
I needed something to replace coc-emmet. And I just implemented it as another language server. Could you try this out?
https://github.com/aca/emmet-ls

It expands but doesn't function properly i have opened a more elaborate issue in your repository.
@aca

Any updates about Emmet being implemented in completion-nvim?
How can I use Emmet with comlpetion-nvim?


Updating diagnosing-syncset-problems and adding an exampple of syncset

Signed-off-by: Lalatendu Mohanty<EMAIL_ADDRESS>

/lgtm


ID to key mapping in compute plan

Following #102, the ID to key mapping is only returned after a create or an update and only contains the newly created keys.
From the end user standpoint, this could be an issue: let's say there is a connexion interruption or that their script failed right after the create/update : the mapping is lost forever and they have no way to add more tuples to the compute plan.
Adding the id_to_key mapping as an independent value increased the size of the CP object threefold. We could however replace the *tuple_keys by *tuple_id_to_keys and only increase it twofold. This is of course a significant increase but we wouldn't be breaking our only recovery strategy (get the object to know where you're at).

As pointed by @jmorel, in case of a timeout the add response from the chaincode may be lost.
That's the reason why I think we must ensure the get / add responses are the same.


Kestrel 2 Python Analytics support

Also adds the CLI tools from kestrel 1.x
Some import changes due to running the commands below:
unimport --exclude __init__.py $SRC_DIRS
isort $SRC_DIRS
black $SRC_DIRS

isort re-ordered some imports

does it make sense to rename kestrel/analytics/interface.py to kestrel/analytics/python.py?
It may, but my thinking here is that only the Python interface will be built-in (i.e. have its implementation in this package) while others such as docker will be implemented in their own packages (to avoid introducing unnecessary dependencies).


$templateRequestProvider httpOptions are not used when downloading templates

With angular 1.5.0 beta2 have the following config block:
app.config(function($templateRequestProvider) {
    $templateRequestProvider.httpOptions({
        params: {
            '_': 'some-build-id'
        }
    });
});

I expect this to add a parameter to the request when downloading any template.
This is not the case, no parameter is added. I checked with a debugger a bit and it seems like $templateRequest is never used to download templates, apparently it goes directly to $http.
Maybe I'm misunderstanding what this provider is used for, but I was under the impression i can modify the behaviour when angular needs to request a template file.

What kind of templates are we talking about? Directive templates? ng-includes? route templates?

The templates I tried loading were for routes with angular-ui/ui-router, I just realized this is not an issue with angular directly and angular-ui already has pull requests for using $templateRequest. Works fine for directive templates.


Split journey session per journey

There's quite a lot of files changed but the bulk of them are just updating the specs to use the journey session factory for the appropriate journey session. So don't worry about having to do a massive review 😂 Probably easier to review each commit separately.
This is a follow up to https://github.com/DFE-Digital/claim-additional-payments-for-teaching/pull/2738 I've put these changes in a separate PR so we can discuss them more easily.
There's three changes in this pr.
The first is adding a Journeys::Session for each journey, as both journeys have different eligibility attributes and will likely have different behaviour hanging off the journey session it seems sensible to have separate objects. The shared base class contains the claim attributes that are common between the two journeys.
The next change is adding attributes and type casting to the answers hash. The type casting makes it easier to work with Academic years. Having methods rather than accessing values with [ ] makes it easier to mimic the Claim's api in places where we need to access the same data pre and post claim submission (eg working with DqtRecords).
The third change is cleaning up some of the noise in the claim submission form, we don't really need the list of attributes in each of the claim subclasses as it's now just duplicating info stored on the journey sessions.
Let me know if we want to go with this approach or if this a bit ott (happy to jump on call to discuss anything)
There's still the outstanding question from PR #2738 as to whether we want to store a reference to the journey session on the claim or whether we want to add a submitted_at time stamp to the journey session to detect if a session has already been submitted.
If this PR looks good I'll merge it into #2738 and then ship #2738

👏 This looks really good.
I do think it adds a little complexity but it does solve a number of issues we identified. Overall I'm comfortable with it.
As you mentioned I think there's an open question about whether data in the session table is ephemeral or retained for future reference. I see advantages and disadvantages.
With these changes we now have a model class around the answer set data, so we could potentially re-use it regardless of where the data is stored, e.g. if it's copied to the claim on submission.
Just a couple of minor points added to inline comments.

@slorek Thanks for the review, have addressed your comments. I'm going to merge this PR into the base branch and we can pick up any issues from there. @felixclack probably set to base any work off of submit-claim-from-journey-session and then rebase onto master once that PR has the green light


added useref hook to handle clicks outside of search bar while it's b…

Added a use ref call to close the search field whenever you click away from it, imported the css files .

 close search results on click away


SerialDevice.LoadAsync  block await task

I having a little issue reading data from Nave32  Flight Controller, I'm able to send data to the card using the SerialDevice class but when the LoadAsync Method is call and there is no more data to read the app hung and does not move forward, there is not exception during the execution of the process. I look at the app state and there is a bunch a task block and I'm not sure why. See image below
here is my example code
namespace Apps.Receiver
{
	/// <summary>
	/// An empty page that can be used on its own or navigated to within a Frame.
	/// </summary>
	public sealed partial class MainPage : Page
	{

		public MainPage()
		{
			this.InitializeComponent();
			this.dataRecived.Text = DateTime.Now.ToString();
		}

		private async Task readAsync(SerialDevice serialPort)
		{
			string data = string.Empty;
			using (var dataReaderObject = new DataReader(serialPort.InputStream))
			{
				try
				{
					dataReaderObject.InputStreamOptions = InputStreamOptions.None;
					var hasData = true;
					while (hasData)
					{

						var bytesRead = await dataReaderObject.LoadAsync(serialPort.DataBits);
						if (bytesRead > 0)
							data += dataReaderObject.ReadString(bytesRead);
						else
							hasData = false;

					}
				}
				catch (Exception ex)
				{
					status.Text = "reading data fail: " + ex.Message;
					closeDevice(serialPort);
				}
			}

			dataRecived.Text = data;
		}

		private async void sendData_Click(object sender, RoutedEventArgs e)
		{

			var serialPort = await getSerialDevice("COM3");

			if (dataToSend.Text.Length != 0)
			{

				using (var dataWriteObject = new DataWriter(serialPort.OutputStream))
				{
					try
					{
						if (dataToSend.Text.Equals("#", StringComparison.CurrentCultureIgnoreCase))
							dataWriteObject.WriteString(dataToSend.Text);
						else
							dataWriteObject.WriteString(dataToSend.Text + "\n");

						var bytesWritten = await dataWriteObject.StoreAsync();
						if (bytesWritten > 0)
						{
							status.Text = dataToSend.Text + ", ";
							status.Text += "bytes written successfully!";
						}
						await readAsync(serialPort);

					}
					catch (Exception ex)
					{
						status.Text = "writing data fail: " + ex.Message;
					}
				}
				closeDevice(serialPort);
			}
			else
			{
				status.Text = "Enter the text you want to write and then click on 'WRITE'";
			}
		}

		private void closeDevice(SerialDevice device)
		{
			device.Dispose();
			device = null;
		}

		private async Task<SerialDevice> getSerialDevice(string portName)
		{
			var aqs = SerialDevice.GetDeviceSelector("COM3");
			var devices = await DeviceInformation.FindAllAsync(aqs);

			if (devices.Count == 0)
				throw new Exception("Unablet to connect to device");

			var serialPort = await SerialDevice.FromIdAsync(devices[0].Id);

			if (serialPort == null)
				throw new Exception("Unablet to Open to port " + portName);

			serialPort.BaudRate = 115200;
			serialPort.DataBits = 8;

			return serialPort;
		}

	}
}

If this is implemented like other async stream reads, the hasdata=false code will only be executed when the stream is closed.  Otherwise, the LoadAsync will only be triggered when there is data to read.
You may need to interpret the data after each LoadAsync call is triggered and determine in your code if what you've loaded is complete.

Basically LoadAsync will in a waiting state if I call it after the last byte read. Can explain when you said create a trigger? you mean look something on the data that come back and that trigger the stop or some other class method to validate?

What I meant was that after each call to LoadAsync returns, check to see if the data that has been received is "complete".  If it is, do not call LoadAsync again.  If it is not, then call LoadAsync again.

Closing as stale - No response for more than one Month


update text

how you like them updated apples?

Hnnnnghghgh, I kinda like breaking lines in Markdown files. I know we've had this discussion somewhere earlier, but I can't remember the outcome.

I see what you mean, @sindrenm. Should we agree on something there? Break after 80 characters?

That would make me a very happy camper, @ealmdahl! :grinning:

Made it 100 characters wide. 80 felt like this

Love this. I'll merge it. :smiley:

I think we concluded to break Markdown in that discussion, @sindrenm.

Here: https://github.com/hyperoslo/playbook/pull/20

Right! Thanks for the link, @jgorset. Doesn't look like we concluded on an actual character count per line, though. The link I posted did mention 60 characters, but that's kinda … narrow. :stuck_out_tongue:

90 or 100 feels fine to me.

:+1:


[Feature, DA] Introduce bDAQC transformation

Assuming perfect pulse for the X rotation (the "digital" part of the transformation.
Depends on #153

Prototype for a first compilation pass ? @jpmoutinho @kaosmicadei


Documentation on pruned mode support is outdated

Background
The safety docs around prune mode support are outdated and do not specify that prune mode is now supported with v0.13.0

Looks like we missed updating that section in this commit: https://github.com/lightningnetwork/lnd/commit/410b30b9caaf59a78a29d8b924e14395b7daa59d

This was fixed here: https://github.com/lightningnetwork/lnd/commit/a39e6105e46e34a7c573c157bae2ce11df0541fc

Fixed in #5765.


Update RemoteException.java

to  use     protoc  compiler   with   version   2.5       to    compile  RpcHeader.proto,there  is  a   exception  that  cannot   resolve method  of    forNumber  in    RpcErrorCodeProto
Rpc RpcErrorCodeProto.forNumber(errorCode),as  show   above   code,
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
26m  1s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
32m 54s

trunk passed

+1 :green_heart:
compile
20m  1s

trunk passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
compile
17m 14s

trunk passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+1 :green_heart:
checkstyle
0m 53s

trunk passed

+1 :green_heart:
mvnsite
1m 29s

trunk passed

+1 :green_heart:
shadedclient
17m 53s

branch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
1m  4s

trunk passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
javadoc
1m 36s

trunk passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+0 :ok:
spotbugs
2m 21s

Used deprecated FindBugs config; considering switching to SpotBugs.

+1 :green_heart:
findbugs
2m 19s

trunk passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 52s

the patch passed

+1 :green_heart:
compile
19m 20s

the patch passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

-1 :x:
javac
19m 20s
/diff-compile-javac-root-jdkUbuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04.txt
root-jdkUbuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04 with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04 generated 1 new + 2053 unchanged - 0 fixed = 2054 total (was 2053)

+1 :green_heart:
compile
17m 12s

the patch passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

-1 :x:
javac
17m 12s
/diff-compile-javac-root-jdkPrivateBuild-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01.txt
root-jdkPrivateBuild-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01 with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01 generated 1 new + 1946 unchanged - 0 fixed = 1947 total (was 1946)

+1 :green_heart:
checkstyle
0m 52s

the patch passed

+1 :green_heart:
mvnsite
1m 29s

the patch passed

+1 :green_heart:
whitespace
0m  0s

The patch has no whitespace issues.

+1 :green_heart:
shadedclient
15m 30s

patch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
1m  3s

the patch passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
javadoc
1m 33s

the patch passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+1 :green_heart:
findbugs
2m 22s

the patch passed

_ Other Tests _

+1 :green_heart:
unit
9m 35s

hadoop-common in the patch passed.

+1 :green_heart:
asflicense
0m 55s

The patch does not generate ASF License warnings.

194m 40s

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2502/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/2502

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 724458e194a3 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 44910b53f38

Default Java
Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2502/1/testReport/

Max. process+thread count
3249 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2502/1/console

versions
git=2.17.1 maven=3.6.0 findbugs=4.0.6

Powered by
Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

Is there a jira for this?
Please read - https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
You need to create a jira here- https://issues.apache.org/jira/projects/HADOOP
Add details, what the issue is? How to repro, what problem you are facing and stuff


chore: bump superset-ui to v0.17.85

SUMMARY

Bumps superset-ui to the latest version, 0.17.85. This pulls in the following PRs (complete diff here):

https://github.com/apache-superset/superset-ui/pull/1304

(Fixes #16177)

https://github.com/apache-superset/superset-ui/pull/1315

(Fixes #16283)

https://github.com/apache-superset/superset-ui/pull/1316
https://github.com/apache-superset/superset-ui/pull/1317

(Fixes #16307)

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[x] Has associated issue: See above
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

🏷 2021.31.10

🏷 2021.31