Adding linter tool (TUM)

Dear all,
KMT has been experimenting with a linting tool, that checks certain formatting criteria of the newly committed code lines (e.g. line length, white spaces, upper and lower cases of Fortran syntax). Please, feel free to check the rules yourselves in this file.
According to my understanding of the rule set and my experience so far, those rules comply well with what we had once defined as a coding standard.
With your permission, I am merging this PR, which will then activate the linter and enforce the code formatting rules. Please, give me your feedback.
Best regards,
Simon

I'm not an expert of the regular expressions, but are the following functions doing what the corresponding comments say? I'm suspecting that they remove the subroutine/function names afte END SUBROUTINE/FUNCTION because of the "replace None".
{
"name": "end_subroutine_2",
"description": "END SUBROUTINE shall be followed by subroutine name",
"pattern": r"^ *END *SUBROUTINE *$",
"replace": None,
},
{
    "name": "end_function_2",
    "description": "END FUNCTION shall be followed by function name",
    "pattern": r"^ *END *FUNCTION *$",
    "replace": None,
},

This function conflicts with the style guide we have (or at least I use) to use the spaces around the braces to distinguish functions/subroutines from the array indices.
{
    "name": "open_parenthesis",
    "description": "Opening parenthesis shall not be followed by a space",
    "pattern": r"\( +(?!&)",
    "replace": "(",
},
{

I'm not an expert of the regular expressions, but are the following rules doing what the corresponding comments say? I'm suspecting that they remove the subroutine/function names afte END SUBROUTINE/FUNCTION because of the "replace None".
{ "name": "end_subroutine_2", "description": "END SUBROUTINE shall be followed by subroutine name", "pattern": r"^ *END *SUBROUTINE *$", "replace": None, },
{
    "name": "end_function_2",
    "description": "END FUNCTION shall be followed by function name",
    "pattern": r"^ *END *FUNCTION *$",
    "replace": None,
},

That may be a misunderstanding. As I see it, the "replace" refers to how an automated fix would address that issue, when you execute the tool with "--fix". Here, no automated fix would take place. The programmer is urged to add the function name.

The following rules conflict with the style guide we have (or at least I use) to use the spaces around the braces to distinguish functions/subroutines from the array indices.
{
    "name": "open_parenthesis",
    "description": "Opening parenthesis shall not be followed by a space",
    "pattern": r"\( +(?!&)",
    "replace": "(",
},
{
    "name": "close_parenthesis",
    "description": "Closing parenthesis shall not follow a space",
    "pattern": r" +\)",
    "replace": ")",
},

Yes, that is the rule I personally struggle with the most as well... Shall we adopt it or discuss it with KMT? I do believe that it would be great if the rules were consistent between us and KMT, as otherwise trouble boils up once we try and merge things into master, which happens more than initially expected.

I'm not an expert of the regular expressions, but are the following rules doing what the corresponding comments say? I'm suspecting that they remove the subroutine/function names afte END SUBROUTINE/FUNCTION because of the "replace None".
{ "name": "end_subroutine_2", "description": "END SUBROUTINE shall be followed by subroutine name", "pattern": r"^ *END *SUBROUTINE *$", "replace": None, },
{
    "name": "end_function_2",
    "description": "END FUNCTION shall be followed by function name",
    "pattern": r"^ *END *FUNCTION *$",
    "replace": None,
},

That may be a misunderstanding. As I see it, the "replace" refers to how an automated fix would address that issue, when you execute the tool with "--fix". Here, no automated fix would take place. The programmer is urged to add the function name.

Ok, now I see it from the following. Thanks.
# Then apply rules that apply to the code after stripping comments
for rule in _rules:
    # The position of the comment marker can change as rules are applied
    pos = comment_pos(line)
    pattern = rule["pattern"]
    replace = rule["replace"]
    if re.search(pattern, line[:pos]):
        if replace is not None:
            line = re.sub(pattern, replace, line[:pos]) + line[pos:]

return line

The following rules conflict with the style guide we have (or at least I use) to use the spaces around the braces to distinguish functions/subroutines from the array indices.
{
    "name": "open_parenthesis",
    "description": "Opening parenthesis shall not be followed by a space",
    "pattern": r"\( +(?!&)",
    "replace": "(",
},
{
    "name": "close_parenthesis",
    "description": "Closing parenthesis shall not follow a space",
    "pattern": r" +\)",
    "replace": ")",
},

Yes, that is the rule I personally struggle with the most as well... Shall we adopt it or discuss it with KMT? I do believe that it would be great if the rules were consistent between us and KMT, as otherwise trouble boils up once we try and merge things into master, which happens more than initially expected.

Yes, let's ask their opinion about this rule.


[Polymetis] Add read only mode for Franka client

Description
Adds a read-only mode for Franka. Robot states are read from the robot, but no control will be applied. Can work in white LED mode.
Potential uses include:

Controller debugging
Demonstration recording
Measuring ideal EE poses for grasps
Data collection for camera calibration

Read-only mode can be launched with: launch_robot.py robot_client=franka_hardware robot_client.executable_cfg.readonly=true
Type of change
Please check the options that are relevant.

[ ] Bug fix (non-breaking change that fixes an issue)
[ ] Proposes a change (non-breaking change that isn't necessarily a bug)
[ ] Refactor
[x] New feature (non-breaking change that adds a new functionality)
[ ] Breaking change (fix or feature that would break some existing functionality downstream)
[ ] This is a unit test
[ ] Documentation only change
[ ] Datasets Release
[ ] Models Release

Type of requested review

[ ] I want a thorough review of the implementation.
[x] I want a high level review.
[ ] I want a deep design review.

Before and After
If this PR introduces a change or fixes a bug, please add before and after screenshots (if this is causes a UX change) or before and after examples(this could be plain text, videos etc ) to demonstrate the change.
If this PR introduces a new feature, please also add examples or screenshots demonstrating the feature.
Testing
Please describe the tests that you ran to verify your changes and how we can reproduce.
Checklist:

[x] I have performed manual end-to-end testing of the feature in my environment.
[x] I have added Docstrings and comments to the code.
[x] I have made changes to existing documentation where needed.
[ ] I have added tests that show that the PR is functional.
[x] New and existing unit tests pass locally with my changes.
[x] I have added relevant collaborators to review the PR before merge.
[ ] [Polymetis only] I ran on hardware (1) all scripts in tests/scripts, (2) asv benchmarks.

Codecov Report

Merging #977 (8e2ef0d) into main (0daf11a) will increase coverage by 0.00%.
The diff coverage is n/a.

:exclamation: Current head 8e2ef0d differs from pull request most recent head 78cb91b. Consider uploading reports for the commit 78cb91b to get more accurate results

@@           Coverage Diff           @@
##             main     #977   +/-   ##
=======================================
  Coverage   32.75%   32.76%
=======================================
  Files         349      349
  Lines       34437    34437
=======================================
+ Hits        11281    11283    +2
+ Misses      23156    23154    -2

Impacted Files
Coverage Δ

interpreter/robot/tests/world.py
75.18% <0.00%> (+0.72%)
:arrow_up:

lowlevel/minecraft/pyworld/fake_mobs.py
88.98% <0.00%> (+0.84%)
:arrow_up:


[bug] Duplicates hijacked session after click on the same user

Hello!
I found interesting bug. If I click hijack button in Django admin panel (for example<EMAIL_ADDRESS>and return back and click the same button — hijacked session for this user was duplicates!
And I need to click Release<EMAIL_ADDRESS>twice (or more, equal to click hijack<EMAIL_ADDRESS>in admin panel).
Would be great to fix this bug 👍
My idea is simply hide hijack user button in admin panel, if this user is already hijacked.
Thanks, btw, awesome library!

Hi @koddr. Thanks for pointing this out.
Can you provide a test case where this behaviour can be reproduced, so we easily can work on a fix.

@walterrenner it's simple to reproduce:

First: click Log in as ...:

Second: (after redirect) go to that admin page and click to Log in as ... again (on same user).
Finally: go to page, were hijack panel is showing and click Release ....
After redirect, go to that page — nothing to happen, user is still hijacked!
If you click Release ... again — user is un-hijacked (because we click Log in as ... twice).

Would be nice to hide Log in as ... button in admin page, if user is already hijacked.

This works as designed and is not a bug. Technically it's not a duplicate, it's another hijacked user in the history. Hijack stacks all logins, see here:
https://github.com/arteria/django-hijack/blob/master/hijack/helpers.py#L122-L123
Your back button works because the hijacked user has the access rights to the admin as well.


Mac: Reloading the page clears message drafts

I confirm (by marking "x" in the [ ] below: [x]):

[X] This is not a troubleshooting question. Troubleshooting questions go here: http://www.mattermost.org/troubleshoot/.
[X] This doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
[X] I have read contributing guidelines.

Summary
Reloading the page clears message drafts
Steps to reproduce
Mac v10.12.6; Mattermost pre-release server; Mattermost Desktop App v4.1.0-RC1

Type a message in the input box.
Go to View > Reload  in the Menu Bar
OR
Hit CMD+R

Expected behavior
Reloads the current page. Message draft from step 1 stays in the input box.
Observed behavior
Reloads the current page. Message draft from step 1 disappears.

This doesn't reproduce on Mattermost server v4.9.0, interestingly. However, I cannot reproduce it on Chrome, only on the desktop app.

@yuya-oc It reproduces for me, but I'm able to reproduce it on the browser now as well. So I created a ticket for the server team https://mattermost.atlassian.net/browse/MM-10397


Delete .gitmodules

These submodules were already removed in abaf6cb0adafc0c0b482724edcf95f89225940d2, but the .gitmodules file was never modified to reflect that.
This was causing Carthage update failures of the form:
Parse error: expected submodule commit SHA in ls-tree output:

/cc @aschuch

:+1:

Thanks @jspahrsummers !

No problem. :tada:

:+1:

I am still getting this error with 0.6 and 0.6.1 in Carthage.  If I try going back to 0.5 (just to find anything that works) I get a different error:

*** Checking out Moya at "0.5"
fatal: reference is not a tree: 80cc05720013042eccfc8bc20a8304cd3ae656d7

I have tried an empty Cartfile with nothing but Moya and also fully deleting the Carthage/Checkout/Moya folder to start from scratch and I'm still getting this.  Is the errant .gitmodules in my own repo or in Moya's?

Not sure. Any suggestion, @jspahrsummers?

@crmorse If you're using Carthage to manage submodules, you might be hitting https://github.com/Carthage/Carthage/issues/320.


remove directory

https://github.com/twosigma/beaker-notebook/tree/master/embeddable_assets
is no longer used

https://github.com/twosigma/beaker-notebook/pull/2805


nlog for mono 2

Hi,
what's the last version of Nlog for Mono 2 and where can I get it?
I'd like to use Nlog with Unity3D, which unfortunately uses a rather outdated version of Mono.
I tried version 4.3.8 for .Net 3.5, which first appears to work. However, after writing to a file Nlog stops with a NotImplementedException which is raised from class System.Runtime.InteropServices/Marshal in method GetHRForLastWin32Error.
I tried the old Mono 2 version from codeplex, but it seems to fail to find the config file. As far as I can tell, I need to use the NLog.dll.nlog alternative. This may not exist in this old version.
Thanks for any advice!

The mono 2 version is currently as source only. You need to compile the mono.sln

Okay, thanks!
But - how would I compile mono.sln, for Mono 2? I see the defines and output paths, but Nlog.mono, when opened, targets .Net Framework 4.5. Should I change it to .Net 3.5?

But - how would I compile mono.sln, for Mono 2? I see the defines and output paths, but Nlog.mono, when opened, targets .Net Framework 4.5. Should I change it to .Net 3.5?

good point. I think you should. Let me know if can't get it compiling.
FYI the current mono solution is build and unit tested every commit/change on Travis

Unfortunately build of nlog.mono fails in RegistryLayoutRenderer.cs, line 93 - "RegistryView" is not known.

That's strange. Will check that. Do you know if mono 4 = net45?

Yes, as far as I can tell. See http://www.mono-project.com/docs/about-mono/releases/4.0.0/

Sorry about the late reply. I guess this is still an issue?

Yes, unfortunately. Can I be of help?

I will try something, too bad Mono is currently broken on my machine.
Could you google what the problem is with the AuthorizationRule on Mono?

Any experience with Mono running on Windows?
Installed mono, but even after reboot getting the error:

Error	CS0246	The type or namespace name 'Mono' could not be found (are you missing a using directive or an assembly reference?)	NLog.mono	X:\nlog\NLog\src\NLog\Internal\FileAppenders\UnixMultiProcessFileAppender.cs	51	Build	Active

it Mono.Posix. Cannot find the mono2 compatible one

See https://github.com/NLog/NLog/pull/1682

Don't know if it helps to fix the problem - but I had a look at the Mono sources which are used by Unity3D (here https://github.com/Unity-Technologies/mono/blob/unity-staging/mcs/class/corlib/System.Security.AccessControl)
Apparently the exception is thrown, because accessMask == 0 in the constructor of class AuthorizationRule. which is called as the base class constructor by class AccessRule, which in turn is called as base class from class MutexAccessRule, where accessMask is unfortunately hard coded as 0. MutexAccessRule itself seems to be called from NLog.Internal.FileAppenders.BaseFileAppender.CreateSharableMutex. Can this be changed at all?

Can this be changed at all?

I think we could change it, at least for Mono :)

Anything new on this? Anything I could do?

Well I didn't found  Mono.Posix for .NET 3.5 and therefor I'm stuck.

Would a Mono.Posix ver. 2 work ?
Mono.Posix.zip
Taken from here:
http://www.go-mono.com/mono-downloads/

You could download and install an older Mono from http://download.mono-project.com/archive.
I don't know if there will be a problem later on with Unity3D, but there is a mono.posix.dll for CLR 2.0/3.5 inside the latest v3 (3.12.1). You can find it in C:\Program Files (x86)\Mono\lib\mono\2.0 after installation.

Will look at this now. I guess the version of @snakefoot will work, Thanks!

Almost there :)

if [ "$MONO_V" = "MONO2" ]; then
nuget restore src/NLog.mono2.sln
nuget install xunit.runners -Version 1.9.2 -OutputDirectory testrunner
xbuild /p:Configuration=Release src/NLog.mono2.sln
mono ./testrunner/xunit.runners.1.9.2/tools/xunit.console.exe      "./build/bin/Release/Mono 2.x/NLog.UnitTests.dll"
fi
./build-mono.sh: line 5: nuget: command not found

Someone any idea how to fix? See https://github.com/NLog/NLog/pull/1682 and https://travis-ci.org/NLog/NLog/jobs/170255542

Is nuget available?
https://github.com/ekonbenefits/dynamitey/tree/master/.nuget
Was mentioned here:
http://stackoverflow.com/questions/16751772/how-do-i-use-travis-ci-with-c-sharp-or-f

Does NuGet support Mono?
The command-line tool, nuget.exe, builds and runs under Mono 3.2+ and can create packages in Mono.

https://docs.nuget.org/ndocs/policies/nuget-faq
No mono 2 support. But will try, dunno why it won't work currently.

Seems that you just need the Microsoft.Build.dll (See my first link in previous comment), and then you can run NuGet on Mono2
http://stackoverflow.com/questions/11301613/how-to-run-nuget-on-mono-2-10-9

Its almost working

I think

got now:

The contextual keyword `var' may only appear within a local variable declaration

unit tests,
1497 total, 410 failed, 13 skipped, took 105.738 seconds
don't get it. See https://travis-ci.org/NLog/NLog/jobs/170899261

anyone time to look at this?

Seems Mono ver. 2 doesn't support this call:
NLog.Internal.FileAppenders.BaseFileAppender.CreateSharableMutex
MutexAccessRule throws the following exception:
System.ArgumentOutOfRangeException : Argument is out of range.
Which is caused by Mono ver. 2 not having a fully working MutexAccessRule.
The problem seems to have been fixed with this commit to Mono (Correctly handles MutexRights eventRights)
https://github.com/mono/mono/commit/f669650fdbd4c97895db9ac4fb64263a47bc2d8d

The problem seems to have been fixed with this commit to Mono (Correctly handles MutexRights eventRights)

But that isn't mono 2 right?

Know very little about Mono's eagerness to maintain old release-branches. Just like to find stuff on Google :).
But when looking at the commit then it is certainly not targeted for Mono ver. 2, and since the build fails with the mentioned exception, it has probably not yet reached Mono ver. 2.

yes that seems logical. Thx!

Sorry, this is not trivial to fix. Won't expect that it will run with mono 2 soon.

From a tweet I understand NLog 4.3.7 was working correctly?
https://twitter.com/liam_cary/status/804263394245165058

changes in NLog 4.3.8: https://github.com/NLog/NLog/milestone/28?closed=1

Maybe the use of HashSet in FilePathLayout. It is kind of new container. Only available from .NET 3.5 (MONO 3)

The funny part is that the tweet points back to this thread, where the topic starter tells that 4.3.8 is not working :)

Though no idea what version he was upgrading from.

Yes indeed. I think the problem is in the mutex (which isn't added in NLog 4.3.8?)

The archive mutex has been added in NLog 4.3.9 (https://github.com/NLog/NLog/pull/1646)

@ujaroe NLog ver. 4.4.1 should now perform runtime check whether named mutex is available, and should not throw ArgumentOutOfRangeException.

We need to merge this with https://github.com/NLog/NLog/pull/1682

The problems with 4.3.8 may be related to the actual Unity3D runtime I was using.
Unfortunately I was'nt able to take part in the discussion related to Mono2 itself. However, I can confirm now, that NLog 4.4.1 from Nuget for .Net 3.5 works (Unity3D 5.5.0)!
Thank you so much!

Oh - no. Have to correct myself. The out-of-box version gives this exception:
System.NotImplementedException: The requested feature is not implemented. (Int32  GetHRForLastWin32Error())
However, it seems I can avoid this by compiling myself according to https://github.com/NLog/NLog/issues/1644#issuecomment-248829571

Try and enable ForceManaged=true on the FileTarget.

With >ForcedManaged="true"< on the file target, the out-of-box-version 4.4.1 (.Net 3.5) appears to work correctly so far.
Thanks again!

Created #1893 to always use ForcedManaged on MONO.

@304NotModified Guess this has been resolved with NLog 4.4.2, as the mono-runtime-checks makes the NET3_5 nuget-package workable for MONO2.

Yes indeed, but I also trying to get mono2 running on travis, almost there I think
https://github.com/NLog/NLog/pull/1682


storage: add tests for RangeEvents and its underlying functions

To help make watch work correctly.
The first commit improves keyIndex built for better testing, which helps to test keyIndex.since better.

Some of the commits are pretty independent. Can we separate them out into a few pull requests next time?

Can we separate them out into a few pull requests next time?

Sure. Will take care of it next time.

LGTM except the last comment.

Thanks for the patient review!


Bucket Files via S3 Do not Persist After docker-compose down

Describe the bug

I create a bucket via mc successfully (see image below) and upload some files via mc cp

After I do docker-compose down and docker-compose up -d, the buckets no longer available via the S3 URL

When looking at the volume files, it seems that the test bucket files are still there

System Setup
Docker setup, see below for docker-compose.yml and s3.json
version: '3.9'

services:
  master:
    image: chrislusf/seaweedfs
    ports:
      - 9333:9333
      - 19333:19333
      - 9324:9324
    command: "master -ip=master -ip.bind=<IP_ADDRESS> -metricsPort=9324"
  volume:
    image: chrislusf/seaweedfs
    ports:
      - 8085:8085
      - 18085:18085
      - 9325:9325
    command: 'volume -dir="/data" -mserver="master:9333" -ip.bind=<IP_ADDRESS> -port=8085  -metricsPort=9325'
    volumes:
      - /mnt/bay-01/apps/seaweedfs/data:/data
    depends_on:
      - master
  filer:
    image: chrislusf/seaweedfs # use a remote image
    ports:
      - 8888:8888
      - 18888:18888
      - 9326:9326
    command: 'filer -master="master:9333" -ip.bind=<IP_ADDRESS> -metricsPort=9326'
    tty: true
    stdin_open: true
    depends_on:
      - master
      - volume
  s3:
    image: chrislusf/seaweedfs # use a remote image
    ports:
      - 8333:8333
      - 9327:9327
    command: 's3 -filer="filer:8888" -ip.bind=<IP_ADDRESS> -metricsPort=9327'
    volumes:
      - ./s3.json:/etc/seaweedfs/s3.json
    depends_on:
      - master
      - volume
      - filer

{
  "identities": [
    {
      "name": "ripledi",
      "credentials": [
        {
          "accessKey": "XayorXXeZFUhdKSwuXhxcLeZUzYj2rSU7eEx8e8pxTDeLtXy7eJdKTT",
          "secretKey": "FmZ2qVfve8CFUkGkh5sddZfT5LU6h5F2C8ZnzbE77CcdGxN6roCX6Km"
        }
      ],
      "actions": [
        "Admin",
        "Read",
        "List",
        "Tagging",
        "Write"
      ]
    }
  ]
}

Expected behavior
I expect to see in the S3 API end-point the bucket/files that I uploaded prior to docker-compose down
Thank you in advance!

If you setup an external filer store, such as mysql, the bucket data will persist.

@chrislusf I looked through all of the examples in the docker folder and do not see an example on how to do this, do you mind giving me an example? I looked through the documentation and the only thing I could find is the following.
https://github.com/seaweedfs/seaweedfs/issues/1227
https://github.com/seaweedfs/seaweedfs/tree/master/weed/filer/postgres

OK I tried the following and it still is not working.
Added a PostgreSQL database to my docker-compose.yml and mounted the filer.toml
filer.toml
[postgres] # or cockroachdb, YugabyteDB
# CREATE TABLE IF NOT EXISTS filemeta (
#   dirhash     BIGINT,
#   name        VARCHAR(65535),
#   directory   VARCHAR(65535),
#   meta        bytea,
#   PRIMARY KEY (dirhash, name)
# );
enabled = true
hostname = "db"
port = 5432
username = "postgres"
password = "3QdWxScW8jv6yHn9"
database = "seaweedfs"          # create or use an existing database
schema = ""
sslmode = "disable"
connection_max_idle = 100
connection_max_open = 100
connection_max_lifetime_seconds = 0
# if insert/upsert failing, you can disable upsert or update query syntax to match your RDBMS syntax:
enableUpsert = true
upsertQuery = """INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT (dirhash,name) DO UPDATE SET meta = EXCLUDED.meta WHERE "%[1]s".meta != EXCLUDED.meta"""

  filer:
    image: chrislusf/seaweedfs # use a remote image
    ports:
      - 8888:8888
      - 18888:18888
      - 9326:9326
    command: 'filer -master="master:9333" -ip.bind=<IP_ADDRESS> -metricsPort=9326'
    tty: true
    stdin_open: true
    volumes:
      - ./filer.toml:/etc/seaweedfs/filer.toml
    depends_on:
      - master
      - volume
      - db
  db:
    image: postgres
    ports:
      - 5435:5432
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=3QdWxScW8jv6yHn9
      - POSTGRES_DB=seaweedfs


404 error accessing websocket ("Not refreshing"/Starscream.WSError) when configured OctoPrint URL ends with /

This is not strictly speaking a bug report against OctoPod since it appears to me that the underlying problem belongs to OctoPrint (and therefore there is a full bug report here:
https://github.com/OctoPrint/OctoPrint/issues/3652 )
but for your information, and that of anyone else suffering this error.

(Not that it would hurt to trim the trailing slash off on the OctoPod side, either, of course.)

@gdombiak this is a known issue we discovered which testing OctoPrint for Mac


tempFolder is not recognized when using sanitizer htmleditor

Hello. It gives the following error
Parser Error Message: Unrecognized attribute 'tempFolder'. Note that attribute names are case-sensitive.
I am trying to open HtmlEditorExtender page from your sample site

Hello,
It seems you run the latest source of a Sample Site, which uses AjaxControlToolkit.dll compiled from one of the releases.
In the latest release, we made changes to that assembly (see #22), so using a DLL from the release in the source code of the latest Sample Site version will lead to this error.
There should be no error if you run the Sample Site from the downloaded solution without any changes.
Please check what assembly the Sample Site references.
I am looking forward to your response.

Also, you can run a Sample Site from the Documents\ASP.NET AJAX Control Toolkit\SampleSite folder if you run the installer.

I also tested with my own project too. It gives that error. Webconfig does not recognize attribute as tempFolder

It does not recognize the attribute, because it was added to Web.config of a Sample Site after the latest release. You can safely remove the attribute from Web.config`.

ah so that attribute is not necessary? alright
by the way nuget sanitizer also adds that attribute automatically

The code that adds this attribute does not exist, so the NuGet package can not do that.
Would you please record a video that shows it? You can use the Jing tool for that purpose.

i guess you are right
i just composed a new project and i dont see that attribute
ty


Tile files

i wonder if you could add to the editor the possibility of having two open files under the same view. It's a feature used very common in Sublime Text and other editor, and I don't know if maybe this feature can be implemented also in CATS.
I'm very happy using CATS, mainly because I have a portable IDE.

Not fully aware of the sublime editor features. What does it mean to have two open files under the same view? Is it kind of seeing two editors side by side (so you can easily compare the two of them) or do you mean having the same file open twice in different editor tabs ?
P.S Good to hear you using CATS. Right now in the process of updating to the latest language services.

On 30 Apr 2015, at 12:41, David Trillo<EMAIL_ADDRESS>wrote:
i wonder if you could add to the editor the possibility of having two open files under the same view. It's a feature used very common in Sublime Text and other editor, and I don't know if maybe this feature can be implemented also in CATS.
I'm very happy using CATS, mainly because I have a portable IDE.
—
Reply to this email directly or view it on GitHub https://github.com/jbaron/cats/issues/149.

Yes, it's a cool IDE. I would like to have more "preferences", such as Open last project automatically, or setting properties for a project as defaults.
Keep in inform of new changes for testing, if you want.
The main reason I have for having two files opened on a single view is for avoiding errors. For example, you can have the interface with properties on one file, and in other, the HTML view that you're building for this object.
In large projects, it could be great if you can have this feature, but of course, you can survive with tabs!
I'm only proposing! Another issue if it can't be implemented!

Ok, understand. So the problem is right now you cannot see them at the same time.
Perhaps a nice option would be able to detach an editor tab into a seperate window (and attach it back later again). Will put this on the todo list.

Created a todo item


Adding calculator for hexagonal pyramid

Under calculator of 3D shapes in the pyramid section I would like to add the calculator for hexagonal pyramid. Please assign this to me under GSSoC.

@mehabhalodiya Go ahead with this :)
Deadline 20 April 11:59 PM IST


