Printing current Model status

Describe the solution you'd like
It would be perhaps nice to have a Model.print() method that prints the current status of the model. I can imagine this is useful for users to check the current Model status (for example, for debugging); also, in the documentation, it can be nice to illustrate something once you added something. On the other hand, perhaps it is too overwhelming to print all the details for big models. On a related note, perhaps an illustration of the Job, Task and Mode relationship can be useful in both the docs as the paper.
I can imagine it can be something in line with:
    def print(self):
        """
        Prints the current model status.
        """
        print(f"Model:")  # perhaps also self.name if model gets a name
        for job in self.jobs:
            print(f"  {job}")
            for task in job.tasks:
                print(f"    {self.tasks[task]}")
                for mode in self.modes:
                    if mode.task == task:
                        print(f"      {mode}")

This would also require something like
    def __repr__(self):
        return f"{self.__class__.__name__}({vars(self)})"s

in the corresponding classes to print something meaningful. For example, with 4 jobs of 2 tasks each and each task having 2 modes, we would get:
Model:
  Job({'_weight': 1, '_release_date': 0, '_deadline':<PHONE_NUMBER>10656, '_due_date': None, '_tasks': [0, 1], '_name': ''})
    Task({'_earliest_start': 0, '_latest_start':<PHONE_NUMBER>10656, '_earliest_end': 0, '_latest_end':<PHONE_NUMBER>10656, '_fixed_duration': True, '_name': ''})
      Mode({'_task': 0, '_resources': [0], '_duration': 1, '_demands': [0]})
      Mode({'_task': 0, '_resources': [1], '_duration': 1, '_demands': [0]})
    Task({'_earliest_start': 0, '_latest_start':<PHONE_NUMBER>10656, '_earliest_end': 0, '_latest_end':<PHONE_NUMBER>10656, '_fixed_duration': True, '_name': ''})
      Mode({'_task': 1, '_resources': [0], '_duration': 1, '_demands': [0]})
      Mode({'_task': 1, '_resources': [1], '_duration': 1, '_demands': [0]})
  Job({'_weight': 1, '_release_date': 0, '_deadline':<PHONE_NUMBER>10656, '_due_date': None, '_tasks': [2, 3], '_name': ''})
    Task({'_earliest_start': 0, '_latest_start':<PHONE_NUMBER>10656, '_earliest_end': 0, '_latest_end':<PHONE_NUMBER>10656, '_fixed_duration': True, '_name': ''})
      Mode({'_task': 2, '_resources': [0], '_duration': 2, '_demands': [0]})
      Mode({'_task': 2, '_resources': [1], '_duration': 2, '_demands': [0]})
    Task({'_earliest_start': 0, '_latest_start':<PHONE_NUMBER>10656, '_earliest_end': 0, '_latest_end':<PHONE_NUMBER>10656, '_fixed_duration': True, '_name': ''})
      Mode({'_task': 3, '_resources': [0], '_duration': 2, '_demands': [0]})
      Mode({'_task': 3, '_resources': [1], '_duration': 2, '_demands': [0]})
  Job({'_weight': 1, '_release_date': 0, '_deadline':<PHONE_NUMBER>10656, '_due_date': None, '_tasks': [4, 5], '_name': ''})
    Task({'_earliest_start': 0, '_latest_start':<PHONE_NUMBER>10656, '_earliest_end': 0, '_latest_end':<PHONE_NUMBER>10656, '_fixed_duration': True, '_name': ''})
      Mode({'_task': 4, '_resources': [0], '_duration': 3, '_demands': [0]})
      Mode({'_task': 4, '_resources': [1], '_duration': 3, '_demands': [0]})
    Task({'_earliest_start': 0, '_latest_start':<PHONE_NUMBER>10656, '_earliest_end': 0, '_latest_end':<PHONE_NUMBER>10656, '_fixed_duration': True, '_name': ''})
      Mode({'_task': 5, '_resources': [0], '_duration': 3, '_demands': [0]})
      Mode({'_task': 5, '_resources': [1], '_duration': 3, '_demands': [0]})
  Job({'_weight': 1, '_release_date': 0, '_deadline':<PHONE_NUMBER>10656, '_due_date': None, '_tasks': [6, 7], '_name': ''})
    Task({'_earliest_start': 0, '_latest_start':<PHONE_NUMBER>10656, '_earliest_end': 0, '_latest_end':<PHONE_NUMBER>10656, '_fixed_duration': True, '_name': ''})
      Mode({'_task': 6, '_resources': [0], '_duration': 4, '_demands': [0]})
      Mode({'_task': 6, '_resources': [1], '_duration': 4, '_demands': [0]})
    Task({'_earliest_start': 0, '_latest_start':<PHONE_NUMBER>10656, '_earliest_end': 0, '_latest_end':<PHONE_NUMBER>10656, '_fixed_duration': True, '_name': ''})
      Mode({'_task': 7, '_resources': [0], '_duration': 4, '_demands': [0]})
      Mode({'_task': 7, '_resources': [1], '_duration': 4, '_demands': [0]})

Cool. Some suggestions:

Nothing is printed right now.
When there are more objective weights, the format gets a bit messy.
Perhaps provide a bit more high-level info that gives a bit more insight in the linkage of jobs, modes and constraints?

Suggestion:
    def print_summary(self):
        objective = [
            f"{attr}={value}"
            for attr, value in vars(self._objective).items()
            if value > 0
            ]
        objective = "\n             ".join(objective)

        info = [
            "Model summary",
            "-------------",
            f"- # jobs: {len(self.jobs)}",
            f"- # resources: {len(self.resources)}",
            f"- # tasks: {len(self.tasks)}",
            f"- # tasks per job: {[len(job.tasks) for job in self.jobs]}",
            f"- # modes: {len(self.modes)}",
            f"- # modes per task: {[sum(m.task == t for m in self.modes) for t in range(len(self.tasks))]}",
            f"- # constraints: {sum(len(c) for c in self._constraints.values())}",
            f"- # setup times: {len(self._setup_times)}",
            f"- horizon: {self._horizon}",
            f"- objective: {objective}",
            ]

        print("\n".join(info))

Output:
Model summary
-------------
- # jobs: 4
- # resources: 2
- # tasks: 8
- # tasks per job: [2, 2, 2, 2]
- # modes: 16
- # modes per task: [2, 2, 2, 2, 2, 2, 2, 2]
- # constraints: 0
- # setup times: 0
- horizon:<PHONE_NUMBER>10656
- objective: weight_makespan=1
             weight_total_tardiness=2

Nothing is printed right now.

Yeah we should print this!

When there are more objective weights, the format gets a bit messy.

I like the new format! I think we can do something similar with constraints, which could state the number of constraints per constraint type. The current implementation of constraints makes this a bit hard, but I think this is very nice to have.
Model summary
-------------
- # jobs: 4
- # resources: 2
- # tasks: 8
- # modes: 16
- # constraints: 5 end_to_start
				 1 end_to_end
				 2 different_resources
- # setup times: 0
- horizon:<PHONE_NUMBER>10656
- objective: weight_makespan=1
             weight_total_tardiness=2

Perhaps provide a bit more high-level info that gives a bit more insight in the linkage of jobs, modes and constraints?

The problem is that this becomes too messy when dealing with large instances. We should keep this summary informative yet simple, and if users need a more descriptive summaries, they can always implement it themselves. Instead, if it's useful, we should provide a recipe/example in the notebooks that presents this.
Also, I think we should make this a method of ProblemData instead of Model. We can then re-use it for multiple purposes, one of which is printing the summary just before solving. This is what we also do in PyVRP, see here (scroll a bit below).

Sounds good!

I agree that a user can simply print more info themselves when needed. Alternatively, you could think of a "light" printing option and an "extensive" one. But I guess you like to keep it KISS :-).
I like the idea of printing a summary of the problem being solved.
I guess the user mainly interacts with Model, so perhaps it is natural to have a print() method there?

I guess the user mainly interacts with Model, so perhaps it is natural to also have a print() method there

Yes agreed, forgot to mention that as well.


XHTML transtype problem (and solution): Content from RTL tables is aligned to the left

This is caused by DITA-OT 2.x generating a style attribute with "text-align:left" on all the table cells, no matter if they have or not the the align attribute set into the source,
How to reproduce:
Insert a table with arabic content into a topic. Put xml:lang="ar" and dir="rtl" on the root of the topic, then transform it to XHTML. You can use this fragment below, but the problem can be seen on english content in a RTL table also.

    <table id="table_chp_lxj_hl" rowsep="1" colsep="1" dir="rtl">
      <tgroup cols="2">
        <colspec colnum="1" colname="col1"/>
        <colspec colnum="2" colname="col2"/>
        <tbody>
          <row>
            <entry namest="col1" nameend="col2">النبات الحبي</entry>
          </row>
          <row>
            <entry namest="col1" nameend="col2"> النباتات الحبية
              المختلفة و منتجاتها</entry>
          </row>
        </tbody>
      </tgroup>
    </table>

The text from table cells are aligned to the left inside each of the cells.
This is wrong, it should be aligned to the right. For LTR tables it should be to the left.
The problem is in the file:
DITA-OT2.x/plugins/org.dita.xhtml/xsl/xslhtml/dita2htmlImpl.xsl
in template:
<xsl:template name="doentry">
Here is computed the style attribute for each of the table entries. There are some default values for text-align and vertical-align set to "left" and "top". The default values should not be specified, so the browser can infer them from the parent elements/styles.
The solution is:
Remove the xsl:otherwise blocks.

 <xsl:variable name="align" as="xs:string?">
        <xsl:choose>
         <xsl:when test="@align">
           <xsl:value-of select="@align"/>
         </xsl:when>
          <xsl:when test="$group/@align">
            <xsl:value-of select="$group/@align"/>
          </xsl:when>
          <xsl:when test="$colspec/@align">
            <xsl:value-of select="$colspec/@align"/>
          </xsl:when>
          <!-- PATCH START   -->
          <!--
          <xsl:otherwise>
            <xsl:value-of select="$table.align-default"/>
          </xsl:otherwise>
          -->
        </xsl:choose>
      </xsl:variable>
      <xsl:if test="exists($align)">
        <xsl:text>text-align:</xsl:text>
        <xsl:value-of select="$align"/>
        <xsl:text>;</xsl:text>
      </xsl:if>
      <xsl:variable name="valign" as="xs:string?">
        <xsl:choose>
         <xsl:when test="@valign">
           <xsl:value-of select="@valign"/>
         </xsl:when>
         <xsl:when test="$row/@valign">
           <xsl:value-of select="$row/@valign"/>
         </xsl:when>
          <xsl:when test="$body/@valign">
            <xsl:value-of select="$body/@valign"/>
          </xsl:when>
          <!--  PATCH START   -->
          <!--
          <xsl:otherwise>top</xsl:otherwise>
          -->
       </xsl:choose>

