No return value when failing to talk to the RTC

If the arduino boots up and the RTC is not connected, it will not return error values for some parameters such as date and time.
A simple fix is to add the following lines of code in every method:
if (!Wire.available())
{
    return 99; // Some obvious error value
}

For example in the getSecond() method:
byte DS3231::getSecond() {
    Wire.beginTransmission(CLOCK_ADDRESS);
    Wire.write(0x00);
    Wire.endTransmission();
    Wire.requestFrom(CLOCK_ADDRESS, 1);

        if (!Wire.available())
        {
            return 99; // Some obvious error value
        }

    return bcdToDec(Wire.read());
}

@awickert , @YHatahet Yes, the "Get" and "Set" functions generally do not report I2C communications errors. There might be one that does; if so I have forgotten which one.
What would steps should we take so that code writers may verify communications with the DS3231? I can think of three approaches:
Approach #1.
Add a new function, byte DS3231::responsive(). It would perform a "get" on some register, then return Wire.available() .  Comment: this would provide an overarching mechanism to detect the status of a DS3231 I2C connection. Programs could use it thus:
if (myRTC.responsive()) {
   // make connection-critical calls to the DS3231
}

Approach #2
Individually add a test for Wire.available() to each and all functions that use I2C, return some suitable value as an error indicator in lieu of the anticipated value, and instruct Library users to consider testing for the error values in their code.
Comment: this approach would be more work for both the developers and the users compared to approach #1. Also, the error codes would add considerable complexity to the RTClib::now() function.
Approach #3
Overload the functions that use I2C. Supply alternative versions that add a reference to boolean variable where an error indication can be placed. Example:
byte DS3231::getSecond( bool& i2cResponsive) {
	_Wire.beginTransmission(CLOCK_ADDRESS);
	_Wire.write(0x00);
	_Wire.endTransmission();

	_Wire.requestFrom(CLOCK_ADDRESS, 1);
        i2cResponsive = Wire.available() ? true : false;
	return bcdToDec(_Wire.read());
}

Comment: approach #3 would be more work for developers and documentation writers. However -- a Good Thing -- it would be just as easy for program writers as approach #1. And it would avoid having to revise RTClib::now(). See the example below.
bool i2cAvailable

byte foo = getSecond(i2cAvailable);
if (i2cAvailable) {
   uint32_t timeNow = RTClib::now();
}

Approach #3 looks like the most thorough anbd user-friendly alternative to me. It's just going to be a lot of work.
At the time of writing, mid-September 2022, I have some non-tech projects to finish. I would be glad to put either approach #1 or #3 on my ToDo list for later this year, if you would kindly indicate which approach you would prefer.

Hmm... Markdown transformed my numbering of approaches in that previous post. It turned the numbers into links for unrelated content. When you read it, please disregard the links.


luaPackages.lz.n: 2.0.0 -> 2.2.0

Description of changes

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 336719 run on x86_64-linux 1

6 packages built:

lua51Packages.lz-n
lua52Packages.lz-n
lua53Packages.lz-n
lua54Packages.lz-n
luajitPackages.lz-n
vimPlugins.lz-n

Could you update the sha256 attributes by hash?

Those are generated.

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

6 packages built:

lua51Packages.lz-n
luaPackages.lz-n (lua52Packages.lz-n)
lua53Packages.lz-n
lua54Packages.lz-n
luajitPackages.lz-n
vimPlugins.lz-n

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

6 packages built:

lua51Packages.lz-n
luaPackages.lz-n (lua52Packages.lz-n)
lua53Packages.lz-n
lua54Packages.lz-n
luajitPackages.lz-n
vimPlugins.lz-n

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

6 packages built:

lua51Packages.lz-n
luaPackages.lz-n (lua52Packages.lz-n)
lua53Packages.lz-n
lua54Packages.lz-n
luajitPackages.lz-n
vimPlugins.lz-n

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

6 packages built:

lua51Packages.lz-n
luaPackages.lz-n (lua52Packages.lz-n)
lua53Packages.lz-n
lua54Packages.lz-n
luajitPackages.lz-n
vimPlugins.lz-n


Getting CORS errors

Hey @dfoxg, thanks for sharing amazing work!

I've deployed your repo here after replacing URLs with our own account.freshes.ca but it's showing CORS errors.
FYI, we're using Ory Kratos cloud, not running a local instance of Kratos.
Do you have any idea why? We added client.freshes.ca in the allowed URLs as well in Ory account.
Looking forward to hearing back from you soon!
Thanks,

Hi @zootopialover,
thanks for using the software!
Your API isn´t sending any CORS-Headers:

Please check your config, maybe cloudflare removes the headers.


add kerberos into server distribution

Currently kerberos auth is not placed into server distribution.
It would be good to add kerberos into server distribution, so user could use it in server distribution directly.

@jiazhai the license file needs to be updated (even for our own jars added)

rerun java8 tests

@jiazhai the license file needs to be updated (even for our own jars added)
Thanks  @merlimat for the comments,
checked by command src/check-binary-license ./distribution/server/target/apache-pulsar-2.4.0-SNAPSHOT-bin.tar.gz, and it is no error reported.
also checked mvn dependency:tree, all the related jar is already in file distribution/server/src/assemble/LICENSE.bin.txt


Make task descriptions consistent

Most of task descriptions are already in third person. I propose to make this a rule.
Task descriptions are noticeable by users. Looking at gradle tasks output I'm annoyed that some tasks are out of line.
Signed-off-by: Basil Peace<EMAIL_ADDRESS>

Usage of definitive article is also inconsistent:
compileGroovy - Compiles the main Groovy source.
compileJava - Compiles main Java source.

I believe the article should not be used before names.
If you believe the opposite then we should fix compileJava description instead.

Thanks @grv87 !

@blindpirate, is there something wrong so that you reverted the commit?

@grv87 Yes, I made a mistake - I should have started a CI job to verify this PR. After this PR  was merged, there're several failures on our CI so I reverted to avoid blocking other one's job. I'll try to redo it in a few days.


Refactored Client, RedirectURI types + prism fixes

Client state must be nonempty, it's prism allowed it to be.
ClientState and ClientDetails are now in their own file along with their
instances.
RedirectURI and its instances have been moved to Types/Common.hs
Added missing documentation and references to RFC for said types.

Seems like there should be more haddock-y comments.

I'll go through and haddock-ify all the stuff tomorrow


Password strength check

Hello again!
I would suggest another important improvement is lacking in yii2-user: password strength check.
I suggest the following regex: ^\S*(?=\S{6,})(?=\S*[a-z])(?=\S*[A-Z])(?=\S*[\d])\S*$
(?=\S{6,}) = at least length 6
(?=\S*[a-z]) = containing at least one lowercase letter
(?=\S*[A-Z]) = and at least one uppercase letter
(?=\S*[\d]) = and at least one number
Your project is growing and becoming popular. Congratulations!
I believe it would be good to have these default rules, but with configurable parameters.

Hello,
First of all, thank you for congratulations.
I don't like the idea when website makes user to create password that user don't want. I mean everyone is responsible himself for the security of his account, and if user want to have weak password, he should be able to have it. And it really annoys me when the website shows me a message, which says "Password should have at least 1 digit, 1 lowercase, 1 uppercase, special symbols and a couple of hieroglyphs". So I want Yii2-user to be free of these rules.
BTW these rules can be added to the guide as a "How to" article.
BTW2 I'm thinking on how to make validation rules more centralized and configurable. At the moment developer should override model and then override full rules method with copy-pasting validation rules from parent model. In my opinion it should be much easier. But at the moment I don't know how this can be implemented to be simple and easy to do.


Remove parallax effect from hero screen on mobile.

Note : This issue will only be assigned to beginners.
If you have previously contributed to open source, or have experience, please filter out the issues tagged with "good first issue" and "beginner friendly".
Context
On the Hero section of the Codú site, there is a parallex effect on the image. When we hover our mouse on the page the spaceman moves relative to the moon.
This works as intended on desktop, however on mobile, the input is being captured, preventing the user from scrolling down the page.
Expected Behavior
On mobile devices, disable the parallax effect and display the hero section as a static image.
Screenshots

Additional info
Provide any additional information here

@NiallJoeMaher  can you assign me?

Open in case anyone wants to grab it!

Hey @NiallJoeMaher Can I start working  on this project

Hey @Stranger1298
I assigned you

@Stranger1298 are you still working on this?


Documentation Correction: Missing Trailing Slash in aws-parameterstore Path

Type: Bug
Component:

Parameter Store
Describe the bug
There is a discrepancy in the Spring Cloud AWS documentation regarding the configuration of the aws-parameterstore path. The documentation specifies the path as aws-parameterstore:/config/spring, but in practice, the path must include a trailing slash (aws-parameterstore:/config/spring/) to correctly load parameters into Spring’s environment properties.
This issue occurs when using application.yml, but it is likely to affect application.properties as well.
Version Information:

Spring Cloud AWS Version: 3.0.0

Steps to Reproduce:

Follow the Documentation Example:

Add the following property to application.yml:spring:
  config:
    import: aws-parameterstore:/config/spring

Assume parameters in Parameter Store are stored under /config/spring:/config/spring/message = Welcome
/config/spring/httpUrl = external-service:3030/

Attempt to Use Properties in application.yml:
message: ${message}
httpUrl: ${httpUrl}

Run the Application:

Observe that ${message} and ${httpUrl} are not resolved as expected.
Expected Behavior:
When the spring.config.import property is set the parameters should be correctly loaded and available for use in application.yml or application.properties as ${message} and ${httpUrl}.
Actual Behavior:
Without the trailing slash (aws-parameterstore:/config/spring), the parameters are not correctly loaded into the Spring environment, leading to unresolved placeholders in the configuration.
Suggested Fix:
Update the documentation to include a trailing slash in the aws-parameterstore path example. The corrected snippet should be:
spring.config.import=aws-parameterstore:/config/spring/
Updated Documentation Example:
To fetch parameters from Parameter Store and add them to Spring’s environment properties, add the spring.config.import property to application.properties or application.yml.
For example, assuming that the parameters in Parameter Store are stored under the path /config/spring/:

Parameter Name
Parameter Value

/config/spring/message
Welcome

/config/spring/httpUrl
external-service:3030/

Once the spring.config.import statement is added:
spring.config.import=aws-parameterstore:/config/spring/
Two parameters are added to the environment: message and httpUrl, which can be accessed in application.yml as ${message} and ${httpUrl} respectively.

