Achavi "seems not to work" for some changesets

An example of this is:
http://www.openstreetmap.org/changeset/28764270
http://nrenner.github.io/achavi/?changeset=28764270
what happens is that a spinner appears for a while and then stops, with no obvious error message.  Nothing appears to be displayed on the screen.  I'm guessing that something underneath is failing, but it'd be nice to know what.

Agree that there should be an error message.
The error is a timeout of [this query](https://overpass-api.de/api/interpreter?data=[adiff:"2015-02-11T01:30:39Z","2015-02-11T01:30:44Z"];(node(bbox)(changed);way(bbox)(changed););out meta geom(bbox);&bbox=-6.9433593,22.7401159,83.3402162,66.5498634):
[adiff:"2015-02-11T01:30:39Z","2015-02-11T01:30:44Z"];
(node(bbox)(changed);
  way(bbox)(changed););
out meta geom(bbox);
&bbox=-6.9433593,22.7401159,83.3402162,66.5498634

Overpass API does not support querying changesets, so my workaround is to query by the changeset's bbox and time range and to filter client-side, which does not really work for large (bbox and/or time) and overlapping changesets.
But in this case omitting the bbox filter seems to be way faster. Probably need to investigate when to use which filter.

Thanks for explaining! I have wondered about this sometimes as well. Showing a little message when any error comes up would be nice.
Thank you for this extremly helpful tool!

You wrote:

so my workaround is to query by the changeset's bbox and time range and to filter client-side, which does not really work for large (bbox and/or time) and overlapping changesets.

Would it be possible to divide large bounding boxes into several smaller queries to make sure that there are no timeouts? The results would then need to be filtered for duplicates, but maybe that is not too hard since you are filtering already?

I guess omitting the bbox filter for larger bboxes would already help a lot. Still trying to make some progress with other stuff (brouter-web), but this issue will be one of the next things to address.
What I mean is that this approach feels like a waste of resources - even when split into managable smaller queries - with some changesets like from wheelmap_visitor that span large areas and several hours. Also, client-side filtering has its issues, see #10.
A better approach for such cases might be to get the changeset details from the main API, then query for the diff of the individual object versions (similar to what OSM History Viewer and Cool Name Goes Here are doing).

A better approach for such cases might be to get the changeset details from the main API, then query for the diff of the individual object versions

I second that. In https://github.com/drolbr/Overpass-API/pull/358, I have introduced a new language extension to provide a list of node/way/relation ids in a very compact format. Changesets spanning the whole globe would be a very good candidate for this feature, and we have a new convincing use case for this pull request...
Please take a look here: http://overpass-turbo.eu/s/nY8

Thanks for implementing and suggesting the id filter.
Got stuck with working on this issue again. And now with Changeset Map solving this and other issues at least for new changesets [1], my motivation to work on further workarounds has not really increased. So I'll just share what I have so far.
As I fear stressing the main API too much, I wanted to do some time measurements for API downloads, and also for id queries:

Changeset download performance
id query performance

Examples for big changesets were selected using queries on the ChangesetMD database import. The tests were done using shell commands, with curl for the request timing and playing with osmium-tool and awk for building id queries.
The remaining question would be when to use id, bbox or changed filter.

Longer term solution will be of course to directly specify the changeset id in the query as filter criterion: see drolbr/Overpass-API#367

Can you elaborate? I don't see how a filter would help us here as it still is restricted to current data or attic dates. A proper solution would probably require a new query type on the settings level in addition to the existing date/diff/adiff attic queries.
[1] Preparing accurate history and caching changesets

Thanks for the update!

And now with Changeset Map solving this and other issues at least for new changesets

This one only starts some time in 2017, and I have no idea, if this solution can keep up with increasing number of changesets over time.  Overpass API did something similar in the past, but it was discontinued due to space constraints. Maybe that's different now, with AWS and a sponsor willing to support the space requirements in the long run.
As overpass-api.de is usually heavy CPU loaded, I wouldn't recommend to run performance tests on it. You could try dev.overpass-api.de/api_mmd/ instead. Please keep in mind that this instance uses hard disks, so re-running the same query at least twice would get reasonable results for what response times would look like on SSDs.

I don't see how a filter would help us here as it still is restricted to current data or attic dates.

That's right. Filter is not adequate in terms of terminology, it's as you said a query result which reflects changes of a single changeset, regardless of the timestamp of the individual changes.

This one only starts some time in 2017

"March 1, 2017", according to the diary entry, and I was hoping for "We are considering doing a slow backfill, but this is entirely dependent on Overpass.".

As you know Overpass API did something similar with augmented diffs in the past, but it was discontinued due to space constraints.

Yes, huge storage needs where probably the main reason for developing the attic database with on-demand queries. And I also think that storing full geometries for changes is very inefficient and doesn't really scale.
But at least caching the latest changesets for a couple of weeks back should be feasible. And now that a server infrastructure is in place to support reading changesets, I'm sure alternative solutions can be found for older changesets that free the client from the need to implement various hacky workarounds.
For example deriving and storing upload timestamps from edits, possibly with their smaller bounding box for multiple uploads within a changeset. Or, what just came to mind, maybe storing the original OSM minutely diffs reorganized by changeset and using these for on-demand id filter queries.

Maybe we need to stress this requirement even more.

Already thought about discussing this on the overpass mailing list.

I tested your id query script a number of times on the api_mmd endpoint I mentioned before. There was one issue I had to fix in the Apache fcgid config to allow larger request sizes, otherwise the server would return http 500 errors. Also, I added  --compress to enable compression for curl download. That skews the size_download in the table below. When checking the final file sizes, they exactly match your previous measurements.
So here are the runtimes I've got - that's on test758 branch using lz4 compression.

Thanks for the update. This would be a cool feature and solve the large bbox issue - and it seems it's really fast, too!
What is the status of this?


Additional chain navigation options

Thanks to #2, we now have additional ways to explore the network. Naturally, that leads to the desire to explore the network in even more ways. :smiley:
From any given block, I would like to navigate to its parent block and, if it exists, its child block. This is distinct from the current options “previous block” and “next block” respectively because the parent (and potential child) of a non-canonical block is not necessarily canonical.
I realize that the UI is starting to get tricky should this option be included.

I was afraid to add the sibling blocks feature because I knew it could open this can of worms.   hehe.
I already thought about navigating non canonical chains a bit.   some observations:

This has potential to confuse users.  Most end-users are likely not even aware of non-canonical chains.  (admittedly early adopters will tend to be)
I don't believe this is usually done in block-explorers for other blockchains.  Probably because of (1).    If there are popular explorers out there with this feature, please let me know.
Forward navigation between blocks is tricky because blocks only know their predecessor's digest.  For the canonical chain, the forward html links work by linking to height+1, eg block 5 links to /block/height/6.  It is easy to lookup the canonical block for height 6.    However to lookup the next block for a non-canonical chain, we would need a new neptune-core API for that which would need both the height and current block digest.  So then it would find all blocks for that height and compare if the parent digest matches input digest.    This is doable, but afaik, the API does not exist.
The BlockSelector (that converts heights and labels to digests) would need enhancement to support this usage.

In summary:  it's a nice idea, and maybe we can support it eventually, but it will require additional neptune-core support, and it's also questionable if desirable for non developers.

Totally fair pushback. I agree that this functionality is most useful for devs, and probably only for them. My perspective is the dev perspective, of course. Perhaps the described feature is best left to an eventual network health monitor, where we could even visualize the chain and all its forks. That would greatly simplify navigation. Building up a local database of nodes and how they relate would probably step around the problems you describe as well.


Incorrect ResultPath sometimes...

Describe the bug
This bug is strange... From time to time, the ResultPath is incorrect. It seems to skip 1 level of the Result Path. For example instead of putting it in the $.a.b, it puts it in the $.b directly. I haven't found a reliable way to reproduce this
Expected behavior
The ResultPath should always be correct

Closed with #129


chore: fix typo (undeined -> undefined)

Deploy preview for js-primer ready!
Built with commit 3f27207d7cc3b3cd15dfdfe98b4ed7a16b405174
https://deploy-preview-888--js-primer.netlify.com

Thanks


form submission button not displayed after error in Ajax

Hi,
In the controller, I make ajax call like the following. Whenever error happens in ajax call such as 500 or 422, the form fields are still displayed on the page but not the form submission buttons (Save and Cancel). I'd like to allow the user to modify the input on the fields and re-submit. Any idea on how to achieve this?
export default Ember.Controller.extend(
  Saving, {

save: function() {
 ajax({
          url: ENV.APP.API_HOST + "/api/1/" + route + "?taskId=" + this.model.get('id'),
          method: "POST",
          //dataType: "json",
          contentType: "application/json",
          data: JSON.stringify(member)
      }).then(function(response) {

          console.log(response);
          that.transitionToRoute('members');

      });
}

}

Regards,
Nick

Hi Nick,
What version of this addon are you using? You can call this.resetForm() in newer versions. If that method isn't available, try this.set('formSubmitted', false).
Let me know if that doesn't work.

Hi Ducan,
I am using "ember-easy-form-extensions": "sir-dunxalot/ember-easy-form-extensions#ember-1.11".
this.set('formSubmitted', false) works.
Thank you very much.
Regards,
--Nick


Building FAQ page using React-styled components and React.js

proposed title of article
[Languages] Building FAQ page using React-styled components and React.js
proposed article Introduction:
Addressing users questions and concerns is a priority for corporations and online vendors. One way of handling user's queries is by having a comprehensive frequently asked questions page. To build an attractive and informative FAQ page with React-styled components which is a modern front end design library will be discussed in this tutorial. We will take a deep dive into the requirements and steps to set up a unique FAQ page with Reactjs and React-styled components.
Key Takeaways:
At the completion of this tutorial, the reader is expected to have understand and knowledge to perform the following
i. Creating FAQ page with React-styled components and Reactjs
ii. Adding and using React-styled components
ii. Styling and viewing the page
iii. Adding dummies questions and answers with JSON
iv. Why you should choose React-styled components in your next React application
v. Creating reusable and customizable components with React-styled components
References
https://www.styled-components.com/

Please fill in the topic suggestion form posted below in your form, @KingsleyJack.

@louisefindlay23
Done as requested.

@louisefindlay23 i have updated the article quality section as you requested. thanks


Contribute

Hi pydn,
I love what you've done and I'd like to contribute.
Are you open to pull resquests?

Hey, thanks for your interest! What changes did you have in mind?

Parse input/output as arguments instead of having to change the code, like so:
""" Use it like that: python comfyui_to_python.py -i ../workflows-api/some_wf_api """ import sys import argparse as argparse parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,                                     description=__doc__,                                     epilog=__doc__) parser.add_argument("-i", "--input", type=str, action="store", default="workflow_api",                     help="name of the input workflow api json, without the .json extension") parser.add_argument("-o", "--output", type=str, action="store",                     help="name of the output workflow script, without the .py extension, falls back on the input name if not provided") parser.add_argument("-b", "--batch-size", type=int, action="store", default=1,                     help="batch size applied in the generated script") args = parser.parse_args()

I think that would be a great change, but my planned next step is to create an export button directly from ComfyUI to streamline the script generation process so I don't think cli args would be needed in that case.
The other challenge is that arguments already get parsed when anything from nodes.py is imported which presents a new challenge for adding additional cli arguments.

So this means the pipeline is fixed once ComfyUI converted to python? I cannot add input image path to this pipeline.py by using arg_parser?

I think that would be a great change, but my planned next step is to create an export button directly from ComfyUI to streamline the script generation process so I don't think cli args would be needed in that case.
The other challenge is that arguments already get parsed when anything from nodes.py is imported which presents a new challenge for adding additional cli arguments in this script.

I found it too  :(
I tried the normal way for args and add_subparsers way, but neither works.

Fwiw, I found that if I'm using an exported script in another script which has incompatible argv args, I can just reset argv before importing the script:
sys.argv = [""]
from workflow_api import main


Test Python 3.11 build

Let's reopen if we get the forked / updated build infrastructure in place.


[BugFix] column names must be associated with slotIds when normalizing OlapScanNode accessing unpartitioned table

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 2.5
[ ] 2.4
[ ] 2.3
[ ] 2.2

[FE PR Coverage Check]
:heart_eyes: pass : 18 / 18 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/planner/OlapScanNode.java
18
18
100.00%
[]

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

Branch 2.5 backport PR #16755


The network structure could be modeled with a graph instead of a square grid

With a random graph, this would better reflect the fact that DAO usually happens in the cyberspace.

That is certainly a possibility. Agent-based simulations can take many forms of representation - as a graph, as a population over a square grid, or not have a visual representation at all.
Check out https://github.com/ShrutiAppiah/rumor-mill for a system modelled as a graph

That is certainly a possibility. Agent-based simulations can take many forms of representation - as a graph, as a population over a square grid, or not have a visual representation at all.
Check out https://github.com/ShrutiAppiah/rumor-mill for a system modelled as a graph

Mesa has NetworkGrid (https://github.com/projectmesa/mesa/blob/d376920146ca0ec422286cb8434d86b74e64b2fa/mesa/space.py#L834), where it could be plugged into this repo without starting over from scratch.

Mesa has NetworkGrid (https://github.com/projectmesa/mesa/blob/d376920146ca0ec422286cb8434d86b74e64b2fa/mesa/space.py#L834), where it could be plugged into this repo without starting over from scratch.


Issue 441: synced and updated componet tables

Pull Request Template
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #441
Type of change
Please delete options that are not relevant.

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Additional Context (Please include any Screenshots/gifs if relevant)
...
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ ] I have checked my code and corrected any misspellings
[ ] I have tagged the reviewers in a comment below incase my pull request is ready for a review
[ ] I have signed the commit message to agree to Developer Certificate of Origin (DCO) (to certify that you wrote or otherwise have the right to submit your contribution to the project.) by adding "--signoff" to my git commit command.

Thanks - this is going in the correct direction!  Merging the tables is an important step.
The next step would be to remove the table completely from the overview_oh.md and only keep the table in the components.md file.
@Demopans - can you push another commit into this PR, and remove the table from overview_oh.md ?

Can you also add a table caption (required to comply with Accessibility guidelines) in the components.md file?
Here is an example:
{: caption="Table 1. {{site.data.keyword.ieam}} components" caption-side="top"}

Sure. I'll see to it

Thanks !!


Fix log file with 0 byte offset from end

Fixes #9482
shouldn't use truthy/falsy values for this check - data.fileData = '' is still valid for a real file

pr-link: Alluxio/alluxio#9494
change-id: cid-8892b12e3380b4312b577706ac2ab7d5d2ecb496

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4671/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4674/
Test FAILed.


Bump new version: 0.11.0

Just tested the latest changes with Django 1.7 and everything seems to work

@mattrobenolt Was there anything else you wanted me to do with this?


Core Assembly and Data Annotations

Any suggestions for adding data annotations to entities in the .Core project?  I added System.ComponentModel.Annotations Nuget package, but I'm not sure this feels right since .Core is .a NET Standard library.

In projects where I've found this useful, I've gone ahead and added System.ComponentModel.Annotations to Core. I haven't seen any downside to it.

Thank you for the response.


output from Symfony VarDumper's dump() is not shown

With PHP's built-in error page, or with XDebug's, the output from a call to dump() is shown above the error message and backtrace.
With Ignition however, it's not visible at all.

Have you taken a look at the bottom of the page?

Ah, I've got version 1.14.0 being installed via https://www.drupal.org/project/ignition. I don't see that at all.
Sorry for the noise, should have checked I was getting an up to date version.

Ah, and I filed this in the wrong project -- it should be in spatie/ignition, not spatie/laravel-ignition.


reduce_lr_on_plateau can't find validation metrics in most recent release.

when using reduce_lr_on_plateau for training SCVI non of the validation metrics are options (see error message). this seems to be dependent on the latest release of pytorch-lightning as when I rollback versions the issue goes away. I'll pin the calico solo repo for now to the old versions.
This may be relevant: https://github.com/PyTorchLightning/pytorch-lightning/issues/1598

        plan_kwargs = {
            "reduce_lr_on_plateau": True,
            "lr_factor": 0.1,
            "lr": 1e-2,
            "lr_patience": 10,
            "lr_threshold": 0,
            "lr_min": 1e-4,
            "lr_scheduler_metric": "reconstruction_loss_validation",
        }

        vae.train(
            max_epochs=2000,
            train_size=train_pct,
            check_val_every_n_epoch=5,
            plan_kwargs=plan_kwargs,
            callbacks=scvi_callbacks,
        )```

<!-- Put your Error output in this code block (if applicable, else delete the block): -->
```pytb
 File "/home/nicholas/repos/solo/solo/solo.py", line 240, in main
    callbacks=scvi_callbacks,
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/scvi/model/base/_training_mixin.py", line 77, in train
    return runner()
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/scvi/train/_trainrunner.py", line 73, in __call__
    self.trainer.fit(self.training_plan, self.data_splitter)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/scvi/train/_trainer.py", line 159, in fit
    super().fit(*args, **kwargs)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 553, in fit
    self._run(model)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 918, in _run
    self._dispatch()
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 986, in _dispatch
    self.accelerator.start_training(self)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/accelerators/accelerator.py", line 92, in start_training
    self.training_type_plugin.start_training(trainer)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 161, in start_training
    self._results = trainer.run_stage()
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 996, in run_stage
    return self._run_train()
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1045, in _run_train
    self.fit_loop.run()
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 111, in run
    self.advance(*args, **kwargs)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/loops/fit_loop.py", line 200, in advance
    epoch_output = self.epoch_loop.run(train_dataloader)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 118, in run
    output = self.on_run_end()
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/loops/epoch/training_epoch_loop.py", line 235, in on_run_end
    self._on_train_epoch_end_hook(processed_outputs)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/loops/epoch/training_epoch_loop.py", line 275, in _on_train_epoch_end_hook
    trainer_hook(processed_epoch_output)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/trainer/callback_hook.py", line 109, in on_train_epoch_end
    callback.on_train_epoch_end(self, self.lightning_module)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/callbacks/early_stopping.py", line 170, in on_train_epoch_end
    self._run_early_stopping_check(trainer)
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/callbacks/early_stopping.py", line 185, in _run_early_stopping_check
    logs
  File "/home/nicholas/miniconda3/envs/solo_bug_2/lib/python3.7/site-packages/pytorch_lightning/callbacks/early_stopping.py", line 134, in _validate_condition_metric
    raise RuntimeError(error_msg)
RuntimeError: Early stopping conditioned on metric `reconstruction_loss_validation` which is not available. Pass in or modify your `EarlyStopping` callback to use any of the following: `train_loss`, `train_loss_step`, `train_loss_epoch`, `elbo_train`, `reconstruction_loss_train`, `kl_local_train`, `kl_global_train`

Versions:

This error happens scvi-tools==0.12.1 and pytorch-lightning==1.4.1, but goes away when I rollback to scvi-tools==0.11.0 and pytorch-lightning-1.2.3

Version 0.12.1 of scvi-tools should enforce pytorch-lightning<1.4. Can you check that this is the case for you? Seems to be for me in a fresh env. You guys should pin scvi-tools >=0.12.1, or just ignore 0.12.0

The cause of this in the new PyTorch Lightning is this:
https://github.com/PyTorchLightning/pytorch-lightning/pull/8286
where check_on_train_epoch_end is now True by default, so I think it's checking for early stopping before validation metrics are added.

Yes this works now. Not sure how two users and I all got 1.4>pytorch-lightning installed but things seem to working fine now

@njbernstein also for all future releases of scvi-tools we will be a bit stricter with pytorch lightning, so this should never happen again, probably best to >=0.12.1


Provide Game Specific Information Legally

I wanted a way to be able to look up information about various cards without infringing on MCG's copyright. I can't reproduce the actual game information, but fortunately they provided a searchable text file which is parseable with a little effort.
This change allows the bot to work exactly the same if a searchable text file is not provided, but will parse that file and add additional commands if it is. The basic proofs of concept are the commands /lookup and /random, but I intend them to be stepping stones to more interesting options.

I also discovered that the script doesn't run on python 3.13, so forced the Dockerfile to use python 3.12.

Very cool, thanks for that!

I guess I got the first novel piece of functionality up before the change was merged. This adds in a slash command called /suggest to have ChatGPT to suggest something like a card from the previous data.


clean up namespace of plugin API

This closes open namespaces we have in the plugin API.
This is the first part needed to clean up the code and make it easier to untie some circular dependences we have in the code
The changes are mainly adding a using namespace, or the namespace value to a given variable in the source
A little change was made to break up the API code to make it easier to read and build.
A define was added to make it easier to build plugins. ie the define is part of building the code ATS code, the plugins would build as is.
As a note it should be seen that the api plugin we have is actually needed to build ats, previous conversation we suggested that it was not a dependence for trafficserver itself. It should be much more clear now to see what the relationships are

Looks fine.  How does it help with circular dependencies?

Looks fine. How does it help with circular dependencies?

The goal is to tighten out the namespaces to make it easier to see what depends on what. This change is a big set of small changes, so I wanted to get this in first so hopefully we can untangle the dependency issues with a set of smaller PRs

[approve ci autest]


Make rapids_cpm_cccl() disable CUB detail namespace

Description
Define CUB_DISABLE_NAMESPACE_MAGIC and CUB_IGNORE_NAMESPACE_MAGIC_ERROR so CUB doesn't include the __CUDA_ARCH_LIST__ in its ABI.
Checklist

[x] I am familiar with the Contributing Guidelines.
[ ] New or existing tests cover these changes.
[ ] The documentation is up to date with these changes.
[ ] The cmake-format.json is up to date with these changes.
[ ] I have added new files under rapids-cmake/

[ ] I have added include guards (include_guard(GLOBAL))
[ ] I have added the associated docs/ rst file and update the api.rst

@robertmaynard can you take a look here? I've lost track of what decisions we've made where about keeping or removing this particular ABI mangling. I know it's caused headaches with differences between host and device compilation of the same headers.

We know that for sure that projects the build with -fvisibility=hidden will have no impact since the CUB mangling is a fix for clashes in the global symbol table lookup.
My major concern is that by fully disabling the CUB detail magic logic we also drop the CUB_VERSION from the namespace name. That I think is important as it means that we could clash with DSO built with older ( 1.X ) versions of CUB which didn't have any name mangling. This issue currently exists with the Thrust types but we sorta ignore it for now.
In a perfect world we could tell CCCL to drop the CUDA_ARCH mangling but leave the VERSION mangling. That would give us reproducible builds and also ensure we don't clash at runtime


feat: Add retry strategy with backoff of 0.5s

This PR implements retries in the Python SDK.

Hi, this appears to have broken IAM authentication:
Traceback (most recent call last):
  File "/home/jenkins/workspace/Containers-Registry/sync-sysdig-alerts/vaultfiles/scripts/sysdig/sync-alerts.py", line 29, in <module>
    source_client = create_sdcclient_for_instance(source_instance)
  File "/home/jenkins/workspace/Containers-Registry/sync-sysdig-alerts/vaultfiles/scripts/sysdig/sync-alerts.py", line 25, in create_sdcclient_for_instance
    ibm_headers = IbmAuthHelper.get_headers(url, api_key, guid)
  File "/usr/local/lib/python3.7/dist-packages/sdcclient/ibm_auth_helper.py", line 15, in get_headers
    iam_token = IbmAuthHelper.__get_iam_token(url, apikey)
  File "/usr/local/lib/python3.7/dist-packages/sdcclient/ibm_auth_helper.py", line 35, in __get_iam_token
    response = self.http.post(
NameError: name 'self' is not defined


Monarch documentation refers monarch.css which is absent in download package

Monarch docs contains phrase

Note: The token classes in the third column are currently only highlighted correctly if you include the monarch.css style file (Aug 2012).

But I can not find where is official place for it:

tgz does not contain it
documentation does not provide any hint where to finds it

monaco-editor tgz version: 0.6.1
Browser: Any
OS: Any

The contents of that file have been inlined into the bundled editor.main.css.

It means, that documentation should be changed, I think


Create request command and fix data integrity issues

Fix data integrity issues in the following areas:

Delete Book

Books that are under borrow cannot be deleted

Edit Book

Book A cannot have its isbn changed from ISBN A to ISBN B if ISBN B is already present in LibTask. This is so that there will not be different set of requesters requesting for ISBN B (e.g. requesters originally requesting for ISBN A will be wrongly treated as requesting for ISBN B if change in isbn is allowed).
Whenever a book is edited, all books with the same isbn will also be edited to have their authors and book names updated. This is to ensure data consistency whereby no two books can have same isbn but have different set of authors or book name. They can however, differ in tags, because tag may refer to location tags (e.g. science library or central library).

Add Book

Adding books with same isbn as existing books is allowed, but only if the author set and book name is equivalent (ignoring spacings, author order and letter case) to the existing book with same isbn.
If there are existing requests for the newly added book, adding the book will remove all requests, and the librarian will be prompted to notify the requesters about the availability of the newly added book.

Return Book

Upon returning of book/books, all existing requests related to those books will be removed, and the librarian will be prompted to notify the requesters about the availability of the returned book/books.

Codecov Report

Merging #100 (ebde87f) into master (0851fa6) will increase coverage by 0.45%.
The diff coverage is 78.41%.

@@             Coverage Diff              @@
##             master     #100      +/-   ##
============================================
+ Coverage     73.97%   74.42%   +0.45%
- Complexity      700      750      +50
============================================
  Files           103      103
  Lines          2067     2174     +107
  Branches        258      276      +18
============================================
+ Hits           1529     1618      +89
- Misses          463      474      +11
- Partials         75       82       +7

Impacted Files
Coverage Δ

...main/java/seedu/address/commons/core/Messages.java
0.00% <ø> (ø)

src/main/java/seedu/address/model/Model.java
100.00% <ø> (ø)

...main/java/seedu/address/model/book/BookStatus.java
70.37% <0.00%> (ø)

.../java/seedu/address/model/util/SampleDataUtil.java
45.65% <50.00%> (+3.79%)
:arrow_up:

...c/main/java/seedu/address/model/book/BookList.java
74.11% <56.09%> (-17.00%)
:arrow_down:

...in/java/seedu/address/storage/JsonAdaptedBook.java
89.23% <76.92%> (-3.37%)
:arrow_down:

src/main/java/seedu/address/model/book/Book.java
90.78% <85.18%> (-0.44%)
:arrow_down:

...u/address/logic/commands/book/EditBookCommand.java
95.45% <85.71%> (-1.32%)
:arrow_down:

.../address/logic/commands/ReturnAllBooksCommand.java
100.00% <100.00%> (ø)

...u/address/logic/commands/ReturnOneBookCommand.java
100.00% <100.00%> (ø)

... and 18 more

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 0851fa6...ebde87f. Read the comment docs.


Score stopped updating

Score stopped updating for a day now.

Issue solved once i loaded in private browsing.


Appstudio update test-component-pac-wkdn

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-wkdn-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
7 seconds
init

✅ Succeeded
22 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
3 minutes
clair-scan

✅ Succeeded
20 seconds
deprecated-base-image-check

✅ Succeeded
19 seconds
sanity-inspect-image

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
10 seconds
sbom-json-check

✅ Succeeded
8 seconds
sanity-optional-label-check

✅ Succeeded
8 seconds
sanity-label-check

✅ Succeeded
6 seconds
show-summary

Pipelines as Code CI/test-component-pac-wkdn-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
19 seconds
clone-repository

✅ Succeeded
37 seconds
build-container

✅ Succeeded
14 seconds
deprecated-base-image-check

✅ Succeeded
12 seconds
sanity-inspect-image

✅ Succeeded
9 seconds
clair-scan

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
10 seconds
sbom-json-check

✅ Succeeded
15 seconds
sanity-optional-label-check

✅ Succeeded
15 seconds
sanity-label-check

✅ Succeeded
4 seconds
show-summary


Fixed broken setup due to trying to read missing file

Recieving the following error when trying to rum setup:
Traceback (most recent call last):
File "lib/python-crpapi/setup.py", line 5, in
long_description = open('README.rst').read()
IOError: [Errno 2] No such file or directory: 'README.rst'
Fixing by removing trying to read the README.rst file.

Closing in lieu of solution in #2.


add ModelVisualizationTest

I added ModelVisualizationTest to check the plotted model's dot structure is matched with declared keras model.
If this base version is approved, I'm planning to add tests more.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 57.57%. Comparing base (f0e79cf) to head (4cd8fd7).

:exclamation:  There is a different number of reports uploaded between BASE (f0e79cf) and HEAD (4cd8fd7). Click for more details.
HEAD has 6 uploads less than BASE

Flag
BASE (f0e79cf)
HEAD (4cd8fd7)

keras
4
1

keras-torch
1
0

keras-tensorflow
1
0

keras-jax
1
0

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #20053       +/-   ##
===========================================
- Coverage   79.27%   57.57%   -21.70%
===========================================
  Files         501      501
  Lines       46939    46939
  Branches     8653     8653
===========================================
- Hits        37209    27025    -10184
- Misses       7982    18218    +10236
+ Partials     1748     1696       -52

Flag
Coverage Δ

keras
57.57% <ø> (-21.55%)
:arrow_down:

keras-jax
?

keras-numpy
57.57% <ø> (+0.07%)
:arrow_up:

keras-tensorflow
?

keras-torch
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Update types

Coverage decreased (-0.07%) to 56.517% when pulling 758e74ea5d98b062371d4fb181fdc7f786feb676 on aliazizi:patch-3 into 7cff7fa3b5786f41ec20df7278dddaeed0ab5658 on mberneti:master.


3 or more audio tracks simultaneous  playback doesn't work on Android

I would like to use multiple Audioplayer objects to play audio tracks loaded by Audiocache simultaneously. The idea is that all player objects are playing but only one of them is audible at a time.
import 'dart:io';

import 'package:audioplayers/audio_cache.dart';
import 'package:audioplayers/audioplayers.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final bloc = MediaPlayerBloc();

  @override
  void initState() {
    super.initState();
    bloc.play();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              onPressed: () {
                bloc.toggleTracks();
              },
              child: Text('Toggle track'),
            ),
            SizedBox(height: 16),
            RaisedButton(
              onPressed: () {
                bloc.playPause();
              },
              child: Text('Toggle plays/pause'),
            ),
          ],
        ),
      ),
    );
  }
}

