Evaluate usage of features

https://github.com/ebfull/pcap/blob/5eddf7f839d51374e23e9df62b4fdd31f04ed546/Cargo.toml#L25-L40
libpcap 1.7.2 was released in 2015 and 1.5 in 2013. Are there any distros still shipping those versions? Debian buster ships 1.8.1, CentOS 8 ships 1.9.

One of the PRs I was intending to submit shortly (once I finish with the tokio update) was to improve handling of version-gated features. On my fork I did dynamic version detection: https://github.com/Wojtek242/pcap/pull/3/files inspired by #68. One good question would be to decide what is the oldest version to support. I completely agree with you that Linux distros are well ahead of 1.0.0. WinPcap is based on 1.0.0 though (but then again I don't really know what people use on Windows). To me 1.5.0 would be already good as that introduces immediate_mode.
I'm open to suggestions and concerns about back-compatibility.

Debian jessie (still supported I think) ships 1.6.2

Centos 6 (still maintained until December) ships with 1.4.0

On Linux, with previous releases of libpcap, capture devices are always in immediate mode; however, in 1.5.0 and later, they are, by default, not in immediate mode, so if pcap_set_immediate_mode() is available, it should be used.

So if versions below 1.5 are still around you have to use version detection o_O? Your version detection is build-time static, correct? So if you ship binaries you'll have to take care of it manually?
Jessie support ended at the end of june, but Centos 6 is indeed still maintained until December. Winpcap was abandoned, it won't get security updates or support. Npcap has a higher libpcap api level, but their license might be unsuitable for some.

Is tokio feature very useful in pcap crate?  I'm not sure whether it is essential.
My perception is that tokio is for high performance NW things where thousands of users/contexts exist simultaneously.
My guess is that if you capture thousands of interfaces simultaneously, it might be useful....
Do you know specific use cases?

The same thought crossed my mind, but based on the issues some people do appear to use it #90 and #108.
I would keep the feature for now while we get everything up-to-date and then re-evaluate. Perhaps some other people will chip in.

My guess is that if you capture thousands of interfaces simultaneously, it might be useful....
Do you know specific use cases?

Not thousands, but my original use case for this package was to develop a software switch for P4 (there is a C++ software switch, I just wanted to make a Rust one) and in that case I would like to capture and send on an arbitrary number of interfaces. The C++ software-switch also uses libpcap.

Software switch is a nice use case.  Thank you for the explanation.

My guess is that if you capture thousands of interfaces simultaneously, it might be useful....

Do you know specific use cases?

Not thousands, but my original use case for this package was to develop a software switch for P4 (there is a C++ software switch, I just wanted to make a Rust one) and in that case I would like to capture and send on an arbitrary number of interfaces. The C++ software-switch also uses libpcap.
Despite the fact that libpcap was made for packet captures, it is also the most suitable library there is if you want to send packets with arbitrary headers (so potentially not even Ethernet).