Feature request: option for not using ofborg cache

I want to review NixOS/Nixpkgs#42854, but it fails because one of the packages that need to be rebuilt after that PR has since been dropped from Nixpkgs. It would be nice to have the option of not using ofborg cache in such cases.

An option could be added here: https://github.com/Mic92/nix-review/blob/master/nix_review/review.py#L30
and the resulting flag used in a conditional here: https://github.com/Mic92/nix-review/blob/master/nix_review/review.py#L58

I'll do that. How would you call the flag?

How about --eval=ofborg|local?
Please also add a short description here: https://github.com/Mic92/nix-review#remote-builder

What does this have to do with remote builders?


[BUG] Multiple-cursors broken?

Multiple cursors behave oddly when inserting special characters. Sometimes one of the cursors would jump to a new location, or one of them will insert the matching parens/quotes while the other won't, which makes everything go out of sync. Is this the expected behavior? If so, is there a way for me to opt out and insert what I am typing literally while I'm in mc mode (no parens completion)?
Here is a gif of the cursor jumping issue, because I highly doubt this one is intentional:

Note that cursors are in the same "context" (inside "", inside <>). I have no idea what is causing this.
Reproducing the gif

Open a buffer with the following contents

        @icon('line-graph', 'icon-sm text-dark-faint m-r-4') ${{ number_format($product->totalRevenue() / 100) }}

        @icon('users', 'icon-sm text-dark-faint m-r-4') {{ $product->totalPurchases() }}

