Enable multiple domains

I have two domains, one for family and one for friends. I'd like to have separate configurations, but all is placed under /data/…/default/ no matter what domain I use. How can i enable multiple domain support?

Hi
I want to activate multiple domains in rainloop, I have a premmium version, I want all the domains to enter the only portal webmail.co.mz, in the admin panel I already added the domains, more when I try to enter the webmail with different accounts of the main domain webmail.co.mz it says this domain is not premiited.
what I need to do?


Backup only selected database

Hi!
How I can selecting database to backup?
Now all databases are being copied. How can I specify a name for one of them?

Hi @ya-kostik. All databases/collections are backed up by this tool, by design.
You're able to restore only a specific database/collection using the mongorestore '--db=' and '--collection=' flags.

Thank you @timvaillancourt!
Do I get it right, that it's a feature, not a bug?
Does this drive and network overload?

Hi @ya-kostik I would say backing up a single database is a feature request, not a bug.

Hi @timvaillancourt, It would be nice!

I would argue this should not be a feature as the name implys a consistent
backup which can not be a single schema if any table of the schema is
sharded. If it's not sharded mongodump --oplog --database solves this
already
On Thu 20 Dec 2018, 3:07 p.m. Constantin Tsukanov<EMAIL_ADDRESS>wrote:

Hi @timvaillancourt https://github.com/timvaillancourt, It would be
nice!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Percona-Lab/mongodb_consistent_backup/issues/263#issuecomment-449028796,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADtQPIPHa6C51M4C00SUpK98s6S5kIa_ks5u66ecgaJpZM4UrXfn
.


Update Move-CsUser.md

By default, SFB 2015 uses OAuth for Move user and there is no flag UseOAuth in SFB 2015 CU12 any more(Its explicitly removed from CU12)

@MicrosoftDocs/marveldocs-pubops PR is ready for review. Please review and publish.

Docs Build status updates of commit 28b1e42:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

skype/skype-ps/skype/Move-CsUser.md
:white_check_mark:Succeeded
View (skype-ps)

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

@Ravindra-Microsoft
Please add the "sign-off" label so the PR enters the queue and we can review it.
Thanks!

