Time tracking for sweetcorn off-by-1

Type
Incorrect behavior
Operating System
Windows
OS Version
Win 10
Bug description
At the farming guild standing within distance of allotments and I received a notification that my sweetcorn was ready to harvest. It is only at stage 6. After inspecting the crop the tooltip did not update itself to correct itself.
My theory: The plant became diseased at one point, and I used plant cure so possibly the counter messed up there?
Alternative theory: Since inspecting didnt fix it, maybe the sweetcorn stage counter for being ready to harvest is off by 1?
The client log has these errors which seems of interest:
2024-03-15 11:43:59 AEDT [Client] ERROR n.r.c.p.t.farming.FarmingTracker - Offset error! Observed new offset of 7, previous observed offset was 26 (6) Player Loc:WorldPoint(x=1253, y=3741, plane=0)
2024-03-15 11:43:59 AEDT [Client] ERROR n.r.c.p.t.farming.FarmingTracker - Offset error! Observed new offset of 7, previous observed offset was 26 (6) Player Loc:WorldPoint(x=1253, y=3741, plane=0)
Screenshots or videos

RuneLite version
1.10.24
Logs
client.log
launcher.log

If you type ::resetfarmtick in chat box and then watch preferably a tree go through a growth stage it will help with this issue.

mentioned by zom above the ::resetfarmtick can be used in the few times this sort of issue happens.


Tag a release?

Hi There!
We use this library heavily and love it. Looks like it's been 3 years since there's been an official "release" or even a new tag. Pointing to "master" in our Cartfile (using Carthage) just seems... wrong. Any chance we could do an official release of this framework so we can point at a tag?
Thanks!

Yes - I'll try and get on that this week

+1 and thanks Tony!

Ankit Kapasi
Engineer & Entrepreneur
857.345.5396 (m)
https://www.linkedin.com/in/ankitkapasi
On Mon, Jul 24, 2017 at 2:15 PM, Tony Million<EMAIL_ADDRESS>wrote:

Yes - I'll try and get on that this week
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tonymillion/Reachability/issues/159#issuecomment-317557287,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZI54G3flXbN_4E09ztY2nVC0BmNg0lks5sRQlhgaJpZM4OUxQn
.

@tonymillion possible to tag a release now? 🙏  We need tvOS support so need to point to master... Thanks

Yep please pod repo push it
i still missing it and dislike to add with a giturl

I'm begging for tagged release for exactly same reason. :) Thank you reachability.

I'm using this via cocoapods and now want to use Swift Package Manager to import this but found that there are now tag available and it was requested about 7 years ago. It is possible to add a tagged release soon? Or I've to use master branch if I use SPM to import this library?


[DISCUSSION] How to support Arm SVE

I'm investigating how to support Arm SVE/SVE2 [1] in xsimd.
SVE vector is size agnotics. The register size (lanes) is determinted at run time, and the according C/C++ type is size-less (incomplete type). E.g., SVE svint8_t maps to NEON int8x16_t but without size. sizeof(svint8_t) does not compile, and it's illegal to declare a member with type svint8_t inside a struct.
For this reason, looks xsimd core data structures xsimd_register and batch(derived from xsimd_register) do not support SVE, as xsimd_register struct contains a data member of the SIMD register type [2].  AFAIK, highway only handles the SIMD register type, without holding a register value [3]. The API often requires an explicit register type argument.
Below is a simplified highway example to add two arrays vertically.
void vsum_hwy(const int* x, const int* y, size_t size, int* z) {
  // generate explicit vector_type from element type
  const ScalableTag<int> vector_type;
  // Lanes(d) generates runtime code for SVE/RVV, constexpr otherwise
  for (size_t i = 0; i < size; i += Lanes(d)) {
    // Load/Store requires explicit vector_type
    auto vx = Load(vector_type, x + i);
    auto vy = Load(vector_type, y + i);
    auto vz = Add(vx, vy);
    Store(vz, vector_type, z + i);
  }
}

I would like to hear ideas on how to support SVE size-less types. Highway approach may be inspiring, but I don't think xsimd should follow it.
A simpler but not ideal way is to only support fixed size SVE, e.g., SVE-128, SVE-256, ... SVE-2048. User must recompile the code to match the vector size on target machine.
[1] https://developer.arm.com/documentation/102476/0100
[2] https://github.com/xtensor-stack/xsimd/blob/8.1.0/include/xsimd/types/xsimd_register.hpp#L40
[3] https://github.com/google/highway/blob/master/g3doc/impl_details.md#vectors-vs-tags

cc  @JohanMabille , @serge-sans-paille , @pitrou , @guyuqi

I don't think there's a hard requirement on what xsimd_register should alias to. Theoretically, it could even be an std::vector :-)
The only problem I foresee is that xsimd::batch has size as a constexpr member, and I'm pretty sure that's incompatible with SVE. We can turn that into a method call, but I guess we would need it to no longer be constexpr, which probably has plenty of impact...
Another way around would be to make SVE a paramateric Arch, template <size_t LaneCount> struct sve as we already for fma3. That way we could have different SVE lane that coexist in the same code, but they would be hard-coded.

The only problem I foresee is that xsimd::batch has size as a constexpr member, and I'm pretty sure that's incompatible with SVE. We can turn that into a method call, but I guess we would need it to no longer be constexpr, which probably has plenty of impact...

It could be static constexpr for fixed-size ISAs and non-constexpr for runtime-sized ISAs?

Unfortunately not, because that would make some kernel fail to compile on some
arch while successfully compile on others. Think
constexpr auto n = b.size;
for(size_t i = 0; i < 100; i += n)
    b *= b;

This (relatively idiomatic) code would be valid on AVX2 and not on SVE, and
that's something we want to avoid.

Perhaps xsimd_register, in the case of SVE, can instead be a (pointer, length) pair or similar?

Not sure if compiler can generate optimal code in this situation. I think simd data is supposed to be directly in hardware register, not on stack or heap memory.
I tested aliasing SVE register over a dummy buffer, looks it's fragile. https://godbolt.org/z/efWs6jfaa

Also, in your example, can we not pass the bitsize directly instead of __ARM_FEATURE_SVE_BITS?

What would be the constraints exactly? If running on a 512-bit SVE CPU, would fixed-size 256-bit SVE be able to execute?

No. If SVE hardware is configured as 512 bits (normally set by firmware or OS at boot time), all SVE instrutions will think the register size is 512bits. For example, memory load/store are 512 bits. So the loop increment step of a fixeds-size 256 bit code will be wrong. And memory access may overflow the buffer.

Uh, so let's hope most implementations choose the same register size then :-(

My question was whether one could write __attribute__((arm_sve_vector_bits(128))) directly without a specific compiler option. But apparently that doesn't work.
<source>:4:50: error: 'arm_sve_vector_bits' is only supported when '-msve-vector-bits=<bits>' is specified with a value of 128, 256, 512, 1024 or 2048.
typedef svint32_t svfixed_int32_t __attribute__((arm_sve_vector_bits(128)));

Also one can't set any other value that the one given on the command line. Does arm_sve_vector_bits just only serve as a compile-time check that the right SVE width was enabled?
<source>:4:50: error: invalid SVE vector size '128', must match value set by '-msve-vector-bits' ('256')
typedef svint32_t svfixed_int32_t __attribute__((arm_sve_vector_bits(128)));

I find clang has a nice document about arm_sve_vector_bits.
https://github.com/llvm/llvm-project/blob/a45dd3d8140eab78a4554484c2b0435582ee262a/clang/include/clang/Basic/AttrDocs.td#L6204-L6227

Another issue is how to setup CI jobs to verify SVE implementation.
As we are running aarch64 tests on x86 machines with qemu-user, it can also be used to verify SVE.
# cross build SVE enabled aarch64 binary
$ aarch64-linux-gnu-g++-10 -march=armv8-a+sve test.c

# test on simulated aarch64 machine with SVE vector size = 256 bits
$ qemu-aarch64 -cpu max,sve256=on -L /usr/aarch64-linux-gnu/ ./a.out

# test on simulated aarch64 machine with SVE vector size = 512 bits
$ qemu-aarch64 -cpu max,sve512=on -L /usr/aarch64-linux-gnu/ ./a.out

NOTES:
SVE requires qemu-3+, but current CI job runs on ubuntu18.04 which ships qemu-2.11. SVE job may need ubuntu20.04 (qemu-4.2). For toolchains, gcc-10+ and clang-12+ are necessary to build SVE code.
SVE2 requires qemu-6.0, but it can be left to future.

Some updates.
I've implemented SVE functions. All unit tests passed. Verified both on real hardware (Neovere-N2) and qemu emulator.
Need to refine cmake and add CI job.

@cyb70289 Sounds interesting! AFAIU, your approach requires setting the bit width at compile time?

Yes, must pass -msve-vector-bits=xxx, otherwise sve code is skipped.
I tested sve128/256/512.

