Bump UAA to paas-uaa/0.1.9

What
This replays the reverted PR #1961 with a later version.
We had some trouble with UAA version 73.4.0 due to bad ZDD changes and database migrations which we had to workaround with some semi-manual work and a lot of revert/revert changes.
This pull request reverts the revert of #1961 with an updated version of alphagov/paas-uaa
How to review
Code review
pending see [tlwr pipeline()
Who can review
Done as pair with @AP-Hunt - will merge when TLWR pipeline is green

Paired on, this is green in TLWR, merging


Do not unban replicas if a primary is available

Our current infrastructure consists in several shards composed by 1 primary and 1 replica each (some shards have more than one replica but this is irrelevant here). Our PgCat configuration permits accessing to each of them (we do not leverage on PgCat for load balancing/etc), i.e. we declare 1 pool per server. Something like:
# Shard 0

[pools.db_x0_rw]
...
[pools.db_x0_rw.shards.0]
servers = [
    [ "db_x0_primary.example.com.", 5432, "primary" ],
]

[pools.db_x0_ro]
....
[pools.db_x0_ro.shards.0]
servers = [
    [ "db_x0_replica.example.com.", 5432, "primary" ],
]
...

This is because we cannot use automatic query load balancing due to latency on the replica. Given that our applications already had the notion of 'read only replicas' this schema has been working for us for quite some time.
Now, we are looking for leveraging pgcat to do automatic failover when a replica fails, the approach here would be configuring like:
# Shard 0

[pools.db_x0_rw]
...
[pools.db_x0_rw.shards.0]
servers = [
    [ "db_x0_primary.example.com.", 5432, "primary" ],
]

[pools.db_x0_ro]
default_role = "replica"
....
[pools.db_x0_ro.shards.0]
servers = [
    [ "db_x0_primary.example.com.", 5432, "primary" ],
    [ "db_x0_replica.example.com.", 5432, "replica" ],
]
...

This way, given that db_x0_ro has a default_role of replica it will always use the replica (which is intended), and the primary will only be used when replica is banned.
This is what I would expect as normal behavior given this configuration but the code is defending itself from 'all replicas being banned' and it automatically unbans the replica.
I understand that this is a fail safe mechanism to defend pgcat against false positives on replicas being down. My point is that, if we have a primary configured for this pool, we can afford having all replicas banned for a while, once the ban_timeout is reached they will be rechecked and added back to the pool.
This change loosens up this restriction to be only done when the pool has no primaries at all.

@magec We had incidents in the past where this failover to primary behavior made matters worse so I am wondering if we should put this behind a config or only enable that behavior if primary_reads_enabled flag is enabled.

Reading through your example, you probably want primary_reads_enabled to be set to false to avoid sending reads to primary under normal circumstances

@drdrsh  I changed the PR so now is a configuration change. I still would like to add an integration test for this, but just wanted to know whether we were aligned.

That looks good to me.
I am not sure about the name of the config but the general principle LGTM

Ok, so writing the test I realized there are many things to be taken care of here. Mostly because current main is bugged I reckon as default_role is being ignored unless query_router is enabled. That's the reason the primary was being included in candidates when default_role was set to replica. I think I should address that first, and then go back to this.

I opened another PR with a test for fixing the default_role thing. Now, I am wondering whether it would be better implementing this using default_role by adding a possible value of `replicas-with-primary-failover' so the config would be something like:
### default_role
` ` `
path: pools.<pool_name>.default_role
default: "any"
` ` `

If the client doesn't specify, PgCat routes traffic to this role by default.
`any` round-robin between primary and replicas,
`replica` round-robin between replicas only without touching the primary,
`replica-with-failover` round-robin between replicas only touching the primary when they are unavailable
`primary` all queries go to the primary unless otherwise specified.

What do you think?

Well, in the end, I tried the replica-with-failover approach and it didn't make much sense, mainly because the variable is referring to a role, and there is not such role as replica-with-failover. What I did now was adding a new setting called replica_to_primary_failover_enabled, which will use the primary when replicas are unavailable and the selected role is replica. I have the code ready but I need this PR merged because is on top of it.


Python speed fix

Handles issue #55

Can we please not check in a gigantic WCON file that is mostly spaces and has errors in its units?  The supposed "time" is actually frame number, I think.  And the X and Y units seem to be microns, not millimeters.  Or maybe they're pixels; I didn't check carefully enough to be sure.  But they're certainly not millimeters.
The code itself looks good, and it's fine to use this as a test file for internal testing, but this isn't the kind of thing that should go into the standard distribution.  (I also don't think it's a good idea to make someone pull down 50 MB just to clone the repository.)  If you want to include a speed test, I think you should programmatically create the data structure, then write it, then read it.  (And then maybe delete it.)

"mostly spaces" is because I selected "pretty print" as the JSON output option, so it is more human readable.  Good point about time being a frame number, and about the units being microns.  This file was created from a Schafer corpus file; I will reconvert it with corrections.
I can't programatically or "procedurally" create this data, because it isn't random, but I agree it would be nice not to have this in the repository.  So I've rolled back the commits (rather than reverting them, which would still have kept the .git file bloated), and I'll instead put this file on Google Drive and have the Travis CI code download the files.

2608333e0ae5df54032fe0bd60c11464a24dd29c now allows me to specify '0.04*s' as the units for a 25fps skeleton file indexed by frame number, and it will properly convert to seconds.

I made the format specification consistent with allowing scaling factors on units.  As @Ichoran points out, this pull request is still pending @aexbrown's approval on that idea though.

Can you put the zip stuff in some other PR?  This is mixing too many concerns at once.

Actually, we've got three things here at the same time: (1) speed fixes; (2) unit multipliers; (3) zip files.  These should be three separate PRs so the issues in each can be worked out independently.  69e5a53 was the last of the speed fix commits, I think.

My git-fu is a bit weak for that.  Can you tell me how to do that?
I did (from ~/github/)
git clone git@github.com:OpenWorm/tracker-commons
git checkout python_speedfix
git branch unit_multipliers
git reset --hard 2608333
git checkout unit_multipliers

So now all commits after 2608333 are on the unit_multipliers branch.  But, when I try git push I get:
ubuntu@ip-172-31-9-94:~/github/tracker-commons$ git push
To git@github.com:OpenWorm/tracker-commons
 ! [rejected]        python_speedfix -> python_speedfix (non-fast-forward)
error: failed to push some refs to 'git@github.com:OpenWorm/tracker-commons'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Don't you want to reset to 69e5a53 (Iast commit before units rather than first after)?
Anyway, I think you just need a git push -f python_speedfix.
You could also try to rework the branches to be independent using git rebase --onto master python_speedfix unit_multipliers, but since I don't see any reason not to merge python_speedfix, you could just wait until that's merged and simply rebase unit_multipliers onto the new master.

OK I have separated all the other issues out into separate pull requests, and the tests pass.  @Ichoran  please merge if acceptable.


R and Python support for Azure SQL Database

Under the section https://docs.microsoft.com/en-us/azure/sql-database/sql-database-service-tier-hyperscale-faq#does-hyperscale-have-support-for-r-and-python it is mentioned that R and Python is not supported in Azure SQL DB. But according to https://docs.microsoft.com/en-us/azure/sql-database/sql-database-features#sql-features R Services is available in SQL database in public preview. Is there a limitation of running R scripts only for hyperscale?

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

ID: 418c8458-948a-4549-fbaa-90a17cd345ee
Version Independent ID: b5635e09-241c-0eea-61cd-bfef388af124
Content: Azure SQL Database Hyperscale FAQ
Content Source: articles/sql-database/sql-database-service-tier-hyperscale-faq.md
Service: sql-database
GitHub Login: @dimitri-furman
Microsoft Alias: dfurman

@ManuSQLGeek The Note is this document explains this better.

Hope this helps.

@ManuSQLGeek If there are no more questions in this regard, we will go ahead and close this thread for now. If you have any questions, please get back to us and we will continue the discussion.


Migration URL does not load css/theme

The link displayed during a migration error message points to: https://organize.readthedocs.io/updating-from-v1/. The theme/css does to load (http/404), tested in Chromium/Firefox. This link works fine: https://organize.readthedocs.io/en/latest/updating-from-v1/

Yep! Just saw that. Fixed in a minute. Thanks!


Invites and Direct Federation

Hello - In the FAQ section, can you add this question:
Once Direct Federation is configured with an organization, does each guest need to be sent and redeem an individual invitation?
I am not 100% sure on the answer but this is a common question where it would be great to have the answer it posted - Thanks!

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

ID: 7b1d9428-2dbb-c80b-c2cd-b4841d3d8bd3
Version Independent ID: 20af5f8d-479c-66ec-aacd-d3f9cb79c814
Content: Direct federation with an identity provider for B2B - Azure AD
Content Source: articles/active-directory/external-identities/direct-federation.md
Service: active-directory
Sub-service: b2b
GitHub Login: @msmimart
Microsoft Alias: mimart

Thank you for your feedback! We will review and update as appropriate.

@tfurstms Thanks for the feedback. We will engage the content development team for further investigation, they will verify and perform necessary changes in the document as needed.
@msmimart Can you have a look ?


In jupyter notebooks, autocomplete doubles the module name

Issue Type: Bug
For example, if I am trying to type np.arange(), I may type np.ar and then see a suggestion for np.arange. When I hit  or  to use the suggested code, intstead of np.arange going into my cell I get np.np.arange. This seems to be true not just for numpy, but for any package I have imported into the notebook.
VS Code version: Code - Insiders 1.59.0-insider (50b3811fdc5b5c80ca516a2edfffedcbd464b033, 2021-07-15T05:13:58.348Z)
OS version: Windows_NT x64 10.0.18363
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz (12 x 2592)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.73GB (3.74GB free)

Process Argv
--crash-reporter-id 770f638e-dafe-4022-add6-b478b39c88b5

Screen Reader
no

VM
0%

Extensions (15)

Extension
Author (truncated)
Version

markmap-vscode
ger
0.0.9

matlab
Gim
2.0.1

vscode-test-explorer
hbe
2.20.4

vscode-python-test-adapter
lit
0.6.8

camelcasenavigation
map
1.1.3

reflow-markdown
mar
2.1.0

python
ms-
2021.7.1053846006

vscode-pylance
ms-
2021.7.5

jupyter
ms-
2021.8.1055544705

remote-wsl
ms-
0.58.2

powershell
ms-
2021.6.2

test-adapter-converter
ms-
0.0.16

reflow-paragraph
Tro
1.3.0

change-case
wma
1.0.0

json
Zai
2.0.2

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30291487
pythontb:30258533
vspre833:30321513
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscus158:30321503
pythonvsuse255:30319630
3f5j7703:30294757
vscod805:30301674
pythonvspyt200:30323110
vscextlang:30310088
vsccppwt:30312692
pythonvssor306:30340298
bridge0708:30335490

Dupe of https://github.com/microsoft/vscode-jupyter/issues/5956

Dupe of #5956

As far as I know, I have pylance installed and enabled. In #5956 the user set the language server to None. I didn't intentionally set my LS to None. Can you tell me how I would check which language server is enabled?


Change whitelist->acceptlist/blacklist->denylist, fixes #1447

Change occurrences of "whitelist" to "acceptlist" and
"blacklist" to "denylist". NOTE: "a whitelist" becomes
"an acceptlist" (note the change from "a" to "an").
This is a change in text of the criteria, which is normally a big
deal, but this change does not change the meaning of the criteria
in any way.
Translators will have to determine if they should change the
corresponding terms in their natural languages (or not).
I simply don't know enough about other languages' terms and cultures.
Please note that we cannot change the term "whitelist" in
dependency_decisions.yml. That is a machine-processed file and
the term is part of the API of the externally-implemented
tool license_finder. To be fair, this file is also extremely obscure.
This commit does not change the name of the master branch.  The
expectation is that we'll eventually rename the master branch, but I'm
waiting for more public guidance / agreement on a good replacement term.
My current preference is "main", and there are others who agree with me.
However, changing branch names can interfere with a lot of processes.
Thus, I'm waiting so that the branch rename will only occur once,
which should reduce disruption.
Signed-off-by: David A. Wheeler<EMAIL_ADDRESS>

@dankohn - agreed.

GitHub recommends not renaming "master" for now, because they're in the process of implementing some changes make it much more seamless: https://github.com/github/renaming#later-this-year
So I'm going to create a new issue proposing the change, and explain the delay. That should signal (1) we're doing it, and (2) why we haven't done it yet.

Here's the issue for renaming the master branch: https://github.com/coreinfrastructure/best-practices-badge/issues/1450
I expect to trigger that later in 2020, once GitHub implements the mechanisms to make this significantly easier than it is right now.

I intend to merge this once we complete merging #1423 . #1423 is thus is now in the critical path, so its priority is bumped up. We need to get the German translation updated so that when we change the English, we can see what changed since.


[SPARK-37733][BUILD] Change log level of tests to WARN

What changes were proposed in this pull request?

Change log level of tests to WARN
Why are the changes needed?

After https://github.com/apache/spark/pull/34895, the log level of tests becomes either "INFO" or "DEBUG", this increases the log output file to over 100MB!
E.g https://github.com/gengliangwang/spark/runs/4623214509?check_suite_focus=true
This makes it difficult to find the CI test failures. Changing the log level of tests to WARN should help.
Does this PR introduce any user-facing change?

No
How was this patch tested?

It's just conf change.

Test build #146557 has started for PR 35011 at commit 23c962e.

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

Merged to master.

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

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

Test build #146557 has finished for PR 35011 at commit 23c962e.

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

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

Hmm, changing log level seems causing some test failures, e.g. ShuffleBlockFetcherIteratorSuite which checks some log messages.

Shall we revert this first?
Actually I merged #34965 which fixes logging issue for hive-thriftserver module that produces large log output a few hours ago. Maybe it already fixes the issue of this PR.

Sorry guys. it was my bad. I had to wait for the test results. will be careful next time ..


Changes specific for service-web-formats project

Remove usage of Object.assign when defining the __assign helper.

LGTM, can we merge this now or should we wait for the A/B test of FOR-3813 to be over?

I wonder if it's not better to keep this PR opened forever? 🤔
This way we can keep a visual of all the changes made for our use cases with the files tab. Additionally, the version in our package.json can stay the same, it won't have to change every time we add some changes to this lib. WDYT?

Good idea! 👍


exports is not defined

I builded new 5.30.0 on Win10 and on this line:
var countColumn = exports.countColumn = function(string, end, tabSize, startIndex, startValue)
is error.
On my old version 5.19.1 was this OK.

You appear to be trying to lode runmode.node.js in the browser. That script is intended only for node.js

I dont using node.js. Why it worked well in 5.19.1 version?

Where is defined exports, because I can not find it in /src? Exports is also in other addons!

And in other words: I can not use require.js, because it will broken my javascripts loading flow.

Look, this never worked, also not in 5.19. exports is defined by the CommonJS module system, which Node implements. You're loading a file you shouldn't be loading and I can't fix that for you.

It means that method described here:
http://codemirror.net/demo/html5complete.html
does not work anymore?
2.
I want to manage myself what JS files are loaded.
3.
I compiled codemirror from latest GIT zip file and "exports" is not compiled with it. How to do it?

Dont forget that on many sites and systems is impossible use require.js, it works total differently.

So tell me what is different between 5.19 and 5.30. I just updated your code, nothing else. So problem is not at my using but at your changes. Are you agree?

Now I made some tests:
codemirror.js v.5.30
together with modes v.5.30
together with addons v.5.19
and it works as expected.

OK, so sorry, because before on 5.19 I never used node addon. I removed it and it works as expected.


KOGITO-6130 Review containers used in tests

Disable DevServices from Quarkus where these are not used
Review containers versions to avoid duplicates in the build pipeline

Assembly:

https://github.com/kiegroup/kogito-runtimes/pull/1695
https://github.com/kiegroup/kogito-apps/pull/1095
https://github.com/kiegroup/kogito-examples/pull/940
https://github.com/kiegroup/optaplanner/pull/1658
https://github.com/kiegroup/optaplanner-quickstarts/pull/220

The (build) kogito-runtimes check has failed. Please check the logs.

The (build) kogito-apps check has failed. Please check the logs.

The (build) kogito-apps check has failed. Please check the logs.

The (build) optaweb-employee-rostering check has failed. Please check the logs.

The (build) optaplanner-quickstarts check has failed. Please check the logs.

The (build) kogito-runtimes check has failed. Please check the logs.

The (build) kogito-apps check has failed. Please check the logs.

The (build) optaweb-vehicle-routing check has failed. Please check the logs.

The (build) optaplanner check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

jenkins please retest this

@tiagodolphine @cristianonicolai are we good to merge those ?

do we want this in 1.14 ?

do we want this in 1.14 ?

I think we need, to be able to upgrade Quarkus, I'll create the PRs. Im just waiting for related PRs to be green but its almost mission impossible :/

The (build) optaplanner-quickstarts check has failed. Please check the logs.

Jenkins rerun optaplanner-quickstarts tests

The (build) optaplanner-quickstarts check has failed. Please check the logs.

Jenkins rerun optaplanner-quickstarts tests


Cannot save a query with Parameters as a Dataset (Jinja template default values)

A Fatal error is raised when I try to save a query that contains Parameters as a virtual dataset.
How to reproduce the bug

Go to the SQL lab and open a new query, select the default examples database
Click on the three-dots menu and Parameters.
Enter the following JSON to specify defaults values for Jinja templates (relevant doc )

{
  "my_table": "persons"
}

Enter the following text as the query

SELECT * FROM {{ my_table }}

Observe that you can execute the query, the context you specified in the Parameters is correctly injected because the results appear as expected.
5. Save the query as a dataset and the Fatal error is raised.
Expected results
We should be able to save the Jinja-templated query as a new virtual dataset.
Actual results
A fatal error is raised.
See below the logs of the superset_app container :
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/flask_appbuilder/api/__init__.py", line 110, in wraps
    return f(self, *args, **kwargs)
  File "/app/superset/views/base_api.py", line 127, in wraps
    raise ex
  File "/app/superset/views/base_api.py", line 121, in wraps
    duration, response = time_function(f, self, *args, **kwargs)
  File "/app/superset/utils/core.py", line 1526, in time_function
    response = func(*args, **kwargs)
  File "/app/superset/utils/log.py", line 255, in wrapper
    value = f(*args, **kwargs)
  File "/app/superset/views/base_api.py", line 93, in wraps
    return f(self, *args, **kwargs)
  File "/app/superset/datasets/api.py", line 315, in post
    new_model = CreateDatasetCommand(item).run()
  File "/app/superset/datasets/commands/create.py", line 50, in run
    dataset.fetch_metadata(commit=False)
  File "/app/superset/connectors/sqla/models.py", line 1247, in fetch_metadata
    new_columns = self.external_metadata()
  File "/app/superset/connectors/sqla/models.py", line 715, in external_metadata
    return get_virtual_table_metadata(dataset=self)
  File "/app/superset/connectors/sqla/utils.py", line 143, in get_virtual_table_metadata
    raise SupersetGenericDBErrorException(message=str(ex)) from ex
superset.exceptions.SupersetGenericDBErrorException: syntax error at or near "{"
LINE 1: SELECT * FROM {{ my_table }}

Screenshots

Environment

browser type and version: Safari, Firefox, ...
superset version: Superset 3.0.0, as well as Preset Cloud !
any feature flags active:

FEATURE_FLAGS = {
        "ENABLE_TEMPLATE_PROCESSING": True,
}

Checklist

[X] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[X] I have reproduced the issue with at least the latest released version of superset.
[X] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
I followed the docs at https://superset.apache.org/docs/installation/sql-templating/#jinja-templates and the blog post https://preset.io/blog/intro-jinja-templating-apache-superset/
Note that the query is correctly executed in the SQL IDE.
The issue also appears in Preset !

Minimal config to reproduce the issue with a docker compose deployment
# docker/pythonpath_dev/superset_config_docker.py
FEATURE_FLAGS = {
  "ENABLE_TEMPLATE_PROCESSING": True,
}

Tested with Superset 2.1.1 and it is working fine.

This error is due to a change in the logic of saving Datasets in Sqlab as of v3.0.1: in v2.1, this was handled separately within the sqlab_viz function in views/core.py, where templateParams were filled in before passing to the database; whereas in v3.0.1, it is consolidated into the CreateDatasetCommand.run function in datasets/commands/create.py, and the templateParams parameter was not passed along with the SQL to this function.
It is uncertain whether this counts as a BUG since templateParams are indeed not necessary to be passed to the database during the Dataset creation process.
In fact, there is a way to avoid triggering this error: by adding if expressions to these variables, ensuring that the variable expressions are not passed to the database when saving the Dataset. For example, a variable like ds >= {{ to_dttm }} can be modified to:
<% if to_dttm %>
ds >= {{ to_dttm }}
<% endif %>

This way, even in the absence of templateParams, the Dataset can still be saved and executed correctly. An <% else %> statement can also be added to define a default value for when the templateParams are missing.

Using the following snippet from https://superset.apache.org/docs/installation/sql-templating/ a fatal error is still raised. As an end user I would consider it a bug if it's indeed due to the issue described here.
WHERE (
    {% if from_dttm is not none %}
        dttm_col > '{{ from_dttm }}' AND
    {% endif %}
    {% if to_dttm is not none %}
        dttm_col < '{{ to_dttm }}' AND
    {% endif %}
    true
)

It is uncertain whether this counts as a BUG

If it helps save time and focus on the big picture: I'm not sure your Superset users really care what categorisation you guys apply to this issue. It used to worked, and now it doesn't, so the product is getter worse. Personally that's the part I would focus on.

Hey @qleroy,
As synced via Slack, during the dataset creation process the query is evaluated and doesn't have the parameters context defined in SQL Lab (@RubingHan did a much better job explaining this on the code level -- kudos!) resulting in a "broken" SQL query which throws the error.
While you "could" create a dataset with this type of implementation before, you would end up with a "broken" dataset until the SQL parameters are defined in the new dataset (I don't think this was handled before), so you would still face an error, just one step further.
You can avoid this error by adding if/else statements to your SQL query so that the query still works without the parameter values:
select * from
{% if my_table %}
  {{my_table}}
{% else %}
  foo
{% endif %}

In regards to improving this flow, I think a good long-term solution would be adding a checkbox to the virtual dataset creation modal to ask users if the parameters defined in SQL Lab should be carried over to the virtual dataset, so they're used in the query validation + saved in the dataset level.

I understand.
I find it confusing because if you follow the blog post about Jinja templating it used to work on 2.1 and it is now broken since 3.0
It was my understanding that the parameters in the SQLLab would carry over as parameters for the virtual dataset because I always use the SQLLab to create datasets ultimately.
A checkbox would be much appreciated.
At the very least the notification Fatal error should provide clarification about what is going on.
I will dive into this to suggest a PR to resolve these aspects. 👍
Thank you very much !

I think this issue might be a duplicate? And maybe this one? Would love to consolidate issues/threads if possible.

The issue appears when you try to use jinja templating to save the query in SQLLab as a dataset.  If you save the dataset and provide a default value in place of using any jinja templates.Then during the chart development process, you can make updates to the query and enter your jinja template. This won't lead to errors.

Thanks you all for the help. I used the { if } workaround and now it works. Really annoying they haven't solved this yet.
I'm using {{ filter_values('xyz') }} in my queries and they were working properly when passing the _filters parameters in the SQL Lab, but now it no longer works if I add them to the Template parameters sections under Setting. Any idea why? It just gets my default { else }  values.

I didn't. I was using a parametrized UDTF so I decided to set the defaults in the SQL definition and pass nothing when filter_values aren't available


UTC DateTime not serialising to spec

the date
LastModified = new CalDateTime(DateTime.SpecifyKind(new DateTime(2010, 3, 27, 13, 53, 35), DateTimeKind.Utc))

is serialising as:
LAST-MODIFIED;TZID=UTC:20100327T135335Z
the standard states:
The "TZID" property parameter MUST NOT be applied to DATE-TIME properties whose time values are specified in UTC.
(This was found using the test in my 'experimental' branch posting a serialised calendar object to icalendar.org for validation)

fixed and tested as of commit referencing this issue in pull request #54

If it's fixed, want to close this up?

fixed d30880a42f43794d5274e90c9d04e918b134b238


ASCII /\ doesn't parse

Fixed finally! Was a mistake in how the lexer generator works.

Fixed finally! Was a mistake in how the lexer generator works.


Metamask included twice as metamask and browserwallet

Link to minimal reproducible example
...
Summary
This maybe more UX glitch then bug per se, however it produces really strange experience. If user has metamask plugin Installed ( i guess it touches other browser wallets too) then on the list of suggested connection both metamask and browser wallet (which on click behaves as metamask) are rendered. Also different badges are displayed Metamask is 'Recent' and browser wallet is 'Installed'.  Look at the attached screenshot.

List of related npm package versions
"@web3modal/wagmi": "^3.0.2",

Just had a stab at this, we actually can't de-cople these at the moment as only way to do this would be based on window.ethereum.isMetaMask flag. This flag is set and overriden a lot by other extensions so we risk removing metamask incorrectly.
That said, next release of web3modal introduces EIP6963 support (https://github.com/WalletConnect/web3modal/pull/1365) which will improve the situation, I believe metamaks is about to support is as well, so we will eventually remove "Browser Wallet" option all together once top ~20 extensions adopt this (we are close)

@0xAsimetriq I have 3 of them lol
Btw I use 3.1.0 but still
In my case I need to connect
 const connectors = [
      new MetaMaskConnector({ chains }),
      new InjectedConnector({ chains, options: { shimDisconnect: true } }),
      new WalletConnectConnector({ chains, options: { projectId, showQrModal: false } }),
      new CoinbaseWalletConnector({ chains, options: { appName: metadata.name } })
    ];

last one without image came from here: new MetaMaskConnector({ chains }) but I need this button for my case
Any suggestion how to remove this one ?

Remove InjectedConnector (Browser wallet) and exlude metamask's wallet id if you need to only use MetaMaskConnector

Thanks for InjectedConnector

Yes I try it already but still, another one there
excludeWalletIds: ["c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96"]

That one is from MetaMask connector, you can remove it actually.
I highly recommend adding EIP6963Connector instead, it will detect installed wallets automatically.

@glitch-txs

Not really I need it to have this button^
will try EIP6963 thanks

If you're using a wagmi connector and would like to add an image you can use this option
https://docs.walletconnect.com/web3modal/react/options#connectorimages

@glitch-txs It didn't work, I still think it's a bug...

@victorpavlenko instead of metamask the key needs to be metaMask
cc @0xAsimetriq maybe we can get some lowercase function to avoid this confusion here 🤔


Connection hangs forever when "server" parameter is only a number

Describe the bug
When trying to connect to the server using "WithTcpServer" method and specifying the "server" parameter as just a number, the connection process goes forever even without throwing exception.
Which project is your bug related to?

Client

To Reproduce
Steps to reproduce the behavior:

Using this version of MQTTnet '3.0.15'.
Run this code:

IMqttClient mqttClient = new MqttFactory().CreateMqttClient();
var options = new MqttClientOptionsBuilder()
  .WithProtocolVersion(MqttProtocolVersion.V500)
  .WithClientId("anyId")
  .WithTcpServer("42", 55) // notice here "42" is a simple number,
                           // however it will work properly with value "42.6" for example
  .WithCredentials("username", "password")
  .WithCleanSession(false)
  .WithCommunicationTimeout(TimeSpan.FromSeconds(5))
  .Build();
try
{
  await mqttClient
    .ConnectAsync(options)
    .ConfigureAwait(false);
}
catch (MqttCommunicationException e)
{
}

Notice the connection process goes forever.

Expected behavior
I guess the best behavior here is just to throw an exception.

Interesting, I will have a look at this soon. Seems like the IP address validation is broken here...

@chkr1011 @JanEggers Should MQTTnet do some checks on the hosts the user provides?
Something like:
public bool IsHostnameValid(string hostName)
{
    var isHostName = Regex.Match(hostName, @"^[A-Za-z]+");

    if(isHostName)
    {
        return true;
    }
    else
    {
        try
        {
            // From https://github.com/jsakamoto/ipaddressrange maybe?
            _ = IPAddress.Parse(hostName);
            return true;
        }
        catch (Exception ex)
        {
            throw ex;
        }
        finally
        {
            return false;
        }
    }
}

we use the default .net socket to establish a connection.
https://github.com/chkr1011/MQTTnet/blob/8f1d4e3c22f3226570eec681bccef3a88c4ebd16/Source/MQTTnet/Implementations/MqttTcpChannel.cs#L75
if that fails to throw an exception whith invalid input please file an issue in the dotnet repo.
I think it is counterproductive to fix / workaround the issue here as it may introduce new issues.

Unable to reproduce that.
Seems 42 is just handled as <IP_ADDRESS> on both windows and linux, and it will throw an SocketException (10051): A socket operation was attempted to an unreachable network. on windows, and System.Net.Sockets.SocketException (111): Connection refused on linux.
(windows)>ping 42

Pinging <IP_ADDRESS> with 32 bytes of data:
PING: transmit failed. General failure.
PING: transmit failed. General failure.
---
(linux)$ ping 42
ping: connect: Invalid argument

// It didn't show ip addr, but<PHONE_NUMBER> = 0x7F000001)
$ ping<PHONE_NUMBER>
PING<PHONE_NUMBER> (<IP_ADDRESS>) 56(84) bytes of data.

win10+net5.0
MQTTnet.Exceptions.MqttCommunicationException: Error while connecting with host '42:55'.
 ---> System.Net.Sockets.SocketException (10051): A socket operation was attempted to an unreachable network.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
   at MQTTnet.Implementations.CrossPlatformSocket.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at MQTTnet.Implementations.CrossPlatformSocket.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
   at MQTTnet.Implementations.MqttTcpChannel.ConnectAsync(CancellationToken cancellationToken)
   at MQTTnet.Internal.MqttTaskTimeout.WaitAsync(Func`2 action, TimeSpan timeout, CancellationToken cancellationToken)
   at MQTTnet.Adapter.MqttChannelAdapter.ConnectAsync(TimeSpan timeout, CancellationToken cancellationToken)
   at MQTTnet.Client.MqttClient.ConnectAsync(IMqttClientOptions options, CancellationToken cancellationToken)
   at MQTTnet.Client.MqttClient.ConnectAsync(IMqttClientOptions options, CancellationToken cancellationToken)

