KubernetesEndpointResolver only works in Legacy mode for v1.14

Describe the bug

We were on 1.3.0, migrating to 1.14.3 (via YAML).
We use KubernetesEndpointResolver and resolver: endpoint policy: roundrobin in our Mappings to utilize pod IPs in the resulting envoy config vs Kubernetes dns.
With the resolver setup, we managed to get near zero downtime deploys with 1.3.0.
With 1.14.3 we started experiencing 503s during rolling updates to backend services, for up to 10 minutes after the update.

The underlying issue appears to be that the Envoy config being generated is now using "type": "EDS" instead of "type": "STRICT_DNS". I have tracked this down to this conditional: https://github.com/emissary-ingress/emissary/blob/9cdbc6bf3733eef800883f72d05f621be97cec96/python/ambassador/envoy/v2/v2cluster.py#L52-L60
Setting AMBASSADOR_LEGACY_MODE to true on 1.14.3 results in the desired behavior (aligning with the Config.legacy_mode part of the above code).
Expected behavior
Using a KubernetesEndpointResolver does not switch Envoy to EDS without needing to set AMBASSADOR_LEGACY_MODE to true.
Note that the Change log for 1.14.2 states:

Feature: You can now set dns_type in Ambassador Mappings to use Envoy’s logical_dns resolution instead of the default strict_dns.

The behavior we are expereince does not align with this.
Versions (please complete the following information):

Ambassador: 1.14.3
Kubernetes version: 1.22

Additional context
#3897 might be related.

I've been testing v2.2.2 and the issue is worse there as AMBASSADOR_LEGACY_MODE no longer has any effect.
https://github.com/emissary-ingress/emissary/blob/a9b94f457162f8d6fb3ef66bff7b9f89e7ba2d53/python/ambassador/envoy/v2/v2cluster.py#L52-L60
This means that if a KubernetesEndpointResolver is used with v2.2.2 it will always configure Envoy to use EDS mode for service discovery.
EDS mode does not behave well for use during backend service rollouts, and it does not appear to be a supported option according to the emissary docs where only strict_dns and logical_dns are mentioned as options.
Previously we found that an KubernetesEndpointResolver gave us the best results during a backend rollout (i.e. lowest incidents of 503s due to envoy directing to terminated pods).

In 2.4 and 3.2  we made a fix to allow bypassing of EDS for manual endpoint insertion to address 503UH errors related to cert rotation.  Could you let us know if that improved this issue?

We are currently running 2.5 and have abandoned using KubernetesEndpointResolver altogether, so I have no way to test if a fix worked. Feel free to close this if you feel you have addressed the cause.


FIX-#5600: Copy '.dtypes' on 'df.copy()'

Signed-off-by: Dmitry Chigarev<EMAIL_ADDRESS>
What do these changes do?

[x] first commit message and PR title follow format outlined here

NOTE:  If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

[x] passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
[x] passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
[x] signed commit with git commit -s
[x] Resolves #5600
[x] tests added and passing
[x] module layout described at docs/development/architecture.rst is up-to-date

@dchigarev copying occurs regardless of deep parameter, it is better to reflect this in the name of the pull request.

@dchigarev copying occurs regardless of deep parameter, it is better to reflect this in the name of the pull request.

renamed


View: TextField

Doc: https://developer.apple.com/documentation/swiftui/textfield

It is done by @shadowfacts , but should be refactored


Update CEDS emissions for CO in achem

This aligns the CO emissions used by achem to be consistent with the revised version of CEDS that is now being used by GOCART.

Note: this might fail until #273 is in. Weirdly, I thought I had fixed up the CI here. The changelog says I did. Huh.

I'm going to see if I can fix up the CI here.
Also, @acollow, you probably want to make a similar PR to develop here as well so @mmanyin can bring that in to match the updates in GOCART


Docs: Add which option is used by which ArangoBackup operation

Add for which backup operation an option is meant

transfere with an extra e occurs in actual code as well, @kvahed please check


Is access to this index normalized_betas[layer][1][2] correct?

https://github.com/NoamRosenberg/AutoML/blob/new_master/auto_deeplab.py#L236
I think normalized_betas[layer][1][1] correctly.

I agree with you

Yes you are right about this.

@HankKung and @MasatakaShibuya could you please explain about this a little further?
Is the current repo which is doing level8_new = normalized_betas[layer][0][2] * level8_new_1 + normalized_betas[layer][1][2] * level8_new_2 is correct?


New Intel:  [duga]

Name
Jager's ID Badge
Faction
Omega
Season
Season 6
Type of intel
Artifact
Description
No response
Map
duga
Location Coordinates
[182.24077282244167, 240.6875]
Any Other Info
No response

Do you have a description for this one @doof2?


Missing % in localappdata path in ScriptDeveloperTools.md

Step 3 in Get insight into your code with Minecraft script debugging has a path to the development_behaviour_packs which is missing the leading % in %localappdata%

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

ID: 9fd2a345-6330-8634-ab6c-3a2f21964d1e
Version Independent ID: 2aae94eb-162c-433e-9ad5-5236af9bee82
Content: Use Visual Studio Code tools to write script
Content Source: creator/Documents/ScriptDeveloperTools.md
Service: minecraft-bedrock-edition
GitHub Login: @MikeAM
Microsoft Alias: mikeam

Added

Closing this issue. If there is still a problem please let us know!


NullPointerException when proguard is enabled

So I'm getting this error when enabling proguard:
Caused by: java.lang.RuntimeException: javaClass.superclass must not be null
        at na4.z(com.google.android.gms:play-services-mlkit-barcode-scanning@@18.0.0:10)
        at com.devbase.presentation.viewbinding.DevActivity.onCreate(DevActivity.kt:3)
        at android.app.Activity.performCreate(Activity.java:7802)
        at android.app.Activity.performCreate(Activity.java:7791)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)

I deduce because of this.
When proguard is disabled, all is running well.
Thanks in advance.

Hi, not sure if you follow this proguard rule already?

First of all, BindingExtension using refelction a lot to link many things internally in order to provide simple usage. To prevent having trouble with proguard, please remember to exclude ViewBinding related method in your proguard-rules file like this:
-keepclassmembers class * implements androidx.viewbinding.ViewBinding {
public static ** inflate(...);
}

https://github.com/Jintin/BindingExtension#usage

Yes, I have. I included it already in my proguard configuration.

If it works without proguard means there's something in proguard affect the binding process.
May you describe more about your class hierarchy like is DevActivity inherit from BindingActivity directly or what's the different.


Fixed Insufficient buffer size thrown by rendering 3dtiles.

Before repair

After repair

This is the test data. (Data needs to be published independently.)
test_data.zip
This is the test code.
const viewer = new Cesium.Viewer("cesiumContainer");

try {
  const tileset = await Cesium.Cesium3DTileset.fromUrl('http://<IP_ADDRESS>:9092/63b0f42c-c5ef-4874-bbdc-21e9d6e3ee56/tileset.json');
  viewer.scene.primitives.add(tileset);
  viewer.zoomTo(tileset);
} catch (error) {
  console.log(`Error loading tileset: ${error}`);
}

Thanks for the pull request @IKangXu!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.

Thanks for the PR @IKangXu!
@jjhembd Could you please review?

Hi @jjhembd, I have fixed and resubmitted it based on your suggestions.

well done @IKangXu


bflw upgraded to 2.7.0

Coverage decreased (-0.03%) to 93.659% when pulling f6dababbc53fd6853816d4a55cf837adbdd0538f on task/bflw-2.7.0 into 4de6cdfeb6aa1a1a12f25a87bc9db176efa18985 on master.


Compatibility with modtek?

modtek is a modding tool for battle teck. In version 2.0, it used UnityInjector, but now we use Unitydoorstop. After changing to Unity doorstop, both standalone and injector versions do not work, causing conflicts with the game. How do I maintain compatibility with Unitydoorstop?

Unitydoorstop is already used in the BepInEx loader
also MelonLoader
also uses it

XUnity.AutoTranslator is a MOD! which supports various mod loarers
in other words, I want to say that you turned a little (TOTALLY) to the wrong place with a problem


Scroll behaviour adjustments

What have changed:

Adjust maximum scroll speed to make animation completed ~30% faster.

We need to decide what to do with the public function

Will make the method 'internal' help here?

Will make the method 'internal' help here?

Yes. I thought that isn't possible as we use it as a default parameter. But it seems it is possible.

Closing the MR because of upstreaming complications and insignificant improvements of the change.


Do developers feel emotions? an exploratory analysis of emotions in software artifacts

Paper Link:
http://dl.acm.org/citation.cfm?id=2597086
Data Links:

On contacting authors: http://bit.ly/1g1olgq

Remarks:
The authors mined the issue repository of the Apache software foundation. They seem to have used 117 different open source datasets. Must contact authors to obtain data.

Link to the paper: http://flosshub.org/sites/flosshub.org/files/murgia.pdf
Author, email:
Alessandro Murgia<EMAIL_ADDRESS>Parastou Tourani<EMAIL_ADDRESS>Bram Adams<EMAIL_ADDRESS>Marco Ortu<EMAIL_ADDRESS>** Main Objective:

Investigating the impact of human emotions on the productivity of developers.
Building a fully automatic emotion mining tool
** Main Contribution: Verifying the feasibility of an automatic tool for emotion mining in software development artifacts.

**Findings:  Analysis of the Apache Software Foundation issue tracking system shows that developers do express emotions (in particular gratitude, joy and sadness).
**Data:
Analyis of emotions reported in issue reports extracted from open source systems.
==> There no link provided to get the data.


Fix duplicate results on query with EITHER filters

This PR fixes https://github.com/SpineEventEngine/core-java/issues/649.
Google Cloud Datastore does not support OR composite filters so we emulate them by running multiple queries and concatenating the results.
When the query is ambigous i.e. multiple filters from either condition could be matched, we would return the same Entity more than once (one instance per "match").
Now, the results produced by the Datastore lookup will be distinct. There is not much fancier we can do considering multiple Datastore Query limitations.

@armiol PTAL.


Prl 502 international element screen and event

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/PRL-502
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ x] No

closing this PR as it is failing in AKS deploy


Move incremental state to WeakSets

It turns out that the extra props we shove on nodes in incremental parsing are just "did we previously incrementally parse this, if so assert" and "did we make an edit that means we have to reparse", both of which are only ever set to true, so they don't even need to be WeakMaps, they're just write-only WeakSets.

@typescript-bot perf test this
Doubt this will do much of anything though, given we don't really have great perf tests for incremental parsing.

