PDF offer: end of project period is a fix number

Describe the bug
In the PDF offer the delivery period of the project ends with 1970 instead of the filed due date.
To Reproduce
Create a pdf offer in a project.
Scroll to "Leistungszeitraum".
Expected behavior
The delivery period of the project ends with the due date taht is filed in the project.
Screenshots

System (please complete the following information):

version: 2.1.10

Additional context
This problem was seen for exiting projects ('Dolorum Cumque Quia') and also for changed projects ('Enim Quasi Fugit').

Ah good old start of the 32bit unix time epoch 😂 Good catch, thanks.


allow search in course_settings_MITx_Online_Prod on BI

User Story
I'd like to be able to search/filter on particular course titles and keys (aka run_title and courseware_id_readable)
Acceptance Criteria

[ ] add a visualization with a search option

Done.
https://bi.odl.mit.edu/queries/1194


Custom fonts have vertical offset with unicode symbols

Egui default font with 0.21:

Noto sans with 0.19:

Noto sans with 0.21:

Although a bit hard to see, all symbols are offset in the y direction. I tried different fonts such as IBM plex, and they show this as well.
Describe the bug
Symbols are not vertically aligned with text if using a custom font.
To Reproduce
Steps to reproduce the behavior:
pub fn new(cc: &eframe::CreationContext<'_>) -> Self {
    let mut fonts = FontDefinitions::default();
    fonts.font_data.insert(
        "my_font".to_owned(),
        FontData::from_static(include_bytes!("../res/fonts/NotoSans-Regular.ttf")),
        // FontData::from_static(include_bytes!("../res/fonts/IBMPlexSans-Regular.ttf")),
    );
    fonts
        .families
        .get_mut(&FontFamily::Proportional)
        .unwrap()
        .insert(0, "my_font".to_owned());
    cc.egui_ctx.set_fonts(fonts);
    Default::default()
}

Actually after reading your post and trying Inter (which worked and is vertically aligned with symbols) I am not so sure any more if I just picked the wrong fonts. Noto and Plex are pretty common though and I wonder what they do differently.

There may be a "vertical offset" font attribute that egui ignores, and shouldn't. In any case, you can tweak the y-offset when you load your fonts using https://docs.rs/egui/latest/egui/struct.FontData.html#method.tweak

I've run into this using Roboto, and had to add a manual y offset in the font tweaks. Issue found when upgrading to v0.20.


New Rule: auto-play property validation

Rule details
checking if auto-play property is set to false for all videos attached
Related ECMAScript feature
No response
What type of rule is this?
Style
Which codebase the rule should be implemented?
ec0lint-style
Participation

[ ] I am willing to submit a pull request to implement this rule.

Additional comments
No response

Still an open issue, waiting in backlog to be taken

to be updated by @martinabab


Ideas for metadata fields for reproducible builds

ideas to extend the yaml file with following fields
- CRC32: 0x12345678                      of the binary build => or even per library / source level
- DATE_CREATED: 2021-01-01
- VERSION: 1.0.3
- AUTHOR: john doe
- EMAIL: john doe @ provider.com
- COPYRIGHT: MIT, GPL, GPS, none
- LOCATION: github.com/johnDoe/Arduino/....

The CRC32 is the 'ultimate' compatibility check. OK other hashes might even be more 'ultimate' but you get the idea.
From the list above the CRC is the only one that can actually be used and affect the build process.
So the other ones may appear as comments?

a CRC32 on library level can cause problems regarding configuration of libraries in their .h files

@SirSydom
Can you give an example?
It is not clear for me what problem you are pointing at.

some libraries contain defines in their header files to adapt the library to specific needs. some example I found after quick search: https://github.com/adafruit/Adafruit_NeoPixel/blob/13d4e20f60a7c3a909693759a01a84c781f732b1/Adafruit_NeoPixel.h#L134
This is a general design flaw in the arduino environment - because the library is for ALL you projects (sketches) but the change to its defines may be only valid for one specific sketch (or even on specific version of one specific sketch).
To adress this, one could think about not touching the lib but specifing the defines to the preprocessor directly (which could be done in the propossed idea) - but this will only work if all relevant defines are made to work with that, e.g. with #ifndef FOO #define FOO BAR #endif
So, guarding libraries you use untouched will work with a crc32. But what if the library has to be modified ?

But what if the library has to be modified ?

I see the point made and yes the CRC would produce a mismatch
That in itself should not result in a failing build, however a warning seems to be reasonable / fair.
If the programmer knows it did change the library she/he should expect a CRC warning.
The CRC should not be mandatory, but using it gives that little extra control.

as I just recognized, there is a proposed solution for the problem:
https://github.com/arduino/tooling-rfcs/blob/profiles/RFCs/0003-build-profiles.md#vendoring-libraries-with-custom-modifications

Sounds like a generic solution - still, even from such modified library a CRC could be made  :)

We thought about adding a CRC, but in the end, we opted to not add it in this first iteration because it has some tricky issues to clear out:

the binary produced by the build may not be always reproducible bit-by-bit because the binary may contain the current date or filesystem paths (in .elf files for example) or debugging info or other artifacts that are system-dependent.
this means that we should produce source-level CRC, but then we must define an algorithm that scans a directory and produce a single CRC that should be portable across different OS (with different line-endings, filesystem properties...) or, alternatively, store all CRC for all source files (but in this case we will pollute the profiles.yaml with a lot of crcs...)

BTW the idea of adding CRC is still valid IMHO, and we will surely add it in the future.

@cmaglie
Thanks those points make sense, now that you mention it  I recall similar problems on MSVC due to build number in dll's and exe's.
Maybe it is possible to get a  (weaker) signature from the cyclomatic complexity of the code?
(roughly number of possible paths)

we will surely add it in the future.

Propose to add an appropriate label e.g. FUTURE to the issue.


Default value of '0' for --tile-rows  and --tile-cols is correct? Not 1?

    --tile-rows <TILE_ROWS>
        Number of tile rows. Must be a power of 2. rav1e may override this based on video resolution. [default: 0]

    --tile-cols <TILE_COLS>
        Number of tile columns. Must be a power of 2. rav1e may override this based on video resolution. [default: 0]

I think the default should be corrected as 1 for both.
The 0 is also clearly not a power of 2.

Setting this to 0 means that rav1e will auto-select how many tiles to use.
Possibly it would be more clear if the help text said "auto" instead of "0"?

Setting this to 0 means that rav1e will auto-select how many tiles to use.
Possibly it would be more clear if the help text said "auto" instead of "0"?