final audioTracks = [
  // NOTE: 2 tracks seems to be ok to play simultaneously
  // 3 or more causes that some track doesn't play
  "audio/track1.mp3",
  "audio/track2.mp3",
  "audio/track3.mp3",
  "audio/track4.mp3",
  "audio/track5.mp3",
  "audio/track6.mp3",
];

class MediaPlayerBloc {
  final AudioCache audioCache = AudioCache();
  final List<AudioPlayer> audioPlayers = [];
  int trackIndex = 0;
  bool pause = false;

  void play() async {
    // load all tracks
    for (final fileName in audioTracks) {
      File file = await audioCache.load(fileName);
      AudioPlayer player = AudioPlayer();
      audioPlayers.add(player);
      await player.setReleaseMode(ReleaseMode.LOOP);
      await player.play(file.path, isLocal: true, volume: 0.0);
      print('initialized $fileName');
    }

    await playPause();
    await toggleTracks();
  }

  Future<void> toggleTracks() async {
    trackIndex = (trackIndex + 1) % audioPlayers.length;

    for (final player in audioPlayers) {
      await player.setVolume(0);
    }

    await audioPlayers[trackIndex].setVolume(1.0);
    print('toggleTracks finished fir index: $trackIndex');
  }

  Future<void> playPause() async {
    pause = !pause;

    for (final player in audioPlayers) {
      if (pause) {
        await player.pause();
      } else {
        await player.resume();
      }
    }
    print('playPause finished: $pause');
  }
}

