Support truncation when formatting

The following should work
format!("{:016x}", hash);

I.e we should support truncation by way of the precise formatting paramater because hashes are not integral types.

I'm certain we support this. This was a feature request on day one and one of the first things we implemented.

Yeah, weirdly we don't have a unit test in hashes/ but you can add one

    #[test]
    fn sha256_truncated() {
        #[rustfmt::skip]
        static HASH_BYTES: [u8; 32] = [
            0xef, 0x53, 0x7f, 0x25, 0xc8, 0x95, 0xbf, 0xa7,
            0x82, 0x52, 0x65, 0x29, 0xa9, 0xb6, 0x3d, 0x97,
            0xaa, 0x63, 0x15, 0x64, 0xd5, 0xd7, 0x89, 0xc2,
            0xb7, 0x65, 0x44, 0x8c, 0x86, 0x35, 0xfb, 0x6c,
        ];

        let hash = sha256::Hash::from_slice(&HASH_BYTES).expect("right number of bytes");

        assert_eq!(
            format!("{:.8}", hash),
            "ef537f25",
        );
    }

passes.

Oh nice, you are correct. So the bug is actually in the issue (and in secp)
Wrong: format!("{:016x}", hash);
Right: format!("{:.8}", hash);
It is width vs precision but I was reading the docs wrong and had them backwards. Thanks

Yeah, this is a terminology issue in format_args that has burned me in the past. In my old hashes::hex code I used width because that's what makes intuitive sense. But Kix corrected me that actually "width" means "minimum width" and "precision" means "maximum width". Approximately.

What confuses me more is that .43 looks like decimal number so it never occurs to me that it should work for anything other than floats.


Unit conversion bug in support/VIC.4.2.glacier

Via slack discussion with Bart Nijssen, Joe Hamman, and Naoki Mizukami:
From Bart Nijssen:
In: https://github.com/UW-Hydro/VIC/blob/support/VIC.4.2.glacier/src/glacier.c#L74-L79
We determine the amount of glacier volume and area:
for (band = 0; band < Nbands; band++) {
    snow[iveg][band].gl_overflow = 0.;
    if (snow[iveg][band].iwq > 0.0) {
        ice_vol += snow[iveg][band].iwq * veg_con[iveg].Cv *
                          soil_con->AreaFract[band];
        ice_area_old += soil_con->AreaFract[band] *
                                    veg_con[iveg].Cv;
        }
}

then a few lines later (https://github.com/UW-Hydro/VIC/blob/support/VIC.4.2.glacier/src/glacier.c#L81-L84) we scale volume and area to get actual volumes and areas so that we can apply the scaling relationships:
if (ice_vol > 0.0) {
    // ice_vol in km3 and ice_area in km2
    ice_vol *= cell_area / MMPERMETER / METERS_PER_KM;
    ice_area_old *= veg_con[iveg].Cv * cell_area;

Since we already multiplied ice_area_old by veg_con[iveg].Cv in the earlier loop, I don’t think we need to do it again (we don’t do it for ice_vol either, so I think that the second ice_area_old should just be calculated as ice_area_old *= cell_area;. (note that cell_area is already in units of km2 (first calculation in this function). In the end, I am not sure this affects the area hugely (since we calculate the new ice area in part on glacier volume, which is not affected by this), but if it is wrong we should fix it.

I have the fix on line #84 ready for this.  I can submit a pull request whenever.

From @jhamman on slack: here, I think you are right, ice_area_old *= cell_area;

Closed per PR #889


(WIP) feat: Add support for the Cortex M4

Summary
Add support for the Cortex M4 using the Adafruit Feather M4 as the reference platform.
This requires support to be added in googletest.  Beta support is in my repo.
This changes needs to be verified on hardware.  Once done, googletest feature branch will be merged to prelease and the PR updated.
Implements #187

Checklist

[ ] Documentation (if necessary)
[ ] Tests (if necessary)
[ ] Ready to be merged

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.
If no reviewer appears after a week, a reminder will be sent out.

Once initial CI is working, I will work on adding Arduino CI support.

Closing.  Will open an new PR when feature branch is approved.

Your pull request has been closed, thank you for trying to solve an issue. If you think it was closed prematurely please provide additional information.


Question: fastest method to get edges contained in an area

What would be the fastest method to get the edge ids contained in an area. The area could be a circle or a polygon.
The method could be:
uint[] GetEdgesInCircle(GeometricGraph _graph, Coordinate center, int radiusInMeter)
or
IList GetEdgesInCircle(GeometricGraph _graph, Coordinate center, int radiusInMeter)
or
uint[] GetEdgesInPolygon(GeometricGraph _graph, Polygon _polygon)
or RoutingNetwork extension

This could be a nice addition to the API, what is you usecase? Perhaps to get this done using the current version you can look at the routerdb extension methods like this one:
https://github.com/itinero/routing/blob/develop/src/Itinero/RouterDbExtensions.cs#L1527

Closing this as it seems to be answered now. Feel free to reopen if you still have related questions.


Add config file for customizing the layout

As i've mentioned in the previous issue i would be nice if displaying the graph is just an optional feature.
The reason i picked ytop for my defaul taks manager is because of its simpliciy compared to top, htop and glances.

Do you mean just the CPU and memory graphs? So I see a few ways of implementing this:

have an option to toggle whether to show the graphs
add a config file to specify which widgets to show

I think both options are vaild
A toggle to switch on and off the graps and a modular approach for the rest of the components.
For example ytop -c (CPU) -m (memory) -t (temperature) -g (graphs). Would be the ideal set up for me. Only the information I want to see in a space without clutter and any other distractions.

I don't think specifying the widgets on the command line would work, unless we have users add the layout too, but that might get a little convoluted. So I think the best way to do this is just to have a config file where users specify which widgets they want and the layout for them.

I agree with you.

https://asciinema.org/a/BxIdMzYH3LtAmGCkabTFKsqbH?speed=2
https://github.com/cjbassi/gotop/pull/167
https://github.com/cjbassi/gotop/issues/111

What about the graphs ?

You should be able to remove the graphs using the config file. Does that work for you or were you thinking something else?

Well I mentioned at the start of the topic the reason i enjoy using ytop is because of its simplicity. The issue with the graphs is that they add distortion to that. I was thinking that by your mentioning a configuration file there would be the possibility to disable them there.

Yeah exactly, you should be able to disable them in the config file.

Thanks

You're welcome, but I'm going to reopen this since it still needs to be implemented :)

is it implemented in gotop ? because i dont have the config file present

No, it's not implemented in gotop. But there is a fork of gotop that has a config file implementation and I linked it above.


Error opening .vue files

I am not using TypeScript but receive this error when opening any .vue file
Error detected while processing ~/.config/nvim/plugged/vim-vue/syntax/vue.vim:
line   53:
E484: Can't open file syntax/typescript.vim

Sorry for that, I missed that when reviewing

I tried to do it fast, but it's obviously not fixed yet 😆

That was quick! thank you


Install behind corporate firwall

Hi,
We are using angular 7 in our company.
Our company has corporate firewall that is blocking github standard repository for npm install and instead using a private repository. Your library does not exist in that repository and I am not able to download from github repository. I also tried to download the source and package it myself but had so many errors circular dependencies etc. Any chance someone can prepackage latest version of all 3 packages (store, form and router), that way I will just upload them to private repository and it will be available for everyone including myself.
Thanks,
V

If your company is using an internal NPM mirror like Artifactory or Nexus, you will need to talk to whomever is managing that tool so that they add the release binaries from the public npm repository for you to use. I would highly suggest against manually including dependencies outside of a package manager.


[JunBoon] jobCompany Integration app fail to start when JSON is modified such that job has a non-existing company

Perhaps a more graceful way is the assume that JSON file is corrupted and start with a fresh JSON file?

Alright, I can just catch the CompanyNotFound Exception when loading the address book and return a fresh one if the address book was corrupted.


tests: Improve PostgreITest tests

Add assertions to check that the result set is exhausted.

retest this please


Splinter tests not failing when element not found on the page and wait_time set to 1 second

I first mentioned this issue here and opening a separate issue as requested.
I don't have an error message to share because the test just hangs. However, I have been able to reproduce the error and I believe the issue is caused by freezegun.
The test in question uses the following Splinter configuration:
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from splinter import Browser, Config

class SplinterTestCase(StaticLiveServerTestCase):

    @classmethod
    def setUpClass(cls):
        super().setUpClass()
        config = Config(headless=True)
        cls.browser = Browser('chrome', config=config, wait_time=1)

    @classmethod
    def tearDownClass(cls):
        cls.browser.quit()
        super().tearDownClass()

    def tearDown(self):
        super().tearDown()

The following test fails with splinter.exceptions.ElementDoesNotExist: no elements could be found with text "Model does not exist"
class AdminTest(SplinterTestCase):
    def setUp(self):
        superuser = create_superuser()
        self.browser.visit(self.live_server_url + "/admin/")

        self.browser.fill("username", superuser.email)
        self.browser.fill("password", "password")
        self.browser.find_by_value('Log in').click()

    def test_splinter_hang(self):
        self.browser.find_by_text('Model does not exist').click()
        self.assertTrue(True)

However, if I freeze the date, it hangs:
@freeze_time("2024-05-21")
class AdminTest(SplinterTestCase):
    def setUp(self):
        superuser = create_superuser()
        self.browser.visit(self.live_server_url + "/admin/")

        self.browser.fill("username", superuser.email)
        self.browser.fill("password", "password")
        self.browser.find_by_value('Log in').click()

    def test_splinter_hang(self):
        print(datetime.now())
        self.browser.find_by_text('Model does not exist').click()
        self.assertTrue(True)

I assume this is caused by freezegun stubbing datetime which is used for the wait_time object. I am able to get test failures when I manually stop and start freezegun (see below) so I probably could wrap splinter element finders with something like this but wondering if there's another way to make that work.
class AdminTest(SplinterTestCase):
    def setUp(self):
        self.freezer = freeze_time("2024-05-21")
        self.freezer.start()

        superuser = create_superuser()
        self.browser.visit(self.live_server_url + "/admin/")

        self.browser.fill("username", superuser.email)
        self.browser.fill("password", "password")
        self.browser.find_by_value('Log in').click()

    def tearDown(self):
        self.freezer.stop()

    def test_splinter_hang(self):
        self.freezer.stop()
        self.browser.find_by_text('Model does not exist').click()
        self.freezer.start()
        self.assertTrue(True)

Was able to figure this out using freezegun.configure: freezegun.configure(default_ignore_list=['splinter'])
Not an issue with splinter, closing


Can't install any version of xcode

Describe the bug
When I try to install any version of xcode, always prompt this error screen, I saw some bug reported, and I already delete files in Application Support Folder, but the problem persists.
To Reproduce
Click on install button
Expected behavior
Install Xcode selected version
Screenshots

Version

OS: Mac OSX Ventura 13.0.1

Xcodes: 1.8.0

Ok, it seems that if I change the data source, instead of using XCode Releases I use Apple, it starts working for some reason, I still don't know if it installs but I'll let you know

Closing track through #323


Homography estimation

Could you share the code of homography estimation experiment or other open-source code?

Hi, I believe this script is what we used for homography estimation evaluation: https://github.com/mihaidusmanu/d2-net/blob/master/hpatches_sequences/HPatches-Sequences-Matching-Benchmark.ipynb


Does mxnet share memory in forward and backward phase?

Hi,
Just a simple question.
I am curious about if mxnet could share memory for forward and backward phase. According to this, mxnet is using different graphs during forward and backward. But if they could use the same graph, some of the forward and gradient nodes can share the same memory right? Does this method more memory?
Thanks.

It depends on the behalf of your operators. memonger is an extension of MxNet with some extra time cost if you can tolerate.

@Godricly I tried the script. The output is:
Search threshold=0 MB, cost=6051 MB
Search threshold=0 MB, cost=6051 MB
Search threshold=0 MB, cost=6051 MB
Find best plan with threshold=0, cost=6051 MB
Old feature map cost=7632 MB
New feature map cost=6051 MB

I am using python 3.
The model is s2s with attention.
Encoder: bidirectional LSTM
Decoder: LSTM
source_vocab_size = 100000
target_vocab_size = 50000
source_unroll_length: 350
target_unroll_length: 30
batch_size = 64

In the above setting, I will get a OOM error on GPU. The key problem here is the unroll length, which is much longer than others.
Any idea to reduce the memory cost?
Thanks.

Try reduce batchsize

To answer the question, mxnet indeed share memory between forward and backward pass


not installing

trying to install apt and geting this error: "

-bash-5.2$ nix-shell -p apt
warning: Nix search path entry '/data/data/com.termux.nix/files/home/.nix-defexpr/channels/nixpkgs/' does not exist, ignoring
error:
…
     at «none»:0: (source not available)

   … while calling the 'import' builtin

     at «string»:1:18:

        1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (apt) ]; } ""
         |                  ^

   (stack trace truncated; use '--show-trace' to show the full trace)

   error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

   at «none»:0: (source not available)

"

Duplicate of https://github.com/nix-community/nix-on-droid/issues/409. If you installed with flakes, use flakes.

 at «none»:0: (source not available)

… while calling the 'import' builtin
 at «string»:1:18:

    1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (apt) ]; } ""
     |                  ^

