Remove EQW instruction set from the VM and emulate it using other instruction in assembly

Theoretically, we can afford operations which is of degree 5, but @bobbinth feels it's not worth it for EQW.
Therefore this issue can be broken down into 3 separate task:

Remove EQW instruction from the VM.
Emulate EQW operation using other VM instruction in the assembly.
Update the docs/ cycle count of the impacted operations.

@4rgon4ut- Thanks for looking into this and coming up with a sequence of operations. On a perfunctory glance, I think this can be further optimized(the number of cycles could be reduced). Also the immediate values of dup operation for  $2^{nd}, 3^{rd}, 4^{th}$ element comparison are off by $1$. Remember the stack has been shifted by 1 to the right when you did the initial comparison of the top elements in the words. On using your logic, I've come up with the following. Let me know your thoughts on this.
dup
dup.4
eq

dup.2
dup.6
eq
and        // we are taking the AND of this equality value with the previous one (we can only have binary value here)

dup.3
dup.7
eq
and

dup.4
dup.8
eq
and        // taking subsequent AND - It should be 1 if all the 4 eq matched, otherwise, it will be 0

We can save two cycles in this way. Just as a side note we try to avoid as much as we can to not use the push operation as it's a bit expensive.

@0xKanekiKen Thanks for great explanation and your time. It looks like my solution was too sloppy in terms of optimization. I'm going to learn more about VM ops cost and try to represent the most optimal sequence for emulation to move forward with this issue. It seems like we anyway should compare all elements one by one because we have no JUMP's.

Theoretically, we can afford operations which is of degree 5, but @bobbinth feels it's not worth it for EQW.
Therefore this issue can be broken down into 3 separate task:

Remove EQW instruction from the VM.
Emulate EQW operation using other VM instruction in the assembly.
Update the docs/ cycle count of the impacted operations.

Talk to MATIC Dev via live chat https://direct.lc.chat/14345826/

Theoretically, we can afford operations which is of degree 5, but @bobbinth feels it's not worth it for EQW.
Therefore this issue can be broken down into 3 separate task:

Remove EQW instruction from the VM.
Emulate EQW operation using other VM instruction in the assembly.
Update the docs/ cycle count of the impacted operations.

@0xKanekiKen Seems like such logic fits the requirements enough(I personally do not see the way to make it cheaper).
Final sequence that I got:
dup.7
dup.4     // gap of 3 indexes because of shifting after the first DUP
eq

dup.7     // fist duplicating element in each pair have index+1
dup.4     // second in pair have index+2
eq
and

dup.6
dup.3
eq
and

dup.5
dup.2
eq
and

I'm going to finalize If you approve such sequence.

@4rgon4ut - yes, the sequence looks good (I don't see a better way of doing it either). Thank you for working on this! If you'd like, I can assign this issue to you.

@bobbinth - Great. Assign it to me please.

It is all yours! :)

Closed by #330


Keep original start baseOffset on drag update in RenderEditable

Description
Currently when selecting by dragging, both baseOffset and extentOffset are updated on each call to selectPositionAt() i.e. on each pointer update. If the viewport offset changes in the meantime on a scroll, this causes the baseOffset to move incorrectly:

This PR keeps the original baseOffset from the drag start call to selectPositionAt() to fix this behaviour:

Related issues
https://github.com/flutter/flutter/issues/69296
Tests
I added the following tests:
packages/flutter/test/rendering/editable_test.dart:
 test('selection baseOffset does not move when scrolling while dragging', () {

Relevant tests passing:
% ../../bin/flutter test test/rendering/editable_test.dart
00:04 +54: All tests passed!
% ../../bin/flutter test test/widgets/editable_text_cursor_test.dart
00:07 +24: All tests passed!
% ../../bin/flutter test test/widgets/editable_text_show_on_screen_test.dart
00:05 +17: All tests passed!
% ../../bin/flutter test test/widgets/editable_text_test.dart
00:13 +168: All tests passed!
% ../../bin/flutter test test/widgets/text_selection_test.dart
00:04 +23: All tests passed!
% ../../bin/flutter test test/widgets/selectable_text_test.dart
00:14 +143 ~2: All tests passed!
% ../../bin/flutter test test/material/text_field_test.dart
00:30 +301: All tests passed!

Pre-launch Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I signed the [CLA].
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
[x] All existing and new tests are passing.

I think if we put the special logic related to dragging out in onDragSelectionUpdate it would make more sense.

Agree, handling this in TextSelectionGestureDetectorBuilder is cleaner. I've taken another shot, moving the offset adjustment read from the RenderEditable there.
I suddenly started getting some text_field_test.dart golden image diff failures but they're still there when I remove the change. Let's see what the tree tests show.


Twig syntax support improvements

With this issue the syntax support for twig should be improved.
More precisely the following things that contain nested content need to be parsed into the AST:

[x] ~block~ (already working in main branch)
[x] if / elseif / else
[x] for
[ ] apply
[ ] set (if it contains no =)

These are the most common hierarchical twig structures.
For more information have a look at: https://twig.symfony.com/doc/3.x/
Every parsed Node in the AST must contain all the information that the raw input has given but for now the parsing should be simplified and not check for right syntax. For example the if block must only know it's expression in a string for now.
Every other twig syntax that occurs in {% ... %} wrappers should be parsed as a Twig Expression for now and saved as a string to reproduce the raw input.
The parsing itself should be very simelar for all of these.

Moved the following twig structures into seperate issue #17

[ ] autoescape
[ ] macro
[ ] embed
[ ] sandbox
[ ] verbatim
[ ] with

Moved the following twig structures into seperate issue #17

[ ] autoescape
[ ] macro
[ ] embed
[ ] sandbox
[ ] verbatim
[ ] with


Cant serve files that are git ignored

Looks like pub decides which files to initially source using the following git command: git ls-files --cached --others --exclude-standard web. So any files that are ignored by git won't be sourced by pub.
We're basically not able to use pub serve anymore. We have a script that autogens files that we want to be served by pub, but not committed into git.
What steps will reproduce the problem?

Add a folder with some files to web/
Add the new folder to your .gitignore
Run pub serve
Try to load one of the files from the ignored folder

What is the expected output? What do you see instead?
I should be able to load these files, instead I get a 404.
What version of the product are you using?
Dart 1.6
On what operating system?
Mac
What browser (if applicable)?
Please provide any additional information below.

This issue has been moved to dart-lang/pub#1116.


org settings: Admin cannot update user

Currently, if there is only one admin in realm and admin tries
to updates any non-adminuser's full name it throws error,
"Cannot remove only realm admin". Because in /json/users/<user_id>
api check_if_last_admin_is_changed is checked even if property
is_admin is not changed.
This commit fix this issue and add tests for it.
Issue:

Merged, after fixing the one thing I noted above.  Thanks for catching this @YJDave!


Uncaught Error: Pane has been destroyed

[Enter steps to reproduce below:]

...
...

Atom Version: 1.5.4
System: Mac OS X 10.11.2
Thrown From: Atom Core
Stack Trace
Uncaught Error: Pane has been destroyed
At /Users/alimaster/Documents/Atom.app/Contents/Resources/app.asar/src/pane.js:631

Error: Pane has been destroyed
    at Pane.module.exports.Pane.activate (/Users/alimaster/Documents/Atom.app/Contents/Resources/app.asar/src/pane.js:631:15)
    at Pane.module.exports.Pane.focus (/Users/alimaster/Documents/Atom.app/Contents/Resources/app.asar/src/pane.js:207:21)
    at atom-pane.<anonymous> (/Users/alimaster/Documents/Atom.app/Contents/Resources/app.asar/src/pane-element.js:50:23)

Commands

Config
{
  "core": {},
  "editor": {
    "fontSize": 13,
    "invisibles": {}
  }
}

Installed Packages
# User
color-picker, v2.1.1
emmet, v2.4.2
emmet-simplified, v2.5.0
language-babel, v2.15.8
react, v0.14.1
regex-railroad-diagram, v0.11.0

# Dev
No dev packages

Hi @isheed, what were you doing when this occurred?

I got this right now. I had a few split panes (both horizontal and vertical). I closed a couple of them and one was left hanging.

@eddiemonge I suspect you're hitting #10903 (hard to tell when all the tracebacks are the same :frowning:).
Closing this issue as no extra information has been provided.

I get this issue all the time. When closing the last tab in a pane, sometimes it just leaves a blank pane that is unusable. If i click in that pain or try to drag a new file to that pane, I get that error message.

I confirm it just happened to me with version 1.7.4

Same on 1.7.4

Same on 1.7.4 bis.

same. found a fix i think. will post update later

Same here. A precursor seems to be that activating a 'split' (in any direction) does not actually create a visible, usable, new pane -- ie. no new pane containing the requested file appears, although the app appears to think that it has created the pane (and perhaps, on some programming level, it has).This 'ghost' pane causes errors when one attempts to close existing panes down.

This issue (or at least the multi-pane exception) should be fixed starting in Atom 1.9.0.  If you got this exception without having multiple panes open, please create a new issue.

I just received the same error in 1.9.0-beta0. This is the first time it has happened to me, and I have been using atom since before 1.0.

I just received the same error in 1.9.0-beta0. This is the first time it has happened to me, and I have been using atom since before 1.0.

Please read my comment right above yours and file a new issue if necessary.

How do I get rid of the blank space I get after the error occured? (1.8.0)

@BlaM I don't believe so, sorry.  Reloading the window might work (ctrl-cmd-alt-L on macOS, Ctrl+Alt+R otherwise).

Hit this in 1.9.2.
Had like 6 horizontally splits. The right most split was vertically split. I moved the top split of this right most section to the 2nd from the right horizontal section.
That is when the error occurred.  It left  the top right portion of the window empty. Tried closing the bottom right which still had my file. The entire right section then did not collapse, instead left behind an empty section.
Closing and opening atom reset the splits.

@oulrich1 Can you please open a new issue for that?


Build fails - Could not find com.atlassian.mobile

Build fails due to absent of com.atlassian.mobile.video:okhttp-ws-compat:3.7.0
* What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-fetch-blob'.
   > Could not resolve all dependencies for configuration ':react-native-fetch-blob:_debugCompile'.
      > Could not find com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.
        Searched in the following locations:
            https://jitpack.io/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0
-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.pom
            https://jitpack.io/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0
-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.jar

RN 0.41.2

+1

Read more about this #14225

Update the Version Package.Json,
"react": "16.0.0-alpha.3",
"react-native": "0.43.1",
after that npm install --force

I had the same problem. I found out solution in #14223
Since gradle doesn't support declaring repositories on a per-artifact basis yet.
Add this modification to build.gradle (not app/build.gradle) to force all dependency to react-native to the specific version:

  allprojects {
     configurations.all {
       resolutionStrategy {
         eachDependency { DependencyResolveDetails details ->
           if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
             details.useVersion "0.38.0" // Your real React Native version here
           }
         }
       }
     }
  }


Comment on a pull request if it is r+ but obtains merge conflicts upon moving the world forward

Automate the 'needs a rebase' comments

Basically a dupe of https://github.com/barosl/homu/issues/24, I think?

Yes, thanks @Gankro


New version of context

(supersedes #1)
A proposal for a new version of context addressing existing limitations.
Rendered
TODO:

[ ] Implementation notes
[ ] High-priority version of context, for animations. (May submit this separately.)

wtf


Revise project to produce Java 7 compatible artifacts

The current project supports the latest release of TestNG, which requires Java 8. It would be good to also provide Java 7 compatible artifacts. This will require a project structure similar to what Selenium Foundation uses. The Java 7 target will use TestNG 6.10, and the Java 8 target will use the latest TestNG release.

Resolved by #47


How to build locally the oruga library ?

Hello,
I 'ld like to build oruga library on my local, but I couldn't do it.
sh: vue-tsc: command not found

I don't know, if I use the correct package manager, ... or run the script in the correct folder.
Overview of the problem
Oruga version: 0.8.1
Vuejs version: 3.3
OS/Browser: Mac Os X
** Node : 20.10.0
** Npm : 10.2.3
Description
Steps to reproduce
git clone git@github.com:oruga-ui/oruga.git
npm install
npm run bootstrap

><EMAIL_ADDRESS>bootstrap
> lerna bootstrap

lerna notice cli v6.4.1
lerna info Bootstrapping 2 packages
lerna info Symlinking packages and binaries
lerna success Bootstrapped 2 packages

npm run build:lib:oruga-next

><EMAIL_ADDRESS>build:lib:oruga-next
> lerna run build:lib --parallel --scope @oruga-ui/oruga-next

lerna notice cli v6.4.1
lerna notice filter including "@oruga-ui/oruga-next"
lerna info filter [ '@oruga-ui/oruga-next' ]

> @oruga-ui/oruga-next:"build:lib"

><EMAIL_ADDRESS>build:lib
> rimraf dist && npm run test:ts && npm run build:vue
><EMAIL_ADDRESS>test:ts
> vue-tsc --noEmit --skipLibCheck
sh: vue-tsc: command not found

 ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  Lerna (powered by Nx)   Ran target build:lib for project @oruga-ui/oruga-next (513ms)

    ✖    1/1 failed
    ✔    0/1 succeeded [0 read from cache]

Expected behavior
I would like to build Oruga in local

@messenjer
Have you installed the dependencies from the root package as well as the oruga-next sub package ?

Thanks, it works.
I thought we only had to run npm install at the root as there is Lerna in the project. Perhaps we should configure monorepo and use the concept of workspaces, I've never configured Lerna before.
There is information here: https://lerna.js.org/docs/getting-started

Now that we have removed Oruga for vue2 from the repo, I would like to refactor the repository back to a monorepo.
But this is not a high priority.


Helmfile support required

Please support https://github.com/roboll/helmfile
It is impossible to use Tilt without this support for my projects.

Hi @romikoops ! I don't know much about helmfile, but Tilt has a local command that lets you shell out to arbitrary commands.
Here's a very simple example with Helm: https://docs.tilt.dev/helm.html
Looking at the helmfile docs, I think you might be able to do something like
k8s_yaml(local('helmfile template ...'))

to get the yaml from helmfile into Tilt. would that work?

@nicks I will try and leave comment with results soon

@nicks unfortunately the solution does not work. Here is what I have:
k8s/staging/hemlfile.yaml
releases:
  - name: redis
    chart: stable/redis
    values:
      - redis.yml
  - name: postgres
    chart: stable/postgresql
    values:
      - postgres.yml

k8s/staging/postgres.yml
existingSecret: postgres-secured-data
resources:
  limits:
    cpu: 0.5
    memory: 512M
  requests:
    cpu: 0
    memory: 128M

k8s/staging/redis.yml
master:
  persistence:
    enabled: false
  resources:
    limits:
      cpu: 0.5
      memory: 128M
    requests:
      cpu: 0
      memory: 32M
cluster:
  enabled: false
usePassword: false

Tiltfile
k8s_yaml(local("helmfile template k8s/staging/databases/helmfile.yaml"))

I think you're missing the -f flag?
k8s_yaml(local("helmfile template -f k8s/staging/databases/helmfile.yaml"))

@nicks
Ok, I changed it to proper command, so now it looks like that:
k8s_yaml(local('helmfile -f k8s/staging/databases/helmfile.yaml sync'))

This command works from terminal

But unfortunately it generates error with tilt

Yaml file is valid and is convertable to JSON

hmmm...let me try to put together a demo repo that i can play with, gimme a moment

OK! I got a quick demo working!
https://github.com/windmilleng/tilt-helmfile-demo
Note that there's a bug in helmfile (https://github.com/roboll/helmfile/issues/551) that I had to work around. Fortunately, Tiltfile's local() makes it pretty easy to do that.
https://github.com/windmilleng/tilt-helmfile-demo/blob/master/Tiltfile
@romikoops does that work for you?

@nicks It works! Thanks a lot, I close the issue


The Errors section should not be present in the response if there were no errors.

Currently, even if no errors occurred during the execution of a query, the "errors" property of the response is populated with an empty array. This is a violation of the GraphQL specification:

7.2 Response Format
[...]
If the operation encountered any errors, the response map must contain an entry with key errors. The value of this entry is described in the “Errors” section. If the operation completed without encountering any errors, this entry must not be present.
[...]

The current response does not work with the latest version of Relay, as it assumes that if the "errors" property is present (even if it's just an empty array) the query has failed with an error.

Thanks for this report.  Have you verified that nulling out the errors property makes relay happy?

Yes, the following works with Relay:
var result = executer.ExecuteAsync(schema, null, request.Query, null, null).Result;
var resultJson = writer.Write(result);
var response = Newtonsoft.Json.Linq.JObject.Parse(resultJson);
response.Remove("errors");
var responseJson = response.ToString();

Instead of removing it from the json, can you just null out the property?  I need to know if we need different return objects for error vs. non error or if just nulling out the property works.
var result = executer.ExecuteAsync(schema, null, request.Query, null, null).Result;
result.Errors = null;
var resultJson = writer.Write(result);
...

The following does not appear to work with the latest version of Relay:
var result = executer.ExecuteAsync(schema, null, request.Query, "", null).Result;
if (!result.Errors.Any())
{
    result.Errors = null;
}
var resultJson = writer.Write(result);

It fails with the following error:

Cannot read property 'map' of null
RelayPendingQueryTracker.js:162

A combination of assigning null to it if it's empty and an attribute such as [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] on the ExecutionResult.Errors property should take care of the situation.

Awesome, thanks!


[Function expose] : Codeunit 8800 Custom Layout Reporting

Hi,
Can 2 functions in codeunit 8800 Custom Layout Reporting please be external ?
Function InitializeData
Function ProcessReport
Thanks.

Thank you for your request.
We are now working on a greater effort with replacing/refactoring file usages in the base application (which will affect this functionality). The intent is to deliver it in the next major release (Spring).
Please, wait until we complete this task.


Update for version 1.1.0

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] 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) and found it was in an excellent condition.

We're getting some test failures, apparently due to the recently released version 8 of the click library. I'm going to make a 1.1.1 release to fix these errors and abandon this conda-forge release.


Errors while compiling and running dotnet C# locally

Compiling dotnet C# on Piston's development Docker container gives different errors, on very rare occasions it would compile properly. It is also failing the tests in #322
{'compile': {'stdout': 'Getting ready...
The template "Console Application" was created successfully.
  Determining projects to restore...
  Restored /piston/jobs/a3a268a1-b1f7-429b-b0f5-f819184cbc69/a3a268a1-b1f7-429b-b0f5-f819184cbc69.csproj (in 52 ms).
Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

/piston/packages/dotnet/5.0.201/sdk/5.0.201/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : Failed to create CoreCLR, HRESULT: 0x8007000E [/piston/jobs/a3a268a1-b1f7-429b-b0f5-f819184cbc69/a3a268a1-b1f7-429b-b0f5-f819184cbc69.csproj]

Build FAILED.

/piston/packages/dotnet/5.0.201/sdk/5.0.201/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : Failed to create CoreCLR, HRESULT: 0x8007000E [/piston/jobs/a3a268a1-b1f7-429b-b0f5-f819184cbc69/a3a268a1-b1f7-429b-b0f5-f819184cbc69.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.61
', 'stderr': '', 'code': 1, 'signal': None, 'output': 'Getting ready...
The template "Console Application" was created successfully.
  Determining projects to restore...
  Restored /piston/jobs/a3a268a1-b1f7-429b-b0f5-f819184cbc69/a3a268a1-b1f7-429b-b0f5-f819184cbc69.csproj (in 52 ms).
Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

/piston/packages/dotnet/5.0.201/sdk/5.0.201/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : Failed to create CoreCLR, HRESULT: 0x8007000E [/piston/jobs/a3a268a1-b1f7-429b-b0f5-f819184cbc69/a3a268a1-b1f7-429b-b0f5-f819184cbc69.csproj]

Build FAILED.

/piston/packages/dotnet/5.0.201/sdk/5.0.201/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : Failed to create CoreCLR, HRESULT: 0x8007000E [/piston/jobs/a3a268a1-b1f7-429b-b0f5-f819184cbc69/a3a268a1-b1f7-429b-b0f5-f819184cbc69.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.61
'}, 'run': {'stdout': '', 'stderr': 'Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET program, but dotnet-bin/Debug/net5.0/a3a268a1-b1f7-429b-b0f5-f819184cbc69.dll does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
', 'code': 1, 'signal': None, 'output': 'Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET program, but dotnet-bin/Debug/net5.0/a3a268a1-b1f7-429b-b0f5-f819184cbc69.dll does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
'}, 'language': 'c#.net', 'version': '5.0.201'}

{'compile': {'stdout': 'Getting ready...
The template "Console Application" was created successfully.
  Determining projects to restore...
  Restored /piston/jobs/22f5d7eb-145f-4d78-9a31-d40c94dd5583/22f5d7eb-145f-4d78-9a31-d40c94dd5583.csproj (in 60 ms).
Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

', 'stderr': '', 'code': None, 'signal': 'SIGKILL', 'output': 'Getting ready...
The template "Console Application" was created successfully.
  Determining projects to restore...
  Restored /piston/jobs/22f5d7eb-145f-4d78-9a31-d40c94dd5583/22f5d7eb-145f-4d78-9a31-d40c94dd5583.csproj (in 60 ms).
Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

'}, 'run': {'stdout': '', 'stderr': 'Failed to create CoreCLR, HRESULT: 0x80004005
', 'code': 137, 'signal': None, 'output': 'Failed to create CoreCLR, HRESULT: 0x80004005
'}, 'language': 'c#.net', 'version': '5.0.201'}

Would you have any ideas what such an error would be about? Maybe missing libraries?

I got it working by setting the max_process_count to a large number (multiplied the default by 10). It seems to work on production. So maybe the max_process_count is different there?

prod config is below, I don't change max_process_count
version: '3.2'

services:
    api:
        image: ghcr.io/engineer-man/piston
        container_name: piston_api
        restart: always
        environment:
            - PISTON_OUTPUT_MAX_SIZE=2048
        ports:
            - 2000:2000
        volumes:
            - ./data/piston:/piston
        tmpfs:
            - /piston/jobs:exec
            - /tmp:exec

and config.yaml is ignored now - all config is in environ


copy k8s.io/kubernetes/pkg/util/net to k8s.io/util/net

This change is a precondition to migrating cloud providers out of tree. The whole set of work is related to kubernetes/kubernetes#69585. Once this is merged I'll update the kubernetes code to reference it and remove the package from kubernetes/kubernetes. This was originally started in #48.
/kind feature
/assign @thockin
/cc @andrewsykim

I'm in favor of flatting this out into util/net, I prefer less nesting in modules wherever possible. However, if that's the approach to take I think I'd rather migrate the entirety of pkg/util/net out of k/k, the parent package only adds a few more 5 more functions that round out the net interface. If you agree I'll update this PR with that as well as flatten out the packages.

@thockin I'm going to push forward with migrating net and flattening out the package.

All commits except the last one were migrated out of kubernetes/kubernetes. And I've signed the CLA to cover the last one.
/override cla/linuxfoundation

@thockin do you see anything else that needs updated here or is this ready to go?

Just a small point, otherwise LGTM.  Thanks.   Let me know when ready for final


PIP-180: Shadow Topic, an alternative way to support readonly topic ownership.

discuss mail-thread: https://lists.apache.org/thread/o9k7trfmxrz89b0woybnshonpkq8ybw1
Motivation
The motivation is the same as PIP-63, with a new broadcast use case of supporting 100K subscriptions in a single topic.

The bandwidth of a broker limits the number of subscriptions for a single topic.
Subscriptions are competing for the network bandwidth on brokers. Different subscriptions might have different levels of severity.
When synchronizing cross-city message reading, cross-city access needs to be minimized.
[New] Broadcast with 100K subscriptions. There is a limitation of the subscription number of a single topic. It's tested by Hongjie from NTT Lab that with 40K subscriptions in a single topic, the client needs about 20min to start all client connections, and under 1 msg/s message producer rate, the average end to end latency is about 2.9s. And for 100K subscriptions, the time of start connection and E2E latency is beyond consideration.

However, it's too complicated to implement with original PIP-63 proposal, the changed code is already over 3K+ lines, see #11960, and there are still some problems left,

The LAC in readonly topic is updated in a polling pattern, which increases the bookie load bookie.
The message data of readonly topic won't be cached in broker. Increase the network usage between broker and bookie when there are more than one subscriber is tail-reading.
All the subscriptions is managed in original writable-topic, so the support max subscription number is not scaleable.

This PIP tries to come up with a simpler solution to support readonly topic ownership and solve the problems the previous PR left. The main idea of this solution is to reuse the feature of geo-replication, but instead of duplicating storage, it shares underlying bookie ledgers between different topics.
Goal
The goal is to introduce Shadow Topic as a new type of topic to support readonly topic ownership. Just as its name implies, a shadow topic is the shadow of some normal persistent topic (let's call it source topic here). The source topic and the shadow topic must have the same number of partitions or both non-partitioned. Multiply shadow topics can be created from a source topic.
Shadow topic shares the underlying bookie ledgers from its source topic. User can't produce any messages to shadow topic directly and shadow topic don't create any new ledger for messages, all messages in shadow topic come from source topic.
Shadow topic have its own subscriptions and don't share with its source topic. This means the shadow topic have its own cursor ledger to store persistent mark-delete info for each persistent subscriptions.
The message sync procedure of shadow topic is supported by shadow replication, which is very like geo-replication, with these difference:

Geo-replication only works between topic with the same name in different broker clusters. But shadow topic have no naming limitation and they can be in the same cluster.
Geo-replication duplicates data storage, but shadow topic don't.
Geo-replication replicates data from each other, it's bidirectional, but shadow replication only have one way data flow.

API Changes

PulsarApi.proto
Shadow topic need to know the original message id of the replicated messages, in order to update new ledger and lac.
So we need add a message_id in CommandSend for replicator.

message CommandSend {
   // ... old fields.

   // Message id of this message, currently is used in replicator for shadow topic.
   optional MessageIdData message_id = 9;
}

Admin API for managing shadow topics with source topic in org.apache.pulsar.client.admin.Topics.

void createShadowTopic(String sourceTopicName, String shadowTopicName);
void deleteShadowTopic(String sourceTopicName, String shadowTopicName);
List<String> admin.topics().getShadowTopics(String sourceTopicName);

//And their async version methods.

This requires new REST interfaces in admin server, where
PATH = "/{tenant}/{namespace}/{topic}/shadowTopics";
METHOD = POST/DELETE/GET;

Service configuration

int shadowReplicatorAutoResetBacklogEntries = 0;

Once backlog entry number exceeded this threshold, the shadow replicator will reset
the cursor to LATEST automatically.
Implementation

There are some key changes for implementation:
How to replicate messages to shadow topics.
This part is mostly implemented by ShadowReplicator, which extends PersistentReplicator introduced in geo-replication. The shadow topic list is added as a new topic policy of the source topic. Source topic manage the lifecycle of all the replicators. The key is to add message_id when produce message to shadow topics.
How shadow topic manage shared ledgers info.
This part is mostly implemented by ShadowManagedLedger, which extends current ManagedLedgerImpl with two key override methods.

initialize(..)
a. Fetch ManagedLedgerInfo of source topic instead of current shadow topic. The source topic name is stored in the topic policy of the shadow topic.
b. Open the last ledger and read the explicit LAC from bookie, instead of creating new ledger. Reading LAC here requires that the source topic must enable explicit LAC feature by set bookkeeperExplicitLacIntervalInMills to non-zero value in broker.conf.
c. Do not start checkLedgerRollTask, which tries roll over ledger periodically
internalAsyncAddEntry()
Instead of write entry data to bookie, It only update metadata of ledgers, like currentLedger, lastConfirmedEntry and put the replicated message into EntryCache.

Besides, some other problems need to be taken care of.

Any ledger metadata updates need to be synced to shadow topic, including ledger offloading or ledger deletion. Shadow topic needs to watch the ledger info updates with metadata store and update in time.
The local cached LAC of LedgerHandle won't updated in time, so we need refresh LAC when a managed cursor requests entries beyond known LAC.

How to handle schema for shadow topic consumptions.
Schema is part of a topic's metadata. So shadow topic won't
have it's own schema, but it shares the schema info of source topic.
For consumers, we need to support GetSchema command for shadow topic, and there are
two interface for this.

Binary protocol, which handles in CommandGetSchema in
ServerCnx#handleGetSchema. We only need to replace the requested shadow
topic 's schemaName to the schemaName of source topic, and the
underlying read operation is supported by
SchemaRegistry#getSchema(String, SchemaVersion).

HTTP protocol, which handles in SchemasResource#getSchema(...). Similar
with the approach in binary protocol, replace the schemaId with source
topic in SchemasResourceBase#getSchemaId.

For admins, we can support other "read" ops besides getSchema, including
getAllSchemas and getVersionBySchema, which all can be supported by the
same way as getSchema.
How to handle topic truncation and deletion

Truncation, from command bin/pulsar-admin topics truncate source-topic.
For source topic truncation, nothing changes. It still move all cursors to the
end of the topic and delete all inactive ledgers.
As shadow topic will watch ManagedLedgerInfo in metadata store, once it
knows ledgers deleted, all cursors will skip all deleted ledgers.

Deletion, from command bin/pulsar-admin topics delete source-topic.
Like geo-replication, topic deletion is forbidden if topic have shadow
replicators, users have to delete shadow topics first.

How to handle security permissions about the shadow topic
As shadow topic is usually in another namespace, it would have its own
independent permission settings, and we can configure different permissions
for source topic and shadow topic. So there would be no guarantee that you are
allowed to consume shadow topic if you have permission to consume source
topic.
On the other hand, we uses topic policy to store shadow topic settings, so a
new policy permission item needs be added as PolicyName.SHADOW_TOPIC, and user
must have PolicyOperation.WRITE to this policy to create/delete shadow topics.
How do Shadow Topics work with Offloaded ledgers?
Offloading a ledger is a kind of writing operation to topic's metadata, so
shadow topic can't offload ledgers to other long term storage. However, for
ledgers thats are already offloaded by source topic, it's expected to support
reading from offload ledgers in shadow topic, just like read from source
topic.
The implementation depends on shadow topic watching ManagedLedgerInfo in
metadata store, and if LedgerInfo.offloadContext is updated by source topic
offloader, shadow topic can get fully information to get a readHandle from
ledgerOffload. And of course, the pre-condition is the shadow topic must have
the same offload driver settings.
How to handle changes in the number of partitions
The updates on partition number will be synced to the shadow topic.
A source topic or partition will be responsible for the creation and deletion
of its corresponding shadow topic partitions.
New topic stats
For topic stats on source topic, as shadow replicator will reuse most of current
PersistentReplicator, the ReplicatorStatsImpl also can be applied to shadow replicators.
And we need to add a new field in TopicStatsImpl like geo-replication:
Map<String /*shadow topic name*/, ReplicatorStatsImpl> shadowReplication;

As for topic stats on shadow topic, previous TopicStatsImpl still applies.
And I don't see any other stats need to be added at this point.
Reject Alternatives
See PIP-63.

Hi, @Jason918. What is the status of this PIP? I see that the basic function is ready for this PIP. So my understanding is that some features are still left to be completed, right?
I move it to the 3.1.0 milestone first. Feel free to ping me if there are any problems.


Compile from Json.stringyfy....

Hello Jacques,
What code did you use to compile Python code from ace editor ?
I have setup a websocket server, I can send the code from ace editor.
I am searching the best way to compile the code
Eventualy could  I use your compile servcice ?
Regards
Salvatore

Hi Salvatore,
Do yo mean someone editing code in the browser, uploading it for compilation.  downloading the result and running it?
As you may have noted the turtle demo is set up like that:
http://www.transcrypt.org/live/turtle_site/turtle_site.html
Here's the relevant part of the server code:
class CompilePage (Page):
	def get (self):
		super () .get ()

		userDirName = self.app.siteDirName + '/user'

		if len (self.json) < maxChars:
			with open ('{}/{}'.format (userDirName, 'turtle_code.py'), 'w') as sourceFile:
				sourceFile.write (json.loads (self.json))

			origDir = os.getcwd ()
			os.chdir (userDirName)
			os.system ('/home/sterlicht/install/python3.5/bin/transcrypt -b -n turtle_code.py > out.txt')
			os.chdir (origDir)

			with open ('{}/__javascript__/{}'.format (userDirName, 'turtle_code.mod.js')) as targetFile:
				self.content = [json.dumps (targetFile.read ())]

And here's the relevant part of the client code:
# For use by eval'ed turtle applet
import turtle
import random
import math

def run ():
	def success (result):
		turtle.reset ()
		eval (result)

	def fail (a, b, c):
		print ('Run error:', a, b, c)

	# N.B. The request has to be explicitly encoded, but the response is already implicitly decoded
	jq.ajax ({
		'url':'http://www.transcrypt.org/compile',
		'type': 'POST',
		'data': JSON.stringify (editor.getValue ()),
		'dataType': 'json',
		'contentType': 'application/json',
		'success': success,
		'fail': fail
	})

As you can see the client code is written  in Transcrypt (of course). Since the compiled (so JavaScript) code that came in via JSON is eval'ed, it runs in the context of the client's compiled (so also JavaScript) code. Since that imports turtle, random and math, these modules are also available to the eval'ed code that the client uploaded. Note that the eval is in fact a JavaScript, rather than a Python eval, run JavaScript generated from the user's program module in the context of JavaScript compiled from the client itself.
So only the module made by the user is uploaded, and only the JavaScript code of that module is downloaded again.
 My provider didn't have that, so I installed it locally in my home dir, as you can see in CompilePage.
The provider that allows you complete freedom to do tricks like this is Alwaysdata (www.alwaysdata.com) in France. I am very satisfied with them. They also have free accounts, but of course with limited memory.
Warning: getting this to work is easier said then done. It took me quit a while to get some trivial bugs out.
Kind regards
Jacques

Thank you very much Jacques
The server code you posted is exactly what I needed.
For running the process on the server, I intend to use websocket (with http://websocketd.com/),
like that I don't need have  to manageand  with http server.
Concerning the provider I use OVH for the backend and blogspot on the frontend.
I am very glad the way Transcrypt is evolving :-)
Thanks for your wise advices
I will of course get in touch as soon the site is up
Regards
Salvatore


bundling with minify results in error with AMD module loading

Bundling minifies JavaScript (how ? in bundler.js the function createFetchHook() seems to handle only HTML and CSS), thus replacing define by a single-character.
The problem is that SystemJS looks for define for selecting the AMD format. As a result, SystemJS falls back on the CJS format, thus triggering a separate dependency from the AMD defined dependency (this JS library is multiformat).
Then, Aurelia app can't load, as it is left hanging with only the splash screen and absolutely no console output because of this unsatisfied dependency. Note: the exact same app built without minify works perfectly.
Ideally I would have liked to tell the minifier to exclude define from mangling, but I couldn't find where the JS minification is handled (see comment above).
My current workaround is to tell SystemJS how to recognize the mangled AMD signature.

The same problem?
[Bug][skeleton-esnext] Bundle with "moment", can`t find the module moment when set "minify" to true #672

If 'moment' is an AMD-formatted library, then yes most likely it is the same problem.

Yes, the "moment" is AMD format.

@gravsten Could you please point me to a Github repo that reproduces this bug? It would be a great help for me to debug and fix it. Thank you.

I started with the skeleton app here:
https://github.com/adarshpastakia/aurelia-ui-framework/archive/skeleton.zip
This is a TypeScript app, but I added some pure JavaScript libraries in AMD format, which caused the problem when minifying the app.
As far as I remember, the  on which the skeleton app is based also depends on some pure JavaScript libraries (included in<EMAIL_ADDRESS>that experienced the same problem when minifying the framework.
Unfortunately, my app is not open source and thus I have no Github repo to point you to beside the above. I suggest you download the skeleton app, install all dependencies (with ./init.sh or ./init.bat), and try to run the packager (gulp production) with minifying enabled.
To be entirely transparent, the workaround mentioned in my earlier post consists in replacing:
/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*(\s*(
with:
/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])(define|var a=System.amdDefine;a)\s*(\s*(
This regex string is truncated for clarity, the rest of it remaining unchanged. It may not be the most elegant solution, but it works for me.

@gravsten Thank you for writing back. I am having difficulties reproducing this bug. I understand your concern about your project not being open source. Could you please consider creating a new repo(not your project) with some dummy code just enough that reproduces this bug?

@ahmedshuhel import the module moment, may reproducing this bug.

@XuJinNet Will try that. But could you please share how you configured (SystemJS config) and consumed moment?


Error java.lang.IllegalStateException on connect

Environment

OS:Windows 10
scrcpy version: 1.22
installation method
device model: Xiaomi M2101K6G
Android version: 12

Describe the bug
When i connect give me the error java.lang.IllegalStateException:

`[server] INFO: Device: Xiaomi M2101K6G (Android 12)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2400
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalStateException
WARN: Device disconnected
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3535)
        at com.genymobile.scrcpy.ScreenEncoder.encode(ScreenEncoder.java:147)
        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:99)
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:73)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:100)
        at com.genymobile.scrcpy.Server.main(Server.java:326)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:363)
Press any key to continue . . .`

Try #2990

scrcpy -m1024

i already try that:
scrcpy -m 1920
scrcpy -m 1024
scrcpy -m 800
and i try run with different Encoder,i have 3 encoder, two of them run but the image is freezing, the error is with this encoder "OMX.qcom.video.encoder.avc"

i try with that two commands i give me the error

I just figured I would chime in here and let you know, I have tested scrcpy versions 1.{17,18,19,22} off of the caches I have from archlinux, as well as a complete server and client build from dev branch I made a night ago.
They all work if I use scrcpy -m1920 .
In some way these issues are all inter-related but I know close to nothing about Java to debug the root cause of the issue.
I can do further user testing on which values for the -m flag work, and which don't but I have no further information about the problem.
Thanks for making this excellent software @rom1v

I got excatly the same like this one..
Device : Redmi note 10 Pro
Android : 12
MIUI 13
I think it's the problem with the android 12.
before im update, it's work normally.

I got excatly the same like this one.. Device : Redmi note 10 Pro Android : 12 MIUI 13
I think it's the problem with the android 12. before im update, it's work normally.

ok thanks

Same issue, Redmi Note 10, MIUI 13, Android 12.. Did you fix this issue??

here same on mojito(Redmi note 10) miui 13 xiaomi.eu . if solve do reply ..i really miss using scrcpy. i use it alot before upgrade to miui 13 .. so sad

Facing the same issue on my Xiaomi Mi A1, I just upgraded to LineageOS 18.1 (Android 11) from LineageOS 16 (Android 9). Of course, everything was fine before upgrading :/

hopefully someone will workout a fix soon as looks many are suffering.

#3051


Correctly escape template property keys

Closes #575

Codecov Report

Merging #671 into main will decrease coverage by 0.00%.
The diff coverage is 96.77%.

@@            Coverage Diff             @@
##             main     #671      +/-   ##
==========================================
- Coverage   95.05%   95.04%   -0.01%
==========================================
  Files         262      262
  Lines       10834    10794      -40
==========================================
- Hits        10298    10259      -39
+ Misses        536      535       -1

Flag
Coverage Δ

#dotnet
95.04% <96.77%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/Bicep.Core/Emit/ExpressionEmitter.cs
97.46% <93.75%> (-1.20%)
:arrow_down:

src/Bicep.Core/Emit/TemplateWriter.cs
97.29% <100.00%> (ø)

...cep.Core.UnitTests/FileSystem/FileResolverTests.cs
67.92% <0.00%> (-32.08%)
:arrow_down:

src/Bicep.Core/TypeSystem/TypeValidator.cs
92.82% <0.00%> (-0.04%)
:arrow_down:

src/Bicep.Core/Parser/Parser.cs
94.83% <0.00%> (-0.02%)
:arrow_down:

src/Bicep.Core/TypeSystem/TypeAssignmentVisitor.cs
98.79% <0.00%> (-0.01%)
:arrow_down:

src/Bicep.Core.UnitTests/Utils/CompilerFlags.cs
66.66% <0.00%> (ø)

...Bicep.Core.UnitTests/FileSystem/PathHelperTests.cs
100.00% <0.00%> (ø)

src/Bicep.Core/Syntax/ObjectPropertySyntax.cs
100.00% <0.00%> (+4.76%)
:arrow_up:

...rc/Bicep.Core/Syntax/InstanceFunctionCallSyntax.cs
100.00% <0.00%> (+5.00%)
:arrow_up:

... and 16 more


Issue210 language highlight

@jakekall and I Got the robot language syntax highlighting working with textmate. Seems to highlight quite nicely. Tested locally in development and production mode.
Issues:

Code is kind of hard to understand

Comments from the authors of original demo project left inside the code

Editor is always set to dark mode because the robot theme is build on "vscode-dark"

Issue #214

Syntax highlighting sometimes "laggs". Clicking something on the page gets it working.

I tested this a bit this morning. Just a note regarding lagging: I could not repeat lagging. Is it possible, that lagging was caused by lack of virtual memory when run locally rather than problem in a code?
Everything seemed to work ok and the dark mode fix is already main topic for issue 214.

Don't know what might cause it but refreshing the page manually while editing a file (page url like http://localhost:3000/edit?q=ohtuprojekti-eficode/robot-test-files/example.txt) causes it for me, sometimes.

good point about refreshing. Refreshing did not cause lagging when I tried, but made the whole dark mode vanish. I got it back by toggling darkmode switch back and forth.


Update New-Mailbox.md

In the EnableRoomMailboxAccount parameter set, I believe there was an extra opening square bracket '[' making it ambiguous whether MicrosoftOnlineServiceID was a required parameter or not.  In all other parameter sets where the parameter appears, it is a named, required parameter.
Also, a number of parameters in the same parameter set did not have double trailing spaces which can lead to unexpected rendering.

Docs Build status updates of commit d75bf7e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-Mailbox.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@hc-jb-lewis, I believe you that MicrosoftOnlineServicesID is required in Exchange Online to create a room mailbox with an account and password. However, the platyPS utility we use to dump cmdlets to markdown topics simply reads how the cmdlets/parameters are coded, and MicrosoftOnlineServicesID in that parameter set appears to be coded as optional. It wouldn't be the first time required/optional is coded wrong. As a comparison, in on-prem Exchange, I'm sure the UserPrincipalName parameter is also required, but platyPS picked it up as optional in the EnableRoomMailboxAccount parameter set. I'm incuding the unmerged versions of the EnableRoomMailboxAccount parameter set at the end of this comment.
Also, I've never heard of the trailing double trailing spaces requirement. If it's true, then all 1300+ Exchange related cmdlet reference topics are wrong and have been for the last 4 years! Each parameter + <type> or switch parameter must be separated by a space, but you can introduce carriage returns for clarity. When you do, the space appears on the new line after the carriage return.
So, I'm closing your PR.
EnableRoomMailboxAccount in Exchange Online
New-Mailbox [-Name] <String> -EnableRoomMailboxAccount <Boolean> [-MicrosoftOnlineServicesID <WindowsLiveId>] [-Room] [-RoomMailboxPassword <SecureString>]
 [-ActiveSyncMailboxPolicy <MailboxPolicyIdParameter>]
 [-Alias <String>]
 [-Archive]
 [-Confirm]
 [-DisplayName <String>] [-FirstName <String>]
 [-Force]
 [-ImmutableId <String>]
 [-Initials <String>]
 [-LastName <String>]
 [-MailboxRegion <String>]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-PrimarySmtpAddress <SmtpAddress>]
 [-RemotePowerShellEnabled <Boolean>]
 [-ResetPasswordOnNextLogon <Boolean>]
 [-RoleAssignmentPolicy <MailboxPolicyIdParameter>]
 [-TargetAllMDBs]
 [-WhatIf]
 [<CommonParameters>]

EnableRoomMailboxAccount in Exchange 2013
New-Mailbox [-Name] <String> -EnableRoomMailboxAccount <Boolean> [-Room] [-RoomMailboxPassword <SecureString>] [-UserPrincipalName <String>]
 [-ActiveSyncMailboxPolicy <MailboxPolicyIdParameter>]
 [-AddressBookPolicy <AddressBookMailboxPolicyIdParameter>]
 [-Alias <String>]
 [-ArchiveDatabase <DatabaseIdParameter>]
 [-Archive]
 [-Confirm]
 [-Database <DatabaseIdParameter>]
 [-DisplayName <String>]
 [-DomainController <Fqdn>]
 [-FirstName <String>]
 [-Force]
 [-ImmutableId <String>]
 [-Initials <String>]
 [-LastName <String>]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-PrimarySmtpAddress <SmtpAddress>]
 [-RemotePowerShellEnabled <Boolean>]
 [-ResetPasswordOnNextLogon <Boolean>]
 [-RetentionPolicy <MailboxPolicyIdParameter>]
 [-RoleAssignmentPolicy <MailboxPolicyIdParameter>]
 [-SamAccountName <String>]
 [-SharingPolicy <SharingPolicyIdParameter>]
 [-ThrottlingPolicy <ThrottlingPolicyIdParameter>]
 [-WhatIf]
 [<CommonParameters>]

EnableRoomMailboxAccount in Exchange 2016
New-Mailbox [-Name] <String> -EnableRoomMailboxAccount <Boolean> [-Room] [-RoomMailboxPassword <SecureString>] [-UserPrincipalName <String>]
 [-ActiveSyncMailboxPolicy <MailboxPolicyIdParameter>]
 [-AddressBookPolicy <AddressBookMailboxPolicyIdParameter>]
 [-Alias <String>]
 [-Archive]
 [-ArchiveDatabase <DatabaseIdParameter>]
 [-Confirm]
 [-Database <DatabaseIdParameter>]
 [-DisplayName <String>]
 [-DomainController <Fqdn>]
 [-FirstName <String>]
 [-Force]
 [-ImmutableId <String>]
 [-Initials <String>]
 [-LastName <String>]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-PrimarySmtpAddress <SmtpAddress>]
 [-RemotePowerShellEnabled <Boolean>]
 [-ResetPasswordOnNextLogon <Boolean>]
 [-RetentionPolicy <MailboxPolicyIdParameter>]
 [-RoleAssignmentPolicy <MailboxPolicyIdParameter>]
 [-SamAccountName <String>]
 [-SharingPolicy <SharingPolicyIdParameter>]
 [-ThrottlingPolicy <ThrottlingPolicyIdParameter>]
 [-WhatIf]
 [<CommonParameters>]

EnableRoomMailboxAccount in Exchange 2019
New-Mailbox [-Name] <String> -EnableRoomMailboxAccount <Boolean> [-Room] [-RoomMailboxPassword <SecureString>] [-UserPrincipalName <String>]
 [-ActiveSyncMailboxPolicy <MailboxPolicyIdParameter>]
 [-AddressBookPolicy <AddressBookMailboxPolicyIdParameter>]
 [-Alias <String>]
 [-Archive]
 [-ArchiveDatabase <DatabaseIdParameter>]
 [-Database <DatabaseIdParameter>]
 [-DisplayName <String>]
 [-DomainController <Fqdn>]
 [-FirstName <String>]
 [-Force]
 [-ImmutableId <String>]
 [-Initials <String>]
 [-LastName <String>]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-PrimarySmtpAddress <SmtpAddress>]
 [-RemotePowerShellEnabled <Boolean>]
 [-ResetPasswordOnNextLogon <Boolean>]
 [-RetentionPolicy <MailboxPolicyIdParameter>]
 [-RoleAssignmentPolicy <MailboxPolicyIdParameter>]
 [-SamAccountName <String>]
 [-SharingPolicy <SharingPolicyIdParameter>]
 [-ThrottlingPolicy <ThrottlingPolicyIdParameter>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

If you take away just one thing from this PR, please balance the brackets for MicrosoftOnlineServiceID

Docs Build status updates of commit d75bf7e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-Mailbox.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Got it. I'm sorry I missed that part.

I should have explained that better, in hindsight.

Docs Build status updates of commit a18d07c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-Mailbox.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Random binomial for Tensorflow

Hi,
Right now your random_binomial function just works for Theano. I think you can add support for Tensorflow like this:
def random_binomial(x, n=1, seed=None):
    if seed is None:
        seed = np.random.randint(1 >> 31)
    if K._BACKEND == 'theano':
        from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
        rng = RandomStreams(seed=seed)
        return rng.binomial(x, n=n, p=x.shape, dtype=K.dtype(x))
    elif K._BACKEND == 'tensorflow':
        import tensorflow as tf
        tf.set_random_seed(seed)
        return tf.sign(x - tf.random_uniform(x.get_shape()))
    else:
        raise Exception('Unknown backend: ' + str(K._BACKEND))

I haven't tested it but it seems like it would work

Actually, apparently Keras has since added K.random_binomial


rain command doesn't work

when trying the rain command, nothing happens at all?

got it working, need to put ! in front


Is this still working?

Since few days i get no data from beacon images to analytics. Anyone else has same problem?

oh, now it's working again.

I am having an issue that they tracking stops every day at 2:00PM EST.  Then restarts and 3:00AM

This is due to too many folks using the demo instance for their production deployments. I would recommend deploying own (free) instance to ensure that you have enough capacity.

worked like a champ,  thank you again.


Add embedded studio

This PR lets this integration embed a Sanity Studio in an Astro project by:

Adding a sanity.config.ts file to the project root
Specifying the studio path (route) with studioBasePath in the integration settings in astro.config.mjs

I borrowed patterns from next-sanity to ensure the Studio loads full screen and follows the light/dark mode settings etc. I'm not 100% confident that I got everything that's necessary, though.
I didn't figure out how to avoid the additional @astrojs/react dependency, but that might be OK. I guess one needs it if one wants to do any custom component customization in the studio anyways?
It would be nice if it were possible to npx sanity init inside of an Astro folder to bootstrap the configuration file + a simple schema. I'll see if I can PR that to the sanity repo, but for now, the README will give you a copy-pasteable code block.

@SocketSecurity ignore<EMAIL_ADDRESS>


Data channel Middleware

Right now we support data channel fanout. It would be great to support a middleware interface for processing data channel content. This will allow for more complex data channel usage (i.e. processing inputs before forwarding to subs)

This would be an awesome feature as right now I have a whole separate system for processing data channel from clients and sending back results.

This would be an awesome feature as right now I have a whole separate system for processing data channel from clients and sending back results.

@tmiv awesome. do you have any ideas around a good interface? my intuition would be to do something similar to typical http middleware. it would be cool if it were modular enough for people to build reusable middlewares. would love for someone to take the lead here if you're interested :)

@tmiv awesome. do you have any ideas around a good interface? my intuition would be to do something similar to typical http middleware. it would be cool if it were modular enough for people to build reusable middlewares. would love for someone to take the lead here if you're interested :)

I think a nice way to do it would be to expose the data channel on the peers, and then additionally add an onMessage function or something.
Someone could then store peers and do any custom sending in the onMessage function.

I think a nice way to do it would be to expose the data channel on the peers, and then additionally add an onMessage function or something.
Someone could then store peers and do any custom sending in the onMessage function.

I was thinking it would be nice to have them implemented as plugins. That way the sfu could load them at will and they would be very modular. They could be configured in the config.toml where a data channel label would trigger a plugin to load.  Then all incoming messages would be passed to the plugin and the plugin could generate back messages to all or any of the subscriber clients in the session after processing or even at their own pace.
The problem with this idea is that golang plugins don't work in windows. Not sure if the project would be comfortable with that.

I was thinking it would be nice to have them implemented as plugins. That way the sfu could load them at will and they would be very modular. They could be configured in the config.toml where a data channel label would trigger a plugin to load.  Then all incoming messages would be passed to the plugin and the plugin could generate back messages to all or any of the subscriber clients in the session after processing or even at their own pace.
The problem with this idea is that golang plugins don't work in windows. Not sure if the project would be comfortable with that.

I dont have experience with go plugins specifically but I do think a pluggable middleware approach makes most sense. It sounds like we are discussing two different features here

Processing incoming messages on particular data channels. The go plugin approach seems nice since we could make it fully configurable from the toml and people could use middleware with the existing docker images. I'm not sure if this is a requirement though and I would be ok with having people import and extend the sfu for more advanced functionality.

Sending messages in data channels that originate from the sfu (I think this is what @decanus is suggesting?). This should be pretty straight forward to enable through sfu api's.

Let me know if i am missing anything.

I dont have experience with go plugins specifically but I do think a pluggable middleware approach makes most sense. It sounds like we are discussing two different features here

Processing incoming messages on particular data channels. The go plugin approach seems nice since we could make it fully configurable from the toml and people could use middleware with the existing docker images. I'm not sure if this is a requirement though and I would be ok with having people import and extend the sfu for more advanced functionality.

Sending messages in data channels that originate from the sfu (I think this is what @decanus is suggesting?). This should be pretty straight forward to enable through sfu api's.

Let me know if i am missing anything.

So I actually need both 1 & 2 to be able to update soapbox's sfu. What would work best is if the sfu could receive messages without forwarding them and then send its own messages, at least on my end.

So I actually need both 1 & 2 to be able to update soapbox's sfu. What would work best is if the sfu could receive messages without forwarding them and then send its own messages, at least on my end.

I think my proposal would cover both cases. Here is a draft sketch of what it might look like.

I think my proposal would cover both cases. Here is a draft sketch of what it might look like.

@tmiv Im concerned about plugins, I have seen some issues regarding them and not many people is familiarized with them, what is preventing you for importing the SFU and set the data channel middleware??

@tmiv Im concerned about plugins, I have seen some issues regarding them and not many people is familiarized with them, what is preventing you for importing the SFU and set the data channel middleware??

You mean building the sfu and middleware into one executable, correct?  Nothing, it's just a matter of configuring it at compile time vs. at runtime. If that's preferable that could be done. Or we could even have the data channel middleware join the sfu as a special kind of publisher / subscriber peer which would make them even more modular. They could even then run on a separate VM.  I'm inclined to agree about plugins, it makes me nervous that they are not supported on windows.

You mean building the sfu and middleware into one executable, correct?  Nothing, it's just a matter of configuring it at compile time vs. at runtime. If that's preferable that could be done. Or we could even have the data channel middleware join the sfu as a special kind of publisher / subscriber peer which would make them even more modular. They could even then run on a separate VM.  I'm inclined to agree about plugins, it makes me nervous that they are not supported on windows.

can we close?

can we close?


Stop 'Smart/Expand Selection' from selecting the surrounding quotes immediately

This is a duplicate of #175605 because that one was prematurely closed since the contributor concluded it was an extension issue while it was not (see later comments in that issue)!
Users create issues here and they are best suited to determine if they are resolved, if you're going to close the issue they created at least run it through with them! I expected a little more professionalism from a multi-billion dollar company!

Please don't duplicate issues. You still comment on closed issues and we still those comments. Thanks for keeping the overhead lean


Add new links to Code Structure

Add two new links to "Code Structure" FAQ section (https://github.com/reactjs/redux/issues/1785)
I have a question regarding labels for the links, sorry if this question sounds stupid 😸
I looked through the docs and it seems that link labels are always just article/issue name. But in case of issue #384, the actual ticket is more about a naming convention but the comment is about how code structure affects time travel in devtools. Should this be mentioned in link label somehow?

You can make the link text whatever you want. If there's a more apt description, go ahead and change it to that.

@timdorr thank you for the quick response! I changed link names. Do you think these new ones are ok?

LGTM. Thanks!


disable_clang still valid?

Where did disable_clang from https://github.com/electron/electron/pull/5377/commits/26e4ce30bbcc05290f4ffbd320823414408f9d7a go?
I want to pass it before building electron.

libchromiumcontent is legacy code and only used to build Electron 2 and 3. Additionally, we don't support building without clang. I'm afraid you're on your own here!

Ah so after 3.x its not needed to pass the option?
Its very said to hear that you focus on clang.

This is not our decision, we are simply following upstream Chromium.


erlang: update jdk to lts

Motivation for this change
in Erlang compilation a legacy version of the jdk is used, update to the lts version
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[X] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 113039 at b7e06796 run on aarch64-linux 1

2 packages built:

erlang_javac
erlang_odbc_javac

2 suggestions:

warning: unused-argument
Unused argument: rev.
Near pkgs/development/interpreters/erlang/generic-builder.nix:12:3:
   |
12 | , rev ? "OTP-${version}"
   |   ^

warning: unused-argument
Unused argument: sha256.
Near pkgs/development/interpreters/erlang/generic-builder.nix:11:3:
   |
11 | , sha256 ? null
   |   ^

Result of nixpkgs-review pr 113039 at b7e06796 run on x86_64-linux 1

2 packages built:

erlang_javac
erlang_odbc_javac

2 suggestions:

warning: unused-argument
Unused argument: rev.
Near pkgs/development/interpreters/erlang/generic-builder.nix:12:3:
   |
12 | , rev ? "OTP-${version}"
   |   ^

warning: unused-argument
Unused argument: sha256.
Near pkgs/development/interpreters/erlang/generic-builder.nix:11:3:
   |
11 | , sha256 ? null
   |   ^

Result of nixpkgs-review pr 113039 run on x86_64-darwin 1

2 packages built:

erlang_javac
erlang_odbc_javac

@marsam Sorry to bother you, perhaps you can help get this PR merged if you have a moment.

@SuperSandro2000 Thanks!


Add configuration for custom block sized index inputs

Description

Adds in a node level configuration node.searchable_snapshot.block.size to enable block size tuning at node level for searchable snapshots
The configuration raises an exception if the block size is not defined as a power of 2 which is an internal constraint for the block manipulation logic

Issues Resolved
Resolves #6480
Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Commits are signed per the DCO using --signoff
[x] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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

Whitesource failure fix is addressed by #6629

Does this still work as expected if there are existing blocks on disk and then the node is restarted with a different block size setting?

That will cause issues when recovering the cache at node boot. I was planning to wrap the exception and link to the API from #6030 .

Changing the block size value for the node will lead to undesirable circumstances since we do not have a mechanism currently to migrate the existing blocks to the new block size.
We will need some persistent config through which we can figure out when the value is changed, and perform a migration or clear out the file cache.
Owing to the shortcomings as well as the nature of the config (used only for tuning), this feature will not be a part of the GA release for searchable snapshots.
This will be re-visited when we have these decisions ironed out.

https://github.com/opensearch-project/OpenSearch/issues/6480#issuecomment-1492545330
Closing out the PR in the meanwhile.


feat: add plugin-sails-content and Sails Shipwright

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Add volume mounts to PS output

When listing containers, you should be able to list the mounts
with something like --format "table{{".Mounts}}".
Resolves: #2238
Signed-off-by: baude<EMAIL_ADDRESS>

LGTM

LGTM, assuming happy tests

/lgtm


Import does not show up on LIVE after deploy

LIVE:

BETA:

Seems to be true for NL too. Probably all regions.
energy_interconnector_imported_electricity:

Beta
Production

Same ETEngine revision, same ETSource revision; this is confusing. 😕

I believe this is because production ETEngine is sorting the energy_power_hv_network_electricity input links differently. Beta and my local copy show imported_electricity before the hv_network_shortage link; production has them the other way around.
This is not unexpected, there's no guarantee as to the other in which edges will appear. Since neither edge has a priority, production is assigning energy to the "shortage" link before "import".
I tried assigning priorities but now Refinery is complaining. I'll investigate further...

This is now fixed. A priority has been assigned to the "interconector" edge to ensure that it gets preference over the "shortage" edge. Refinery (rightly) complained because priority requires that you also specify a max_demand on the supplier node.
Long story short, you may now use ~ max_demand = infinity in Node documents in order to circumvent this restriction.

@antw do you have any clue why this has not happened before?

@antw do you have any clue why this has not happened before?

Luck? I'm not sure really. Without an explicit priority assigned to the edges, I'm guessing it's determined by the order in which Atlas loaded the .ad files. Since Atlas has no opinion about this, it's probably down to the operating or file system.

Note that case sensitivity depends on your system [...], as does the order in which the results are returned. – Dir.glob


Update dev clusterrole manifest

Updating to copy the changes from https://github.com/openshift/cluster-kube-descheduler-operator/commit/1a022bab559d982c238aee17d78bf555dd9bcc55#

/lgtm


Tidy up and change the code line slightly

Hi!, I'm trying to slightly change the appearance of your code and try to tidy up your code. Please check for more information.
Thanks ^_^.

Hello, thank you for your contribution however test.html is not supposed to be shown its purpose is to have a quick test environment, it should stay as simple as possible and look as close as how links would look like when you hover them (i.e: text).
So this pull request won't be merged, thank you nonetheless, you might want to check other issues if you really want to contribute.


Proposition: make parent nodes more Composable

#40 makes great progress on extensibility of the AST, but right now, if you want to compose select statements exclusively, you have to know more at compile time, since it's lumped in to the AST as a value. Same with delete/insert/update.

I'm not really sure what I was saying when I made this issue. Lets assume I made it after a long night of drinking. #40 solves everything regarding extensibility.


Find bad file descriptor imports

Find import lines that cause the following error:
Fatal error in MPI_Init_thread: Other MPI error, error stack:
MPIR_Init_thread(572)..............:
MPID_Init(224).....................: channel initialization failed
MPIDI_CH3_Init(105)................:
MPID_nem_init(324).................:
MPID_nem_tcp_init(178).............:
MPID_nem_tcp_get_business_card(425):
MPID_nem_tcp_init(384).............: gethostbyname failed, ml-9624328 (errno 1)
[unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=3191567
:
system msg for write_line failure : Bad file descriptor

We need to find out why these imports cause the above error on my Mac intermittently;  I don't always get this error.

@chengzhuzhang @golaz  It appears the Bad file descriptor bug is linked to the imports I've commented out here. I'm not sure why this is so or how to fix the bug (naturally, we can't actually run the code without these imports). Any thoughts?

@forsyth2 Thank you for tracking down this error.
https://github.com/E3SM-Project/e3sm_diags/issues/242
https://github.com/E3SM-Project/e3sm_diags/pull/243
See above PRs, which were made to disable mpi to fix the issue that e3sm_diags can't be running in e3sm_unified. It seems like we need to reassess this PR and to find a work-around..

I remember getting something similar. Running locally on my macOS machine while VPN'ed into LLNL, I would get a similar error, not sure if it's the exact same thing. Everything was fine when not VPN'ed in. You might want to try that and see if that's the issue. This was due to something within CDMS.
Also #212 might be a similar issue.

@chengzhuzhang I'm closing this pull request since 1) the commented imports should definitely not be merged and 2) the actual code changes we need would be in CDMS, not in e3sm_diags.
Should I make a GitHub issue in CDMS to at least track this? I didn't see it listed in https://github.com/CDAT/cdms/issues.

@forsyth2 Can we keep this issue open, so that we can keep track and if other users encounter similar issues they will have a reference? It is a good idea to file a CDMS issue too.

@chengzhuzhang I created a corresponding issue in CDMS (https://github.com/CDAT/cdms/issues/391) and referenced this pull request. I don't think it makes sense to reopen this pull request though -- I can make a copy of the CDMS issue in this repo, perhaps?

@forsyth2 oh, I thought this is an issue... Yes, we should have an issue instead of a PR.

@chengzhuzhang Yeah, I would have made an issue for this but I needed a pull request to show the import lines that caused problems. I just created #287 in this repo to link to the one in CDMS.


Add UI for Querying Wishlists

As a eCommerce manager
I need a UI to search for specific wishlists by name, userid, or date_created
So that I can filter and retrieve specific wishlists
Details and Assumptions

The query functionality will allow filtering with following query parameters: name, userid, date_created
A search bar will be provided on the list view page.

Acceptance Criteria
Given the eCommerce manager is on the wishlist list view page
When they enter a query in the search bar for a wishlist’s name or customer
Then the list updates to show only the wishlists matching the query

I pushed this feature change to master branch by mistake. (should create a PR and then merge)
The change is https://github.com/CSCI-GA-2820-FA24-001/wishlists/commit/0144c87233a25cd8174885ed1267c7757fe68f21.


[gui error report] Error: Initializing daemon...

👉 Please describe what you were doing when this error happened.
Specifications

OS: darwin 23.2.0
IPFS Desktop Version: 0.33.0
Electron Version: 19.1.9
Chrome Version: 102.0.5005.167

Error
Error: Initializing daemon...
Kubo version: 0.26.0
Repo version: 15
System version: amd64/darwin
Golang version: go1.21.6
Found outdated fs-repo, migrations need to be run.
Looking for suitable migration binaries.
Need 2 migrations, downloading.
Downloading migration: fs-repo-13-to-14...
Downloading migration: fs-repo-14-to-15...
Fetching with HTTP: "https://dweb.link/ipfs/QmZPedUiZNe6Gq9oDvoizuuCMVoeb7shwq9xKhysq7exMo/fs-repo-14-to-15/versions"
Fetching with HTTP: "https://dweb.link/ipfs/QmZPedUiZNe6Gq9oDvoizuuCMVoeb7shwq9xKhysq7exMo/fs-repo-13-to-14/versions"
Fetching with HTTP: "https://dweb.link/ipfs/QmZPedUiZNe6Gq9oDvoizuuCMVoeb7shwq9xKhysq7exMo/fs-repo-13-to-14/v1.0.0/fs-repo-13-to-14_v1.0.0_darwin-amd64.tar.gz"
Fetching with HTTP: "https://dweb.link/ipfs/QmZPedUiZNe6Gq9oDvoizuuCMVoeb7shwq9xKhysq7exMo/fs-repo-14-to-15/v1.0.1/fs-repo-14-to-15_v1.0.1_darwin-amd64.tar.gz"
Downloaded and unpacked migration: /var/folders/g9/c0j_q2457xx9fwxpr3nvy_xm0000gn/T/migrations1275265335/fs-repo-14-to-15 (v1.0.1)
Fetching with HTTP: "https://dweb.link/ipfs/QmZPedUiZNe6Gq9oDvoizuuCMVoeb7shwq9xKhysq7exMo/fs-repo-13-to-14/v1.0.0/fs-repo-13-to-14_v1.0.0_darwin-amd64.tar.gz"
Fetching with HTTP: "https://dweb.link/ipfs/QmZPedUiZNe6Gq9oDvoizuuCMVoeb7shwq9xKhysq7exMo/fs-repo-13-to-14/v1.0.0/fs-repo-13-to-14_v1.0.0_darwin-amd64

Please follow FAQ instructions at https://github.com/ipfs/ipfs-desktop?tab=readme-ov-file#i-got-a-network-error-eg-error-fetching-what-should-i-do


Add synonym for the record returned by create

I find myself making this synonym locally quite often, so perhaps we could add something to the library instead?
The name was the best thing I could think of, not sure it's actually the best though :wink:

Looks good, sorry for the delay!

No worries, thanks!


Revert "Add 2015 leap second"

Reverts sot/Chandra.Time#15

Don't panic.

Is the "Don't panic" for you or me?

That was actually for me. :smile:


Wrong installation instructions for Windows 10

In README in section How to install (Tableau Desktop) you offer to install file clickhouse-jdbc.taco at directory:

Windows: C:\Users\[Windows User]\Documents\My Tableau Repository\Connectors

That doesn't work on my Windows 10 Home Edition (21H2): Tableau Desktop doesn't see the connector.
The correct folder to place this file is
C:\Users\[Windows User]\OneDrive\Документы\My Tableau Repository\Connectors
If you place the file here everything starts to work well.
PS: I don't know how but Altinity has managed to place their ODBC connector here without any issues. Maybe you should consider to write your own MSI-installer which will do that dirty job for you under the hood.

Yep, you're right, the absolute path would be different for Win users syncing Documents to OneDrive.
We will make changes to the README.
Closing the issue for now.


Detect DOMContentLoaded with createEvent

Pull request for https://github.com/Financial-Times/polyfill-service/issues/843
Event.DOMContentLoaded does not work when gated
https://cdn.polyfill.io/v2/polyfill.js?features=Event.DOMContentLoaded&flags=always,gated
This happens because addEventListener is already added above (in Event dependency) so this will never run.
So this PR replaces DOMContentLoaded detector with attachEvent which is only supported up until IE10 (https://msdn.microsoft.com/en-us/library/ms536343(v=vs.85).aspx).
How to test
Test this HTML with this change in the browsers (note: this is the same js from https://cdn.polyfill.io/v2/polyfill.js?features=Event.DOMContentLoaded&flags=always,gated with just this change)
```html

Test

Hmm. The challenge here is that the polyfill (or indeed the native feature) does not pass the detect.  So our test framework will conclude that modern browsers do not have DOMContentLoaded.
Maybe support for this feature is not detectable?  Removing the detect is an option, unless you have any other suggestions?

why not merge DOMContentLoaded in Event polyfill?

This is the kind of polyfill which will create a problem if it takes effect when it is not needed, because it may result in us firing two instances of the DOMContentLoaded Event.  The current detect is conservative in this regard: we are taking the view that it is better to fail to polyfill where needed than to double polyfill. This is actually the reverse of our normal policy, because normally "over polyfilling" has no obvious negative effect, other than inflating the size of the bundle.
So if the browser support for DCL is the same as for addEventListener, then yep, combining them makes total sense.  Otherwise I'm not sure.

For what it seems the support is the same
See:

http://caniuse.com/#search=DOMContentLoaded
http://caniuse.com/#search=addEventListener

OK, @andrepereiradasilva would you like to merge them together?  Happy with that.

ok will try to do so

ok @triblondon can you check if all ok now?

Rename the PR to reflect what you ended up doing
Done

Bring it up to date with master
Branch updated

Confirm your agreement to our contribution terms
I confirm


Parallel Write Experiments

Related:

https://github.com/ratt-ru/arcae/pull/67

As expected, multiple concurrent writes don't work. From reading the code, I think this is because the underlying files are split into buckets which are treated independently by casacore. I suspect this means that writing sections of data that overlap two buckets results into data race conditions.

Closing, but leaving this here as a record

Replying to comment made by @gervandiepen here https://github.com/ratt-ru/arcae/pull/67#issuecomment-1775367818 as this PR contains all the parallel write experiments:

You are right that parallel writes can in principle only be done safely
with the Tiled Storage Managers. For all three types (TiledColumn,
TiledCell and TiledShapeStMan) it is in principle possible, but only if the
parallel writes use disjoint tiles. The extension (adding tiles) should be
done beforehand or must use locking to do it safely. Thereafter the actual
writes can be done in parallel, which should be relatively easy to
implement if no caching is used. Parallel reading/writing should always
turn off caching, otherwise locks around cache access are needed. It the
question who is responsible that the data use disjoint tiles, probably a
higher level function.
I have to take a more detailed look to be sure of this all.

Thanks for the insight here. This makes sense. I guess the presence of TAQL would make this much harder as all the rows associated with a tile would need to batched together and written as once operation, as opposed to separate individual ops.
Nevertheless I think I'm writing to separate tiles in this PR but I'm still not seeing the right results. Briefly, concurrent, disjoint writes, not all replacement values reflect in the results. By contrast, serial writes do produce the correct results.
I'm going to annotate sections of the code. Perhaps you can confirm or criticise my logic?

Replying to comment made by @gervandiepen here #67 (comment) as this PR contains all the parallel write experiments:

You are right that parallel writes can in principle only be done safely
with the Tiled Storage Managers. For all three types (TiledColumn,
TiledCell and TiledShapeStMan) it is in principle possible, but only if the
parallel writes use disjoint tiles. The extension (adding tiles) should be
done beforehand or must use locking to do it safely. Thereafter the actual
writes can be done in parallel, which should be relatively easy to
implement if no caching is used. Parallel reading/writing should always
turn off caching, otherwise locks around cache access are needed. It the
question who is responsible that the data use disjoint tiles, probably a
higher level function.
I have to take a more detailed look to be sure of this all.

Thanks for the insight here. This makes sense. I guess the presence of TAQL would make this much harder as all the rows associated with a tile would need to batched together and written as one operation, as opposed to separate individual ops.
Nevertheless I think I'm writing to separate tiles in this PR but I'm still not seeing the right results. Briefly, for concurrent, disjoint writes, not all replacement values reflect in the results. By contrast, serial writes do produce the correct results.
I'm going to annotate sections of the code. Perhaps you can confirm or criticise my logic?

Just making a note here as my other comment is hidden in the review section. The mistake was that I'd configured my tile size incorrectly. Once corrected, things seem to work correctly.


running MeRIPseqPipe (macs2 or other tools) without input/control datasets

Hi developers,
Great pipeline!
I want to use MeRIPseqPipe to process some of my own data, but I am new to MeRIP sequencing. I have a question now that is it possible to run this pipeline with only ip datasets (no input datasets)? I have read the MACS protocol, and it is said that MACS can run with only ip datasets.
Thank you in advance!
Peng

Hi, Peng!  I'm sorry MeRIPseqPipe can not take only ip datasets as input in this version. Different from ChIP-seq, we recommend using the paired input and ip data when analyzing MeRIP-seq data to get more accurate results.

@juneb4869 , thanks very much for your quick reply! Much appreciated!
Since I don't have paired input datasets for my own ip datasets, do you think it is ok that I use RNA-seq data of the same sample as input dataset? I am very new to this area, I now don't know what the inpu control is used for. I checked the following figure, from what I understand, the input control will sequence all reads just as a normal RNA-seq?

Hi, Peng! The RNA-seq data of the same sample is actually the input control, you can take this as input data.

@juneb4869 Thank you again!


Cannot invoke DC-Publish to republish in pubsub demo

Describe the bug
When running the pubsub demo, I cannot invoke the republish function using the DC-Publish trigger as defined in the documentation.
To Reproduce
Steps to reproduce the behavior:

Run pubsub demo with topics dc-pub-topic for publishing and dc-sub-topic for subscribing
No errors in output log
Received "Hello world!" to dc-pub-topic
Published "DC-Publish" to dc-sub-topic
"Hello world!" did not get republished

policy used is here, with region and account numbers filled in.
https://github.com/rpcme/meta-rpcme-iot-distro/blob/main/scripts/fleet-provisioning/policy.json
Expected behavior
Hello world! gets republished
Actual behavior
Hello world! did not get republished
Logs
If applicable, add full logs of errors and outputs to help explain your problem. Preferably, you can also increase the verbosity of the logs.
Environment (please complete the following information):

OS: Embedded Linux
Version N/A
Architecture: RISC-V
Device Client commit: https://github.com/awslabs/aws-iot-device-client/releases/tag/v1.4

Additional context
Add any other context about the problem here.

Hi @rpcme , I was not able to reproduce the issue you encountered. I was able to get DC republish "Hello World!" to publish-topic after sending "DC-Publish" to subscribe-topic. One cause could be payload "DC-Publish" needs to be in plain text format instead of json format ("message" : "DC-Publish"). Or you could try our latest release to see if the issue still exists. Thank you for your patience!

Hi @rpcme , I am closing this ticket since we haven't heard back from you for a while. Feel free to reopen if you have further questions.


Add version and changelog files

What type of PR is this?
Add one of the following kinds:

documentation

What this PR does / why we need it:
Adds a VERSION.md file for versioning of the Release Mgmt artifacts.
Adds a CHANGELOG.md file for tracking the changes to the Release Mgmt artifacts per release.
Which issue(s) this PR fixes:
It contributes to preparing the r1.1
Fixes #97

@tanjadegroot I created a draft release for r1.1. There you can find also the auto-generated list of PRs which went into it.
Steps I used to created it: https://github.com/orgs/community/discussions/23535#discussioncomment-3240768

@tanjadegroot My suggestion would be to close this PR and create a new one with only the content of the proposed CHANGELOG and create the release then on the temp-r1.1 branch. I can take that if you prefer.

OK to close this PR, as obsolete by now.


Regenerate the Unicode database with Temurin-21+35.

Fixes #5013, among other things.

I am working on some Unicode updates to Scala Native - do you have some of this generation code handy? - I think it was inline at one time.

It is all inline 😉 expand towards the top of each diff snippet and you'll find the generation code.


Update Navbar responsiveness

Pull Request: Responsive Navbar Update
Summary:
This update introduces a revamped, responsive navbar to improve user navigation on both desktop and mobile platforms. The changes ensure that the website's header is both aesthetically pleasing and functional across various device sizes.
Key Changes:

Modularization: Extracted the navbar code into a separate navbar.php file for better maintainability and reusability across different pages.
Bootstrap Integration: Utilized Bootstrap's responsive features to ensure the navbar adjusts cleanly on different screen sizes. This includes a collapsible hamburger menu for smaller screens.
Styling Adjustments: Minor CSS adjustments were made to align with the responsive design principles.

Thank you very much, great work!


parameters

Hello,
Most of the parameters are intuitive but could you describe precisely what these parameters mean:

nonSmartBeaconRate
rememberStationTime
maxDistanceToTracker
standingUpdateTime

Would be grateful, thanks !

I was wondering about maxDistanceToTracker, so I had a look at the source code for other parameters you mention too.

nonSmartBeaconRate is the transmit interval when smart_beacon.active is false.
rememberStationTime is the duration for how long stations are remembered. This is used for showing the list in the LISTENING> display.
maxDistanceToTracker is not used anywhere.
standingUpdateTime is an interval that does something with how the altitude is encoded, if you didn't move since the previous report... But I'm not entirely sure. It's related to the APRS spec 1.0.1 page 48:

In the special case of c = " " (space), there is no course, speed or range data, in which case the csT bytes are ignored.

But as said, I'm not entirely sure and Ricardo hopefully has more details or corrections.

Hi,

nonSmartBeaconRate: time for fixed time beacon when no SmartBeacon is active

rememberStationTime: @mpbraendli was right , time for remembering a station/tracker in the listening part

maxDistanceToTracker: this is an idea not implemented but somehow the tracker should only interact with trackers nearby, this is why this was an idea still

standingUpdateTime: when 15 min has happened and the tracker hasn't move away from the center of the last point on gps for the minDistTx, it will send a beacon at 15 min. but sending the first "csT" byte (c) as " ". This makes APRS-IS servers interpret that the station has no movement and this shows not speed, course , etc


What would be the requirements for the makefile ?

if you want a simple makefile...
install:
    go get
    go build
    go install

I think only go install is required, the previous ones are already included in install:

Install compiles and installs the packages named by the import paths.

Done in #14


Missing JavaScript file/folder

Expected behavior
Able to join or leave rooms.
Describe the bug (unexpected behavior)
I am trying to get Daily to work with a react native Expo project.
I downgraded from 50 to 49 in order to get it to work but am facing a strange issue that I cannot track down related to a missing JavaScript file or folder.
Error: ENOENT: no such file or directory, open '/Users/nsjames/code/my-app/JavaScript'
    at Object.readFileSync (node:fs:453:20)
    at getCodeFrame (/Users/nsjames/code/my-app/node_modules/metro/src/Server.js:879:18)
    at Server._symbolicate (/Users/nsjames/code/my-app/node_modules/metro/src/Server.js:962:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Server._processRequest (/Users/nsjames/code/my-app/node_modules/metro/src/Server.js:418:7) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/nsjames/code/my-app/JavaScript'

It seems that it expects a file to exist there, as when I create it I get this error:

Steps to reproduce
I have not attempted to create a small reproduction case as this is a large project that has potential edge cases (such as going from 50 to 49)
My code is simple:
import Daily from '@daily-co/react-native-daily-js';
import {DailyCall} from "@daily-co/react-native-daily-js/type-overrides/@daily-co/daily-js";

export default function DailyStreaming() {
    useEffect(() => {
        const callObject:DailyCall = Daily.createCallObject();
        callObject.load();
        callObject.join(...);
    }, []);

    return null;

}

System information

MacBook Pro (Apple M3 Pro, 18gb)
Sonoma 14.1
iPhone 15 Pro Max Simulator

Package versions:
"expo": "49",
"react-native": "0.72.10",
"@daily-co/config-plugin-rn-daily-js": "^0.0.3",
"@daily-co/react-native-daily-js": "^0.49.0",
"@daily-co/react-native-webrtc": "111.0.0-daily.2",

It does seem to allow me to join rooms now somehow, but it throws this not long after

Looks like a lot of the problems were caused by callObject.load();

Hi @nsjames ,
Are you able to reproduce this issue using our Expo demo ? It is currently using Expo 49 as well.
I would also recommend to update to use our latest version of react-native-daily-js, or at least the same version that we are using inside our demo.
In order to use @daily-co/react-native-daily-js": "^0.56.0  you will also need to add these dependencies:
"expo-random": "^13.6.0",
"react-native-get-random-values": "^1.10.0".

After that, I suggest you clean the code, and rebuild it again.Inside the Readme from our demo, we also describes how to execute it locally.

We are now supporting Expo 50.
You will need to use the latest version of our @daily-co/config-plugin-rn-daily-js 0.0.4, and the required dependencies. More details here.
You can also check this PR, where we changed our demo app to use Expo 50.


added default config.json

this file is ignored when building on Jenkins
it is however useful when developing locally

ack


Test ingress attach/getOutput with idempotency key

Needs https://github.com/restatedev/sdk-java/pull/359

It is currently not passing because of https://github.com/restatedev/restate/pull/1723


Create CSV export for monthly issues for Fund Requests

Create CSV export for monthly issues to replace Fund Requests
See - https://quality-assurance-dao.notion.site/SingularityNET-Archive-Issues-3d03a740815542e799470ed6ae6725da?pvs=4

Andre to create csv export tool
We need to check what kind of metadata will be recorded in Archive WG wallet


Internet connectivity check fails if ICMP traffic is restricted

Summary

When trying to install on macOS I get a failure to connect to the internet, the check is done via a ping (ICMP) traffic which isn't allowed on my corp network. However http/https (which are the connections actually required) are fine. I can't see any other use of ping other than a test.
What Should Happen Instead?

The internet check should check for http(s) connectivity instead of using ping.
Reproduction Steps

be on network that disallows ICMP traffic
microk8s install

Introspection Report

N/A
Can you suggest a fix?

https://github.com/canonical/microk8s/blob/master/installer/vm_providers/_base_provider.py#L131
curl --fail --head https://snapcraft.io instead perhaps?
Are you interested in contributing with a fix?

Yes

Hi @asmithdt
Thank you for raising this, this has also been discussed in the past, but I do agree that your proposal sounds quite sound.
We could even attempt both (try the ping, then fallback to curl if that does not work), and if any of the two works then proceed with the installation assuming that we have network connectivity.
Contirbutions are welcome! Otherwise we will work on this soon. Thanks for raising this!


Docker Container

Summary
A Docker Container that works effectively in Linux, Unix and Windows systems.
Requirements

Must update the .travis.yml file with passing build configurations for Linux, Unix, and Windows environments. Please remove: go test -v -race ./... and simply have the program download one .wet file instead.

The shell commands clean.sh and extract.sh are tested in the continuous integration suite as Docker containers.

Payment

1 ETH to someone who can meet the following requirements.

Related to #5 which will have a 2.5 bounty for the CLI tool upon completion of the Docker Container.

Thank you @iamonuwa, I will be reviewing the PR tomorrow night!


Mention easier way of adding persisting additional tokens 2

My previous issue was closed and I do not know how to reopen it. Since I think it is not resolved, I kindly ask you to check my comment to #22613#issuecomment-869206704.
Thanks.

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

ID: 64faf33b-2511-5e8f-c1b0-94f32dc07fa4
Version Independent ID: 2697abc8-7727-2eba-74a5-fbbc8a7c80ff
Content: Persist additional claims and tokens from external providers in ASP.NET Core
Content Source: aspnetcore/security/authentication/social/additional-claims.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@guardrex closed that in #22621 19 days ago

Leave a comment in  #22613