The demo code above creates two buttons. One for toggling pause/play all the tracks and one for iterating through the list of tracks so that only one track has volume 1.0 at a time. Others have 0 volume.
The code above works perfectly on iOS. On Android (used for testing Nexus 6 Android 7.1.1) it works only if I use only two tracks. If more tracks are loaded the outcome of the audio is non predictable.
Any idea what's happening?

This issue is outdated or uses a very old version of the project, could you please test if this happens on newer versions? And in case that this still happens, open a new issue?


User story 11 world map

Forgot to remove the extra minigamemanager in Oskars World scene, doesnt really matter but yea :) + we probably do not need the fishingmanager anymore.


Add "Agit" website

Source name
Agit
Source link
https://agit354.com/
Source language
Korean
Other details
18+
Acknowledgements

[X] I have checked that the extension does not already exist by searching the extension listing and verified it does not appear there.
[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a meaningful title with the source name.
[X] I will fill out all of the requested information in this form.

Agitoon: Cloudflare & Domain that keeps changing


issue with banker

Hi!
i installed today the item piles bankers, and i have a strange issue. My first player created the vault, and it worked. Then the other players when they tried, instead of asking them to create a new vault and pay 50gp, it just opened the vault of the first player.
have i done something wrong?

This doesn't happen to me, could you upload a video of this happening?

Hi Haxxer, i hope it make sense. first i create the banker, then i login with another player, create the vault, then i login with a third player, and the third player see the bank vault of the first one without asking if he wants a vault opened.
https://www.dropbox.com/t/lfSc1TnG1uvzKGb7

Strange. Please provide the following:

Foundry Version: [e.g. 9.238]
System & Version: [e.g. DND5e 1.5.7]
Item Piles Version: [e.g. 1.0.0]
Item Piles: Bankers Version: [e.g. 1.0.0]

Foundry Virtual Tabletop: Version 11 Stable, 11.304
Game System: dnd5e, 2.2.2

This is my current setup of the banker, what does yours look like?

i even created a new player and a new user, bbb (player35), just to make sure there was no issue with my current players. But no, even bbb when he opens the banker sees Aurio's Bank (the first player that opened an account)


Investigate muon data

I want to test if we can get good results for muon data using this approach. I got the below information from James.
We can use the pair data from HIFI<PHONE_NUMBER>01 as input. These are all of the form:
y(t) = BG(t) + sum_j A_jexp(-lambda_jt)
with A_j > 0 and 0.001< lambda_j < 20. The sum should go from j =1 to 4.
To get this to work I think we just need to add the exponential function to the code base (and eventually a main).

Looks like this does work:


Version 2.2.1

Heroku Toolbelt has been replaced by / renamed to Heroku CLI.
It is installed with brew install heroku. See:
https://devcenter.heroku.com/articles/heroku-cli#macos

Upgrade Ruby version for contributors.
Update release documentation for contributors.

Related:
https://github.com/thoughtbot/laptop/commit/3b7845b849830033e87617b470d8dd64c925e732
https://github.com/thoughtbot/laptop/commit/0636eea1983af478037fd75a9519a92f9f18a81f

Extracted the Ruby upgrade to its own pull request / commit https://github.com/thoughtbot/parity/pull/134

Extracted the release documentation to https://github.com/thoughtbot/parity/pull/135

https://github.com/thoughtbot/homebrew-formulae/compare/master...heroku is prepped as well. @geoffharcourt is going to take this release from here and update the docs at https://github.com/thoughtbot/parity/pull/135 as he goes

🎤  ⬇
Thanks for doing this, @croaky.

Thank you, @geoffharcourt! Hope to see Parity mentioned in this week's thoughtbot newsletter! http://rss.thoughtbot.com

Got this settled a little late for last week's newsletter, but the release will be there (hopefully along with dotfiles)!.


feat: support custom target: _blank config for link

Is your feature request related to a problem? Please describe.
Now Island.js set target: _blank for every external urls (start with http:// or https://), but sometimes we don't want to open a new tab for some links.So we should improve the extensibility of this function.
Describe the solution you'd like
For example, we can expose the config:
{
  markdown: {
    // The link in this list will not open a new window after click
    targetBlankWhiteList: []
  }
}

Now in Island.js，the target: _blank will be attached by rehype-external-links, so we can implement it through it.
Describe alternatives you've considered
No response
Additional context
No response
Validations

[X] Read the docs.
[X] Read the Contributing Guidelines.
[X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.

Is there anyone who want to finish it?

I'm willing to give it a try in my spare time


Build Fails with MappIntelligence 5.0.11

After updating the Mapp SDK (installed via cocoa pods) to Version: 5.0.11, the build fails with "Reachability not found".

Probably it is missing in the Podspec for Version 5.0.11.

Hi @Annika-EMP,
Unfortunately we cannot reproduce this issue using CocoaPods in any of our test applications. The Reachability library is actually copied into our SDK directly: https://github.com/mapp-digital/MappIntelligence-iOS-v5/tree/master/MappIntelligence/Network/Reachbility. It might have been a temporary failure of the link and build. Can you please try again and see if it is working now?

Hi @StefanMiticon,
yes the files are added, but they are not added to the Build Phase/Project Directory, so Xcode does not find the file.

Can you do something about this?
Kind Regards
Annika


Search Sub-Directories in Specified Animation Folders

Request: Have the system search through sub-directories of specified folders for valid animations.

This opens a can of worms... I need to update it to handle packages (folders with init.py in them). Mainly it needs to follow how python itself would handle the search. Possible, just need to be careful.

Wish our dev groups at work responded this fast, hehe. And that is why it is opened as an 'enhancement' (as in "nice to have, but low priority") :)

hahaha... same here. And I know, but my OCD prevents me from not responding with something if I already have a reason for it :P


Fix header anchor normalization

Do not call tolower on non-ASCII chars because it would otherwise
insert invalid UTF-8 bytes into the HTML output. (tolower is not
locale-aware)
Invalid UTF-8 bytes will cause various errors, e.g. "ArgumentError
(invalid byte sequence in UTF-8)", when rendering the generated HTML in
Rails.
This should fix #527.
Signed-off-by: Clemens Gruber<EMAIL_ADDRESS>

Thank you very much!


Solar system mode and associated methods

First attempt, in reference to issue #69

Looking through the source code that Phil linked to helped me find a lot more methods, and I added as many as I could in the latest commit. Results of note:

I made comments in wwt.html to indicate which solar system mode related methods are working and which are not. By the way, any better names for solar system mode? I agree with Phil that it does more than show the solar system and its name should reflect that.

I got planet tracking to work through the method wwt.track_object(). It takes a string that will point to the integer used as an argument for the actual JS function. I went to Earth and it was rotating, which was cool. Individual views in planet mode are also available for the Galilean satellites.

Panorama views are now available, although I don't know how to switch to the other ones. Are they hidden like the imagery layers for minor planets?

I found a cause of the libpng warning: gAMA: gamma value out of range errors that occur for me when I launch in Qt -- the images that load when the new wwt.constellation_pictures attribute is toggled on. Is there way not to load these pictures on startup until we figure out how to fix the gamma value? (I also sometimes get libpng errors when I increase the scale of the planets to 100 in solar system mode.)

I also added wwt.constellation_labels, which should label the constellations, but I get an error saying that the XML requests necessary to run this method are not allowed. A similar thing happens with some other labeling attributes I added for the (also newly added) ecliptic and galactic grids.

Crosshairs are no longer working, so I couldn't test the method I added that allows users to change their color.

Looking through the source code that Phil linked to helped me find a lot more methods, and I added as many as I could in the latest commit. Results of note:

I made comments in wwt.html to indicate which solar system mode related methods are working and which are not. By the way, any better names for solar system mode? I agree with Phil that it does more than show the solar system and its name should reflect that.

I got planet tracking to work through the method wwt.track_object(). It takes a string that will point to the integer used as an argument for the actual JS function. I went to Earth and it was rotating, which was cool. Individual views in planet mode are also available for the Galilean satellites.

Panorama views are now available, although I don't know how to switch to the other ones besides the default Mars rover. Are these imagery layers hidden like the ones for minor planets, too?

I found a cause of the libpng warning: gAMA: gamma value out of range errors that occur for me when I launch in Qt -- the images that load when the new wwt.constellation_pictures attribute is toggled on. Is there way not to load these pictures on startup until we figure out how to fix the gamma value? (I also sometimes get libpng errors when I increase the scale of the planets to 100 in solar system mode.)

I also added wwt.constellation_labels, which should label the constellations, but I get an error saying that the XML requests necessary to run this method are not allowed. A similar thing happens with some other labeling attributes I added for the (also newly added) ecliptic and galactic grids.

Crosshairs are no longer working, so I couldn't test the method I added that allows users to change their color.

Here are some answers from my side:

What about keeping 'solar system', but then having e.g. 'milky way' and 'universe' which are the same but start off more zoomed out?

Very cool :)

Maybe we can defer this to a separate PR so this one can be wrapped up first?

We need to find a way to try and get the actual image files to see if there are issues with them...

Sounds similar to the issue I was having with loadFITS. Let's see what they say about that.

The main thing I do in this commit is give BaseWWTWidget a class variable that keeps track of the current mode (current_mode) and add a function (reset_view()) that resets the view based on current_mode.
I also divided solar system mode into "solar_system," "milky_way," and "universe" modes and hard-coded default coordinates and FOVs for every mode except panorama, which I'll try to address in a future PR as per Tom's request.
There's no change in terms of which solar system methods work or with the other methods that were broken or causing issues, though I guess those are out of our hands at the moment.


Mocking a mssql DB instance

Wondering if there is a suggested way of mocking the standard library sql.DB object while making use of this mssql driver?
I tried making use of the datadog sqlmock, but it is not working when I pass a TVP type object as a parameter.
Here is an example of my test using sqlmock:
type AnyTVP struct{}

// Match satisfies sqlmock.Argument interface
func (a AnyTVP) Match(v driver.Value) bool {
	_, ok := v.(mssql.TVP)
	return ok
}

func Test_InsertContact(t *testing.T) {
	db, mock, err := sqlmock.New()
	if err != nil {
		t.Fatalf("an error '%s' was not expected when opening a stub database connection", err)
	}
	defer db.Close()

	d, err := New(db)
	assert.Nil(t, err)

	contact := Contact{
		ContactID: 123,
	}

	// Setup behavior of mock db instance
	rows := sqlmock.NewRows([]string{"ContactID"})
	rows.AddRow(contact.ContactID)

	mock.ExpectQuery("dbo.InsertContacts").WithArgs(AnyTVP{}).WillReturnRows(rows)

	err = d.InsertContact(context.Background(), contact)
	assert.Nil(t, err)
}

When I execute the test I get this error:
sql: converting argument with name \"Contacts\" type: unsupported type mssql.TVP, a struct

Here is the function that is being called from the test:
execTvp = "dbo.InsertContacts @Contacts;"
udtContactTable = "dbo.[UDT_Contact_Table]"

func (s dpservice) InsertContact(ctx context.Context, contact Contact) error {
	tvp := mssql.TVP{
		TypeName: udtContactTable,
		Value:    []Contact{*contact},
	}

	rows, err := s.inCodeDB.QueryContext(ctx, execTvp, sql.Named("Contacts", tvp))
	if err != nil {
		return err
	}
	defer rows.Close()
...
}

The reason I am putting this issue here rather than on the sqlmock project is because this sqlmock issue suggests providing a ValueConverter when using custom sql drivers. Is there a ValueConverter in this package? I can't find it anywhere?

I wouldn't personally support what you are doing.
My unit tests start by creating a fresh DB and DB schema, populating data in it, then using that fresh DB to run the real queries. Then I test the results of the queries (results, or DB state) for the unit test.
I don't know about sqlmock. Right now I haven't read your issue carefully. But I wanted to point you in the above direction, because over time that is what I found to work best.

I see what you mean, however, I am just trying to write a simple unit test for my service's behavior around data that is returned from a database stored proc call. I was able to get around my issue in a much simpler way.
I defined an interface that has only the QueryContext method since that is all I am using on my sql.DB instance:
// QueryContexter is a trimmed down version sql.DB allowing for simpler mocking
type QueryContexter interface {
	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
}

Then I pass in an instance of QueryContexter to my service as a dependency, thus allowing me to create a simple no-op version of QueryContexter in my unit tests.
I think your recommendation of running an actual DB instance is a good idea for an integration test. I will probably follow your example to accomplish that as well.


Understanding miscellaneous.py and analysis folder

Hi, I successfully ran run_training.sh and run_test.sh. After run_test.sh, I have a model_iter149999.hdf5 file sized at 4.1 GB in the eval folder.
To evaluate the performance of the model, I looked into miscellaneous.py and wrote a short script:
python miscellaneous.py --option fusion --benchmark nyucad
A few questions about the other parameters:

logdir
Should this optional param, if I were to set it, be the same as the log directory I set in run_test.sh?

root_dir
What does it mean by benchmark targets?

targets, target_model
What does it mean by targets to compare each other?
For target_model, should this be set to model_iter149999.hdf5?

In statistics.py, there is a def acquire_results( ) requiring a path to fusion_attributes.hdf5 which I seem to be missing. Are there steps that I skipped before I should run miscellaneous.py?

Edit: I ran analysis.sh and it required a main.py which is missing from the master copy. I edited from train.py to only require --phase and output-model-path but I was not successful.

For fair comparison, the ground truth masks, to identity the empty/non-empty/surface grids, are copied from SSCNet.
To make it work, you should configure the SSCNet and then run its download_data script. Then, modify the path of DEFAULT_GT in statistics.py to the SSCNet repo root. Finally, we could run the evaluation with command:
python miscellaneous.py --option criterion --logdir eval --benchmark nyu
Some more tips:

As we said in our article, for NYU dataset, the total training iterations is about 4000~ and pick the best results, evaluated from checkpoints saved per 200 iterations.
All results reported in paper are pre-trained with SUNCG dataset. I suggest you ask for the permission of SUNCG dataset from its author.


Example Image in Readme

It'd be very very useful to see what the output of this program is from the README..

fixed


DX improvements

While playing around with the lib, I came across a couple of peculiarities listed below. I think tackling them would result in a better developer experience. I'd like to know your opinion @xJonathanLEI, if you think they are worth dealing with.
1) Print out a hash representation of UnsignedFieldElement (where it makes sense?):
Take the example from #52 of dbg!(result); This prints out something like this:
[src/main.rs:59] result = AddTransactionResult {
    code: TransactionReceived,
    transaction_hash: UnsignedFieldElement {
        inner:<PHONE_NUMBER>502938754811783899429488071781078345184259994040934169808967186824,
    },
    address: None,
}

