Participate in Ockham Criteria?

We ran the SATE V Ockham Sound Analysis Criteria to better understand sound analyzers. Would anyone be interested in running Infer for another Ockham? Basically that consists of running an analyzer on a substantial set of code that we select and sending us the results. We'd also appreciate answering questions about details of the results that arise.
-paul-
<EMAIL_ADDRESS>

@brotherpaul143 Thanks for your interest in Infer. Perhaps there is some oversight, but as far as we understand Infer does not satisfy the SATE criteria. Infer produces two basic forms of output: 1) specifications of procedures / functions / methods, and 2) issue reports for property violations. Only the inferred specifications are claimed to be sound (subject to some idealistic and optimistic assumptions). Here the notion of sound is that from the logical tradition. In particular, if infer produces {P} f(x) {Q}, then soundness means that execution of f from any state satisfying P does not crash and unless it diverges, the state after f returns satisfies Q. The reports of property violations are produced primarily from failed proofs of such specifications. There is no definition of correctness for these reports, let alone a claim of soundness for them.

The Ockham criteria was established to highlight the strength of analyzers using rigorous inference, in contrast to those that use heuristics. It does not require that all results be absolutely correct (halting problem, after all). Rather, are there some results that are correct? Since Infer results of {P} f(x) {Q} are always correct, given the qualifications you mention, I believe Infer would be consonant with the goals of Ockham.

@brotherpaul143 it seems that Infer and SATE use two opposite definitions of correct/sound. From your website:
"1. The tool is claimed to be sound."
and
"Sound means every finding is correct. The tool need not produce a finding for every site; that is completeness."
This is simply not the case for Infer: reports made by Infer may not correspond to an actual weakness in the code.
Note that Infer is sound in the logical sense, which seems to correspond to your notion of "completeness": if Infer doesn't report on a procedure, then that procedure has no bugs (as @jberdine said, "subject to some idealistic and optimistic assumptions"). Infer reports a bug when it fails to prove that a procedure has no bugs (and when Infer's internal heuristics suggest that it may correspond to a real issue, otherwise Infer would be too noisy), not when it can prove that a procedure definitely has a bug.

I agree with you, @jvillard   Please note that Ockham uses the term "finding". The use of "finding" allows an additional level of interpretation. As you point out, "if Infer doesn't report on a procedure, then that procedure has no bugs". The lack of a report is a finding for Ockham's purposes. That is, users can absolutely depend on the fact that no bug reportfrom Infer  means that the procedure is bug-free "subject to some idealistic and optimistic assumptions", as @jberdine said.
Infer is welcome to participate in Ockham.

It is unclear how Infer's "findings" could be evaluated or validated.  For example, suppose that for a function f Infer computes a specification {P} f(x) {Q}.  If Infer is wrong, how can this be demonstrated?  It seems that it would finding a state that satisfies P from which executing f(x), subject to Infer's idealistic and optimistic assumptions, either crashes or returns in a state that does not satisfy Q.  No mechanized way of doing this is known.  Do you have something else in mind?

@jberdine asks, "Do you have something else in mind?" Yes. There are lots of steps and checks and details and caveats and conditions, but the basic outline is as follows. We choose a test suite with known bugs. If Infer fails to report a bug, then it doesn't satisfy the SATE VI Ockham Criteria.
I appreciate @jberdine and @jvillard responding to my inquiry. I'm a little surprised with what I perceive as the reluctant attitude. I should think the community would be excited to demonstrate the strengths of Infer. Thank you for your time and patience with me.

@brotherpaul143, Thanks for bringing this up, and I don't mean to be off-putting.  What you're interpreting as reluctance is more wariness, and the expectation that the reality of how gray questions of soundness and completeness are for tools like Infer undermines the viability of these sorts of exercises.  In particular, Infer uses both sound techniques and heuristics which are neither sound nor complete.  Additionally, Infer uses the classical logical notion of soundness, which seems to correspond more to what you term completeness.  Infer does not do any reasoning that fits what you term "soundness".  The other difficulty is that the logically robust reasoning that Infer does produces specifications that are used internally by Infer, but not directly reported to developers.  Evaluating the correctness of these specifications is nontrivial, since they are hypothetical statements with very involved premisses.

@brotherpaul143 I think a good summary is that Infer comes from sound design principles, makes unsound compromises and heuristics where it makes sense. In particular, Infer tries to maximize the value given to developers, over soundness or completeness concerns.
Now that all the provisos are out of the way, the main question is whether, given these provisos, you think that the results will be useful for SATE V. I guess this is for you to assess.

As a side note, I like to split things up in 2 separate aspects: report rate and fix rate.
Report rate measures how many defects that exist, are reported.
Fix rate measures how many reported issues are fixed by developers.
The reason for split things up in this way is that: first, the developer is part of the picture, the source of the value judgement. So the focus is to issue reports that bring value to the developer, as measured by the developer's willingness to act on the reports.
This set-up includes the situation with type checkers, that over-report by definition, but have a perfect fix rate (developers address type errors in order to compile the code).

@cristianoc thanks, I believe I understand now. Infer's approach sounds eminently practical. You're right though: with the heuristics filtering results before they reach the user, Infer is not a candidate for the Ockham criteria track in SATE VI. However, Infer would fit very well in other tracks in SATE VI.
Again, thanks for patiently answering my questions, @jberdine and @jvillard too.


Ignore angular attributes

But I can use [attr.alt] or [alt] in angular

Hi @splincode Thanks for the reporting! I never thought of using this project for angular.
Maybe we can support it by implementing options like the ones below.
i.e
{
   "@html-eslint/require-img-alt": ["error", {
          "substitute": ["[attr.alt]", "[alt]"]
     }],
}

great idea


Fully upgraded Oasis tile gives 4 food instead of 6

Here is the Oasis tile in question.  It has "RailRoad" and "Irrigation".

This tile is only giving 4 food instead of 6.  The government is Democracy.  Such tiles in Civilization give 6 food.

Here's a screenshot from Civilization showing a fully upgraded Oasis giving 6 food.

Related to #354, I'm going to re-check all terrain bonuses.


Bug: Credit card validation does not work with multiple card