I encountered a similar scenario while doing SIMD research work, not long ago and want to share the following observations. I apologize before hand for the verbose context.
The SVE spec supports vector operations for vector sizes ranging from 128 to 2048 in 128 increments (128 is the lowest power of 2 that is not a primitive type in today's common 64-bit archs). SVE was made to support different archs with different vector lengths without requiring changing your code, given that there is no right answer to the main questions: "What is the right vector length for HPC and chip designs?".
Currently, I do not know of any processor that truly supports agnostic vector extensions without vector length constraints. Also, not all Arm processors support the full SVE spec, so it will always boil down to the capabilities provided by the micro-architecture. Thanks to the change that xsimd made to make batch<T, A> be parameterized by arch instead of vector length, provides the flexibility to support SVE vector length variants that are not supported in other vector extensions. For example, consider a vector length of (640 = 512+128).
To answer the question in hand: How to support Arm SVE?
The sensible approach would be exactly what @cyb70289 implemented in his branch, specialize implementations for the different SVE lengths of interest. This would keep xsimd's API consistent. The SVE length needs to be set at compile-time and detected via macros. Other modern SIMD libraries also follow this approach: e.g., EVE.

I need to study xsimd code more carefully to understand better how it could support SVE (and similar) at runtime.

A quick glance at Google highway and if I am reading the code correctly, only SVE-128/256 have constexpr Lanes(), for other vector lengths it is not. This implies that no function that invokes Lanes() can be constexpr.
Also, it seems their implementation (by design) only supports vector lengths of power of 2.


french translation

I added a warning in the header to indicate that the reference documentation, the most up to date, remains the English version.

Thanks for your contribution, @tmaziere :tada:
Closes #1


[Event Change] Database::"Requisition Line" - Function CalcStartingDate - OnBeforeCalcStartingDate

We like to request the following Event:
Object: Database::"Requisition Line"
Function: CalcStartingDate
Publisher Event: OnBeforeCalcStartingDate
Reason: add an extra Parameter
Where is the event placed:
Event Code:
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcStartingDate(var LeadTime: Code[20]; var Rec: Record "Requisition Line")
begin
end;

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


Unable to call custom api in non-dev mode. Is there a way to add custom api in config file which uses application context?

A clear and concise description of what the bug is.
How to reproduce the bug

Add a custom api to SecurityRestAPI class.
Spin up dev docker.
Able to hit the api.
Spin up non-dev docker
Getting 404 error.

Expected results
Able to access api in non-dev mode too.
Actual results
unable to access api in non-dev mode.
Environment
(please complete the following information):

browser type and version: chrome 65
superset version: latest master branch
python version: 3.8.11
node.js version: ``
any feature flags active:
None

Checklist
Make sure to follow these steps before submitting your issue - thank you!

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

Additional context
Add any other context about the problem here.

Since this is a request regarding custom APIs, I think we'll have a hard time supporting it. It's not a bug, so I'll close it, and encourage you to try the #customizing-superset channel on Superset Slack


style

                       _
ASCII ribbon campaign ( )
 against gratitious    X
 merge commits        / \

https://github.com/mirleft/ocaml-nocrypto/commit/59b78cd0a167edd2523aae4a313c75bab0c3e0b9


Fix project documentation internal links.

The internal links to sections in the documentation were suffering from copy-paste syndrome and didn't use the right format. This PR fixes them.

:+1: nice

All links working :+1:


Merge 2.x to main for #122 and #150

Description
Merge 2.x to main, port #122 and #150
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[x] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #154 (71257fb) into main (eb01a2d) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #154   +/-   ##
=======================================
  Coverage   94.73%   94.73%
=======================================
  Files           5        5
  Lines         152      152
  Branches       45       45
=======================================
  Hits          144      144
  Misses          8        8

Impacted Files
Coverage Δ

gantt-chart/public/components/gantt_chart.tsx
90.66% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Handle HTTP/2 upgrade response from the stream 1

Motivation:
Once an upgrade to HTTP/2 is finished in a cleartext connection, the
server sends the response for the upgrade request to the client via the
stream 1. Armeria client currently does not handle it explicitly,
causing the response to reach at the end of the pipeline. This is not
necessarily harmful, but it will pollute our DEBUG log level because
Netty will log any messages that reach at the end of the pipeline.
Modifications:

Make UpgradeHandler handle the upgrade response so that Netty does not
complain
Change the next version to 0.6.1.Final

Result:
Less noisy log messages

LGTM. :+1:


Can not create first Wiki page

Gogs version (or commit ref): 94392a7af3d07f79adab195acfb7c1b545f68be9
Git version: 2.9.3
Operating system: Ubuntu 14.04
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] SQLite

Can you reproduce the bug at https://try.gogs.io:

[ ] Yes (provide example URL)
[x] No
[ ] Not relevant

Log gist:

Description
After creating a new project I cannot create the first wiki page. It seems that an empty wiki repo is created, but it cannot be checked out with branch master, because its empty. After manually committing data into the empty repo everything is working like a charm
[git-module] /home/git/gogs-repositories/jan/test001.wiki.git: git init
[git-module] stdout:
Initialized empty Git repository in /home/git/gogs-repositories/jan/test001.wiki.git/.git/

