Drop Rebar dependency

Hello, i open this as an issue because i suppose the dependency on the old rebar is due to internal process at Klarna.
Brod already use only rebar3 and kafka_protocol can use rebar3. Is there a reason you are still using both ?
I ask because rebar does not compile nicely on otp23 and this is causing all kind of pain.

As far as I can tell, it should work with either rebar3 or the old rebar. What exactly doesn't work with rebar3? I.e., why do you think it depends on the old rebar?

The problem is that it tells hex that it needs rebar in the metadata, which means that hex crash the build if we do not provide it a rebar install to use. so it would need to drop rebar in the metadata in app.src

Please help me to understand what 'hex crash the build' means.
Do you mean mix the build tool for elixir ?

Yes, basically what happens is that mix use the metadata to check if there is a local rebar installed. We have a local rebar3 but not a local rebar on our CI.
And as there is no rebar installed but kafka_protocol announce it needs it, it automatically try to install it, can't and fail the build

Fine having it removed.
Removing it from metadata should not affect rebar builds (if anyone is still using it).

Can we get a release once that is done ? A point one should work ;) <3

Tagged 3.0.1 and pushed to hex.


Add --no-internet option to debug application.

-i would be the short option, perhaps?

No longer necessary.


QuestionAnswerAdvisor only uses userText for similarity search and does not take parameters into account

Bug description
The QuestionAnswerAdvisor only uses the userText attribute of an AdvisedRequest for the similarity search.
Therefore, the similarity search for this snippet works as expected:
var advise = new PromptTemplate(preferOwnRecipePromptResource).getTemplate();
var advisorSearchRequest = SearchRequest.defaults().withTopK(2).withSimilarityThreshold(0.7);

chatClient.prompt()
                .user("Provide me a recipe with the ingredient potato")
                .advisors(new QuestionAnswerAdvisor(vectorStore, SearchRequest.defaults(), advise))
                .call()
                .entity(Recipe.class);

But for the following snippet, parameters are not taken into account. So the similarity search will be executed with the query "Provide me a recipe with the ingredient {ingredient}".
chatClient.prompt()
                .user(u -> u.text("Provide me a recipe with the ingredient {ingredient}").param("ingredient", "potato"))
                .advisors(new QuestionAnswerAdvisor(vectorStore, SearchRequest.defaults(), advise))
                .call()
                .entity(Recipe.class);

The workaround I use is to create a PromptTemplate with the template and the parameters and use .user(promptTemplate.render()).
In addition, a configured UserMessages will also not be used for similarity search.
chatClient.prompt()
                .messages(promptTemplate.createMessage())
                .advisors(new QuestionAnswerAdvisor(vectorStore, SearchRequest.defaults(), advise))
                .call()
                .entity(Recipe.class);

Environment
Sprin AI version: M1, Java version 21, vector db: redis, AI model: ollama llama3
Steps to reproduce
See sample code in description.
Expected behavior
By using a Consumer to define the user query, the parameters should be taken into account for similarity search. Configured UserMessages should be also used for similarity search.

Hi, we had the same issue in our example in the following lines
Our current workaround is to do:
PromptTemplate promptTemplate = new PromptTemplate(userPrompt);
Prompt prompt = promptTemplate.create(Map.of("question", message));

but if we switch to:
.user(prompt -> prompt.text(this.userPrompt).param("question", message))

then it fails because of what is described in the issue.
Debugging the code, we can see that the DefaultChatClient is rendering the content correctly but no the QuestionAnswerAdvisor.
https://github.com/spring-projects/spring-ai/blob/a55316c44dee87c01c330b90403075996d9acc73/spring-ai-core/src/main/java/org/springframework/ai/chat/client/DefaultChatClient.java#L452


x/build: dragonfly getting stuck on builds

The revert commit a700ae9 fixed a problem that was causing the dragonfly builder to hang forever (instead of failing) when attempting to build anything later than commit e6c1594. Please manually fail commits:

[x] e6c1594 - https://build.golang.org/log/57c6ebe73af7f9ec841f6fd6072b254458a97a1b
[x] 38143ba
[x] b7d3e14
[x] eae5fc8
[x] 969b9d8
[x] 21af0c1

Otherwise, the builder will continue to revisit those commits and hang.

Ok, I've learned how to do this and manually failed those builds now. It should be safe to keep the dragonfly builder running now. Please let me know if there's anything else.
For posterity, I used the approach @bradfitz recommended, which was to hit the /result endpoint of the dashboard (https://build.golang.org) manually with a one-off Go command; I'll clean it up and upstream it if this needs to be done more often. It was based on code in coordinator. The endpoint requires a builder key, which I have access to.
Ideally, we should resolve the underlying issue and make it so that the builder has a timeout and doesn't hang forever on some bad commits.


Cowsay handling Emotes better

This PR relates to Issue #85

I was filled with joy and excitement after returning from camping, eager to check on my beloved /cowsay feature. But my joy quickly turned to despair when I received a devastating message: a bug had crept in, robbing users of the full experience and breaking their immersion with cow based communication. My heart shattered into a million pieces as I worked tirelessly to fix the issue, but to no avail. A sense of frustration and hopelessness washed over me as I encountered yet another bug.
Determined not to give up, I poured my heart and soul into finding the root cause of the problem. Hours turned into minutes as I persevered, and finally, I succeeded. /cowsay was restored to its former glory, and a new feature called /cowthink was added. The feeling of triumph that washed over me was indescribable, knowing that my hard work had paid off in the end. I was filled with a sense of pride and fulfillment, knowing that users could now interact with their beloved cows in new and exciting ways.
Well until the PR gets pushed back with negative review. Anyway, fixed within this PR:

[x] Emotes now should be replaced with :{emote_name}: instead of its ID
[x] Words longer than 40 characters will be broken up and wrapped as expected
[x] The mytical /cowthink command has appeared, functioning the same /cowsay but visually different.

 ______
( Moo? )
 ------
   o
    o
        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/

This looks good to me, but I'll let someone with more experience double check.

Adding new lines brings forth a new issue with character counting. A message of say 495 lots of \n will be of length 990, so will pass the check in line 52. However, this will then produce 4*495 = 1980 characters in the body of the bubble alone. Adding on the characters of the cow, this leads to a message of over 200 messages which causes an error.
Otherwise, it looks good, but again, I'll wait for someone with more experience to double check.

Heya, just a heads-up that we have incoming changes here to our repo's code style that will be royal hell to merge into existing PRs. There's currently no ETA on us merging this; we want to give our extant PRs time to get merged beforehand.
If there's anything I can do to help get your PR merged (testing, reviews, etc) shoot me a ping on discord @#6701

LGTM, will merge later tonight if no-one else has complaints


Sendpoi

Added geocode lookup from OSM to get lat, lon and name

Hey, sorry for not really looking into this PR. Like I wrote before, many thanks for trying out and prototyping this implementation.
I think for this PR to be submitted it would be great if you could implement some changes:

It is not possible anymore to make a cli call with lat, lon or any of the singular address parts from #103. Please create a second command line option (for example sendpoi_from_address) to keep the existing cli argument working.
I was expecting to add a query string (i.e. --address "Street 1, City") but your implementation expects a list --address Street 1, City that needs then to be joined together. Using ' '.join() on a string will add a whitespace between every single letter. I would prefer to enter the address using quotes as this also would be in line with command line options dealing with whitespaces.
When a value is not found in the OSM response, you set it to 'null', i.e. a string. Please set it to None so that the respective values won't be transmitted to the car at all. If you want to shorten your code, e.g. street = g.get("address", {}).get("road") would use python dict's get method, returning None if the respective key is not found.

While the above points are a must for me, please also think about the following suggestions:

When using requests, as mentioned by @swimsystems, the params attribute makes it much clearer to stitch the url together. In the current implementation there is also a doubled URL parameter. Working example: requests.get(url="https://nominatim.openstreetmap.org/", params={"format": "json", "addressdetails": 1, "q": address, "limit": 1}).json()[0]

It would be great to have your idea included, especially as the two other PRs are now merged!
Thanks!

Thanks, I will be traveling for work over the next 2 weeks and it will be hard to look at this. I'm happy if someone else has time to make the Must changes.
The --address argument should accept quotes or no quotes, i.e. "123 main st, city" or 123 main st, city. I can double check when I get back, but I'm 99% sure it does.

Back from my trip and I will find time to work on this in the next week.

Hi
I made updates base on the feedback above.

I added back the sendpoi parser and function and changed my code to sendpoi_from_address.
I've tested sending poi from addresses to my car and it is working well. I also tested using sendpoi and providing lat and lon and that seems to be working as well.

You could enter an address in quotes or not, both work. i.e.
-a  "114520 Camden Ave San Jose"
-a 114520 Camden Ave San Jose
both send the poi to my car

I also change 'null' to None when street etc. is not found. No more 'null' being sent to my car :-)

The url I'm using to call OSM is based on their guidance and seems to work well

Cool, many thanks for the updates!

You could enter an address in quotes or not, both work. i.e.
-a  "114520 Camden Ave San Jose"
-a 114520 Camden Ave San Jose
both send the poi to my car

This does not work for me with Python 3.6 on Windows 10 or Ubuntu (I've added print(type(args.address), args.address) to get some quick debug output):
(bimmer_connected) PS > python -m bimmer_connected.cli sendpoi_from_address EMAIL PW rest_of_world VIN -a 'Zoo Frankfurt'
win32  -  3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)]
<class 'str'> Zoo Frankfurt
<class 'str'> Z+o+o+++F+r+a+n+k+f+u+r+t

(bimmer_connected) PS > python -m bimmer_connected.cli sendpoi_from_address EMAIL PW rest_of_world VIN -a Zoo Frankfurt
usage: cli.py [-h]
              {status,fingerprint,lightflash,image,sendpoi,sendpoi_from_address}
              ...
cli.py: error: unrecognized arguments: Frankfurt

I'd really rather go with the request params implementation, then you wouldn't have to replace spaces with + and all others sorts of conversions would be taken care of:
g = requests.get(
    "https://nominatim.openstreetmap.org",
    params={
        "q": args.address,
        "format": "json",
        "addressdetails": 1,
        "limit": 1,
    },
).json()[0]

Okay, let me try that approach. I'm running arch linux and python 3.8, which may explain why it works for me.

I made the change and ran a couple of tests. It works with quotes (single & double), but without quotes can now get the wrong results such as
-a accrington, united kingdom
'43.1139558 -76.3960453 test None Town of Van Buren 13112 United States'
I will see if I can resolve the above with a request params implementation, but good if someone can test with an older version of python.

Thanks, will test with python 3.6 tomorrow (and probably some others as well).
Regarding the non-quote issue: I suspect the type of args.address is list. So maybe try the following:
        "q": str(args.address),

This should convert a list to a string and if a string comes in, do nothing.
Hope it helps!

Thanks @rikroe, your suggestion triggered an idea. Always making args.address a list solved that issue with no quotes. I just pushed that change.

Well, I'm at a loss. For the love of god cannot reproduce my orignal issue either on Windows or Ubuntu (WSL) with Python 3.6.8 or 3.7.5. So I guess we're good.
Your code works for me now, sorry for the nitpicking which I'm not able to reproduce!

@rikroe, are you trying to repo on the old version of my code or after I made changes to try a support python 3.6?