Right, so CentOS 6 reaches EOL by December so I think it's fair to ignore it. CentOS 7 uses libpcap 1.5.3 which is a much more convenient boundary.
Then the other question is how to handle this. As @Trolldemorted the solution on my fork (https://github.com/Wojtek242/pcap/pull/3/files) is build-time static. A dynamic version should be doable though since libpcap exposes a function to detect versions. I will have a look into it

Features other than tokio (Now `capture-stream') have the purpose of switching individual APIs on/off.  Because the availability of APIs are dependent of the PCAP version (1.5.3 or 1.8.1, etc.), so the libpcap version "level" will better serve than each feature names such as "pcap-savefile-append", "pcap-fopen-offline-precision", etc.
Configuation through enviroment variable might be a bit controvertial, and we need to pick proper name since it's like a global variable.  If there's better configuration mechanism, we might want to try, but I don't have a concrete idea for it.  So I'm positive to your plan of "dynamic version probe (nice fit for compile-and-run people) + environment variable override (nice for ship-and-run people)" approach.
I tried @Wojtek242 's folk, about 3 months ago, and it looked working.  What I noticed was when I changed the environment variable, I had to run cargo clean manually.  This feeled quite normal thing to me.

Another approach would be:
Version-based feature aliases
[features]
libpcap-1.8.1 = ["aaa", "bbb"]
libpcap-1.5.3 = ["aaa"]

Pro:

It is more standard way of doing feature gating.

Con:

It does not allow dynamic detection. (But in a sense, it feels like a right thing.)
Features are defined in two layer ("libpcap-x.x.x" and "aaa"/"bbb"),

What do you think? @Wojtek242 @Trolldemorted
Version-based features Rev.2
Cargo.toml:
[features]
libpcap-1.8.1 = [libpcap-1.7.2]  # includes all previous APIs
libpcap-1.7.2 = [libpcap-1.5.3] # includes all previous APIs
libpcap-1.5.3 # minimum supported version

In *.rs files:
    #[cfg(feature = "libpcap-1.5.3")]
    pub fn pcap_fopen_offline_with_tstamp_precision(arg1: *mut FILE, arg2: c_uint,
                                                    arg3: *mut c_char) -> *mut pcap_t;

Windows: npcap claims to support libpcap 1.9.1
https://nmap.org/npcap/vs-winpcap.html
Windows: Wpdpack 4.1.2 support 2.4?
They say 2.4, but probably it's not the information we want....
#define PCAP_VERSION_MAJOR 2
#define PCAP_VERSION_MINOR 4

https://github.com/wireshark/winpcap/blob/267327e28031d2d3d74c28cf18a08dfbc515071b/dox/libpcap/incs/pcap.h#L56-L57

Q) What is the minimum libpcap version we should support?
A) WinPcap coverage or libpcap-1.0.0 coverage
WinPcap looks like very old (libpcap-1.0.0?) and Unix platforms ship relatively recent versions.
So in raw.rs,

We can use any functions WinPcap support without any cfg check.
Anything other than the above requires cfg check.

What do you think? @Wojtek242 @Trolldemorted
Version-based features Rev.2
Cargo.toml:
[features]
libpcap-1.8.1 = [libpcap-1.7.2] # includes all previous APIs
libpcap-1.7.2 = [libpcap-1.5.3] # includes all previous APIs
libpcap-1.5.3 # minimum supported version + 1 increment

I'm not really in favour of this solution. Cargo features have some annoying properties. One of them is that you cannot have exclusive features - that is you cannot make it so that if you enable libpcap-1.8.1 then libpcap-x.x.x for all other versions is disabled and I think it's messy to define a feature libpcap-1.8.1 which includes all previous APIs, but then you can also define libpcap-1.7.2. I think it's confusing and not very consistent. It's also slightly questionable to me why would the user of the library have to go and read documentation to figure out which version he should use to enable the API he wants to use.
The solution on my branch is build-time static so it isn't really fully dynamic. It's dynamic only if you're the one compiling the code. If that's the solution we opt for, I don't think an environment variable is a problem in this case, because you can always just set it exclusively during compilation.
Another option is to have it fully dynamic at runtime. This should be possible as libpcap exposes the function pcap_liv_version. Then we use dynamic dispatch to throw an error if an API that is not available in the current version is being called, but otherwise to work normally. I think this is the best solution from the pcap library user's point of view. The user just writes code using whatever API they feel like. Then if somebody else takes their code and tries to run it on an older libpcap version they will get an error that they need to update libpcap.

The last option I mentions is more complicated, but I could try a proof-of-concept this weekend maybe.

WinPcap looks like very old (libpcap-1.0.0?) and Unix platforms ship relatively recent versions.

WinPcap is awkward. It is based on 1.0.0, but it does support some API calls from later versions

We can use declare any functions WinPcap support without any cfg check.

Sounds like the best solution

I'm not really in favour of this solution. Cargo features have some annoying properties. One of them is that you cannot have exclusive features - that is you cannot make it so that if you enable libpcap-1.8.1 then libpcap-x.x.x for all other versions is disabled and I think it's messy to define a feature libpcap-1.8.1 which includes all previous APIs, but then you can also define libpcap-1.7.2. I think it's confusing and not very consistent. It's also slightly questionable to me why would the user of the library have to go and read documentation to figure out which version he should use to enable the API he wants to use.

I think this
[features]
libpcap-1.8.1 = [libpcap-1.7.2] # includes all previous APIs
libpcap-1.7.2 = [libpcap-1.5.3] # includes all previous APIs
libpcap-1.5.3 # minimum supported version + 1 increment

and this
    // build.rs
    let api_vers: Vec<Version> = vec![
        Version::new(1, 2, 1),
        Version::new(1, 5, 0),
        Version::new(1, 7, 2),
        Version::new(1, 9, 0),
        Version::new(1, 9, 1),
    ];

    for v in api_vers.iter().filter(|&v| v <= &version) {
        println!("cargo:rustc-cfg=pcap_{}_{}_{}", v.major, v.minor, v.micro);
    }

are the same thing, but just expressed in a different language. I feel build.rs approach has a bit bigger mental load.
https://github.com/Wojtek242/pcap/blob/7f20f08eaa420791f59d524565982d98865aa479/build.rs#L94-L110

The solution on my branch is build-time static so it isn't really fully dynamic. It's dynamic only if you're the one compiling the code. If that's the solution we opt for, I don't think an environment variable is a problem in this case, because you can always just set it exclusively during compilation.
Another option is to have it fully dynamic at runtime. This should be possible as libpcap exposes the function pcap_liv_version. Then we use dynamic dispatch to throw an error if an API that is not available in the current version is being called, but otherwise to work normally. I think this is the best solution from the pcap library user's point of view. The user just writes code using whatever API they feel like. Then if somebody else takes their code and tries to run it on an older libpcap version they will get an error that they need to update libpcap.

Fully dynamic apparently require greater endeaver.  It feels like very opinionated , have many pros and cons.
Con:
I'm a big fan of the "fail early" strategy.  If the runtime platform does not have required function, it should fail on startup, not emitting Err when you try to call it.
I think we should release 0.8.0 without big change such as version probe.

Question:

we only have two features which are version dependent.

pcap-savefile-append
pcap-fopen-offline-precision

--features full serves great on modern linux and macosx platforms.

What is the problem you are trying to fix by version probe and version-based cfg control?
Even 'Version-based features Rev.2' is not needed, in my opinion.

Here's my evaluation of each version probe.
Build-time version probe
Probe version in build.rs and use it for cfging raw functions.
Pros

It's automatic: users typically don't know what features are required by themselves.  It just works for many people.
Serves as a infra to append more version-dependent functions

Con

ENV override is not good way of software configuration.

Add to bashrc and you'll forget that. It will become a source of problems. (reduces build reproducibility)
More difficult to change: If you use IDE, you need to relanch it after ENV change.

Implicitness is a bad thing.  The below is the more standard and explicit way of crate configuration.

[dependencies]
pcap = { version = "0.8.0", features = ["libpcap-1.8.1"] }

Fully Dynamic (runtime) version probe
Probe version in runtime and change behaviour using that information.
Pros

You can ship software that run on verious environment. (Think of wireshark-like tool, for example.)

Cons

API change is required (returning Result, etc.)
Against fail-early strategy.

I created #136 and #137 for each possibility.

I see your point about fail-early. As I thought what the use case would be for dynamic runtime checking it would mostly be essentially indistinguishable from a static build-time check upfront. A developer using pcap would have to choose a minimum required libpcap version and all of their users would need to have libpcap version.
However, one benefit of runtime checking is that it would allow for said developer to support a super new version of libpcap, but only the features that use the newest API calls would be unavailable to the user. A potential scenario is that 98% of a particular library uses the 1.5.0 API, but the 2% uses API from 1.7.2. With dynamic runtime checking the users of that library still get to use 98% of the functionality rather than 0%. However, this is easier said than done as libpcap also sometimes changes the behaviour of existing API calls across versions (e.g. immediate mode on Linux).
The runtime checking has potential, but doesn't justify the complexity. Let's leave #137 open and see if people express interest in it. If they don't then we don't implement it.

think this
[features]
libpcap-1.8.1 = [libpcap-1.7.2] # includes all previous APIs
libpcap-1.7.2 = [libpcap-1.5.3] # includes all previous APIs
libpcap-1.5.3 # minimum supported version + 1 increment

and this
    // build.rs
    let api_vers: Vec<Version> = vec![
        Version::new(1, 2, 1),
        Version::new(1, 5, 0),
        Version::new(1, 7, 2),
        Version::new(1, 9, 0),
        Version::new(1, 9, 1),
    ];

    for v in api_vers.iter().filter(|&v| v <= &version) {
        println!("cargo:rustc-cfg=pcap_{}_{}_{}", v.major, v.minor, v.micro);
    }

are the same thing, but just expressed in a different language. I feel build.rs approach has a bit bigger mental load.
https://github.com/Wojtek242/pcap/blob/7f20f08eaa420791f59d524565982d98865aa479/build.rs#L94-L110

There is still a very important difference. The first one requires the user to intentionally opt into later libpcap versions even if they already have it installed. This may be confusing if said user just downloaded pcap and some API call he could call from C is not being called from Rust. The latter option is opt-out. That is a user must consciously choose to compile against an older API version. Features depending on features is a fancy feature I haven't thought about though. If it can be made opt-out in a non-confusing manner then it would be the best solution though.

In this case, I'll wait with submitting any PR until we decide if we want to use build.rs vs features. I'm happy to drop runtime for now. However, I do think we need this for 0.8.0, because without this PRs by others can get really complex and lead to a proliferation of forks (see #55).

My vote is for build.rs unless there is a convenient way to make newer versions opt-out rather than opt-in using features.

I also vote for build.rs.
It will simplify most cases.
Prior art study:  How openssl-sys handle the same problem? = build.rs
They support many versions of openssles and libressl with the single crate.
build.rs approach is used (emitting many cargo:rustc-cfg={} lines).
https://github.com/sfackler/rust-openssl/blob/0a0da84f939090f72980c77f40199fc76245d289/openssl-sys/build/main.rs#L193-L195


Add suite documentation and metadata to xUnit outputs

Based on pytest documentation xUnit outputs support adding properties on suite level. We could use them to include suite documentation and free suite metadata.
pytest also has a way to add properties to tests, but there's this warning as well:

The generated XML is compatible with the latest xunit standard, contrary to record_property and record_xml_attribute.

It's thus probably best we only add properties to suites.
We already have PR #4193 for that so this is pretty much ready and can easily make it to RF 5.0. That release already has other xUnit enhancements (#4074 and #2982).
This enhancement is inspired by #3944 that proposed adding separate callable (presumably a keyword) for adding properties for xUnit file similarly as pytest supports. Having some custom properties only in xUnit outputs doesn't feel that good and we decided to just write existing documentation and metadata there. Both can be specified directly in data, give from the command line (only for top level suite), and there are keywords for modifying them during execution.

Implemented in PR #4193 by @rikerfi. Thanks for contribution!


Delete unnecessary spaces

Delete unnecessary spaces: When copying from the web page, there is an unnecessary space after the code.
Fix indent: Indentation is misaligned.

@changeworld : Thanks for your contribution! The author, @saveenr, has been notified to review your proposed change.

@changeworld : Thanks for your contribution! The author, @saveenr, has been notified to review your proposed change.

@changeworld - Thank you for your submission. We are not able to accept formatting and spacing changes in the repo at this time.


README.md Chef Version Errata

I believe this example in README.md should be changed from spec.metadata[halite_dependencies] to  spec.metadata[halite_chef_version]
Original:
Chef Version
By default cookbooks will be generated with chef_version '~> 12' to require
Chef 12.x. This can be overridden using the halite_chef_version metadata field:
Gem::Specification.new do |spec|
  spec.metadata['halite_dependencies'] = '>= 12.0.0'
end

Modified:
Chef Version
By default cookbooks will be generated with chef_version '~> 12' to require
Chef 12.x. This can be overridden using the halite_chef_version metadata field:
Gem::Specification.new do |spec|
  spec.metadata['halite_chef_version'] = '>= 12.0.0'
end

Good catch! Copy-paste error probably :(


[Feature] Implement Scripting

Warning This is a complex feature and is not guaranteed to be implemented.
Compile from the dedicated branch at your own risk, it may break at any time.

Using Rune, add scripting support for labels as a start, then assuming everything works well, implement it to a larger degree.

Paused for now due to several reasons:

Adding scripting would require yet another key for widgets, making it all a huge mess

This can be solved by removing support for the command key, letting the user call execute themselves.

It would break all current configs if a proper, clean solution was introduced. If just a new key named script was added, then it would bring in more complexity to the codebase.

Benefits of having scripting though:

More control of Hybrid
You're free to implement more advanced functions, rather than hacking around with it
Widgets can be dynamically added/removed
Custom widget types to an extent
Custom user-defined functions and variables
Access to more optimized functions, rather than having to use shell-commands for everything, which adds a lot of overhead when called frequently

Downsides of implementing scripting:

If done properly, all configs that use the command key will break, although it takes little to no effort from the user to fix it
More documentation has to be added to reflect on how to use/transition to using scripts
More prone to user errors
Less beginner-friendly (hence new examples will be made to help out beginners)


Dodger Blue issue

Challenge Use Hex Code to Mix Colors has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.101 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

I am red!

I am green!

I am dodger blue!

I am orange!

What is the issue exactly Khepf? I do not see a problem with dodger blue on any of the browsers listed.

Looks good now, it appears the hex for dodger blue was changed (it wasn't
working yesterday)
Thanks!
On Sun, Sep 11, 2016 at 11:22 AM, sf-jd<EMAIL_ADDRESS>wrote:

What is the issue exactly Khepf? I do not see a problem with dodger blue
on any of the browsers listed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/10699#issuecomment-246185807,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQMGj3c9R1npV7YAmce7YGVSB766u3pJks5qpBzQgaJpZM4J6A0Q
.

Closing as resolved. Thanks and happy coding!


Issue 294 passphrase

fixes #294
While finalizing a seed:

If user flows into adding a passphrase and then decides to edit -- only to delete it, the next step is back to Finalize w/o a passphrase, instead of being stuck having to finalize a non-empty passphrase only to discard the seed and start all over.

If user has leading or trailing spaces in their passphrase, ever since v0.4.3 this would have resulted in deriving the wrong hd wallet because "passphrase.strip()".  With this change, the next step is to review the passphrase, which will be double-quoted so that they can see the space characters.  Same for a passphrase that consists only of spaces.

If user has a more sane passphrase, w/o leading or trailing spaces, there will be no difference from what they're used to.

This was first discussed in issue https://github.com/SeedSigner/seedsigner/pull/291
then later broken-out into it's own issue https://github.com/SeedSigner/seedsigner/issues/294

Last commit alters review passphrase display from:

double quotes wrapping passphrase if leading or trailing spaces in passphrase

to

spaces replaced with left-7/8s-block if leading or trailing or multiple spaces in passphrase

ACK


Documentation update + Sample restructure

Updated README docs for the Device SDK
Added simple_telemetry_sample for a quickstart scenario
Adjusted sample directory structures and READMEs

This looks great!!! Thank you Carter 👍


HARVESTER: add query params for pcidevices list

Summary
PR Checklist

~Is this a multi-tenancy feature/bug?~

[ ] ~Yes, the relevant RBAC changes are at:~

~Do we need to backport changes to the old Rancher UI, such as RKE1?~

[ ] ~Yes, the relevant PR is at:~

Are backend engineers aware of UI changes?~

[X] ~Yes, the backend owner is: @ibrokethecloud

Occurred changes and/or fixed issues

https://github.com/harvester/harvester/issues/4146

Technical notes summary

Areas or cases that should be tested

Go to Enable SR-IOV devices.
Go to PCI devices list page.
You are able to filter the devices by parent SR-IOV.

Areas which could experience regressions

Screenshot/Video

@mergify backport release-harvester-v1.2


Star ports can spawn within each other

When the counterparts of two star ports are somewhat close to each other, those star ports can overlap in such a bad way that it's not possible to tell which one you end up in.
I'm guessing that this has to do with the general concept of the positioning of star ports in relation to their home planet, which may require some (but not too much) rethinking of said concept.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24985193-star-ports-can-spawn-within-each-other?utm_campaign=plugin&utm_content=tracker%2F15383776&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F15383776&utm_medium=issues&utm_source=github).

Closing as fixed!


Some UI fixes

Fixed Markdown support
Set property widget order

I close PR. I will apply discussed moments and then create new PR


Broken image using image field on new crud items

Everytime I use the image field, when adding a new entry a broken image is displayed.
I feel this is not aesthetically pleasing or intended. See attached.

how are you showing your encrypted image file on user side please tell me

He's not talking about a stored file. He's talking about when the file doesn't exist. Like when the entry is added for the first time.

+1
this is because the path on the crud edit screen is wrong.. not only on the first time but also on the edit screen the image shows as broken. the model function to set file path and name works for posting but is not applied here to display where the image is being saved.
i might be wrong.. if someone can show us what we are doing wrong?

@mpixelz The issue isn't with the crud. It's with the image field view. njbarrett is talking about having a better placeholder when the image isn't available.

yeah figured it out.. there is no placeholder for the image for the first time..
the second issue i was facing was due to the wrong driver selected in the filesystem.. had to create new driver for public_path();
thanks thou :)

If this is still an issue that needs fixing, please reopen.


How can i populate fields which is set up in PCF form ?

Help!!!
How can i populate fields which is created under PCF form ? i tried to use selenium code but its not working at all. I have tried both of the following code but noting is working.
var RQSTAMNT = client.Browser.Driver.FindElement(By.XPath("//div[@data-id='abc_requestedamount']"));
var PopuulateRQSTAMNT = RQSTAMNT.FindElement(By.XPath("//input[@aria-label='Requested Amount']"));
PopuulateRQSTAMNT.SendKeys("25000");
or
xrmApp.Entity.SetValue("abc_requestedamount", "25000");

Please help

@sanatlami Could post a screenshot with markup?

The PCF control was launching a modal form which was not detected in the SetValue flow. The workaround was to first identify the command within the PCF control, click, and find the container for the modal. This required a change and will be submitted as a PR.
@sanatlami Can we submit the PR and move to close this issue?


[R][C++] Why is read_csv_arrow so much slower when using S3 path notation?

Consider these two mechanisms for reading from a public bucket.  I was struck to see that using S3 path notation was consistently over 20 times slower than using the https address directly.  I could imagine a small overhead for using S3, but compared to other operations this seems something weird is going on here:

library(arrow)
targe <- s3_bucket("neon4cast-targets", endpoint_override="data.ecoforecast.org", anonymous=TRUE)

bench::bench_time({ # 58.6 seconds
  ex1 <- read_csv_arrow(targe$path("terrestrial_30min/terrestrial_30min-targets.csv.gz"))
})

bench::bench_time({ # 2.7 sec
  ex2 <- read_csv_arrow("https://data.ecoforecast.org/neon4cast-targets/terrestrial_30min/terrestrial_30min-targets.csv.gz")
})

Reporter: Carl Boettiger / @cboettig
Note: This issue was originally created as ARROW-17597. Please see the migration documentation for further details.

I think it might be more than just an S3 issue. I recall having the same issue when reading a local file. Adding file:// to the head of the path made it run much faster.


VIPRA Behaviors: Targets & Attributes

Currently actions only affect the individual performing the action.
We need a way to specify which object is acted on.
Two new blocks will be added, the Target Selector and Attribute Grabber (names might need to change)
The target selector chooses what will be acted upon, either pedestrians/event/etc.
The Attribute grabber will get attributes from targets. (checks will need to be done in the building phase for proper attribute access)
This will probably be useful in conditions, but exactly how needs to be looked at.

pedestrians are able to take actions based on the pedestrians around them, as well as affect those pedestrians.
It is hard to get a good output showing the behaviors as the pedestrians get stuck within 8,000 steps no matter what.


XM25QH128AHIG flash startup fail (IDFGH-8494)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.1-dev-1146-g1308ff3d21
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
No response
Development Kit.
custom board use chip ESP32-D0WD-V3 & flash XM25QH128AHIG
Power Supply used.
External 3.3V
What is the expected behavior?
Normal boot
What is the actual behavior?
It does not start properly
Steps to reproduce.

Use the FLASH chip XM25QH128AHIG
build and flush app
setup

Debug Logs.
rst:0x3 (SW_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:7032
load:0x40078000,len:15380
load:0x40080400,len:3816
0x40080400: _init at ??:?

entry 0x40080648
I (52) boot: ESP-IDF v5.1-dev-1146-g1308ff3d21-dirty 2nd stage bootloader
I (53) boot: compile time Oct 11 2022 09:43:28
I (56) bootloader_flash: XM25QHxxC startup flow
E (63) bootloader_flash: XMC flash startup fail
E (66) boot.esp32: failed when running XMC startup flow, reboot!
ets Jul 29 2019 12:21:46

`

More Information.
esptool.py flash_id
esptool.py v4.3
Found 1 serial ports
Serial port /dev/ttyACM0
Connecting.....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b4:8a:0a:4e:b3:e4
Uploading stub...
Running stub...
Stub running...
Manufacturer: 20
Device: 7018
Detected flash size: 16MB
Hard resetting via RTS pin...

Will the chip success to run after the reboot?

And could you provide the schematic of the flash chip? Is it powered by ESP32's VDD_SDIO, or always by the system LDO

重新启动后，芯片会成功运行吗？
没成功, 并且会不断重启, 重复报这个错误
It fails, and restarts repeatedly, repeating the error

And could you provide the schematic of the flash chip? Is it powered by ESP32's VDD_SDIO, or always by the system LDO

FLASH是由外部电源供电, 与芯片公用一个电源
The FLASH is powered by an external power supply, which is shared with the chip

And could you provide the schematic of the flash chip? Is it powered by ESP32's VDD_SDIO, or always by the system LDO

@ginkgm
FLASH power supply can be supplied through resistance selection system LOD/VDD_SDIO

https://github.com/espressif/esp-idf/issues/7994
https://github.com/espressif/idf-flash-vendor-patches/tree/main/examples/lock_sr
@ginkgm
This issue has been tested and does not allow the chip to start properly

原因是bootloader在对比xmc芯片ID的时候, 没有找到对应ID导致的, 修改以下内容后, 可以正常启动.
The cause is that the bootloader does not find the corresponding ID when comparing the xmc chip ID. The bootloader can start normally after modifying the following information.
file : esp-idf/components/bootloader_support/bootloader_flash/src/bootloader_flash.c
...
static IRAM_ATTR bool is_xmc_chip_strict(uint32_t rdid)
{
    uint32_t vendor_id = BYTESHIFT(rdid, 2);
    uint32_t mfid = BYTESHIFT(rdid, 1);
    uint32_t cpid = BYTESHIFT(rdid, 0);

    if (vendor_id != XMC_VENDOR_ID) {
        return false;
    }

    bool matched = false;
    if (mfid == 0x40) {
        if (cpid >= 0x13 && cpid <= 0x20) {
            matched = true;
        }
    } else if (mfid == 0x41) {
        if (cpid >= 0x17 && cpid <= 0x20) {
            matched = true;
        }
    } else if (mfid == 0x50) {
        if (cpid >= 0x15 && cpid <= 0x16) {
            matched =  true;
        }
    }
    /* add */
    else if (mfid == 0x70) {
        if (cpid >= 0x17 && cpid <= 0x20) {
            matched =  true;
        }
    }
}
...


You wrote OpenAL twice

Please provide more information, like where exactly in the code or in which section of the programm. Screenshots help a lot too.

sorry i was asleep


Hover indication can stuck on multiple submenu options in main menu

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.70.0
OS Version: Windows 10 Pro 21H2

Steps to Reproduce:

Open main menu's 3rd or 4th level, on upper menu levels this issue does not occur:
1.1. If menu bar is disabled: starting from Menu → View → Appearance or any deeper nesting level
1.2. if menu bar is enabled: View → Appearance → Panel position for instance
Move cursor away from submenu to the right, then move cursor back to one of that submenu's options and move cursor again away from submenu but during disappearance animation of editor's scrollbar or after animation is finished. Hover indication will remain on that submenu option
Then if you move cursor back to another submenu's option, hover indication on that previously hovered option will remain and hover indication will appear on currently hovered option too
But again if you move cursor away from submenu during aforementioned animation or after it, hover indication will remain on 2 submenu options already
You can move cursor to one more option and it will have hover indication too additionally to two previous options
And that trick can be performed until every option of that submenu will have hover indication including options that has its own submenu.

Actually I don't know if this issue is really somehow related to editor's scrollbar or it is a conincidence, but it seems that somehow animation affects appearance/disappearance of submenu options hover.
Example of this behavior you can see in the video below:
https://user-images.githubusercontent.com/44531490/183479896-8f3003cd-93a3-46ee-beee-c0f796efe7c9.mp4

Ok

@riskoviv thanks for the excellent repo


Validate sudo-prompt with macOS Sequoia

Given reports such as https://github.com/bpasero/sudo-prompt/pull/2

It seems to work fine for @deepak1556


Poison resistance overlay trigger

The poison resistance overlay does not trigger if you click on the hp orb after being poisoned to cure the poison.

PR: #8368


Updated .build-docker references to .build-ubuntu

Relates to https://github.com/IBM-Swift/generator-swiftserver/issues/187

We can merge this when we cut a new release of generator-swiftserver containing the change.


Tablite doesn't fully support iso8601.

The problem is captured here: https://stackoverflow.com/questions/2150739/iso-time-iso-8601-in-python

Closed as this hasn't come up as urgent for 3 years.


Fix the error where the symbol link cannot be correctly parsed when moving the flutter cache to another location using symbol links

Fix the error where the symbol link cannot be correctly parsed when moving the flutter cache to another location using symbol links

Hello, can you make a pull request in https://github.com/irondash/cargokit/blob/main/cmake/resolve_symlinks.ps1 ?
I don't know if your change is an improvement because I dont know much about powershell.


Please put a disclaimer on this code

I found this via the subreddit. It's pretty unethical to advertise this framework as functional and good to go when you yourself admit it's untested, and others have pointed out security holes and issues, and that you're also just a student and a JS dev primarily.
Please also follow modern PSR standards so we're not teaching new generations of PHP Devs (such as yourself) the wrong thing. Biggest example is camel_casing - it's 2020, please don't use camel case methods, and all the static calls.
Anyway a disclaimer as the first thing you read would be good - something like "This is an alpha-stage repository for a University project by a student, as such there will be security issues - do not use this in production code."

Thank you Matt, you're right. I'll update the README to clarify it from the start.


[ENH] test framework: test classes, fixture generators, pytest-xdist enabled, garbage collection per test

See here for overview of recent test framework related PRs:
https://github.com/alan-turing-institute/sktime/issues/2053

#2023 with garbage collection before each test

closed as https://github.com/alan-turing-institute/sktime/pull/2142 was merged


pull model_full_dbscan_and_standatization_nobias from git@github.com:MrRobot2211/SPNN.git

model_full_dbscan_and_standatization_nobias branch from git@github.com:MrRobot2211/SPNN.git is ready to be published as stable release.

We have build checks now, this is awesome!!!!
We can automatize fla8 check in there also.

Great we are all set

Awesome. We are all ready for publishing the package in pypi 💪🏽


disable Deferred Wipeout

Have you verified this works?
We also had tried this option at OpenJ9 and it was broken.
See https://issues.jenkins-ci.org/browse/JENKINS-54225


Command /chores to list all chores

[x] List them by creation date, most recent first

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@0a3fba6). Click here to learn what that means.
The diff coverage is 68.57%.

@@            Coverage Diff             @@
##             develop      #90   +/-   ##
==========================================
  Coverage           ?   86.12%
==========================================
  Files              ?       21
  Lines              ?      699
  Branches           ?        0
==========================================
  Hits               ?      602
  Misses             ?       97
  Partials           ?        0

Impacted Files
Coverage Δ

dontforget/utils.py
51.72% <100%> (ø)

dontforget/ui/telegram_bot.py
69.31% <61.53%> (ø)

dontforget/models.py
96.34% <75%> (ø)

Continue to review full report at Codecov.

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


CML PR for 3-remote-experiments 9c161140

Automated commits for https://github.com/iterative/demo-bank-customer-churn/commit/9c161140b69ece41d000d8b38a05699d5238f338 created by CML.

eec4c1d
Metrics

Path
f1
f1_by_geo.France
f1_by_geo.Germany
f1_by_geo.Spain
roc_auc
roc_auc_by_geo.France
roc_auc_by_geo.Germany
roc_auc_by_geo.Spain

metrics/metrics.json
0.60911
0.52229
0.67385
0.63087
0.86618
0.84652
0.85258
0.87762

Confusion Matrix


HTML mails

Seems as the "Grammar" button doesn't do anything:

I don't see anything in the developer console. No error message, not http request. The only request I see comes from the settings page "Test" button with appears to be working.
Thunderbird 115.10.1 (64-Bit)
Edit: reason was it only works for plain-text mails.

Ah I see.
This extensions only works on text emails, not HTML emails. This is mentioned in the addon description.

Here is how to switch: https://superuser.com/questions/1639802/in-thunderbird-while-composing-an-email-how-to-convert-it-from-plain-text-to-h

yes, that works better. Than let me change this to a feature request for HTML emails.

Maybe you can try out the code in the feature-html branch
https://github.com/JohannesBuchner/thunderbird-ai-grammar-mailextension/compare/main...feature-html
Overriding the HTML with fresh text is quite easy, see this line of code:  https://github.com/JohannesBuchner/thunderbird-ai-grammar-mailextension/compare/main...feature-html#diff-3df6958c77d615b266b54fcf12fadf313e7c1e4b168f0c61ea8c3424eb39eb8cR166
But ideally we would rip out the existing <p> at the start, replace them with <p> lines from the plain text, but leave everything after (signature, quoted text) intact.
https://github.com/JohannesBuchner/thunderbird-ai-grammar-mailextension/compare/main...feature-html#diff-3df6958c77d615b266b54fcf12fadf313e7c1e4b168f0c61ea8c3424eb39eb8cR171
That's what the insertParagraphs function is intended to do, but I think it is not right. Maybe you can test it with console.log debugging and edit it to suit your needs.
Instructions for how to load the modified extension are at:
https://github.com/JohannesBuchner/thunderbird-ai-grammar-mailextension?tab=readme-ov-file#making-changes
video: https://github.com/JohannesBuchner/thunderbird-ai-grammar-mailextension/raw/main/doc/debug-install.webm

A zip of the feature-html branch can be downloaded via: https://github.com/JohannesBuchner/thunderbird-ai-grammar-mailextension/archive/refs/heads/feature-html.zip

Thanks for the info on this add-on. I have the html version installed and it works. I guess there is quite a challenge to make this version work with html emails. Currently it works but the corrected text converts the email back to plain text. I guess this is to be expected?

Yeah. Unfortunately HTML emails can be almost anything. Supporting this is a nightmare that I do not want to get into.

I uploaded version 2, which has a bit of support for HTML emails, please test it.

404 not found when Button Test clicked under Options

404 not found when Button Test clicked under Options here is the server.log [GIN] 2024/08/05 - 13:49:07 | 404 | 184.6µs | <IP_ADDRESS> | POST "/api/generate" Note: Ollama is running, im on w10
var data = JSON.stringify({
"model": "llama3", //i dont have it installed
"prompt": "Respond with 'it is working!'.",
"stream": false
});
After debuggin the extension i realized i dont have the model llama3 installed, so either i install it or maybe you can provide an option to select or change the model name so i will install it first thanks, it should work after installing it


mobile support?

It'd be cool to use this on a phone. I'm sure performance will be a challenge, but just handling touch events would be a nice start.

I've added support for touch events. So mobile support should now just be down to whether the device supports reading from and writing to full floating point textures (most don't).

 Looks fantastic on Android chrome on Pixel XL.


