HA with 6pcs HASPOne is very very slowly

Hi, today I configured 6pcs of HASPOne, each witch 24 automations.
Now is WebUI of HA very very slowly. If is core slowly for running automations in house, I dont know, I will know after Sunset.
And a GUI of each HASPone is very slowly, I see it with page scrolling and re-drawing texts.
Before this update, all hasps was quick :(
Is it normaly?
I am running it on RPI as HASSIO standard install.

Are all automations running slowly?  Or just HASP-related automations?  The rPi is a good starting point for Home Assistant but the performance is pretty low, particularly in regards to storage.  What rPi hardware are you using (pi3? or if 4, which model?), and what are you using for storage on that?

I am using RPI3 B+
After one day I find, that only HASP automations working slowly. Reaction of touch on any Hasp is a long, and listing of pages is too long.
As storage is only SD card in RPI with HA image 64bit, not any other storage.

Any update on this?  Has the suggestion above made any impact in performance?

Hello. Thank you for interesting. Performance is still very low. I tried
run HA on Synoligy NAS, that has better power than RPI but with no effect
to HASP speed. Problem is only with listing between pages. Reaction to call
scenes is instant and quick. There is no problem. Problem is with quick
loading of the items on any other pages. My wifi network is working perfect
with microtik devices and I have multiple APs in my house. Fixed channels
1, 6, 11 and diferent SSIDs.
Dne pá 2. 4. 2021 21:43 uživatel Allen Derusha @.***>
napsal:

Any update on this? Has the suggestion above made any impact in
performance?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/HASwitchPlate/HASPone/issues/30#issuecomment-812682563,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASIIEIXMZBUGHKD265FUQBDTGYM7HANCNFSM4YZOV2UQ
.

Allright, so I think our next step is to figure out where things are moving slowly.  Can you post a debug log of page change process?  Looking for the whole conversation, from page select button press to the page being completely loaded.  If that looks good, then the next step will be to capture the MQTT traffic with timestamps.

Okay. As soon as possible I will write here logs from telnet and MQTT. Now, I am searching how I can get mqtt capture with timestamps from eclipse mosquitto, that run on my HA. I am still dont know how. I have only basic log in mqtt server.

If you have the mosquitto command line clients installed (sudo apt-get install mosquitto-clients), the following command will allow you to view messages with some debug info including timestamps.  Change the first few lines to match your environment.
MQTT_BROKER=hassio.local
MQTT_USER=hassio
MQTT_PASS=hassio
mosquitto_sub -h $MQTT_BROKER -u $MQTT_USER -P $MQTT_PASS -F "[\e[36m@x \e[96m@X.@N\e[39m] [\e[94mr%r:l%l\e[39m]\t\e[0m%t\t\e[1m%p\e[0m" -t "#"

Hello @aderusha . Now I am trying install mqtt command line clients, but in a terminal I get this message:
bash: sudo: command not found
I have Home Assistant as Hassio, standard instalation, not in a raspbian etc..
Please note that I am a beginner with HA, I am a programmer for industrial automation and I am an electronic engineer

I am sorry for open issue. Issue is still realy, next page on all HASPs is displayed after about 5 sec after pressing next button, but now I have not a free time for testing, I am working on long project in my work. For now, I am closing this, and I will open it later.
Thank you very much.


UserGuide.adoc: Edit user guide

Edit introduction.
Edit about this guide.
Edit quick start (installation guide).
Add User Interface walkthrough (WIP).

I will work on the UI walkthrough on another PR.
Signed-off-by: jjlee050<EMAIL_ADDRESS>

Pull Request Test Coverage Report for Build 298

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 86.507%

Totals

Change from base Build 287:
0.0%

Covered Lines:
1917

Relevant Lines:
2216

💛  - Coveralls


Invalidate should invalidate cached server load responses

Describe the bug
Based on the comment here:
https://github.com/sveltejs/kit/issues/6477#issuecomment-1256644295
it would seem like invalidate(identifier) would override cached results from a server load function. I'm having trouble reproducing that, though.
My server file looks like this
let i = 0;

import type { PageServerLoad } from './$types';

// @ts-ignore
export async function load(params) {
	console.log('LOADING');

	// const val = params.url.searchParams.get('val');
	const val = params.url.search;

	const result = {
		searchProps: 'Value ' + val + ' ' + ' CACHE TEST VALUE === ' + i++
	};

	params.setHeaders({
		'cache-control': 'max-age=60'
	});

	params.depends('search:main');

	return result;
}

and my svelte page looks like this, in part
1
2
3

Clicking around those pages does properly cache (check the CACHE TEST VALUE) - but clicking the invalidate button does not seem to work well at all. It seems to usually reload the current page, but other pages remained cached, and what's more, if I navigate back to the page I was on when I clicked invalidate, I get the old cached data, not the new data that was sent the moment I clicked invalidtae. Actually ... clicking invalidate seems to just pull cached data :\
Reproduction
The minimal repro is here: https://github.com/arackaf/booklist/tree/special/bug-repro/svelte-kit
the directory above that has a huge project around it, but that directory I've linked to contains a minimal SvelteKit app that reproduces this (ostensible) bug.
It's deployed here: https://booklist-svelte-kit.vercel.app/
Logs
No response
System Info
System:
    OS: macOS 12.6
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 149.78 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.14.2 - /usr/local/Cellar/nvm/0.38.0/versions/node/v16.14.2/bin/node
    Yarn: 1.22.17 - /usr/local/Cellar/nvm/0.38.0/versions/node/v16.11.1/bin/yarn
    npm: 8.18.0 - ~/Documents/node_modules/.bin/npm
  Browsers:
    Chrome: 107.0.5304.110
    Firefox: 107.0
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.89
    @sveltejs/kit: next => 1.0.0-next.557
    svelte: ^3.44.0 => 3.53.1
    vite: ^3.1.0 => 3.2.4

Severity
blocking all usage of SvelteKit
Additional Information
No response

Is the request here that invalidate() be able to override the browser's own cache of the responses from endpoints? There's no API for that. Are you imagining this working by automatically adding some sort of cache busting query params to the request URLs?

Honestly not sure how it would work. From Rich's comments in the linked issue, it sounded like maybe there was a client-side ttl being stored. I thought maybe, after invalidation a fetch with a no-cache option might be used on the next data load? Of course that wouldn't help if the user reloaded the page and got a new ttl value sent down, resetting everything.
If this is by design and expected by all means close. I just thought this would be supported.


Added Python instructions to proto README.

Also cleaned up some whitespace and long lines.

LGTM.  Feel free to merge.


Add underscore support

While there still doesn't seem to be a universal convention for using underscores versus dashes in node files, I prefer the underscore notation. Unfortunately, vows only supports test files that end in -test or -spec. This code adds logic to allow either a dash or underscore.
As part of this fix, I noticed that the vows watch functionality wasn't working entirely as it should. Investigating it revealed that all files in the test directory were being loaded, regardless of whether the file name ended in a dash (or underscore) test/spec. Since I needed to fix the watch logic to support underscores anyway, I also added a fix for this issue.
Finally, the testInherit test was not loading the lib version of vows, but rather the global system vows, so there's a quick change there.

This looks good. Cherry-picked into master.


Update Hue IA to Dataproc 1.1

I'm assuming this is a feature request for 1.2 -- going to close as a dup of #135


Broken link from the forum

Describe your problem and how to reproduce it:
There is a broken link to the MDN docs.

Current link
Might be a correct link

Add a Link to the page with the problem:
freeCodeCamp Challenge Guide: Implement map on a Prototype
Tell us about your browser and operating system:

Browser Name: google Chrome
Browser Version:
Operating System: MacOS

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):

@BoyeongYoon I have fixed this issue.  In the future, please create a forum topic under the Contributors category for anything to do with forum topics related to curriculum hints/solutions.  The forum content is separate from the freeCodeCamp repo, so it is best to alert mods under that category instead of creating a GitHub issue.
Thank you for letting us know about this problem.  I am closing this issue, since it is now resolved.

@BoyeongYoon I have fixed this issue. In the future, please create a forum topic under the Contributors category for anything to do with forum topics related to curriculum hints/solutions. The forum content is separate from the freeCodeCamp repo, so it is best to alert mods under that category instead of creating a GitHub issue.
Thank you for letting us know about this problem. I am closing this issue, since it is now resolved.

I will create a forum topic in the future for this kind of issue. Thank you.


Fixed OTA node

TypeError: bridgeNode.registerOtaNode is not a function
There got some code lost while i moved the mqtt stuff into its own node. I added the missing code again and i'm updating overnight.

it is not completely fixed. i will run a diff again and have a look what's missing

Should be fixed. OTA is running right now. If I can't see any errors during this update, it will be merged and released


[IRGen] Emit name data for unused coverage counters

Previously, if all the coverage counters for a given SIL function were optimized out, we would have dropped the coverage map on the floor, leading to inaccurate coverage reports in -O. However LLVM allows us to emit the name data for the coverage maps separately by defining an __llvm_coverage_names global with the name data, which is picked up by its instrumentation lowering pass. Use this to continue to emit coverage maps for functions that do not get emitted.
This then allows us to avoid eagerly emitting coverage mapped functions, allowing them to be lazily emitted as needed even under -Onone.
rdar://99813754

@swift-ci please test

@swift-ci please test macOS

https://github.com/apple/llvm-project/pull/5316
@swift-ci please test macOS

https://github.com/apple/llvm-project/pull/5316
@swift-ci please test macOS


[Request] Expose renderer.adjust_to_aspect_ratio

I think this, or something similar, would make a good addition to the API. I've come across a situation where I'd like to know the rendered size of an image (accounting for user settings) before I actually render it.
Given that all the information this function needs is exposed to the user in some way or another before render is called, I could just duplicate this logic in my own plugin. But then if this logic changes (which it may, given that it currently squishes images to align to the terminal grid) then I (and potentially others) would need to change things.
This change could be as simple as adding the function to the return statement in renderer.lua, or we could potentially make a nicer function on image itself that calculates the same information, such as img:rendered_size() without needing to take a bunch of arguments.
Thoughts?

:fire: Good idea to expose those, I moved them into utils in https://github.com/3rd/image.nvim/commit/d7e9845b14e4fbdd0136e33d59b5b2b7d5414bef
local utils = require("image/utils");

utils.offsets.get_global_offsets(window.id)
utils.math.adjust_to_aspect_ratio(term_size, image.image_width, image.image_height, width, height)