Hi Diana,
I have submitted PR in past and I didn't add "sign-off" label. Actually, I wasn't able to add label, and asked for help and I was advised to leave a comment.
Please refer the chat I had on this in past and advise.
@.***
Thanks.
Regards,
Ravindra Singh Bisht
Mobile: +91-9711729996
From: Diana Hanson @.>
Sent: Thursday, September 30, 2021 8:55 PM
To: MicrosoftDocs/office-docs-powershell @.>
Cc: Ravindra Singh Bisht @.>; Mention @.>
Subject: Re: [MicrosoftDocs/office-docs-powershell] Update Move-CsUser.md (#8400)
@Ravindra-Microsofthttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FRavindra-Microsoft&data=04|01|ravindra.bisht%40microsoft.com|f487d9c70a9140ae220008d98426776a|72f988bf86f141af91ab2d7cd011db47|1|0|637686123062773748|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=rqttlya3WvTuXQbKVMNrr3CcUYmjzQxzBXmvxt4Oc04%3D&reserved=0
Please add the "sign-off" label so the PR enters the queue and we can review it.
Thanks!

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Foffice-docs-powershell%2Fpull%2F8400%23issuecomment-931423875&data=04|01|ravindra.bisht%40microsoft.com|f487d9c70a9140ae220008d98426776a|72f988bf86f141af91ab2d7cd011db47|1|0|637686123062783739|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=8MBcUzjHYAkIFnMjNkybyP8oBJJhymj241RG0uTUh0w%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAS43EN7JDXJE6OAM2IA3KIDUER6MXANCNFSM5FCS2BDQ&data=04|01|ravindra.bisht%40microsoft.com|f487d9c70a9140ae220008d98426776a|72f988bf86f141af91ab2d7cd011db47|1|0|637686123062783739|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=9rT260ewClEnJ3DelTofEW46fpq3vo2FqlAWVo5J9Yw%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01|ravindra.bisht%40microsoft.com|f487d9c70a9140ae220008d98426776a|72f988bf86f141af91ab2d7cd011db47|1|0|637686123062793734|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=Qn5lKhd%2F3REQzYmyDlVfQi8fOOezwokhFtstyFCLhfQ%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01|ravindra.bisht%40microsoft.com|f487d9c70a9140ae220008d98426776a|72f988bf86f141af91ab2d7cd011db47|1|0|637686123062793734|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=F5MX9wcjiz%2BTuQPd805CEo3mAd3%2B3oYD4RRk%2Fh15gRs%3D&reserved=0.

Hi Diana,
I have submitted PR in past and I didn't add "sign-off" label. Actually, I wasn't able to add label, and asked for help and I was advised to leave a comment.
Please refer the chat I had on this in past and advise.

@get-itips @dariomws @tseward - whichever of you review this PR last, please @ mention me so that I can merge the PR.
Thank you!

@tiburd Please merge this PR. Thanks

Docs Build status updates of commit 109b877:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

skype/skype-ps/skype/Move-CsUser.md
:white_check_mark:Succeeded
View (skype-ps)

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

@MicrosoftDocs/marveldocs-pubops I don't see my changes in the live page yet . Can you help?
https://docs.microsoft.com/en-us/powershell/module/skype/move-csuser?view=skype-ps

Hi,
I don't see my changes in the live page yet . Can you help?
https://docs.microsoft.com/en-us/powershell/module/skype/move-csuser?view=skype-ps
Thanks.
Regards,
Ravindra Singh Bisht
Mobile: +91-9711729996
From: Tina Burden @.>
Sent: Saturday, October 2, 2021 1:41 AM
To: MicrosoftDocs/office-docs-powershell @.>
Cc: Ravindra Singh Bisht @.>; Mention @.>
Subject: Re: [MicrosoftDocs/office-docs-powershell] Update Move-CsUser.md (#8400)
Merged #8400https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Foffice-docs-powershell%2Fpull%2F8400&data=04|01|ravindra.bisht%40microsoft.com|a2d2092c3c8547be6d6608d985179f3c|72f988bf86f141af91ab2d7cd011db47|1|0|637687158841284843|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=BZW0bwZQJfZbZi1e07pMtooDODlVMfsrPvdwQ0VFLUI%3D&reserved=0 into master.

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Foffice-docs-powershell%2Fpull%2F8400%23event-5396580427&data=04|01|ravindra.bisht%40microsoft.com|a2d2092c3c8547be6d6608d985179f3c|72f988bf86f141af91ab2d7cd011db47|1|0|637687158841284843|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=kimlL1YIXYYW2uap8rBGbHXOe%2B9Iu4lVNCmAN1O2SZs%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAS43EN57LNQRAFI5AFDDEA3UEYIWFANCNFSM5FCS2BDQ&data=04|01|ravindra.bisht%40microsoft.com|a2d2092c3c8547be6d6608d985179f3c|72f988bf86f141af91ab2d7cd011db47|1|0|637687158841294839|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=GMc6sL7ng889pf6H9sieKptjbNba8nizXBnd%2FY69bkA%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01|ravindra.bisht%40microsoft.com|a2d2092c3c8547be6d6608d985179f3c|72f988bf86f141af91ab2d7cd011db47|1|0|637687158841304834|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=msCiAASGjuvYQExttxKBp%2Fy0HGm9N6sAF2zhZaCApB4%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01|ravindra.bisht%40microsoft.com|a2d2092c3c8547be6d6608d985179f3c|72f988bf86f141af91ab2d7cd011db47|1|0|637687158841304834|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=Pne3B2KjOZbTEI8LGgz%2FkIhsaH%2BIT%2B%2F7vhYqg8UmkhI%3D&reserved=0.


gmic: correct hash for stdlib

Description of changes
https://gmic.eu/gmic_stdlib_community340.h changed since #320329
Result of nixpkgs-review run on x86_64-linux 1

10 packages built:

ansel
darktable
gimp-with-plugins
gimpPlugins.gmic
gmic
gmic-qt
gmic.dev
gmic.lib
gmic.man
photoprism

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Seems related to https://github.com/GreycLab/CImg/issues/422


.mjs is not included with babel-loader

A module with exported .mjs entry, will not be transformed with babel.
Example:
import * as sth from '@floating-ui/core';
console.log(sth);

And in rax-webpack-config we see only /.jsx?/ be included to babel-loader.

Resulting some modern ES code be bundled:

The temporary solution is to write a local plugin to modify the config.
module.exports = function (api) {
  api.onGetWebpackConfig((config) => {
    config
      .module
      .rule('jsx')
      .test(/\.m?jsx?$/)
      .end();
  });
};

Also with .cjs, the javascript world is so crazy...
No idea if there were another .*js file extension is valid.


Camera Thumbnail doesn't appear

HI there!
When I select an image from the gallery, i can see the preview image (thumbnail) on my website. However, when I take a picture with the camera, the thumnail doesn't appear, although the file is right uploaded.

Hi,
It depends on how you've implemented javascript on your webpage. As in demo I'm using jquery and FileReader method to do that.
You've to try few methods on your own to get desired results.

Hey ,
I am able to select the image from the gallery but it isn't getting uploaded and hence no thumbnail . can you help me with that

The AVD that I am running it on is 29 google API (pixel 3XL)
Currently there are many issues with API 29 permissions, we've to wait until it's commercially released to test on more devices. Till then you can publish your app targeting API 28.

Hey I have tried on 27 too but it still doesn't upload!
On Wed, Jul 24, 2019 at 1:50 AM Ghazi Khan<EMAIL_ADDRESS>wrote:

The AVD that I am running it on is 29 google API (pixel 3XL)
Currently there are many issues with API 29 permissions, we've to wait
until it's commercially released to test on more devices. Till then you can
publish your app targeting API 28.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mgks/Os-FileUp/issues/19?email_source=notifications&email_token=ALNOVMRUKUEGV3JEDAJ7B23QA7USHA5CNFSM4HN7Y4Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2VH33A#issuecomment-514489836,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALNOVMT6IW2O4RROGQPOZHDQA7USHANCNFSM4HN7Y4QQ
.

I just tried uploading 2 files then it was working but only one of them is
getting uploaded
On Wed, Jul 24, 2019 at 8:53 AM Vinay K Devarapalli<EMAIL_ADDRESS>wrote:

Hey I have tried on 27 too but it still doesn't upload!
On Wed, Jul 24, 2019 at 1:50 AM Ghazi Khan<EMAIL_ADDRESS>wrote:

The AVD that I am running it on is 29 google API (pixel 3XL)
Currently there are many issues with API 29 permissions, we've to wait
until it's commercially released to test on more devices. Till then you can
publish your app targeting API 28.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mgks/Os-FileUp/issues/19?email_source=notifications&email_token=ALNOVMRUKUEGV3JEDAJ7B23QA7USHA5CNFSM4HN7Y4Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2VH33A#issuecomment-514489836,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALNOVMT6IW2O4RROGQPOZHDQA7USHANCNFSM4HN7Y4QQ
.

can you update your repo with today's push and verify me if it's working?


[Bug]: AssertionError: Inverse geocoding matrix chunks are not equal to interferogram chunks

Describe the bug
Assertion error midway through geocode_parallel command. I am processing multiple sentinel scenes (20+) and merging the 3 subswaths before geocoding/ unwrapping. Seems to fail at the "build ll2ra transform" step. The problem seems to occur when particular sentinel-1 scenes are included in the stack - however there is no way to determine which scenes are causing the problem or why.
To Reproduce
Steps to reproduce the behavior:
Run merging and geocoding processing on the following datasets, data will run perfectly (full script attached)
scriptExample.txt
:

S1A_IW_SLC__1SDV_20160103T082126_20160103T082153_009327_00D7B4_6190.SAFE
S1A_IW_SLC__1SDV_20160115T082126_20160115T082153_009502_00DCB7_2058.SAFE
S1A_IW_SLC__1SDV_20160127T082126_20160127T082153_009677_00E1D8_4515.SAFE

Add the following two files to the stack for process to fail:

S1A_IW_SLC__1SDV_20160208T082125_20160208T082152_009852_00E6DB_C86F.SAFE
S1A_IW_SLC__1SDV_20160220T082120_20160220T082146_010027_00EC0A_8A04.SAFE

System and software version:

OS: Linux Mint (Cinnamon 21.1) using pygmtsar docker
GMTSAR version:

Processing Log
Full log attached below:
log2.txt

Please specify what Docker image and version do you use?

REPOSITORY           TAG       IMAGE ID       CREATED        SIZE
mobigroup/pygmtsar   latest    6cd0e53e4011   3 months ago   4.4GB

Ok, I can reproduce the error. Will be fixed sometimes soon.

You need to remove "wavelength=400" argument for interferogram processing. Replace
sbas.intf_parallel(pairs, wavelength=400, func=decimator, n_jobs=6)

to
sbas.intf_parallel(pairs, func=decimator, n_jobs=6)

See for details https://github.com/gmtsar/gmtsar/issues/706

The issue is completely fixed in PyPI PyGMTSAR library 2023.4.1


Machine Learning project

Can I add Python data analytics project??

Yes!
Just make a new folder in the repo similar to the 'projects' folder, and add it in there.


Update create_glossary.go

(Can't reply directly on GitHub, will try here)
The ID is the display name, I wish it was different in the proto, but
trying to clarify it is actually a display name for users cus there has
been confusion.
On Fri, Dec 13, 2019 at 6:42 AM Tyler Bui-Palsulich <
<EMAIL_ADDRESS>wrote:

@tbpg commented on this pull request.
In translate/v3/create_glossary.go
https://github.com/GoogleCloudPlatform/golang-samples/pull/1120#discussion_r357649664
:

@@ -29,7 +29,7 @@ import (
func createGlossary(w io.Writer, projectID string, location string, glossaryID string, glossaryInputURI string) error {
// projectID := "my-project-id"
// location := "us-central1"

// glossaryID := "glossary-id"

// glossaryID := "my-glossary-display-name"

Should we change the variable name? Or is the ID the display name?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/golang-samples/pull/1120?email_source=notifications&email_token=AB4IHV4AUV35EEXR6N5BPPDQYOGMJA5CNFSM4JZEMKX2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCPEAG5I#pullrequestreview-331875189,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB4IHVZSSVOMV2RSEMEFQ7LQYOGMJANCNFSM4JZEMKXQ
.


bump wascc-host to 0.10

There will be a wascc-host 0.10 release coming out later this week. When that's available we should bump to the next release and introduce lattice support (should be as easy as addingfeatures = ["lattice"] to wascc-provider's Cargo.toml)

Just a heads up that once you compile in lattice mode, a connection to nats or a nats leaf node is mandatory at startup. Thankfully, deploying a nats container is super easy.


Compiler error - BUG: `` at  has no type (Exception)

Commenting out the line c.receive makes the compiler not complain.
class Test
  @login : Channel(String) | Nil = nil

  def run
    spawn do
      @login.try do |c|
        loop do
          c.receive
        end
      end
    end
  end
end

t = Test.new
t.run

Crystal 0.26.1 [391785249] (2018-08-27)

LLVM: 4.0.0
Default target: x86_64-unknown-linux-gnu

https://carc.in/#/r/5f2g

Debug backtrace:
BUG: `` at  has no type (Exception)
  from src/compiler/crystal/semantic/bindings.cr:13:45 in 'type'
  from src/compiler/crystal/codegen/call.cr:453:15 in 'inline_call_return_value'
  from src/compiler/crystal/codegen/call.cr:428:7 in 'try_inline_call'
  from src/compiler/crystal/codegen/call.cr:394:8 in 'codegen_call'
  from src/compiler/crystal/codegen/call.cr:35:7 in 'visit'
  from src/compiler/crystal/syntax/visitor.cr:27:12 in 'accept'
  from src/compiler/crystal/codegen/codegen.cr:2074:7 in 'accept'
  from src/compiler/crystal/codegen/codegen.cr:68:5 in 'visit'
  from src/compiler/crystal/syntax/visitor.cr:27:12 in 'accept'
  from src/compiler/crystal/codegen/codegen.cr:2074:7 in 'accept'
  from src/compiler/crystal/codegen/call.cr:286:13 in 'codegen_call_with_block'
  from src/compiler/crystal/codegen/call.cr:32:9 in 'visit'
  from src/compiler/crystal/syntax/visitor.cr:27:12 in 'accept'
  from src/compiler/crystal/codegen/codegen.cr:2074:7 in 'accept'
  from src/compiler/crystal/codegen/call.cr:378:11 in 'codegen_dispatch'
  from src/compiler/crystal/codegen/call.cr:15:7 in 'visit'
  from src/compiler/crystal/syntax/visitor.cr:27:12 in 'accept'
  from src/compiler/crystal/codegen/codegen.cr:2074:7 in 'accept'
  from src/compiler/crystal/codegen/fun.cr:144:9 in 'codegen_fun'
  from src/compiler/crystal/codegen/fun.cr:51:3 in 'codegen_fun'
  from src/compiler/crystal/codegen/fun.cr:8:54 in 'target_def_fun'
  from src/compiler/crystal/codegen/call.cr:408:12 in 'codegen_call'
  from src/compiler/crystal/codegen/call.cr:35:7 in 'visit'
  from src/compiler/crystal/syntax/visitor.cr:27:12 in 'accept'
  from src/compiler/crystal/codegen/codegen.cr:2074:7 in 'accept'
  from src/compiler/crystal/codegen/codegen.cr:605:9 in 'visit'
  from src/compiler/crystal/syntax/visitor.cr:27:12 in 'accept'
  from src/compiler/crystal/codegen/codegen.cr:2074:7 in 'accept'
  from src/compiler/crystal/codegen/codegen.cr:65:7 in 'codegen'
  from src/compiler/crystal/codegen/codegen.cr:63:5 in 'codegen:debug:single_module'
  from src/compiler/crystal/compiler.cr:22:7 in 'codegen'
  from src/compiler/crystal/compiler.cr:153:16 in 'compile'

@bcardiff This doesn't seem to be related to generics. In fact, the error is the same with a non-generic type.
I suppose it has to do with there being no valid concrete ancestor of Foo and #method doesn't seem to be semantically analysed and it only fails at codegen.

You are probably right, it's just that all the examples so far were with generics...

Yep. @bew stated it needed to be generic, but it doesn't.
Maybe related: #6996


Is pragmaFrag supported?

I'm trying to use a fragment
<>
</>

but got error from babel:

transform-react-jsx: pragma has been set but pragmaFrag has not been set

I'm using Codepen. Here is my code https://codepen.io/jcubic/pen/jOJbOwG

Found how to setup this on CodePen:
/** @jsx vhtml */
/** @jsxFrag vhtml.Fragment */


How can I get AST (not HAST)?

Hi, I'm the author of VS Code extension "Blockman". In Blockman, I have implemented third-party parsers/tokenizers to get the locations (line and column) of curly/square/round brackets and Python indent/dedent tokens, but the problem is that I found tokenizers for only some languages, the extension still does not support many languages. Also some tokenizers are very slow.
So, I'm trying to find a good third party tokenizer library to get AST tree from a code-text of many languages.
So far, I have found shiki and @wooorm/starry-night which are probably what I need, but I'm not sure.
I read the docs and I see that I can get HAST like this:
{
  type: 'root',
  children: [
    {
      type: 'element',
      tagName: 'span',
      properties: {className: ['pl-mh']},
      children: [
        {type: 'text', value: '# '},
        {
          type: 'element',
          tagName: 'span',
          properties: {className: ['pl-en']},
          children: [{type: 'text', value: 'hi'}]
        }
      ]
    }
  ]
}

shiki can also provide simple tokens like this:
(and it has locations, yeah, but it's not usable for Blockman because there is no information about the type of each token, I mean, for example we cannot detect which opening bracket { is in a code comment and which one is a real code nesting bracket. )
[[], [{
  "content": "def",
  "offset": 1,
  "color": "#F97583",
  "fontStyle": 0
}, {
  "content": " dfd",
  "offset": 4,
  "color": "#B392F0",
  "fontStyle": 0
}, {
  "content": ":",
  "offset": 8,
  "color": "#BBBBBB",
  "fontStyle": 0
}], [{
  "content": "    print",
  "offset": 10,
  "color": "#B392F0",
  "fontStyle": 0
}, {
  "content": "(",
  "offset": 19,
  "color": "#BBBBBB",
  "fontStyle": 0
}, {
  "content": "4",
  "offset": 20,
  "color": "#F8F8F8",
  "fontStyle": 0
}, {
  "content": ")",
  "offset": 21,
  "color": "#BBBBBB",
  "fontStyle": 0
}], []]

But I want to see a classic AST, I want to see the location (line and column -> or global index of multi line string) and type (to know -> is it a square bracket, or curly bracket, or indent token of python? or something else?) of each token of a multi-line code-text.
I don't need any highlighting style data, I just need a classic AST, I need only locations and types of block-tokens.
I mean something like this:
(tree structure is not needed necessarily. Just a simple array of tokens is enough for me)
{
  type: "Program",
  start: 0,
  end: 23,
  sourceType: "module",
  body: [
    {
      type: "VariableDeclaration",
      start: 0,
      end: 23,
      kind: "const",
      declarations: [
        {
          type: "VariableDeclarator",
          start: 6,
          end: 23,
          id: {
            type: "Identifier",
            start: 6,
            end: 7,
            name: "a",
          },
          init: {
            type: "ObjectExpression",
            start: 10,
            end: 23,
            properties: [
              {
                type: "Property",
                start: 14,
                end: 20,

                value: {
                  type: "Literal",
                  start: 19,
                  end: 20,
                  value: 7,
                  raw: "7",
                },
                kind: "init",
              },
            ],
          },
        },
      ],
    },
  ],
}

Well, classic AST shows everything, all tokens. For my VS Code extension "Blockman", I don't need all the tokens, I need only the tokens which are block openers and block closers, for example brackets:
{        }
(        )
[        ]

also INDENT and DEDENT tokens of python and other indentation based languages.
also string openers and closers:
'        '
"        "
`        `

also multi-line comment openers and closers:
/*        */
"""        """

also HTML/XML/JSX/TSX tag openers and closers:
<div>        </div>
<img />
and all the other tags

also TypeScript/TSX generic type openers and closers:
<        >

So, can I get such kind of tokens with shiki or starry-night? Yeah, I know there are other libraries too but as I understand -> they are slow because they don't use textmate/oniguruma of VS Code.

In shiki, I discovered this prop:
includeExplanation
const { tokens } = await SHIKI.codeToTokens(code, {
    lang: 'python',
    theme: 'min-dark',
    includeExplanation: true,
  });

And it seems it gives me explanations (token types), so I guess I am able to determine which bracket is true bracket and which bracket is existing just in a code comment, or in a string literal.
So, does the starry-night package have such kind of feature to get tokens with locations and types (explanations)?

Gamarjoba! Interesting.
I’m not sure you can get proper ASTs from textmate grammars. But perhaps they’re enough to get something useful out.
I believe you need to go one layer deeper. Shiki and starry-night use the same underlying dependencies. Both mainly add the color part on top. Which is not what you need.
And both are a registry of grammars: I crawl from github-linguist, which is super actively maintained, Shiki maintains its own grammars.
I recommend looking at the code for https://github.com/wooorm/starry-night/blob/746f62ebe93d891acae7526dd983f7bd3354c3be/lib/parse.js#L30. Shiki has similar code, but I found it a bit harder to read.
It gets complex, because there’s a WASM interface, and you only get colors out. Given that colors are numbers, I can pass many numbers in, and get them back out.
Now, what to “select“ and ”color” is vague: every grammar defines semi-standard words. Themes can then select those semi-standard words. So, you’d need some knowledge/testing with each grammar to know whether things work.
Closing, as there’s not a particular change needed in this project. Feel free to continue the conversation tho


OGC API Tiles: Add authentication support

Authentication can be done by API key. The task is to restrict access to tiles when specifying a key. The major problem is how to verify the key.

Added support for tiles access delegate by apiKey, collectionId, tileMatrix, tileRow and tileCol. Implementing this delegetate allow to control user access for tiles by user, territory and feature collection.
public delegate bool TileAccessDelegate(string collectionId, int tileMatrix, int tileRow, int tileCol, string apiKey);
The delegate is called from the API controller.


Broken link to ACPIGen folder

The link to ACPIGen folder directs to the Windows-driver-samples repository on github. Where can I find the ACPIGenFx.dll file?

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

ID: 16299ebf-80ed-f09f-d0c0-4cda742f579e
Version Independent ID: 8e45d880-93f8-4c85-81e6-b1d5dbe78ab6
Content: Generate ACPI tables by using AcpiGenFx
Content Source: windows-driver-docs-pr/bringup/generate-acpi-tables-by-using-acpigenfx.md
Service: unspecified
GitHub Login: @windows-driver-content
Microsoft Alias: windowsdriverdev

@rohitdubey12, thanks for pointing out this broken link.
AcpiGenFx and associated samples are available in the Tools folder of the WDK.
In the Tools directory, navigate to the target architecture folder, then to the AcpiGenFx folder.
For example, the x86 version is located in C:\Program Files (x86)\Windows Kits\10\Tools\x86\ACPIGenFx.
I'll update the topic with this information.

Added information to the topic on the location of AcpiGenFx and associated samples in the WDK Tools directory.


Rule Based Uploader: Advanced - Outdated Info

Release Testing 23.0

“Building URLs from Accession Information”, Hands-on: Uniport Outdated Info and Screenshots

Format can now be found under Download. Format menu point no longer exists
Page now has an api url generator, which may be a better fit for this tutorial. It is found under the parent section, and is formated: https://rest.uniprot.org/uniprotkb/stream?format=fasta&query=accession%{identifier}

"Apply Rules to Existing Collections", Step 3: Click Build should be Click Upload
Outdated Screenshots showing the History

All of the Galaxy screenshots here are generated automatically, I do not know how they are updated. It was written by a colleague that has now left.
E.g.
https://galaxy-tests.s3.amazonaws.com/galaxy-gtn-screenshots/local/rules_example_4_7_mapping_extension_and_name.png
I find the name in https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy_test/selenium/test_uploads.py#L309  but I don't see galaxy-gtn-screenshots anywhere in the codebase
Ah, found the PR: https://github.com/galaxyproject/training-material/pull/2271 Which references https://github.com/galaxyproject/ci-testing which hasn't been touched in 2 years (ahh guess they're not automatic then like we thought.)
I really do not understand why that was a separate repo and not part of the GTN, that's a bit, hmm. I guess we need to integrate that. I'll ask around for the aws keys.


Lucky reward warning should calculate based off post-purchase income rather than current income

Some purchases provide a significant boost to income that would result in your Lucky rewards no longer being capped despite no warning showing.

This is now added to the dev-branch and will be released with version 2.031.4

This is now added to the dev-branch and will be released with version 2.031.4


Update website references

Change the website references so that they refer to our own website now instead of AB3 website.
Fixes #40

LGTM.


ArcGIS Desktop installation using Windows powerShell scripts. PowerShell DSC resource ArcGIS_Install failed to execute Test-TargetResource functionality

Trace-DSCJob : PowerShell DSC resource ArcGIS_Install failed to execute Test-TargetResource functionality with error message: PowerShell Desired State Configuration does not
support execution of commands in an interactive mode. Please ensure that the underlying command is not prompting for user input, such as missing mandatory parameter,
confirmation prompt etc.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ArcGIS\ArcGIS.psm1:221 char:5
Trace-DSCJob -Job $Job -JobName $ConfigurationName -DebugMode $De ...
CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Trace-DSCJob
Trace-DSCJob : The SendConfigurationApply function did not succeed.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ArcGIS\ArcGIS.psm1:221 char:5

Trace-DSCJob -Job $Job -JobName $ConfigurationName -DebugMode $De ...

CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Trace-DSCJob

It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please either update the issue with the template and reopen, or open a new issue.


GroupBy array based result rows

Motivation
GroupBy queries internally represent result rows as MapBasedRow objects, which have the following two fields:
private final DateTime timestamp;
private final Map<String, Object> event;

As a result, we need to do relatively expensive Map put and get operations (typically these are HashMaps or LinkedHashMaps) at many points: when rows are first generated after each segment scan, when they are merged on historicals, when they are serialized and deserialized, and then when they are merged again on the broker.
The overhead is especially noticeable when the resultset of the groupBy query is large.
See also #6389.
Proposed changes

Create a ResultRow class that simply wraps an Object[] and allows position-based access.
Modify the GroupBy query implementation to use ResultRow throughout, rather than Row / MapBasedRow.
Add ObjectMapper decorateObjectMapper(ObjectMapper, QueryType) to QueryToolChest, to aid in implementing the compatibility plan described in "Operational impact" below. QueryResource would use it so it could serialize results into either arrays or maps depending on the value of resultAsArray. DirectDruidClient would use it so it could deserialize results into ResultRow regardless of whether they originated as ResultRows or MapBasedRows.

Rationale
Some other potential approaches that I considered, and did not go with, include:

Creating an ArrayBasedRow that implements org.apache.druid.data.input.Row (just like MapBasedRow does). The reason for avoiding this is that the interface is all about retrieving fields by name -- getRaw(String dimension), etc -- and I wanted to do positional access instead.
Using Object[] instead of a wrapper ResultRow around the Object[]. It would have saved a little memory, but I thought the benefits of type-safety (it's clear what ResultRow means when it appears in method signatures) and a nicer API would be worth it.

Operational impact
The format of data in the query cache would not change.
The wire format of groupBy results would change (this is part of the point of the change) but I plan to do this with no compatibility impact, by adding a new query context flag resultAsArray that defaults to false. If false, Druid would use the array-based result rows for in-memory operations, but then convert them to MapBasedRows for serialization purposes, keeping the wire format compatible. If true, Druid would use array-based result rows for serialization too.
I'd have brokers always set resultAsArray true on queries they send down to historicals. Since we tell cluster operators to update historicals first, that means that by the time the broker is updated, we can assume the historicals will know how to interpret the option. Users would also be able to set resultAsArray if they want once brokers are updated, and receive array-based results themselves.
So, due to the above design, there should be no operational impact.
Test plan
Existing unit tests will cover a lot of this. In addition, I plan to test on live clusters, especially the compatibility stuff.

This seems reasonable to me :metal:. How does ResultRow work in practice? Do the dimensions/virtual-columns/aggs/post-aggs of a GroupByQuery I guess form a schema of sorts that can map the columns to a position in a stable manner between brokers and historicals? If I don’t elect to translate the array results to a map row at the broker level, does it include a ‘header’ row of sorts that captures that schema?

The idea is the row order would be determined solely by the granularity, dimensions, aggregators, and post-aggregators, in the following way:

If granularity != ALL then the first element is a row timestamp. Otherwise, the timestamp is omitted.
The next set of elements are each dimension, in order.
Then aggregators.
Then post-aggregators. These might be omitted if they haven't been computed yet (e.g. they won't be included in the ResultRow objects that come from the per-segment engine).

There aren't any headers, callers would be expected to know which element is which based on the above rules.

Array based result row sounds good to me. I'm wondering this ResultRow could also be applicable to other query types as well such as TopN or Timeseries. I know this is a slightly different issue, but it would be really nice if all Druid queries can use the same result type.

It could certainly apply to them, although in the case of topN, it would be potentially wasteful: we'd need to write the timestamp once per result value instead of once per granular time bucket. (Right now, topN the result format is an array of time buckets, each one containing a timestamp + list of result values, and the nesting means the timestamp only needs to be written one time.)

Would potentially be a nice option for every query type though. I bet for most TopNs granularity is "all" and so the timestamp could be omitted.


Could VSCode support dirty lines like VS？

Could VSCode support dirty lines like VS, so that I can figure out what lines have changes.
Just tag them by a marked color between line No and main text of the opened editor when finding diff between dirty file and saved file.

VS Code supports "dirty lines" if your workspace is under source control (e.g. git).
This screenshot shows that a file is modified in the explorer ("m") and shows the changed lines with a blue bar in the editor:


c function tutorial added

Curt Tilmes gave a great addition to a question on perl6 users. I thought it illustrated several parts of NativeCall, so I wrote it up as an example for the NativeCall documentation.

I like it, it's awesome. But can we have it in a separate document? Similarly to how we have Grammars and Grammar Tutorial.

Although, you know what… given that it's at the end of the nativecall document, I think we can just take it! Feel free to reorganize though.


Add matrix! macro for initialization of Matrix structs with array-like syntax

Add a matrix! macro that supports the following Matrix struct initialization idioms:
With row vectors that define each ordered scalar value
let m = matrix!(
    [1, 2, 3],
    [4, 5, 6],
    [7, 8, 9]
);

With row vectors that use an array-like repetition pattern
The following will make a 3 x 5 Matrix filled with 1's.
let m = matrix!(
    [1; 5],
    [1; 5],
    [1; 5]
);

This macro will take row vectors only.

Added in #84


incubator/oauth-proxy Allow path to be configured

Allow path to be configured on the ingress. If one has a vhost that
needs to be shared with oauth proxy, then we need to be able to proxy
pass just /oauth2 to the proxy. Thus allowing it to be configured here.

The chart version increments in two because of https://github.com/kubernetes/charts/pull/2935. Please let me know how you'd like to proceed with it should you accept the PR.
Thanks.

I realise the Values.ingress.path is the same in case we have multiple hosts defined, but this would be exactly the same with a hardcoded /.

cc @compleatang

/ok-to-test

++ by me.

/lgtm


print origins as many lines if there are many

It would be cool to have an option to print a directive's origins as multiple lines, either if there are too many or always.
This will make it easier to quickly scan for a skim for a certain origin.

Yes it does! 🎉

closed by #3


Show pyspark dataframe support

Is your feature request related to a problem? Please describe.
A common question we get, is does Hamilton support spark dataframes? The answer is yes, but it's not ideal at the moment, and we don't have a vanilla example to point to.
It's not ideal because joins are a bit of a pain -- you need to know the index to join on. In the pandas world, we got away with
this because everything had an index associated with it. In spark, you need to provide it, and know when to provide it.
Describe the solution you'd like
(1) Provide a vanilla pyspark example.
(2) Provide a pattern to show how to handle multiple spark data sources. Perhaps implement a graph adapter to do so.
Describe alternatives you've considered
N/A

We are moving repositories! Please see the new version of this issue at https://github.com/DAGWorks-Inc/hamilton/issues/21. Also, please give us a star/update any of your internal links.


Document ways to include shared libraries when running jenkinsfile-runner

Just curious if there is anyway to load shared-libraries when jenkinsfile-runner invokes the pipeline. I read the comment below from (#23) from a year go, wondering if not currently supported would it be in the roadmap?

jenkinsfile-runner in it's current design only can run a Jenkinsfile that can execute on a green field jenkins installation without any specific setup. So tons of use cases won't be supported, like using tool installations, credentials, variables, plugins with specific configuration, and ... shared libraries.
For those, we need jenkinsfile-runner to include some jenkins configuration, and I indeed would like to get JCasC used for this purpose.

I cannot provide any roadmap for this feature (see https://github.com/jenkinsci/custom-war-packager/issues/124), but there are already some solutions.
Te easiest way is to use FileSystem SCM plugin and to include Pipeline libraries into the Docker image or to put them in the Filesystem. E.g. see https://github.com/jenkinsci/ci.jenkins.io-runner/blob/a05e19554af6ff36632721d638e16274f4c16790/init_scripts/src/main/groovy/PipelineLibrary.groovy
Also, Configuration-as-Code plugin can be used to define Pipeline libraries. Quick example from https://github.com/cloudbees-oss/cjd-jcasc-demo
unclassified:
  globalLibraries:
    libraries:
    - defaultVersion: "1.2.3"
      name: "Test Git Lib"
      retriever:
        legacySCM:
          scm:
            git:
              branches:
              - name: "*/myprodbranch"
              browser:
                assemblaWeb:
                  repoUrl: "assembla.example.com"
              buildChooser: "default"
              doGenerateSubmoduleConfigurations: false
              extensions:
              - "cleanCheckout"
              - "gitLFSPull"
              - checkoutOption:
                  timeout: 60
              - userIdentity:
                  email<EMAIL_ADDRESS>                  name: "custom user"
              - preBuildMerge:
                  options:
                    mergeRemote: "myrepo"
                    mergeStrategy: RECURSIVE
                    mergeTarget: "master"
              gitTool: "Default"
              submoduleCfg:
              - submoduleName: "submodule-1"
                branches:
                - "mybranch-1"
                - "mybranch-2"
              - submoduleName: "submodule-2"
                branches:
                - "mybranch-3"
                - "mybranch-4"
              userRemoteConfigs:
              - credentialsId: "exampleuser-creds-id"
                url: "https://git.example.com/testgitlib.git"

It would be great if somebody creates a new Documentation page for Pipeline Libraries and rewrites my comment as a documentation entry

im gonna be testing the casc shared lib setup , if the documentation is not there yet ill give it a go

@bechampion :
did you get anywhere with this ?
if so, could you share the setup ?
I'm interested and going to start on this ..


Overlaps between train set and val set

Hello, thanks for your great work!
I wonder that are there any overlaps between the training set and the val set? Is there any tools that can find and analyze the overlaps?

The scenes are independent of the training and validation sets. But if you mean the geographical location, you can check the GPS location (cities and poses) to draw the location covered in different sets. You can also check #52.


Getting the mouse position in screen coordinates? Why not framebuffer coordinates instead?

I don't understand the rationale behind glfwGetCursorPos() returning the mouse position in screen coordinates. Why would you want that, if your OpenGL rendering is done in pixels and you set your glViewport() in pixels? Whatever you do with the mouse in OpenGL, you need to know its position in pixels (picking needs to know the pixel at which you clicked, dragging needs to know how many pixels the mouse travelled so that the displacement in pixels is right, etc). Honestly, I don't find a case in which I would prefer to have screen coordinates for the mouse.
Said that, and assuming there's a good reason for it, is there any convenience function for converting from screen coordinates to framebuffer coordinates?
Currently I'm doing it manually by calling
glfwGetWindowSize(window, &width_sc, &height_sc);
glfwGetFramebufferSize(window, &width_px, &height_px);

then calculating the scale factors between screen and framebuffer, and applying that to the mouse coordinates, but I feel like this is overkill for such a common task, and I feel like I'm probably undoing a scale conversion that was internally done by GLFW for converting from framebuffer coordinates to screen coordinates...

All the operating systems / window systems supported by GLFW have cursor positions in screen coordinates, and so this is what GLFW exposes. The coordinate system is discussed in the documentation.
Note that only MacOS and Wayland have potentially different window and framebuffer sizes.
GLFW doesn't have an explicit cursor pixel position function, and I'm not sure this would be wise to implement in GLFW as OpenGL / Vulkan etc. have different pixel coordinate origins. The added computational complexity of doing it in your own code is low, and since there are a number of ways of handling UI / cursor interaction it seems that user code is probably the best place to do this.

Yes, I was thinking twice about this yesterday, and came to the same conclusion as you. I'm leaving it open just in case anybody has anything to add, but feel free to close it.


[CU-86by7ave2] Set the workflow for staging and production deployment

Task linked: CU-86by7ave2 [FE1-003] Automatic deployment to Cloud


Search in the doc is not working.

Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT

What happened:
The search in the docs shows nothing even if we search keywords present in the docs.
What you expected to happen:
The search results according to the keyword.
How to reproduce it (as minimally and precisely as possible):

I want to work on this

@kartikaysaxena let's close the issues you have taken one by one and you can pick this then

Hi @kartikaysaxena were you able to work on this?

This has been fixed now! Closing this issue.


Best Practise for handeling different messages via one connection?

Hi there 👋,
At first, i like this library very much... it workes flawlessly.
I was wondering wether there is a best practise for handeling different Messages/events recieved by a client at random intervals with each one needing to invoke a different method.
I am working with the Home Assistant Websocket API and different Eventsubscriptions are handled via a ID in the message.
So there are "Rest-Like" Calls (Request -> Response) both sharing the same ID
And Events which you can subscribe to.
Maybe i need to switch to a callback based library? And if so, do you have any recommendations?
Thanks in advance

You can just switch on it and call the function. I'm not sure there's a best practice here.
import asyncio
import websockets

async def hello():
    uri = "ws://localhost:8765"
    async with websockets.connect(uri) as websocket:
        message = decode(await websocket.recv())
        if message.id == something:
            do_something(message)
        elif ...

asyncio.get_event_loop().run_until_complete(hello())

Doing something about this is #311.


Comment test case

Need to fix after alpha release

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.krish seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Add demonstration files

Logo

Demo

It's awesome! Thank you @lvarayut !

@kulakowka Glad that you :heart:  it. I have planned to integrate it with many great tools, such as, Eslint, testing framework, Flow, Yeoman, and etc. So, Stay tuned!

Yes, I am watching for changes to your repository.
P.S.
Most of all I would like to see an example of integration with databases.

That's one of the features noted in my long list, could be MongoDB. It will be integrated after Yeoman because I don't want to force everybody to use a chosen database. After having a Yeoman generator, they could choose whether they want to include the database or not.

loves @kulakowka idea of integration with database best of all MongoDB.

@sachgits It has been noted.

I'm closing this issue as all the features mentioned here have listed in #12. Feel free to discuss your ideas in that issue.


Need for fine-grained per-channel authn/authz

The current authn/authz mechanism described with securitySchemes in AsyncAPI 2.0 works at a global level, i.e. it is definable inside the server node. oAuth2 “scopes” allows to provide some authz metadata related to specific channels however 1) it only applies to oAuth2 and 2) it applied to the entire API.
Sometimes, an API may have different channels supporting a different set of permissions. Those permissions are usually reflected in the security scheme being used. Therefor, it would be nice to have the ability to set securitySchemes at the channel level.

@jstoiko have you seen https://github.com/asyncapi/spec/pull/584 ?

this isn't anymore possible to implement security at channel level in the asyncapi spec version 3 ?

@devthejo it was also not possible on channel level prior v3
v2 and v3 are not different in that aspect, security is either on server level or fine grained on operation level.
I will close this issue as it is super old, before we added security on operation level. Also @jstoiko is no longer active in community for over 3 years.
@devthejo if in your opinion security is not enough to be fine grained on operation level, please open a separate issue with detailed explanation for the use case and explanation why current functionality is not good enough for your use case


[mtl] use copyless vec helper

Metal piece of #2702
This is just an optimization. Main idea is to bring structure construction closer to the placement spot. I.e. instead of doing 1) construct 2) try extending the vector 3) write into it, we now do 2-1-3, which allows the compiler to construct the data in place (without any box magic).
PR checklist:

[ ] make succeeds (on *nix)
[ ] make reftests succeeds
[ ] tested examples with the following backends:
[ ] rustfmt run on changed code

Do we know whether this has a positive performance impact?

Nope. We did see visible impact on WebRender when doing a similar change though.
I'm planning on coming up with some crazy tests in copyless that verify when it works, and allows us to catch the moment of compiler maturing enough ;)
Let's go ahead, it's not a major change.
bors r=grovesNL

Note: I screwed up one bit here, causing a panic. Quickly hot-fixed in the follow-up 3afab46c73a5cf711cd398deda8acb9a009a5b2a


[RPA-1302] Zip: unzip file

Description

Motivation and Context

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

I agree to the terms of the RunBotics Contributor License Agreement.

bump version


Improvement/Bug :: Watermark format incompatibility

Hi there
I'm facing issues related to the image format when inserting the watermark.
The issue is: "error": "imagor: 406 linear: vector must have 1 or 2 elements"
You can test it with the image attached.

One idea is to identify if the format is compatible or, in case of failure, try to convert it to the proper format.
I could not figure out what was wrong, but due to this issue, I ended up converting the image to CMYK and the watermark worked.
Would you have any suggestions for this?

Available in v1.3.3

Thanks @cshum
In my tests with the provided container image, it was working fine. I would continue some other cases today, but I believe it is good indeed.


Face Mask Detection

Is your feature request related to a problem? Please describe and Describe the solution you'd like**
During Covid-19 period wearing mask is crucial one, so I've developed a ML project which can detect multiple faces and show the result. I've even worked on Arduino which turns the camera towards the face and send the signal to the machine to detect the face and show the result.
Describe alternatives you've considered?

I tried detecting faces using available pretrained models like YOLO, RESNET-50 and many more, after detecting the face I've cropped out the faces and sent it to my model and it will detect whether mask is present or not.
Using Arduino I've implemented 360° rotated camera and the ML model will detect the faces and displays the result.

Additional context
CNN Architecture of the model

Accuracy, loss of the model

Acuracy Percentage of the model

Testing snapshot of the Model

@akshitagupta15june I would like to contribute my project, please assign the issue to me, if you want me to work on any other issues please let me know.

I would like to contribute to this issue as a part of @GSSOC'23
Please assign it to me. Thank you.

Hi, I am very much interested and would like to contribute as a part of @GSSOC'23.
Please assign the task to me. Thank you.

Hi, I would like to contribute in this issue

I would love to contribute to this issue as a part of GSSOC '23

I would like to contribute to this issue as a part of GSSOC'23.
To check for a masked face, I would use mediapipe for face mesh detection, and through the points found in that and the ones missing due to the mask(if face is masked), I would decide whether face is masked or unmasked. It should give a very high accuracy.

Hello, I'm GSSoC'23 Contributor. Please assign me this issue. I want to work on this and contribute to this.

Hello I'm a GSSOc'23 contributor and I'll love to contribute to this issue as a part, please assign it to me. I have developed a similar model using YoloV5 and Arduino Nano as a part of my college project so I have previous expertise and experience in this.

Hello mam, please assign this issue to me under GSSOC'24, I can do it.


Fix & break up the test for Part 01 Step 10

From j1939-84 created by mmschaefer: SolidDesignNet/j1939-84#17
Unit tests for Part 01 Step 10 need to broken down to one error per test and the test need to be update to cover all lines of code.

[ ] Break up test
[ ] Added additional tests
[ ] Verified to latest version issued June 24, 2021 Specification


Vulnerability roundup 113: busybox-1.34.1: 1 advisory [9.8]

search, files

[ ] CVE-2022-28391 CVSSv3=9.8 (nixos-21.11, nixos-unstable)

CVE details
CVE-2022-28391
BusyBox through 1.35.0 allows remote attackers to execute arbitrary code if netstat is used to print a DNS PTR record's value to a VT compatible terminal. Alternatively, the attacker could choose to change the terminal's colors.

Scanned versions: nixos-21.11: a62ce97f92b; nixos-unstable: ff9efb0724d.
Cc @TethysSvensson
Cc @alyssais

Would be nice to see some reaction from upstream before we go applying patches...

https://ubuntu.com/security/CVE-2022-28391

I understand the "fix" introduces memory leaks. This may or may not matter.

Fixed in ac60e92b15adfcb14d65dcfb2265f24bb69e22c0.


Removed LangVersion from csproj files and added it to DirProps

Removed the setting from the csproj can moved it to dirprops to make it easier to manage

Pull Request Test Coverage Report for Build 68185

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

Totals

Change from base Build 68166:
0.0%

Covered Lines:
4893

Relevant Lines:
6346

💛  - Coveralls

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.3.1
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.3.1


Trigger infinite-scroll until scrollbar appears or disabled = false

Trigger infinite-scroll="nextSlot()" until the scrollbar appears or disabled = false.
With large windows, not all content is shown, because a scrollbar does not appear. Without scrollbar, user cannot scroll, therefore, only the first contents will be shown

+1

+1 Same issue. Any fix available?

I found a little hack/fix: just add to your CSS:
html {
    /* ngInfiniteScroll */
    height: 101%;
}

+1

Found the solution in master as of 10/15/2015.
On line 182 the $interval() is set to run only once. Change to 0 to run indefinitely.
this:
return $interval((function () {
if (immediateCheck) {
return handler();
}
}), 0, 1);
To This:
return $interval((function () {
if (immediateCheck) {
return handler();
}
}), 0, 0);

Hmm, I was able to solve the issue but it was by editing the finished JS. I was going to fork and submit a pull request but I'm not familiar enough with coffee script to edit that and build it. But here is what I did for others wanting to solve this issue:
Line 151 changes to:
unregisterEventListener = $rootScope.$on(scope.infiniteScrollListenForEvent, load);

Lines 178-182 changes to:
var load = function () {
    var stop = function () { $interval.cancel(l) };
    var l = $interval((function () {
        var h = handler();
        if (h === false) stop();
        return h;
    }), 0)
    return l;
}
if (immediateCheck) {
    return load();
} else {
    return $interval(function() {}, 1);
}

I did a little  trick like that.
On angular module define a global variable app.value('isFirstLoad',true);
On handler method add $scope.isFirstLoad = false;
On html controller scope add {{isFirstLoad ? nextRecordPart() : ''}}
it does the trick for no scroll bar pages on first load.

Explanation as to why this was closed?

@solomon87 there's a workaround


add i386 architecture

in order to build a fully compatible universal framework for ios, the i386 architecture needs to be in the fat library archive.

I signed it!

Question: Is i386 used in any real use cases?
I remember that we dropped i386 support because XCode has problem compiling thread_local with i386 starting from XCode 10.1. thread_local was used by Eigen, which is a library used by TensorFlow Lite.
I'm not sure if anything changed. Are you able to run the script with newest XCode?

@mlostekk Did you get a chance to look on reviewer comments? Please let us know on the update. Thanks!

Can one of the admins verify this patch?

well, the i386 is still required if you build a universal framework (e.g. with carthage) for the simulator.
https://stackoverflow.com/questions/28033635/why-does-the-ios-simulator-require-i386-and-x86-64-symbols-even-though-im-on-an

It builds fine for me without addressing the thread_local issue. Though it appears when building the full tensorflow package. I could also provide a PR for this if needed.

Just created a extra PR for fixing the thread_loacal issue for i386 builds.
https://github.com/tensorflow/tensorflow/pull/32166


Reword introduction to improve readability

Thank you! I tweaked the wording slightly, mainly to avoid repeating the same word ('Svelte') at the start of consecutive paragraphs


A bootstrapped vcpkg tool version command should match the downloaded version

Is your feature request related to a problem? Please describe.
As I write this, the bootstrap script downloads version 2021-02-24-d67989bce1043b98092ac45996a8230a059a2d7e:
https://github.com/microsoft/vcpkg/blob/9986c28da97f316fe3c79be0538af8f46a200796/scripts/bootstrap.sh#L279
However, once bootstrapped the version command reports:
$ vcpkg  version
Vcpkg package management program version 2021-01-13-unknownhash

See LICENSE.txt for license information.

That seems confusing to me.
Proposed solution
I would like the vcpkg tool to report the version it was actually bootstrapped with. Seems like this could be done by setting -DVCPKG_BASE_VERSION to the correct value here:
https://github.com/microsoft/vcpkg/blob/9986c28da97f316fe3c79be0538af8f46a200796/scripts/bootstrap.sh#L301
Describe alternatives you've considered
Have not thought of any at this point.
Additional context
N/A

Related to https://github.com/microsoft/vcpkg/issues/16441, the VCPKG_BASE_VERSION also wrong on windows.

@coryan, this issue has been fixed in latest source. thanks for reporting the issue!
PS E:\vcpkg\clean\vcpkg> ./vcpkg version
Vcpkg package management program version 2021-05-05-9f849c4c43e50d1b16186ae76681c27b0c1be9d9

See LICENSE.txt for license information.


Test pr workflow for docs-ci

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.5%) to 60.514%

Files with Coverage Reduction
New Missed Lines
%

pkg/state/state_hostdevice_network.go
2
78.38%

Totals

Change from base Build<PHONE_NUMBER>0:
0.5%

Covered Lines:
3367

Relevant Lines:
5564

💛  - Coveralls


Prepare Package for Publishing

Expected Behavior
We need to update package.json, package-lock.json and dependencies to use our own customised version of packages.
Actual Behavior
We are still using Scratch's package.json and package-lock.json.
Steps to Reproduce
N/A
Operating System and Browser
N/A

Let's wait for #32 to land first.


Add WAF to Api

As a developer
I want my API to follow security practices
So that the API is secure
A WAF is a security feature for an API and can be used to neutralise known attacks.
Use the configuration and basic rules as in the WAF for register my data as outlined here https://github.com/ministryofjustice/data-engineering-pulumi-components/blob/main/data_engineering_pulumi_components/aws/waf.py

#1566

I've used 3 of the basic AWS managed rulesets:

AWSManagedRulesCommonRuleSet
AWSManagedRulesAmazonIpReputationList
AWSManagedRulesAnonymousIpList


Support for glue catalog tables with partition projection

Feature request
Is your feature request related to a problem? Please describe.

Currently starrocks supports external catalog creation using glue as metastore. But if glue tables are created using partition projection, no data is returned.
Currently Athena supports partition projection. If starrocks can support it too, we won't need to add every new partition manually to the table.
Describe the solution you'd like

It glue table is created with partition projection, starrocks should be able to see all existing and new partitions automatically just like AWS Athena does.
Example table with partition projection
CREATE EXTERNAL TABLE `test_table`(   `_hoodie_commit_time` string COMMENT '',    `_hoodie_commit_seqno` string COMMENT '',    `_hoodie_record_key` string COMMENT '',    `_hoodie_partition_path` string COMMENT '',    `_hoodie_file_name` string COMMENT '',    `resource_id` string COMMENT '',    `tenant_id` string COMMENT '') PARTITIONED BY (    `tenant` string COMMENT '',    `date` string COMMENT '') ROW FORMAT SERDE    'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'  WITH SERDEPROPERTIES (    'hoodie.query.as.ro.table'='true',    'path'='s3a://datalake-bucket/data')  STORED AS INPUTFORMAT    'org.apache.hudi.hadoop.HoodieParquetInputFormat'  OUTPUTFORMAT    'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat' LOCATION   's3://datalake-bucket/data' TBLPROPERTIES (   'projection.date.format'='yyyyMMdd',    'projection.date.range'='19700101,99990101',    'projection.date.type'='date',    'projection.enabled'='true',    'projection.tenant.range'='-1,8675309',    'projection.tenant.type'='integer')
Describe alternatives you've considered

Additional context

@saqibalimalik Hi, thanks for filing this issue. Could you explain a little more about your use case for this feature? Like why do you want to use this feature and what is the experience of using this feature

@DorianZheng We have our data in s3 and new data is coming all time in new partitions.
If we don't use partition projection, then we need to track the new coming files and keep adding new Partitions manually to the table to be able to query that data through Athena or StarRocks.
With partition projection we can skip the manual step of adding partitions, because Athena can pick new partitions automatically. It also enforces the use of partitions whenever you query data. Without using those partitions in your query, Athena gives errors.
If we could support partition projection in StarRocks, we could also query latest data without having to track paritions manulally.

Bump

I think this is similar to this trino feature: https://github.com/trinodb/trino/issues/11305 and associated MR: https://github.com/trinodb/trino/pull/10767 which have more details on how they handle this


[question] How do typedoc implement the plugin system?

Search terms

plugins, plugin system
Question
Hi,
Under normal circumstances, a plugin system needs to be designed in advance, then implement plugins, register plugins. However, when I read the source code of Typedoc:
Only see:
1.【implemented】All implemented plugins are under lib/converter/plugins/.
2.【Export】
lib/converter/plugins/index -> lib/converter/index

There is nowhere to see where plugins are registered to the system.
3.I search for "TypePlugin" among them.
There is only export as well. There is nowhere to see where it is imported and used.

The @Component decorator on that class will automatically construct it when the parent component (Converter in this case) is created.
This bit of magic is something that's going away in the next 0.x release.


Recommended strategy for disconnects

node-cqrs-domain has various events that designate disconnections in the event store, command bumper and aggregate lock.
In practice, we are using mongo as an event store. In this case, we need to handle all disconnections, since ignoring them can cause the node-cqrs-domain to hang; the backing mongo driver will not call back at all when the connection fails.
What would be your recommended strategy to handle this situation?

We have larger complex setup deployed on a PaaS... there we do a process.exit(1)

...and additionally we use only 1 connection configured in the pool
i.e.
settings.repository = {
type: 'mongodb',
url: storage.uri || storage.database_uri,
timeout: 30 * 1000,
heartbeat: 60 * 1000,
options: {
poolSize: 1
}
};

OK, perfect, that is exactly what I was thinking as well.
BTW: Since we've been integrating your work all over, we have a list of items that could use some more attention, documentation-wise; once time permits, expect a whole bunch of small PRs across various repo's :-)
Thank you!