[git-module] Setting update hook: /home/git/gogs-repositories/jan/test001.wiki.git
[git-module] git clone -b master /home/git/gogs-repositories/jan/test001.wiki.git data/tmp/local-wiki/1
2016/08/15 22:19:45 ^[[1;31m[...routers/repo/wiki.go:216 NewWikiPost()] [E] AddWikiPage: UpdateLocalWiki: Clone: exit status 128 - Cloning into 'data/tmp/local-wiki/1'...
fatal: Remote branch master not found in upstream origin
fatal: The remote end hung up unexpectedly

Hi, if you can't reproduce on demo site, it maybe you have old temp data. Try restart Gogs and do again.

Unfortunately restarting does not help. data/tmp/local-wiki is empty since initial clone of the wiki-repo fails.

Does the real wiki repo has any content? I can't reproduce this..

If real wiki repo is the repo in gogs-repository-folder: no its empty and executing
$ git clone -b master /home/git/gogs-repositories/jan/test001.wiki.git
fails as well with
Cloning into 'test001.wiki'...
fatal: Remote branch master not found in upstream origin
fatal: The remote end hung up unexpectedly

In contrast
$ git clone /home/git/gogs-repositories/jan/test001.wiki.git is working with a warning: You appear to have cloned an empty repository

Patch has pushed to fix this issue, please test on master branch or https://try.gogs.io.

Thanks for your quick response and fix. Now it is working as expected.


fix unrecognized date issue

use a simpler regex to process date (may also have performance improvement). Now 11/11/2015 is recognized.

@wanghaofei90 please CR.

GREAT! LGTM!


Persistent

Hi there,
I saw that the session object is not used. I use persistent session package to keep a user logged in even after they leave the page and come back. How can I make useraccounts persistent because it doesn't use sessions?

This behaviour should be the default for the meteor accounts system!
Isn't it?

sorry it is... that why I closed it

Ok, no worries, I just wanted to confirm it.
Tnx!


Specify payload for triggers

While I do think this feature can be helpful, I find this article a bit confusing in terms of how I would use the feature.  There seems to be an assumption of the payload format for each trigger.  For example, what is special about the HTTP POST body being {“input”: “test”}?  Is that payload specific (an example) to an Azure Storage queue trigger?  If I try a payload of {“cats”: “dogs”}, I do receive a 202 Accepted response, but the function execution fails, with a message of “Unable to convert trigger to IStorageQueueMessage.”  Therefore, the {“input”: “VALUE-GOES-HERE”} format does appear to be special (as in text for the VALUE-GOES-HERE is the content of the queue message).
Is there documentation available for the payload for other triggers (e.g. Blob storage, Event Grid, Service Bus, etc.)?  It would be helpful to reference that documentation from this article.

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

ID: f538a557-7e88-e077-6a6f-6fb14d89dbf6
Version Independent ID: 84a1693b-2795-c865-35df-3ad3b9b61e2c
Content: Manually run a non HTTP-triggered Azure Functions
Content Source: articles/azure-functions/functions-manually-run-non-http.md
Service: azure-functions
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

@mcollier
Thanks for your feedback! We will investigate and update as appropriate.

@mcollier I think what you have observed is correct. I was not able to find it documented anywhere but I took a dive into the code and was able to find it. 😄
Here is the method triggered by the Admin API mentioned in the doc which is extracting the input value from the payload.
The FunctionInvocation class is just a simple class with one attribute named Input.

Based on the doc, a simple string is passed as the argument to the function as is. I tried a function expecting a JSON object.
The function had this code
public class QMsg
{
  public string name;
}

[FunctionName("QTrigger")]
public static void Run(
  [QueueTrigger("myqueue-items")] QMsg myQueueItem,
  IBinder binder,
  ILogger log)
{
  log.LogInformation($"QueueTrigger processed: {myQueueItem.name}");
}

and I ran a request like this
curl --request POST \
  --url http://localhost:7071/admin/functions/QTrigger \
  --header 'Content-Type: application/json' \
  --data '{"input": "{\"name\": \"eLMV\"}"}'

and it worked!
Since FunctionInvocation.Input is a string, I guess this probably won't work with Triggers expecting complex object types without String constructors.

Thanks for the additional info, @PramodValavala-MSFT.  I think it would be helpful if the doc could be updated to explicitly state which Triggers can be used with this manual invocation approach, and a few examples as well.

@mcollier I agree. I have assigned this issue to the content author to review and update accordingly.

Thanks, again @mcollier for creating this issue.
Tracking for this update is in our internal backlog, but for now I need to close this issue. Due to the volume of issues in our queue, our policy is to close issues that have been inactive for the last 90 days.
I will still update this thread once the doc is updated.
Thanks again!
#please-close

Since FunctionInvocation.Input is a string, I guess this probably won't work with Triggers expecting complex object types without String constructors.

I was able to specify JSON as the input value and it was smart enough to deserialize it into the message payload class we specified with a ServiceBusTrigger

Hi @craigshoemaker This doc doesn't seem to have been updated with the information originally asked for  (and that I'm now lookign for as well) I was wondering whether it's perhaps in a different place?

@craigshoemaker Has this information been added anywhere besides this thread? Do we need to open up another issue for this?

Same question from me.  Its required for me to perform testing, but theres no information anywhere

if your trigger is expecting an object of type:
public class MyQueueMessage
{
    public string myContent { get; set; }
}

and you are trying to construct the payload to send with your request you can do the following. Define as:
public class Payload
{
    public string input { get; set; }
}

This is what you should send to the admin endpoint to trigger the function,
and then you can do
var myQueueMessage = new MyQueueMessage(){ myContent = "some-content"};  //create your message
var myQueueMessageJson = JsonConvert.SerializeObject(myQueueMessage);   // you stringify your object to pass it as input
var myPayload = new Payload { input = myQueueMessageJson };   // pass it to input as a string
var myPayloadJson = JsonConvert.SerializeObject(myPayload); // to stringify your payload and be able to pass it to the httpRequest
var httpContent = new StringContent(myPayloadJson, Encoding.UTF8, "application/json");

using postman to test you should have something like this:
{
    "input": "{\"myContent\":\"some-content\"}"
}

Then the trigger will properly deserialize it, maybe there are other ways but this has worked for me


[Accessibility][Keyboard - Actions]: 'Action' Button available under the node is not accessible by keyboard.

User Experience:
Keyboard dependent users will not be able to use the functionality of the control if the any control is not accessible via keyboard.
Test Environment
Browser: Microsoft Edge Canary Version: 82.0.425.0 (Official build)
OS build: 2004 (19564.1005)
Screen Reader: Narrator
URL: Bot Framework Composer
Prerequisite Here
Repro Steps:

Open the above mentioned URL in EDGE
"Bot Framework Composer" homepage will gets opened.
Select "Dialog Actions" from the available Bots under 'Examples' and activate it.
Navigate the dialog 'Define conversation objective' then press 'Next'.
Navigate to already created dialog tree item and activate it. Such as- Greetings, Actions, EndDialog etc.
Now, the tree structure appears in the centre. Navigate to already created node.
Activate the 'Actions' button available below the name of the node.
Observe the issue.

Actual:
"Action" button is not accessible by keyboard. On using mouse, the control are interactive as action is getting performed but its not accessible with keyboard.
Note:
Same issue observed with other button's which are present in the node similar to action button's such button's are in "Replacedialog" pane.
Expected:
The controls which are accessible with mouse must be accessible with keyboard. So, 'Action' button must be accessible with keyboard.
MAS Impacted: MAS2.1.1
Attachment:
MAS2.1.1_Action is not accesible with keyboard.zip

@ashish315  @cwhitten  Keyboard move track logic is that we can move cursor between the whole node, nodeMenu and edgeMenu, so "Action" button is not accessible by keyboard because Action button is a part of step node, we can not move cursor into it with keyboard.

Begin a new dialog's dialog link is not in the tab order.

@cwhitten As checked, still action button and other button's {that are like action button in the other nodes such as in replacedialog} are not accessible with keyboard.

@ashish315 please attach screenshots of what you refer to as "Action button" and "other buttons:

Screenshots:

I will check it today @cwhitten  @ashish315

Agree with @alanlong9278 So HCL is closing the issue.


add Docker Image CI/CD

After adding Docker support in #124
Implement CI/CD of Docker images using GitHub Action
I can raise a PR if necessary

The PR is merged but I think everybody who wants to use it should build it on their own because of the cuda requirements.


[SPARK-20706][SPARK-SHELL] Spark-shell not overriding method/variable definition

What changes were proposed in this pull request?
SPARK-20706: Spark-shell not overriding method/variable definition
This is a Scala repl bug ( SI-9740 ), was fixed in version 2.11.9 ( see the original PR )
How was this patch tested?
Added a new test case in ReplSuite.

Can one of the admins verify this patch?

OK, so another back-port to fix the 2.11 REPL, which should be resolved in 2.12 anyway?

Test build #4003 has started for PR 19879 at commit f265daa.

Test build #4003 has finished for PR 19879 at commit f265daa.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

This one has a "Major" priority; but otherwise yes, it should be resolved in Scala 2.12 version.

By the way, are these contributions valuable, or should the focus be 2.12?

Jenkins, re-test this, please.

Jenkins, retest this please.

Yes, I think it's reasonable to pull these fixes forward to patch medium-sized problems. We don't have 2.12 support fully working yet, even, so punting the solution to 2.12 means punting to 3.0, probably, and that's still ~6 months off. Meanwhile 2.3 is imminent.

retest this please

Fixed the style check problems of the documentation comments. Unfortunately I did not find a way to make Jenkins re-run the tests.

Jenkins add to whitelist

Test build #4004 has started for PR 19879 at commit db6967c.

Test build #84493 has started for PR 19879 at commit db6967c.

Test build #4004 has finished for PR 19879 at commit db6967c.

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

Test build #84493 has finished for PR 19879 at commit db6967c.

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

Merged build finished. Test PASSed.

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

Merged to master


Basic128Sha256 | Use Aes256 for message encryption ?

According to this page, Basic128Sha256 uses Aes256 for message encryption; I guess this is a bug in the documentation and should mention Aes128?

defaultAlgorithm Attribute

Basic128Sha256
Use Aes256 for message encryption, Sha256 for message digest and Rsa-oaep-mgf1p for key wrap.

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

ID: 217c59b2-7fb7-b608-c75e-d8aa6854f42a
Version Independent ID: 0414a903-2877-4e5a-96ee-3bb21fc518b4
Content: <security> of <customBinding> - .NET Framework
Content Source: docs/framework/configure-apps/file-schema/wcf/security-of-custombinding.md
Product: dotnet-framework
Technology: dotnet-wcf
GitHub Login: @HongGit
Microsoft Alias: wcfsrvt

@sotto Yes you're right, thank you for letting us know!


Export useDevtoolsContext?

I'm writing a custom useMutation and would like to include the dev tools. Can you export useDevtoolsContext so that I can use it directly?

👋 hey everybody - seemed like low hanging fruit that would give me a chance to get my feet wet

Quick update on this regarding #388 and #387. We're looking to actually remove this hook and other metadata utilities and code from the codebase.
We can achieve the same functionality by baking it into the devtools and hence remove all metadata concerns from urql.
This ensures that our codebase remains manageable and keeps the devtools as the only owner of this kind of data. So we're looking to bake all metadata into the devtools exchange :)


Filter packages that are "owned" by other packages

What this PR does / why we need it:
Today engine will perform vulnerability matching for all packages discovered within a image, even if a given package is really "owned" by a parent package (e.g. An RPM has packaged within it a Python wheel that gets installed, the RPM is the "owner" of the wheel package).  In these cases the parent package should be used for vulnerability matching and the child should be ignored (see anchore/anchore-engine#315 , anchore/anchore-engine#445 , and anchore/anchore-engine#460).
This PR bumps the syft version that labels relations between packages + adds a filter to the SBOM report to exclude packages that are owned by other packages.
Additionally this PR allows for additional attributes on image import, enabling schema additions to not cause a 400 to be returned.
Which issue this PR fixes
Fixes #445 , Fixes #460
Tasks:

[x] bump Syft version (pending merge and release of https://github.com/anchore/syft/pull/329 )
[x] update syft analyzer filter to consider only root packages
[x] test functioning via internal analyzer (anchore-cli image add ... )
[x] test functioning via SBOM import
[x] update existing functional tests

Questions:

Should we only perform this filtering for OS packages owning non-OS packages (that is, don't filter if a non-OS package claims to "own" an OS package)

I resolved the conflict on the Dockerfile, and that should also merge in the jsonschema fix causing the CI failure


mstest vs vstest.console

I happened to run 'run-tests.cmd' for the first time just now, and discovered that all my hundreds of beautiful new tests failed, even though they run fine in nCrunch and fine on Appveyor.
It turns out that Appveyor is using 'vstest.console.exe' rather than 'mstest.exe'
Judging from https://msdn.microsoft.com/en-us/library/ms182486.aspx I think vstest.console is the correct choice, besides which is makes no sense to be different to Appveyor anyway.
Is there any objection to me updating run-tests.cmd?

mstest is out of date.
In the new integration-test PR that script will go away.

OK, excellent, I'll ignore it for now


Remove containers gradually when disable invoker

Don't remove lots of containers/pods at once to avoid overload
Description

Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Scheduler
[x] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[x] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[x] I signed an Apache CLA.
[x] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[ ] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

Codecov Report

Merging #5253 (61fefdf) into master (1e09049) will decrease coverage by 4.78%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5253      +/-   ##
==========================================
- Coverage   79.99%   75.21%   -4.79%
==========================================
  Files         238      238
  Lines       14009    14018       +9
  Branches      567      573       +6
==========================================
- Hits        11207    10544     -663
- Misses       2802     3474     +672

Impacted Files
Coverage Δ

...penwhisk/core/containerpool/ContainerFactory.scala
89.47% <100.00%> (+0.58%)
:arrow_up:

...ontainerpool/v2/FunctionPullingContainerPool.scala
82.65% <100.00%> (+1.66%)
:arrow_up:

...core/database/cosmosdb/RxObservableImplicits.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...ore/database/cosmosdb/cache/CacheInvalidator.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...e/database/cosmosdb/cache/ChangeFeedConsumer.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...core/database/cosmosdb/CosmosDBArtifactStore.scala
0.00% <0.00%> (-95.85%)
:arrow_down:

...sk/core/database/cosmosdb/CosmosDBViewMapper.scala
0.00% <0.00%> (-93.90%)
:arrow_down:

...tabase/cosmosdb/cache/CacheInvalidatorConfig.scala
0.00% <0.00%> (-92.31%)
:arrow_down:

...enwhisk/connector/kafka/KamonMetricsReporter.scala
0.00% <0.00%> (-83.34%)
:arrow_down:

...e/database/cosmosdb/cache/KafkaEventProducer.scala
0.00% <0.00%> (-78.58%)
:arrow_down:

... and 16 more

Continue to review full report at Codecov.

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

LGTM


oslc: Fix crash when encountering for (;;)

An empty conditional clause of a for statement was leading to bad
things. It's understood that for (;;) means for (;1;), so just
make sure that happens when parsing.
Fixes #688

LGTM!


Add Terraform version compatibility changes

@grayzu could you also look at this? The module is currently broken for azurm >= 2 (missing features {}) and throws a bunch of deprecation warnings on Terraform >= 13. Thank you!


Problems retrieving entities / initialising

I suspect that this is an AlphaESS issue, however...
Yesterday morning I noticed that some entities (e.g. SOC from my Smile B3 battery and PV production figure from my monitored PV system) were missing. They appeared intermittently during the day and would then disappear.
This morning I noticed that the integration will not initialise (error log below). I also cannot log in to the AlphaESS app on my phone and am thinking that AlphaESS are 'tinkering' this weekend.
Anyone else have problems?
Error log below:
Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 08:00:03 (2 occurrences)
Last logged: 10:13:10
Error setting up entry alphabeb5fe159238b3ae for alphaess
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/alphaess/init.py", line 49, in async_setup_entry
for unit in ESSList:
TypeError: 'NoneType' object is not iterable

I suspect this has to do with the global maintenance being done by AlphaESS (for the last 38 hours the app itself has been intermittently down/not displaying data, however, it might be that the API service itself has been changed/updated.
Lets wait and see once the outage is marked as resolved.

Thanks for confirming it's not just me.
I agree that we need to wait and see what happens and respond accordingly. I have significant faith in this development community.

Was about to ask the same thing, I've had basically all instantaneous data not available and the app showing the device as "offline" but a solid COM light. Visiting cloud.alphaess I can see the device is online but also missing all live data and SOC
I'm assuming everyone is having similar issues and is an issue with the AlphaESS api

Spot on, due to the current maintenance that has been going on for the last few days. its producing most of the response from the API as "null"

Based on this comment, it seems as if it’s an issue with AlphaESS’ servers, rather than an API change.
https://github.com/alphaess-developer/alphacloud_open_api/issues/88#issuecomment-2408756845

Same issue here.  App and web back online but cannot initialise the integration.

They seem to be prioritising getting the app interface fixed first, then moving onto the OpenAPI, whenever that might be

Interesting strategy to close Issue 88 and then open a new issue Issue 89

This is clearly an AlphaESS issue and I will therefore close this issue when/if the API comes back working okay with the integration.
If it comes back broken we can use this issue to identify what needs to be revised.
Thanks for the input and feedback everyone.

 The manufacturer xould lock us oht when ever they want to.
I think I will start to use Modbus to grab data directly from the device with IOBroker rather than using the workaround with the unreliable API...
Not sure why the device cannot be used locally only via LAN... 🤷♂

Unrelated but I also wanted to swap to modes integration, now my supplier replaced my smile 5v2 with a smile 5v1 where the modbus connector is not easily accessible and I forgot to connect a cable at the time of replacement :-(

My AlphaESS App is already working again, but the HA plugin is still erroring out. Might still related to the maintenance window as there could different servers/endpoints being used. Just wanted to put it here, in case people were also wondering.

Same here

I think that the API has changed , I understand that they are still possibly having issues with the platform but I am seeing this error  [alphaess.alphaess] Error:  when calling https://openapi.alphaess.com/api/getEssList
[homeassistant.config_entries] Error setting up entry alphaXXXXXXXXXX for alphaess
I am in Australia and using a VPP (Amber Electric) and they use this API to control our batteries , this started working correctly around 4pm yesterday afternoon

Yeah, im with amber too, weirdly enough thats working. odd, ill reach out to elevenfan and see if anything has changed with the API. super odd. maybe they are web scraping or just not using the openAPI at all?

Now we have the nginx error page. Thats the same we had last time, when there were problems with the API. Fingers crossed.

Appears to be back giving data, but some of it is going to be null.... at least the integration wont error out anymore

My integration still is failing to initialise with the below

I tried to reinitialise. All entities except one were Unavailable. The error log shows the following:
Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 08:40:46 (1 occurrences)
Last logged: 08:40:46
Error setting up entry alphabeb5fe159238b3ae for alphaess
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/alphaess/init.py", line 49, in async_setup_entry
for unit in ESSList:
TypeError: 'NoneType' object is not iterable

I have a new home assistant setup, so trying to setup the add-on for the first time, and I am just getting "an unknown error occured" through the UI when entering app secret etc etc

The APP no longer shows the maintenance warning, so hopefully everything will resolve soon

The integration is now able to intialize again, but most sensors are not filled.

Couldn't see anything in my logs about cbat. Looks like all data has come back except the "live" data I.e all instantaneous data such as SOC and Load is missing

Nvm. API is still down, all good still spilling null data for getLastPowerData

I just checked and it looks like the integration is available again:

As far as I can see the service is flapping. It is not stable an not all data is available.
We have to wait :-(

@cpmueller You're right the service is unavailable again.

Im currently working on a new pull here for some new charge/discharge features.
I can add some edge cases to the API so that the whole thing doesn't reset/error out when the API doesn't return data, rather just throws an error to the user, but still continues to try and grab new data every 5 mins.
is that something you'd be interested in seeing? resolves manually having to restart the integration when either your internet goes down and it cant reach the API, or the API refuses to connect (like now)

That would be awesome!

I'm also just getting null from postman. I'm assuming this will just resolve itself once the data starts coming back through? Seems all requests are passing ok now

Has there been any update? Seems they've removed the issues from the AlphaESS Open API GitHub, can't even see them any more

Yeah, they closed the issues, and are just referring people to contact support about it....

Awesome.
 Awesome.
I guess I will go for Modbus integration within IOBroker and send data via MQTT to HA. The my whole system will be unplugged from the net.
I'm tired of intransparent support like this. I meN: when the official API is down, how will the owner of this project bring back the integration?
But I guess this is the common way of a lot of service providers.
Time to change something.

interesting, I cannot even open the open.alphaess.com website anymore....
Just get a 500 error

interesting, I cannot even open the open.alphaess.com website anymore....
Just get a 500 error

It's still flaky and I've noticed that it may need a cache clear for some browsers

I can login to the API website. Weird how some data is showing from the API and some isn't. App and Website seem OK now so I assume it's just a waiting game.

The API seems to be back online for me now with getLastPowerData returning correct values.

Looks like it is returning intermittently. getLastPowerData seems to be pulling values but drops in and out

All back now. Quick question slightly off topic, I had my inverter replaced and I now have 2 services. One populated one not, I've removed the entities but would appreciate some help removing the service?

 But let's wait and see. Last time it also came in batches if I remember correctly..

It's generally back for me, but I still see some flapping every now and then, which does resolve itself without reload/restart though.

I can now initialise the integration, but many values are either reporting 'unknown' or 'unavailable'.
It's almost six days now that this has been unreliable.

Everything is working again !

This works very well https://github.com/dxoverdy/Alpha2MQTT.
On Thu, 17 Oct 2024, 16:59 Meketh74, @.***> wrote:

Working again for me too. Still also thinking about a Modbus integration
within IOBroker that sends data via MQTT to HA. Anybody know a good guide
for the MQTT to HA part?
—
Reply to this email directly, view it on GitHub
https://github.com/CharlesGillanders/homeassistant-alphaESS/issues/136#issuecomment-2419935046,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACTWF7K5HF5U6IVHD7DZWLZ37NHDAVCNFSM6AAAAABP3IBQUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJZHEZTKMBUGY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
.com>

I now have only one entity reporting unavailable and I'm not 100% sure it's relevant to my battery/inverter.
If it's all good in the morning I will close this issue.

Conforming finally working for me in Syd Aus too. Took quote a few restarts to get them all, but all entities seem to now report correctly

the API apparently provides data according to POSTMAN (see screenshot).
But the integration (0.5.5) still does not receive any data.

As this seems to be back to normal I am now going to close this issue, with thanks to everyone who has provided updates throughout.

@kaffeetrinker71 make a new issue with logs attached if your still having issues after restarting home assistant


Wrong width problem

Hi :)
I really like the new version, but I'm having trouble with the correct width of the elements on first initialization.
See here: http://gd3.de/owl.carousel.2.0.0-beta.2.4/
When I resize the window it works perfectly.

When my cache is empty, it works fine the first time.
But when I press F5 to reload the page, the width is off again.
(Just noticed that)

it works for me, without problems

I've seen this issue only in Safari. The question is is it Safari or Owl?

I have that problem in FF and Chrome.
As mentioned before, after refresh.

I switched to Slick carousel now, as it can do infinite scrolling while being responsive (showing different amount of slides depending on screen-width). There are issues with that slider as well, but fewer :)

@mosesmalone Yeah I'm using that one too. It's hard to round corners and they have some funky height issues if you do not set a height but no perfect product yet I guess.


Got this error SPXERR_GSTREAMER_INTERNAL_ERROR

I just downloaded gstreamer libs by running this command:
sudo apt install libgstreamer1.0-0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly

But now I got this error:
I'm running on an Ubuntu Server 18.04
java.lang.RuntimeException: Exception with an error code: 0x27 (SPXERR_GSTREAMER_INTERNAL_ERROR)
[CALL STACK BEGIN]

/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.extension.codec.so(+0xfb0d) [0x7fef684bcb0d]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.extension.codec.so(+0xc3b4) [0x7fef684b93b4]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.extension.codec.so(+0x8943) [0x7fef684b5943]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.core.so(+0x2aac48) [0x7fef69209c48]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.core.so(+0x228291) [0x7fef69187291]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.core.so(+0x22670f) [0x7fef6918570f]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.core.so(+0x226d9a) [0x7fef69185d9a]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.core.so(+0x227726) [0x7fef69186726]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.core.so(+0x14f7c6) [0x7fef690ae7c6]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.core.so(recognizer_create_intent_recognizer_from_config+0xe9) [0x7fef690a7f29]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.java.bindings.so(+0x186f75) [0x7fef699b7f75]
/tmp/speech-sdk-native-5290572440647486173/libMicrosoft.CognitiveServices.Speech.java.bindings.so(Java_com_microsoft_cognitiveservices_speech_internal_carbon_1javaJNI_IntentRecognizer_1FromConfig_1_1SWIG_10+0xb7) [0x7fef69966c67]
[0x7fefb091c970]
[CALL STACK END]

@tonyalves what is your use case. Could you please send me a sample code and sample stream.

@tonyalves what is your use case. Could you please send me a sample code and sample stream.

Sure. I read from wav file stream.
Link to audio: https://gofile.io/d/SOsw9l
PullAudioInputStreamCallback callback = new WavStream(new FileInputStream(path));
		AudioInputStream inStream = AudioInputStream.createPullStream(callback,
				AudioStreamFormat.getCompressedFormat(AudioStreamContainerFormat.ALAW));

		AudioConfig audioInput = AudioConfig.fromStreamInput(inStream);
		IntentRecognizer recognizer = new IntentRecognizer(config, audioInput);

		LanguageUnderstandingModel model = LanguageUnderstandingModel.fromAppId(agentId);
		recognizer.addAllIntents(model);
```

@tonyalves I was not able to repro the issue from the stream you provided me on Ubuntu 1804. When I had a close look at your code I found that you are using WavStream. I think you are using this wavstream  . This wave stream is written to do special thing related to the wave file header. You do not need to do those things for compressed audio. Just open the file and blindly read the file. Please  look at the sample [SpeechRecognitionWithCompressedInputPullStreamAudio](        public static async Task SpeechRecognitionWithCompressedInputPullStreamAudio())  . Do let us know if that solves your problem

@tonyalves I was not able to repro the issue from the stream you provided me on Ubuntu 1804. When I had a close look at your code I found that you are using WavStream. I think you are using this wavstream . This wave stream is written to do special thing related to the wave file header. You do not need to do those things for compressed audio. Just open the file and blindly read the file. Please look at the sample SpeechRecognitionWithCompressedInputPullStreamAudio . Do let us know if that solves your problem

Thanks! I'll try it. But I forgot to mention it, that it's working in my local machine and another server. Just this server doesnt works.


Add GitHub Action to ensure that commits build and pass tests

Currently the only action is on committing with a tag which results in the release of tx-engine to PyPi.org.
Ideally the CI pipeline should check that commits build and pass tests, and provide feedback if not.

Resolved in https://github.com/nchain-innovation/chain-gang/pull/14


Ternary operator not narrowing down type inference

TypeScript Version: 3.7.2,  nightly
This may be a newbie question since I couldn't find any similar questions on stack overflow or this repo...   I think these examples will have a same behavior but it actually has different typescript checking result. Please guide me to a learning material if this question is asked because of purely not understanding javascript of typescript

Search Terms:
combinations of ternary operator, narrowing, type inference, type guard
Code
interface ExampleData {
    bitlyUrl?: string | undefined | null;
}

const exampleData: ExampleData = {
    bitlyUrl: 'https://bitly.com/asdfasasdf'
}

const help = (arg: string) => {
    console.log('function that has a argument with a string type')
}

exampleData && exampleData.bitlyUrl
    ? help(exampleData.bitlyUrl)
    : console.log('working as expected')

const condition1 = exampleData && exampleData.bitlyUrl;
condition1
    ? help(exampleData.bitlyUrl)
    : console.log('not working with variable')

const condition2 = exampleData?.bitlyUrl;
condition2
    ? help(exampleData.bitlyUrl)
    : console.log('not working with variable(optional chaining)')

const workaround = exampleData && exampleData.bitlyUrl;
workaround
    ? help(exampleData.bitlyUrl as string)
    : console.log('workaround that doesn't look ok....')

Expected behavior:
It should not make a typescript error
Actual behavior:
It emits typescript error
Playground Link: https://www.typescriptlang.org/play/?ts=3.9.0-dev.20200308#code/JYOwLgpgTgZghgYwgAgKIA84FsAOAbCAETjDmQG8AoZG5AI2DDwE8BVKPAfgC5kBnMFFABzZAB9kAVxAATCDFAQZ45CEl48AbkoBfSpQQB7EAOQRMuAsVK8M2fERJkAvBWq0GTNh14ByABZgYDh83AD0YZ4sAHRGWGFwfDLwfInJvrr6RiZgyP4QeDjIrgAUcFDCvAJCIMIAlMUAfG60yNl8hgTReIbCJb4w0ghgwMbIYP4keYnIZOXCklgQ4MgA7oz+s-yCIuPMOBC+dZmU5vZWTsgAZFdmFg7WcNFR3njuNJx5BTglZ5aOpGejBY7Dwx1avHanQg3V6-VWhigAGtdjNzAdhkojlljKZsjJGKMQABGYp3c4Asg3cn-R5Aryg7T4wnGYnvZCffKFX73C6Al6g8G0SG46Gwvq+ECGXII5G7dYTZAAN3KwDgdAI2IMuNyzJGxgATGS-g8nJx6SCOEzjAT9SADezOd8eRS6QKOEKaCKTGKehKpTLESjamsNsrVeqCCVDDg7XA8G1JqARHUtUA
Related Issues:

Narrowing with the ternary operator works just fine, but storing the "narrowing check" in a variable and narrow based on that is not supported in general.

Found the relevant issue: duplicate of #12184.

Oh, thanks for your help. It seems complex as it has to track all the way down for type inference. Can I ask one more? Then what are the best practices to handle these cases?
Should I use

exampleData && exampleData.bitlyUrl kind of duplicated guard many places in a code
or manually put types where it emits error? (as string in the below example)

const workaround = exampleData && exampleData.bitlyUrl;
workaround
    ? help(exampleData.bitlyUrl as string)
    : console.log('workaround that doesn't look ok....')

or... maybe there is a cleaner/better way?

Or in general what is the recommended way to validate values before using it?(sorry for the broad question)


Foundation: remove deprecated bzero

The bzero implementation is unnecessary as it is trivially
implementable by the "modern" memset API.  Additionally, the use of
the type size_t causes trouble for Windows which tries to interpret it
as Foundation.size_t rather than ucrt.size_t which results in a
horrific deserialisation fatalError.

CC: @gwynne @millenomi

@swift-ci please test

@swift-ci please test Linux platform


Jquery.js

Hello!
This more of a security issue and a question to that. Why are you using version 1.7.1 of jquery? Everything less than 1.9 has an XSS vulnerability?
Best wishes!
Jan

Discussed elsewhere on the repo. Here's one place that I recall: https://github.com/lsegal/yard/pull/1351#issuecomment-699686428

Why are you using version 1.7.1 of jquery?

Seems it was upgraded to 3.4.1 (https://github.com/lsegal/yard/commit/9ed7586a390155039710ccf011f127f4ba5ce04a) to fix a privious vulnerability and then reverted https://github.com/lsegal/yard/commit/4fbf8ff08909d04a7faf80849dcd696b9a7b12ab

Everything less than 1.9 has an XSS vulnerability?

Every repository hosting yard generated doc is receiving GHSA-q4m3-2j7h-f7xw alerts. Ex: https://github.com/noraj/PixelChart/security/dependabot/15
I guess yard is probably not vulnerable as it's to generate static documentation and there is nearly no user input outside of the search bar. But that's annoying that anyone using yard receives a false positive vulnerability alert.

The upgraded version of jQuery created regressions in generated documentation. If someone wants to open a PR with a version of jQuery that does not break downstream usage, it might be accepted. Another option would be for someone to provide the upgrade with necessary shims/updates to yard code in order to not break downstream users. Alternatively, if someone wants to show a proper reproduction of the vulnerability being used in the context of yard, it could be prioritized more highly.
It's worth noting that downstream users are also free to provide their own jQuery by using templating in yard to override the original version, so if you're getting notices on GitHub, you can address them by vendoring your own jQuery; you will however be subject to potential regressions.


dashboard "pages" pagination

add next/previous/pagination functionality to aws-roles dashboard

The pagination works as expected:


update LESS to 2.5.0

can the LESS dependency be updated to 2.5?

Already merged: #128
Will push out official tag when I have a few minutes.

ah, sweet =P


Rancher deployed on k3s with traefik and external TLS doesn't respond to /ping properly

Version:
# k3s -v
k3s version v1.17.4+k3s1 (3eee8ac3)

K3s arguments:
usr/local/bin/k3s server --cluster-cidr <IP_ADDRESS>/16 --service-cidr <IP_ADDRESS>/16 --cluster-dns <IP_ADDRESS> --flannel-backend=ipsec
Describe the bug
When Rancher is running on k3s cluster with traefik and set to use a load balancer with external TLS, sending a /ping request returns OK and not pong:
$ curl -v https://myhost/ping
*   Trying W.X.Y.Z...
* TCP_NODELAY set
* Connected to myhost (W.X.Y.Z) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=*.mydomain
*  start date: Apr 14 00:00:00 2020 GMT
*  expire date: May 14 12:00:00 2021 GMT
*  subjectAltName: host "myost" matched cert's "*.mydomain"
*  issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7f879a805400)
> GET /ping HTTP/2
> Host: myhost
> User-Agent: curl/7.64.1
> Accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200
< date: Wed, 15 Apr 2020 00:26:33 GMT
< content-type: text/plain; charset=utf-8
< content-length: 2
<
* Connection #0  to host myhost left intact
OK* Closing connection 0

This is problematic because the rancher 2 terraform provider is expecting /ping to return /pong and fails when using the bootstrap resource. See https://github.com/terraform-providers/terraform-provider-rancher2/issues/317
To Reproduce

set up a k3s cluster, use default option of traefik as the ingress controller. (don't pass --disable traefik). Set this up on AWS.
Install Rancher using Helm. Can follow directions on installing Rancher on k3s. Make sure to pass tls = external option.
Configure a layer 7 application load balancer (ALB) in AWS. Target group should map to port 80 of the AWS instance running k3s.
Curl with /ping

Expected behavior
/ping should return pong
Actual behavior
/ping returns OK . /ping is getting intercepted by traefik and not passed through to Rancher.
Additional context / logs
Out of box, traefik is configured to respond to /ping. See https://docs.traefik.io/operations/ping/#configuration-options This configuration conflicts with Rancher and the ability to use the bootstrap resource in the rancher2 terraform provider.
gz#9734

@cjellick that seems like a reasonable solution, as long as we can change the rancher2 terraform provider to use this new endpoint.

Yes, that was my thought. Might need to do a little more work to make it backwards compat in the terraform provider. CC @rawmind0

Just ran into this exact same issue - spent a bunch of time trying to figure out what the heck was going on. Thanks for reporting @dnoland1! Cheers.

We think that with the upgrade to traefik 2.0, the /ping endpoint may be off by default. So, this might be resolved in more recent versions of k3s (1.21 and up, I think). We'll have someone check that out.

Marking as internal since this affects hosted rancher.

@dnoland1 if you are using external SSL with Traefik v1, and don't want the ping handler operational on the http endpoint, you should do something like this:
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    ssl:
      enabled: false
    startupArguments:
    - "--ping"
    - "--ping.entrypoint=httpn"
    pingEntryPoint: httpn

Note that the Traefik v1 chart requires disabling the ssl endpoint in order to create the alternate plaintext httpn endpoint on 8800 that hosts the ping endpoint, which is required for pod healthchecks.

Spoke with @dnoland1. This explanation (plus it not being an issue in traefik 2) is enough for him. However, this could possibly be picked up as an enhancment to the documentation for installing rancher on top of k3s.


Navigating large graphs

While navigating large graphs, it becomes tedious to follow the edges.
It would be preferable to have a button on the side panel (inputs and outputs) so that we could easily go to the specified node

Copy paste a separate file away from your search bar

Duplicate of #1122

Thank you sir


Fix error in codeblock: expected ‘;’ after struct definition

Error:
In the first codeblock,
int var;
const int&& fx();
struct A { double x; }
const A* a = new A();

on line 3, the statement
struct A { double x; }

doesn't have a terminating ; at the end of struct definition.
Fix:
struct A { double x; };

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

ID: adc3f091-d6fa-cb05-fe7d-03394a1d221d
Version Independent ID: 9f3a60fb-d7de-0c82-f84f-9516cc1cb9fa
Content: decltype (C++)
Content Source: docs/cpp/decltype-cpp.md
Product: visual-cpp
Technology: cpp-language
GitHub Login: @TylerMSFT
Microsoft Alias: twhitney

True - fixed. Thanks for taking the time to point that out. The fix will be live by tomorrow.


Using filer with webpack

This pull request includes shims for filers fs and path modules that allow them to be easily used as replacements for the node.js equivalents.
The fs shim ensures that methods on the fs module wait for the filesystem to be ready before being executed so that developers don't have to worry about the intricacies of setting up filer and can use fs much as they would in node.
I've also added shims for the file system providers (default, indexeddb and memory) which essentially re-expose existing code but in a place that makes sense to use as an alias in webpack.
Finally, I've written documentation detailing exactly how to set up your webpack config aliases.
Why? At my company we switched to using filer from BrowserFS in our product. As we have an electron version of our web app (or visa versa?) we want to use the same node.js imports (e.g. import fs from 'fs') for all of our calls to filer when we're running in the web. This is easy for us to do using webpack as we have two different configs for the web and electron. This also gives us typescript on the filer methods! =P
If there's any changes you'd like made or if you have any questions I'd be more than happy to oblige! =)
Love what you're doing here, best fs replacement we've found for the web (and we've been through a few) 👍

Ben, this looks really good. Thanks for taking the time to update the code to work with webpack, and for such an excellent PR.  It's a passion project for a few of us, so it's helpful to have people let us know that it has been useful.
Can I convince you to add some tests for this? It doesn't have to block this PR, if you're willing to do them later, but I'd like to see us get coverage of this new code.
I'll make you a deal: you write the tests and I'll update all our deps and get this updated on npm.

Hi thanks for reviewing this so promptly! You have yourself a deal! =) I will work on adding tests tomorrow. Truth be told, this is my first time doing anything like this PR so I wanted to hold off on writing proper tests for it before I got some feedback =P

Codecov Report

Merging #762 (9c66956) into master (75f2a70) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #762   +/-   ##
=======================================
  Coverage   86.89%   86.89%
=======================================
  Files          16       16
  Lines        1740     1740
=======================================
  Hits         1512     1512
  Misses        228      228

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 75f2a70...986ad37. Read the comment docs.

@humphd I started writing a test for the fs shim but when running the test I'm getting the error ReferenceError: regeneratorRuntime is not defined. The issue seems to be caused by my use of async/await. I have refactored the fsPromises proxy from:
const fsPromises = new Proxy(fsInstance.promises, {   get(target, prop) {     return async (...args) => {       await fsReady;       return await target[prop](...args);     };   }, });
to:
const fsPromises = new Proxy(fsInstance.promises, {   get(target, prop) {     return (...args) => {       return new Promise((resolve) => {         fsReady.then(           () => {             target[prop](...args).then(               (value) => {                 resolve(value);               }             );           }         );       });     };   }, });
This seems to have solved the issue, however the code is a lot less readable now and for that reason I would prefer to keep the original implementation if possible =P
I believe we can solve the problem (without modifying the code) by using babel pre-processing, however I'm by no means an expert in babel or your testing setup so I don't want to go down a rabbit hole without getting your input first!

I think including the extra weight of the regenerator-runtime in the tests is fine, but I'd like to avoid it in the production builds.  Without seeing your code, it sounds like you just need the babel polyfill in the testing environment, is that right?  If so, go ahead.

I think including the extra weight of the regenerator-runtime in the tests is fine, but I'd like to avoid it in the production builds.  Without seeing your code, it sounds like you just need the babel polyfill in the testing environment, is that right?  If so, go ahead.

Yeah I don't think it's necessary in production 👍

@bcheidemann how is your test coming?

@bcheidemann how is your test coming?

Hi @humphd, apologies for the long delay! I have been quite busy at work and haven't had time to update the PR until now. I've now added tests for all of the shims - let me know if these are up to scratch of if you'd like any changes made. I also added a shim for Buffer and documentation on how to use this with third party libraries that do not import/require it 👍
All the best, Ben


"answer" ignored in mocks created with @Mock

From<EMAIL_ADDRESS>on August 04, 2014 06:55:25
What steps will reproduce the problem? The following test case can reproduce the issue:
package au.com.sensis.sitesmart;
import com.day.cq.search.Query;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Answers;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import javax.jcr.Node;
import java.util.Iterator;
@RunWith(PowerMockRunner.class)
@PrepareForTest({Query.class})
public class SampleTest extends AbstractServiceTest {
@Mock(name = "Mock Query", answer = Answers.RETURNS_DEEP_STUBS)
private Query query;

@Mock(name = "Mock Nodes")
private Iterator<Node> queryResult;

@Test
public void deepStubsTest() {
    Mockito.when(query.getResult().getNodes()).thenReturn(queryResult);

    System.out.println(query.getResult().getNodes());
}

} What is the expected output? What do you see instead? Test should pass. What version of the product are you using? On what operating system? PowerMock 1.5.5 with Mockito 1.9.5.
Original issue: http://code.google.com/p/powermock/issues/detail?id=510

From<EMAIL_ADDRESS>on August 24, 2014 23:47:25
Status: Fixed


Broken link in about_CommonParameters

Steps to reproduce
Get-Help Get-Content -Full

Expected behavior

Actual behavior
    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see
        about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). <--- broken

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.17134.165
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.165
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

@Crypt32 Can you repo with latest build PowerShell Core?

I don't have access to PS Core

The repo is for PowerShell Core. For Windows PowerShell please report to UserVoice site.

You also can report to https://github.com/PowerShell/PowerShell-Docs

@Crypt32:
The problem currently affects all cmdlets, it seems, and has already been reported in the docs repo:
https://github.com/PowerShell/PowerShell-Docs/issues/2900
As a  stopgap, you can manually correct the URL and refresh the page - see https://github.com/PowerShell/PowerShell-Docs/issues/2900#issuecomment-422897225
That said, simply googling by cmdlet name may get you there more quickly.
Also - and you may be well aware of that - remember that the quickest way to open an online help page for a cmdlet is to use Get-Help -Online , e.g. Get-Help -Online Get-Content - of course, that's only useful if the link isn't broken.


Unit Test Case for imageStream

Closes RHOAIENG-2146
Description

Unit Test for k8s/imageStream
How Has This Been Tested?

npm run test
Test Impact

Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit tests & storybook for related changes)

If you have UI changes:

[ ] Included any necessary screenshots or gifs if it was a UI change.
[ ] Included tags to the UX team if it was a UI/UX change (find relevant UX in the SMEs section).

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

/retest

/retest

Test files need to go in the __test__ directory co-located with the file being tested.
Please move your test file to src/api/k8s/__tests__/imageStreams.spec.ts

Thanks @christianvogt moved to relevant folder. I apologies for overlook.

/lgtm
/approve


[FEAT] Broader RPi Platform Support

Objective
Add support for RPi3 and RPi5 platforms.
Initial Implementation Requirements

[ ] Pi3 support
[ ] Pi5 Support

Other Considerations
This may require platform-specific kernels

Unstable dependencies for RPi5 are breaking pulseaudio installation. This will need to be refactored to build from sources


Displaying an image while the page is loading

Environment
**Flutter version:v1.17.1
**Plugin version:3.1.0
**Android version:23
iOS version:
**Xcode version:Android Emulator Nexus
Device information:
Description
Hello there,
When the page address changes, I want to show a image until the page loads. Is this possible ? instead of linear progress indicators.

Yes, you can show whatever you want. InAppWebView is just a widget like any other. For example, you could use the Stack widget or the IndexedStack widget to achieve that.


[Frontend] Home Page

(Use the hi-fi designs for each respective component / page on MainWebsite-Documentation.)
Implement the following:

Make all components scaled with screen size (vh, vw), keep them looking similar to hi-fi design on any size (it's ok if row-aligned spills over to column-aligned)
"Apply" button's link is this
You can find all relevant images and backgrounds in "home_images" on MainWebsite-Documentation
Make sure to refer to "Style Guide.png" for which font weights to use for which texts

See design here.
Refer to Style Guide for any formatting.

Mostly done, except for the font weights and font family styling that still need to be fixed (though atm the webpage look very similar to the ho-fi design already)

TODO:

Match font and font size to the design
Need to adjust the image border as necessarily bc currently it's in "em" which is dependant of font size as far as I know
Also need to adjust icon size in the second section
Adjust footer icon size as well.


Update bot-builder-dotnet-quickstart.md

Restoring links to the controller & dialog templates that were present in previous documentation

@brandonh-msft,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

thanks @RobStand. Can you remind me again of the deployment schedule? is it instance once merged to master?


Pre release branch

The idea of Pre-release is to let the project can be tried out before the official release when the project code is
committed to npm with a new version assignment.

This PR obsolete 'dist' branch
Closes #319


I have CPUlator open already, then I install Chrome Extension; Doesn't work until refresh

Prerequisites

[X] This is not a support issue or a question. For support, questions, or comments, visit Byte Lobster Discussions.
[X] I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
[X] I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

[X] refreshing the browser.

Description
Scripts are not loading into webpage, when webpage is active.
Steps to Reproduce

Open CPULator
Install Chrome Extension
Try to use Chrome Extension
Chrome Extension doesn't work.
Refresh Page
Chrome Extension works.

Expected Behavior
Chrome Extension is suppose to work even if the steps are not the best situation.
Actual Behavior
Chrome Extension doesn't work if website is already open before Chrome Extension Install.
Browser Name and Version
Google Chrome <IP_ADDRESS>

#2dcd504 fixes the issue. On initial install, looks through your open chrome tabs and on CPULator website, injects required scripts.


Drag continues when pointer is up

Hello,
I am using useDrag.
So far only been testing on desktop.
I notice quite frequently that if i lift the mouse button (well trackpad non pressed) the drag continues to function.
Further to that this can happen on multiple drag elements where if they get in this state moving pointer from one to another each will still continue their drag without the pointer being down.
I log the state event.down and state.down, and the down is still true in the state so even tho I am handling a "cancel" bassed on state.down it doesnt work because its the down that is getting stuck
console.log('pan-item drag', state.event.type, state.down, state);

result:
pan-item drag pointermove true {hovering: false, scrolling: false, wheeling: false, dragging: true, moving: false, …}

Other info: I have the axis locked to 'x'

In addition to the above I also tried the following:
Added @pointerup="handlePointerUp" to the element
let currentDragState;

function handlePointerUp(e) {
  console.log('pan-item handlePointerUp', e.type, currentDragState);
  if (currentDragState && currentDragState.cancel) {
    console.log('pan-item should cancel drag');
    currentDragState.cancel();
  }
}

useDrag(
  (state) => {
    console.log('pan-item drag', state.event.type, state.down, state);
    currentDragState = state;
    if (state.first) handlePanStart(state);
    else if (state.last | state.canceled) handlePanEnd(state);
    else if (state.down) handlePan(state);
  },
  {
    domTarget: el,
    axis: 'x',
    filterTaps: true,
  }
);

But I only get the logs from handlePointerUp when the drag behaves correctly.
As soon as it gets stuck dragging after the pointer is up the pointerup even isn't even fired, so seems like soming internal to useDrag must even prevent that.
Not that my "fix" is ideal, I would assume it would work if the pointerup actually fired since the docs says you can cance events.
The main point is even the event itself is not running so none of handlePointerUp runs at all.


RuntimeError: tf.placeholder() is not compatible with eager execution

When I run the example command
"python motif_extractor.py experiments/nature_genetics_2008/1000_4/CNN/baseline_classification.json"
the RHSNet reported ”RuntimeError: tf.placeholder() is not compatible with eager execution“


How to use GetFile(string)

How does one use the first example (GetFiles(String))….I try to pass my folder path as string but the 'args' is wanting some information?

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

ID: be5663f7-3d2a-e997-7b92-be71df72f101
Version Independent ID: 111b99c7-202a-c2ec-9a88-ae3cf4836309
Content: Directory.GetFiles Method (System.IO)
Content Source: xml/System.IO/Directory.xml
Product: dotnet-api
GitHub Login: @dotnet-bot
Microsoft Alias: dotnetcontent

As long as you're passing a valid directory path, @lm28, the method should work reliably. For some additional information on file and directory paths, see File path formats on Windows systems. If you are continuing to have difficulty, please let us know the argument that you're passing to the method. In the meantime, since I don't believe that your question points to a problem in the documentation, I'll close this issue.

Hi @rpetrusha I copied the code that was in the article.
I was passing the path (as a string) to the string variable, (as per the the 'File Path Formats on Windows systems' link that you sent to me), but my problem was that VS would not compile/run my solution because it was looking for something to be passed to 'args'?
I'd like to try it again but now I don't know how to find that article again.


Voice typing does not work on Pixel 6

On Pixel 6 pressing the microphone key on Hacker's Keyboard doesn't do anything. A "popup" of the mike key appears, but voice typing does not start.

I simply had to turn on "google voice typing" in the settings and then it worked.


updated ci versions

daily ci job has failed for some time. Updated ci-versions. Now it builds again.

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

Comparison is base (d263be2) 69.65% compared to head (797ff98) 69.58%.

Additional details and impacted files
@@             Coverage Diff             @@
##           rolling     #396      +/-   ##
===========================================
- Coverage    69.65%   69.58%   -0.08%
===========================================
  Files           16       16
  Lines         2762     2762
  Branches       766      766
===========================================
- Hits          1924     1922       -2
- Misses         453      454       +1
- Partials       385      386       +1

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

@mergifyio backport iron


Variable watching is missing some properties on objects returned from ConvertFrom-Json

Which properties/example?

Follow up w/Miguel for more Info.  The Object returned is not showing up.

@HuanhuanSunMSFT I talked w/Miguel, and we wouldn't get a repro -- However, he said you were able to isolate a repro?

Per convo, no repro from Miguel.  He'll reach out if he runs into it again.


getting-started-with-datastore-in-kotlin

Article Checklist
NOTE: (1st time contributors - submit ONLY one article to get familiar with the process, quality, and style-once published, you can then submit any number of articles.)
Preliminary Checks - Formatting and Structure

[X] Does your article follow any of the suggested structure formats? - see example formats
[X] Is your article properly formatted in Markdown? - see Github Markdown guide
[X] Have you used the correct folder and file structure? - see Contribution Guidelines
[X] Is your article over 750 words? - Tool: Wordcounter.net
[X] Have you used our preferred heading structure? - H3 (###) and up
[X] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[X] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[X] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[X] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

Grammar Checks

[X] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[X] Have you checked your article for readability? - Tool: Hemmingway
[X] Have you added sources for quotes and images that aren't yours?

Technical Checks

[X] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution Guidelines
For first-time contributors and for more details, see Contributing Guidelines

This fixes issue #1404

This fixes issue #1404

Hey @paulodhiambo , thank you for reviewing my PR. I`m done correcting the suggested edits.

Hey @paulodhiambo , thank you for reviewing my PR. I`m done correcting the suggested edits.

plagiarism check done

@carolinemusyoka an amazing article on Datastore with Kotlin.

@carolinemusyoka  Great tutorial - seems like a very useful tutorial for the community.
Please review the edits made during the revision process to implement into future articles 👍
cc @paulodhiambo  please do the same to improve format during revisions. 💯


useTick use too many resource

Description
I try to make an animation as following. But it will use too many memory resources to make Chrome crashed.
https://youtu.be/73x6a7oOU98

Steps to reproduce
import React, { useState,useCallback } from 'react';
import { Sprite } from '@inlet/react-pixi';
import { useTick } from '@inlet/react-pixi'
import { Graphics, Container } from '@inlet/react-pixi';
import DOTDATA from './dot.json'
let count =0;
let points: {x: number, y: number} [][] = DOTDATA;
function Hand(){
    const [x, setX] = useState(0);
    const [y, setY] = useState(0);
    const mask = React.useRef(null);
    const draw = useCallback((g) => {
        g.lineStyle(10,0x000000).moveTo(x,y)
        .drawCircle(x,y,10);
            }, [x,y]);
    useTick(delta => {
        count=count+1;
      if ( count < (points[0].length))
        {
         let px:number = points[0][count].x/2;
        let py:number = points[0][count].y/2;
        setX(px);
        setY(py);
        }else if ( count > (points[0].length) &&  (count -points[0].length) <  (points[1].length))
        {
        let px:number = points[1][(count-points[0].length)].x/2;
        let py:number = points[1][(count-points[0].length)].y/2;
        setX(px);
        setY(py);
        }else if ( count >(points[0].length+points[1].length) &&  (count-points[0].length-points[1].length ) < points[2].length )
        {
            let px:number = points[2][(count-points[0].length-points[1].length)].x/2;
            let py:number = points[2][(count-points[0].length-points[1].length)].y/2;
            setX(px);
            setY(py);
    }
      })
    return (
     <Container >
        <Sprite image="./good.jpg" x={0} y={0} width={610/2} height={567/2}   mask={mask.current} />
         <Graphics draw={draw} ref={mask}   />
        <Sprite image="./hand.png" x={x} y={y} width={100} height={120} />
      </Container>
)
}
export default Hand;

Additional info

@inlet/react-pixi version: 6.0.6
React version: 17.0.1
ReactDOM version: 17.0.1
PIXI version: 5.3.7

Can you please share a codepen/codesandbox example with this so I can have a look at it.
useTick uses PIXI's shared ticker, nothing fancy here. I don't know what your DOTDATA looks like, but keep in mind that iterating over each point in a game loop might be expensive. At least that is something I'd look first in order to pinpoint the issue.
I'll close this issue for now as I'm most certain the useTick is not the cause (I use it all the time), if you believe otherwise I'm happy to reopen it.

Can you please share a codepen/codesandbox example with this so I can have a look at it.
useTick uses PIXI's shared ticker, nothing fancy here. I don't know what your DOTDATA looks like, but keep in mind that iterating over each point in a game loop might be expensive. At least that is something I'd look first in order to pinpoint the issue.
I'll close this issue for now as I'm most certain the useTick is not the cause (I use it all the time), if you believe otherwise I'm happy to reopen it.

Thank you for your quick reply.
I have implemented a sample in codepen.
Please take a look.
I am not sure what happened, But I saw a lot of _tick in the call stack.
Could you kindly point me a direction on how to solve this problem?
Thanks.
image of call stack
codepen sample

Thank you for your quick reply.
I have implemented a sample in codepen.
Please take a look.
I am not sure what happened, But I saw a lot of _tick in the call stack.
Could you kindly point me a direction on how to solve this problem?
Thanks.
image of call stack
codepen sample

Although I haven't got much time to dig into your code, I forked it and changed the code a little so it doesn't crash. Now we're updating xy all together in a single call and within a setState callback.
The animation runs but it contains some js errors as you can see in the console.
Hopefully this helps you!
https://codepen.io/inlet/pen/c1a178549e1a24da5bc1a92ab03dc314?editors=1010

Although I haven't got much time to dig into your code, I forked it and changed the code a little so it doesn't crash. Now we're updating xy all together in a single call and within a setState callback.
The animation runs but it contains some js errors as you can see in the console.
Hopefully this helps you!
https://codepen.io/inlet/pen/c1a178549e1a24da5bc1a92ab03dc314?editors=1010

Thank you for your time to dig into my code.  However, since the js error, the code did not run to the crash point. I already correct the js error and the code still crashed as before.
https://codepen.io/toreal/pen/vYXrqGr

Thank you for your time to dig into my code.  However, since the js error, the code did not run to the crash point. I already correct the js error and the code still crashed as before.
https://codepen.io/toreal/pen/vYXrqGr

Sure, you're welcome!
You're right I think I forgot to implement some if-statements from continuing the animation. However, the execution of the code in useTick is responsible for crashing the app. Maybe referring to pointers that are not there?
Just to demo that useTick works as expected, I created a little physics demo (to help someone out on Slack):
https://codepen.io/inlet/pen/da2813628e1a45313154c6ee4e1077e7

Sure, you're welcome!
You're right I think I forgot to implement some if-statements from continuing the animation. However, the execution of the code in useTick is responsible for crashing the app. Maybe referring to pointers that are not there?
Just to demo that useTick works as expected, I created a little physics demo (to help someone out on Slack):
https://codepen.io/inlet/pen/da2813628e1a45313154c6ee4e1077e7

When I use Safari, sometimes it has the chance to finish the animation.  Meanwhile, it will display a lot of memory being used by this program.  Thus, it may not be the null pointer case. I think "useTick" works fine, but the function is fired at a fixed rendering rate. Thus, if we work on many things in this function that will make the system has a lot of unfinished jobs waiting in the queue to confirm.  Do you have any suggestions or other alternative methods that will be better to implement the animation?
Thanks again.

When I use Safari, sometimes it has the chance to finish the animation.  Meanwhile, it will display a lot of memory being used by this program.  Thus, it may not be the null pointer case. I think "useTick" works fine, but the function is fired at a fixed rendering rate. Thus, if we work on many things in this function that will make the system has a lot of unfinished jobs waiting in the queue to confirm.  Do you have any suggestions or other alternative methods that will be better to implement the animation?
Thanks again.

but the function is fired at a fixed rendering rate.

The PIXI.Ticker uses requestAnimationFrame and waits for the browser to render

Thus, if we work on many things in this function that will make the system has a lot

Performance-wise it's always good to keep the logic in the game loop as "cheap" as possible.

Do you have any suggestions or other alternative methods that will be better to implement the animation?

Given the fact that it does run correctly in the first sequence, try to find and debug why it crashes the remaining part of the animation.

but the function is fired at a fixed rendering rate.

The PIXI.Ticker uses requestAnimationFrame and waits for the browser to render

Thus, if we work on many things in this function that will make the system has a lot

Performance-wise it's always good to keep the logic in the game loop as "cheap" as possible.

Do you have any suggestions or other alternative methods that will be better to implement the animation?

Given the fact that it does run correctly in the first sequence, try to find and debug why it crashes the remaining part of the animation.

Thank you for being such an inspiration. I will continue to keep trying.

Thank you for being such an inspiration. I will continue to keep trying.

Thanks and you're most welcome :wink:
Good luck!

Thanks and you're most welcome :wink:
Good luck!


2 New Icons Added

Do Not Disturb - Allow users to set Do Not Disturb ad-hoc (short term, frequent change). Used within CareAware Connect

+1


Retrieve city when esri query returns a city POI

When querying for a city directly (e.g. Washington DC), the current esri result object returns a blank city.
I tested a wide range of cities and determined that the city attribute is blank for esri results with the types 'City', 'State Capital', and 'National Capital'. However the PlaceName attribute contains the correct city name. I believe this is because the city itself is coming back as a POI, so there's not much point in them duplicating the city value.
This change returns the city by looking at the PlaceName attribute if the result is a city POI. I included tests with the three city location types I was able to determine. I couldn't find a list anywhere in esri's docs, but I queried for a lot of cities and only found these three types.
Let me know if you have any feedback, thanks!

Thanks for this, for the sample responses, and the good explanation. Just two things:

What do you think about adding an else in the city method and getting rid of the 'return` statement? I think that would more clearly show the underlying logic (it's either a city or it's not).
What do you think about the method name is_city? instead of result_is_city?. The object is a result, so I don't think we need to reiterate that in the method name.

Sure thing, thanks for the feedback. I'll update the code with those suggestions.

OK, updated with the new method name and if/else.

Looks great! Thanks!


Feature: Support for non-standard CSS properties (using generated vendor prefixes)

Some of the non-standard properties are supported by generating vendor prefixes, e.g., -webkit-font-smoothing, -moz-osx-font-smoothing; while some others are not supported yet, e.g., -webkit-text-stroke.
In order to support features like -webkit-text-stroke, we may either enable keywords transpilation of vendor prefixes, or create corresponding classes for all available non-standard properties. The former may still be a fail-safe solution even if the latter approach is preferred.

text-stroke / text-stroke-width / text-stroke-color had been added to version 1.1.0.
You can typing text-stroke:1;red, text-stroke:1, text-stroke:red... in class to test.
Thanks for taking the time to report back.


Add acknowledgements

The README should have a "Acknowledgement" section, to give credit to the authors of the Mujoco Mengerie and to individual contributors.

Added here


JWT in Elixir/Phoenix

https://medium.com/brightergy-engineering/jwt-authentication-based-api-in-phoenix-6c4b51909b19

GOTO: https://github.com/dwyl/learn-json-web-tokens/issues/104


Allow CC Search to be added to web browsers as a search engine

Is your feature request related to a problem? Please describe.
This is a feature request originally made in https://github.com/creativecommons/creativecommons.org/issues/674 for old Search, moving it here since we're deprecating old Search.
Describe the solution you'd like
You should be able to add CC Search as an in-browser search engine in Chrome, Firefox, and other browsers that support the feature.

I would very much like to work on this issue.

Go ahead!

@kgodey , the only way to achieve this is by requesting visitors to download a software that will change their default search engine the same as Bing and other search engines do.
Do you think people will download and execute your software  ?
I searched for the solution but not able to provide such software, I am just discussing.

@HAMZABoxer98 the intention is not to change the default search engine to CC Search, the intention is to enable CC Search to be added as one of the installed search engines. This is achieved using semantic input field and search button name and value attributes as well as an Open Search XML specification.
References:

StackOverflow
MDN

I'd like to work on this issue (outreachy applicant)

go ahead

Reopening this because #525 doesn't add the build step to copy the opensearch.xml file to the distribution assets directory

I would like to work on this issue (outreachy applicant).

This is already done. Please feel free to look at our other issues to find something that interests you

ok!


Attempting to download a file by writing the buffer from response

I'm attempting to download a file using puppeteer while in headless mode.
Since that does not work, as seen in previous issues, I'm attempting to download the file by getting the buffer data of the response.
My issue is that whenever I try to get the buffer data, I get the following error:

[2017-09-28T22:10:07.009Z] (Network.getResponseBody): No data found for resource with given identifier undefined
at Session._onMessage ....

When I am in headless: false mode, the file downloads just fine.  Is there a reason the response has no buffer?  Is there another way to get the data?  It seems there are 2 responses that occur when I try to download the file and both return this buffer error.
The file I am attempting to download is of content type "text/csv"

Hi @IronCrystal I believe you are getting that error because you are listening for all urls and trying to download from the first one thats caught by the listener. Instead you should do something like only attempt a download from a url that contains .csv extension in it.
I have created and uploaded an example script to do the same here. Do check it out.

@IronCrystal I can't say much about the issue unless there's a snippet that will help me to reproduce the scenario. Please post a specific example so that we'd be able to follow up on this.
Speculatively closing this since @nisrulz might have addressed the issue with his comment.

@IronCrystal
here is my sample of download and save image from response.buffer()
var bufferData = await page.goto('http://bolawow.com/wp-content/uploads/2018/02/fcsm-bilbao-1.jpg');
fs.writeFile("./anu.jpg", await viewSource.buffer(), function(err) {
    if(err) {
        return console.log(err);
    }

    console.log("The file was saved!");
});


Catch exceptions in main()?

I expect that exception handling is usually supported by a C++ program. I wonder why your function “main” does not contain corresponding try and catch instructions so far.
How do you think about recommendations by Matthew Wilson in an article?
Would you like to adjust the implementation if you consider effects for uncaught/unhandled exceptions?

Thanks for your suggestion. I have read the links your mentioned, realizing it would be useful for users to get an error message instead of an exception. I've tried to add some try-catch statements in main(). You are more than welcome to create a pull request it if you find that it can be improved :D

hi elfring: thanks for your input. let us know if you observe other things to improve.


Matching Engine: API to list all Tasklist for a domain

Currently we don't have a good way to list all the tasklist for a domain.  This becomes a problem when we are debugging issues for a particular domain and need to investigate metadata/stats for a tasklist.  We use domain_id, task_list_name, task_list_type as the partition key on tasks table and cannot even discover these by making queries to cassandra.
This is even a bigger issue with sticky tasklist as we can not even them even if the application logically uses a single tasklist for decisions.

Was it implemented?


add multimod diff command

This command checks if there have been any changes for a specific module since a specified version. This will be used to replace the shell scripting in make check-changes in the collector repository.

Looks like a test is failing:
--- FAIL: TestHasChanged (0.23s)
    --- FAIL: TestHasChanged/changes_found,_tag_exists (0.06s)
        diff_test.go:89:
            	Error Trace:	/home/runner/work/opentelemetry-go-build-tools/opentelemetry-go-build-tools/multimod/internal/diff/diff_test.go:89
            	Error:      	Received unexpected error:
            	            	tag not found v0.8.0
            	Test:       	TestHasChanged/changes_found,_tag_exists
FAIL

@codeboten PTAL
https://github.com/open-telemetry/opentelemetry-go-build-tools/blob/56e8a8a3a736e34a90c275b73720f45041faa841/CONTRIBUTING.md#L43-L48
I will try to review this PR in the following days 😉


deps: update go version to fix compiling problems.

fix the compiling issue of "undefined: unsafe.Slice".
according to:
https://github.com/golang/go/issues/55078

fix the compiling issue of "undefined: unsafe.Slice".