The issue is I can't copy-paste the transaction hash to Voyager easily, I have to convert it to its hex representation first. Same applies to e.g. block_hash in various types. Is there a good solution for this?
2) Build an abstraction over AcceptedOnL1 / AcceptedOnL2.
The idea is to prevent code like this:
  let tx = provider.get_transaction_status(tx_id).await.unwrap();

    if let TransactionStatus::AcceptedOnL2(b) = tx {
        dbg!(b.block_hash);
    } else if let TransactionStatus::AcceptedOnL1(b) = tx {
        dbg!(b.block_hash);
    }

since, normally, a TX gets accepted on L1 eventually, but I might not care when the transition happens. This might be potentially solved by resolving #9.
3) Add From/TryFrom to streamline UnsignedFieldElement conversion
What do you think about implementing From/TryFrom traits to enable UnsignedFieldElement::from("0xc0ffee"), replacing from_str and from_hex_str? An added benefit is less need for unwraping. Similarly could be done to replace try_from_bytes_be though I don't think that's going to be used so often.
 Setting it to None implies the latest block (however, only on the gateway level). This results in, subjectively, ugly code:
account.get_nonce(Some(BlockId::Number(56000))).await.unwrap();
account.get_nonce(None).await.unwrap();

For example in Python, I'd define the get_nonce function with a default argument def get_nonce(block_id=None) so one could do:
account.get_nonce(56000)
account.get_nonce()