Ubuntu20.04+net5.0
MQTTnet.Exceptions.MqttCommunicationException: Error while connecting with host '42:55'.
 ---> System.Net.Sockets.SocketException (111): Connection refused
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
   at MQTTnet.Implementations.CrossPlatformSocket.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at MQTTnet.Implementations.CrossPlatformSocket.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
   at MQTTnet.Implementations.MqttTcpChannel.ConnectAsync(CancellationToken cancellationToken)
   at MQTTnet.Internal.MqttTaskTimeout.WaitAsync(Func`2 action, TimeSpan timeout, CancellationToken cancellationToken)
   at MQTTnet.Adapter.MqttChannelAdapter.ConnectAsync(TimeSpan timeout, CancellationToken cancellationToken)
   at MQTTnet.Client.MqttClient.ConnectAsync(IMqttClientOptions options, CancellationToken cancellationToken)
   at MQTTnet.Client.MqttClient.ConnectAsync(IMqttClientOptions options, CancellationToken cancellationToken)

@yyjdelete hm... I use Xamarin.Forms application to connect to my PC. So it seems to be Mono problem.

@yyjdelete hm... I use Xamarin.Forms application to connect to my PC. So it seems to be Mono problem.

Since this seems to be a mono specific issue, there's not much we can do here...


JSON does not pass format validation

The proposed game.json does not pass strict validation because object properties must be strings.
Fixed:
[
	{
		"FileName": "engine/headers.asm",
		"Dependencies": []
	},
	{
		"FileName": "engine/background.asm",
		"Dependencies": []
	},
	{
		"FileName": "engine/vectors.asm",
		"Dependencies": ["engine/background.asm"]
	}
]

Fixed in the last commit
Thank you @ogamespec

Fixed in the last commit
Thank you @ogamespec


Remove lib from library name

Meson will automatically add prefix lib to library object. So  libhoth_usb = library('libhoth_usb') will have have double prefix.

Fixed by https://github.com/google/libhoth/commit/dab41e792e167eec36829553bc0b4e28c811e6a6


Add ninja build support for Linux

This PR fixes #1283 by adding ninja build support for Linux:

refactor the Jenkinsfile
add the ninja-build package to the ansible scripts.

I've also installed the ninja-build package on all the CI nodes.

bors try

@anitagov You can just do a bors try on it yourself, it's not tied to the author:
bors try

bors try

@andschwa @johnkord @anitagov I see consistent failures of the same test across all stages when building with ninja:

172/172 Test #172: samples ..................................................................................................................................................***Failed    0.00 sec
make: Entering directory '/home/jenkins/work_dir/workspace/Bors_trying/build'
make: *** No rule to make target 'install'.  Stop.
make: Leaving directory '/home/jenkins/work_dir/workspace/Bors_trying/build'
An error occured

99% tests passed, 1 tests failed out of 172

Total Test time (real) = 143.12 sec

The following tests FAILED:
	172 - samples (Failed)
Errors while running CTest

Any ideas why this fails the way it does?

@dragoshsch I just repro'd this, and it appears to happening because test-samples.sh directly invokes "make", which won't work with Ninja builds. I'll see if I can factor this test-samples.sh script out

I have a fix in #1467 (hopefully). One that gets merged, I hope that will unblock you, Dragos! Thanks to @andschwa for the advice!

bors r+


Ubuntu 18.04 do not disturb icon not appear when extension is active

Hello,
Can you open GNOME Tweaks Tool and go to the Extensions screen, then click the settings button next to the Do Not Disturb extension and verify that the "Show Icon" setting is checked?

The issue is that Ubuntu GNOME does not ship with the notification disabled icon, so I need to provide a fallback if that is the case. I will look into packaging the extension with the icon it needs, or use a different system icon if that notification one is not available.

Fixed in commit 911545b818ef81abe11febc5cba0b4f747910c4e.


ComboBox setText bug

Tested with:
JFoenix - 1.2
Java - 1.8.0_121

Example code:
First screen
Second screen

How ComboBox looks with standard JavaFX controls
javafx.scene.control.ComboBox & javafx.scene.control.ListCell

How ComboBox looks with JFoenix controls
com.jfoenix.controls.JFXComboBox & com.jfoenix.controls.JFXListCell
(looks same with standard javafx ListCell)

Hello,
Thanks for pointing out the issue 👍 , to solve it currently you just need to implement toString method in Employee class. however, will check what's causing this issue as it's a valid case.
Regards,

please note the default behavior of JFXListCell is to create a graphic node for the cell. You just need to call setGraphic(null) in the updateItem method.
Regards,


if self.controller is not None and ('' in origin_prompt[0] or '' in origin_prompt[1]).  TypeError: 'NoneType' object is not subscriptable`

Hi, when i try to reproduce with the example cat_dog setting, I got the following error.
The origin prompt is None but in run.sh caption=" cat and  dog" .
Thanks a lot.
[rank0]: Traceback (most recent call last): [rank0]:   File "/data2/frett/repos/DisenDiff/train.py", line 1016, in <module> [rank0]:     trainer.fit(model, data) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 553, in fit [rank0]:     self._run(model) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 918, in _run [rank0]:     self._dispatch() [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 986, in _dispatch [rank0]:     self.accelerator.start_training(self) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/accelerators/accelerator.py", line 92, in start_training [rank0]:     self.training_type_plugin.start_training(trainer) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 161, in start_training [rank0]:     self._results = trainer.run_stage() [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 996, in run_stage [rank0]:     return self._run_train() [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 1031, in _run_train [rank0]:     self._run_sanity_check(self.lightning_module) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 1115, in _run_sanity_check [rank0]:     self._evaluation_loop.run() [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/loops/base.py", line 111, in run [rank0]:     self.advance(*args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py", line 110, in advance [rank0]:     dl_outputs = self.epoch_loop.run( [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/loops/base.py", line 111, in run [rank0]:     self.advance(*args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py", line 110, in advance [rank0]:     output = self.evaluation_step(batch, batch_idx, dataloader_idx) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py", line 154, in evaluation_step [rank0]:     output = self.trainer.accelerator.validation_step(step_kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/accelerators/accelerator.py", line 211, in validation_step [rank0]:     return self.training_type_plugin.validation_step(*step_kwargs.values()) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/plugins/training_type/ddp.py", line 386, in validation_step [rank0]:     return self.model(*args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl [rank0]:     return self._call_impl(*args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl [rank0]:     return forward_call(*args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/torch/nn/parallel/distributed.py", line 1643, in forward [rank0]:     else self._run_ddp_forward(*inputs, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/torch/nn/parallel/distributed.py", line 1459, in _run_ddp_forward [rank0]:     return self.module(*inputs, **kwargs)  # type: ignore[index] [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl [rank0]:     return self._call_impl(*args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl [rank0]:     return forward_call(*args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/pytorch_lightning/overrides/base.py", line 93, in forward [rank0]:     output = self.module.validation_step(*inputs, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context [rank0]:     return func(*args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/stable-diffusion/ldm/models/diffusion/ddpm.py", line 359, in validation_step [rank0]:     _, loss_dict_no_ema = self.shared_step(batch) [rank0]:   File "/data2/frett/repos/DisenDiff/src/model.py", line 588, in shared_step [rank0]:     loss = self(x, c, mask=mask) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl [rank0]:     return self._call_impl(*args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/ldm/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl [rank0]:     return forward_call(*args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/stable-diffusion/ldm/models/diffusion/ddpm.py", line 879, in forward [rank0]:     return self.p_losses(x, c, t, *args, **kwargs) [rank0]:   File "/data2/frett/repos/DisenDiff/src/model.py", line 382, in p_losses [rank0]:     if self.controller is not None and ('<new1>' in origin_prompt[0] or '<new1>' in origin_prompt[1]): [rank0]: TypeError: 'NoneType' object is not subscriptable

Please refer to this issue3.


Segmentation fault (core dumped) when testing habitat-sim

version
System: docker with Ubuntu 16.04.7 LTS
Habitat-Sim: v0.1.7, v0.3.0
Driver: NVIDIA-Linux-x86_64-470.57.02
ERROR
I ran habitat-sim v0.1.7 and habitat-lab v0.1.7 successfully before on the same server, but the server was accidentally reset, so I tried to reinstall habitat-sim v0.1.7 again.
It came out Segmentation fault (core dumped) when testing using examply.py with Non-interactive testing.
python examples/example.py --scene data/scene_datasets/mp3d/1LXtFkjw3qL/1LXtFkjw3qL.glb

I tried installing habitat-sim v0.1.7 using conda and building from source, both of them could install successfully but came out the same error when testing:
sim_cfg.physics_config_file = ./data/default.physics_config.json
==== Initialized Sensor Spec: =====
Sensor uuid:  color_sensor
Sensor type:  SensorType.COLOR
Sensor position:  [0.  1.5 0. ]
===================================
Segmentation fault (core dumped)

I reset the
export GLOG_minloglevel=2
export MAGNUM_LOG=quiet
export HABITAT_SIM_LOG=quiet

to get the details, then it came out:
python examples/example.py --scene data/scene_datasets/mp3d/1LXtFkjw3qL/1LXtFkjw3qL.glb
sim_cfg.physics_config_file = ./data/default.physics_config.json
==== Initialized Sensor Spec: =====
Sensor uuid:  color_sensor
Sensor type:  SensorType.COLOR
Sensor position:  [0.  1.5 0. ]
===================================
WARNING: Logging before InitGoogleLogging() is written to STDERR
I1106 18:21:15.581204 26999 ManagedContainerBase.cpp:19] ManagedContainerBase::convertFilenameToJSON : Filename : default changed to proposed JSON configuration filename : default.scene_dataset_config.json
I1106 18:21:15.581239 26999 AttributesManagerBase.h:283] AttributesManager<T>::createFromJsonOrDefaultInternal  (Dataset) : Proposing JSON name : default.scene_dataset_config.json from original name : default | This file  does not exist.
I1106 18:21:15.581354 26999 AssetAttributesManager.cpp:117] Asset attributes (capsule3DSolid : capsule3DSolid_hemiRings_4_cylRings_1_segments_12_halfLen_0.75_useTexCoords_false_useTangents_false) created and registered.
I1106 18:21:15.581424 26999 AssetAttributesManager.cpp:117] Asset attributes (capsule3DWireframe : capsule3DWireframe_hemiRings_8_cylRings_1_segments_16_halfLen_1) created and registered.
I1106 18:21:15.581490 26999 AssetAttributesManager.cpp:117] Asset attributes (coneSolid : coneSolid_segments_12_halfLen_1.25_rings_1_useTexCoords_false_useTangents_false_capEnd_true) created and registered.
I1106 18:21:15.581532 26999 AssetAttributesManager.cpp:117] Asset attributes (coneWireframe : coneWireframe_segments_32_halfLen_1.25) created and registered.
I1106 18:21:15.581555 26999 AssetAttributesManager.cpp:117] Asset attributes (cubeSolid : cubeSolid) created and registered.
I1106 18:21:15.581573 26999 AssetAttributesManager.cpp:117] Asset attributes (cubeWireframe : cubeWireframe) created and registered.
I1106 18:21:15.581629 26999 AssetAttributesManager.cpp:117] Asset attributes (cylinderSolid : cylinderSolid_rings_1_segments_12_halfLen_1_useTexCoords_false_useTangents_false_capEnds_true) created and registered.
I1106 18:21:15.581678 26999 AssetAttributesManager.cpp:117] Asset attributes (cylinderWireframe : cylinderWireframe_rings_1_segments_32_halfLen_1) created and registered.
I1106 18:21:15.581708 26999 AssetAttributesManager.cpp:117] Asset attributes (icosphereSolid : icosphereSolid_subdivs_1) created and registered.
I1106 18:21:15.581733 26999 AssetAttributesManager.cpp:117] Asset attributes (icosphereWireframe : icosphereWireframe_subdivs_1) created and registered.
I1106 18:21:15.581769 26999 AssetAttributesManager.cpp:117] Asset attributes (uvSphereSolid : uvSphereSolid_rings_8_segments_16_useTexCoords_false_useTangents_false) created and registered.
I1106 18:21:15.581804 26999 AssetAttributesManager.cpp:117] Asset attributes (uvSphereWireframe : uvSphereWireframe_rings_16_segments_32) created and registered.
I1106 18:21:15.581821 26999 AssetAttributesManager.cpp:105] AssetAttributesManager::buildCtorFuncPtrMaps : Built default primitive asset templates : 12
I1106 18:21:15.582878 26999 SceneDatasetAttributesManager.cpp:23] File (default) not found, so new default dataset attributes created and registered.
I1106 18:21:15.582890 26999 MetadataMediator.cpp:47] MetadataMediator::createDataset : Dataset default successfully created.
I1106 18:21:15.651480 26999 AttributesManagerBase.h:283] AttributesManager<T>::createFromJsonOrDefaultInternal  (Physics Manager) : Proposing JSON name : ./data/default.physics_config.json from original name : ./data/default.physics_config.json | This file  exists.
I1106 18:21:15.652289 26999 PhysicsAttributesManager.cpp:27] JSON Configuration File (./data/default.physics_config.json) based physics manager attributes created and registered.
I1106 18:21:15.652305 26999 AbstractObjectAttributesManagerBase.h:175] AbstractObjectAttributesManager<T>::createObject  (Stage) : Making attributes with handle : /root/qiaohongnew/zeyu_wang/ETPNAV/ETPNav/data/scene_datasets/mp3d/1LXtFkjw3qL/1LXtFkjw3qL.glb
I1106 18:21:15.652316 26999 ManagedContainerBase.cpp:19] ManagedContainerBase::convertFilenameToJSON : Filename : /root/qiaohongnew/zeyu_wang/ETPNAV/ETPNav/data/scene_datasets/mp3d/1LXtFkjw3qL/1LXtFkjw3qL.glb changed to proposed JSON configuration filename : /root/qiaohongnew/zeyu_wang/ETPNAV/ETPNav/data/scene_datasets/mp3d/1LXtFkjw3qL/1LXtFkjw3qL.stage_config.json
I1106 18:21:15.652340 26999 AttributesManagerBase.h:283] AttributesManager<T>::createFromJsonOrDefaultInternal  (Stage) : Proposing JSON name : /root/qiaohongnew/zeyu_wang/ETPNAV/ETPNav/data/scene_datasets/mp3d/1LXtFkjw3qL/1LXtFkjw3qL.stage_config.json from original name : /root/qiaohongnew/zeyu_wang/ETPNAV/ETPNav/data/scene_datasets/mp3d/1LXtFkjw3qL/1LXtFkjw3qL.glb | This file  does not exist.
I1106 18:21:15.652529 26999 AbstractObjectAttributesManagerBase.h:181] AbstractObjectAttributesManager<T>::createObject  (Stage) : Done making attributes with handle : /root/qiaohongnew/zeyu_wang/ETPNAV/ETPNav/data/scene_datasets/mp3d/1LXtFkjw3qL/1LXtFkjw3qL.glb
I1106 18:21:15.652539 26999 AbstractObjectAttributesManagerBase.h:188] File (/root/qiaohongnew/zeyu_wang/ETPNAV/ETPNav/data/scene_datasets/mp3d/1LXtFkjw3qL/1LXtFkjw3qL.glb) exists but is not a recognized config filename extension, so new default Stage attributes created and registered.
I1106 18:21:15.652559 26999 Simulator.cpp:156] Loading navmesh from /root/qiaohongnew/zeyu_wang/ETPNAV/ETPNav/data/scene_datasets/mp3d/1LXtFkjw3qL/1LXtFkjw3qL.navmesh
I1106 18:21:15.653893 26999 Simulator.cpp:158] Loaded.
I1106 18:21:15.653921 26999 SceneGraph.h:93] Created DrawableGroup:
Segmentation fault (core dumped)

