Cannot determine binary sensor state. Found raw state of DeviceState.UNKNOWN.

This issue was - Closed https://github.com/pyalarmdotcom/alarmdotcom/issues/311 as completed. The error still exists in the latest release.

2023-07-29 08:26:49.576 ERROR (MainThread) [custom_components.alarmdotcom.binary_sensor] Cannot determine binary sensor state. Found raw state of DeviceState.UNKNOWN.
2023-07-29 08:26:49.577 ERROR (MainThread) [custom_components.alarmdotcom.binary_sensor] Cannot determine binary sensor state. Found raw state of DeviceState.UNKNOWN.
2023-07-29 08:26:49.578 ERROR (MainThread) [custom_components.alarmdotcom.binary_sensor] Cannot determine binary sensor state. Found raw state of DeviceState.UNKNOWN.
2023-07-29 08:26:49.579 ERROR (MainThread) [custom_components.alarmdotcom.binary_sensor] Cannot determine binary sensor state. Found raw state of DeviceState.UNKNOWN.
2023-07-29 08:26:49.581 ERROR (MainThread) [custom_components.alarmdotcom.binary_sensor] Cannot determine binary sensor state. Found raw state of DeviceState.UNKNOWN.

I have the same issue...  Also attempted to remove all the unsupported entities and did a complete reboot of my system but still have these errors.

Bumping this to @elahd - This shows up hundreds of times a day for me right now, and while it does not prevent any functionality, it would be nice to clear out of the logs. Thank you and really appreciate all that you do for this integration.

 Found raw state of DeviceState.UNKNOWN.
2023-09-14 18:37:28.012 ERROR (MainThread) [custom_components.alarmdotcom.binary_sensor] Cannot determine binary sensor state. Found raw state of DeviceState.UNKNOWN.
2023-09-14 18:37:28.013 ERROR (MainThread) [custom_components.alarmdotcom.binary_sensor] Cannot determine binary sensor state. Found raw state of DeviceState.UNKNOWN.
2023-09-14 18:37:28.014 INFO (MainThread) [custom_components.alarmdotcom.base_device] Updated Door Garage Temperature Below 7 Degrees Garage Temperature Below 7 Degrees (102399892-18): None
2023-09-14 18:37:28.014 INFO (MainThread) [custom_components.alarmdotcom.base_device] Updated Motion Main Floor Motion Detector Main Floor Motion Detector (102399892-15): on

Hey guys. This should be fixed now. Devices with an unknown state won't pollute event logs. They will show up as unavailable in Home Assistant. Out of curiosity, why are the devices reporting as unknown?

Sigh, that is a good and obvious point, I should have found the device and disabled it long ago. For whatever reason I thought it was just a bug with the integration... of course, it is always the integrations fault and not the user :P
The device that was unknown is titled "Partition 1 Command O/P 1" and I have no idea what it does.

it is always the integrations fault and not the user :P
🤣

Do you have a DSC panel? Looks like it controls a programmable output on your control board: https://geldenhuys.tech/command-output/
Are you able to dump the raw device JSON using the adc command line tool? There are instructions in the wiki.
Thanks!


replace error

python 3 arrow 0.7.0 (pip latest)
What I do:
>>> a=arrow.utcnow()
>>> a
<Arrow [2015-10-10T23:32:20.344633+00:00]>
>>> a.replace(seconds=30)
<Arrow [2015-10-10T23:32:50.344633+00:00]>

What I expect:
<Arrow [2015-10-10T23:32:30.344633+00:00]>

Seconds was plused not replaced.

Using plural time nouns will result in shifting instead of replacing, as per https://github.com/crsmithdev/arrow/blob/master/arrow/arrow.py#L381.
So, use second instead of seconds.

There's a pull-request related with this issue and it will solve the implicit problem: #276

This was handled by a PR


typos

code comments
Coincidentally
hasn't
marshaller
marshal
preceding
process
$ grep -nr Coincidentially terminal
terminal/src/renderer/atlas/AtlasEngine.h:819:            // Coincidentially that's exactly what we want as the cursor texture lives at {0, 0}.
$ grep -nr hasnt terminal
terminal/src/cascadia/Remoting/WindowManager.cpp:313:            // future. The AppHost hasnt yet set up the callbacks, and the rest
$ grep -nr marshaler terminal
terminal/src/host/ft_uia/Common/ShortcutHelper.cs:91:                // The marshaler doesn't like using the existing instance that we made above because it's a value type and
$ grep -nr "marshall the" terminal
terminal/scratch/ScratchIslandApp/WindowExe/WindowExe.vcxproj:93:    marshall the Core types across the boundary.
$ grep -nr preceeding terminal
terminal/src/host/ft_host/CJK_DbcsTests.cpp:2049:// In other words, writing a trailing CHAR_INFO will also automatically write a leading CHAR_INFO in the preceeding cell.
$ grep -nr precess terminal
terminal/src/cascadia/TerminalSettingsModel/ActionAndArgs.cpp:195:    //     to precess the rest of the arguments in the json object.
$

markdown
every time
foresee
$ grep -n everytime terminal/doc/Niksa.md
148:So from our little team working hard to make developers happy, we virtually never make the cut for servicing. We're sorry, but we hope you can understand. It's just the reality of the situation to say "nope" when people ask for a backport. In our team's ideal world, you would all be running the latest console bits everywhere everytime we make a change. But that's just not how it is today.
$ grep -n forsee "terminal/doc/specs/drafts/#997 Non-Terminal-Panes.md"
63:I don't forsee this implementation by itself raising security concerns. This
$

.github/actions/spelling/expect/expect.txt
As pointed out in a previous PR 'everytime' doesn't belong in expect.txt.

noticed this looking at the initial patch
the fix would be
find a deserializer
$ ed -s terminal/src/cascadia/TerminalSettingsModel/ActionAndArgs.cpp <<<'193,194p'
    //   * If json is an object, we'll attempt to retrieve the action name from
    //     its "action" property, and we'll use that name to fine a deserializer
$

Even though you've got one signoff on your PR (we require two per repository policy), you're of course free to continue submitting revisions to it. fine=>find isn't a misspelling, but it sure is a silly typo--or perhaps, a thinko--that we should probably not have. I appreciate you finding these :smile:

@DHowett
https://github.com/microsoft/terminal/pull/14671/commits/06bca55c228e939eeb79679598dd66d8f8cf000f
I presume from your previous comment that the above commit was correct.

I'll leave this for Members' consideration in another PR.
@zadjii-msft
https://github.com/microsoft/terminal/pull/12475 left everytime in the allow list
.github/actions/spelling/expect/expect.txt
--- expect.txt.orig     2023-01-14 11:12:27.296971808 -0600
+++ expect.txt  2023-01-14 11:37:56.432957871 -0600
@@ -590,7 +590,6 @@
 EUDC
 EVENTID
 eventing
-everytime
 evflags
 evt
 execd
@@ -1550,7 +1549,6 @@
 READCONSOLEOUTPUTSTRING
 READMODE
 reallocs
-reamapping
 rects
 redef
 redefinable
@@ -2196,7 +2194,6 @@
 WNegative
 WNull
 wnwb
-workarea
 workaround
 WOutside
 WOWARM

terminal/src/terminal/input/terminalInput.cpp
the fix would be
Vim without remapping
$ ed -s terminal/src/terminal/input/terminalInput.cpp <<<'128,130p'
    // PuTTY uses a set of mappings that don't work in ViM without reamapping them back to the numpad
    // (see http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Comments)
    // I think the best solution is to just not do any for the time being.
$

terminal/src/interactivity/win32/window.cpp
the fixes would be
monitor's work area
monitor work area's
it doesn't appear that WORKAREA is a variable; so should be rewritten in lowercase and as two words
$ ed -s terminal/src/interactivity/win32/window.cpp <<<'284,295p'
                    //get origin of monitor's workarea
                    mi.cbSize = sizeof(MONITORINFO);
                    GetMonitorInfo(hMon, &mi);

                    //Adjust right and bottom to new positions, relative to monitor workarea's origin
                    //Need to do this before adjusting left/top so RECT_* calculations are correct
                    rectProposed.right = mi.rcWork.left + rectProposed.width();
                    rectProposed.bottom = mi.rcWork.top + rectProposed.height();

                    // Move origin to top left of nearest
                    // monitor's WORKAREA (accounting for taskbar
                    // and any app toolbars)
$

If Members want to add the additional changes from the previous comment they are welcome to do so.
.github/actions/spelling/expect/expect.txt
(patch appears in previous comment)
terminal/src/terminal/input/terminalInput.cpp
--- terminalInput.cpp.orig      2023-01-15 10:05:05.979936352 -0600
+++ terminalInput.cpp   2023-01-15 10:05:52.739935827 -0600
@@ -125,7 +125,7 @@
     // The numpad has a variety of mappings, none of which seem standard or really configurable by the OS.
     // See http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-PC-Style-Function-Keys
     //   to see just how convoluted this all is.
-    // PuTTY uses a set of mappings that don't work in ViM without reamapping them back to the numpad
+    // PuTTY uses a set of mappings that don't work in Vim without remapping them back to the numpad
     // (see http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Comments)
     // I think the best solution is to just not do any for the time being.
     // Putty also provides configuration for choosing which of the 5 mappings it has through the settings, which is more work than we can manage now.