Is there a way to achieve something similar?
What I thought about is to replace the None option with a BlockId::Latest enum field. That way, we could remove the Optionality of the block_identifier and the intention would be clear and explicit: account.get_nonce(BlockId::Latest).await.unwrap(). WDYT?
TODOs:

[x] Print out a hash representation of UnsignedFieldElement
[x] Use a non-optional BlockId in Provider trait
[ ] Have only from_hex_str and from_dec_str to convert strings to UnsignedFieldElement

Thanks for the feedback! They're solid ideas and we should definitely tackle them (update issue with TODO list?).
However, for item 3 I don't think I understand. If you implement TryFrom for strings, you'd still need an unwrap(); and if you implement From instead, you'd have to panic on invalid input, probably a bad idea. As a developer, I'd want to control panics myself (by choosing to call unwrap).
For try_from_bytes_be I also don't think that's a good idea. There's something special about conversion to/from byte arrays: endianess. This difference cannot be conveyed to developers if it's implemented as traits.

For others, I think we certainly should do. In fact, I myself have been considering doing 1 and 4 lol.

Despite the "not production ready" tag, I've already started using this lib for building services to be used in production. I should also be able to discover some pain points.

Added TODOs for 1) and 4) so far.

Hmm I see where you're coming from for the 3rd issue. So here's my rationale against it.

Generally I tend to avoid any panics in my code. The cost of allowing cleaner code here is potentially surprising developers who didn't realize the code can panic until its live in production (where it accepts real-world user inputs).

If we implement From, it's literally gonna be calling  unwrap onTryFrom. Developers can write a utility function for it themselves if they want.

Forcing developers to either call unwrap or handle errors makes it explicit that the code can fail, not just to developers themselves, but also other developers reading their code.

Personally, I'd rather introduce unsafe undefined behavior for performance reasons (with a big warning on the function name of course) than panicking.

Actually, I don't even know if having even from_str is a good idea. I might as well just remove that and only keep from_hex_str and from_dec_str. I'd rather have from_str_radix.
The reason is that from_str can surprise developers too. I was once surprised by the from_str behavior of Parity's U256, which automatically assumes hex encoding, even when the prefix is not present. I only ever tested my application with numbers lower than 10, where hex/dec doesn't make a difference. That bug slipped into production lol.
The thing is from_str (or From and TryFrom) doesn't inform developers of the encoding being used. It's actually a very similar situation to the byte array endianess problem.

From and TryFrom are ecosystem standards, people 1) expect them and/or 2) know how to use them and what it entails. If we have both, users can decide if they want to handle errors or have the potentially panicking behaviour. I don't see the drawback of the lib offering both.
I actually like the from_str behaviour of Parity's U256 you describe :)
I agree on ditching from_str for the two explicit functions from_hex_str and from_dec_str. What would from_str_radix do?

They are standard traits. But From implies that nothing could go wrong. That's why TryFrom exists. I don't think it's appropriate to implement From when it can indeed go wrong. To make this explicit, developers should be forced to call unwrap IMO.
So I do think there's a drawback for offering From: it makes it look like it will always succeed.

For a similar reason, this does not compile:
let a = u32::from(1u64);

Following your argument, the Rust standard library should implement From<u64> for u32 too, for the sake of making it "cleaner" for developers that are certain it's not gonna fail.
But nope, it isn't implemented, because the very present of a From implementation implies that an operation will never fail. That's my concern. It goes against the established practice.

That's true 👍 Good point.

Closing this. The proposed improvements have been either already resolved through code or discussion above. 💪


feat: add Touch Target Minimum sections to Links and Button pages

Describe your changes
This is an improved version of PR #390. Read the Description section for context.
Screenshots - If Any (Optional)
Link to issue

Closes #386
Checklist before requesting a review

[x] I have performed a self-review of my code.
[x] Followed the repository's Contributing Guidelines.
[ ] I ran the app and tested it locally to verify that it works as expected.
[ ] I have checked my code with an automatic accessibility tool such as Axe Dev Tools or Wave
and it shows no errors.

Additional Information (Optional)
N/A

No worries, I can merge it in and fix it.


[WIP]Fix table creation with all columns as  partition columns

Why is this PR needed?
What changes were proposed in this PR?
Does this PR introduce any user interface change?

No
Yes. (please explain the change and update document)

Is any new testcase added?

No
Yes

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1282/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3001/

Please add description

@kunal642 added description please check

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1295/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3013/

LGTM