Add support for FileFormat::from_extension which returns a Vec of formats for the extension

Thanks for your PR!
I'll have a look ASAP.
I think the rust-1_70 feature is not necessary and we can move on to 1.70 as MSRV.

I like the idea, but the crate isn't quite ready for that: each file format has a single preferred extension.
For example, for JPEG it's .jpg, so FileFormat::from_extension("jpeg") will return an empty vec.
The only solution for having a relevant API is to have additional extensions on the file formats. I'll think about that.
Thanks

It will need a separate list of additional extensions I think. shared-mime-info solves it with the globs2 list which has the weight, mime type and extension together.

I've added some common extensions for each file format and changed the macro and API

Sorry for the delay in replying as I've been busy with other things lately.
For FileFormat::from_extension
Although the API idea is good, the PR is incomplete and requires adding the possible extensions of all existing file formats, which represents a substantial task.
For FileFormat::from_media_type
If you still think this API is interesting, why not implement it.
Conclusion
In any case, you'll have to rebase your branch because the file-format code has evolved a bit. If you're motivated, you can make a first PR for from_media_type, and if you're very motivated, why not start work on from_extension.
Thanks in any case for the work, and don't hesitate to suggest other things to the file-format crate!


fichier: make FolderID int and adjust related code - fixes #3359