Type: /no<Enter>gzda'???
(the cursor jumps when I type ')

I tried replacing my .doom.d with only default "init.example.el" and running doom refresh but nothing changed. But when I replaced .emacs.d with my simple init.el where I installed evil-mc, the cursor jumping problem was gone (but not the mismatched parens/quotes).
System information

- OS: gnu/linux (x86_64-pc-linux-gnu)
- Shell: /usr/bin/zsh
- Emacs: 26.2 (Apr 12, 2019)
- Doom: 2.0.9 (HEAD -> develop, _upgrade/develop f754d4ff 2019-07-23 18:23:17 +0200)
- Graphic display: t (daemon: nil)
- System features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2
- Details:
  env bootstrapper: envvar-file
  elc count: 0
  uname -a:  Linux 5.2.6-arch1-1-ARCH #1 SMP PREEMPT Sun Aug 4 14:58:49 UTC 2019 x86_64
  modules:   (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces :editor evil file-templates fold multiple-cursors rotate-text snippets :emacs dired electric vc :tools eval flycheck (lookup +docsets) magit :lang cc data emacs-lisp javascript markdown (org +dragndrop +ipython +pandoc +present) sh :config default)
  packages:  (pkgbuild-mode)
  exec-path: (/usr/local/bin /usr/bin /bin /usr/local/sbin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl /usr/lib/emacs/26.2/x86_64-pc-linux-gnu/)

Seems like it jumps if I manually place my cursor at the end of the 2nd occurrence of "normal" and type a'.  Does this have anything to do with syntax not highlighting on the 2nd ?

Ok the ( on the 3rd line wasn't closed. But still, what's with the weird jump? How is it trying to help me with that?

is there a way for me to opt out and insert what I am typing literally while I'm in mc mode

This appears to be caused by smartparens. It will sometimes move the cursor to the nearest closing parentheses/quote/pair rather than insert a new one, because it assumes that's what you actually wanted to do. It's a behavior I've been trying to disable myself for a while now, but I haven't discovered how to yet. I'll let you know if/when I find it.

This seems to be fixed now, I can't reproduce it.


Proposal: A better way to specify storage locations

To get more flexibility for the future it is necessary to redo the filename substitution logic.
Therefore I'd like to get some feedback on the draft below:
Example configuration (DRAFT):
{
    "filter": "has:attachment<EMAIL_ADDRESS>    "match": {
        "from"<EMAIL_ADDRESS>        "subject": "Prefix - (.*) - Suffix",
        "to"<EMAIL_ADDRESS>// Support for<EMAIL_ADDRESS>syntax for Gmail addresses
    }
    "attachments": [
        {
            "match": {"name": "Image-([0-9]+)\.jpg"},
            "location": "Folder1/Subfolder1/${match.subject.1}/${email.subject} - ${match.att.1}.jpg",
            // example: subject="Prefix - Test - Suffix", filename="Image-3.jpg" =>
            //   location="Folder1/Subfolder1/Test/Prefix - Test - Suffix - 3.jpg
            "overwrite": true // Overwrite existing files
        },
        {
            "match": {"name": ".+\..+"}, // means *.* or <att.basename>.<att.ext>
            "location": "Folder2/Subfolder2/${att.basename}-${date:yyyy-MM-dd}.${att.ext}",
            // example: subject="Prefix - Test - Suffix", filename="file.txt" =>
            //   location="Folder2/Subfolder2/Test/Prefix - Test - Suffix - 3.jpg
            "overwrite": false // Skip existing files
        }
    ],
},

Substitution parameters (DRAFT):

Threads (see https://developers.google.com/apps-script/reference/gmail/gmail-thread for available data)

${thread.subject}: Subject of first message in thread
${thread.id}: Thread ID
${thread.labels}: Thread labels
${thread.lastMessageDate:}: Date of last message in thread

Emails (see https://developers.google.com/apps-script/reference/gmail/gmail-message for available data):

${message.date:}: Date and time

e.g. ${date:yyyy-MM-dd_HH-mm-ss}
For all supported format letters see https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

${message.from}: Sender email address
${message.from.match.[1-9]}: Regex match in sender email address
${message.id}: Email ID
${message.subject}: Email subject
${message.subject.match.[1-9]}: Match in email subject
${message.to}: Recipient email address (NOTE: May contain more email addresses!)
${message.to.match.[1-9]}: Match in recipient email address

Attachments (see https://developers.google.com/apps-script/reference/gmail/gmail-attachment for available data):

${attachment.contentType}: Attachment content type (e.g. application/jpeg)
${attachment.contentType.match.[1-9]}: Attachment content type (e.g. application/jpeg)
${attachment.index}: Attachment index (starting from 0)
${attachment.name}: Attachment filename
${attachment.name.base}: Attachment file basename without extension
${attachment.name.ext}: Attachment file extension
${attachment.name.match.[1-9]}: Matching attachment filename string

Regular expression matches (*.match.[1-9]):

The parenthesis "()" define the possible match group number, counted from left to right.
For more information about using regular expressions see https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/RegExp

Let me know, what you think so I can start implementing the feature.

Does this work?  simply put, I'd like to make a new folder based on the email subject and senders name everytime attachments are sent in an email.  i can't understand the above logic.
i'd also like for it to save the email as a pdf, and attachments in the same folder.
the use case is someone sending me a product email with attachments, and i'd like to save it according to the product type and the sender.

I'm closing this issue since GMail2GDrive is discontinued and has been superseded by the much improved Gmail Processor.
It fully implements this functionality in modified and improved form.
See the Getting Started Guide as well as the Reference Docs for more information


change background image

image provided by Jeremy

using a different image from the cumberlands. also altering some copy at checkout page


Reset "Don't show again"

Hello,
I Visual Studio Code, I accidentally clicked on "Dont show again", when there was a prompt. Can I reset/undo that setting somewhere without deleting Visual Studio Code and all other user files?
A simple command or a simple button to do that is all we want :(

Thanks VS-Code-Bot, but nope, this is a total different case. Thats why we are human and you a only a bot :D

See #24815 which was recently closed by @bpasero as out-of-scope.

Not possible unless you delete the workspace or global state. To get it you can run "F1 > Log Storage Contents" and check devtools.


Add meta support?

I'm trying to dyamically export a CSV to an S3 depending on the columns the user picks. I have a few nested objects, and arrays, and I'm having a hard time to use it with flatten. basically I'm doing this:
const common = (name: keyof Data.CitizenDataSetMixin) => (d: Data.CitizenDataSet, field: any, meh: any) => {
  let value = _.get(d, name, '')
  switch (name) {
    /* do some value transforms here */
  }
  return value/**/
}

  const csv = await bluebird.fromCallback<string>((resolve) => {
    json2csv<Data.CitizenDataSetMixin>({
      data,
      fields: selected.map((field: keyof Data.CitizenDataSetMixin) => {
        return {
          label: Data.CitizenFieldGuard[field] || field,
          value: common(field)
        }
      }),
      ...defaultCSVOptions
    }, resolve)
  })

the problem is that I have some paths that turns out as phone.0.value or documents.1.type, and since it's dynamic (some rows doesn't have all the information), I'm having a hard time 'translating' the paths before hand. I really don't want to transverse all the items and collecting their max number for each dynamic column to find out how to set the name (like transform document field chosen by the user to document.0.type, document.1.type, and so on). so I was thinking to passing some extra meta data, but having no idea how to even make a PR to implement this

no other way around, I couldn't know how many would be, so I'm having to count them before hand


Count iOS safari-based browsers as safari

All apps on iOS must use safari engine by apple rules.
This PR will make safari-based iOS browsers count as safari thus improving stats

Thank you for your contribution 👍 It seems if we change this we can simplify the condition above this one too. The conditionals we have today match what is done at caniuse.com, when you import your Google Analytics. It would be nice if we kept it this way, but on the other hand these conditionals are a bit confusing and your changes seem to make sense!
 When I use it with my own analytics I don't see any changes because my iOS traffic always shows up as Safari, Chrome or Safari (in-app).

@dmfrancisco you're right, conditions may be further simplified.
Found the reason, in original data items are like
[
    "iOS",
    "9.3.5",
    "YaBrowser",
    "9.0",
    "Yes",
    "5808"
  ]

Have you see any iOS app in stats? Looks like we may remove this completely and replace all iOS/iPhone/iPad/... with safari

This looks good 👍 Thank you again!


Please include S/4HANA in the feed generator

Topic details

Name: S/4HANA
URL: https://community.sap.com/t5/c-khhcw49343/SAP+S%25252F4HANA/pd-p/73554900100800000266
URL: https://community.sap.com/t5/tag/S4HANA/tg-p/board-id/consumer-productsblog-board

@abap-weasel It will be included in the next run.

@abap-weasel it is now available - https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/SAP-S4HANA-blog-posts.xml


winscp link broken

When installing winscp 5.13, I get an error 500 on the used url.
URL https://sourceforge.net/projects/winscp/files/WinSCP/5.13/WinSCP-5.13-Portable.zip is not valid

This seems to be a SourceForge problem.
Even https://sourceforge.net/projects/winscp/files/ doesn't work.

Is the version on sourceforge a repackaged version? Why not use the one directly from winscp.net?
I can download it from there, but don't know how to manually inject it into scoop, as a temporary workaround.

Situation is back to normal.


Latest click broke dask-jobqueue

did mamba install click=8.0.4 to get it working again.

i believe the issue was actually coming from distributed and it appears to have been fixed https://github.com/dask/distributed/issues/6013 and https://github.com/dask/distributed/pull/6018

have tried upgrade distributed to the latest version 2022.04.0?

No, because I rely on conda-forge!
https://anaconda.org/conda-forge/distributed

Then you are in luck as we just merged an update ( https://github.com/conda-forge/distributed-feedstock/pull/202 ). Will take a bit to mirror to CDN

(should add it is also on CDN now 🙂)


Recommended changes resulting from automated audit

We performed an automated audit of your Cake addin and found that it does not follow all the best practices.
We encourage you to make the following modifications:

[ ] We were unable to determine what version of Cake.Core your addin is referencing. Please make sure you are referencing 0.28.0
[ ] Your addin should target netstandard2.0. Please note that there is no need to multi-target, netstandard2.0 is sufficient.
[x] The nuget package for your addin should use the cake-contrib icon. Specifically, your addin's .csproj should have a line like this: <PackageIconUrl>https://cdn.rawgit.com/cake-contrib/graphics/a5cf0f881c390650144b2243ae551d5b9f836196/png/cake-contrib-medium.png</PackageIconUrl>.

Apologies if this is already being worked on, or if there are existing open issues, this issue was created based on what is currently published for this package on NuGet.org and in the project on github.

We performed a follow up automated audit of your Cake addin and found that some (or all) issues previously identified have not been resolved.
We strongly encourage you to make the modifications previously highlighted.
Apologies if this is already being worked on, or if there are existing open issues, this issue was created based on what is currently published for this package on NuGet.
This comment was created by a tool: Cake.AddinDiscoverer version 3.12.1

We performed a follow up automated audit of your Cake addin and found that some (or all) issues previously identified have not been resolved.
We strongly encourage you to make the modifications previously highlighted.
Apologies if this is already being worked on, or if there are existing open issues, this issue was created based on what is currently published for this package on NuGet.
This comment was created by a tool: Cake.AddinDiscoverer version 3.12.1


Signal hdlr reentrance

Fixes: https://github.com/Flipkart/fk-prof/issues/68
Basically Profile::handle wasn't signal-handling capable. This prevents re-entrance and ensures no alloc/free happens in sig-hdlr.

LGTM


facebook-github-bot feature wording improvement

As @mkonicek suggested in #6544

@facebook-github-bot shipit


Use netrc when configured for download auth

We received a request in Bazel Slack to support netrc-based authentication for downloads. This PR adds support based on the guidelines in https://www.stevenengelhardt.com/2023/03/02/practical-bazel-retrieving-secrets-from-netrc-in-custom-rules/.

An update to https://github.com/theoremlp/multitool is required before this can merge

https://github.com/theoremlp/multitool/pull/42


[v1.2.2] String#compact() issues with tabs

There's a minor issue with String#compact().  When a tab (\n) is immediately followed by a word, the tab isn't compacted.  I assume the desired output would be one space instead of the tab; either way, the actual output is inconsistent.
Examples:
"moo\tmoo".compact()
// => "moo	moo" // whitespace: one tab
"moo \tmoo".compact()
// => "moo	moo" // whitespace: one tab
"moo \t moo".compact()
// => "moo moo" // whitespace: one space

Other than that, lovely library.  Please keep it up.  :)

OK ... this issue is now fixed in v1.2.3!


Add Julia bindings to vm

The Julia bindings are released now, this PR adds them to the VM.
Installing Julia uses jill.py. This is not an official source, but one that allows for installation in a script without manually confirming as well as automatically using the latest Julia release. The Julialang download site and the Julia versioning manager don't allow for this.

For the Julia bindings we are currently facing an issue with the installation of the bindings in Ubuntu 22.04. Since we are currently working out a solution, I don't have a permanent fix yet.
For now, the fix seems to be to build preCICE from source (which we do here already) and then start Julia with preloading: LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./julia
Should we already include this in this PR?

For the Julia bindings we are currently facing an issue with the installation of the bindings in Ubuntu 22.04. Since we are currently working out a solution, I don't have a permanent fix yet. (And you only notice the error when testing the bindings, which is why I included the commented tests here) For now, the fix seems to be to build preCICE from source (which we do here already) and then start Julia with preloading: LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./julia Should we already include this in this PR?

We generally don't run tests in this VM, to keep the build time as short as possible (it is already pretty long).
Currently, the VM is still using Ubuntu 20.04 and the upcoming release will also use 20.04. So, nothing to do now, but this comment will be relevant for #45.
I guess we need to set LD_PRELOAD every time we start Julia, right? In this case, we could make an alias for julia, to always set this.

Building currently fails because of the master->main branch renaming of preCICE. I have fixed that in other branches, but I should probably bring the fix to develop. In the meantime, feel free to rename it yourself and trigger the build by marking the PR as draft and then ready for review again.

Building currently seems to fail at downloading code-aster (unrelated), due to an SSL certificate issue.

Building currently seems to fail at downloading code-aster (unrelated), due to an SSL certificate issue.

Is this something we can fix in this PR?

It is not related to this PR or anything from our side. I can work around this issue (insecurely), but I will give it some time, hoping for an upstream solution.

@erikscheurer can you please give me push access to your fork? You can enable this with a checkbox in the side of this PR.


RemoteConfig - setDefaults. Does it need to be "suspend" or am I doing this wrong?

Hello.
In an Android project I got a RemoteConfig in classes using DI. In it I configured the RemoteConfig in the module specifying the update period and default values.
I did the same using your library. During the migration I found that the setDefaults function has now become a suspend function. At first this puzzled me a lot because functions in the DI module cannot be suspend. I solved this situation by using runBlocking.
Despite my decision to use runBlocking I still doubt this method.

Did I configure it correctly? Maybe I should configure it differently?
Will runBlocking greatly affect the application startup time?
Should setDefaults definitely be suspend?
Is it possible to do setDefaults differently without affecting the application startup time?

Well setDefaults is suspend because on android it uses setDefaultsAsync that returns Task. If you didnt process the Task on android, then you should use launch instead of runBlocking when using suspend to do like a fire and forget.


Compile rust bindings to Android

This PR is a first attempt at fixing compilation of the rust bindings to Android.
Unfortunately simply adding an if statement for Android did not solve it for me, so more commits will be necessary.

Hi @laurenspriem! Thank you for your contribution!
I'm having hard time getting that error, but face another one - cargo not being able to find the algorithm header.
How did you configure your environment?

Hey @ashvardanian Appreciate the quick responses!
At this point I'm pretty convinced that all of these errors, including the first one that started this PR, are just due to incorrectly configured environments. Nothing is probably wrong with the actual code, so I'll close this PR soon I think. I'm sorry for dragging you into this!
As for configuration, you first need to install Android NDK as per description or let this project do it for you. But even using that project I was still getting compilation errors, which were only fixed for me when I used this other package specifically for configuring for cross compilation. At which point I realized there's nothing wrong with the usearch code.
tldr; configuration is tricky for compiling Rust to Android it seems.

If you have a minimal example of how it works with Android, I'd love to include a link into the README, similar to how we mention  SwiftSemanticSearch on the main page. I'm sure many people would find your snippets useful 🤗

I'll first focus on porting usearch to flutter using the rust bindings. Once that's working well, I'll make it into a flutter package and see if I can add a short description and link to the README :+1:


[Suggestion] Adjust z-order so it is always set from Head to Tail

As we discussed on Reddit.
Summary: Set a z-order so tokens always overlaps from Head (highest z-order) to Tail (lowest z-order). This should remain even when controlling from the tail.

Had a talk with the Foundry Devs. Every token have a zIndex, but for some reason it isn't synced between clients.
The latest release does update the zIndex, but as it is now, that will not affect the worms on your players views.
There is a module called Token-Z, which has a solution for syncing this, via a flag.
So we have three options:

Do nothing
Implement cooperation between token-Z and this module, and adding a dependency to it.
Use the Token-Z methodology, but this might create some discrepancies/incompatibilities between these two modules.

Care to weigh in?

OK I see. Too bad I was hoping it would be easier to implement.
I appreciate you asking for my opinions. Hmmm...

This one is obviously up to you and is a perfectly acceptable choice considering the alternatives. No hard feelings if you just want to call it done.
Personally I wouldn't want to add a dependency on another mod. Not sure how you feel about it but if that mod's development stopped then you'd potentially be in a tough spot.
When you say use the Token-Z methodology, I'm assuming you mean to add their method of achieving this to your mod? Incorporating similar code basically? If so, I would again have to defer back to you as I don't know how difficult a job that would be for you.
Of course I would love to see it added, as I think it would be beneficial to your mod. Although subtle, if not aligned head to tail, it feels "off".

Also, I made a new purple worm model. I was actually going to give it to you to distribute with your mod if you'd like ( I know there was some prior talk of a compendium). It can be additional to yours, replace yours, whatever you want to do with it.
There's 2 things it needs though:

Variable spacing, which I see you introduced (haven't updated yet). I was just editing your js file and changed the spacing to 3 or 4, as the segments are denser. (It looks like you may have reversed the spacing methodology so I would guess it would now be like 0.25)
Head-to-Tail z-order. OK so this one is not absolutely necessary, but as you can see below, with the design of the worm, part of the design would be cutoff if we go tail-to-head. IOW, z-order is going to make this thing always look the way it should. That is if you even want to include it because again, if too much work, then just shelf it for the future.

Here's a sneak preview for you....

I wanted to go for the overlapping plates with spikes/horns like in this image:

(side note: not sure if the head jumping ahead of the body like that is known behavior or if I'm having an issue on my end. Any insight?)

Thank you for input. I love your design. It's always nice to see videos of it in action. The pushing was not intentional no, but I understand why it happens. On my list of things to implement are a rigid body physics methodology, so they will be more accurately been shoved to the sides instead :)
The head jumping ahead is the fact that the heads movement is done "first" as it reacts to the user input, and its that movement that triggers the rest of the body. Not sure if there is much I can do about that.

Hey just to clarify, I was saying I like the way the caterpillar pushes the boxes. Even without rigid body physics it seems to preform well as is. :)
I kind of figured the head movement jump was probably due to that. No worries at all, just wondering.
Glad you like the worm by the way!

Regarding the point on adding Token-Z as a dependency: it may be valuable to still include detection of a Token-Z install for the sake of preventing a conflict. If you implement similar logic, then there would need to be some mitigation to ensure which module's handling of Z-index applies in a given situation. That may suggest a path of least resistance: if you decide it's valuable to detect Token-Z in the first place, it might be simpler to rely on it now, and cannibalize it's relevant code if it ever goes defunct. Perhaps simply fork Token-Z and any module dependencies you develop in the future so you always have a copy of a dependency's code base to work with. It might be possible to do this with Github actions at regular intervals as well.


Fixing multiple defines of APEX_HAVE_HPX

APEX_HAVE_HPX has to be defined in CMakeLists.hpx of APEX - otherwise, APEX doesn't know to include hpx/config.h.  If it is defined in both places, it gets defined twice and generates warnings.  If it isn't defined in CMakeLists.hpx, then hpx/config.h doesn't get included, and APEX isn't configured correctly.  Also changing version of APEX to be develop to get the latest APEX changes which includes making sure this define is defined.  Before HPX is released, APEX should be tagged and that tag should be used instead of develop.

@hkaiser I don't know why appveyor failed, but all other tests failed.  I added HPX_WITH_APEX_TAG as a CMake variable, defaulting to v2.0.1 (the most current release tag) if not overridden by another tag or branch name.  If my CMakeLists.txt settings are OK, can we merge this request?  Thanks!


adding intel partnership blog

Blog post highlighting earlier announcement from Intel about our partnership in deploying Intel Accelerators with Validated Patterns.

This is an automated message:
You can preview this docs PR at http://413.docs-pr.validatedpatterns.io
Note that they get generated every five minutes, so please wait a bit.


react-query mutations

After doing a post request, queries must be invalidated, but I can't access query keys and I have to type them manually. This defeats code generation's purpose. What can I do to access to query keys?

I found it! I can access it with
useGetWhateverHook.info().key


Fixed react build warnings

Coverage remained the same at 94.14% when pulling 73f846ec704fe4083940ba52b69ba191f077269d on cody-react-build-warnings into c406cb38bef331ee6bdfb7093232bc11bca84615 on main.


fix: execution state from should always be set (PR 6)

In execution state the from address should always be set. If the future specifies undefined, this should be reconcilied as account[0] the same way it is during execution.
Fixes #281

I think this looses information about the user intention that would be valuable for the execution strategy.
If the user provided a from and wants to use an execution strategy that deploys from a contract (e.g. create2) the execution strategy should fail. Hence, it's important to keep the undefined up to that point.
I think the from should be resolved right before sending the first transaction (or static call) of a future.
Now, how can be reconcile them then? I guess we can do:

If the future's from is undefined, validate that accounts[0] matches the from of any tx/static-call
If the future's from is not undefined, validate that the future's from matches the from of any tx/static-call

I think this looses information about the user intention that would be valuable for the execution strategy.
If the user provided a from and wants to use an execution strategy that deploys from a contract (e.g. create2) the execution strategy should fail. Hence, it's important to keep the undefined up to that point.
I think the from should be resolved right before sending the first transaction (or static call) of a future.
Now, how can be reconcile them then? I guess we can do:
* If the future's from is `undefined`, validate that `accounts[0]` matches the from of any tx/static-call

* If the future's from is not `undefined`, validate that the future's `from` matches the from of any tx/static-call

I have made the following alterations. Execution state from can again be undefined. The execution strategy now has access to the accounts and can decide how to deal with an undefined from.
In reconciliation, the execution states from is used, or if it is undefined we use the history to find the first on-chain request with a from and take that as the previous from.
I have included an edge case for if the from is undefined but there are no usable on-chain messages. In that case any from value for the future reconciles.
One aspect to this design I don't like is we assume in reconciliation that undefined future froms resolve to account[0] but don't enforce that in the execution strategy. Maybe swap giving access to accounts in the execution strategy with a defaultFrom?


Starboard feature

Starboard feature, there should be an example version in klasa-pieces. Fully configurable and designed as per our standards.

Will be implemented in 1.1.1, see #43.

Implemented in 52ef3f4.


[Bug][server] when an exception occurs in the taskExecuteThread, task cannot stop immediately

Describe the bug
When an exception occurs in the taskExecuteThread, task will  be called the  cancelApplication() method to stop the task immediately。Howerver，the task whose cancelApplication() method  base on the AbstractCommandExecutor.cancelApplication() cannot be killed immediately,because AbstractCommandExecutor.cancelApplication() would not call hardKill() method when soft kill process fail;
To Reproduce
Expected behavior
In order to make the error task stop immediately ，It should call the hardKill() method when soft kill process fails；
Screenshots

Which version of Dolphin Scheduler:
-[dev]
Additional context
It is a very simple Bug, the softKill() method returns the opposite state, so just modify the return value can fix this bug. I will fix this Bug.
Requirement or improvement

the PR： https://github.com/apache/incubator-dolphinscheduler/pull/5133

close by #5133


Test flags that span multiple bits

(both tests currently fail)
My assumption is that this test should be valid and the implementation of from_bits / from_bits_truncate is incorrect? An alternate interpretation might be that each flag should never be more than one bit, though that seems like an odd constraint to me.

To be honest, I'm not sure who's in the wrong here. I personally can't see any reason why one would use a non-power-of-two bitflag. However, while it does introduce some edge cases, it's not inherently a wrong thing to do.
On one hand, fixing this will make the implementation more complex. On the other hand, the performance impact could be easily limited with some help from the macro.
Do you have any applications in mind for multi-bit flags?

I won't particularly push either way, though if the use-case is invalid then the macro should assert and fail to compile an enum like this.

master rejects this code now.


Vue package link is dead and any planned support for Nuxt 3?

my question is in header ;)

The Vue package is linked from the readme:
https://github.com/lorisleiva/solana-wallets-vue aka https://www.npmjs.com/package/solana-wallets-vue


grpc-json: handle google.api.HttpBody when building HTTP response

Description:
This patch prepares HTTP response when an upstream gRPC service method
uses google.api.HttpBody proto as its message output type.
Risk Level: Low
Testing: Unit
Docs Changes:

Added notes on sending arbitrary content as HTTP response by using google.api.HttpBody.

Release Notes:

Added support for encoding google.api.HttpBody when building HTTP response.

Fixes #3205
Signed-off-by: Dhi Aurrahman<EMAIL_ADDRESS>

Thanks, @lizan. I think I have addressed your comments. PTAL when you have time. Thanks again!

@dio can you fix the tests?

@dio can you merge master to fix version_history.rst conflict?

@htuch merged with master.


Review constant state variables inlining

We currently have some constant state variables that are defined next to the declaration in the contracts, like:
contract Foo {
  uint public constant x = 1234;
}

This works because the value is inlined into the bytecode and not written to storage. If it was written to storage it would be a problem because it would be written in the storage of the implementation whereas the proxy would try to read it from its own storage. Note that this kind of variable definition is an implicit part of the constructor.
We've experimentally verified that the compiler behaves in this way (i.e. inlining the value) with string, uint, and bytes4 types which are those found in OpenZeppelin 2.0. However, we are opening this issue because it is not really a guarantee of the compiler that this will always remain so. In fact, it would be correct if the compiler decided to write to storage and read from it. So we have to keep this in mind and review it.

I opened an issue upstream: https://github.com/OpenZeppelin/openzeppelin-solidity/issues/1391. Maybe we could develop a Solium rule to disallow this @elopio? I think it's a good practice, regardless of initializer concerns.

I'm not sure it's a good practice. We would be replacing a constant variable with a variable that can change it's value but never really does.

For non-constant, yes, this seems like a good rule to add.
I imagine it would be something like:
non-constant state variables shouldn't have explicit initialization when declared.
and, all state variables should be initialized in the constructor.

Closing this issue as this behavior of constant state variables is documented by Solidity and highly unlikely to change. If it were to change, it would be in a breaking release and we would find out about it, while our current published contracts wouldn't compile under the new version due to the pragma we use.


blazed.watch

Blazed Watch - Video Sharing platform for the Blazed One Solution.
Requirements:

Use Cloudinary to store static video and image assets, use Cloudinary's video editor to allow users to edit videos
Use Video.js to embed video files, use Youtube player to embed Youtube videos
Use Youtube API to give users cross upload/management capabilities
Use Firebase to store video information
Use Disqus for video comments
Use AddThis for social sharing

Tasks for Blazed Quest

Integration Tasks

[ ] Integrate Firebase

Development Tasks

[ ] Develop Basic Prototype
[ ] Create Browse Page
[ ] Create Dashboard Page
[ ] Create Single Video Page
[ ] Create Upload Video Page
[ ] Create Edit Video Page

UX Testing Tasks

[ ] Alpha Testing
[ ] Beta Testing
[ ] Stage Testing

Deployment Tasks

[ ] Deploy Production Project


Update PathFinder.h

Fixed issues with Cmake compatibility issues.

What does that has to do with Cmake ? You may be using an outdated compiler.

I actually have a mitake in that commit. It should be class, not typename.
Without class, the complier assumes its a static variable and mucks up
everything.

You're still probably using an old compiler, what is it ?
And what about changing the use of std::rbegin and std::rend to member functions ?

This is a new system. All software is up-to-date.
rbegin and rend were used improperly.
http://www.cplusplus.com/reference/vector/vector/rbegin/
On Sun, Nov 15, 2015 at 3:37 PM, Sahnvour<EMAIL_ADDRESS>wrote:

You're still probably using an old compiler, what is it ?
And what about changing the use of std::rbegin and std::rend to member
functions ?
—
Reply to this email directly or view it on GitHub
https://github.com/Sahnvour/PathFinder/pull/1#issuecomment-156851435.

--
Phillip Miller
Electrical Engineering Undergraduate
Michigan Technological University
Blue Marble Security Enterprise
Autonomous Vehicle Project Manager
<EMAIL_ADDRESS>-<PHONE_NUMBER>

@Sahnvour You can close this now.

Good catch.


There is an issue where that noise becomes nan.

def gaussian_transport_operators(cov_source: Tensor, cov_target: Tensor, eps: float = 1e-5) -> Tuple[Tensor, Optional[Tensor]]:

    I = eye_like(cov_source)

    if is_spd(cov_source, strict=True, eps=eps).all():
        sqrtCs, isqrtCs = sqrtm(cov_source), invsqrtm(cov_source)
        T0 = isqrtCs @ sqrtm(make_psd(sqrtCs @ cov_target @ sqrtCs, strict=True, eps=eps)) @ isqrtCs
        Cw0 = None
    else:
        sqrtCt, isqrtCt = sqrtm(cov_target), invsqrtm(make_psd(cov_target, strict=True, eps=eps))
        mix = sqrtm(make_psd(sqrtCt @ cov_source @ sqrtCt, strict=False, eps=eps))
        T_star = isqrtCt @ mix @ isqrtCt
        pinvCs = torch.linalg.pinv(cov_source, atol=eps ** 0.5)
        T0 = (sqrtCt @ mix @ isqrtCt @ pinvCs)
        Cw0 = sqrtCt @ (I - sqrtCt @ T_star @ pinvCs @ T_star @ sqrtCt) @ sqrtCt

    assert T0.shape == cov_source.shape
    return T0, Cw0

def transport(features: Tensor, mean_source: Tensor, mean_target: Tensor, T0: Tensor, Cw0: Optional[Tensor], pg_star: float = 0.) -> Tensor:

    T = (1 - pg_star) * T0 + pg_star * eye_like(T0)
    features_centered = (features - mean_source[..., None, :])
    transported = (T @ features_centered[..., None]).squeeze() + mean_target[..., None, :]
    if Cw0 is not None and pg_star != 1:
        noise = MultivariateNormal(torch.zeros_like(mean_target), Cw0 * (1 - pg_star) ** 0.5)
        transported += noise.sample()[..., None, :]
    return transported

If is_spd(cov_source, strict=True, eps=eps).all() is the case, then noise is not necessary. Otherwise, if it is not the case, then noise needs to be obtained, but there is an issue where that noise becomes nan.

Hi,
Yes this can happen if the matrix in the denominator (the one for which we compute the pseudo-inverse) is ill-conditioned.
You can try to use a bigger stabilizer value for ‘eps’, but this ultimately depends on your data.

I've tried modifying the eps, but it hasn't been resolved. It doesn't seem to be an issue with the eps.

Are cov_source and cov_target valid (do they contain NaN or Inf values) ? What is the first matrix that becomes NaN ?
Did you manage to reproduce the results with the datasets of the paper, or is there a problem there too ?

cov_source and cov_target do not contain NaN and Inf. NaN first occurs in noise.sample(). I am using a dataset different from the one in the paper. In train, the images are being used in batch size.

Can you tell which component of the noise matrix is NaN ? isqrtCt, mix, T_star, pinv ?

NaN occurs when passing through MultivariateNormal().

Yes. This is because the covariance matrix has NaN hence torch is not happy. But we knew that already. What I’m trying to figure out is which part of the covariance formula is NaN:
isqrtCt, mix, T_star or pinv ?

None of them contain NaN. Cw0 is also not NaN.

Great. Feel free to share your solution here for others to enjoy your fix :)


Closeable and clear on close

Hi, I think it would be useful if the store implements AutoCloseable and one can configure the store to delete all data when it's closed. What do you think?

Hi. Do you mean AutoCloseable from Java? What would be equivalent API / behaviors from other platforms will be?

There seems to be a multiplatform-ready interface standard library: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-auto-closeable/

Hi - apologies for the delayed response.

one can configure the store to delete all data when it's closed. What do you think?

Can you walk through a typical usecase for this feature? deleting the file on close feels like an odd behavior for a storage library

I was thinking about Android's ViewModel. You add the store as a closeable, so that it gets deleted, when the VM isn't in the backstack anymore. This way I can dump lots of data in a cache file, instead of keeping the data in memory, when the VM is in the backstack.

Typically, state preserved on a view model is not expected to be written to disk and only expected to be retained in memory and I feel like this is an undesired feature from a storage library


Internal ingress filtering for platform applications

Is your feature request related to a problem? Please describe.
Enhance platform application security by defining network policies
Describe the solution you'd like A clear and concise description of what you want to happen.
Ultimately we would like that each platform app has corresponding ingress network security policy.
But the first MVP shall cover the following apps

keycloak
loki
harbor
kubernetes-external-secrets
oauth2-proxy
gatekeeper-operator
gatekeeper
external-dns
prometheus-operator
prometheus
istio-operator
istio apps
cert-manager
knative
nginx-ingress
promtail
otomi-api
vault-operator
vault
drone
gitea
kiali-operator

The network security polices shall be deployed as artefacts to the deployed chart.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features
you've considered.
Additional context Add any other context or screenshots about the feature request here.

Please keep this scope limited to the escalation model: only public services should be hardened, so the list becomes much smaller

I see only this list left:

keycloak
harbor
oauth2-proxy
prometheus
istio apps
nginx-ingress
otomi-api
vault
drone
gitea
kiali
jaeger

good point


refactor: switch to tab indentation rather than spaces

Fixes #1298

Sadly Prettier and eslint are not playing nicely together here...
For example this code:
export async function getUserInfo(): Promise<UserInfo | undefined> {
	const apiToken = getAPIToken();
	const apiTokenFromEnv = getCloudflareAPITokenFromEnv();
	return apiToken
		? {
				apiToken,
				authType: apiTokenFromEnv ? "API" : "OAuth",
				email: await getEmail(),
				accounts: await getAccounts(),
		  }
		: undefined;
}

Note that the line before the : undefined has two tabs followed by two spaces. The spaces are there to aline the } with its corresponding {.
But eslint doesn't like this

If you add "no-mixed-spaces-and-tabs": ["error", "smart-tabs"] to the ESLint rules, that should resolve that. smart-tabs  allows mixed tabs and spaces when the spaces are used for alignment. 👍

I'd also recommend adding an .editorconfig to the root with something like this, for reasonable 4 char width defaults:
# https://editorconfig.org
root = true

[*]
end_of_line = lf
indent_style = tab
tab_width = 4

That way, you avoid the default 8 spacing GitHub uses:

And instead see this:

Thanks for the tips @Cherry! We currently default to 2 spaces for indentation. But otherwise I have implemented your suggestions.

Now the tricky dance of landing this without breaking too many other PRs :-D


Update targets.py

Make armcc the default compiler for atmel boards

+1

Should we do something similar for STM F4x boards? :)


Unable to set FTP credentials

I am unable to set the FTP credentials for user in 1 of the Azure App Service. When I hit on "save credentials", the save goes on forever and nothing would have changed. Can someone recheck on the same?
Thanks,

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

ID: 1506c34e-352d-15f6-73ea-3dbf8ce31b3c
Version Independent ID: cb469cf8-43e5-09fe-6b8e-ee714cf2f7cc
Content: Deploy your app to Azure App Service using FTP/S
Content Source: articles/app-service/app-service-deploy-ftp.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin;dariac

@SrivatsaMarichi Thanks for the feedback! We are currently investigating and will update you shortly.

As a workaround you can use CLI:
https://docs.microsoft.com/en-us/cli/azure/webapp/deployment/user?view=azure-cli-latest

@SrivatsaMarichi thanks for your patience. We need to do deeper analysis for this issue. Do you have the ability to open a support request? If not, you can email me at<EMAIL_ADDRESS>and provide me with your SubscriptionID, time of operation in UTC and link to this thread. I can enable your subscription to be able to create one. In the meantime, you can use the workaround @jcbrooks92 provided.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Update labels.md

Replaced "environment" with "tier" in 234 line. Before frontend value is with the key "environment" , but it should be with the key "tier"

Raised with other account


Improve installation instructions

Noah had difficulties installing Distributive with the current README instructions. Add more details, especially about $GOPATH and go get.

Fixed in 6422ef0d4e6335a885fd40799caba5cb08e9f62a


searchIssuesR leads to an error from GitHub when searching by multiple conditions

Hi,
I was wondering if you could help me figure out an issue where calling searchIssuesR fails when I try to search by multiple conditions (repository / state of a PR). From the outside it looks like there is an issue in how q gets encoded when passed to GitHub, but I am guessing here.
Fails: searching for open PRs in a public repository
I am trying to replicate request such as:
curl "https://api.github.com/search/issues?q=is:pr+repo:haskell-github/github+is:pr+state:open"

which succeeds (modulo rate limiting)
With code:
{-# LANGUAGE OverloadedStrings #-}

module Main where

import qualified GitHub as GH

main = do
  result <- GH.github' (GH.searchIssuesR "repo:haskell-github/github+is:pr+state:open" (GH.FetchAtLeast 1))
  print result

which fails with a 422 response from GitHub:
{"message":"Validation Failed","errors":[{"message":"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.","resource":"Search","field":"q","code":"invalid"}],"documentation_url":"https://docs.github.com/v3/search/"}

Succeeds: searching for all issues in a public repository
Interestingly, searching for all issues in a public repository succeeds.
Curl:
curl "https://api.github.com/search/issues?q=is:pr+repo:haskell-github/github"

Code:
{-# LANGUAGE OverloadedStrings #-}

module Main where

import qualified GitHub as GH

main = do
  result <- GH.github' (GH.searchIssuesR "repo:haskell-github/github" (GH.FetchAtLeast 1))
  print result

This prints issues/PRs of the repository.
How to debug this further?
Since searching just by repository works, but it stops working when I add more conditions, it leads me to believe that q doesn't get encoded properly., but it is only a guess. And I'm not quite sure how to debug this further. Would you have any advice?
Using v0.28 of GitHub, and GHC 8.10.7.
Thanks for any help!

@pavelkucera Hello!
I think replacing + with plain space should fix the issue in your case as shown here (and it did fix it in my local testing session)

@modotte Thank you! You're right, using a space works.


Add Snyk scan

Snyk scan only for this Milwaukee Tool fork. Helpful perk would be to detect/scan any upstream changes with Snyk as well as diverging local modifications.

Using passive integration instead (don't see a reason to expose snyk token in this case)


Calendar Crashes at runtime

RWJH Magnet.zip

(Required) Version Number:
Description
Trying to design an app that displays a calendar of events for a school. I have set up everything that I think I need, using the steps online. However I have a problem with the ibOutlets connecting to the view I believe. If I disconnect those pieces then the code runs but doesn't display anything. I have emailed you about this issue and not I am finally posting it on Git. Thank you so much!
Steps To Reproduce
I have attached the .zip file of the app
Expected Behavior
Expecting to display the calendar dates, with the 4 events that are in there. I have not downloaded the school's calendar yet. although I do have the link.
Additional Context

you forgot to set the module of your class on story board


disabled option on init

this allows options to be disabled when initialized if the form, or part
of the form, must be locked on init

@engenb - Thanks for the addition!


aminoacidChange query parameter definition

The aminoacidChange query parameter definition ("Aminoacid alteration of interest. Format 1 letter") is at odds with the examples ("V600E", " M734V"). It is not clear how this should be used (i.e. geneId=BRAF&aminoacidChange=V600E)?
https://github.com/ga4gh-beacon/beacon-v2-Models/blob/c41c75728b3fbff90fd57a9bfff58c74218e5932/BEACON-V2-Model/genomicVariations/requestParameters.json#L67

The description could be not clear enough, but "format 1 letter" means V instead of Val.

@jrambla Thought so, but could be more verbose ... But more importantly: We have no clear definition which parameter combinations are possible. I had done some "QueryTypes" schemas for v1, but this is now purely by documentation in v2, so far.
One could define this in the schema (doodling here ...):
title: g_variant
type: object
oneOf:
  - GenomicAlleleQuery
  - BeaconRangeQuery
  - BeaconBracketQuery
  - BeaconAminoacidChangeQuery
  - ...
definitions:
  Start:
    description: ...
...
  GeneId:
...
  GenomicAlleleQuery:
    type: object
    properties:
      referenceName
        $ref: ./requestParametersComponents.json#/definitions/RefSeqId
      start:
        $ref: definitions/Start
      alternateBases:
...
    required:
      - referenceName
      - start
      - alternateBases
...
  BeaconAminoacidChangeQuery:
    type: object
    properties:
      geneId:
        $ref: definitions/GeneId
      aminoacidChange:
...

Putting this on the TODO list?


Deprecate getChanges and didChange

cortex 2 will utilize immutable data structure, and changes are ephemeral and shouldn't be persisted within the wrapper.
If there's any need to inspect past data we can provide a previousValue method but my guest is we don't even need them since !== comparison is handled so well by immutable data structure already.

This will also remove other bugs related to changes like #89, #74, #72, #77


editor support (again)

(see also #1013)
Problem
just chiming in again on editor support - it's been > 6 months since the last update, is this still planned or something that could use help? without this adoption is difficult.

It's great to know you're looking forward to this! It's the foremost thing we're working on.
There are currently many rough edges with LSP support, and we're actively prioritizing addressing them so we can open source.
We talked a little bit about our plans most recently in our talk at RubyConf back in November:
https://youtu.be/jielBIZ40mw
Thanks again! We hope to have things in your hands soon.

If you're looking to help, the following issues could be a good start
https://github.com/sorbet/sorbet/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3A"good+first+issue"+label%3A"ide"+


Plugin Error

ChatGPT plugin issue in Flow Launcher.When providing the api key,it is getting disappeared and showing error unable to load the api key.

Hi @karthikvijay5227,
Have your in the 'Save Settings' command in the launcher after entering the key? That should be done to persist any changes, thus as entering the key.

Thanks @MichielvanBeers . I has a problme with this


eval.py->def eval_repeat ()

Thank you for release your great work.
I have try run python3 eval.py configs/car_auto_T3_train_eval_config
The function falls into an endless loop.Continuous output “'Checkpoint ./checkpoints/car_auto_T3_train/model-1400001 has been evaluated already, wait for 60.000000 seconds'”.
What do you suggest？

Hi @huihuicainiao, Thanks for your interest. The eval.py is supposed to monitor the checkpoint_dir and evaluate new checkpoints if the training produces one. You can kill it if you are not training at the same time.

Thank you very much for your reply.


Create simple resource deoubfuscator

As you can see now, many applications have encrypted resources. There are a lot of issues with different errors, but with the same problem - application resources are encrypted. We must fight this. You can try to create a resource deobfuscator that will restore the original resource structure and resource table.

You can try to create a resource deobfuscator that will restore the original resource structure and resource table.

Don't most of them destroy the original name of the resource? Since Android just needs the resourceId. So how much can we even restore? We'd need dummy attributes.

@iBotPeaches the original names have been destroyed anyway, so it makes no sense to do something with them when they start with the same character, or what Unicode character is used.  It is necessary to restore the name of all resources depending on the type.  For example string_1, color_1, drawable_1 and so on.  This should fix all compilation errors.  But also, there are many problems when decompiling such resources.  That's why you should try to make a deobfuscator.

@iBotPeaches the original names have been destroyed anyway, so it makes no sense to do something with them when they start with the same character, or what Unicode character is used. It is necessary to restore the name of all resources depending on the type. For example string_1, color_1, drawable_1 and so on. This should fix all compilation errors. But also, there are many problems when decompiling such resources. That's why you should try to make a deobfuscator.

Easier said than done :)

I started working on this partially. There are many problems, the application can be buildet, but whether it will work is a question. Parsing resource.arsc is very far from ideal and this vulnerability was using to breaking decompiling with apktool. First  steps it is fixing bad attributes in package

In order not to make the war on defense even stronger, I will abandon this idea. For personal purposes, you can do this, but not for public

In order not to make the war on defense even stronger, I will abandon this idea. For personal purposes, you can do this, but not for public


Adding support for whitelisting items

Whitelisting is already supported but undocumented. It is very dangerous since it all but removes the ability of the recommender to return good recs. If you really need this, you may get very little if any lift from recs,
To whilelist, in your query do
field: {
    "name": "id",
    "value": ["list", "of", "Item-ids", ...],
    "bias": -1
}

This will include only the items from the list but ranked by recommendation score. Beware because if the item cannot be recommended, it will not be returned so have some default ranking (see rankings) for returning all items, popularity is good too if there are events for the items.

The reason i wanted to use whitelisting was because i wanted to sort a list of products based on user 's preferences. Does that make sense?

Not all items are recommendable but if your whitelist has only items that get recommender scores then yes it will work. For instance if you are doing E-Com and there has never been a purchase of an item in the whitelist it will never be returned and the whitelist will have no effect, there is no way to tell the user's preference for an item with no data.


The "main" bundle of v4 is in AMD format

Describe the bug
The "main" bundle of v4 is in AMD format. Is it intended? It used to be commonjs, and it seems it was changed in https://github.com/vuejs/vue-apollo/commit/cfbb9da5af00336e56a09da73a4760ba0dbf5874.
So now bundle contains code like:
define("useApolloClient", ["require", "exports", "vue-demi"], function (require, exports, vue_demi_1) {

And I keep getting ReferenceError: define is not defined. I am using webpack 4 to build my app.
Expected behavior
The bundle should be in commonjs format.
Versions
apollo-client: 4.0.0-alpha.12
Additional context
If this was intended, can you please explain the reasons behind this decision?

Webpack should use the ESM version. 🤷

On the server bundle it tries to use the one from "main" in package.json, which is AMD. Before it was working with commonjs.

@Akryum Same issue here. After upgrading to alpha-12 I am getting the same error in my nuxtjs application.
I fixed it by downgrading with (alpha-11 game me the same issue):
yarn add<EMAIL_ADDRESS>

Hey @Akryum,
thanks for the great work!
Do you know a workaround? I need a version above alpha.10 because I have to use multiple apollo-clients and I am a little bit in a hurry 😭

I get the same error using this with nuxt & typescript.
I just was trying to do import DefaultApolloClient symbol:
import { DefaultApolloClient } from "@vue/apollo-composable";

This is definitely suddenly broken. Is there any reason for the switch to "amd"?
Nuxt version:
    "nuxt": "2.14.7",

@devCrossNet

Do you know a workaround? I need a version above alpha.10 because I have to use multiple apollo-clients and I am a little bit in a hurry
I cloned the branch in #1089 and then yarn pack it as tarball which I added to my git for now

how to build workspace package
cd packages/vue-apollo-composable
yarn build
yarn pack
mv vue-apollo-composable-v4.0.0-alpha.12.tgz $yourproject
cd $yourproject
npm install ./vue-apollo-composable-v4.0.0-alpha.12.tgz

@JoeSchr I wasn't able to spend more time on it and decided to go back to the regular usage without the composition-api on pages where I need two clients. I am waiting for a new release of vue-apollo-composables, that hopefully will fix this issue and then do a refactoring.

Same problem here folks, tried to upgrade but now jest is now throwing the error reported above:
ReferenceError: define is not defined
Whenever there is a component or file importing from @vue/apollo-composable.

Hello, I have the same problem. I'm using Vue 3 in ssr

You can fix the errors in Jest by doing the following:
Change your .babelrc file to babel.config.js that module.exports =  your config. (see https://github.com/facebook/jest/issues/6229#issuecomment-392205646)
Add the following to your Jest config:
  moduleNameMapper: {
    '@vue/apollo-composable': <EMAIL_ADDRESS>// Override which bundle Jest imports from
  },
  // If you get `Unexpected token` on import/export, add this to transform the @vue/apollo-composable bundle
  transformIgnorePatterns: ['/node_modules/(?!@vue/apollo-composable).+\\.js$'],

See https://github.com/facebook/jest/issues/6229#issuecomment-403539460

Is there any workarround for nuxt ?

Is there any workarround for nuxt ?

Is there any workarround for nuxt ?

The workaround I posted above works in my Nuxt project using the Apollo module.

Is there any workarround for nuxt ?

The workaround I posted above works in my Nuxt project using the Apollo module.

@leo91000
I found a two step solution for nuxt:

add the transpiling of @vue/apollo-composable to nuxt.config.js

{
....
  build: {
    transpile: [
      '@vue/apollo-composable'
    ],
   }
 }

import all components directly from @vue/apollo-composable/dist/index.js. For example:

import { useResult } from<EMAIL_ADDRESS>

Is there any workaround for Webpack? :)

I changed in the tsconfig
"module": "esnext"
to
"module": "commonjs"
with that the problem was solved for me

@JoeSchr I found a workaround: vuesion/vuesion#552.

working example with SSR: https://github.com/vuesion/vuesion/blob/next/src/pages/example/apollo.vue
example test: https://github.com/vuesion/vuesion/blob/next/src/pages/example/apollo.spec.ts

I tried all the above solutions, none of them worked in my case. I am using Vue2, Vuetify and<EMAIL_ADDRESS>I tried to downgrade to<EMAIL_ADDRESS>with no success.

The build process has been changed and will be released in alpha.13


Abstract documentation that does not make any sense

This page is too abstract and too vague and not useful at all. I hope Microsoft shows these pages to someone who does not know the complexity created inside Microsoft. First of all calling all this as SQL is really tragic. Next, the whole documentation does not make any sense.
Only a few examples:

"Apply a cross product with the root of the item f with each child element c that the first step flattened."

<< What does that mean in our universe?

In the following example, the join is a cross product between two JSON objects, the item root id and the children subroot. The fact that children is an array isn't effective in the join, because it deals with a single root that is the children array. The result contains only two results, because the cross product of each item with the array yields exactly only one item.

<< What does that mean? What is a cross-product? I mean, does that make any sense? Is that a cross-join? It took me some time to guess that. Unbelievable.

SELECT f.id  FROM Families f JOIN f.NonExistent

<< what is "Families" in this? What is f.NonExistent? Any explanation on what is happening. I cannot believe these things are in a commercial product for which organizations have to pay to use it.

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

ID: 1b884aa0-cea6-bdfc-80af-7b7a8385b3de
Version Independent ID: 6a77610e-3b6b-44ab-6226-91820603f594
Content: SQL JOIN queries for Azure Cosmos DB
Content Source: articles/cosmos-db/sql/sql-query-join.md
Service: cosmos-db
Sub-service: cosmosdb-sql
GitHub Login: @timsander1
Microsoft Alias: tisande

@sijucm Thank you for the detailed feedback. This is being assigned to the content author to evaluate and update as appropriate.

#assign:markjbrown


the file can not open ,it  got damage

upload the mp4 file to openload success, but it can not been opened .
the format of the file got damage

Could you see me your code?


Capture "Other" Web Vitals

This is a work in progress of https://github.com/gtm-templates-simo-ahava/core-web-vitals/issues/2.
Although it's untested, I don't see how I configure it from Tag Manager. So it is really a work in progress 😺
I also thought about allowing the user to select which events they want to capture, so one could check "TTFB", "FID", and even "CLS", "FCP" etc. although I was not completely sold on this approach.

This was fixed here: 87251ca43e4fb664a051c8f447f78549dba63c86


[release-1.14] Updated the manifests for release-1.14

/test eventing-upgrade-tests

/test eventing-upgrade-tests

/test eventing-upgrade-tests


Partial build of any module depending on assembly not possible - requires full build

In our maven build, a number of modules including fvt & containers are dependent on having a valid assembly.
A full maven build works fine.
However if I for example try to build the data manager fvt only - having previously done a full build - I see:
$ mvn install                                         [17:08:06]
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.odpi.egeria:data-manager-fvt >------------------
[INFO] Building Data Manager OMAS FVT 2.4-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.871 s
[INFO] Finished at: 2020-10-05T17:08:12+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project data-manager-fvt: Could not resolve dependencies for project org.odpi.egeria:data-manager-fvt:jar:2.4-SNAPSHOT: Could not find artifact org.odpi.egeria:open-metadata-assemblies:pom:distribution:2.4-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

I would have expected this dependency to be available in my local ~/.m2 - but it's possible maven insists it is available in the reactor.
This makes quicker builds increasingly difficult. Gradle addresses this issue but currently does not handle execution of FVT., packaging, spring apps, or assembly.

This behaviour changed a couple of months ago. Module-specific builds used to work until then. I am not sure what caused the change.

Before the assembly wasn't correct, as the build was out of order. This was due to the assembly not expressing dependencies on the modules it contains, and any consumers of the assemblies not expressing a dependency (this also prevents circular dependencies which we had before and obscurely led to a version of code N-1 being included...)
That was the intent, but in the process you are are correct, this was introduced.. which I'll look how to correct but need to preserve correctness

When an assembly is built by the assembly plugin, the docs at https://maven.apache.org/plugins/maven-assembly-plugin/faq.html state
Can I use an artifact created by the assembly plugin as a dependency?
Yes. You can refer to it using the id of the assembly as the dependency classifier.

Our 3 assemblies are called
jonesn:assemblies/ (issue3752) $ cat *xml | grep '<id>'                                                                                [16:48:40]
    <id>deploy</id>
    <id>distribution</id>
    <id>presentation-server</id>

So in the docker (for example) component build we express a dependency as:
    <!-- Use assemblies as built for distribution -->
    <dependencies>
        <dependency>
            <groupId>org.odpi.egeria</groupId>
            <artifactId>open-metadata-assemblies</artifactId>
            <classifier>distribution</classifier>
            <type>pom</type>
        </dependency>
    </dependencies>

but trying to build standalone will fail (as above) and a manual attempt to get the dependency OUTSIDE A FULL BUILD also fails ie:
jonesn:egeria/ (issue3752) $ mvn dependency:get -DgroupId=org.odpi.egeria -DartifactId=open-metadata-assemblies -Dversion=2.4-SNAPSHOT -Dclassifier=egeria-omag -Dpackaging=pom -Ddest=/tmp/
[INFO] Scanning for projects...
[INFO]
[INFO] ------------< org.odpi.egeria:open-metadata-docker-egeria >-------------
[INFO] Building Docker image - Egeria 2.4-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.2:get (default-cli) @ open-metadata-docker-egeria ---
[INFO] Resolving org.odpi.egeria:open-metadata-assemblies:pom:egeria-omag:2.4-SNAPSHOT with transitive dependencies
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.631 s
[INFO] Finished at: 2020-10-07T16:56:39+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:get (default-cli) on project open-metadata-docker-egeria: Couldn't download artifact: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.odpi.egeria:open-metadata-assemblies:pom:egeria-omag:2.4-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
jonesn:egeria/ (issue3752) $

The original specification looks correct, and indeed appears to correctly resolve when all projects are part of the reactor. It however fails when they are not, slightly odd as those classifiers should be present in ~/.m2
However crucially the precise prereq spec isn't really needed for the dependencies, there we just need to ensure the module is built (assuming no-one removes an artifact with a particular classifier of course!) it's only potentially relevant in a few cases, such as actually creating an assembly where we want to select a particular artifact.
As such I've modified the dependency usages to just refer to the default classifier -- which seems to resolve this dependency partial build issue


Add changes to integrate pagerduty

The Pagerduty service key is fetched from secret created by hive and then loaded into alertmanager config secret. Added rules for secret creation
Signed-off-by: kesavan<EMAIL_ADDRESS>

@JohnStrunk Please merge