is System.Net.Http.HttpClient not supported by Embeddinator-4000 ?

Steps to Reproduce

Run objcgen to generate a objc framework from a dll which make use of Sytem.Net.Http.HttpClient

Expected Behavior
The objc framework is generated
Actual Behavior
The generated output folder is empty, and I see the following error in the logs:
[...]
Generating binding code...
error EM0009: The feature Converting type System.Net.Http.HttpClient to mono code is not currently supported by the tool
Debug Log
[...]
Environment
Embeddinator-4000 v0.1 (0.4: 7664197)

Please include a test case (to reproduce, the dll you used), your full build logs, crash reports (if any) and all your version information.

A project reproducing this issue can be found in the following repo:
https://github.com/dcordero/EmbeddinatorPlayground
Build logs:
~/.nuget/packages/embeddinator-4000/0.4.0/tools/objcgen EmbeddinatorPlayground/bin/Debug/netstandard2.0/EmbeddinatorPlayground.dll --target=framework --platform=iOS --outdir=output -c --debug
Symbol file /Users/dcordero/.nuget/packages/embeddinator-4000/0.4.0/tools/IKVM.Reflection.pdb doesn't match image /Users/dcordero/.nuget/packages/embeddinator-4000/0.4.0/tools/IKVM.Reflection.dll
Parsing assemblies...
	Parsed 'EmbeddinatorPlayground/bin/Debug/netstandard2.0/EmbeddinatorPlayground.dll'
Processing assemblies...
	1 types found
Generating binding code...
error EM0009: The feature `Converting type System.Net.Http.HttpClient to mono code` is not currently supported by the tool
Debug Log:
Processing: 1 assemblies
Processing Assembly: EmbeddinatorPlayground
Processing Type: EmbeddinatorPlayground_MyDummyClass
TypeMapper Register: System.Void .ctor(System.Net.Http.HttpClient) initWithClient:
TypeMapper Register: System.Void FetchData() fetchData
Begin Generator
Generating Assembly: EmbeddinatorPlayground
Generating Type: EmbeddinatorPlayground_MyDummyClass

I'm experiencing a different, but related problem. System.Net.Http seems to work fine with an iOS library embeddinated, but I'm having trouble with Android. When I attempt to make a request, I get a NameResolutionFailed exception, and if I specify the IP address explicitly, instead I get Error: ConnectFailure (mono-io-layer-error (10013)). It seems like it's working, but for some reason can't actually access the network hardware. I've tried using modernhttpclient-updated and referencing OkHttp as a dependency in the Android project, but I get the exact same results.

Have you added internet permissions to the android XML file ?
Pete
On Aug 30, 2018, at 1:12 PM, Robert Thompson <notifications<EMAIL_ADDRESS>wrote:
I'm experiencing a different, but related problem. System.Net.Http seems to work fine with an iOS library embeddinated, but I'm having trouble with Android. When I attempt to make a request, I get a NameResolutionFailed exception, and if I specify the IP address explicitly, instead I get Error: ConnectFailure (mono-io-layer-error (10013)). It seems like it's working, but for some reason can't actually access the network hardware. I've tried using modernhttpclient-updated and referencing OkHttp as a dependency in the Android project, but I get the exact same results.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/mono/Embeddinator-4000/issues/685#issuecomment-417451822, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAoCQ4ojLlMxzjyETotVLKAxLuztT1VQks5uWEchgaJpZM4VQ_hB.

Hah, I bet that's it, I'll check as soon as I get a chance. I admit I'm primarily an iOS developer, so this slipped past me completely.

Have you added internet permissions to the android XML file ? Pete On Aug 30, 2018, at 1:12 PM, Robert Thompson <notifications<EMAIL_ADDRESS>wrote: I'm experiencing a different, but related problem. System.Net.Http seems to work fine with an iOS library embeddinated, but I'm having trouble with Android. When I attempt to make a request, I get a NameResolutionFailed exception, and if I specify the IP address explicitly, instead I get Error: ConnectFailure (mono-io-layer-error (10013)). It seems like it's working, but for some reason can't actually access the network hardware. I've tried using modernhttpclient-updated and referencing OkHttp as a dependency in the Android project, but I get the exact same results. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#685 (comment)>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAoCQ4ojLlMxzjyETotVLKAxLuztT1VQks5uWEchgaJpZM4VQ_hB.

worked for me.


⚠ Bofrost.es has degraded performance

In 4151f05, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1449 ms

Resolved: Bofrost.es performance has improved in ab4bd2b after 1 hour, 22 minutes.


third-party-resource example does not compile (again)

deadwood(~/src/k8s.io/client-go) % go build  ./examples/third-party-resources/
examples/third-party-resources/main.go:9:2: cannot find package "k8s.io/client-go/pkg/api/errors" in any of:
        /home/dfc/src/k8s.io/client-go/vendor/k8s.io/client-go/pkg/api/errors (vendor tree)
        /home/dfc/go/src/k8s.io/client-go/pkg/api/errors (from $GOROOT)
        /home/dfc/src/k8s.io/client-go/pkg/api/errors (from $GOPATH)
examples/third-party-resources/types.go:7:2: cannot find package "k8s.io/client-go/pkg/api/meta" in any of:
        /home/dfc/src/k8s.io/client-go/vendor/k8s.io/client-go/pkg/api/meta (vendor tree)
        /home/dfc/go/src/k8s.io/client-go/pkg/api/meta (from $GOROOT)
        /home/dfc/src/k8s.io/client-go/pkg/api/meta (from $GOPATH)
examples/third-party-resources/main.go:12:2: cannot find package "k8s.io/client-go/pkg/apis/meta/v1" in any of:
        /home/dfc/src/k8s.io/client-go/vendor/k8s.io/client-go/pkg/apis/meta/v1 (vendor tree)
        /home/dfc/go/src/k8s.io/client-go/pkg/apis/meta/v1 (from $GOROOT)
        /home/dfc/src/k8s.io/client-go/pkg/apis/meta/v1 (from $GOPATH)
examples/third-party-resources/main.go:13:2: cannot find package "k8s.io/client-go/pkg/runtime" in any of:
        /home/dfc/src/k8s.io/client-go/vendor/k8s.io/client-go/pkg/runtime (vendor tree)
        /home/dfc/go/src/k8s.io/client-go/pkg/runtime (from $GOROOT)
        /home/dfc/src/k8s.io/client-go/pkg/runtime (from $GOPATH)
examples/third-party-resources/main.go:14:2: cannot find package "k8s.io/client-go/pkg/runtime/schema" in any of:
        /home/dfc/src/k8s.io/client-go/vendor/k8s.io/client-go/pkg/runtime/schema (vendor tree)
        /home/dfc/go/src/k8s.io/client-go/pkg/runtime/schema (from $GOROOT)
        /home/dfc/src/k8s.io/client-go/pkg/runtime/schema (from $GOPATH)
examples/third-party-resources/main.go:15:2: cannot find package "k8s.io/client-go/pkg/runtime/serializer" in any of:
        /home/dfc/src/k8s.io/client-go/vendor/k8s.io/client-go/pkg/runtime/serializer (vendor tree)
        /home/dfc/go/src/k8s.io/client-go/pkg/runtime/serializer (from $GOROOT)
        /home/dfc/src/k8s.io/client-go/pkg/runtime/serializer (from $GOPATH)

The repository seems to be missing a bunch of packages.
This isn't the first time this has happened, #52. Is there any CI in place to prevent future regressions?

open issue: https://github.com/kubernetes/client-go/issues/73
Does https://github.com/kubernetes/client-go/pull/75 fix this?

@lavalamp 'fraid not, things are going from bad to worse, #83

https://github.com/kubernetes/client-go/pull/86 should fix this.
I've staged a flattened version of the client here, which includes this fix: github.com/lavalamp/client-go-flat


Add configuration for WebSocket support

Per the nginx documentation:

As noted above, hop-by-hop headers including “Upgrade” and “Connection” are not passed from a client to proxied server

I propose we have some configuration to enable WebSocket support (and subsequent nginx configuration).  Please see the following for more details on nginx and WebSockets: http://nginx.org/en/docs/http/websocket.html

For the short term, let's add a new annotation called websocketPaths and use that.

For our edge router we did this:
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_header;
Something similar could be done, so that these headers are added if the previous hop sends these.

I'm not asking for implementation details, that's already documented in the link I provided in the issue.  I'm asking how should we mark paths as being a WebSocket path?  Do we extend the existing path syntax?  Do we add a new annotation, like websocketPaths?

Is it possible to just adding those options to all public paths? If so, what's the downside?

And actually, do private paths also need to be able to enable those options?

I thought about adding it to all paths but mucking with those automatically seems like it could cause issues, especially if we do this the nginx way and downgrade/upgrade the connection to HTTP/1.1 for all connections.

Hmm. "Seems like it could?" I think I wouldn't add the complexity until there's some evidence that it would cause a problem.

What I ended up doing was enabling this without needing to annotate your Pods...for now.


Adding a FAQ Page

Is your feature request related to a problem? Please describe.
@sk66641 I want to add a FAQ page to the website. Kindly assign this issue to me.
Describe the solution you'd like
NA
Describe alternatives you've considered
NA
Additional context
NA

Thanks for raising this issue but i think it's not needed at the moment. If you have any additional issues, feel free to reach out.


cannot run on mac

Expected behavior
Get the swagger json format
Current behavior
panic: assignment to entry in nil map

goroutine 1 [running]:
main.parse(0xc420010ae0, 0x6, 0x3, 0xed2057f5f, 0x1e848000, 0x0, 0xc42000ac20, 0x1c, 0xc4200ad900, 0x8, ...)
	C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/swagger.go:51 +0x32c
main.(*Swagger).Generate(0xc42018b7d8, 0x7ffeefbff9f0, 0x16, 0x7ffeefbffa0f, 0xb, 0x7ffeefbffa1e, 0x4)
	C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/swagger.go:83 +0x11f
main.main.func1(0xc420076840, 0x10100, 0xc420076840)
	C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/app.go:57 +0x180
github.com/urfave/cli.HandleAction(0x11bd260, 0x12080d8, 0xc420076840, 0xc420060300, 0x0)
	C:/Users/Mohamed/go/src/github.com/urfave/cli/app.go:502 +0xd4
github.com/urfave/cli.Command.Run(0x11fab4d, 0x8, 0x0, 0x0, 0xc420010880, 0x1, 0x1, 0x1202246, 0x1e, 0x0, ...)
	C:/Users/Mohamed/go/src/github.com/urfave/cli/command.go:210 +0xb87