It's a bit of a shame that we don't have any long-running perf tests that make edits. The closest thing here is the crawler which does a few random edits.

@typescript-bot perf test this


kubelet/rkt: Add RunInContainer()/ExecInContainer()/PortForward().

@vmarmol @dchen1107 @jonboulle @bakins
Depends on #7465

Looks good overall, needs a rebase.

Comments addressed, rebased, but I think it will not pass CI due to missing deps #7555

Just rebased @vmarmol

LGTM


test/e2e: add env to skip tests

Added an environment variable to skip 3 tests(ClusterRestore,SelfHosted and BackupStatus) that fail consistently on an AWS cluster. This is for ease of debugging on AWS.
/cc @hongchaodeng @xiang90

LGTM


Add ranks for some crew statistics

Add rankings for the best performance by a crew from each club

most places gained in single day
most placed gained in a single set

The top one (or two or three?) of the best crews from each club are included in the ranking order.  The rank description should list the club, and year/crew number/day number of the selected crew.
Equivalent to the 'Each set outcome' and 'Each day outcome' from the per-club statistics.

Implemented with 14720f607f215e29a297590d363e0b057f8319b5


All messages produced by libmodsecurity are being printed with the "info" level

There is no way to control error log level for messages from libmodsecurity: all messages appear at the "info" level.
Probably there should be a way to set desired log level in nginx configuration.
Perhaps it's also worth to put some important messages, like those produced by "disruptive" actions, at higher level ("warn"?).
UPDATE: elaborating on thoughts of having different log levels for different actions, I'd like to demonstrate how it would look like, with the help of syslog "severities":
       Numerical         Severity
         Code

          0       Emergency: system is unusable
          1       Alert: action must be taken immediately
          2       Critical: critical conditions
          3       Error: error conditions
          4       Warning: warning conditions
          5       Notice: normal but significant condition
          6       Informational: informational messages
          7       Debug: debug-level messages

          Table 2. Syslog Message Severities

From https://tools.ietf.org/html/rfc5424#section-6.2.1
So, in terms of libmodsecurity it may be something like:
action                          severity
rule1 matched some pattern      6
rule2 matched some pattern      6
...
rule3 matched some pattern      6
anomaly score > threshold       5
request is blocked              4
some internal error             3

A "log severity" could be passed as an additional parameter from logger function in libmodsecurity to configured logger callback, where it may be used to determine which log level should be used to log a particular message.
From my understanding, this could be useful for other connectors as well (Apache, IIS, etc).

Thanks @zimmerle - after recent changes to libmodsecurity (v3/master) and nginx connector, disruptive actions are being logged using the "error" level.
However, I've been thinking about this and came to a conclusion that blocking a request in result of applying some preconfigured modsecurity rules is not actually an error: it is something expected.
So I'd like to suggest to use "warn" level for messages about disruptive rules.
Will prepare a PR shortly.


[Doc Improvement] Updating the latest options that are visible in the BigQuery Create credentials setup

Contributions

[X] I have read the contribution docs, and understand what's expected of me.

Link to the page on docs.getdbt.com requiring updates
Git Code Permalink
https://github.com/dbt-labs/docs.getdbt.com/blob/5c40a44b3f5b414be23f813bd108d97dfb38242c/website/docs/quickstarts/bigquery-qs.md?plain=1#L76
Remove the extra line in the Documentation for DBT BigQuery Quickstart
What part(s) of the page would you like to see updated?
DBT BigQuery Quickstart Docs
Link: https://docs.getdbt.com/quickstarts/bigquery?step=4#generate-bigquery-credentials
There is no option referring to No, I’m not using them and click Next in latest Google BigQuery

Additional information
BigQuery

Resolution is to just remove the line from the DBT Bigquery Quickstart documentation

Marking this as closed as the PR was Approved and Deployed.

Marking this as closed as it is approved and Deployed.


A problem with CoreWebView2.DownloadStarting

