[6.0] Increase tools version

Explanation: With the changes from #2742 in SyntaxRewriter requires stdlib functions introduced alongside with Swift 5.8. Increase the swift tools version to reflect that version requirement.
Scope: swift-syntax as a package dependency
Risk: Low, swift-syntax doesn’t build with Swift <5.8 currently anyway
Testing: n/a
Issue: n/a
Reviewer:   @ahoppen

@SimplyDanny Would you like to also create a PR for this to main?

@swift-ci Please test

@SimplyDanny Would you like to also create a PR for this to main?

Sure. There it is: #2802.


Speed Up Monorepo Git Commit Hooks By ~90s

Jira
N/A
Summary
This PR switches the Bolt monorepo over to using lint-staged on any files being commited + disables the extra long running monorepo Jest test (which double-checks dependencies) until everything starts to run on Travis.
Not only should this save us around 90 seconds of wait-time when trying to push but it should also automatically catch and fix any lint-related issues that can get automatically fixed when trying to commit!
Details
I tested this out by updating a handful of files to confirm everything is working as expected... looks like there's a TON of Sass files we could automatically clean (but I'll save that for a separate PR).
How to test

Confirm Travis build working as expected
Go ahead and try and try to commit something that Prettier / Eslint / Stylint would catch... 😉

Very nice and useful. Only a few lines of code can fix some linter issue. Good job 👍
I love this lint-staged package :)

Thanks @adamszalapski!

PR was released with v2.14.0


Token not updated to what I upload.

Whenever i edit some tokens, specifically the ones that have the "(wildcard)" next to their categories they never change. Idk if this is Tokenizer but any help would be great!
https://github.com/user-attachments/assets/51e164ae-19c6-47c8-a52d-24e1902c316d

Your video is not working.

Your video is not working.

Darn idk why. It works for me. I will reupload. Either way i think i found a workaround for now. | In every "Prototype Token" setting you need to uncheck 2 things in "appearance" 1. "Randomize Wildcard Images" 2. "Dynamic Token Ring" When i do that Tokenizer works as it did before.
What seems to cause this problem is Tokenizer working with the newest update of "Pathfinder Tokens: Bestiaries" because they it incorporated "Randomize Wildcard Images and Dynamic Token Rings" to work with Pathfinder Tokens: Bestiaries. This means that only monsters with art from Pathfinder Tokens: Bestiaries have this problem and you can use the workaround above. This is all a educated guess as ive been testing in a world with only these two modules enabled and it seems to still be happening.

Exact same issue for me, probably since Foundry v12. Can't detect any console errors.
In my case, system is dsa5/tde5. But if I understand correctly, @heyzoms is on dnd5. So I assume it's a system-agnostic issue.
My observation while reproducing:
Step 1: Open an existing token's tokenizer editor renders an empty token, even though it is rendered correctly in scene

Step 2: Edit the "missing" token an apply

Step 3: Reopen Tokenizer:

Thanks, @heyzoms, that workaround saved my life.
You video looks like system tde5/dsa5 to me (because I am on it). So I guess it's some system-specific issue.

Confirming that disabling "Dynamic token ring" in the second tab of the prototype token options solves this problem.
What an infuriating bug.


Refactored CPR: CPR can be performed by any Ped on any Ped

Added CPRManager to track active CPRs and LocalPlayer's CPR abilities.

In some places in the CPR class you still need to replace the local player character with the Administrant.
Lines: 93, 94, 138, 139
And if the administrant isn't the player the IsKeyDown checks shouldn't be enabled, it should be done automatically(maybe have randomly generated max attempts and a counter), you can use Ped.IsLocalPlayer to check this.

Thanks for spotting those. Took up your idea for the random max attempts on non-player peds.


Upgrade to Trilinos release version 12.12.1

The tarball has been available, so this is a reasonable issue now.

My attempt at this gets most of the way through, but fails when trying to fix the permissions on a TriBITS documentation file. Detailed in https://github.com/TriBITSPub/TriBITS/issues/242.

Version 12.12.1 is now working.


Firefox Connection Input Text Invisible

When attempting to use the connection input field in Firefox (36.0.4, Linux), nothing is displayed.  It works, just cannot see what you type.

hmm.
Hey sorry. I didn't follow what you are saying.
Could you clarify a bit more?

Okay got it ;)

Another awesome product though :)

Thanks.

We fixed this issue and now you'll be able to use FF with Kadira Debug.

Confirmed, +1

thanks.
On Tue, Jun 16, 2015 at 4:48 PM @iDoMeteor<EMAIL_ADDRESS>wrote:

Closed #5 https://github.com/meteorhacks/kadira-debug/issues/5.
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/kadira-debug/issues/5#event-331982440.


[Workshop] Cursor cut off and too large

newest update crops part of the cursor for me, which gets worse after loading into a world
https://i.imgur.com/TvCZOzO.png

@Metacinnabar UI scale is at 200%. Seems changing it higher than the default value messes up the cursor the higher you go.
https://i.imgur.com/5VOp52t.png


Inception class in GoogLeNet,wrong kernel size?

In the GoogLeNet implementatoin, the inception class, in branch3 the kernel size of the second convolution is 3. Shouldn’t that be 5?

https://github.com/pytorch/vision/issues/906#issuecomment-493748030

@fmassa we should probably add a comment to the affected line as it seems to often lead to confusion.

@TheCodez could you send a PR adding the comment?

Closing as a duplicate of https://github.com/pytorch/vision/issues/906#issuecomment-493748030
Let's keep the discussion there


added quota-backend-bytes setting to the etcd.conf.erb

added quota-backend-bytes setting to the etcd.conf.erb as it does not exist in the config but in the yml. Tested on:
CentOS Linux release 7.4.1708 (Core)
etcdctl version: 3.1.9
and
CentOS Linux release 7.3.1611 (Core)
etcdctl version 2.3.7
Both using Puppet 4

sorry for not looking at this until now.
Thank you @discodex


Drill with Blob Plugin Doesn't Work

Seems from previous issues that Drill with the Azure Blob plugin returns an error on any query against Avro files generated by Event Hub.
https://github.com/Azure-Samples/streaming-at-scale/issues/113
https://github.com/Azure-Samples/streaming-at-scale/issues/38
etc.
Those issues were resolved by changing the tutorial to use Data Bricks, but the section is still titled 'Use Apache Drill'. The tutorial seems to have nothing to do with Drill and uses a more complicated solution involving Data Bricks. References to Drill should probably be removed entirely.

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

ID: 5b902003-bd57-8a88-c9dc-a991984be7c7
Version Independent ID: 15c69292-967e-1b3d-7918-0f8793b74a14
Content: Exploring captured Avro files in Azure Event Hubs - Azure Event Hubs
Content Source: articles/event-hubs/explore-captured-avro-files.md
Service: event-hubs
GitHub Login: @spelluru
Microsoft Alias: spelluru

@pg-nonfiction
Thanks for your feedback! We will investigate and update as appropriate.

@pg-nonfiction
Thanks for your feedback! We have assigned the issue to author who will provide further updates.

Updated the article.
#please-close

Hello. Under the section titled 'Azure Storage Explorer', the doc still says 'You can also use Apache Drill for a lightweight SQL-driven experience..'. Unfortunately Drill doesn't work with .avro files at all (the Avro plugin throws an explicit exception on the complex types found in the Event Hub .avro files). Any reference to Drill in the article there we should include something about converting to JSON first using the Avro tools .jar, which does seem to work.


Develop stream 2024-10-29

Remove HIP-CPU support
Move ROCPRIM_DETAIL_HIP_SYNC_AND_RETURN_ON_ERROR to a separate header file
Add adjacent_find implementation and config tuning
Fix data generation for int128 and custom types in tests
Add find_end implementation
Add search implementation
Use std::chrono::steady_clock instead of std::chrono::high_resolution_clock in debug_synchronous calls
Add deprecation warnings for C++14 and set c++17 as default
Optimize partial_sort making use of radix sort
Improve histogram documentation addressing Channels and ActiveChannels restrictions
Update batch_memcpy tests to not hardcode the random seed
Add new variant of device select, predicated_flag, along with tests, benchmarks and config tuning
Add config tuning and dynamic dispatch for device merge
Add search_n implementation

It looks like the gfx942 test failure for RocprimDeviceRadixSort.SortKeysLargeSizes is due to a hard memory limit of 96 GB that's now being enforced on our CI test systems. If a process calls hipMalloc requesting more memory than the limit, it gets terminated (instead of hipMalloc just returning hipErrorOutOfMemory, as the HIP_CHECK_MEMORY macro expects). It looks like SortKeysLargeSizes requests up to ~127 GB at the largest data size. I've confirmed that the test failure does not occur when the memory limit is removed, so I don't think we need to worry about this failure.

Thanks for finding this Wayne.  Is CI willing to up the limit?  If not then we're going to fail every time, in which case, we should either modify the test to allocate less than 96GB.