github.com/urfave/cli.(*App).Run(0xc4200b81c0, 0xc42000e080, 0x8, 0x8, 0x0, 0x0)
	C:/Users/Mohamed/go/src/github.com/urfave/cli/app.go:259 +0x7b7
main.main()
	C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/app.go:66 +0x515

Steps to reproduce the behavior
./swaggymnia generate -insomnia 2018-02-02.json -config config.json -o json

For me even worse.
I just downloaded from [wget https://s3.amazonaws.com/swaggymnia/1.0.0-beta/osx/swaggymnia] and I get

@faiverson you need to add execution permission (chmod +x swaggymnia) :)

@saturngod can you share your 2018-02-02.json file :)

@mlabouardy chmod 777 include permissions for read, write and execute for everybody
That's not the solution.

@faiverson you need to add the binary to the PATH variable or use the relative path to use the cli
./swaggymnia --help

@mlabouardy I will send you from email.

I got a similar error:

MacBook Pro (Retina, 15-inch, Mid 2014)
macOS Sierra v10.12.6 (16G1114)

Also tried it out inside a docker container running Linux, does not work as well.
FROM golang:1.11.2-stretch
WORKDIR /app
COPY . .
RUN go get github.com/mlabouardy/swaggymnia
CMD ["/bin/bash"]

output:
$ docker run -ti swago
root@daefe1595b01:/app# swaggymnia generate -i insomnia.json -c config.json -o yaml
panic: assignment to entry in nil map

goroutine 1 [running]:
main.parse(0xc000082448, 0x6, 0x3, 0xe205540, 0xed37c9fdc, 0x0, 0xc0000c6140, 0x1b, 0xc0000c9900, 0x8, ...)
	/go/src/github.com/mlabouardy/swaggymnia/swagger.go:51 +0x216
main.(*Swagger).Generate(0xc0000f99f0, 0x7ffdfd45fef1, 0xd, 0x7ffdfd45ff02, 0xb, 0x7ffdfd45ff11, 0x4)
	/go/src/github.com/mlabouardy/swaggymnia/swagger.go:83 +0x11e
main.main.func1(0xc000098580, 0xc000092200, 0xc000098580)
	/go/src/github.com/mlabouardy/swaggymnia/app.go:57 +0x1aa
github.com/urfave/cli.HandleAction(0x5bcde0, 0x60aad8, 0xc000098580, 0x0, 0xc000092300)
	/go/src/github.com/urfave/cli/app.go:501 +0xc8
github.com/urfave/cli.Command.Run(0x5fca44, 0x8, 0x0, 0x0, 0xc00006e4b0, 0x1, 0x1, 0x6042be, 0x1e, 0x0, ...)
	/go/src/github.com/urfave/cli/command.go:165 +0x459
github.com/urfave/cli.(*App).Run(0xc0000d41c0, 0xc00000e080, 0x8, 0x8, 0x0, 0x0)
	/go/src/github.com/urfave/cli/app.go:259 +0x6bb
main.main()
	/go/src/github.com/mlabouardy/swaggymnia/app.go:66 +0x4a0

This is still an issue on Mac for me. Getting the same error!

Here is a fixed binary for MacOS. If Windows people or Linux people need a new binary please let me know and I can make one
https://s3-us-west-2.amazonaws.com/jrpublic/swaggymnia

Still not added as command on mac even with Fyb3roptik solution

What do you mean not added as a command? if you're in the same folder as it then run ./swaggymnia or you can add your bin PATH to pwd

Same problem on Ubuntu 17.10
Command
./swaggymnia generate -insomnia project.json -config config.json -o json

Result
panic: assignment to entry in nil map

goroutine 1 [running]:
main.parse(0xc420014b30, 0x6, 0x3, 0xed3f78160, 0x35e1f200, 0x0, 0xc42000b100, 0x1b, 0xc420104000, 0x20, ...)
        C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/swagger.go:51 +0x32c
main.(*Swagger).Generate(0xc4200df7d8, 0x7ffc2f0f026f, 0x18, 0x7ffc2f0f0290, 0xb, 0x7ffc2f0f029f, 0x4)
        C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/swagger.go:83 +0x11f
main.main.func1(0xc420088840, 0x10100, 0xc420088840)
        C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/app.go:57 +0x180
github.com/urfave/cli.HandleAction(0x5bd740, 0x608ba0, 0xc420088840, 0xc42001a300, 0x0)
        C:/Users/Mohamed/go/src/github.com/urfave/cli/app.go:502 +0xd4
github.com/urfave/cli.Command.Run(0x5fb2c0, 0x8, 0x0, 0x0, 0xc4200148d0, 0x1, 0x1, 0x602cf6, 0x1e, 0x0, ...)
        C:/Users/Mohamed/go/src/github.com/urfave/cli/command.go:210 +0xb87
github.com/urfave/cli.(*App).Run(0xc4200c01c0, 0xc42000e100, 0x8, 0x8, 0x0, 0x0)
        C:/Users/Mohamed/go/src/github.com/urfave/cli/app.go:259 +0x7b7
main.main()
        C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/app.go:66 +0x515

It looks like there is a PR fixing this problem.
Is it this project still maintained?

Here is a fixed binary for MacOS. If Windows people or Linux people need a new binary please let me know and I can make one
https://s3-us-west-2.amazonaws.com/jrpublic/swaggymnia

Can you make this fixed binay for linux?

Here are all 3
Windows - 64bit
https://s3-us-west-2.amazonaws.com/jrpublic/windows/swaggymnia.exe
Mac
https://s3-us-west-2.amazonaws.com/jrpublic/mac/swaggymnia
Linux - 64bit
https://s3-us-west-2.amazonaws.com/jrpublic/linux/swaggymnia

https://github.com/Fyb3roptik/swaggomnia

@Fyb3roptik Not able to download it for MacOS from https://s3-us-west-2.amazonaws.com/jrpublic/mac/swaggymnia. Getting permission forbidden error. is the link still same?

Check out my repo here https://github.com/Fyb3roptik/swaggomnia There are releases


Bau refactor mailcheck

Sick lil’ tidy up via @maxcbc 🤙

Closing because this is now redundant because of #410


postfix service: implement DNS blacklist support

Looks good to me. :+1:

Just found an error when I tried to deploy this onto a newly-created nixos EC2 instance.  I didn't see it before because older copies of /var/postfix/conf were sticking around between nixops deploys.  :-/


Fix indexing handler for saving addresses

On 12/5 Ian found a bug - he can't save addresses; gets an error page

@rlskoeser How should I test this issue?

@jkotin the error is triggered when you try to add or update an address on an account in the admin site. You can compare behavior in production and test to see the bug and then confirm that it's been fixed.
Sorry I didn't add any testing notes, I kind of imagined @clmahoney would be testing this one - but we haven't discussed a testing workflow for bugs yet, so I'm not sure why I thought that.

This looks good! I tested adding a new address (my house) to a random account, and it worked.


thread 'main' has overflowed its stack when using a wrapper with derive

Minimum working example here: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b05606f4e212d06a700f8ff38fa26d12
I seem to be getting a runtime thread 'main' has overflowed its stack error when trying to delegate to a wrapper type for deserialisation. Seems possibly related to a prior issue with a similar thing happening at compile time: https://github.com/rust-lang/rust/issues/55779 but that is marked as completed.

I think this is behaving correctly. You've written a Deserialize impl for Foo that requires deserializing Wrapper, and a Deserialize impl for Wrapper that involves deserializing Foo.

Thanks I see now. Is there any way to use a new type and #[derive(Deserialize)] like this without creating a recursive issue?


[BUG] Page page/ not found

I posted this issue earlier right before the 3.1.2 release, and hoped it was fixed in that release. But the problem remains.
I have done multiple clean installs (Bolt 3.0.12 & 3.1.0 beta 2), and all single page views got 404 errors after installing translate. Also upgraded one install from 2.2.23 to 3.0.12 and got an fatal error (because there wasn't a 404 page in the theme):
Request URL: bolt.prod/nl/page/over-ons
Symfony\Component\HttpKernel\Exception\HttpException thrown with message "Page page/ not found."

Stacktrace:
#9 Symfony\Component\HttpKernel\Exception\HttpException in /home/vagrant/projects/bolt-prod/vendor/silex/silex/src/Silex/Application.php:400
#8 Silex\Application:abort in /home/vagrant/projects/bolt-prod/vendor/bolt/bolt/src/Controller/Base.php:62
#7 Bolt\Controller\Base:abort in /home/vagrant/projects/bolt-prod/vendor/bolt/bolt/src/Controller/Frontend.php:155
#6 Bolt\Controller\Frontend:record in /home/vagrant/projects/bolt-prod/extensions/vendor/animal/translate/src/Frontend/LocalizedFrontend.php:78
#5 Bolt\Extension\Animal\Translate\Frontend\LocalizedFrontend:record in /home/vagrant/projects/bolt-prod/vendor/symfony/http-kernel/HttpKernel.php:144
#4 call_user_func_array in /home/vagrant/projects/bolt-prod/vendor/symfony/http-kernel/HttpKernel.php:144
#3 Symfony\Component\HttpKernel\HttpKernel:handleRaw in /home/vagrant/projects/bolt-prod/vendor/symfony/http-kernel/HttpKernel.php:64
#2 Symfony\Component\HttpKernel\HttpKernel:handle in /home/vagrant/projects/bolt-prod/vendor/silex/silex/src/Silex/Application.php:586
#1 Silex\Application:handle in /home/vagrant/projects/bolt-prod/vendor/silex/silex/src/Silex/Application.php:563
#0 Silex\Application:run in /home/vagrant/projects/bolt-prod/public/index.php:14

Details

Translate Version: all 3.x.x releases
Install type: Extension Repository and Local install
Bolt Version: 3.0.12 and 3.1.0 beta 2
PHP version: 7.0
Used webserver: Nginx version 1.9.11 (homestead 0.5.0)

I hope this is enough info. If you need a full reproduction log, please let me know :wink:

Could you also post your setup from translate.animal.yml and the pages contenttype?

Sure, here you go.
Contenttype:
pages:
    name: Pages
    singular_name: Page
    fields:
        locale:
            type: locale
            group: content
        title:
            type: text
            class: large
            group: content
            isTranslatable: true
        slug:
            type: slug
            uses: title
        image:
            type: image
        teaser:
            type: html
            height: 150px
            isTranslatable: true
        body:
            type: html
            height: 300px
            isTranslatable: true
        template:
            type: templateselect
            filter: '*.twig'
    taxonomy: [ groups ]
    recordsperpage: 100

translate.animal.yml:
# The locales the site should be available in
locales:
    nl_NL:
        label: Nederlands
        slug: nl
    en_GB:
        label: Engels
        slug: en
    es_ES:
        label: Spaans
        slug: es

# Enable/disable automatic routing override.
# Enabling this will prefix all routes with {_locale} which leads to links like
# /en/pages/yourpageslug It is recommended that you leave this on unless you
# want to build your own routing.
routing_override: true

# Enable/disable the menubuilder override.
# Enabling this will make the menu output links in the format of the automatic
# routing. It is recommended that you leave this on unless you want to build
# your own localized menus.
menu_override: true

# Enable/disable the url_generator override.
# Enabling this will override the url generator to make sure that we don't
# generate links without a locale. This is highlig recommended to keep unless
# you also build your own override since it can cause WSOD on 404's otherwise.
url_generator_override: true

# Enable/disable translated slugs.
# Enabling this will use translated slugs instead of using the same slug for
# all languages. Only set to false if you also don't set your slugs to `is_translateable`.
translate_slugs: true

# Enable/disable using Accept-Language header to determine the locale for
# redirection on `/`.
# Enabling this will redirect visitors on `/` to the preferred locale based on
# the Accept-Language header. Disabling this will always redirect `/` to the
# first locale set in `locales` above.
use_accept_language_header: true

Mmmmm, if you request the page by it's id like bolt.prod/nl/page/5 instead of bolt.prod/nl/page/over-ons it does work... strange :confused:

@frozenshadow Sorry, I've been full up with other work (and vacation :) ) the last few weeks, but I'm guessing this is the translate_slugs option misbehaving... I'll have a look tomorrow and let's take it from there :)