This is duplicate of https://github.com/awspring/spring-cloud-aws/issues/1058. Also this is fixed in documentations greater that 3.1.0 versions.


Disabling running rst tutorial generation during tox -edocs.

What is the expected behavior?
Now we are generating jupyter tutorials from rst files, which is good for detecting outdated code or lint error, however it is heavy overhead for checking the docs locally. It often reruns heavy tutorials and roughly takes ~10 mins. It would be great if we have some tox option that runs docs without generating tutorials.

Depending on how the tutorials are built this is easy to do. If you're using nbsphinx to execute a notebook you can use an env variable in the conf.py to change the build behavior. We do this in the metapackage docs builds: https://github.com/Qiskit/qiskit/blob/master/docs/conf.py#L129 and we set that always when we build the docs for publishing: https://github.com/Qiskit/qiskit/blob/master/.github/workflows/docs.yml#L48
We can do something similar here but we want to make sure it's set to always in docs job ci.


[CI/CD] Sudden failure on CI with gradle build but local build always pass

Our CI didn't have issue before, this is a sudden failure which may be related to github action or some dependencies.
It's blocking CI of PRs to pass
I re-run the CI which passed before, but fails now with no code changes https://github.com/opensearch-project/notifications/runs/3210056691
Logs: logs_428.zip

Some crucial error log line
It appears as if your JDK does not supply a working agent attachment mechanism.

Tried the following fix from searching the internet. But unfortunately none of them work

Add the gradle param to in gradle task testtest {
      useJUnitPlatform()
      jvmArgs '-XX:+StartAttachListener'

      ...
}

Explicity add the byteBuddyAgent jar as test dependency
chmod +x /opt/hostedtoolcache/jdk/14.0.2/x64/bin/java


OpenCL support on WSL

These blogposts: 1, 2 from months ago suggest that OpenCL and OpenGL support will come to WSL via mapping layer on DX12. I just tested out OpenGL and it seems to work fine (albeit an old version), however, I also tried to test OpenCL (with clinfo), but it shows "Number of platforms 0". Is OpenCL not supported yet or is this not normal?
I am running the latest dev preview version of Windows (10.0.21277.1000, build 21277.1000), and Ubuntu 20.04 on WSL with kernel version 5.4.72-microsoft-standard-WSL2.

Hi, did you get any new info about opencl?

Hi, is there any update on OpenCL compatibility?

forward /dupe to #6951 which is more recent WSL2 with WSLg and includes some logging.


Merge pull request #1 from erikras/master

I sometimes get the PR stuff backwards, too. :smile: No worries.

Hehe, sorry, I didn't want to mess around with the master (which is you) :-) Congrats for this beautiful codebase – very inspiring and instructive. Thanks a lot!)


No ability to use helper outside template (i.e. in route or component)

I'd like to use svg-jar for all svg purposes.
Can you make the helper available outside just templates

Can you please give me an example how would you use it in your routes or components?

    ...
    var textDiv = document.createElement('div');
    textDiv.innerHTML = "<div>..." + svgJar("logo") + "...</div>";
    ...
    widget.options = {
        text: textDiv
    };
    ...

you can now add it to a route using something like:

import { svgJar } from '../helpers/svg-jar';


XML parsing: handling of TYPE_DYNAMIC_REFERENCE entries

A first attempt to fix #919
In the end TYPE_DYNAMIC_REFERENCE seem to work identical to TYPE_REFERENCE. Not sure if Jadx already resolves those resources and therefore we don't have to make a difference...
The type TYPE_DYNAMIC_ATTRIBUTE has been added, but resources of that type can't be processed yet. An example APK would be helpful for this type.

@jpstotz thanks!


Feat: Block Client Side C2 Requests by Managing a hashed C2 Request Blocklist

Explanation
This PR implements new logic to manage a Command and Control (C2) request blocklist within the Phishing Controller. It introduces updates to both the PhishingController and PhishingDetector to efficiently handle and validate URLs against a hashed request blocklist.
Solution
The proposed changes add a requestBlocklist to the Phishing Controller and Phishing Detector. This includes methods for updating the blocklist, checking if a request URL's domain is blocked, and incorporating these checks into the existing phishing detection workflow. This ensures that any requests to known malicious C2 domains are identified and blocked.
Notable Changes
Introduction of requestBlocklist to list types.
Implementation of isBlockedRequest in PhishingController.
Update to #updateStalelist to fetch and include the request blocklist.
Addition of isMaliciousRequestDomain in PhishingDetector for URL validation against the blocklist.
Changelog
@metamask/phishing-controller

ADDED: requestBlocklist type to ListTypes.
ADDED: isBlockedRequest method to PhishingController.
ADDED: Logic to update and check requestBlocklist in #updateStalelist.
ADDED: isMaliciousRequestDomain method to PhishingDetector.
ADDED: Handling of requestBlocklist in PhishingDetector configuration.
ADDED: sha256 and toHex imports from ethereum-cryptography.
ADDED: sha256Hash function to generate SHA-256 hash of a domain.

@metamaskbot publish-preview


Test SASI hard drive support

After re-adding SASI hard drive support this has so far only been tested with an Atari and a tweaked Atari SCSI driver version. Since the Atari usually speaks SCSI these tests only have a limited value.
Help with testing with a more realistic SASI setup is appreciated.

@hlide @wohali In https://github.com/PiSCSI/piscsi/issues/809 you expressed interest in SASI being supported again for the PiSCSI/RaSCSI port. In the new SCSI2Pi project I re-added SASI support and cleaned up the respective codebase.
I would appreciate your help with testing.

@uweseimet Hey there! I'd love to help, but I'm currently unable to get to the machines in question until at least early January. I'll set a reminder to look into this then.

@wohali Good news, thank you for your feedback! Please get back to me when you are ready.

Hi @uweseimet , I literally just got my replacement PiSCSI HW yesterday. Let me get it together and try and run a vintage SASI system. It'll be no sooner than this weekend.

I need to have a look at the setup but I have a colleague's Acorn Winchester drive on the bench (bad Winchester disk) so may be able to do a quick test. Same problem as Wohali though, I won't be able to do it until the weekend.
That'd be the Winchester drive and host adapter in an Acorn BBC Master 128. I think the standard controller is an Adaptec ACB, possibly an ACB4000

@philpem Sounds good. Please use the current SCSI2Pi 2.0 release or the develop branch for testing.

hi @uweseimet - just letting you know this is not forgotten, physically moving the system to somewhere i can test it easily requires assistance and that didn't happen this weekend. I'm hoping early this week.
I have my PiSCSI assembled and will use the develop branch for testing.

Looks is if there is no serious interest in SASI support. Serious interest means that somebody tests the existing code and reports issues until they are fixed.
Note that if in the future nobody is seriously testing SASI I am going to remove SASI support for good.

@uweseimet Uwe, I appreciate all your hard work.
For me, real life must come first. I am quite old, have had illnesses, and can no longer carry heavy equipment. The individual I need to help me carry things has not been available for weeks now, due to situations out of their control. I, too, have been dealing with serious illness that required hospitalisation - but that is not within the scope of this request.
Do what you must with the code, but please, do not get angry with me. I feel your frustration, but your anger is misplaced. My ability to test this functionality largely remains out of my control as well.

There was more than Atari that used SASI, it was popular since its introduction for 68000-based minicomputer systems, as well as the Apple II "Sider" hard disk system as well as other Xebec stuff. I think the X68000 and PC-98 also used it. It'd be worthwhile to ping those communities to see whether anyone can help test. (I should have at least one 68000-based mini that uses SASI.)

Uwe, I understand your frustrations, but I have similar issues to Wohali. A busy day-job, and a lack of free space due to an ongoing spare-time task.
The Winchester I have here is the later version with an ACB4000 bridge board, not the earlier Xebec. The Adaptec documentation calls it SCSI. The Acorn documentation uses both terms. So I'm not sure whether it would truly be a SASI test.
The only other machine I have which may be SASI is an ACT/Sirius (Victor 9000) with the hard drive option, but it needs the power supply and floppy drives repairing before I can use it to test SASI.
Some helpful documents I found while I was just looking this up...
SASI spec: http://bitsavers.trailing-edge.com/pdf/shugart/SASI/SASI_Design_Specifications_Rev_F_198210.pdf
ACB4000 manual: http://bitsavers.trailing-edge.com/pdf/adaptec/ACB-4000/ACB_4000_and_5000_Disk_Controllers_OEM_Manual_Preliminary_May83.pdf

I am not frustrated or angry, but it's a sad that once again, just like with PiSCSI, interest in SASI is claimed, but effectively nobody is testing/using it. Before being dropped from PiSCSI about 1 1/2 years ago, SASI had not been working anymore for several months (it immediately crashed) but nobody noticed. When you look at the SASI-related PiSCSI tickets, nobody appears to have been using SASI with PiSCSI for at least 2 years.
Nevertheless I added SASI support to SCSI2Pi, also as a proof of concept. I contacted all users (I think) who had expressed their interest in the PiSCSI SASI reactivation. But history seems to repeat itself: Interest in SASI is claimed but nobody (for various reasons) uses it.
I am not going to remove SASI support today, but if there is nobody using/testing SASI in the next couple of months it does not make sense to keep the code in the repository. Any code that is not used means more maintainance work, makes the binaries bigger etc. And it is no fun to deal with software that is not being used ;-).
Regarding SASI and the Atari: SASI is not relevant for Atari computers. Usually SCSI, IDE/SATA and nowadays even USB drives are used with these machines. The first hard drives offered by Atari for the ST series (SH and Megafile drives) used Adaptec controllers. But soon adapters for SCSI drives became state of the art. Atari themselves started using SCSI drives with the MegaSTE and TT. The TT and Falcon030 have fully-featured SCSI hardware based on the NCR 5380 SCSI controller.

@philpem Thank you for your document links. Some information was new to me, and most likely it will help me to merge some of the SASI and SCSI controller code, which will reduce the overhead of supporting SASI.

Ok, I have an X68000 PRO II with PhantomX to help me to configure it. have only the original RaSCSI board but I guess it is supposed to work with PiSCSI firmware, right? I must check whether the SCSI cable I have for a real SCSI CDROM device is fully compatible. And check how to install all that stuff.

@hlide Regarding SCSI2Pi, you either need a STANDARD or a FULLSPEC board. Other board flavors are not supported anymore.