@Beanavil @Naraenda Please implement a quick workaround to not run the 96GB test case (any of @umfranzw's suggestions seem fine, or whatever you deem appropriate) by Tuesday morning (North America time).  Then we can fire off another CI run first thing.

Also rebased the branch onto develop to solve the conflicts after the merge of https://github.com/ROCm/rocPRIM/pull/636

@umfranzw Hi, I'm still around so I can reduce the max size rn if that's better.

Regarding the test failures, we have tried to build and run the tests on a gfx942 machine and we still see the tests failing. This happens when compiling with ROCm 6.2.2 so it really looks like some gfx942-specific issue. We have not been able to debug further yet though


[SPARK-17008][SPARK-17009][SQL] Normalization and isolation in SQLQueryTestSuite.

What changes were proposed in this pull request?
This patch enhances SQLQueryTestSuite in two ways:

SPARK-17009: Use a new SparkSession for each test case to provide stronger isolation (e.g. config changes in one test case does not impact another). That said, we do not currently isolate catalog changes.
SPARK-17008: Normalize query output using sorting, inspired by HiveComparisonTest.

I also ported a few new test cases over from SQLQuerySuite.
How was this patch tested?
This is a test harness update.

@cloud-fan an update here.
There is another one I want to do to improve exception handling for negative cases that I will do in a separate pull request when I port some other tests.

Test build #63572 has started for PR 14590 at commit e061820.

Test build #63572 has finished for PR 14590 at commit e061820.

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

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

Merged build finished. Test FAILed.

Test build #3216 has started for PR 14590 at commit e061820.

The failed Python test is unrelated. I'm going to merge this in master. Thanks.

Test build #3216 has finished for PR 14590 at commit e061820.

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

backport to 2.0!


md-suffix and md-prefix are shrunk

Bug, feature request, or proposal:
The following code:
        <md-input-container>
            <input mdInput placeholder="Weight" value="42" md-suffix="kg">
        </md-input-container>

What is the expected behavior?
I expected something like this

What is the current behavior?
Yet the whole md-input entry is shrunk

What are the steps to reproduce?
try it here: http://plnkr.co/edit/GpkWUYBtdEYxw6ESoneu?p=preview
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Chrome 58, MacOS 10.12

hmmm.. it looks like the input is added to the mat-input-prefix instead of the mat-input-infix?

Shouldn't you have put the mdsuffix in another element? Like this:
<md-input-container>
            <input mdInput placeholder="Weight" value="42">
            <span mdSuffix>kg</span>
</md-input-container>

I think you are right, I misunderstood the usage. Thank you


[BUG] Parametrization incompatibility with falcon ASGI apps

Checklist

[x] I checked the FAQ section of the documentation
[x] I looked for similar issues in the issue tracker
[x] I am using the latest version of Schemathesis

Describe the bug
We've recently upgraded from schemathesis 3.19.5, and our tests that involve parametrized schemas from pytest fixtures have begun to hang indefinitely when using case.call_asgi. I noticed that the call_asgi method was just recently deprecated, so I switched the tests to use just case.call instead, and they no longer hang but instead error out due to calling run_wsgi_app with an ASGI app. The issue is present for both OpenAPI and GraphQL schemas.
Digging in to the issue a little bit, I discovered that these issues only present themselves when using falcon as the ASGI framework. When using FastAPI instead, for example, everything works just fine. I've been unable to dig any further and determine whether this is a bug in falcon, so my apologies if this is not the right venue for this bug, but it seems to have something to do with the way the starlette testclient interacts with the falcon app. Specifically, the hanging seems to occur in the testclient's __exit__ method, where it's waiting for everything to shutdown.
To Reproduce
The following test code should demonstrate both the failing test with the new case.call method, and the hanging test with the old case.call_asgi method. In addition, there are tests using the exact same code/schema via a fastapi app that will pass:
import falcon.asgi
import fastapi
import pytest
import schemathesis

async def get_schema():
    schema = {
        "openapi": "3.0.2",
        "info": {"description": ""},
        "paths": {
            "/info": {
                "get": {
                    "summary": "",
                    "parameters": [],
                    "responses": {
                        "200": {"description": ""}
                    },
                },
            },
        },
    }

    return schema

@pytest.fixture
def falcon_app_schema():
    class InfoResource:
        async def on_get(self, req, resp):
            resp.media = await get_schema()

    falcon_app = falcon.asgi.App()
    falcon_app.add_route("/info", InfoResource())
    return schemathesis.from_asgi("/info", falcon_app)

@pytest.fixture
def fastapi_app_schema():
    fastapi_app = fastapi.FastAPI()
    fastapi_app.get("/info")(get_schema)
    return schemathesis.from_asgi("/info", fastapi_app)

fastapi_schema = schemathesis.from_pytest_fixture("fastapi_app_schema")
falcon_schema = schemathesis.from_pytest_fixture("falcon_app_schema")

@fastapi_schema.parametrize()
def test_fastapi_call(case):
    response = case.call()
    case.validate_response(response)

@fastapi_schema.parametrize()
def test_fastapi_call_asgi(case):
    response = case.call_asgi()
    case.validate_response(response)

@falcon_schema.parametrize()
def test_falcon_call(case):
    response = case.call()
    case.validate_response(response)

@falcon_schema.parametrize()
def test_falcon_call_asgi(case):
    response = case.call_asgi()
    case.validate_response(response)

Please include a minimal API schema causing this issue:
{'openapi': '3.0.2', 'info': {'description': ''}, 'paths': {'/info': {'get': {'summary': '', 'parameters': [], 'responses': {'200': {'description': ''}}}}}}

Expected behavior
The result of the above tests should be independent of the ASGI framework used.
Environment
- OS: Linux
- Python version: 3.9.15
- Schemathesis version: 3.27.0
- Spec version: Open API 3.0.2

Additional context
Here are the versions of the libraries directly involved with running the tests that I've been using to reproduce the issue:
falcon                    3.1.3
fastapi                   0.110.1
pytest                    8.1.1
pytest-subtests           0.7.0
schemathesis              3.27.0

Thank you so much for reporting this! I’ll take a look at it soon

I think the issue is that Schemathesis relies on starlette too much when working with ASGI :/ it should be more generic

@BrandonWiebe
#2150 will solve the detection issue, then I am going to adjust the test client so it sends the ASGI spec version to the app. As far as I can see, the ASGI spec defaults to 2.0, but Falcon only supports 3.0 and errors on startup in such cases. Sending the right metadata solves the issue - I'll solve it in starlette-testclient and then will update the dependency here in Schemathesis. Expect the fixes in 3.27.1 likely today / tomorrow

Confirming that 3.27.1 has resolved this for me. Thanks a bunch, this is much appreciated!

Awesome! Feel free to reach out in case of any other issues! :)


feat(snownet): timeout connections without a handshake after 20 seconds

It was discovered by @conectado that this timeout needs to be longer than 10 seconds.

@conectado I am still surprised that at any point we need longer than 10 seconds to complete the signaling protocol handshake. 10 already seems like an absurdly long time so I am somewhat hesitant to merge this.

tune it later?

100%!
The main reason this exists is to avoid memory leaks if for whatever reason we keep establishing connections and they never work. I thought 10s was already so long that all connections would finish before that.


Add generateDecodedMap and expose SourceMap class

@Rich-Harris see https://github.com/rollup/rollup/issues/2061 for motivation behind this change. It will make Rollup source map generation almost 2x faster.

Add MagicString/MagicStringBundle generateDecodedMap method, which returns a JSON representation of a source map (with array-form mappings).
Expose SourceMap class that accepts this form and creates a spec-compliant source map object.
Add corresponding TypeScript types.

P.S. Feel free to add me as a collaborator — I can triage some open issues/PRs.

🔥 you're on fire 🔥 updated the README and released 0.23.2. thanks! adding you as collab now

Awesome! This was one of the biggest performance issues in rollup. Thanks for your work, @mourner


test: add an option to output timing information from tests.

[ ] documentation is added or updated
[x] tests are added or updated

Merged.


[LIVE-10062] Bugfix: Add gasLimit error in Send flows

📝 Description
This PR improves the basic Send flow of LLM & LLD by displaying the gasLimit error (which means the transaction simulation failed and that the transaction will very probably fail at broadcast but people can be stubborn 🤷♂) and forcing users to set manually their customGasLimit before continuing.
https://github.com/LedgerHQ/ledger-live/assets/44363395/965e4b5e-1e16-4003-9f8a-c70a0bb4df88
https://github.com/LedgerHQ/ledger-live/assets/44363395/1b59c59a-f17e-45e5-818a-81bee1c400aa
❓ Context

JIRA or GitHub link: https://ledgerhq.atlassian.net/browse/LIVE-10062

✅ Checklist
Pull Requests must pass the CI and be code reviewed. Set as Draft if the PR is not ready.

[x] npx changeset was attached.
[x] Covered by automatic tests.
[ ] Impact of the changes:

...

🧐 Checklist for the PR Reviewers

[ ] The code aligns with the requirements described in the linked JIRA or GitHub issue.
[ ] The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
[ ] There are no undocumented trade-offs, technical debt, or maintainability issues.
[ ] The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
[ ] Any new dependencies have been justified and documented.
[ ] Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

Did this go through product/design team? I am not sure we want this repetition of information.
(i also know there are ongoing work of improving the errors display on hub side – not exactly on the same area but worth noticing. cc @KVNLS @mle-gall )

Did this go through product/design team? I am not sure we want this repetition of information. (i also know there are ongoing work of improving the errors display on hub side – not exactly on the same area but worth noticing. cc @KVNLS @mle-gall )

This repetition is here just because we're in the "advanced" mode and each input has its own "error" possible to display there. The "big" alert is here now no matter what the mode is. Before we had no error displayed (because transaction is never a key of the errors object from getTransactionStauts, so I don't know what we were tracking before here)
Tbh, I think this is clearly an improvement compared to what it was before, and it can be improved later on by whoever wants to work on the design of this thing.

@gre @KVNLS Sorry guys, I'm not going to spend more time on this. If you don't think it fits our quality standards, feel free to close the PR or to commit any change you feel necessary.


src/role/worker_functions.py: get_nodes(bbox, configuration)

Hello,
The function get_node gives me errors when len(walker.streets) = 0.
May be it try to evaluate "configuration.follow_streets" but since configuration changes, shouldn't it be configuration.DETECTION.followstreets ?
The ouput when error
Traceback (most recent call last):
File "main.py", line 138, in
main_func()
File "main.py", line 134, in main_func
args.func(args, configuration)
File "main.py", line 21, in manager
manage.run()
File "xxxxxxx/OSMDeepOD/OSMDeepOD/src/role/manager.py", line 26, in run
worker_functions.standalone(bboxes=self.small_bboxes, configuration=self.configuration)
File "xxxxxxx/OSMDeepOD/OSMDeepOD/src/role/worker_functions.py", line 55, in standalone
nodes += get_nodes(bbox, configuration)
File "xxxxxxx/OSMDeepOD/OSMDeepOD/src/role/worker_functions.py", line 21, in get_nodes
if len(walker.streets) > 0 or not configuration.follow_streets:
AttributeError: 'Configuration' object has no attribute 'follow_streets'

@tufftuff93 thanks for the issue notification, you are right.
I fixed it and it's now in the master branch (had this issue with follow_streets more than once)


Add basic setup for regression testing Metal output.

This PR sets up the basic system for how we can have regression tests for Metal as well.
While shaders we test specifically are found in shaders-msl, we would ideally reuse the same shaders to test Metal as well.

@billhollings This should be a decent starting point. Would it be possible for you to contribute test shaders which are relevant for Metal output?

Merging this to unblock other PRs.


global: jinja2hacks are causing troubles on Python 2.7.9

see for example https://travis-ci.org/inveniosoftware/invenio/builds/53365855
Workaround
Disable invenio.ext.jinja2hacks in EXTENSIONS.
--
cc @hachreak

I have the same problem but doesn't seem to be solely related to jinja2hacks:
https://travis-ci.org/zenodo/zenodo#L6092
Could be the encoding of one specific file that causes the problem as described on https://github.com/mitsuhiko/markupsafe/issues/19

file -bi invenio/base/templates/page_base.html
text/html; charset=us-ascii

page_base.html loads stuff from _macros.html that contains UTF-8 character "×" in the data dismiss alert.
You can perhaps try to replace it with regular ASCII "x" too see whether it helps?
P.S. Note also that elsewhere we do stuff with this character, such as replacing it in widgets...
$ git grep -Hni × invenio
invenio/base/templates/_macros.html:25:        ×
invenio/modules/accounts/static/js/accounts/widgets.js:108:                        title = widget.find("h4").text().replace("×", " ").trim()
invenio/modules/comments/templates/comments/add_base.html:60:      ×
invenio/modules/comments/templates/comments/add_review_base.html:53:      ×
invenio/modules/communities/templates/communities/new_base.html:32:        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
invenio/modules/previewer/templates/previewer/bottom_base.html:27:    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
invenio/modules/search/static/js/search/facet.js:357:    close: $('', {'class': 'close', html:' ×'}),
invenio/modules/workflows/templates/workflows/details_base.html:282:×
[...]