@SahAssar No problemo! Even the best devs need a vacation once in a while. But I'm happy to hear from you again ;)

Any updates on this issue?  I'm currently experiencing the same problem.  For the time being, I'm trying to manually localize the menus, but having it done automatically would make life easier.

Hi @SahAssar any news on this? I would like to put a website in production, but this issue is keeping me from doing that.
Thanks :) !

Hey @frozenshadow. Sorry about the delay... It seems you are having the same issue as #74, please let me know if that info does not solve it and I'll setup something where we can work through it. Basically, 3.1.X made our way of saving/loading translations obsolete, so we needed an alternate way.
As this is the same issue as above though, I am going to close it, but I'm very sorry for being so late to respond and fix this, please let me know if you can't solve it so we can get on something real-time (like IRC or slack) and solve it for you.

@SahAssar No need to apologize, I was a bit too fast with my comment. I am monitoring the other issues, and I guess I just needed confirmation that it was the same problem. Now I know it is :)
Looking forward to the fix, and again thank you for your hard work!

@frozenshadow Please let me know if you have issues with resolving it, that's the only way I can know if the fix works!  :)

Sure, I will let you know as soon as you have released 4.0

Just updated to 4.0 and bolt 3.1.4. And unfortunately the issue is still there :'(

S**t. I'll have a look at this soon as possible (hopefully tomorrow unless another shitstorm hits work), are you on slack or IRC so I can work through debugging the problem at a time of your convenience (if you are okay with that) if I don't find it myself?

Yeah, thought that too :P
Just created a account on Slack, if I have done everything correct (bit of a newbie here) I should have the same username.

@frozenshadow I can't find you on slack... Have you joined our slack via https://slack.bolt.cm/ ?

For anyone that comes along and is getting the same error: The issue was the records weren't "re-saved" in the locales, which is needed if the translate_slugs option is on, so resave the records and lemme know if it doesn't help :)


Create hpc-dev environment

I think this should be our 'template' for deploying a single all-encompassing stack on HPC systems.

It's self contained, with all non-implicit specs given in the spack.yaml

You get multiple compilers at once without having to create separate environments. On all of our HPC systems we've been installing with Intel and GNU. A compiler can easily be added/removed.

It excludes jedi-tools%intel

It overrides the issue with #266 without having to manually edit anything

The bundles get a version corresponding to the environment they are a part of.

I installed this on Hera successfully. If someone needs an extra package in this environment we simply add it to the list of packages until we retire this stack and move onto the next one.

That looks great. Not entirely clear to me ... do you get separate environments for each of the packages listed?

Scrap that, you don't ... but I am surprised that the meta modules script worked out of the box?

Yes, the meta-modules work out of the box if you have them both in packages:all:compilers/providers.

Yes, the meta-modules work out of the box if you have them both in packages:all:compilers/providers.

Great! I wrote it that way but never tested it :-)


File must be loaded into memory

Hi. I came across your project since I may try to use B2 in a personal project but I do not have experience with these types of APIs.
Anyway, I like the simplicity of your code (compared to say, backblaze-b2) but I noticed two related issues. You read the entire file to get the SHA1 hash and then you use that to sent the request.
Again, I am rather inexperienced here, but my quick reading suggests using an updated checksum on the SHA1 (see this for example). Similarly, based on this StackExchange answer you can stream the upload.
It certainly seems like an easy change but I really don't know.
Thanks!

Hi,
thanks for your suggestions. These are both good ideas; would you like to make a pull request?

would you like to make a pull request

Maybe this weekend. At the moment, I could add it but I am far from set up
to test it (including having to install python3 since I am stuck on 2 for
now...hopefully not much longer)
On Wed, Mar 1, 2017 at 6:38 PM, Chid Gilovitz<EMAIL_ADDRESS>wrote:

Hi,
thanks for your suggestions. These are both good ideas; would you like to
make a pull request?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/chidg/PyB2/issues/2#issuecomment-283529125, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC7mMMHcIIZS3M-1akWF9cOUoMG1Y1Mvks5rhh2agaJpZM4MPuR3
.

--

Justin Winokur
<EMAIL_ADDRESS>

No hurry; the project is on the back burner at the moment and has had relatively little activity for the past year.

AltLayer Airdrop Season One Announcement

Exciting news! AltLayer token (ALT) is set to launch on Binance on January 25, 2024. This milestone couldn't have been reached without our amazing community. Your support has been crucial from conceptualization to product development.
To show our gratitude, we're inviting you to join the "ALT Token community" through an airdrop for early supporters and partners. Below is a summary:

Total Allocated ALT Tokens: 300,000,000 (3% of total supply)
Distribution Categories:

NFT Holders
Altitude Campaign Participants
EigenLayer Restakers
EigenLayer Ecosystem Partners
Celestia Stakers and others

For detailed criteria and information, check the full announcement here.
Claim opens from January 25 to February 25, 2024. Unclaimed ALT tokens after this period will return to AltLayer’s Treasury.
Thank you for being part of AltLayer's success! More to come in Season One, stay tuned.
Note: Certain regions are restricted from the airdrop. Please review the disclaimer before participating.
wushenshen, @charlesdarkwind, @darrenli2, @xiocode, @blockchain-tech-developer, @webyak, @whatAboutJohn, @szho42, @morenoh149, @damocles0x, @w9jds, @n1c01a5, @sushbhask, @DeProdigy, @compiledsound, @itali43, @DocReverb, @scriptzteam, @AlexImb, @BMillman19


cleanup, use hardcoded strings less

@meganrm here are the changes I was talking about.  I did have to leave in one extra "displayType" variable in the AgentGeometry type which I think shouldn't really be there, but maybe the next refactor will make it easier to get rid of that!
Note these changes go as part of #182

The names of the things inside the enum should really now be something like:
enum GeometryDisplayType {
PDB="PDB",
OBJ="OBJ",
SPHERE="SPHERE",
etc
}
but I didn't want to do that much renaming because it would obfuscate the actual important changes.

yeah, thanks, I think this makes sense overall... and I do agree with your second comment that the enum is redundantly named.   I think GeometryDisplayType.PDB is probably slightly clearer than just "PDB" but i was wondering if there was a reason for the change other than getting to have a clear variable name

I'm just going to go ahead and merge this and then update the enum on my open PR

i was wondering if there was a reason for the change other than getting to have a clear variable name

Clear variable name for readability, lets the symbol name be different from the string value (so you could make it more desciptive), ease of extension (just add new values in one place, never need to import single values), can validate against existing values more easily, and lastly, I want to think of the strings as VALUES and not TYPES in the programming sense.  "PDB" is not a type, it's a value. the TYPE is GeometryDisplayType and it's allowed only certain values, which is a good use for an enum.


Native Range Slider not styled properly on -webkit... browsers

The Native Range Slider - http://foundation.zurb.com/sites/docs/slider.html#native-range-slider - does not appear to be rendering properly on Chrome, Safari, or iOS Safari.
In particular, the thumb is not positioned over the middle of the track.  Instead the top of the thumb aligns with the top of the track, causing most of the thumb to hand below the track.

Screenshot from Windows + Chrome

How to reproduce this bug:

Open Chrome on Windows, Chrome or Safari on OSX, or Safari on iOS.
Go to http://foundation.zurb.com/sites/docs/slider.html#native-range-slider
Check the look of the native range input

What should happen:
I assume it should be styled similar to how it looks for the JS Slider - big blue square thumb, etc.
This is also how the native slider looks on Windows + Firefox and Edge.
What happened instead:

The thumb is in the wrong place.  Not centred on the track.

The thumb appears to just be the browser default style (e.g small rectangle on Windows+Chrome, small circle on OSX+Chrome and both Safaris

Windows Chrome
Screnshot as above

Safari, iPhone SE, iOS 10.3.3

Screenshot from iOS Safari

Browser(s) and Device(s) tested on:
❌ = styling doesn't appear to work correctly
👍 = styling does appear to work correctly

Windows 10, x64

❌ Chrome 60.0.3112.90 (Official Build) (64-bit)
👍 Firefox 54.0.1 (32-bit) and 55.0.2 (32-bit)
👍 Microsoft Edge 40.15063.0.0
👍 Internet Explorer 11.0.45

iOS, iPhone SE, iOS 10.3.3

❌ Safari

OSX (sorry, don't know versions, but should be up to date)

❌ Safari
❌ Chrome

Foundation Version(s) you are using:
Foundation 6.4.2
Test case link:
http://foundation.zurb.com/sites/docs/slider.html#native-range-slider

Fixed by merged PR #10562.


Fix firebase node modules appearing in parent folder

On my device, a node_modules folder would appear in the parent git folder, adding all the firebase files to the commit. As a temporary solution I added a new .gitignore files, however we should investigate why only the firebase modules are being added outside the "app" folder

This is probably because the root of the project is outside the "app" folder. Someone probably installed a package at the root by mistake. I will mark this done and restructure the folders