PHP Version
8.3
CodeIgniter4 Version
4.5.1
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
macOS
Which server did you use?
apache
Database
No response
What happened?
Credit card validation does not work with multiple card:
'cardNumber' => [         'label' => lang('App.label_credit_card_number'),         'rules' => 'required|valid_cc_number[visa,mastercard]', ],
I receive an error from $this->validator->listErrors(): Validation.valid_cc_number
If add a custom error:
'cardNumber' => [         'label' => lang('App.label_credit_card_number'),         'rules' => 'required|valid_cc_number[visa,mastercard]',         'errors' => [             'valid_cc_number' => 'credit card number invalid.',         ],
in $this->validator->listErrors(): I can see the string: credit card number invalid, but I receive always an error.
Steps to Reproduce

Create a form with an input text.
Create a controller, for example for send an email, with a credit card validation. Something like: valid_cc_number[visa,mastercard,discover].

Expected Output
The validation of more type of credit card.
Anything else?
No response

This is not a bug.
The valid_cc_number rule does not accept multiple types.
https://codeigniter4.github.io/CodeIgniter4/libraries/validation.html#rules-for-general-use


Permission exceeded while importing categories

Description
I want to create categories with the npm package category-sync. So I created a CSV with two lines
category.csv
"parentId","name.de-DE","slug.de-DE"
"","Damen","damen"
"damen","Taschen","taschen"

It works if I upload it via the browser in https://impex.commercetools.com/commands/category-import . So there should be no issue with the csv.
Now I want to upload it via the npm package with following command
.bin/category-sync import --projectKey 'xxx' --clientId 'xxx' --clientSecret 'xxx' --f category.csv --language 'de-DE' --parentBy 'slug' --continueOnProblems

An the following error appears:
{"name":"sphere-category-sync-1.2.2","hostname":"xxx","pid":xxx,"level":xxx,"data":{"body":{"statusCode":400,"message":"Permissions exceeded","errors":[{"code":"invalid_scope","message":"Permissions exceeded"}],"error":"invalid_scope","error_description":"Permissions exceeded","originalRequest":{"endpoint":"/categories?where=externalId%20in%20(%22undefined%22)&sort=id%20asc",...}

So it looks like the permission is not correct. But the API key gets the following permissions: manage_products, view_published_products, view_products like its written in the top right corner on  https://impex.commercetools.com/commands/category-import .
So in the next step I expanded the permissions for the API key. Now I added ALL permissions and executed the command with the new credentials. And it worked!
After a couple of retrys I found out, that the required permission is manage_project. If this is not set, it doesn't work.
Expected Behavior
If my API key got the manage_products, view_published_products, view_products it should not throw an permission exceeded error but should work instead.
Current Behavior
It throws an error until you grant manage_project access.
Context
I have to grant the "admin"-permission for an simple importer script. That' not what I want - because of security reasons
Possible Solution
Sounds like a bug?

I just double checked with API docs and it seems like we there is no category targeting scope. Category is a separate resource on the platform and just referenced from a Product. So, the error seems to be reasonable.
I'd go ahead and raise a feature request on the platform level to introduce a manage_categories and view_categories scopes.

Cool! Thank you @LEQADA! I look forward to hear from you if there will be a progress 🙂

@Tobi-mmt it would be better if you can describe your case to support, so they can raise the request to the platform team.
Once they add a category scope you can use it right away - no changes needed in this repository.


Expand article to include an example

Expand article to discuss downward flow of data when using props, and to include an example.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Under our policy on plagiarism, we cannot include this, I'm hence closing the PR

Wow, five months later. I forgot about this.
The cited example is from the React official documentation which is available to be used in this fashion under its license if you care to read it.
https://github.com/facebook/react/blob/master/LICENSE
Not plagiarism.

I'm sorry, yes, you're right, I'm reopening the PR and requesting some changes, please go ahead and make those

@thecodingaviator PR has gone stale.

Hi,
As there has been no response from your end for a while, we are closing this PR.
Feel free to request this PR to be reopened, if you still wish to make the changes you originally added.  Also, remember to update your fork, so you have the latest version of master in case it has changed significantly.
Happy Coding! ✈


Vanilla project created from start.spring.io fails to start

I've created a simple Spring project, using a project generated from start.spring.io.
The following exception is raised when running the native build:
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start reactive web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nettyReactiveWebServerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/reactive/ReactiveWebServerFactoryConfiguration$EmbeddedNetty.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'reactiveWebServerFactoryCustomizer' defined in class path resource [org/springframework/boot/autoconfigure/web/reactive/ReactiveWebServerFactoryAutoConfiguration.class]: Unsatisfied dependency expressed through method 'reactiveWebServerFactoryCustomizer' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'server-org.springframework.boot.autoconfigure.web.ServerProperties': Initialization of bean failed; nested exception is com.oracle.svm.core.jdk.UnsupportedFeatureError: Proxy class defined by interfaces [interface org.springframework.beans.factory.annotation.Qualifier, interface org.springframework.core.annotation.SynthesizedAnnotation] not found. Generating proxy classes at runtime is not supported. Proxy classes need to be defined at image build time by specifying the list of interfaces that they implement. To define proxy classes use -H:DynamicProxyConfigurationFiles=<comma-separated-config-files> and -H:DynamicProxyConfigurationResources=<comma-separated-config-resources> options.

I've tried using spring-boot-starter-webflux, and spring-boot-starter-web (both with and without tomcat-embed-programmatic).  On the spring web one, I'm seeing a similar error with org.springframework.boot.autoconfigure.web.ServerProperties.
I see the maven spring-aot plugin generating sources, and have confirmed it includes ServerProperties in my target dir.  I've also tried to manually add the native-hint to it to no avail.
When the application starts, I see:
2021-03-23 12:51:56.729  INFO 1193069 --- [           main] o.s.nativex.NativeListener               : This application is bootstrapped with code generated with Spring AOT

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.4.4)

This output is telling me that spring native is working somewhat, but it also suggests that the native-image confs aren't being used correctly, as I don't see a replaced banner.txt even though I've confirmed it is included in the native-image confs.
Turning verbose on for native-image-maven-plugin is showing the arguments pointing to the generated native-image confs are being passed.
I'm at a place where I'm sort of stuck as to the next best advice for troubleshooting this.

Hey. We can at least make a little progress I think. I see the message about [interface org.springframework.beans.factory.annotation.Qualifier, interface org.springframework.core.annotation.SynthesizedAnnotation] proxy missing. Let's create that and see if it gets further.
You could open up your app and create a ProxyHint on the SpringBootApplication:
@ProxyHint(types={Qualifier.class,SynthesizedAnnotation.class})

(with the necessary imports). does that help?
Could you share the kind of configuration you are using - are you using the @Qualifier annotation anywhere? (Trying to work out if it is your app or infrastructure that is misbehaving). Going as far as sharing your complete failing project would be super helpful.

Adding that ProxyHint seemed to do the trick to get past that runtime error.
I'm not using @Qualifier anywhere, this is just a simple hello world app made from initializer.
Given this was thrown by factories in both spring-boot-starter-webflux and spring-boot-starter-web, perhaps a rule for this makes sense in spring-native?

I added the simple hint. In some ways I feel it could be inferred but adding it directly is the tactical quick fix right now.


Thanks for implementing my previous request.
I got an idea. Could you add mass delete to all images with aesthetic score lower than X? And possibility of manually overriding the aesthetic value.That would be an awesome feature.
Imagine this workflow: we could mass produce 500 images then have your app delete all bad ones, with aesthetic value!
Thanks a million again!!

I'd rather have a standalone rating than override the aethetic score, i.e. overwrite what's in the PNG., unless you want to use this overridden value outside of Diffusion Toolkit. There is already some infrastructure in place already to store the rating, I just need to decide if it's 1-10, 1-5, and how to display it on screen without cluttering the UI.
I'll think about deleting. Maybe have some sort of filtering selector that tags all matches for deletion, then you can go in and review what was selected.

1-10 gives more freedom to users.
It would be nice to override the aesthetic score if it is wrong and just work with this score as the default score, that is used as your intial starting score.
You could have a delete button for all filtered photos.

Kind of implemented in v0.9
Search via query or use a filter, then go to Tools > Mark all matching files for deletion.  When satisfied,  Edit > Empty Recycle Bin


J2CL Now & Next

By popular request, I am listing the things that J2CL team is actively working on apart from continuous improvements and maintenance and what to expect in the next quarters:
Last Edit: Aug 2, 2022
Now

[ ] Improve WASM GC spec, tooling and J2CL experimental Wasm backend
[ ] Support Kotlin language

Next

[ ] Reduce limitations on @JsEnums
[ ] Finalize supported Enum/EnumSet APIs
[ ] Investigate embedding GwtIncompatibleStripper step into J2CL
[ ] Implement testing support for Open Source
[ ] Add periodic auto-tagging for Open Source for versioned releases

Later

[ ] Enable RTA pruning for Open Source development
[ ] Add ability to run JsInteropRestrictionChecker as an ErrorProne plugin
[ ] Optimize Dagger to be more efficient with J2CL
[ ] Switch default fronted from JDT to Javac
[ ] Remove boxing from long (similar to double/Double)
[ ] Support for Java 17

Completed in previous quarters

[x] Java 11 support (completed, waiting Bazel release)
[x] First-class support for JSR nullability
[x] Optimize AutoValue to be more efficient with J2CL
[x] Improve code generation Java enums to reduce code size
[x] Add experimental Wasm backend
[x] Switch to Bazel TreeArtifacts
[x] Overhaul bridge calculate&creation to fix related bugs and reduce code size
[x] Fix overflow for integer arithmetic
[x] Improve JsCompiler optimizations
[x] Switch to Bazelisk by default

Note:
The J2CL code is production ready and battle tested with Google Apps for years. Only open-source tooling is missing some workflows. All of our improvements to the released code are in sync with Google and you are getting the improvement at the same time as Google gets.
At the moment for J2CL, we are only planning to do dated releases (instead of semantic versioning like v1) and make more tools work in open source over time.

Are you planning gradle support ? Bazel is not known to any IDE.

https://docs.bazel.build/versions/master/ide.html ?
(my main problem with the IntelliJ IDEA plugin though is that it's currently not compatible with latest IDEA 2020.2: https://github.com/bazelbuild/intellij/issues/1998)

i would love to see some gRPC support on this list :)

Are there any workarounds how to run tests, before  j2cl_test ll be ported ? It's a critical feature

Java 17 LTS version has been released, so, any plans to support it?

Any update on Kotlin support? That would be amazing and java projects are increasingly hybridized with Kotlin

We just started Kotlin work. Our goal is to have something usable by end of the year.

@gkdn that is amazing to hear but Kotlin JS is officially developed and has an excellent and mature support for transpiling Kotlin to JS (and generating typescript types)
However while kotlin multiplarform/js is great, and while j2cl allow to transpire Java to js, I feel like the main area of improvement would be for J2CL to leverage Kotlin js transpiling ability and to be interoperable with the generated js from Java.
If you could work on making it easier to have hybrid Kotlin-Java projects that target js that would be amazing, maybe that the biggest issue is about IDE supports at the boundaries (Kotlin js will not allow calling java code even if this java code transpile to J2CL). Improving this IDE interop between Java and Kotlin JS should be possible in theory, either by contributing directly to the Kotlin js compiler or by making a Kotlin compiler plugin (note that the replacement API for the new Kotlin compiler (K2) is in active development https://youtrack.jetbrains.com/issue/KT-49508
)
BTW since you work at Google, maybe you could contact one of the official Google kotlin devs, as you can see here: https://kotlinlang.org/docs/kotlin-foundation.html#current-personnel
for some guidance.
The best would be to contact Roman Elizarov or to open a youtrack ticket for a collaboration :)
Anyway just my two cents on how to achieve the best of both worlds.

Our high demanding customers relies on very Closure style centric Google JavaScript stack (which J2CL is optimized for) and they count every single byte for performance. Unfortunately Kotlin/JS output doesn't match our needs and sometimes in a way that might be contradicting with the Kotlin open-source users needs who rely on different JavaScript stacks.
So for now our main focus we will be enabling Kotlin to those customers. Being said that I already met with Roman on this and we are in contact with JetBreains. We will be still looking into bringing the two worlds together in the long run.

@gkdn I suppose you could apply a post processing step to the generated kotlin-js by feeding it to Closure. You could also work on improving the efficiency of the IR backend.
But sure feel free to implement your own incompatible transpiler.

@gkdn just in case, do you have any updates about testing support for Open Source ?

We have an intern working on it at the moment but we will see how it will turn out.

We have an intern working on it at the moment but we will see how it will turn out.

ok, and i suppose you have a deadline right ?

Should be within 2 months; if the project is successful.

Should be within 2 months; if the project is successful.

It looks like it failed ... So pity :(

Actually basic unit testing support is released, sample app and getting started code is updated accordingly.
I haven't closed the task since it still doesn't support test suites but I will update the notes.

@gkdn Do you plan to add support for the following methods from Java 9-11?
Stream: takeWhile, dropWhile, ofNullable, and iterate
String: isBlank, lines, repeat, strip, stripLeading, and stripTrailing
List/Set/Map: copyOf
Collectors: toUnmodifiable*
And if not, can we make a PR?

String.repeat is indeed already implemented - but can you direct us how to run its tests? (I assume tests are required for such submissions, even though it wasn't on your list ;). )
I see that jre/javatests/com/google/j2cl/jre/java/lang/StringTest.java has a testRepeat method, but there don't seem to be any bazel targets to run individual test classes. https://github.com/google/j2cl/issues/93#issuecomment-1416544473 says (and seems to still be correct) that suites cannot run, and only jre/javatests/com/google/j2cl/jre/LangSuite.java references StringTest.
Here's the other things I tried, just in case I missed the obvious:
I noticed that LangSuite is referenced by the Lang j2cl_multi_test in jre/javatests/BUILD`, but running that results in
$ bazel test //jre/javatests:Lang
ERROR: Skipping '//jre/javatests:Lang': error loading package 'jre/javatests': Label '//javascript/tools/jscompiler/builddefs:flags.bzl' is invalid because 'javascript/tools/jscompiler/builddefs' is not a package; perhaps you meant to put the colon here: '//:javascript/tools/jscompiler/builddefs/flags.bzl'?
ERROR: error loading package 'jre/javatests': Label '//javascript/tools/jscompiler/builddefs:flags.bzl' is invalid because 'javascript/tools/jscompiler/builddefs' is not a package; perhaps you meant to put the colon here: '//:javascript/tools/jscompiler/builddefs/flags.bzl'?
INFO: Elapsed time: 0.207s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
    currently loading: jre/javatests

Typically when we see //javascript labels, or references at all to jscompiler, it means that this isn't available to be run outside of Google. Removing that import line
load("//javascript/tools/jscompiler/builddefs:flags.bzl", "VERBOSE_WARNING_FLAGS_STRICT", "WHITESPACE_ONLY_FLAGS")

and all of the conformance test wiring that depends on it at least advances us to a new error:
$ bazel test //jre/javatests:Lang
ERROR: Skipping '//jre/javatests:Lang': error loading package 'jre/javatests': Label '//third_party/bazel_rules/rules_closure/closure:defs.bzl' is invalid because 'third_party/bazel_rules/rules_closure/closure' is not a package; perhaps you meant to put the colon here: '//third_party:bazel_rules/rules_closure/closure/defs.bzl'?
ERROR: error loading package 'jre/javatests': Label '//third_party/bazel_rules/rules_closure/closure:defs.bzl' is invalid because 'third_party/bazel_rules/rules_closure/closure' is not a package; perhaps you meant to put the colon here: '//third_party:bazel_rules/rules_closure/closure/defs.bzl'?
INFO: Elapsed time: 0.068s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
    currently loading: jre/javatests

Fortunately this is also not terrible to fix: there are two separate load() calls for closure_js_binary - removing the second one still leaves the first (though to just run Lang, I've commented out both of them).
Next, I was getting this error:
$ bazel test //jre/javatests:Lang
ERROR: Traceback (most recent call last):
        File "/home/colin/workspace/j2cl/jre/javatests/BUILD", line 85, column 16, in <toplevel>
                j2cl_multi_test(
        File "/home/colin/workspace/j2cl/jre/javatests/j2cl_multi_test.bzl", line 50, column 25, in j2cl_multi_test
                j2kt_native_test(
        File "/home/colin/workspace/j2cl/build_defs/internal_do_not_use/j2kt_test.bzl", line 16, column 21, in j2kt_native_test
                j2cl_test_common(
        File "/home/colin/workspace/j2cl/build_defs/internal_do_not_use/j2cl_test_common.bzl", line 274, column 13, in j2cl_test_common
                fail("Unknown platform: " + platform)
Error in fail: Unknown platform: J2KT-NATIVE

It looks like j2cl_multi_test itself isn't able to run in open source due to J2KT-NATIVE platform not being populated? The code only has branches for CLOSURE and WASM. Next I took the drastic step of removing all j2cl_multi_test (getting past the point of what I could comfortably suggest might even make sense to commit...), and instead wrote a custom test target:
j2cl_test(
    name = "Lang",
    test_class = "com.google.j2cl.jre.LangSuite",
    runtime_deps = [":emul_tests_lib"],
)

This hit compile errors, oddly - it seems that emul_tests_lib itself isn't set up properly? How can this run inside of Google at all? Or do you have entirely separate BUILD files (not just BUILD vs BUILD.bazel), and the checked in BUILD is never used?
To fix, I changed my approach, not trying to run tests at all any more, but just get them to build, via bazel build //jre/javatests:emul_tests_lib.
First I had to add //third_party:jspecify_annotations-j2cl to the deps list. Next, it seems that the list of disabled errorprone checks in emul_tests_lib is inconsistent with currently checked-in code - TreeMapTest.ConflictingKey either needs a SuppressWarnings on it, or a flag passed to errorprone - I opted for -Xep:ComparableType:OFF, as that seems to be the convention.
At this point, emul_tests_lib can succeed in building.
Next, I tried to build (not test) the modified Lang rule above - this failed with a confusing message:
ERROR: /home/colin/workspace/j2cl/jre/javatests/BUILD:129:10: Executing genrule //jre/javatests:genLang_test.js failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)

        FAIL: j2cl_test currently supports testing with a single testsuite only.
        IF YOU HAVE MULTIPLE TESTSUITES, WE DO NOT KNOW IF ALL OF YOUR TESTS PASS OR NOT!

Is it accurate to say that suites don't work, but a single suite would? Regardless, I changed my custom rule to only run StringTest:
j2cl_test(
    name = "StringTest",
    test_class = "com.google.j2cl.jre.java.lang.StringTest",
    runtime_deps = [":emul_tests_lib"],
)

This passed a bazel build finally, but tests fail (specifically testIndexOfNull).
-> 02:03:46.792 : Running test: testIndexOfNull
-> $module$exports$junit$framework$Assert$impl$m_fail__java_lang_String__void$$@http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:1832:421
-> $testIndexOfNull$@http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:4879:179
[native code]
$invokeFunction_$@http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:3869:42
$safeRunTest_$@http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:3855:32
[native code]
$goog$testing$TestCase$Continuation_$run$$@http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:4226:99
http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:3780:167
[native code]
$goog$testing$TestCase$Continuation_$run$$@http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:4226:99
http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:3778:47
$goog$Promise$$@http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:2631:32
$JSCompiler_StaticMethods_runTestsReturningPromise$$@http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:3777:22
$JSCompiler_StaticMethods_JSC$2497_execute$$@http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:5582:159
http://localhost:50362/filez/com_google_j2cl/jre/javatests/StringTest_bin.js:5714:53
-> 02:03:46.793 : testIndexOfNull : FAILED

Is there an easier way to go about running tests, so that we can migrate already-working java9-11 stream/optional/collection code into j2cl, complete with tests?
Would any/all of this be suitable for a contribution, so that a CI script could exist that runs these emulation tests, in anticipation of emulation patches?

The JRE unit tests are not ported to open-source so they would not work out of the box.
We are currently swamped with couple of a big projects but if you like to commit to the JRE emulation, the best I can offer at the moment is:

Patch https://github.com/gkdn/j2cl/commit/9c7e7805da8eb8a6a42c932d1d65a3c65657be78
Update StringTest in jre/javatests/BUILD with the class that you are testing.
bazel test jre/javatests:StringTest to run the test
bazel run jre/javatests:StringTest_debug and follow the link to run/debug on your browser.

If you have further questions, let's start a discussion in the discussions section.

Great, thank you @gkdn - different changes than I had made, but clearly solving the same issues. I appreciate the pointer to the _debug test target. @treblereel has submitted #222 with changes from GWT, verified in j2cl by running tests as you described.

As of https://github.com/google/j2cl/commit/1891f73b92ffebce86b6c761824b08317ee24e34, you don't need the patch to run JRE tests.
Added test target covers all supported platforms and cross tests with JVM for compatibility. Also includes instructions on how to debug.


High Level End-User Flow

Hey george! hope you're doing fine.
I was actually looking for a script like this only hopefully as I wanted to send commands over the internet to my 3D printer.
Could you please describe a high-level workflow for a starter end user somehow?
Because I am confused that If I need to connect my printer with my laptop still, and if we do so then how is the API interacting with the printer because as far as I know, the printer interacts with the laptop using serial ports only.
Thank You!

Hey there! Not the author but I thought I would chime in. The way this works is it connects to the printer over wifi using an exposed serial port that the printer uses to communicate with the software flashprint. Unfortunately, they use their own commands for things, so it's hard to implement. Not really sure what you mean by a high-level workflow, can you elaborate?


INTEL H610

h610 Which brand of motherboard model should I choose?

MSI or ASUS H610 motherboards are recommended.


Added the Bicep extension for VSCode

Overview/Summary
Added an entry in the extensions list
This PR fixes/adds/changes/removes

Added an entry in the extensions list

Breaking Changes
None
As part of this Pull Request I have

[x] Checked for duplicate Pull Requests
[ ] Associated it with relevant ADO items
[x] Ensured my code/branch is up-to-date with the latest changes in the main branch
[ ] Performed testing and provided evidence.
[ ] Updated relevant and associated documentation.

Can be closed. After re-reading I saw that the extension was already added to the "required tooling" list ;-)


⚠ Jenkins Plugins Artifactory has degraded performance

In 8a99a7d, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1183 ms

Resolved: Jenkins Plugins Artifactory performance has improved in b9a49fc after 12 minutes.


Waiting to fix the email problem!

Describe the bug
A clear and concise description of what the bug is.
Since September 2024, practically all email providers (hotmail/outlook, gmail, aol, yahoo .....) have blocked access with username & password.
What solutions/workarounds are there so that sending emails from ioBroker can be used or works again.
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 & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.
Versions:

Adapter version:
JS-Controller version:
Node version:
Operating system:

Additional context
Add any other context about the problem here.

duplicate #261

The problem is registers with #261 and will be fixed whenever a developer has time to pick it up. Any PR to solve the problem is welcome.
For Questions / Diskussion please use the forum (https://forum.iobroker.net)


feat: abstract interfaces for tasks

I'm not sure this is possible. E.g. say we want to create a ModelforMLM protocol like this:
class ModelForMLM(Protocol):
    def training_step(
        self,
        batch: BatchWithLabels,
        batch_idx: str,
    ):
        ...

This does not align with pl.LightningModule, since its training_step is type-hinted as:
def training_step(self, *args: Any, **kwargs: Any) -> STEP_OUTPUT:

If we want valid overrides, we cannot both inherit from pl.LightningModule and specify the required inputs in the ModelForMLM protocol. This is a meaningful problem for composability.
Maybe we could fix this with another layer of indirection by:

Subclassing pl.LightningModule:

class LightningModuleForMLM(pl.LightningModule):
    def training_step(
        self,
        batch: BatchWithLabels,
        batch_idx: str,
    ):
        ...

And then using that for inheritance:

class BEHRTForMaskedLM(ModelForMLM, LightningModelForMLM)

What do you think @KennethEnevoldsen?

Sounds great would love!

PatientSliceModule

(tror der kan laves en fælles for både finetuning module og MLM module)

Både BEHRTForMaskedLM og EncoderForClassification tager BatchWithLabels i deres training_step.
@dataclass
class BatchWithLabels:
    """
    A batch with labels.

    Attributes:
        inputs: A dictionary of padded sequence ids. Shape (batch_size, sequence_length).
        labels: A tensor of labels for the batch. Shape (batch_size, num_classes).
    """

    inputs: dict[str, torch.Tensor]
    labels: torch.Tensor

    def __iter__(self) -> Iterator[dict[str, torch.Tensor] | torch.Tensor]:
        return iter((self.inputs, self.labels))


Feature alignment

PR Type
[Feature | Fix | Documentation | Other() ]
Feature
Data preprocessing pipelines for tabular features alignment.
ClickUp: https://app.clickup.com/t/860q2qc3c
There is also an example under the examples folder which demonstrates the usage of this pipeline.
The ClickUp also includes two new subtasks that I think are the natural next steps following this PR.
Tests Added
test_alignment_pipeline.py

I think this is looking really good and I think you've improved the code readability a lot! Most of the comments that I left are pretty minor. One thing that we don't have any of is tests. I think it would be good for us to at least mock up some very small misaligned dataframes to make sure all of the transforms etc. work as expected.

I've now added some tests to test the basic functionality on some small dataframes.


Break up Leeds

Problem: it's huuuge and slow to run in dev mode

https://dabreegster.github.io/abstreet/howto/new_city.html#including-the-city-to-ab-street-more-permanently

https://dabreegster.github.io/abstreet/howto/new_city.html#including-the-city-to-ab-street-more-permanently

Brainwave on intuitive, need and semi-automated way to split it into 4 pieces, use parliamentary constituency areas, and add the centre to each one:

Brainwave on intuitive, need and semi-automated way to split it into 4 pieces, use parliamentary constituency areas, and add the centre to each one:

Result:

All the 4 new geojsons are:
https://github.com/ITSLeeds/leedsboundaries/blob/main/leeds_central.geojson
https://github.com/ITSLeeds/leedsboundaries/blob/main/leeds_east_edited.geojson
https://github.com/ITSLeeds/leedsboundaries/blob/main/leeds_north_edited.geojson
https://github.com/ITSLeeds/leedsboundaries/blob/main/leeds_west_edited.geojson
Next step: convert them into .polys and push them to the codebase. Any reminders on how to do that welcome but will save for another day! Progress...

Result:

All the 4 new geojsons are:
https://github.com/ITSLeeds/leedsboundaries/blob/main/leeds_central.geojson
https://github.com/ITSLeeds/leedsboundaries/blob/main/leeds_east_edited.geojson
https://github.com/ITSLeeds/leedsboundaries/blob/main/leeds_north_edited.geojson
https://github.com/ITSLeeds/leedsboundaries/blob/main/leeds_west_edited.geojson
Next step: convert them into .polys and push them to the codebase. Any reminders on how to do that welcome but will save for another day! Progress...

These look much more tractable! (pun intended, if census tracts are also UK terminology)
Next steps would be https://dabreegster.github.io/abstreet/howto/new_city.html#including-the-city-to-ab-street-more-permanently, but simplified because Leeds is already set up.

Use geojson_to_osmosis to get .poly's
Put them in importer/config/leeds/ and delete the old center.poly
Update nice_map_name
Run the importer locally to see how they turn out

After you send the PR, I can run the importer as well, and upload the pre-built maps to S3. (Ideally we would have some kind of automation do that for an approved PR, but that's barely on the radar right now.)

These look much more tractable! (pun intended, if census tracts are also UK terminology)
Next steps would be https://dabreegster.github.io/abstreet/howto/new_city.html#including-the-city-to-ab-street-more-permanently, but simplified because Leeds is already set up.

Use geojson_to_osmosis to get .poly's
Put them in importer/config/leeds/ and delete the old center.poly
Update nice_map_name
Run the importer locally to see how they turn out

After you send the PR, I can run the importer as well, and upload the pre-built maps to S3. (Ideally we would have some kind of automation do that for an approved PR, but that's barely on the radar right now.)

:+1: looking good, will try locally in a bit, chat soon!

:+1: looking good, will try locally in a bit, chat soon!


how use rename_key on ClusterFilter

Describe the bug
input like
{"ip":"<IP_ADDRESS>"}

output like
{"ipaddr":"<IP_ADDRESS>"}

configuration file like
<filter kubernetes.var.log.containers.**.log>
  @type rename_key
  enable_ruby true
  rename_rule1 ip ipaddr
</filter>

To Reproduce
how to use rename_key on ClusterFilter
Expected behavior
how to use rename_key on ClusterFilter
Your Environment
- Fluent Operator version:v1.0.0
- Container Runtime:docker
- Operating system:CentOS Linux release 7.9.2009 (Core)
- Kernel version:5.4.190-1.el7.elrepo.x86_64

How did you install fluent operator?
kubectl kustomize manifests/setup/ | kubectl apply -f -
What happened?
No response
Your Error Log
how to use rename_key on ClusterFilter

Additional context
No response

Does this plugin refer to fluentd's plugin? fluentd's plugin may not be perfect, more plugin integrations are in development, you can try this one: https://github.com/fluent/fluent-operator/blob/master/apis/fluentd/v1alpha1/plugins/filter/record_transformer.go

thk


Create Kadane_Algorithim implementation in C++

Please follow the Contributing Guidelines & naming conventions in the guidelines accordingly. 🙂
Following naming guidelines is important to maintain consistency.😊
Please NOTE: In case, same implementation of an algorithm is submitted by someone else and it gets accepted, then your contribution won't be merged ( to avoid duplicates )

I would love to take this up

I can do this too

@subhahu123 this isssue is still  pending ?

@ranaakash  yes

Is anyone working on this issue?

I would like to work on it.


Support new TH Clock Pro (LYWSD02MMC)

Do you have other BLE devices? Do you have BLE devices in child devices list for Gateway in MiHome app?

Yes, I have MJYD02YL-A and LYWSD03MMC, which are normal

After upgrading to the latest V3, LYWSD02 is still not recognized. MiHome app has always recognized and connected to DMWG03LM gateway

You need to collect basic logs from Gateway

No log related to it was found because this device was not found

If the device is not in the logs, the gateway does not see the device. And then I can't help you.

However, the device is indeed connected to the DMWG03LM gateway

So you haven't read the integration docs and are looking at the wrong logs

I'm looking at the log of/config/logs. Please tell me how to find the required log. Thank you!

I learned to check the DEBUG log. I can find the existing device, as shown below, but I can't find LYWSD02MMC. In the MiHome app, I confirm that it has successfully connected to the gateway
2023-01-22 15:24:20.862 DEBUG (MainThread) [pyhap.characteristic] set_value: Manufacturer to Xiaomi 2023-01-22 15:24:20.882 DEBUG (MainThread) [pyhap.characteristic] set_value: Model to ble LYWSD03MMC 2023-01-22 15:24:20.883 DEBUG (MainThread) [pyhap.characteristic] set_value: SerialNumber to sensor.a4c138991929_temperature 2023-01-22 15:24:20.883 DEBUG (MainThread) [homeassistant.components.homekit.accessories] sensor.a4c138991929_temperature: Found battery level

https://github.com/AlexxIT/XiaomiGateway3#integration-config

Thank you for your help. I can't find the problem. I gave up!

The device can be seen in MiCloud devices, but it is not in the list after adding a gateway
https://i.postimg.cc/zGby4Sxs/1.png
https://i.postimg.cc/nLKhtdBP/2.png

Cloud device list means nothing. You need to enable and collect gateway logs

2023-01-22 23:55:53,275 <IP_ADDRESS> [BASE] Stop all tasks
2023-01-22 23:55:53,285 <IP_ADDRESS> [BASE] MQTT disconnected
2023-01-22 23:55:53,288 <IP_ADDRESS> [BASE] Start main loop
2023-01-22 23:55:53,642 <IP_ADDRESS> [BASE] Prepare gateway mgw2 with fw 1.0.5_0008
2023-01-22 23:55:53,792 <IP_ADDRESS> [BASE] openmiio_agent: The latest version is already running
2023-01-22 23:55:53,895 <IP_ADDRESS> [BASE] 54ef4442fd45 (lumi.gateway.mcn001) setup gateway DMWG03LM: command, data, gateway
2023-01-22 23:55:54,176 <IP_ADDRESS> [BASE] 94f827b3fbf3 (1946) setup mesh DHKG02ZM: channel_1, channel_2, led, wireless_1, wireless_2, action
2023-01-22 23:55:54,177 <IP_ADDRESS> [BASE] dced8374f499 (2038) setup ble MJYD02YL-A: battery, light, motion, idle_time
2023-01-22 23:55:54,177 <IP_ADDRESS> [BASE] a4c138991929 (1371) setup ble LYWSD03MMC: temperature, humidity, battery
2023-01-22 23:55:54,177 <IP_ADDRESS> [BASE] a4c1380829c9 (9538) setup ble (9538):
2023-01-22 23:55:54,186 <IP_ADDRESS> [BASE] MQTT connected
2023-01-22 23:56:07,401 <IP_ADDRESS> [MQTT] miio/report b'{"id":2140419506,"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1cokilqpceg00","mac":"DC:ED:83:74:F4:99","pdid":2038},"evt":[{"eid":15,"edata":"640000"}],"frmCnt":131,"gwts":1674402965}}'
2023-01-22 23:56:07,401 <IP_ADDRESS> [BASE] binary_sensor.dced8374f499_motion | Extend delay: 90 seconds
2023-01-22 23:56:07,401 <IP_ADDRESS> [BLEE] dced8374f499 (2038) recv {'motion': True, 'light': True}
2023-01-22 23:56:07,441 <IP_ADDRESS> [MQTT] miio/report_ack b'{"id":2140419506,"result":"ok"}'
2023-01-22 23:56:10,460 <IP_ADDRESS> [MQTT] miio/report b'{"id":1969970507,"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1cokilqpceg00","mac":"DC:ED:83:74:F4:88","pdid":2038},"evt":[{"eid":4119,"edata":"00000000"}],"frmCnt":132,"gwts":1674402968}}'
2023-01-22 23:56:10,461 <IP_ADDRESS> [BLEE] dced8374f499 (2038) recv {'idle_time': 0}
2023-01-22 23:56:10,499 <IP_ADDRESS> [MQTT] miio/report_ack b'{"id":1969970507,"result":"ok"}'
2023-01-22 23:56:26,780 <IP_ADDRESS> [MQTT] miio/report b'{"id":526339510,"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1cokilqpceg00","mac":"DC:ED:83:74:F4:88","pdid":2038},"evt":[{"eid":15,"edata":"640000"}],"frmCnt":134,"gwts":1674402985}}'
2023-01-22 23:56:26,781 <IP_ADDRESS> [BASE] binary_sensor.dced8374f499_motion | Extend delay: 90 seconds
2023-01-22 23:56:26,781 <IP_ADDRESS> [BLEE] dced8374f499 (2038) recv {'motion': True, 'light': True}
2023-01-22 23:56:26,819 <IP_ADDRESS> [MQTT] miio/report_ack b'{"id":526339510,"result":"ok"}'
2023-01-22 23:56:29,841 <IP_ADDRESS> [MQTT] miio/report b'{"id":1562757511,"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1cokilqpceg00","mac":"DC:ED:83:74:F4:99","pdid":2038},"evt":[{"eid":4119,"edata":"00000000"}],"frmCnt":135,"gwts":1674402988}}'
2023-01-22 23:56:29,842 <IP_ADDRESS> [BLEE] dced8374f499 (2038) recv {'idle_time': 0}
2023-01-22 23:56:29,880 <IP_ADDRESS> [MQTT] miio/report_ack b'{"id":1562757511,"result":"ok"}'

I think I have fixed your device in latest master version. You can install it via HACS reinstall function. Or wait next release.
Are you sure you have LYWSD02MMC model? Do you have box or info on back?
I think you have new model version 2. But I don't know right model name.

Sorry, I thought this log didn't reflect the device and ignored this log. I determined that there was this device and connected to the gateway. I tried to reinstall it from HACS, but still couldn't recognize it. Its name is: Mi Temperature and Humidity Monitor Digital Clock. Thank you for your kind reply. I'm a novice in HASS and still learning. This problem seems to need to be solved iteratively!
https://i.postimg.cc/9QS28bYs/IMG-1402.jpg

This is your device: a4c1380829c9 (9538) setup ble (9538). You need to reinstall master version or just wait next release

You can collect more logs. If there's a battery, I'll add it.

I can see the power data in MiHome app. I think there is this sensor. I hope these logs can help you
2023-01-24 21:23:03,430 <IP_ADDRESS> [BASE] Start main loop
2023-01-24 21:23:04,176 <IP_ADDRESS> [BASE] Prepare gateway mgw2 with fw 1.0.5_0008
2023-01-24 21:23:04,331 <IP_ADDRESS> [BASE] openmiio_agent: The latest version is already running
2023-01-24 21:23:04,456 <IP_ADDRESS> [BASE] 54ef4442fd45 (lumi.gateway.mcn001) setup gateway DMWG03LM: command, data, gateway
2023-01-24 21:23:04,908 <IP_ADDRESS> [BASE] 94f827b3fbf3 (1946) setup mesh DHKG02ZM: channel_1, channel_2, led, wireless_1, wireless_2, action
2023-01-24 21:23:04,908 <IP_ADDRESS> [BASE] dced8374f499 (2038) setup ble MJYD02YL-A: battery, light, motion, idle_time
2023-01-24 21:23:04,909 <IP_ADDRESS> [BASE] a4c138991929 (1371) setup ble LYWSD03MMC: temperature, humidity, battery
2023-01-24 21:23:04,909 <IP_ADDRESS> [BASE] a4c1380829c9 (9538) setup ble LYWSD02MMC: temperature, humidity
2023-01-24 21:23:04,918 <IP_ADDRESS> [BASE] MQTT connected
2023-01-24 21:23:15,198 <IP_ADDRESS> [MQTT] gw/3260B641DF8CCF04/heartbeat b'{"networkUp":true,"networkPanId":"0x8F8B","radioTxPower":12,"radioChannel":15,"Directory":"/data/zigbee_host/"}'
2023-01-24 21:23:17,203 <IP_ADDRESS> [MQTT] miio/report b'{"id":1458625613,"method":"properties_changed","params":[{"did":"blt.3.1cokj11usek00","siid":3,"piid":1002,"value":37,"tid":117}],"type":6}'
2023-01-24 21:23:17,232 <IP_ADDRESS> [MQTT] miio/report_ack b'{"id":1458625613,"result":"ok"}'
2023-01-24 21:23:39,633 <IP_ADDRESS> [MQTT] miio/report b'{"id":49266616,"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1cokilqpceg00","mac":"DC:ED:83:74:F4:99","pdid":2038},"evt":[{"eid":15,"edata":"640000"}],"frmCnt":132,"gwts":1674566617}}'
2023-01-24 21:23:39,633 <IP_ADDRESS> [BASE] binary_sensor.dced8374f499_motion | Extend delay: 90 seconds
2023-01-24 21:23:39,634 <IP_ADDRESS> [BLEE] dced8374f499 (2038) recv {'motion': True, 'light': True}
2023-01-24 21:23:39,672 <IP_ADDRESS> [MQTT] miio/report_ack b'{"id":49266616,"result":"ok"}'
2023-01-24 21:23:42,193 <IP_ADDRESS> [MQTT] miio/report b'{"id":1669046618,"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1cokilqpceg00","mac":"DC:ED:83:74:F4:99","pdid":2038},"evt":[{"eid":4119,"edata":"00000000"}],"frmCnt":133,"gwts":1674566620}}'
2023-01-24 21:23:42,193 <IP_ADDRESS> [BLEE] dced8374f499 (2038) recv {'idle_time': 0}
2023-01-24 21:23:42,233 <IP_ADDRESS> [MQTT] miio/report_ack b'{"id":1669046618,"result":"ok"}'
2023-01-24 21:23:51,863 <IP_ADDRESS> [MQTT] miio/report b'{"id":1104851620,"method":"properties_changed","params":[{"did":"blt.3.1cokj11usek00","siid":3,"piid":1002,"value":36,"tid":145}],"type":6}'
2023-01-24 21:23:51,893 <IP_ADDRESS> [MQTT] miio/report_ack b'{"id":1104851620,"result":"ok"}'
2023-01-24 21:24:00,533 <IP_ADDRESS> [MQTT] miio/report b'{"id":36681622,"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1cokilqpceg00","mac":"DC:ED:83:74:F4:99","pdid":2038},"evt":[{"eid":15,"edata":"640000"}],"frmCnt":135,"gwts":1674566639}}'
2023-01-24 21:24:00,535 <IP_ADDRESS> [BASE] binary_sensor.dced8374f499_motion | Extend delay: 90 seconds
2023-01-24 21:24:00,536 <IP_ADDRESS> [BLEE] dced8374f499 (2038) recv {'motion': True, 'light': True}
2023-01-24 21:24:00,572 <IP_ADDRESS> [MQTT] miio/report_ack b'{"id":36681622,"result":"ok"}'
2023-01-24 21:24:03,593 <IP_ADDRESS> [MQTT] miio/report b'{"id":1704405623,"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1cokilqpceg00","mac":"DC:ED:83:74:F4:99","pdid":2038},"evt":[{"eid":4119,"edata":"00000000"}],"frmCnt":136,"gwts":1674566642}}'
2023-01-24 21:24:03,594 <IP_ADDRESS> [BLEE] dced8374f499 (2038) recv {'idle_time': 0}
2023-01-24 21:24:03,631 <IP_ADDRESS> [MQTT] miio/report_ack b'{"id":1704405623,"result":"ok"}'
2023-01-24 21:24:15,209 <IP_ADDRESS> [MQTT] gw/3260B641DF8CCF04/heartbeat b'{"networkUp":true,"networkPanId":"0x8F8B","radioTxPower":12,"radioChannel":15,"Directory":"/data/zigbee_host/"}'

You need to catch: "siid":2,"piid":1003 - it should be battery

Yes. This is spec. Xiaomi believes that the device should send the battery. But I've never seen it in the logs.


Add Vels Institute of Science, Technology & Advanced Studies(VISTAS)

@sivateja10 Pull request merged. Thank you!


Improved code for "Example: Hyperparameters Tuning" Which can use "GASearchCV" for hyperparameter optimization with a "RandomForestClassifier".

What the problem is:
In the current implementation of GASearchCV, I find it cumbersome to manually define a wide range of parameters and potential values for optimization without guidance on which parameters might have the greatest impact on model performance. This can be particularly frustrating for users who are not deeply familiar with the intricacies of each model parameter.
Use case for this feature:
This feature would be beneficial in educational settings or among novice machine learning practitioners, where understanding the impact of different parameters on model performance is crucial. It would also aid in more efficiently navigating the model tuning process, thus reducing the time and computational resources needed.
What I want to happen:
I would like an integrated feature within GASearchCV that suggests the most impactful parameters to optimize based on preliminary quick scans of the model’s performance with default settings. This feature could use a heuristic or data-driven approach to prioritize parameters that are likely to influence performance significantly.
Workflow you want to enable: The workflow would start with the user running a preliminary analysis using default model settings. Based on this analysis, GASearchCV would recommend a set of parameters to optimize, potentially with suggested ranges or distributions. The user could then either accept these recommendations directly into the optimization process or adjust them based on their specific needs and insights.
Additional context
Additional enhancements could include visualization tools integrated with GASearchCV to plot the evolution of model performance across generations, showing how different parameters impact the accuracy or other performance metrics. This would not only aid in selecting the best model but also in understanding the optimization process. Screenshots or visualizations of parameter impact and performance trends over generations could be particularly instructive for educational purposes and in-depth analysis.
This setup would create a more user-friendly, informative, and efficient optimization process, making advanced machine learning techniques more accessible and understandable to a broader range of users.

Hi @MAhmadUzair, I think this is an interesting idea, in the sense of allowing the user to understand better which parameters are more important during the optimization process, by running the algorithm for some generations.
However, I don't see a direct way the package could suggest a range of values for each hyperparameter, as the optimizer takes any classifier/regressor (it could even be a custom one you created), there is no way inside scikit-learn to know beforehand what is the accepted data type for each parameter (integer, float, categorical) with their expected range (so the algorithm doesn't fail or the values makes sense) without reading the algorithm docs directly.
For example for the Random Forest, even if n_estimators usually you don't need to go up to huge values to get a good result, or max_features, only makes sense as max the number of features of your dataset.
So the only way I see that the package could suggest this for any model would be to have a predefined list of models with their more common hypeparameters with their ranges and use this setting as default. If you see other way let me know to think it through it

Hi, I'm closing this issue for now, let me know if you have further comments


Revert "feat: Update notice tokens for new icon design"

Reverts cds-snc/gcds-tokens#330
Reverting PR to resubmit changes with proper commit title to trigger release-please properly

If we were doing reverts on previous conventional commits we can also do revert:  and then reference the refs in the footer https://www.conventionalcommits.org/en/v1.0.0/#how-does-conventional-commits-handle-revert-commits
But, release please didn't pick up the commit we're reverting so it's best it also doesn't pick up this commit


Support printing schedules

This would amount to adding @media print rules to our CSS. We would hide everything except the schedule.
Some comments from email:

"The times on the printed version are not aligned correctly, making everything look 30 minutes earlier than they are."
"the rulings for time and date on the printed version are very faint."
"the shadings for the classes don't print, unless I choose to include the background of the page"

this could also be used as a pathway to support exporting schedules as an image; you could print the document to an image file and export that


Users Created without email id faces application issues

Describe the bug
In cognito "email id" is optional for user creations. users created without email ids are allowed to login to the Data all application but faces 2 issues as noticed -
1st issue -
Network error occured
Network error: Failed to fetch
2nd issue -
Profile icon on the "top right corner" will not appear there by user cannot logout
How to Reproduce
create a user in cognito without providing the "email id" and try to login with the same user id
Expected behavior
user created with or without email id should have the same behaviour.
when email id is optional in cognito for user creation, why it is validated in application. wither make it mandatory in cognito or handle it at the application level
Your project
No response
Screenshots

OS
Mac Sonoma 14.3
Python version
3.9.13
AWS data.all version
2.0.0
Additional context
No response

@sandeephs1 thanks for opening an issue, this is definitely an error that data.all users often fall into. The AWS workshop data.all Getting Started already highlights that Cognito users need to verify their email. But it would be a good idea to include this error in a troubleshooting section of data.all.

This item will be closed in favor of #1030


Reflect namedtuple default values during validation

Closes https://github.com/pydantic/pydantic/issues/7134

please review


Docs: Remove defaults for (boolean)flags/options that expect no value

Related: https://github.com/docker/docker/issues/9393, https://github.com/docker/docker/issues/5545
The way that default values for boolean flags/options is documented is confusing for some people and choosing a simpler notation could take away that confusion.
For example;
-v, --version=false               Print version information and quit

Could be interpreted as;
"To print version information, run docker --version=false", whereas it should be used;
docker --version.
Technically, it could be used as docker --version=true, but I doubt many people will find
that useful, so not documenting this seems reasonable to me.
Proposed change
Change the documentation (and help) for flags/options that don't require/expect a value, and
remove the default value. Flags that do accept a value should still mention this.
The documentation will look like this;
-v, --version               Print version information and quit

Other software
I did a quick check how other software handles this. Some examples are below;
# MySQL:
 -V, --version       Output version information and exit.
 --select-limit=#    Automatic limit for SELECT when using --safe-updates.

 --server-arg=name   Send embedded server this as a parameter.

# GIT
usage: git [--version] [--help] [-C <path>] [-c name=value]

# Fig
Options:
  --version                 Print version and exit
  -f, --file FILE           Specify an alternate fig file (default: fig.yml)
  -p, --project-name NAME   Specify an alternate project name (default: directory name)

# SubVersion (svn checkout)
Valid options:
  -r [--revision] ARG      : ARG (some commands also take ARG1:ARG2 range)
                             [edited]
  -q [--quiet]             : print nothing, or only summary information

NOTE
This proposal does not intent to change the way flags are working right now,
only change the way it is documented. Changing the behavior of flags and renaming
was proposed in the past (https://github.com/docker/docker/pull/5760, https://github.com/docker/docker/pull/5764) and voted against / rejected, so please do not bring that up here again.

Fully agree with changing the documentation to this format, I found it very confusing when trying to write some reference materials.
Also note the usage information on boolean flags is wrong afaict, so it's not just me that's confused. https://github.com/docker/docker/issues/10517

Note this change to the Go flag package to stop mentioning "=false" when that's what the flag defaults to.

@bboreham thanks for the heads up, that does look a lot better!


Version tagging.

Hi,
Why is the tags different from the npm package version. Something broke in my CI build, now I don't know which tag corresponds to which version of the npm package.
Or are you following a different semantic versioning system ?? Please help me in understanding, so I can debug the issue.

Could you provide more details? Which version doesn't match which tag?

npm version 0.8.4, matching a tag

You are using redoc-cli. This is a separate package with separate versioning.
Temporary I maintain it in the same repo.
I will consider alternative versioning schemes for redoc-cli. The issue here is sometimes I update redoc-cli only and don't need to publish a new ReDoc release.

Okay, got it. Just wanted to get the information out, so the current master is what is published as npm package.


RevEng: Pass in context namespace based on context dir option

Also pass rootnamespace for VB code generation
Resolves #13904

Verified manually that context has namespace according to its directory.

Part of #11200


V1 - Rebranding - Gerrit/Github - Project Login, CLA Manager Login and Developer options are not displayed in header

Launch to Contributor Console from gerrit
Observed that Project Login, CLA Manager Login and Developer options are not displayed in header

We are ok with the existing links - links at the top right are only presented with the landing page. Once on the Project Console, the user can click the LFX EasyCLA button on the left to navigate back to the landing page (once that is working):


[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative-sandbox/client-writers
/assign knative-sandbox/client-writers
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/client 2164243...a7df7c7:
  > a7df7c7 Skip non modified event first while waiting for ready (# 1390)
  > b12065d upgrade to latest dependencies (# 1391)
  > 5a44969 Fix issue with Windows pathes not being escaped when applying a regexp. (# 1395)
  > 271d25f Update community files (# 1393)
  > bef27e9 Adding test cases for serving pkg (# 1376)
  > e4f18fa Adding tests for commands package (# 1377)

/lgtm
/approve


stackPages: true, uniqueHistory: true, allowDuplicateUrls: false - not working as expected

Framework7 version: [3.0.0]
React.js version: [e.g. 16.4.1]
Platform and Target: [all]
Live Link or JSFiddle: update kitchen-sink to above parameters in main view

Describe the bug
If you navigate to same pages without pressing back and within view that has stackPages: true, uniqueHistory: true, allowDuplicateUrls: false you still get duplicated pages in dom each time you navigate forward
To Reproduce
Add above parameters to kitchen-sink. navigate to same pages without pressing back button (f.e. using side menu)
Expected behavior
Pages should not duplicate
Actual Behavior
New pages added to DOM each time you navigate
Screenshots

What is in your routes? What is your main view initial HTML/JSX layout?

I just used kitchen-sink/react code for this example. The only change was in src/app.jsx Line 19
      <View url="/" main className="ios-edges" stackPages uniqueHistory />

I see, then everything is correct, stackPages means that it will keep previous pages in DOM when you navigate forward, and remove them only when you navigate back from them

What should be my approach to prevent duplication of pages in DOM if I have link to previously (in history) rendered and now stacked page?

uniqueHistory & uniqueHistoryIgnoreGetParameters does not seem to work,
It seems they are only initialized but never used
see here


BetterDiscord stuck

I didn't have a discord_desktop_core file, so I made one and also the core.asar with it. I now get this and only this when I download it. Searching for Discord core in: C:\Users#######\AppData\Roaming\Discord\0.0.298\modules\discord_desktop_core
Located core.asar in: C:\Users######\AppData\Roaming\Discord\0.0.298\modules\discord_desktop_core
Killing Discord Processes
Extracting core.asar
And it ends there. No progress while downloading.

Update your discord... current version is 0.0.300, the changed architecture didn't happen until then so of course those files didn't exist.

How do I update, exactly?

run discord and right click check for updates, or run the updater.exe

Where would the location of updater.exe be?

C:\Users\your username here\AppData\Local\Discord\update.exe

When I run updater, it just opens cmd and closes it super quickly

nvm


Is there a way to use redis connection pools?

I love the simplicity of using kredis in my models. Is there a way to configure the underlying redis connection to use pools?

Short answer: No.
However at your own risk you can monkeypatch Kredis::Connection to use Mperham ConnectionPool::Wrapper (Multi won't work properly). You can pass pool size in the config.
module Kredis::Connections
def configured_for(name)
connections[name] ||= begin
logger&.info "[Kredis] Connected to #{name}"
configs = configurator.config_for("redis/#{name}")
ConnectionPool::Wrapper.new(configs) { Redis.new(configs) }
end
end
end

Bummer. I hope it's on the docket for future work. I'd love to share the existing connection pools my app is already using.

FYI #46 should be referenced here and might be the more appropriate answer for those who come across this in the future...


Not compatible with Python 3.8

Using this with python 3.8 leads to the following error:
  TRUE, pout = os.popen4('/bin/bash -c /usr/local/bin/BluetoothConnector')

AttributeError: module 'os' has no attribute 'popen4'`

Related (I believe):
#11
#10
Info about what I believe to be a fix:
https://github.com/mariuskiessling/alfred-airpods-connector/issues/9#issuecomment-1003440589


Gitlab.com Browserless -device flag "endpoint missing DeviceAuthURL"

The README.md suggests that the -device flag is supported for gitlab.com.
However, attempting this, I receive the following error:
git clone https://gitlab.com/XXX/XXXX/xxxx.git
Cloning into 'xxxxx'...
2024/08/01 14:05:57 endpoint missing DeviceAuthURL
Username for 'https://gitlab.com': ^C

I've also tried setting up gitlab.com with instructions labeled as "Custom hosts" with the same result.
I am using the git-credential-oauth package provided by apt in Ubuntu 24.04.
I have also tried compiling the go binary from the repo to still the same effect.

gitlab.com device auth works for me. Double check everything?
You'll need git-credential-oauth version 0.13 or later. Try uninstall the older package.
And to set config
git config --global credential.https://gitlab.com.oauthDeviceAuthURL /oauth/token

Corrected README
https://github.com/hickford/git-credential-oauth/commit/1e9f4f0806cec46458fc0c086314fbbc44ecad88

Based on the updated README, adding the configuration explicitly for the device auth works!
git config --global credential.https://gitlab.com.oauthDeviceAuthURL /oauth/authorize_device
Without the added configuration, I am still receiving endpoint missing DeviceAuthURL.
Thank you for the update!

Is it possible to do connect like this with version 12.1, or do we need version 13.0?

@EliezerB123 Yes you'll need 0.13.0 or later
https://github.com/hickford/git-credential-oauth/issues/60#issuecomment-2264124659


Display tags in FlatList or ScrollView to prevent page overflow

Tags are now updated with flatlist. Thanks!


Shader Compiler/Linker Error

Upon installing the latest version of the plugin, starting blender, adding a new material and node tree, Malt returns the error below.

Notably, the plugin worked fine previously, but replacing the new version of MaltShadingEssentials with any of the prior versions returns the same error. Only way to get Malt to work properly now is to completely remove MaltShadingEssentials.
I also attempted a reinstall of Malt itself, but that didn't work either.
Full session log (and project file, though I'm not sure it's really needed in this case).
Shader Linking Bug.zip
:

I guess it might be pertinent to add- This is affecting all of my current projects, even ones that aren't using any of the MaltShadingEssentials nodes.

I've found out a way to fix it on my PC, but I don't understand why it works.
Initially my installation process for the plugin was to delete the plugin's folder, and place the latest version in the directory, but if I place the initial version I downloaded in there, and then overwrite it, replacing the files with the latest then the issue goes away?
No idea why deleting the folder first leads to the error. Maybe there's something I'm missing here


Remove unused VBSERR macros from lib/Parser/rterrors.h

The remaining macros are referenced elsewhere in the codebase.

Hi @dilijev, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Doug Ilijev). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@tcare is it safe to remove them if they are not explicitly referenced in the code base? Is it possible for the error codes to be produced from some other code and these macros are still needed to deal with them. Some were already commented out, but many others were unused except in the other file in this PR.

@abchatra @pleath Is this the right way to approach this cleanup or is there some other hidden impact?

I glanced through the change. This change removes VBSERR_OLEFileNotFound and corresponding entries in g_rgmhr.  This table maps OLE errors to JScript errors. I am not sure its important to show these errors. But without any test this is hard to validate. There is a risk of regression here.

I would absolutely not remove the HR mapping.  In obscure failure scenarios this change may lead to an error being reported with a generic message, obscuring what happened and adding difficulty to diagnosis.
I don't see any reason to remove these errors.  Certainly we can consider renaming them from VBS as clearly we are not VBScript, but I don't know if there are any good reasons to keep the legacy name.

+1 for renaming only, please check internal dependencies for old references.

Okay I'll revise this PR to rename only (low priority). Should I close the PR for now and make a new one / reopen it later?

If you are revising within another week keep the PR. If not close the PR.

@tcare @abchatra @ianwjhalliday @pleath I've updated the review :P


add additional information or correct the information in the doc about how to create Private DNS Zone for PostgreSQL Flexible server

I was creating a PostgreSQL Flexible server with private DNS
In the portal under the networking section, we have an option private access and private DNS Integration
I have created a private DNS first, however, the private DNS was not populating in the drop down which was created
After investigating an issue, I found while creating a DNS it should have the proper naming convention like 'ANYNAME'.private.postgres.database.azure.com
In the portal, this information is missing and just mentioned “Private DNS zone integration is required to connect to your Flexible Server in virtual network using server name (fully qualified domain name).
The above notes does not help and required to add more information and example so that it would be easy for the customer to understand and create a private zone accordingly.
Was struggling to create a server and even I had created many private DNS, those were not populating in the drop down
Example
Marked in red color were not appearing even as per given instruction in the portal, its created with fully qualified domain name.
The green color marked DNZ zone appeared because its created like .private.postgres.database.azure.com

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

ID: 9dfacd9d-6903-1cd0-2db7-110b70e14d3b
Version Independent ID: 4c3e1d9f-ba8e-5dfd-8dd9-f1695456775f
Content: Networking overview - Azure Database for PostgreSQL - Flexible Server
Content Source: articles/postgresql/flexible-server/concepts-networking.md
Service: postgresql
Sub-service: flexible-server
GitHub Login: @GennadNY
Microsoft Alias: gennadyk

Hi @rarandiv Thanks for your findings,We will investigate and update as appropriate

Hello @rarandiv . There is a section called Using Private DNS Zone in networking concepts doc - https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-networking that states
"If you use an Azure API, an Azure Resource Manager template (ARM template), or Terraform, create private DNS zones that end with .postgres.database.azure.com. Use those zones while configuring flexible servers with private access. For example, use the form [name1].[name2].postgres.database.azure.com or [name].postgres.database.azure.com. If you choose to use the form [name].postgres.database.azure.com, the name can't be the name you use for one of your flexible servers or an error message will be shown during provisioning. For more information, see the private DNS zones overview."
Lower in the same doc, in section - https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-networking#private-dns-zone-and-virtual-network-peering highlighted note states:
"Only private DNS zone names that end with postgres.database.azure.com can be linked. Your DNS zone name cannot be the same as your flexible server(s) otherwise name resolution will fail."

Thanks, @GennadNY for the information.
@rarandiv please let us know if you have any additional questions

@rarandiv We will proceed to close this issue now.
If there are further questions regarding this, please comment and we will gladly continue the discussion.


Update desktop entry

Proxtop was shown in the "others" category. I think it belongs along with skype, Hexchat, etc. to "Network".
Add "Categories", "GenericName" and "Comment"

Nice thanks. This also brought to my attention that the CI linux build is kinda screwing with it (e.g. generates its own desktop entry, doesn't create bin link, etc.) so I'll have to get that sorted out too


[Feature] Allow storing dbt ls cache into Object Store

Description
Following up on #1014 , we'd like to allow users to store the dbt ls cache into a remote object store, as an alternative to store it in Airflow Variables. This task relates to #927.
Use case/motivation
Even though the dbt ls is being compressed without significantly affecting the Airflow Metadata database, some users prefer not to have cache information mixed up with their Airflow variables.
Related issues

#1014
#927

Are you willing to submit a PR?

[ ] Yes, I am willing to submit a PR!

Aiming to create a PR for this tonight. We discussed the approach and clarified doubts in our call today


GUVNOR-2555: Allow Copy and Paste across data types where applicable

See https://issues.jboss.org/browse/GUVNOR-2555

Hi @Rikkola Would you mind giving this the once over please?

+1
The converters looks like something I should reuse in the analysis codes.


How to give an entity author an affiliation?

When your CITATION.cff uses name to collectively attribute the work to a team, the team's affiliation cannot be written down in CFF 1.2.0

Nice catch @jspaaks!
One "hack" would be to suggest using person.alias to provide the name of the team and make use of person.affilliation.
Alternatively, we could give entity an affiliation as well?

Alternatively, we could give entity an affiliation as well?

That would be my preferred approach

Made PR https://github.com/citation-file-format/citation-file-format/pull/485 just in case

PR #485 was merged, closing


tests: drivers: adc: adc_dma: increase sampling interval for mcux ADC16

Increase sampling interval for MCUX ADC16 driver with the ADC_DMA test, as the ADC16 is capable of no more than 400,000ksps in the best case, and a sampling interval of 2us will not be achievable. The real world sampling interval (as observed on a FRDM-K64F) was ~12us.
Restore the interval to 10000us, as this was the interval set prior to 5ec8aa4.
Fixes #58467

@heinwessels I'd like to understand the changes in #52965 a bit better- particularly the change to use SAMPLE_INTERVAL_US here: https://github.com/zephyrproject-rtos/zephyr/pull/56104/files#diff-0f2bf1897d5421331070f482911ef31bdf0fe065480deeeff59f0065c5ed6554R294. Using SAMPLE_INTERVAL_US, particularly with an interval shorter than (1/CONFIG_SYS_CLOCK_TICKS_PER_SEC), will result in a kernel timer that fires sporadically.
Moreover, on the FRDM-K64F the repeated_samplings_callback in the ADC test takes ~27ms to execute. So for any kernel timer interval less than 27ms, the timer may fire before the callback completes. This will result in the EBUSY error for the adc_read call, as the ctx->sampling_requested variable the ADC timer expiration handler checks against is not decremented until the user's ADC callback completes.
However, if the sampling interval is set to 0 (as you did in your initial PR #52965, the ADC context subsystem will correctly attempt to sample as soon as the ADC driver indicates a previous sample has completed, and will not start a kernel timer.
Is there a particular reason you changed the interval back to SAMPLE_INTERVAL_US?

@heinwessels I'd like to understand the changes in #52965 a bit better- particularly the change to use SAMPLE_INTERVAL_US here: https://github.com/zephyrproject-rtos/zephyr/pull/56104/files#diff-0f2bf1897d5421331070f482911ef31bdf0fe065480deeeff59f0065c5ed6554R294. Using SAMPLE_INTERVAL_US, particularly with an interval shorter than (1/CONFIG_SYS_CLOCK_TICKS_PER_SEC), will result in a kernel timer that fires sporadically.
Moreover, on the FRDM-K64F the repeated_samplings_callback in the ADC test takes ~27ms to execute. So for any kernel timer interval less than 27ms, the timer may fire before the callback completes. This will result in the EBUSY error for the adc_read call, as the ctx->sampling_requested variable the ADC timer expiration handler checks against is not decremented until the user's ADC callback completes.
However, if the sampling interval is set to 0 (as you did in your initial PR #52965, the ADC context subsystem will correctly attempt to sample as soon as the ADC driver indicates a previous sample has completed, and will not start a kernel timer.
Is there a particular reason you changed the interval back to SAMPLE_INTERVAL_US?

As mentioned in the commit message, I changed it back due to https://github.com/zephyrproject-rtos/zephyr/issues/56070. The reason is that I will simply reverting things back to how I found it, because it apparently caused issues. I don't work with NXP, nor have devices available, so I'm not really sure which the right approach is. Even though I do believe the  sampling_interval_us should be 0, as this PR is doing.

After discussing with @hakehuang, I have increased the sampling interval to 30ms. This way the test still verifies that the ADC hardware sampling is triggered on the timer interval, but we do not run into the pitfall of using a kernel timer shorter in duration than the time the ADC callback takes to execute (27ms on the FRDM-K64F)


Update CI URLs to point to new caching infrastructure

Hello there!
This is an automated pull request submitted by @staticfloat to help package authors transition their Julia installation CI setups to the new binary provider URL.  Please take a look at this PR, and if there is a problem or it doesn't download correctly when CI runs, feel free to ping @staticfloat

Codecov Report

Merging #11 into master will increase coverage by 2.27%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master    #11      +/-   ##
========================================
+ Coverage   97.72%   100%   +2.27%
========================================
  Files           1      1
  Lines         132    133       +1
========================================
+ Hits          129    133       +4
+ Misses          3      0       -3

Impacted Files
Coverage Δ

src/LibSndFile.jl
100% <0%> (+2.27%)
:arrow_up:

Continue to review full report at Codecov.

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

merged


Powershell errors on up, down, left, right, backspace, {, } etc

Specs:
OS: Windows 8.1
LANG: italian
Keyboard: Italian
Description:
Sometimes (not every time) i get strange output while pressing keys on my keyboard when i launch exec in some docker images
^H for backspace
^[[A for up
^[[B for down
^[[C for right
^[[D for left
special chars:
[nothing] for è é ì ù à ò
Thank You

It could be that the docker images you speak off do not emulate tty as expected - Could you list the images?
This has happened before to other user and it turned out to be a windows config issue (specific settings in PowerShell getting in the way)

Same here. I've never touched PowerShell settings.

the default shell selected is /bin/sh - if you switch to something like /bin/bash in the container, the arrows should work


Unable to download webpage: HTTP Error 410: Gone

alexandr@xeon:~/uploads/Sergej Master$ youtube-dl https://www.youtube.com/user/SergeyOliaMaster --write-description --write-annotation --verbose[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.youtube.com/user/SergeyOliaMaster', '--write-description', '--write-annotation', '--verbose']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.17
[debug] Python version 2.7.6 - Linux-3.16.0-67-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] Proxy map: {}
[download] Downloading playlist: SergeyOliaMaster
[youtube:user] SergeyOliaMaster: Downloading video ids from 1 to 51
ERROR: Unable to download webpage: HTTP Error 410: Gone; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 191, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1157, in urlopen
return self._opener.open(req)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

You are using an outdated version of youtube-dl. Read our FAQ if you have troubles updating.


json: Use designated initializers consistently in macro's

This PR updates the json macros to be consistend with C++20
Signed-off-by: Rick Bruyninckx<EMAIL_ADDRESS>

We have been using this implementation for a couple of projects but we are trying to move to C++20 (from C++17) and this error popped up:
error: either all initializer clauses should be designated or none of them should be
This issue popped up before in a different location see PR:
https://github.com/zephyrproject-rtos/zephyr/pull/24707
The proposed solution is to remove the extra brackets for the unnamed union.

Could someone please review my PR?

I have some more reviewers on this ticket now so I will do another request.
Could you take a look at my PR?


Fix sell system do not show/give correct gold (Issue #456)

This commit Fix 2 issues:

Issue #456 (price not correct on dialog when price is define on template)
EX: ```
BUY=i_tongs,{4 18}
price=5000
``
When you have an item with VALUE=10,20 the gold give to you was not depending on the quality of the item

Before this fix, Item sold to NPC was showing correct value on the display:

But when we accept the trade we received always the cash for an item with quality of 0
here what we do now:
1- if there a price set on the template, always use this price
2- if there no price set on template, always use the value/price of the item itself (in packpack of player) and dont look the itemdef.

I removed all the possibility to check the "PRICE" when selling an item. On some script error, it was possible to player to set "price" with their vendor NPC.

I fixed the dialog when selling an item and it's now always show the real money you will receive

Added tag.override.value can be use to ajust the value of an item because value is R only.

I don't think modify Buy system is require.


"minecraft-server:java8-multiarch" error on the latest version (token recognition error at: '`')

Describe the problem
I was able to run the server inside docker by itzg/minecraft-server:java8-multiarch (image id: 4a1df2622387) with CurseForge + Enigmatica 1.16.5 smoothly in the previous month. But after I need to pull the image from docker-hub and re-initialized the server again today I found out that I couldn't run it in itzg/minecraft-server:java8-multiarch docker environment anymore despite the very same config. And I just happen to find that itzg/minecraft-server:java8-multiarch image was being update to (image id: 725c86b7ce19) 1 day ago, which after I go back to use the old image the server in the local machine could be able to run again.
My server hosting has somewhat strict policy about image & tags, they required me to specifically define the image name and tag explicitly to have them whitelist it, so I couldn't change the image to an old one on the hosting site. Therefore this means I couldn't play my server with this new update on the image anymore.
I think I found this similar bug when I tried to use image itzg/minecraft-server:latest with CurseForge + Enigmatica modpack 1.16.5 (<1.17) so maybe this bug has something to do with the java version...
Thank you
Container definition
  mc:
    image: itzg/minecraft-server:java8-multiarch
    environment:
      TYPE: CURSEFORGE
      CF_SERVER_MOD: "https://media.forgecdn.net/files/3620/129/Enigmatica6Server-0.5.25.zip"
      EULA: "true"
      MEMORY: 5G
      CF_BASE_DIR: /data
    ports:
      - 25565:25565
    volumes:
      - ./mc:/data

Container logs
[init] Changing ownership of /data to 1000 ...

[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxrwx 1 1000 1000 4096 Feb  4  2022 /data'

[init] Resolved version given LATEST into 1.18.1

[init] Resolving type given CURSEFORGE

[init] Looking for Feed-The-Beast / CurseForge server modpack.

[init] Downloading modpack from https://media.forgecdn.net/files/3620/129/Enigmatica6Server-0.5.25.zip...

[init] Unpacking FTB server modpack /data/Enigmatica6Server-0.5.25.zip ...

.....

[init] detected FTB, changing properties path to /data/server.properties

[init] Creating server.properties in /data/server.properties

[init] Disabling whitelist functionality

[init] Setting white-list to 'false' in /data/server.properties

[init] WARNING: whitelist enabled but not enforced. Set ENFORCE_WHITELIST=TRUE or update 'enforce-whitelist' in server.properties to enforce the whitelist.

[init] Setting enable-rcon to 'true' in /data/server.properties

[init] Setting rcon.password to 'minecraft' in /data/server.properties

[init] Setting rcon.port to '25575' in /data/server.properties

[init] Setting motd to 'A Curseforge Minecraft Server powered by Docker' in /data/server.properties

[init] Checking for JSON files.

[init] Setting initial memory to 5G and max to 5G

cp: '/data/eula.txt' and '/data/eula.txt' are the same file

[init] Running FTB /data/start-server.sh in /data ...

https://github.com/EnigmaticaModpacks/ServerStarter/releases/download/v2.2.0/serverstarter-2.2.0.jar

DEBUG: (curl) Downloading https://github.com/EnigmaticaModpacks/ServerStarter/releases/download/v2.2.0/serverstarter-2.2.0.jar

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   662  100   662    0     0   4086      0 --:--:-- --:--:-- --:--:--  4086

100 3890k  100 3890k    0     0   225k      0  0:00:17  0:00:17 --:--:--  991k

[09:40:56] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

[09:40:56] [INFO]    Minecraft ServerStarter install/launcher jar

[09:40:56] [INFO]    (Created by BloodWorkXGaming with the help of Contributors)

[09:40:56] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

[09:40:56] [INFO]

[09:40:56] [INFO]    This jar will launch a Minecraft Forge/Fabric Modded server

[09:40:56] [INFO]

[09:40:56] [INFO]    Github:    https://github.com/BloodyMods/ServerStarter

[09:40:56] [INFO]    Discord:   https://discord.gg/enigmatica

[09:40:56] [INFO]

[09:40:56] [INFO] You are playing Enigmatica 6

[09:40:56] [INFO] Starting to install/launch the server, lean back!

[09:40:56] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

[09:40:56] [INFO]

[09:40:57] [INFO] Testing http://example.com.

[09:40:57] [INFO] Reached http://example.com: true

[09:40:57] [INFO] Testing http://google.com.

[09:40:57] [INFO] Reached http://google.com: true

[09:40:57] [INFO] Reached 2 out of 2 IPs.

[09:40:57] [INFO] Attempting to download modpack Zip.

[09:41:00] [INFO] Downloaded the modpack zip file to /data/modpack-download.zip

[09:41:00] [INFO] Moved the mods folder

[09:41:00] [INFO] Starting to unzip files.

[09:41:20] [INFO] Done unzipping the files.

[09:41:20] [INFO] Requesting Download links from cursemeta.

[09:41:20] [INFO] Skipping mod with projectID: 391382

[09:41:20] [INFO] Skipping mod with projectID: 521714

[09:41:20] [INFO] Skipping mod with projectID: 271740

[09:41:20] [INFO] Skipping mod with projectID: 238372

[09:41:20] [INFO] Skipping mod with projectID: 231275

[09:41:20] [INFO] Skipping mod with projectID: 358191

[09:41:20] [INFO] Skipping mod with projectID: 513857

[09:41:21] [INFO] [  1/339] Downloaded mod: FastLeafDecay-v25.2.jar

[09:41:21] [INFO] [  2/339] Downloaded mod: magicfeather-1.16.2-3.2.0.jar

[09:41:22] [INFO] [  4/339] Downloaded mod: cant-sleep-clowns-will-eat-me-1.16.4-<IP_ADDRESS>.jar

...

...

  Patching net/minecraft/client/particle/ParticleManager$AnimatedSpriteImpl 1/1

  Patching net/minecraft/client/multiplayer/ServerData$ServerResourceMode 1/1

  Patching net/minecraft/client/renderer/entity/ItemRenderer 1/1

  Patching net/minecraft/client/gui/screen/CreateWorldScreen$GameMode 1/1

  Output: /data/./libraries/net/minecraftforge/forge/1.16.5-36.2.22/forge-1.16.5-36.2.22-server.jar Checksum Validated: 0fa3afa7e3ab98aef47dc027e3e4a6558502df7e

The server installed successfully

You can delete this installer file now if you wish

[09:51:30] [INFO] Done installing loader, deleting installer!

[09:51:30] [INFO] Starting to installing Additional Files

[09:51:30] [INFO] Starting to copy local files.

[09:51:30] [INFO] Starting Loader, output incoming

2022-02-04 09:51:31,985 main WARN Advanced terminal features are not available in this environment

[09:51:32] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.22, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui]

[09:51:32] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_322 by Temurin

[09:51:35] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust

[09:51:35] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/data/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=SERVER

[09:51:44] [main/INFO] [STDERR/]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]: line 13:0 token recognition error at: '`'

[09:51:44] [main/INFO] [STDERR/]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]: line 1:0 token recognition error at: '~'

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.NoSuchMethodError: sun.security.util.ManifestEntryVerifier.<init>(Ljava/util/jar/Manifest;)V

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at cpw.mods.modlauncher.SecureJarHandler.createCodeSource(SecureJarHandler.java:66)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:275)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at java.lang.Class.forName0(Native Method)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at java.lang.Class.forName(Class.java:348)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at org.spongepowered.asm.service.modlauncher.ModLauncherClassProvider.findClass(ModLauncherClassProvider.java:67)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at org.spongepowered.asm.launch.platform.MixinConnectorManager.loadConnectors(MixinConnectorManager.java:70)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at org.spongepowered.asm.launch.platform.MixinConnectorManager.inject(MixinConnectorManager.java:59)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at org.spongepowered.asm.launch.platform.MixinPlatformManager.inject(MixinPlatformManager.java:196)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at org.spongepowered.asm.launch.MixinBootstrap.inject(MixinBootstrap.java:202)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.initializeLaunch(MixinLaunchPluginLegacy.java:201)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.initializeLaunch(MixinLaunchPluginLegacy.java:195)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at cpw.mods.modlauncher.LaunchPluginHandler.lambda$announceLaunch$9(LaunchPluginHandler.java:97)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at java.util.HashMap.forEach(HashMap.java:1290)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at cpw.mods.modlauncher.LaunchPluginHandler.announceLaunch(LaunchPluginHandler.java:97)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:52)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at cpw.mods.modlauncher.Launcher.run(Launcher.java:82)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60)

[09:51:47] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:  at net.minecraftforge.server.ServerMain.main(ServerMain.java:57)

[09:51:47] [INFO] Server has been stopped, it has started 1 times in 60min

[09:51:47] [INFO] Restarting server in 10 seconds, press ctrl+c to stop

[09:51:57] [INFO] Starting Loader, output incoming

This seems to be the same as #1325, so the modpack author needs to update the forge version with a fixed mcmodloader


Backend Development

Lily Wu
Iteration Mini-lab
Focus / Habits
Deployment on AWS

2.7+

Great lesson on if else statements
SUPER extensive documentation on De Morgan's Law
Nice notes and reflections on Focus/Habits
Deployment works