beta values at horizon level

Hi and congrats for your library.
I am noticing a slight hop in the beta values around the horizon level. Basically the horizon level cannot be reported by the beta variable in any way. There's always a jump in the beta values (up to 10 degrees) around the horizon level.
Tested in Chrome and Firefox Beta for Android.
Also I don't know if its related, but changes in the gamma value seems to affect both the alpha and the beta values for reasons that I don't understand. At the horizon level the gamma values are inverted and basically the gamma values are very sensitive at the horizon level, is this normal?

Hi @bognick. Thank you.
I am glad you find it useful.
Beta values: Can you install this application https://play.google.com/store/apps/details?id=com.innoventions.sensorkinetics&hl=en and check if the same thing happen in a native application rather than the browser.
alpha, beta and gamma values are not exactly rotations over axises, but they are Euler angles. I am not an expert about the mathematics behind it. However I know the values effect each other as well. Here is some more info about Euler angles https://en.wikipedia.org/wiki/Euler_angles
What is your use case / project? I can give you more specific tips on how to apply those values. I've been there with CSS and Unity3D :)

Hi @dorukeker,
Before gyronorm.js I was playing with the gyro+accelerometer+magnetometer sensors directly through the devicemotionevent so I know that the beta values are fine in this case, the problem arises when I use gyronorm.js. I have downloaded the app you mentioned and everything seems to be fine, though I have to admit that I'm not sure about what to look for specifically (no beta values in there). I can reproduce this issue with both a Nexus 5 and a Xiaomi Redmi Note 3 Pro.
In my project I want to use those values in order to move in a natural way a virtual camera, in the same way we move the phone's camera as we pan around trying to shoot a physical target (check this video out if you have a minute to spare). So ultimately I want changes in the values of one axis rotation not affecting the values of another axis, as this is what we expect when targeting with a physical camera. When I play with the devicemotionevent directly I think that I observe less "inter-axis interference" and anyway it seems that it is doable as this demo demonstrates so I was wondering if gyronorm.js would support it.