The cable is not the right one :(.  I must buy one.

I does not make sense to keep this ticket open any longer. I am not aware of bugs, nobody has reported a bug, let's just asume everything is fine ;-).


Fix: Deployment to non-default region, Missing variables in .env, SQL lambda port fix for security group

… query executor lambda security group port number fix to 3306
Issue #, if available:
Description of changes:
Fix: Deployment to non-default region, Missing variables in .env, SQL lambda port fix for security group
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@dineshSajwan could you have a look at this one please ? thanks !


Enhance metrics for Azure Spring Event Hubs

Spring Event Hubs metrics components:
Prefix: eventhubs.

Metric Name
Type
Tag
Description

connection.active
Gauge
eh namespace
The number of active connection.

connection.opened
Gauge
eh namespace
The number of open connection.

connection.closed
Gauge
eh namespace
The number of closed connection.

requests
Timer
eh namespace
Requests sent by client.

response.successes
Timer
eh namespace
Successful responses received.

response.errors
Timer
eh namespace
Errored responses received.

request.queue.latency
Timer
eh namespace
Average request queue latency waiting for request to be sent to broker.

request.queue.count
Timer
eh namespace
Number of requests in queue waiting to be sent to broker.

request.rtt
Timer
eh namespace
Average request latency / round-trip-time to broker and back.

consumer.poll.latency
Timer
eh namespace
The time it takes poll() to return a new message to the application.

For the SCS binder:
Prefix: spring.cloud.stream.binder.eventhubs.

Metric Name
Type
Tag
Description

offset
Gauge
EventHub, ConsumerGroup
Unconsumed messages for a particular group and event hub

Reference of Kafka: https://cwiki.apache.org/confluence/display/KAFKA/KIP-714:+Client+metrics+and+observability#KIP714:Clientmetricsandobservability-Clientmetricsandmetriclabels

https://cwiki.apache.org/confluence/display/KAFKA/KIP-714:+Client+metrics+and+observability#KIP714:Clientmetricsandobservability-Clientmetricsandmetriclabels
Prefix: eventhubs.

Metric Name
Type
Tag
Description

connection.active
Gauge
eh namespace
The number of active connection.

connection.opened
Gauge
eh namespace
The number of open connection.

connection.closed
Gauge
eh namespace
The number of closed connection.

requests
Timer
eh namespace
Requests sent by client.

response.successes
Timer
eh namespace
Successful responses received.

response.errors
Timer
eh namespace
Errored responses received.

request.queue.latency
Timer
eh namespace
Average request queue latency waiting for request to be sent to broker.

request.queue.count
Timer
eh namespace
Number of requests in queue waiting to be sent to broker.

request.rtt
Timer
eh namespace
Average request latency / round-trip-time to broker and back.

consumer.poll.latency
Timer
eh namespace
The time it takes poll() to return a new message to the application.

For the SCS binder:
Prefix: spring.cloud.stream.binder.eventhubs.

Metric Name
Type
Tag
Description

offset
Gauge
EventHub, ConsumerGroup
Unconsumed messages for a particular group and event hub

Link https://github.com/Azure/azure-sdk-for-java/issues/19391

Hey @saragluna
How do you plan to compute offset? Will those metrics be available to non Spring users? (i.e. sdk compute metrics and Azure Spring Event Hubs bind them to Spring / Micrometer)

@cykl here's the issue used to track supporting metrics in AMQP libraries https://github.com/Azure/azure-sdk-for-java/issues/25605.


Huge CPU usage

Hi,
I am using hot reloading provided by webpack and then sbt-revolver to watch for changes in my Scala.JS source. I've tried to mitigate obvious sources of slowdown, by limiting polling and ensuring nothing in the target folder is watched (since there are tons of npm modules):
    // during hot reloading poll for changes every 5 seconds
    pollInterval := 5.seconds,
    // do not reload due to changes within less than 10 seconds
    watchAntiEntropy := 10.seconds,
    // do not watch the target directory as the many node packages will slow the CPU down
    watchSources := watchSources.value.filterNot(_.base.getPath.contains("target")),

Are there are any other settings to more aggressively limit cpu-intensive operations during a hot reload?
Would simply turning off all file watching be cheap fix? How to do that?
I run scalajs bundler and the underlying webpack dev server like:
fullOptJS::startWebpackDevServer; ~fullOptJS::webpack
I have no root cause for why, but seemingly randomly after several hot reloads the CPU usage eventually spikes to the point where my mouse cursor can barely even move while doing a reload!
I have a modest CPU but it holds up fine usually. It's just after running revolver with ~ that after a while it might act up:

lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU(s):                          4
On-line CPU(s) list:             0-3
Thread(s) per core:              1
Core(s) per socket:              4
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           60
Model name:                      Intel(R) Core(TM) i5-4570S CPU @ 2.90GHz

Hmm, hard to say. One think I'd try is checking with visualvm whether it is sbt 'itself' using a lot of CPU, or perhaps memory is filling up and it's actually the garbage collector.

Thanks, so if there's no other ways to limit CPU usage than I've already tried I will close

@raboof while not helpful in identifying root cause, I've found docker's cpus setting to be especially helpful in this case; I just run all my builds in a container with it set to fewer than number of cpus I own. Works like a charm and very simple so long as you're willing to use Docker


Mount modules into container-in-vm

We ship modules with EVE-OS, but they are not available inside
container-in-VM. This PR allows user to modprobe shipped modules.
Signed-off-by: Petr Fedchenkov<EMAIL_ADDRESS>

Just out of the curiosity: why we need to load modules inside xen-tools container? Why this can't be done in a rootfs?

Just out of the curiosity: why we need to load modules inside xen-tools container? Why this can't be done in a rootfs?

We boot container-in-VM in separate guest virtual machine using the same kernel as EVE-OS uses itself to boot. We want to load module into the guest kernel, so we should somehow populate modules (for the kernel we ship with EVE-OS) into the VM's filesystem.

Thanks for the explanation, this is not obvious. So am I correct, that pkg/xen-tools/initrd/init-initrd script is executed in the guest?

Just out of the curiosity: why we need to load modules inside xen-tools container? Why this can't be done in a rootfs?

@rouming That #2702 was part of the motivation, but I don't think we received any confirmation from that user that things were working.

I would like to see this PR merged. Modules can be loaded with insmod anyways, but this PR facilitates the use of modprobe and modinfo (my point is that I don't see any reason to not do this mounting). BTW, I tested on my side, it's working flawlessly.


fix: restart kclvm process to fix memory leak

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[ ] N
[X] Y update #30

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[X] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[ ] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[X] Other

6. Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 46.16%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2422

Relevant Lines:
5247

💛  - Coveralls


Catch Python modules build failures

We should catch Python modules build failures and fail the build, not allowing "renamed" modules like _sqlite3_failed.so:
*** WARNING: renaming "_sqlite3" since importing it failed: build/lib.linux-x86_64-2.7/_sqlite3.so: undefined symbol: PyUnicodeUCS2_AsUTF8String

a7028d3d07dade2305b7a94d39bec208d605617c

Still makes sense.

We do catch them now.


Add kubernetes ingress synchronization.

Hi @guumaster, could you provide an update on the status of this issue?
I observed that PR #66 was closed without being merged. Was this decision related to the significant increase in the bundled size?
Thank you!

Hi @tan9 I honestly can't remember the reason to abandon that branch. Happy to consider merging it if you want to open a new PR.


Hardware Setup

Hi,
Just wanted to ask what sort of device you are running this on and the rs485 device you used. For example is it a raspberry pi or esp32 or Arduino etc.
Thanks

Raspberry pi connected with a rs485 usb


I see this in the output:
Parsing ... somefile.html
Making Markdown ... somefile.md
The extension blank_before_header is not supported for gfm

pandoc version (on Windows)
pandoc.exe <IP_ADDRESS>
Compiled with pandoc-types 1.20, texmath <IP_ADDRESS>, skylighting <IP_ADDRESS>
Default user data directory: C:\Users\cmerritt\AppData\Roaming\pandoc
Copyright (C) 2006-2020 John MacFarlane
Web:  https://pandoc.org

changed:   'markdown_github' # use GitHub markdown variant
and problem solved.

changed: 'markdown_github' # use GitHub markdown variant
and problem solved.

@cdmerritt Where did you change that? I made your suggested change in App.coffee, but now I get Unknown extension: markdown_github.

@crfroehlich, yes, App.coffee.
  @outputTypesAdd = [
    'markdown_github' # use GitHub markdown variant
    'blank_before_header' # insert blank line before header
#    'mmd_link_attributes' # use MD syntax for images and links instead of HTML
#    'link_attributes' # use MD syntax for images and links instead of HTML
  ]

This issue has been closed with #16


TypeError: Cannot read property 'addAmazonSignatureV4' of undefined

I am getting this error when using this plugin with artillery.
My script.yaml looks like this:
config:
  # this hostname will be used as a prefix for each URI in the flow unless a complete URI is specified
  plugins:
    - "aws-sigv4":
        "serviceName": "execute-api"
    - "expect" : {}

  target: "<AWS api gateway host>"
  phases:
    -
      duration: 5 # 5 seocnds
      arrivalRate: 2 # 2 new veirtual users coming every second
      name: Warm up phase

scenarios:

  -
    beforeRequest: addAmazonSignatureV4
    flow:
      - post:
          url: /"{{ $processEnvironment.STAGE }}"/getId
          # request body goes in json
          json:
            input: "abc"

          expect:
            - statusCode: 200

versions:
38f9d370d4a3:load-test vikumar$ npm view artillery version
1.7.6
38f9d370d4a3:load-test vikumar$ npm view artillery-plugin-aws-sigv4 --version
6.14.13
Error:
.   WARNING: Plugin aws-sigv4 specified but module artillery-plugin-aws-sigv4 could not be found (MODULE_NOT_FOUND)
Started phase 0 (Warm up phase), duration: 5s @ 10:55:03(-0700) 2021-07-27
... /Users/<>/.npm-packages/lib/node_modules/artillery/core/lib/engine_http.js:280
        let processFunc = config.processor[fn];
                                          ^

TypeError: Cannot read property 'addAmazonSignatureV4' of undefined
    at iteratee (/Users/<>/.npm-packages/lib/node_modules/artillery/core/lib/engine_http.js:280:43)
    at /Users/<>/.npm-packages/lib/node_modules/artillery/node_modules/async/lib/async.js:181:20
    at iterate (/Users/<>/.npm-packages/lib/node_modules/artillery/node_modules/async/lib/async.js:262:13)
    at Object.async.forEachOfSeries.async.eachOfSeries (/Users/<>/.npm-packages/lib/node_modules/artillery/node_modules/async/lib/async.js:281:9)
    at Object.async.forEachSeries.async.eachSeries (/Users/<>/.npm-packages/lib/node_modules/artillery/node_modules/async/lib/async.js:214:22)
    at f (/Users/<>/.npm-packages/lib/node_modules/artillery/core/lib/engine_http.js:276:11)
    at fn (/Users/<>/.npm-packages/lib/node_modules/artillery/node_modules/async/lib/async.js:746:34)
    at /Users/<>/.npm-packages/lib/node_modules/artillery/node_modules/async/lib/async.js:1213:16
    at /Users/<>/.npm-packages/lib/node_modules/artillery/node_modules/async/lib/async.js:166:37
    at /Users/<>/.npm-packages/lib/node_modules/artillery/node_modules/async/lib/async.js:706:43

try installing the module globally. 'npm install -g artillery-plugin-aws-sigv4'


Doesn't work in new Jira view

Possible reason: Jira now dynamically creates the comment box when updating an issue (which TextExpander probably doesn't see because it doesn't keep up with dynamic changes on a webpage).
I assume this is probably related to the same issue it has with Google Docs, but I'm probably wrong.

Figured something out... it works in the popup when entering a comment, but doesn't work for the inline text box on the page.


Support for the last version of gigantic?

Maybe that question have been asked before but are you planning to include support in arcsdk for the last arc version of gigantic?

In theory the retail version should be supported, you'd just need to patch out EAC (EAC isn't verified obviously, but the ancient version of it will BSOD any recent Windows 10, hooray for kernel mode anticheat).
That said the retail version doesn't include the server component, so there would be no way to actually host any matches, which is why there isn't a lot of movement in this direction.

Yesterday I sat down doing exactly that but didn't yield much results.
Anyhow, I thought that the last release still had p2p / lan supported for listen server, just dedicated server code was stripped away ... I might be wrong here.
My motivation to have the last release running was so I can find a way to fix few issues comparing some of the test game levels to the final release one along with the mechanics.

Afaik none of the retail versions ever had P2P support, in later versions there's the "custom game" thing were you can do 5v5 premades, but that was also using official servers, just without the matchmaking.

Well, I don't have experience with EAC or server emulation. X3 I can nop my way out of something or jump here and there, I do have experience with unreal engine, hence why I was wondering if its possible to make the new one running so I can retrofit from one another.

I don't have any experience with UE3, the biggest problem I see with "retrofitting from on to another" is that with the way UE3 works you get the engine code as well as the game code all mashed together into a single big mess + as far as I know the engine code was also heavily modified, though that's only something I heard.

Ye for me it's no issue fixing level maps and interface glitches as long as I can run the new one, exactly because of everything being mashed together I will need the game running, simply unpacking from the new and donating to the old won't just work. X) thankfully the code for loading custom maps and assets is still in the game so every issue the old one have is fixable with modding