API now provides folder_id and pass as number which go doens't want to unmarshal into string so make them int instead. Requires a little more converting between string and int because of dir cache but not a big deal.

Great fix :-)
I was wondering - do we know the range of the integers?  If they are 64 bit then we should be using int64 as the type.
The code as written at the moment will work fine with 64 bit platforms (where int is 64 bit) but could fail on 32 bit platforms where int is 32 bits.  There is a reducing number of these, but Raspberry Pi and NAS are both popular targets for rclone.
I see you've

To be honest I kinda assumed FolderID would just be an incrementing counter unique to each user and no one would store 2 billion folders however this may not be the case. In my account no ID exceeded 2000000 but you are probably right. Didn't give it that much thought. While you're here you may also take a look at my other changes. Don't want to break anything in your absence.

To be honest I kinda assumed FolderID would just be an incrementing counter unique to each user and no one would store 2 billion folders however this may not be the case.

640k should be enough for everyone :-)

In my account no ID exceeded 2000000 but you are probably right. Didn't give it that much thought. While you're here you may also take a look at my other changes. Don't want to break anything in your absence.

The underlying type of the JSON is floating point double, which can store integers to 2^56 or so so an int 64 is probably safest. However it may be completely unecessary... Are there any docs we could check?
The changes for this PR look excellent :-)