For reference 9901:1999 XML Exchange Table Model DTD.

Looking at the referenced exchange model, I see this about the alignment value in an entry (section <IP_ADDRESS>:

Default

IMPLIED (means use value from nearest applicable colspec of the nearest ancestral tgroup. If none, then “left”.)

Earlier in <IP_ADDRESS>, description of alignment on tgroup:

Default

IMPLIED (means use value from stylesheet if any, else “left”.)

And finally at the start of the section, 3.1.1:

3.1.1. General
The table element markup identifies a table.
Elements inside a table may at times inherit default values from the attributes on the containing table. Furthermore, a table element may have some stylesheet associated with it that may provide default values for some or all of its attributes.
If a table element has no explicit specification for an attribute but does have an associated style sheet that gives a specification for this attribute, then the stylesheet value shall be used as the value that is inherited from this element.

So, the <tgroup> definition says that a default alignment may be taken from a "stylesheet". Section 3.1.1 gives a general description of a stylesheet that may be used to set up defaults for attribute values. I read this to mean that it is legal, per the exchange model, for our stylesheet to set a default alignment of RTL for bi-di languages. [Also: I think that's just the right thing to do, regardless of what's in the exchange model DTD].

By "stylesheet" you mean CSS, right? So can we issue a pull request with the proposed changes?

I don't think stylesheet (in that specification) is defined any more than what I quoted above. I read it to mean "anything that is used to style the document" - so it could just as easily be in the XSLT, setting a default of right (or leaving the default off for BiDi to let browsers handle it). My initial reaction would have been to update the XSLT to set alignment to right in any situation where the table itself is in an RTL context -- 1) closest @dir value is "rtl", or 2) no @dir specified and current language context would default to RTL.

In order to do the text alignment the browsers just need a correct RLT/LTR context (the dir attributes set on the ancestor HTML elements),so dealing with this from XSLT is redundant in my opinion.
Anyway, this is a a serious bug and no matter the solution, it needs to be fixed.

I think my preference would be to just remove the default (rather than calculating the default and specifying alignment in every case. This would allow browsers to do the right thing based on already-specified alignment or stylesheets. @jelovirt not sure if you are still following this one or have any opinion.

I'm the one who implemented the strict CALS based processing. The problem with CALS (OASIS table exchange model) is that it's ethnocentric from US perspective and does not recognize existence of LTR languages. The best option would be to move from left/right value set to start/end and just ignore what CALS/OASIS says.

I'll update this one to use a stylesheet default of no value, which in my reading is compatible with the OASIS exchange model, and (compatible or not) will restore the old processing of no-default.

Fixed in #2368

Great, thanks guys.

It is not solved for the vertical alignment. The cells are still aligned to the top by default.
It should be:
<xsl:variable name="valign" as="xs:string?">
        <xsl:choose>
         <xsl:when test="@valign">
           <xsl:value-of select="@valign"/>
         </xsl:when>
         <xsl:when test="$row/@valign">
           <xsl:value-of select="$row/@valign"/>
         </xsl:when>
          <xsl:when test="$body/@valign">
            <xsl:value-of select="$body/@valign"/>
          </xsl:when>
          <!--  PATCH START   -->
          <!--
          <xsl:otherwise>top</xsl:otherwise>
          -->
       </xsl:choose>


stuck at preparing build

Hey there,
as the title suggests my pipline is stuck at the preparing build stage. Following checks are pending

discovering any new versions of pull-request
waiting for a suitable set of input versions
pull-request - no versions available

I am running concourse locally inside containers.
I already tried fly check-resource and check-resource-type and both only output "resource checked"-
the only purpose of my pipline is to try this resource so they isn't any big logic behind it.
and yeah my repo is public.
No idea what the problem is :/

resource_types:
- name: pull-request
  type: docker-image
  source:
    repository: teliaoss/github-pr-resource

resources:
- name: pull-request
  type: pull-request
  check_every: 24h
  webhook_token: ((token))
  source:
    repository: <user/reponame>
    access_token: ((tokken))
    # disable_ci_skip: true

jobs:
- name: test
  plan:
  - get: pull-request
    trigger: true
    version: every
  - put: pull-request
    params:
      path: pull-request
      status: success
      context: ci/cd
  - task: unit-test
    config:
      platform: linux
      image_resource:
        type: docker-image
        source: {repository: alpine/git, tag: "latest"}
      inputs:
        - name: pull-request
      run:
        path: /bin/sh
        args:
          - -xce
          - |
            cd pull-request
            git log --graph --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" > log.txt
            cat log.txt

From your description, it sounds like you don't have any open pull requests on the repository you are tracking?

Thanks for your reply :)
This is also what i thought but i am not sure what i do wrong
This is the pull request: https://github.com/ClumsyPotato/GreetingsApp/pull/5
repository: ClumsyPotato/GreetingsApp
I am currently developing localy and triggering the pipline via UI or via a simulated webhook(basically a curl request to web)
Is is mandator that a webhook from github triggers the build? Or are there any other specific things that need to be fullfiled?

Nevermind it is working now. I guess i was just clumsy again


Add message to site to explain Javascript is required for best experience

What is the purpose of the work?
Add a message to the site to explain that Javascript should be enabled in order to get the best experience on the site
Why do we need it?
Following work carried out under #115, the site now displays when Javascript is disabled in the browser. However, some parts do not work correctly as they require Javascript.
A message should be added to explain words to that effect - eg "This site requires Javascript. Please enable Javascript in your browser for the best experience"
This might make use of the ic-alert.
It should apply to any page, as a user could come in via any url
Possibly it could site above the top navigation
It should only display when Javascript is disabled

Speak to design of where it appears


Service list does not have labels

I have the latest pull and the service labels in the table are like "list.col.name" are we missing some labels?
We need to fix this.

Strange after a refresh labels showed up ... strange.
Closing

It happens to me also, maybe it is related to the cache or the lag between showing the "key" and loading the file that contains the "value".


Added Tests

In this milestone of the Math Magician Application we :

set up React Testing Library.
wrote unit tests for the files operate.js and calculate.js using Jest.
created unit tests for all React components
used Jest snapshots to test the components.
used React Testing Library to simulate user interaction.

Thank you very much for the review. The required changes have been updated.


Improved some things to the Migration tutorials and added directory where the two paper configs are

Improved Migration From CraftBukkit or Spigot  by adding another step
Improved Migration From Vanilla  by adding another step
The step that I added to both tutorials:
Rename the downloaded file to match the name specified in the start command

@olijeffers0n Is it ok like this


[WIP] feat!: reduce enqueued-call gas limit to 1,500,000

Using this PR to see what CI jobs fail with out-of-gas. Printing gas left at the end of AVM simulation so I can see how much each test consumes.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#9207  👈
#9206
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @dbanks12 and the rest of your teammates on  Graphite

Closing as stale. We will likely lower it, but not back to 1.5mil


Use multiple H1s for multiple titles.

Closes #599.

Coverage remained the same at 100.0% when pulling 4752591d7ad65996a6709301ac83ac42ee15cd0e on multiple_titles into 3b19a009f7bc8abafcf4326c7450a6e0937454c6 on master.


Automatically retry a few times before report "failing", i.e. "flaky tests"

flutter_test :: test has a "retry" flag. but testWidget does not.

maybe we should implement a high-level retry by ourselves?

possibly related

Method A: Use built-in "retry" functionality
cons:

not sure why testWidgets does not support this. maybe intentionally, and it has bugs when retry?
does not have good outputs, so hard to visualize in Manager

Method B: Convert each tTestWidgets into multiple (say 3) testWidgets
In addition, dynamically control whether each converted test should be run or skipped.
(chosen) Method C: Convert each tTestWidgets into a test group, and each group has multiple (say 3) testWidgets
Similar to method B, but may be easier for visualization, and neater since things are grouped.

rough steps

[ ] implement this "make tTestWidgets into a group with multiple tests"
[ ] control when to skip a test or not
[ ] #32
[ ] visualize such "artificial" test groups differently than normal test groups in the Manager

let's firstly try method A before everything else.

Method A1: copy and paste widget_tester.dart and modify testWidgets function, passing in retry
Problem: That will force us to copy whole WidgetTester, then it is incompatible with other users.

sounds method A2 ok

next step:

[ ] detect whether it is flaky
[ ] display it

how to detect whether it is flaky

bug: wrongly marked flaky


speech: update google-proto-files

Fixes #2591
This will allow the enableWordTimeOffsets option to be set, and possibly other options that have been exposed in an update to the Speech proto files.

Coverage remained the same at 100.0% when pulling 25a7465d35a9aedba0d2b4aa41ad9131de1cdd62 on stephenplusplus:spp--2591 into 11b76fe1571d7ae57ca9178ec912bdeb4e8fad9e on GoogleCloudPlatform:master.


Confusing error from CFE when instantiating a class defined in two imports

Analyzer gives a nice error message like:
error • The name 'Foo' is defined in the libraries 'a.dart' and 'b.dart'

CFE gives an unhelpful error like:
Error: Method not found: 'Foo'.

Thanks for the report.  We actually do have plans to improve these, but we like to collect the unhelpful ones.

Example repro case:
Bazel BUILD file:
load("//dart:build_defs.bzl", "dart_vm_binary")
dart_vm_binary(
    name = "test",
    srcs = glob(["*.dart"]),
    script_file = "test.dart",
)

import1.dart file:
class ImportedClass {
  ImportedClass(int a);
}

import2.dart file:
class ImportedClass {
  ImportedClass(String a);
}

test.dart file:
import "import1.dart";
import "import2.dart";
void main() {
  ImportedClass(1);
  ImportedClass("a");
}

Building the above example results in the error messages:
test.dart:5:3: Error: Method not found: 'ImportedClass'.
test.dart:6:3: Error: Method not found: 'ImportedClass'.

Yeah, that's bad.  Thanks for the report.
/cc @askeksa-google @peter-ahe-google

With change 92261 we produce these messages:
test.dart:4:3: Error: 'ImportedClass' is imported from both 'import1.dart' and 'import2.dart'.
  ImportedClass(1);
  ^^^^^^^^^^^^^
test.dart:5:3: Error: 'ImportedClass' is imported from both 'import1.dart' and 'import2.dart'.
  ImportedClass("a");
  ^^^^^^^^^^^^^


[New Port Request] xgboost

Library name: xgboost
Library description: Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow
Source repository URL: https://github.com/dmlc/xgboost
Project homepage (if different from the source repository):
Anything else that is useful to know when adding (such as optional features the library may have that should be included):

If you wish to add this port in the future, you can reopen this issue, but we're closing it for now, consider making a pull request instead.


[Feature request] Mappings for go next/previous

Hi! Just a small request: there are already mappings for go(n), but often I want to go to the next or previous one without looking at whichever I have open. This is similar to bn and bN, but those may open buffers that are filtered out by bufferline.
I wrote a function for it, but thought other people may appreciate it if it was integrated into the plugin itself. Feel free to copy the code, or let me know if you'd like me to create the pull request.
function LightlineBufferLineGoNext(...)
    let offset = get(a:, 1, 1)

    let index = bufnr('%')
    let ordinal = lightline#bufferline#get_ordinal_number_for_buffer(index)
    if ordinal < 0
        echoerr 'Buffer not on tabline'
        return
    endif

    let buffers = lightline#bufferline#buffers()
    let count = len(buffers[0]) + len(buffers[1]) + len(buffers[2])

    let ordinal += offset
    if ordinal < 1
        let ordinal = count
    elseif ordinal > count
        let ordinal = 1
    endif

     let index = lightline#bufferline#get_buffer_for_ordinal_number(ordinal)
     if index < 0
         echoerr 'Buffer not found: ' .. ordinal
         return
     endif
     execute 'b' .. index
 endfunction

map <Tab> :call LightlineBufferLineGoNext()<CR>
map <S-Tab> :call LightlineBufferLineGoNext(-1)<CR>

Hi @dkaszews thanks for the suggestion. I added the feature in #115. Please let me know if it works for you.

@dkaszews this feature has been merged (e01bde9c58b3431dd9ef03a11bc7e022c9f8f060)


Upadate MIGRATING.md

fix typo

I know it's a trivial typo change, but please see instructions for the CLA.

Fixed by a different PR, closing as obsolete.


SpeechRecognizer - Channel is always 0 during speech recognition when using stereo WAV file

Describe the bug
When I use continuous speech recognition and observe the result of a property called "SpeechServiceResponse_JsonResult" the channel is always set to 0 even though I am using stereo WAV file - so the audio must be observed from LEFT or RIGHT channel as the speaker position is separated by that.
var speechConfig = SpeechConfig.FromSubscription(/*api key*/, /*region*/);
var audioConfig = AudioConfig.FromWavFileInput(filePath);
var recognizer = new SpeechRecognizer(speechConfig, audioConfig);

/* In recognized event handler */

var speechServiceResponseJsonResultJson = eventArgs.Result.Properties.GetProperty(PropertyId.SpeechServiceResponse_JsonResult);

var channel = 0;
if (speechServiceResponseJsonResultJson != null)
{
    var speechServiceResponseJsonResult =
        JsonConvert.DeserializeObject<JObject>(
            eventArgs.Result.Properties.GetProperty(PropertyId
                .SpeechServiceResponse_JsonResult));

    if (speechServiceResponseJsonResult.TryGetValue("Channel", StringComparison.InvariantCultureIgnoreCase, out var channelValue))
    {
        channel = channelValue.ToObject<int>();
    }
}

If relevant, a WAV file of your input audio.
993956cf-603a-4f7c-b5e0-37398e2b9df8.zip

To Reproduce
Steps to reproduce the behavior:

Create speech config instance with default params
Create audio config from wav file providing path to the wav file
Create recognizer with providing the speech and audio config
Start continuous recognition
Observe that when "Recognized" event is triggered and result is observed the PropertyId.SpeechServiceResponse_JsonResult and it's nested property "Channel" is always 0 even though the speech to text is recognized from a stereo wav file where speakers are spearated with LEFT and RIGHT channel.

Expected behavior
A channel should be detected by either 0 (left) or 1 (right) depending on the channel the text was detected from.
Version of the Cognitive Services Speech SDK
1.33.0
Platform, Operating System, and Programming Language

OS: Windows
Hardware - x64
Programming language: C#

@JakubHolovsky The feature you are asking is not currently supported, speech service side will downmix multi-channel to mono which will be then processed. What kind of user scenario you are working on? Maybe I can help further with more details on the scenario.

@jhakulin in my scenario I have a conversation split between two speakers. Speaker 1 is in LEFT channel, speaker 2 is in RIGHT channel of the stere .wav file. When I do the continuous transcription, I need to mark each sentence transcribed with the appropriate speaker.
Example:
Speaker 1 is saying "Hello, this is Mark" I expect channel to be set to 0 for that particular sentence as it's coming from the LEFT channel. When speaker 2 says "Hello, this is Adam, thank you for calling" I expect speaker 2 channel to be set to 1 as it's coming from the RIGHT channel.
Is there any workaround to be used if I cannot rely on the channel property?
I saw that I could use the batch processing API but that requires a bit different approach.

@JakubHolovsky For your scenario, we have real-time speaker diarization https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-stt-diarization?tabs=macos&pivots=programming-language-csharp which you can use or batch transcription https://learn.microsoft.com/en-us/azure/ai-services/speech-service/batch-transcription which supports speaker diarization as well. Real-time speaker diarization detects the speakers from mono audio, you can also input multichannel audio in wave PCM format if you like.
Let us know if those would fit to your project and if not what kind of problems you see.

@jhakulin Thank you, I decided to split the wav file into two mono L & R files and process them in parallel and combine the results at the end. That will give me exactly what I am after without many changes. Appreciate your help though.

@jhakulin Thank you, I decided to split the wav file into two mono L & R files and process them in parallel and combine the results at the end. That will give me exactly what I am after without many changes. Appreciate your help though.

Hi @jhakulin , Could you please guide me, how you are merging L & R files in sync?


Rock paper scissor using html, js, css

Project name rock paper scissor
About in brief
basically, the user will be presented with three choices rock, paper, and scissors. based on the choice of the user and the random choice made by the computer user will either lose or win the game.
The logic part is written using javascript.
Happy Hacking

Hi, I'd be glad to take a crack at this one if it still needs some help!

please can you assign me this project ?
I have done this project of rock-paper-scissor

please can you assign me this project ? I have done this project of rock-paper-scissor

Bro checkout any other project and if u have any other project then make issue for that as it is assigned to me and I have already completed it,I just have to make PR


关于build的问题

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "move_base_msgs"
with any of the following names:
move_base_msgsConfig.cmake
move_base_msgs-config.cmake

Add the installation prefix of "move_base_msgs" to CMAKE_PREFIX_PATH or set
"move_base_msgs_DIR" to a directory containing one of the above files.  If
"move_base_msgs" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
unitree_guide/unitree_move_base/CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/rsd/guide_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/rsd/guide_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
在catkin_make后出现以上错误，这是什么问题呢？

解决了，原来没有安装包，
sudo apt-get install ros-melodic-move-base-msgs

你好，是的，这就是由于move-base的东西没有安装


MSR and HiR for latent diffusion model ?

Thanks for the great work !
I can not see codes example using HiR method .
the solution of MSR and HiR,  only work in pixel space, doesn't apply to latent space ,because the consistency can't be satisfied in latent space ?
Consistency : Axˆ ≡ y, Realness : xˆ ∼ q(x),

Hi, the code of HiR is not updated yet in this repository (sorry, I'm too busy recently. But I think you may implement it by just changing a few lines of code following the paper).
For latent space, you can use x=D(z), where D is the decoder, and optimize the consistency constraints rather than use RND. This can work, but may not yield results as good as in the pixel domain with RND.


Request timed out after

=========================== logs ===========================
→ POST https://api.capsolver.com/createTask
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
accept: /
accept-encoding: gzip,deflate,br
content-type: application/json
content-length: 52577

This appears to be a network-related issue.


Conceals passwords

This pull request resolves #35

Thanks for the contribution. I don't remember anymore where we already discussed this, but it's unfortunately not that simple, just to change the type of the input control.
First — why at all? What's the problem with clear text field? Are people looking over your shoulder, when you create a note?
Second — if we hide the characters, we need at least two fields to repeat the password, because otherwise how do you know you have no typos in your password?

Yes, and it let's your browser remember the password for you. Although in some this might even be a disadvantage if you collaborate on a note since it will use the same password for all your notes.
There might be other security or accessibility benefits that I don't know of.
I have to admit I didn't think of the second issue and I mostly solved this because I was looking for a simple task in a NodeJS app to test with GoMix.
Might be best to just close #35  as Wont fix.


aopted changes from https://github.com/AnacondaRecipes/behave-feedsto…

…ck/pull/2
Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe/meta.yaml:

ℹ The recipe is not parsable by parser conda-recipe-manager. The recipe can only be automatically migrated to the new v1 format if it is parseable by conda-recipe-manager.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12495459060. Examine the logs at this URL for more detail.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.


⚠ Samsung has degraded performance

In 89632a5, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2291 ms

Resolved: Samsung performance has improved in cbad939.


⚠ Fetchers has degraded performance

In dd4f697, Fetchers ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 255 ms

Resolved: Fetchers performance has improved in 55c5875.


Having record builder using JSON schema

I am trying to build a generic record from JSON schema dynamically using SchemaBuilder and RecordBuilder.
Below is the code snippet
`
val recordBuilder = SchemaBuilder.record("testJson")
recordBuilder.field("eventType").type(SchemaType.STRING)
val si: SchemaInfo = recordBuilder.build(SchemaType.JSON)
val pulsarSchema = org.apache.pulsar.client.api.Schema.generic(si)

val builder: GenericRecordBuilder = pulsarSchema.newRecordBuilder()
builder.set("eventType", "test")
val pulsarGenericRecord: GenericRecord = builder.build()`

And got this exeception (Pulsar version 2.6.1)
Json Schema doesn't support record builder yet java.lang.UnsupportedOperationException: Json Schema doesn't support record builder yet 	at org.apache.pulsar.client.impl.schema.generic.GenericJsonSchema.newRecordBuilder(GenericJsonSchema.java:78)
Is there other way to build this generic record from JSON schema other than using static POJO ?

@hanguyen6 Currently, Pulsar only supports AVRO Generic Schema. I labeled as type/feature

@codelipenghui  thanks for confirmation. Is there other way I can build record dynamically using json schema ?

@hanguyen6 Have you tried using schema.JSON(Map.class)? I'm not sure if this can work for your case.

I can work on it. :)

@codelipenghui  This feature has been completed by @vroyer . see #10052
I think we can close this issues.

The issue had no activity for 30 days, mark with Stale label.


Layout: add link to dashboard in header

Closes #71

Requested by @moneyball

Tested ACK 40ab01748b183257f1be10aec34d4f2c6100c585

utACK


Using set /w proc leads to confusing behavior with append, validation, mutation

Background:
The set :var, -> { ... } style of passing a Proc to delay execution is a fairly common technique to set values that are lazily executed. This is similar to the let syntax in RSpec.
Typically (in my experience), we do this when one variable depends on another. For example, it is often the case that a value must include the stage name. At the time of declaring a variable in deploy.rb, the stage has not yet been loaded. So we do this:
# For example
set :log_file, -> { "#{fetch(:stage)}.log" }

Later, when we fetch(:log_file), the Proc is called and we get e.g. production.log. So far, so good.
However, if we want to mutate a lazily evaluated variable, then we get into trouble. Consider this:
set :log_files, -> { ["#{fetch(:stage)}.log"] }
append :log_files, "httpd.log"

The append call has a side-effect of immediately "dereferencing" :log_files. So when we later fetch(:log_file), we git this: [nil, "httpd.log"].
Another example. Imagine we have a Capistrano plugin that automatically manages environment variables used for our server process. It expects a Hash and initializes it to this default value:
# Default value
set_if_empty :server_env, -> { { "RAILS_ENV" => fetch(:stage) } }

What happens when we want to mutate the Hash?
# In deploy.rb
fetch(:server_env)["NEW_KEY"] = "value"

Oops, once again, when we later fetch(:server_env), we get: { "RAILS_ENV" => nil, "NEW_KEY" => "value" }.
This problem has plagued many plugin developers. People have gone great lengths to work around the problem, which ultimately makes it hard to understand what Capistrano is actually doing.
For example, in capistrano-rails, a hack is used to hook into the stage loading process:
# All this code just to set a single variable!
namespace :deploy do
  task :set_rails_env do
    set :rails_env, (fetch(:rails_env) || fetch(:stage))
  end
end

Capistrano::DSL.stages.each do |stage|
  after stage, 'deploy:set_rails_env'
end

Likewise, to append the assets directory to :linked_dirs, we can't simply set :linked_dirs to a Proc, since it very likely will get dereferenced by the user or by other plugins. So another hack is needed:
# we can't set linked_dirs in load:defaults,
# as assets_prefix will always have a default value
namespace :deploy do
  task :set_linked_dirs do
    set :linked_dirs, fetch(:linked_dirs, []).push("public/#{fetch(:assets_prefix)}")
  end
end

after 'deploy:set_rails_env', 'deploy:set_linked_dirs'

I don't have a suggestion yet on how to improve this, but I would like to start the discussion.

Additionally, Procs also cause problems with validation, as discussed here: https://github.com/capistrano/capistrano/pull/1683

Some ideas:

Add a stage:loaded task that is empty, but can serve as a hook for plugin developers so they can set values after a stage's overrides have been loaded.
Make append "proc-aware" so that it lazily appends values if it detects the Array is lazily defined.
Likewise for lazy validation.
Add a merge DSL that does the same thing as append, but for lazily merging values into a Hash.

I'm not really happy with these solutions, just because the goal should be to make Capistrano simpler, yet these solutions all involve adding or expanding APIs, thereby increasing what users need to understand in order to use the tool.


What are the situations "setMenuPosition" runs or reposition the menu

First of all thanks for this awesome date time picker in vuejs composition API.
Let's come to my issue
I have a carousel with multiple cards each cards have time label at top right, when I click there the date picker opens i can update the date or time that works well, Because of the carousel the last card date picker menu is little bit overflow to the right not visible the select button in viewport i fixed that by calculating the free space to the right side of the browser window and move a bit to the left to adjust the position that too works well, but when I click on any day, click on next,prev Arrow ( month's ) select a tim, then the menu recalculate the position and come back to the real one, how can I fix that ? is your version 2.5 comes as responsive one then that fixes this issue by default  ?

Can you provide some kind of a demo code so I could check the issue?

Can you provide some kind of a demo code so I could check the issue?

sorry can't share the exact code because it's company project, anyway i will try to make a codesandbox demo based on the issue ( it will take some time sorry for that )

@Jasenkoo here is the demo https://codesandbox.io/s/rough-water-93o32
please click on the last card ended label ( top right of the card ) ( if something not works open in incognito )
ignore the scrolling below ( not responsive now ) in my case it's responsive can't scroll again, thank you

Tnx, will be fixed in v2.5

Investigated your reported issue. So far this is an edge case and I can't provide some uni solution, since it may cause unwanted positioning behavior. In the upcoming version, there will be an option to stack multiple calendars one below another and not in a single row. Or I can also provide an event on position recalculation and you can handle it that way. Would that solve your issue?
I can also make a prop that will auto position based on on-screen position, but it may move depending on the window.

I understood I have to use the multiple calenders as now
I fixed the positioning by this way please check the codes
at first I call agendaDpOpen when opening the picker menu
agendaDpOpen() {
      setTimeout(() => {
        this.convertHtmlCollectionsToArray()
      })
    }

from there I have to get the dp__menu  element
convertHtmlCollectionsToArray() {
      const shapesHC = document.getElementsByClassName('dp__menu')
      const shapesArrHCSpread = [...shapesHC]
      if (shapesArrHCSpread) {
        this.setDpMenuPosition(shapesArrHCSpread)
      }
    }

if I have the dp__menu element then call setDpMenuPosition to reposition  the picker menu
(I really don't know how to access the dp__menu by ref )
then on setDpMenuPosition i do this I hope you can understand this block of codes.
setDpMenuPosition(shapesArrHCSpread) {
      let dpMenu = shapesArrHCSpread[0]
      const el = this.$refs && this.$refs.tcstBuilderAgendaDp

      if (el) {
        const { right, width } = el.getBoundingClientRect()
        const fullWidth = window.innerWidth

        const freeSpaceRight = fullWidth - right - width

        if (freeSpaceRight < 0) {
          const dpMenuStyle = dpMenu.style
          dpMenu.children[0].style.left = '90%'
          dpMenuStyle.animation = 'slide-out'
          dpMenuStyle.animationDuration = '0.5s'
          dpMenuStyle.animationDirection = 'forwards'
          dpMenuStyle.left = `${right - 239.4}px`
        }
      }
    }

this method works well on opening the picker menu, but when i click on next & prev month icon, select a time in a time-picker the position comes to old one, if you can alternate this code a little bit then I'm happy i can manage this issue like this for now.
if i can prevent reposition menu on other clicks or i can reposition again using this methods that will be helpfull.

Ok, then I will emit an event when the calendar is repositioning, so you can handle  the event @recalculatePosition="convertHtmlCollectionsToArray"

Ok, then I will emit an event when the calendar is repositioning, so you can handle the event @recalculatePosition="convertHtmlCollectionsToArray"

Yep I hope that will work well, thank you, is there any timeline for the 2.5.0 release ?

@Jasenkoo I tired another trick to fix, it works well
Dynamic CSS varible method ( in vue 3 there is a state driven css( v-bind) that won't work here with this picker beacause of the teleport feature )
add a :root varible in the css section (initial left is 0px)
:root {
  --leftPos: 0;
}

inside setDpMenuPosition  method add
const r = document.querySelector(':root')

then when there is no free space on the right assign
r.style.setProperty('--leftPos', `${right - 239.4}px`)

also we need a Boolean to know there is free space on right or not ( this is for adding conditional menuClassName
this.hasFreeSpaceRight = false
hasFreeSpaceRight  deafault is true
then we need to add css to do the job
.dp-custom-menu-agenda-time {
  left: var(--leftPos) !important;
  animation: 0.5s forwards slide-out;
}
@keyframes slide-out {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

we can add this css class to date-picker component menuClassName
:menuClassName="!hasFreeSpaceRight ? 'dp-custom-menu-agenda-time' : ''"

Here is the full code of setDpMenuPosition
setDpMenuPosition(shapesArrHCSpread) {
      let dpMenu = shapesArrHCSpread[0]
      const el = this.$refs && this.$refs.tcstBuilderAgendaDp
      const r = document.querySelector(':root')

      if (el) {
        const { right, width } = el.getBoundingClientRect()
        const fullWidth = window.innerWidth
        const freeSpaceRight = fullWidth - right - width

        if (freeSpaceRight < 0) {
          this.hasFreeSpaceRight = false
          dpMenu.children[0].style.left = '90%'
          r.style.setProperty('--leftPos', `${right - 239.4}px`)
        }
      }
    },

this will do the fixes for now maybe usefull fror someone who read this later
and I'm also waiting for your recalculatePosition event but maybe if recalculate the Position everytime there will be a little sshaking for the menu i think hope we can fix that with css ! ( please check this too )

Will do, thanks 😄

Included in the v2.5.0

@Jasenkoo I tried the new version sadly the issue is not resolved
the recalculation event is not emiting on

clicking on a date number in the calender
click on next or prev button to change the months
click on timepicker numbers

@Jasenkoo can you provide a example with altPositionProp function
I tried this but not getting anything in the console, tell me i did something wrong ( I'm not sure this is the right way to do this )
:altPosition="getAltPos"

getAltPos() {
      console.log('test')
      return { top: '633px', left: '850px' }
    },

@Codefa return the same object without the px, just numbers. Hope it helps


Disallow 🤖

What
There's no reason for this page to be indexed by search engines
independently from their host page so we add the "nofollow" and
"noindex" tags via robots.txt and X-Robot-Tag header.
How to review
Code review
Who
Not me or any robots

LGTM. Good catch.


Add file dialog box to simulate.

Since we already a working, native (as opposed to AppleScript) version on macOS, I'd prefer to just implement the Win32 version ourselves (https://learn.microsoft.com/en-us/windows/win32/dlgbox/open-and-save-as-dialog-boxes), then see if we can just rely on either Zenity or KDialog for Linux users.

@saran-t Was just testing out cmake integration, but noted!


[switchdev 4/x] split systemd service to two parts

split systemd service to two parts:
The first part is executed before the
NeworkManager or systemd-networkd
starts on the host.
The second part is triggered after the
network configuration is complete.
This change is required to support hw offload
use-case with systemd service.
cc @adrianchiris @zeeke @SchSeba

/test-all

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

-53 of 118 (55.08%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+3.2%) to 28.308%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/daemon/daemon.go
0
8
0.0%

pkg/plugins/k8s/k8s_plugin.go
55
63
87.3%

pkg/systemd/systemd.go
7
44
15.91%

Totals

Change from base Build<PHONE_NUMBER>:
3.2%

Covered Lines:
3145

Relevant Lines:
11110

💛  - Coveralls

PR updated to add tests for systemd service


python310Packages.draftjs-exporter: 2.1.7 -> 5.0.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.draftjs-exporter is: Library to convert Draft.js ContentState to HTML
meta.homepage for python310Packages.draftjs-exporter is: https://github.com/springload/draftjs_exporter
meta.changelog for python310Packages.draftjs-exporter is: https://github.com/springload/draftjs_exporter/blob/v5.0.0/CHANGELOG.md
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 5.0.0 with grep in /nix/store/cys2ybq1jin7jiswhk0dvdibg94d2whx-python3.10-draftjs-exporter-5.0.0
found 5.0.0 in filename of file in /nix/store/cys2ybq1jin7jiswhk0dvdibg94d2whx-python3.10-draftjs-exporter-5.0.0

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

8 package rebuild(s)

First fifty rebuilds by attrpath
python310Packages.draftjs-exporter
python310Packages.wagtail
python310Packages.wagtail-factories
python310Packages.wagtail-localize
python311Packages.draftjs-exporter
python311Packages.wagtail
python311Packages.wagtail-factories
python311Packages.wagtail-localize

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/cys2ybq1jin7jiswhk0dvdibg94d2whx-python3.10-draftjs-exporter-5.0.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.draftjs-exporter https://github.com/r-ryantm/nixpkgs/archive/a265942f312d5f1645ec5210583521196062c634.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/cys2ybq1jin7jiswhk0dvdibg94d2whx-python3.10-draftjs-exporter-5.0.0
ls -la /nix/store/cys2ybq1jin7jiswhk0dvdibg94d2whx-python3.10-draftjs-exporter-5.0.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

6 packages failed to build:

python310Packages.wagtail
python310Packages.wagtail-factories
python310Packages.wagtail-localize
python311Packages.wagtail
python311Packages.wagtail-factories
python311Packages.wagtail-localize

2 packages built:

python310Packages.draftjs-exporter
python311Packages.draftjs-exporter

Maintainer pings
cc @sephii for testing.

draftjs-exporter was specifically packaged as a dependency to python3Packages.wagtail. Upstream wagtail depends on draftjs-exporter>=2.1.5,<3.0 so we should make sure it works with 5.0.0 before updating it in nixpkgs.

Already on master.


Introducing JSX

Pull Request for merging the translation of Introducing JSX into master.

@seraco, after some small corrections it's good to merge from my point of view


tc-payments integration

Adds the new tc-payments contract to PoE bootstrap.
Publishing as Draft for early review.
TODO:

Update wasm to latest release (tgrade-contracts v0.10.0)
Adapt payments tests (TestQueryWithdrawableFunds) to new payments contract / workflow.
Integration tests.
Confirm tc-payments EndBlock privilege registration / calling.
Extend bootstrap tests (if needed).
System tests.
Extra tests?

As discussed, we are not going to do this before mainnet.
Follow up via https://github.com/confio/matadores-backlog-collection/issues/27


document using -t tls-alpn-01 with lighttpd

document using -t tls-alpn-01 with lighttpd
lighttpd supports TLS-ALPN-01 without the need for a separate acme-tls/1 responder.

Cool, thx.


Assert failure in HandleTransmitDone with operation kOperationIdle

Description
Occassionaly while using the ot-cli-ftd device with two of the cc1352 launchpads, I will get an assertion failure in HandleTransmitDone() on one of them. For some reason the operation type is kOperationIdle.
To Reproduce

Git commit id: e0bc277ccbf7c22ea6dee55144008388c1723ec0
Platform CC1352
make -f examples/Makefile-cc1352 JOINER=1 COMMISSIONER=1
Network topology:
The topology consists of a border router using an NRF52840 dongle as a NCP with a raspberry pi, which will for example execute a ping command as follows to each of the two identical cc1352 launchpad devices within its neighbor table sequentially.
ping -6 -s 10 -c 20 <ip of first cc1352>
then
ping -6 -s 10 -c 20 <ip of second cc1352>

the second one will consistently fail and go into that assert failure in src/core/mac/mac.cpp:1488
Expected behaviour
It is expected that both devices respond to the ping request and are not influenced by each other.
Additional Notes
If there is only one of these cc1352 launchpads in the same network as the border router, then it works perfectly. As soon as a second one is added, the above steps cause the error.
Also if I don't do anything with the devices i.e. no explicit ping commands or packets, then, they stay connected indefinitely.
Any suggestions on what could be causing this or where to start looking?

@eujean , do you have a sniffer log of this happening? I'll setup my own network to investigate, but that may take some time.
My hunch is that the ack frame from node A is being picked up by node B and the sequence number matches the last transmitted frame of node B. Unlikely, but not impossible.
For the platform driver for the TI SDK we make sure to only call otPlatRadioTxDone when the radio was requested to transmit. It should be sufficient to check cc1352_stateTransmit == sState before notifying the upper layers. If the problem is what I think it is.

@srickardti Find attached a capture of when this occured. In this capture, the border router is 0x8400, the first node being pinged is 0x0800 and the node which fails is 0x5400. Please let me know if you need more information regarding this.
assert_failure_capture.zip
Now that you mention it, when I started with the cc1352 I used the examples provided by the simplelink sdk. And looking at their platform driver for the radio, they have a platformRadio_phyState_Transmit != sState with the comment "We only care about ACKS in TX state". their radio.c is somewhat different so not sure if I'm looking in the right place, but I don't recall having seen this problem with their example, so I will do a few quick tests and let you know.

I think either the thread masterkey is not the OpenThread default, or we missed some packets at the beginning. I'm unable to fully decode the capture.
But it looks like the node in question is ext addr 6a:93:64:b1:f4:79:92:b7 and advertises becoming a router in packets 39 and 43, based on the sequence numbers. Packet 43 has sequence number 44 and is a broadcast, that would drop us out of transmit state as soon as the packet is transmitted. But the transmit buffer isn't cleared out. It takes a while, but the node with short address 0x8400 wraps its sequence number and counts up to 44. Once that happens, the first node hears the ack with a matching sequence number and blindly tells the upper layers that a transmit was done.
You are correct, the radio.c in the SimplelinkSDK is a bit more complicated. It interacts with the RF driver to manage the radio's power states and apply the latest RF characterization settings. But yeah, that's the comment I was referencing. I implemented ack matching in the SimplelinkSDK first and then back ported it to the github project. I think this was just carelessness on my part.

These changes might fix your issue: https://github.com/srickardti/openthread/tree/openthread-next

Yes sorry I forgot that I changed the masterkey during my testing.
Thank you for the fix, I will try it out and let you know if it solves the problem.

@srickardti It seems to work with that change.
Thank you!


Feature/rowspan

Hi @slowpilot, would it be possible to add a test case and a short description of what problem you're trying to solve?

I am solving the inability of vertical table cell merging. I will add the test case later. I was in big trouble without this feature :)


change port in external-logical-cluster-admin kubeconfig when exposing front proxy directly

When exporting the front proxy directly via a LoadBalancer service, this kubeconfig needs to be updated to use the correct external port. This matches the EXTERNAL_PORT environment variable set in the kcp Deployment, but we cannot read from it here, so we need to replicate the logic.

/cc @mjudeikis

/approve
/lgtm


[MAS4.2.2] [Screen Reader-Open bot dialog] Narrator is not reading the state for Check boxes when the user selects the check boxes

Actual Result:
Narrator is not reading the state for “Open in debug mode and Azure for US Government “ Check boxes when the user select the check boxes present in the open bot dialog.
Expected Result:
Narrator should narrate as “Open debug mode check box checked \unchecked depends on user selection
Note: Issue is not repro’ing with NVDA
Note: Issue exits throughout application for all check boxes
Repro Steps:
Turn on the narrator

Open the Bot Framework V4 Emulator.
Welcome tab screen gets opened
3.Navigate to the open bot control and select it
4.Open bot dialog gest opened
5.Navigate to the  "Debug mode and Azure for US Government" checkboxes.
Observe the issue.

User Impact:
Users who rely on screen reader will be affected if the state is not narrating the checkboxes  screen reader users will be  misguide the check box checked \unchecked.
Test Environment:
OS Build: Version 1903(OS Build 18362.239)
Browser: Edge
Application: Bot Framework V4 Emulator
Screen reader: Narrator
MAS Reference Link:
https://microsoft.sharepoint.com/:w:/r/teams/msenable/_layouts/15/WopiFrame.aspx?sourcedoc={216e5b88-a1f8-425c-83e8-11bc4e4d74be}

MAS4.2.2_Open bot dialog.zip

Verified. Issue is working fine in NVDA. Hence Closing the issue
NVDA Version: 2019.1.1


Add Bulgarian Academy Of Scienece Email Domain

website: http://ir.bas.bg/

@DSt00 First stage of verification passed, official domain is bas.bg as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@DSt00 Pull request merged. Thank you!


build.ps1 and dotnet cake do not behave the same with the same build.cake file

What You Are Seeing?
The new dotnet cake tool fails to run the build script where the build.ps1 file works as expected.
What is Expected?
Both ways of executing the build.cake file should be equivalent.
What version of Cake are you using?
Tested with 0.38.1 and 0.38.1
Are you running on a 32 or 64 bit system?
64bit
What environment are you running on?  Windows? Linux? Mac?
Windows 10 latest updates
How Did You Get This To Happen? (Steps to Reproduce)
Minmal working example
build.cake content where the 2nd line causes the problem.
#addin nuget:?package=SimpleExec&version=6.2.0
#addin nuget:?package=Cake.Powershell&version=0.4.8

var target = Argument("target", "Default");

Task("Default")
    .Does(() =>
    {
        Information($"The script was executed!");
    });

RunTarget(target);

Output Log
Analyzing C:/Github/mwe-buildps1-vs-dotnet-cake-tool-not-equal/build.cake...
Processing build script...
Installing addins...
The addin SimpleExec will reference SimpleExec.dll.
Error: Cake.Core.CakeException: Failed to install addin 'Cake.Powershell'.
   at Cake.Core.Scripting.ScriptProcessor.InstallAddins(IReadOnlyCollection`1 addins, DirectoryPath installPath) in C:\projects\cake\src\Cake.Core\Scripting\ScriptProcessor.cs:line 114
   at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments) in C:\projects\cake\src\Cake.Core\Scripting\ScriptRunner.cs:line 152
   at Cake.Commands.BuildCommand.Execute(CakeOptions options) in C:\projects\cake\src\Cake\Commands\BuildCommand.cs:line 41
   at Cake.CakeApplication.Run(CakeOptions options) in C:\projects\cake\src\Cake\CakeApplication.cs:line 45
   at Cake.Program.Main() in C:\projects\cake\src\Cake\Program.cs:line 81

@StefanOssendorf I believe I am right in saying that this is working as expected (at least from my point of view).  Let me try to explain...
If you run the default bootstrapper, which is located here:
https://github.com/cake-build/resources/blob/develop/build.ps1#L255
You will see that it is running Cake.exe which uses .Net Framework.
Invoking dotnet cake uses the .Net Core runtime.  As a result, although the cake script is exactly the same, they are running on a different runtime.
The Cake.PowerShell addin is only compiled to work on .Net Framework, or Mono, not on .Net Core.  As a result, you are seeing the error that you are seeing.
Currently, we don't have an official example build.ps1 which invokes the .Net Core version of Cake, but there are examples out there, including in Cake's own repository here:
https://github.com/cake-build/cake/blob/develop/build.ps1
If you are looking to run Cake with .Net Core, I would suggest that you replace your current build.ps1 with the above.
However, doing this, will mean that you can't use Cake.PowerShell addin.
Does this make sense?

To know which add is work with which framework, you can have a look here:
https://github.com/cake-contrib/Home/blob/master/Audit_for_Cake_0.33.0.md

@gep13  Thanks for this great explanation. Yeah that makes a lot of sense. Did not think about that possibility.
I'll try to get in touch with the Powershell author to update it to netstandard if possible. So I'll close this.
Thanks again!


Change the look of this button and format the text

Since on hovering over the button, the button is being highlighted this means there is no use of that underline under the Start button and also this underline is effecting the look of the button. And also the line Start Your Voting Contribution is too close to the button. See this image

[ ] Remove the underline
[ ] Gap b/w the button and the line
[ ] Change the color of line Start Your Voting Contribution to either green or orange

@QAZIMAAZARSHAD Should I work on this issue??

go ahead

i would like to work on it

i would like to work on it

This issue is already assigned, look for any other issue.


⚠ Bofrost.de has degraded performance

In 09c5903, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1626 ms

Resolved: Bofrost.de performance has improved in 5d3b131.


parent attribute in Meta class of DocType is not supported

Even though the documentation says that you could have an attribute named parent in the Meta class inside a DocType subclass. The code doesn't support that
Example:
If I want to construct the following mappings
    "mappings" : {
      "blog" : {
        "properties" : {
          "description" : {
            "type" : "string",
            "analyzer" : "caseinsensitive_analyzer"
          },
      },
      "post" : {
        "_parent" : {
          "type" : "blog"
        },
        "_routing" : {
          "required" : true
        },
        "properties" : { }
      }

From the documentation it seems like you should be able to do:
class Blog(DocType):
  description = String()

  class Meta:
    index = 'my_index'

class Post(DocType):
  class Meta:
    index = 'my_index'
    parent = 'blog'

but this will result in the following mappings
    "mappings" : {
      "blog" : {
        "properties" : {
          "description" : {
            "type" : "string",
            "analyzer" : "caseinsensitive_analyzer"
          },
      },
      "post" : {
        "properties" : { }
      }

Instead you have to find a workaround and do the following to create the desired mapping.
class Blog(DocType):
  description = String()

  class Meta:
    index = 'my_index'

class Post(DocType):
  class Meta:
    index = 'my_index'
    mapping = Mapping('post')
    mapping.meta('_parent', type='blog')

I am curious where in the documentation did you find the mention that you should be able to just say parent = "blog". That is not the case and the documentation needs to be clearer about that. I am sorry it misled you.
The solution you labeled as a workaround is currently the only solution and it is the recommended way. I experimented with other ways to map meta fields, but none of them felt natural (no objective reasons). Settings things like parent type is easy enough as you describe it, but with more complicated stuff like defining _all with analyzers etc it would imho get out of hand:
class Post(DocType):
    class Meta:
        all = {'enabled': False}
        routing = {'required': True, 'path': 'post.author.id'}

That is why I opted for the more explicit approach:
class Post(DocType):
    class Meta:
        mapping = Mapping('post')
        mapping.meta('_all', enabled=False)
        mapping.meta('_routing', required=True, path='post.author.id')

Does this make sense? I am definitely open to suggestions, or if people think that this wouldn't be an issue I would love to hear that too.

I guess it's not said in the documentation explicitly, but I expected it from the design of the Meta class.. And the reference to setting parent through meta attribute of a DocType instance threw me off (in https://github.com/elasticsearch/elasticsearch-dsl-py/blob/master/docs/persistence.rst), also DOC_META_FIELD had parent in it too (https://github.com/elasticsearch/elasticsearch-dsl-py/blob/master/elasticsearch_dsl/document.py#L12).
What you are describing makes sense. Imho it would have been perfect if one wouldn't need to create a Mapping instance if dealing with DocType's. I'm actually not sure which one of the two snippets I'd prefer.   What if you make meta be a stand alone function and do something like this in order to make sure correct parameters are passed.
class Post(DocType):
    class Meta:
        all = meta(enabled=False)
        routing = meta(required=True, path='post.author.id')

This is just a suggestion. It will avoid creating a Mapping, and needing to reuse the same literal 'post'

Thank you @mamikonyana for your help designing this, I opted for MetaField instead of meta, but it should work.


Suggestion: Modular platform and app makefiles

One major improvement that could be made to cFE is the ability to specify which apps to build and which platforms to build for at runtime, instead of by changing the Makefiles. CACTUS has a rudimentary implementation of this (see https://github.com/CACTUS-Mission/cFE/commit/bec0b577f2d0f788c17fe212d6a78b2c4cad3f5e) so that we can declare THE_APPS as an environment variable. I think it would be a huge improvement to the build process to be able to optionally declare THE_APPS, PSP, BSP, and more at the make command line, i.e.
make THE_APPS="sample_lib sample_app"

Some tricks may need to be done to allow this to propagate to make sub-tasks, as those variables would only be accessible in the Makefile in the directory the command is run.

There is better support for this in cFS 6.6 which uses cmake and can define target specific apps. 6.6 should be available for public release soon.


Fix poetry build

The repository structure has been reorganized in order for the command to function. This is one step closer to publishing the package to pypi.

Forgot to change README.

Regression: Running ax-get with the src option no longer works.
Reproduce using: 'ax-get --src 6 0 11'
Issue lies in line 215 in script.py.

README.rst has been changed.

Apparently, it is not a regression from this pull request. The get() function from tmp_name includes '/tmp' in the value it returns.


Add gallery storage account type option

This PR adds an option allowing to configure the Gallery Image Version storage account type.

Thanks for this PR. I can definitely accept it, but it currently has the downside that it's not backwards compatible.
People pulling in the new version but not having the proper variable set up in DevOps will have it now fail.
Do you see any way to avoid this?
Additionally, could you provide the possible values of this variable in the readme (or a link to the docs explaining the values)?

Hi @YannickRe Have you seen my previous reply? Can you point me to a way forward? Thanks

@robbert-nlo I have implemented the fallback and merged your PR.
Thank you for the work!


[SPARK-11727][SQL] Split ExpressionEncoder into FlatEncoder and ProductEncoder

also add more tests for encoders, and fix bugs that I found:

when convert array to catalyst array, we can only skip element conversion for native types(e.g. int, long, boolean), not AtomicType(String is AtomicType but we need to convert it)
we should also handle scala BigDecimal when convert from catalyst Decimal.
complex map type should be supported

other issues that still in investigation:

encode java BigDecimal and decode it back, seems we will loss precision info.
when encode case class that defined inside a object, ClassNotFound exception will be thrown.

I'll remove unused code in a follow-up PR.

cc @marmbrus

Merged build triggered.

Merged build started.

Test build #45863 has started for PR 9693 at commit 7e4f7fe.

Test build #45863 has finished for PR 9693 at commit 7e4f7fe.

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

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

Merged build finished. Test PASSed.

when encode case class that defined inside a object, ClassNotFound exception will be thrown.

I have a fix for this, but I'm still working out some repl issues.


Getting fontSize key from Theme in String Styles require unit

Hey 👋
I came across this unexpected issue earlier, and wanted to verify if this is intended or not.
I'd like to set a default font-size to a Component. The value comes from theme.fontSizes.
With String Styles:
// When styling with String Styles the unit (px) is required
export const Heading = styled.h1`
  font-size: ${themeGet("fontSizes.2")}px;
`;

With Object Styles:
// When styling with Object Styles the unit is not required
export const Text = styled("p")({
  fontSize: themeGet("fontSizes.1")({ theme })
});

I've created a CodeSandbox Demo 👀
Cheers
👊

Yup, this is generally how the styled-components and emotion APIs work. Styled System isn't doing anything special here. It's similar to using number types in the React style prop

Ahhhh, yes, totally. Should’ve remembered this! Thanks!


Paper writing sprint tasks

These are tasks to be undertaken during the open science hack paper sprint.
Abstract

[ ] Add abstract

Introduction

[ ] Add introduction

Status of Open Science in Kenya: Literature search
The tasks of this section are based on the findings about the status of open science in Kenya.

[ ] Availability of ICT infrastructure to support open science
[ ] Availability of institutional repositories to host research publications and data storage.
[ ] Research data management policies and incentives from the government, local funders and institutions
[ ] Open access publishing policies and incentives from the government, local funders and institutions
[ ] Creation of awareness of open science through open access week in universities, workshops e.t.c.

Data Mining
This section has tasks that access the publishing trends of Kenyan authors.

[ ] The publishing trend of Kenyan researchers
[ ] The adoption of pre-prints by Kenyan researchers. Who drives the adoption of pre-prints among Kenyan authors?
[ ] Collaboration trends among Kenyan authors based on pre-prints data and already published research (from mining PubMed literature).

Low-Cost Open Access publishing
The task of this section comprises discussing the availability of waivers and subsidies from authors in developing countries.

[ ] Availability of waivers and subsidies for authors in developing countries (low income and lower middle income countries).

Discussion

[ ] Add discussion

Conclusion

[ ] Add conclusion

Thanks @wanjauk See my update to the Google Docs outline and harmonize accordingly.

Thanks @wanjauk See my update to the Google Docs outline and harmonize accordingly.

I have updated the tasks accordingly. Please let me know if further adjustments are required. Thanks.


Add a new min_tls_version config parameter

What does this PR do?
Adds a new min_tls_version config parameter to allow users to flexibly select a minimum TLS version allowed by the agent.
Motivation
The previous config parameter, force_tls_12, only supported enforcing a minimum of 1.2, but customers need more flexibility.
Additional Notes
This maintains backward compatibility.  It also unconditionally sets tlsConfig.MinVersion, so Go's own defaults do not apply.  Those defaults will change when we adopt go1.18, so this avoids a potential unexpected behavior change.
Possible Drawbacks / Trade-offs

Describe how to test/QA your changes
Set up nginx to serve TLS with various settings.  First create a key and cert:
⸩ openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365
Generating a RSA private key
.........................................................................++++
.......++++
writing new private key to 'key.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:<IP_ADDRESS>
Email Address []:

Then create a config file:
user  nginx;
worker_processes  auto;

error_log  /var/log/nginx/error.log notice;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;
    server {
        listen              443 ssl;
        server_name         www.example.com;
        ssl_certificate     /cert.pem;
        ssl_certificate_key /key.pem;
        ssl_protocols       TLSv1.2;
        ssl_ciphers         HIGH:!aNULL:!MD5;
    }
}

you'll adjust the ssl_protocols field later.  Note that 1.0 is spelled "TLSv1" and not "TLSv1.0".  Run the docker image:
docker run --rm --name nginx -p 4433:443  -v $PWD/nginx.conf:/etc/nginx/nginx.conf:ro -v $PWD/cert.pem:/cert.pem:ro -v $PWD/key.pem:/key.pem:ro nginx

confirm with s_client:
openssl s_client -connect <IP_ADDRESS>:4433 -tls1_2

the output differs for each TLS version, but you should not see an error about no protocols available.
Run the agent, with DD_PROXY_HTTPS=https://<IP_ADDRESS>:4433:
Look for pkg/forwarder in the logs to see errors.  You should see things like "server selected unsupported protocol version 303" when the versions aren't allowed.  "certificate relies on legacy Common Name field, use SANs instead" is fine since nginx is using a bogus cert.  Try:

min_tls_version: "1.0" with nginx configured to use 1 (should be OK)
min_tls_version: "1.0" with nginx configured to use 1.3 (should be OK)
min_tls_version: "1.3" with nginx configured to use 1 (should fail)
min_tls_version: "1.3" with nginx configured to use 1.3 (should be OK)
force_tls_12: true with nginx configured to use 1.1 (should fail)
force_tls_12: true with nginx configured to use 1.3 (should be OK)

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the config template has been updated.

Good points all -- thanks!


getAllKeys() added

Added ability to get allKeys for stored objects in book.

Please use 'development' branch as destination branch for this PR. We do all development in 'development' branch.


Add build scan plugin to gradle

It doesn't run everytime. You need to add "--scan" to activate. But it is
now pre-configured
Le 7 déc. 2017 2:17 PM, "Chris Dennis"<EMAIL_ADDRESS>a écrit :

@chrisdennis commented on this pull request.
In build.gradle
https://github.com/ehcache/ehcache3/pull/2206#discussion_r155614730:

@@ -25,6 +27,11 @@ plugins {
id "com.dorongold.task-tree" version "1.3"
}

+buildScan {

licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'

Who is agreeing here? I imagine it's the person running the gradle build,
but can we make that decision for everyone who might build the project.
With that in mind why does this need to be checked in? Strikes me as
something you'd run occasionally locally, but not every time.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ehcache/ehcache3/pull/2206#pullrequestreview-81963838,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABKRM8kPXLXuAuifEqbCqgdGTuqU381aks5s-DnXgaJpZM4Q6Bq8
.


[guide] How to Helpdesk Tutorial

Guide needed
Please name and describe the guide you'd like to see with a few bullet points

Helpdesk Tutorial
This is the previous teaching-materials repo issue #339 of @CMR248.

:bulb: If you want to contribute a tutorial, please refer to the contribution guide.

Can one of you pleas add to this? @CMR248 @andreaschrader

Where would you put this guide? (Guides -> Contributions, FAQ, a new section under guides)
What should this guide contain? Screen shots of the Helpdesk? Or is it enough to just add the link somewhere and explain what it is good for?

@CMR248 ?

Since the Helpdesk is self-explanatory, a tutorial is not necessary.


New custom attributes do not appear in reports

The available fields in reports are computed once here so if new custom attributes are added, they do not appear in reports.
you can run rake evm:restart as a workaround.
@lpichler @cben @bazulay
Edit: Its the same for new tags too
To reproduce:

Create a report with custom attributes
Add new CustomAttribute for that entity\report
Try to create a report with the new CustomAttribute
The new CustomAttribute will not appear

@miq-bot assign lpichler

Opened https://bugzilla.redhat.com/show_bug.cgi?id=1392379, has very detailed repro steps.
This impacts custom attributes usage in reports (#9451), auto-tagging (#7460, #11591) and probably other things...  Anything where the set of available fields can change over time.
The cache is per report type — you will see new fields if you select a different type, but for a previously selected type it will be remain until UI worker(?) restart.
cc @imtayadeway

@miq-bot add_label reporting, bug


Decouple embassy-hal-common InterruptExt from cortex-m

Decouples embassy_hal_common::interrupt from Cortex-M and Cortex-M dependencies, allowing implementations of embassy_hal_common::interrupt::InterruptExt for non-NVIC interrupt controllers (PLIC, CLIC, GIC, ...). Adds a sample implementation for the RISC-V PLIC from the riscv crate.
There are a couple of things to highlight:

The example depends unreleased features in the riscv crate, and it looks like the PLIC implementation is in flux.
Not all interrupt controllers have feature parity.  For example, a PLIC cannot pend/unpend interrupts.  InterruptExt is unopinionated about how to handle such feature gaps in interrupt controller implementations.  The RISC-V PLIC also supports a priority threshold.
Interrupt priorities are inverted from the NVIC as noted in the implementation.
Implementation currently only supports embassy-hal-common/prio-bits-2.

Nonetheless this begins to decouple the InterruptExt abstraction from the NVIC, allow of non-NVIC implementations, and maintains backwards compatibility.

Hi! Thanks for the PR.
Unfortunately I don't think we should port embassy_hal_common::interrupt to other archs, instead each HAL should bring its own implementation for the chip's arch.

The embassy-hal-common crate is not intended to be used directly, it's just a way to share code between the 3 HALs maintained by the Embassy project (embassy-nrf, embassy-stm32, embassy-rp). These are all Cortex-M chips.
A single implementation/API supporting multiple archs doesn't enable code reuse, since code touching interrupts is already hardware-dependent and will need porting anyway if you switch chips.
Single API presents challenges because different archs have different capabilities, different priority numbering...
Lots of cfgs makes the code more complicated.

If you want to write a HAL for a RISCV chip, you can make it bring its own independent interrupt implementation. It'll work just fine with Embassy, because there's nothing requiring the HAL to use embassy_hal_common::interrupt specifically. The executor, -sync, -futures don't depend on it, all they care is the HAL somehow wakes the wakers when needed.

Thanks for the reply!
My use case, building the same Embassy application to run on multiple targets, made this abstraction highly useful (aside from the feature gaps we've highlighted between interrupt controller implementations).   Use cases exist where "board" implementations share common peripherals and are divergent only in processor and interrupt controller hardware implementations.  I was under the impression from [https://github.com/embassy-rs/embassy/issues/745#issuecomment-1117078056](this comment) that the abstraction might be generally useful, but if that's not the case I'll happily close the PR!

fwiw, GIC is needed for stm32mp series chips. If I ever get around to it, it would be nice to have portability between mcu and mpu. That's still inside the arm universe, though.

Next step is the introduction of support of Cortex-R and/or GIC. Unlock is running embassy applications in FPGA.

There exists a community that is interested in developing device drivers and applications that are portable among processors and physical devices that would make these abstractions useful, but perhaps that use case is not generally useful.  Thank you for the feedback!


Link is broken for "planning and building a home site"

The link to the guide is broken on this page.

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

ID: 59d3ba5d-e16b-0d9b-c623-37a75802d6ea
Version Independent ID: 24f1a751-a2de-ee1d-a58e-c4a630d543fb
Content: Designate a home site from the SharePoint admin center (Preview) - SharePoint in Microsoft 365
Content Source: SharePoint/SharePointOnline/home-site-admin-center.md
Service: sharepoint-online
GitHub Login: @Holland-ODSP
Microsoft Alias: hokavian

Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

Thanks for reporting @Danorexic

Thanks @Danorexic , just fixed this. New doc will be refreshed in the next few hours.

@scanum please close. Thanks


HADOOP-14455. ViewFileSystem#rename should support be supported within same nameservice with different mountpoints. Contributed by Brahma Reddy Battula.

+2


Create More Detailed Deliverables Document

Per a conversation between Andrew & @bensternthal, we feel it is important to outline more detail around the deliverables. Essentially we want to go one level deeper on what is outlined in the original proposal, and to focus a bit more on what the end state will look like.

Closing this out as Jordan has taken this on as part of the security work and Andrew is tackling this as part of the infra work.


build settings for regular make file needed

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
What version of the AVS Device SDK are you using?
  <1.2.1>

Briefly summarize your issue:

need build configuration to compile the SDK code under Eclipse or using regular make file, eg. the pre-processors, compiler options, link libraries...etc.
What is the expected behavior?

What behavior are you observing?

Provide the steps to reproduce the issue, if applicable:

Tell us about your environment:
ubuntu
Tell us what hardware you're using:

[ x] Desktop / Laptop
[ x] Raspberry Pi
[ ] Other - tell us more:

Tell us about your OS (Type & version):

[ x] Linux
[ ] MacOS
[ x] Raspbian Stretch
[ ] Raspbian Jessie
[ ] Other - tell us more:

Hello kennykc,
The avs-device-sdk build is defined in CMake's syntax.  On Linux systems the default output of CMake is a set of directories and Makefiles such that you use make to compile and link the source.
We do not currently have any notes on using the avs-device-sdk with Eclipse.  With a little googling, I found what appears to be a promising link about Using CMake and Eclipse for CMake enabled projects.
regards,
-SWH


{viewpoint}-only-{theme} feature for marquee

{viewpoint}-only-{theme} feature for marquee.
Resolves: MWPW-135840
This will allow authors to have different themes (light or dark) for each veiwpoint (mobile, tablet, desktop) by simply adding theme text in the background cell
Example:

Test URLs:

Before: https://main--milo--adobecom.hlx.page/drafts/seanchoi/marquees?martech=off
After: https://marquee-update--milo--adobecom.hlx.page/drafts/seanchoi/marquees?martech=off

*I also checked library to make sure that this doesn't break existing blocks
(https://marquee-update--milo--adobecom.hlx.page/docs/library/blocks/marquee)

I think this may be incompatible with background positioning.

positioning

Can you think of an example?

Just thinking thru the logic w/ mobile first and the marquee defaults. A marquee is .dark by default unlike other blocks.
So with the variant structure above...
large, desktop dark, mobile light, tablet light
This works, but is kind of seems more natural to have it be like this, no?
large, light, desktop dark
The 'mobile-light' cascades up, but we already have 'light' that does the same, so is that even necessary?

@ryanmparrish @vgoodric , Though I agree with you but I added those mobile-* lines at last for two reason:

there are existing issue with main branch that there is weird behavior when there are two viewpoints (mobile, tablet) and with those code it will prevent any potential issue completely if author simply add more specific variant.
you can see more details from this PR's Ryan C's comment: https://github.com/adobecom/milo/pull/1162#discussion_r1316307823

We are familiar with mobile first concept but authors and some some engineers are not. I think it is lower cost to add few lines than train all people who would use Marquee branch. I just don't want to see slack question or ticket that saying mobile-* isn't working then someone goes like "You can just put default theme for mobile".


Adding indonlu dataset

IndoNLU benchmark is a collection of resources for training, evaluating, and analyzing natural language understanding systems for Bahasa Indonesia. It contains 12 datasets.

looks like this PR includes changes about many files other than the ones for IndoNLU
Could you create another branch and another PR please ?

looks like this PR includes changes about many files other than the ones for IndoNLU
Could you create another branch and another PR please ?

Okay I'll make it


'cardano-address address payment --network-tag 0' command can't make testnet address

Shelley testnet address's prefix is addr_test
But cardano-address payment --network-tag 0 Command generate just addr prefix address
How can i generate shelley testnet address?

Note that the prefix is just a presentation concern what matters is the encoded data. Although we will update that soon to return a addr_test prefix, there's nothing intrinsically wrong with the generated address.
Should you really need an addr_test prefix, have a look at bech32:
$ bech32 addr_test <<< addr1....
addr_test1....

QA
Commit: https://github.com/input-output-hk/cardano-addresses/commit/07fb6efb752691bde85c8e80fceb0e92479fcff6
We use bech32With to generate the human readable prefix depending on the network tag: https://github.com/input-output-hk/cardano-addresses/blob/07fb6efb752691bde85c8e80fceb0e92479fcff6/command-line/lib/Command/Address/Payment.hs#L76-L79
This is tested in https://github.com/input-output-hk/cardano-addresses/blob/07fb6efb752691bde85c8e80fceb0e92479fcff6/command-line/test/Command/Address/PaymentSpec.hs#L16-L17

I have added https://github.com/input-output-hk/cardano-addresses/pull/60 to update examples to reflect this change.
With this change we seem to have a bit incoherent situation now. We have payment and stake address that are generated with addr_test or stake_test prefix when using network-tag 0, but pointer and delegation addresses are still using addr prefix:
pointer
cardano-address recovery-phrase generate --size 15 \
    | cardano-address key from-recovery-phrase Shelley > root.prv

cat root.prv \
    | cardano-address key child 1852H/1815H/0H/0/0 > addr.prv

cat addr.prv \
    | cardano-address key public \
    | cardano-address address payment --network-tag 0\
    | cardano-address address pointer 42 14 0
  addr1grq8e0smk44luyl897e24gn6qfkx4ax734r6pzq29zcew032pcqqef7zzu

delegation
cardano-address recovery-phrase generate --size 15 \
    | cardano-address key from-recovery-phrase Shelley > root.prv

cat root.prv \
    | cardano-address key child 1852H/1815H/0H/2/0 > stake.prv

cat root.prv \
    | cardano-address key child 1852H/1815H/0H/0/0 > addr.prv

cat addr.prv \
    | cardano-address key public \
    | cardano-address address payment --network-tag 0 \
    | cardano-address address delegation $(cat stake.prv | cardano-address key public)
  addr1qpj2d4dqzds5p3mmlu95v9pex2d72cdvyjh2u3dtj4yqesv27k...

Perhaps they should be also updated?

Closing this one, addressed the issue in https://github.com/input-output-hk/cardano-addresses/issues/62.


Error when struct has a base class

The following code will fail to compile:
struct EmptyBase {};
struct DerivedStruct : public EmptyBase {
  int x;
};

DerivedStruct derived;
rfl::to_view(derived);

Because the auto generated default constructor of DerivedStruct is DerivedStruct(EmptyBase, int). Which has 2 params.
So has_n_fields<DerivedStruct, 2> will hold, then auto &[f1, f2] = derived will fail.
I've searched around and just find a non-standard gcc traits called direct_base which might help.
Do you guys have any better idea?

I have a compiler-independent solution for that.
When the detection happens (CountFieldHelper), it should be a specific ubiq type, which can be convertible to only the class's base class.
https://github.com/vizzuhq/vizzu-lib/blob/main/src/base/refl/auto_struct.h#L29
With this ubiq, when the wrong field count is first calculated, it should be checked that the aggregated initialization first K "member" can be a parent class of the original. https://github.com/vizzuhq/vizzu-lib/blob/main/src/base/refl/auto_struct.h#L60-L64
General implementation does not exist yet as far as I know.
https://github.com/boostorg/pfr/issues/56#issuecomment-1824106120
Special cases
There are some special classes where it doesn't work when the parent class is a member too.
like the following:
struct Base {};

struct Derived: Base {
  Base as_member_too; // recognized as base class
};

A method should exist that can filter these unconventional cases with some compilation time structures, like a compile time set that tracks the already recognized base classes.

Other special case when the grandparent is the member:
struct BaseBase{};
struct Base: BaseBase{};

struct Derived: Base {
  BaseBase memb;
};

This can be eliminated with a recursive base-ubiq recognizer and a compile time set. But with the technique, this class is the same, which makes the solution unambiguous.
struct BaseBase{};
struct Base: BaseBase{};

struct Derived: Base, BaseBase {};

@schaumb , I will take a closer look at your solution and add it to the library.

@liuzicheng1987 Do you start coding? If not I'm willing to have a try.

@lixin-wei , no, I haven't. Go for it.

I encountered a compilation error when attempting to serialize a derived struct using the rfl::json::write function in the following code snippet:
struct Base
{
};

struct Derived : Base
{
    int x;
};

int main(int /*argc*/, char ** /*argv*/)
{
    auto d = Derived();
    std::cout << rfl::json::write(d) << std::endl;
    return 0;
}


Enable debug logging on 'Debug' build configs

This enables 'Debug' build configs to build the debug output and breakpoints, and fixes all mistakes that slipped in printf format specifiers.
Microsoft Reviewers: Open in CodeFlow

This is a great idea, thank you @sylveon for the contribution!


Update ping extension

Description

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

update all metadata to same background
removed usage image


Update [SEP] token method

@JohnGiorgi yeah I already made this change to Kaggle notebook (there's a built in method to just commit when you save). For next time I'll look into how to do a PR with notebook if you want.

Yep sounds good thanks. Did that for the last issue (10 I think?)


Implement ExtendedMessage; Partial Implementation For PeerExtensionPr…

…otocol
Changes for the extended handshake message portion of the extension protocol. Still needed is the actual peer extension protocol that will intercept extended handshake messages, and manages the mapping of them for outgoing/incoming messages.

Ref #91


git describe like text

It would be great to also have a field that outputs what GIT-DESCRIBE(1) would print.
Otherwise, thank you for this project.

Sorry that I haven't answered before: Thank you very much! Would you think this could be something that will be integrated directly in PackageBuildInfo?


Use the review card on the profile page

This PR redesigns the profile page so that it re-uses the review card from the article page (fixes #117).

@coglebed I removed the "slashed-eye" icon since I thought the avatar on the left already indicates anonymity. Let me know what you think.

Not sure about this one. The blank avatar doesn't unambiguously signal anonymity to me. I would leave the "slashed-eye" icon on the card.

Got it! Reverted as below:


SQL injection possible with limit() on MySQL

The limit() query method is susceptible to catastrophic SQL injection with MySQL.
For example, given a model User for a table users:
UserQuery::create()->limit('1;DROP TABLE users')->find();

This will drop the users table!
The cause appears to be a lack of integer casting of the limit input in either Propel\Runtime\ActiveQuery\Criteria::setLimit() or in Propel\Runtime\Adapter\Pdo\MysqlAdapter::applyLimit(). The code comments there seem to imply that casting was avoided due to overflow issues with 32-bit integers.
This is surprising behavior since one of the primary purposes of an ORM is to prevent basic SQL injection.
This affects all versions of Propel: 1.x, 2.x, and 3.

Care to provide a PR?

Happy to! Coming soon.

@mpetrovich: good spot. However, food for thought - it is usual practice to notify a project of security problems privately, rather than making it public in the first instance.

Good point, pardon my rush to post it here. Please delete these issues in the meantime if you’d like—I’m working on a pull request to address this issue.

PR with a fix: https://github.com/propelorm/Propel2/pull/1464

@marcj: I think this should this get an alert for the relevant versions on the Symfony security checker. Do you agree that all prior versions were vulnerable? I suspect the PR to that service needs to specify what versions are affected, and thus it needs to be accurate.
Does this need a CVE reference? I don't know how to go about getting that assigned.

@mpetrovich:
Partly to answer my own question, I see you have a bug report for each of the major versions. Thanks.
I have prepared a suggested change and will submit that as a PR to the sec database tomorrow (Sunday 18th Feb). If you are around and are able to double-check the contents, that'd be great.
In particular, I don't know if >=2 is considered in Composer terms to include all the alpha releases in this project. Unfortunately I cannot test this until the changes are merged to the FriendsOfSymfony repo. Comments on this welcome.
Presently for Propel1 I have marked everything including the current release as vulnerable. If a new release is made, ping me and I will push a new change.

@halfer:

In particular, I don't know if >=2 is considered in Composer terms to include all the alpha releases in this project.

I believe so. According to the Composer docs, any alpha version like 2.x-alpha-y is strictly before 2.0, but both are still in the 2.x range and should be satisfied by any rule like ~2 or >=2.

Presently for Propel1 I have marked everything including the current release as vulnerable. If a new release is made, ping me and I will push a new change.

I've made pull requests [1] [2] to fix the same vulnerabilities in Propel v1 and v3, so you should be able to restrict the vulnerability version range to everything up to the current releases.
[1] https://github.com/propelorm/Propel/pull/1054
[2] https://github.com/propelorm/Propel3/pull/74

Marvellous, thanks @mpetrovich. I've set the Propel1 constraints to <=1.7.1, so if a new release is made, I am assuming it will contain your fix.
I'll raise a PR just now and will liaise with maintainers to get this merged into the advisories db. Once that is done I'll build a demo Propel1 and Propel2 project to make sure the warnings come up on the latest releases.