Hmm, have you tried the latest steam or win10 versions, they should both work (well at least not crash your whole PC)

Steam version

requires bypassing steam (thats easily achieved with many tools and tutorials of how steam stub works) and bypassing arc and uses EAC as well (it does require arc running, so same thing is the last arc version, so last steam and last arc version are identical, steam one just have the steam stub)

MS Store

requires a license which can be dodged in offline mode, but that works only on accounts which had gigantic at some point added to the account, if the game was never added to an account now it just complains you don't have a license for this product, unsure if it requires arc running, but the game is cooked up differently from steam and arc versions.

Last Arc version

it requires arc, it doesn't crash my pc on loading EAC (i have it installed because of a different game), but the game closes cuz i fail to bypass arc or i am missing some check in x64dbg

If only Arc is the only problem, you can just use this ArcSDK.dll:
ArcSDK.zip

Oke lan works on the last arc version, the problem is that when it switches to lan mode it awaits a response from the game server, a ping to see if the servers a still alive, if that fails it shoots, connection lost to the game server if we can give it a heartbeat then you can have other people joining on lan.
case1. Open a level, choose a character, works but nobody can connect
case2. Open a level, choose a character, open <IP_ADDRESS>, it opens udp listen server, but it sending a ping every 15 seconds to the game server, if you simulate that ping... you can use the last version for matchmaking... i assume.

That's outgoing connections, otherwise the state would be LISTENING right?
Especially with open being the command for connecting to a server, not for starting one...

The function is there serialize and linker have been removed from ipdrv.
i assume they couldn't remove the whole LAN code from UE, and just but online check on top, as far as i remember they were trying to keep the p2p because of custom games.
I will look into it.

I'm going to close this issue for now, as support for the latest/retail version is technically already there and I don't plan on expanding on it unless something changes about the match hosting.


Provide a dataclass abstraction for clients and other objects

Currently the representation of clients in unificontrol is just the raw data that comes back from the underlying API. In a comment on another issue @WoLpH suggested that it would be useful to have an abstraction that represents clients as their own data objects and provide a higher level API for manipulating them.

For Python 3.6 there's a backport available so that's easily fixed: https://pypi.org/project/dataclasses/
The requirement would be:
dataclasses; python_version < '3.7'

Another question would be how this new API would be exposed. The way I see it there are a few options:

Add an option to client so client.list_clients() returns this object when the new API is enabled
Add a parameter to methods such as client.list_client() so it returns the new style
Add a new method for this so that client.clients would be a collection class that is both iterable and subscriptable using something like client.clients[mac_address].
Add a dict api to the dataclasses to maintain backwards compatibility

My vote would be option 3, but that's your decision :)

Example:
@dataclasses.dataclass
class Client:
    _id: str
    assoc_time: int
    authorized: bool
    first_seen: int
    ip: str
    is_guest: bool
    is_wired: bool
    last_seen: int
    latest_assoc_time: int
    mac: str
    oui: str
    qos_policy_applied: bool
    rx_bytes: int
    rx_bytes_r: int
    rx_packets: int
    site_id: str
    tx_bytes: int
    tx_bytes_r: int
    tx_packets: int
    tx_retries: int
    uptime: int
    user_id: str
    wifi_tx_attempts: int
    _is_guest_by_uap: bool = None
    _is_guest_by_ugw: bool = None
    _is_guest_by_usw: bool = None
    _last_seen_by_uap: int = 0
    _last_seen_by_ugw: int = 0
    _last_seen_by_usw: int = 0
    _uptime_by_uap: int = 0
    _uptime_by_ugw: int = 0
    _uptime_by_usw: int = 0
    anomalies: int = 0
    ap_mac: str = ''
    bssid: str = ''
    bytes_r: int = 0
    ccq: int = 0
    channel: int = 0
    confidence: int = 0
    dev_cat: int = 0
    dev_family: int = 0
    dev_id: int = 0
    dev_vendor: int = 0
    device_name: str = ''
    dhcpend_time: int = 0
    essid: str = ''
    fingerprint_source: int = 0
    fixed_ip: str = ''
    fw_version: str = ''
    gw_mac: str = ''
    hostname: str = ''
    idletime: int = 0
    is_11r: bool = None
    name: str = ''
    network: str = ''
    network_id: str = ''
    noise: int = 0
    noted: bool = None
    os_class: int = 0
    os_name: int = 0
    powersave_enabled: bool = None
    priority: int = 0
    radio: str = ''
    radio_name: str = ''
    radio_proto: str = ''
    roam_count: int = 0
    rssi: int = 0
    rx_rate: int = 0
    satisfaction: int = 0
    score: int = 0
    signal: int = 0
    sw_depth: int = 0
    sw_mac: str = ''
    sw_port: int = 0
    tx_power: int = 0
    tx_rate: int = 0
    use_fixedip: bool = None
    usergroup_id: str = ''
    vlan: int = 0

Generated by:
 import collections
 keys = collections.defaultdict(list)
 counter = 0
 for data in client.list_clients():
     counter += 1
     data = {k.replace('-', '_'): v for k, v in data.items()}
     for key, value in data.items():
         keys[key].append(value)

 required = dict()
 optional = dict()
 for key, values in sorted(keys.items()):
     type_ = type(values[0])
     if type_ is int:
         default = 0
     elif type_ is str:
         default = ''
     elif type_ is bool:
         default = None
     else:
         raise TypeError()

     type_str = f'{type_.__name__}'

     if len(values) == counter:
         required[key] = type_str
     else:
         optional[key] = f'{type_str} = {default!r}'

 for key, type_ in sorted(required.items()):
     print(f'{key}: {type_}')

 for key, type_ in sorted(optional.items()):
     print(f'{key}: {type_}')

Using these we can create a high-level API that could work something like this:
fixed_hosts = dict(...)

for client in api.clients:
    fixed_host = fixed_hosts.get(client.mac)
    if not fixed_host:
        continue

    client.name = fixed_hostname.name
    client.fixed_ip = fixed_hostname.ip

# Or:
for mac, fixed_host in fixed_hosts.items():
    api.clients[mac].name = fixed_host.name
    api.clients[mac].fixed_ip = fixed_host.ip


feat: local package manager

Auto complete for #import "@local/xxx"
Create or open a local package in tinymist

ready.

🎉


Fixed bug in FastLSTM dropout initialization

In the current version, dropout isn't enabled when creating a FastLSTM instance: the value of p or mono that we specify is overwritten when creating the parent LSTM instance.
Example of the bug:
We first create a FastLSTM:
lstm = nn.FastLSTM(2, 3, nil, nil, nil, nil, 0.5, true)
Now we can check that lstm.p is equal to 0, even though we would expect to get 0.5. Similarly, lstm.mono will be false instead of true.
This simple edit fixes this behavior.

Thanks guys, @jbboin, @jnhwkim!


Enhance localhost URL

I have set up my Apache server to work with multiple virtual hosts. This means that I don't only have a localhost, instead I have an entry on /etc/hosts for each virtual host pointing at <IP_ADDRESS>.
When trying to go to http://localhost/ in the browser, the url is actually replaced with http://<IP_ADDRESS>/, I don't know what's the propose of it.
But what happens when you try to go to any of the entries of /etc/hosts? You'll get redirected to a google search of it, no matter if you force it to be an URL of writing http://project/ instead of just project.
It would be nice to don't force the google search if the URL starts with http;//([a-zA-Z0-9]*)/ and don't replace http://localhost/ with http://<IP_ADDRESS>/

check the latest patch..