terminal/src/interactivity/win32/window.cpp
(presuming WORKAREA isn't a variable)
--- window.cpp.orig     2023-01-15 10:09:36.609933311 -0600
+++ window.cpp  2023-01-15 10:10:48.072932507 -0600
@@ -281,17 +281,17 @@
                     auto hMon = MonitorFromRect(rectProposed.as_win32_rect(), MONITOR_DEFAULTTONEAREST);
                     MONITORINFO mi = { 0 };

-                    //get origin of monitor's workarea
+                    //get origin of monitor's work area
                     mi.cbSize = sizeof(MONITORINFO);
                     GetMonitorInfo(hMon, &mi);

-                    //Adjust right and bottom to new positions, relative to monitor workarea's origin
+                    //Adjust right and bottom to new positions, relative to monitor work area's origin
                     //Need to do this before adjusting left/top so RECT_* calculations are correct
                     rectProposed.right = mi.rcWork.left + rectProposed.width();
                     rectProposed.bottom = mi.rcWork.top + rectProposed.height();

                     // Move origin to top left of nearest
-                    // monitor's WORKAREA (accounting for taskbar
+                    // monitor's work area (accounting for taskbar
                     // and any app toolbars)
                     rectProposed.left = mi.rcWork.left;
                     rectProposed.top = mi.rcWork.top;


I am also learning javascript and I think I can help you

Welcome Aboard Mate 🎉.

Implement the aforementioned algorithms in their individual files.
Create a algorithms folder for the files.
Use camel-case 🐫 for naming the files. E.g. linearSearch.js, heapSort.js
Do not use dependencies.
Use Conventional Commit standard.

Here is the VS Code extension link
Commit message examples

New Feature - feat: ✨ added [algorithm name] algorithm.
Fix Bug - fix: 🐛 fixed [description of bug]

Add a comment to the top of the file with the name of the algorithm, and some helpful resources (or resources that you've used) for that algorithm. Use this file as an example.
Write comments to describe what you're doing.
Add an inline comment to show the output of an console.log statement. E.g. console.log(p); // Output: [ 'val1' ]
Run npm run pretty to prettify the code. (make sure that you have dev dependencies installed)

😅 I think that's all you need to know in order to get started. Message me on discord at CaptainAyan#5716 for any questions.

is the issue still open?


Design product with attributes

@khanhduzz Here's my diagram draft:

What are your suggestions?

@khanhduzz Can you review this?

@khanhduzz Can you review this?

Hi @PALASH2201 , too busy these days, just a fast check, I think we can go with that diagram, you can implement the product with that all attributes, I think it maybe a little bit complicated, so you might break it into smaller task and make PR.
And please trying to write clean and easy to read code, thank you!

@khanhduzz Can I change the add the .md doc for the same in docs folder? Should I issue a PR for same?

@PALASH2201 So, what do you mean? You want to add the diagram to the docs? You can make a PR for that.

ok, will issue a PR

@khanhduzz please review the PR

@khanhduzz  I just finished my Semester exam, will start implementing it


Updating the http dependency

Hi!
If possible, could the http dependency be updated from ^0.13.5 to ^1.0.0 for the next release?
Thanks!

Sure, I'll update the dependency for the dev version and it'll be part of the next major release.

Available in pre-release on v4.0.0-dev.2


Documentation: Mocking/Stubbing certain functions requires stubbing parts of google-gax

Is your feature request related to a problem? Please describe.
Recently when writing some integration tests for my code I needed to stub the createBuild function. To do this effectively I also needed to stub the OperationsClient that is returned for long-running operations since that is then used to check the result of the request.
After combing through the source code for this library I figured out that the operations client comes from the google-gax dependency.
Describe the solution you'd like
I think it would be great to document some examples of how to mock/stub this library (when using something like sinon) just to make it easier for folks to know how to test around this library and its dependency on gax/grpc. I'd be happy to contribute some of my own examples.

@isand3r this is an interesting idea. As these libraries are largely auto generated, I wonder how we would document this in  general sense, such that folks actually discover the docs.
CC: @alexander-fenster

Are the auto-generated tests in test/gapic*.ts useful for doing what you want? In particular, this piece
https://github.com/googleapis/nodejs-cloudbuild/blob/master/test/gapic_cloud_build_v1.ts#L55-L69
and this is how we use it:
https://github.com/googleapis/nodejs-cloudbuild/blob/master/test/gapic_cloud_build_v1.ts#L1366

ah interesting - thanks for the links, I hadn't seen those. I will check that out

Hi folks,
I'm going to go ahead and close this issue out, since it seems like it's been resolved.
@isand3r please reopen this issue if I'm mistaken. Thanks! 😃


NIFI-5757 AvroRecordSetWriter - Fix for slow synchronized access to compiledAvroSchemaCache

Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

[x] Is your initial contribution a single, squashed commit?

For code changes:

[ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

@arkadius thanks for the contribution. I don't think this is the right approach, however, As-is, the code ensures that we don't hold any more than a set number of entries in the cache. The proposed change removes this limitation, which introduces a memory leak that can quickly cause a system to run out of memory if they are using an unbounded number of schemas (as can occur if a system is dynamically generating schemas).
The synchronization here is limited to an extremely small scope. Can you explain how you arrived at the determination that the existing code is slow? What kind of performance are you seeing? What performance do you expect? What kind of difference do you see after applying this change?

Hi @markap14 . Thank you for your reply. We have a quite heavy-loaded environment. We are processing about 5 GB / min of messages on 32 core host. Avro serialization was our main bottleneck. We had avg 30 threads concurrently using this service. CPU usage was on 85%, iowaits near 0, load on 50. Increasing of number of threads didn't help. As I wrote in issue, I found out that the synchronization is an issue by sampling (doing occasional thread dumps). Most of thread was blocked on it. After this modification, we stopped to occur such a performance issue.
Regards to removing of limitation of entries in the cache. I agree with you that it isn't the best approach. Limitation of 20 schemas wasn't either. In systems with multiple flows, commonly using the same service, this limit would be constantly hit. What do you think about introducing two parameters to this service: Cache Size Limit and Time To Leave? After hitting one of them, entry would be evicted. Condition would be checked during each entry get. Similar to cachedSchema.isOlderThan check in CachingSchemaRegistryClient. If we assume that these limits would be soft one, it won't need synchronization.

@arkadius fair enough. I'd be okay with a soft limit.

@markap14 what do you think about using https://github.com/ben-manes/caffeine instead? They have benchmarks showing performance difference from current approach (named LinkedHashMap_Lru). Take a look at probably the most important Read 100% scenario. If you want, I can also rewrite other LinkedHashMap usages for cache? grep removeEldestEntry shows 10 other places.

@arkadius I am not familiar with caffeine but it looks promising. A quick glance through the LICENSE indicates that it is compatible and has only a single dependency on Google Guava, which is also compatible.
I would avoid updating the other references blindly, though. We would need to do some evaluation to see where it does and does not make sense. Especially if used in a context where thread safety is not required.

Other places of usage:

org.apache.nifi.record.path.util.RecordPathCache - record path cache, synchronized access
org.apache.nifi.avro.AvroReader - avro schema cache (this parts is almost copy-paste of AvroRecordSetWriter), synchronized access
org.apache.nifi.processors.attributes.UpdateAttribute - canonical value lookup cache, synchronized access
org.apache.nifi.atlas.hook.NotificationSender - guidToQualifiedName and typedQualifiedNameToRef caches, but no synchronization on class level
org.apache.nifi.processors.jolt.record.JoltTransformRecord - tranformations cache, synchronized access
org.apache.nifi.schema.access.WriteAvroSchemaAttributeStrategy - avro schema cache, synchronized access
org.apache.nifi.processors.standard.PutDatabaseRecord - table schema cache, synchronized access
org.apache.nifi.processors.standard.JoltTransformJSON - tranformations cache, synchronized access
org.apache.nifi.processors.standard.ConvertJSONToSQL - table schema cache, synchronized access
org.apache.nifi.confluent.schemaregistry.client.CachingSchemaRegistryClient - avro schema cache, synchronized access

For me in 9/10 case it is the same scenario and would be better to fix it there before someone hit the same problem. Especially when it is used for avro schema cache. If someone choose, avro it is very high probability that he or she will expect high throughputs. WDYT?

@arkadius thanks for compiling that list. Sorry it took so long to reply! Looking through the list, I do think you're right - these all appear to be the same pattern. I certainly didn't realize that we were making such prolific use of this pattern. Reading through the Caffeine docs, it probably does make sense to update these as well.

@arkadius thanks for the update! Code review looks good. All unit tests and contrib-check pass. This does touch some super heavily used processors, though, like UpdateAttribute, so I'll want to take my time testing. This could certainly be a great improvement though. Thanks again!

@markap14 No problem, looking forward for conclusions from this testing.

@arkadius I did a good bit of testing and wasn't able to break anything. Thanks for the improvements! +1, I have merged to master.


Make purchase helper pick default storage location

Resolves #4436
Description

Type of change

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

How Has This Been Tested?

Screenshots

The next step here is to apply the default storage location (if set) to donations.
I see that the donations form was implemented differently from the purchases form in that we directly set the location in the form as shown here while the purchases form uses a helper function as shown here.
The open question: should we switch the donation form to use a (new) method declared in app/helpers/donations_helper.rb or directly check that the organization has a default storage location in the form?

I don't know of any functional reason they shouldn't behave exactly the same, fwiw.

Hey @lenikadali -- when a PR is ready for review,  please change its status to "Open".

Hi @dorner
Thanks a lot for the review :raised_hands: I think you can give it another look and it should be good :crossed_fingers:

oof... @lenikadali tests are failing now. :(

Should be green in the next run @dorner
It seems I forgot to update the other usages of set_default_location to `default_location. Commit b88b36c should let the next run pass :crossed_fingers:

Found that I hadn't update the view code to use the new method; hopefully the pipeline passes now :crossed_fingers:
Thanks a lot for your patience everybody :raised_hands:

Took a look at the last failing spec and I am not sure how to fix it. Currently if you make the following changes to the spec/requests/donations_requests_spec.rb:
-        expect(response.body).to include("<option selected=\"selected\" value=\"#{edited_source_drive_participant.id}\">#{edited_source_drive_participant_business_name}</option>")
+        expect(response.body).to include("<option value=\"#{edited_source_drive_participant.id}\">#{edited_source_drive_participant_business_name}</option>")

The spec will pass. Probably because we've changed the form's behaviour:
-                          selected: donation_form.product_drive_participant_id,
+                         selected: default_location(@donation),

Should I update the spec?

@lenikadali yes, let's update the spec so it matches the new behavior.

Updated the spec. The pipeline should be green now :crossed_fingers:


[h264e] Removed extra check nativeHandle for nullptr

We can loose more useful error status from function
GetFrameHDL() upper, also nullptr can be processed
in the upper code.
Aligned the same function GetNativeHandleToRawSurface
with h265e
Signed-off-by: Denis Volkov<EMAIL_ADDRESS>

Aligned GetNativeHandleToRawSurface() with h265e - the same change already merged with this patch:
Switch HEVC to use internal Core interfaces -
https://github.com/Intel-Media-SDK/MediaSDK/commit/20f0cdc2b89843f24398fb1ec7893816b314ad93#diff-564c6b03a14ecab6938c086da7c12b2dL565


How to hold a link to a child component

Question
Suppose I have components A and B, where A is composed of B. Now A wants to forward some messages it gets to B. This would be easy, if A has a direct reference to B's link. How can I accomplish this?
What I've considered
Using a NodeRef and cast(), but that seems like a lot of boilerplate code and I wondered, if there is some better way.

@Turakar you could pass a Rc<RefCell<Option<ComponentLink<B>>>> to component B from A. B could fill it with its link and then A could call it.

Thanks for the advice. I think it would be useful, if there is a more native support for this, e.g. passing an additional key in html! or something similar. What do you think about this?

@Turakar I think it's a great idea! I thought about this before and I think we could either add a link_ref property to components or just use ref for this. Do you mind writing up an issue?


Fix lookup site in charging station

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.mahdibenromdhane seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

No, wrong fix. The Charging Station has companyID, siteID and siteAreaID. Check with siteID is not provided in the Charging Station object.

I'v used a different approach to set/get the good company ID and site ID in charging stations.
Let me know if I missed something

Test more your changes! Check my comments.
I think we have the same problem with Asset. Double check Asset and if necessary provide a fix in another PR (at the same time you can also add the missing companyID in Asset not yet saved). Thanks!

I will check the assets and provide a fix if necessary.


Update Build-all.js

Change scss-build => frontend-scss-build

Thanks for the contribution, merging...


"Submit a bug" no longer allows previewing the issue on github before posting it?

Issue Type: Bug
I am pretty sure that until a while ago, when  clicking on "submit a bug" in vscode, the issue would be opened in preview on Github rather than being posted directly. Indeed, the text shown below seems to indicate that that is expected behavior:

Now however the issue is opened directly, which means that I can only include screenshots by opening an unfinished issue and going back to edit it.
Not the end of the world, but not the bext UX either - and if this is expected behaviour, you should modify the text I highlight above.


add(fork): hubcommander

Pull Request Template - Code Change Control
Description
Please include a summary of the change and which issue is fixed. Please provide the motivation for why this change is necessary at this stage of the product development cycle.
Fixes # (issue)
Customer Impact
Please describe any customer facing impact of this change. This can be positive or negative impact.
Performance Impact
Please describe any relevant performance impact of this change. This can be positive or negative impact. How did you characterize/test the performance impact?
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so others can reproduce. Please also list any relevant details for your test configuration.

[ ] Test A
[ ] Test B

Hardware Configuration:

[ ] Dev Board
[ ] Test rack
[ ] DVT Boards
[ ] Production Boards

Software Configuration:

Operating System:
Software version:
Branch:
Toolchain version:
SDK version:

Reviews
Please identify two developers to review this change

[ ] @personA
[ ] @personB

Checklist:

[ ] 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
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

close test


A11y: QuickView details button focus indicator has insufficient contrast

The focus indicator for the show more details button has insufficient contrast against both the button color AND the background color.
{panel:bgColor=#deebff}
The coloring for this also applies to the cart overlay, so we need to make sure we use the same as storefront.
{panel}

[public] Shopware automated response: This issue is linked to the internal issue: CMS-481
[created from CMS-481, comment 506640]

[public] The issue is already covered by the following ticket: https://github.com/shopware/shopware/issues/5206
[created from CMS-481, comment 518709]


Add Blind device

Would it be possible to add a blind (cover) device type?
At present I'm having to use a switch device.
Saying "Alexa turn on the studio blinds"  seems weird.
"Alexa close the studio blinds" is better.
Simplest would be to open or close. Optionally pass the blind closure %
TIA

Duplicate https://github.com/hardillb/node-red-alexa-home-skill-web/issues/118

A workaround I have been using for years is to create a routine triggered by phrasing you want to use.
ie Alexa, open bedroom blinds
then have the routine open your blinds


Which format for DANEBOT_RFC2136_TSIG_SECRET?

Hi
I am able to generate a TLSA RR with danebot, though the following DDNS update fails.
Output of danebot:
Error: DNS request @ <redacted> returned with rcode REFUSED

The log of my DNS server (powerdns) has this:
Jul 30 13:36:47 ns1 <redacted>[43846]: Packet for '<redacted>' denied: Signature with TSIG key '<redacted>' does not match the expected algorithm (hmac-sha512 / hmac-sha256)

or
Jul 30 13:30:18 ns1 <redacted>[43846]: Packet for '<redacted>' denied: Signature with TSIG key '<redacted>' failed to validate

depending on what I try.
I took a look at the sourcecode of tsigkeyring.py but wasn't able to actually figure out in which format to provide DANEBOT_RFC2136_TSIG_SECRET.
My TSIG secret is a hmac-sha512 key. It's used for other purposes successfully, I know it works.
The secret is 76 characters long. Do I need to base64 encode it? Do I need to supply the algorithm along with it?
Please advise.
Thanks!

FWIW, this naive patch fixes the issue for me. Danebot is now able to perform the DDNS update and place the TLSA RR.
danebot.txt

It seems that the TSIG algorithm needs to be passed to the dns.update.Update(..., keyalgorithm=...) call. The default is "HMAC_SHA256", so danebot currently only supports that. I created the PR #11 which makes it configurable. Can you check if that works for you?

Yes, this works. Thank you!

What was the syntax you provided to the --rfc2136-tsig-algo argument?

I ran danebot from a shellscript, this is the relevant section:
        --rfc2136-tsig-key "$(cat ${KEYFILE} | cut -d ':' -f 1)" \
        --rfc2136-tsig-algo "$(cat ${KEYFILE} | cut -d ':' -f 2)" \
        --rfc2136-tsig-secret "$(cat ${KEYFILE} | cut -d ':' -f 3)" \

The field in the file looks like this:
$ cat ${KEYFILE} | cut -d ':' -f 2
hmac-sha512
$

Fixed by #11


Postgress Implementation of Binders

We currently have LMDB and FileSystem implementation of Binders.
In order to support clustered storage there should be a Postgress implementation of the Binders interface so that we can write and read to Standalone and clustered implementations of the Postgress api - e.g. Postgress local on Docker, AWS Aurora, etc

Closed with #149


CI improvements. Auto drafting releases and pushing versions to PyPi

Codecov Report

Merging #2 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master      #2   +/-   ##
======================================
  Coverage    0.21%   0.21%
======================================
  Files          11      11
  Lines         472     472
======================================
  Hits            1       1
  Misses        471     471

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 d12e440...50a1ae3. Read the comment docs.


Example for insert query with placeholders?

Is it possible if you would add, or at least explain, how go-pgsql expects querys with place holders to be done?
In my current code I am doing this:
tx, err := db.Begin()
stmt, err := tx.Prepare("insert into foo (number, value) values (?,?)")
if err != nil {
    fmt.Println(err)
    db.Close()
    os.Exit(1)
}
derfer stmt.Close()

_, err = stmt.Exec("Twelve", 12)
if err != nil {
    fmt.Println(err)
    db.Close()
    os.Exit(1)
}
tx.Commit()

Doing so gives this error:
		Code: 42601
		Message: syntax error at or near ","
		Detail:
		Hint:
		Position: 39
		Internal Position:
		Internal Query:
		Where:
		File: scan.l
		Line: 1001
		Routine: scanner_yyerror
exit status 1

I am using  go version weekly.2012-03-04 +5c664f190e4e as well as the database/sql package.

Please use $1, $2 for placeholders when using database/sql with go-pgsql.
Will add an example soonish.
Thanks for pointing it out!


Fixing bug when writing primitives in metal mesh shaders

I have no idea how i missed this, fixing mesh shading primitive writing

Can we get a regresion test added for mesh shader primitive writes?

Just so i understand correctly, you mean a test that checks for this change?

Yes, we need to have a test that exposes the issue being fixed here.


Exclude compilation of hypot function already defined in C++17

The hypot function defined in MathToolbox.cpp conflicts with the same function from C++17, so I've added conditional compilation block so it is compiled only for C++ < 17. See https://en.cppreference.com/w/cpp/numeric/math/hypot

Thanks for your contribution!


Optimization in auth

I tried the app and it's really great.. but there's a problem with the api it doesn't work

I have activated the api, now it should work fine

It's great. Good job sir
في الأربعاء، ٣٠ أكتوبر ٢٠٢٤, ٨:١٣ ص Dhwanish @.***> كتب:

I have activated the api, now it should work fine
—
Reply to this email directly, view it on GitHub
https://github.com/dhwanish-3/Heal-the-Health-App/pull/2#issuecomment-2445869660,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A27WRGKI72AJ7RFSIXHXTHDZ6BTHJAVCNFSM6AAAAABQWGXUUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBVHA3DSNRWGA
.
You are receiving this because you commented.Message ID:
@.***>


Fix typo: clas -> class

Fixes https://github.com/spring-cloud/spring-cloud-netflix/issues/3704

@deepikadm Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@deepikadm Thank you for signing the Contributor License Agreement!

@spencergibb Do you mind taking a look at this?


Switch styling doesn't work

I was trying to get the switch field working correctly. It renders as a normal checkbox and only had the correct styling after I included the css file referenced on the jsfiddle demo

Could you make a jsfiddle?

I modified the original jsfiddle and removed the css file.
https://jsfiddle.net/gfg3Lmw4/

For anyone else who is having this issue, here is how I was able to resolve it in my src/main.js:
import "vue-form-generator/dist/vfg.css";

I'm sorry but I don't understand where is the problem.
If you remove the style, of course it will not be styled.
It fallback to checkbox but still work as intended.
Like @ekingery said, if you want the style, you need to import it.

I think the problem stems from the documentation, which never explicitly states that you need to import the CSS for the non-core package. I created a PR for this, hope that helps!
https://github.com/icebob/vue-form-generator/pull/305


A Lot of Errors after just install pod

I install pod by
pod 'DKImagePickerController'
but I am encountering a lot errors. Why this pod is giving errors on installing just pod?

I installed pod by
pod 'DKImagePickerController'
but I am encountering a lot errors. Why this pod is giving errors on installing just pod?

I install pod by
pod 'DKImagePickerController'
but I am encountering a lot errors. Why this pod is giving errors on installing just pod?

try reinstalling the pods. The issue has been resolved. If you are using Swift 5, then xcode will convert the library to swift 5. There might be some warnings, which can be easily fixed by using auto fix option of Xcode. Cheers!

Closing this thread


Support for custom Numeric Types

In my project, we have various custom numeric types, like Money, Point, etc, that we would like to use with RadzenNumeric.
RadzenNumeric's support for these kind of types is problematic, as it uses Convert.ChangeType behind the scenes, such that it only works with primitive types.
This adds support for custom numeric types by:

Adding TypeConverter support to/from decimal for TValue
Adding support for IComparable<decimal>, in the case the type implements it
Update flow of InternalValueChanged to remove unnecessary ChangeValue conversion attempts.  This allows limited support for custom numeric types, even if they don't have a TypeConverter (as long as ConvertValue is set)

This would really be a great help!

Excellent submission @pianomanjh! Well done & thank you very much!

By the way this still doesn't fix #731

@sofiageo Correct, this does not change existing behavior for primitive types (breaking change).  It does allow you to now use a type that handles conversion to/from decimal explicitly, avoiding the issue with Convert.ChangeType (which just casts double to decimal).

I know, it just seemed a good timing to remind there is still an issue :) According to dotnet runtime developers, Convert.ChangeType is legacy code and a code smell. Maybe the Radzen implementation can be changed some time in the future.

Yeah, it would be great to get it updated, at least for net 7/8 where they introduced a slew of new interfaces for numerics that are fast and extensible.


Updated readme and license, added testing with<EMAIL_ADDRESS>and 2.x.x

#34

LGTM, can be merged.
@blainsmith the failure is caused by the fact the level-store tests fail on seneca 2.0 (travis runs against Seneca 1.x and 2.x)
On other plugins we merged with seneca 2.0 tests failing to be aware of the fact that the plugin needs fixing.

fixes #34

Coverage remained the same at 81.844% when pulling 69b23f8898b8d96944185e141bfbfa20e72eeb80 on shanel262:master into d80007836414f573a5dc7e119f3dd32bf0c49cb6 on senecajs:master.

very good :+1:


Reorganize source code // add asset-loader // Bug fixes // Clean-up

Overview
Okay, here is one big PR for you guys :scream: .
Maybe I was a bit too motivated today. :smile:
This PR contains the asset loader and pretty much a facelift for lots and lot of files.
Since I knew I had to change a lot to get the asset-loader in and doing anything, I didn't bother creating separate commits which I regret now, even it it would have been hard to separate them.
I think it would've been much easier for you to find the differences between old and new code. But it's too late now I guess.
General discussions:
#150
I hope I managed to squash all major bugs!
Changes
Here is a quick rundown of the biggest changes in this PR:

New asset loader added!: See section below changes (but should be pretty self-explanatory in itself)
New module: smoke.lua - contains the smoke code but is basically a rewrite because I wanted to merge the way animations are created. I also tried to write it as modular as possible. But there's still some work to do for it to be fully modular.
New modules: base.lua / building.lua: I didn't dedicate much time to these two. I just wanted to get rid of the drawobjects.lua and decided to move them to their own files. More work needed to make them fully modular.
Major main.lua clean-up
Removed drawobjects.lua
Made worldOffset a global: This allowed me to get rid of quite a bit of code and made the source much more readable imo. I know that adding globals is not really what we want to archieve, but in that case it made sense imo. To counter-act, I removed some other globals on my way :stuck_out_tongue_closed_eyes:
clean-up in hud.lua
changed some function and variable names
more code optimizations like merged if-else-statements, not creating new fonts every drawcall, more local variables ...
Fixed another bug causing the player to get stuck without gameover screen
added more debug info to the hud
added new TODOs and FIXMEs in many files

The asset-loader
I thought It might be helpful to write down some tips for using the asset loader. The function names and overall functionality isn't final of course.
Assets.loadDirectory(directoryPath, filetype)
Load directory can automatically load files from a given path. Currently we have to tell the function what filetype to expect in the given directory. based on the file type, the function decides which love function to use to load the file.
Warning: Currently the function doesn't check if the given filetype matches the file it sees in the directory, which can cause a crash, if e.g an image is expected but a sound file is found in the directory!
Assets.newImage/newSound(filePath, args)
The loader uses these function internally to load files and put them in their respective table ie. Assets.images.
But we can also use those functions to manually load files into a table to access them later from anywhere in the project.
If the love function for the file type accepts more args they can be passed to the function as well.
btw. if the file type is "music", the file will be loaded in "stream" mode, otherwise the mode is "static" .
Assets.newImageSet(path, args)
This function is unique to the asset-loader. It basically creates a table containing the image, the image width and the image height. It's basically just a shortcut for:
-- Without getImageSet
local sprite = {}
sprite.image = Assets.getImage("ship")
sprite.width = spriteImage:getWidth()
sprite.height = spriteImage:getHeight()

-- With getImageSet
sprite = Assets.getImageSet("ship")

I'm not sure if the name  newImageSet is very intuitive to understand. I tried newImageData and newImageContainer but none of them sounded really good to me.
Assets.newAnimation(name, image, width, height, frames, row, durations, onLoop)
This one is long, but it's worth it imo because otherwise the code would look like this:
-- Without
local spritesheet	= love.graphics.newImage("assets/smoke.png")
local grid		= Anim8.newGrid(10, 14, spritesheet:getWidth(), spritesheet:getHeight())
local animation 	= Anim8.newAnimation(grid('1-14', 1), 0.15)

-- With
local animation = Assets.newAnimation("smoke", 10, 14, '1-14', 1, 0.15)

Note: Assets.newAnimation does not save animations in a table inside the Assets module (unlike all the other new functions). This is because doing this wouldn't allow to create unique objects easily which are needed to avoid bugs regarding updating a single animation multiple times etc.
Assets.playSound(soundName, isLooping)
Not much to say here. Provide the fileName/soundName and tell it if it is looping or not.
The sound won't get cloned, so this needs to be done manually if you need to playback a sound multiple times at once.
Assets.newFont(size/name, (size))
new Font is special because it takes either an integer or string first.
If the first arg is a string, the function will search for a loaded font file and return it. The second arg will be the font size in that case:
Assets.newFont("calibri", 16)
If the first arg is a integer, the function will create a new font object and set it's size to the given value:
Assets.newFont(6)
Assets.setFont("font6")

Assets.setFont(name)
self-explanatory, but I mention it because it's unlike the other functions.
It basically does the same as love.graphics.setFont.
The name of the font always is the combination of the fontName (name of loaded file or default "font") and it's size together:
Assets.setFont("font32") or Assets.setFont("calibri16") e.g.

Nice. Did you not go to your real job or something?   :)

Happy to say all the functions work with no runtime error.
Unhappy to say that this PR is causing the red terrain to flicker a lot. It's quite bad and noticeable. :(  I haven't looked into the code just yet but it seems to be the sideways scrolling. If you thrust to the left you'll see the ground flicker and when you hit the edge of the world, the scrolling stops and the flicker also stops.
This flicker isn't in v0.10.

Happy to say all the functions work with no runtime error.
Unhappy to say that this PR is causing the red terrain to flicker a lot. It's quite bad and noticeable. :(  I haven't looked into the code just yet but it seems to be the sideways scrolling. If you thrust to the left you'll see the ground flicker and when you hit the edge of the world, the scrolling stops and the flicker also stops.
This flicker isn't in v0.10.

I've noticed this but wasn't sure if its something I introduced. Can't be anything difficult since I didn't change much code in functionality. Looks like a rounding issue for the x position of the lines or something. Will take a look after work.

Wow.. lots to go through here... might take me a bit.

I'll be happy when the line74 menus.lua bug is fixed, then I'm happy to have this massive PR merged in. :)

Pushed the fixes and made some minor changes:

Fixed flickering terrain by rounding the lander.x value before calculating gintWorldOffset
Removed 'module(...,package.seeall)' in enum.lua
Reverted changed function name to Lander.create since the naming was redundant in itself anyway
Moved assetloader.lua to lib directory
Changed brackets for 'require' to be consistent

Nice. Did you not go to your real job or something? :)

Didn't see your comment. I don't work on weekends and I hadn't much to do anyway :smile:
I think changing so many things at once on a single day will be the last time. I see some more possibilities for improvement here and there, but overall I'd say we got a pretty good looking foundation for the source code now.

I'll give this a play test then merge it in shortly.

No obvious problems. I can see the bit Phil reported is fixed. Will merge this into main branch. Thanks!!!


Returning array form render can run preat-i18n into trouble

I was getting a e.replace is not a function error when returning an array of elements in the render() method of one of my components. This works flawlessly with preact only but preact-i18n sometimes can start failing. I have not had the time to determine the exact conditions but I presume it has something to do with assuming that it the component is nested in another component and not in an array.

Actually I am still getting this error from time to time. Sometimes I have to rebuild the app a couple of times to get it to work, I am pretty sure it is a bug.

I think I can confirm the initial suspicion in the end. I have found more instances where I was returning an array from render() and after refactoring those it works reliably.

It was another problem, solved now. False alert.


Fix writing WKT with z/m dimensions

That failing test looks significant:
left: "POLYHEDRALSURFACE Z( Z( Z(0 0 0,0 0 1,0 1 1,0 1 0,0 0 0)), Z( Z(0 0 0,0 1 0,1 1 0,1 0 0,0 0 0)), Z( Z(0 0 0,1 0 0,1 0 1,0 0 1,0 0 0)), Z( Z(1 1 0,1 1 1,1 0 1,1 0 0,1 1 0)), Z( Z(0 1 0,0 1 1,1 1 1,1 1 0,0 1 0)), Z( Z(0 0 1,1 0 1,1 1 1,0 1 1,0 0 1)))"

My initial reaction is that it's really hard to fix ZM handling in isolation because it needs some bigger architectural changes to geozero

My initial reaction is that it's really hard to fix ZM handling in isolation

I don't doubt it! It leaves me not sure what to do about this PR though.


The decoration hoverMessage is not displayed

I can't get the hoverMessage to display for a line decoration.  I reproduced it on this Monaco editor playground page:
https://microsoft.github.io/monaco-editor/playground.html#interacting-with-the-editor-rendering-glyphs-in-the-margin
by adding the line:
hoverMessage: {value: 'test'}

Is there something more I should add to get the hoverMessage to display?
monaco-editor version: 0.20.0
Browser: Chrome 85
OS: Mac OS 10.15.6
Playground code that reproduces the issue:
var jsCode = [
	'"use strict";',
	'function Person(age) {',
	'	if (age) {',
	'		this.age = age;',
	'	}',
	'}',
	'Person.prototype.getAge = function () {',
	'	return this.age;',
	'};'
].join('\n');

var editor = monaco.editor.create(document.getElementById("container"), {
	value: jsCode,
	language: "javascript",
	glyphMargin: true
});

var decorations = editor.deltaDecorations([], [
	{
		range: new monaco.Range(3,1,3,1),
		options: {
			isWholeLine: true,
			className: 'myContentClass',
			glyphMarginClassName: 'myGlyphMarginClass',
                        hoverMessage: {value: 'test'}
		}
	}
]);

// You can now use `decorations` to change or remove the decoration

glyphMarginHoverMessage works:
var decorations = editor.deltaDecorations([], [
	{
		range: new monaco.Range(3,1,3,1),
		options: {
			isWholeLine: true,
			className: 'myContentClass',
			glyphMarginClassName: 'myGlyphMarginClass',
			glyphMarginHoverMessage: {value: 'test'}
		}
	}
]);

The hover message will render only on the defined range. In this case it was new monaco.Range(3,1,3,1), which is a collapsed range. If you change that to something like range: new monaco.Range(3,1,3,10), then the message renders when hovering over the line:

Hi @alexdima,
I understand your point of view. Anyway, since this is a whole line decoration, I would like to see the hover message even when the mouse is hovering the line but not over any text. Is it possible?

That does not currently work because it is unexpected that hovering over empty space shows a hover. Usually people see source code or symbols and they want to hover on the source code to learn more, etc. If you wish to do something special, you could directly use mouse events to render a widget or your own dom node near the mouse position, etc.


Changing model size doesn't seem to improve detection, actually makes it worse?

model_size: str. The size of the model to use. It can be 'n' (nano), 's' (small), 'm' (medium) or 'l' (large). Larger models are more accurate but slower. Default: 's'.
I haven't tested with a large sample size, but at first pass if I change the model size to anything besides s it stops detecting.

HI! Yes, you are true, it may actually happen.
Larger models are usually more capable for difficult task, but also more prone to overfit data if it is not varied enough.
I manually tag the dataset I use for detection, so it size grows in every tagging-training round, but actually, its current size may be not large enough to give larger models the data they need to squeeze their capabilities.
So it is posible that currently, while the dataset is not large enough, larger models have suffered from overfit, actually decreasing their capabilities on real world problems.
Sorry for the inconvinience, I'll modify that part of the documentation. While that claim should become true in the long future, it is likely not happening now.
PD: Thanks for the sponsoring <3


Add a test to check for recent rows at each grouping level

We should add the ability to check for recent data at a grouping level via a group_by parameter.
For example, a user might expect recent rows for every product in a fact table. So, a recency check should look at grouped rows for each product_id that does not meet the recency requirement.
e.g.
with latest_grouped_timestamps as (

    select
        product_id,
        max(timestamp_column) as latest_timestamp_column
    from
        fact_table
    group by
        1
),
validation_errors as (

    select *
    from
        latest_grouped_timestamps
    where
        latest_timestamp_column < { threshold_timestamp }

)
select count(*) from validation_errors

Name: expect_grouped_row_values_to_have_recent_data?
Note: this would only cover grouped values that already exists in the model to be tested. So, for example, products that have never sold would not be checked. This would require a left join to a dimension table and is currently out of scope for this test.

This looks great. This should be able to work with SCD2 Dims as well, correct?

@jeffwhite-indeed yes, this works with any single table, as long as you have column you want to group by and a timestamp or date column to check for recent values for each grouped row. So fact tables or type 2 dimensions in a dimension model, or other tables like that.

Perfect


New features: gh-pages-app-dir, work-dir

Add option in support of deploying app to a subdirectory (a mechanism we'll be using to support apps built for different versions of Angular).
Add option in support of (re-)using a working directory (rather than always build in a system temporary folder).

Prior to this PR the DDS would make two copies of an example repo, one copy for each branch master and gh-pages.  As of this PR, the DDS works from a single copy of each example repo, switching branches as necessary.  (We use .git/info/exclude to help make this possible.)
This version of the DDS has been tested over site-webdev@master; and it had no changes to report/submit (as expected).  It has also been used to publish 4.x versions of the example apps, built from site-webdev@4-dev.  This is a first step towards solving https://github.com/dart-lang/site-webdev/issues/941.
E.g., you can now run:

http://angular-examples.github.io/quickstart/3
http://angular-examples.github.io/quickstart/4

Nice, great change!


add jemalloc to wmagent, reqmgr, etc

This is only in spec file but create the issue here. Need to test and check the memory usage difference,

Only need to add in spec
Requires: jemalloc

Done for at least wmagent, reqmgr2, workqueue and reqmon. Closing


Copy and pasting introduces newlines (Firefox)

If I copy and paste the CSR from Firefox into Notepad, all lines get interleaved with a blank line, so the CSR becomes invalid. With Chrome, it works fine.

Seems like CR vs CR/LF; interesting; we will find time to investigate but PRs welcome.


Handling Anonymous Donors With Salesforce

https://help.salesforce.com/s/articleView?id=sfdo.NPSP_Handling_Anonymous_Donors.htm&type=5
Script: https://docs.google.com/document/d/1UT17AJMqphgep5zldvNbs0mbIVg47SBKNEy643zG5bM/edit?usp=share_link

Meghan and Amanda will take this on

@Billflorio this script needs additional work, and I feel like it probably needs to be broken into multiple use cases/videos:

Recording an anonymous gift
Recording households/accounts as anonymous donors
Invisible donors
Filtering anonymous donors from reports
The NPSP documentation isn't great.

RECOMMENDATION NEXT SPRINT:

Put the whole doc into one video. The first part is already written. You can just clean it up.  (see doc linked)
For the 2nd & 3rd doc sections, I don't think we need to demo all clicks for the more conceptual stuff. Just a sentence or two for the main points/suggestions. Think about what screens will help illustrate it. For example, we can just show a screen with the anonymous checkbox on Contact or Account like the docs' figures do. Please insert comments on the doc that give your ideas for screens to show.
Use term "automation" instead of Workflow or Trigger like the doc currently does. That will make it longer lived.

Hi @barbarachristensen, I hope you are well. Both myself and @deepthikudrathaya are not familiar with how the prerequisites usually get included in the videos, but feel they would add value to admins to know this, so please do feel free to update as required. Thank you

Thanks Cori!

Thanks @cswitzer-sfdc!


Change play url from whip-play to whep

Note that requires SRS 5.0.140+ 6.0.22+
See https://github.com/ossrs/srs/pull/3404

Seems WHEP is not updated, so we should hold on this PR, and shouldn't merge it util WHEP has some updates.


Node SVG doesn't handle local files.

Hi- thanks so much for this repo and all your work.
I've been using the 'svg' property of the nodes to change the appearance of the nodes. This is really helpful to visually show multiple different node types.
Sometimes, the png URL that I provide for the svg doesn't respond all the time upon rerun. When that happens, the streamlit app quits.  I wanted to host a png file locally and use the filepath instead of a URL.  But that just doesn't work.
For example in the ego_graph.py, I can change the following line: ego-graph.py#L38 to:
nodes = [Node(id=i, label=str(i), size=200, svg='https://icons.iconarchive.com/icons/findhold/karate/512/karate-ready-icon.png') for i in hub_ego.nodes]

And get a nice graph with "karate kid" icons for nodes.
But if I download the png to the base folder and do:
nodes = [Node(id=i, label=str(i), size=200, svg='karate-ready-icon.png') for i in hub_ego.nodes]

I get broken link images instead.
I don't know too much JS/React/D3, but I'm willing to work on this, if you can point me in the right direction.
Thanks!

Hi @nfmcclure,
I wanted to do the same and ran into the same issue.
Normally, you would define a new folder in your streamlit project called images or assets.
Inside that folder you can put all the images and reference e.g.:
img = Image.open(f"./images/base_filename")
st.image(img)

That should work fine for running it locally.
However, if you want to deploy it on streamlit sharing, you had to make:

the image folder gets uploaded
make sure that the relative paths to the folder are right

So far, I couldn't figure out what them hinders the upload.
If you find something out, let me know.

In case anyone still needs this, here is one way to do it.  Open the image file and convert it to a base64 encoded string and then pass that string as the svg parameter, i.e.,
svg = "data:image/svg+xml;base64,"
with open("test.svg", "rb") as img_file:
    svg = svg + base64.b64encode(img_file.read()).decode('UTF-8')


[Doc] No path given for AuthenticationDataPublisher.xml file to configure 'authenticatorURL'

'Authenticator URL' property in table in [1] refers to ' AuthenticationDataPublisher.xml' to change the value for the property but there's no mention of file path in the documentation.
[1] https://docs.wso2.com/display/IS540/Prerequisites+to+Publish+Statistics#PrerequisitestoPublishStatistics-Configuringeventpublishers

Thank you for your contribution!
We are closing this issue since it has not been prioritized for a long time. Chances are that it has already been solved in more recent versions. If not, we will be re-evaluating this when it becomes a priority.


Support any hostname that points to localhost

Fixes #210.
Enable this in order to run fastlane.ci inside a VM and allow accessing
to it from the host machine.

Ugh, it seems like this is required for VMs, but I had problems mapping a docker container port without <IP_ADDRESS>. Maybe we need a docker specific rake task and a VM specific rake task.

Same for VMs, you need to expose <IP_ADDRESS> in order map a VM's port to the host machine.


Use wiremock DSL instead of record/playback for sample app component tests.

WIP - do not merge

Codecov Report

Merging #74 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #74   +/-   ##
=========================================
  Coverage     81.38%   81.38%
  Complexity      160      160
=========================================
  Files            18       18
  Lines           505      505
  Branches         22       22
=========================================
  Hits            411      411
  Misses           78       78
  Partials         16       16

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 9ba46e1...aa04a2b. Read the comment docs.


[core] Introduce sort-spill-threshold

Purpose

If the maximum number of sort readers exceeds this value, a spill will be attempted.
This prevents too many readers from consuming too much memory and causing OOM.

Tests

API and Format

Documentation

+1


chore: remove unwanted file

:tada: This PR is included in version 1.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


部署etcd集群出现问题

环境
CentOS７（虚拟机）
日志或报错信息
严格按照文档进行操作，在检查etcd健康状态的时候，出现了下面问题
cluster may be unhealthy: failed to list members
Error:  client: etcd cluster is unavailable or misconfigured; error #0: dial tcp <IP_ADDRESS>:2379: getsockopt: connection refused
; error #1: dial tcp <IP_ADDRESS>:4001: getsockopt: connection refused

error #0: dial tcp <IP_ADDRESS>:2379: getsockopt: connection refused
error #1: dial tcp <IP_ADDRESS>:4001: getsockopt: connection refused

日志
2017-12-04 03:45:16.153727 I | etcdmain: etcd Version: 3.1.5
2017-12-04 03:45:16.153732 I | etcdmain: Git SHA: 20490ca
2017-12-04 03:45:16.153736 I | etcdmain: Go Version: go1.7.5
2017-12-04 03:45:16.153740 I | etcdmain: Go OS/Arch: linux/amd64
2017-12-04 03:45:16.153745 I | etcdmain: setting maximum number of CPUs to 8, total number of available CPUs is 8
2017-12-04 03:45:16.153943 N | etcdmain: the server is already initialized as member before, starting as etcd member...
2017-12-04 03:45:16.153986 I | embed: peerTLS: cert = /etc/kubernetes/ssl/kubernetes.pem, key = /etc/kubernetes/ssl/kubernetes-key.pem, ca = , trusted-ca = /etc/kubernetes/ssl/ca.pem, client-cert-auth = false
2017-12-04 03:45:16.155150 I | embed: listening for peers on https://<IP_ADDRESS>:2380
2017-12-04 03:45:16.155213 I | embed: listening for client requests on <IP_ADDRESS>:2379
2017-12-04 03:45:16.157771 I | warning: ignoring ServerName for user-provided CA for backwards compatibility is deprecated
2017-12-04 03:45:16.157930 I | etcdserver: name = infra1
2017-12-04 03:45:16.157939 I | etcdserver: data dir = /var/lib/etcd
2017-12-04 03:45:16.157944 I | etcdserver: member dir = /var/lib/etcd/member
2017-12-04 03:45:16.157967 I | etcdserver: heartbeat = 100ms
2017-12-04 03:45:16.157972 I | etcdserver: election = 1000ms
2017-12-04 03:45:16.157976 I | etcdserver: snapshot count = 10000
2017-12-04 03:45:16.157985 I | etcdserver: advertise client URLs = https://<IP_ADDRESS>:2379
2017-12-04 03:45:16.158936 I | etcdserver: restarting member 8624b6a16cbfd97e in cluster 47865b4eb4d34feb at commit index 24
2017-12-04 03:45:16.158984 I | raft: 8624b6a16cbfd97e became follower at term 268
2017-12-04 03:45:16.158998 I | raft: newRaft 8624b6a16cbfd97e [peers: [], term: 268, commit: 24, applied: 0, lastindex: 24, lastterm: 268]
2017-12-04 03:45:16.218802 I | warning: ignoring ServerName for user-provided CA for backwards compatibility is deprecated
2017-12-04 03:45:16.219495 I | warning: ignoring ServerName for user-provided CA for backwards compatibility is deprecated
2017-12-04 03:45:16.219516 I | etcdserver: starting server... [version: 3.1.5, cluster version: to_be_decided]
2017-12-04 03:45:16.219542 I | embed: ClientTLS: cert = /etc/kubernetes/ssl/kubernetes.pem, key = /etc/kubernetes/ssl/kubernetes-key.pem, ca = , trusted-ca = /etc/kubernetes/ssl/ca.pem, client-cert-auth = false
2017-12-04 03:45:16.220021 I | etcdserver/membership: added member 5a84f50e4b774acb [https://<IP_ADDRESS>:2380] to cluster 47865b4eb4d34feb
2017-12-04 03:45:16.220043 I | rafthttp: starting peer 5a84f50e4b774acb...
2017-12-04 03:45:16.220078 I | rafthttp: started HTTP pipelining with peer 5a84f50e4b774acb
2017-12-04 03:45:16.221192 I | rafthttp: started streaming with peer 5a84f50e4b774acb (writer)
2017-12-04 03:45:16.222705 I | rafthttp: started streaming with peer 5a84f50e4b774acb (writer)
2017-12-04 03:45:16.223502 I | rafthttp: started peer 5a84f50e4b774acb
2017-12-04 03:45:16.223783 I | rafthttp: started streaming with peer 5a84f50e4b774acb (stream Message reader)
2017-12-04 03:45:16.223796 I | rafthttp: started streaming with peer 5a84f50e4b774acb (stream MsgApp v2 reader)
2017-12-04 03:45:16.223867 I | rafthttp: added peer 5a84f50e4b774acb
2017-12-04 03:45:16.223986 I | etcdserver/membership: added member 76bd1f11952deb1e [https://<IP_ADDRESS>:2380] to cluster 47865b4eb4d34feb
2017-12-04 03:45:16.224002 I | rafthttp: starting peer 76bd1f11952deb1e...
2017-12-04 03:45:16.224082 I | rafthttp: started HTTP pipelining with peer 76bd1f11952deb1e
2017-12-04 03:45:16.224330 I | rafthttp: started streaming with peer 76bd1f11952deb1e (writer)
2017-12-04 03:45:16.225353 I | rafthttp: started streaming with peer 76bd1f11952deb1e (writer)
2017-12-04 03:45:16.225653 I | rafthttp: started peer 76bd1f11952deb1e
2017-12-04 03:45:16.225682 I | rafthttp: added peer 76bd1f11952deb1e
2017-12-04 03:45:16.225697 I | rafthttp: started streaming with peer 76bd1f11952deb1e (stream Message reader)
2017-12-04 03:45:16.225803 I | rafthttp: started streaming with peer 76bd1f11952deb1e (stream MsgApp v2 reader)
2017-12-04 03:45:16.225884 I | etcdserver/membership: added member 8624b6a16cbfd97e [https://<IP_ADDRESS>:2380] to cluster 47865b4eb4d34feb
2017-12-04 03:45:16.226084 N | etcdserver/membership: set the initial cluster version to 3.0
2017-12-04 03:45:16.226130 I | etcdserver/api: enabled capabilities for version 3.0
2017-12-04 03:45:16.226201 N | etcdserver/membership: updated the cluster version from 3.0 to 3.1
2017-12-04 03:45:16.226239 I | etcdserver/api: enabled capabilities for version 3.1
2017-12-04 03:45:16.959265 I | raft: 8624b6a16cbfd97e is starting a new election at term 268
2017-12-04 03:45:16.959313 I | raft: 8624b6a16cbfd97e became candidate at term 269
2017-12-04 03:45:16.959326 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 269
2017-12-04 03:45:16.959335 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 269
2017-12-04 03:45:16.959344 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 269
2017-12-04 03:45:18.759259 I | raft: 8624b6a16cbfd97e is starting a new election at term 269
2017-12-04 03:45:18.759286 I | raft: 8624b6a16cbfd97e became candidate at term 270
2017-12-04 03:45:18.759298 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 270
2017-12-04 03:45:18.759307 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 270
2017-12-04 03:45:18.759331 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 270
2017-12-04 03:45:20.359259 I | raft: 8624b6a16cbfd97e is starting a new election at term 270
2017-12-04 03:45:20.359284 I | raft: 8624b6a16cbfd97e became candidate at term 271
2017-12-04 03:45:20.359292 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 271
2017-12-04 03:45:20.359300 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 271
2017-12-04 03:45:20.359313 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 271
2017-12-04 03:45:21.223876 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:21.225829 W | rafthttp: health check for peer 76bd1f11952deb1e could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:21.559266 I | raft: 8624b6a16cbfd97e is starting a new election at term 271
2017-12-04 03:45:21.559285 I | raft: 8624b6a16cbfd97e became candidate at term 272
2017-12-04 03:45:21.559293 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 272
2017-12-04 03:45:21.559302 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 272
2017-12-04 03:45:21.559317 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 272
2017-12-04 03:45:23.219798 E | etcdserver: publish error: etcdserver: request timed out
2017-12-04 03:45:23.459264 I | raft: 8624b6a16cbfd97e is starting a new election at term 272
2017-12-04 03:45:23.459283 I | raft: 8624b6a16cbfd97e became candidate at term 273
2017-12-04 03:45:23.459291 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 273
2017-12-04 03:45:23.459300 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 273
2017-12-04 03:45:23.459343 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 273
2017-12-04 03:45:24.859268 I | raft: 8624b6a16cbfd97e is starting a new election at term 273
2017-12-04 03:45:24.859296 I | raft: 8624b6a16cbfd97e became candidate at term 274
2017-12-04 03:45:24.859306 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 274
2017-12-04 03:45:24.859316 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 274
2017-12-04 03:45:24.859325 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 274
2017-12-04 03:45:26.224016 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:26.225941 W | rafthttp: health check for peer 76bd1f11952deb1e could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:26.359266 I | raft: 8624b6a16cbfd97e is starting a new election at term 274
2017-12-04 03:45:26.359287 I | raft: 8624b6a16cbfd97e became candidate at term 275
2017-12-04 03:45:26.359297 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 275
2017-12-04 03:45:26.359306 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 275
2017-12-04 03:45:26.359315 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 275
2017-12-04 03:45:27.759245 I | raft: 8624b6a16cbfd97e is starting a new election at term 275
2017-12-04 03:45:27.759265 I | raft: 8624b6a16cbfd97e became candidate at term 276
2017-12-04 03:45:27.759273 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 276
2017-12-04 03:45:27.759282 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 276
2017-12-04 03:45:27.759290 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 276
2017-12-04 03:45:29.059246 I | raft: 8624b6a16cbfd97e is starting a new election at term 276
2017-12-04 03:45:29.059264 I | raft: 8624b6a16cbfd97e became candidate at term 277
2017-12-04 03:45:29.059277 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 277
2017-12-04 03:45:29.059286 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 277
2017-12-04 03:45:29.059294 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 277
2017-12-04 03:45:30.159248 I | raft: 8624b6a16cbfd97e is starting a new election at term 277
2017-12-04 03:45:30.159266 I | raft: 8624b6a16cbfd97e became candidate at term 278
2017-12-04 03:45:30.159274 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 278
2017-12-04 03:45:30.159282 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 278
2017-12-04 03:45:30.159296 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 278
2017-12-04 03:45:30.219913 E | etcdserver: publish error: etcdserver: request timed out
2017-12-04 03:45:31.159252 I | raft: 8624b6a16cbfd97e is starting a new election at term 278
2017-12-04 03:45:31.159272 I | raft: 8624b6a16cbfd97e became candidate at term 279
2017-12-04 03:45:31.159279 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 279
2017-12-04 03:45:31.159288 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 279
2017-12-04 03:45:31.159296 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 279
2017-12-04 03:45:31.224136 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:31.226058 W | rafthttp: health check for peer 76bd1f11952deb1e could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:32.159254 I | raft: 8624b6a16cbfd97e is starting a new election at term 279
2017-12-04 03:45:32.159272 I | raft: 8624b6a16cbfd97e became candidate at term 280
2017-12-04 03:45:32.159279 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 280
2017-12-04 03:45:32.159288 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 280
2017-12-04 03:45:32.159299 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 280
2017-12-04 03:45:33.659245 I | raft: 8624b6a16cbfd97e is starting a new election at term 280
2017-12-04 03:45:33.659263 I | raft: 8624b6a16cbfd97e became candidate at term 281
2017-12-04 03:45:33.659271 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 281
2017-12-04 03:45:33.659279 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 281
2017-12-04 03:45:33.659288 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 281
2017-12-04 03:45:35.159243 I | raft: 8624b6a16cbfd97e is starting a new election at term 281
2017-12-04 03:45:35.159260 I | raft: 8624b6a16cbfd97e became candidate at term 282
2017-12-04 03:45:35.159268 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 282
2017-12-04 03:45:35.159276 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 282
2017-12-04 03:45:35.159285 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 282
2017-12-04 03:45:36.224244 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:36.226159 W | rafthttp: health check for peer 76bd1f11952deb1e could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:36.959256 I | raft: 8624b6a16cbfd97e is starting a new election at term 282
2017-12-04 03:45:36.959274 I | raft: 8624b6a16cbfd97e became candidate at term 283
2017-12-04 03:45:36.959289 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 283
2017-12-04 03:45:36.959300 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 283
2017-12-04 03:45:36.959312 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 283
2017-12-04 03:45:37.220033 E | etcdserver: publish error: etcdserver: request timed out
2017-12-04 03:45:38.659261 I | raft: 8624b6a16cbfd97e is starting a new election at term 283
2017-12-04 03:45:38.659288 I | raft: 8624b6a16cbfd97e became candidate at term 284
2017-12-04 03:45:38.659299 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 284
2017-12-04 03:45:38.659316 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 284
2017-12-04 03:45:38.659331 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 284
2017-12-04 03:45:40.459247 I | raft: 8624b6a16cbfd97e is starting a new election at term 284
2017-12-04 03:45:40.459266 I | raft: 8624b6a16cbfd97e became candidate at term 285
2017-12-04 03:45:40.459275 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 285
2017-12-04 03:45:40.459284 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 285
2017-12-04 03:45:40.459292 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 285
2017-12-04 03:45:41.224354 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:41.226270 W | rafthttp: health check for peer 76bd1f11952deb1e could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:42.059250 I | raft: 8624b6a16cbfd97e is starting a new election at term 285
2017-12-04 03:45:42.059269 I | raft: 8624b6a16cbfd97e became candidate at term 286
2017-12-04 03:45:42.059277 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 286
2017-12-04 03:45:42.059286 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 286
2017-12-04 03:45:42.059301 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 286
2017-12-04 03:45:43.759256 I | raft: 8624b6a16cbfd97e is starting a new election at term 286
2017-12-04 03:45:43.759275 I | raft: 8624b6a16cbfd97e became candidate at term 287
2017-12-04 03:45:43.759283 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 287
2017-12-04 03:45:43.759291 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 287
2017-12-04 03:45:43.759299 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 287
2017-12-04 03:45:44.220171 E | etcdserver: publish error: etcdserver: request timed out
2017-12-04 03:45:45.059265 I | raft: 8624b6a16cbfd97e is starting a new election at term 287
2017-12-04 03:45:45.059285 I | raft: 8624b6a16cbfd97e became candidate at term 288
2017-12-04 03:45:45.059292 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 288
2017-12-04 03:45:45.059301 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 288
2017-12-04 03:45:45.059309 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 288
2017-12-04 03:45:45.345708 I | rafthttp: peer 76bd1f11952deb1e became active
2017-12-04 03:45:45.345729 I | rafthttp: established a TCP streaming connection with peer 76bd1f11952deb1e (stream MsgApp v2 reader)
2017-12-04 03:45:45.349192 I | rafthttp: established a TCP streaming connection with peer 76bd1f11952deb1e (stream Message reader)
2017-12-04 03:45:45.351863 I | rafthttp: established a TCP streaming connection with peer 76bd1f11952deb1e (stream MsgApp v2 writer)
2017-12-04 03:45:45.351939 I | rafthttp: established a TCP streaming connection with peer 76bd1f11952deb1e (stream Message writer)
2017-12-04 03:45:46.130551 I | raft: 8624b6a16cbfd97e [term: 288] ignored a MsgVote message with lower term from 76bd1f11952deb1e [term: 270]
2017-12-04 03:45:46.224421 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:46.226380 W | rafthttp: health check for peer 76bd1f11952deb1e could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:46.259270 I | raft: 8624b6a16cbfd97e is starting a new election at term 288
2017-12-04 03:45:46.259290 I | raft: 8624b6a16cbfd97e became candidate at term 289
2017-12-04 03:45:46.259298 I | raft: 8624b6a16cbfd97e received MsgVoteResp from 8624b6a16cbfd97e at term 289
2017-12-04 03:45:46.259311 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 76bd1f11952deb1e at term 289
2017-12-04 03:45:46.259320 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24] sent MsgVote request to 5a84f50e4b774acb at term 289
2017-12-04 03:45:46.284411 I | raft: 8624b6a16cbfd97e received MsgVoteResp rejection from 76bd1f11952deb1e at term 289
2017-12-04 03:45:46.284426 I | raft: 8624b6a16cbfd97e [quorum:2] has received 1 MsgVoteResp votes and 1 vote rejections
2017-12-04 03:45:47.628214 I | raft: 8624b6a16cbfd97e [term: 289] received a MsgVote message with higher term from 76bd1f11952deb1e [term: 290]
2017-12-04 03:45:47.628232 I | raft: 8624b6a16cbfd97e became follower at term 290
2017-12-04 03:45:47.628242 I | raft: 8624b6a16cbfd97e [logterm: 268, index: 24, vote: 0] cast MsgVote for 76bd1f11952deb1e [logterm: 269, index: 25] at term 290
2017-12-04 03:45:47.639400 I | raft: raft.node: 8624b6a16cbfd97e elected leader 76bd1f11952deb1e at term 290
2017-12-04 03:45:47.672177 I | etcdserver: published {Name:infra1 ClientURLs:[https://<IP_ADDRESS>:2379]} to cluster 47865b4eb4d34feb
2017-12-04 03:45:47.672379 I | embed: ready to serve client requests
2017-12-04 03:45:47.672713 I | embed: serving client requests on <IP_ADDRESS>:2379
2017-12-04 03:45:47.679268 E | etcdmain: forgot to set Type=notify in systemd service file?
2017-12-04 03:45:51.224508 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:45:56.224628 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:46:01.224759 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:46:06.224876 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:46:11.224991 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:46:15.036530 I | rafthttp: peer 5a84f50e4b774acb became active
2017-12-04 03:46:15.036559 I | rafthttp: established a TCP streaming connection with peer 5a84f50e4b774acb (stream MsgApp v2 writer)
2017-12-04 03:46:15.036887 I | rafthttp: established a TCP streaming connection with peer 5a84f50e4b774acb (stream Message writer)
2017-12-04 03:46:15.058367 I | rafthttp: established a TCP streaming connection with peer 5a84f50e4b774acb (stream MsgApp v2 reader)
2017-12-04 03:46:15.060100 I | rafthttp: established a TCP streaming connection with peer 5a84f50e4b774acb (stream Message reader)
2017-12-04 03:46:15.982078 I | raft: 8624b6a16cbfd97e [term: 290] received a MsgVote message with higher term from 5a84f50e4b774acb [term: 347]
2017-12-04 03:46:15.982102 I | raft: 8624b6a16cbfd97e became follower at term 347
2017-12-04 03:46:15.982114 I | raft: 8624b6a16cbfd97e [logterm: 290, index: 28, vote: 0] rejected MsgVote from 5a84f50e4b774acb [logterm: 269, index: 25] at term 347
2017-12-04 03:46:15.982121 I | raft: raft.node: 8624b6a16cbfd97e lost leader 76bd1f11952deb1e at term 347
2017-12-04 03:46:16.225112 W | rafthttp: health check for peer 5a84f50e4b774acb could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-12-04 03:46:16.625355 I | raft: 8624b6a16cbfd97e [logterm: 290, index: 28, vote: 0] cast MsgVote for 76bd1f11952deb1e [logterm: 290, index: 28] at term 347
2017-12-04 03:46:16.643121 I | raft: raft.node: 8624b6a16cbfd97e elected leader 76bd1f11952deb1e at term 347

三个etcd的进程都启动了，感觉它们好像无法通信，但是我把防火墙已经关了。请问这种问题应该如何解决啊。

问题已经解决，需要把etcd.service文件中的

--listen-client-urls ${ETCD_LISTEN_CLIENT_URLS},https://<IP_ADDRESS>:2379 \

改成

--listen-client-urls ${ETCD_LISTEN_CLIENT_URLS},http://<IP_ADDRESS>:2379 \

@ResolveWang  hi, can you show all your 'etcd.conf' file, so thanks

@kaliExist 实在抱歉，我现在工作中心没在容器这方面了，当时搭建的实验环境都销毁了。我是参考的该repo的文档和 这个repo的文档

感谢回复，已放弃二进制安装，使用ansible， 谢谢！

@ResolveWang 感谢回复，已放弃二进制安装，使用ansible， 谢谢！


Add additional configuration

New features:

uploadimage_hint_key option to use something other than hint.
uploadimage_model to place params in a model namespace. Easier to use strong params.
image_class_list to show a dropdown of CSS classes to add to the image.
uploadimage option to enable/disable without having to modify complex toolbar settings.

I can break this into multiple smaller PR if that's preferred.

Thanks! Looks good to me.
I'll see if I can manage to get a new version released soon


Connection refused with 1883 and 1884 disabled

Select Add-On (place a lowercase x for the relevant add-on)

[ x] Xiaomi Mi Scale

Describe the bug
Unable to connect if default mqtt port 1883 is disabled
To Reproduce
Set the configuration with non default mqtt ports to use SSL encryption.
Expected behaviour
Connect to mqtt with SSL on mqtt secure port
Screenshots
--- - Starting Xiaomi mi Scale...
---- Loading Config From Add-On Options...
--- - Config Loaded...
Traceback (most recent call last):
File "/opt/miscale/Xiaomi_Scale.py", line 270, in
main()
File "/opt/miscale/Xiaomi_Scale.py", line 236, in main
discovery()
File "/opt/miscale/Xiaomi_Scale.py", line 123, in discovery
publish.single(
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/publish.py", line 227, in single
multiple([msg], hostname, port, client_id, keepalive, will, auth, tls,
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/publish.py", line 163, in multiple
client.connect(hostname, port, keepalive)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 937, in connect
return self.reconnect()
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1071, in reconnect
sock = self._create_socket_connection()
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3522, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File "/usr/local/lib/python3.8/socket.py", line 808, in create_connection
raise err
File "/usr/local/lib/python3.8/socket.py", line 796, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Scale (please complete the following information):

Name mi scale
Model # 2

Device running Home Assistant (please complete the following information):

Device used to run the Script/Container [e.g. Raspberry Pi, NUC]
Bluetooth device used [e.g. Built-in, USB Dongle]
hassio on raspberry pi4 8gb builtin bluetooth
Additional context
on default port is working fine

Thanks. I've just pushed a fix for this.
Let me know if you still have issues after the update

Not heard back from you, I'll assume it's resolved

sorry, for some reason I did not recive the notification.
It is working, thank you!!


Fatal error with event listener on create and update

Hello,
With Laravel 5.4 and develop branch, every time I try to update a resource, I get this error:
FatalThrowableError in RepositoryEventListener.php line 76:
Type error: Argument 1 passed to  Rinvex\Repository\Listeners\RepositoryEventListener::entityUpdating() must implement interface Rinvex\Repository\Contracts\RepositoryContract, string given`

Do you see what I'm doing wrong ?

For now I fixed the issue like that: https://github.com/TypiCMS/repository/commit/adf424bce8d83a3878ffaeb16cdd1885cf6ad626

Sorry for the delay, please followup on the duplicate issue #131


Bring up to date with the latest spec

I'm working on this :)
Ref: https://github.com/ipfs/specs/blob/master/merkledag/ipld.md

here -> https://github.com/ipfs/js-ipld/pull/11


--output json not showing the json for a particular job

If a user wants the output json a particular job it shouldnt give outout json for all jobs, very long to search it manually
bacalhau list --sort-by=id --reverse --id-filter=c47de041 --wide --output json
https://gist.github.com/js-ts/66d257005d4fc4fc8633cc213aec73cf

Can you confirm if this is still true @js-ts ? May have fixed it

this is not fixed in Bacalhau Version: v0.1.16, but would it be fixed in later versions ?

i'll check


gtk_widget_get_focus_on_click and gtk_widget_set_focus_on_click

Added gtk_widget_get_focus_on_click() and gtk_widget_set_focus_on_click mapping according to: https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-can-focus
Please read carefully: I feel like i've understood how deprecated and since works but for good measure double check that i haven't made any mistake on this.
I wanted to add functions that are available on Widget from gtk 3.20 and above

Hey, it seems that your build tags are wrong. You put this:
//+build gtk_3_6 gtk_3_8 gtk_3_10 gtk_3_12 gtk_3_14 gtk_3_16 gtk_3_18

What this says is, build this file if one of the following tags exists: gtk_3_6, gtk_3_8... and so on and so on.
Instead you wanna say "do not build if one of those tags exists". Therefore you need to negate all those tags and use and connections instead of or ones.
Check out the docs: https://golang.org/pkg/go/build/

Makes sense.
Thanks for your explanation and the documentation link. Learned something tonight :)
I've pushed a new commit. Should be ok now.


fix: deploy

🚶

Artifact can be viewed here: :
https://6133-62313804-gh.circle-artifacts.com/0/sandbox/mdbook/book/index.html

Artifact can be viewed here: :

Artifact can be viewed here: :
https://6132-62313804-gh.circle-artifacts.com/0/sandbox/sapper/__sapper__/export/index.html

Artifact can be viewed here: :
https://6132-62313804-gh.circle-artifacts.com/0/sandbox/vuepress/docs/.vuepress/dist/index.html


Does powershell runbook support start-job cmdlet?

can we use start-job in the powershell runbook? if not, is there any way we can simulate this behavior?
thanks.

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

ID: 038d927f-2bcc-c62d-b3c3-f194513bced6
Version Independent ID: 41adf2c5-3ab7-7387-e541-89e34aa6a6b1
Content: My first PowerShell runbook in Azure Automation
Content Source: articles/automation/automation-first-runbook-textual-powershell.md
Service: automation
GitHub Login: @georgewallace
Microsoft Alias: gwallace

@imeya Yes, we should be able to use it as we have 'Microsoft.PowerShell.Core' module available by default in Azure Automation modules.
For illustration, please find below screenshots.

Are you facing any issue while using it in your runbooks ? Please explain with your use case and provide more details so that we can diagnose the issue in a better way.
Also, if you have any further questions or feedback on the documentation please do let us know here so that we will be happy to help you further. Thanks.

@KrishnaG-MSFT, thank you very much. I just want to confirm if there is some limitation of powershell  runbook for start-job.
and if there is some docs about the limitation of the powershell runbook? compared to the powershell on local pc.

@imeya AFAIK there are no limitations other than the ones that are mentioned here for PowerShell runbooks.

@imeya Closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.


Add forward command for tunneling ports to machine

It is not always possible to reach the machine IP address directly,
add a small "ssh" wrapper for setting up background port forwarding.
The preferred long-term approach is to have the driver set up the
port forwarding, so that one doesn't have to run separate processes.
https://github.com/boot2docker/boot2docker/blob/master/doc/WORKAROUNDS.md#port-forwarding
Eventually docker-machine could grow a -p parameter, just like docker ?
But using ssh works for all drivers, and is also available remotely...

Port forwarding was discussed in #41

LGTM. @shin- ?


Can somehow pipewire be used instead of Pulseaudio? (Also network doesn't work too for some reason)

please provide details about

in which setup (either awm vertical, awm, or other) are you asking this for?
what issue or error do you have with network

note: iirc pulseaudio is the only implemented backend if in awm with these setups, but maybe tweaking around with the audio scripts in the config could do the trick... prs are welcome if so.

Closing because of inactivity

Feel free to reopen if needed though.


pkg_tar rule break the symlink and cause link error at runtime on MacOS

The attribute include_runfiles = True is useful for me since I would like to keep things organized as they are in workspace dir tree.
However, I found the pkg_tar rule keep two copys of dynamic lib:

One in the dir tree as we declare them by BUILD file.
Another is located in _solib_darwin_arm64 for MacOS (_solib_k8 for Linux).

In the project workspace, the one in bazel-bin/_solib_darwin_arm64 is actually a symlink to the one in dir tree. However, in package tar both are duplicated files.
It introduces linking error when I run the binary. (The binary links the .so lib with relative path by using @loader_path)
This behavior makes no sense to me.
Could anyone tell if it's desired behavior or not? many thanks.
An simple example:
- bin/executable
- lib
  |- module_a
    |- a.so
  |- module_b
    |- b.so

We have executable deps on b and b deps on a.
After pack with pkg_tar, we have the following in tar ball:
- _solib_darwin_arm64
  |- encoded_path_to_a
    |- a.so. # no longer a symlink to lib/module_a/a.so
  |- encoded_path_to_b
    |- b.so. # no longer a symlink
- bin/executable
- lib
  |- module_a
    |- a.so
  |- module_b
    |- b.so

When running the executable binary, it try to link _solib_darwin_arm64/encoded_path_to_a/a.so, which is no longer a symlink but the same content with the origin one.
Therefore every relative path broken.

Are those shared libraries prebuilt? Or are you building them with Bazel?
In my case, I’m packaging binaries with lots of shared libraries and haven’t encountered this problem. But I don’t have any prebuilt .so in my sources tree: most libraries are built by Bazel, and those that are not are included from external repositories.

Are those shared libraries prebuilt? Or are you building them with Bazel?
In my case, I’m packaging binaries with lots of shared libraries and haven’t encountered this problem. But I don’t have any prebuilt .so in my sources tree: most libraries are built by Bazel, and those that are not are included from external repositories.

Thanks for your attention at first.
We are working on a huge project, where there's some prebuilt .so library.
However, I think that not the point. As long as we have a binary require dynamic linking to lib B, and lib B require dynamic linking to A. The linking phase will fail as I mention above.
(I use otool -L to query the dynamic link of a binary or .so.)
# the way we generate a lib B, needed to link lib A at runtime.
cc_binary(
    name = "libb.so",
    srcs = ["b_static"],
    linkshared = 1,
    linkstatic = 1,
    visibility = ["//visibility:public"],
    deps = [
        "//lib/module_a:a",  # this explicit deps forces B linking to A, such that we can reproduce the problem.
    ],
)

So my point is, if we can preserve the object in _solib_darwin_arm64 symlink to the object in real dir tree.
The behavior can remain the same as they were in Bazel workspace.

I don't know enough about how mac dynamic linking as you used it (with both linkstatic and linkshard) is supposed to work to comment yet.  To me, the cc_binary example above seems like module_a should be statically linked.
Can you point to a small reproduction?  Is module_a a cc_shared_library?

@aiuto , thanks for your attention.
FYI: https://github.com/bfsoyc/bar_repo/tree/main
bazel build //bin:deploy

tar -zxf bazel-bin/bin/deploy.tar --directory {test_dir}

cd {test_dir}
./bin/main  # this should crash due to library loading failure.


binding.call(1).break not valid on debug gem which was builtin on Ruby 3.1release.

I want warp offical binding.break into a method, assume, named: brk!.
following is attempt: (compare to pry)
require 'binding_of_caller'

class Binding
  def _break
    require 'debug'

    warn 'laoding break'

    self.break
  end

  def _pry
    require 'pry'
    warn 'loading pry'
    self.pry
  end
end

class Object
  def brk!
    binding.of_caller(1)._break
  end

  def pry!
    binding.of_caller(1)._pry
  end
end

What i expected is, wrappered brk! behavior like wrapped pry!.
e.g.  asssume, we have 1.rb code like this:
puts 100
pry!
puts 200

when run with ruby 1.rb, get this: (it was expected)

But, when if change code to this:
puts 100
brk!
puts 200

when run ruby 1.rb, get this. (it was unexpected)

as you can see, the => not stop on correct position. (which we expected to on same line as brk! as pry! does)
Thank you.

for debug gem, please check here
https://github.com/ruby/debug

You can add some print lines and it might work.
Sometimes it does not work in the same stack as the pry call, for pure debugging some other gems might do the work better.

You can add some print lines and it might work, e.g. binding.pry \n puts 'break'
Sometimes it does not work in the same stack as the pry call, for pure debugging some other gems might do the work better.
You and also go up and down the frame stack but that often get cumbersome.

Hi, it seem like not work?

_break method is defined on Binding class, i add a puts '1', invoke it from brk! method use  binding.of_caller(1)._break,  it still stop there.

I've never used break. For debugging there used to be specific gems tied to Pry (like https://github.com/nixme/pry-debugger).
This seems to be the last one supported: https://github.com/nixme/pry-debugger

I've never used break. For debugging there used to be specific gems tied to Pry (like https://github.com/nixme/pry-debugger).
This seems to be the last one supported: https://github.com/nixme/pry-debugger

In fact, binding_of_caller(1) not support by byebug too, because of this reason, i never use byebug in my project.
but, this time, debug(binding.break) is ruby builtin gem, so, i just curious if we can fix this to support it.

@zw963 Did you ever find a workaround for this issue?

@zw963 Did you ever find a workaround for this issue?

No, i use pry-nav instead.

Gotcha, I'm going to close this issue then for now.


Inserting link always gives me invalid url error

If I comment out the lines containing the URL pattern check I can paste in a url and submit just fine, but if the check is there no matter what url I copy from the address bar and attempt to paste in the url field it always tells me it's invalid.
Seems to be an issue with the pattern?

do you have online version fo testing?

Browser? Version of browser? Version of Trumbowyg?
In v2 there is no check on URL: https://github.com/Alex-D/Trumbowyg/blob/master/src/trumbowyg.js#L371
The field is just required.

I switched to version 2.0.0 and all is good, wish that version was on bower though.


ARIA hide the accordion chevron SVG

This is to hide the SVG to prevent it being exposed to assistive technology (eg. screen readers).
SVG needs to be aria-hidden="true" on the accordion component.
Could potentially also add focusable="false" for IE11 support.

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.