$ find invenio -name \*.html | xargs pcregrep "[\x80-\xFF]"
invenio/modules/annotations/templates/annotations/notes_fragment_base.html:                ¶
invenio/modules/comments/templates/comments/comments_base.html:              ¶
invenio/modules/comments/templates/comments/reviews_base.html:      ¶
invenio/modules/communities/templates/communities/index_base.html:              «
invenio/modules/communities/templates/communities/index_base.html:              »
invenio/modules/previewer/templates/previewer/pdf_base.html:                <button class="btn btn-default" id="frst-page">«</button>
invenio/modules/previewer/templates/previewer/pdf_base.html:                <button class="btn btn-default" id="prev-page">‹</button>
invenio/modules/previewer/templates/previewer/pdf_base.html:                <button class="btn btn-default" id="next-page">›</button>
invenio/modules/previewer/templates/previewer/pdf_base.html:                <button class="btn btn-default" id="last-page">»</button>
invenio/modules/previewer/templates/previewer/pdfjs_base.html:            <button id="documentProperties" class="secondaryToolbarButton documentProperties" title="Document Properties…" tabindex="28" data-l10n-id="document_properties">
invenio/modules/previewer/templates/previewer/pdfjs_base.html:              Document Properties…
invenio/modules/search/templates/search/results_base.html:      «
invenio/modules/search/templates/search/results_base.html:      »
invenio/modules/search/templates/search/search_base.html:              {{ _('Filtering') }} …

Some of these characters should be changed to the htmlentity, like × for the x and « and » for the « and » respectively.
Easy lookup: http://entity-lookup.leftlogic.com/

I opened the row where the error is generated
def __new__(cls, base=u'', encoding=None, errors='strict'):
  if hasattr(base, '__html__'):
    base = base.__html__()
  if encoding is None:
    return text_type.__new__(cls, base)
  return text_type.__new__(cls, base, encoding, errors)

If you open the definition of text_type: it makes an assumption depending of python version (2 or 3).
Maybe now this assumption is not more true...? :P
if not PY2:
  text_type = str
else:
  text_type = unicode

Error:
TypeError: object.__new__(Markup) is not safe, use unicode.__new__()

I discovered how reproduce the error:

install a new fresh environment with invenio devscripts or remove /home/vagrant/.virtualenvs/invenio2/src/invenio/.eggs/ directory.
run python setup.py test

Note: the second time you run tests, the error magically disappear!
I was inspired by this issue: https://bugs.launchpad.net/pbr/+bug/1384919
And I found that if you previously install unittest2, the error disappear.


[WIP] Limit orders

Closing for new clean branch: https://github.com/penumbra-zone/dex-explorer/pull/181


Naming restrictions

We need naming restrictions for scheme/flavor/implementation/paramset/benchmarks, since we want to use _ as separator in file names.
I would suggest [a-zA-Z0-9-]+.

I agree

This is fixed, isn't it?

Indeed


Blank number of cases when hovering over a bead

When hovering over a bead in the beadplot, the number of cases is blank

https://github.com/PoonLab/covizu/blob/e444b881182bd188c1a22b2a7d01f00907038709/js/beadplot.js#L502-L505
my_regions is empty:
https://github.com/PoonLab/covizu/blob/e444b881182bd188c1a22b2a7d01f00907038709/js/beadplot.js#L938-L954


Issue removing ssl cert from application with spaces in common name

From @deis-admin on January 19, 2017 23:43
From @msull92 on September 15, 2015 18:14
I am having an issue removing an ssl certificate from an application where the certificate's common name has spaces in it. Is there a way to manually remove this using etcdctl?
Copied from original issue: deis/deis#4487
Copied from original issue: deis/controller#1225

From @deis-admin on January 19, 2017 23:43
From @msull92 on September 16, 2015 14:57
I would love to do that, but it's not even showing up in etcdctl, see below:

Yet it still shows up with the client call.

From @deis-admin on January 19, 2017 23:43
From @benwilber on September 16, 2015 0:35
@msull92 can you try replacing the spaces with %20
edit:
with etcdctl you should be able to remove /deis/certs/<common name>/cert and /deis/certs/<common name>/key
replace spaces in <common name> with %20.
This is definitely a bug that deis controller doesn't url escape keys (even though etcd itself does.)  deis controller itself can't write url-escaped keys because then they'll be double-escaped by etcd.

From @deis-admin on January 19, 2017 23:43
From @carmstrong on September 16, 2015 15:9
@msull92 It looks like the certificate has been cleared from etcd (and thus shouldn't be served any longer by the router), but is still there in our database.
Do you see an error when you try to delete it? If you could also paste the logs from the controller component when you try to delete the certificate, that'd be helpful. Thanks!

From @deis-admin on January 19, 2017 23:43
From @msull92 on September 16, 2015 14:57
@benwilber forgot to tag you

From @deis-admin on January 19, 2017 23:43
From @msull92 on September 16, 2015 15:44
@carmstrong
This causes the log below.

From @deis-admin on January 19, 2017 23:43
From @msull92 on October 21, 2015 5:9
This has since caused an issue with restarting the controller because it tries to load in the certs from the database into etcd and fails because that cert causes an error. So others can find this later I will attach the stack trace.
Traceback (most recent call last):
 File "./manage.py", line 13, in <module>
   execute_from_command_line(sys.argv)
 File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
   utility.execute()
 File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
   self.fetch_command(subcommand).run_from_argv(self.argv)
 File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
   self.execute(*args, **options.__dict__)
 File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
   output = self.handle(*args, **options)
 File "/app/api/management/commands/load_db_state_to_etcd.py", line 15, in handle
   obj.save()
 File "/app/api/models.py", line 1049, in save
   return super(Certificate, self).save(*args, **kwargs)
 File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 545, in save
   force_update=force_update, update_fields=update_fields)
 File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 582, in save_base
   update_fields=update_fields, raw=raw, using=using)
 File "/usr/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 185, in send
   response = receiver(signal=self, sender=sender, **named)
 File "/app/api/models.py", line 1166, in _etcd_publish_cert
   _etcd_client.write('/deis/certs/{}/cert'.format(cert), cert.certificate)
 File "/usr/lib/python2.7/site-packages/etcd/client.py", line 269, in write
   response = self.api_execute(path, method, params=params)
 File "/usr/lib/python2.7/site-packages/etcd/client.py", line 582, in api_execute
   return self._handle_server_response(response)
 File "/usr/lib/python2.7/site-packages/etcd/client.py", line 600, in _handle_server_response
   raise etcd.EtcdException(resp)
etcd.EtcdException

To fix this, log into the database and remove the offending cert from the api_certificate table.
Note: Not sure if it will matter, but just for completeness; I am running a stateless platform on AWS. v1.11.1


Refactor the TAC Ontology to remove the cti namespace.

The cti namespace does not add value to the TAC Ontology.  The CTI-TC created the STIX specification, not the CTI specification.
This issue was the core of issue #13. Instead of making stixCore properties sub-properties of the cti properties, the solution to disambiguate the redundancy is to only represent the concepts in the stixCore namespace.

Class hierarchy does not look as intimidating as I had imagined.

In early review, the cti:ExternalReference is a class that has dataproperties and object properties that need to be examined further.

The most direct approach to refactoring the ontology to remove the cti namespace is to not use the Protégé editor, but instead use a text editor such as NotePad++. Basically, there are two files that contain the cti concepts. These will have to be expressed in the stixCore file.

I'm reviewing the purpose of each of the existing namespaces. If the purpose is unknown, we need to question its existence.
Three namespace of immediate interest are:

cti
stix
stixCore

These namespaces exist to capture that basic knowledge of the STIX specification. They are imported into the stix-spec.owl file (the STIX Specification ontology).  My question is, why not only have only ONE namespace? What is the purpose of having three separate namespaces?
For the sake of the users, keeping the namespaces to a minimum is best. This is because it reduces the errors caused by selection of the wrong namespace when creating a NamedIndividual for a knowledgegraph.

I am going to proceed using the following assumption:
If the concept (Class or Property) is represented in the STIX 2.1 Specification it should be in the "stix" namespace.

The STIX 2.1 Specification defined Meta Objects.

Each of the "Meta Objects" have been defined in the cti namespace, but only the Language Content was subclassed as a SMO.
Extension Definition and Marking need to be handled correctly.

Significant restructuring today....  the TAC Ontology is MUCH better organized now.


Indentation example incomplete

Hi, thanks for the python example, it helped me a lot. However, the grammar does not yet handle indentation right. Two things are missing and I am not sure how to implement them:

For Python (and other languages that use multi-level indentation) we need to be able to add several Dedents at once. In ANTLR4 we can use emit(Token token) to do that. But I don't see how I can do this with custom tokens patterns in chevrotain.

Emitting remaining Dedents at EOF (currently you need a newline at the end). I saw that there is an EOF VirtualToken, but I need an example how to use it. Once again this is how I would do it being used to ANTLR4, but maybe it makes more sense to handle this in the Dedent custom token pattern as well?

Right, good points.
Both these issues basically boil down to creating multiple custom tokens when a certain condition is met. While this can be done using the current architecture it is a bit less idiomatic in Chevrotain
than using emitToken in Antlr. Because a custom Token matcher is expected to match only a single Token.
So there are two options when detecting multiple Outdents must be created.

Either push tokens directly to the matchedTokens argument. This argument is the same array instance of the lexer's result tokens property. - This solution is a bit weird (modifying an argument) but pretty simple.

Use and compute some flag to indicate how many Outdents must be created, then after the first Outdent with the actual real whitespace content is created, keep pushing single Outdent with zero length string property every time matchOutdent is invoked until enough have been pushed.

This solution is more consistent with one Token to one Custom matcher invocation of Chevrotain but could be harder to follow due to additional state.

For the remaining Outdents at EOF I would use a different solution.
EOF is a virtual token that never actually gets tokenized. So there is no way to trigger some
custom action after it has been identified. However after the Tokenizing has ended and before the parsing has started the number of missing Outdents should still be known.
and nobody has yet (parser) tried to consume them.
So these Outdent tokens can just be appended to the tokens vector.
let lexResult = customPatternLexer.tokenize(text)
let missingOutdentsNum = identStack.length -1
for (let i=0; i< missingOutdentsNum; i++) {
    lexResult.tokens.push(new Outdent(...))
}

I'll try to upgrade the example (probably sometime next week).
But i'll also happily accept pull requests that improve it. 😄

Thanks for the quick reply! I will try to improve the example according to
your tips over the weekend.
On Fri, Feb 10, 2017 at 5:56 PM, Shahar Soel<EMAIL_ADDRESS>wrote:

I'll try to upgrade the example (probably sometime next week).
But i'll also happily accept pull requests that improve it. 😄
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SAP/chevrotain/issues/366#issuecomment-278998903, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADH7vQqAr34w58ChHgIFk6FSADl0lUQmks5rbJbSgaJpZM4L9Ure
.


Distributed builds

the result should be transformed to Annoy binary

Strategy

builds several forests on each partition
searches on these forests

Finally, we take the following strategy

builds a parent tree using sampled data on Spark Master
all data are grouped by the leaf node of parent tree on Spark Nodes
builds subtree using the grouped data on each Spark Nodes
aggregate all nodes of subtree to parent tree on Spark Master


feat: add linting for gamut imports

Overview

added a new linting rule to enforce proper path declarations for gamut dependencies

PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: ABC-123
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

Testing

Checkout jg-ss-gamut-linting
Run yarn lint and ensure everything looks good
Add /src to an import statement, rerun yarn lint, and make sure you get the correct error
Run yarn lint --fix and ensure that the import statement gets fixed properly

📬Published Alpha Packages:@codecademy/gamut-labs@10.0.12-alpha.3414f4.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://602fda4f6be83036e89d9cb7--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-labs@10.1.1-alpha.ddd99f.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://602fdc39c0150b3d4f29c713--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-labs@10.1.1-alpha.a70503.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://602fdea3101e66455ee326a4--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-labs@10.1.11-alpha.7e7136.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6037af6b55b0191d61698b1b--gamut-preview.netlify.appDeploy Logs


Fixed asserting an object implements an interface with required field arguments

Updated assert(object:implementsInterface:schema:) to work like canonical js when validating that additional field arguments must not be required.
Before, the assertion:

would fail if an object's field had a required argument, even when it matched a required argument from the interface.

Now, the assertion:

will succeed when the object's field has required arguments matching the interface
will succeed when the object's field has additional arguments not found in the interfaces, so long as the arguments are nullable or have default values.

@paulofaria No worries, I've rebased the branch onto master.

Thanks!


Neo IO docs mention NeoHDF5 but it's not in the IO list

Which page is the problem on?
https://neo.readthedocs.io/en/stable/io.html#preamble

for reading/writing Neo structure in neutral formats (HDF5, .mat, …) but with Neo structure inside (NeoHDF5, NeoMatlab, …)

What is the problem?
This NeoHDF5 format is nowhere to be found. I'd like to write results in Neo's HDF5 format but I can't find it in the list below.
Suggestions for fixing the problem
If it still exists, update the name, or suggest an alternative.

I found NixIO format in the new documentation  that suits my needs :)

@Helveg Thanks for reporting this. We should make sure to remove the reference to the hdf5io the new documentation #1178


chore: release 1.0.0

:robot: I have created a release beep boop
1.0.0 (2024-11-29)
Features

allow any object pass to error method (1282d86)
create iterable from event (6165a59)
create iterable from NodeJS readable stream (bdf5246)
create iterable from web stream reader (5b4209c)
export all factory functions (7019b05)
implement AsyncIteratorController for a manually controlled async iterator (0c1fd1f)
iterate an array asynchronously by interval (1616845)

Bug Fixes

consume before complete can cause an infinite iterator (ed14d67)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.0.0
:sunflower:


Bold links are fixed by removing special symbols

What this PR does / why we need it:
This PR fixes the issue with bolding autolinks. It is done by removing special symbols from the postfix of the autolink based on this documentation
Which issue(s) this PR fixes:
Fixes #217
Special notes for your reviewer:
@Kristian-ZH
Release note:

None

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

Thank you for the review,
I've made the changes you have recommended in the review:

added ? and ! in the punctuation check
changed the for loop as recommended


Update LuaGlobals.yaml

Fixed a typo related to how 0 was formatted
Changes
Fixed a typo in the docs affecting formatting.
Checks
By submitting your pull request for review, you agree to the following:

[x] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses.
[x] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses.
[x] To the best of my knowledge, all proposed changes are accurate.

FYI: This is the same PR as #287 which is waiting for the contributor agreements to be checked off before merging.


rouge1 fails on Sentence class if Document has only 1 sentences

It seems that default value for precision=0 and recall=0 is f1=0 by definition (check sklearn).


chore: decisions- engineering

this is to document our decision making in regards to technical reasoning.
acceptance criteria

the languages and frameworks we'll be using and why
best practices or guides to include
any info for users picking this up without any background with chosen technologies

I think we should use something like this https://github.com/joelparkerhenderson/architecture_decision_record/blob/master/adr_template_by_michael_nygard.md to document our decisions. Thoughts on a folder with markdown files or should it be nested in the wiki?

Based on discussion in #90 lets try using GH wiki to keep this info.

ADR draft here https://github.com/deptofdefense/dds.mil/wiki/ADR:-Migration-to-Gatsby


personalizationIndex error

Issue Summary
When trying to add a personalisation before sending any emails ('addTo'), I receive the below error regarding personalizationIndex.
Code Snippet
foreach ($users as $user_chunk) {
    $email = new \SendGrid\Mail\Mail();
    $sendgrid = new \SendGrid('APIKEY');
<EMAIL_ADDRESS>'From Name');
    $email->setTemplateId('TEMPLATEID');
    foreach ($user_chunk as $user) {
        $email->addTo(
            $user['user_email'],
            $user['user_email'],
            $substitutions,
            $i
        );
        $i++;
    }
    try {
        $response = $sendgrid->send($email);
    } catch (Exception $e) {
        die();
    }
}

Exception/Log
personalizationIndex 1 must be less than 1

Technical details:

sendgrid-php version: 7.5.0
php version: 7.4.5

I think outdated code and changed behavior is the cause of this issue.
In 7.5.0, when you construct Mail without arguments, only one Personalization at index 0 is available. If $i >0, it will report an error if you don't create additional Personalization instances.
I suggest to change the following parts:
Replace
$email = new \SendGrid\Mail\Mail();
[...]
<EMAIL_ADDRESS>'From Name');

by
$from = new<EMAIL_ADDRESS>'From Name');
$email = new \SendGrid\Mail\Mail($from);

This will prevent creation of empty Personalization.
Replace inner foreach loop by next lines - it will create a Personalization instance per $user:
foreach ($user_chunk as $user) {
    $address = new To($user['user_email'], $user['user_email'], $substitutions);
    $personalization = new Personalization();
    $personalization->addTo($address);
    $email->addPersonalization($personalization);
}

Correct. I don't agree with the complexity here, but that's how it was built and many customers are currently using it as such. I'm open to reworking the backing implementation, but it will most likely be breaking for some users.

Currently, providing the personalizationIndex requires knowledge of existing indices of Personalization instances because these are used internally. This can be done by:

getPersonalizations(), be careful, this method can also return NULL instead of empty array (must be fixed)
getPersonalizationCount(), assuming existing range [0...(result count-1)].

In the original code sample, $i hasn't been defined, assuming $i to be 0. It fails on >0.
In my code sample, $i=0 isn't created yet (due to the way I construct Mail), so index 0 will fail.
Possible fix for original code sample may be permitting unknown/invalid personalizationIndex which indicates a new/different Personalization to create (or reuse if requested again). Provided index must be mapped to real index in personalization member. (I can work out a PR to indicate effects.)

@kampalex That works for me. Basically if the index is equal to the size of the array, create a new personalization and add it to the end. I can review the changes if you can submit.

Before submitting the PR, I have to create a few test assertions for Personalization handling which covers the optional usage of personalizationIndex and personalization arguments used in functions:
addRecipientEmail
addRecipientEmails
setSubject
addHeader
addSubstitution
addCustomArg
setSendAt
I was struggling and chose to create a variant which give users more control to use their own personalizationIndex. It supports current usage (like submitter of this issue has) but makes the internal handling more complicated.

According to the docs, a Personalization must have at least a To, so when using addTo for nonexistent personalizationIndex, it makes sense to create a Personalization instance using personalizationIndex.
If providing a Personalization using occupied personalizationIndex, properties may or must be merged. It will replace the existing Personalization.
Except for using addTo(s) (or addRecipientEmail(s)), other functions must reject unknown personalizationIndex.

Bonus: I've implemented the Personalization limit of 1000 entries.


Error

Hi I am getting this error can u help me solve it.
Run git config user.name github-actions
[main 65d4775] generated
10 files changed, 10 insertions(+)
create mode 100644 profile-3d-contrib/profile-gitblock.svg
create mode 100644 profile-3d-contrib/profile-green-animate.svg
create mode 100644 profile-3d-contrib/profile-green.svg
create mode 100644 profile-3d-contrib/profile-night-green.svg
create mode 100644 profile-3d-contrib/profile-night-rainbow.svg
create mode 100644 profile-3d-contrib/profile-night-view.svg
create mode 100644 profile-3d-contrib/profile-season-animate.svg
create mode 100644 profile-3d-contrib/profile-season.svg
create mode 100644 profile-3d-contrib/profile-south-season-animate.svg
create mode 100644 profile-3d-contrib/profile-south-season.svg
remote: Permission to XGavinp/XGavinp.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/XGavinp/XGavinp/': The requested URL returned error: 403
Error: Process completed with exit code 128.

Can u pls help me solve this error

#51
This will help you.

Hi,
Thank u so much. It worked.

Hi want it to count my private repo changes also. How do i do that?


reduer.case should mutate reducer

Currently reducers are effectively immutable, with reducer.case returning an a new reducer object
This means that to build up my reducer object I must either:
build up a list of named reducer functions and combine them later:
export const GetMeetupListRequest = actionCreator('GET_MEETUP_LIST_REQUEST');
const GetMeetupListResponse = actionCreator<MeetupListPayload | Error>('GET_MEETUP_LIST_RESPONSE');
function getMeetupListRequestReducer(state: MeetupsState): MeetupsState {
    return {...state} //etc...
}
function getMeetupListResponseReducer(state: MeetupsState, payload: MeetupListPayload | Error): MeetupsState {
    return {...state} //etc...
}

// and then later...

export const meetupReducer = reducerWithInitialState(initialState)
    .case(CreateMeetupRequest, createMeetupRequestReducer)
    .case(CreateMeetupResponse, createMeetupResponseReducer)
    .case(GetMeetupListRequest, getMeetupListRequestReducer)
    .case(GetMeetupListResponse, getMeetupListResponseReducer)
    .case(SetFilterString, setFilterStringReducer);

This becomes annoying because I end up with a number of variables with almost the same name.
If .case mutated the reducer object, then instead I could inline the reducer definitions adjacent to the Action definitions - which is how we typically think about our actions / reducers anyway:
export const meetupReducer = reducerWithInitialState(initialState);