I also debugged the example.py, the error appeared when it ran the line
super().__init__(config.sim_cfg)

in
def _config_backend(self, config: Configuration) -> None:
    if not self._initialized:
        super().__init__(config.sim_cfg)        # ERROR !!!
        self._initialized = True
    else:
        super().reconfigure(config.sim_cfg)

which is in /path/to/anaconda/env//lib/python3.6/site-packages/habitat_sim-0.1.7-py3.6-linux-x86_64.egg/habitat_sim/simulator.py.
I also tried the latest version of habitat-sim, v0.3.0, using conda install. When testing, the same error came out again:
sim_cfg.physics_config_file = data/default.physics_config.json
Segmentation fault (core dumped)

By the way
The first bug I came across was the lack of libEGL.so etc, I solved these problems using #1511  as I did not have the permission to reinstall the driver:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/NVIDIA-Linux-x86_64-<version-id>

I dont know if it would cause the problem of Segmentation fault (core dumped).
❓ Questions and Help
I think this may be the problem of my server, because I ran successfully before.
Could you help me to identify the problem of my server or the direction to debug please?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.>
[
{
@.": "http://schema.org",
@.": "EmailMessage",
"potentialAction": {
@.": "ViewAction",
"target": "https://github.com/facebookresearch/habitat-sim/issues/2288#issuecomment-1932768957",
"url": "https://github.com/facebookresearch/habitat-sim/issues/2288#issuecomment-1932768957",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
@.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

Have you solved it?

no


Add grafana template dashboard

This exporter will be used certainly by a prometheus/grafana stack. As a user it would be nice to have a grafana template dashboard (in json format) as a starting base to use without too much configuration.
Here some insight related to grafana model: https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/

We can propose the json model of the dashboard in a dedicated folder named like grafana at the root of the project

Fixed by PR referenced upper, but feel free to reopen or open a new one to add or improve grafana dashboard template


Fix docker issue

:white_check_mark: No issues identified in this pull request.
Good work!

T4W FTAR Statistics

    CodeRead team introduced new quality measurement to evaluate the trailing 4 weeks First Time Acceptance Rate of Pull Requests, this PR increased your FTAR from 75.00 % to 77.78 %, good job, and for more quality improvements you can read about yellow findings.

    -

More Details

Current FTAR
77.78 %

Total Reviewed Pull Requests for the last 4 weeks
9

Passed
7

Rejected
2

        More details about how FTAR is calculated, refer to this page - FTAR - First time acceptance rate


video updates

There was an error while validating job 3f5d92d9-f478-4aa8-b19e-963b4fbbf796 Message:Error clonning repositoryDetails:System.ArgumentException: Error clonning repository ---> System.Exception: Error when trying to initialize shared repository ---> LibGit2Sharp.NotFoundException: Branch 473 not found. Available branches:
at Microsoft.DPS.Services.LibGit2SharpSourceControlProvider.GetBranch(Repository repo, String name)
at Microsoft.DPS.Services.LibGit2SharpSourceControlProvider.<>c__DisplayClass3e.b__3d()
at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.<>c__DisplayClass1.b__0()
at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func1 func)    at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction(Action action)    at Microsoft.DPS.Services.LibGit2SharpSourceControlProvider.InitializeSharedRepository(String url, IDictionary2 branches, String sharedRepoPath)
at Microsoft.DPS.Services.LibGit2SharpSourceControlProvider.VerifySharedRepository(String url, IDictionary2 branches, String tempPath)    --- End of inner exception stack trace ---    at Microsoft.DPS.Services.LibGit2SharpSourceControlProvider.VerifySharedRepository(String url, IDictionary2 branches, String tempPath)
at Microsoft.DPS.Services.LibGit2SharpSourceControlProvider.CloneRepository(String url, IDictionary2 branches)    --- End of inner exception stack trace ---    at Microsoft.DPS.Services.LibGit2SharpSourceControlProvider.CloneRepository(String url, IDictionary2 branches)
at Microsoft.DPS.Services.LibGit2SharpSourceControlProvider.CloneRepository()
at Microsoft.DPS.Services.LibGit2SharpSourceControlProvider.GetTreeAsync(String path, Boolean includeSubDirectories, String excludePath, IList1 extensionWhiteList)    at Microsoft.DPS.Commands.IdentifyDocumentsToPublish.ListSourceControlFilesCommand.Do(IDictionary2 context)
at Microsoft.LightweightJobEngine.Core.Language.JobWorkflow1.RunCommands(Guid jobId, IDictionary2 context, CancellationTokenSource cancelSignal)


Production infra plan

Brief
As we prepare to build what's currently called CDS into a more expansive end-user facing web application and set of APIs, we will begin moving this project into cloud infra (AWS).
Infrastructure-as-code will be provisioned via Architect, and crawling activity will become increasingly parallelized, writing back to the de facto blob store (S3).
Objectives

Complete a move onto AWS without:

A rewrite
Any interruption in current service
Adding any significant additional ceremony or barriers to entry for existing and new developers

Plan phases

Move crawler logic into new crawler event directory (src/events/crawler)

No changes to local workflows will be necessitated
e.g. keep using yarn start --location "Ventura County, CA, USA"
https://github.com/lazd/coronadatascraper/pull/224

Begin building out AWS-specific logic

Write cache data to S3
This in addition to the current workflows continuing to operate and publish to GitHub
(discovery)

Activate scheduled crawling events

Start writing data to S3 / database in parallel with writing to git via GitHub Actions workflows

Build out new log egress

Details tbd / discover - fire to Slack?

Update and improve local workflows

Reduce surface area and commands required to build additional scrapers

Ideally yarn dev is the only command ever needed by a crawler or scraper dev to do their work
Begin phasing out git submodules by automatically pulling down cache data from S3 into local dev environment

Update GitHub Actions

Update deploy actions to ship builds to AWS
Disable
Ensure all historical cache data is now available on S3

Later

Publish cache data back to GitHub?

We could build a simple scheduled event to pull down the data from S3 and sync it to GitHub, ensuring an off-network backup as well as a developer-friendly way off accessing our cache dataset

I think this moves us in the right direction without interrupting the current developer workflow. The work done in #224 is non-invasive and will give us a chance to run the existing deployment side-by-side with AWS until we're ready to switch.
As we do the work in step 4, we'll get to re-approach what we do with errors, warning, scraper failures, and cross-check reports. This will be a welcome chance for us increase quality, facilitate verification & validation, and build better data through improvements to how we handle lots.
Finally, as we implement step 5, the local developer workflow will actually become simpler than it is right now, so we shouldn't be complicating life for potential and existing contributors.
+💯!!!11!11!1111!!1one

Followup: https://github.com/lazd/coronadatascraper/issues/295

Closing in favor of https://github.com/covidatlas/coronadatascraper/issues/782


fix: [M3-7477] - Fix accessibility on disabled SelectRegion menu items

Description 📝
This PR addresses a bug/shortcoming of a disabled <ListItem /> within an <Autocomplete />.
The problem is that MUI treats the aria-disabled attribute in a list item as a non-focusable element.
see: https://github.com/mui/material-ui/issues/33603
It's particularly problematic in our case because we do expect to be able to convey to the impaired user the reason why an element is disabled, just like we do for any other user. One of the way to remedy this is to remove the aria-disabled attribute and use a disabled one instead. Unfortunately in the case of a <li> element it is semantically wrong and not allowed.
The approach taken in this PR is to reinstate focusability by removing the aria-disabled (while preserving the onClick behaviors - or the lack thereof) and be extra verbose with the ListItem text. While not being the cleanest solution, it alows us to not break accessibility while waiting for MUI v6 or a proper fix to v5.
Changes  🔄

Restore accessibility to a disabled ListItem within Autocomplete
Handle onClick behavior to prevent regressions
Style item as a disabled one

Preview 📷
There is (or should be) no visual change introduced by this PR. The changes should be tested via VoiceOver or other related SR technology.
How to test 🧪
Prerequisites

pull code locally, have the DC Get Well flag and MSW turned on

Reproduction steps

On develop branch, try navigating the RegionSelect with voice over and keyboard. Notice disabled items are skipped.

Verification steps

Navigate (for instance) to http://localhost:3000/volumes/create
Turn on voice over
Navigate the region select with the keyboard
Confirm The disabled menu item read by the SR technology includes the copy related to the DC status

As an Author I have considered 🤔
Check all that apply

[ ] 👀 Doing a self review
[ ] ❔ Our contribution guidelines
[ ] 🤏 Splitting feature into small PRs
[x] ➕ Adding a changeset
[ ] 🧪 Providing/Improving test coverage
[ ] 🔐 Removing all sensitive information from the code and PR description
[ ] 🚩 Using a feature flag to protect the release
[ ] 👣 Providing comprehensive reproduction steps
[ ] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[ ] 📱 Providing mobile support
[x] ♿  Providing accessibility support

@coliu-akamai the safari voiceover issue isn't much of a concern to me but the sorting one on FF is odd so I'll make a ticket for it


type: simplify Visitor definition

The definition of Visitor interface is very long and error-prone that it might(or, have already) lost update with changes made on ASTNode. It's better to automatically generate at least some of the attribute of the Visitor interface if possible. Currently, I can't think of a solution yet. @Leeleo3x Maybe you have some idea?

It is true that maintaining the typings for a javascript library is tedious and error-prone. I don't know any good solution for this. Rewriting the whole project in Typescript could be a solution and you may want to check antlr4ts https://www.npmjs.com/package/antlr4ts.


#216 screenshot alias

@noubar
I will replace keyword behavior completly from screenshot creation into library.
All keywords contains a FlaUIError handler if this will be raised automatic screenshot module will be used. So all listener logic will be removed in future scope.

@Nepitwin
ok it sounds very good but until that day we could merge this one in. because we are releasing the library, so the usage of alias will be needed for couple releases and then not for other releases. No need to complicate things on library users.

@noubar
PR https://github.com/GDATASoftwareAG/robotframework-flaui/pull/219 removed alias usage and minimized robotframework liustener logic on a minimum. Screenshots will be automatically made on FlaUI Error now.


PDF Manipulation / Creation

From extracted content #63 #35  #64 it should be possible to create PDF and add hidden text layers for representation, export and search. pdf-lib looks like a suitable cross platform basis for this endeavor.
For printing #7 #27 the use of PDFMake might make sense especially for Notes.

https://www.petitmonte.com/pdfdesigner/en/
https://www.petitmonte.com/pdfdesigner/en/combine.html

On iOS possible via Quicklook as of iOS 13 #130

PDF/A

https://github.com/matteosecli/pdf2archive
https://pdfbox.apache.org/1.8/cookbook/pdfacreation.html
https://stackoverflow.com/questions/1659147/how-to-use-ghostscript-to-convert-pdf-to-pdf-a-or-pdf-x/39420880


Implement SSA builder

Problem
Similar to Cranelift, the SSA generation pass could be modularized by using an SSA builder pattern.
Proposed solution
Implement an SSA builder which can in turn be tested separately without needing to go through the whole compiler pipeline.
Alternatives considered
No response
Additional context
No response
Submission Checklist

[X] Once I hit submit, I will assign this issue to the Project Board with the appropriate tags.

This has been completed and lives in ssa_gen


Not really issues -- more like a couple questions

Android typically traps ANRs (at least for touch events) after 500ms.  By having our ANR timeout higher than that is it possible we could ANR, present a wait/close message, answer close, before the watchdog's ANR event fires?
My thought is yes.  Do you see any ramifications about running with a 500 ms timeout in production?  I'm only talking about the main thread monitor.   I do my own sleeps in other threads that would definitely trip it if I were monitoring them too.
The next comment is really more an annoyance with Google.  I absolutely hate not being able to interrupt and join ANRWatchDog onTerminate() because for whatever reason Google refuses to give us a means of (easily / logically) determining when an application closes.
I have the following in my onTerminate() but I know it will never be called.  I'm guessing this why you simply just create an anonymous instance in all your examples, correct?
    anrWatchDog.interrupt();

    try {
        anrWatchDog.join();
    } catch (InterruptedException e) {
        Crashlytics.logException(e);
    }

Android detects ANRs after 5 seconds, same as this library: "While your activity is in the foreground, your app has not responded to an input event or BroadcastReceiver (such as key press or screen touch events) within 5 seconds." https://developer.android.com/topic/performance/vitals/anr.html


RouteNotFound exception

Hi Ben,
sometime I'll get RouteNotFound exception and I don't know why. If you try with italy db using car profile and the following coordinates you will get a RouteNotFound Exception even if the TryResolveConnect returns ok.
How could I solve this problem?
`
        var router = new Router(routerDb);
        var lat = new double[] { 42.430149000000, 42.040694900000 };
        var lon = new double[] { 12.100029000000, 11.936966800000 };

        IList<RouterPoint> rp = new List<RouterPoint>();

        for (int i = 0; i < lat.Length; i++)
        {
            var r = router.TryResolve(profile, (float)lat[i], (float)lon[i], 100);
            if (r.IsError)
                Console.WriteLine(string.Format("Error position: {0}", r.ErrorMessage));

            r = router.TryResolveConnected(profile, (float)lat[i], (float)lon[i], maxSearchDistance: 100);
            if (r.IsError)
                Console.WriteLine(string.Format("Position not connected: {0}", r.ErrorMessage));

            rp.Add(r.Value);

        }

        var ret = router.TryCalculate(profile, rp.ToArray());

`

Same Here with Spain db

@kevin-work do you need something else from my side?

@alecava58 Which line are you actually getting the exception?

can you see the image?

This is the cycle that fails:

@alecava58 Which line is it happening in your code?

This is 99% sure this location that is in error. This however should he caught by ResolveConnected, will check what's going on there:
http://geojson.io/#id=gist:anonymous/1dfd4c8a71664b82c0feda16f5a4215d&map=18/42.04054/11.93726


Karma does not pick up files from folders containing hyphens in their names

Expected behavior
A test should be picked up even if it is under a folder containing a hyphen in the name
Actual behavior
Test is not picked up
Enviroment Details
Version: 0.13.22
Config: files: [
{ pattern: "test/specs/*/.js", included: false },
],
Steps to reproduce the behaviour

Add a file to a sub-folder containing a hyphen in the name
Run Karma: Test is not picked up
Rename folder and remove hyphen.
Rerun karma: Test is now picked up

I'm pretty sure this was fixed in a newer version since it's not happening on my end. Try updating your karma to a newer version and see if you can reproduce it.

I have not had this problem either - this can probably be closed as fixed in a newer release.

No feedback in a year, assuming fixed. Closing.


feat(docker): finalize Docker setup with Bun runtime and PostgreSQL

Docker Support for Eventblend API Server
This document outlines the Docker support added to the Eventblend API Server, enabling easy setup and deployment in containerized environments.
Changes Made

Added Dockerfile for building the application with Bun runtime.
Created docker-compose.yml for orchestrating the app and PostgreSQL database services.
Updated src/index.ts to include health check and root routes.
Modified .env and .env.example files for Docker compatibility.
Updated package.json scripts for Docker environment.

How to Use Docker Setup
Prerequisites

Docker
Docker Compose

Running with Docker

Clone the repository:
git clone https://github.com/harshmangalam/eventblend-api.git
cd eventblend-api

Create a .env file from the .env.example:
cp .env.example .env

Build and run the Docker containers:
docker-compose up --build

In a new terminal, run Prisma migrations:
docker-compose exec event-blend-server bunx prisma migrate deploy

The application will be available at http://localhost:3000

Stopping the Docker Containers
To stop the running containers:
docker-compose down

To stop the containers and remove the volumes:
docker-compose down -v

Testing

Access the root route at http://localhost:3000 to see the welcome message.
Check the health status at http://localhost:3000/api/health to verify database connectivity.

Additional Notes

The Docker setup uses the official Bun image for improved performance.
PostgreSQL database data is persisted using a named volume.
Environment variables are properly passed to the container for easy configuration.

Accessing the Database
To access the PostgreSQL database directly:
docker-compose exec db psql -U postgres -d eventblend

Viewing Logs
To view the logs of the event-blend-server:
docker-compose logs event-blend-server

For real-time logs:
docker-compose logs -f event-blend-server

This Docker setup simplifies the development and deployment process for the Eventblend API Server, ensuring consistency across different environments.

have a conflict.


docker: fixed documentation and added 0.13.32

docker:
new factorio version and documentation

Oh, and I'm sorry to spam you with so much stuff :)

LGTM
No worries I appreciate the help :)


Object based image analysis using matlab

Article checklist
Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes #4204

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

Hi, @alpho361. Welcome to the EngEd program.
To get your article in a ready to review state, please rename your article to index.md not index,md and your image file extensions to lowercase
Thanks,
Louise - Content Moderator

@louisefindlay23 Changes made.

Thanks, @alpho361 but you also need to rename the image extensions themselves (in the image filenames) as well as the index.md file.

@louisefindlay23 The extension (PNG) is by default, i have tried changing it in the image filename and it seems unchangeable.

Images can only be renamed using the command line. See this tutorial for instructions.

@louisefindlay23  Changes made.

Thanks, @alpho361. Your article is now ready for review. One of our peer reviewers will review your article as soon as one becomes available.

@section-engineering-education/peer-reviewers
If anyone is available to review this one after they finish up any others in the queue. 👍

@alpho361, a nice article, but you need to add more value by explaining each code snippet to help readers follow along!

Plagiarism check done ✅

@jumamiller Changes mede

@jumamiller Changes made.

@jumamiller Changes made.

I asked you to explain code snippets for the third time and you've not updated. I'll close this article for now. When you have finished explaining all the snippets, let me know to reopen the article!

@jumamiller Changes made.

Opening this article to check for latest commits as pointed above!

@jumamiller Changes made.

Not even a single code explained? did you follow the requirements?

@jumamiller  Changes made.

@alpho361, kindly work on the grammar. See the above commits to improve your articles in the future.

I'll close for now untill all changes are done!

@jumamiller Can you please reopen the PR, have made changes.

Can you create a new PR and ping the peer reviewer. Thanks.

@jumamiller Can you please reopen the PR, have made changes.

reopening to reflect commits

jumping on this one

👍 overall nice work - very detailed and straight forward tutorial
Please review and suggestions/changes made by your peer reviewer and/or myself during a final review.


Should Framebuffer be Sync?

What I wanted to do in my kernel was that after boot it would read the FramebufferResponse and store the first Framebuffer it contained into a global static, which would in turn be used by my print function.
But I couldn't do that since Framebuffer is not Sync and so can't be put in a global static, and you can't use unsafe to get past this either. In fact FramebufferResponse has unsafe impl Sync on it, but the Framebuffer struct it returns does not.
I think marking it as Sync should be fine, unless I'm missing something

Since none of FrameBuffer's methods dereference its pointer, it should be safe to mark it as both Send and Sync. Right now, I just use a wrapper struct to do this:
pub struct Screen<'a> {
    pub fb: Framebuffer<'a>,
}
unsafe impl Send for Screen<'_> {}
unsafe impl Sync for Screen<'_> {}