ARM violation, duplicate path in specification/resources/resource-manager/Microsoft.Solutions/preview/2016-09-01-preview/managedapplications.json

File:
specification/resources/resource-manager/Microsoft.Solutions/preview/2016-09-01-preview/managedapplications.json
Duplicate path:
/{applianceId}
/{applianceDefinitionId}

This would cause validation failure in CI.
https://dev.azure.com/azure-sdk/public/_build/results?buildId=109572
Please take a look whether it could be fixed.
Reference, fixed in specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json
  "x-ms-paths": {
    "/{applicationDefinitionId}?disambiguation_dummy": {

But it might not be the same implementation in service.

Spoke to Weidong offline. This issue has been fixed with Weidong's suggestion in later versions of the SDK.


Can we use it to parse the sql and its response from the tcp stream

Can we use it to parse the sql and its response from the tcp stream

That sounds like something I would do with Wireshark.

That sounds like something I would do with Wireshark.

I want to parse sql online


Simplecov with minitest Unit tests?

I am trying to use simplecov with minitests unit testing, I configured my test_helper.rb
require 'simplecov'
SimpleCov.start 'rails' do
  add_filter '/spec/'
  add_filter '/config/'
  add_filter '/lib/'
  add_filter '/vendor/'

  add_group 'Controllers', 'app/controllers'
  add_group 'Models', 'app/models'
  add_group 'Helpers', 'app/helpers'
  add_group 'Mailers', 'app/mailers'
  add_group 'Views', 'app/views'
end

But when i run the test cases, it shows me all the methods from models/controllers are not covered, for which there are test cases I have written. Only before filters, relations are seen green rest is all red.
Do i need some configuration? is Simplecov is supported for Minitest unit testing ?

I have missing model coverage if I place the SimpleCov.start in my test_helper.rb (with Minitest). I use config.before_initialize now.

FWIW, in my simple gem it was relatively easy to get SimpleCov going.

Add s.add_development_dependency 'simplecov', '~> 0.16' to .gemspec.
bundle install
Create test/enable_coverage.rb with this content:require 'simplecov'

Create .simplecov with this content:SimpleCov.start do
end

In Rakefile, edit the test task to include enable_coverage.rb at first position:desc 'Run tests'
Rake::TestTask.new do |t|
  t.libs << 'my_gem'
  t.test_files = FileList['test/enable_coverage.rb', 'test/test*.rb']
  t.verbose = true
end

Run rake test and happily find coverage reports in coverage/.

I guess further config would go into .simplecov, but that is the basics.
@bf4 Maybe add a very minimal example like this to the documentation? Scrolling through here, one might get the idea that the task at hand is all but impossible.

There is already generous documentation in the README I feel.
Your step number 5 is framework specific. Also what is mentioned in 3. needs to be required somewhere.
PRs to improve the documentation are very welcome though :)

@PragTob My issues with the README are as such.

I use a gemspec, not a Gemfile.
I didn't have a test helper. Rake just ran all the minitests.
It doesn't mention .simplecov; the "hope SimpleCov.start is required first" approach seems fickle, and the long discussion above (among others) seems to agree.
All the Rails references are irrelevant for Gem development, and potentially confusing.

Your step number 5 is framework specific

What do you mean? Which framework? This whole issue is about Minitest, if that's what you mean.

Also what is mentioned in 3. needs to be required somewhere.

Rake does that. Note that the file is mentioned in 5.

Locked just because this is old and long and isn't progressing any further. I admit it's not really resolved in the way I'd like.  Please open a new issue and reference this one if you'd like to restart the 'simplecov' and 'minitest' don't always play well together conversation (both run in at_exit blocks) , esp in Rails.


TestProjections Failure Under WSL x64

When running the SciPy test suit, TestProjections.test_iterative_refinements_dense fails its array equality assertion.
The environment is as follows:

WSL x64, Ubuntu 18.04
Python 3.8.3

Error message:

=========================================================== FAILURES ===========================================================
_______________________________________ TestProjections.test_iterative_refinements_dense _______________________________________
scipy/optimize/_trustregion_constr/tests/test_projections.py:151: in test_iterative_refinements_dense
    assert_array_almost_equal(A.dot(x), 0, decimal=14)
E   AssertionError:
E   Arrays are not almost equal to 14 decimals
E
E   Mismatched elements: 1 / 3 (33.3%)
E   Max absolute difference: 2.48689958e-14
E   Max relative difference: inf
E    x: array([1.24344978758018e-14, 2.48689957516035e-14, 5.32907051820075e-15])
E    y: array(0)
        A          = array([[1, 2, 3, 4, 0, 5, 0, 7],
       [0, 8, 7, 0, 1, 5, 9, 0],
       [1, 0, 0, 0, 0, 1, 2, 3]])
        LS         = <3x8 _CustomLinearOperator with dtype=float64>
        Z          = <8x8 _CustomLinearOperator with dtype=float64>
        _          = <8x3 _CustomLinearOperator with dtype=float64>
        method     = 'SVDFactorization'
        self       = <scipy.optimize._trustregion_constr.tests.test_projections.TestProjections testMethod=test_iterative_refine
ments_dense>
        test_points = ([1, 2, 3, 4, 5, 6, ...], [1, 10, 3, 0, 1, 6, ...], [1, 0, 0, 0, 0, 1, ...])
        x          = array([-0.70601707,  4.10640987, -2.65002582, -1.57803028,  0.36192813,
       -0.47440672, -1.36566586,  1.3039185 ])
        z          = [1, 10, 3, 0, 1, 6, ...]
=================================================== short test summary info ====================================================
FAILED scipy/optimize/_trustregion_constr/tests/test_projections.py::TestProjections::test_iterative_refinements_dense - Asse...
============== 1 failed, 25624 passed, 2012 skipped, 10991 deselected, 76 xfailed, 6 xpassed in 321.47s (0:05:21) ==============

   Normal return from subroutine COBYLA

   NFVALS =   50   F = 2.485185E+01    MAXCV = 1.999965E-10
   X = 4.955358E+00   6.666553E-01

 NNLS quitting on iteration count.

Scipy/Numpy/Python version information:
1.6.0.dev0+f5bf95a 1.18.5 sys.version_info(major=3, minor=8, micro=3, releaselevel='final', serial=0)

Thanks for the report @DominicChm. Sorry for the slow reply.. Looks like this just needs a small test precision bump. If you change decimal=14 to 13:
assert_array_almost_equal(A.dot(x), 0, decimal=14)

does the test pass? In that case we should just make that change.

FWIW, it is passing for me locally on WSL/Python 3.8 in current master. I suppose it could be sensitive to stuff like compiler and/or linalg backend, etc.

Ah, forgot I opened this! It stopped failing for me around December (?) and I haven't seen this fail since. I'm going to close the issue since it's no longer a problem for me and I don't have any way to reproduce.

Great, thanks @DominicChm


"A connection with the server could not be established" Error for "wsl --install -d Ubuntu"

Version
Microsoft Windows [Version 10.0.22621.963]
WSL Version

[x] WSL 2
[ ] WSL 1

Kernel Version
No response
Distro Version
Ubuntu
Other Software
No response
Repro Steps
`C:\Windows\System32>tracert.exe www.microsoft.com
Tracing route to e13678.dscb.akamaiedge.net [2405:200:1630:38e::356e]
over a maximum of 30 hops:
1     3 ms     8 ms     3 ms  2405:201:401d:6836:1a82:8cff:feec:70e3
2     *        *        *     Request timed out.
3     *        *        *     Request timed out.
4     6 ms     6 ms    13 ms  2405:200:801:300::dec
5     5 ms     5 ms     5 ms  2405:200:801:300::dec
6     6 ms     6 ms     6 ms  2405:200:1604::1
7     7 ms     8 ms     6 ms  2405:200:1630:38e::356e`
Trace complete.
C:\Windows\System32>
Expected Behavior
Install WSL and Ubuntu
Actual Behavior

Error "A connection with the server could not be established"
Diagnostic Logs
No response

anyone help me?

Could you try wsl.exe --install --web-download?
Thanks!

The wsl --install --web-download worked but when I downloaded Ubuntu from Microsoft store it showed this error

@benhillis

Still not Working

Same error
@benhillis

The wsl --install command worked before I was collecting the logs. I don't know how. But When I was Installing then It was just saying Installing WIndows Subsystem For Linux not Installing WSL Kernel or Installing GUI Support

is this issue resolved i am facing the same

is this issue resolved i am facing the same

If you are still facing the issue. Try running on vpn.

If you are in India and using Jio, try other Operator.

its still not work for my sysstem

i suggest to check these features -  "virtual machine platform" and "windows subsystem for linux feature"
You can find these features in TURN WINDOWS FEATURES ON OR OFF which is present in control panel under PROGRAMS

This worked for me after installing Ubuntu from windows store.
https://learn.microsoft.com/en-us/answers/questions/1112206/a-connection-with-the-server-could-not-be-establis

yahh im tried many time after install my computer is totally blank screen

If you are in India and using Jio, try other Operator.

I had the same problem while using a JioFiber connection (India). Problem resolved on switching to Airtel for internet connection.

is this issue resolved i am facing the same

If you are still facing the issue. Try running on vpn.

i faced same issue for so long , jio user may be use vpn it works.Thanks

If you are in India and using Jio, try other Operator.

I had the same problem while using a JioFiber connection (India). Problem resolved on switching to Airtel for internet connection.

I was facing the same problem, switching to the airtel connection worked. Thanks!!

Hi folks,
There is another alternative I just found and want to share with you guys.
I had just changed my DNS Server settings to manual and used Google's public DNS servers and it just worked fine.
You shall give it a try if you do not have other operator for internet connection. Try changing your DNS server to the following IP addresses. I hope it helps you too.
Google's public DNS Servers:

<IP_ADDRESS>
<IP_ADDRESS>

I've Jio & JioFiber connection and same issue, but when I tried using VPN it worked!

Hi folks,
There is another alternative I just found and want to share with you guys. I had just changed my DNS Server settings to manual and used Google's public DNS servers and it just worked fine.
You shall give it a try if you do not have other operator for internet connection. Try changing your DNS server to the following IP addresses. I hope it helps you too.
Google's public DNS Servers:

<IP_ADDRESS>
<IP_ADDRESS>

Final Result Here

Thanks, it worked for me

Hi folks,
There is another alternative I just found and want to share with you guys. I had just changed my DNS Server settings to manual and used Google's public DNS servers and it just worked fine.
You shall give it a try if you do not have other operator for internet connection. Try changing your DNS server to the following IP addresses. I hope it helps you too.
Google's public DNS Servers:

<IP_ADDRESS>
<IP_ADDRESS>

Final Result Here

This helped! Thank you!


Add a entry_metadata method to FilesystemClient

This should have been part of #30 but I forgot to push it :sweat_smile:
This adds some basic filesystem tests as well.

let's go


[Bug]: Cannot get tmux pane ID

Similar Issues

[X] Before filing, I have searched for similar issues.

Neovim Version
0.9.1
Multiplexer Integration
tmux
Multiplexer Version
3.2a
Steps to Reproduce
try to move pane
Expected Behavior
move
Actual Behavior
no
Minimal Configuration to Reproduce

Additional Details and/or Screenshots
I found that I'm unable to change the pane with an error Failed to get multiplexer pane ID.
After some investigation, the root cause is probably unrelated to the plugin. But I will raise this question anyway in case you have a similar experience with it. Feel free to close this issue if you think it's too unrelated to the plugin.
For some reason, I can't get tmux to print anything from inside neovim. The easiest way for me to check is just by running the command :! tmux -V which should print the version of tmux. But it shows an empty string instead.
My guess is there's some permission error or something, but nvim doesn't print it.
I installed both my nvim and tmux from snap package.
Let me know what you think, or feel free to close the issue.

It’s most likely due to snap package sandboxing.
if you have a minimal configuration I can see if I can reproduce in non-snap package environment.

I just spun up a new ubuntu VM and it's working fine there. So probably some permission error on my side. I'll investigate further on this. Thank you for your reply though,


Optionally parse list of tags to filter indexing by

Closes https://github.com/mapbox/route-annotator/issues/24
First pass implementation of filtering on OSM file by certain tags.
Remaining tasks

[x] Figure out segfault
[x] Write tests
[x] Fix TODOs around optional handling
[x] Figure out handling when no ways are returned
[x] Allow loadOSMExtract to accept an array of files as well as one file string

@karenzshea I've rebased this on master, which has pulled in the changes from https://github.com/mapbox/route-annotator/pull/30.
I've tagged and published 0.1.0-rc3 from this branch.
There's only one outstanding question: should all tags from a matching way be indexed, or only the tags indicated by the filter?
Currently, master separates the "tags to use to filter ways" from the "tags to store in the index".  I've duplicated that logic on this branch, but it caused one test to fail:
https://github.com/mapbox/route-annotator/pull/25/files#diff-879eb6ab79a85f13ac84c620132435e1R100
If you're OK with this behaviour (only index the tags that we mention in the filter), then I think this PR is ready to merge to master and do a release of 0.1.0 on.
If you think we should index all tags on matching ways, then this if statement:
https://github.com/mapbox/route-annotator/pull/25/files#diff-3cb06dc074df26ca8f412b291b6902ccR171
should be removed, and we should index all tags.  For the 0.1.0 release, I don't think it matters if we only index tags listed by the filter, we can certainly make this more flexible in a future release.

@danpat I'm OK with the behavior of only storing tags that are in the filter. I only wrote the test that way to check that the way I anticipated was being detected.
Thanks for rebasing this after the other PR was merged!


Organizations in SPARC MIS

I see organization, nonprofit and institution as classes in the MIS. We don't seem to be using organization.  I suggest that we clean this up and conform to what we use in NIF/SciCrunch.

The meaning of these are coming directly from ror, not from us and I don't want to get into the habit of aligning fields that have clear meaning defined by other systems unless absolutely necessary. Maybe it would be sufficient to note that those predicates in a more formal way than as editor notes as I do now. https://github.com/SciCrunch/NIF-Ontology/blob/ae46d6fb30a12feb03dc197a6546f45a1261d52d/ttl/sparc-mis-helper.ttl#L290


Undefined method _attacher

I'm using shrine 2.5.0, reform 2.2.3 and shrine-reform 0.1.4 and I get this exception whenever I try to validate:
undefined local variable or method `campaign_cover_attacher' for #<#<Class:0x007fda5eb59a60>:0x007fda5eca7a70>
I simply added CampaignCoverUploader[:campaign_cover] to both the form and the model and now I'm getting the error when i call validate on the form object. Seems like it's expecting this method to be available on the model, 'cause as soon as I implement an attr_accessor for campaign_cover_attacher, the error changes.
Did I set it up correctly? am I missing something?

@Arvinje Can you post me your exact setup? Perferably in a self-contained script which I can run with ruby, something in the lines of:
require "shrine"
require "shrine/storage/file_system"
require "tmpdir"

Shrine.storages = {
  cache: Shrine::Storage::FileSystem.new(Dir.tmpdir),
  store: Shrine::Storage::FileSystem.new(Dir.tmpdir),
}

Shrine.plugin :activerecord
Shrine.plugin :reform

class CampaignCoverUploader < Shrine
end

require "active_record"

ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
ActiveRecord::Base.connection.create_table(:records) { |t| t.text :compaign_cover_data }

class Record < ActiveRecord::Base
  include CampaignCoverUploader[:campaign_cover]
end

require "reform"
require "reform/rails"

class Form < Reform::Form
  include CampaignCoverUploader[:campaign_cover]
end

record = Record.new
form   = Form.new(record)
form.validate(campaign_cover: File.open(__FILE__))
form.save

puts record.campaign_cover

For some reason this script raises an error for me on the form.validate line, I don't get why:
/Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activemodel-<IP_ADDRESS>/lib/active_model/naming.rb:150:in `initialize': Class name cannot be blank. You need to supply a name argument when anonymous class given (ArgumentError)
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/form/active_model.rb:79:in `new'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/form/active_model.rb:79:in `active_model_name_for'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/form/active_model.rb:73:in `model_name'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/form/active_model.rb:85:in `model_name'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/form/active_model/validations.rb:95:in `initialize'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/form/active_model/validations.rb:55:in `new'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/form/active_model/validations.rb:55:in `call'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/validation/groups.rb:57:in `block in call'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/validation/groups.rb:51:in `each'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/validation/groups.rb:51:in `call'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/validation.rb:36:in `valid?'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/contract/validate.rb:18:in `validate!'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/contract/validate.rb:10:in `validate'
        from /Users/janko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/reform-2.1.0/lib/reform/form/validate.rb:23:in `validate'
        from script.rb:35:in `<main>'

@janko-m I ran the script you purposed. (The exact same one)
If I use ActiveModel for validation, I get the same error as yours. However, since I use dry-validation ( which needs to be specified via Rails.application.config.reform.validations = :dry ), I get an undefined local variable or method `campaign_cover_attacher' exception.
BTW, I didn't add any validations to the form.

Hey,
I'm also experiencing the same issue when using Dry validations. The issue is that the attacher instance variable is not available within the validate block's scope when using Dry validations.
If I replace
validate do
<EMAIL_ADDRESS>do |message|
    errors.add :#{@name}, message
  end
end

with
def validate(params)
  super(params)

<EMAIL_ADDRESS>do |message|
    errors.add :#{@name}, message
  end
end

It has access to the attacher and can add any errors.
Hope this helps you identify and resolve the issue.

P.S seems to be working fine when using Active Model validations.

This also works (but only for Dry validations).
validate do
<EMAIL_ADDRESS>do |message|
    @options[:form].errors.add :#{@name}, message
  end
end

If I get time tomorrow I'll see if anyone in the Trailblazer Gitter room can suggest the best way to handle this.

@coatezy Thanks for the info, I will definitely look into this shortly. Being able to use shrine-reform with dry-validation is definitely more important to me than ActiveModel (even though I'm testing only with ActiveModel), so I want to get to the bottom of this.

@janko-m Good to hear. If I get 5 minutes I will ask over on the Trailblazer Gitter room to see if anyone can suggest where is best to check/assign any errors in a way that works for both ActiveModel and Dry validations.

@janko-m Not sure if you ever had a chance to look in to this?
I am now using shrine-reform with Dry-V. My previous work around worked okay until I had multiple uploaders within a single form. Because I was calling super within a class_eval only the final validator worked.
I am now using prepend and all validators work as expected. 😄
Replaced:
validate do
<EMAIL_ADDRESS>do |message|
    errors.add :#{@name}, message
  end
end

With:
prepend(::Module.new do
  def validate(params)
    super(params)

<EMAIL_ADDRESS>do |message|
      errors.add :#{@name}, message
    end

    errors.empty?
  end
end)

I haven't had a chance too look at this, thank you for the update!
I you have time, I would definitely appreciate a pull request for this 😉

Sorry @janko-m - Only just returned to the project that required TRB/Shrine file uploads. The approach above worked fine until I wanted to check for the presence of the upload using DRY-V. With a presence validation on image Dry responds with a not present validation error.

module Blog::Contract
  class Create < Reform::Form
    include Dry
    include ::ImageUploader::Attachment.new(:image)

    property :title
    property :body

    validation do
      required(:title).filled
      required(:body).filled
      required(:image).filled
    end
  end
end

There must some kind of ordering issue as if I move
(properties & instance_methods).each do |name|
  send(:property, name, virtual: true)
end

above form.class_eval the image data is passed through to Dry-V and validation is successful but all the expected instance variables such as image_data etc is not populated so it then falls over when syncing the data to the model and saving.
Happy to continue playing if you have any suggestions on where I can look next. 😉

@coatezy Ah, I'm guessing Reform internals changed a bit since I wrote shrine-reform. I think Reform::Form.property internally calls Reform::Form.create_accessors, that's why they're defined in that order. But I remember that I had a lot of struggles to make it work then, so I don't know what changed now.
The main problem was defining properties corresponding to the possible Shrine attributes, so that it passes Reform's mass assignment, but without defining accessors for those attributes (as it should use Shrine's accessors), and without attempting to sync them, because any assignment through those attributes write data to the image_data attribute, so none of these other attributes (specified on top of the file) should be synchronized by Reform.
Those were the main challenges, it would be great if you could find time to look into it a bit deeper. I cannot find time lately, latest updates to tus-ruby-server took a significant portion of my energy 😛

Let's wait until Reform 2.3.0 is released, and go from there (it's currently in RC phase).