// Create new meetup
export const CreateMeetupRequest = actionCreator<MeetupDetailsPayload>('CREATE_MEETUP_REQUEST');
const CreateMeetupResponse = actionCreator<MeetupDetailsPayload | Error>('CREATE_MEETUP_RESPONSE');
meetupReducer.case(CreateMeetupRequest, (state: MeetupsState) => {
    return {...state} //etc...
});
meetupReducer.case(CreateMeetupResponse, (state: MeetupsState, payload: MeetupDetailsPayload | Error) => {
    return {...state} //etc...
});

I may be missing the use case where you want your reducers to be immutable, but I haven't encountered the need yet.
Again, if you agree with the approach I'm happy to submit a PR.

Hi again!
This makes a lot of sense to me- your sample code is indeed cleaner.
I think some users would prefer not to export mutable reducers under the reasoning that they could get confusing errors if somebody imported the reducer and added additional cases to it. If we were to make the reducers mutable, I would want to also be able to think of it as a builder and have a "build" method which returns a plain, immutable function, e.g. write code like

👍 I think the build() approach makes sense

Change is added to v0.4.0.


There is a problem with the ability to move layers up and down on the artboard

The buttons on the selection interface for moving layers hardly take effect.
In addition, it is recommended that the author add the following two functions: 1. One is the undo function with a limited number of steps. Because artboards are prone to misuse, adding unwanted elements is especially evident, especially if you choose tools such as triangles and rectangles to quickly create graphics. 2. Add a canvas cropping feature. Because many users need to crop pictures, but most of the existing nodes do not have a very intuitive tool for cropping pictures, resulting in very low efficiency in cropping pictures

By default, the option is “Bring Up Always”, so that when selecting the object is always in the foreground, turn it off.  If I understood you correctly.  About other possibilities as soon as you get your hands on them :).

By default, the option is “Bring Up Always”, so that when selecting the object is always in the foreground, turn it off. I'll think about other possibilities :).
Thanks.


Do PhEDEx injection with PNN directly

Isn't this done now ?

Isn't this done now with the SE->PNN changes ?

There is one more bug found.
https://github.com/dmwm/WMCore/pull/6358
But I can close this one.


Reports in List should be bigger

As a lot of users are older it is important to have everything be readable. I think the reports in the report sheet are right about on the edge to be readable for me and I think some older users could struggle with this.

are you sure? it's the standard font size. same size as whatsapp for me. i think we can reasonable expect people to read that and adjust their font settings if not, which they may already have, as i don't think it's a particularly small font size?

@mclrc maybe it was just my perception as the web app font is quite big. But it is also fine for me if it stays the way it is. Just decide what you think is better.


[network] error on receiving a noise handshake payload in FN network

In a full node network, or as we call it currently a ServerOnly handshake mode,
we do not send a payload during the handshake.
(In the validator network we do, for anti-replay mitigation.)
Thus, we should check on the responder/server side that the payload was empty,
and return an error otherwise.

@bors-libra delegate+
land after fixing small nit : )

:v: @mimoo can now approve this pull request

@bors-libra r=phlip9

:pushpin: Commit d3f4884 has been approved by phlip9

:hourglass: Testing commit d3f48846fd569f28799a83278c4637c50d010116 with merge 0edf471e99e884b0ce787a5c4b4dc7298fa40969...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: phlip9
Pushing 0edf471e99e884b0ce787a5c4b4dc7298fa40969 to master...


Question: Does Calico OSS support calico networkpolicy logging, or is Calico Enterprise required?

It doesn't seem clear from the documentation whether networkpolicy logs (allow and deny) is supported by Calico OSS.
If it is, then it doesn't seem clear from the documentation how to configure it.
Thanks for your attention!

Hi @QWERTY92009 , if you're looking for basic iptables logging using the LOG action, here is an example of that: https://docs.projectcalico.org/archive/v3.19/security/calico-network-policy#generate-logs-for-specific-traffic
(For more detailed logging and other use cases there is our commercial offering.)

Thanks for your help, @lmm!


document update conflict when used repeatedly within async tests

Hi there,
Great project!
I am however encountering a problem while using pouchdb-server in a mocha test suite whereby using asynchronous tests yields document update conflict errors that only appear in stdout and are not anywhere else as far as I can tell.
I have boiled down the problem to this test case which has a synchronous version that works, and an asynchronous version which displays 409 errors on the console:
import PouchDB from 'pouchdb';
const app = require('express')();

let memdown = require('memdown');

let pouch, server, designdoc_rev, pouchdb_express;

const setup = done => {
  memdown.clearGlobalStore();

  const InMemPouchDB = require('pouchdb').defaults({ db: memdown });

  pouch = new InMemPouchDB('db');

  pouchdb_express = require('express-pouchdb')(InMemPouchDB);

  pouch.put(
    {
      _id: '_design/entities',
      language: 'javascript'
    },
    function(err, res) {
      designdoc_rev = res.rev;
      done();
    }
  );
};

const check = done => {
  pouch.remove('_design/entities', designdoc_rev, err => {
    if (err) return done(err);
    pouch.destroy(err => {
      if (err) return done(err);
      memdown.clearGlobalStore();
      server.close();
      done();
    });
  });
};

describe('inmem sync works', () => {
  beforeEach(done =>
    setup(() => {
      app.use('', pouchdb_express);
      server = app.listen(15984, done);
    })
  );

  afterEach(done => check(done));

  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  // no problem
});

describe('inmem async conflicts', () => {
  beforeEach(done =>
    setup(() => {
      app.use('', pouchdb_express);
      server = app.listen(15984, done);
    })
  );

  afterEach(done => check(done));

  const time = 0;

  it('go', done => {
    setTimeout(done, time);
  });
  it('go', done => {
    setTimeout(done, time);
  });
  // this gets shown in the console:
  //
  // { [conflict: Document update conflict]
  // status: 409,
  // name: 'conflict',
  // message: 'Document update conflict',
  // error: true,
  // id: 'db_db' }
  it('go', done => {
    setTimeout(done, time);
  });
  // and the same console error there.
});

I'm probably missing something with these global variables and the pouch and express teardowns or maybe mocha but I can't figure out what it is!
Help much appreciated!
Cheers,
Jun

I'm using the following versions
├──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>  └─┬<EMAIL_ADDRESS>    └──<EMAIL_ADDRESS>

Increasing the timeout makes for some fun times. It seem that in fact the stdout errors from the sync suite where somehow swallowed, and they all come out when increasing the time constant to say 100. Still don't get what's happening and I have a nagging feeling that it's my code :)

Some progress by doing a get remove query in the beforeEach hook, but there's still some weirdness with a 409 now in the sync part of the suite and related to db__users.
import PouchDB from 'pouchdb';
const app = require('express')();

let memdown = require('memdown');

let pouch, server, pouchdb_express;

const setup = done => {
  memdown.clearGlobalStore();

  const InMemPouchDB = require('pouchdb').defaults({ db: memdown });

  pouch = new InMemPouchDB('db');

  pouchdb_express = require('express-pouchdb')(InMemPouchDB);

  const put = cb =>
    pouch.put(
      {
        _id: '_design/entities',
        language: 'javascript'
      },
      function(err, res) {
        cb();
      }
    );

  pouch.get('_design/entities', (err, res) => {
    if (err) {
      put(done);
    } else {
      pouch.remove(res._id, res._rev, err => {
        put(done);
      });
    }
  });
};

const check = done => {
  // pouch.destroy(err => {
  // console.log('destroy.err', err);
  // if (err) return done(err);
  // memdown.clearGlobalStore();
  setImmediate(function() {
    server.close();
    done();
  });
  // });
};

describe('inmem sync works', () => {
  beforeEach(done =>
    setup(() => {
      app.use('', pouchdb_express);
      server = app.listen(15984, done);
    })
  );

  afterEach(done => check(done));

  it('go', () => {});
  it('go', () => {});
  // There is a document update conflict here now.
  //
  // { [conflict: Document update conflict]
  // status: 409,
  // name: 'conflict',
  // message: 'Document update conflict',
  // error: true,
  // id: 'db__users' }
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  it('go', () => {});
  // no problem
});

describe('inmem async conflicts', () => {
  beforeEach(done =>
    setup(() => {
      app.use('', pouchdb_express);
      server = app.listen(15984, done);
    })
  );

  afterEach(done => check(done));

  const time = 0;

  it('go', done => {
    setTimeout(done, time);
  });
  it('go', done => {
    setTimeout(done, time);
  });
  it('go', done => {
    setTimeout(done, time);
  });
  it('go', done => {
    setTimeout(done, time);
  });
  it('go', done => {
    setTimeout(done, time);
  });
  it('go', done => {
    setTimeout(done, time);
  });
  it('go', done => {
    setTimeout(done, time);
  });
  it('go', done => {
    setTimeout(done, time);
  });
});

I've tracked the error message. It's coming from this line in pouchdb-all-dbs which mentions istanbul and has a comment //shouldn't happen :)
@nolanlawson I'm running this within mocha (not with istanbul for this run).
I think this is related to destroying the db correctly, it seems that memdown.clearGlobalStore() is not enough. I've also tried with pouch.destroy() but still something is causing conflict, probably in combination with express-pouch. I'll investigate further with the debugger.

Ah, I think the difficulty troubleshooting this comes from the asynchronous creation of the database. I'll try to setup my code to listen to the created event.

Oh my, that's really confusing. Listening to the created event shows that if I pass already created databases to express-pouchdb then actually creates an all-db database and recreate the original ones.
This explains the comment in the pouchdb-all-dbs module for PouchDB.resetAllDbs([callback])

I just use it for the unit tests.

I'll try and follow that lead... Which there was some example doc for using pouch-server for unit -- more like integration tests I guess -- with proper teardown...


[Event Requests] report 292 "Copy Sales Document" - OnLookupSalesDocOnBeforeRunModal, OnLookupPostedInvoiceOnBeforeRunModal, OnLookupPostedCrMemoOnBeforeRunModal

Describe the request
Could you please add the following events?
    local procedure LookupSalesDoc()
    begin
        ....
        if (FromDocNo = '') and (SalesHeader."Sell-to Customer No." <> '') then
            if FromSalesHeader.SetCurrentKey("Document Type", "Sell-to Customer No.") then begin
                FromSalesHeader."Sell-to Customer No." := SalesHeader."Sell-to Customer No.";
                if FromSalesHeader.Find('=><') then;
            end;
        //+EVENT
        OnLookupSalesDocOnBeforeRunModal(FromSalesHeader, SalesHeader, FromDocType);
        //-EVENT
        if PAGE.RunModal(0, FromSalesHeader) = ACTION::LookupOK then
            FromDocNo := FromSalesHeader."No.";
    end;
    local procedure LookupPostedInvoice()
    begin
       ...
        FromSalesInvHeader.FilterGroup(2);
        FromSalesInvHeader.SetRange("Prepayment Invoice", false);
        FromSalesInvHeader.FilterGroup(0);
        //+EVENT
        OnLookupPostedInvoiceOnBeforeRunModal(FromSalesInvHeader, SalesHeader);
        //-EVENT
        if PAGE.RunModal(0, FromSalesInvHeader) = ACTION::LookupOK then
            FromDocNo := FromSalesInvHeader."No.";
    end;

    local procedure LookupPostedCrMemo()
    begin
       ...
        FromSalesCrMemoHeader.FilterGroup(2);
        FromSalesCrMemoHeader.SetRange("Prepayment Credit Memo", false);
        FromSalesCrMemoHeader.FilterGroup(0);
        //+EVENT
        OnLookupPostedCrMemoOnBeforeRunModal(FromSalesCrMemoHeader, SalesHeader);
        //-EVENT
        if PAGE.RunModal(0, FromSalesCrMemoHeader) = ACTION::LookupOK then
            FromDocNo := FromSalesCrMemoHeader."No.";
    end;