Hi @bognick
Sorry for the app recommendation. I now see it dosent have the beta values indeed.
I run the example in the demo/ folder on a Samsung S5 and it returned the values normally. I dont have any nexus in house so I cannot test on the device :( I will try to get one and see how it behaves.
As far as I understand what you want is to have a VR in the browser. Like viwing a skybow. Gyronorm.js uses FullTilt library to get the raw values from the device and add some extra functionality on top. As fas as I remember FullTilt library has an example like that. You can check out here https://github.com/adtile/Full-Tilt/tree/master/examples
The current version of FullTilt is not available to use for commercial projects (they changed the license). But at least the example code can give you an idea.

Just an update: I found a Nexus 9 tablet and it behaved as expected. The values was consistent for me. Did you also test with the sample file under demo/ folder?
Cheers,
D.

Hi @dorukeker,
Thanks for the heads up about the FullTilt demos. It seems that they're doing what I want, and I'm surprised that in every demo (even in the data_display.html) there's not any "interference" among the Euler angle values when rotating my devices on a single axis. In which way is the gyronorm.js using FullTilt that the Euler angles exhibit different behavior?
Unfortunately I cannot make the gyronorm.js demo to work. There are many errors showing up like 404 for the bower_components and ReferenceError: FULLTILT is not defined. Do you have any working demo online?
On the Nexus 5 the issue is more subtle but totally there. It is more evident if you play a little and give it a bit of time.

Hi @bognick
I wrote an ebook about the differences in the beta and gamma values. You can find it here https://leanpub.com/gyronormjs You can download it for free as well. The issues with the deviceOrientation and deviceMotion are listed there. Along with how Gyronorm.js is addressing it.
To run the demo:

Check out the repo (or download the ZIP)
Open your terminal and go to the folder
Run `$ bower install' . This will install all the dependencies
Then start a local server in the root folder and browse to the demo/index.html

Cheers,
D.

Thanks @dorukeker
Sorry for the delay. I have now run your demo and I can confirm that the issue is still there even in the demo. I also managed to reproduce the issue with a Surface 3 (Edge, Windows 10). Btw do you have any idea why Firefox and Chrome do not report orientation data on the Surface 3?
So now I'm pretty convinced that the issue is on your part because I observe it on 3 devices (Redmi Note 3 Pro, Nexus 5, Surface 3), 3 browsers (FF, Chrome, Edge) and 2 platforms (Android, Windows 10). Also the demos of the FullTilt.js do not have the same issue and in particular it's orientation data seem to be very smooth and I'm wondering if they fuse the orientation data before applying them.
I have uploaded a short video using you demo which demonstrates the issue with the Redmi Note 3 Pro and Firefox. I admit that with the Nexus the issue is harder to observe but its definitely there and observable if you pay attention and wait for a little bit (it seems to get worse with time). Finally, the issue is much more observable when you apply the data to an actual camera where even little "hops" can move the whole 3D window awkwardly.
Nikos

Hello Nikos,
I checked the code again. It passes the beta and gamma values directly as they are served from FullTilt. So there is no altering.
An idea: FullTilt updates the values using requestAnimationFrame. Gyronorm has a frequency setting. So it is possible the FT is updating faster than GN default. You can reduce that time by setting extra options.
var args = {
    frequency:50,
};

var gn = new GyroNorm();

gn.init(args).then( ... );

I quickly put together a page where you can see Gyronorm values and FullTilt values side by side. You can find it here http://dorukeker.github.io/gnvsft/
Let me know if this helps.
Cheers,
Doruk

Hi Doruk,
unfortunately the frequency change doesn't solve the issue. In your side by side comparison page I noticed that also FullTilt beta values are problematic. Then I checked again their vr_test demo and while the camera is super smooth the beta values they're reporting are also problematic, so I was deceived by the demo's smoothness and didn't look the beta values actually. In order for them to offer a smooth final result it's probable that they do not use the Euler angle values, they just offer them for anyone's interest.
I also noticed that I may have to reload the page in order for the issue to emerge. At first load its possible that the beta values are just fine around the horizon.
Anyway, I will close this issue as you cannot do much about it I suppose :)
Nikos

Hi Nikos,
I see your point. Some additions:
The standard from W3C returns Euler angles. If you want to use other values you need to make the calculations. Not sure but maybe the VR demo is doing this.
I will close the issue for now. If you have more questions later don't hesitate.
Good luck,
Doruk

After further investigation I'm noticing correct alpha, beta, gamma values behavior when locking the device orientation in portrait mode and turning the device in landscape mode. When doing this the values are very smooth and more importantly alpha, beta, gamma values do not interfere with each other. The same applies to FullTilt.js of course. The only issue in this case is that the magnetic north is offset by 90º.
I'm officially confused.

On 10 May 2016, at 10:41, Doruk Eker<EMAIL_ADDRESS>wrote:
Hi Nikos,
I see your point. Some additions:
The standard from W3C returns Euler angles. If you want to use other values you need to make the calculations. Not sure but maybe the VR demo is doing this.
I will close the issue for now. If you have more questions later don't hesitate.
Good luck,
Doruk
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub https://github.com/dorukeker/gyronorm.js/issues/16#issuecomment-218081911

:)
If they return correctly when you lock the orientation, I assume what you were experiencing was related with the browser switching between portrait and landscape orientation.
Perhaps browser does not return the orientation values during switching between orientations? Or perhaps the function that libraries use to pass these values does not function properly during that short time.
When working on the library again for improvements I will re-visit that.
Cheers,
D.

I’m not sure Doruk, I’m confused.
It seems that the landscape orientation (either locked or not) is closer to what I believe should be right values behaviour. Values behaviour in portrait orientation are too shaky, inconsistent and interdependent. The behaviour should be consistent irrespective of the orientation and now this is not the case. Of course this is not gyronorm issue, but you may be able to find a solution when you find time.
Thanks for your time anyway,
Nikos

On 11 May 2016, at 17:24, Doruk Eker<EMAIL_ADDRESS>wrote:
:)
If they return correctly when you lock the orientation, I assume what you were experiencing was related with the browser switching between portrait and landscape orientation.
Perhaps browser does not return the orientation values during switching between orientations? Or perhaps the function that libraries use to pass these values does not function properly during that short time.
When working on the library again for improvements I will re-visit that.
Cheers,
D.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub https://github.com/dorukeker/gyronorm.js/issues/16#issuecomment-218475156


Use of unpacked unmanaged code for deployment??

Almost all the examples that I have seen for power platform regarding ci/cd goes somewhat in this order:

export and unpack unmanaged code from dev environment
check in code in source control
pack unpacked unmanaged code from source control
import packed unmanaged code in build env
download managed solution from build env
deploy downloaded managed solution to target env

This works however one thing I never understood is why we are using unmanaged code in first place. It makes sense for source control but for deployment instead of packing unmanaged code, importing then downloading managed solution if we could unpack managed solution, put it in source control, pack managed solution and deploy the packed managed solution wouldn't that would save time importing unmanaged solution and then exporting managed solution step from above?
It wud look something like this:

export and unpack both unmanaged and managed solution from dev environment
check in both solutions code in source control
pack unpacked managed solution code from source control
deploy managed solution to target env

Do let me know if I am missing something from the process I suggested??
Thanks,
Sanjeev

Hi Sanjeev,
One thing that using a build environment does, is tests the import process against an environment that should mirror your production environment.
This would catch a missing dependency before the build hits your release pipeline.
Does it make a big difference?  Not really.  Neater release pipeline I suppose 🤷♀

This feedback goes outside of these build tools. I'll pass it along to Power Platform team


Feature/lvm docs

Add basic docs for LVM
Also download updated lvg plugin on fly

Update url with suggested one, ready to merge


Verifying Rs512 signature using AWS's public RSA key is failing.

I get "error:0906D06C:PEM routines:PEM_read_bio:no start line" when trying to verify a JWT signature using Amazon's public RSA key. I can verify it in node.js using https://github.com/auth0/node-jsonwebtoken, but not PHP. The key begins like "-----BEGIN RSA PUBLIC KEY-----".
Any suggestions?

That's really weird. No suggestions right now unfortunately. Are you able to reproduce with a key you're willing to share on here for me to take a look?

Closing due to lack of activity and reproducibility. Please re-open if this is an issue.


Added more opencode18 visulizations

@gauthamzz  please review

Amazing work
merging

@gauthamzz see

Are there points to share this on social :p

Nah bro, leave that to us, we will do that in a pretty good way 😛


[SDKIOS-1024] Adopting SDK develop branch

Could please also merge changes from master do develop (stateless)

Did you test different flows?
I have another issue with the current state: when you register a new profile and logout and try to login and provide a PIN wrong once(!) you are deregistered.

Even though pinChallenge has some remaining pin attempts but associated user profile stands it's 0.
(lldb) po pinChallenge.remainingFailureCount
3
(lldb) po pinChallenge.userProfile.remainingPinAttempts
0

So we this is what we get from TS:
Error Domain=com.onegini.GenericErrorDomain Code=9003 "The user account is deregistered from the device. The user supplied the wrong PIN for too many times. All local data associated with the user profile has been removed." UserInfo={NSLocalizedDescription=The user account is deregistered from the device. The user supplied the wrong PIN for too many times. All local data associated with the user profile has been removed.}

I'm investigation this incoherente, I guess some data is lost when swift/objc instances are created back and forth.

Did you test different flows?
I have another issue with the current state: when you register a new profile and logout and try to login and provide a PIN wrong once(!) you are deregistered.

Bug in SDK, PR to fix is here:
https://github.com/onewelcome/sdk-ios/pull/281/files


Face recognition using  EBGM     (Elastic     Bunch     Graph     Matching), Fisherfaces.

Hello, I am a GSSOC'21 participant and would like to contribute to this project.

Can you assign this to me @akshitagupta15june?

sure

I would like to have collaboration on this issue. If anybody is interested can reply to it.

ok @Preeti2095

let me know

i am converting this issue to a discussion for you and your team


[Bug] Latest doc cannot switch to zh_cn

Checklist

[X] 1. I have searched related issues but cannot get the expected help.
[X] 2. The bug has not been fixed in the latest version.

Describe the bug
The latest version doc cannot switch to zh_cn. But for v0.2.4 doc, it works.

Reproduction
In https://lmdeploy.readthedocs.io/en/latest/ page, click 以中文阅读, then the page is still English version.
Environment
N/A

Error traceback
No response

@ispobock Hi, thanks for your feedback. It will be fixed soon.

Fixed in PR #1245


emacsPackage.el-easydraw: 1.1.0 → 20240529.1009

Description of changes
Resolves #316574.
Updates package to latest commit, and fixes the update script.

Latest tag
Changes from previous tag to current tag

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Breaking changes are not allowed to be backported to the stable release.  Does this update contains breaking changes?  Some commits looks like breaking to me.  I do not use this package so take my words with a grain of salt.

Changes from previous tag to current tag

Breaking changes are not allowed to be backported to the stable release. Does this update contains breaking changes? Some commits seem breaking to me. I do not use this package so take my words with a grain of salt.

After reviewing the commits again, I did find two breaking changes: one default keybinding is changed, and SVGs not generated using edraw cannot be opened in edraw (though it was buggy and never supported anyways). I'll be more careful next time regarding backports.


JSBin for tcomb-form

Question: Is there a JSBin or JSFiddle that has tcomb-form already setup?  I'd like to be able to create working examples using tcomb and be able to share them.  I tried creating this one: http://jsbin.com/yogugimocu/edit?html,js,console,output
but I keep getting errors saying error Error: Invariant Violation: Form.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.

I had the wrong version of tcomb-form referenced.  I got it working here:
http://jsbin.com/yogugimocu/edit?html,js,console,output it renders the form, but I still get some errors:
error Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's render method). Try rendering this component inside of a new top-level component which will hold the ref.

looks like it could be related to this: https://github.com/gcanti/tcomb-form/issues/107

updated to react 14: http://jsbin.com/vuwiba/2/edit?html,js,console,output
@gcanti any ideas about these errors?

Hi,
You are using
<script src="//fb.me/react-with-addons-0.13.3.js"></script>

so you must build a standalone version of tcomb-form without react. With webpack it's something like:
var webpack = require('webpack');

var plugins = [
  new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }),
  new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('development') })
];

module.exports = {

  entry: './node_modules/tcomb-form/index.js',

  output: {
    path: './dist',
    filename: 'tcomb-form.min.js',
    library: 'tcombForm',
    libraryTarget: "umd"
  },

  plugins: plugins,

  externals: {
    "react": "React" // <= exclude react from the build
  }

};

Working example (react v0.13.3 tcomb-form v0.6.7) where I pasted the generated js:
http://jsbin.com/sobosative/edit?html,js,console,output


building android build for the react native tester app  is failing

Description
for couple of days, i am unable to build the react native tester app, for the android, though the iOS is building successfully without any issues, the android build is failing and i am kinda unable to figure out, though my local environment is set up correctly as i am able to run a react native scaffolding without any issue and build the android counterpart.
here are error logs while trying to build the rn tester app

Steps to reproduce

cd react-native , the main react native repository
try yarn android
build probably would fail

React Native Version
0.75.0-main
Affected Platforms
Runtime - Android
Output of npx react-native info
System:
  OS: macOS 14.4
  CPU: (10) arm64 Apple M2 Pro
  Memory: 79.33 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.0.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 3.6.4
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.5.1
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK:
    API Levels:
      - "34"
    Build Tools:
      - 34.0.0
    System Images:
      - android-34 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2023.2 AI-232.10300.40.2321.11668458
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs
BUILD FAILED in 8s
error Failed to install the app. Command failed with exit code 1: ./gradlew installHermesDebug -PreactNativeDevServerPort=8081
mv: rename /var/folders/m4/63wc07xj00l5mnzjhc9xrfpr0000gn/T/tmp.unSvgiTHau/lib to /Users/bikidas/react-native/packages/react-native-codegen/scripts/oss/../../lib: No such file or directory
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy): The OLD behavior for policy CMP0026 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':packages:react-native:ReactAndroid:buildCodegenCLI'.
> Process 'command '/Users/bikidas/react-native/packages/react-native-codegen/scripts/oss/build.sh'' finished with non-zero exit value 1 * Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org. BUILD FAILED in 8s.
info Run CLI with --verbose flag for more details.
npm ERR! Lifecycle script `android` failed with error:
npm ERR! Error: command failed
npm ERR!   in workspace<EMAIL_ADDRESS>npm ERR!   at location: /Users/bikidas/react-native/packages/rn-tester

Reproducer
N/A
Screenshots and Videos

cc @necolas

@Biki-das,  looks like the build script is unable to locate the temp lib directory at this point:
pushd "$TMP_DIR" >/dev/null

  # Note: this automatically runs build as well.
  "$YARN_BINARY" install 2> >(grep -v '^warning' 1>&2)

  popd >/dev/null

  $EDEN_SAFE_MV "$TMP_DIR/lib" "$CODEGEN_DIR"

? Are you able to build the android rn tester app? If yes , could you give a possible solution to my problem, have not made any changes to the repo, on the latest main branch

@Biki-das what happens if you run:
bash /Users/bikidas/react-native/packages/react-native-codegen/scripts/oss/build.sh

?

@cortinico it installs the script but ends with some no file/directory statement

@cortinico it installs the script but ends with some no file/directory statement

It's failing to move a folder. Can you try to re-clone in a different folder and build again?

@cortinico  i tried to clone it in my desktop folder and throws the same error. :-(

@cortinico i tried to clone it in my desktop folder, also tried to create a new folder and tried to clone it there still throws the same error. :-(

Without further context, we can't help you more sadly.
As you can see, the react-native project builds successfully on our CI, so this is definitely something related to your local environment.

ok thanks for helping me out, will verify the local environment once more.

closing this @cortinico , it got solved automatically, i recloned again a few times and it worked thanks for resolving :-)


12.23.60 doesnt work

Hello,
today I install YouTubeBackgroundPlayback and doesnt work in youtube 12.23.60

Which module version are you using?
On Sun, Jul 2, 2017, 19:00 SirPirate<EMAIL_ADDRESS>wrote:

Hello,
today I install YouTubeBackgroundPlayback and doesnt work in youtube
12.23.60
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pylerSM/YouTubeBackgroundPlayback/issues/332, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AMxxbMoQ5d95llVEg9MBN_5LoTjgMU21ks5sJ8yvgaJpZM4OLooY
.

Module version 2.0.2 works with latest youtube update, where as module version 2.0.4 does not work, just a heads up for those who is trying to make it work with 2.0.4

It should work for both 2.0.2 and latest 2.0.4 as hooks for YT 12.23.60 are the same.
Post a logcat if it does not work...

I tried 2.0.4 again, forced closed youtube, reboot and its working like a charm, thanks for the good work

Good day mate,
Below my specs.
Doesn't seem to be working with 2.0.2 or 2.0.4 with the latest YT version.
As I don't know what to expect with a working version since I don't see anything changed in YT I suppose I have issues. Could you please have a look and propose something?
Seems really promising and I eager to get it work😀

@th3an7 hahahaah OK m8 now you are talking! :D


Page should explain how it works

This page does not allow me to build a mental model of how it all works. It teaches me nothing. As a developer, it is paramount that you explain the mechanisms under the hood.
How does the publishing tool know to publish a container and set the App Service up with containers?
What happens when I don't want to use a container on Azure but I want to use a container for local development?
Perhaps I'm in the middle of changing from IIS-hosted Kestrel to a container and the live App Service does things differently to my development team in the interim.
How do containers work on the Azure side?
What ports are mapped? How does SSL work? Do I need to write code to detect and use an SSL certificate locally, but not when running on Azure?
These questions are all critical path concepts and completely overlooked for the sake of giving a false hope of simplicity.
I've been coding on the MS stack for 23 years and this stuff is not obvious. I am slowly moving from Microsoft stack. I'm writing this on a Mac, which I thought I'd never say, because I don't want magic and false hope, I want to know how it works. Over 10 years you've stopped explaining how things work. You've stopped using diagrams.
You used to have deep whiteboard sessions on Channel 9. Even the latest .NET is proud of how little code is needed for an HTTP server, competing with Node and Go, but code is highly instructive, it's documentation in itself, and you can step through it.
Luke

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

ID: c58deff4-ba81-3d85-9fcc-8ddebb9143a6
Version Independent ID: f28d7797-d245-a242-2b4a-533ed72acbbb
Content: Deploy an ASP.NET Core container to Azure App Service - Visual Studio (Windows)
Content Source: docs/containers/deploy-app-service.md
Product: visual-studio-windows
Technology: vs-container-tools
GitHub Login: @ghogen
Microsoft Alias: ghogen

@lukepuplett Thanks for the feedback. Your feedback goes well beyond this one page is and is a critique of trends in documentation and in API design that have occurred over many years. I'm sharing this with our engineering team and hope to get a range of responses to this.  I think there's a place for quickstarts and tutorials for people who just want to get something hooked up, but I hear your concern that there still has to be somewhere where you can deconstruct every detail and see how things work under the hood. I'm not sure that should be here in the tools docs, though. There's also the App Service docs and the ASP.NET docs, which should have much more detail on the concepts behind those technologies that you'll need when you go through this scenario.

Thanks for your prompt reply. I'm in the other docs right now.
Techies equipped with a clear understand of how a system works are able to figure out how to get a system into a working state ourselves. This probably means less documentation is needed.
I think it can still be a quick start even with some writing or touching on what's going on. You could have a section titled What just happened? and say that the publishing tool found a Dockerfile and built an image, then somehow got it up to Azure which has Docker running and maps some default ports, or something (I'm making all that up).
In fact, any doc like this could have that section. It'd be so useful.
If I'm being really honest, I'm not convinced that a quick start that doesn't sign-post the reader into finding out how it's working is actually of much use. If the UX in the tooling is good enough, a quick start that scrimps on technical detail is superfluous.
It's funny. Right now, my underfloor heating is broken.  I could easily fix it myself if I only someone had labeled the wires and written down the logic.

@lukepuplett Thanks for the response. I'll leave this open and consider how we can improve the article in some of the ways you suggest.


check account admin correctly

What
fixed helm validation check for user admin role. old code was checking for codefresh-admin, and not account-admin, incorrectly.
Why
the previous helm validation check would fail for all of our customers.
Notes
after this is merged and released - need to update the gitops-helm-chart to use the new release.

renamed branch and pr


NicoMontoya_DS3_Unit1_Sprint3

Your GitHub Pages portfolio is fantastic, you did a wonderful job of personalizing it and it shows your personality as well as your technical aptitude. Awesome work!
You did a really great job on the Tuesday assignment. Your visuals are great and show a lot of information. Box plots are difficult and sometimes arent as easy to understand as other visuals, such as a heatmap. Keep up the great work!

Your Wednesday assignment looks great and your data wrangling, tables, and charts look fantastic. You appear to have a good grasp on the material for this week. I always look forward to checking your assignments, as the detail you work into your assignment is great. I appreciate your hard work and drive to master the material. Keep up the great work!

Your Thursday assignment looks great, your animated chart looks fantastic. Great work on your data cleaning and charts. Keep up the great work!


Update TEST_true and TEST_false

[x] tests are added or updated

Modify the TEST_true and TEST_false macros so they correctly deal with all integral types.

Red crosses from travis and appveyor are relevant and should be addressed.

commit 298f40e in matser.


Modbus Master example was broken by PR #6038

While helping @JorgeGzm to get Modbus Master working on his board we discovered that the mailing example was not working. Then I did some tests with different release versions and discovered it was broken between 10.3 and 11.0!
Then we did a git bisect and discovered that this PR https://github.com/apache/nuttx/pull/6038 was responsible for generating the issue.
Jorge discovered that adding a usleep() before acquiring the semaphore on FreeModbus helped to fix the issue, but we still investigation why that commit cause this issue. Hi @anjiahao1 could you please take a look? Maybe you can have some idea why this issue is happening. If you want to test the Modbus Example, I have a tutorial here: https://www.youtube.com/watch?v=FmJLrG4Ldow

Hi,
Testing the modbus master example: nuttx-apps/examples/modbusmaster/mbmaster_main.c
Whe check, if we add a delay  before call the function eMBMasterReqReadHoldingRegister the problem stop and the the aplication back to work.
printf("Sending %d requests to slave %d\n",
         MBMASTER_REQUESTS_COUNT, SLAVE_ID);

  usleep(1000); // Delay ADD

  /* modbus is initialized and polling thread is running */
  while (reqcounter < MBMASTER_REQUESTS_COUNT)
    {
      g_mbmaster.statistics.reqcount++;
      mberr = eMBMasterReqReadHoldingRegister(SLAVE_ID,
                                              SLAVE_STATUS_REG, 1, 1000);
      if (mberr != MB_MRE_NO_ERR)
        {
          fprintf(stderr, "mbmaster_main: "
                  "ERROR: holding reg %d read failed: %d\n",
                  SLAVE_STATUS_REG, mberr);

          g_mbmaster.statistics.errcount++;
        }

      reqcounter++;
    }

look like eMBMasterPoll can't be called before eMBMasterReqReadHoldingRegister? https://github.com/apache/nuttx/pull/6038 optimize the speed of thread creation, the new thread may run before pthread_create return.


Thank you so much

Not an issue, but I'm just so... overwhelmed. This is amazing. Thank you :pray:

You are welcome! Glad that it helped.


referenced path item cause an error

Problem statement
$ref within path is not resolved properly. Im getting error no operations were selected.  fmt.Println shows that Spec.operations is empty.
Swagger specification
paths:
  "/":
    "$ref": './paths/options.yaml'

Steps to reproduce
Create any spec with referenced path item.
Environment
swagger version: 0.10.0
go version: go version go1.8.1 darwin/amd64
OS: osx

can you try to flatten your spec first to see if that fixes it?
swagger flatten -o swagger.flat.json swagger.json

Yes flattened spec has all operations included. Is such intermediate file recommended way of generation?

I'll make it the default in in the next version. It solves quite a lot of problems
Currently it's a separate operation because it was experimental

Thanks for posting that solution @casualjim - that will work for me in the interim as well


USHIFT-2386: Add option to pull images in configure-vm.sh

Which issue(s) this PR addresses:

Closes #

/assign @pmtk

/label backport-risk-assessed
/label cherry-pick-approved

/lgtm

/label jira/valid-bug

/label staff-eng-approved


fix(#47): prevents duplicate entries in eslintrc

Heyo, :)
This should fix #47. I removed the lines that were causing the duplicates in the ._eslintrc file and moved the jsdoc dev dependency accordingly. Ran the generator locally and it looked ok to me with and without the "codeassist"-option.

thanks for the housekeeping! 🧹


Move nbf and exp verifications after signature verification.

Hi,
I would like to move the signature validation before the check of exp and nbf claims.
I have the following scenario, which I believe is quite common: I sign tokens with an expiration date, but I want my system to be able to refresh them (i.e. re-emit a new one with the data of the old one, but with a later expiration date) if the expiration date was near AND the token passed validation. Currently I can't, because an expiration error will be thrown before the actual validation.
To do that, we need the token to be validated first, and then its expiration checked. People that don't want to use expiration, can just opt-out and not put any exp flag, as usual. This should not change anything for the rest of the users, and allow a new interesting use case.
Please tell me if there is an issue I did not think of.

It looks good. Could you check CI is failing?

Looks like it was a mismatch between the version in package.json and in the code.

LGTM


MODRS-31 - Standard health check endpoint

Updating Jenkins file for #62.

INFO: api-lint: Using api-lint version: 1.0.5
CRITICAL: api-lint: Specified API directory does not exist: ramls

Note: When those ERRORs are fixed, then any INFO and WARNING messages will be gone too. See Jenkins "Artifacts" tab for ApiLintReport.


CAS-287 Capture arson offences and behaviour for MI

This PR CAS-287 include:

Add new fields for arson offences and behaviour (isHistoryOfArsonOffence, isConcerningArsonBehaviour and concerningArsonBehaviour) to CAS3 application to use it later for reports

This ticket is for arson offences and behaviour


is it possible to simulate multiple images at the same time ?

Hi, I just tried the simulator  and it is nice.
but I am wondering whether it is possible to automatically read image folder (multiple images)?
Changing the image path command in the config to read single image  is really cumbersome.
Thank you so much for your help.

Hello,
This is currently not possible. However, writing a script to automate the task is not too difficult.
Attached is an example script that shows how to do that. The script generates planar datasets similar to the ones in this paper: http://rpg.ifi.uzh.ch/docs/arXiv19_Rebecq.pdf .
Example script: generate_synthetic_planar_dataset.zip

Hello, have you got the right script? Thank you!


#1109 breaks route setup/uri parsing

hey, i guess something went wrong with this PR #1109 -> it result in no route will be found
specific: IncommingRequest.php:695-698
im not sure what this change should do (@jim-parry ) but without extracting the URI part the system is unable to find any route -> PageNotFoundException
URI before 695 : /WorkDirectory/PHPPlayground/CodeIgniter4/public/Home
URI after 700 : /WorkDirectory/PHPPlayground/CodeIgniter4/public/Home
excepted : /Home
BaseURL : <IP_ADDRESS>/WorkDirectory/PHPPlayground/CodeIgniter4/public/
$_SERVER[SCRIPT_NAME] : /WorkDirectory/PHPPlayground/CodeIgniter4/public/index.php

Hmm - it looks like I missed or mis-specified one of the unit tests in tests/system/HTTP/IncomeRequestDetectingTest, or that we need additional test methods.
Could you take a peek and see what looks out of whack (expected resutls for a given URI)?
It looks like I specified SCRIPT_NAME as just /index,php, which is not in the BaseURL you mention above.

still not working - could you explain what your last part is trying to do ?
i dont get why the last check is necessary.
-> you dont handle the fail of your last elseif
i use else $uri = (string) substr($uri, strlen(dirname($_SERVER['SCRIPT_NAME']))); after your statement which fixed it for me, but im not sure what is does exactly^^


Move the polygon tools back into their own toolbar.

Now the polygon tools look like this again, after someone (me) moved them to the stroke width toolbar. :)
Note: Tested this on smaller screens, an android device, and multiple browser / os combos on browserstack, in case of any css rendering issues. Seems OK.

Great work as usual!


Error while opening excel

Hi, Just noticed this.
I have loaded the excemple script and just added one row as per script below
include_once 'vendor/autoload.php';

use OpenSpout\Common\Entity\Cell;

$writer = new \OpenSpout\Writer\XLSX\Writer();
$writer->openToBrowser('testcarl.xlsx');
$cells = [
    Cell::fromValue('Carl'),
    Cell::fromValue('is'),
    Cell::fromValue('great!'),
];

$writer->close();`

After i download the file, and try opening in excel, following issue arrise:

I have tested this on PHP 8.1.3 and 8.1.7 clean php versions
Anyone have same issues like this or where do i need to look for changes?
When i reverted back to the original code from Box Sprout it was working correctlly?

Hi, the provided snippet doesn't write any cell, since the $cells variable is not used.

Ow that must have happend when i clean up the code, even with adding the cell it still provides an issue,
Beside that, even when you dont add any cell, it still should not provide that can of error, i mean, i would only get empty workbook
Here is the result even when adding one row:

I'm running Microsoft Office 2021 and with this fixed snipped:
include_once 'vendor/autoload.php';

use OpenSpout\Common\Entity\Cell;

$writer = new \OpenSpout\Writer\XLSX\Writer();
$writer->openToBrowser('testcarl.xlsx');
$writer->addRow(\OpenSpout\Common\Entity\Row::fromValues([
    'Carl',
    'is',
    'great!',
]));

$writer->close();

I don't have any popups after opening the file.
May you report here the log file please?

Did some additional testing, i can see that their are additional dependencies needed betweeen Box spout and open spout, but those are direct from PHP itself, sow i assume that cannot be ther problem.
Also tested this under NGINX linux and windows, same issues happens.
Only thing i can see when open xlsx as zip file is as per below:

Where the left one is not possible to open
banana (1).xlsx
In the mean time i have also setup new vm and tested their the test code and that seems to work.
Sow pretty sure its a config setting on my side, and the bug is not related with the openspout as package.
Only question now is what config issue??? Their goes my saterday working......ugh

Minor update, when i remove xl syles.xml and xl workbook.xml out of the zip archive, and try to open the excel file again, it is working. any idee, or suggestuon where i can look for this?

Which os are you running php onto?

At this moment for testing i user windows 10 with IIS and PHP8.1.7 with latest version of openspout 4.2.6

For today i give up, tomorrow i will test again under NGINX to se if it also happens, but at this moment, still have the issue.

Hi, I guess the culprit is Windows then.
We already had an issue related to it: https://github.com/openspout/openspout/pull/87
Maybe somewhere we are meeting the directory separator char

Hello,
I have same problem on Windows 10 using xampp with PHP 8.1.6 and Laravel 8.
$writer = new \OpenSpout\Writer\XLSX\Writer(); $writer->openToBrowser('test.xlsx'); $writer->addRow(\OpenSpout\Common\Entity\Row::fromValues(['foo', 'bar', 'baz'])); $writer->close();

Hi,
I had same problem using example in docs with Windows 10 with xampp, PHP 8.1.6 and Laravel 8.
$writer = new \OpenSpout\Writer\XLSX\Writer();
$writer->openToBrowser('test.xlsx');
$writer->addRow(\OpenSpout\Common\Entity\Row::fromValues(['foo', 'bar', 'baz']));
$writer->close();

Hey, I have the same problem (Windows 11, plain PHP 8.1.2 through Symfony local server, openspout/openspout 4.6.2).
I patched the src/Writer/Common/Helper/ZipHelper.php according to the change in #87 and that fixes the problem for me. Can confirm that the zip file created by the patched helper doesn't contain those weird named files on root anymore and Excel opens the file without complaining.

I've released #87 in v4.7.0, please confirm this bug is gone so we can close the issue

I've released #87 in v4.7.0, please confirm this bug is gone so we can close the issue

I upgraded to v4.7.0 and problem was solved. Thanks.


⚠ ClamAV has degraded performance

In 4066d6b, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 193 ms

Resolved: ClamAV performance has improved in d20e73a after 13 minutes.


[Edge WebDriver Docs Feedback]

Is there a way to sync webdriver versions with Edge verison, please? Updating it manually each month (or each week in the DEV Edge channel) is untenable for my customer. Also, what is the impact if the version isn't in sync, e.g. Edge is on version 101 and Webdriver is on version 99? Thanks.

This is a known issue which impacts both ChromeDriver and EdgeDriver. The feature request to automatically update EdgeDriver is tracked with https://github.com/MicrosoftEdge/EdgeWebDriver/issues/2
The customer can also consider using https://bonigarcia.dev/webdrivermanager/ which automatically fetches the appropriate driver for any installed browser, including Microsoft Edge.

Thank you Brandon. Closing this issue knowing that there is no doc changes to be made, and that there's already another tracking issue on the EdgeWebDriver repo.


unexpected closure

Description
What steps will reproduce the problem?

The Spyder just hangs and closes automatically while i am working on it and code bcomes a little longer
Traceback
  File "C:\Users\s.gaur\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\editor\panels\debugger.py", line 122, in mouseMoveEvent
    event)
  File "C:\Users\s.gaur\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\editor\widgets\codeeditor.py", line 1598, in get_linenumber_from_mouse_event
    scope = FoldScope(block)
  File "C:\Users\s.gaur\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\editor\utils\folding.py", line 69, in __init__
    raise ValueError('Not a fold trigger')