(stack trace truncated; use '--show-trace' to show the full trace)
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
at «none»:0: (source not available)


[SPARK-37236][PYTHON] Inline type hints for KernelDensity.py, test.py in python/pyspark/mllib/stat/

What changes were proposed in this pull request?
Inline type hints for KernelDensity.py, test.py in python/pyspark/mllib/stat/
Why are the changes needed?
We can take advantage of static type checking within the functions by inlining the type hints.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing tests

Test build #144977 has started for PR 34510 at commit c58eb11.

Test build #144977 has finished for PR 34510 at commit c58eb11.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144977/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49448/

Test build #144980 has started for PR 34510 at commit 78dae74.

Test build #144982 has started for PR 34510 at commit 99f7a1a.

Test build #144980 has finished for PR 34510 at commit 78dae74.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test build #144982 has finished for PR 34510 at commit 99f7a1a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49453/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49451/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144980/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144982/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49448/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49448/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49453/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49451/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49453/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49451/

Test build #145016 has started for PR 34510 at commit dd4207b.

Test build #145016 has finished for PR 34510 at commit dd4207b.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49489/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145016/

CC @HyukjinKwon @zero323 FYI. Thank you!

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49489/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49489/

Test build #145057 has started for PR 34510 at commit 3f529f9.

Test build #145057 has finished for PR 34510 at commit 3f529f9.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class ProbabilisticClassifier(Classifier, _ProbabilisticClassifierParams, metaclass=ABCMeta):
class ProbabilisticClassificationModel(
class _JavaProbabilisticClassifier(ProbabilisticClassifier, _JavaClassifier, metaclass=ABCMeta):
class _JavaProbabilisticClassificationModel(
class _LinearSVCParams(
class LinearSVCModel(
class _LogisticRegressionParams(
class LogisticRegression(
class LogisticRegressionModel(
class BinaryLogisticRegressionSummary(_BinaryClassificationSummary, LogisticRegressionSummary):
class BinaryLogisticRegressionTrainingSummary(
class DecisionTreeClassifier(
class DecisionTreeClassificationModel(
class RandomForestClassifier(
class RandomForestClassificationModel(
class RandomForestClassificationTrainingSummary(
class BinaryRandomForestClassificationTrainingSummary(
class GBTClassifier(
class GBTClassificationModel(
class NaiveBayes(
class NaiveBayesModel(
class _MultilayerPerceptronParams(
class MultilayerPerceptronClassifier(
class MultilayerPerceptronClassificationModel(
class MultilayerPerceptronClassificationTrainingSummary(
class FMClassifier(
class FMClassificationModel(
class _GaussianMixtureParams(
class GaussianMixtureModel(
class _KMeansParams(
class KMeansModel(
class _BisectingKMeansParams(
class BisectingKMeansModel(
class PowerIterationClustering(
class BinaryClassificationEvaluator(
class RegressionEvaluator(
class MulticlassClassificationEvaluator(
class MultilabelClassificationEvaluator(
class ClusteringEvaluator(
class RankingEvaluator(
class Binarizer(
class BucketedRandomProjectionLSH(
class BucketedRandomProjectionLSHModel(
class Bucketizer(
class ElementwiseProduct(
class FeatureHasher(
class HashingTF(
class _OneHotEncoderParams(
class PolynomialExpansion(
class QuantileDiscretizer(
class _StringIndexerParams(
class StopWordsRemover(
class VectorAssembler(
class VectorSizeHint(
class VarianceThresholdSelector(
class VarianceThresholdSelectorModel(
class UnivariateFeatureSelector(
class UnivariateFeatureSelectorModel(
class _LinearRegressionParams(
class LinearRegressionModel(
class IsotonicRegression(
class IsotonicRegressionModel(JavaModel, _IsotonicRegressionParams, JavaMLWritable, JavaMLReadable):
class DecisionTreeRegressor(
class RandomForestRegressor(
class _AFTSurvivalRegressionParams(
class AFTSurvivalRegression(
class AFTSurvivalRegressionModel(
class _GeneralizedLinearRegressionParams(
class GeneralizedLinearRegression(
class GeneralizedLinearRegressionModel(
class _FactorizationMachinesParams(
class FMRegressionModel(
class CrossValidator(
class TrainValidationSplit(
               + \"class name
class MultivariateGaussian(NamedTuple):

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49527/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145057/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49527/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49527/

Merged to master.

Thank you!


MINOR: Reduce build time by gating test coverage plugins behind a flag

Most builds don't require test coverage output, so it's wasteful
to spend cycles tracking coverage information for each method
invoked.
I ran a quick test in a fast desktop machine, the absolute
difference will be larger in a slower machine. The tests were
executed after ./gradlew clean and with a gradle daemon
that was started just before the test (and mildly warmed up
by running ./gradlew clean again).
./gradlew unitTest --continue --profile:

With coverage enabled: 6m32s
With coverage disabled: 5m47s

I ran the same test twice and the results were within 2s of
each other, so reasonably consistent.
16% reduction in the time taken to run the unit tests is a
reasonable gain with little downside, so I think this is a
good change.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Flaky test failure:

org.apache.kafka.connect.mirror.MirrorConnectorsIntegrationTest.testReplication


Improve error messages when getting futures

Codecov Report

Merging #149 into master will not change coverage.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master     #149   +/-   ##
=========================================
  Coverage     48.96%   48.96%
  Complexity      283      283
=========================================
  Files            19       19
  Lines          1497     1497
  Branches        193      193
=========================================
  Hits            733      733
  Misses          674      674
  Partials         90       90

Impacted Files
Coverage Δ
Complexity Δ

.../java/com/redhat/red/build/finder/BuildFinder.java
25.62% <0%> (ø)
37 <0> (ø)
:arrow_down:

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 2c8e630...0f57521. Read the comment docs.


spec(mempool/dog): Add spec of Flood gossip protocol

Contributes to #4318
The DOG spec is based on Flood's spec (#4477)
README.md

How about the contents of spec/mempool/quint? Can we re-use, update, do something with it?

That spec is at a different abstraction level. For instance, the mempool is modelled simply as a set of transactions. There are no details on gossip, cache, senders, etc. It's more about the relation of mempool with consensus, which is modelled as two sets of proposed and decided transactions. So one of the main goals of this spec is to declare properties on at that level of abstraction; it's not really useful for specifying the gossip protocols.
By the way, I now see that those Quint files are broken, the parser complains with 'oneOf' must be the outermost expression in a nondet definition.

I think Quint specs are great, but several readers would also like to have an English, even if simplistic and pointing to Quint files, version of it.

I started writing the spec in English. It was not my intention to write Quint at this point. As I was writing pseudo-code, I needed to add definitions, clarifications, and more text on the meaning of the pseudo-code. I realized I was writing something very similar to Quint, so I decided to just switch the language of the spec. So I put all text in Quint comments and wrote the code as simply as possible so that it can be read as pseudo-code, abstracting all complex parts to lower level modules. My goal is that the top modules self-describe the protocols and can be read without knowing Quint or the low level modules, unless there's a need to understand the semantics of some part of the code.
I think it's not a good idea to have both the formal spec and the English spec that say more or less the same but in different files and different languages. It duplicates the work. I know that reading markdown is more pleasing than comments, so ideally, and what I was going to suggest to the Quint team, is to have the VSCode Quint plugin with support for a viewing mode that displays comments as markdown, the same as when one previews markdown files, which is natively supported by VSCode. cc: @bugarela
If forgot that the Quint docs suggests to use literate specifications. I haven't tried it but I guess the writing process would be different because I would have to transpile markdown to Quint every time I want to change the code. And also I could not rely so easily on type checking.

By the way, I now see that those Quint files are broken, the parser complains with 'oneOf' must be the outermost expression in a nondet definition.

So can you add some note on that directory and/or in the common ancestor of this one, rendering clear that it is outdated or experimental?

When I mentioned the English spec is not to provide the same abstractions or the same logic, which is typically clearer in Quint than in English. It is more to define the entry points of the Quint spec, the types or methods to put more attention, besides how to run then, what to verify and how.

Regarding Quint <-> markdown, we have currently two options and I'm happy to work on improving them or setting up something new that would be useful for this kind of thing.

Literate specifications, like a recent one here: https://github.com/left-curve/left-curve/blob/c440d02c2b7e15c92ca9c4fed9a589bf1f8dc3fc/grug/jellyfish-merkle/spec/invariants.md (check the raw file and the rendered one. A complete checkable Quint spec is produced out of this file, so it is a live document that we can check on the CI for example)

This looks great and enables all the freedom of markdown
It's a bit annoying to make changes to the Quint model with this. What I do is to change the acutal .qnt file and, once I'm done, reflect the changes on the markdown and make sure the tangled (generated from md) file is the same the .qnt one
It might be possible to write tooling that typechecks quint snippets inside markdown, and then we would be able to edit markdown directly. This is what noteeboks (likye jupyter notebook) do.

Generating markdown out of Quint comments. This is currently possible with the quint docs cli command

The current format is tuned for generating builtin operator documentation, and it's probably not a good general format. Idk if we could come up with a general format that would be useful for multiple different projects, as each project might want to organize the markdown file in a specific way.
This requires that all content from markdown is embedded in Quint comments, which I think would either degrade the markdown quality or the quint file quality.
This doesn't have the problem of having to update something when you update the model, as the markdown file can be easily re-generated

Thanks @bugarela! I like your literate spec example and I will give it a try. I couldn't find the qnt files it imports (hashes, tree, etc.). Where are those? And, do you keep the generated quint file somewhere in the repo?
I tried quint docs and it outputs only the declarations with signatures but it ignores all the comments. Does it expect a special format? I couldn't find documentation in the website.

Thanks @bugarela! I like your literate spec example and I will give it a try. I couldn't find the qnt files it imports (hashes, tree, etc.). Where are those? And, do you keep the generated quint file somewhere in the repo?

This is all under a private repo for now, we only sent that md file to the public repository at this point.

I tried quint docs and it outputs only the declarations with signatures but it ignores all the comments. Does it expect a special format? I couldn't find documentation in the website.

Yes, it only considers docstrings, which in Quint are triple-slashed comments before top level definitions/modules (copied from rust)
/// foo is bla bla
val foo = 1

/// my def is cool
pure def f(x) = {
  // This comment cannot be triple slash as it does not come before a top-level definition
  x + 1
}

I changed the Quint files for Markdown files with Quint code snippets. I think this format is much better.
@bugarela check out how I structured all the Quint code at the end of the md files using macros. In this way I don't have to insert line breaks in html comments and the md file is much cleaner.

I considered using that! I like how it solves indentation, but I don't like not having a line between each definition. If I were to use this format, I'd still keep my line break comments :sweat_smile:

but I don't like not having a line between each definition.

This renders the code super hard to read indeed.

Obviously line breaks between definitions is better, and even some comments would help when reading the code, but the quint code in this spec is not to read, now that we have the markdown files. I hope by the time we need to expand the specs with tests, models, etc. (not planned for the moment) there will be a quint fmt tool ready 😉 Otherwise we'll need to resort to put line breaks in comments.

. I hope by the time we need to expand the specs with tests, models, etc. (not planned for the moment) there will be

Ok, I would say we merge this PR as it is, but can you add this follow-up work to the existing issue or a new one?


[websub] Provide extension points for message persistence

Provide extension points for message persistence in websub Hub in Ballerina 1.2.x branch.

Fixed with https://github.com/ballerina-platform/ballerina-lang/pull/27571

We have done a complete revamp in websub module and according to the latest design websub does not support this feature.


Prevent Blammed Lights on custom songs when Flashing Lights is disabled in options.
Tested and working.
To do: Make sure LUA scripts can't bypass this.

Add Camera Shake option + Prevent Camera & Hud Shake when Camera Shake is disabled in options.
Not tested yet.
To do: Make sure LUA scripts can't bypass this.

Since we won't be able to cover all possible lua scripts, please help preventing this in your own lua scripts by using if flashingLights then under any function that flashes colours or flashes an image on notehit etc.
See one such example HERE

this may be cool to add to the base engine. if it is added ill port it over to pedr! (psych engine deluxe ressurection!)


Modified 'Compiling Apps with .NET Native' topic

Modified 'Compiling Apps with .NET Native' topic
Suggested Reviewers
@Cloud-Writer, @mairaw

@mairaw, I've added the WIP label so we can make sure this is reviewed by PSS before we merge.

Thanks, @mairaw. I've addressed all your comments.

Awesome Ron!
Thanks,
Meera
On Oct 12, 2017, at 9:39 AM, Ron Petrusha <notifications<EMAIL_ADDRESS>wrote:
Merged #3318https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fdocs%2Fpull%2F3318&data=02|01|meerak%40microsoft.com|3461e81a331a429fa63108d5118fc387|72f988bf86f141af91ab2d7cd011db47|1|0|636434231518851497&sdata=NwFpHY59rQwiN8RCX%2FDvblvYiFuRx1fMeq5dIMCtgjw%3D&reserved=0.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fdocs%2Fpull%2F3318%23event-1290667385&data=02|01|meerak%40microsoft.com|3461e81a331a429fa63108d5118fc387|72f988bf86f141af91ab2d7cd011db47|1|0|636434231518851497&sdata=qieN5OTgLtLVQ5fyG5MZgkSJUKgaHDJ%2FO%2FRIw9aH0gg%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAR4HcF170mYrDgUn4dotK4TANFswbg26ks5srkCngaJpZM4PuGOj&data=02|01|meerak%40microsoft.com|3461e81a331a429fa63108d5118fc387|72f988bf86f141af91ab2d7cd011db47|1|0|636434231518861501&sdata=ZHgOzBFXB7Z2qbqCNtJ1MJax0Afk%2BMFzSDkW8P35mes%3D&reserved=0.


test_mksession.vim might hang (.another.swp)

I am seeing a hanging test with test_mksession.vim.
Running it without >/dev/null shows:
% VIMRUNTIME=../../runtime  ../vim -f  -u unix.vim -U NONE --noplugin --not-a-term -S runtest.vim test_mksession.vim --cmd 'au SwapExists * let v:swapchoice = "e"'

"test_mksession.vim" [converted] 540 lines, 13013 characters
"Xtemp" [New] 10L, 214C written
Executing Test_mksession_arglist()
"file1" [New File]
Executing Test_mksession_blank_tabs()
4 buffers wiped out
Executing Test_mksession_blank_windows()
9 buffers wiped out
"Xbaz" [New] 0L, 0C written
"Xbaz" [converted] 0L, 0C
3 buffers wiped out
Executing Test_mksession_hlsearch()
Executing Test_mksession_large_winheight()
Executing Test_mksession_lcd_multiple_tabs()
Executing Test_mksession_no_errmsg()
5 buffers wiped out
"Xtest2" [New File]
Executing Test_mksession_quote_in_filename()
Found a swap file by the name ".another.swp"
          owned by: user   dated: Mon Jul 08 12:56:39 2019
         file name: …/Vcs/vim/src/testdir/another
          modified: no
         user name: user   host name: a.example.com
        process ID: 7577
While opening file "another"
      CANNOT BE FOUND
(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r another"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".another.swp"
    to avoid this message.

Swap file ".another.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:

I've tried to "fix" / improve this using the following (and also tried throw), but without success:
diff --git i/src/testdir/runtest.vim w/src/testdir/runtest.vim
index e120e7f23..8dc900889 100644
--- i/src/testdir/runtest.vim
+++ w/src/testdir/runtest.vim
@@ -72,6 +72,9 @@ func HandleSwapExists()
   " editing it and do ":make test_name") and the output file.
   if expand('<afile>') == 'messages' || expand('<afile>') =~ s:test_script_fname
     let v:swapchoice = 'e'
+  else
+    call assert_report('HandleSwapExists: unexpected swap file: '.expand('<afile>'))
+    let v:swapchoice = 'q'
   endif
 endfunc

It seems like errors are ignored from there, but assert_report should get passed through probably in general?

@brammool
Have you tried that the patch works as expected?
When I've tried it it did not have an effect - i.e. the test would still hang there.

Daniel Hahler wrote:

@brammool
Have you tried that the patch works as expected?
When I've tried it it did not have an effect - i.e. the test would
still hang there.

Yes, it worked for me.  But I only tested with an empty .another.swp
file.  Tried again with a real swap file:
Found errors in Test_mksession_quote_in_filename():
function HandleSwapExists line 7: Unexpected swap file: .another.swp
Works with and without redirecting to /dev/null
--
ARTHUR:   Ni!
BEDEVERE: Nu!
ARTHUR:   No.  Ni!  More like this. "Ni"!
BEDEVERE: Ni, ni, ni!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


Lab 20 missing steps at Exercise 1 > Task 2 > Step 6

Missing steps, prior to Step 6, it should mention that learners must go to Azure Pipeline > Pipelines > Create a new pipeline

Step 6 was updated for clarification as follows:
Switch back to the web browser tab displaying the Where is your code? pane.  If you have closed this tab, return to the SonarExamples pane in the Azure DevOps portal, in the vertical menu bar at the far left of the Azure DevOps portal, click Pipelines and then click Create Pipeline.


Add flitering by version

This only supports one network. I'm going to add multiple network support soon. In the meantime, is there  anything else you would like me to change?

It seems good except the multiple networks support :+1:

Hi @Darth-Ness, I added Create Negy's full network by building source code document at here.
https://negy.io/docs/contribution/development_contribution#by-building-source-code
If you still have a docker-compose problem, use the create commands in the above docs to confirm the network behaviour.

Thanks! Is it supposed to have me run two neg-nodes?

Am I supposed to filter a vector by a vector? For the multiple network support.

Thanks! Is it supposed to have me run two negy-nodes?

In the example commands above, yes. So you have to specify --hops=2 as the gateway option.

Am I supposed to filter a vector by a vector? For the multiple network support.

Yes.
Also, could you change the pull request title? It seems wrong.

Thanks! Is it supposed to have me run two negy-nodes?

In the example commands above, yes. So you have to specify --hops=2 as the gateway option.

Am I supposed to filter a vector by a vector? For the multiple network support.

Yes.
Also, could you change the pull request title? It seems wrong.

Oops, I fixed that now.

All right, that should work.

All right, my new commit fixes the issue. I also followed the directions you followed above and it worked fine.

Did you confirm that your code works fine? I don't think so. Please confirm it first before requesting a review from me.

Yes, I did test it and it worked.

Do not just check that you can compile or that the commands can be executed without problems, but that the functionality works correctly. How can you block by the network name of a node if you are not using information about the nodes on the network?
https://github.com/negyio/negy/pull/26/files#diff-8c6588549035c43e116126c4af4ff11572b6f751a8dc99ddde44d726a5221047R76

Yeah, it looks like what I did is filtering out every node. So block_network is the list of networks from the uses right? So then how would I get a list of network names from the nodes?

Like here you can refer the network name by name.

That should fix it, and specifying a network to block doesn't break it either.

Yup implementation itself is good :+1: Cloud you apply rustfmt at last? I gonna merge this after it.

I ran rustfmt

Awesome. Thanks!!!


fix(curriculum): "withing" changed to "within"

There was a typo in tenth line. I changed it from "withing" to "within".
Checklist:

[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 main branch of freeCodeCamp.
[ ] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

I was not able to test it unfortunately as I am a beginner but I am guessing that it would not create a problem as the change is quite small.

Congrats on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We are happy to accept these changes and look forward to future contributions. 📝


OLM: Add an OpenShift-specific annotation

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Adds an OpenShift-specific annotation that aids the OLM in showing the
operator for the correct OpenShift subscriptions.
Which issue(s) this PR fixes:
None

Does this PR have test?
Will be tested implicitly by OLM tests. Otherwise no, this is an OCP-specific
annotation that will be tested in the OCP container verification pipeline.

Special notes for your reviewer:
N/A
Does this PR introduce a user-facing change?

NONE

oops sorry I only committed the result of the make bundle command not the actual CSV change facepalm

@JAORMX sorry,can you re-add the lgtm tag if you still are OK with the patch? The OLM tests passed now


Encountered an error during CreateContainer: failure in a Windows system call: No hypervisor is present

Hi,
I'm deploying docker image to service fabric cluster (windows) but I'm getting this error message. I can pull the image run container manually from the VM. What cause and solution of the subject?

Event log: (service fabric cluster node)

Failed to start Container. ContainerName=sf-560-24192322-ed22-4184-bbe2-f9bef853470e_9484df8c-b492-4eae-9430-764973663bd7, ApplicationId=test_julia_appType_App560, ApplicationName=fabric:/test_julia_app. DockerRequest returned StatusCode=InternalServerError with ResponseBody={"message":"container 82105a259650e0553bea3cc8557ef33f31fb42921cd4f871b8d88eaf1cc2b704 encountered an error during CreateContainer: failure in a Windows system call: No hypervisor is present on this system. (0xc0351000) extra info: {"SystemType":"Container","Name":"82105a259650e0553bea3cc8557ef33f31fb42921cd4f871b8d88eaf1cc2b704","Owner":"docker","IsDummy":false,"IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\\ProgramData\\docker\\windowsfilter\\82105a259650e0553bea3cc8557ef33f31fb42921cd4f871b8d88eaf1cc2b704","Layers":[{"ID":"e2349bdf-65b5-5e5d-a1dc-62f50c8e605e","Path":"C:\\ProgramData\\docker\\windowsfilter\\51328b8be47951ff19e2f26cdaf7a9bc413e725c9b1c2bcd739397e160f364b8"},{"ID":"c1bee4f8-4796-5d13-a0b3-d622318cbead","Path":"C:\\ProgramData\\docker\\windowsfilter\\416992fb630921eafdb6c9f10a35fb41bc8b71357def96445150a58fea66b3b2"},{"ID":"ffaa4b88-3f81-5358-9042-7fcd049b49fe","Path":"C:\\ProgramData\\docker\\windowsfilter\\f87b5ead69df4df9bc6132985d514598c083277aa0f364b6ae4d414242ff3e00"},{"ID":"2a3dce76-bcab-59c9-928b-3e0205be4b2c","Path":"C:\\ProgramData\\docker\\windowsfilter\\2c4ab98becff40db06952b6ea37b5ee9742e6f05272e7123e1f7f4e7789c9912"},{"ID":"beefaa7e-8c55-59cc-94d2-c9d7db348b44","Path":"C:\\ProgramData\\docker\\windowsfilter\\2248b3db2bed036a1c10c0cc05086f4cfcd2c4b83c0782b4c4867347113461a3"},{"ID":"d5e8e944-7a1b-5259-80cb-4b0a4fe88b20","Path":"C:\\ProgramData\\docker\\windowsfilter\\128962cc071f3f77781d2a4169516afe592865bb9c3eddef62809d05ae33d29b"},{"ID":"fd4814c8-be06-56bb-8500-275d9aadee44","Path":"C:\\ProgramData\\docker\\windowsfilter\\068f2d74cb502003e7e4e17f69bff9cd59cc7add1c007179ff3d03317104b0ad"},{"ID":"353f67b1-91f8-59bf-9671-ff8d7ad42cc6","Path":"C:\\ProgramData\\docker\\windowsfilter\\f07c2a38aed7759f0de8f03f837203f7a39e45d72b58413f6148da7fd5a2813f"},{"ID":"5732eeac-6056-5d7f-adb6-c094575d572c","Path":"C:\\ProgramData\\docker\\windowsfilter\\f9025f168ec5e663a2b8ecbe48822af270b827c3c6532b62b40e807e171fb86d"},{"ID":"4bdf52e9-4460-5fe2-9e8f-f271f21ff722","Path":"C:\\ProgramData\\docker\\windowsfilter\\a6382666baae00590e686b62ad36b738919e1a7326880689b351ff0d9c218694"}],"HostName":"82105a259650","MappedDirectories":[{"HostPath":"d:\\svcfab\\_nt1vm_4\\fabric","ContainerPath":"c:\\sfpackageroot","ReadOnly":true,"BandwidthMaximum":0,"IOPSMaximum":0},{"HostPath":"c:\\program files\\microsoft service fabric\\bin\\fabric\\fabric.code","ContainerPath":"c:\\sffabricbin","ReadOnly":true,"BandwidthMaximum":0,"IOPSMaximum":0},{"HostPath":"d:\\svcfab\\log\\containers\\sf-560-24192322-ed22-4184-bbe2-f9bef853470e_9484df8c-b492-4eae-9430-764973663bd7","ContainerPath":"c:\\sffabriclog","ReadOnly":false,"BandwidthMaximum":0,"IOPSMaximum":0},{"HostPath":"d:\\svcfab\\_app\\test_julia_apptype_app560","ContainerPath":"c:\\sfapplications\\test_julia_apptype_app560","ReadOnly":false,"BandwidthMaximum":0,"IOPSMaximum":0}],"SandboxPath":"C:\\ProgramData\\docker\\windowsfilter","HvPartition":true,"EndpointList":["acf6cadc-f5aa-4bbc-b123-94e6f3d63ff3"],"HvRuntime":{"ImagePath":"C:\\ProgramData\\docker\\windowsfilter\\f9025f168ec5e663a2b8ecbe48822af270b827c3c6532b62b40e807e171fb86d\\UtilityVM"},"Servicing":false,"AllowUnqualifiedDNSQuery":true,"DNSSearchList":"test_julia_app"}"}

If needed, I can provide the image. Thanks in advance!
Update:
Deploying in local cluster gives a different error: "container deployment is not supported on the node".
Need to fix both.
Regards,

This seems to be the cause:  failure in a Windows system call: No hypervisor is present on this system.
What's the version of Windows Server you are running? If Azure - which image did you use.
This might be because container and hyper-v is not enabled on the server.

In Azure only the v3 SKUs (Dv3, Ev3) support hyper-v. With Windows Server 2016 with Containers version 1709 and higher on a v3 SKU, hyper-V is enabled by default. But if you're running Windows Server 2016 with Containers (the RTM version), it needs to be manually enabled.

I do not see a v3 SKU. Could you please point to the correct VM size?


[6.0] Fix a nondeterministic test failure of testDontStackTargetPreparationForEditorFunctionality

Explanation: We fulfilled the allDocumentsOpened expectation directly after dispatching the notification to open LibD.swift. This left a very short window in which LibB’s preparation could finish and LibC’s expectation could start before the open notification for LibD.swift was handled, causing an unexpected preparation of LibC.
Scope: Test-only change
Risk: Very low, test-only change
Testing: Ran tests
Issue: This fixes the issue first reported as rdar://129698768 and for which I added logging in https://github.com/apple/sourcekit-lsp/pull/1478.
Reviewer:  @hamishknight on https://github.com/apple/sourcekit-lsp/pull/1499

@swift-ci Please test Windows


iloc operation should keep the index columns

The current iloc operation resets the index columns.

Code to reproduce issue.
from pycylon import DataFrame
from pycylon import CylonContext
ctx: CylonContext = CylonContext(config=None, distributed=False)
import pandas as pd
nrows = 10
df0 = {'col-0': list(range(10)), 'col-1':list(range(10))}
df = DataFrame(df0)
df.set_index([0,1,2,3,4,5,6,7,8,9])
df1 = df.iloc[0:5]
df2 = df.iloc[5:10]
print(df1)
print(df2)
df3 = pd.DataFrame(df0)
df4 = df3.iloc[0:5]
df5 = df3.iloc[5:10]
print(df4)
print(df5)
print(df1.index.values, df2.index.values)
print(df4.index.values, df5.index.values)

This is coming from the C++ backend, I will look into this one.

@deHasara it seems loc and iloc operations are not in DataFrame. How do you use them?


Not able to connect to Solaredge SE10K inverter

I´m not able to connect to my SE10K inverter from Solaredge although it implements the sunspec implementation.
I disabled and reenabled the Modbus TCP connection and tried to connect through the integration within a timespan of 2minutes but can´t connect to the inverter.

Version of the custom_component
0.0.5 (latest)
Configuration
IP Address from inverter (<IP_ADDRESS>)
Port (1502 was set in Solaredge SetApp)

Have you checked that the slave id matches your inverter device id?
Can you ping it on that IP?

What do you mean by"inverter device id"? I think I can remember that solar edge inverts just accepts one modbus slave at a time and this should be always "1". Am I wrong?
I didn't try to ping it but I know that the IP is correct since I successfully managed to get this custom component working:
https://github.com/erikarenhill/solaredge-modbus-hass

I have the same issue with SolarEdge SE7K, inverter has working on solaredge-modbus-hass integration but on Your integration it won't work

What do you mean by"inverter device id"? I think I can remember that solar edge inverts just accepts one modbus slave at a time and this should be always "1". Am I wrong?
I didn't try to ping it but I know that the IP is correct since I successfully managed to get this custom component working:
https://github.com/erikarenhill/solaredge-modbus-hass

I meant modbus slave id, the other component is using 1 so that shouldn't be the problem.
The client library used in my component, pySunSpec2, is doing a scan on initial connection to discover what registers are available. A theory is that perhaps this takes to long or trips up your inverter somehow.
It would be interesting to see if a python script using pySunSpec2 can connect to it outside of Home Assistant. I'm currently not home but once I get back I'm happy to try and works something out to test this.

I have the same issue with SolarEdge SE7K, inverter has working on solaredge-modbus-hass integration but on Your integration it won't work

Sounds like the same problem as above, would be happy to try and figure this out once I get home again.

I'am using 0.0.11 and changed the two lines in api.py:
FROM:
model.read()
time.sleep(0.6)

TO:
time.sleep(0.6)
model.read()

Now the integration is working for my SolarEdge SE5K SetApp inverter.

I'am using 0.0.11 and changed the two lines in api.py:
FROM:
model.read()
time.sleep(0.6)

TO:
time.sleep(0.6)
model.read()

Now the integration is working for my SolarEdge SE5K SetApp inverter.

On 0.0.11 these two lines are:
time.sleep(0.6)
model.read()

not need to change to... You really have a 0.0.11 with
model.read()
time.sleep(0.6)

?
https://github.com/CJNE/ha-sunspec/blob/80a468f4eb2549f131e7a540f23652dc07b1b778/custom_components/sunspec/api.py#L130-L132

You're right. I don't know what happened. But it is working now with the SolarEdge inverter and in the previous versions it wasn't.

Now, version 0.0.11 installed from HACS is working for me without aby problems and modifications :). How about You @marschallphilipp ?

Thank you all for making this possible. I can confirm that it's more working for me with a SE10K inverter from Solaredge.
To be honest, I hoped to get some data of the BYD LVS batteries which are corrected to the converter too. Unfortunately this is not the case.
When trying to receive data from the batteries using the modbus integration I haven't been lucky. Unfortunately I haven't found any reporting that this is actually possible with the SE10K inverter but still hoping to get it working some day soon.
Anyway thank you very much!


Detect wasm version

Hi Simon, I try to follow your sqlite3 updates for both the package and the wasm binary. Sometimes we might have a difference between the sqlite3 package version used and the wasm installed binary which can lead to the following bug: https://github.com/tekartik/sqflite/issues/974. Is there a way to detect from the web side (after loading the wasm binary) the version of the wasm library loaded and get the sqlite3 package version - still from the web so that means an addionnal exported constant) ? By doing so we could inform the developer to reinstall the latest wasm (I have a small tool that download your binary but nothing prevent the user from having an old wasm installed). But sometimes the package will be updated but still being compatible with the existing wasm. Well I'm not sure I'm clear but I just wonder if you either think about how making sure the installed version are compatible or whether it is just a developer pb.

The intention was for changes to be backwards compatible, so it looks like I've slipped up here -- sorry!
I think we can provide the expected version as a constant in the library - you can get the actual version through CommonSqlite.version and compare them.

So I've just realized that this wouldn't work of course since the error happened when instantiating CommonSqlite -- oops! I think the original problem can reasonably be considered a bug in this package since we should support older versions in general. That was fixed in 4d4251d4cfc201880d748856bafb90b6abf6ef9c.
The desired behavior in this package is to throw an exception suggesting a upgrade for sqlite3.wasm when an unsupported feature is used, but to generally work with older versions of the compiled library. That's also the intention that you had for the sqflite wrapper, right? Do you still need an API to check the expected version if older versions are supported?

Yes the intention is to be backward compatible as much as possible and yeah bug might happen but since the developer should see a relevant exception in this case while developing, I'm perfectly fine in having him manually update the wasm binary when he sees obvious crashes. I guess you might have similar issue with drift on the web. Closing the issue, thanks.


Add a new table of contents format

Proposal
Add a new table-of-contents format to live inside myst.yml. This will supersede the _toc.yml which is strongly constrained by the design of Sphinx (sphinx-external-toc).
Additional notes
This format should be readable, easy to guess, and support styling markup (e.g. dropdown vs header)

TODO: initiative

@choldgraf I would be curious on your take on @agoose77's proposal that we went through on Monday and I think is pretty close.
I always have a lot of difficulty in working with the current TOC, and there is a lack of flexibility and confusion on where to use the keywords of part chapter section and caption. Every time I use it I have to bring up the docs and it is difficult or impossible to do certain things. (e.g. have headers inside of nested elements, a section that is a dropdown and a link and styled a certain way, etc.).
The goals that @agoose77 @fwkoch @stevejpurves and I discussed was a new toc format that: (1) is easy to understand, move around (e.g. unindent the yaml, no changing of key-names from chapter -> part); (2) the root isn't special, it is just a page; (3) can support parts for book exports in a more robust way (e.g. this is the abstract, this is an appendix); (4) supports easy access to styling; (5) can be added directly in the project config; (6) has the ability to do partially implicit contents based on files/folders/pattern matching; (7) sets us up to be able to render part of the toc in the document, based on a label similar to anything else. (8) support for numbering across an entire resource (currently numbering restarts on each page in the website).
I think the new format that @agoose77 mocked up is hitting those. Are there things we are missing as ways to set that up?

Based on your list of goals above, and the fact that you think we are hitting them, I think that this is safe to merge and play around with to see if our understanding of this changes as we use it. We could make this as an alpha feature and then try it out. As is, I don't see anything that should be a blocker (other than perhaps more comprehensive docs to cover all the things you mentioned!). It looks great!
One thought I had as an example: I wonder if we will regret not having semantic tagging (part or chapter) in some export conditions, like latex. I don't know it will be the case though, and I think we will only learn once people try it and open issues that suggest this level of control would help rather than hinder. In the absence of that data, however, I think simpler is definitely better!

Based on your list of goals above, and the fact that you think we are hitting them, I think that this is safe to merge and play around with to see if our understanding of this changes as we use it. We could make this as an alpha feature and then try it out. As is, I don't see anything that should be a blocker (other than perhaps more comprehensive docs to cover all the things you mentioned!). It looks great!
One thought I had as an example: I wonder if we will regret not having semantic tagging (part or chapter) in some export conditions, like latex. I don't know it will be the case though, and I think we will only learn once people try it and open issues that suggest this level of control would help rather than hinder. In the absence of that data, however, I think simpler is definitely better!

Thanks for jumping in @roaldarbol -- I am having a bit of difficulty fully understanding your suggestion. I would like us to have another think on this from the PDF export and ensuring that we are supporting the right level of nesting (i.e. to support latex chapter/part/section stuff). I know that @fwkoch has been able to do this internally in our book exports so far, and there are no labels for part/chapter at this stage, I forget how that is done though!

Yeah sorry wasn't very clear - and on second thought it might not be an issue. All I want is to retsin the ability to say "this document is a part" or "this document is a chapter" somehow. But I guess the +++ fences would specify that, right?

Just a general point here: I think our goal should be to ship an MVP, and make sure we aren't accidentally closing any important doors in the process, with the goal of getting it into people's hands and iterating from there. So my question re: part, chapter, etc is: could we iteratively add that functionality later if we wanted to? If so, let's just get this in and start playing with it so that we gain better intuition for how it could be better.


extends util/config and util/pconfig

Gives util/pconfig the ability to list all the channel IDs, and adds command-line help to both utils.
Before merging this, someone who's more familiar with hubzilla should check my assumptions:

these scripts are only intended to be used from the command-line, so improving their command-line UI should be safe with regard to the rest of hubzilla
There'll never be a configuration family named "-h" or "--help", so util/config -h is unambiguous. (if "-h" isn't the first argument then getopt() will ignore it)

Looks good. Thanks...


dragon dart

D darts are counted as mith darts

Is this after changing dart type in config?

Is this after changing dart type in config?

Mine show up as rune darts not sure why.

Fixed in 3.0.0 so that whenever you check or add new darts to the bp, it updates the config with the current dart type. Mith darts is the default and the config had to be set manually which is why this issue was originally created.


Scroll speed note

Describe your problem here.
So, I want to create a note that, when not pressed, considerably increases the scroll speed, along with a flash of an image on the screen
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No

just use the change scroll speed event and place it on the same line as your note
for the camera do
cameraFlash('hud', FFFFFF, 1)

local theFuni = 1
function noteMiss(id, noteData, noteType, isSustainNote)
	if noteType == 'Instakill Note' then
		theFuni = theFuni + 0.1
		triggerEvent("Change Scroll Speed", theFuni, "0.01")
	end
end
-- theres probably a better way of doing this but yeah also im way too lazy to do the image thing

Thanks


Add ResizeObserver Support

Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines
[ ] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Feature
Refactoring

What is the current behavior? (You can also link to an open issue here)

It doesn't react when size of Wowerlay/target changes.

What is the new behavior (if this is a feature change)?

It adds ResizeObserver for browsers that supports it. With ResizeObserver when Wowerlay or target element resizes, Wowerlay will update its position.

Project is refactored.

Scripts are refactored.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No

@teamseodo/frontend
Blocked by https://github.com/teamseodo/wowerlay/pull/30


Support for Binding Multiple Views to same Model

Added support for binding multiple views to same model and being able to unbind each view separately from the model. This was a necessary step for me since I've designed a highly decoupled view structure for forms in my BackboneJs Application. That is based on composition of separated components (views, layouts) sharing a single Model that needs to be synchronized to their elements' values.
Without this support, when you try to bind several views that share the same model, only the last view gets actually bound resulting in a quite confusing behavior.
I've developed an approach of storing each associated view into an array attached to the model when the binding takes place, so they can be looped later when the validate method gets executed and the valid and invalid callbacks are run for each view marking the proper elements with its validated attributes.
This solves issues:
#140
#227
I've also included a suite of unit tests to the binding tests set.
I hope you find it as useful as it is to me. Feedback is more than welcome!

@RafaelCasuso Due to our latest release — v0.10.0 —, you have to update your tests. Could you?

@chiefGui Sure thing. I'm on it.

@chiefGui Everything should be ok now. Please let me know if any further change is needed.

Hey @RafaelCasuso. You're doing an amazing job! Tomorrow we'll be merging this. Thank you so far! :+1:

Thanks! :+1:


[shared_preferences plugin] README: Clarify supported platforms and the native storage used

The shared_preferences plugin supports all the 6 available platforms, but it is no totally clear in the pub.dev README:

The upper badge at the top specifies this information, but this badge is not always reliable (I have often found that it was wrong; I suspect it is based on imported libraries, and therefore does not detect a possible lack of implementation on the native side, when MethodChannels are used).

To confirm that the badge is correct you can consult the issues, but in the case of the official Flutter plugins you have to consult a very large issues tracker, and it is not quick for everyone to search it.

It may be useful to know which storage mechanism is used under the cover (for example localstorage of dart: html in Flutter/Web). at the moment this is only made explicit for Android and iOS:

Wraps platform-specific persistent storage for simple data (NSUserDefaults on iOS and macOS, SharedPreferences on Android, etc.)

Please let me know if this was not the correct way to open an issue linked to a specific plugin (even reading the wiki I did not find a precise indication for the subject)

I have note only now that a confirmation of the supported platforms can be obtained by looking at the "Dependencies" section to the right of the Readme. Unfortunately, however, also the Readme of platform-specific packages do not provide information on the storage mechanism used.

This was added a while ago, the PR just didn't get linked to this issue.


Find Next/Previous keyboard shortcuts are needed

Is your feature request related to a problem? Please describe.
Find Next/Previous keyboard shortcuts are needed for finding the last searched expression inside an editor window for quicker editing.
Describe the solution you'd like
Many text editors include the standard F3 / SHIFT+F3 shortcut for FIND NEXT / PREVIOUS actions.
Since the F3 shortcut is already taken in DBeaver, I would suggest adding two other keyboard shortcuts: CTRL+ALT+F / CTRL+ALT+B (forward/backward)
Describe alternatives you've considered
Currently, I have to switch back and forth to the FIND/REPLACE mini window and press ENTER to get to the next find.
Additional context

thanks for suggestion


Macro documentation is confusing

Macros can be hard to understand if you don't know how to extend them using the macro options. I never know what I'm supposed to put in the macro and where it should go and if it should be nested.
Can we have some complete examples of macros showing examples that are easy to copy?

Thanks @gavinwye - we've added this issue to a future epic we have relating to macros in general.


Avi v3: support minimum 1 cpu

relax minimum CPU constraint to 1 cpu.

@ryadav88  please review, added examples and made changes per review. Sent a PR for examples repo too.


Adds DCOS os attribute to linux agents

What this PR does / why we need it: Sets up the DCOS os attribute for linux agents (windows is handled elsewhere).  This allows  services and jobs to be dispatched to linux or windows agents in a mixed environment.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #1330
Special notes for your reviewer:
Release note:

This change is

@yakman2020,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

go fmt'ed engine.go


[BUG] [lighting-app] cannot build for ESP32-C3-devKitM-1

Reproduction steps
cd ${MATTER_SDK}
source scripts/activate.sh
cd examples/lighiting-app/esp32
idf.py set-target esp32c3
idf.py build

In file included from /home/mmt-10/matter/matter-master-20230309/examples/lighting-app/esp32/main/AppTask.cpp:23:
/home/mmt-10/matter/matter-master-20230309/examples/lighting-app/esp32/main/DeviceWithDisplay.h:23:10: fatal error: Display.h: No such file or directory
#include "Display.h"
^~~~~~~~~~~
compilation terminated.

/home/mmt-10/matter/matter-master-20230309/examples/lighting-app/esp32/main/Button.cpp:26:10: fatal error: ScreenManager.h: No such file or directory
#include "ScreenManager.h"
^~~~~~~~~~~~~~~~~
compilation terminated.

/home/mmt-10/matter/matter-master-20230309/examples/lighting-app/esp32/main/include/WiFiWidget.h:21:10: fatal error: Display.h: No such file or directory
#include "Display.h"
^~~~~~~~~~~
compilation terminated.

/home/mmt-10/matter/matter-master-20230309/examples/lighting-app/esp32/main/DeviceWithDisplay.h:23:10: fatal error: Display.h: No such file or directory
#include "Display.h"
^~~~~~~~~~~
compilation terminated.

Bug prevalence
always
GitHub hash of the SDK that was being used
commit 1f2f8820073f96c842869f693248dc2acba17dd0 (HEAD -> master, origin/master, origin/HEAD)
Platform
esp32
Platform Version(s)
No response
Anything else?
No response

https://github.com/project-chip/connectedhomeip/pull/25550 had added display components, so may have broke the C3. Will fix this

Thank you for your reply.
I revised temporary during fixing.
Display.h, ScreenManager.h, ListScreen.h, StatusScreen.h and any header file are under #if CONFIG_HAVE_DISPLAY.

@mmt-10 If you have a patch you could put up a PR


Use UI in VSCode to editor a JSON file in VSCode

Is there a way to use the generated UI to edit a JSON file within VSCode?

Not at the moment - currently the VS Code Extension is used for preview only


Move common code to a new dir

I moved around a few files. The main changes:

coreblocks/params/isa_params.py -> coreblocks/common/isa.py
coreblocks/frontend/decoder/isa.py -> coreblocks/common/isa_consts.py
coreblocks/frontend/decoder/optypes.py -> coreblocks/common/optypes.py

Rationale:

Importing coreblocks.frontend.decoder.isa for such a basic thing like Funct3 didn't feel right. IMO coreblocks.frontend.decoder shouldn't be a path that almost the whole core includes.
There are plenty of files in coreblocks/params that don't depend on GenParams at all, but by doing import coreblocks.params we have to import GenParams with its all dependencies
There was an import loop:

test/frontend/test_fetch.py:14: in <module>
    from coreblocks.frontend.fetch.fetch import FetchUnit, PredictionChecker
coreblocks/frontend/fetch/fetch.py:12: in <module>
    from coreblocks.frontend.decoder.rvc import InstrDecompress, is_instr_compressed
coreblocks/frontend/decoder/__init__.py:2: in <module>
    from .optypes import *  # noqa: F401
coreblocks/frontend/decoder/optypes.py:3: in <module>
    from coreblocks.params.isa_params import extension_implications, extension_only_implies, Extension
coreblocks/params/__init__.py:2: in <module>
    from .genparams import *  # noqa: F401
coreblocks/params/genparams.py:9: in <module>
    from .fu_params import extensions_supported
coreblocks/params/fu_params.py:7: in <module>
    from coreblocks.frontend.decoder import optypes_required_by_extensions

I see why such change is needed, but I don't like the common directory name. Last time such dir ended with containing everything which doesn't passed anywhere else. You have two isa files and one optype file, so maybe let name it arch directory or somehow similar?

Cannot merge due to conflicts.


Some help for message passing between requests (Loop handlers).

Hi,
I need some help in loop handlers.
Let's say with have a request1 from client1 in a loop handler.
A request2 from client2 needs to send a message in the mail box of the request1 process.
How the request2 knows the process identifier, or pid of  request1 process to send a message?
Thanks for your time.

Using process groups like pg or a process registry like erlang:register.


Confusion regarding the multiplication used

I was going through your code for the implementation of IEEE 754 floatingpoint multiplier. I noticed that you used z_e <= a_e + b_e + 1; product <= a_m * b_m * 4; but I was bit confused as I think the code should be  z_e <= a_e + b_e + 127; product <= a_m * b_m ;. But your syntax gives the correct answer but mine does not. Can you explain the logic behind using it?

Hi, I've already subtracted 127 from both a_e and b_e beforehand (line 52 and 53) so I'm just adding 1 to get the correct exponent by removing the bias of 127. Also, I'm multiplying by 4 to left-shift the product by 2 bits whose significance you can see later on in the code in rounding and normalizing and/or the exponent depending on the mantissa.


subsys/dfu/boot: Fix image confirm for Direct XIP

Previously the boot_write_img_confirmed() function used the MCUboot public API function boot_set_confirmed(), but this function is hardcoded to set the confirmed flag of slot 0. This works for MCUboot swap modes but not for Direct XIP, where applications can execute out of secondary slots.
This commit changes boot_write_img_confirmed() to instead use boot_set_next() which sets the confirmed flag for a given flash area and works with Direct XIP.
To support this, new functions boot_active_slot() and boot_flash_area_id() have been added to get the current active slot and flash area.

See https://discord.com/channels/720317445772017664/884454075595390986/1156590681490473051 for discussion on this issue.

@de-nordic The tests under tests/subsys/dfu/ are failing for this PR due to CONFIG_FLASH_LOAD_OFFSET not being defined. Looking at the tests though, it seems they are intending to (among other things) mark as confirmed a slot that the application is not running in.
While this worked previously because boot_write_img_confirmed() always marked as confirmed the primary slot (i.e. slot0_partition for single image) it no longer works now that boot_write_img_confirmed() marks as confirmed the current slot, which is its documented behaviour.
Am I right in thinking then that those tests are using boot_write_img_confirmed() incorrectly and need to be changed?

I'd like to expedite this change if at all possible as it is strongly desired for our product. Is there anything I can test/add to help out?

I believe this will be lower priority for reviewers as the feature freeze for the next release has passed. However I think this could be considered a bug as it fixes functionality that does not behave as documented.

@de-nordic please take a look

Test failures fixed.

@nordicjm Please could you take a look at this?

Bump @nordicjm

@aescolar Please review.


Decouple Authorization Logic from ReviewBidsController

As a developer, I want to decouple authorization logic from the controller so that the code adheres to the Single Responsibility Principle.
Tasks

[x] Refactor action_allowed? method in ReviewBidsController.
[ ] Test authorization across different user roles.

Acceptance Criteria

[x] The action_allowed? method in ReviewBidsController is removed or simplified to delegate authorization checks.
[ ] All existing features and behaviors of the ReviewBidsController remain unchanged after refactoring.
[ ] Automated tests are written to cover authorization scenarios for all relevant user roles
[ ] Tests confirm that authorized users can access appropriate actions and unauthorized users are properly restricted.
[ ] The refactored code passes peer review focusing on code quality, readability, and compliance with the Single Responsibility Principle.
[ ] Any feedback from the code review is addressed and resolved.
[ ] Design documentation is updated to reflect changes in authorization handling

https://staging.rubyvideo.dev/talks/access-denied-the-missing-guide-to-authorization-in-rails

https://guides.rubyonrails.org/action_controller_overview.html


callbacks.checkpoints uses old flax.training.checkpoints API

This means that trying to restore checkpoints using Orbax:
import orbax
orbax_checkpointer = orbax.checkpoint.PyTreeCheckpointer()
loaded_state = orbax_checkpointer.restore("save_dir", item=init_state)

results in an error
FileNotFoundError: File not found: ss_model/checkpoint_-0.19632871448993683/.zarray. In many cases, this results from copying a checkpoint without using the `-a` flag.

A workaround is to use flax to restore the checkpoint
from flax.training import checkpoints
checkpoints.restore_checkpoint(ckpt_dir='save_dir', target=init_state)

but in the interest of using the more flexible (and future-proof) Orbax API, it would probably be a good idea to update the checkpointing callback.
What are your thoughts? To be honest, I am not super familiar with the various checkpointing APIs and the current status quo, so I may have made some incorrect assumptions above.

This is a great question. I had 2 ideas:

Refactor ciclo.checkpoint to use Orbax directly.
Create an Adapter for Orbax checkpointers so you can use them directly inside loop e.g: https://github.com/cgarciae/ciclo/blob/main/ciclo/callbacks.py#L571-L588


Put a note in README that this library uses deprecated protocol version and won't work

The registration is now failing as per announcement:
https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430

We're updating our client options page and will be de-listing clients that do not support ACMEv2. https://github.com/letsencrypt/website/pull/761


credential_process works differently than AWS cli

NOTE
If this case is urgent, please subscribe to Subnet so that our 24/7 support team may help you faster.

Expected Behavior

minio-go reads credential_process from ~/.aws/config, like what the official AWS cli does: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html
Current Behavior

minio-go reads credential_process from ~/.aws/credentials, not ~/.aws/config. See https://github.com/minio/minio-go/pull/1716.
Possible Solution

Read ~/.aws/config for credential_process
Steps to Reproduce (for bugs)

Configure credential_process following AWS docs
Try to use restic (a backup tool using minio-go) to access a backup repository on S3

Context

As mebtioned above, I'd like to use restic with credential_process
Regression

Not a regression
Your Environment

Version used (minio --version): minio-go 7.0.46
https://github.com/restic/restic/blob/v0.15.0/go.mod#L17
Server setup and configuration: AWS S3
Operating System and version (uname -a):

Linux archlinux 5.15.89-1-lts #1 SMP Wed, 18 Jan 2023 11:24:46 +0000 x86_64 GNU/Linux

Feel free to send a fix, we should support both files.


Fixes #33 & #34

This pr, fixes issues #33 & #34 plus a few other minor tweaks listed below;

I installed & migrated the project to styled components.
Manually styled the site then removed bootstrap
removed jQuery - unused
Moved the converter to its own component.
Moved converter function to the helpers directory which is under /frontend/components/helpers

for the most part things in the helper directory won't need to be changed, therefore tucking them away ensures that no-one accidentally touches sth they shouldn't

Moved the formats to utilities which is under /frontend/components/helpers/utilities.ts; as explained above this rarely needs to change, & it would just get in the way if it stays in the converter component.

Stuff that might need attention in the future;

Redesigning the site to bring in sth. like material theme or such a well-defined design system
Include a link on how to contribute to the project on the site
Improve the contribution docs (took me a while to get started - I had a few unexpected bugs with types)

In case there is something you need me to elaborate further or finetune with the code, let me know.

Great!


Revendor dependencies

Fixes:
$ go build
deploy/deploy_helper.go:305:17: undefined: "k8s.io/kube-deploy/cluster-api-gcp/vendor/k8s.io/kube-deploy/cluster-api/util".NewKubernetesClient
Commands:
dep ensure -add k8s.io/kube-deploy/cluster-api
dep ensure -update

This change is

/assign karan
/assign jessicaochen

From what I understand, the only thing that should change is the kube-deploy commit hash in the dep lock file, and maybe a few files within the vendor directory. I think it would be safer to update just kube-deploy if possible.

I thought about it but since it had updated it all, I thought it would be OK just to go ahead and update all the dependencies.
Any concern about going ahead and updating everything else?

And FWIW, dep shows this:
dep ensure -update                     update the locked versions of all dependencies
I am not sure if there is a way to update only that particular dependency. If we have a reason to do it, I can dig deeper to find out.

Wouldn't dep ensure -update k8s.io/kube-deploy/cluster-api  work?
dep ensure -update github.com/pkg/foo github.com/pkg/bar

    Update a list of dependencies to the latest versions allowed by Gopkg.toml,
    ignoring any versions recorded in Gopkg.lock. Write the results to
    Gopkg.lock and vendor/.

Yes, I have tested it. It does build and deploys.
Let me know if there's any objection to updating everything.

Just an FYI - only dep ensure -add k8s.io/kube-deploy/cluster-api did the right thing for me. We should try this on a fresh clone as well.
Opened #563 for documenting the right way.

I tried on a fresh clone, and "dep ensure -add" doesn't work for me.
This is the series of command I had to do to make it work:
dep ensure -add k8s.io/kube-deploy/cluster-api
dep ensure
dep ensure -update k8s.io/kube-deploy

Let's move to a different PR that only updates kube-deploy:
https://github.com/kubernetes/kube-deploy/pull/568
/close


Add ndarray for NumPy users doc

Motivated by @rcarson3 in #419, I put together an initial "ndarray for NumPy users" document (rendered here). It needs more stuff added (maybe some examples solving the same problems with NumPy and ndarray?), and I'm not convinced that a big table is the best way to organize things, but it's a start.
@rcarson3 What do you think so far?
Where's the best place to put this? Just host it on GitHub at bluss/rust-ndarray and link to it from the README and docs, or is there a good way to put it on its own page in the docs themselves?
Fixes #399

@jturner314 I really like this.
I do agree that a giant table might not be a best way to convey the information at once.
I could see potentially something along the lines of breaking the table down into sections like the following:
Array Indexing;
Array Bounds;
Array Operations
Array Creation;
Array Manipulation so like flattening, reshape, transpose;
... maybe Miscellaneous topic.
I feel like examples could be nice to have, but I would definitely say what you have right now is a great start for those of us coming over from other languages. I'll see if I can't come up with a few examples this weekend when I have some more time that could potentially go in here.
Also, one thing that I might like to see added is just a simple mention for how to create a Fortran memory layout array. While it didn't take me too long to find in the docs, I think it'd be nice to have it just listed here as well.

I added some more stuff and reorganized the big table into sections. (rendered here) Any thoughts?
@rcarson3 That would be awesome if you have any examples to include.
Would some discussion of Array vs. ArrayView vs. ArrayViewMut be helpful?

@jturner314  I think the current setup is fine. I don't know if discussions on Array, ArrayView, and ArrayViewMut is really necessary, since the docs do a decent enough job on it. However, if other people have thoughts on the manner then maybe?
I've written some ndarray examples here. It includes some common operations that I thought people might want to do. It could probably use an index array example, but I wanted to get some quick examples together first.
The equivalent numpy version of the code is here.
If you can think of any other common features that might be useful to include let me know, and I'll iterate on these a bit more. I'm not sure if the best place to put them would be in the document just due to length, but maybe they could go in the examples folder. I currently just have them hosted on my repo I made to learn Rust, but I can just as easily make a pull request on your ndarray-for-numpy-users branch for the examples as well.

Yeah, I think it makes the most sense to put the example(s) in the examples directory because then they get built when running cargo test. This makes it easier to ensure that they don't get out-of-date with changes to the library. I'd prefer to put the Python and Rust programs in their own directory within examples, like this:
examples/
\- ndarray-for-numpy-users/
   |- main.py
   \- main.rs

Will you please submit a PR to my ndarray-for-numpy-users branch?
I added another section to the ndarray for NumPy users document: "Other Rust array/matrix crates". ndarray is the most similar to NumPy, but for some use-cases, other crates may be a better choice (e.g. cgmath for coordinate transformations for computer graphics).

That's really great work.
For C & C on the document, I'd like us to be clear in the style / algorithms we promote.
From the top.
a[a.len()-1] should be a[a.len() - 1] to use spaces around the operators.
Instead of current a[(1,4)] it should be a[[1, 4]] to use the preferred style in both whitespace and brackets IMO.
Slices are fine, the range dots are usually cuddled even when using spaces. So the style would prefer this: x..x + 1 and that's fine.
There's an unqualified .into() call in there, that's not something I'd approve for inclusion.  a.slice_axis(Axis(0), (-5..).into()) should be a.slice_axis(Axis(0), Slice::from(-5..))
Where we mention a.dim() and a.shape(), should we mention their differing return types? Probably something about that, to explain why there are two.
For a.t() we can mention it's a view.
Some things we can add:

Array::ones (it's new, not yet in a released version)

np.zeros_like(a) with equivalent in Array::zeros(a.raw_dim())  (but this doesn't match the memory layout, just the dimensions)

Maybe we can mention a.outer_iter() as the equivalent of numpy iter(a), but there is an unfortunate explosion of equivalents for the specific case of a 2D array. For example .genrows() and .gencolumns() are neat producers / iterables.

I don't know if we should avoid mentioning uninitialized. They do approximately the same thing in Python and Rust, but in Rust it's easier to get a broken program by using it incorrectly.

In the spirit of style, I think I'd skip a.shape()[axis] in favour of the len_of method

Okay, I changed those things. I also did the following:

Move the page into a module in the API docs (which is only included with the docs feature).
Mention the ndarray for NumPy users page on the landing page of the API docs.
Add a table of contents.
Add a separate "Iteration" section.
Add some more examples (and move @rcarson3's examples into the ndarray_for_numpy_users module).

The examples maybe could use a little more description or reorganization, but I think they're good enough for the time being. Everything else seems pretty good.
You can view the docs by running cargo +nightly doc --open --features=docs. (The docs also build on stable, but the Markdown parser on stable is buggy and produces incorrect output in some of the tables.)
What do you think? Is this ready to merge? (I'll clean up the commit history first.)

Yes, it's ready for merge. It looks great!

(Feel free to merge when you have rebased it)

:1st_place_medal: fantastic!


[Feat] Update Footer

Description
adding logo and name in footer on the left side, and organising the context under their respective heading.
Screenshots

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[X] I'm a Hacktoberfest'24 contributor
[X] I am willing to work on this issue (optional)

@beRajeevKumar? should i tart working on this


Allow to set ALSA PCM format

Currently the audio output is limited to signed 16-bit (S16_LE). This PR allows to use different PCM audio format in the future. This is necessary if a library decodes samples into a different audio format, e.g. S24_3LE (libopenaptx does it).

Hi :) It looks promising! I will pull this PR in parts, though. In a day or two I will release version 2.0.0, so before this release I will add D-Bus format property without internal changes. Later I will merge other commits.
One small thing. I'm not sure whether format should be based on the ALSA enumeration values (SND_PCM_FORMAT_S16_LE). Right now bluealsa server does not rely on ALSA library (and other API-derived values) so maybe it should stay that way. What do you think?

Thanks for merging already some parts of the PR!
I considered about not relying on the ALSA enumerations as well. But then I thought, bluealsa is an ALSA-only (it cannot be used with any other sound library) program, so why not rely on it?

It's not entirely true, that bluealsa server is ALSA only. Bluez-alsa
project is more or less ALSA only due to PCM plug-in. But server can be
used everywhere. See other forks :), e.g. integration with pipewire.

I see! So, I am okay when the audio format is mapped between the server and bluealsa-aplay.

I'm closing this PR sice all commits except "Allow to pass the length of the PCM buffer length" have been merged into master. And the not merged commit needs improvement anyway (e.g. patching the code for reading from PCM pipe).


Update README.md with a ROADMAP section

resolves #25, 2016 Project Roadmap
cc: @jon077 / @thisgeek / @morningdew / @paul-barry-kenzan / @csharon / @rkunboxed

+1

@jon077
It will when it has been decided.  Currently being tracked against this issue - #29


Request file camera config

Hello,
I see that in your folder ./vehicle-counting/configs/cam_configs.yaml. There is a file naming 'aic-hcmc2020/zones/zones_movement_paths/cam_01.json'. But in your link of dataset there is not, just images and annotation. Could you please provide the file json with the zone movement ?
Best regard

I've updated the testset link here.


Replace variables in doc

Is it possible to use docx templates, to replace variables/fill a doc? Similar to https://github.com/open-xml-templating/docxtemplater
Or would it be possible to add that binary to Gotenberg? Eg. To load a template, fill it with invoice lines and then convert to PDF.

Hello @barryvdh,
Although I like the idea, I think it's a bit out-of-scope for Gotenberg. Right now, your best option is to create a dedicated service, for instance: https://github.com/EC-Nordbund/docx-templates-to-pdf.
You may also switch to HTML 😄


MicroPython: Ported PicoSleep module.

This is a very experimental port of @ghubcoder's "picosleep" - https://github.com/ghubcoder/micropython-pico-deepsleep/
I have vendored Pico Extras sleep.c and sleep.h because life's too short to deal with extraneous submodules or repository clones for a couple of source files that are going to be version pinned anyway.

Welp this was an unmitigated failure plagued by weird build issues that happen on CI and not my local machine... and the resulting build doesn't boot!? I don't even.
steps quietly away


Fix bug 'DefaultPassageFormatter.format' method

Description

In the following PR (https://github.com/apache/lucene/pull/13276), I added an option to allow customizing the sorting of Passages when using the UnifiedHighlighter. As a result, it is no longer guaranteed that the startOffset of the next passage will be greater than that of the previous passage. However, I am now modifying the DefaultPassageFormatter.format() method, where a conditional statement was written under the assumption that this was guaranteed. You can refer to the test code for examples and better understanding.

@dsmiley
I have added the relevant entry to the CHANGES.txt at commit, 2b2e8a8

@dsmiley 10.0 is feature frozen, a vote is ongoing. this does need to be backported to branch_10x though it seems, and the changes entry moved to the right place.

I fixed CHANGES.txt and backported to branch_10x now.

Thanks @dsmiley !


Fix/submission invitation authorid regex

Resolves #1837

This updates the regex for authorids to match the validation in the backend.

@celestemartinez do you want to take a look?


kele-list: Implement periodic updating

Currently, when a user invokes kele-list, the resulting list is largely static. User can invoke a "refresh" w/ g (WIP) but this is obviously still very manual.
Let's implement the ability for kele-list buffers to periodically re-pull and display updates to the search set. The poll interval should be customizable, and users should be able to enable/disable live updating on a buffer-local basis. This would be particularly useful with #137.
Definition of Done

kele-list can live-update to periodically refetch any changes to the list set
Users can customize the kele-list refresh interval
Users can customize default enable/disable behavior for kele-list live updating
Users can enable/disable live updating on a per-buffer basis

Let's hold off on this until #204.

This seems like unnecessary complexity at this time. Getting #137 in place will give users the minimum info they need to know to manually refresh.


Hangs at "creating recyclable direction/step/history buffers"

Running this with 20 cores / 64GB RAM in cpu mode:
ubuntu@deep-style:~/neural-style$ th neural_style.lua -gpu -1 -print_iter -1 -backend cudnn -cudnn_autotune
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:505] Reading dangerously large protocol message.  If the message turns out to be larger than<PHONE_NUMBER> bytes, parsing will be halted for security reasons.  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192
Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel
conv1_1: 64 3 3 3
conv1_2: 64 64 3 3
conv2_1: 128 64 3 3
conv2_2: 128 128 3 3
conv3_1: 256 128 3 3
conv3_2: 256 256 3 3
conv3_3: 256 256 3 3
conv3_4: 256 256 3 3
conv4_1: 512 256 3 3
conv4_2: 512 512 3 3
conv4_3: 512 512 3 3
conv4_4: 512 512 3 3
conv5_1: 512 512 3 3
conv5_2: 512 512 3 3
conv5_3: 512 512 3 3
conv5_4: 512 512 3 3
fc6: 1 1 25088 4096
fc7: 1 1 4096 4096
fc8: 1 1 4096 1000
Setting up style layer      2   :   relu1_1
Setting up style layer      7   :   relu2_1
Setting up style layer      12  :   relu3_1
Setting up style layer      21  :   relu4_1
Setting up content layer    23  :   relu4_2
Setting up style layer      30  :   relu5_1
WARNING: Skipping content loss
Running optimization with L-BFGS
<optim.lbfgs>   creating recyclable direction/step/history buffers
Looking at htop, it still seems to be working but there has been no further output for about 30 minutes.

try setting -print_iter to 1 instead of -1.  I don't know if negative numbers in -print_iter will disable or not, but try using a low positive value like 1 or 2. Alternatively try setting -save_iter to 1 or 2 and see if you new files are being created. I think it will take more than 30 minutes to reach the first default -print_iter and far more than 30 minutes to finish the 1000 iters.

Thanks, this fixed it. I didn't notice -print_iter was minus 1. It's now printing an iteration every 10 seconds or so.

Sergey Goncharov<EMAIL_ADDRESS>kirjoitti 25.2.2016 kello 20.26:

Thanks, this fixed it. I didn't notice -print_iter was minus 1. It's now printing an iteration every 10 seconds or so.

Looks like there is an error in INSTALL.md:
"You should now be able to run neural-style in CPU mode like this:
th neural_style.lua -gpu -1 -print_iter -1"
br
Hannu

Wow good catch! I think that typo tripped up many people ... sorry!

I also hit this just now. There's still no -print_iter -1 next to the -gpu -1 instances in the README. Maybe those should be added?

I also hit this just now. There's still no -print_iter -1 next to the -gpu -1 instances in the README. Maybe those should be added?

No. Print_iter -1 was a typo in a previous version of README which prevented iteration output from being displayed.


Move SIMD operators back into the Swift standard library

Moving them out to SIMDOperators didn't help, but the type checker hack
might. Move them back into the Swift standard library where they belong,
but leave SIMDOperators there to smooth over any short-term
incompatibilities.

@swift-ci please smoke test

@swift-ci please test source compatibility


Add box shadow, improve font styling and header, and add footer

Pls assign this to me!

May I contribute to this?


[Bug] Bookmarklet changes order of existing links

Describe the bug
When I use the bookmarklet to add a link to the current game, the links get alphabetized (e.g. Official Website, Steam, PCGamingWiki becomes IGDB, Official Website, PCGamingWiki, Steam).
To Reproduce
Steps to reproduce the behavior:

Create a bookmarklet rule with name IGDB and rule https://www.igdb.com/games/*
Add the bookmarklet linked from this page to the browser (for replication Vivaldi 5.6.2867.50).
Open an IGDB link and click the bookmarklet.

Further information for replication:

Sorting order in extension preferences: Official Website (1), GOG (2), Steam (3), Epic Games (4), Origin (5), itch.io (6), IGDB (7), Wiki (8), PCGamingWiki (9).
Rename pattern, name 'IGDB,' pattern *igdb.com*
Remove duplicate links activated, link name & url match.

Expected behavior
The links to remain in order, and IGDB to be added either in its preferred sort position or to the end.
please complete the following information:

Windows version:  Win10 Home, 64-bit, build 19045
Playnite version: 10.9
Extension version: 1.7.2

Slight error on my part: It doesn't reverse the order of links, but alphabetizes them. I'll correct the OP.

fixed in the upcoming version 1.8