Something like img:get_simulated_rendered_size() would be complicated to do now (should rework image.rendered_geometry as well), but it's something to consider at the next refactor.
Working on a good API for the plugin, right now it's a messy first implementation, but it will get better soon!


fix: Table crashes when column width is greater than component width

Description

When the table's column width is greater than the component width the table widget crashes.

Links to Notion, Figma or any other documents that might be relevant to the PR

PR fixes following issue(s)
Fixes #25166
Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Bug fix (non-breaking change which fixes an issue)

Testing
How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[x] Manual
[ ] Jest
[ ] Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

/build-deploy-preview env=release

Verified, PR looks good to me!

/ci-merge-check


Feature/event bus

Codecov Report

Merging #6 (7932a18) into develop (85b0378) will decrease coverage by 13.30%.
The diff coverage is 33.48%.

@@             Coverage Diff              @@
##           develop       #6       +/-   ##
============================================
- Coverage    93.01%   79.71%   -13.31%
============================================
  Files           70       79        +9
  Lines         2019     2376      +357
  Branches       295      307       +12
============================================
+ Hits          1878     1894       +16
- Misses         110      447      +337
- Partials        31       35        +4

Impacted Files
Coverage Δ

...Contrib.BasicAbility.Dcc/ConfigurationApiClient.cs
84.46% <ø> (ø)

...Contrib.BasicAbility.Dcc/ConfigurationApiManage.cs
100.00% <ø> (ø)

...Ability.Dcc/Internal/DccConfigurationRepository.cs
63.79% <ø> (-32.76%)
:arrow_down:

...b.Data.Contracts.EF/ServiceCollectionExtensions.cs
100.00% <ø> (ø)

...rationEvents.Dapr/IntegrationEventHostedService.cs
0.00% <0.00%> (ø)

...Dapr/Processor/DeleteLocalQueueExpiresProcessor.cs
0.00% <0.00%> (ø)

...r/Processor/DeletePublishedExpireEventProcessor.cs
0.00% <0.00%> (ø)

...tionEvents.Dapr/Processor/InfiniteLoopProcessor.cs
0.00% <0.00%> (ø)

....IntegrationEvents.Dapr/Processor/ProcessorBase.cs
0.00% <0.00%> (ø)

...ationEvents.Dapr/Processor/RetryByDataProcessor.cs
0.00% <0.00%> (ø)

... and 35 more

Continue to review full report at Codecov.

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


Show volume options for docker volume inspect

- What I did
This fix tries to address the issue raised in #25545 where volume options at the creation time is not showed up in docker volume inspect.
- How I did it
This fix adds the field Options in Volume type and persist the options in volume db so that volume inspect could display the options.
- How to verify it
This fix adds a couple of test cases to cover the changes.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
This fix fixes #25545.
Signed-off-by: Yong Tang<EMAIL_ADDRESS>

Thanks! This will need docs changes once we're past code review.
Also (after this PR), now that we store actual options, we may be able to better detect conflicting options, and address https://github.com/docker/docker/issues/16068
ping @cpuguy83

Design OK.

Thanks @cpuguy83 for the review. The PR has been updated. Please let me know if there are additional issues.
Thanks @thaJeztah for the reminder. I will update the docs once code review is done. Will also take a look at #16068 and see what we could do with it.

LGTM