ValueError: Not a fold trigger

Versions

Spyder version: 4.0.0b4
Python version: 3.7.3
Qt version: 5.9.6
PyQt5 version: 5.9.2
Operating System: Windows 10

Dependencies
pygments >=2.0    :  2.3.1 (OK)
qdarkstyle >=2.6.4:  2.7 (OK)
sphinx >=0.6.6    :  1.8.5 (OK)
pyls >=0.27.0     :  0.28.0 (OK)
nbconvert >=4.0   :  5.4.1 (OK)
pandas >=0.13.1   :  0.23.4 (OK)
numpy >=1.7       :  1.16.2 (OK)
sympy >=0.7.3     :  1.3 (OK)
cython >=0.21     :  0.29.6 (OK)
qtconsole >=4.5.2 :  4.5.2 (OK)
IPython >=4.0     :  7.4.0 (OK)
matplotlib >=2.0.0:  3.0.3 (OK)
pylint >=0.25     :  2.3.1 (OK)

Please post a simple code example that generates this error when you try to fold it. Otherwise we can't fix this error, sorry.

Experiencing the same issue, latest 3.x version, quit suddenly frequently. Annoying.

@craigmau, version 3.x does't have folding.

Closing due to lack of response.

@craigmau, version 3.x does't have folding.