ngRepeat - Keep array in sync

Is it possible to automatically update the original array used by ng-repeat when moving items?

Hmm.. I will test it soon ;)

Agreed! Let me know if you need any help, I need this for a project with nested ngRepeats :)

I am thinking about three possible implementations:

outside of dragular, just prepare dragular for supporting it
inside dragular by getting info from ngRepeat, but ngRepeat is not revealing anything helpful, everything is keeped inside it. So we have to all that info harvest again (original collection array, filtered/manipulated array, item object, etc..)
make own ngRepeat directive (ngRepeatDragular) and reveal all for dragularService

What do you think? :)

does this enhancement include dragging elements from an array scope to another array scope?

Parsing the ngRepeat expression or duplicating ngRepeat functionality will probably lead to problems down the road.
This might be too simplistic, but how about simply passing the array to the dragularService with the assumption that the indexes line up?

@rbatllet yes :)
@jameswyse thats good idea. Would you like to implement it?

Sure, though it may be a while before I have the time

no problem ;)

@jameswyse when you start working on it let me know here please, because if I will have time first, I`ll do it and let you know here. I just want to avoid the situation that both of us will be doindg the same think ok? :)

will do, thanks!
I'm thinking that it'd be easier to manipulate the data and let ngRepeat take care of the DOM, rather than trying to keep the data in sync.. but that may be a substantial change..
What do you think? Is there still a use-case for DOM-only reordering without a data source?

Hard to say, but in angular, I think that in everyone want to keep model
synced with dom in all cases. I cannot imagine the case without syncing.
On Jul 17, 2015 2:41 AM, "James Wyse"<EMAIL_ADDRESS>wrote:

will do, thanks!
I'm thinking that it'd be easier to manipulate the data and let ngRepeat
take care of the DOM, rather than trying to keep the data in sync.. but
that may be a substantial change..
What do you think? Is there still a use-case for DOM-only reordering
without a data source?
—
Reply to this email directly or view it on GitHub
https://github.com/luckylooke/dragular/issues/8#issuecomment-122137952.

Yeah that's what I figured :)
I've kinda got it working in my project by using the events, but it's an ugly hack for sure.. I found that ngRepeat really doesn't like losing control of the DOM.. especially when the HTML comments (it uses them as markers) aren't moved with the element! It gets even trickier when you have multiple or nested repeats too :/
Basically what i'm doing at the moment is:
on the drag event

store the original index somewhere so we can remove it from the array when dropped

on the drop event:

try to find the container array by comparing the DOM indexes
store the index of the new element inserted by dragular
remove the element inserted by Dragular from the DOM
splice the source array to remove the old item
splice the destination array to insert the item at the correct index
force ngRepeat to fully re-render - otherwise it goes mental on the next $digest (due to the HTML comments being messed up)

I'm rushing to deliver this project but I should have some time over the weekend to look at this (if you/someone doesn't get to it first) :)

Ok.. if you manage it by the weekend thats fine. If not I will look at it
next week ;-)
On Jul 17, 2015 8:20 AM, "James Wyse"<EMAIL_ADDRESS>wrote:

Yeah that's what I figured :)
I've kinda got it working in my project by using the events, but it's an
ugly hack for sure.. I found that ngRepeat really doesn't like losing
control of the DOM.. especially when the HTML comments (it uses them as
markers) aren't moved with the element! It gets even trickier when you have
multiple or nested repeats too :/
Basically what i'm doing at the moment is:
on the drag event

store the original index somewhere so we can remove it from the
array when dropped

on the drop event:

try to find the container array by comparing the DOM indexes
store the index of the new element inserted by dragular
remove the element inserted by Dragular from the DOM
splice the source array to remove the old item
splice the destination array to insert the item at the correct index
force ngRepeat to fully re-render - otherwise it goes mental on the
next $digest (due to the HTML comments being messed up)

I'm rushing to deliver this project but I should have some time over the
weekend to look at this (if you/someone doesn't get to it first) :)
—
Reply to this email directly or view it on GitHub
https://github.com/luckylooke/dragular/issues/8#issuecomment-122188877.

Have you any progress in this feature? It is quite important feature, so I can implement it if you havent time for this. Just let me know :)

Since I started to need this and you are probably away, I begin to working on it.

I have make it work, I have it on my local branch, but I need to refactor examples site to test all features on it. So be patient..

Hey @luckylooke sorry, I was called away for work. Glad to see you've got it working though! Which way did you end up doing it?

Providing model via options.containersModel in same structure/order as
provided containers. :)
On Jul 28, 2015 3:26 AM, "James Wyse"<EMAIL_ADDRESS>wrote:

Hey @luckylooke https://github.com/luckylooke sorry, I was called away
for work. Glad to see you've got it working though! Which way did you end
up doing it?
—
Reply to this email directly or view it on GitHub
https://github.com/luckylooke/dragular/issues/8#issuecomment-125400631.

Nice!  Does it avoid the DOM manipulation entirely?
I'll have some time tonight and tomorrow, happy to help update the examples etc!

Yes in case you use models it does not manipulate dom directly and rather
updates models which cause dom update via scope.apply. I have splitted
exaples to subfolders for better maintenance. I need to finish it and make
model versions of each example to test all features. Im on vacation now but
in the evening I could have time for it.
On Jul 28, 2015 8:28 AM, "James Wyse"<EMAIL_ADDRESS>wrote:

Nice! Does it avoid the DOM manipulation entirely?
I'll have some time tonight and tomorrow, happy to help update the
examples etc!
—
Reply to this email directly or view it on GitHub
https://github.com/luckylooke/dragular/issues/8#issuecomment-125466321.

Sounds great! Let me know if you push the code somewhere, I can help with the examples and testing :)

It is available in dev branch, but only first basic example is made also as model synced. There is some bug, that sometimes item is left in previous container, I cannot find out what circumstances are in such case. I think it can be caused by flickering during drag, maybe angular doesn't keep up with such fast changes. I will try to use some debounce techniques to avoid that.

Looking good!
I see what you mean about the bug.. It might help if we wait until the dragend event before updating the model? We'd have to move the placeholder/mirror element manually but that should be safe to do outside the $digest.
What do you think? I think I'll have a play with it and see what happens.

Ok, sounds good.. let me know when you get something ;)

I have fixed that bug and also flickering was removed... you can check it in dev branch now. I am gonna create and test it on other examples too. :)

:+1: I did something similar but was seeing some strange positioning bugs which seem to be happening in your demo too :/
Also we can't use angular.element(el).scope() as it's only available in debug mode

Can you give me more info about positioning bugs, I didn't notice them... and do you have idea how to bypass angular.element(el).scope() ? I didn't know it is only in debug, but I have checked it now in angular docs.. and you're right :/

In your demo, slowly drag item 5 downwards, you'll see that the mirror skips a slot and ends up after item 7.. Possibly a timing issue.
scope.$apply() actually triggers a $digest on the $rootScope, so you can call it on any scope you have access to. You could call it on the scope option used for events, or an injected $rootScope, or it might be better for performance to use $timeout(fn, 0, false)
It's a bit tricky because services shouldn't be manipulating the DOM at all, that's a job for directives :)

Ah I think I see the problem:
_targetModel.splice(referenceIndex, 0, _lastTargetModel.splice(_currentIndex, 1)[0]);
If you remove the dragged item from the array and it was originally before the reference item, then the referenceIndex will be wrong (in this case it's reduced by 1) - you could check for that or it might be better to recalculate referenceIndex?

Aha.. I will fix it, thanks.. and I will apply $timeout version of scope.$apply, thanks ;)
"services shouldn't be manipulating the DOM at all" - I know that, but isn't it cool as service? :D

I have fixed skipping a slot.
The code has still some problems (ngRepeat:dupes) with copy example... I hope I will fix it soon.. and then I will refactor scope.apply to $timeout.

Tried adding track by $index to the ngRepeat expression? :tractor:

A $timeout version of scope.$apply, is it something similar to scope.$applyAsync?

@jameswyse  should be working without 'track by'

@Astray-git I will try it, thanks :)

Bugs solved, works also without 'track by' as I originally thought it should be and scope.$apply replaced by $rootScope.$applyAsync. :)

Now I have problem with models in directive dragular. I dont think there is posibility to provide model via JSON dragular='{"containersModel": ?????? ,"nameSpace":"common"}'``. There is second option how to provide options to directive. Via scope-property name dragular="dragularOptions"```, so it seems to be only option in this case, or?