@thaJeztah This PR has been rebased with docs updated. Please take a look and let me know if there are any issues. (Will try to have another PR for #16068 later)

Rebased the PR to fix the merge conflict. Also updated the description to include fixes #27493 (See #27493).

ping @vdemeester PTAL

@yongtang needs a rebase though :angel:

Thanks all for the review! The PR has been rebased and all tests passed. Ping @vdemeester.


Allow browser caching of ORES API responses

Following up on https://github.com/wiki-ai/ores/issues/45#issuecomment-122380069, it would be nice if some Cache-Control headers were added to the response by the ORES API web service.
Right now when making the same request multiple times it reaches to ORES at Wikimedia Labs each time. Perhaps something basic like Cache-control: public, maxage=300.
In addition (or alternatively) output an E-Tag header (e.g. set to he digits of a SHA1 digest of the JSON output - or something more sophisticated). This way browsers will pass it back in the form of If-None-Match, which the application can respond to by short-circuiting the response as 304 Not Modified - which saves a bit of bandwidth.
The latter has the benefit of working regardless of any fixed max-age (e.g. during first 5min the browser will use its cache without server roundtrip. After 5 minutes, the next request goes to the server with If-None-Match header and either gets back a short 304 response indicating the cache can be re-use, or it will use contents of the fresh 200 OK response).

It seems this is still the case. And appears intentional, based on #165.
response.headers['Cache-Control'] = \
           "no-store, no-cache, max-age=0"`

/cc @halfak

Thanks for the report!  Caching here is weird because we need to be able to communicate when a model version changes that the cache should be renewed.  Do you think we could somehow provide a different cache key or something like that when a model changes?  I'm not clear on how browser caching works.

See https://phabricator.wikimedia.org/T251004


Expand/collapse section by clicking anywhere on the header

E.g. I tried to expand "Search and Compare" by clicking on the text

That sounds useful, but that widget died in the current version. It was replaced by the run search (e.g. here) which asks the backend for help and can therefore actually search across all known runs.
I hope that was what you used "Search and Compare" for?

presses Ctrl+F5 Ah, looks great! I was able to find my commit, though what I actually wanted to do is to look at a single commit, which the UI doesn't immediately make available.

That's an interesting point.

You shouldn't expect end users to know the difference between the two :) ... but yes, I was looking for a run given the commit message, or at least I was hoping it had a run. I found it via the graph instead.

Currently only runs can be searched, as you can't compare commits without one. Having lots of irrelevant results in the compare field search didn't feel right.
Searching a single commit/tar is probably orthogonal? You don't necessarily want to compare it with anything (else you'd use the compare page) but you might want to see its detail page. If you change your mind then, you can always compare it from there.

Yes, now that it's not called "Search & Compare" anymore, there could be a separate "Search Run" functionality


Auth.java: Inconsistent usage of the final keyword degrades usability.

In Auth.java, we find several final methods, but also non-final methods.
Examples final:

https://github.com/onelogin/java-saml/blob/master/toolkit/src/main/java/com/onelogin/saml2/Auth.java#L777
https://github.com/onelogin/java-saml/blob/master/toolkit/src/main/java/com/onelogin/saml2/Auth.java#L801

Examples non-final:

https://github.com/onelogin/java-saml/blob/master/toolkit/src/main/java/com/onelogin/saml2/Auth.java#L612
https://github.com/onelogin/java-saml/blob/master/toolkit/src/main/java/com/onelogin/saml2/Auth.java#L672

This makes it overly complicated to write unit tests for our integration with Onelogin using Mocks (cannot mock final methods). For sure, there are ways to work around this, but before we start working around this circumstance, I would like to understand the rationale behind and/or whether you are willing to adapt this (preferably remove 'final').
Thx a lot!

Is just to prevent overrides on some methods that should not be overridden.
Related to unit test, The toolkit contains a lot of them. What are you trying to achieve?

It's basically about Unit tests. If I have code like:
 public void login() {   Saml2Settings settings = buildSamlSettings();   Auth auth = authenticateUsingResponse(settings);   if (!auth.isAuthenticated()) {     // do sth   } }
And I want to write a Unit test, I would usually use a mock of the Auth class. And just make sure that isAuthenticated is called. Since the isAuthenticated method is final I can't do that. At least not with Mockito. I could work around the issue by using an incubating feature of Mockito or by using another library or reflection. But that isn't really a nice way to solve the problem.
I see your point with not overriding some core api methods, but that makes for me only sense for  projects not used by external parties, as in my own project I can still decide to remove the final keyword. I guess for public libs it doesn't make to much sense in my eyes.
PS:
Don't get me wrong, for the core classes this would make much more sense to me. And I do use final in internal projects too.


forbid-prop-types w/ es6 classes

forbid-prop-types does not work when propTypes are declared using an es6 static member:
  static get propTypes() {
    return {
      store: PropTypes.object.isRequired,
      history: PropTypes.object.isRequired,
      DevTools: PropTypes.func.isRequired
    };
  }

...however, display-name still works correctly, when using a similar es6 notation:
  static get displayName() {return 'Root';}

I suppose both rules work with the following syntax  (sans getter):
  static displayName = 'Root';

  static propTypes = {
    store: PropTypes.object.isRequired,
    history: PropTypes.object.isRequired,
    DevTools: PropTypes.func.isRequired
  };

I think this should work now: https://github.com/yannickcr/eslint-plugin-react/blob/master/tests/lib/rules/forbid-prop-types.js#L794

Looks like #1533 fixed this.


(GSSOC '23) to make a separate section for iOS dev, and add a Netflix clone using swift.

Describe the project you want to add with tech stack
As a participant of GSSOC '23, I suggest the addition of a separate section for iOS development in the project repository. This will help organize and streamline iOS-related tasks, discussions, and contributions. Additionally, I propose implementing a Netflix clone using Swift as a project within the iOS development section.

A dedicated iOS development section within the project repository, fostering collaboration and focused efforts.
A Netflix clone iOS app developed using Swift.
Well-documented instructions for setting up the development environment and contributing to the iOS project.

@pranjay-poddar , I'am a contributor to GSSOC, could you please assign this issue to me?


Add support for sending attachments from Pushover Agent

The Pushover API recently added support for posting image attachments along with text notifications sent with the service. Attached images appear in the push notification on supported platforms.
For bonus points, it would be nice, optionally, to be able to give the Pushover Agent an image URL to download and send as an attachment.
Use case: I have several Twitter agents sending me push notifications via Pushover Agents, and it would be nice to be able to include images attached to those tweets in the notifications.
Relevant API docs: https://pushover.net/api#attachments

Especially nice would be support for adding attachments from URLs.
Use case: I have a webhook being called by my security camera that gives me some details of the motion event that was detected, along with a URL to the image in S3. I want to use Huginn to decide how to handle a given notification, and push it to Pushover if it's something I need to know about.
If I had to have the image on disk, I'd have to use something like the command agent to pull the file down before attaching it in the Pushover agent. That seems painfully insecure.

Has anyone found a solution, like creating a custom pushover agent?

@AntonSoeffing I had one a long time ago (3-4 years).  It should still be in my private Git repo of exported scenarios.  I'll have to go digging through it after work today because it's been so long.

@virtadpt That would be really nice of you! Thanks a lot!

@virtadpt Did you find anything useful? :)

It doesn't look like it.  I found the Post Agents that I wrote which interacted with the Pushover API directly (before the Pushover Agent was created) but they might not be useful to you.  A sample:
{
  "type": "Agents::PostAgent",
  "name": "Tripwire - Send DEFCON change notifications through Pushover",
  "disabled": false,
  "guid": "b46a1498056e72d889a263576baf2458",
  "options": {
    "post_url": "https://api.pushover.net/1/messages.json",
    "expected_receive_period_in_days": "365",
    "content_type": "application/x-www-form-urlencoded",
    "method": "post",
    "payload": "user={% credential pushover_user_key %}&token={% credential tripwire_pushover_key %}&message={{ message }}",
    "emit_events": "false",
    "no_merge": "true",
    "user_agent": "Exocortex v0.3.3 (https://github.com/cantino/huginn)"
  },
  "schedule": "never",
  "keep_events_for": 604800,
  "propagate_immediately": false
}

But.
There is an optional parameter in the documentation for attaching an image: https://pushover.net/api#attachments
I think that's what you're looking for.


Should use ptr::write

I've seen this mistake in multiple implementations of Dmitry Vyukov's MPMC queue in Rust.
In mpmc.rs:
(*node.get()).value = Some(value);

This is okay if value is Copy, but looks like T doesn't necessarily implement Copy:
impl<T: Send, U: Send + Copy> Queue<T, U> {

The problem is that writing the new value like this implies that the old value is dropped. In other words, a destructor will be run for a potentially non-existent value in memory. This is unsafe!
The correct way to write the value would be:
ptr::write(&mut (*node.get()).value, Some(value));

Interestingly, the MPMC queue from Rust's pre-1.0 stdlib is broken in the same way:
https://docs.rs/mpmc/0.1.2/src/mpmc/lib.rs.html#113
You might have the same error in other crates where you reimplemented this queue, so I advise checking those implementations as well. :)

It's been a while since I looked at the mpmc code, but I believe:

the current value is None
The ownership of the slot has been acquired above

So, there is nothing wrong w/ dropping

Oh, I see. The value being None solves the problem.
Sorry for the non-bug report! :) Closing.


Error applying plan to create cluster on GCP

This is what I did:
$ terraform init -from-module github.com/dcos/terraform-dcos/gcp

$ cat desired_cluster_profile
dcos_version = "1.10.2"
num_of_masters = "1"
num_of_private_agents = "3"
num_of_public_agents = "1"
#
google_project = "massive-bliss-781"
google_region = "us-central1"
gce_ssh_pub_key_file = "/Users/simaoreis/.ssh/google_compute_engine.pub"
#
gcp_bootstrap_instance_type = "n1-standard-1"
gcp_master_instance_type = "n1-standard-8"
gcp_agent_instance_type = "n1-standard-8"
gcp_public_agent_instance_type = "n1-standard-8"
# Inbound Master Access
admin_cidr = "<IP_ADDRESS>/0"
# Uncomment the line below if you want short living cheap cluster for testing
gcp_scheduling_preemptible = "true"

$ terraform plan -var-file desired_cluster_profile
...
$ terraform apply -var-file desired_cluster_profile

Error I got:
Error: Error applying plan:

9 error(s) occurred:

* google_compute_firewall.internal-any-any: 1 error(s) occurred:

* google_compute_firewall.internal-any-any: Error creating firewall: googleapi: Error 409: The resource 'projects/massive-bliss-781/global/firewalls/internal-any-any-access' already exists, alreadyExists
* google_compute_instance.agent[2]: 1 error(s) occurred:

* dial tcp <IP_ADDRESS>:22: i/o timeout
* google_compute_firewall.adminrouter: 1 error(s) occurred:

* google_compute_firewall.adminrouter: Error creating firewall: googleapi: Error 409: The resource 'projects/massive-bliss-781/global/firewalls/adminrouter-firewall' already exists, alreadyExists
* google_compute_instance.agent[1]: 1 error(s) occurred:

* dial tcp <IP_ADDRESS>:22: i/o timeout
* google_compute_instance.master: 1 error(s) occurred:

* dial tcp <IP_ADDRESS>:22: i/o timeout
* google_compute_firewall.ssh: 1 error(s) occurred:

* google_compute_firewall.ssh: Error creating firewall: googleapi: Error 409: The resource 'projects/massive-bliss-781/global/firewalls/ssh' already exists, alreadyExists
* google_compute_instance.agent[0]: 1 error(s) occurred:

* dial tcp <IP_ADDRESS>:22: i/o timeout
* google_compute_instance.bootstrap: 1 error(s) occurred:

* dial tcp <IP_ADDRESS>:22: i/o timeout
* google_compute_instance.public-agent: 1 error(s) occurred:

* dial tcp <IP_ADDRESS>:22: i/o timeout

What I am doing wrong? :)

thanks a lot


Any chance this library will be updated?

Hello,
As it asks on the title, is there any chance that this library will be picked up again? It'd be nice to have an official TypeScript library for Tumblr.
Thank you!

Yes, we're on it!


Unable to connect to Mysql

Installation command
pip install roapi
Configuration file
addr:
  # binding address for TCP port that speaks HTTP protocol
  http: <IP_ADDRESS>:8765
  # binding address for TCP port that speaks Postgres wire protocol
  postgres: <IP_ADDRESS>:5432

tables:
  - name: "test"
    uri: "mysql://root:123456@<IP_ADDRESS>:3306/test"

Back
thread 'main' panicked at /__w/roapi/roapi/roapi/src/startup.rs:63:14:
Failed to create Roapi context: Whatever { source: Some(TableError { source: LoadDatabase { source: Destination { source: SourceNotSupport("MySQL") } } }), message: "Failed to load table", backtrace: Backtrace(()) }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This is a duplicate to https://github.com/roapi/roapi/issues/319


Synchronize the "Ready For Sprint" Columns between the backlog and the Sprint projects

This needs to be done

prior to the priority planning meeting
just after a sprint kickoff meeting.
Just prior to closing a sprint

Prior to the planning meeting it's important to confirm that the "Sprint Ready" column in the sprint project and the "Sprint ready" column in the Backlog project are identical.
For each item in the Backlog Project:

Case 1
Case 3

Ju
One way of doing this is:

Establish a checklist for items already reviews


Cannot find a function component wrapped with React.memo HOC

Current behavior
When trying to .find a memoized function component within a mounted tree and .debug it, returns an empty string.
This is regarding the new React.memo feature. When I simply remove the React.memo wrapper from the component, then it is found and its contents printed to the console on .debug. With the wrapper, it appears the component cannot be found.
Expected behavior
Should output the component.
Your environment
Windows 10, GitBash, Jest
API

[x ] mount

Version

library
version

enzyme
3.9.0

react
16.8.3

react-dom
16.8

react-test-renderer
16.8.4

adapter (below)
1.10.0

Adapter

[x ] enzyme-adapter-react-16

@papiro can you provide repro code? Specifically, your component, your test code, and wrapper.debug() on the root wrapper?

Phew! That sure would be a lot of code. Lots of components involved, along with the app-environment stubbed out via test-helper HOCs and the lot. I'll try to shuck off what's not needed to reproduce.

I have the same issue, here is a repro:
https://github.com/mliq/enzyme-memo-bug-repro

@ljharb
wrapper.debug() on component without React.memo HOC:
<Button className="mockClass">
  <button className="mockClass">
     mockContent
  </button>
</Button>

wrapper.debug() on component with React.memo HOC:
<Button className="mockClass" />

I'm running into a some sort of similar issue with enzyme-adapter-react-16 1.11.12
Using the constructor to find children won't work but using the display name will work
Here's an example:
// Child.js
import React, { Fragment, memo } from 'react';

function Child() {
    return <Fragment>Child</Fragment>;
}

export default memo(Child);

// Parent.js
import React, { memo } from 'react';
import Child from './Child';

function Parent() {
    return (
        <div>
            <Child />
            <Child />
        </div>
    );
};

export default memo(Parent);

import React from 'react';
import { mount } from 'enzyme';
import Parent from './Parent';
import Child from './Child';

const parent = mount(<Parent />);

console.log(parent.debug());
// Returns the right nodes
// <Parent>
//     <Child />
//     <Child />
// </Parent>

console.log(parent.find(Child).debug());
// Returns nothing

console.log(parent.find('Child').debug());
// Return the right nodes
//   <Child />
//   <Child />

Encountered the same issue today. React.memo will also not appear in the component tree from debug(): https://codesandbox.io/s/94v1m6p21o

I'll confirm whether it should appear in the debug tree or not; either way, finding by constructor should definitely work.

Affects my code too, can't add React.memo to my functional components because tests fail to find wrapped component children.

When you wrap with memo, you get a shape that looks like this
    { '$$typeof': Symbol(react.memo),
      type:
       { [Function: Themed]
         __THEME_CONFIG__:
          { compose: [Function: compose],
            mergeProps: [Function: mergeProps],
            pure: false,
            propName: 'theme',
            themes: [Array] },
         displayName: 'Themed(AvailabilityUnknown)',
         WrappedComponent:
          { [Function: AvailabilityUnknown] displayName: 'AvailabilityUnknown', defaultProps: [Object] },
         propTypes: { childRef: [Function], theme: [Function] } },
      compare: null }

Setting the display name property on the memoized component solved the problem for me.
const TextBase = (props) => {...};

export const Text = React.memo(TextBase);

Text.displayName = 'Text';

I have this issue too when using non-default export, wich not been memoized.
// Foo.tsx
export const Foo(props) {...};
export default memo(Foo);

// Foo.tests.tsx
import { Foo } from "./Foo"; // should be default import, but no 😕

const wrapper = mount(<FooWrapper />);

wrapper.find(Foo)

So I just changed import to use default exported memoized component and the issue has gone.
react-scripts: 3.3.0
enzyme: 3.1.0
jest-enzyme: 7.1.2


Replace scipy's legacy spectrogram with new implementaton

Replace scipy.signal.spectrogram with scipy.signal.ShortTimeFFT and new spectrogram-method.
Based on: https://docs.scipy.org/doc/scipy/tutorial/signal.html#short-time-fourier-transform
Closes #667

@tluebeck, once this is merged, it will probably give a conflict with the develop signal branch

Can you please check if the Python 3.8 tests still work if you restrinct scipy in setup.py to the version where ShortTimeFFT was introduced? If not I would also be in favor of dropping Python 3.8 support.

maybe that wouldn't even work, (and if, we should leave it anyway) since they have stopped supporting 3.8 with the same version.

maybe that wouldn't even work, (and if, we should leave it anyway) since they have stopped supporting 3.8 with the same version.

Ah, ok. In this case I would vote for dropping 3.8 but merging this into develop for release with 0.7.0. Might be a bit unexpected to deprecate a Python version in a patch release.

+1 for dropping 3.8. with 0.7.0 release. I think this might also affect #636, @ph-schaefer

We decided to deprecate Python 3.8 in pyfar 0.7.0. This will be a separate pull.


assignment 5

This appears to be an error, right? Please delete this pull request and create one against the class repo. Thanks!

Was an error - yes. AFAIK there is no way to delete pull requests. I deleted the branch and my colleague shulikaga already created a pull request against the class repo.


Undefined method react_component

Just finished installing this as per the readme and I'm getting this:
NoMethodError - undefined method `react_component' for #<#<Class:0x007fc6e9ac2300>:0x007fc6e9ac1130>:
17:25:26 web.1    |   app/views/hello_world/index.html.erb:2:in `_app_views_hello_world_index_html_erb__2737803353613407809_70246181992240'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/template.rb:145:in `block in render'
17:25:26 web.1    |   activesupport (4.1.13) lib/active_support/notifications.rb:161:in `instrument'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/template.rb:339:in `instrument'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/template.rb:143:in `render'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
17:25:26 web.1    |   activesupport (4.1.13) lib/active_support/notifications.rb:159:in `block in instrument'
17:25:26 web.1    |   activesupport (4.1.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
17:25:26 web.1    |   activesupport (4.1.13) lib/active_support/notifications.rb:159:in `instrument'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/renderer/template_renderer.rb:53:in `render_template'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/renderer/template_renderer.rb:17:in `render'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/renderer/renderer.rb:42:in `render_template'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/renderer/renderer.rb:23:in `render'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/rendering.rb:99:in `_render_template'
17:25:26 web.1    |   actionpack (4.1.13) lib/action_controller/metal/streaming.rb:217:in `_render_template'
17:25:26 web.1    |   actionview (4.1.13) lib/action_view/rendering.rb:82:in `render_to_body'
17:25:26 web.1    |   actionpack (4.1.13) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
17:25:26 web.1    |   actionpack (4.1.13) lib/action_controller/metal/renderers.rb:32:in `render_to_body'
17:25:26 web.1    |   actionpack (4.1.13) lib/abstract_controller/rendering.rb:25:in `render'
17:25:26 web.1    |   actionpack (4.1.13) lib/action_controller/metal/rendering.rb:16:in `render'
17:25:26 web.1    |   actionpack (4.1.13) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'

This is an odd error. Do you have React On Rails v5.2 installed?

@justin808 Yes
# Gemfile.lock
    react_on_rails (5.2.0)

$ bundle show react_on_rails
/Users/mark/.rvm/gems/ruby-2.1.2/gems/react_on_rails-5.2.0

Isn't the helper supposed to be included something like this?:
See http://pothibo.com/2013/06/customize-rails-view-controller-with-railtie/
and https://github.com/reactjs/react-rails/blob/master/lib/react/rails/railtie.rb#L42-L44

@MarkMurphy  What's odd is that you're the only seeing this issue. What version of rails are you using?

@justin808 4.2.14

@MarkMurphy Feel free to re-open this if you think this is a general issue.

@jbhatab Can you take a peek at this?
@samnang Any opinion?

@MarkMurphy very weird. was this from a fresh install?

yes it was

actually sorry, no it wasn't

@MarkMurphy do you have react-rails installed on your system too?

I did at one point, not sure if it was there at the same time. I went back to using react rails because of this issue.

@MarkMurphy very weird. My first thought is to clear out your local gems before installing react_on_rails.

I'm unfortunately getting the same error with matching stack trace. Tried clearing out my gems and re-installing everything but no avail.

Does the fix suggested by @MarkMurphy work:
See http://pothibo.com/2013/06/customize-rails-view-controller-with-railtie/
and https://github.com/reactjs/react-rails/blob/master/lib/react/rails/railtie.rb#L42-L44

@tmock12 Did you do this from fresh install?

Just tried a fresh rails install with react_on_rails 5.2.0 and it worked fine. Hmm....
Ideas @justin808?

@MarkMurphy @tmock12 could either of you put your sample in a repo that could help us to be able to re-produce the error?

@jbhatab I had react-rails installed before as well. I cleared all the gems but that didn't seem to help.
I haven't had a lot of time to look into it but I believe it has to do with the fact that I'm using an engine and was testing it inside the spec/dummy app.
adding this to an initializer fixed the problem for me:
ActiveSupport.on_load(:action_view) do
  include ReactOnRailsHelper
end

@justin808 @samnang very weird. any ides on this one?

It's something to do with the engine setup.
Maybe this is just a doc issue with @tmock12 's comment above?
Or should we explicitly load?
The fact is that ReactOnRails is itself an engine.

I'd like to get this one closed. @jbhatab @tmock12 @MarkMurphy @samnang is this a doc change or a code fix? I really don't know.

@justin808 I'm not using this gem anymore but I believe it's a code fix. I think the code needs to be more explicit in loading the view helpers. See my previous comment
Again I'm using Rails v4.1.13 so try it out with that and see if you can reproduce the issue.
@tmock12 What version of Rails were you on when this happened to you?

@MarkMurphy Why did you switch off React on Rails?
I'm going to take a look at this issue.

I opted to build my react application from scratch (independently of my rails project) using something similar to the react boilerplate.

As far as I can tell:

A gem that's a Rails Engine (which React on Rails is) will automatically have helpers installed.
We could document the addition of this snippet in ones initializer:

ActiveSupport.on_load(:action_view) do
  include ReactOnRailsHelper
end

Alternately, we could add that that here, to engine.rb:

module ReactOnRails
  class Engine < ::Rails::Engine
    config.to_prepare do
      if File.exist?(VersionChecker::NodePackageVersion.package_json_path)
        VersionChecker.build.warn_if_gem_and_node_package_versions_differ
      end
      ReactOnRails::ServerRenderingPool.reset_pool
    end
  end
end

Maybe @brandonhilkert might have an opinion. He wrote an article HOW TO BUILD A RAILS ENGINE

I posted this question here:
http://stackoverflow.com/questions/37426278/rails-engine-gem-should-or-should-not-explicitly-load-helpers

@MarkMurphy I ran a fresh install and got the error. You need to restart your server, run npm install in the client directory, and then run 'foreman start -f Procfile.dev'

Thanks @jbhatab! @MarkMurphy Please let us know if this fixes your issue.

I've seen this problem on Rails 4.0. Restarting foreman didn't change it.
I think I'd just add the on_load code if I was you…

@jbhatab @justin808 I had already tried that before I posted this issue.

@MarkMurphy If you've got a PR that can include a test that shows why we'd need that, I'd be thrilled to review it!

@MarkMurphy @gma Have you tried the current version?

@justin808 I was using 6.1.0.
I'm afraid I'm back on react-rails now, having managed to work around the issue that brought me to react_on_rails in the first place.
I noticed plenty of people who'd had this problem reported that they'd had react_rails installed. I'd have mentioned it, only I suspect it was a red herring (at least in my case) as I created a branch for react_on_rails based on a commit that preceded my installation of react-rails.

I had same error with Rails <IP_ADDRESS> and this line in initializer helped me
ActiveSupport.on_load(:action_view) do include ReactOnRailsHelper end

@gma @beautyfree Is there any chance that you had both gems, react-on-rails and react-rails, installed at once?

@justin808 There's no question of that in my case, as I hard reset my repo to pre-date the installation of react-rails, which would have removed it from the bundle.
It would still have been on the system though.

I had the same issue an existing app. I added an include ReactOnRailsHelper to application_helper and that worked.

I just got this issue today on version 6.5.1 adding include ReactOnRailsHelper to application_helper  worked fine.

@3den Please identify what is special about your app. I show in my videos how the generator on top of a new Rails 5 app works just fine.

it was working fine on 6.5.0 i just updated the gems and it stoped working

@3den can you back out the recent 6.5.1 update and see if that fixes your issue?
Did you update any other gems?
None of the changes for 6.5.1 look relevant to your issue.

I had this same issue installing 8.0.0 to my existing app on rails 4.2, I added the following snippet to the bottom of the react_on_rails.rb initializer, restarted the server and it worked. ActiveSupport.on_load(:action_view) do    include ReactOnRailsHelper  end

@damiong28 Any change to the docs or code needed? @gauravtiwari, have you seen this with Webpacker?

As all other developers here, I found this problem in my Rails 5 and React on Rails 8.0 setup. I thought it cause by my docker build setting but no.
I fixed it by adding ActiveSupport.on_load(:action_view) do include ReactOnRailsHelper end at the end of initializers/react_on_rails.rb or including ReactOnRailsHelper in application_helper.rb

@alexeyMohnatkin Can you take a look at this?
@samnang @mapreal19 I think we need to copy this pattern:
webpacker/railtie.rb
require "rails/railtie"

require "webpacker/helper"

class Webpacker::Engine < ::Rails::Engine
  initializer :webpacker do |app|
    ActiveSupport.on_load :action_controller do
      ActionController::Base.helper Webpacker::Helper
    end

    ActiveSupport.on_load :action_view do
      include Webpacker::Helper
    end

    Webpacker.bootstrap
    Spring.after_fork { Webpacker.bootstrap } if defined?(Spring)
  end
end

webpacker/lib/webpacker.rb
module Webpacker
  extend self

  def bootstrap
    Webpacker::Env.load
    Webpacker::Configuration.load
    Webpacker::Manifest.load
  end

  def compile
    Webpacker::Compiler.compile
    Webpacker::Manifest.load
  end

  def env
    Webpacker::Env.current.inquiry
  end
end

require "webpacker/env"
require "webpacker/configuration"
require "webpacker/manifest"
require "webpacker/compiler"
require "webpacker/railtie" if defined?(Rails)

Closing as I believe this was fixed.

I had the same problem and adding the following in application_helper.rb worked
module ApplicationHelper
include ReactOnRailsHelper
end

I, too, still get this on Rails 6.0, and I too find the hack added to react_on_rails fixes it


SelectedItems: Setting the sub-items of a node (the first two) will cause all items at the current level to be selected.

When the SelectedItems property is set programmatically to the first two sub-items (Ex: 3.1.1and3.1.2), all items under the parent tree item will be selected.
How to set up and solve this problem?
<button @onclick="@(() =>{ if (SelectedValues.Contains("3.1.1")) {return;} SelectedValues.Add("3.1.1");SelectedValues.Add("3.1.2");++version; InvokeAsync(StateHasChanged); })">
Set 3.1.1 and 3.1.2 Selected

https://github.com/excubo-ag/Blazor.TreeViews/assets/158451967/3e254fa9-b1f9-4422-bded-524cca7389c2

Thanks for the bug report. Could you please provide the full code as well?

Thank you for your reply, the full code is as follows
@using Excubo.Blazor.TreeViews
<TreeView @key="version" Items="Items" GetParent="GetParent" AllowSelection="true" @bind-SelectedItems="SelectedValues">

<div @onclick="() => { selectedItem = (selectedItem != context.Item) ? context.Item : null; }" style="background-color: @(selectedItem == context.Item ? "Highlight"<EMAIL_ADDRESS>

		Set 3.1.1 and 3.1.2 Selected

@version
@code {
protected override void OnInitialized()
{
	base.OnInitialized();
}
private string selectedItem;
// Modifications to the selection from beyond the TreeView (e.g. buttons below) require rerendering the treeview.
private int version;
private List<string> SelectedValues = new List<string> { };

private List<string> Items = new List<string>
{
	"1",
	"1.1",
	"1.2",
	"2",
	"3",
	"3.1",
	"3.1.1",
	"3.1.2",
	"3.1.3",
	"3.1.4",
	"3.1.5"
};
private string GetParent(string item)
{
	var last_period = item.LastIndexOf('.');
	if (last_period < 0)
	{
		return null; // no parent
	}
	else
	{
		return item.Substring(0, last_period);
	}
}

}

Thank you for your reply, the full code is as follows
`@using Excubo.Blazor.TreeViews
<TreeView @key="version" Items="Items" GetParent="GetParent" AllowSelection="true" @bind-SelectedItems="SelectedValues">

<div @onclick="() => { selectedItem = (selectedItem != context.Item) ? context.Item : null; }" style="background-color: @(selectedItem == context.Item ? "Highlight"<EMAIL_ADDRESS>

		Set 3.1.1 and 3.1.2 Selected

@version
@code {
protected override void OnInitialized()
{
	base.OnInitialized();
}
private string selectedItem;
// Modifications to the selection from beyond the TreeView (e.g. buttons below) require rerendering the treeview.
private int version;
private List<string> SelectedValues = new List<string> { };

private List<string> Items = new List<string>
{
	"1",
	"1.1",
	"1.2",
	"2",
	"3",
	"3.1",
	"3.1.1",
	"3.1.2",
	"3.1.3",
	"3.1.4",
	"3.1.5"
};
private string GetParent(string item)
{
	var last_period = item.LastIndexOf('.');
	if (last_period < 0)
	{
		return null; // no parent
	}
	else
	{
		return item.Substring(0, last_period);
	}
}

}`

Thank you. I understand the bug now.
Incrementing the version (which is, under the current implementation, necessary to update the selection programmatically, resets the parent child relationship of tree view nodes. As a consequence, at the time of processing node 3.1.1, no other children of 3.1 are evaluated so far, and thus the selection of 3.1.1 results in the full selection (not indeterminate) of 3.1 (and then also 3). Later, the other children of 3.1 are added, and then considered selected, because 3.1 is itself selected and not indeterminate at this point.
I think the only solution is to drop the version and implement another way of letting the component know that selection changed.

Thank you for your explanation.
I understand that program development is not an easy job.
I am looking forward to the improved version.

I think I have a fix, but it will require more testing before I can submit it. This will also unfortunately require code changes on your end.
I hope to be able to send it out tomorrow, but I can't guarantee this.

Thank you for your reply, looking forward to your new version being released

It's already released: https://www.nuget.org/packages/Excubo.Blazor.TreeViews/

I have updated version 4.0.0, but the application problem is still not solved. Is there anything in the program code that I need to change?

Yes, see the changelog section in the readme


Update examples and create-turbo to use namespaces for packages

We'd like to promote the best practice of namespacing internal packages in monorepos.
In our templates, we haven't been following this practice (e.g. ui). This PR uses an @acme namespace in packages.

Closing because stale.

This one missed my notice. I'm not actually wanting to standardize on including a namespace in our examples unless added via script at create-turbo time. It's putting something into the code that immediately has to be find/replaced. Nobody is going to want to do that immediately but leaving it there feels bad.


Fix rebase issues causing docs to be built twice on travis

Changes Unknown when pulling 65c31d7bc8398fbfa446223a353e3c1533039aa7 on fix/dont-build-docs-twice into ** on develop**.


Slow get segment snapshot causes read timeout when there are multiple tables

Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)
The time cost by acquiring segment snapshot should be acceptable. For example, within hundred ms
3. What did you see instead (Required)
The time cost by acquiring segment snapshots causes more than 30 seconds
4. What is your TiFlash version? (Required)
https://github.com/pingcap/tiflash/commit/7aafea8835af8f8c77f48fb197fec660eb9f850d

Reopen because it leads to the max snapshot lifetime not shown on Grafana


How to add more locations?

My location is unavailable, How to add more locations?

add restaurants and enter their addresses in cockpit. it uses geo queries to locate the restuarants


[BUG] using capital letters for BTP region creates wrong terraform plan output

Is there an existing issue for this?

[X] I have searched the existing issues

What version of Terraform are you using?
pre-release version
What type of issue are you facing
bug report
Describe the bug
When trying to execute a TF script for BTP with the region set to US10 instead of us10 the provider creates the following error message:
Error: API Error Creating Resource Subaccount
with btp_subaccount.subaccount["dev-setup"],
on main.tf line 15, in resource "btp_subaccount" "subaccount":
15: resource "btp_subaccount" "subaccount" {
unexpected state '', wanted target 'OK, CREATION_FAILED, CANCELED'. last error: %!s()
Expected Behavior
Should either:

raise an error that the region US10 doesn't exist
lower case the region automatically before raising an error
provide a list of available region values for the SAP BTP

Steps To Reproduce
Create a TF script with the BTP region set to US10.
Add screenshots to help explain your problem
No response
Additional context
No response

Once #219 is merged, it should look like this:
btp_subaccount.my_project: Creating...
╷
│ Error: API Error Creating Resource Subaccount
│
│   with btp_subaccount.my_project,
│   on resource.tf line 2, in resource "btp_subaccount" "my_project":
│    2: resource "btp_subaccount" "my_project" {
│
│ Region [EU12] is missing [Error: 20009/400]
╵


Implement ExternalDeploymentTaskSensorAsync

Implemented ExternalDeploymentTaskSensorAsync
Refer link : https://astronomer.slack.com/archives/C0387PMM2E7/p1659556447204159

[x] Added ExternalDeploymentTaskSensorAsync Sensor, Hooks, Trigger
[x]  Exception Handling in case of errors
[x]  Added Test case
[x]  Added example Dag
[x]  Added Docs

closes: #646

Do we have an example dag for this Sensor?

Thanks - looking better now :)

Can you rebase the branch ?


Use chain builder tools to cleanup benchmarks

What was wrong?
The current benchmarks use an impromptu API to create the chains that are used for benchmarking.
How was it fixed?
We now have some more solid builder tools to create chains. These tools allow the creation of chains using a declarative, fluent API which we do use already in several tests. These builder tools are now integrated in Benchmarks for building the chains.
Cute Animal Picture

Got this error in pylint, but everything seems to work. How can I get rid of this py36-lint error?

I suspect this is a deficiency with mypy + curried functions.  It probably makes sense to move away from the curry model and just do explicit functions as I think most everything in the builder can be fit into that model.

https://github.com/ethereum/py-evm/issues/1366 should fix this.

I suspect this is a deficiency with mypy + curried functions

@pipermerriam It's not the currying per se but rather that the curry decorator from cytoolz does not come with type annotations and no type annotations seem to exist in typeshed for it. It should be easy to create our own curry decorator in eth_utils, enable distribution of type annotations for eth_utils and then use that.
Btw, the same applies to other decorators such as to_tuple. We currently errase type hints for functions that we apply something like to_tuple on. That will change as soon as we enable type hint distribution for eth_utils as per PEP561 (ridiculously simple)

@Bhargavasomu I took that one over to resolve the mypy issue and apply a minor refactoring to allow benchmarks to pass in the genesis state rather than hard coding it within get_chain.
Thanks for doing the bulk of the work! :tada:
I think the two remaining functions are so trivial that I'm tempted to say we should enhance the builder API to get rid of chain_plumping.py altogether. That said, I'm not entirely sure the creation of multiple chains that basically follow the same recipe but start at different VMs, fits into the builder pattern of that API.

@cburgdorf I am just curious of how the error of cannot call function of unknown type did not occur, even though the builder tools were not type hinted. Could you please explain how it got fixed?

Could you please elaborate on this for my understanding?

Let me try! It has to do with the way these methods are defined on the eth.builders.chain.api
It is basically a class API that defines class members that point to these methods.
https://github.com/ethereum/py-evm/blob/c413ec9e1d3df0e0b91b27f00cdc6d160719c664/eth/tools/builder/chain/__init__.py#L39-L62
...
Then the API is exposed as api
https://github.com/ethereum/py-evm/blob/c413ec9e1d3df0e0b91b27f00cdc6d160719c664/eth/tools/builder/chain/__init__.py#L95
Somewhere in this process mypy loses some information about what these class members actually refer to, namely the functions that are defined standalone as:
https://github.com/ethereum/py-evm/blob/c413ec9e1d3df0e0b91b27f00cdc6d160719c664/eth/tools/builder/chain/builders.py#L47-L84
...
I guess, that may work with importing api as well if the entire builders module was typed but since it isn't mypy seems to be unable to infer what the types of these class members actually are.


Vendoring

Vendoring using govendor

Would you be open to using glide? Or happen to have thoughts on why govendor is preferable? (I've personally only used glide).

Never used glide before. Using govendor in my projects, so I chose it. I can take a look at it.

Changed to glide


test1

Heads up the site is published at https://ubicenter.github.io/ubicenter.org/
Looks like some CSS stuff is missing or something

Heads up the site is published at https://ubicenter.github.io/ubicenter.org/
Looks like some CSS stuff is missing or something


chore(main): release 4.21.0

:robot: I have created a release beep boop
4.21.0 (2023-12-15)
Features

bump twilio from 4.19.3 to 4.20.0 (2acd18f)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/somleng/somleng-node/releases/tag/v4.21.0 :sunflower:


Time Distributed wrapper: You must feed a value for tensor for dtype=bool, Invalid argument error

I'm trying to build a network with both convolutional and lstm layers. I'm wrapping the Convolutional,activation,max pooling, drop out and flatten layer in a TimeDistributed() layer. When my code reaches the train_on_batch() method I have a illegal argument exception thrown by tensorflow, so I think it is some keras problem. Here it is my code:
def get_model():
    model=Sequential()
    model.add(TimeDistributed(Conv2D(10,(3,3)),input_shape=(100,60,80,1)))
    model.add(TimeDistributed(Activation('tanh')))
    model.add(TimeDistributed(Conv2D(10,(3,3))))
    model.add(TimeDistributed(Activation('tanh')))
    model.add(TimeDistributed(MaxPooling2D(pool_size=(2,2))))
    model.add(TimeDistributed(Dropout(0.25)))
    model.add(TimeDistributed(Flatten()))
    model.add(LSTM(1000,return_sequences=True))
    model.add(TimeDistributed(Dense(1,activation='relu')))
    return model
    model=get_model()
model.summary()
rms=RMSprop(lr=0.001)
model.compile(optimizer=rms,loss='mean_squared_error')
for e in range(10):#epoch
    for X,Y in gen('data/train.mp4','train'):#<- this is my custom batch generator
        l=model.train:_on_batch(X,Y)
    model.reset_states()

It gives me :
> Using TensorFlow backend.
> _________________________________________________________________
> Layer (type)                 Output Shape              Param #
> =================================================================
> time_distributed_1 (TimeDist (None, 100, 58, 78, 10)   100
> _________________________________________________________________
> time_distributed_2 (TimeDist (None, 100, 58, 78, 10)   0
> _________________________________________________________________
> time_distributed_3 (TimeDist (None, 100, 56, 76, 10)   910
> _________________________________________________________________
> time_distributed_4 (TimeDist (None, 100, 56, 76, 10)   0
> _________________________________________________________________
> time_distributed_5 (TimeDist (None, 100, 28, 38, 10)   0
> _________________________________________________________________
> time_distributed_6 (TimeDist (None, 100, 28, 38, 10)   0
> _________________________________________________________________
> time_distributed_7 (TimeDist (None, 100, 10640)        0
> _________________________________________________________________
> lstm_1 (LSTM)                (None, 100, 1000)         46564000
> _________________________________________________________________
> time_distributed_8 (TimeDist (None, 100, 1)            1001
> =================================================================
> Total params: 46,566,011
> Trainable params: 46,566,011
> Non-trainable params: 0
> _________________________________________________________________
> epoca:0
> (1, 100, 60, 80, 1)
> (1, 100, 1)
> 2017-05-03 16:39:04.437304: W tensorflow/core/framework/op_kernel.cc:1152] Invalid argument: You must feed a value for placeholder tensor 'time_distributed_6/keras_learning_phase' with dtype bool
> 	 [[Node: time_distributed_6/keras_learning_phase = Placeholder[dtype=DT_BOOL, shape=[], _device="/job:localhost/replica:0/task:0/gpu:0"]()]]
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1039, in _do_call
>     return fn(*args)
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1021, in _run_fn
>     status, run_metadata)
>   File "/usr/lib/python3.5/contextlib.py", line 66, in __exit__
>     next(self.gen)
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
>     pywrap_tensorflow.TF_GetCode(status))
> tensorflow.python.framework.errors_impl.InvalidArgumentError: You must feed a value for placeholder tensor 'time_distributed_6/keras_learning_phase' with dtype bool
> 	 [[Node: time_distributed_6/keras_learning_phase = Placeholder[dtype=DT_BOOL, shape=[], _device="/job:localhost/replica:0/task:0/gpu:0"]()]]
> 	 [[Node: mul_1/_43 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_1414_mul_1", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]()]]
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/home/crow/PycharmProjects/Speed_challenge/main.py", line 78, in <module>
>     l=model.train_on_batch(X,Y)
>   File "/usr/local/lib/python3.5/dist-packages/keras/models.py", line 944, in train_on_batch
>     class_weight=class_weight)
>   File "/usr/local/lib/python3.5/dist-packages/keras/engine/training.py", line 1633, in train_on_batch
>     outputs = self.train_function(ins)
>   File "/usr/local/lib/python3.5/dist-packages/keras/backend/tensorflow_backend.py", line 2229, in __call__
>     feed_dict=feed_dict)
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 778, in run
>     run_metadata_ptr)
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 982, in _run
>     feed_dict_string, options, run_metadata)
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1032, in _do_run
>     target_list, options, run_metadata)
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1052, in _do_call
>     raise type(e)(node_def, op, message)
> tensorflow.python.framework.errors_impl.InvalidArgumentError: You must feed a value for placeholder tensor 'time_distributed_6/keras_learning_phase' with dtype bool
> 	 [[Node: time_distributed_6/keras_learning_phase = Placeholder[dtype=DT_BOOL, shape=[], _device="/job:localhost/replica:0/task:0/gpu:0"]()]]
> 	 [[Node: mul_1/_43 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_1414_mul_1", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]()]]
>
> Caused by op 'time_distributed_6/keras_learning_phase', defined at:
>   File "/home/crow/PycharmProjects/Speed_challenge/main.py", line 65, in <module>
>     model=get_model()
>   File "/home/crow/PycharmProjects/Speed_challenge/main.py", line 57, in get_model
>     model.add(TimeDistributed(Dropout(0.25)))
>   File "/usr/local/lib/python3.5/dist-packages/keras/models.py", line 466, in add
>     output_tensor = layer(self.outputs[0])
>   File "/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py", line 585, in __call__
>     output = self.call(inputs, **kwargs)
>   File "/usr/local/lib/python3.5/dist-packages/keras/layers/wrappers.py", line 177, in call
>     y = self.layer.call(inputs)  # (num_samples * timesteps, ...)
>   File "/usr/local/lib/python3.5/dist-packages/keras/layers/core.py", line 111, in call
>     training=training)
>   File "/usr/local/lib/python3.5/dist-packages/keras/backend/tensorflow_backend.py", line 2559, in in_train_phase
>     training = learning_phase()
>   File "/usr/local/lib/python3.5/dist-packages/keras/backend/tensorflow_backend.py", line 112, in learning_phase
>     name='keras_learning_phase')
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/array_ops.py", line 1507, in placeholder
>     name=name)
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/gen_array_ops.py", line 1997, in _placeholder
>     name=name)
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
>     op_def=op_def)
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py", line 2336, in create_op
>     original_op=self._default_original_op, op_def=op_def)
>   File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py", line 1228, in __init__
>     self._traceback = _extract_stack()
>
> InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'time_distributed_6/keras_learning_phase' with dtype bool
> 	 [[Node: time_distributed_6/keras_learning_phase = Placeholder[dtype=DT_BOOL, shape=[], _device="/job:localhost/replica:0/task:0/gpu:0"]()]]
> 	 [[Node: mul_1/_43 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_1414_mul_1", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]()]]

[x] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

[x] If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

[ ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

[x] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

I think this is the same as https://github.com/fchollet/keras/issues/5934

I'm closing the issue because it is the same as #5934 .


bootstrap: Tolerate a missing lsb_release

This fixes the lack of support for CentOS 9.Stream

while I don't think this is wrong given the circumstances, it just makes me hold my head:
https://access.redhat.com/solutions/6973382
[dmick ceph]$ grep -r lsb_release | wc -l
582

Yeah, it's a bit of a strange thing that happened. But, fortunately, even ubuntu 18.04 has /etc/os-release.


Python 3.12 compat fix

With Python 3.12 I get the following error.
File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\textstat\textstat.py:7
      4 from collections import Counter
      5 from typing import Union, List, Set
----> 7 import pkg_resources
      8 from functools import lru_cache
      9 from pyphen import Pyphen

ModuleNotFoundError: No module named 'pkg_resources'

I think this is due to the following change:

PEP 632
[gh-95299]https://docs.python.org/3/whatsnew/3.12.html#:~:text=%2C setuptools%2C-,pkg_resources,-%2C and easy_install will)

I have not tested the fix.

Thank you for this! If possible, could you add 3.12 to the GitHub actions list so the tests can run for it going forward?

Sure, I hope this works.

@mbarkhau there was a couple of other things that need changing, I've merged your changes in #198


[Feature Request] Create segmentation and track measurements in the same mode

What feature or change would you like to see made?
Measurement tools - e.g. Angle, Length - to be available in Segmentation mode. Or Create Segmentation tools available in Basic Viewer mode.
In v3.7 measurement tools - e.g. Angle, Length - are unavailable in Segmentation mode, and creating a segmentation is unavailable in the Basic Viewer mode.
Curious if there is an architectural incompatibility that restricts these two services from existing in the same mode.
Why should we prioritize this feature?
Enable users to create segmentations and track measurements without switching modes.

Yiu van add those tools in the segmentation mode. Remember our demo modes are just demos to show you what is possible.


Add: Excel Sheet Column Title

Codecov Report

Merging #398 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #398   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files         146    147    +1
  Lines        1450   1454    +4
=====================================
+ Hits         1450   1454    +4

Impacted Files
Coverage Δ

...cel-sheet-column-title/excel_sheet_column_title.go
100% <100%> (ø)

Continue to review full report at Codecov.

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


Devhub Issuhttps://developer.gov.bc.ca/Design-System/Prototype-with-the-Design-Systeme: Prototype with the Design System [short description here]

path: (do not delete) https://github.com/bcgov/design-system/blob/master/components/about/prototyping_tools.md
(do not delete) devhub page: https://developer.gov.bc.ca/Design-System/Prototype-with-the-Design-System

Devhub Content Issue

page has a typo on it


Blank Screen Before resolving resolves

We're having issues when loading bootstrap: [UIView]. We have put a loader into the ui-view on index.html so that when the app loads the content of the ui-view is replaced by the app. The problem is that when having resolves on the landing state, the content of the ui-view is being removed before resolving the resolves. So there's quite a noticeable blank screen between the  spinner and the app. We have tried to play with resolve policy but the experience is not optimal. It would be best to have the loader visible until all resolves have resolved.
This issue is only noticeable on ui-router 1.0 as it is working fine on the previous version.
Here's a POC demonstrating this issue:
https://plnkr.co/edit/riXgCiIbowg2A0AIDbYz?p=preview
index.html
  <body>
    <ui-view>
      Loading...
    </ui-view>
.
.

Home State (landing state)
export const helloState = { name: 'hello', url: '/hello',  component: Hello,
resolve:[
  {
      token: 'test',
      resolveFn: () => {
        return new Promise((resolve)=>{
          setTimeout(()=>{
            resolve();
          },4000);
        })
      }
    }
  ] };

Sequence of events

Page loads displaying 'Loading...'
'Loading...' disappears
Blank screen for 4 seconds (resolving resolves)
Home Loads

This pr implements default content rendering and seems like it should handle this case.
@aitboudad do you have any ideas why default content doesn't work on the bootstrapped ui-view, but does on the nested ui-view (inside people state)?  https://plnkr.co/edit/Jc04N43HmFzU9v2HMSMh?p=preview

I tried iwith a simple example without ui-router and I get the same behavior http://plnkr.co/edit/vDlXazYbvXBL1b7ksjQA?p=preview

see https://github.com/angular/angular/issues/4946

@aitboudad thanks

Is there a way to workaround this issue for now?


Braces are removed from single-item import in macro where they are required

In a macro that takes a path as an argument:
macro_rules! get_msg {
    ($module:path) => {
        let message = {
            use $module::{MESSAGE}; // note the (usually unnecessary) brackets
            MESSAGE
        };
        println!("{}", message);
    };
}

The braces around MESSAGE are required, and the code fails to compile without them. However, rustfmt removes them.
Playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=ca5ee49a37c35354f67d82d6303c7f5a

@junbl thank you for the report. Confirming I can reproduce this with the latest source version of rustfmt 1.7.0-nightly (cedb7b50 2024-01-25).
Some workarounds until we address this:

You can add a #[rustfmt::skip] attribute to prevent rustfmt from modifying the formatting:
macro_rules! get_msg {
    ($module:path) => {
        #[rustfmt::skip]
        let message = {
            use $module::{MESSAGE}; // note the (usually unnecessary) brackets
            MESSAGE
        };
        println!("{}", message);
    };
}

If you're using unstable rustfmt features you can turn declarative macro body formatting off by setting format_macro_bodies=false.

Also linking the tracking issue for format_macro_bodies (https://github.com/rust-lang/rustfmt/issues/3355)

Oh, and I'm not sure if this is an option for you, but if the rust playground link shows how you'll actually call the macro (with a single identifier, like get_msg!(x)), then you could possibly rewrite the macro as follows and the code will still compile after rustfmt removes the braces {}:
macro_rules! get_msg {
-    ($module:path) => {
+    ($module:ident) => {
        // this works but the braces in the import get lost on format
        let message = {
            use $module::{MESSAGE};
            MESSAGE
        };

        // this would be nicer but doesn't work
        // let message = $module::MESSAGE;

        println!("{}", message);
    };
}


Camera temperature read-outs?

If I remember correctly, you could in the Windows SDK query the camera temperature. I only found stuff relating to temperature in the f200-private code. But can I get temperature readouts from a SR300 camera? If so, how would I go about that. I'm not afraid to look at the f200 code and try to recreate the feature for SR300....

I believe SR300 reports temperatures using same API as F200. Check GetIRTemp = 0x52 and GetMEMSTemp = 0x0A USB commands and the related read_ir_temp and read_mems_temp functions.
There are couple of changes that might be relevant: First, when camera is not streaming depth, F200 would successfully return temperature 0, while SR300 will fail with 'Invalid HW State" code.
Another difference is that the temperature control loop in F200 is done in software, while SR300 is handling that automatically in hardware.

Alright, thanks I'll try that!

What is the difference between mems_temp and ir_temp? Which one should I use? Should I expose both?

I'm I'm getting ir temps ~29 and mems temps around ~20. What units are these? Why are they different?

@vidstige are you building your own temperature/calibration model for the SR300?

Nope, just want the read outs. We're using the pcb and think we got enough cooling, but are not really sure. Things seems to work okay, but we would like to log the temperature to be able to see if we got heating problems if a camera fails or such.

I'll let @dorodnic fill in the knowledge gaps here. When I see 29 and 20 I don't see how it could be any other range than degrees centigrade.

Yeah, I think you mean degrees Celsius. Could be some "raw" format you need to shift one bit left or multiply with 1.2 or whatever as well. Just wanted to double check. Thanks for pinging @dorodnic

A related question for you @ddiakopoulos : If I were to make a pull request for this, what would be a good way to add it to the API? I'm thinking a function in the device class, e.g. get_temperature that takes an enum for either mems or ir temp. Any thoughts on that?

ping. any news on this? If no answer I'll propose a pull request and assume degrees Celcius.

It should come through the get_option and set_option system.

But is it really an "option" like the others? You can't really set it for example, and it will very for each call, so it is a diffrent kind of creature compared to the options that are in there now... But, I'll do it like that. Thanks for taking your time to think about his and for the feedback!

Hi vidstige, sorry for late response.
Yes, the temperature is in degree Celsius.
Regarding the different functions - you can query the temperature on different points on the PCB:
ir_temp is measured near the IR Sensor.
mems_temp is measured near the projector.
These test points are device specific, and in theory new test points can be added for future products.
I fear that exposing temperature as an option abuses option API.
Current API provides no way to know which options are read-only and which are read-write. Also, there is no way to know which options are safe to cache and which (like temperature) are being modified by the device. Since monitoring temperature is common use case, I would recommend adding get_temperature method.

Hi @vidstige We'll add this to an internal feature tracker because it's functionality that should be exposed. I'll back out of my comment that it should be built on the get/set option API and defer to @dorodnic for a possible implementation.

Alright, great. Thanks for the clarification and for looking into this. I got side tracked myself, was intending to make a pr for this but never got around.

Checking in on this request, have also come across this need.  Any updates?

No, it turned out we did not really need this as badly as we thought. We're not currently working on it and it is not planned. It did not seem too time consuming too implement last time I checked the code though.


Public Register Control Doesn't Work

Describe the bug
public Flag Missed In 0.22.5
Is This A Feature Or A Bug?
Steps to reproduce
Deploy The Container With Image neosmemo/memos:latest neosmemo/memos:stable neosmemo/memos:0.22.5
Run Container With -e MEMOS_PUBLIC:false
The version of Memos you're using.
0.22.5
Screenshots or additional context
No response

You can configure this on the UI.


Downloaded images linked using 2 formats

So I'm trying to download this page - https://ilyashabanov.substack.com/p/note-taking-system-for-success-in
and I have the download options set to download images. These are placed in a folder next to the download in the download folder (This is despite trying to set up Obsidian integration). Upon copying and pasting the file and its folder into my 'Articles' folder in my Obsidian vault, I notice the image links are being represented two ways.
both lines below appear in my document:
[
](https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faee4dbaf-b466-412c-b3ce-75383d56266e_1306x907.jpeg)
Only the top one renders. the link below is the correct link, but I don't want any online links, just the links to the downloaded files.My settings have 'Pure Markdown' set for Image Style.

I have a same issue.
My settings have 'Obsidian internal embed' set for Image Style.
In this case, three links are inserted.
The correct link is the second.
[![[image-file.png]]

![[image-file.png]]

](https://example.com/path/to/image-file.png)


A description of how to use is needed when modifying saved content.

An example of modification is required for the written article.
Entering a value as a variable in the initialValue Property prevents it from being displayed in the editor.
What should I do?

@apollonius9 I don't know what's wrong now. Is there a problem with the initialValue option value? Please provide detailed usage information such as OS, browser, and wrapper usage.

You want the created article to call up the history stored in the database so that it can be modified in WYSIWYG mode.

Thank you for your email.
I hope your endless happiness and hope will come true.
this.editorRef.current.getInstance (). setHtml (database_data, false);
I solved it with the code above.
The API manual is not easily accessible to beginners!
I solved it by looking at the site below and referring to the API manual.
https://developer.aliyun.com/mirror/npm/package/@toast-ui/react-editor
[image: 케익.jpg]
Thank you.
Be happy!
2020년 11월 25일 (수) 오전 10:26, 류선임<EMAIL_ADDRESS>작성:

@apollonius9 https://github.com/apollonius9 I don't know what's wrong
now. Is there a problem with the initialValue option value? Please
provide detailed usage information such as OS, browser, and wrapper usage.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nhn/tui.editor/issues/1268#issuecomment-733403708,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRZGG47I7ACNJP3324HZADSRRMLFANCNFSM4UBTONDA
.

--
법률문서자동작성 플랫폼 :  로폼 (LAW FORM) - www.lawform.io http://www.lawform.io/
아미쿠스렉스 주식회사 Amicuslex Co., Ltd.
System & program constructing, 공학박사(Ph.D.)ㅣ장현호(zzang, Hyun-Ho Jang)
서울시 영등포구 의사당대로83 위워크 여의도 6층 (서울시 핀테크랩)
Tel. 02-6207-0264 Fax.02-6250-0151
이 이메일에는 법적으로 보호받는 정보 또는 기밀사항이 포함되어 있을 수 있습니다.
만일 귀하가 정상적인 수신자가 아닐 경우 이 이메일의 복사, 전달 및 사용 등이 금지되어 있습니다. 이 이메일이 착오로 보내졌을 경우
저희(zzang@amicuslex.net)에게 연락주시고, 원본 및 사본과 첨부된 파일을 영구히 삭제해 주시면 감사하겠습니다.
WeWork Yeouido 6F (Fintech Lab, Seoul), 83, Uisadang-daero,
Yeongdeungpo-gu, Seoul, Republic of Korea
This email may contain legally protected information or confidential
information. Copying, forwarding and using this email is prohibited if you
are not a normal recipient. If you have received this communication in
error, we would appreciate it if you could contact us<EMAIL_ADDRESS><EMAIL_ADDRESS>and permanently delete the original, copy and
attached file.
MAY THE FORCE BE WITH YOU!

@apollonius9 I think the problem has been resolved, so I'll close this issue. I'll update the documentation as you said. Thanks.

Hello!
I have a question.
Do you have an option to apply a custom CSS file?
Thank you.
MAY THE FORCE BE WITH YOU
2020년 11월 26일 (목) 오전 11:46, 류선임<EMAIL_ADDRESS>작성:

Closed #1268 https://github.com/nhn/tui.editor/issues/1268.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nhn/tui.editor/issues/1268#event-4040527980, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRZGG2VHYRHMMTKSLIWUK3SRW6SBANCNFSM4UBTONDA
.

--
법률문서자동작성 플랫폼 :  로폼 (LAW FORM) - www.lawform.io http://www.lawform.io/
아미쿠스렉스 주식회사 Amicuslex Co., Ltd.
System & program constructing, 공학박사(Ph.D.)ㅣ장현호(zzang, Hyun-Ho Jang)
서울시 영등포구 의사당대로83 위워크 여의도 6층 (서울시 핀테크랩)
Tel. 02-6207-0264 Fax.02-6250-0151
이 이메일에는 법적으로 보호받는 정보 또는 기밀사항이 포함되어 있을 수 있습니다.
만일 귀하가 정상적인 수신자가 아닐 경우 이 이메일의 복사, 전달 및 사용 등이 금지되어 있습니다. 이 이메일이 착오로 보내졌을 경우
저희(zzang@amicuslex.net)에게 연락주시고, 원본 및 사본과 첨부된 파일을 영구히 삭제해 주시면 감사하겠습니다.
WeWork Yeouido 6F (Fintech Lab, Seoul), 83, Uisadang-daero,
Yeongdeungpo-gu, Seoul, Republic of Korea
This email may contain legally protected information or confidential
information. Copying, forwarding and using this email is prohibited if you
are not a normal recipient. If you have received this communication in
error, we would appreciate it if you could contact us<EMAIL_ADDRESS><EMAIL_ADDRESS>and permanently delete the original, copy and
attached file.
MAY THE FORCE BE WITH YOU!


Memory usage keeps growing

Bevy version
Bevy 0.5 main
Operating system & version
Windows 10 20H2
What you did
cargo run --example load_gltf
What you expected to happen
The memory usage keeps steady
What actually happened
The memory usage keeps growing fast
Additional information
All examples happens

didn't notice this issue on macOS 10.15.7, usage remained stable around 234MB during 10 minutes

didn't notice this issue on macOS 10.15.7, usage remained stable around 234MB during 10 minutes

That's the memory usage on my computer Windows system, and it didn't notice on Linux  system. But it happens on Windows

Is this with the DirectX 12 back-end of wgpu?

Is this with the DirectX 12 back-end of wgpu?

I don't specify the back-end，and I open the log. There is  log Buffer Valid((7, 1, Dx12)) is detached, I think it's the DirectX 12 back-end of wgpu.

Using Windows 20H2 (19042.844) I do not have this issue. Stable at ~65MB.

Which graphics card and driver version are you both using? Maybe it is a driver specific issue?

Tested two versions:
GTX 1080 (<IP_ADDRESS>71)
GTX 1080 (<IP_ADDRESS>40)
Both work well.

Which graphics card and driver version are you both using? Maybe it is a driver specific issue?

Lenovo notebook.
CPU: AMD R5-4600U
GPU: Integrated Graphics (27.20.11028.5001)
I will update driver, and test again.

Can you try to run the wgpu-rs cube sample with version 0.6 and version 0.7 on your AMD computer and check if there is a difference? I think I have recently also stumbled upon this, when I ran it on a system with only the Standard DirectX12 Drivers (no GPU support).

Can you try to run the wgpu-rs cube sample with version 0.6 and version 0.7 on your AMD computer and check if there is a difference? I think I have recently also stumbled upon this, when I ran it on a system with only the Standard DirectX12 Drivers (no GPU support).

Yes, I think you're right. I run the cube sample with the version 0.7. When I set the WGPU_BACKEND=dx12, the memory growing fast,  I set WGPU_BACKEND=vulkan, the memory usage remained stable.
And it's so on, set the BEVY_WGPU_BACKEND="vulkan" it works well. But set the BEVY_WGPU_BACKEND="dx12", the memory usage growing fast.
So I think it's an issue about wgpu-rs can't work well with the backend of dx12 on the AMD GPU.

Did you also try it with version 0.6 and the dx12 backend?
If it works there it might be worth opening an Issue in the upstream wgpu-rs repo.

also

On the version of wgpu-rs, I set WGPU_BACKEND="dx12", It also render by vulkan. It seems that dx12 backend isn't available on 0.6.
I will open an issue in the wgpu-rs, maybe the next release will resolve it.

Did you also try it with version 0.6 and the dx12 backend?
If it works there it might be worth opening an Issue in the upstream wgpu-rs repo.

On the version of wgpu-rs, I set WGPU_BACKEND="dx12", It also render by vulkan. It seems that dx12 backend isn't available on 0.6.
I will open an issue in the wgpu-rs, maybe the next release will resolve it.

I think the dx12 backend is available on 0.6: see here. But you will not be able to force it with WGPU_BACKEND="dx12". I try to find out how it can be done with 0.6.

I think the dx12 backend is available on 0.6: see here. But you will not be able to force it with WGPU_BACKEND="dx12". I try to find out how it can be done with 0.6.
Edit: It should work if you only allow this BackendBit in the code: docs.
Just use this tutorial / example and change that line to
let instance = wgpu::Instance::new(wgpu::BackendBit::DX12);

I change  this line to enable dx12 and run the example cube.
The memory usage keeps stable about 308MB. So it's an issue about wgpu.

See also: #1804

this should have been fixed after a dependency update, could you check after a cargo update?

Closed following #1804. Feel free to reopen if you still have an issue.

I test it on the latest, it works well. The memory usage remained stable


enable multiple protocol prefixes

The new added FAQ says all.

Q. How to use "sudo:" alongside "suda://"?
A. Use a list in g:suda#prefix like below.
   let g:suda#prefix = ['suda://', 'sudo:']
   call suda#init('suda://*,sudo:*,sudo:*/*')

I have an alias _='sudo ' in my shell. This current PR lets me use a similar _:// sudo prefix while still keeping suda:// or sudo:// as sort of a standard default.
a list or prefixes, or a single prefix string, both are valid values for g:suda#prefix in this commit, so no change is required from the end-user perspective.

a27d4d6 automatically generates necessary autocmd patterns so this is not mandatory any more:
    call suda#init('suda://*,sudo:*,sudo:*/*')

This is all.

Thanks for the tips. (I'm just starting out with vimscripts). I've made a commit to address the issues you pointed out. I moved the search pattern builder to a separate function.

👍


use using rather than typedef in every class definitions

Replace typedefs by usings as often as possible in all the already implemented / coded classes.

Completed. Tested.


 breaks Vue.js devtools

Describe the bug
Adding a  breaks the Vue.js devtools chrome extension (in MacOS Microsoft Edge, but probably it's the same in Chrome).
The issue is present in a new empty nuxtjs setup with just this module added, as well as in the playground.
Unfortunately you have to run the playground locally in dev mode, as the Vuejs devtools is disabled in production.
I am not sure if this issue belongs here or should be open in the tres repo.
backend.js:3787  Job regiserApp failed:
(anonymous) @ backend.js:3787

backend.js:3788  TypeError: Cannot read properties of undefined (reading 'ownerDocument')
    at createAppRecord (backend.js:1046:59)
    at async registerAppJob (backend.js:1016:7)

Reproduction
https://github.com/Tresjs/playground
Steps to reproduce
Run pnpm i followed by pnpm dev.
Open any page, for ex: http://localhost:3000/experiments/basic-shaders
System Info
MacOS 13.4.1
Microsoft Edge Version 114.0

Used Package Manager
pnpm
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] The provided reproduction is a minimal reproducible example of the bug.

Sorry for this. Seems like it is related to the tres itself as I found this issue https://github.com/Tresjs/tres/issues/317


TD-2151/tyk-sink-2.4

Create release branch 2.4

Appears to need the test updates that will be done in https://tyktech.atlassian.net/browse/TD-2109


Fork the support room

Documentation links to the Matrix support room for the upstream project (#matrix-bot-sdk:t2bot.io).  We should set up a new room for this fork & link to that instead.

Since having our own support room might spread our support capabilities thin, it's probably better to direct people to file issues instead.
This will still involve updating links in documentation.


added pg_ident and pg_hba to cluster.yaml as values overrides

added pg_ident and pg_hba to cluster.yaml as values overrides

I'll change the API to make all of these available under the cluster.postgres.*. I'm closing this for now.

Is there an ETA on when to expect that update?


Fix military-tools-for-arcgis issue 63

Prevent adding same/identical favorite more than once:
https://github.com/Esri/military-tools-for-arcgis/issues/63

@pHill5136 - can you review/merge - thanks


Auto install apk when using FileDownloadUpdateListener

Have you consider initiating the apk install after downloading an apk using the FileDownloadUpdateListener? I have seen a few apps do this in the past so I know it can be done. If you wouldn't want to do this in the library, I can understand that, but maybe we could look into giving a callback instead of finishing the activity in onUpdateSelected. Let me know your thoughts.

Well I left everything protected with the idea that if someone would like to change the default behaviour of the FileDownloadUpdateListener they can extend it and override just the methods they want. So in that case they would override the onUpdateSelected function and only call downloadFile(); without the finish if they would like.

I don't know how I overlooked that. That is completely acceptable. I am going to try and get that working. If I have something that works well, would you want me to document it so it can be part of the repo's wiki as an example implementation?

Ahh, but the downloadFile method is private. That's why I was thinking you couldn't override onUpdateSelected without writing your own download method.

Ahh, but downloadFile is private. That's why I thought you couldn't override onUpdateSelected without writing your own download logic.

Ah, that was unintentional. I can update all methods to be protected to allow extension.

Hello,

Ah, that was unintentional. I can update all methods to be protected to allow extension.

Is there any chance to get an update with these changes implemented? As i see it was merged, but no update was published.

I'll poke @btkelly today about getting an update shipped.

Sorry about that, this one slipped through. I'll publish an update today.

Thanks much, guys.

:+1: version 1.3.4 is now available.


Automate adding function name and test number to the test title

A function should be implemented which adds the function name and a test number to the title of the tests. Additionally it should add a comment before the test such that it is displayed in the TOC in RStudio.
For example
test_that("duration and unit variable are added", {
...
}

should be transformed to
#---- derive_vars_aage, test 1: duration and unit variable are added ----
test_that("derive_vars_aage, test 1: duration and unit variable are added", {
...
}

If the function name and test number are already in the title, it should be updated if necessary.
Please note this is quite a large task and good for someone familiar with the RStudio API.

HI @bms63 , I understand that I am gonna copy the code for the addin here. It seems though that I don't have permissions to write to this repo, could you please adjust that for me? Thanks

@slamao I added you to the repo.  Thanks for following up on this!