I was trying it on your new code from 018313d.
But also I wasn't able to reproduce my issues with earlier code snippets - again doesn't matter, it works now :)

From what I recall sys.exit is the recommended way to exit in python. This thread implies the same
https://stackoverflow.com/questions/6501121/difference-between-exit-and-sys-exit-in-python

Thanks for that piece of information! Then we're all good!

Shouldn't this be merged since the previous version?

I have merged SendPOI PR #131, this one can be merged as well, but first the conflicts must be resolved. Haven't done that yet in for 0.7.0 I only added the PRs #148 and #151.

Closing as #164 replaces this functionality.


auto-select on workbench.action.openNextRecentlyUsedEditorInGroup

Is it possible to send an argument or make a setting so that using the named function always selects the first match without confirm?
I want to rebind to another key than Ctrl-tab (leader + key in VSCodeVim to be specific), and when I do it seems that I have to confirm the switch with Enter whenever I use it.

Sorry, but this is not the right place for questions. Please post questions over at StackOverflow: http://stackoverflow.com/questions/tagged/vscode
Thanks for understanding.


Validation and verification of answers to survey questions.

How do we ensure data quality on surveys?
Possible solutions:

Allow questions to be skipped and returned to at a later time, perhaps with a "Skip and come back to later" button.
Before a survey is finalized, make sure all questions are answered. There could be a screen before the report which lists unanswered questions and allows users to jump quickly to the questions they need to answer.
Make the option "Prefer not to answer" available for all questions.
Implement system for data validation to ensure answers are of the correct type and/or range.

Big leftover thing is to make sure all answers have 'Prefer not to answer'. I'll go through each survey and make sure this is available

[ ] About me
[ ] About my family
[ ] Additional information about me
[ ] My health conditions
[ ] My interest in research
[ ] My quality of life
[ ] My risk profile
[ ] My sleep apnea treatment
[ ] My sleep apnea
[ ] My sleep pattern
[ ] My sleep quality


Mail button is not working.

-Mail button on PDF share option is not linked.

Still it is not working in ios device.

It is already there in Build Version <IP_ADDRESS>.


Android-Kotlin : 19.04 Overview of MVC architecture in Android.

Description :scroll:

Give a step-by-step tutorial in Kotlin along with a brief and clear explanation.
Required Documentation or Video or Audio.

Domain of Contribution :bar_chart:

[x] Android Dev (kotlin)

References :

https://www.geeksforgeeks.org/mvc-model-view-controller-architecture-pattern-in-android-with-example/

Please Read it Carefully Before Contributing

The file structure should look like Android_Development_With_Kotlin  -> 19 Architecture -> <file name>.
You have to push your PR to the Android_Development_With_Kotlin branch only.
You can take help to the references but don't simply try to copy it. Just explain in your own word.
Your code should be written only in Kotlin.
This issue is for GWOC'21 contributors only.
You need to push in a single commit. If there exists more than one commit then you need to squash your commits into one commit.
Will assign you on a first come first serve basis.
Please try to complete your assigned task within 7 days. If you need some more time then, please inform mentors and supervisors.
If you have two previously assigned issues on Android-Kotlin pending then please first complete them.

Supervisor @rahulsain

Happy Contributing. Best of Luck.:sparkling_heart:

/assign for audio

@rahulsain, please
unassign me

@rahulsain, please unassign me

You dont wanna work on this issue?

@rahulsain  No, Sorry for the inconvenience.

Hey @rahulsain,
Can i work for documentation?
Will complete it by today itself.
Thanks


ignoreSurroundingSpaces not working - Pyspark

I've given Spark-XML the ignoreSurroundingSpaces option, and the deprecated withIgnoreSurroundingSpaces option, and both fail to strip whitespace.
df = (
spark.read.format("xml")
.options(rowTag="ns:Activity", ignoreNamespace=True, withIgnoreSurroundingSpaces=True)
.load("file.xml")
)

with the xml looking like
<?xml version="1.0" encoding="utf-8"?>
<ns:Extract>
  <ns:Activity>
    <ns:OrgId>   Org    </ns:OrgId>
    <ns:Dep>   DEP  </ns:Dep>
  </ns:Activity>
</ns:Extract>

giving the dataframe
+--------+----------+
|     Dep|     OrgId|
+--------+----------+
|   DEP  |   Org    |
+--------+----------+

with spaces still in it.
I can run a trim on this but i do have nested fields that i would need to do an explode > trim > collectList on.
Looking at the source code it looks like this should do a trim on each cell, so i'm not sure what's going on here. is it an interaction with the ignoreNamespace and rowTag perhaps?

version com.databricks:spark-xml_2.12:0.16.0,io.delta:delta-core_2.12:1.2.1 for reference

The parameter is called ignoreSurroundingSpaces not withIgnoreSurroundingSpaces

I've done both. ignoreSurroundingSpaces doesn't work either.

I can't reproduce that, works as expected for me on your example. Double check and show your actual code that definitely uses ignoreSurroundingSpaces

from pyspark.sql import SparkSession

with open("file.xml", "w") as f:
    f.write("""<?xml version="1.0" encoding="utf-8"?>
<ns:Extract>
  <ns:Activity>
    <ns:OrgId>   Org    </ns:OrgId>
    <ns:Dep>   DEP  </ns:Dep>
  </ns:Activity>
</ns:Extract>""")

spark = SparkSession.builder.config("spark.jars.packages", "com.databricks:spark-xml_2.12:0.16.0").getOrCreate()

df = spark.read.format("xml").options(rowTag="ns:Activity", namespace="ns", ignoreNamespace=True, ignoreSurroundingSpaces=True).load("file.xml")

df.show()

+--------+----------+
|     Dep|     OrgId|
+--------+----------+
|   DEP  |   Org    |
+--------+----------+

ahh, just seen this: https://github.com/databricks/spark-xml/pull/637 are all ignoreSurroundingSpaces methods broken in 0.16.0?

Oh, this is 0.16.0. This was already fixed: https://github.com/databricks/spark-xml/issues/636
Try 0.17.0, that is working

Ahh, i don't think I can upgade our platform. looks like i'll have to keep doing the manual trim until they pull their finger out


Add Jun Boon's photo

closes #22

[ ] file in right location
[ ] file name is as expected
[ ] PR is sent from a fork
[ ] commit messages comply with the Git Conventions.

lgtm


allow override-endpoint to be run non-interactively

When a peer needs its endpoint overridden, and there's a means of running commands on it remotely, it would be useful to be able to set all options on the command line, like with add-peer and rename-peer.

Makes sense! I'll implement this.


Support multi collectionFormat in queryParams by honoring CodeModel's explode

Description
Fixes https://github.com/Azure/autorest.csharp/issues/1230.
According to swagger's QueryParameters behavior outlined https://swagger.io/docs/specification/serialization/, explode will be set to true in the code model, when collectionFormat will be set to multi (as described in OpenAPI-Specification), which should result in a valid multiple query parameters generated as in /users?id=3&id=4&id=5. As mentioned in #1230, current behavior doesn't honor the present explode and incorrectly generates comma-delimitered value within single param: /users?id=3,4,5. Our service (defined at route.json) doesn't unfortunately support the later, and thus results in bad request on multiple such parameters passed:

This PR resolves it with a following codegen change (when explode is set):
from:
uri.AppendQueryDelimited("avoid", avoid, ",", true);

to:
foreach (var param in avoid)
{
     uri.AppendQuery("avoid", param.ToString(), true);
}

Similar update has been recently merged in java sdk at https://github.com/Azure/autorest.java/pull/1161
Checklist
To ensure a quick review and merge, please ensure:

[x] The PR has a understandable title and description explaining the why and what.
[x] The PR is opened in draft if not ready for review yet.

If opened in draft, please allocate sufficient time (24 hours) after moving out of draft for review

[x] The branch is recent enough to not have merge conflicts upon creation.

Ready to Land?

[x] Build is completely green

Submissions with test failures require tracking issue and approval of a CODEOWNER

[ ] At least one +1 review by a CODEOWNER
[ ] All -1 reviews are confirmed resolved by the reviewer

Override/Marking reviews stale must be discussed with CODEOWNERS first

@ambientlight With these changes can we enable this test now?

@AlexanderSher Could you also please take a look at this PR?

@ShivangiReja: done


Benchmark

Extra empthasis on non-benchmark

I see now that unfortunately in the blog we have "Results from Benchmarking Deep Learning Frameworks". Not sure what you guys think about this?


Renaming Error() method to Failed() and status 'Error' to 'Failed'

Consider marking the current IDomainResult.Error() as obsolete and replacing it with new IDomainResult.Failed() (the same for the corresponding DomainOperationStatus). That would better reflect the underlining meaning of the status.

Done in #5.
The old implementation is not marked as obsolete due to a small number of users. The version needs to be bumped to 1.1.0 though.


Is there an Azure SDK for Javascript package to list Azure Service Health?

Unfortunately, I'm only able to find Resource Health package in Azure SDK for Javascript.
Is there a package for Service Health in Azure SDK for Javascript?

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

ID: 2ece45be-921e-665a-ef7a-b21bc0675c8a
Version Independent ID: cc393a6b-eb26-9439-d9d9-36e388539234
Content: Service Health overview - Azure Service Health
Content Source: articles/service-health/service-health-overview.md
Service: service-health
GitHub Login: @stephbaron
Microsoft Alias: stbaron

@kiazhi -
Thank you for your question.
Can you please share with us the URL of the document that you are having issues with?
Please note that we scope issues on this repo to feedback related to the docs. If you have a product question, please post it on Microsoft QnA or Stack Overflow. Thank you for your understanding.

@kiazhi -
Can you please share with us the URL of the document that you are having issues with?
Please note that we scope issues on this repo to feedback related to the docs. If you have a product question, please post it on Microsoft QnA or Stack Overflow. Thank you for your understanding.

@MonikaReddy-MSFT -
Sorry, I am not very sure if this is the correct channel.
But I have been ploughing this documentation for something that I can use to send a GET method for detail information about Service Health like Service Issues or Planned Maintenance documented on Service Health Overview

Service Health events are available via this API, is that what you're looking for: https://docs.microsoft.com/en-us/rest/api/resourcehealth/events/listbysubscriptionid?

@stephbaron  - Thank you for providing your insights.
@kiazhi - - I hope @stephbaron has answered your question.
At this moment, Since there is no doc update required, We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

@stephbaron, that's Resource Health and not actually Service Health issues.
@MonikaReddy-MSFT, it's ok. I think I found what I'm looking for, which is not in the SDK for javascript but will raise the question in that repository instead.

Hey @kiazhi , if you call the events API at the subscription level, it returns Service Health events:

@stephbaron, sorry, my bad... you are correct with the REST API.
Questions:

What is the difference between the one your provided with this https://docs.microsoft.com/en-us/rest/api/resourcehealth/emergingissues/list one?

Anyone know how to perform the same using @azure/arm-resourcehealth package?

Thank you very much to clear my queries. :)