I would need to implement some angular expression support for directive to avoid this:

{{item.content}}

{{item.content}}

.controller('DirectiveModel', ['$scope', '$element', 'dragularService', function TodoCtrl($scope, $element, dragularService) {
    $scope.items1 = [{
      content: 'Item 1'
    }, {
      content: 'Item 2'
    }, {
      content: 'Item 3'
    }, {
      content: 'Item 4'
    }];
    $scope.items2 = [{
      content: 'Item 5'
    }, {
      content: 'Item 6'
    }, {
      content: 'Item 7'
    }, {
      content: 'Item 8'
    }];
    $scope.dragularOptions1 = {
      containersModel: [$scope.items1],
      classes: {
        mirror: 'custom-green-mirror'
      },
      nameSpace: 'common' // just connecting left and right container
    };
    $scope.dragularOptions2 = {
      containersModel: [$scope.items2],
      classes: {
        mirror: 'custom-green-mirror'
      },
      nameSpace: 'common' // just connecting left and right container
    };
  }])

Then I can apply same for JSON format:
dragular='{"containersModel":"angular expression","nameSpace":"common"}'

I'm just wondering why we need to put containerModel in a JSON? I think in this case we provide the containerModel from a controller, then we can config with  dragular="controller.dragularOptions"

@Astray-git do you have link to some live example passing config from controller to directive like this dragular="controller.dragularOptions"? Like jsfiddle, codepen, .. etc. Thanks