I don't know what reason. But it crashes suddenly and quite frequently.


LUIS not App Insights

Update to use LUIS and not app insights when creating the service instance
Also it is now called Language Understanding and not Azure Language Understanding in the Azure portal

Thanks @DrNeil!


Add YT videos in laughing therapy

I want to work on tis by adding great memes, comedy videos, and many more.
kindly @Susmita-Dey assign me this issue!!

@vedsom Many things can be improved in that page. I have some yt videos link. Need to add them there.

@vedsom Many things can be improved in that page. I have some yt videos link. Need to add them there.

@Susmita-Dey  Yaa i can do it.

@vedsom You'll make a section of videos and just embed those videos. Okay?

@vedsom You'll make a section of videos and just embed those videos. Okay?

@Susmita-Dey yaa cool!! Should I add videos myself or you will provide them?

I'll share you the YT links soon, till then start making the section and add some comedy videos that will help people to laugh a lot and forget their stress. Some unique ones are there which I'll be sharing you by tonight here.

I'll share you the YT links soon, till then start making the section and add some comedy videos that will help people to laugh a lot and forget their stress. Some unique ones are there which I'll be sharing you by tonight here.

@Susmita-Dey  Ok 👍


Cannot create relationship when adding new table to schema

I have the schema below for  an init migration:
model User {
      id          String      @id @default(cuid()) @unique
      email       String      @unique
      birthday    DateTime?
      firstName   String?
      soundbokses Soundboks[] @relation
      orders      Order[]     @relation
      createdAt   DateTime    @default(now())
      updatedAt   DateTime    @updatedAt
    }

    model Product {
      id           String   @id @default(cuid())
      teamId       String
      serialNumber String
      user         User?    @relation
      createdAt    DateTime @default(now())
      updatedAt    DateTime @updatedAt
    }