Hi,
I tried to use CoreWebView2.DownloadStarting in the new update but I got the following error:
System.NotImplementedException: Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental2.
This may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.
For instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.
Or, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.
For more information about WebView2 versioning please visit the following: https://docs.microsoft.com/microsoft-edge/webview2/concepts/versioning ---> System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{84E547A6-2CF7-4966-A44E-3DD10BE69A7F}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

   at Microsoft.Web.WebView2.Core.CoreWebView2.get__nativeICoreWebView2Experimental2()

   --- End of inner exception stack trace ---

   at Microsoft.Web.WebView2.Core.CoreWebView2.get__nativeICoreWebView2Experimental2()

   at Microsoft.Web.WebView2.Core.CoreWebView2.add_DownloadStarting(EventHandler`1 value)

It seems like there's a conflict somewhere but I don't know where. I am using WebView2 version 1.0.865.0.
Could you please help?

Not sure, I'll see what happens here.

It seems OK here, not done exhaustive testing, but changed download file name, and cancelled, both successful.
Check you are using that version WebView2, because I don't think this API is experimental in 1.0.865.0.

As per this page:
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2experimental2?view=webview2-1.0.865-prerelease&preserve-view=true#add_downloadstarting
It's experimental !!
The problem in my case happen when I use this code:
AddHandler WV2.CoreWebView2.DownloadStarting, AddressOf Example_DownloadStarting

This page also says it's experimental.
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2experimental2?view=webview2-1.0.865-prerelease

Fair enough, but It's nothing to do with WVBrowser, it's between WebView2 and your code.

Yes, I know that. I just asked in case you know the solution.
Do you have a working sample code for DownloadStarting API?

@knoami No. Other than to test for this, I haven't tried it yet. It didn't cause any errors.


Add Lace to showcases

Hello! As Lace will be launched on mainnet tomorrow, we'd like to add it to the showcases. Unfortunately, I can't upload an image to the showcase folder as I need to have the 'push' access. @katomm can you please support us with this?

Hi @olgahryniuk ! You don't need right for push to this repo for adding png files. Just add necessary file to your fork/patch and it should work

@olgahryniuk it's actually us who don't have access to your showcase image folder in this PR branch: https://github.com/olgahryniuk/developer-portal/tree/patch-2/src/data/showcase
If we try to upload an file there, we get the same "no push access" error that you get when you try to upload an image into the developer-portal showcase image folder.
Since you own this PR branch, GitHub will allow you to upload your image file at the link above.
But I would highly recommend using the Lace logo by itself rather than this marketing image.  In desktop view, portfolio images are a maximum of 353px wide and so the Lace logo would be tiny... while the logo by itself in that small window would present well.

Thank you for your feedback! I'll ask for a different image and will get back

@rphair & @os11k I have now changed some tags & uploaded an image into my branch. No mainnet launch today though, unfortunately. Can this PR stay open for some time until we know the date, or would you like me to close it?
Thanks!

Based on previous PRs it is more then fine to have them open, until you have all necessary info. What you think @rphair ?

@olgahryniuk @os11k I think leaving it open here will help serve the purpose of preparing the community properly for its release.

Hi, everyone! This was a draft PR, and Lace is not on mainnet yet. Is it merged into production? Please forgive me for not leaving a note. Can we reverse this, please?

it was merged into staging.

Great, noticed that it's not live yet. But I surely had to mention it now!  I'll get back with the details, thanks for your support

@fill-the-fill consider reverting, please.

@katomm it was more-or-less "automatic" because I marked it "ready for review" (https://github.com/cardano-foundation/developer-portal/pull/985#event-8855351950) as soon as @olgahryniuk's changes were submitted to update the product image and description.

@olgahryniuk it's removed from staging now.


Download card improvement

Closes #16 #17 #18

Looks much better!
I'm partially inclined to group together rows with the same "Note". So for the Linux example, the first four rows would be for the downloads that don't have any notes, the next three would be the downloads with the OSDF note, and the last row would be the Server note. Of course, that would mess with the alphabetical ordering of the OS labels, which is why I'm only partially inclined.
On a related note (no pun intended), I'm not sure that "Note" is best label for that column. Maybe "Type" or "Variant"?

Looks much better!
I'm partially inclined to group together rows with the same "Note". So for the Linux example, the first four rows would be for the downloads that don't have any notes, the next three would be the downloads with the OSDF note, and the last row would be the Server note. Of course, that would mess with the alphabetical ordering of the OS labels, which is why I'm only partially inclined.
On a related note (no pun intended), I'm not sure that "Note" is best label for that column. Maybe "Type" or "Variant"?

I'm also unsure about grouping the variants together (or even being able to filter against them) but that's a good idea and I want to know how other folks think of this. For the naming, I like Variant. The naming is always hard!


Error list not updated when file is reopened

Create new Python application
Type something with a syntax error:
print("

See errors appear in error list
Close file, wait for error list to clear
Open file again (from solution explorer)
Result: no errors appear in error list
If you close and reopen solution, then open the file, you'll see errors appear. Close the file and reopen it, no errors!

Hmm... guess we explicitly clear when you close the file, probably to deal with loose files. This likely needs to check whether the file is in the current project and not clear errors.
(When we get to Open Folder, I believe we should only show errors for open files to be consistent with VS Code)


change in CONTRIBUTING.md

Fixes Issue #28

Changes proposed

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] My change requires changes to the documentation.
[x] I have updated the documentation accordingly.
[x] All new and existing tests passed.

Okay I will make the changes


Revert "PyResult<T, E> instead of PyResult"

See https://github.com/RustPython/RustPython/pull/3716#discussion_r875374802

Oh, this is more subtle than that, lemme revert it manually I guess.


jaeger not listening on zipkin port

I'm creating Jaeger all-in-one instance according to the following config:
apiVersion: jaegertracing.io/v1
kind: "Jaeger"
metadata:
  name: "jaeger-aio"
spec:
  strategy: allInOne
  allInOne:
    image: jaegertracing/all-in-one:1.22
    options:
      log-level: trace
      query:
        base-path: /jaeger
    resources:
      limits:
        memory: 256Mi
      requests:
        cpu: 10m
        memory: 256Mi
  storage:
    options:
      memory:
        max-traces: 100000
  ingress:
    enabled: false

I see how it creates a pod and in pod describe I can see environment variable set - COLLECTOR_ZIPKIN_HTTP_PORT:  9411
But for some reason when I check logs I see
{"level":"info","ts":1617923155.6444147,"caller":"server/zipkin.go:48","msg":"Not listening for Zipkin HTTP traffic, port not configured"}

Anything else I should add to configuration to enable zipkin port?
Jaeger operator image - jaegertracing/jaeger-operator:1.21.2

oh found the reason...
if I remove the image: jaegertracing/all-in-one:1.22 it creates pod with image: jaegertracing/all-in-one:1.21.0 and there I get
{"level":"info","ts":1617923747.1050923,"caller":"server/zipkin.go:49","msg":"Listening for Zipkin HTTP traffic","zipkin host-port":":9411"}

From 1.22.0 changelog

--collector.zipkin.http-port is replaced by --collector.zipkin.host-port

So it's my fault. I installed operator from helm chart which has operator version 1.21 and set image to 1.22. Closing the issue

Thanks for the follow-up!


Problem when update child collections with Patching API

Hello,
Using the Patching API to update a snippet of a document, I'm having a problem. We have the following structure on document:
{
  "Id": 1,
  "Questions": [
    {
      "QuestionId": 6,
      "Description": "Question 1",
      "Alternatives": [
        {
          "Index": 1,
          "CorrectAnswer": false,
          "AlternativeId": 26,
          "QuestionId": 6,
          "Description": "Alternative one",
          "Selected": false
        },
        {
          "Index": 2,
          "CorrectAnswer": true,
          "AlternativeId": 27,
          "QuestionId": 6,
          "Description": "Alternative two",
          "Selected": false
        }
      ]
    }
  ]
}

We need to update the snippet: "Selected" of alternative node (Question.Alternatives[x].Selected), using the following code snippet:
 var a = session.Patch<DocGeneratedExam>(x=> x.Id == 1);
 a.Set(x => x.Questions.First(q => q.QuestionId == questionId)
  .Alternatives.First(y => y.AlternativeId == selectedAlternativeId)
  .Selected, true);

Code execution:
"key" : "path"
"value": selectedAlternativeId.AlternativeId.questionId.QuestionId.Questions.Alternatives.Selected

However not able to reach the expected result, the command "apparently" tries insert a new section in the document:
"selectedAlternativeId": {
    "QuestionId ": {
      "questionId": {
        "QuestionId ": {
          "Questions": {
            "Alternatives": {
              "Selected": true
            }
          }
        }
      }
    }
  },
  {
  "Id": 1,
  "Questions": [
    {
      "QuestionId": 6,
      "Description": "Question 1",
      "Alternatives": [
        {
          "Index": 1,
          "CorrectAnswer": false,
          "AlternativeId": 26,
          "QuestionId": 6,
          "Description": "Alternative one",
          "Selected": false
        },
        {
          "Index": 2,
          "CorrectAnswer": true,
          "AlternativeId": 27,
          "QuestionId": 6,
          "Description": "Alternative two",
          "Selected": false
        }
      ]
    }
  ]
}

C# classes:
[DocumentAlias("GeneratedExam")]
public class DocGeneratedExam
{
    public int Id { get; set; }
    public List<Questions> Questions{ get; set; }
 }

public class Question
 {
    public int QuestionId{ get; set; }
    public string Description { get; set; }
    public List<Alternative> Alternatives{ get; set; }
 }

public class Alternative
{
   public int AlternativeId{ get; set; }
   public int QuestiondId{ get; set; }
   public int Index { get; set; }
   public string Description { get; set; }
   public bool CorrectAnswer{ get; set; }
   public bool Selected{ get; set; }
}

What could be happening?

@Igao92 The Patch API doesn't understand the "First()" operator, and it's apparently not good enough to scream at you that it doesn't, that's all. Sorry, but this just isn't supported at the moment. You could use a JS function though.

@jeremydmiller Thanks for the response!
But how to this JS function be used?

See if this helps: http://jasperfx.github.io/marten/documentation/documents/advanced/javascript_transformations/


How to query a shadow DOM?

Background on what a shadow DOM is here. I'm trying to query the shadow DOM parented by #history-app in Chrome under chrome://history/.
When I query #history-app using goquery and check its Children().Nodes, the slice is empty. There are several shadow DOMs below that before I can get to the #time-accessed fields I'm looking for. Trying to query #time-accessed directly, predictably, returns nothing.
Any way I can access these using goquery?
For some background on possible solutions, people seem to be doing this is Javascript / Dart in StackOverflow and in a Github Repo.

I believe the shadow DOM is something that only exists "at runtime" when the page is loaded in a browser, right?

From clicking "View page source", it looks like you are right. I usually develop my goquery calls from the Elements tab where the shadow DOM content actually is available. I've had bad experiences with what at least the chromedp headless browsers does to my Chrome instance and I'm not sure if otto can help me access the shadow DOMs or not. But thank you for the response and pointers to possible solutions.

No problem, good luck and have fun with your project! I'll close for now, but if you find a way to make that work it would be awesome if you could comment back on how you handled it, in case others are facing the same situation (either a comment on this issue or by editing the wiki page).


No reason to honor startswith / endswith when forced to use full_log field

No reason to honor startswith / endswith when forced to use full_log field

Added "handle_full_log_field" def to handle this.


Update cri-dockerd to v0.3.16

A custom change was introduced in rancher/kubernetes#165 (v1.31.2-rancher2) to temporarily address Rancher issue #47698.
The upstream fix has been now merged in Mirantis/cri-dockerd#407. Update rke-tools once cri-dockerd releases version v0.3.16, and remove the custom change from rancher/kubernetes in the next patch release.

Blocked on upstream tagging a new version with this fix in.


Verification tool

Coverage increased (+0.01%) to 56.93% when pulling cd67cffd94b41b6c5e92e2b00747e14ad0aabba7 on Verification-Tool into ac190446e889ce32da9489465c29dacfdba58a1d on master.

Coverage increased (+0.01%) to 56.93% when pulling cd67cffd94b41b6c5e92e2b00747e14ad0aabba7 on Verification-Tool into ac190446e889ce32da9489465c29dacfdba58a1d on master.

Coverage increased (+0.09%) to 57.01% when pulling 482bd56bc6795db9afa0189e864d8cd0d376cfc5 on Verification-Tool into ac190446e889ce32da9489465c29dacfdba58a1d on master.

Coverage increased (+0.09%) to 57.05% when pulling 532565a3d500d9e9ddc841488e7657bff5cbe374 on Verification-Tool into 01c8cd44c1d6c32cf2a0ae1cfa71e7e4a358e9dd on master.

Coverage increased (+0.09%) to 57.05% when pulling 3965f193d638c159f8adaea1657f37759e4229d9 on Verification-Tool into 01c8cd44c1d6c32cf2a0ae1cfa71e7e4a358e9dd on master.

Coverage increased (+0.09%) to 57.05% when pulling 009a22f23e02277b3872fb82f31b9ebcf6941963 on Verification-Tool into 01c8cd44c1d6c32cf2a0ae1cfa71e7e4a358e9dd on master.

Coverage increased (+0.09%) to 57.05% when pulling 2a780833ec540f2eddf119bb2fe2b705a065eda4 on Verification-Tool into 01c8cd44c1d6c32cf2a0ae1cfa71e7e4a358e9dd on master.

Coverage increased (+0.09%) to 57.05% when pulling 2846834ce75890f7d68835909b2728f252ede9e6 on Verification-Tool into 01c8cd44c1d6c32cf2a0ae1cfa71e7e4a358e9dd on master.

Coverage increased (+0.05%) to 57.02% when pulling 38fe1a7b8f1d1ad34b5e823763d1d8b6046f7a15 on Verification-Tool into 01c8cd44c1d6c32cf2a0ae1cfa71e7e4a358e9dd on master.

Coverage increased (+0.05%) to 57.02% when pulling a3fea2b0dbcb5f7d8758d64a063006dfb2527e01 on Verification-Tool into 01c8cd44c1d6c32cf2a0ae1cfa71e7e4a358e9dd on master.

Coverage increased (+0.05%) to 57.02% when pulling d392369f00bf9f405fc316aaaaf68fd87fc4c78a on Verification-Tool into 01c8cd44c1d6c32cf2a0ae1cfa71e7e4a358e9dd on master.

Coverage increased (+0.05%) to 56.76% when pulling e22716800ed685dc9465a6b87915a6468f5e12f4 on Verification-Tool into 6f60cc2d5a94ee3ca526a925bd9ec19e874473c0 on master.

Coverage increased (+0.0%) to 56.71% when pulling 55f4d732e8b04e52d2b41152394faadc7105fee4 on Verification-Tool into 6f60cc2d5a94ee3ca526a925bd9ec19e874473c0 on master.

Coverage increased (+0.0%) to 56.55% when pulling b4a43ec61fb6781fbdb7393ea3e27e2a386d1936 on Verification-Tool into 19a1a6867933e596ed303af954d330f973881310 on master.

Coverage increased (+0.0%) to 56.34% when pulling 6758f11f4db8d42290c3e925a0fb8672625db409 on Verification-Tool into a7e807aa0b4a2a5f3dcc34e397d2c91cdd16dbe6 on master.

Coverage increased (+0.0%) to 56.34% when pulling 3e4da2b7dcdb098fddee7c27c7380450808dd225 on Verification-Tool into a7e807aa0b4a2a5f3dcc34e397d2c91cdd16dbe6 on master.

Coverage increased (+0.0%) to 56.34% when pulling 642dc18e7637a736bf6e30865c3e357ea0a12fcc on Verification-Tool into a7e807aa0b4a2a5f3dcc34e397d2c91cdd16dbe6 on master.


replaced all instances of keizer-auth-api with keizer auth

Changes Needed

Update go.mod file to rename module from keizer-auth-api to keizer-auth
Update all internal import paths to reflect the new module name
Update any CI/CD configurations referencing the old module name
Update documentation and README files

Changes Done
updated all the instances of keizer-auth-api to keizer-auth
-  Updated go.mod file to rename module from keizer-auth-api to keizer-auth
- Updated all internal import paths to reflect the new module name
-  Updated any CI/CD configurations referencing the old module name
- Updated documentation and README files

i think i have replaced all the instances of auth-api to just auth and i guess everything should be fine still if any issues persists let me know , also i dont have any experience with go expect running "main.go" files

i think i have replaced all the instances of auth-api to just auth and i guess everything should be fine still if any issues persists let me know , also i dont have any experience with go expect running "main.go" files

Thanks for the Contribution. can you provide build logs? If it's build's fine LTGM

can you please provide me steps to access build logs, when searching on google it shows this commands
go list -m all

is it correct or do i have to run something else

can you please provide me steps to access build logs, when searching on google it shows this commands
go list -m all

is it correct or do i have to run something else

my bad, I meant screenshot of successful build
make build

i removed package-lock.json and i think readme.md is updated also heres the screenshot

make sure to link issue from next PR, thanks for the contribution
resolves #20

oh mb ill remember from next time thank you!

oh mb ill remember from next time thank you!

there are bunch of good first issue. please do have a chat on the issue thread that you interested to work. so If we any input that you may find useful we will provide you and you will be assigned to it. Thanks

sure thanks


How to avoid empty tag?

Hi, is there a way to avoid this empty tag?

My text separators:
            textSeparators: const [' ', '.', ','],

Its for things like this you want to use the validator function provided.
   if (tag == '') {
       return 'no empty tags';
   }

Yeah, we can do that, but can we prevent the empty tag from being added from the first place? Right now whenever switch to another input, the empty tag is automatically created.

I don't know what that means.
If you did as the above example, the tags shouldn't be added in the first place.
For more, look at the api and how it works.

@minhdanh did you find the solution?

@eyoeldefare please take a look at the image.
I understand the solution with the validator. But I don't want to show any validation for that.
Is that an issue with the trim() method? How do I fix that?


build: Install the git secrets so that the Travis build can pass

Description of changes:
This PR is to preinstall the git secrets and typescript to fix the Travis CI build
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Encountered Throttle

[X] 🐞 Bug
[ ] 🚀 Feature
[ ] 🛠 Task
[ ] 📄 Documentation
Description
In Jenkinsfile pipeline, when running 10 cfnUpdate in parallel stages, encountered below  'Rate exceeded' Throttling AmazonCloudFormationException for 3-4 out of 10 cfnUpdate. When I ran with 7 cfnUpdate in parallel stages, it was successful. Is this a known issue?
Note: if it is because of the rate limiting problem that is mentioned under cfnUpdate section in README.md, I got the same 'Rate exceeded' Throttling exception with pollInterval:0 which is not printing at all or with default pollInterval, which is 1ms.
com.amazonaws.services.cloudformation.model.AmazonCloudFormationException: Rate exceeded (Service: AmazonCloudFormation; Status Code: 400; Error Code: Throttling; Request ID: d0a7a717-af9f-4f54-a356-a84614abd16c)
		at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1712)
		at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1367)
		at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1113)
		at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:770)
		at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:744)
		at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:726)
		at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:686)
		at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:668)
		at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:532)
		at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:512)
		at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.doInvoke(AmazonCloudFormationClient.java:3219)
		at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.invoke(AmazonCloudFormationClient.java:3186)
		at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.invoke(AmazonCloudFormationClient.java:3175)
		at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.executeDescribeStacks(AmazonCloudFormationClient.java:1639)
		at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.describeStacks(AmazonCloudFormationClient.java:1610)
		at com.amazonaws.services.cloudformation.waiters.DescribeStacksFunction.apply(DescribeStacksFunction.java:53)
		at com.amazonaws.services.cloudformation.waiters.DescribeStacksFunction.apply(DescribeStacksFunction.java:24)
		at com.amazonaws.waiters.WaiterExecution.getCurrentState(WaiterExecution.java:102)
		at com.amazonaws.waiters.WaiterExecution.pollResource(WaiterExecution.java:74)
		at com.amazonaws.waiters.WaiterImpl.run(WaiterImpl.java:88)
		at com.amazonaws.waiters.WaiterImpl$1.call(WaiterImpl.java:110)
		at com.amazonaws.waiters.WaiterImpl$1.call(WaiterImpl.java:106)
	Caused: java.util.concurrent.ExecutionException
Caused: java.util.concurrent.ExecutionException
	at org.apache.http.concurrent.BasicFuture.getResult(BasicFuture.java:71)
	at org.apache.http.concurrent.BasicFuture.get(BasicFuture.java:84)
	at de.taimos.pipeline.aws.cloudformation.EventPrinter.waitAndPrintEvents(EventPrinter.java:161)
	at de.taimos.pipeline.aws.cloudformation.EventPrinter.waitAndPrintStackEvents(EventPrinter.java:109)
	at de.taimos.pipeline.aws.cloudformation.CloudFormationStack.create(CloudFormationStack.java:135)
	at de.taimos.pipeline.aws.cloudformation.CFNUpdateStep$Execution.whenStackMissing(CFNUpdateStep.java:110)
	at de.taimos.pipeline.aws.cloudformation.CFNUpdateStep$Execution.whenStackMissing(CFNUpdateStep.java:88)
	at de.taimos.pipeline.aws.cloudformation.AbstractCFNCreateStep$Execution.run(AbstractCFNCreateStep.java:130)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Steps to Reproduce

Create a Jenkins job with Jenkinsfile: declarative stage with 10 parallel stages - each call cfnUpdate. It will call a nested AWS CloudFormation template:, which will create ECS task definition, Target Group, ALB Listener Rule, ECS service nested stacks (ALB Listener already created manually in AWS console).

This is part of the rate-limiting of CFN. The pollInterval option should mitigate this.

Yes, it does not give me this exception with pollInterval: 5000. I was still getting this exception with pollInterval: 3000 and without setting pollInterval, which by default is 1000. But why when I ran with pollInterval: 0, it was still throwing this Rate exceeded throttling exception?

pollInterval: 0 essentially tells it not to wait, so you'll be making a lot of calls and it is expected that AWS will throttle that. The default is to poll every second.
If you keep running into the problem, you can request the limit to be raised on the AWS side. It may or may not be increased.


Parameterized API URLs, App insights, NamedValues environment specific for Creator Tool

Parameterized API URLs, App insights, NamedValues environment specific for Creator Tool

Hi @RupengLiu  @mattetti ,
Please see how am using this CLI tool for automating the generation of ARM templates where I parameterized the namedvalues, app insights, apimname, api urls and list of apis selection based on parameter.
So that with this parameter i can deploy only specific apis and also can create dependency on each api deployment using this parameter that i will generate template only for specifc api and deploy it one by one.
This can be a workaround for this issue: https://github.com/Azure/azure-api-management-devops-resource-kit/issues/340 in creator tool to deploy one api at a time.
Hope this helps someone 👍


Category Creation crashes on fresh install of v1.0.0-BETA1

Bug report
Title
Category Creation crashes on fresh install of v1.0.0-BETA1.
Category Creation crashes on fresh install of v1.0.0-BETA1.
Issue Description
I installed fresh bagisto and did the setup usual way. But when I try to create category, the category is created but web crashes with error
Preconditions
1.v1.0.0-BETA1.

Steps to reproduce
It is important to provide a set of clear steps to reproduce this bug.If relevant please include code samples.
1. Install fresh bagisto v1.0.0-BETA1 (using the normal steps described in the installation guide)
2. Login with admin user
3. Create Category

Expected result
Category should be created without any error.

[Screenshots, logs or description]

Actual result

The page crashes with error.

@iftikharalinaeem
This issue has been fixed in master. Please take a pull


The Bot disconnects instantly without error or something.

Please describe your problem in as much detail as possible:
Further information:

DisTube version: 4.0.3
discord.js version: 12.3.0
Node.js version: 16.16.0
Operating system: Windows

When i do /play command in my bot when the bot joins, instantly leaves the channel without throwing any error!
I use Heroku as Host and it should works good, because i tried the NPM before without problems...

distube v4 supports discord.js v14

DisTube v4 supports discord.js v14 only. Please use the correct version.
If the version is matched, see #220

the bug still in that version, as i'm using heroku, the bug still, even if i removed the node_modules and deleted the package-lock.json. I used the npm ls ffmpeg-static and it returned me (empty). I also installed ffmpeg so. what can i do with it?


Index errors in MPI mode with >1 process.

Running Parcels in MPI mode with mpirun -np x yields the following error whenever x > 1.
 mpirun -np 2 python ~/parcels/parcels/examples/example_stommel.py -p 10

INFO: Generating FieldSet output with basename: stommel
WARNING: Particle initialisation from field can be very slow as it is computed in scipy mode.
Stommel: Advecting 10 particles for 600 days, 0:00:00
WARNING: Particle initialisation from field can be very slow as it is computed in scipy mode.
Stommel: Advecting 10 particles for 600 days, 0:00:00
INFO: Compiled MyParticleAdvectionRK4UpdateP ==> /tmp/parcels-1000/8422a3273ba45be865eb1ae5df6c5f92_0.so
INFO: Compiled MyParticleAdvectionRK4UpdateP ==> /tmp/parcels-1000/8422a3273ba45be865eb1ae5df6c5f92_1.so

Exception ignored in: <bound method ParticleFile.__del__ of <parcels.particlefile.ParticleFile object at 0x7f3e7c4a7e10>>
Traceback (most recent call last):
  File "/home/alexander/parcels/parcels/particlefile.py", line 195, in __del__
    self.close()
  File "/home/alexander/parcels/parcels/particlefile.py", line 200, in close
    self.export()
  File "/home/alexander/parcels/parcels/particlefile.py", line 369, in export
    data = self.read_from_npy(global_file_list, len(self.time_written), var)
  File "/home/alexander/parcels/parcels/particlefile.py", line 328, in read_from_npy
    t_ind_used[t_ind] = 1
IndexError: index 121 is out of bounds for axis 0 with size 121

I am running the latest development version of parcels (git pull from github repo master branch).

Thanks @christensen5, for sending through these files. This really helped with the debugging!
It turns out that the writing of the files goes wrong, not the reading.
See the below snippet, which compares your breaking output to a nonbreaking one (attached here)
import numpy as np

for proc in ['0', '1']:
    breaking = np.load('out-VPQYLGSA/%s/100.npy' %proc, allow_pickle=True).item()
    print('breaking %s' %proc,breaking['id'])

for proc in ['0', '1']:
    nonbreaking = np.load('out-VNNVMAQJ/%s/100.npy' %proc, allow_pickle=True).item()
    print('nonbreaking %s' %proc, nonbreaking['id'])

with output
breaking 0 [0 1 2 3 4 5 6 7 8 9]
breaking 1 [0 1 2 3 4 5 6 7 8 9]
nonbreaking 0 [0 1 2 3 4]
nonbreaking 1 [5 6 7 8 9]

As you see, for some reason both processors write all ten particles in your breaking laptop case, where the expected (nonbreaking) behaviour is that particles 0-4 are run and written by processor 0, and particles 5-9 are run and written by processor 1
So I now suspect that the issue is somewhere with the partitioning of the ParticleSet, in lines https://github.com/OceanParcels/parcels/blob/master/parcels/particleset.py#L106-L125. I can't really dig much further, as I can't replicate the error. But could you check what's going on with your laptop installation of Parcels, and see if indeed both processors run all particles (e.g. by adding a print(pid) after line 122)?
out-VNNVMAQJ.zip

Thanks Erik, this finally allowed me to discover the problem. It appears that while creating a new venv to run MPI Parcels jobs I failed to install scikit-learn.
In (lines 20-24)[https://github.com/OceanParcels/parcels/blob/master/parcels/particleset.py#L20-L24], particleset.py currently attempts to import both MPI and sklearn.cluster.KMeans and sets MPI = None if either package fails to load. Thereupon the rest of the simulation proceeds as normal except without any of the code in lines 98-125 being executed. This means no partitioning is performed and each process runs all particles before encountering the bug I've been struggling with at the end of the run.
This is clearly my fault for having installed without a dependency, but perhaps it would be useful for the except statement in (line 24)[https://github.com/OceanParcels/parcels/blob/master/parcels/particleset.py#L24] to spawn a warning message telling the user that importing MPI and/or scikit-learn has failed, and that the run will continue in single-core mode?

Great that this is sorted out! I have now created PR #729, that throws an error if MPI is installed but sklearn isn't.
What I'm somewhat surprised by, though, is that line 111 did not crash in your setup. Do you have any idea how that could pass?

If I have correctly understood the try/catch block in lines 20-24, then the fact that I did not have sklearn installed meant that the variable MPI was set to None in line 24.
This means that the condition if MPI: in the if-clause in line 98 would not have been met, so none of the subsequent code between lines 98-125 would have been run, including line 111, which otherwise would indeed have crashed.

Yes of course. Good point. Makes sense now! So you were essentially just running parcels twice, with the same ParticleSet on each processor, when you did mpirun -np 2.
Does #729 make sense to you? Do you think that will fix the Issue?

So you were essentially just running parcels twice, with the same ParticleSet on each processor, when you did mpirun -np 2.

Yes I think so, and since Parcels was expecting some partitioning of the ParticleSet to have been done, it failed later on when it had to combine 2x as many .npy files as it had expected.

Does #729 make sense to you? Do you think that will fix the Issue?

Makes perfect sense and I expect it should fix it yes - I can't think of a way the same issue would arise now that we're testing separately for sklearn installation, and stopping the run with an EnvironmentError if it's not installed.


why not use ssim and iou loss which used in BSANet

hi qin, I open this issue to ask why not use ssim and iou loss which used in BASNet?It seems they are effective in BASBet, shown in Ablation Study part. Could you please tell me why you abandon them in U2Net, only use bce loss?


Create "add new product" with barcode support

We need "add new product" functionality, so business owner can add to inventory (or marketplace) to showcase. with search functionality using barcode.

This barcode can be read from react ui in phone, to provide mobility.


Basic tracking

Need to integrate some form of analytics (probably Google) to monitor:

page/view impressions
ICS clicks

Gatsby Google Analytics plugin
https://www.gatsbyjs.org/packages/gatsby-plugin-google-analytics/

Netlify analytics available for $9/mon
https://app.netlify.com/sites/kickofftimestemplate/analytics


Change Etuovi and Oikotie to use releases

The development of Etuovi and Oikotie caused incompatibility in the
development as the specified version pointed into the develop branch
which is under development. This change is also MUST do that we'll be
using the release version in the future releases.

Codecov Report

Merging #84 (3b09d21) into develop (262a001) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop      #84   +/-   ##
========================================
  Coverage    91.39%   91.39%
========================================
  Files           50       50
  Lines         1394     1394
  Branches       118      118
========================================
  Hits          1274     1274
  Misses          96       96
  Partials        24       24

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 262a001...3b09d21. Read the comment docs.


Refs #32061 -- Unified DatabaseClient.runshell() in db backends.

@charettes Thanks for this patch :+1:
I added release notes, added tests for BaseDatabaseClient, moved _dsn() and _connect_string() to the django.db.backends.oracle.utils, and pushed small edits.

Thanks for all of this @felixxm.
I didn't really like how the Oracle changes ended in the first place due to the import avoidance dance of cx_Oracle so if you can get it working without too much pain that'll be nice!

I moved connect_string() to the DatabaseClient on Oracle, it's used only there and this should solve import issues :crossed_fingers:

buildbot, test on oracle.


localhost should be considered a valid domain

Somewhat similar to #40, localhost should be considered a valid domain.
For example:

http://localhost/
or
http://localhost:8080/

However, the following code
twttr.txt.extractUrls("http://localhost/example");

returns [].

Why would we want people Tweeting urls that only work on their own machines? Twitter crawls every url to determine if it is not spam and then shortens it. This sounds like a security issue.
Do you have an example of why this might be needed?

I suppose I wasn't limiting the library to only Twitter, but viewing it as a library one could use in other cases/applications to check the true/complete validity of a URL.
I, of course, use localhost for development, but if this is more of a library to validate a URL that should be publicly available - then localhost shouldn't be added.

Ok I see why you suggested it then.
But this is a twitter-specific library. The question it is authoritatively answering is  - what spans of text in a Tweet would be marked as clickable urls by the official Twitter apps. Twitter already extends http://www.ietf.org/rfc/rfc2396.txt a little -- one example is an underscore in sub-domains. http://a_b.example.com is not a valid url but Twitter added it as an exception just because users kept trying to use it and browsers were all allowing it. The url validator that we use from apache commons is very strict http://answer.techwikihow.com/706260/exactly-does-apache-commons-urlvalidator.html
I was going to point you towards a more generic plain text linkifier that isn't specific to Tweets but I couldn't find anything that was all that good or universal.


VERY Unsecure... executes the virus...

The idea of this tool is ngl pretty good... but you can easily get a virus with Mysterium.
Mysterium will execute the virus just by creating additionnal libraries, but if the file (virus) uses another libs, or works in a different way, your computer could get infected.

Yes, this is totally true, everybody who read the code can see it, that's why I always say in the discord server that it could be dangerous and to use Mysterium for unknown files in a virtual machine.


how to set 'Page' level properties in angular component

Hi! i'm using angular2-seed-advanced, web + mobile with angular+nativescript, i'm trying to set my background sitting under statusbar using opaqueTokens, but somehow it don't work. My code:
Token.ts
import {OpaqueToken} from '@angular/core';
export const PAGE: OpaqueToken = new OpaqueToken('page');

App.ts
nativeScriptBootstrap(NSAppComponent, [
    provide(WindowService, {useClass: WindowNative}),
    provide(PAGE, {useClass: Page}),
    ModalNative,
    provide(HttpService, {useClass: NSHttpService}),
    provide(TranslateLoader, {
        useFactory: () => {
            return new TNSTranslateLoader('assets/i18n');
        }
    }),
    NS_APP_PROVIDERS,
    nsProvideRouter(routes, {enableTracing: false})
]);

myComponent.ts
constructor(@Inject (PAGE) private page:PAGE) {
        if (CoreConfigService.IS_MOBILE_NATIVE) {
            console.log(this.page.ios);
            this.page.actionBarHidden = true;
            this.page.backgroundSpanUnderStatusBar=true;
            this.page.backgroundImage = this.page.ios ? "res://bg_login.jpg" : "res://bg_login";
        }
    }

@vakrilov I had been chatting with @BenevidesLecontes but I am also unsure of how best to modify Page level properties in an angular component?  The OpaqueToken setup is just to allow it to work on web and {N}. so don't be confused by all that above ^. Bottom line: how best to modify Page props within angular components.

I'm not sure if I understand the issue correctly so - correct me if, I'm wrong.
I'm assuming the problem is the code sharing between web and mobile - no Page in web projects.
In this case I would suggest extracting the mobile-specific code in a directive that is only used in the {N} part. You can inject Page directly there as the code will be executed only in {N} context. You won't need the token and you will have typing support for the Page type.
Note: You can inject Page in any component/directive and it will be the page the component/directive will be displayed on.

@vakrilov yes you're right, i'm using <page-router-outlet></page-router-outlet> to load my components, does the same thought apply to that case?

For the actual markup - you will probably have different files for web/mobile as the markup will be different. That said - the error you are getting is not expected - can you share some repo code?

@vakrilov I think the actual issue has gotten clouded by some other things mentioned here. The real question is why this doesn't work:
import {Page} from 'ui/page';
...
constructor(private page:Page) {
            this.page.actionBarHidden = true;
            this.page.backgroundSpanUnderStatusBar=true;
            this.page.backgroundImage = this.page.ios ? "res://bg_login.jpg" : "res://bg_login";
    }

changing props on injected Page appear to have no effect?

Indeed I missed that - will investigate.
Does this happen:

On the first page or after navigation
Android or ios

On both. iOS at least, haven't checked Android.

I was unable to reproduce the behavior. Here is how I tested - the background is changed here as expected.
Can you share some code?

Thank you @vakrilov for taking the time to look. Let's close this and I'll look at this again with him.

Just to conclude, turns out his issue was related to fact that when using an OpaqueToken to build a web/{N} shared codebase, one must provide the PAGE OpaqueToken in the correct way, for instance this works:
import {OpaqueToken} from '@angular/core';
export const PAGE: any = new OpaqueToken('page');
...
nativeScriptBootstrap(AppComponent, [
    provide(PAGE, {
        useFactory: () => {
            const frame = topmost();
            if (frame) {
                return frame.currentPage;
            } else {
                return null;
            }
        }
    })
]);

... then in a component which is also used on the web, one can do this:

@Component({
    selector: 'any-cmp',
    templateUrl: 'any.component.html'
})
export class AnyComponent {

    constructor(@Inject(PAGE) private page:any) {
        if (Config.IS_MOBILE_NATIVE()) {
            this.page.actionBarHidden = true;
            this.page.backgroundSpanUnderStatusBar = true;
            this.page.backgroundImage = 'res://bg_login';
        }
    }

Works wonderfully and ensures that it doesn't break the web 👍

That save me days!

@NathanWalker
This method looks good but I haven't been able to get this to work. Is provide a class I should import or create? Or has the standard changed?


Functions in now dev waste 3 seconds on re-installing

As you can see in the video below, we are spending about 3 seconds on installing dependencies every time you edit a function - we need to resolve this differently:
slow_function_rebuilds_-_Screen_Capture_7-22-19_4.15.02_PM.mp4.zip

More details: https://github.com/zeit/now-cli/issues/2574

I started this in https://github.com/zeit/now-builders/pull/812

@leo Just wanted to leave a note here that now-static-build (e.g. Gatsby) also suffers from this in now dev, not only functions. As I mentioned in https://github.com/zeit/now-builders/pull/812#issuecomment-518584391

I'm still seeing this issue with @now/node, using now v16.7.3 (latest).
Making two requests to my function:

Causes dependencies to reinstall twice:

Code: https://github.com/donmccurdy/msdf-bmfont-web
Should I file a new issue? Or has this fix not rolled out to the latest stable versions yet?

Its not installing, it just says its installing to match the production output.
You'll see additional logging if you add now.json with the following:
{
  "build": {
    "env": {
      "NOW_BUILDER_DEBUG": "1"
    }
  }
}

I see, thanks. Full output from my app:
> Building @now/node@latest:api/create.js
Installing dependencies...
Skipping dependency installation because dev mode is enabled
Install complete [2ms]
Running user script...
Script complete [6ms]
Tracing input files...
Tracing input files: api/create.js
Trace complete [4065ms]
> Built @now/node@latest:api/create.js [9s]

Generation complete!

... that said, 10s is still a long time to wait every time a function is invoked, especially (but not only) when the function hasn't been edited between calls. Is there something I'm doing wrong, or another issue on general now dev performance I can upvote?

@donmccurdy make sure you are not somehow making the requests with a devtool open which sends cache-busting headers ( pragma: no-cache for instance) since that forces a rebuild of the lambda (though the  documentation seems to have moved and I can't find the reference anymore and I never figured out the rationale for idoing a rebuild in the context of @now/node, it could make sense in the context of @now/next)

That's it, thanks! I always develop with dev tools open (this is a requirement for me). I disable the cache in the Network tab based on headaches I've had in past projects, although I guess I can do without that here.
Given the logged output Installing dependencies..., I'd never have guessed the "Disable Cache" option was to blame here... if that behavior needs to remain the default on @now/node, could we consider (a) logging a bit more info, like Built @now/node@latest:api/create.js  because no-cache header was set [9s], or (b) giving an option to disable the no-cache rebuild?

You have no idea how I would like that : our Typescript functions take 30s
to 1min to build :/.
Le mer. 5 févr. 2020 à 18:55, Don McCurdy<EMAIL_ADDRESS>a
écrit :

That's it, thanks! I always develop with dev tools open (this is a
requirement for me). I disable the cache in the Network tab based on
headaches I've had in past projects, although I guess I can do without that
here.
Given the logged output Installing dependencies..., I'd never have
guessed the "Disable Cache" option was to blame here... if that behavior
needs to remain the default on @now/node, could we consider (a) logging a
bit more info, like Built @now/node@latest:api/create.js because no-cache
header was set [9s], or (b) giving an option to disable the no-cache
rebuild?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/zeit/now/issues/2605?email_source=notifications&email_token=AAAFTQYRWPDMU52ONNDPC5DRBL4SJA5CNFSM4IGO4NOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK4LYJI#issuecomment-582532133,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAFTQ6MJ2IQDJHQPEPFDJTRBL4SJANCNFSM4IGO4NOA
.

Note that the "rebuild upon no-cache header" functionality has been removed as of https://github.com/zeit/now/pull/3328.

Glad to hear! I assume that'd be upcoming in now v17?

Correct.


Support for PostgreSQL < 9

While connecting to PostgreSQL 8.4.13 got exception:
Undefined function: 7 ERROR: function string_agg(name, unknown) does not exist

My current workaround:
1. Redefine schemaMap in config
'schemaMap'   => [
    'pgsql' => [
        'class'=>'app\components\Schema'
    ]
],

2. In app\components\Schema change from
select
    (select string_agg(attname,',') attname from pg_attribute where attrelid=ct.conrelid and attnum = any(ct.conkey)) as columns,
    fc.relname as foreign_table_name,
    fns.nspname as foreign_table_schema,
    (select string_agg(attname,',') attname from pg_attribute where attrelid=ct.confrelid and attnum = any(ct.confkey)) as foreign_columns

to
select
    array_to_string((select array_agg(attname) attname from pg_attribute where attrelid=ct.conrelid and attnum = any(ct.conkey)),',') as columns,
    fc.relname as foreign_table_name,
    fns.nspname as foreign_table_schema,
    array_to_string((select array_agg(attname) attname from pg_attribute where attrelid=ct.confrelid and attnum = any(ct.confkey)),',') as foreign_columns

Notes:
I know, that 8.4 is outdated, but sometimes there's no option to upgrade. And I see two possible solutions:

Check version and output notice that PosgreSQL prior to 9.x are not supported
Provide compatibility to 8.x if no contraindications are found in the second part of my solution.

This can be closed, string_agg calls has been removed in commit  4d1ca9ff

thanks!


fix: build resource when adding new env

Description of changes

Build resource first when adding a new env locally when project is git pulled
Add missing await

Issue #9508, if available

Description of how you validated changes

Manually tested
e2e test for same scenario

Checklist

[x] PR description included
[ ] yarn test passes
[x] Tests are changed or added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #10003 (e687fe0) into master (dbf9cf5) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master   #10003   +/-   ##
=======================================
  Coverage   54.08%   54.09%
=======================================
  Files         837      837
  Lines       46340    46339    -1
  Branches     9885     9884    -1
=======================================
  Hits        25065    25065
  Misses      19281    19281
+ Partials     1994     1993    -1

Impacted Files
Coverage Δ

packages/amplify-category-auth/src/index.js
15.97% <0.00%> (+0.05%)
:arrow_up:

...y-provider-awscloudformation/src/initialize-env.ts
22.58% <0.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Nuvola 4.11.x

Nuvola 4.10.x => #427
May 20 - Update X3: Nuvola Adds Three New Scripts: Brain.fm, Focus@Will, and NPR One
June 3 - Update X4

May 20 - Update X3: Nuvola Adds Three New Scripts: Brain.fm, Focus@Will, and NPR One

June 3 - Update X4 Nuvola Adds Pandora Radio, Updates Sound Cloud & Sirius XM

June 17, 2018 - Update X5: Nuvola Adds Qobuz, Updates KEXP Radio and Yandex Music

Closing in favor of #432 (a nice number, btw)


Support more than 10 packages in winget install bulk mode with a single command

Description of the new feature / enhancement
Following support for winget install/uninstall/upgrade bulk mode install of multiple packages within a single command, it seems that there is a hard limit of 10 packages that can be processed at once - just tested it with install on a fresh computer.
It could be great to support an arbitrary count of packages in a single command.
Tested command, ffmpeg won't install as it's the 11th package of the command
doskey winget-multi-install=winget install --disable-interactivity --accept-source-agreements --accept-package-agreements $*

winget-multi-install 7zip.7zip Mozilla.Firefox VideoLAN.VLC OBSProject.OBSStudio Microsoft.VisualStudioCode Microsoft.WindowsTerminal TheDocumentFoundation.LibreOffice SomePythonThings.WingetUIStore GitHub.GitHubDesktop BlenderFoundation.Blender Gyan.FFmpeg

Proposed technical implementation details
This might originate from the batch limitation of 10 args. Could the more than 10 packages be passed as a single arg, for example as a string variable winget install "pkg1 ... pkg15"? Or could some inspiration be taken from this StackOverflow post?

I believe in this case, the issue is the limit of 10 arguments in a batch file.
Have you tried winget export and winget import?
They are a bit more optimized for dealing with a set of packages.
You could fairly easily modify the contents of the JSON file to suit your needs and save some typing.
It might also be worth taking a look at WinGet Configuration which can do considerably more than just install packages.

There is a hard limit to the number of args, but it is actually 128.
I just tried the command you shared and it seems to work correctly for me. It did install only 10 packages, but that was because Windows Terminal was already installed and it got skipped.
What version of winget are you using? Do you see any error in the logs? These can be found with winget --logs

Hey there, not exactly sure what happened, I tested again on another machine the winget install command with >10 packages (~30, out of which 17 did install because the others were already satisfying the latest version). It might indeed have come from an earlier winget version - I don't have access to this machine anymore.
Thanks also for pointing out at WinGet Configuration (looks a bit like ansible winget although not live) and winget import/export, this might indeed be very useful!


(repost)"Failed to read [F:ConvertScmToBin]" when dumping CD

Version
32 bit, AnsiBuild, 20230606T110637
Describe the bug
When dumping Microsoft software CD, DIC says "Failed to read [F:ConvertScmToBin][L:xxxx]", xxxx could be different number each time I dump.
However, the entire dump process can be completed. I'm not sure if this error message has any real impact.
My ODD is Plextor PX-755SA.
Screenshots
cd G ERMSXVOL_EN.bin 72 /d8 /c2 1000 /q /ns /s 2

Disc title
Windows Server 2003 Standard Edition
Disc ringcode
N/A
URL
N/A
Log file
Download Here
Thank you.

DiscImageCreator_test.zip

changed: (Track AA).scm filesize

Thank you very much, I've dumped some CDs, the problem seems has been solved.

DiscImageCreator_test.zip

changed: (Track AA).scm filesize

Sorry to bother you again, I recently meet the same problem again, which shows "Failed to read [F:ConvertScmToBin][L:2444]" when dumping Windows NT Disc.
I noticed that this problem seems to be related to the file size of (Track AA).scm, I've dumped some discs with the newer version of DIC you gave, no problems until just now I had the same problem again. I wonder if this means that the file size of TrackAA.scm needs to be further increased? Thank you so much.

Would you upload all logs and (Track AA).scm?

Would you upload all logs and (Track AA).scm?

Here are the logs, Download
Sorry but TrackAA.scm seems did not be created by DIC during dump.
Thank you.

NTWKS351 (Track AA).zip
Here is TrackAA.scm .

Some changed.
DiscImageCreator_test.zip

Some changed. DiscImageCreator_test.zip

I dumped again and still got the same problem, here are the logs:
Download

DiscImageCreator_test.zip
added log. (not fixed yet) Please upload all logs.

DiscImageCreator_test.zip added log. (not fixed yet) Please upload all logs.

This newest build stops my ODD from responding during the reading process:
Checking SubQ adr (Track)  1/ 1
[F:ReadCDOutOfRange][L:2761] GetLastError: 1117, This request cannot be performed due to an I/O device error.
Please wait for 25000 milliseconds until the device is returned
lpCmd: d8, 00, 00, 03, d8, aa, 00, 00, 00, 02, 02, 00
dwBufSize: 2448
can't read
So only a few files been generated, here are them
nt.zip

This newest build stops my ODD from responding during the reading process:

Sorry. Reuploaded.
DiscImageCreator_test.zip

This newest build stops my ODD from responding during the reading process:

Sorry. Reuploaded. DiscImageCreator_test.zip

The problem seems to be solved temporarily. When I use this latest DIC to dump, the problem of reading failure no longer occurs. I still put the log below, maybe it can help you. Also, I'm going to try dump some other discs and see if the problem still occurs.
logs

Thanks test, but subchannel is still buggy.
fixed: subchannel correction
DiscImageCreator_test.zip

Thank you, I will test to dump some discs. I had previously dumped over a thousand CDs with older versions of DIC, but with the newer version, it looks like maybe I'll have to do the work again. Maybe I should wait until DIC releases a more stable version before starting ：）

it looks like maybe I'll have to do the work again. Maybe I should wait until DIC releases a more stable version before starting

This problem is related to the lead-in/out file (e,g (Track 0).bin or (Track AA).bin)
If you only hope to dump the playable image (e.g. (Track 1).bin etc), no need to redump your a thousand CDs.

When dumping a Hybrid CD (Data and Music on one CD) of Microsoft, I noticed DIC report like this:
Checking SubQ adr (Track) 30/30
Creating (Track AA).bin & .sub (LBA)   291494/  291494
    There is not non-zero byte in the (Track AA)

Creating (Track 00).scm & .sub, (Track 01)(-LBA).scm & .sub (LBA)    -7684/  -10000
Does the  "There is not non-zero byte in the (Track AA)" message mean that any errors occurred?

Does the "There is not non-zero byte in the (Track AA)" message mean that any errors occurred?

No. Generally, lead-out sectors are zeroes, but sometimes non-zero byte exists. If you can use a binary editor, you can check it yourself.

@saramibreak  Again, today when I dump a Windows NT DDK disc, DIC shows info like
[F:ConvertScmToBin][L:2432] GetLastError: 2, system cannot find file specified.
DIC tried five times but all failed to get (Track 01)(-LBA).
Also, there is no C2 errors after dump, but DIC still shows [ERROR] Number of sector(s) where sync(0x00 - 0x0c) is invalid: 2. would this affect bin files it dumped?
Here are the logs and files, wish these would help, thank you :)
logs.zip

DIC tried five times but all failed to get (Track 01)(-LBA).

Reading of the minus lba area depends on the drive cache. Therefore, it may not read well. Currently, there is no way to completely solve the problem, and it can only be repeated until it succeeds.

there is no C2 errors after dump, but DIC still shows [ERROR] Number of sector(s) where sync(0x00 - 0x0c) is invalid: 2. would this affect bin files it dumped?

It seems there is a sync in LBA 134823 and 134824.
LBA[134822, 0x20ea6], MSF[29:59:47], mode 1
LBA[656308, 0xa03b4], MSF[df:4c:58], invalid sync
LBA[656308, 0xa03b4], MSF[df:4c:58], invalid sync
LBA[134825, 0x20ea9], MSF[00:00:00], zero sync (pregap)

But these are audio sector.
LBA[134822, 0x20ea6]: P[00], Q[410102295747002959479925]{ Data,      Copy NG,                  Track[01], Idx[02], RMSF[29:57:47], AMSF[29:59:47]}, RtoW[0, 0, 0, 0]
LBA[134823, 0x20ea7]: P[00], Q[01020000017400295948e241]{Audio, 2ch, Copy NG, Pre-emphasis No, Track[02], Idx[00], RMSF[00:01:74], AMSF[29:59:48]}, RtoW[0, 0, 0, 0]
LBA[134824, 0x20ea8]: P[ff], Q[0102000001730029594995b4]{Audio, 2ch, Copy NG, Pre-emphasis No, Track[02], Idx[00], RMSF[00:01:73], AMSF[29:59:49]}, RtoW[0, 0, 0, 0]
LBA[134825, 0x20ea9]: P[ff], Q[01020000017200295950bcfd]{Audio, 2ch, Copy NG, Pre-emphasis No, Track[02], Idx[00], RMSF[00:01:72], AMSF[29:59:50]}, RtoW[0, 0, 0, 0]

There is no problem.


This repo is cool. Can I translate it to Chinese ?

@nusr Good idea. But currently, I have no answer how to do this in a proper way.

README.md is generated by json, so we can create two json files.
applications.json  <--> applications-zh.json
categories.json <--> categories-zh.json
Even create directory ,that's better.

Yes, but in the future, we will need to add applications and categories in two files. That's not comfortable.

A better way is to add a new field for applications: something like "description-zh".

Yes.It's better.


[master] Automated Bump DC/OS UI v2.149.4

High-level description
What features does this change enable? What bugs does this change fix?
Corresponding DC/OS tickets (required)
Related tickets (optional)

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain.
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

Please update CHANGES.md file (Add or update DC/OS UI line in Notable Changes section of newest version).
* Updated DC/OS UI to [master+v2.149.4](https://github.com/dcos/dcos-ui/releases/tag/master+v2.149.4).

You can edit CHANGES.md directly here: https://github.com/mesosphere/dcos/edit/dcos-ui/bump/2019-10-02-13-01-59/master+v2.149.4/CHANGES.md?pr=%2Fdcos%2Fdcos%2Fpull%2F6342

@mesosphere-mergebot label [Ready for Review]


adjust article template and card block

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix the single card display on an article.
Test URLs:

Before: https://main--24life--hlxsites.hlx.page/snack-attack
After: https://single-card--24life--hlxsites.hlx.page/snack-attack

@rrusher can you please clean this up and merge, as merge conflicts are accumulating and https://github.com/hlxsites/24life/pull/68 depends on this one.


Migrate Github Workflows to Github Actions 2

Github Workflows are going to be deprecated September 30. We need to migrate them and keep the current functionality provided by all the workflows:

Docker Publish Pre-test: this tests that the commit can produce a Docker build and publish Verdaccio to a Verdaccio in-memory.
Release: this steps contains the release process, docker publish and publish verdaccio package to npm

Closed via #1492 and #1493


Fix JSON body for fetch

The fetch API will convert the body parameter to a string before sending the request. For bodies that are JSON, the JSON object will get converted to a string and become [object Object].
This uses JSON.stringify() to convert the object into a JSON string before sending the request.

$ sudo apt-get install -qq --yes python3 php5-curl php5-cli
210E: Unable to locate package php5-curl
211E: Package 'php5-cli' has no installation candidate

Looks like the same error is still present in the installation of php5-cli

@sebastianhaas thanks for the note, this was due to #146, which is now fixed. Rerunning and will look shortly

@pizzafox would you mind rebasing onto master so CI will run the tests?

It looks like the test fixtures for fetch will need to be updated

This broke a bunch of tests where although the JSON was the same data, JSON.stringify wasn't adding in newlines. https://travis-ci.org/Kong/httpsnippet/jobs/602973205#L1495-L1498

Closing this PR in favor of https://github.com/Kong/httpsnippet/pull/179


Create a Virtual Music Festival Site

Description:
We're grooving to the beats. Your task is to design a virtual music festival site with a vibrant and musical design for music lovers.

Difficulty: intermediate
Estimated Time: 5-6 hours

Hi Jayesh,
Hi there! I'm interested in working on this issue. Could you please assign it to me? I believe I can make a valuable contribution to this task.
Looking forward to your response. Thanks!

Hello User,
Thank you for your interest in working on this issue. I've assigned the issue to you, and you can now start working on it. If you have any questions or need any assistance, feel free to ask. Good luck with your contribution!
Best regards,
Jayesh


RuntimeError: Error compiling objects for extension

when python setup.py develop, this error occurred:
File "/root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1163, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1436, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension

Please follow the Error report issue template.

我在运行ttfnet的时候也遇到类似的问题，请问怎么解决
CHECK_CUDA(dets);
^~~~~~~~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1539, in _run_ninja_build
env=env)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/subprocess.py", line 468, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 208, in
zip_safe=False)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/setuptools/command/develop.py", line 136, in install_for_development
self.run_command('build_ext')
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
build_ext.build_extensions(self)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/distutils/command/build_ext.py", line 533, in build_extension
depends=ext.depends)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 500, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1255, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/user/.conda/envs/pytorch_cop/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension


fix for URI change when  tag set

history.replaceState uses an incorrect path when sending in a null url param and using a base tag (https://bugs.chromium.org/p/chromium/issues/detail?id=279278)
To combat, fetch current window.location.href and remove any anchors already set - maybe ugly, but it fixed the issue for me...

Looks like this bug fixed 3 years ago.
According to browser usage table from caniuse db, the coverage of browsers affected by this bug should be approximately less than 1%


Add gcp_client usage to README

Add a simple use case showcasing the gcp_client in the root README.md.

Added example case at the subpack level README with #66


Add visibility property to Schema Builder UI

The schema builder UI has become quite out of date and needs updating.
It should be possible to set visibility property.

The unused schema builder will be removed in Gaffer 2.0. In principle this could be a useful tool, but a fresh start is needed.


Support for material v1

This is the very next component we'll port. :+1:
We'll just wait for material-ui's next beta release which will include input adornments.

Yay<EMAIL_ADDRESS>was published. :tada: Time to port this component…

@stefensuhat Please checkout the first release of the port: npm i --save material-ui-password-field@next and tell me what you think about it! :tada:

it works properly. 👯♂

Update:
Hint text doesn't work. Error text either.

@stefensuhat This component is an Input, it doesn't directly support error and hint texts. I just didn't update the examples yet. Check out the Material-UI TextField examples to see how to combine this component with elements for error text and hint texts.


Python bump to min 3.8

Fixes #46

Min Python version is now 3.8
bumping version
CODEOWNERS: adding in @NikhilJArora, @jdawang and @gladysteh99
dropping requirements.txt

Same thing on the pre-commit config, probably worth taking this chance to upgrade the hooks.

Fixed


Feat: Provider Tests

Title:

Tests for providers to make sure they are OpenAI compliant

Initial idea for this sprung from reading the very descriptive GitHub issue raised by @raulraja https://github.com/Portkey-AI/gateway/issues/116
Motivation: (optional)

Multiple provider's transformers are not OpenAI spec compliant, they fail to transform cases like user message content array

    {
      role: 'user',
      content: [
        {
          type: 'text',
          text: 'Who is the greatest detective',
        },
      ],
    }

Already caught 6 transformers failing from 12 I tested for the two test cases.

Related Issues: (optional)

#116

TO-DO:

[X] Push config file
[For Later] Add flag to test only specific providers
[For Later] GitHub actions

For your review @VisargD  @sk-portkey

@narengogi can you update to main. else lgtm


Language Report - Number of People and Percentage of World Population

Retrieve the number of people who speak certain languages in descending order so this information can be printed out to view.
The countries for this query are as follows: Chinese, English, Hindi, Spanish and Arabic.
The following criteria must be met:

Also show information as a percentage of the world population (e.g 20% speak Spanish)
The README.md file is to be updated with a screenshot showing the result information in the following table layout: ID, Name, Met and Screenshot.

SELECT Language
, SUM(countrylanguage.Percentage * country.Population) as TotalLanguage
,
FROM countrylanguage
JOIN country ON country.Code = countrylanguage.CountryCode
AND countrylanguage.Language in('Chinese', 'English', 'Hindi', 'Spanish', 'Arabic')
JOIN (SELECT SUM(Population) AS Population
FROM country) World
GROUP BY Language
ORDER BY TotalLanguage DESC;

mysql> +----------+----------------+------------+
-> | Language | TotalLanguage  | Percentage |
-> +----------+----------------+------------+
-> | Chinese  |<PHONE_NUMBER>00.0 |   19.60672 |
-> | Hindi    |<PHONE_NUMBER>0.0 |    6.67297 |
-> | Spanish  |<PHONE_NUMBER>0.0 |    5.84050 |
-> | English  |<PHONE_NUMBER>0.0 |    5.70969 |
-> | Arabic   |<PHONE_NUMBER>0.0 |    3.84683 |
-> +----------+----------------+------------+


Tween._inited does not reset if scene is being destroyed or removed inside the game and rebuild

I have written a game using easeljs + preloadjs + soundjs + tweenjs.
The scene order like this:
I used the same canvas for different scene. Promo Scene -> Start Game Scene
Every time finishing the game, the restart button will go to Promo Scene again.
I found that probably(I haven't dig deep enough to find out) I use stage.clear(), stage.removeAllEventListeners() and so on.
The Tween ticker is somehow being removed from the scene.
So, first run, everything is fine, afterward, the Tween does not run unless I set Tween._inited = false before anything start again. Since the big Tween is supposed to be added once as tick function according to the source code logic.
I add this in restart game logic createjs.Tween._inited = false; as workaround.
Since _inited is undocumented due to it is an internal property.
I think it is an issue for restarting everything, in the above situation, but not necessarily a bug.
if (!Tween._inited && createjs.Ticker) {
	console.log("init Tween");
	createjs.Ticker.addEventListener("tick", Tween); Tween._inited = true;
}

I have been dealing with the same issue. This is what happens:

Our game is over, so we destroy everything and call Ticker.reset
All 'tick' event listeners are removed BUT Tween._inited is still true
When we start a new game and try to create a new tween, Tween thinks it's initialized but there is no 'tick' listener on Ticker.

@simongcc has a solution, I have solved by explicitly setting Tween._inited = false when we destroy our game, because registering a new tween automatically adds the 'tick' listener if _inited  is false.
			if (!Tween._inited && createjs.Ticker) { createjs.Ticker.addEventListener("tick", Tween); Tween._inited = true; }
However, setting protected properties like that is not recommended practice. I would humbly request the devs to create a public Tween.reset() or something similar.


Kubone 1.4.x installation fails on Ubuntu 20.04.

What happened?
When we ran kubeone 1.4.12 on fresh ubuntu 20.04 servers.
Installation failed with:
failed to pull image "registry.k8s.io/kube-apiserver:v1.23.15": output: time="2023-02-06T13:14:58Z" level=fatal msg="validate service connection: CRI v1 image API is not implemented for endpoint "unix:///run/containerd/containerd.sock": rpc error: code = Unimplemented desc = unknown service runtime.v1.ImageService"
What KubeOne version are you using?

$ kubeone version
# 1.4.12

Provide your KubeOneCluster manifest here (if applicable)

# paste manifest here

What cloud provider are you running on?
Baremetal
What operating system are you running in your cluster?
20.0.4
Additional information

The lastest cri-tools package is installed during kubeone installation run.
The Problem is that cri-tools 1.26 will colide with containerd 1.5.11. They don't seem to work together.
crictl pods will not work for example.
Solution downgrade the cri-tools to 1.25 and run kubeone again.
Kubone 1.4.* should hold the specific cri-tools version

This is duplicate of #2607. We're still working on fixing this issue for KubeOne v1.4, but we strongly recommend upgrading to v1.5.6. Please follow #2607 for more details.
/close


update exercise 5

consistent formatting
fix links
bit of restructuring

Although there are still a few things to fix up, let's merge this since it advances ex5 (and the other changes) nicely


3.10.5 throws "Maximum update depth exceeded" error

There seems to be an error in 3.10.5 that causes a "Maximum update depth exceeded" error, even in the most basic use case. Here's an example: https://codesandbox.io/s/practical-voice-odzwj?file=/src/App.js.
Downgrading to 3.10.4 fixed the issue, so it appears to be caused by a change in 3.10.5.

You're right. Sorry about that, the 3.10.5 changes have been reverted and 3.10.4 has been rereleased as 3.10.6.


serum zinc level terms

currently we have tissue specific zinc terms but no term for serum zinc levels, we should add terms for abnormal/increased/decreased serum zinc
relates to COVID comorbid - see https://www.medrxiv.org/content/10.1101/2<IP_ADDRESS>08645v1.full.pdf

abnormal circulating zinc level
DEF: any anomaly in the blood concentration of zinc
decreased circulating zinc level
DEF: less than the normal concentration of zinc in the blood
SYN: reduced circulating zinc level
increased circulating zinc level
DEF: greater than the normal concentration of zinc in the blood
SYN: elevated circulating zinc level

Added new terms:
abnormal circulating zinc level MP:0031171
decreased circulating zinc level MP:0031172
increased circulating zinc level MP:0031173


chore: Remove duplicate file in root

Appears to be a copy of devices/surface-hub/surface-hub-2s-port-keypad-overview.md pasted in the root

@AndreaBarr @robmazz The PR that deletes duplicate copy of an article is ready for a quick review. Thanks.

@robmazz can you please review this for merging

@AndreaBarr - taking care of this in a separate PR, thanks for the ping.


Size of Hall of Fame checkbox differ if Logo checkbox is checked or not.

Steps to Reproduce: Collection -> Filter on type
Device (PC/Mac/Linux/iPhone/Android/Other): Windows 10
Web Browser (Chrome/Firefox/Safari/Edge/Brave/Other): Chrome
Other Information:
Image of Bug: https://cdn.discordapp.com/attachments/911166509026541679/957977322437378058/unknown.png

we can just rename "hall of fame" to "hof" in this checkbox dropdown

To build on this bug -
Description: The dropdown by default appears to have both checked, but when you select one to "uncheck" it, it actually checks it and filters out the other one.  Once you start filtering then the check boxes work as expected. In order to view all your cards again though you have to uncheck both boxes, but once all the cards are back it switches to again display both boxes as checked.
Steps to Reproduce: Collection -> Filter on type
Device (PC/Mac/Linux/iPhone/Android/Other): Windows 10
Web Browser (Chrome/Firefox/Safari/Edge/Brave/Other): Chrome
Other Information:
I've attached a video showing the issue because it's easier than using pictures.
https://www.dropbox.com/s/kmypl4zq6es1sy...4.mkv?dl=0
Evan's Comments
I agree that this isn't intuitive and we should probably change the functionality. Shouldn't be too hard to do.

This is fixed


Add delegate functions for user interactions

Hi Team, we're trying to send log file to apptentive only when user submits a message from the messageCenter, is there a way to know the user tapped the send button or a function to know when a new message is sent?

The SDK fires the ApptentiveMessageSentNotification when the user sends a message in Message Center, which should let you do that.

Hi Frankus, thanks for the response, but when we sendAttachment it will trigger that notification again which might not be an ideal notification to listen to, I would be optimal if we can tell it's from a user-initiated event

You should find a ApptentiveSentByUserKey in the notification's userInfo dictionary with a Bool (or NSNumber in Objective-C) indicating if it was user-initiated.
Hopefully that makes it work for you. This should definitely be documented a bit better!

Cool! That will help, thanks


User agent/Request header when used from Emulator

I want to ask about if Instagram will be able to detect that the traffic is coming from an emulator ? what will be the user agent and request header information sent to Instagram endpoints when using emulator ?
What about a real device will there be any difference between manually liking/commenting or using the automation ?

For real devices, there should be no difference. For emulators, the model name/number, imei, WiFi network, etc can all be giveaways that you are using an emulator. Most give you a way to customize this.
But to that point also, people may use emulators too to use instagram. My wife does so she can use instagram more effectively on her computer. Since they’ve spend literally no effort developing a useable desktop interface. :smile:

Going to go ahead and close this. Feel free to reopen if you feel like the issue needs to be discussed further.


Bump up clair to 2.0.3

Please bump this to 2.0.2 at least as RHEL images are not scanned correctly currently. All RHEL based containers are returning a pass when there are known vuln.

Fixed in #5296 , Clair is bumped to 2.0.4, we'll tag another release soon.


Add Smithery CLI Installation Instructions

This PR adds installation instructions to automatically install MCP MongoDB Server for Claude Desktop using Smithery CLI. This makes it easier for users to install the MCP. Also, it adds a badge to show the number of installations from Smithery.

@calclavia thanks for improvement 🚀


Unable to save the model

@tomhosking I am unable to save the checkpoints while training the model. I guess m unable to figure out what should be in the restore path. Can u help me in this regard?

Checkpoints are saved to the location specified by the --model_dir flag, default is ./models. You may need to create this directory?

@tomhosking thanks a lot for the reply. Got it fixed.

Checkpoints are saved to the location specified by the --model_dir flag, default is ./models. You may need to create this directory?


Set the LANG var to support non US-ASCII chars

This it the same as the ruby buildpack.
Ref: https://support.heroku.com/tickets/42300?col=24470182&page=1

Yeah, I've been planning on doing this. I've been holding off though, since there's a chance we'll have some better mechanisms for buildpack-set envs soon.
Glad some else noticed though :)


Update MD file on new branch 2017-25-26_07-11-17

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Code Refactoring for Enhanced Readability and Maintainability in Modu…

-> Used optional chaining for accessing nested properties to avoid potential errors
-> Defined regular expressions and other frequently used values as constants for better readability.
-> Kept the isModule and isModuleMain as inline functions for clarity.

Please don't submit unsolicited refactoring PRs to projects you don't maintain.


Update TxInfo syscall

This change is

Codecov Report

Merging #984 (1c5c090) into main (fb59717) will decrease coverage by 0.58%.
Report is 1 commits behind head on main.
The diff coverage is 26.44%.

@@            Coverage Diff             @@
##             main     #984      +/-   ##
==========================================
- Coverage   67.56%   66.99%   -0.58%
==========================================
  Files          48       48
  Lines        6107     6262     +155
  Branches     6107     6262     +155
==========================================
+ Hits         4126     4195      +69
- Misses       1606     1689      +83
- Partials      375      378       +3

Files
Coverage Δ

...lockifier/src/execution/syscalls/hint_processor.rs
69.34% <26.44%> (-14.26%)
:arrow_down:

... and 1 file with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more