[IntegrationEvent(false, false)]
local procedure OnLookupSalesDocOnBeforeRunModal(var FromSalesHeader: Record "Sales Header"; var SalesHeader: Record "Sales Header"; FromDocType: Enum "Sales Document Type From")
begin
end;
[IntegrationEvent(false, false)]
local procedure OnLookupPostedInvoiceOnBeforeRunModal(var FromSalesInvHeader: Record "Sales Invoice Header"; var SalesHeader: Record "Sales Header")
begin
end;

[IntegrationEvent(false, false)]
local procedure OnLookupPostedCrMemoOnBeforeRunModal(var FromSalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesHeader: Record "Sales Header");
begin
end;

Additional context
We would like to add custom filters similiar to the ones for prepayment invoice.
We want to hide some documents from the user where they shouldn't copy from
Internal work item: AB#540594

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 21720.


Name all required Calico packages in upgrade instructions

I think we should say use yum update and review the list of packages that are going to be upgraded. If you don't want all these, then quit out and either list all the packages you want (e.g. all those from the calico repository - that apears in the output), or use   yum --disablerepo="*" --enablerepo="calico" update
Also need  'service neutron-server restart` at the end of the RHEL upgrade compute node section.

LGTM

@DaveLangridge this has passed checks now, so could be merged...