@kiazhi , the emergingissues API will return events that are currently active on the Azure status page (https://status.azure.com). If there are no active events, an empty response is returned.
I don't know the answer to #2, sorry :(


Rebrand Loodse to Kubermatic

Hi there,

Loodse (company) has been rebranded to Kubermatic.

Kubermatic (product) has been rebranded to Kubermatic Kubernetes Platform

The new company logo in SVG format: https://drive.google.com/file/d/1fjcMAU_J20FJu-5OUJCgPPeYEA_yCfRw/view?usp=sharing

Pre-submission checklist:
Please check each of these after submitting your pull request:

[NA ] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[ NA] Is your project closed source or, if it is open source, does your project have at least 300 GitHub stars?
[NA] Have you picked the single best (existing) category for your project?
[ NA] Does it follow the other guidelines from the new entries section?
[ NA] Have you included a URL for your SVG or added it to hosted_logos and referenced it there?
[ NA] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[NA ] Does your project/product name match the text on the logo?
[ x] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[ ] ~15 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

Deploy preview for landscape ready!
Built with commit 5668c046ffe7ccc463aabcf70c4d978395880ec7
https://deploy-preview-1725--landscape.netlify.app

/lgtm

I just realized the product logo needs updating as well: https://drive.google.com/file/d/1Y73nNAI4qkLA3bbf6mmLN7hagjd2Z3s_/view?usp=sharing

Could you please add to your pull request and then LGTM again.

/lgtm


Convention Weekly 6 issue

The convention with the "-ing-" verbs you began has been broken with the 3rd point.

Fixed


Add the filter categories for all Twilio, Twitter and Upbound documentations

Research on each documentation in the Twilio, Twitter and Upbound section to filter them into Company Owned Documentation and Community Owned Documentation
After getting your answer, add the category like this in the README.md file at the front of the documentation wrapped in backticks ``
e.g.

Amazon S3 Docs - Amazon Simple Storage Service (Amazon S3) is storage for the internet. You can use Amazon S3 to store and retrieve any amount of data at any time, from anywhere on the web. - Company Owned Documentation

I'ld love to be assigned to this

@ariyoaresa you can work on this

Solved #114

solved #114


The jekyll example does not render the markdown

The posts in the jekyll are not using any markdown. When adding markdown syntax, the results are not rendered.
For example change the 2012-08-20-first-post.md to
An **interesting** post about how it's going to be different this time around. I'm going write a lot more nowadays and use this blog to improve my writing.

The resulting 2012-08-20-first-post.html has the unprocessed markdown in its body
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>My Blog</title>

First Post

    <time></time>
    An **interesting** post about how it's going to be different this time around. I'm going write a lot more nowadays and use this blog to improve my writing.

This is in fact the same problem i am having with my migration.

We use helpers for markdown, in all versions of assemble. You should be able to use  https://github.com/helpers/helper-md or https://github.com/helpers/helper-markdown for this. I'll add this to the example too in a little bit. Fwiw I think I just ported the example the way it was in metalsmith

I have been trying that (as the code uses the  {{#markdown}} helper within assemble 0.4.42.
I registed my own helper. I have been looking into assemble-core/node_modules/templates/node_modules/load-helpers/index.js to see how i could register the handlebars-helper. Should i use another helper library?


Unable to download songs on windows

Add this as a requirement
C:\Users\Vishnu Kannaujia\Downloads>song -d tere bina
Downloading page https://www.google.co.in/search?q=tere+bina+mr+jatt ..
Downloading page https://mr-jatt.com/album/single-tracks-songs/monty-tere-bina-ygdx.html ..
Downloading in 320 kbps
Downloading file Tere Bina-(Mr-Jatt.com).mp3
'wget' is not recognized as an internal or external command,
operable program or batch file.

Try it on ubuntu...:p.
On May 12, 2017 10:59 PM, "vishnukannaujia"<EMAIL_ADDRESS>wrote:

Add this as a requirement
C:\Users\Vishnu Kannaujia\Downloads>song -d tere bina
Downloading page https://www.google.co.in/search?q=tere+bina+mr+jatt ..
Downloading page https://mr-jatt.com/album/single-tracks-songs/monty-
tere-bina-ygdx.html ..
Downloading in 320 kbps
Downloading file Tere Bina-(Mr-Jatt.com).mp3
'wget' is not recognized as an internal or external command,
operable program or batch file.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ankitmathur3193/song-cli/issues/1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AOevLvSHCE66cb9EWIjDlwiFn7gpAhoAks5r5JcKgaJpZM4NZkZf
.

Now working on windows also..


Playbooks

add itil playbooks.
Use case
playbooks are a document that describe the business process for an item. no technical details are within a playbook, as this are referenced in a playbook step to a runbook (the technical steps).

added 2m of time spent

mentioned in commit bdf40d952e7bb95b9da6e814292bfc11a2b1e82b

marked this issue as related to #10

added 1m of time spent

closing as the KB can achieve this along with categories


More updates

Add back in "<<" regex which disappeared for some reason
Change how Monies Payable table is filled, looks a lot cleaner and there will be no more gaps.
Remove the whitespaces from OCC_RENT_DETAILS

Your Pull Request code is being promoted!  Please follow the link below.
Main Merge Workflow


Supports cmake compilation compatible with v3.13.

Solved the problem that the program cannot be compiled with static onnx library. If your cmake version happens to be 3.25, then you may not have this problem, because this version of cmake adds support for LINUX variables.

Thanks for your contribution!


Process for reporting security bugs

What is the preferred process of the maintainers for reporting security bugs and patches? Can I just do that with Issues/Pull Requests here? Or does that need to be done by email? If by email, who?

I think since there is no public instance of quetz nor any paying customer as of now, it's fine to post security bugs as issue here. Did you find anything?
Otherwise, feel free to email me in private (email is in my github profile)

Just posted #395 . Closing this. Thanks!


problem with windows line breaks

On Windows you have to remove '\r' to make it the same as regular string.
You can't see the difference in ghci but if you make constants in external file you get it.
x = unlines ["a","b"]
y=[r|a
b
|]
then
ghci> x
"a\nb\n"
ghci>y
"a\r\nb\r\n"
This quote is works right for me:
quoteExp = litE . stringL . filter (/= chr 13)

Fixed, fix released on Hackage. Also reported this issue on the GHC bug tracker: https://ghc.haskell.org/trac/ghc/ticket/11215.

Python apparently also normalises line endings in raw string literals.


Implement logic to create an alert banner on ermekeilkarree.de

From within wordpress administration it should be possible to create a post that gets displayed as an alert on the network's front page.

At first, post formats seemed to be the feature to go for. Unfortunately, there is only a fixed set of formats available and none fits our case.
Therefore, we will use a custom post type that we restrict to our needs.

The custom post type "alert" is in place. There are still some minor issues that should be ironed out.


Fix the highlight integration test when highlighting with the keyboard

These tests were failing with Puppeteer 23.9.0.

/botio integrationtest

With this patch and Puppeteer 23.9.0, all the integrations tests are passing locally.
So I'd like to update Puppeteer in order to add some tests for touch screens.

/botio integrationtest

Nice find; thank you for fixing this because this one wasn't obvious to me when debugging it!


added stack implementation using array

Give this repo a star and follow me for follow back 😊

Sure, done!


Feil signatur på AsicE

We are no longer able to send messages due to "Feil signatur på AsicE" error.
Message gets sent successfully
sikkerDigitalPostKlient.send(forsendelse);
but when we try to retrieve the receipt
KvitteringForespoersel kvitteringForespoersel = KvitteringForespoersel.builder(Prioritet.NORMAL).mpcId("XXX").build();
            ForretningsKvittering forretningsKvittering = sikkerDigitalPostKlient.hentKvittering(kvitteringForespoersel);

we get an error that the message hasn't been delivered:
Feil{konversasjonsId=XXXXXX, feiltype=KLIENT, detaljer='Feil signatur på AsicE'}
What might be the cause of this problem? This is in production environment.

Hi
We'll investigate this and get back to you.

@iko3
could you please give us the conversationId used?

For example, this one 96d7234a-5696-4c12-b0fd-eff80e323084

@iko3 This is most likely a configuration problem.
If you contact<EMAIL_ADDRESS>they will help you investigate what the actual problem is.
We'll close this issue for now, but don't hesitate to reopen if it turns out that the problem is in the client library.


Add a new elephpant, purple from PHPCon Poland

Fulfills issue #57

Is the Purple PHPCon elephpant a real, official elephpant?

@MarkBaker See #57

I think we should close this and only add official elephpants to the field guide.

Agreed.


revisit zson scanner and add more comprehensive tests

Since changing the ZSON parser to stream its input, we've run into a couple bugs.  This change was hurriedly put in so we should go back and study the code more completely and write more extensive tests that stress the streaming nature of the zson scanner.

Repro is with zq commit 79b4821.
As part of the TZNG->ZSON test conversions, I'm working with this test:
https://github.com/brimsec/zq/blob/master/ppl/zqd/handlers_test.go#L578-L591
Run manually in its original TZNG form, it gives an error message as expected:
$ cat in.tzng
#0:record[_path:string,ts:time,uid:bstring
0:[conn;1;CBrzd94qfowOqJwCHa;]

$ zq -z in.tzng
in.tzng: format detection error
	tzng: line 1: syntax error parsing type string
...

But if I try to construct similar malformed ZSON variations by dropping bits of input, it silently eats them without error.
$ cat in.zson
{_path:"conn",ts:1970-01-01T00:00:01Z,uid:"CBrzd94qfowOqJwCHa" (bstring)} (=0)

$ zq -z in.zson
{_path:"conn",ts:1970-01-01T00:00:01Z,uid:"CBrzd94qfowOqJwCHa" (bstring)} (=0)

$ cat in1.zson
{_path:"conn",ts:1970-01-01T00:00:01Z,uid:"CBrzd94qfowOqJwCHa" (bstring)} (=0

$ zq -z in1.zson
[no output]

$ echo $?
0

$ cat in2.zson
{_path:"conn",ts:1970-01-01T00:00:01Z,uid:"CBrzd94qfowOqJwCHa" (bstring) (=0)

$ zq -z in2.zson
[no output]

$ echo $?
0

Here's another one from this test:
https://github.com/brimsec/zq/blob/79b4821bf60de2c3671fdfd46e15b83898cbaa35/ppl/zqd/handlers_test.go#L456-L461
Manual run in its original TZNG form:
$ cat in.tzng
#0:record[_path:string,ts:time,uid:bstring]
0:[conn;1;CBrzd94qfowOqJwCHa;]
detectablebutbadline
16:20:39-phil@PhilMac:~/work/newbug$ zq -z in.tzng
in.tzng: line 3: bad format

Attempting a ZSON equivalent, the error message seems particularly specific, since nothing about this input screams "failed attempt at enum" to me.
$ cat in.zson
{_path:"conn",ts:1970-01-01T00:00:01Z,uid:"CBrzd94qfowOqJwCHa" (bstring)} (=0)
detectablebutbadline

$ zq -z in.zson
in.zson: identifier "detectablebutbadline" must be enum and requires decorator

Yes, I agree this is an odd error message and arises from the fact that in the zson parser, the only possible value given the context is an enum, but then it doesn't parse as enum because it doesn't have the required type decorate.  We should fix this somehow...


Scala Hadoop Enrich: add test for currency conversion

We are going to add currency as the last argument to the transaction tracking.

This ticket is about checking that the supplied currency is a valid one...

This is superceded by the work in r63.


SVG from XML: inlineSize in <tspan ...> is ignored because xml parser wraps TSpan in TSpan

Bug
When creating a SVG from xml via:
let xml = `
    <?xml version="1.0" encoding="UTF-8"?>
    <svg viewBox="0 0 800 505">
      <text x="111" y="110" font-size="40">
        <tspan inline-size="50">hello world world world world</tspan>
      </text>
    </svg>`;

    let svg = <SVG.SvgXml xml={xml} />;

The tspan attribute inline-size is ignored.
When using JSX, the linebreak works :
let svg =
<SVG.Svg viewBox="0 0 800 505">
  <SVG.Text x="110" y="110" fontSize="40">
    <SVG.TSpan inlineSize="50">hello world world world world</SVG.TSpan>
  </SVG.Text>
</SV.Svg>;

I traced it back to
https://github.com/software-mansion/react-native-svg/blob/ff18553b71e457e6b439b5c00a93b29d8f8c009a/src/lib/extract/extractText.tsx#L174-L183
...
https://github.com/software-mansion/react-native-svg/blob/ff18553b71e457e6b439b5c00a93b29d8f8c009a/src/lib/extract/extractText.tsx#L139-L145
which wraps text components in a new TSpan, which does not forward the inlineSize.
My workaround is the following diff:
diff --color -r node_modules/react-native-svg/src/lib/extract/extractText.tsx /tmp/react-native-svg/src/lib/extract/extractText.tsx
139c139
< function getChild(child: TextChild) {
---
> function getChild(child: TextChild, inlineSize: NumberProp) {
141c141
<     return <TSpan>{String(child)}</TSpan>;
---
>     return <TSpan inlineSize={inlineSize}>{String(child)}</TSpan>;
177c177
<         <TSpan>{String(children)}</TSpan>
---
>         getChild(children, inlineSize)
180c180
<       Children.map(children, getChild)
---
>       Children.map(children, (child) => getChild(child, inlineSize))

I would probably make sense to detect that the currently processed item is already a TSpan and not to wrap it in another TSpan.

Hello @sschulz-t,
Do you still have that issue?
I couldn't reproduce that. If you still have that issue, please share the example to reproduce that.
Thank you.


plain resume html template

adding a plain html format template, feel free to add any styling in the css file

@ywpark1 Thank you. The template is based off from my own resume format. I don't know if this answers your question.


Incorrect WARNING for escaping function

I have this code:
<?php
    $title = esc_html__( 'Title' , 'my-theme' );`
?>

<?php echo $title; ?>

But I get this error:
WARNING | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$title'.

I have to fix with this code:
<?php
    $title = __( 'Title' , 'my-theme' );`
?>

<?php echo esc_html( $title ); ?>

I think this should be fixed as the first example is much cleaner.

This warning is correct.
The sniffer only checks one line at the time. It does not know what is on the line above.
That is why it is a warning, not an error.
All warnings and errors must be manually checked. The plugin does not replace your own code review.

Also, the second example is the correct one. You should always escape as late as possible. With that in mind, the code would look better like this

<?php esc_html_e( 'Title' , 'my-theme' ); ?>

Also, for themes, there is no requirement to escape translations 🙂

-Unless the translation is inside an attribute.


Update azure-sdk-dotnet-release-notes-2_6.md

Hi @Juliako, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (Juliako). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


Asp.Net 4.6.1 client connecting to IdentityServer4

I am looking for some sample to use asp.net 4.6.1 MVC application to use IdentityServer 4 as client for Authentication .

We have many pre-asp.net core samples here: https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/Clients


TextInput Props

Hi! Is there anyway i can use React Native's TextInput props like selectionColor or onSubmitEditing?

@rfabraga youp! You can pass all React Native's TextInput props


feat(#2374): Add suggestion to test processing elements

Purpose

The current pull request introduces a prototype for unit testing processing elements in the streampipes-processors-filter-jvm module, specifically for the NumericalFilterProcessor.
Proposal

Implemented a basic prototype allowing developers to test processing element configurations.
Used Map<String, Object> for user input and List<Map<String, Object>> for events.
Proposing a discussion on whether to keep the current data type approach for simplicity or consider alternatives.
A static class, ProcessingElementTestExecutor, is suggested to execute the actual tests.

[!IMPORTANT]
This PR is not final; its purpose is to showcase the testing functionality and initiate a discussion on testing options.

If you have any suggestions or opinions on the proposed approach, feel free to share them here.
Remarks

PR introduces (a) breaking change(s): no
PR introduces (a) deprecation(s): no

@tenthe do you have examples of tests or processors that use selector prefix or event schema? Are there any that use multiple prefixes? Trying to understand which processors require something extra for testing

Hi @IsaakKrut,
my suggestion would be that you try to write a test for another processor with this "new" API.
And then, based on this experience, we discuss and try to design the API and the implementation for the "ProcessingElementTestExecutor" together.
What do you think of this idea?
I think the biggest challenge will be to handle all the different types of static properties that a user can enter to configure the processor. I think one or two more sample tests would help to get a better understanding of what the best solution should look like.
Cheers,
Philipp

Hi @tenthe @IsaakKrut,
I would love to contribute to this effort. I have already migrated the classes stated in #2538 to JUnit 5, I am quite unclear on what needs to be done for my work to integrate into this effort.
Thanks, Pambrocio

Hi @pambrocio,
thanks a lot for your PRs. I do not have much time this week, I'll have a detailed look at them next week.
Cheers,
Philipp

Hi @IsaakKrut,
I have fixed the problem with the cyclic dependencies. I also fixed the checkstyle issues.
Is it possible for you to extract the TestConfigurationBuilder into an own file?
@pambrocio, I suggest that we clean up this branch and then merge it into dev.
Based on these changes, you can customize your PRs as the API should now be cleaner.
And we can then use your feedback to further improve the testing API for processors.
Is that ok for you?
Cheers,
Philipp


Typo backback > backpack

Woow, how could we have missed that? Thank you, @PinguimN , just merged it.
Cheers to you!


WHERE function, problems with memory operations?

I am facing with the where-functionality in xarray. I have two datasets
ref =
array([[14.82, 14.94,   nan, ..., 16.21, 16.24,   nan],
       [14.52, 14.97,   nan, ..., 16.32, 16.34,   nan],
       [15.72, 16.09,   nan, ..., 17.38, 17.44,   nan],
       ...,
       [ 6.55,  6.34,   nan, ...,  6.67,  6.6 ,   nan],
       [ 8.76,  9.12,   nan, ...,  9.07,  9.52,   nan],
       [ 8.15,  8.97,   nan, ...,  9.65,  9.52,   nan]], dtype=float32)
Coordinates:
  * height_WSS  (height_WSS) float32 40.3 50.3 60.3 70.3 80.3 90.3 101.2 105.0
    lat         float32 54.01472
    lon         float32 6.5875
  * time        (time) datetime64[ns] 2006-10-31T00:10:00 ... 2006-11-03T23:10:00
Attributes:
    standard_name:  wind_speed
    long_name:      wind speed
    units:          m s-1
    cell_methods:   time: mean
    comment:        direction of the boom holding the measurement devices: 41...
    sensor:         cup anemometer
    sensor_type:    Vector Instruments Windspeed Ltd. A100LK/PC3/WR
    accuracy:       0.1 m s-1

and
proof=
<xarray.DataArray 'WSS' (time: 96, height_WSS: 8)>
array([[13.395692, 13.653825, 13.911958, ..., 14.511758, 14.703774, 14.770716],
       [14.740592, 15.010887, 15.281183, ..., 15.866542, 16.045753, 16.10823 ],
       [15.241853, 15.523318, 15.804785, ..., 16.417458, 16.605673, 16.67129 ],
       ...,
       [ 8.254081,  8.309716,  8.365352, ...,  8.46401 ,  8.489728,  8.498694],
       [ 9.83241 ,  9.895019,  9.957627, ..., 10.055538, 10.077768, 10.085519],
       [ 8.772054,  8.849378,  8.926702, ...,  9.065577,  9.102219,  9.114992]],
      dtype=float32)
Coordinates:
  * time        (time) datetime64[ns] 2006-10-31T00:10:00 ... 2006-11-03T23:10:00
    lon         float32 6.5875
    lat         float32 54.01472
  * height_WSS  (height_WSS) float32 40.3 50.3 60.3 70.3 80.3 90.3 101.2 105.0
Attributes:
    standard_name:  wind_speed
    long_name:      wind speed
    units:          m s-1

Applying something like this:
DSproof = proof["WSS"].where(ref["WSS"].notnull()).to_dataset(name="WSS")

gives me a dataarray of time length zero:
<xarray.Dataset>
Dimensions:     (height_WSS: 8, time: 0)
Coordinates:
  * time        (time) datetime64[ns]
    lon         float32 6.5875
    lat         float32 54.01472
  * height_WSS  (height_WSS) float32 40.3 50.3 60.3 70.3 80.3 90.3 101.2 105.0
Data variables:
    WSS         (time, height_WSS) float32

Problem description
The problem seems to be that 'ref' and 'proof' are not entirely consistent somehow regarding coordinates. But if a subtract the coordinates from each other I do not get a difference. However, as I always fight with getting datasets consistent to each other for mathematical calculations with xarray, I have figured out following workarounds:

One can drop the coordinates lon and lat from both datasets. Then everything works fine with 'where'.
I am using WHERE in a large script with some operations done before WHERE is called. One operation is to make the data types and the coordinate names between 'ref' and 'proof' consistent (thatswhy the above output is very similar). If I save the files and reload them immediately before applying WHERE, it fixes my problem.
Using a selection of all height levels proof["WSS"].isel(height=slice(0,9).where(ref["WSS"].isel(height=slice(0,9).notnull()).to_dataset(name="WSS") also fixes my problem.

Maybe, here I deal with a problem of incomplete operations in memory? The printout between datasets is maybe consistent but still an additional operation on the datasets is required to make the datasets consistent in memory?
Thanks in advance for your help

xarray is "coordinate aware", i.e. it will try hard to prevent users doing bad things with non matching coordinates (yes, the fact that your ref and proof are "not entirely consistent somehow regarding coordinates" is a bad thing ;-).
If I understand what you want, this should do the trick:
proof["WSS"].where(ref["WSS"].notnull().data)  # use .data here to get back to numpy

Dear fmaussion, the '.data' does the trick. Up to now I never thought about that the 'notnull' method is acting on more than only the data itself. That is maybe the reason why the 'where' method behaves strange to me.

Up to now I never thought about that the 'notnull' method is acting on more than only the data itself

All xarray operations will return xarray objects. And xarray will try to match coordinates wherever possible.

However, the coordinates are already mathematically identical

In your example above, they are not. Can you help us to reproduce the error with a Minimal Complete Verifiable Example?

The xarray coordinates-aware philosophy is nice to prevent from doing nothing useful. I have learned that also the 'data types' of the coordinates have to be identical, i.e. do not try to compare datasets with float32 coordinates and with float64 coordinates. Therefore, I was already educated by the Xarray's.
To provide you with an code example would mean that I have to extract all the steps done in the "BigScript" and the related files. It would mess up this feed here. However, you have asked so I try.
#open and squeezing (for consistency between datasets)
self.DSref = xarray.open_dataset(DSfile_ref)
self.DSproof  = xarray.open_dataset(DSfile_proof)
self.DSref = self.DSref.squeeze(); self.DSproof = self.DSproof.squeeze()
#harmonize grids (the coordinates belonging together where copied from DSref to DSproof
self.DSproof = self.MetricCalcProg.HarmonizeHoriGrid(dsetref=self.DSref,   \
    dsetmod=self.DSproof,posdimnames=self.cfggeneral.PossibleDimNames,      \
    varnsref=self.varns_ref,varnsmod=self.varns_proof)
self.DSproof, self.DSref = self.MetricCalcProg.HarmonizeVertGrid(dsetref=self.DSref, \
    dsetmod=self.DSproof,posdimnames=self.cfggeneral.PossibleDimNames,      \
    varnsref=self.varns_ref,varnsmod=self.varns_proof)
self.DSproof, self.DSref = self.MetricCalcProg.HarmonizeTempGrid(dsetref=self.DSref, \
    dsetmod=self.DSproof,posdimnames=self.cfggeneral.PossibleDimNames,varnsref=self.varns_ref, \
    varnsmod=self.varns_proof,unifreqme=self.cfgdatamining["target_EvalFrequency"]["method"])
#to compute linear correlation, dataset A and B have to have equal sample sizes
self.DSproof = self.DSproof[varnsproof].where(self.DSref[varnsref].notnull().data).to_dataset( \
    name=varnsproof)
self.DSref = self.DSref[varnsref].where(self.DSproof[varnsproof].notnull().data).to_dataset( \
    name=varnsref)

The methods for harmonization of the grids is defined as follows. Do not understand me wrong, but I have to deal with different datasets using different data types and variable names. I have to make the height-coordinate of dataset A consistent to the height-coordinate of dataset B (also the name). I would really like to have some tolerance options for making DataA-DataB.
def HarmonizeHoriGrid(self,dsetref=None,dsetmod=None,posdimnames=None,varnsref=None,varnsmod=None):
	""" Copy all the hor. coordinates from a reference-DS to the model dataset
		(needed due to inconsistencies in dtype, ..., i.e. small deviations)
		return model dataset but with harmonized horizontal grid;
		prone to errors because the check of coordinates has to be done for each variable;
		(e.g. the model contains WSS(lon1,lat1) and the obs has WSS(lon,lat))
			--> however that should be harmonized by the cdo's interpolation) """

	self.logger.debug("         Harmonization of horizontal grids prior evaluation.")
	CoordInfref = self.FindCoordinatesOfVariables(datafile=None,dataset=dsetref,varnamelist=varnsref);
	CoordInfmod = self.FindCoordinatesOfVariables(datafile=None,dataset=dsetmod,varnamelist=varnsmod);
	dim_xyref = GenUti.SplitMetaDim(CoordInfref,mode='spatial',PossibleDimDict=posdimnames)
	dim_xymod = GenUti.SplitMetaDim(CoordInfmod,mode='spatial',PossibleDimDict=posdimnames)
	#
	for varmod,varref in zip(varnsmod,varnsref):
		if varref in dim_xyref.keys() and varmod in dim_xymod.keys():
			for dimes in dim_xyref[varref]:
				if dimes in dim_xymod[varmod]:
					self.logger.debug("           Found for the variable "+varref+" the spat. dimension "+dimes+ \
					" in reference dataset and an equivalent in dataset to evaluate: "+varmod+","+dimes+ \
					". -> Make datatype consistent now")
					dsetmod[dimes].data = dsetref[dimes].data
				else:
					self.logger.debug("           Found for the variable "+varref+" the spat. dimension "+dimes+ \
					" in reference dataset but not no equivalent in dataset to evaluate. ")
	if ("rotated_pole" in dsetmod.data_vars) and ("rotated_pole" in dsetref.data_vars):
		dsetmod["rotated_pole"]=dsetref["rotated_pole"] # harmonize the type of rotated_pole
	# return the model dataset with harmonized dimensions
	return dsetmod

def HarmonizeTempGrid(self,dsetref=None,dsetmod=None,posdimnames=None,varnsref=None,varnsmod=None,unifreqme=None):
	""" Copy the values of the time coordinate from a reference-DS to the model dataset (needed due to
		inconsistencies in dtype, ...);
		return model dataset but with harmonized horizontal grid;
		the input datasets are already opened netcdf-files as xarray-datasets;
	"""
	self.logger.debug("         Harmonization of temporal grids prior evaluation.")
	DimInfref = self.FindDimensionsOfVariables(datafile=None,dataset=dsetref,varnamelist=varnsref)
	DimInfmod = self.FindDimensionsOfVariables(datafile=None,dataset=dsetmod,varnamelist=varnsmod)
	dim_tref = GenUti.SplitMetaDim(DimInfref,mode='temporal',PossibleDimDict=posdimnames)
	dim_tmod = GenUti.SplitMetaDim(DimInfmod,mode='temporal',PossibleDimDict=posdimnames)
	#
	for varmod,varref in zip(varnsmod,varnsref):
		if varref in dim_tref.keys() and varmod in dim_tmod.keys():
			for dimes in dim_tref[varref]:
				if dimes in dim_tmod[varmod]:
					#
					helpstr="           Found for the variable "+varref+" the temp. dimension "+      \
						dimes+" in reference dataset and an equaivalent in dataset to evaluate: "+    \
						varmod+","+dimes+". -> Make datatype consistent depending on unifyfreqmethod"+\
						unifreqme
					if unifreqme=="reselect":
						self.logger.debug(helpstr)
						timediff = (np.max(dsetmod[dimes].data-dsetref[dimes].data))
						timediff = timediff / np.timedelta64(1,'s')
						if np.abs(int(timediff)) > 1:
							self.logger.warning("            The two datasets do not share the same "+\
							"time-axis. Maximum difference is "+str(timediff)+' seconds')
						dsetmod[dimes].data = dsetref[dimes].data
					elif unifreqme=="resample" and (np.size(dsetref[dimes]) != np.size(dsetmod[dimes])):
						self.logger.debug(helpstr)
						inters = pandas.to_datetime(dsetref[dimes].data)
						inters = inters.intersection(pandas.to_datetime(dsetmod[dimes].data))
						dsetmod = dsetmod.sel(time=inters,method='nearest')
						dsetref = dsetref.sel(time=inters,method='nearest')
						timediff = (np.max(dsetmod[dimes].data-dsetref[dimes].data))
						timediff = timediff / np.timedelta64(1,'s')
						if np.abs(int(timediff)) > 1:
							self.logger.warning("            The two harmonized datasets still do not "+\
							" share time axis. Max diff is "+str(timediff)+' seconds')
							dsetmod[dimes].data = dsetref[dimes].data
					else:
						self.logger.debug("           No harmonization needed here.")
	# return the model dataset with harmonized dimensions
	return dsetmod, dsetref

def HarmonizeVertGrid(self,dsetref=None,dsetmod=None,posdimnames=None,varnsref=None,varnsmod=None):
	""" Adapt the height coordinate from a reference-DS to the model dataset (needed due to different dim names)
		return model and reference dataset but with harmonized horizontal grid;
		the input datasets are already opened netcdf-files as xarray-datasets"""
	self.logger.debug("         Harmonization of vertical grids prior evaluation.")
	DimInfref = self.FindDimensionsOfVariables(datafile=None,dataset=dsetref,varnamelist=varnsref);
	DimInfmod = self.FindDimensionsOfVariables(datafile=None,dataset=dsetmod,varnamelist=varnsmod);
	dim_zref  = GenUti.SplitMetaDim(DimInfref,mode='vertical',PossibleDimDict=posdimnames)
	dim_zmod  = GenUti.SplitMetaDim(DimInfmod,mode='vertical',PossibleDimDict=posdimnames)
	for varref,varmod in zip(varnsref,varnsmod):
		if (dim_zref[varref] and dim_zmod[varmod]):
			self.logger.debug("          here we have to modify vert. coord. of "+varref+ " "+varmod)
			if len(dim_zref[varref])==1 and len(dim_zmod[varmod])==1:
				dsetmod = dsetmod.rename({ dim_zmod[varmod][0] : "height_"+varref })
				dsetref = dsetref.rename({ dim_zref[varref][0] : "height_"+varref })
			else:
				self.logger.error("     Many vertical dimensions found for the variable "+varref+" or "+varmod)
				self.logger.error(dsetmod[varref])
				self.logger.error(dsetmod[varmod])
				exit();
		else:
			self.logger.debug("         No vertical dimensions found for the variable "+varref+" or "+varmod)
	return dsetmod, dsetref

I upload the two 'DSfile_ref' and 'DSfile_proof' to the following address:
wget -r -H -N --cut-dirs=3 --include-directories="/v1/" "https://swiftbrowser.dkrz.de/public/dkrz_c0725fe8741c474b97f291aac57f268f/GregorMoeller/?show_all"

Thanks, I could download them. Can you tell us what the problem with these files is, that we might have to solve in xarray?

The usual recommendation is to align all of your separate datasets onto the same grid before combining them. reindex_like() and interp_like() make this pretty easy, e.g., proof.interp_like(ref).

Closing, please reopen if still an issue


inspect() and inspectErr() can mutate consumed value

Both inspect and inspectErr have a potential side effect of mutating the value wrapped into Result. This is not a desired behavior.
var ok = Result.ok(new Mutable(5))
               .inspect(v -> v.a = 20);

assertThat(ok).hasValue(new Mutable(20)); // !!! should be 'Mutable(5)'

var err = Result.err(new Mutable(2))
                .inspectErr(e -> e.a *= 2);

Assertions.assertThat(errors).containsOnly(new Mutable(4)); // !!! should be 'Mutable(2)'

Maybe we can try to create a deep copy of the object before passing it to the consumer functions just for for inspect and inspectErr methods, basically this solves the problem.
    default Result<O, E> inspect(Consumer<? super O> op) {
        if (this instanceof Ok(O value)) {
            O copy = deepCopy(value);
            op.accept(copy);
        }

        return this;
    }

Maybe we can try to create a deep copy of the object before passing it to the consumer functions just for for inspect and inspectErr methods, basically this solves the problem.
    default Result<O, E> inspect(Consumer<? super O> op) {
        if (this instanceof Ok(O value)) {
            O copy = deepCopy(value);
            op.accept(copy);
        }

        return this;
    }

The value has to be either Serializable or deepCopy(v) should convert the object into a byte array and then construct a new instance out of it. And with byte array you also erase initial type of object and have to do an unsafe cast.


Bugfix nlu comparison persist/load nlg responses

Proposed changes:

fixes https://github.com/RasaHQ/rasa/issues/5201
persist NLG responses along with NLU training data during NLU pipeline comparison

Status (please check what you already did):

[ ] added some tests for the functionality
[ ] updated the documentation
[x] updated the changelog (please check changelog for instructions)
[x] reformat files using black (please check Readme for instructions)

@dakshvar22 test_nlu_comparison passes; should I edit that test to include NLG responses or add a separate test?

replaced by https://github.com/RasaHQ/rasa/pull/5294


Bitshifting overflow while loading texture

I get this error while trying to load a texture:
thread 'main' panicked at 'attempt to shift right with overflow', /gfx_core-0.4.0/src/tex.rs:205

It looks like it's coming from this line:
https://github.com/gfx-rs/gfx/blob/master/src/core/src/texture.rs#L272
Specifically, the level argument gets set to 16 at some point, and w/h/d are u16, which triggers a bitshifting overflow.
What's odd is that this only happens for debug mode with cargo run. Using cargo run --release makes everything work just fine. Doing some debugging showed that in release mode, level is always 0.
This is on Mac OSX with the OpenGL backend.

Thanks for the report!
This one is simple. We need to check if level is higher or equal than the bit size of Size type and treat it specifically in order to avoid that bitshift.

Fixed in gfx_core-0.5.1

Fixed in gfx_core-0.5.1


[Snyk] Security upgrade electron from 29.1.4 to 29.3.1

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json

⚠ Warning
Failed to update the package-lock.json, please update manually before merging.

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

726/1000  Why? Recently disclosed, Has a fix available, CVSS 8.8
Use After Free SNYK-JS-ELECTRON-6613084
No
No Known Exploit

726/1000  Why? Recently disclosed, Has a fix available, CVSS 8.8
Heap-based Buffer Overflow SNYK-JS-ELECTRON-6613085
No
No Known Exploit

691/1000  Why? Recently disclosed, Has a fix available, CVSS 8.1
Out-of-bounds Write SNYK-JS-ELECTRON-6613086
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Use After Free

Outdated


Uncaught Error: ENOENT: no such file or directory, lstat 'C:/ProgramData\LENOVO\atom\app-1.46.0\s...

[Enter steps to reproduce:]

...
...

Atom: 1.46.0 x64
Electron: 4.2.7
OS: Microsoft Windows 10 Pro
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT: no such file or directory, lstat 'C:\ProgramData\LENOVO\atom\app-1.46.0\startbootstrap-resume-gh-pages'
At fs.js:115

Error: ENOENT: no such file or directory, lstat 'C:\ProgramData\LENOVO\atom\app-1.46.0\startbootstrap-resume-gh-pages'
    at Proxy.realpathSync (fs.js:1435:7)
    at Proxy.fs.realpathSync (ELECTRON_ASAR.js:306:40)
    at TreeView.moveEntry (C:/ProgramData/LENOVO/atom/app-1.46.0/resources/app/static/<embedded>:14:1002525)
    at TreeView.onDrop (C:/ProgramData/LENOVO/atom/app-1.46.0/resources/app/static/<embedded>:14:1009698)
    at HTMLDivElement.<anonymous> (C:/ProgramData/LENOVO/atom/app-1.46.0/resources/app/static/<embedded>:14:983085)

Commands
     -7:33.8.0 tree-view:paste (div.tool-panel.tree-view)

Non-Core Packages

Thanks for reporting this!
This has already been fixed in https://github.com/atom/tree-view/pull/1358. It is currently scheduled for release when v1.53.0 reaches Stable.


[Feedback]: Security reports based on Bicep template security scans

Check for previous/existing GitHub issues

[X] I have checked for previous/existing GitHub issues

Description
Hi AVM team,
Currently, I am working within an organisation that has some high-security standards and I am trying to let them adopt Azure Verified Modules from the container registry (mcr.microsoft.com). The problem I am running into is that there are security concerns regarding using externally loaded modules on runtime to deploy their critical infrastructure. There is no control, or any security overview regarding this. The external source, in this case, a domain from *.microsoft.com is trusted and allowed to be used.
I know I am not the only one not being able to use AVM via the MCR due to security concerns, and this can cause other problems like using outdated AVM modules or having to clone AVM and having to figure out security scans and update mechanisms.
A solution could be automated security scans of the Bicep modules, which in the end will result in a security report. It might be a "simple" page on which the security status can be seen or a SARIF-formatted file... This can help answer security-based questions and elevate trust in using AVM using the container registry, and it will help with the adoption of AVM for larger organisations.
Is this something that's already on the radar?

I do not have experience with Defender for Resource Manager (yet) but this could also be useful: https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-resource-manager-introduction

@Azure/avm-core-team-technical-bicep, can you please take a look at this? Thanks!

@matebarabas Do you have any updates on this?

Hey @jtracey93, Results from PSRule and/or Defender for DevOps would be great to have! For the customer(s) I am working for the MCR is not the problem, since this is coming from a microsoft.com domain. I do not have experience with SBOM so I don't know about that.
What I think is important is that having these "security reports" is that it is easier to get the conversation going on using the BCR modules from a public source. These modules are an abstraction and you are not sure what the module contains. So having a public report of the results from Defender for DevOps (and ARM?) and/or PSRule for Azure would be great to have.
I think you are right when you say that it is a trust issue and what the modules deploy to Azure environments. So, the combination of being open source, coming from a Microsoft domain and having "security reports" is a big plus and gets the conversation going.
Are there more requests like these? I cannot imagine I am the only one with this question. 😄

Thanks @johnlokerse for the response 👍
We are getting some similar asks on this, but mainly around MCR and how can they clone it internally as they dont want to pull from a public source, which me and you have chatted about before as being not a great idea unless you have the resources to maintain it properly.
The PSRule outputs are already displayed in all GH actions workflows, as an example heres a VM one https://github.com/Azure/bicep-registry-modules/actions/runs/9756800804#summary-26927920866
Could you ask your customer if these are sufficient and do they just need to be exposed more easily? Also would love your opinion too.
Let us know
#RR

Thanks @johnlokerse for the response 👍
We are getting some similar asks on this, but mainly around MCR and how can they clone it internally as they dont want to pull from a public source, which me and you have chatted about before as being not a great idea unless you have the resources to maintain it properly.
The PSRule outputs are already displayed in all GH actions workflows, as an example heres a VM one https://github.com/Azure/bicep-registry-modules/actions/runs/9756800804#summary-26927920866
Could you ask your customer if these are sufficient and do they just need to be exposed more easily? Also would love your opinion too.
Let us know
#RR

@jtracey93 The bot sends out great reminders... 😄 Forgot to reply.
Building something that pulls AVM, scans the templates and then stores it in a private ACR would be okay, but how to deal with greenfield scenarios?  Still in my opinion if you do this, why not just trust Microsoft if they can give us the "proof" that the templates are secure... Having to clone a public repository that is then stored in a private container is literally the same.
My question is not yet answered due to people being busy or being on holiday. I will come back on this! If you ask me a dedicated status page like status badges page on the AVM site would be nice. This page could help me support my case to security decision-makers (with mostly on-premises experience) to use AVM.
It can be simple: a brief explanation of what is being scanned by DfD/DfARM or being held against PSRule including and  table with all statuses like this:
|  Module |  PSRule  |  Defender for DevOps  |  Defender for ARM  |
|---|---|---|---|---|
|  App Job |    | DfD badge here  | DfARM badge here   |
This is just my current brain dump... might think different later 😉

Thanks @johnlokerse, love the sketch up as well here 👍
Keep me posted on the outcome of the reply to question.


Panoply interoperability

Using Panoply version 5.2.9, I am unable to open a zarr store.
Data used: https://github.com/zarr-developers/geozarr-spec/issues/36
Panoply doesn't recognize this as a data type it knows how to open.

There are a couple different issues here:

Panoply is having trouble opening any zipped dataset, whether it's a zarr directory store or a vanilla netCDF file.

If I use a devo copy of Panoply that can select and open a zarr directory, then it runs into trouble with the example "GLDAS-NOAH025-3H" data at #36. It will give me a list of the directory contents and show me their attributes, but it cannot plot any of the variables therein because it seems that a compressor is used that is not available in the Unidata/netcdf-java# library.

@rschmunk  - Thanks for talking a look.

It's definitely a bit weird to open zipped datasets. I gave it a try because I couldn't select a folder. Being able to select a folder makes much more sense.
Charlie Zender said the same thing about nco, which uses the NetCDF-C library: https://sourceforge.net/p/nco/discussion/9829/thread/fcb404db8b/#c56d/3c73. https://github.com/zarr-developers/geozarr-spec/issues/36 uses the blosc compressor, which is zarr's default. I wonder if Unidata would consider adding this compressor since I'm guessing a huge fraction of zarr stores out there will be incompatible otherwise.

@christine-e-smit, I'm keeping the open-zarr-as-folder option for devo use only in Panoply until zarr capability in netCDF-Java advances to somewhere past its current optional build status. Besides the problem with missing compressors, there's also that NJ won't "enhance" the data and discover the lon-lat coordinate system because it only supports "pure Zarr v2". Which, it sounds like this geozarr discussion as well as NCZARR and I don't know what else are possibly intended to address.
Regarding the lack of compressors, there's probably an issue of there being too many things that the NJ developers are asked to add to the library, so some of them sit in the category of waiting for an outside developer who needs it to step forward and contribute. blosc support might be one of these, but see e.g. Unidata/netcdf-java#889.

I submitted Unidata/netCDF-Java#1307 to address the first problem in Panoply, but there remains some trouble with opening zipped data. And that issue doesn't address the lack of compressors or useful metadata.

Some relatively minor issues with netCDF-Java library's ability to work with zarr have been resolved following e.g. Unidata/netcdf-java#1325 and Unidata/netcdf-java#1319. But IMO, there's no more to be done to make an NJ app such as Panoply better able to work with zarr data stores until larger issues such as compressor availability are addressed.
So at this point I'd mark this particular issue as resolved for being out-of-scope. 🙂


How to Only Run Migrations if Using SQL Server and not SqlLite/In-Memory

I'm using Entity Framework Core using SQL Server with migrations. I am also using the In-Memory and SQL-Lite In-Memory database connections in my integration tests. I use the code below to migrate my database at app startup so it has no performance impact.
How can I only run migrations when I am using a SQL Server connection? I have found the method below but that is using reflection. I can't see a way of detecting the type of data store based on a DbContext.
public static async Task InitializeDatabase(
    ApplicationDbContext applicationDbContext,
    ILogger<ApplicationDbContext> logger)
{
    var databaseCreator = applicationDbContext
        .Database
        .GetType()
        .GetTypeInfo()
        .GetProperty("DatabaseCreator")
        .GetValue(applicationDbContext.Database);
    if (databaseCreator is is SqlServerDatabaseCreator)
    {
        try
        {
            await applicationDbContext.Database.MigrateAsync();
            logger.LogInformation("Migrated database.");
        }
        catch (Exception exception)
        {
            logger.LogCritical(0, exception, "Failed to migrate database.");
        }
    }
}

You can do this...
using Microsoft.EntityFrameworkCore.Infrastructure;

...

if(_context.GetService<IDatabaseCreator>() is SqlServerDatabaseCreator)
{
   ...
}

GetService<TService>() is an extension method that gives you access to all the underlying services that EF is using.

A couple alternatives:
dbContext.Database.GetDbConnection() is SqlConnection

dbContext.GetService<IDatabaseProviderServices>().InvariantName == "Microsoft.EntityFrameworkCore.SqlServer"


fix(skeleton-text): implement skeleton line generator

Related Ticket(s)
https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues/10007
Description
This PR updates the skeleton text component to match the Carbon v11 version. The storybook example is updated to show the new line generator which should match the v11 version as well
Changelog
New

paragraph, linecount, and width properties

Changed

update v11 prefix

Removed

fixed line widths

I was using the same random width generator as the core Carbon component but it looks like it can spit out negative values which is what made some lines look unchanged!


feat: use auto quality

Description
增加 useAutoQuality 属性，默认为 false
只有在 useAutoQuality 启用并且 source 没有提供 auto quality 时，hls 视频才会尝试本地手动生成 auto 质量（而且这个实现看起来有 BUG）
How Has This Been Tested?
修改了 example 的 hls 页面

[x] macOS 下 Safari 与 Chrome 均能正常播放 hls 视频（高清或者迪庆）
[x] macOS 下 Safari 与 Chrome 可以正常切换清晰度并维持播放状态（继续播放或继续暂停）

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] Any dependent changes have been merged and published in downstream modules

Codecov Report

Merging #147 (edc6cbd) into master (3f67ab4) will decrease coverage by 0.51%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #147      +/-   ##
==========================================
- Coverage   49.63%   49.12%   -0.52%
==========================================
  Files         126      126
  Lines        1801     1820      +19
==========================================
  Hits          894      894
- Misses        907      926      +19

Impacted Files
Coverage Δ

packages/griffith-hls/src/Video.js
0.00% <0.00%> (ø)

packages/griffith-mp4/src/player.js
0.00% <ø> (ø)

packages/griffith/src/components/Player/Player.js
0.00% <0.00%> (ø)

.../src/components/PlayerContainer/PlayerContainer.js
0.00% <ø> (ø)

...kages/griffith/src/components/Video/NormalVideo.js
0.00% <0.00%> (ø)

...th/src/contexts/VideoSource/VideoSourceProvider.js
0.00% <0.00%> (ø)

...griffith/src/contexts/VideoSource/parsePlaylist.js
0.00% <0.00%> (ø)

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 79a8cff...edc6cbd. Read the comment docs.


Version is updated to 5.1.0

CMake library version is updated to 5.1.0

Linux test PASSed.

Windows test FAILed.

Windows test PASSed.

Linux test PASSed.


HypriotOS / Raspberry

Hi guys
I'm trying to get the container to work on my raspberry pi 2. I'm getting errors about can't run container, most likely that's an arch issue. Anyone with a similar experience? @jwilder do you think this could be provided on docker's hub ?
Thanks & regards

@rgarrigue The jwilder/nginx-proxy image on Docker Hub is built using the Automated Builds feature, which currently only support x86_64.
This issue tracks the addition of other architectures for Docker Hub automated builds: https://github.com/docker/hub-feedback/issues/427

Thanks for the intel.
So, how should I do that meanwhile ? Get all the intermediate images' Dockerfile, rename them, edit FROM field and build my own setup I guess ?

Are there ARM builds of nginx? I don't see any in the Nginx *.deb repository at http://nginx.org/packages/mainline/debian/

Most likely yes. You can find some rpi-nginx and a couple of armv7-nginx
container on hub.docker.I'm gonna try whenever I can.
2015-12-15 9:30 GMT+01:00 Mike Dillon<EMAIL_ADDRESS>
Are there ARM builds of nginx? I don't see any in the Nginx *.deb
repository at http://nginx.org/packages/mainline/debian/
—
Reply to this email directly or view it on GitHub
https://github.com/jwilder/nginx-proxy/issues/315#issuecomment-164682932
.

@rgarrigue, @md5: I built armhf images for both nginx and nginx-proxy. (The base image used is armhfbuild/debian.)
I also set up nightly builds, so the images should stay up-to-date with the latest code changes. No version tags yet.

:+1:

Thanks @djmaze, I'm gonna try this as soon as I get some free time.
Closing the ticket as it should be ok for me :)

@md5, @rgarrigue I just realized I promised a bit too much with the nightly builds. Will have to adjust the build process for that to work.

I tried to use this container on my raspberry pi 3 but it wouldn't work..
So I compiled it myself. I needed to make many changes in the dockerfile but it works now.
You can have a look at it here
Would be great if you could support arm out of the box

I allow to restart the debate, a Dockerfile.rpi would be extremely useful out of the box!

It would be great if nginx-proxy was multi-arch similar to the official images.
Why the excitement with arm processors?  Because we might be running the next generation financial systems on things like raspberry pi nodes...and it would be great to have an awesome proxy image on those nodes! 😜


evaluator: should RHS builtin call of self be reported as a cycle?

Picking up @verdverm's example in https://github.com/cue-lang/cue/discussions/1870#discussioncomment-3453612
What version of CUE are you using (cue version)?

$ cue version
cue version v0.0.0-20220824073610-83d37e79367e

       -compiler gc
     CGO_ENABLED 1
          GOARCH arm64
            GOOS linux
             vcs git
    vcs.revision 83d37e79367ee589d797787b7328ab17a14d39e6
        vcs.time 2022-08-24T07:36:10Z
    vcs.modified false

Does this issue reproduce with the latest release?
Yes
What did you do?
! exec cue eval x.cue
stderr 'cycle'

-- x.cue --
import "strings"

a: "A"
a: strings.ToLower(a)

What did you expect to see?
As written, the test expects a cycle error to be reported. So the expectation is that the test should pass.
What did you see instead?
Failing test:
> ! exec cue eval x.cue
[stderr]
a: conflicting values "a" and "A":
    ./x.cue:3:4
    ./x.cue:4:4
[exit status 1]
> stderr 'cycle'
FAIL: /tmp/testscript2913202972/repro.txtar/script.txt:2: no match for `cycle` found in stderr

i.e. no cycle error is reported, and instead a conflicting value error is reported.
However, it's not clear to me the expectation in the test is correct. Because it's entirely possible that a builtin could be the identity function for a given input.
Perhaps we need some clarity in the spec on this?
cc @mpvl for input.

Cycles like a: a are explicitly allowed by the spec.
To me, according to the spec, and the intent of the current implementation
a: "a"
a: strings.ToLower(a)

is fully valid.
It is akin to
a: b+1
b: a-1

which is also valid.

Also, builtins like the proposed must will rely on being able to refer to the own field.


Muli-monitor support appears to be busted with the latest build

Hey All,
The multimon feature used to work flawlessly. However, with the latest build from source when I use the command, it goes full screen on my left monitor but doesn't even show up on the right monitor. Any suggestions? I am running Ubuntu GNOME 15.04 and have pulled the latest build from source. Connecting up to a Windows 8.1 Pro virtual machine.
Below is my command
xfreerdp /title:mm-local-desk2 +wallpaper +clipboard /multimon /sound:sys:pulse /microphone:sys:pulse /usb:id,dev:18d1:4ee2 /v:<IP_ADDRESS>

Thanks!

@meanbunny what version are you referring to with "now"? - What Windows version you are connecting to?

Connecting up to the same Windows 8.1 Pro virtual that I always have been. I am aware multimon support isn't on all Windows versions. Now refers to the latest code build.

@meanbunny latest code as in master? - If did you observe what the last working version was?

Looks like I have this for the version number. I unfortunately didn't check what I had before, wish I had now.
This is FreeRDP version 1.2.4-dev (git cc4b5f9)

@meanbunny thanks for the update. I quickly tried today and saw the exact same behavior you've reported.

@bmiklautz Ah ok cool, glad it wasn't just my local setup lol

... and a reminder to fill in the blanks here: https://github.com/FreeRDP/FreeRDP/wiki/Quality-Assurance-(QA)#fullscreen

I think the issue is related to #2707

Have you tried /multimon:force ?

I tried with /multimon:force but it did not solve the issue. The fullscreen window was on the primary monitor only.

Shame... I have no problem with that in Windows 2012... So, I guess it's related to Windows 8.1 only then - line in issue you linked.

@LGLumi I could reproduce the problem with window7 so it's there as well.

I experience the problem also connecting to Windows 2012

@bmiklautz Well, there are few difference between what is described here and how am I using it. First of all, I don't use /title and I use FreeRDP on Debian Wheezy. (I use many things in addition such as gdi:hw /rfx -decorations ... rest are not graphicaly related at all.. so not mentioning ... but it works, now depends if it's compatibility issue or matter of additional stuff..)

@LGLumi I'v tested/reproduced this with a very simple command line almost without extra options. Maybe you can also add your command line for comparison?

@bmiklautz I will try. Need to some things and will do, hopefully today.

@bmiklautz @meanbunny  I just tried it and nothing. Had to add just -sec-nla due to Windows Server 2012, but I have left rest as meanbunny. Both monitors worked fine. But I am using really excesive build options, so that might make difference while I work... You might want to try that build but seriously you will get more than you need I guess, but worth a try I...
cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/freerdp-git -DWITH_PCSC=ON
-DWITH_CUPS=ON -DCHANNEL_CLIPRDR_SERVER=ON -DCHANNEL_DRDYNVC_SERVER=ON
-DCHANNEL_DRIVE_SERVER=ON -DCHANNEL_ECHO_SERVER=ON
-DCHANNEL_PARALLEL_SERVER=ON -DCHANNEL_PRINTER=ON
-DCHANNEL_RAIL_SERVER=ON -DCHANNEL_RDPDR_SERVER=ON
-DCHANNEL_RDPEI_SERVER=ON -DCHANNEL_SAMPLE=ON -DCHANNEL_SERIAL_SERVER=ON
-DCHANNEL_SMARTCARD=ON -DCHANNEL_TSMF_SERVER=ON -DCHANNEL_URBDRC=ON
-DWITH_MANPAGES=OFF -DCHANNEL_DISP_SERVER=ON -DCHANNEL_PRINTER_CLIENT=ON
-DCHANNEL_PRINTER_SERVER=ON -DCHANNEL_RDPGFX_SERVER=ON
-DCHANNEL_SMARTCARD_CLIENT=ON -DCHANNEL_SMARTCARD_SERVER=ON
-DCHANNEL_URBDRC_CLIENT=ON -DCHANNEL_URBDRC_SERVER=ON -DWITH_GSM=OFF
-DWITH_PULSE=ON -DWITH_SERVER=ON -DWITH_THIRD_PARTY=ON
-DWITH_PROFILER=ON -DWITH_FFMPEG=ON -DWITH_JPEG=ON -DWITH_DIRECTFB=OFF
-DWITH_GPROF=ON -DWITH_IPP=OFF -DWITH_DEBUG_ALL=ON
Ehm, I think this "-DCHANNEL_SAMPLE=ON" will get excluded, or at least I remember it did it for me while this option probably does not exist anymore.

I posted this on the other thread (https://github.com/FreeRDP/FreeRDP/issues/2707#issuecomment-152856281) - thought you guys may find it useful also:  I was able to rollback client/X11/xf_window.c to eb14ab15f5bca5751d8a71965f31509d4c3b176b and recompile to make FreeRDP start in fullscreen mode across all monitors again. Not sure what all ramifications that might have - perhaps @nfedera could weigh in on this?

@cmsmith1977 see my answer in https://github.com/FreeRDP/FreeRDP/issues/2707#issuecomment-153721965

I have multimonitor support working well with gnome 3.20 under xenial & 6th Oct build of master (uncomplicated build flags). Seems to work fine assigning 2 of 3 real monitors to the rdp session,
Using:
/multimon /monitors:1,2  +aero +fonts  +window-drag +menu-anims +decorations +smart-sizing
Windows 7 sees both monitors correctly & uses them fullscreen @ client's native resolution. No problem that monitors are oriented differently (horizontal & vertical). Scales intelligently enough when not running fullscreen, although with the H&V orientation that's hard to use.

Close as duplicate of #2707


AMBARI-23370 Download client configs fails due to 'clusterLevelParam' missing

What changes were proposed in this pull request?
Agent json format has changed. This change was not  done in ClientConfigResourceProvider.
How was this patch tested?
-JUnit
-Deployed an ambari server, deployed all services, downloaded all the  configs.
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)
Please review Ambari Contributing Guide before opening a pull request.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1431/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1439/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1440/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1453/
Test FAILed.
Test FAILured.

@swagle Please review


Add an import report after ocr.

We generate an excel import report which unhelpfully just lists all the imports as "Unfiled".  If we successfully file the images via OCR, this now generates a second import report (with OCR) in its title.  This has how each import file was filed.

Closes #309.


Event pages should link their client directly to the client page

cc @pauloconnor if he wants to take this on.
It would be kinda nice if the client info box on an event page linked directly to the client.
There is a breadcrumbs link at the top, but still, it is nice to be discover-able.
Also on my wishlist of interconnected pages:

Datacenter link on an event page should link to the event list filtered on that datacenter (discover other hosts in this datacenter that have issues)
The title of the check name on the event page should link to the all events with that same check firing (discover other places where this check is broken)
We have a lot of custom event data, would be kinda nice if everything was an autolink to a search filter with that text, but I don't want things to get too cluttered. (discover other events with the same team, other events fired at the same time, other events with the pagerduty handler, etc?)

The client check details page ( /#/client/sensu/hostname?check=checkname )
could also be more interconnected:

aggregate aggr_NAME should link to => /#/aggregates/sensu/agg_NAME
subscribers sub_NAME should link to => /#/clients?subscription=sub_NAME

Client details page:
each value of the "subscriptions" field on the lcient details should link to /#/clients?subscription=sub_NAME
more generally:
each occurence of a client should link to the client details page ( /#/client/sensu/hostname )
each occurence of a client check should link the client check details pages ( /#/client/sensu/hostname?check=checkname )
I especially thinks to the aggregates page that is missing that


boards: Update telnetd related config after apps/nshlib change

Summary
paired with https://github.com/apache/incubator-nuttx-apps/pull/1362
Impact
telnetd
Testing
Pass CI

@xiaoxiang781216 is this a "breaking change"

The new draft release notes for NuttX-11.1.0 is on the CWIKI at https://cwiki.apache.org/confluence/display/NUTTX/NuttX+11.1.0. When this PR is merged, I will add the changes under "Compatibility Concerns" -> "Renamed or Modified Kconfig Options".
Feel free to document things there as work progresses. It makes for less work around release time. :-)

The new draft release notes for NuttX-11.1.0 is on the CWIKI at https://cwiki.apache.org/confluence/display/NUTTX/NuttX+11.1.0. When this PR is merged, I will add the changes under "Compatibility Concerns" -> "Renamed or Modified Kconfig Options".
Feel free to document things there as work progresses. It makes for less work around release time. :-)

I will update the document after merging.

Thanks for creating the page
Best regards
Alin
From: hartmannathan @.>
Sent: den 19 oktober 2022 05:12
To: apache/incubator-nuttx @.>
Cc: Subscribed @.***>
Subject: Re: [apache/incubator-nuttx] boards: Update telnetd related config after apps/nshlib change (PR #7351)
The new draft release notes for NuttX-11.1.0 is on the CWIKI at https://cwiki.apache.org/confluence/display/NUTTX/NuttX+11.1.0https://urldefense.com/v3/__https:/cwiki.apache.org/confluence/display/NUTTX/NuttX*11.1.0__;Kw!!JmoZiZGBv3RvKRSx!_YMFBWtV6L_wHZ6BL_BC-au_5Y9KSWMznzdo-fRHlHnIqy9l13dr0jzHMVWdKAC84NjNQml467-UMXXaR4tpWC2h_w$. When this PR is merged, I will add the changes under "Compatibility Concerns" -> "Renamed or Modified Kconfig Options".
Feel free to document things there as work progresses. It makes for less work around release time. :-)
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/apache/incubator-nuttx/pull/7351*issuecomment-1283353603__;Iw!!JmoZiZGBv3RvKRSx!_YMFBWtV6L_wHZ6BL_BC-au_5Y9KSWMznzdo-fRHlHnIqy9l13dr0jzHMVWdKAC84NjNQml467-UMXXaR4tfJf1dxg$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AB32XCTEORRT6UHYA3647PTWD5RHRANCNFSM6AAAAAARIJ7ZYE__;!!JmoZiZGBv3RvKRSx!_YMFBWtV6L_wHZ6BL_BC-au_5Y9KSWMznzdo-fRHlHnIqy9l13dr0jzHMVWdKAC84NjNQml467-UMXXaR4szUSUpWg$.
You are receiving this because you are subscribed to this thread.Message ID<EMAIL_ADDRESS>


LetAppsRunInBackground: 0 (Default) is Empty .

The exist line is
0 (Default): .
I suspect it should be:
0 (Default): User Control.
(admin edit: remove public repo link and add article metadata for proper linking)

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

ID: 7d29cfe6-cd94-95d7-b635-80bf356829fd
Version Independent ID: 699e70c4-bf24-1200-b6cb-451aa547437b
Content: Privacy Policy CSP - Windows Client Management
Content Source: windows/client-management/mdm/policy-csp-privacy.md
Product: windows-client
Technology: itpro-manage
GitHub Login: @vinaypamnani-msft
Microsoft Alias: vinpa

Thanks @MyklSandusky-XMS - the CSP reference docs are mostly automated now, see Contributing to the CSP reference articles. So the issue may exist in the underlying source DDF or ADMX. But I think it might be best for us to first review our automation to make sure, given there's a single period in that table cell.

@MyklSandusky-XMS I reviewed this, and can confirm that the missing description for value 0 is indeed in the DDF file. Can you Send feedback with the Feedback hub app for this? It's best that you submit the feedback so you can get notified of any updates. I'll close this issue as the doc will be auto-updated once the DDF file is updated with the appropriate value.


Make macro emit a warning instead of an error?

I believe it should be possible to emit a warning, using proc_macro::Diagnostic. With that in mind, I believe it'd be preferable to have the default behavior be to warn, and then opt in to it being an error.
This also helps with #1, because when a dependency emits a warning Cargo silently ignores it.

Though I suppose this only works with a nightly compiler

I'm investigating a solution in https://github.com/parker-codes/todo_by/pull/5. Ideally we could show an error/warning in the editor and only log out warnings for the current project. Since diagnostics are not on stable Rust, in #1 someone showed how to use a deprecated mark to almost do the same thing. It works really well, except it creates a strikethrough effect in the editor which makes it hard to read.

Just merged the PR to not fail builds. It still fails tests though, so I'll be looking for a solution to that.


Error: This deferred has already been resolved

I'm getting this error. My code:
convertExcel = require('excel-as-json').processFile;

convertExcel('prodeint_seleccion_parcelas.xlsx',
    'parcelas.json',
    false,
    function(err, data) {
        if(err) console.log(err);
    });

And the log:
throw new Error("This deferred has already been resolved");
      ^

Error: This deferred has already been resolved
    at notifyAll (/var/www/html/test-projects/excel-json/node_modules/node-promise/promise.js:147:13)
    at Deferred.reject.reject.errback.emitError (/var/www/html/test-projects/excel-json/node_modules/node-promise/promise.js:200:5)
    at Parse.<anonymous> (/var/www/html/test-projects/excel-json/node_modules/excel/excelParser.js:29:13)
    at emitOne (events.js:83:20)
    at Parse.emit (events.js:170:7)
    at /var/www/html/test-projects/excel-json/node_modules/unzip/lib/parse.js:60:12
    at processImmediate [as _immediateCallback] (timers.js:384:17)

@juanmanavarro, please attach prodeint_seleccion_parcelas.xlsx to simplify testing.

@stevetarver Sorry, it contains personal information and I'm not allowed to share it. What can we do?

@juanmanavarro: I have test cases that cover what I can discern from above - there is something more to this. We need to figure out a minimal reproducible test case.
If you copy the code above to a single file and run it, does the problem still happen?
If not, your problem lies elsewhere.
If so, can you delete rows of information until the problem goes away? If so, it may be a size related problem and you could provide your header row and row count.
Perhaps you can get the size down far enough that you could remove any sensitive data.

Cannot reproduce. Closing due to no issue reporter follow up and cannot reproduce this issue.


Bump to new version

The PR https://github.com/ns1/ns1-python/pull/107 solves a compatibility problem with python 3.10.6
Could we get a new version cut, please?

Is there any status update?

This is resolved due to new version cut: https://github.com/ns1/ns1-python/releases/tag/v0.18.0


driver exoscale: clarify the image template name.

Proposed changes
It clarifies some aspects of the docker-machine exoscale driver usage. It wasn't super easy to guess the image name from the ones displayed in the UI.
Related issues (optional)

https://github.com/docker/machine/pull/4334

Thanks! I'll light a candle 🕯  for the docker/machine side of the story :-)


gif data saving fix

          1 Warning

:warning:
Any source code changes should have an entry in CHANGELOG.md or have #trivial in their title.

  Generated by :no_entry_sign: Danger


Day285

Resolves #583.

Pull Request Test Coverage Report for Build 1088

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

Totals

Change from base Build 1086:
0.0%

Covered Lines:
5

Relevant Lines:
5

💛  - Coveralls


Refreh or destroy child modal after submit?

Is there a way to refresh/reset a child modal after it has been closed?
In your twitter video you click Create and add a policy. When you save, close the child modal and later click Create policy again, how do you start with a fresh policy page? I could manually reset the variables, but would love to refresh everything since I have js components that may stick even if the model is reset.
Thanks!

It doesn't reset for me either. You could emit an event to reset the variable manually.
It would be quite easy to achieve by unsetting the child modal from the main modal which is set in this array https://github.com/livewire-ui/modal/blob/main/src/Modal.php#L14
Feel free to create a PR that adds a destroyComponent event listener to https://github.com/livewire-ui/modal/blob/main/src/Modal.php that accepts the component name as a parameter and removes this component from the $components array.
This way you can do something like $this->emit('destroyModal', CreateModal::getName());. Once destroyed, a 'fresh' instance is loaded the next time.
An alternative, not nested, would be to pass some other unique value every:
Create Policy
Create Policy
The random value will create a different 'signature', so every child modal gets a different state.

Thank you!
The Str::random() method sounds the easiest, but if I click on 'Create' and 'Cancel' to go back to the main modal over and over I'd get a bunch of hidden modals floating around right? May not be an issue since they're removed when I finally close, but just a thought.

No worries.

Hi @PhiloNL  How can I create the destroyModal method in your package without touching the original code?
I have a problem with the childs modals because when I open the first modal and close it, the data that I load in modal with alpine is keeping the DOM.

I don´t know why...


Setting key in ajaxUpload

On line 68 I see:
var xhr, formData, prop, key = '' || 'file';

What is the point of '' || 'file'
Doesn't it always evaluate to 'file'?

Indeed that seems suspicious ... did you try blaming the file to see who wrote that when ? I guess you'd have to go back quite far in time...

Faster than I thought, it seems it appearead in the very first commit of the original project: https://github.com/realtica/ng-uploader/commit/1c9e84dad4f33476030431fdc3a5d18dafbac2ce#diff-fccb9ea6ccaa1552e74050d47a748ee8R80
I'd say it's indeed a mistake and should be removed in a PR

Hi PowerKiKi. It would be great to see this fix in release version. With abiltity to change the key. Thanks

@AleksejDomash submit a PR and it will be merged


UI: swift sec store marked as readonly, while not really

ACS 4.15.0

Fixed in https://github.com/apache/cloudstack/pull/5176