I then realize that an Order model is needed, so added more in the Prisma Schema:
    model Order {
      id        String   @id @default(cuid()) @unique
      price     Int
      currency  String
      status    Boolean
      user      User?    @relation
      createdAt DateTime @default(now())
      updatedAt DateTime @updatedAt
    }

After, running prisma2 lift save --name 'create-order-table' works. However, when I run prisma2 lift up return following error.

You don't need the relation directive if you don't want to name the relation. It will be implicitly added and the current usage of it is incorrect.
I think we need to validate this more properly in our parser. Marking this as a bug for now.

You don't need the relation directive if you don't want to name the relation

Yep, but it won't create a Foreign Key constraint if I don't specify @relation directive according to the SQL in Readme.md.
Furthermore, I notice that in the SQL syntax ALTER TABLE "public"."Order" ADD COLUMN "user" text   REFERENCES "public"."User"("id") ON DELETE SET NULL;, Prisma 2 use REFERENCE keyword to alter the table. I haven't used it before, normally use FOREIGN KEY (user) REFERENCES users (id)  to set Foreign Key in Postgres. Seems like it serves the same purpose. Could you confirm it?

It does create the foreign key. REFERENCES is just a shorthand for FOREIGN KEY (user) REFERENCES users (id) in SQL. See https://stackoverflow.com/questions/8595695/what-is-difference-between-foreign-key-and-reference-key