Had a chat with Nick and when using Trailblazer he believes that the uploader should not be part of the form/contract. I have now written a step to handle uploading within the operation.
  def upload_attachment!(options, model:, **)
    attacher = ::FileUploader::Attacher.new(model, :attachment)
    contract = options['contract.default']

    attacher.assign(contract.attachment)

    if attacher.errors.any?
      attacher.errors.each do |error|
        contract.errors.add(:attachment, error)
      end

      return false
    else
      attacher.promote
    end
  end

I do often use Reform on it's own though so would be great to see this plugin work Reform and Dry-V in the future. 😄


Problems with analysis Tools

Hi I am fairly new to IDPConformer Generator, I wanted to explore the analysis tools, but I have troubles finding the tools for radius of gyration, end-to-end distances, asphericity, and Cα−Cα distance and distance-difference matrices. Am I missing something, or do I need to use additional software?

Hi @leonmti! Thank you for your interest in our IDP/IDR ensemble generator. Although we cannot calculate Rg, Ree, A, and Ca-Ca distances within IDPConformerGenerator currently, we do have plans to add these simple calculators for quickly categorise ensembles later.
If you're interested in a back-calculator suite for ensembles (i.e. to obtain back-calculated experimental data), please refer to SPyCi-PDB (https://github.com/julie-forman-kay-lab/SPyCi-PDB).
If you're wondering what IDPConformerGenerator and SPyCi-PDB do, please refer to the documentation we have written here:
https://idpconformergenerator.readthedocs.io/en/latest/
https://spyci-pdb.readthedocs.io/en/stable/
Hope this helps,
Nemo