Merged. OK to delete branch?
From: Neil Jerram<EMAIL_ADDRESS>Sent: 10 February 2016 15:26
To: projectcalico/calico<EMAIL_ADDRESS>Cc: Dave Langridge<EMAIL_ADDRESS>Subject: Re: [calico] Name all required Calico packages in upgrade instructions (#977)
@DaveLangridgehttps://github.com/DaveLangridge this has passed checks now, so could be merged...
—
Reply to this email directly or view it on GitHubhttps://github.com/projectcalico/calico/pull/977#issuecomment-182424173.

Yes, fine to delete.
From: Dave Langridge<EMAIL_ADDRESS>Sent: 10 February 2016 15:30
To: projectcalico/calico<EMAIL_ADDRESS>Cc: Neil Jerram<EMAIL_ADDRESS>Subject: Re: [calico] Name all required Calico packages in upgrade instructions (#977)
Merged. OK to delete branch?
From: Neil Jerram<EMAIL_ADDRESS>Sent: 10 February 2016 15:26
To: projectcalico/calico <calico<EMAIL_ADDRESS>Cc: Dave Langridge <Dave.Langridge<EMAIL_ADDRESS>Subject: Re: [calico] Name all required Calico packages in upgrade instructions (#977)
@DaveLangridgehttps://github.com/DaveLangridge this has passed checks now, so could be merged...
—
Reply to this email directly or view it on GitHubhttps://github.com/projectcalico/calico/pull/977#issuecomment-182424173.
—
Reply to this email directly or view it on GitHubhttps://github.com/projectcalico/calico/pull/977#issuecomment-182427237.


sync with latest template, including shellcheck

sync with latest template, including shellcheck
fix issues found by shellcheck

@seocam I'm getting this error on fedora 31:
TASK [ipaserver : Install - Ensure that IPA server packages are installed] *****
task path: /tmp/freeipa-repo/roles/ipaserver/tasks/install.yml:5
fatal: [/cache/Fedora-Cloud-Base-31-1.9.x86_64.qcow2]: FAILED! => {"changed": false, "failures": [], "msg": "Unknown Error occured: Transaction check error:\n  file /usr/share/man/man5/idmapd.conf.5.gz from install of nfs-utils-1:2.5.1-0.fc31.x86_64 conflicts with file from package libnfsidmap-1:2.4.1-1.rc1.fc31.x86_64\n", "rc": 1, "results": []}

known issue?

[citest failing]

[citest bad]

I'm not aware of that issue.


Edit field for WPA key.

Hi I dont know how this looks on the screen, but it is showing up to my screen reader that there is 2 edit fields to type in the WPA Key when setting up Wireless Security.
I set Encryption to WPA2-PSK press tab, set Cipher
Force CCMP (AES) than tab again to the key field and typed in my key.
After hitting Save & Apply  my wi-fi did not come up. When looking in the log I got:
Tue Aug 14 06:41:28 2018 daemon.notice netifd: radio0 (6816): command failed: Not supported (-95)
Tue Aug 14 06:41:28 2018 daemon.notice netifd: radio0 (6816): Interface 0 setup failed: INVALID_WPA_PSK
Tue Aug 14 06:41:28 2018 daemon.notice netifd: radio0 (6816): WARNING: Variable 'interfaces' does not exist or is not an array/object
Then when I looked at my key the edit field seemed to be empty.
If you tab again a seckend edit field shows up and then you can put in your WPA key and it will worke rite.

Powered by LuCI Master (git-18.225.48207-809d3b9) / OpenWrt SNAPSHOT r7847-03e5dcbf10

@dibdot thanks mate!


chore(main): release 2.81.0

:robot: I have created a release beep boop
2.81.0 (2023-11-14)
Features

add foundation for LDAP in core repository (#2923) (65351e2)
Add manage segment overrides permission in UI (#2936) (88c43cd)
Allow organisation admins to mandate 2fa for their organisation (#2877) (1d006fb)
trial management in sales dashboard (#2805) (a056713)

Bug Fixes

Audit Log records don't get created with threaded task processing (#2958) (716b228)
Fix evironment metadata N+1 for environments list (#2947) (7e1c779)
Handle payment errors during user flow (#2951) (b18e4a6)
Move organisation tests (#2964) (01d14d2)
sales dashboard subscription metadata shows wrong data after starting trial (#2962) (9a49f7d)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/Flagsmith/flagsmith/releases/tag/v2.81.0 :sunflower:


Switch IBM Cloud for multi-platform to new account

The new ssh secrets have alreay been added to the vault.
The previous commit (9b26ed394de3066be586ce41ada1028812764a97) adding this was then reverted with 78cf724de86a38d07e24c5125a04192475cf7102 as the external secrets configuration was missed.

/lgtm


Download as Text/CSV: downloads all list items instead of checked

When downloading checked items from lists as text/csv file, all items of list are downloaded, instead of only checked ones.
For instance in Middleware provider:
Go to Midleware Servers page.
Check some of servers from displayed list.
Click Download as Text/CSV
Open file and you will see all items in list, but should be only those which were checked.
@abonas

this is a generic issue that happens in all screens, not middleware specific.
@hhovsepy please change the issue title to be generic. thanks
@miq-bot add_label bug, ui
cc @dclarizio @martinpovolny

I don't consider this behavior a bug. The behavior is consistend with the text on the button and especially with the tooltip.
I see no mention of "checked" or "selected" items in any of the texts.

@martinpovolny why is this different from other operations in the toolbar that are typically done on the selected items only?

@abonas: I have no idea. I am as new to this information as you are. I just looked at the sources and at the buttons and it seems that what is described here as a bug is an intentional behavior.
Yes, Inconsistent it might be.
Bug or an urgent thing? No.

urgent? definitely not imo.
bug? definitely yes imo :smile:
lets see what UX say bout this...
@serenamarie125 ?

Has always been this way, it basically exports the entire list of records (I think even the records not on the current page).  It has been a way for the user to get a copy of all records that match the search criteria.
We can accept an enhancement request, but we should deal with the "all on this page vs all matching records regardless of page" when we design this as well.  If we DO only download checked items, that would also mean that the buttons do not light up until at least one is checked.

@serenamarie125 ?

This issue is stale, so I'm moving this over to the Classic UI repository to be reevaluated as it will likely never get reviewed here. If you know this has been fixed or is no longer valid, please feel free to close the issue there.
@miq-bot move_issue manageiq-ui-classic


Support model related functions

What
Let's support model related functions such as inference, profiling and getting model information.
Todo

[x] Expand Backend Class
[x] Introduce stdout result variable in JobRunner
[x] Implement inference function
[x] Implement profiling function
[x] Implement function to get model information

Draft: #1552

Done!


[Feature]: Support loading jest.config.ts as ESM

🚀 Feature Proposal

If "type": "module" is set in the package.json, jest.config.ts should be treated as ESM, not CJS
jest.config.mts and jest.config.cts should be looked for and loaded as ESM and CJS, respectively

Motivation

This is currently the behavior with jest.config.js, and so ESM vs CJS handling differs between JS and TS configs
I would like to be able to import ESM libraries in my TS config

Example
No response
Pitch

Config loading is handled by core
Module behavior between JS and TS should match

Related: #11453

PR welcome! Logic for config file resolution and reading is in https://github.com/facebook/jest/blob/1919ef13df544a968bd2d32e5d7b8a2a1c4b35d1/packages/jest-config/src/readConfigFileAndSetRootDir.ts

That said, I don't think anything has changed since https://github.com/facebook/jest/issues/11453#issuecomment-1040424443

https://github.com/jestjs/jest/releases/tag/v30.0.0-alpha.3 for .cts support


Renames autotile_coord to subtile_coordinate

Renames autotile_coord to subtile_coordinate.

As I suggested here https://github.com/godotengine/godot/issues/16863#issuecomment-629812730.

Also:

Changes default return of TileMap::get_cell_subtile_coordinate.

The method reference said: "Returns a zero vector if the cell doesn't have autotiling", but this is not entirely true because Vector.ZERO it's still a valid coordinate for auto tile, so I changed for Vector.INF.

[TileSet] Merges _forward_atlas_subtile_selection with _forward_subtile_selection.

This is my suggestion. Makes the API clearer I hope.

Renames coord to subtile_coordinate.

I'm planning to create (and/or update) a "continued" page for Tilemap document to explain the hidden features like bitmasks, wildcards, explain the concept of tiles and subtiles, differences from 3x3 minimal and 3x3, priority for atlas, _forward_subtile_selection, etc. (the docs now don't even mention autotile)
Update: I changed from tile_coordinate to subtile_coordinate because makes more sense.
Update: I decided to change the methods that starts with autotile_ to subtile_ that are used for both atlas and autotile as well. Complete list below:
autotile_[set|get]_icon_coordinate -> subtile_[set|get]_icon_coordinate
autotile_[set|get]_spacing -> subtile_[set|get]_spacing
autotile_[set|get]_size -> subtile_[set|get]_size
autotile_[set|get]_z_index -> subtile_[set|get]_z_index
autotile_get_z_index_map -> subtile_get_z_index_map
autotile_[set|get]_light_occluder -> subtile_[set|get]_light_occluder
autotile_get_light_oclusion_map -> subtile_get_light_oclusion_map
autotile_[set|get]_navigation_polygon -> subtile_[set|get]_navigation_polygon
autotile_get_navigation_map -> subtile_get_navigation_map

Update: Renames tile_locaiton of _forward_subtile_selection to cell_position.

@akien-mga If my changes are approved, let me know so I can squash my commits.

cc @groud

@mhilbrunner This PR is outdated now, autotile_coord was removed in the TileMap rework.

Closing as outdated. Thanks to Groud for checking.
Thanks for contributing!


Machine Learning Specialization free course with certificate

I have added this completely free course conducted by Andrew NG.

issue no. #216

we are not adding coursera courses which are not free


improvement(ci): remove useless releaserc.js file

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


relay server doesnt actually add newly added files

need to make sure files can actually be added to database

fixed


Missunderstaning of Lodash documentation.

In the lodash documentation some arguments is specified as object. It can be read as "just object like {}", but all complex entities are inherited from the object.
So, looks like in the lodash methods with object params can also take arrays and other object-based types. I wrote to the lodash repo an issue https://github.com/lodash/lodash/issues/3296 - you can see an answer of an owner.

Closing this, as most of the methods which take object param use the Object/?Object type, as expected, or T when the type isn't inferred.


Fan shows as unavailable as of v1.6 (KeyError: 'mode')

Describe the bug
While the fan was working partially in v1.5, as of v1.6 my fan entity shows up as unavailable. Shows the following error:
Logger: homeassistant.components.fan
Source: custom_components/tuya_v2/fan.py:211
Integration: Fan (documentation, issues)
First occurred: October 15, 2021, 18:37:04 (2 occurrences)
Last logged: October 15, 2021, 18:37:04

Error adding entities for domain fan with platform tuya_v2
Error while setting up tuya_v2 platform for fan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 587, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 682, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 456, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 491, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 620, in state_attributes
    data[ATTR_SPEED] = self.speed
  File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 462, in speed
    preset_mode = self.preset_mode
  File "/config/custom_components/tuya_v2/fan.py", line 211, in preset_mode
    return self.tuya_device.status[DPCODE_MODE]
KeyError: 'mode'

Expected behavior
A working fan entity with at least on/off and speed controls. The way it worked in v.15 can be seen here: #340
Screenshots

Home Assistant Version
2021.10.4
Device info (please complete the following information, which can be found in log):
like this:
{
"active_time":<PHONE_NUMBER>,
"biz_type": 0,
"category": "fs",
"create_time":<PHONE_NUMBER>,
"icon": "smart/icon/001441070657466AAETE/a3de89a299843127e4d716cd35e5fd4e.png",
"id": "ebbc7c0bf2c73d0e33d7xp",
"ip": "***",
"lat": "***",
"local_key": "***",
"lon": "***",
"model": "DXCF14/15",
"name": "Whisper Flex Ultimate",
"online": true,
"owner_id": "34993017",
"product_id": "cjsa4k7tqbpuyq3l",
"product_name": "",
"status": [
{
"code": "switch",
"value": false
},
{
"code": "fan_speed_percent",
"value": 1
},
{
"code": "temp",
"value": 17
}
],
"sub": false,
"time_zone": "+02:00",
"uid": "***",
"update_time":<PHONE_NUMBER>,
"uuid": "00588b1fb206c170"
}

Device specifications (please complete the following information, which can be found in log):
Same device's id, like this:
2021-10-16 15:02:03 DEBUG (SyncWorker_2) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/ebbc7c0bf2c73d0e33d7xp/specifications, params = None, body = None, t =<PHONE_NUMBER>950
2021-10-16 15:02:03 DEBUG (Thread-4) [tuya iot] _on_log: Received SUBACK
2021-10-16 15:02:03 DEBUG (Thread-4) [tuya iot] _on_subscribe: 1
2021-10-16 15:02:04 DEBUG (SyncWorker_2) [tuya iot] Response: {
"result": {
"category": "fs",
"functions": [
{
"code": "switch",
"type": "Boolean",
"values": "{}"
},
{
"code": "fan_speed_percent",
"type": "Integer",
"values": "{\"min\":\"1\",\"max\":\"30\",\"scale\":\"0\",\"step\":\"1\"}"
},
{
"code": "temp",
"type": "Integer",
"values": "{\"unit\":\"℃\",\"min\":\"17\",\"max\":\"28\",\"scale\":\"0\",\"step\":\"1\"}"
}
],
"status": [
{
"code": "switch",
"type": "Boolean",
"values": "{}"
},
{
"code": "fan_speed_percent",
"type": "Integer",
"values": "{\"min\":\"1\",\"max\":\"30\",\"scale\":\"0\",\"step\":\"1\"}"
},
{
"code": "temp",
"type": "Integer",
"values": "{\"unit\":\"℃\",\"min\":\"17\",\"max\":\"28\",\"scale\":\"0\",\"step\":\"1\"}"
}
]
},
"success": true,
"t":<PHONE_NUMBER>061
}

Closing this at this repo is no longer maintained and it's been fixed in HA core


Wallet CLI

feeless wallet create --file gak.wallet

feeless wallet new seed --file gak.wallet # Create a new wallet using a new seed
a1b2c3... # Prints the wallet ID

feeless wallet address 5 --file gak.wallet --id a1b2c3 # Fetch the 6th address
nano_...

feeless wallet private 5 --file gak.wallet --id a1b2c3 # Fetch the 6th private key
a1b2c3...

# You can use the "default" wallet, which is internally a wallet id of 0, which is used if no id or env is specified.
feeless wallet new seed --file gak.wallet --default
0000000...

# This will use the default wallet, but will fail if a default wallet has not explicitly been set up
feeless wallet address 5 --file gak.wallet

# You can use environment variables for some args
export FEELESS_WALLET_FILE=gak.wallet
export FEELESS_WALLET_ID=a1b2c3

feeless wallet private 5
a1b2c3...

# You can import a seed into a specific wallet id
echo "a1b2c3" | feeless wallet import seed - --file gak.wallet --id a1b2c3
# or into a new id (by not specifying the --id)
echo "a1b2c3" | feeless wallet import seed - --file gak.wallet
# or into the default wallet
echo "a1b2c3" | feeless wallet import seed - --file gak.wallet --default
# You can also import via an argument rather than standard input
feeless wallet import seed "a1b2c3"

TODO

[ ] support phrase/mnemonic
[ ] integration test (in examples/cli)


Action could not find allowedlist file.

I placed the allowedlist.yaml under the specified directory .github/containerscan, and also installed the Scanitizer.
Here's how my file looks like
general:
  vulnerabilities:
    - CVE-2021-3807
  bestPracticeViolations:
    - CIS-DI-0005

Run output (first lines):
Could not find allowedlist file.
/usr/bin/tar --version
tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

@JeffreyArt1 I was having the same issue with GH Actions and it was because I was missing a step to checkout the repo in the container-scan job. I added the following and container-scan was able to detect the allowedlist.yaml file as expected:
    steps:
      - name: Checkout repo
        uses: actions/checkout@v2

      ...

@koalaty-code huge thanks man, its solved. Now I think that it's a bit of common sense to include the checkout step, but it'll be nice if it's specified in this section.

Thanks was having this issue as well!
For those who may be wondering, I added this before scan, for example here's scanning redis:
  scan-public-images:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repo
        uses: actions/checkout@v2
      - uses<EMAIL_ADDRESS>        env:
          DOCKER_CONTENT_TRUST: 1
        with:
          image-name: redis:7.0.7-alpine
          run-quality-checks: false


Integrate Pebble Autoconfig

 Issue by gotling
Monday Mar 03, 2014 at 23:45 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT
Originally opened as https://github.com/pebble/cloudpebble/issues/35

I am part of the Pebble Autoconfig team and we have created a project to help developers add configuration to their apps. We think it would be helpful to have it integrated in CloudPebble.
It uses jinja2 for generating code and html.
Would it be possible?
Forum post
Project

 Comment by ron064
Tuesday Mar 04, 2014 at 08:44 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT

My personal opinion is that not only that Pebble team should support this project, they should make it a priority and offer default hosting option for the html config files (very low BW required).
This I'm saying without being related to the project. (only looked at the code and results) Because this project is excellent solution to the setting issue, and many CloudPebble users need it much more than users who prefer Linux group dev-env.
I am one of the developers who was "forced to learn unnecessary subjects" just for the settings. (but I can't relay complain, as all knowledge have some use, and I enjoyed the learning and the related interaction with other developers)
:-)


Can´t overwrite HOST with dev.env.js

If I understand good enough we can set process.env.HOST trough dev.env.js.
module.exports = merge(prodEnv, {
  NODE_ENV: '"development"',
  APP_NAME: '"some_name"',
  HOST: '"<IP_ADDRESS>"'
})

So in config/index.js you colud do something like:
host: process.env.HOST || 'localhost', // can be overwritten by process.env.HOST

But host is not changing to '<IP_ADDRESS>'. Extrange thing is that console logging process.env in config/index.js  does not show HOST neither NODE_ENV.
I don´t know if this is the correct way to set HOST environment variable through a configuration file or if this is an actual issue.
P.D: when I use this variables inside src files they work fine i.e.
// src/main.js
if (process.env.APP_NAME === 'some_name') {
  //do somethig
} else {
  //do something else
}

No, you misunderstand. dev.env.js is only used to inject variables as "environment" variables into the app - they will not be accessible within the node process that runs webpack.
You should just set the host directly in config/index.js.

@LinusBorg how would it be the correct way to achive this? because in config/index.js there is a comment that says that host can be overwritten with process.env.HOST

That refers to an actual environment variable set when you run the dev server:
HOST=<IP_ADDRESS> npm run dev

Or, to repeat myself, change it in config/index.js, you don't have to use an environment variable.

Alright then, thank you for your respond.

thank you


False core number on 2 socket HPC node

using Pkg
Pkg.add("VectorizationBase")
Pkg.add("Hwloc")
using VectorizationBase,Hwloc
print(VectorizationBase.num_cores())
print(num_physical_cores())
print(num_virtual_cores())

$srun julia --threads 24 debug.jl
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.7/Project.toml`
  No Changes to `~/.julia/environments/v1.7/Manifest.toml`
   Resolving package versions...
    Updating `~/.julia/environments/v1.7/Project.toml`
  [0e44f5e4] + Hwloc v2.0.0
  No Changes to `~/.julia/environments/v1.7/Manifest.toml`
static(12)2424

Here for two socket CPU LoopVectorization.jl only use 12 cores.

Not a great suggest, I know, but perhaps you can define
using VectorizationBase, Static
VectorizationBase.num_cores() = static(24)

Older versions of CPUSummary used Hwloc.jl, but using Hwloc crashes Julia when run under wine, so I had to drop it as a dependency.

OK thanks very much.


Colorize text formatter

This PR colorizes the text formatter to improve terminal readability when used locally.
Before

After

Configuration
The new feature is controlled via text_formatter:colors property in .pronto.yml. This is also reflected in the README.md. By default it's disabled.
This feature is always disabled (configuration is ignored) when not in TTY to enable file I/O redirection, grep, etc.
N.B. I've had some hard time trying to enable it by default as there seems to be some issues with overriding truthy ConfigFile::EMPTY values via .pronto.yml/ENV settings. I'll investigate further and report back.
P.S. I've left the proposed --colored option out as it would require a bit of a bigger refactoring to centralize the configuration and its modification. Currently TEXT_FORMATTER_COLORS=true pronto run will be available as an alternative.
New dependencies
I've used Rainbow as suggested in #129.
Colorizable mixin
This is a reusable module intended to be used by any formatter that may need colorization. Its implementation is inspired by the one seen in Rubocop.
Colors and styles
The colors I've used are inspired by Rubocop as I find them to be quite nice and recognizable.
Resolves #129

@tscheffe Thank you for your thorough code review! Please check my replies and fixup commit. I hope you will like the end result better. :)

Everything is looking good to me! Works great!
Waiting on review from @mmozuras then right?

Thanks, Trent!
@mmozuras
I'm available to make any further changes needed. Also I can rebase(+squash) my commits upon your request.

@nbekirov looks good 👍
There's only thing I'm not sure about: it there a need for it to be configurable? In what kind of scenario, would I like to disable it manually?

@mmozuras Indeed, the config toggle is not needed per se - I'll remove it.

@mmozuras I've removed the configuration, rebased, and squashed! Please let me know what do you think. :smiley:

@nbekirov amazing, thanks 👏 😄


How to enable remote web access?

Because I want to deploy the service on a cloud server for simulation, but currently the program is restricted to run only on localhost <IP_ADDRESS>. So, how can I change it to <IP_ADDRESS>?

frontend_server is actually a backend and frontend server via django, so you can set django ags like so in whatever "runner" you are using for cloud server.
python manage.py runserver <IP_ADDRESS>:8080

The "backend_server" communicates with django (frontend_server) by simply reading and writing files to disk, so if you were to deploy this you would need to start the backend_server in another background process before you start the frontend server FYI.

frontend_server is actually a backend and frontend server via django, so you can set django ags like so in whatever "runner" you are using for cloud server.
python manage.py runserver <IP_ADDRESS>:8080

thank u


[e2e]: generic schedule main multi-uses slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/6899826704
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.schedule.main.multi-uses.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.schedule.main.multi-uses.slsa3.yml
Trigger: schedule
Branch: main
Date: Fri Nov 17 04:46:17 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/6911772058
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.schedule.main.multi-uses.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.schedule.main.multi-uses.slsa3.yml
Trigger: schedule
Branch: main
Date: Sat Nov 18 04:57:23 UTC 2023
Tests are passing now. Closing this issue.


AMP for Email support

It'd be awesome to have native support for the text/x-amp-html mime part treated like text and HTML.

I've added support for AMP for Email extraction in 620f807. A new version will be released as soon as #4 is resolved.

Amazing, thanks!

@avigoldman The support for AMP is available in 0.0.7.

Thank you!


Refactor to align with updated style guide

https://github.com/softlayer/ember-style-guide#defining-functions-to-be-called-when-events-are-triggered

willClearRender() - https://github.com/softlayer/sl-ember-components/blob/v0.11.0/addon/components/sl-select.js#L104
didInsertElement() - https://github.com/softlayer/sl-ember-components/blob/v0.11.0/addon/components/sl-select.js#L117

Taking this


window.FirebasePlugin is undefined

Describe the bug
I'm using this plugin in an Cordova project with Vue.JS
To Reproduce
Steps to reproduce the behavior:

Install the plugin
Console.log(window.FirebasePlugin) in mounted() (mounted is the vuejs ready listener)
See error

Expected behavior
It has to work
Console Logs
Uncaught (in promise) TypeError: Cannot read property 'onTokenRefresh' of undefined
at VueComponent.tokencheck (Login.vue?7463:89)
at VueComponent._callee2$ (Login.vue?7463:82)
at tryCatch (runtime.js?96cf:45)
at Generator.invoke [as _invoke] (runtime.js?96cf:271)
at Generator.prototype.(:8100/anonymous function) [as next] (webpack-internal:///./node_modules/regenerator-runtime/runtime.js:97:21)
at asyncGeneratorStep (asyncToGenerator.js?3b8d:5)
at _next (asyncToGenerator.js?3b8d:27)
Plugin Version
Run cordova plugin list to find out what version of cordova-plugin-firebase you are running with
Desktop (please complete the following information):

OS: MacOS
Browser Brave
Version 0.60.48

Smartphone (please complete the following information):

Device: Galaxy S10+
OS: Android 9
Browser Samsung Internet
Version Latest

Just curious, it shouldn't be defined for the web browser only for phones – is that your issue?

That's possible, I'll try it friday ;)
Thank you @ryanmtaylor

Try to remove your app from device and install again.
I guess you need to reinstall your app once you added a plugin

Thank you


Fix react/jsx key eslint errors

This PR:

sets the react/jsx key rules to "error" instead of "off"
fixes the react/jsx key eslint lint errors
partially addresses Fixing eslint rule errors Fixing eslint rule errors Fixing eslint rule errors #37

pre-commit.ci run


SVG looks aliased in IE11, Windows 7

I don't think it's an issue with your code but ajaxing introduces more jagged edges in the rendered SVG. With certain SVGs areas can look like their being filled in.
If you simply embed the SVG in html the edges are smooth.

@geoffyuen Any chance you can share a screen grab showing the ajaxed and non-ajaxed versions?

http://codepen.io/geoffyuen/pen/WQQpoz
This example has a spritesheet directly embedded and another spritesheet ajaxed in (using different ids for each symbol but otherwise identical). There is also a screenshot at the bottom taken in a vm.

@geoffyuen Thanks for putting that together. I can confirm that I'm seeing the same results via Browserstack.

@geoffyuen This issue also occurs in Win 7 IE10.
I found the problem. Apparently IE doesn't like "fill-rule:evenodd" in the SVG.
http://codepen.io/mcraiganthony/pen/JYGbgO
In the above pen, I used your icons and some of my icons. I ripped out all instances of "fill-rule" from your sprite. Now the rendered SVGs look identical.

@mcraiganthony Fantastic find! I'll have to figure out a way to check for this fill-rule in my gulpfile which generates my spritesheet.

I may have spoken too soon. I'm looking at your example in a VM and it still looks the same (bold, aliased) to me. Maybe it's an issue with my VM. I'll take a closer look tonight.

This is what I'm seeing in my VM Windows 7 / IE10. Pulling the fill-rules messed up a couple of your icons but you can still see that they are identical.

@geoffyuen I just viewed it in Win 7 / IE11 and you example does some heavier lines but it's much improved. I'm guessing that it has more to do with the actual SVG source than the SVG sprite build task. Creating SVGs can be a bit finicky.

@mcraiganthony , yeah it looks ok in ie10 but not in ie11. In the screenshot I have IE10 on the left and ie11 on the right:

I guess it's just going to have to be one of those "iethings". Unfortunately (fortunately?), people are starting to use this ajaxing technique quite a bit but at least Edge is ok.

I see that my icons are also a bit scrawzed. Damn this is going to bother me. It's crazy that IE10 is fixed and IE11 is 'improved' but not completely fixed.


release: new version

[breaking] three rules were added in recommended:

fixer-return
no-identical-tests
no-unused-placeholders

Just published.
Great work!


proposal: slices: add Last function

Proposal Details
In https://github.com/golang/go/issues/33359, iant@ commments in https://github.com/golang/go/issues/33359#issuecomment-527642018:

The most common case here is probably len(s) - 1. It's worth noting that if we had generics, we could have library functions like slices.Last(s) and slices.Pop(s) that would work with any slice type. That might remove many of the cases where this is valuable.

I propose adding slices.Last, that would return the last element of a slice. It would be equivalent to s[len(s)-1]. As part of this equivalence, it will panic if len(s)==0.
It may appear that s[len(s)-1] is shorter than slices.Last(s), but this is only the case for very short slice names like s. For more realistic slice names, slices.Last will be shorter and will also avoid stuttering the slice's name.

Related Issues and Documentation

proposal: slices.Last: return the last element of a non-empty slice #69005 (closed)
proposal: x/exp/slices: add First and Last #53510 (closed)
proposal: slices: LastIndex and LastIndexFunc #60480 (closed)
proposal: slices: add LastIndex and LastIndexFunc #63128
proposal: slices: add At function #65530 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Oops, closing as duplicate of #53510
Thanks, @gabyhelp


example demo-app error

Describe the bug
After cloning the repo and following the instructions in README of https://github.com/uber/kepler.gl/tree/master/examples/demo-app
there is a token error on Provider
To Reproduce

git clone https://github.com/uber/kepler.gl/
cd examples/demo-app
npm i
npm start

Expected behavior
ERROR in ./src/main.js
Module build failed: SyntaxError: Unexpected token (36:2)

  34 |
  35 | const Root = () => (
> 36 |   <Provider store={store}>
     |   ^
  37 |     <Router history={history}>
  38 |       <Route path="/(:id)" component={App} />
  39 |       <Route path="/demo/(:id)" component={App} />

Desktop (please complete the following information):

OS: ubuntu 18.04
Browser: chrome
Version: 67.0.3396.99 (Official Build) (64-bit)

Looks like babel-preset react-is not added.

Can you try change "kepler.gl": "../.." in package.json to "kepler.gl": "^0.0.28" then run
rm -r node_modules && yarn --ignore-engines
after install npm start

Yep, I used a fresh clone but is working now! Thanks

Same problem


update for coredns master

We've renamed middleware to plugin to have more consitant naming and keep in sync with caddy.
For the example plugin, this diff we needed; it is just renaming middleware to plugin:
see https://github.com/coredns/example/commit/fe5e8f02ad4b76d7b8701303414fe28e75c0825b

okay, will make change soon.

[ Quoting<EMAIL_ADDRESS>in "Re: [serverwentdown/alias] update f..." ]

okay, will make change soon.

Thanks. I think you just need to do:
sed 's/middleware/plugin/'g -i *.go
sed 's/Middleware/Plugin/'g -i *.go


Bump dependencies in security report

Fixes: https://github.com/kubewarden/policy-server/issues/67
Fixes: https://github.com/kubewarden/policy-server/issues/68

Thanks!
I'm a bit surprised to see the security check fail again. According to that the check should fail only for PRs that are coming from forked repositories; which is not the case here...