python311Packages.private-gpt: 0.5.0 -> 0.6.2

Description of changes
This PR updates and fixes python311Packages.private-gpt

python311Packages.private-gpt: 0.5.0 -> 0.6.2
python311Packages.private-gpt: add GaetanLepage as maintainer

Changelog: https://github.com/zylon-ai/private-gpt/blob/v0.6.2/CHANGELOG.md
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 340469 run on aarch64-darwin 1

2 packages marked as broken and skipped:

python311Packages.private-gpt
python311Packages.private-gpt.dist

Result of nixpkgs-review pr 340469 run on x86_64-darwin 1

2 packages marked as broken and skipped:

python311Packages.private-gpt
python311Packages.private-gpt.dist

Result of nixpkgs-review pr 340469 run on x86_64-linux 1

2 packages built:

python311Packages.private-gpt
python311Packages.private-gpt.dist

Result of nixpkgs-review pr 340469 run on aarch64-linux 1

2 packages marked as broken and skipped:

python311Packages.private-gpt
python311Packages.private-gpt.dist


WearNavScaffold broken after compose 1.0.0-rc01

https://user-images.githubusercontent.com/231923/174258979-52f8811b-50ef-4f0a-a948-63bc7edc67f1.mov

the difference appears to be that we don't receive state updates from scrollState.centerItemIndex and scrollState.centerItemScrollOffset the first time we display them. However if you navigate away and then back the updates are fired.
If I put some logging into Modifier.fadeAwayScalingLazyList state, I don't see state fired events, but a simple launched effect polling every 2 seconds does show the right values. And they both see the same list state instance.
@ExperimentalHorologistComposeLayoutApi
public fun Modifier.fadeAwayScalingLazyList(
    initialIndex: Int = 1,
    initialOffset: Int = 0,
    scrollStateFn: () -> ScalingLazyListState,
): Modifier =
    composed {
        val scrollState = remember { scrollStateFn() }

        val centerItemIndex = scrollState.centerItemIndex
        val centerItemScrollOffset = scrollState.centerItemScrollOffset

        LaunchedEffect(Unit) {
            while (true) {
                delay(2.seconds)
                println("Manual: ${scrollState.centerItemScrollOffset} ${scrollState.centerItemIndex} $scrollState")
            }
        }

        SideEffect {
            println("State: $centerItemScrollOffset $centerItemIndex $scrollState")
        }

Is this workaround still required given this issue has been fixed?

Let me check. Thanks!

I think that code is still an improvement, specifically this should cut down on recomposes.
        val isInitial by remember(scrollState) {
            derivedStateOf { scrollState.centerItemIndex == initialIndex }
        }


Home Assistant 0.93.0b2 start Error

Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 349, in _async_add_entity,
'Invalid entity id: {}'.format(entity.entity_id)),
homeassistant.exceptions.HomeAssistantError: Invalid entity id: sensor.broadlink_s1c_壁挂红外探测器,
2019-05-30 06:46:21 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 349, in _async_add_entity,
'Invalid entity id: {}'.format(entity.entity_id)),
homeassistant.exceptions.HomeAssistantError: Invalid entity id: sensor.broadlink_s1c_遥控器,
2019-05-30 06:46:21 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 349, in _async_add_entity,
'Invalid entity id: {}'.format(entity.entity_id)),
homeassistant.exceptions.HomeAssistantError: Invalid entity id: sensor.broadlink_s1c_门磁,

Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 349, in _async_add_entity,
'Invalid entity id: {}'.format(entity.entity_id)),
homeassistant.exceptions.HomeAssistantError: Invalid entity id: sensor.broadlink_s1c_壁挂红外探测器,
2019-05-30 06:46:21 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 349, in _async_add_entity,
'Invalid entity id: {}'.format(entity.entity_id)),
homeassistant.exceptions.HomeAssistantError: Invalid entity id: sensor.broadlink_s1c_遥控器,
2019-05-30 06:46:21 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 349, in _async_add_entity,
'Invalid entity id: {}'.format(entity.entity_id)),
homeassistant.exceptions.HomeAssistantError: Invalid entity id: sensor.broadlink_s1c_门磁,


Better to use go get -u to update deps

I've already had a viper in my GOPATH, but out of date. It's better to use go get -u.

Hi, @ignatov,  thanks for the interest on the project.
go get -u ./... would complain that the currently generated project is not under version control.


Maven Dependency Check - Redirect External URL to Artifactory

Hi,
I am currently investigating the dependency check plugin usage and we are using "Artifactory Maven 3" jenkins plugin for our maven build and security scans. We tried to use "Invoke dependency check" but it seems that Dependency Check is identifying vulnerabilities with JARs of Artifactory cache which comes as part of "Artifactory Maven 3" plugin and those are not part of source code
I read posts regarding the usage of dependency check for maven and best practice suggested is to use dependency-check-maven instead of the generic one. Hence, I just included a maven goal in my run with "org.owasp:dependency-check-maven:check" and I can see that latest version of the plugin is downloaded but scan doesn't get completed successfully due to Sonatype URL connectivity.
We modified the URL for NIST data feed to our artifactory and it is able to download them for processing. However, we have hit roadblock with Sonatype Analyzer and below is the error observed with 5.3.2 and 6.3.1
14:12:40 [pool-12-thread-1] DEBUG org.owasp.dependencycheck.utils.SSLSocketFactoryEx - TLSv1.2
14:12:40 [pool-12-thread-1] DEBUG org.owasp.dependencycheck.utils.SSLSocketFactoryEx - TLSv1.3
14:12:40 [pool-12-thread-1] DEBUG org.sonatype.ossindex.service.client.transport.HttpUrlConnectionTransport - Connecting to: https://ossindex.sonatype.org/api/v3/component-report
14:12:40 [pool-12-thread-1] DEBUG org.owasp.dependencycheck.analyzer.OssIndexAnalyzer - Error requesting component reports

There are a couple of analyzers in DependencyCheck that expect internet access. Among those is the Sonatype OSSIndexAnalyzer.
If your environment does not allow for proxied access to internet you should disable those analyzers in the maven configuration.

Then scroll back to the full stacktrace for the error you posted. If it's not in enable exceptionstracktrace in maven in addition to the debug logging in the maven commandline (add -e). Do you run into a SSL certificate trust issue? Or is it another exception?