Hi Nemo, there are tools/scripts for calculating Rg, Ree, A and Ca-Ca distances that we published in the original IDPConfGen paper. How can those be accessed?
Thanks,
Julie

From: Zi Hao (Nemo) Liu @.>
Sent: June 18, 2024 11:47 AM
To: julie-forman-kay-lab/IDPConformerGenerator @.>
Cc: Subscribed @.***>
Subject: Re: [julie-forman-kay-lab/IDPConformerGenerator] Problems with analysis Tools (Issue #281)
Hi @leonmtihttps://github.com/leonmti! Thank you for your interest in our IDP/IDR ensemble generator. Although we cannot calculate Rg, Ree, A, and Ca-Ca distances within IDPConformerGenerator currently, we do have plans to add these simple calculators for quickly categorise ensembles later.
If you're interested in a back-calculator suite for ensembles (i.e. to obtain back-calculated experimental data), please refer to SPyCi-PDB (https://github.com/julie-forman-kay-lab/SPyCi-PDB).
If you're wondering what IDPConformerGenerator and SPyCi-PDB do, please refer to the documentation we have written here:
https://idpconformergenerator.readthedocs.io/en/latest/
https://spyci-pdb.readthedocs.io/en/stable/
Hope this helps,
Nemo
—
Reply to this email directly, view it on GitHubhttps://github.com/julie-forman-kay-lab/IDPConformerGenerator/issues/281#issuecomment-2176425378, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMXWN4FYYMHTVXANUALKARTZIBI7PAVCNFSM6AAAAABJP6ZLSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZWGQZDKMZXHA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

This e-mail may contain confidential, personal and/or health information(information which may be subject to legal restrictions on use, retention and/or disclosure) for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for the reminder Julie.
@leonmti I have attached the diversity analysis script here. They are part of all of the scripts we used for the IDPConformerGenerator J Phys Chem A paper, and can be found in the supplemental archive. Please change the file extension to .py instead of the attached .txt.
Calculate_Diversity.txt


How to use it in Vuejs with SSR (not nuxt)

Hello,
I am trying to use this plugin in vuejs.
Currently, I have following code in app.js
 if (process.browser) {     const toggleButton = require('vue-js-toggle-button/dist/ssr.index')     Vue.use(toggleButton) }
When I call
   <toggle-button v-model="private">                 </toggle-button>
I am having
[Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.
I don't know know to register it
Thanks

https://github.com/euvl/vue-notification/issues/11

Hello,
In my initial post, the first line code already makes sure that the import only happens on the client side of SSR.


Update Text.md

edited presets to include formLabel and formHelper.  Changed "header " to "heading".
Please verify the following:

[ ] yarn test jest tests pass with new tests, if relevant
[ ] yarn lint eslint checks pass with new code, if relevant
[ ] yarn format:check prettier checks pass with new code, if relevant
[ ] README.md (or relevant documentation) has been updated with your changes

Describe your PR
Updated Text component in docs.

@kolyad3v thanks for the contribution, could you run the format script on this?

Thanks for the fix, @kolyad3v. I edited the file to pass our linter.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


yourls_do_action calls yourls_apply_filter with all arguments in an array rather than as a list

This is a COPY of Issue 1203: yourls_do_action calls yourls_apply_filter with all arguments in an array rather than as a list, filed on Google Code before the project was moved on Github.

Submitted on 2012-10-09T18:20:46.000Z by<EMAIL_ADDRESS>Status: New

Please review the original issue and especially its comments. Comments here on closed issues will be ignored. Thanks.
Original description
yourls_do_action always sends all args to yourls_apply_filter as a single array, but yourls_apply_filter uses them as if they're sent as individual arguments. The fix is to use call_user_func_array to call yourls_apply_filter. Patch attached.

Copying original patch, before Google Code goes missing:
Index: includes/functions-plugins.php
===================================================================
--- includes/functions-plugins.php	(revision 771)
+++ includes/functions-plugins.php	(working copy)
@@ -155,7 +155,7 @@
 }

 function yourls_do_action( $hook, $arg = '' ) {
-	$args = array();
+	$args = array( $hook );
 	if ( is_array( $arg ) && 1 == count( $arg ) && isset( $arg[0] ) && is_object( $arg[0] ) ) // array(&$this)
 		$args[] =& $arg[0];
 	else
@@ -163,7 +163,7 @@
 	for ( $a = 2; $a < func_num_args(); $a++ )
 		$args[] = func_get_arg( $a );

-	yourls_apply_filter( $hook, $args );
+	call_user_func_array( 'yourls_apply_filter', $args );
 }

@@ -505,4 +505,4 @@
 	yourls_html_footer();

 	die();
-}
\ No newline at end of file
+}


improve find_alsa_devices.py

Ideally find_alsa_devices.py should not only list the PCM devices but also search for the working parameter combinations.
With a fixed frequency at the line in, the script could even check for the peak frequency. This would help to identify the working parameter combinations.
With parameter combinations I refer to

format (e.g. S16_LE, S24_3LE, S32_LE)
sample arte (e.g. 48000, 96000, 192000)
card (e.g. the output of arecord -L)

merged with pull request #28


revert: pull request #47

This reverts commit a846a8269cbfe040e3df631365914e2484da3bac, reversing changes made to 4494135c8b845e60383157efdec7937e9f1146da.

Shouldn't this be for the release/2.0 branch instead?

Shouldn't this be for the release/2.0 branch instead?

I'm reverting a PR from develop..


Added docker compose service Solr Cloud

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Yes, the both docker compose files are drupal-specific. Where should it be reflected?
In the file names, in the README? Both?

Just the README and the title, thanks!

I think that I covered everything now.

Is there anything else required to get this merged?

Thanks for asking @mkalkbrenner ! Yes, there are a couple of things you can do to get this merged faster:

Get someone else to manually test this and review it. It helps if it's somebody that has been active in ddev previously, but anybody is a step forward!
Manually test and review other ddev-contrib PRs yourself.
Add manual testing instructions either to the PR or the content itself. And explain what cloud mode is, or link to it. (Maybe you did that, but I missed it in a quick skim just now)

I've been digging through a backlog of PRs and issues in ddev and do hope to get to the ddev-contrib PRs before long. We really need an additional maintainer(s). All it really takes is quality-checking the PRs and manually testing them. Unfortunately that can require some mental energy because they often come from a place a person is not already familiar with, like this one with "cloud mode".

I guess I thought you were asking how to get it merged faster, and you were really asking if there was anything to be done to bring it to completion. I apologize for misreading your question.
I guess just explaining how to manually test this would be great. It looked pretty ominous to me.

I tested the Solr Cloud Integration by @mkalkbrenner and discovered an issue regarding the dynamic IP address allocation for each container where a Solr instance stores the last used IP address. Retested it with the latest commit that uses fixed host names and encountered no more issues - it works like expected now.


TypeScript support

Hello,
We are looking to explore your implementation of Confidential Storage to potentially integrate it into our product. But so far JS/TS makes the core of our stack.
Fo that reason, we wonder if you already work or have a plan to release TS library for "Storage Kit Client (Client)" and "Service wrapper (Service)" anytime soon?
Looking forward to your reply and trying out this kit.
Regards,
Alex

One of our long-term goals is to move towards Kotlin Multiplatform, as this would allow us to also have the target platforms JS and native. However, right now the libraries we depend on are from the JVM ecosystem.


Update Signer and artifacts to use the new Account API

Migrate to camelCase, following https://github.com/OpenZeppelin/cairo-contracts/issues/382.

Fixed by #184


Default Box Size setting doesn't apply on client restart

Whenever I load RuneLite, my "Default Box Size" setting is correctly set to what I want, but the actual visual size of the box is the default of 25. I have to manually change the setting up and down to 'activate' it again.

Yes you're right. I just fixed it, It should work whenever the update gets pulled


Another process is running(terraform lock is found). Please wait till it completes

Due to bad internet connectivity my destroy got stopped in between .
and now when i am trying to destroy again .
Error : Another process is running(terraform lock is found). Please wait till it completes
How to find that lock here.

Go to pacbot/installer/data/terraform folder
Delete file .terraform.tfstate.lock.info

Thanks it worked.


Increase limit on open files allowed as a service

This is a better default as traffic server tends to need a lot of files

[approve ci autest]


Remove deprecated GPUStatsMonitor callback

What does this PR do?

Fixes part of #12521 remove pytorch_lightning.callbacks.gpu_stats.GPUStatsMonitor
resolves #9924
Before submitting