now option.containersModel supports expressions wueey.

{{item.content}}

{{item.content}}

.controller('DirectiveModel', ['$scope', '$element', 'dragularService', function TodoCtrl($scope, $element, dragularService) {
    $scope.items1 = [{
      content: 'Move me, and make copy on drop.'
    }, {
      content: 'If you try to drop me somewhere other than these containers, I\'ll just come back.'
    }, {
      content: 'Item 3'
    }, {
      content: 'Item 4'
    }];
    $scope.items2 = [{
      content: 'Item 5'
    }, {
      content: 'Item 6'
    }, {
      content: 'Item 7'
    }, {
      content: 'Item 8'
    }];
    $scope.dragularOptions = {
      containersModel: [$scope.items1],
      classes: {
        mirror: 'custom-green-mirror'
      },
      nameSpace: 'common' // just connecting left and right container
    };
  }])

You could use the ngModel directive and pass options separately? It's commonly used in this situation :)
https://docs.angularjs.org/api/ng/directive/ngModel

great work by the way!

@luckylooke http://jsbin.com/yisavopeme/edit?html,js,output

@Astray-git thanks.. I will put it into docs later :+1:

@jameswyse I think there is plenty options now how to pass options into dragular, we will not need ngModel as another one :)

Today I am going to finish all examples and then I have a lot todos with code, after that I will finally release new version! :cake:

fixed and published in release 2.0.0


Error: An unexpected error occurred [ElasticsearchDomain]

Detected Terraform directory at .
  ✔ Running terraform plan
  ✔ Running terraform show

Error: An unexpected error occurred

runtime error: index out of range [0] with length 0
goroutine 1 [running]:
runtime/debug.Stack(0xc0002b4450, 0xc0004b0300, 0x2d5)
        /opt/local/lib/go/src/runtime/debug/stack.go:24 +0x9f
main.handleUnexpectedErr(0xc0000f88f0, 0x16ee4a0, 0xc000298120)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/infracost/infracost/cmd/infracost/main.go:220 +0x45
main.main.func1(0xc0000e9ec8, 0xc0000f88f0, 0xc0000323c0)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/infracost/infracost/cmd/infracost/main.go:39 +0xa5
panic(0x16ee4a0, 0xc000298120)
        /opt/local/lib/go/src/runtime/panic.go:965 +0x1b9
github.com/infracost/infracost/internal/providers/terraform/aws.NewElasticsearchDomain(0xc0002b6280, 0x0, 0xc0002bae2c)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/infracost/infracost/internal/providers/terraform/aws/elasticsearch_domain.go:29 +0x37f6
github.com/infracost/infracost/internal/providers/terraform.(*Parser).createResource(0xc0000e9720, 0xc0002b6280, 0x0, 0x22)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/infracost/infracost/internal/providers/terraform/parser.go:65 +0x174
github.com/infracost/infracost/internal/providers/terraform.(*Parser).parseJSONResources(0xc0000e9720, 0xc00, 0x1bbc728, 0x0, 0x0, 0xc0002112c0, 0x5, 0xc0002bad80, 0xcaf, 0x0, ...)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/infracost/infracost/internal/providers/terraform/parser.go:102 +0x4d1
github.com/infracost/infracost/internal/providers/terraform.(*Parser).parseJSON(0xc0000e9720, 0xc0002ba000, 0xcaf, 0xcaf, 0xc0002112c0, 0x0, 0xc0000e9728, 0x14f8406, 0xc0002112c0, 0x0, ...)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/infracost/infracost/internal/providers/terraform/parser.go:123 +0x892
github.com/infracost/infracost/internal/providers/terraform.(*DirProvider).LoadResources(0xc0000f4630, 0xc0002112c0, 0xc0002112c0, 0x0, 0x0)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/infracost/infracost/internal/providers/terraform/dir_provider.go:104 +0x145
main.runMain(0xc000258000, 0xc0000f88f0, 0x0, 0x0)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/infracost/infracost/cmd/infracost/run.go:74 +0x388
main.breakdownCmd.func1(0xc000258000, 0xc000099400, 0x0, 0x2, 0x0, 0x0)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/infracost/infracost/cmd/infracost/breakdown.go:38 +0xdf
github.com/spf13/cobra.(*Command).execute(0xc000258000, 0xc0000993e0, 0x2, 0x2, 0xc000258000, 0xc0000993e0)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/spf13/cobra/command.go:852 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xc00021d680, 0x351, 0xc0000e9ee8, 0x7)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/spf13/cobra/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/spf13/cobra/command.go:897
main.main()
        /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_infracost/infracost/work/gopath/src/github.com/infracost/infracost/cmd/infracost/main.go:171 +0xd3e

Environment:
Infracost v0.8.1

@b4nst thanks for reporting this. We will get a fix for this into v0.8.2.

@aliscott thanks for the quick answer.

Hum, after updating my configuration the issue disappear. I did not catch which part of the config were causing it though.

@b4nst it looks like ebs_options is causing the issues if that's the part you changed.

Indeed I changed it.

That tool is dope btw, congrats.

@b4nst thanks for reporting this! The fix has now been released in v0.8.2.


Add 2 functions given by some contributor

Someone proposed 2 tree traversal functions by e-mail.
Would be nice to test them and integrate if it works as expected:
function ProofPaths(tree) {
  var Paths = [];
  var Leafs = tree.level(tree.depth());
  for(var n = 0; n < Leafs.length; n++) {
    Paths.push({
      proof: Leafs[n],
      path: ProofPath(tree, n)
    });
  }
  return Paths;
}

function ProofPath(tree, n) {
  var Path = [];
  var Leafs = tree.level(tree.depth());
  if(n < Leafs.length) {
    var nParent = Math.floor(n/2);
    for(l = tree.depth() - 1; l >= 0; l--) {
      var ParentLevel = tree.level(l);
      var ChildLevel = tree.level(l+1);
      Path.push({
        left: ChildLevel[2*nParent],
        parent: ParentLevel[nParent],
        right: (2*nParent+1) >= ChildLevel.length ? "" : ChildLevel[2*nParent+1]
      });
      nParent = Math.floor(nParent/2);
    }
  }
  return Path;
}

I have recently published a companion module to this one which builds these same proof paths. It will construct the proof path, has an option to include/exclude the 'parent' values as they can be seen as redundant, can be called with either a tree leaf index or a target index value, and includes tests.
https://github.com/Tierion/merkle-proof
I'm open to to creating a new branch in this project and integrating my proof path code and tests into this if you'd like.

Would be very glad to see a pull request of yours about it. If tests pass, I will integrate it for sure and increment version too.

Fixed in #11.


Platform UI scaling

Calculate UI auto scaling based on platform for more accurate scaling. Also wider range of allowed UI scales for some displays.
The scaling for Linux could probably be improved further, but will be much easier if Godot implements better scaling/dpi support in the engine itself.

Thanks! That change makes sense indeed.

The scaling for Linux could probably be improved further, but will be much easier if Godot implements better scaling/dpi support in the engine itself.

What's currently missing? Isn't OS.get_screen_dpi() supposed to work on Linux as well?
Also maybe this would fix #190, but hard to tell based on the non-existint issue description.

Ah i see, good to know. Well i guess the Godot editor workaround is pretty battle-tested, so id's say use that instead. Otherwise it's good to go.

Thanks!


ImportError: No module named interface

After installing dedupe on linux ubuntu and following the developer setup guide (with python 2.7), I get
import dedupe
>> File "<stdin>", line 1, in <module>
  File "dedupe/__init__.py", line 16, in <module>
    from api import StaticDedupe, Dedupe
  File "dedupe/api.py", line 26, in <module>
    import dedupe.training as training
  File "dedupe/training.py", line 7, in <module>
    import blocking
  File "dedupe/blocking.py", line 9, in <module>
    from zope.index.text.textindex import TextIndex
  File "/usr/local/lib/python2.7/dist-packages/zope/index/text/__init__.py", line 1, in <module>
    from zope.index.text.textindex import TextIndex
  File "/usr/local/lib/python2.7/dist-packages/zope/index/text/textindex.py", line 19, in <module>
    from zope.interface import implementer
ImportError: No module named interface
```
Any clue ?

Hey, this still isn't working for me.

I am trying to use the dedupe-examples/mysql_example and I am getting this as well. I am on an Ubuntu 14.04 LTS system. Will try the pip suggested above.

I'm getting it too with it installed:
zope.event==4.0.3
zope.index==4.1.0
zope.interface==4.0.5
zope.schema==4.4.2

Resolved:

pip install --upgrade pip
pip install --upgrade zope.interface


Can't compile the plugin - UE 4.19.2 - Windows 10

Hello there,
I'm having an issue while adding the plugins to the project.
UE4 editor just tell me he can't compile this plugin due to a missing binary.
Error messages:

Binaries for the 'StreetMap' plugin are missing or incompatible with the current engine version.

Plugin 'StreetMap' failed to load because module 'StreetMapRuntime' could not be found. Please ensure the plugin is properly installed , otherwise consider disabling the plugin for this project.

I'm quite sure the installation is correct (download and unzip of the git repo).
Did someone else had the same trouble using the plugin and found a solution?
By the way, i'm using UE4.19.2 on windows 10.
Thanks in advance,

Do you fix it ? I have the problem too. I'm using UE4.2.0 on Windows 10.

Hey HolyBugger,
I have read the differents issues of the repo and there is one about to make it compatible with blueprints projects. Which mean it's not.
So I start a new c++ project and it's working like a charm!!
Hope that's help you.