Oh, if that is the case, we can simple add some hidden meaning of what 0 means there. As you mentioned, 0 means rav1e will choose best values based on some conditions (# of cpus, memory size, day of a week, weather conditions, ... :) )

Similar change would be needed for:
--tiles
Number of tiles. Tile-cols and tile-rows are overridden
so that the video has at least this many tiles. [default: 0]


Allow Extension versions

Please allow the ability to add versions for extensions.  This helps with maintaining old versions of code as specific versions of extensions are required for maintaining old software.  We strictly use devcontainers and as such its very annoying to have to roll back every single extension to a specific version.
As suggested by the community something like:
{
    "recommendations": [
        "ms-python.python", //latest
<EMAIL_ADDRESS>//with version suffix
        {
            // as dictionary
            "id": "ms-python.python",
            "version": "2022.0.0"
        }
    ]
}

Please don't tell the vs code community its out of scope, every single piece of software development allows for specific versions to be installed (npm, docker, linux with apt.... etc) and we see no difference for extensions.

/duplicate
https://github.com/microsoft/vscode/issues/138048
I have reopened the original issue and plan to support it

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


README parsing

Want a grader for README files. Parse file for name, hours, maybe order notation - and maybe display them on the page.

(Doesn't have to specifically be the README.txt file!)


LeakCanary found memory leak in this library

dear tiago as my search result leaks come from 3rd party libraries :(


Set scope for secrets

Feature Description
Gitea has now secrets that will be used by the upcoming Actions. It makes sense, to let the User limit the Scope where these Secrets are actually available (on a Pipeline triggered by a Push/PR etc.)
Screenshots
Something like Woodpecker does:

Hmm, do we really need this?
If not even GitHub or GitLab support it, is there really such a huge value in adding it?
This heavily complicates the logic, and I don't think you typically need that fine-grained separation.
I personally am rather against it.

This makes sense, as secrets can be exposed by malicious code in PRs. Gitea also has protected tags and branches, so it makes sense for those as well. GitHub does not allow use of secrets on PRs by default. Only on workflows triggered by specific event (pull_request_target). Does GitLab even has a built-in secret storage? I could not find. They have instructions on how to use Vault as a secret storage for its CI, and it allows for even more granularity than just refs.

Github does have different "scopes": Actions, Codespaces, Dependabot
If we want to use the secrets for internal logic like mirror credentials we will need different types too.


Basic auction optimization of code and null checks

ADDED NULL CHECKS TO PREVENT PAGE FROM CRASHING ON API FAIL ,
Optimisation of code and leakages with async calls and hooks

Sure will do thanks.

@vishwasrvalke Would you like to fix this PR so that we can merge it?


Fix / Upgrade Sequelize

Upgrades Sequelize to 5.8.2, and Sequelize-CLI to 5.4.0.
Closes #1592
Closes #1788
Ref: opencollective/opencollective#1873

It's really not super important, but half of this PR is coming from commits I authored in https://github.com/opencollective/opencollective-api/tree/greenkeeper/sequelize-5.1.0.
For history purpose and review, it would have been clearer to keep my commits and not squash them.

@znarf I initially kept the commits, until today when I needed to rebase and I was fixing issues on each of 17 commits, so I decided to squash so I could rebase once.

@znarf I've fixed the history.

This https://github.com/opencollective/opencollective-api/blob/b802b0eed236e30f1a04eef7a989f2dc5c3c07c3/server/models/Collective.js#L260
is going to break because of:

Validators
Custom validators defined per attribute (as opposed to the custom validators defined in the model's options) now run when the attribute's value is null and allowNull is true (while previously they didn't run and the validation succeeded immediately). To avoid problems when upgrading, please check all your custom validators defined per attribute, where allowNull is true, and make sure all these validators behave correctly when the value is null. See #9143.

@Betree Good catch! I've added a check for this case.
CircleCI isn't building because this is from a forked branch.

Thank you @eloyekunle! Merging.
A $300 bounty was attached to this issue, see: https://github.com/opencollective/opencollective/issues/1873.
To claim the bounty, you can:
a) submit an invoice to https://opencollective.com/engineering
b) or ask for an Open Collective gift card of the same value (to donate to other collectives)

@znarf  Great, I've submitted an expense.


Request Body not picked up by Scanners

The previous scanners were able to pickup Body parameters without any @ApiParam now I had to do something like this for it to pickup body parameters:
BEFORE:
public Response create(@ApiParam(value = "someHeader", required = true)
            @HeaderParam("someHeader") String header, String jsonBody) {

AFTER
public Response create(@ApiParam(value = DATASOURCE_HEADER, required = true)
                        @HeaderParam("someHeader") String header,
            @ApiParam(value = "jsonBody", required = true) String jsonBody) {

Discussion with @fehguy can be found here #925

This won't be able to be changed until M3.  Pushing to next milestone.

This should be fixed now.


Add Empty State for Doughnut Chart

Feature Proposal
Similar to the way that when a bar chart has no data, the axes and labels are still rendered, maybe for the doughnut the outline of the doughnut with a transparent fill could be used when there isn't any data for the doughnut to render.
Possible Implementation
No response

This could easily be done via a plugin. I'm not sure if this is a feature we want to start with in the core since it needs a lot of customization settings and thus increases the bundle size.

Example of a quick plugin to do this https://jsfiddle.net/89s0jf2d/

I think that plugin could be added to samples


Binance websocket respond to ping

Why did you closed your PR?

I tested the changes by running a websocket stream on my server for some time and the disconnects continued to happen, so I assumed there is something wrong with my proposed solution.
But although the disconnects still happen, they do so less frequently. I'm not sure why they still happen.

I had a look at the tungstenite source code:

Note that upon receiving a ping message, tungstenite cues a pong reply automatically. When you call either read_message, write_message or write_pending next it will try to send that pong out if the underlying connection can take more data. This means you should not respond to ping frames manually.

So it seems tungstenite handle pong reply when receiving a ping automatically. To be sure, I added traces on a openLimits Binance websoket test. There an extract:
[2020-09-12T10:07:35Z TRACE tungstenite::protocol::frame::frame] Parsed headers [137, 13]
[2020-09-12T10:07:35Z TRACE tungstenite::protocol::frame::frame] First: 10001001
[2020-09-12T10:07:35Z TRACE tungstenite::protocol::frame::frame] Second: 1101
[2020-09-12T10:07:35Z TRACE tungstenite::protocol::frame::frame] Opcode: Control(Ping)
[2020-09-12T10:07:35Z TRACE tungstenite::protocol::frame::frame] Masked: false
[2020-09-12T10:07:35Z TRACE tungstenite::protocol::frame] received frame
    <FRAME>
    final: true
    reserved: false false false
    opcode: PING
    length: 15
    payload length: 13
    payload: 0x31353939393035323535373738

[2020-09-12T10:07:35Z TRACE tungstenite::protocol] Received message<PHONE_NUMBER>778
[2020-09-12T10:07:35Z TRACE tungstenite::protocol] Sending pong reply
[2020-09-12T10:07:35Z TRACE tungstenite::protocol] Sending frame: Frame { header: FrameHeader { is_final: true, rsv1: false, rsv2: false, rsv3: false, opcode: Control(Pong), mask: Some([166, 155, 220, 144]) }, payload: [49, 53, 57, 57, 57, 48, 53, 50, 53, 53, 55, 55, 56] }
[2020-09-12T10:07:35Z TRACE tungstenite::protocol::frame] writing frame
    <FRAME>
    final: true
    reserved: false false false
    opcode: PONG
    length: 19
    payload length: 13
    payload: 0x31353939393035323535373738

We can see we receive a PING and write a PONG immediately after. So I guess the disconnections you have are not connected to ping...
There is the code I used to see the traces (using env_logger crate):
    let _ = env_logger::builder()
        .filter_module("tungstenite::protocol", LevelFilter::Trace)
        .is_test(true)
        .try_init();

    let mut websocket = BinanceWebsocket::new();
    let sub = Subscription::OrderBook("bnbbtc".to_string(), 5);

    websocket.subscribe(sub).await.unwrap();

    for _ in 1..1000 {
        let _ = websocket.next().await;
    }

Thanks @acatinon


[release-2.6] Added sonar project properties file to repo

Signed-off-by: dislbenn<EMAIL_ADDRESS>Description
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.
Type of change
What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

[ ] CHANGE (fix or feature that would cause existing functionality to not work as expected)
[ ] FEATURE (non-breaking change which adds functionality)
[ ] BUGFIX (non-breaking change which fixes an issue)
[ ] ENHANCEMENT (non-breaking change which improves existing functionality)
[ ] NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry
Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

/lgtm


Deposit code into a research software repository

Figshare and Zenodo both allow the deposit of research software. Both allow this to be done given a GitHub repository and a tag.
These repositories provide a guarantee that the software will remain available to the research community for at least 10 years (Figshare) or 20 years (Zenodo), unlike GitHub projects which can, in theory, disappear anytime. Figshare and Zenodo also provide a persistent digital object identifier (DOI) for the deposit and a complementary citable reference.

Version v1.0.0
DOI 10.5281/zenodo.11219582
https://doi.org/10.5281/zenodo.11219582
17 May 2024


make browserifiable?

Hi there! Thanks a ton for writing this module, you saved me a bunch of time. I had to make a couple of minor adjustments to get it working in the browser, which I did in a fork. Specifically removing runtime plugin system for algorithms. The algorithm files seem pretty lightweight -- would you consider simply baking them all into the module? If so I'd be happy to make a PR.
Let me also ask: is there any reason to make the interface asynchronous?

Hi there :-)
Yes sure having it browserifiable would be ace! I'll happily review your PR.
Re the no-being-asynchronous part: as all the operations are based on array loops, I did not feel the need to make the interface asynchronous — all the processing is synchronous.
The streaming interface would logically be asynchronous.
Do you see a case for asynchronicity otherwise?

Great. I need to wrap up the presentation I've been using it to prepare for but will try to get you a PR thereafter.
I may have been unclear in OP: right now the interface to .fromArray(data, onComplete) strikes me as being async. I'd personally prefer that it be synchronous (it's easier to go from sync to async, after all, when you do have some I/O operation like the streaming interface you mention).

Aah I get it. I forgot about this method signature.
I wrote it like to be eventually async in the future but even though this is a callback, the processing is synchronous. Maybe it is ambiguous and should return the value directly.
Have a look as this segment of the source code to clear your doubts about async processing.

By the way, I filled another issue (#5) to return a promise of passing the data to a callback.

Hi @sbma44!
<EMAIL_ADDRESS>is now on npm and now contains changes which will make your life easier:

fromArray returns a Promise – #5
there is no more require in the .use() method – #7
plus there is now a streaming detection too

Feel free to tell me how it goes in term of browserification, and if there is anything which should be changed to make it even easier to embed it in the browser.

Awesome @oncletom. My presentation got bumped so I'm likely to pick this back up later in the year. I really appreciate the changes! Will check back in then.

@sbma44 sure!
In the meantime I tried https://runkit.com/5800fd882bfbec0014aee45c/5800fd882bfbec0014aee45d and confirm it works with browserify :-) Same results with requirebin.com!
Let me know if there is anything else which could be helpful.
Thanks for the heads-up and out of curiosity, do you use for your personal use or at MapBox?
Cheers :-)

Personal use! Giving a talk about an ultrasonic distance sensor I built for my bike to measure how much space cars give me when they pass. I used Slayer to smooth the data.


Update package-management.md

Fix typo!
What this PR does / why we need it

Fix typo
Details for the Release Notes (PLEASE PROVIDE)

None

Which issue(s) this PR fixes

Fixes: #
Describe testing done for PR

Special notes for your reviewer

@rsimpson-cb Are you able to sign the CLA?

I work at vmw, so do I still have to sign it?

I work at vmw, so do I still have to sign it?

The easy route would be to sign since it's blocking the merge

Make sure you follow the instructions the bot references. It is a simple process for employees:

If you are a VMware employee, read this for further instruction.


docs/preprocessing.normalize incorrect import path in the example snippet

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

Summary
@benjaminmcdonald has reported a bug that the normalize API's example snippet is using an incorrect import path. The ticket aims to push a hotfix to correct it.

Closed by https://github.com/kalimdorjs/kalimdorjs/pull/131


TCP-over-IPv4

I am working on a company which uses pysnmp for a cloud printing solution - aiwip.com
We are finding that UCP is causing false negatives in our production codebase since we treat not being able to query the printer as an error.
I read here that TCP support is something of a future development http://pysnmp.sourceforge.net/development.html
What would be the steps needed for us to contribute this to the project to add support for TCP ?

Thank you for using pysnmp!
Could you elaborate a bit on your use-case? Is it that you are trying to monitor distant printers which time out occasionally? Why can't you retry?
While TCP might be more reliable, do the printers you monitor support SNMP-over-TCP?
Could you potentially reposition your SNMP managers closer to the printers to reduce packet loss?

We are using it to monitor distant printers, for us having the code to manage our printers on the server simplifies our setup. We used to have it on embedded devices connected to the printer but that added overhead of having to remotely update them especially when the network can be down.
Right now we do retry up to 3 times but on some of our 3G based networks it seems the packet drop can be just long enough to thwart all 3 times. I guess we could bump up the amount of retries up to something like 10. The network is connected though since our TCP based connections get through.
I'll look into the SNMP-Over-TCP support, I just assumed all of them supported it these days.

We are using it to monitor distant printers, for us having the code to manage our printers
on the server simplifies our setup.

Indeed! Let me rephrase my question -- could you have servers distributed around the world so that servers reside closer to the printers they manage?
In such case I'd suggest you taking a look at the distributed SNMP proxy tool -- it lets you turn UDP into TCP (for the unreliable part of the network) and then back into UDP for the last mile.

I'll look into the SNMP-Over-TCP support, I just assumed all of them supported it these days.

No! It's largely optional, AFAIK.
Let me know if you figure your printers do support SNMP-over-TCP. I'm definitely interested in having that implemented to pysnmp .


Support for lazyLoad?

I noticed you commented out lazyLoad in default-props.js. Will there be support for this in the future?
Thanks!

yes

I want to start looking into this to use it and potentially fix it myself. Do you have any context as to why this feature was disabled?
thanks!

This feature is not yet implemented.
We are thinking about implementing it.
We will be happy if you can submit a pull request with fix

@mattjstar I am working this feature will land in a day or two.

Thanks Vramana

@akiran Do you have any sense when you might publish the lazyload code in as a new version? Thanks!

It might take a week.  We are adding lot of other features as well.
We will test it thoroughly and then publish

great thanks!


Promises: chaining .then() loses type information

var p = new Promise(function(resolve, reject) {
resolve(5);
});
var p2 = p.then(function(num) {
return num.toFixed();
});
// Actual: p2 is Promise::any::
// Expect: p2 to be Promise::string::

When I add the following line to your test:
p2.then(function(str: number) { return str; });
I get expected number / string incompatibility errors.
When I fix the annotation of str to string, the errors go away.
This means that p2 is indeed tracked as Promise and not Promise, at least internally. Do you remember how you concluded that .then() loses type information? (It would point to a different bug, in that case. For example, did you try a different annotation? Or did you use type-at-pos to view the inferred type?

Yes, it seems to be ok when the function is explicitly typed. But this should work based on inference. I have verified both of these do not work as expected:

type-at-pos to view inferred type
No explicit type, undetected error in usage of inferred type

var p2 = new Promise(function(resolve, reject) {
resolve(5);
})
.then(function(num) {
return num.toFixed();
})
.then(function(str) {
// This should fail because str is str, not number
return str.toFixed();
});

Ping.

Spoke to @dalongi offline. I think I have a fix for this...it seemed to be an issue with how we were dealing with union types, and the type of then() has a union type. We're discussing it internally.

Will be fixed in the next release, will close when it lands.

This is definitely fixed and this issue can be closed. Since the callback argument to then is a union type, error messages suffer from #341

Actually, why is the onFulfill callback argument to then a union type? It seems like it shouldn't be.

OK, specifics:
/* @flow */

var p: Promise<string> = new Promise(function(resolve, reject) {
  resolve(5);
});

// test2.js|3 col 26 error|  constructor call
// || Error:
// test2.js|4 col 11 error|  number
// || This type is incompatible with
// /private/var/folders/z1/sdzkzrw94b1dttp72spg4fd00000gn/T/flow/flowlib_12b93d9f/lib/core.js|339 col 25 error|  union type
// ||

Why isn't this error message complaining that number is incompatible with string?

OK. Apologies for the incessant comments. This is the last one.
My example above truly is the issue described in #341.
The following is, I believe, different:
If the type of a promise is specified, things work as expected.
var p: Promise<number> = new Promise(function(resolve, reject) {
  resolve(5);
});

var p2: Promise<string> = p.then(function(n) {
  var check = n; // type-at-pos here returns `number`
  return n.toString();
})

But if the p promise's type is not specified, flow seems to infer a union.
var p = new Promise(function(resolve, reject) {
  resolve(5);
});

var p2: Promise<string> = p.then(function(n) {
  var check = n; // type-at-pos here returns "union type"
  return n.toString();
})

However! The following still type checks:
var p = new Promise(function(resolve, reject) {
  resolve(5);
});

var p2: Promise<string> = p.then(function(n) {
  var check: number = n; // if we infer a union, why does this work?
  return n.toString();
})

This is probably a separate issue.

Gonna close this since it looks like the original issue is fixed.
@samwgoldman , if there's another issue can you file a new one? thanks :)


Proposal: Coffee Meetup

Description:

This meetup is fueled by Meta Pool and Kaia Network. We will bring together tech enthusiasts, programmers, and community builders with a focus on blockchain, especially about Meta Pool and Kaia Network. Whether you're deep into blockchain, just dipping your toes in web3, or somewhere in between, this weekly meetup is your new go-to. We’re here to build, share ideas, and maybe even find your next collaborator. Grab a coffee, pull up a chair, and let’s build something great together!
Time: 09:30AM - 12:00PM on Sunday, 24th November
Location: Hầm Trú Ẩn Cafe (78 Ng. Trung Tiền, Khâm Thiên, Đống Đa, Hà Nội)

Bounty track:

Community

Here is the link: https://x.com/kyle_dev_crypto/status/1858054140905271423

approved for 200 + 90 = 290 KAIA

closing


Minio Client AWS Auth only supports Access Keys; Add Options to Credential Chain

Feature Description
Objective
We propose the following features added to the Gitea release cycle (release/v1.22):

Merge the credential chain reference for the Minio client credentials from the main branch into the current release cycle
Stretch goal: Add the Minio.Credential.IAM_AWS function getEKSPodIdentityCredentials to this credential chain at the end, this way native Kubernetes authentication is handled.

Details
We have deployed Gitea using the Helm Chart on our AWS EKS cluster. We’ve been able to stand it up with supporting infrastructure and figure out configurations, but we’ve discovered that the implementation of the Minio client under the Gitea release branch is only looking at AWS Access Keys (long term credentials) for authentication with AWS. The recommended best practice  from AWS prefers relying on temporary credentials instead of long-term credentials, such as access keys where possible.
We hope to see implementation of short-lived tokens to authenticate the Minio client with AWS APIs, as this would provide better security and simplified implementation.

The current latest release client, this only configures credentials using access keys - https://github.com/go-gitea/gitea/blob/v1.22.3/modules/storage/minio.go#L88-L92
Compare this to the main branch where it calls the credential chain - https://github.com/go-gitea/gitea/blob/main/modules/storage/minio.go#L99-L105

This chain contains FileAwsCredentials, which would allow us to be able to move off of access keys - https://github.com/go-gitea/gitea/blob/main/modules/storage/minio.go#L174-L192
This is possible due to the credential_process, which thanks to this medium article we found is a working solution to grab aws_session_token via the Web Identity Token file

Expanding on the credential chain, this currently does not import other supported features from the minio-go SDK. Notably, as we are on AWS EKS, the ideal solution we were hoping to implement is using IRSA roles which would allow direct usage of the token file generated by the Service Account.

This is the EKS function which would directly support short-lived access tokens using native Kubernetes features - https://github.com/minio/minio-go/blob/cca410398dd20409180d4ff2d017e34bea17c27c/pkg/credentials/iam_aws.go#L318
To also confirm, the environment variable AWS_WEB_IDENTITY_TOKEN_FILE is set on the pods associated with our service account, pointing to the web identity token - https://github.com/minio/minio-go/blob/cca410398dd20409180d4ff2d017e34bea17c27c/pkg/credentials/iam_aws.go#L124-L127
If this solution is implemented, then we do not need to manually configure any further logic into the Gitea deployment since all authentication will be natively handled by the Kubernetes Service Account

References

Current release for minio client, only contains access keys not the credential chain - https://github.com/go-gitea/gitea/blob/v1.22.3/modules/storage/minio.go#L88-L92

Main branch, this calls the credential chain - https://github.com/go-gitea/gitea/blob/main/modules/storage/minio.go#L99-L105

Found here, and contains the FileAwsCredentials, which allows us to use credential_process to convert our web identity token -> session token - https://github.com/go-gitea/gitea/blob/main/modules/storage/minio.go#L174-L192

This is the Minio-Go SDK code, where ideally we'd like to see this EKS function imported as well - https://github.com/minio/minio-go/blob/cca410398dd20409180d4ff2d017e34bea17c27c/pkg/credentials/iam_aws.go#L318

Which directly looks at the env variable to grab our web identity token, as defined by associated a Kubernetes Service Account paired with an AWS IAM role - https://github.com/minio/minio-go/blob/cca410398dd20409180d4ff2d017e34bea17c27c/pkg/credentials/iam_aws.go#L124-L127

Screenshots
No response

Do you have a plan to implement it, or just wait for others who have interest?

Thank you for your issue. We don't backport enhancements/features such as this, but we hope to release 1.23 this quarter, which would allow you to use this in a non-nightly version.

Hello, thank you for the quick response!
We have given the nightly-rootless image a try, and this helped us figure out some follow up issues as it wasn’t working right away, so we have one working solution via workaround but also another fix recommended to allow flexibility with AWS Auth using Minio for storage.

The first discovery is that the credential process workaround was not working immediately, but found it was due to this line the Minio SDK that is imported - https://github.com/minio/minio-go/blob/master/pkg/credentials/file_aws_credentials.go#L113
Since it’s checking for two arguments, we just added a dummy string afterwards and it worked perfectly to authenticate without the use of Access Keys. Working example:
credential_process = /data/gitea/git/gen-token dummy-text
Ideally it should be checking with < not <=, but that isn’t due to the implementation by Gitea and was easily worked around for us. So, this will work when it makes it into the 1.23 release for short term credentials, but this is ultimately only a workaround for native authentication, leading into the next section ->

Secondly, while reviewing the code again I realized I have misinterpreted what this line actually does, I now see this is a reference to the entire file from the Minio SDK, not just that one “EKSPodIdentity” function I mentioned originally.
However, this does not work out of the box when trying this on the nightly image (explicitly not passing the shared credential environment variable and access keys.) We discovered this is due to the EC2 Metadata endpoint being hard coded at this line which is passed to the IAM package here. Once the code proceeds to this function, at L150 of this switch case since the endpoint is provided it does not attempt to utilize the actual STS endpoint resulting in an error, and ultimately a "permission denied."
To summarize the issue here, it is trying to receive credentials using the normal EC2 Metadata endpoint with the identity file rather than the STS endpoint.
Proposed Solution
To work around the hard coded EC2 Metadata endpoint, we have the following idea:

Remove the credentials.DefaultIAMRoleEndpoint value here, as this is what determines usage of EC2 Metadata endpoint only - https://github.com/go-gitea/gitea/blob/main/modules/storage/minio.go#L100
Add a new config value for the storage block, which is accessed here - https://github.com/go-gitea/gitea/blob/main/modules/storage/minio.go#L187 (which calls the Minio SDK here https://github.com/minio/minio-go/blob/master/pkg/credentials/iam_aws.go)

Possibly with the other storage configs here, it may make sense to call it something like MINIO_IAM_ENDPOINT to keep with consistency - https://docs.gitea.com/administration/config-cheat-sheet#storage-storage

This allows the EC2 endpoint to be passed for tests and still pass, but allows it to be empty by default for the SDK to decide for itself what endpoint it should use - https://github.com/go-gitea/gitea/pull/31051/files#diff-97ef7d5c55f1086fb6eb6bff28747793dd6dabfceadcda573db8c5ba0a0aa8e5R120

We’ll try and work on a PR that accomplishes our proposal, but wanted to get this update out first.

Thanks for that detailed followup @vkice-at-ocp :)
I've re-opened this ticket to keep track of it.

Our PR was merged in to resolve our issue, closing!


LFS support on MinGW broken

LFS support on MinGW is currently somewhat broken (MinGW, x86_64, CMake build system). Since MinGW defines all of fseeko, ftello, fseeko64, ftello64, _fseeki64, and _ftelli64, and also the compile time constant __MINGW32__, the following sequence in mingw_private.h has some interesting results:
#if defined(__BORLANDC__) || defined(__MINGW32__) || defined(_MSC_VER)
#define mat_off_t __int64
#if defined(_MSC_VER) && defined(HAVE__FSEEKI64) && defined(HAVE__FTELLI64)
#define MATIO_LFS
#define fseeko _fseeki64
#define ftello _ftelli64
#elif defined(__BORLANDC__) && defined(HAVE__FSEEKI64) && defined(HAVE__FTELLI64)
#define MATIO_LFS
#define fseeko _fseeki64
#define ftello _ftelli64
#elif !defined(HAVE_FSEEKO) && !defined(HAVE_FTELLO) && defined(HAVE_FSEEKO64) && \
    defined(HAVE_FTELLO64)
#define MATIO_LFS
#define fseeko fseeko64
#define ftello ftello64
#endif
#elif defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 && defined(HAVE_FSEEKO) && \
    defined(HAVE_FTELLO)
#define MATIO_LFS
#define mat_off_t off_t
#endif

#if !defined(MATIO_LFS)
#define mat_off_t long
#define ftello ftell
#define fseeko fseek
#endif

Since __MINGW32__ is defined, the compiler will go into the first #if condition and execute #define mat_off_t __int64. But none of the nested #ifs apply to MinGW: the first (defined(_MSC_VER) && defined(HAVE__FSEEKI64) && defined(HAVE__FTELLI64)) because _MSC_VER is not defined, the second (defined(__BORLANDC__) && defined(HAVE__FSEEKI64) && defined(HAVE__FTELLI64)) because __BORLANDC__ is not defined, and the third (!defined(HAVE_FSEEKO) && !defined(HAVE_FTELLO) && defined(HAVE_FSEEKO64) && defined(HAVE_FTELLO64)) because HAVE_SEEKO and HAVE_FTELLO are defined (but also the 64bit counterparts).
But that means that MATIO_LFS is never defined, and the bottom #if !defined(MATIO_LFS) is also entered. That contains #define mat_off_t long. This has the consequence on MinGW that the compiler issues the following warnings:
.../src/matio_private.h:66: warning: "mat_off_t" redefined
   66 | #define mat_off_t long
      |
.../src/matio_private.h:44: note: this is the location of the previous definition
   44 | #define mat_off_t __int64
      |

Note though that long is 32bit on MinGW, even on 64bit platforms (since Win64 longs are 32bit)! This means that even on 64bit Windows, matio will use 32bit offsets!
I've tested the following patch and works on MinGW, as well as Linux and macOS:
--- a/src/matio_private.h       2023-11-12 13:25:19.000000000 +0100
+++ b/src/matio_private.h       2024-02-05 16:40:13.647955742 +0100
@@ -41,18 +41,19 @@
 #endif

 #if defined(__BORLANDC__) || defined(__MINGW32__) || defined(_MSC_VER)
-#define mat_off_t __int64
 #if defined(_MSC_VER) && defined(HAVE__FSEEKI64) && defined(HAVE__FTELLI64)
 #define MATIO_LFS
+#define mat_off_t __int64
 #define fseeko _fseeki64
 #define ftello _ftelli64
 #elif defined(__BORLANDC__) && defined(HAVE__FSEEKI64) && defined(HAVE__FTELLI64)
 #define MATIO_LFS
+#define mat_off_t __int64
 #define fseeko _fseeki64
 #define ftello _ftelli64
-#elif !defined(HAVE_FSEEKO) && !defined(HAVE_FTELLO) && defined(HAVE_FSEEKO64) && \
-    defined(HAVE_FTELLO64)
+#elif defined(HAVE_FSEEKO64) && defined(HAVE_FTELLO64)
 #define MATIO_LFS
+#define mat_off_t __int64
 #define fseeko fseeko64
 #define ftello ftello64
 #endif

Notes:

I've moved the #define mat_off_t __int64 into the inner conditions to ensure that the double-#define never happens again. (Even if no inner condition is matched.)
I've removed the !defined(HAVE_FSEEKO) && !defined(HAVE_FTELLO) from the #elif condition, because that doesn't make any sense in my eyes.

This is minimally invasive, and hopefully shouldn't cause breakage on other systems, but I'm sure the entire logic here could probably be refactored in a better manner.
Regardless, I'll be happy to provide a pull request fore the above patch if you agree with this solution.

Yes, I also noticed that it is broken, see my change here: https://github.com/modelica/ModelicaStandardLibrary/pull/4285/files#diff-fd202881aff26f5dd968dfcd19796cb461c19bf5d3f35ebc30a40b3e1d531a65R276

Regardless, I'll be happy to provide a pull request fore the above patch if you agree with this solution.

That would be appreciated. Thanks.

Regardless, I'll be happy to provide a pull request fore the above patch if you agree with this solution.

That would be appreciated. Thanks.

Done, thanks: https://github.com/tbeu/matio/pull/235

Resolved by #235. Thanks.


Update Docker files

Update Docker files in examples with argument REPO
Change-Id: I7ae1d56003c9b0ce4f6193b807a2e4d2506a0d7a

Looks good. There is one more dockerfile using axisecp:
https://github.com/AxisCommunications/acap3-examples/blob/master/tensorflow-to-larod/env/Dockerfile

We were supposed to update Dockerfiles for applications that are going to be used for Automated tests that are running only on Camera. Tensorflow is not included.

Looks good to me


TestDAGPipelineRun is flaky

Expected Behavior
TestDAGPipelineRun passes consistently and actually verifies that the tasks that SHOULD run in parallel DO run in parallel.
Actual Behavior
On busy clusters TestDAGPipelineRun will frequently fail with a message like:
dag_test.go:248: Expected parallel tasks to execute more or less at the same time, but they were 6s apart

Steps to Reproduce the Problem
This is an intermittent flake on a fairly busy cluster.
Additional Info
The test as written today doesn't necessarily even verify that pipeline-task-2-parallel-1 and pipeline-task-2-parallel-2 run in parallel.  If they run in sequence quickly (<5s) then the test will pass.

My proposal for how to fix this would be as follows:

Have the task definition executed by pipeline-task-2-parallel-* sleep for XX seconds (probably 30s)
Check that the tasks start within 30s of each other.

This:

Gives the test a fairly significant amount of leeway to schedule the second TaskRun even on a congested cluster.
Verifies that the tasks actually run in parallel because the second task MUST start before the first is done (b/c of the sleep).

I think this will be both more stable as well as provide more meaningful coverage.

Some pointers...
Here is the test (with a nice ASCII diagram): https://github.com/tektoncd/pipeline/blob/38b9f26af4d04491ef3ea2ec42bf000e56a554bd/test/v1alpha1/dag_test.go#L37-L47
The body of echo-task which is what we run in parallel: https://github.com/tektoncd/pipeline/blob/38b9f26af4d04491ef3ea2ec42bf000e56a554bd/test/v1alpha1/dag_test.go#L75-L79
Where we check that the tasks start within 5s: https://github.com/tektoncd/pipeline/blob/38b9f26af4d04491ef3ea2ec42bf000e56a554bd/test/v1alpha1/dag_test.go#L243-L249

There is also a version of this in ./test/dag_test.go (I linked v1alpha1 above)


[Helm Vault] Set readOnlyRootFilesystem

Is your feature request related to a problem? Please describe.
If one adds a plugin to vault that requires RPC communication between plugin and vault server via Unix socket, the readOnlyRootFilesystem must be disabled for the vault container.
See: Register a new plugin
Describe the solution you'd like
An additional flag in the helm chart that allows setting the readOnlyRootFilesystem.
Describe alternatives you've considered
I haven't found any alternative to come around this issue in the current helm chart.

I would be more than happy to check out a pull-request for this one! ;)


MulitValue Control Maximum Limit

Hello Team,
As a user, I would like to know the max limit of values can be added on the custom control fields .

PLease find screenshot FYR

Any updates team ?

Hi, thank you for your suggestion. I will add it to the backlog for consideration

Hello team, we have raised this issue an month back. Could you please let us know the quick possible solution for this query .

@sudharsansomusekar thanks for getting back. It is not possible for us to dynamically show that information in the work item configuration dialog. I assume you have internal guidance for how to create multiselect lists so I suggest you add information about your setup there.


The requested URL /shop-online/ was not found on this server.

Hello guys,
I'm trying to run this project but it keeps on throwing this error. Please tell me what is it that I'm doing wrong. I've followed all the steps but still it's not working. Please help me out

Hello , Please Check your port local server is working fine
btw try localhost:80/shop-online

Sorry for the late reply.  the local server is working perfectly and I have tried shop-online but that does not works either

good day ,
done or not yet ?

Well, I kind of stopped using it.
I should have closed this ticket sorry about that

okay , no problem , feel free to open new ticket anytime you want


[sw, ROM_EXT] Extend _rom_ext_start and add C "Hello World!"

This change complements @lenary #3590 . Most of the configuration including the CRT is fairly common between the Mask ROM and ROM_EXT.
However, it is important to understand that this is an early version which at this point is likely to lack security related measures.
This changeset has been tested on verilator as follows:
--meminit=rom,build-out/sw/device/mask_rom/mask_rom_sim_verilator.elf --meminit=flash,build-out/sw/device/rom_exts/rom_ext_sim_verilator.elf

If you're on HEAD verilator, you shouldn't need the fix in b0ee538, as we've moved the verilator stop address now.

If you're on HEAD verilator, you shouldn't need the fix in b0ee538, as we've moved the verilator stop address now.

Good shout, I haven't rebuilt it.

I think I should probably add a comment into the both commit messages that this is an early stage change and not the final implementation.

I just merged #3590 so this PR should drop those commits.

I just merged #3590 so this PR should drop those commits.

Done.


Way to switch off the Rainbow with Keyheld ?

I'm a little stuck, and this is technically not an issue for a PR, but possibly a very viable example update if it can be working. I have combined and have working well the HID and rainbow examples as can be seen at https://gist.github.com/wildestpixel/2a2c36aea8ccbf7054aab0d372e23db3 to effect a controller for Moode Audio.
Pretty as this is I have tried to recode to switch off the rainbow effect at night with a long key press below (yes I know it follows a normal keypress but I'm cool with that as it can be on mpc stop for example).
Problem is that this doesn't increment my counter by 1 and doesn't switch off the rainbow as the output of counter is always "0". I want to be able to achieve a manner of having rainbow and being able to switch it off - not necessarily correcting my code, but as an example modification of the current rainbow.py as I think it would be very useful for users to be able to switch off the lovely lights when they need them off.
import board
import math
from keybow2040 import Keybow2040, number_to_xy, hsv_to_rgb

import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
from adafruit_hid.keycode import Keycode

# Set up Keybow
i2c = board.I2C()
keybow = Keybow2040(i2c)
keys = keybow.keys

# Set up the keyboard and layout
keyboard = Keyboard(usb_hid.devices)
layout = KeyboardLayoutUS(keyboard)

# A map of keycodes that will be mapped sequentially to each of the keys, 0-15
keymap =    ["rad1",
             "rad1",
             "mpc toggle",
             "toggle_disp1",
             "rad2",
             "rad2",
             "mpc stop",
             "volm",
             "rad3",
             "rad3",
             "mpc prev",
             "vold",
             "rad4",
             "rad4",
             "mpc next",
             "volu"]

# The colour to set the keys when pressed, yellow.
rgb = (255, 255, 255)

# Increment step to shift animation across keys.
step = 0

def rainbow():
    for i in range(16):
        x, y = number_to_xy(i)
        hue = (x + y + (step / 20)) / 8
        hue = hue - int(hue)
        hue = hue - math.floor(hue)
        r, g, b = hsv_to_rgb(hue, 1, 1)
        # Display it on the key!
        keys[i].set_led(r, g, b)

def rainbowoff():
    for i in range(16):
        x, y = number_to_xy(i)
        hue = (x + y + (step / 20)) / 8
        hue = hue - int(hue)
        hue = hue - math.floor(hue)
        r, g, b = hsv_to_rgb(hue, 1, 1)
        # Don't display it on the key!
        keys[i].set_led(0, 0, 0)

def countup(counter):
    counter = (counter + 1) % len(things)

counter = 0
things = [ rainbow, rainbowoff ]

# Attach handler functions to all of the keys
for key in keys:
    # A press handler that sends the keycode and turns on the LED
    @keybow.on_press(key)
    def press_handler(key):
        keycode = keymap[key.number]
        layout.write(keycode)
        keyboard.send(Keycode.ENTER)
        key.set_led(*rgb)

    @keybow.on_hold(key)
    def hold_handler(key):
        countup(counter)
        print(counter)

while True:
    # Always remember to call keybow.update()!
    keybow.update()

    step += 1
    things[counter]()

Any help would be greatly appreciated. Also posted in similar vein at https://forums.adafruit.com/viewtopic.php?f=60&t=177038&p=870066#p870066

worked this out with the fantastic help of someone who'd taught me some code previously over in the Adafruit forum - a working code now exists, great for my purpose, not clean enough to trim to an example, but probably will be useful for someone else.
Can be seen in my gist at https://gist.github.com/wildestpixel/b38ab2f1ed071d38afc960e917958815


Cannot read property 'listItems' of undefined

I ran into a bug. Unfortunately I'm not sure how to recreate it, but I got the error message:
File.ts:53 Uncaught (in promise) TypeError: Cannot read property 'listItems' of undefined
    at eval (eval at <anonymous> (app.js:1), <anonymous>:17841:38)
    at Generator.next (<anonymous>)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:176:71)
    at new Promise (<anonymous>)
    at __awaiter (eval at <anonymous> (app.js:1), <anonymous>:172:12)
    at replaceTaskWithTasks (eval at <anonymous> (app.js:1), <anonymous>:17825:63)
    at HTMLInputElement.eval (eval at <anonymous> (app.js:1), <anonymous>:17992:17)

Using Obsidian version 0.12.2

update:
To answer some of your initial questions, I confirmed that I'm using Obsidian 0.12.2 but installer 0.11.13.
I'm also on Ubuntu 20.04.1 LTS.
I was able to easily reproduce it with all community plugins disabled.
I'm about to install your updated debug main.js and give it a whirl!

the update definitely fixed it! Was not able to reproduce. Here are the requested logs:
Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 1 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 1 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 1 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 10 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 100 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 1000 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 1 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 1 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 1 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 10 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 100 milliseconds.
File.ts:98 Tasks (debug): no file cache found for file codecov breach.md.
File.ts:73 Tasks (debug): retrying task toggle in 1000 milliseconds.


Double Message Talking Bug

Introduced from https://github.com/wechaty/wechaty-plugin-contrib/commit/ab9fcfaf98f5851331efe6e819b6c4cde71ada05

confirm fixed.


SUMO simulation

Can I ask how to use this project to implement SUMO traffic simulation? In other words, could you provide complete test.py  code?

What exactly are your goals here? The test environment is implemented in the src/test.py file.

What exactly are your goals here? The test environment is implemented in the src/test.py file.

Thank you for your reply! I wanted to achieve the same effect as the GIF image you provided. I ran your src/test.py file, and it turns out that the traffic lights didn’t change, but I don’t know where's  the code I need to change, Or am I running it wrong......

Thank you, I tried to run your test.py, but the east-west vehicles in Sumo keep queuing, what's the matter? There is no response when running training.py


fix: handle intermediate bytes in CSI and ESC sequences

This adds missing handling for CSI and ESC commands.
Fixes: https://github.com/ghostty-org/ghostty/issues/3122

Real nice!
As someone who exits insert mode with ctrl+[ on several apps in the terminal, I'd been spewing ;5u all over the place for the past few hours. Fortunately that little clue led me to a work around, but yeah I'm super happy to see this fix on its way, so thank you @aymanbagabas.
For the slim chance anyone lands here with my same issue in the meantime, my workaround was to add the following to my config:
keybind = ctrl+left_bracket=text:\x1b

✌

I accidentally closed the PR after force pushing the updated changes. Apparently, GitHub doesn't carry forked repository visibility settings :/
Could someone reopen the PR? Otherwise, I can create a new one
CC/ @mitchellh


fix(MultiSig)!: change interface and substitute adaptive_address for autonomy

What type of PR is this?
fix(multi-sig)!: change interface and substitute adaptive_address for autonomy
BREAKING CHANGE: the interface is changed and affect on all sdk/clients
What this PR does / why we need it:
due to the bech32 format, the adaptive address is not suitable.
so we add 'autonomy' field.
B.T.W. change the UpdateAccountPayload to make it non-ambigious
B.T.W. change the genesis payload to remove ambiguity.
Docs is here
https://github.com/HuobiGroup/huobi-chain-docs/pull/8
Java sdk:
https://github.com/nervosnetwork/muta-sdk-java/pull/24

due to 2 different iteration, the pr of java sdk has been merged. This is a exclusion this time

Js sdk:
https://github.com/nervosnetwork/muta-sdk-js/pull/23

/cc @KaoImin

I think the type of this PR is refactor rather than fix.

Will this PR have BRACKING_CHANGE? Why does not add ! to the title? Does the toolchain need to adapt?
@LycrusHamster @homura

Will this PR have BRACKING_CHANGE?
Why does not add ! to the title?
Does the toolchain need to adapt?
@LycrusHamster @homura

Yes, now question mark has been added and BREAKING CHANGE have been explicitly add in the commit msg

/hold
Wait SDK adaption

/hold cancel

/lgtm

/approve


Enhancement: TAR support

Giving WinFile the ability to open and save .tar files would help increase its versatility, due to the wide proliferation of .tar files.
A lightweight, C-based and open-source .tar library is available here:

https://github.com/katahiromz/microtar

Because .tar files are often wrapped inside of .gz files, also having a library which can open those is strongly recommended

https://github.com/katahiromz/zlib

Lots of interesting ideas, including this one.  I'll review soon.

Rad. Let me know which things will get implemented~

if WinFile will use standard Windows popup menu which contains "7z" and similar software in many users PCs, then this issue will be solved with https://github.com/microsoft/winfile/issues/260


Is it possible to only toggle UnderKeyBoard on certain text fields?

Can I use this inside eg: textFieldDidBeginEditing() ?
I only want to toggle UnderKeyBoard on certain textFields and also use different contraints depending on what text field is being edited

What you can do is to detect when the keyboard appear/disappear and then modify your constraints manually. It is described in this section of the README:
https://github.com/exchangegroup/UnderKeyboard#using-keyboard-observer-directly

Thanks, and also thanks for sharing this library!
Like this?:
let keyboardObserver = UnderKeyboardObserver()
override func viewDidLoad() {
super.viewDidLoad()
keyboardObserver.start()
// Called before the keyboard is animated
keyboardObserver.willAnimateKeyboard = { height in
myConstraint.constant = MyCustomHeight
}
// Called inside the UIView.animateWithDuration animations block
keyboardObserver.animateKeyboard = { height in
view.layoutIfNeeded()
}
}
Does this mean I only use UnderKeyboardObserver() instead of UnderKeyboardLayoutConstraint() ?

Yes, this is the code you can use with the implementation inside the two closure specific to your app.
And yes - in this case you do not need to use UnderKeyboardLayoutConstraint class because you will be manipulating your auto layout constraints yourself.

Closing the issue. Feel free to reopen if needed.


[WIP] Update docs readability

Attempting to clear up some language and improve the overall flow and readability of the docs from star to finish.
Where possible, I've also added a few clarifications or notes.

@iameskild what's the status of this?

Hey @viniciusdc, thanks for having a look at this! I am currently working with @HarshCasper to get these notes integrated into with the notes updates he is currently working on! This PR has been in a WIP state for far too long 😅


Update to ARM docker builds.

This update adds root ca files for the
ARM SG container builds.
This also includes a fix for a regression to the capacity service.

Coverage decreased (-0.2%) to 55.135% when pulling f56474573c903e252fb29ab60d8ee039dc22e184 on gopherstein:master into c49fb799c334981c92085445eee44df0d6f99249 on supergiant:master.


Quest1 and Quest2

Made obsolete by the changes introduced in https://github.com/dev-labs-bg/hello-ue/pull/21 , so I'm closing this one.


Ability to assign a date to datepicker

At times, the date from datepicker may need to be updated programmatically. At the moment, there does not seem to be a way to do this.

What about this pattern?
https://vuejs.org/v2/guide/forms.html
e.g.:
<datepicker v-model="someDateObject"></datepicker>

Yes, that was going to be my recommendation. However, there are actually 4 inputs here; the localized date, and then three hidden structured inputs for day, month, and year in numeric form, non-localized. someDateObject would need an object with those properties.


The quality of generative images is lower than the paper's result?

Really?

I just received some comment on learning rate which was different from the code which makes the images in README.md. I'll update the result and authors will update and clarify implementation details near future.

ok.

You shouldnt expect to necessarily re-create same quality as the paper anyway since the paper uses a not released to public dataset

@artcg I thought they only used CelebA which is public. Anyway, thanks to your comment, I just found that they use totally different crop (more face focused) and it should be definitely helpful to reproduce the result more clearly.

Nope from the paper 'We use a dataset of 360k celebrity face images for training in place of CelebA'
I.e. Instead of using the standard CelebA they are using this larger dataset with different cropping / alignment like you say
But that is a good point maybe different pre-processing on CelebA would improve results!

On 7 Apr 2017, at 4:37 p.m., Taehoon Kim<EMAIL_ADDRESS>wrote:
@artcg I thought they only used CelebA which is public. Anyway, thanks to your comment, I just found that they use totally different crop (more face focused) and it should be definitely helpful to reproduce the result more clearly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

There was a tf.slim related mistake as discussed in #3 and now the results are way better as this. However, 128x128 image for CelebA doesn't goes well with the default hyper-parameters (only 64x64 trained well).

I tried this on the zappos dataset. Hence, I don't have a baseline comparison to compare against. However, my feeling is that the output could be better and definitely not at the same level as the faces in the paper. Some output for reference below. This is after 500k iterations over ~50 hours of training on GTX 1080

That Zappos example looks like mode collapse. It's producing many examples of a small number of shoes. Different datasets require different tuning of hyperparameters so I would suggest lowering the learning rate or adjusting the size of z and/or h.

Thanks @fwiffo. Any rule of thumb/heuristics on which to try first... especially because the runtimes are long.

Start with learning rate. Reduce it by half, and/or decay it more frequently during training. Also, you don't need to train for that many steps to see if it's going to mode collapse; it should do that in the first 100k steps. Next try adjusting h. For faces the quality was significantly worse with 32, and somewhat worse with 128, but this probably depends on the diversity of the dataset. The size of z seems to have much less effect; anywhere from 32-1024 seemed similar in our tests. Started to see reduced diversity and quality below 32, but it may depend on the dataset.
Smaller datasets may also cause trouble (zappos is 50k which isn't too bad), so you can try the usual tricks, e.g. randomly offset or rotate the input images slightly.


Lineage removed from usher barcode file

Updated barcode files can't be used to analyze historic data.

The barcode files contain information about mutations used to call lineages, which are stored in a lineage file (lin*.tsv). For downstream analysis, we create a summarized JSON file with mutations, count and coverage information associated with each lineage. If the downstream analysis is done after the most recent barcodes file was updated, we run into errors

Proposed solutions includes:

Store usher barcode files on a daily basis
Run downstream analysis on historic data using corresponding barcode files

We're currently archiving barcode files on a daily basis


User verification backend

This completes the majority of the backend logic for user verification. The remainder of the work now needs to be done in the view layer, which will be done in a separate branch.

LGTM!

LGTM!


MIDI in simulator

Basic support to play MIDI commands on MIDI devices or emulate using AudioContext. Allows code that talk to MIDI device to be "heard" in the simulator.

[x] test audio context output
[ ] MIDI device output

Good point and thanks for helping on getting this ts.config right.


Updated the link to point to correct resource

Updated the link to point to the correct resource.
Problem: https://github.com/MicrosoftDocs/microsoft-365-docs/issues/1850

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.
@mypil FYI Please.

@JohanFreelancer9 - please do the copy editor review for this PR. Thanks.

@mypil - Ready to go live

@robmazz - PR has been copy edited and is ready for final review. This is based on issue #1850.
Thank you.
cc: @kenwith


Add DHCEN primitive.

Added parts necessary to generate chip databases with DHCEN support for all supported boards. The packing was made with the necessary fuses set.
DHCEN is provided as a wire to disable the input MUXes of HCLK, effectively turning off everything that is "beyond" those MUXes.
Most of the work happens in the nextpnr part.

For now as a draft for two reasons:

Tangnano9k has his own ideas about how DHCEN works.
There are no examples. Simple things like ODDR & Co have a dual clock input - HCLK and regular clock wires and coming up with a mechanism to ensure HCLK is engaged so that you can use DHCEN doesn't make much sense when there is CLKDIV, so wait for CLKDIV, after which there will be examples.

In the example, DHCEN controls all networks at once depending on the state of the button. In the unpressed position, all HCLK networks are disabled (in fact, all used input MUXes are disabled) and only the first LED flashes. When pressed, the second LED begins to show the operation of CLKDIV/CLKDIV2.
https://github.com/user-attachments/assets/366d21a4-ba54-483b-ad98-a5721b3e4a1b
https://github.com/user-attachments/assets/49d0990a-2313-4cba-b088-7011d04a6217

Seems like this is waiting for https://github.com/YosysHQ/nextpnr/pull/1349 ?


feat: [FX-1875] Add ApplicationUpdateNotification component

FX-1872
Description
Add ApplicationUpdateNotification component.
Screenshots

PR commands

List of available commands:

@toptal-bot run all - Run whole pipeline
@toptal-bot run build - Check build
@toptal-bot run visual - Run visual tests
@toptal-bot run deploy:documentation - Deploy documentation
@toptal-bot run package:alpha-release - Release alpha version

This component should be in topkit along with reload after deploy functionality, I don't see a reason to be in Picasso.

Agree

/rebase

/rebase


Change in-memory file permissions if file has been modified by user

Could possibly do this with a background thread that polls for file permissions.

If a file is opened and the user has write permission and then the file's permissions gets changed so that the user only has read permissions, we should add [RO] to the file name on top of the program and change the self.isReadOnly variable.
If the file originally was originally read only and then the user was given write permissions, we should remove [RO] from the file name and set the self.isReadOnly variable correspondingly.

Working on this by creating a background thread that will periodically poll. Not too sure about how often I should let it poll.. I was thinking maybe 2-3 seconds since that is around the time it will take for someone for someone to switch back from modifying the file, back to our program. The amount of work that the thread does in polling isn't a lot so I don't think there will be a performance issue, but we will find out once I get something working.

It would be great to get an event when we lose/gain focus in the terminal. I haven't found that yet (don't know if it's available). Help wanted finding how to get these events.
I agree that polling would work, but I'd prefer to be event based if it's possible.

I've been playing around with a few different tools. There is a python library called watchdog that creates an object and will fire a callback function if it detects a modification for a file. However, this doesn't seem to work if i were to checkout another branch and the file was changed. I'm not sure why this is, it may be because the file gets replaced with another file of the same name, rather than being modified.
I've also found this nice script that can be used for detecting the active window, which you can see here on the last post:
https://stackoverflow.com/questions/46628209/get-the-process-of-the-active-window-with-python-in-linux
I'm not too sure about how this transfers over to other OS, but the problem with this in linux is that it cannot differentiate between two terminals that have the same cwd. It also cannot detect any programs whose interface is inside the terminal window (ie: ci_edit, man, less, vim, etc.). Since this doesn't really work to our need, I'm not too sure about how to use these tools, which is why I started trying it out with the polling.

So I got a quick implementation done, but I ran into some issues. It seems that all the windows (TopInfo, StatusLine, MessageLine, etc.) are managed by the main thread. My background thread periodically polls the file for its correct stats and so it always has an updated self.isReadOnly variable. However, the windows cannot be rendered since the main thread is blocked by curses.getch().
I think I could probably call the onChange method of each window that needs to be refreshed, but that would increase the overhead of this background thread. I think currently, only TopInfo would need to be refreshed since that displays the '[RO]' message, so it wouldn't be a big deal. However, to work around this, I was thinking that we could maybe find some way to make curses.getch() have its own thread and notify the main thread if it detected a user input? I'm also not too sure how you are making the cursor blink, but maybe we could update the windows along with the cursor.

How does the program make the cursor blink? I'm trying to find it in the code, but I can't seem to find it. From what I can tell, the background thread infinitely loops and checks for anything in the queue while the main program checks for user input. I tried manually calling topInfo's onChange method or calling the inputWindow's render method, but it doesn't seem to actually refresh the topInfo until a key has been pressed.

Ah, the blinking happens with the terminal (we don't blink the cursor).
I've considered blinking/controlling the cursor more, but haven't done it.
The background thread alerts the main thread to changes by putting a messing in the queue and calling os.kill. Search for os.kill in ci_edit/app/background.py to see examples.

Hmm.. then do you know of a way to refresh the screen? My background thread is trying to re-render it, (tried calling the CiProgram and InputWindow's render method, and topInfo's onChange method), but it doesn't seem to be refreshing the screen.
One thing I tried was calling CiProgram.render() (via self.textBuffer.view.host.render()), and this function call is supposed to log a message that says 'screen refresh'. However, it doesn't actually refresh the screen. I know this because if I change permissions of a file 5 times, there are no new messages. However, once I press any key, the window gets refreshed and the message log is updated with 6 'screen refresh' messages (1 from the key stroke and 5 from the file permissions).

Something to try (I can't really look into this deeply right now, but I can later tonight):
Rather than trying to talk to the main thread, put a message into the queue going to the background thread.
i.e. rather than setting it up like
[background thread] <--> [main thread] <--> [your thread]
do
[your thread] --> [background thread] <--> [main thread]
Pass the queue to [your thread] when it's created.
Whenever [your thread] wants the screen to refresh, put a message in the queue to the [background thread]
There's an existing special message to 'quit' that the [background thread] watches for. Maybe make a new special message like 'redraw' or something. Or maybe send it the same kind a message the [main thread] does, but with an empty command list.


docs: add an example how to use openEBS LVM

Thanks for taking the time to contribute to clickhouse-operator!
Please, read carefully instructions on how to make a Pull Request.
This will help a lot for maintainers to adopt your Pull Request.
Important items to consider before making a Pull Request
Please check items PR complies to:

[x] All commits in the PR are squashed. More info
[x] The PR is made into dedicated next-release branch, not into master branch1. More info
[x] The PR is signed. More info

--
1 If you feel your PR does not affect any Go-code or any testable functionality (for example, PR contains docs only or supplementary materials), PR can be made into master branch, but it has to be confirmed by project's maintainer.

duplicates with https://github.com/Altinity/clickhouse-operator/pull/1527


candlePeriod as a parameter

Just FYI , I implemented a very simple workaround solution in my fork to enable a single client to subscribe multiple candlePeriods, as many as the exchange allows of course.
you can simply subscribe to multiple resolutions (candlePeriod) aka timeframes, in a loop or so if you like.
the property is added to the Market type and can be used as
const binance=new BinanceClient({useMarketCandlePeriod:true})
let market = {
  id: "BTCUSDT", // remote_id used by the exchange
  base: "BTC", // standardized base symbol for Bitcoin
  quote: "USDT", // standardized quote symbol for Tether
  candlePriod: CandlePeriod._1m
};
binance.subscribeCandles(market);

Only Binance is implemented at this time, I will implement for Kucoin next. any exchange can adopt the new property and handle it in its own unique way given every exchange has a different data structure.
Note this is a quick and possibly dirty solution but it shouldn't break anything ! suggestions welcome but I won't possibly do something drastically different !!
This should only be set if you will be using subscribeCandles.. I didn't test the behaviour if this property is set when using other APIs.
https://github.com/nileio/ccxws/blob/master/CHANGELOG.md
https://github.com/nileio/ccxws/commit/ac9fe11f5df0f769b45d0b84713b6a5618336170

abondon


Updated timeline

Fixes #7
Updated Events Timeline

Updated various events that the chapter conducts throughout the calendar year.
Screenshots
Before:

After:

Updated CSS in Moblie View

Add some margin between timelines.
Screenshots
Before:

After:

Remove Anantya from March 2022 activities

Done👍


Trouble getting spaces / minor formatting through

[Updated to put MathML in block quotes so it displays properly]
We are finding it difficult to get minor formatting through MathCAT. For example, we might want spaces around operators, or just want to display a row of numbers on a line without rolling them into one number.
I have had limited success using non-break space:
<math>
    <mn>5</mn>
    <mtext> </mtext>
    <mo>+</mo>
    <mtext> </mtext>
    <mn>5</mn>
</math>

This renders the intended result, but I have found stuffing non-break spaces between everything I want spaced has occasional side effects. Consider the following side effect:
<math>
    <mn>123</mn>
    <mtext> </mtext>
    <mn>456</mn>
</math>

This produces:
⠼⠁⠃⠉⠐⠙⠑⠋
(Has an unexpected dot 5 between the two triplets of digits.)
The following, however, works as expected:
<math>
    <mn>12</mn>
    <mtext> </mtext>
    <mn>34</mn>
</math>

Result:
⠼⠁⠃⠀⠼⠉⠙
Is there a proper way to do this that I am missing? Is it even reasonable to expect something like this from MathCAT?

MathCAT tries to repair common mistakes people/software makes in generating MathML. Numbers are an area where mistakes are common because spaces, commas, and periods tend to split the number apart into separate mns. MathCAT's heuristic is to look for blocks of three digits and put them back together into a single mn if there are spaces, commas, or periods separating them. This improves the speech and the braille. Based on your example, you have UEB output and the dot-5 is due to rule 6.6 in the ICEB Rules.
The workaround (which I admit is ugly) is to add an invisible character next to the  . This won't show up in the braille or speech in this case. For example, the following will do what you want because MathCAT won't think it is a single number:
<math>
    <mn>123</mn>
    <mtext> </mtext>
    <mn>456</mn>
</math>

 is an invisible separator character.
In trying this example, I discovered that invisible chars are being sent to the speech engine when part of a multi-char string. This does not affect the speech (at least not with the speech engine I tried). However, I just pushed a fix so they aren't sent out.
Please close the issue if this solves your problem.

Solution is looking great so far. I'll go ahead and close and open another issue if something comes up.
I can't tell you how greatful I am for your solution for this issue, and with other of our concerns so far. Thank you!

I tried your suggested trick of using no-break space and invisible separator to get spaces through, but some undesirable side-effects appeared when using Nemeth. Consider the following:
<math>
    <mi>y</mi>
    <mtext> </mtext>
    <mo>=</mo>
    <mtext> </mtext>
    <mn>5</mn>
</math>

The result is:
⠰⠽⠀⠨⠅⠀⠼⠢
The result has an undesirable English letter sign before the y.
I have also had situations where the number sign was used where it shouldn't have been. Is there any way to avoid these issues?

I added  to   as something that is ignored in mtext. That solves the problem, at least for the case you mention. If it solves it for your other problem cases, please close (again).

Actually, the latest change breaks spaces between individual numbers:
<math>
    <mn>1</mn>
    <mtext> </mtext>
    <mn>3</mn>
    <mtext> </mtext>
    <mn>5</mn>
</math>

I just gave it a try and get ⠼⠁⠀⠼⠉⠀⠼⠑ which seems correct.

Sorry, I should have specified that the problem occurs when using Nemeth, not UEB.

I'm getting:
⠼⠂⠒⠢

I've fixed that so it gives ⠼⠂⠀⠼⠒⠀⠼⠢.
I maybe wasn't clear about the  hack: it is only needed between blocks of three digit numbers. It doesn't hurt to use it between other numbers. E.g.,  both
<math><mn>1</mn><mtext> </mtext><mn>3</mn><mtext> </mtext><mn>5</mn></math>

<math><mn>1</mn><mn>3</mn><mn>5</mn></math>

return the correct braille string after my fix.
However, using it in
<math>
    <mi>y</mi>
    <mtext> </mtext>
    <mo>=</mo>
    <mtext> </mtext>
    <mn>5</mn>
</math>

is problematic.  The reason is y now has whitespace after it, making it a "single letter" (rule 25). This means it should have the English Letter indicator. MathCAT is back to generating the English Letter indicator.
Long technical explanation of how MathCAT works... The cleanup code coalesces multiple spaces into a single space because spaces don't affect speech and AFAIK, should add only 0 or 1 spaces to the braille (depending on the code/context). Also, some editors allow a user to type a space and others don't without effort because that tends to be bad math typography. So spaces in math are likely mistakes that MathCAT leans toward dropping in many situations.
My reading of the Nemeth rules is that spaces around identifiers are almost always thrown out. So that's what MathCAT does, and that why
<math>
    <mi>y</mi>
    <mtext> </mtext>
    <mo>=</mo>
    <mtext> </mtext>
    <mn>5</mn>
</math>

doesn't generate an English Letter Indicator. Because = is a comparison operator, it gets spaces around it in the output. When the ; hack is used, the rules don't pickup  on it being whitespace, so it isn't thrown out and whitespace is considered to be after the y, making it a "single letter". So I think that the English Letter Indicator is actually correct here.
I'm not an expert though (even though my code pretends to be one :-). If this interpretation is wrong, please let me know why.

@rob-aph: if you had the input:
<math><mn>1</mn><mn>3</mn><mn>5</mn></math>

Would you expect ⠼⠂⠀⠼⠒⠀⠼⠢ or ⠼⠒⠢ as the output?
One the one hand, it's a sequence of numbers, which means a sequence of digits, so no spaces. On the other hand, it seems like it should be different from <mn>135</mn>.
Thoughts?

With regard to:
<math><mn>1</mn><mn>3</mn><mn>5</mn></math>

This is a tough one.  Thoughts like, "Why a space", and "If a space, how many", come to mind.
This is why we have decided to use the non-break space / invisible separator trick any time we have a space in our content. This gives some preservation of intended formatting.
In UEB, for example, it is apparently common for young children to be tought addition with spaces around the plus sign to make equations easier to read. So, we support spaces and no spaces around operators, for example.

On the y = 5 issue:
I guess I'm expecting no English letter indicator, because, in my mind, it should perform the same with or without the invisible separator. This is because any time I want a space, I send no-break space followed by the invisible separator, no exceptions.
Would it be better if I sent just the no-break space when using Nemeth, and sent no-break space and invisible separator in UEB mode? UEB mode is working perfectly at the moment using both together. Note: I haven't tested Nemeth with just no-break space.

In the Nemeth green book, there is example 9e(5), which is a bold "43" followed by a regular "56". It is an example where two mns are needed. No space is used, so I need to back out of the change I made that adds a space.

In UEB, for example, it is apparently common for young children to be tought addition with spaces around the plus sign to make equations easier to read. So, we support spaces and no spaces around operators, for example.

I think a much better solution is to add an option to MathCAT that you can set that would add spaces around all operators. Would that solve your problem? If so, would the extra space apply to invisible operators such as between the 2 and the x 2x?

I'll try to enumerate our use of spaces:

Including text content with math. (your hak works great for including leading and trailing spaces in mtext blocks.)
Writing a list of numbers without operators. (For now, we preserve space between numbers because it seems like a reasonable thing to do, but some day we plan to tackal spacial math.)
Because of the younger children learning UEB Math issue mentioned earlier, it seemed easier to just preserve spaces, regardless of where or how many. This way, you could enter "1 + 3" on one line, and "1+3" on the line below, and format would be preserved for contrasting.

Thus far, we have been sending all content through MathCAT, regardless of the ratio of math to text in a given paragraph. I'm beginning to wonder if this is the best approach.

I like your fix for Nemeth which puts spaces between numbers, but it does break the green book example 9e(5) you mentioned.

I've backed out the adding spaces between numbers in Nemeth because it breaks examples in the spec.
#183 is for discussion of an option to add spaces around all operator in UEB.

There was a commit a while back where using no-break space followed by invisible separator between numbers didn't include spaces in the output when using Nemeth. This has been fixed. I am still using these characters between everything for spaces in our app, and that causes some issues as you warned, but we are planning a major refactoring soon, and I can live with things the way they are for now.

If you feel this is resolved, please close it. Otherwise, I'm not clear what is left to do, so I'd appreciate a summary.


Manual fee rate support

Fixes #587
Fixes #538
Updates the planter and freighter to accept a fee rate in sat/kw, the same unit as the fee estimator, to use for the anchor transaction. The fee rate is checked against a minimum but not maximum, so users should be careful with fee units to avoid accidental overpayment.

In line with our other software, this flag could be called --sat_per_vbyte and be measured in sat/vB. We use the term fee_rate a bit differently in LND.

Good point, will add that change in the upcoming fee PR.


Issue 67: Add logging facility

Overview
Configure a logger that can be used to log, well, logs. The logger is configured to only log error events to Firebase, in production mode. For development mode, everything is put into the console.
Furthermore, this PR adds two small UI fixes.
Screenshots

Debug logging
Production logging

Adjusted UserAvatar
Replaced Google Logo

@lockieRichter please take another look at this.


[Feature request]: Add support for Floodlight Cam E340 (T8425)

Describe the solution you'd like
Hello,
Would it be possible to add support for the new Floodlight Cam E340 (T8425)?
Thank you.

+1 🙏

+1

+1

+1

I need someone to share the device with admin rights.
If someone wants to share it:

<EMAIL_ADDRESS><EMAIL_ADDRESS>

Shared! / thank you for the hard work!

Hello Bropat
If you need access let me know.
Hope you can find a solution soonest
Thank

Hi, I have one as well and I would love this feature. I mean the camera is active already in Home Assistant (thank you) but I'm looking for all  features (change mode, manually switch on lights,... similarly as other full option devices).
Thanks in advance.

I'm already working on it.

That's great, thanks!

In the last app update Eufy added support for RTSP for this camera. Not sure if that helps us here, but still a nice addition.
Can't wait for the next release where I can finally use the camera with Home Assistant. Is there any planned release date or something similar?

In the last app update Eufy added support for RTSP for this camera. Not sure if that helps us here, but still a nice addition. Can't wait for the next release where I can finally use the camera with Home Assistant. Is there any planned release date or something similar?

RTSP Events or Continuous?

RTSP Events or Continuous?

You can choose between both.


[Feature]: Pytorch ROCM Windows?

Suggestion Description
https://github.com/pytorch/pytorch/pull/137279
when will it merged to compile pytorch from windows?
Operating System
Windows
GPU
No response
ROCm Component
HIP SDK

Hi @johnnynunez, native Pytorch support on Windows for AMD GPUs will involve more than just this PR. We're aware that this is a need for many users and are working on it; stay tuned for formal announcements from AMD in the future. Thanks for your interest!

oh thank you! Do you have an idea or deadline about that? I would like show to general public, about rocm status on youtube channels etc and promote ROCM and RDNA, I have w7900 dual slot

Unfortunately, there is no information we can provide about the timeline for this at the moment.

Will it be rocm 6.3.0 for windows?


This is the final cleanup

In final update, all comments have been spaced to 60 where they can be.
All tabs have been cleaned and replaced with spaces for consistency.
Keywords have also been cleaned formatted and updated to 17.
Please run a general test code that uses each library to make sure nothing is broken. As far as I can tell everything should be fine.
if you see any changed you do not like please let me know.

All merged, I'll see how it goes.


Remove  end tag from site.html

This is already included in the bare.html layout file.

@mitchellcash great catch :heart: thank you for submitting a PR to fix this!


libfakeXinerama: fix dangling symlinks

Fixes #85694

Motivation for this change
The invalid libraries were causing a bug in xpra. Also dangling symlinks are usually undesirable.
Things done
Add 1 symlink to complete the chain.

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

superseded by incoming PRs


Macro. JsonSerializable generates invalid code.

When I run tests for language/macros/json/json_serializable_diagnostics_test
One of the classes produces:
augment class TypeDefToFunctionTypeField {
  @prefix0.FromJson()
  external TypeDefToFunctionTypeField.fromJson(prefix1.Map<prefix1.String, prefix1.Object?> json);
  @prefix0.ToJson()
  external prefix1.Map<prefix1.String, prefix1.Object?> toJson();
  augment TypeDefToFunctionTypeField.fromJson(prefix1.Map<prefix1.String, prefix1.Object?> json, )  : this.x = <Unable to deserialize type VoidFunc>;
  augment prefix1.Map<prefix1.String, prefix1.Object?> toJson() {
    var json = <prefix1.String, prefix1.Object?>{};
    json['x'] = <Unable to serialize type VoidFunc>;
    return json;
  }
}

See <Unable to deserialize type VoidFunc> and <Unable to serialize type VoidFunc>?
This causes
- Unexpected error at tests/language/macros/json/json_serializable_diagnostics_test.macro.dart line 11, column 103, length 44: COMPILE_TIME_ERROR.EXPECTED_ONE_LIST_TYPE_ARGUMENTS

- Unexpected error at tests/language/macros/json/json_serializable_diagnostics_test.macro.dart line 11, column 103, length 44: COMPILE_TIME_ERROR.FIELD_INITIALIZER_NOT_ASSIGNABLE

- Unexpected error at tests/language/macros/json/json_serializable_diagnostics_test.macro.dart line 11, column 104, length 6: COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT
<cut>

As a result, there is no way for this test to pass.
@jakemac53

I could change how this work but it is intentional today. I was playing with outputting invalid code instead of nothing for these situations. I could also emit a throw or something instead so it is valid.

Indeed, if I replace all with throw, the test turns green :-)

https://dart-review.googlesource.com/c/sdk/+/354120


ColorFiltered UnimplementedError with CanvasKit

import 'package:flutter/material.dart';

void main() {
  runApp(TestApp());
}

class TestApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: ColorFiltered(
          colorFilter: ColorFilter.mode(Colors.blue, BlendMode.colorBurn),
          child: Text("This text should have a blue background"),
        ),
      ),
    );
  }
}

Steps to Reproduce

Run the code above with CanvasKit: --dart-define=FLUTTER_WEB_USE_SKIA=true
Observe UnimplementedError

Logs
════════ Exception caught by scheduler library ═════════════════════════════════════════════════════
The following UnimplementedError was thrown during a scheduler callback:
UnimplementedError

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 216:49  throw_
lib/_engine/engine/canvaskit/layer_scene_builder.dart 146:5                   pushColorFilter
packages/flutter/src/rendering/layer.dart 1500:26                             addToScene
packages/flutter/src/rendering/layer.dart 440:5                               [_addToSceneWithRetainedRendering]
packages/flutter/src/rendering/layer.dart 1027:14                             addChildrenToScene
...
════════════════════════════════════════════════════════════════════════════════════════════════════

[✓] Flutter (Channel master, 1.25.0-5.0.pre.52, on Mac OS X 10.15.7 19H15 darwin-x64, locale en)
    • Flutter version 1.25.0-5.0.pre.52 at /Users/ryjohn/code/github/flutter/flutter
    • Framework revision 9e5c8771d4 (26 hours ago), 2020-12-03 08:59:31 -0800
    • Engine revision 20caf54969
    • Dart version 2.12.0 (build 2.12.0-76.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/ryjohn/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 51.0.3
    • Dart plugin version 202.8070

[✓] VS Code (version 1.51.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.15.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.88

• No issues found!

Downloading Web SDK...
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
Debug service listening on ws://<IP_ADDRESS>:56099/S8UBbWf3EmU=/ws

Running with unsound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety
Debug service listening on ws://<IP_ADDRESS>:56099/S8UBbWf3EmU=/ws

======== Exception caught by scheduler library =====================================================
The following UnimplementedError was thrown during a scheduler callback:
UnimplementedError

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 216:49  throw_
lib/_engine/engine/canvaskit/layer_scene_builder.dart 146:5                   pushColorFilter
packages/flutter/src/rendering/layer.dart 1500:26                             addToScene
packages/flutter/src/rendering/layer.dart 440:5                               [_addToSceneWithRetainedRendering]
packages/flutter/src/rendering/layer.dart 1027:14                             addChildrenToScene
...
====================================================================================================

flutter doctor -v
/Users/pedromassango/dev/SDKs/flutter_master/bin/flutter doctor --verbose
[✓] Flutter (Channel master, 1.25.0-5.0.pre.91, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.25.0-5.0.pre.91 at /Users/pedromassango/dev/SDKs/flutter_master
    • Framework revision 7dade22f25 (21 hours ago), 2020-12-06 21:34:04 +0530
    • Engine revision 6491c7518f
    • Dart version 2.12.0 (build 2.12.0-120.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.0.4
    • Dart plugin version 202.8070

[✓] VS Code (version 1.51.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (3 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • macOS (desktop)             • macos         • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 86.0.4240.198

• No issues found!
Process finished with exit code 0


Configure on first boot

Is your feature request related to a problem? Please describe.
there are some data that are set manually during installation
Describe the solution you'd like
create an installation page where the user can define currency, tax and channel data
Additional context
an example is what wordpress does.. where the user defines the database, login, site name, etc.

So you're suggesting installation screens. It's something we've discussed and there are certainly security concerns with such an approach.
Naturally, we wouldn't be asking for database credentials, that's not how Laravel works. But I think a wizard-like set of screens hand-holding you through the set-up could be an option.
Perhaps this should be something the hub does when you first login? A bit like a SaaS product would take you through the initial set-up steps.
Then we also need to consider whether this needs to be automated for the command line.

Another thought is, if it was a set-up thing in the hub, which was prompted on first login, it could potentially be re-accessed later if the admin wanted to set-up something again.


dereference symlinks when building features and images

This PR updates the CLI to dereference symlinks when building features and images.
This makes it easier to build features that share common scripts, .e.g:
- common
  - init.sh
- src
  - f_1
    - common # link to ../../common
    - install.sh # calls `./common/init.sh`
  - f_2
    - common # link to ../../common
    - install.sh # calls `./common/init.sh`

An unfortunate side-effect of this PR is symlinks within the feature's local scope are also dereferenced, leading to duplication in the following scenario:
- src
  - feature
    - script.sh
    - install.sh # calls `./script`
    - script # soft link to `./script.sh` on the host, but is a copy of `./script.sh` in the image

This also breaks things if a user expects a symlink (that may be broken) on the host to be copied into the container (where it may be valid), or otherwise expects soft links to reference container paths:
- src
  - feature
    - cuda # links to /usr/local/cuda
    - install.sh

With this PR, the above would cause devcontainers to dereference the cuda symlink on the host when building the context.
This seems to be a security risk that could be exploited by a malicious feature, so I'll close this and explore other options.


Update section 7.3 of Manual on Load Balancing Chare arrays

Original author: Vipul Harsh
Original issue: https://charm.cs.illinois.edu/redmine/issues/865

http://charm.cs.illinois.edu/manuals/pdf/charm++.pdf
Section 7.3 - Load Balancing Chare Arrays is not properly written. Some of the things are partially incorrect.

Original date: 2017-02-01 18:28:40

It would be good if you can do a quick read over and correction of this documentation since no else in the lab has your level of knowledge in this area


Add raw data example in notebook

Issue: #783
What does this PR do?
Adds examples for raw data for all metrics in a Report and a single metric in a Report.
cc @elenasamuylova @emeli-dral

Hey @SangamSwadiK ,
well done, thank you!