[x ] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x ] Did you read the contributor guideline, Pull Request section?
[ x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[x ] Did you make sure to update the documentation with your changes? (if necessary)
[ ] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you list all the breaking changes introduced by this pull request?
[x] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[ x] Check that all items from Before submitting are resolved
[x ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃

should I remove the tests.helpers.runif.RunIf import in test_remove_1-7.py so the pep8 check works in the pre-commit test?
tests/deprecated_api/test_remove_1-7.py:42: [F401] 'tests.helpers.runif.RunIf' imported but unused

should I remove the tests.helpers.runif.RunIf import in test_remove_1-7.py so the pep8 check works in the pre-commit test?
tests/deprecated_api/test_remove_1-7.py:42: [F401] 'tests.helpers.runif.RunIf' imported but unused

@rschireman Yes, please remove the import statement there! Thanks for checking :)

@awaelchli  Thanks for removing that import! Now the TPU test is failing -- I looked through the output and couldn't find where it failed, only that it failed on deploying to the Kubernetes cluster. I also noticed that my other pull request (#12658) has this issue. Any thoughts?

Hi! Is there anything implementing the functionality of GPUStatsMonitor? I logged DeviceStatsMonitor but I got 125 plots (x2), and I'm not sure any of them is relevant to GPU memory_utilization and gpu_utilization


Keychain retain a nil after long time in background

Hi,
I have a serious inconsistent problem when the app long time in the background.
In my app I save the user finger print in the keychain, when the app launch (at didFinishLaunchingWithOptions funk) I check if the is a finger print saved in the keychain, if there isn't finger print saved in the keychain I replace my Main story board with the Register storyboard.
Note: I also save a flag in the NSUserDefault to check if this is a first launch in order to reset (clear all the data) the keychain if it's a first launch.
The problem is, after a long time in the background (sometimes not all the time) when I open the app the Register Storyboard appear. Means the app terminates by the OS in the background and there isn't finger print in the keychain.
In the beginning I thought the finger print was removed from the keychain, but, if I terminate mentally  the app and open it again, everything is good and the main story board appears as expected.
Note:
The fingerprint is a String and I saved it in the keychain without any Access key.
Any idea?
Thanks

Hi, this is a very serious Keychain problem, thanks for raising this up. I
noticed it myself many times in the past. Keychain sometimes returns an
error when I try to retrieve a value from it. There are many people
struggling with issues that may be related to your problem. I do not have a
solution, unfortunately.
https://forums.developer.apple.com/thread/4743
https://github.com/kishikawakatsumi/UICKeyChainStore/issues/20
https://github.com/soffes/sskeychain/issues/75

Thanks :)

@GuyKahlon I am facing the exactly same thing with UICKeyChainStore library.

Anybody find a fix for this?   I am having identical issue.

Hi there,
AFAIK the problem is it takes time to decrypt the key chain. If you have your AccessOption set to accessibleWhenUnlocked and try to read app delegate didFinishLaunchingWithOptions than it could happen that you get nil as the data is not decrypted.
Solution would be to either switch to less restrictive AccessOption, or to access the values in the keychain a bit later. Giving the key chain time to decrypt.
This is what helped me at least.

I can confirm this occurs no matter what the access level is. We have 1.5-2mil background wakeup events a day. Of those, ~5% of users who do have a user fingerprint stored in their keychain will get a nil value.

@RamblinWreck77, that's good to know. We can discuss your background access problems in #78.

Hi, I'm facing this problem, after many hours of inactivity, when I open the application, my manager fails to retrieve the refreshToekn from the keychain and the user is redirected at the login page.
Any tip?

Hi, I'm facing this problem, after many hours of inactivity, when I open the application, my manager fails to retrieve the refreshToekn from the keychain and the user is redirected at the login page.
Any tip?

Is your manager called from AppDelegate?
You need to delay the call some how, AFAIK it's all about timing, the keychain needs time to be decrypted, if it is not yet decrypted it will return nil. So my tip is: either delay the whole thing, or implement a retry, if values are nil for a couple of times.

Nop, not always is called from the appDelegate. And this is very hard to debug so I think I will move to realm encrypted

Possible unconfirmed workaround is here.

I am also having issues now. It's really intermittent and I can't reproduce it. Some users have the issues, some don't.
What I see is that somehow I think it's related to the app being in the background and then an update (to keychain) occurs.
I am gonna add extra logging to see if I can manage to capture where it's happening. I've also streamlined the saving of the keychain so that I don't have multiple calls to it in succession.
with regard to the possible solution - https://github.com/evgenyneu/keychain-swift/issues/78#issuecomment-495959391
This seems to only to do when a notification is received right? My App is basically updating some in-game-currency to the keychain every 60s and doesn't receive any notifications

@app4g Facing the same issue. Do you have any findings to share from the additional logging?

@sincychacko-frollo What I essentially did was to make sure only 1 instance of command to update the keychain is done at any one time and some caching of the data into memory.
After multiple iterations, I think It's resolved.


Do we have to ask for permission or does this library handle it?

Summary
In an older RN version where we use react-native-map version 0.30.1 - we don't have to manually ask for permission. We only have the prop showsUserLocation. But do we have to ask for location permission in the latest version of react-native-maps?
Thank you!
Reproducible sample code
<MapView
        showsUserLocation
        initialRegion={{
          latitude: locations[0]?.lat,
          longitude: locations[0]?.lng,
          latitudeDelta: 0.3,
          longitudeDelta: 0.4,
        }}
        style={styles.map}>
        {locations.map((marker, index) => (
          <Marker
            key={index}
            coordinate={{ latitude: marker.lat, longitude: marker.lng }}
            title={marker.name}
            description={marker.streetAddress}
          />
        ))}
      </MapView>

Steps to reproduce
showsUserLocation does not trigger location permission question. Don't know if this is expected or not.
Expected result
Not sure...
Actual result
No permission question.
React Native Maps Version
1.3.1
What platforms are you seeing the problem on?
iOS (Apple Maps)
React Native Version
0.69.3
What version of Expo are you using?
Not using Expo
Device(s)
iPhone 13 Pro
Additional information
No response

Hi @miladdev85 👋
Please check out releases or the changelog file. [Hint: v1.0.0] :)


Sorry, I made a mistake. The currency unit of the shopping cart can only be changed by cartBuyerIdentity, not in the graphql parameter.

It is invalid to use countryCode.
cartBuyerIdentityUpdate
mutation
Updates customer information associated with a cart. Buyer identity is used to determine international pricing and should match the customer's shipping address.

When a cart is created in a country context, the resulting response is in the specified country’s currency.

Sorry, I am not getting what exactly is the issue here.
Would you like to make it brief?

I mean that countryCode can only take effect when the shopping cart interface is created in the shopping cart, and other interfaces of the shopping cart are useless, so there is no need to add internationalization.

ok


[TTS]synthesize_e2e.py使用use_rhy=True报错,错误位置rhy_predictor.py, line117，text += self.punc_list[l]. IndexError：list index out of range。请问怎么解决

For support and discussions, please use our Discourse forums.
If you've found a bug then please create an issue with the following information:
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

OS: [e.g. Ubuntu]
GCC/G++ Version [e.g. 8.3]
Python Version [e.g. 3.7]
PaddlePaddle Version [e.g. 2.0.0]
Model Version [e.g. 2.0.0]
GPU/DRIVER Informationo [e.g. Tesla V100-SXM2-32GB/440.64.00]
CUDA/CUDNN Version [e.g. cuda-10.2]
MKL Version
TensorRT Version

Additional context
Add any other context about the problem here.

建议使用最新代码


Shortcuts for executables and tests

I think it would be nice to have shortcuts for defining executables and tests (and probably benchmarks too). Pretty much every package I define with executables and tests looks like this:
name: some-package
library: ...
executables:
  some-package: ...
tests:
  test: ...

That is, I have a single executable with the same name as the package and a single test suite with the name "test". I always wish it could be shortened to this:
name: some-package
library: ...
executable: ...
test: ...

The top level executable: x would be transformed into executables: { some-package: x }, and the test part would do the same.
Is there any interest in this feature?

Hi!  Sorry for the late reply.  I'm on the fence with this one.  I see how this is convenient but there are also costs / downsides:

code complexity
more complex user documentation
what happens if both executable and executables is specified?

That said, I see the biggest benefit for executable, as here we actually have duplicated information that we would like to DRY up (package name and executable name are the same, but we specify it twice).
For tests and benchmarks the benefit is less clear to me, as I see it we would mainly save one line in the package description.
Given this, I would be interested to see an implementation for executable first, before making a final call.

Fixed by f405602e564ba890921f3c6fec01908b771b1541 and fda6b8be03a23395f59e7950c258bf8b328e0faa. See also #177 and #178.


Use explicit URI#open.

clementine-latest.rb
emacs-nightly.rb
exist-db-nightly.rb
gpg-suite-nightly.rb
kicad-nightly.rb
mcrl2-nightly.rb
sequel-pro-nightly.rb
transmission-nightly.rb
vlc-nightly.rb
webkit-build-archive.rb

style only complains about some of them but I think they all need to be fixed.
== clementine-latest.rb ==
C:  9: 12: Security/Open: The use of Kernel#open is a serious security risk.
== emacs-nightly.rb ==
C:  8: 12: Security/Open: The use of Kernel#open is a serious security risk.
== exist-db-nightly.rb ==
C: 10: 29: Security/Open: The use of Kernel#open is a serious security risk.
== kicad-nightly.rb ==
C:  8: 12: Security/Open: The use of Kernel#open is a serious security risk.
== transmission-nightly.rb ==
C:  8: 12: Security/Open: The use of Kernel#open is a serious security risk.
== vlc-nightly.rb ==
C:  8: 12: Security/Open: The use of Kernel#open is a serious security risk.
== webkit-build-archive.rb ==
C: 13: 12: Security/Open: The use of Kernel#open is a serious security risk.


Poisson regression

Poisson regression is great for predicting counts, and I think it would nice to have to it in creme. In principle this should reuse most of the code from LinearRegression. A good way to validate the model would be to show that it performs better on the fetch_bikes dataset.

Given the code reuse, I wonder if there should be a unified API for generalized linear models?

Indeed I was thinking the same thing. I think that a good idea would be to only have a LinearRegression and a LogisticRegression. Adding more classes adds cognitive load to users, which I don't believe should be our philosophy. On the other hand, if we had a single LinearModel class then it would be full of ifs to handle the regression/classification differences.

I think it's a good idea to keep the two most widely used models as separate classes. For other we could do something like GLMRegressor and GLMClassifier, of course these should also implement linear and logistic regression a as base cases respectively.

I took a go at making a GLM class, but in the end I don't think it's a good idea. The trick is that we want to be able to treat regression differently from classification because of the intercept. This is specific to creme and the way we do things, and is a little complicated to explain.
As for Poisson regression, we simply want to implement the Poisson loss function in the optim module.

@MaxHalford interesting, is there some reading material related to this?

This page is good, especially the last paragraph. The way Léon Bottou (and scikit-learn) propose to update the intercept works well for classification. But in practice I've observed that for regression using a running average of the target works better.

Done! I used VW's example notebook for testing.