Adjust titles of photo blocks

From Jeff's Email (issue #36)
The area on the layout with the photo blocks titles EARN A BIKE, FIX YOUR BIKE, ABANDONED BIKES, etc, is for our most important or primary content. The area on the layout under that is for secondary content. Could be specific bikes for sale, could be upcoming events, could be community events we want to plug. The photos need to be smaller with more room for copy because these may or may not link to additional web pages. It could be single horizontal blocks with photos on the left and copy on the right, as shown, or two column blocks. The main point is, the photos will be smaller and there will be more copy for items listed in this area.

I think we should forego the plugin stuff in favor of Elementor for highly dynamic/customizable things like this.


Fix circular imports

when trying to import modules inside lib from a tool script:
Traceback (most recent call last):
  File "/Users/ouzielslama/Work/counterparty/counterparty-core/counterparty-core/tools/genapidoc.py", line 1, in <module>
    from counterpartycore.lib.api.routes import ROUTES
  File "/Users/ouzielslama/Work/counterparty/counterparty-core/counterparty-core/counterpartycore/lib/api/routes.py", line 1, in <module>
    from counterpartycore.lib import (
  File "/Users/ouzielslama/Work/counterparty/counterparty-core/counterparty-core/counterpartycore/lib/transaction.py", line 20, in <module>
    from counterpartycore.lib import (
  File "/Users/ouzielslama/Work/counterparty/counterparty-core/counterparty-core/counterpartycore/lib/gettxinfo.py", line 10, in <module>
    from counterpartycore.lib.kickstart.blocks_parser import BlockchainParser
  File "/Users/ouzielslama/Work/counterparty/counterparty-core/counterparty-core/counterpartycore/lib/kickstart/__init__.py", line 13, in <module>
    from counterpartycore import server
  File "/Users/ouzielslama/Work/counterparty/counterparty-core/counterparty-core/counterpartycore/server.py", line 21, in <module>
    from counterpartycore.lib import (
  File "/Users/ouzielslama/Work/counterparty/counterparty-core/counterparty-core/counterpartycore/lib/blocks.py", line 42, in <module>
    from counterpartycore.lib.gettxinfo import get_tx_info  # noqa: E402
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'get_tx_info' from partially initialized module 'counterpartycore.lib.gettxinfo' (most likely due to a circular import) (/Users/ouzielslama/Work/counterparty/counterparty-core/counterparty-core/counterpartycore/lib/gettxinfo.py)

done


"Unable to connect to the Parse API" error thrown when trying to call a Cloud function with a Parse Query.

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
-[X] You've met the prerequisites.
-[X] You're running the latest version of Parse Server.
-[X] You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
Running Parse Server on Localhost.
Downloaded code from Amazon Elastic Beanstalk
Steps to reproduce
Running any cloud function with a query. Normal cloud function works well. Called using node script.
Logs/Trace
I found other issue https://github.com/ParsePlatform/parse-server/issues/651#event-567422582 which is currently closed. However, even after following the steps and setting up serverURL problem doesn't resolve. XHR failed with status 0.

@gfosco you worked on previous issues. Can you help resolve this one.

Can you provide the code for your function? (or the whole cloud code file...)

Discussed over email, problem is the script is overwriting the Parse global which definitely breaks everything.

I am using self hosted parse-server and not able to use cloud functions since I have enabled HTTPS, if I revert it back to HTTP it works as expected.
Also he problem is only with those cloud function which have Parse.Query, if i create a function simply return "Hello" as response it works on both HTTP and HTTPS.
I am getting following error message when run a cloud function which have Parse.Query code.
{
"code": 141,
"error": "XMLHttpRequest failed: "Unable to connect to the Parse API"--100"
}
can anyone tell me how can I fix this?

I am also facing the same issue. Any pointers with that ? w3care25, did you end up fixing it ?

I am using self hosted parse-server and not able to use cloud functions since I have enabled HTTPS, if I revert it back to HTTP it works as expected.

Also he problem is only with those cloud function which have Parse.Query, if i create a function simply return "Hello" as response it works on both HTTP and HTTPS.
I am getting following error message when run a cloud function which have Parse.Query code.
I have the same problem!! Any way to solve this??

+1

@chandanthakur You need to add  process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; in you instance file of parse server if you are running into similar issue

@ckarmy You need to create an instance with SSL something like below:
_var privateKey = fs.readFileSync( 'path to ssl key ( .key ) file' );
var certificate = fs.readFileSync( 'path to ssl crt ( .crt ) file' );
var  cabundles = fs.readFileSync( 'path to ssl cabundle ( .cabundle ) file');
https.createServer({
key: privateKey,
cert: certificate,
ca: cabundles
}, app).listen(port);_
Don't forgot to add var https = require('https');

@w3care25 adding in the process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0" line still doesn't fix it. Any other ideas? thanks.

If you have configured everythigng correctly. You may need to restart your server after adding this line.
If you  are still having this after  server restart, Could you please share you instance file code ( after replcing your confidential credentails with dummy details)?

@w3care25 I have restarted the server but I am still getting the same results.
// SERVER_URL is set to https://APPNAME.herokuapp.com/parse through Config Variables
// MONGODB_URI is set through Config Variables

process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";

var databaseUri = process.env.DATABASE_URI || process.env.MONGODB_URI;

if (!databaseUri) {
  console.log('DATABASE_URI not specified, falling back to localhost.');
}

var api = new ParseServer({
  databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
  cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
  appId: process.env.APP_ID || 'xxx',
  masterKey: process.env.MASTER_KEY || 'xxx', //Add your master key here. Keep it secret!
  serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse',  // Don't forget to change to https if needed
  liveQuery: {
    classNames: ["Posts", "Comments"] // List of classes to support for query subscriptions
  }
});

var app = express();
app.use('/public', express.static(path.join(__dirname, '/public')));
var mountPath = process.env.PARSE_MOUNT || '/parse';
app.use(mountPath, api);

//Required to receive JSON body from POST
app.use(bodyParser.json()); // support json encoded bodies
app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies

// Parse Server plays nicely with the rest of your web routes
app.get('/', function(req, res) {
  res.status(200).send('I dream of being a website.  Please star the parse-server repo on GitHub!');
});

// This will enable the Live Query real-time server
var port = process.env.PORT || 1337;
var httpServer = require('http').createServer(app);
httpServer.listen(port, function() {
    console.log('parse-server-example running on port ' + port + '.');
});
ParseServer.createLiveQueryServer(httpServer);

Hitting the sample hello function works but all of mine return the XMLHttpRequest failed: \"Unable to connect to the Parse API\"--100 error.
Thank you very much for your help.

backup you instance file and try following code
`var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var app = express();
var fs = require('fs');
var api = new ParseServer({
databaseURI: 'mongodb://localhost:27017/dev', // Connection string for your MongoDB database
cloud: '/home/myApp/cloud/main.js', // Absolute path to your Cloud Code
appId: 'myAppId',
masterKey: 'myMasterKey', // Keep this key secret!
fileKey: 'optionalFileKey',
serverURL: 'http://localhost:1337/parse' // Don't forget to change to https if needed
});
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
// Serve the Parse API on the /parse URL prefix
app.use('/parse', api);
app.listen(1337, function() {
console.log('parse-server-example running on port 1337.');
});`
Make sure you are not accessing you sever with https (SSL enabled). If you need to access your server   with https then you will have to add following
`var https = require('https');
var privateKey = fs.readFileSync( 'path to ssl.key' );
var certificate = fs.readFileSync( 'path to ssl.crt' );
var  cabundles = fs.readFileSync( 'path to ssl.cabundle');
https.createServer({
key: privateKey,
cert: certificate,
ca: cabundles
}, app).listen(1337);
`
and remove
`app.listen(1337, function() {
console.log('parse-server-example running on port 1337.');
});``

@w3care25 Im hosting this on heroku. Wouldn't serverURL: 'http://localhost:1337/parse' and databaseURI: 'mongodb://localhost:27017/dev' point to my local ?

You can use Heroku credentials here

@willyyang were you able to fix your issue ?

@w3care25 I'm looking for another alternative still because I don't to buy a certificate


How does MapCaller handle multiple mapping?

When you run bwa mem etc each mapped read in given a mapping quality (MAPQ). In bwa a MAPQ=60 means it was uniquely mapped, and MAPQ=0 means it mapped to >1 location equally well.
What does MapCaller do?
Can I only use uniquely mapping reads? In variant calling in bacteria we only want those, because multimapping reads introduce false-positive SNPs.

Don't worry about that. MapCaller only uses unique alignment for variant calling. For those reads with multiple alignments, they are used to annotate which reference regions are duplication (i.e., repetitive). We infer CNVs according to duplication regions. But I need more time to figure out how to define those regions.

So for the UnMapped/Gap regions - they are where no reads align, not even multimap reads?
https://www.internationalgenome.org/wiki/Analysis/Variant Call Format/VCF (Variant Call Format) version 4.0/encoding-structural-variants/
##ALT=<ID=CNV,Description="Copy number variable region">
##ALT=<ID=DUP,Description="Duplication">

Have fun :-)

Hi. I forgot to check the multi-mapping when identifying unmapped/gap regions. I'll correct this error and only report gaps whose size >= 50bp.
A CNV could be a large deletion or a multiple-copy (duplication) of a region. It seems there is ambiguity between CNV and DUP.

I'll correct this error and only report gaps whose size >= 50bp.

Can you make this a command line parameter please?
When aligning reads to bacterial reference genomes we want to know every unmapped base.

Okay, I'll add one more option to set the size threshold of unmapped regions. However, some unmapped regions are due to deletion events. In such cases, they will not be reported.

Hi, the argument is "-min_gap" for specify the minimal gap size for unmapped regions. Please update to v<IP_ADDRESS>.

But the deletion events are called as variants still?

Yes, deletions are called. An unmapped region will be reported if it is not overlapped with a deletion event.


Type 'keyof T' does not satisfy the constraint 'string'.

TypeScript Version:  3.0.0-dev.201xxxxx
Issue still happens on dev version.

Search Terms: keyof T
Code
I am getting this error in Typescript 2.9.
(106,55): Type 'keyof T' does not satisfy the constraint 'string'.
  Type 'string | number | symbol' is not assignable to type 'string'.
    Type 'number' is not assignable to type 'string'.

This is the line that deals with keyof T in the react router types index.d.ts
type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never, [x: number]: never })[keyof T]>;

Expected behavior:
When I used Typescript 2.8 this error did not show up. However, when I updated Typescript the error showed up. The react router types should work properly like in 2.8.
Actual behavior:
I am getting the error above.
Playground Link:
No link but I am using react router with Typescript.
Related Issues:
No related issues.

Breaking change since 2.9: https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#keyof-now-includes-string-number-and-symbol-keys

The only solution as of now is to use a flag and disable this new behaviour. Fixing the packages by hand is senseless.
tsconfig.json
"keyofStringsOnly": true

I'm having this issue too, and I don't understand what's going on well enough to resolve it.
Most packages seem to have updated their typings to avoid this, including react-router. However, some dependencies seem to come with their own @types dependencies, as shown in my error case:
Failed to compile.

[at-loader] ./node_modules/@types/react-router-redux/node_modules/@types/react-router/index.d.ts:106:55
    TS2344: Type 'keyof T' does not satisfy the constraint 'string'.
  Type 'string | number | symbol' is not assignable to type 'string'.
    Type 'number' is not assignable to type 'string'.

As you can see, the error is coming from react-router-redux's own @types dependency, which I was surprised existed in my project hierarchy to begin with...
react-router has updated their types for TS 2.9, however the typing file for react-router that is within react-router-redux in this error message (./node_modules/<EMAIL_ADDRESS>does not have this update. I don't see a place in the react-router-redux package.json where I could try and fix this, so I'm not sure where this older version of the @types file is coming from. Does anyone know?
My project does not even directly depend on the @types/react-router it turns out, though I tried adding the updated version as a direct dependency to resolve this by adding "@types/react-router": "^4.0.27", to my "dependencies" list. That didn't work; I ended up with two entries in my yarn.lock:

"<EMAIL_ADDRESS>  version "4.2.6"
  resolved<EMAIL_ADDRESS>  dependencies:
    "@types/history" "*"
    "@types/react" "*"
    "@types/react-router" "*"

"<EMAIL_ADDRESS>  version "5.0.15"
  resolved<EMAIL_ADDRESS>  dependencies:
    "@types/history" "*"
    "@types/react" "*"
    "@types/react-router" "*"
    redux ">= 3.7.2"

"@types/react-router@*":
  version "4.0.23"
  resolved<EMAIL_ADDRESS>  dependencies:
    "@types/history" "*"
    "@types/react" "*"

"<EMAIL_ADDRESS>  version "4.0.27"
  resolved<EMAIL_ADDRESS>  dependencies:
    "@types/history" "*"
    "@types/react" "*"

Why would the "@types/react-router@*": dependency resolve to this older 4.0.23 when 4.0.27 exists (and I've added it manually?)
possibly related to https://github.com/Microsoft/TypeScript/issues/11917 but I don't really understand completely, so I could be wrong.

by way of https://stackoverflow.com/a/49126573/2544629 I figured I'd give this a shot:
rm yarn.lock
yarn

which completely wipes out your yarn.lock and regenerates it. Maybe I could have done this another way, like removing and then re-adding all packages that required "@types/react-router@*" so that package was removed, but this worked out for me.
@jjwatt99 , since it wasn't clear from your OP, you should try updating your types file for react-router by running yarn add @types/react-router . They've fixed the bug you're referring to there.

Typescript is also complaining about indexed type:
type A={[key:string]:any}
function(a:keyof A)
{
    return a.substr(1);
}

In that case, should not it be enforced to be string only ?

@npenin a string index signature also implies the type can be indexed with a number given how JS coerces property names under the hood.

Extract<keyof T, string> did the trick for me.
I found this in @j-oliveras 's post. Thx man!

I tried adding Extract but it did nothing, any ideas what I'm doing wrong?
function groupBy<T extends Record<K, PropertyKey>, K extends Extract<keyof T, string>>(
  items: readonly T[],
  key: K
) {
  return items.reduce((acc, item) => {
    (acc[item[key]] = acc[item[key]] || []).push(item);
    return acc;
  }, {} as Record<T[K], T[]>); // Still has an error at T[K]
}


Paste Special Value- Google Sheets

I have recently transitioned to Google Sheets (previously on excel)
On my spreadsheet I used to use the past special-value- addition/subtraction when in excel. But I'm finding that sheets does not have anything like this.
I was able to write a script for addition, but it will only add the first cell selected not all of the cells I selected.
So my first issue would be figuring out how to get it to change the value of all cells selected.
Second issue would be writing a script for subtraction as well.
Below is the script I had developed for addition--this script will only increase value of first cell selected not all cells selected in sheets.

Could you send your script? Can you create something on jsfiddle?

Since we have no activity, I am closing this one.


Code Update

Updated to Unity 2019.1.2f

Added Day names to the top of the calendar
Changed Day buttons to automatically generated toggles within the same toggle group
Made a helper class for DateTime
Rearranged UI

Thanks


Added hotjar script to index.html

Thanks Richo
Please resend this for the project-condra-dev branch