Switch to maintained b64u package

The base64url package has not been updated since 2016 and currently has a critical issue that prevents TypeScript users from using it with any version of Node other than v6.0.0.  This affects both the base64url package and all packages that depend on it, including this one.
This PR updates replaces base64url with b64u, a maintained, API-identical equivalent package.  Since the API is identical, this should require no additional changes.

b64u only supports Node versions v4+, as the Buffer API from pre-v4 is deprecated as of Node v6.  Given that Node v0.12 hit end of life on December 31st, 2016, perhaps it should be dropped from the Travis CI tests.

Hey - I've removed the dependency on base64url in favour of an inline definition for now so that we can maintain version support.

Awesome, thank you!


Add SGDRegressor

Add SGDRegressor model into the library.
Primary File to Change: https://github.com/blobcity/autoai/blob/main/blobcity/config/regressor_config.py
Reference SGDRegressor Implementation:
https://github.com/blobcity/ai-seed/blob/main/Regression/Linear Models/SGDRegressor.ipynb
Offical API Reference for Parameter:
https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.SGDRegressor.html
Dependencies if any, must be appropriately added. Test run of the train function on a regression problem must pass, and the function must attempt to train an SGDRegressor as a potential best fit model.

I will go through it. I'll the PR as soon as possible!

Commit #82 with PR added for solve this issue.


🐛 [crashlytics] _HttpClient.openUrl, No host specified in URI. Error thrown resolving an image codec.

Bug report
Describe the bug
This carsh is reported in Crashlytics dashboard as Repetitive crashes
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Invalid argument(s): No host specified in URI. Error thrown resolving an image codec.
       at _HttpClient.openUrl(dart:_http)
       at IOClient.send(io_client.dart:63)
       at HttpFileService.get(file_service.dart:35)
       at WebHelper._download(web_helper.dart:121)
       at WebHelper._updateFile(web_helper.dart:103)
       at WebHelper._downloadOrAddToQueue(web_helper.dart:71)

Steps to reproduce
Steps to reproduce the behavior:

Go to '...'
'...'
See error or incorrect behavior

Expected behavior
A clear and concise description of what you expected to happen.
Sample project
Providing a minimal example project which demonstrates the bug in isolation from your main App greatly enhances the chance of a timely fix.
Please link to the public repository URL.

Additional context
Add any other context about the problem here.

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
PASTE OUTPUT INSIDE HERE

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
PASTE OUTPUT INSIDE HERE

@MominRaza
Looking at the error log, there are no entries of firebase_crashlytics plugin and the error you are reporting may not be related to flutterfire. I suggest you to ask this question on support channels like StackOverflow by trying to provide minimal code sample so that it'll be helpful to give a solution.
Closing for now. If you disagree, write in. comments and I'll reopen it.


Facebook and other networks?

Any plans to add other networks in addition to Twitter?
Facebook  pages and groups
Pinterest
App.net (just like twitter but new)

I have no idea how hard is to work with facebook API, but this is one of the killer features that make this tool essentially buffer killer for me.


Reset value for dscratch{0,1}[c] CSRs

I was browsing the spec for dscratch0 and dscratch0c and was not sure if I wrapped my head around the text correctly...
As I understand it, the dscratch0 section specifies that it is extended to dscratch0c with reset value tag=0, metadata=unspecified, address=unspecified. The section on dscratch0c specifies its reset value to be the NULL cap (whose fields are all specified to be 0).
I presume the intention is for the NULL cap to be in dscratch0c, meaning that the reset value of dscratch0 should be 0... ?
If this is correct, I am happy to propose a PR to fix this.
edit1: I am equally happy to propose a PR if the intention is for the reset value to be unspecified with tag 0... Making the dscratch{0,1} and dscratch{0,1}c consistent is what I meant!
edit2: table 37 in there seems to prefer tag=0, other fields undefined.

Thanks for pointing this out!
The dscratch0c/dscratch1c are both supposed to have tag=0 metadata=UNSPECIFIED address=UNSPECIFIED. This is written elsewhere in the document, but we missed the text you rightly pointed out in the sections describing those CSRs.

I just opened #200

Thank you for your contribution. #200 has been merged, so this ticket can now be closed.


Convert reactjs into redux component

Convert our reactjs applications into redux applications as separate branch.
We have created the separate folder name as redux-coding-ai and will create the branch.
We have to create the components

Hello , can i take this issue ?

Hello , can i take this issue ?

@Wonder2210 sure, thanks

Hello,
May I know if someone already took the issue? If not, i am happy to take over.

@quan612 i already took it and is on pull request

Hi @elangosundar,
A common problem we are having in this Hacktoberfest is that the maintainers are not assigning the issue to the user that is already working on it so it's a big problem because people are looking for unassigned issues and this issue was already covered by @Wonder2210  but it hasn't been assigned yet and is still appearing in the search results so you should assign it please.
Help us help you!

I'm working on the issue.

Made a PR regarding the issue.


problem with NEUS clean survey?

I am getting this in the clean NEUS survey data

which does not seem normal? I don't remember whether we had the possibility to transform abundance/weights in cpue/cpua for NEUS?
Ideas @zoekitchel @mpinsky

Hello!
Although this is closed, I found complete zeros in the clean+compiled files with flags from the NEUS survey in wgt/num CPUE and CPUA columns:

As you can see below, the raw numbers and wgts are intact. I can generate new columns with raw values but is there a further issue with the QA/QC?
Thank you!

I guess NA does make more sense than 0, since it would more clearly be "not available" rather than a true zero.

Thank you! More scrupulous reading on my part would have done the trick.

I agree that NAs would make more sense!
On Tue, Dec 12, 2023 at 4:32 AM Liam MacNeil @.***>
wrote:

Thank you! More scrupulous reading on my part would have done the trick.
—
Reply to this email directly, view it on GitHub
https://github.com/AquaAuma/FishGlob_data/issues/37#issuecomment-1851948710,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHQNR7UNDAA67XZXQN5KR73YJBFGJAVCNFSM6AAAAAA7N6VSGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJRHE2DQNZRGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Zoë Kitchel
207-807-4426


Could set text size

i use this library for the large devices，the font maybe little small

I try to use appropriate font sizes wherever possible.
That said, you can overwrite the font size by setting the correct mdtp_ prefixed dimension in your own app.
Check the resource folder in the library to see which dimensions are defined and relevant for you

Thank you for your reply！


Tightening a bunch of lose ends in gateway.

@michael-berlin I think it's all of it, let me know if I missed some fixes.

This change is

Michael is back to working on this, but publishing some comments I had anyway.

Reviewed 3 of 3 files at r1, 1 of 1 files at r2, 5 of 7 files at r3, 6 of 7 files at r5, 1 of 1 files at r6, 3 of 3 files at r7.
Review status: all files reviewed at latest revision, 3 unresolved discussions.

go/vt/discovery/replicationlag.go, line 112 [r7] (raw file):

// TrivialStatsUpdate returns true iff the old and new TabletStats
// haven't changed enough to warrant re-calling FilterByReplicationLag.
func TrivialStatsUpdate(old, new *TabletStats) bool {

Best not to shadow new() with a variable name.

go/vt/discovery/replicationlag.go, line 126 [r7] (raw file):

	// when there is a high rep lag, it takes a long time for it to reduce,
	// so it is not necessary to re-calculate every time.
	if oldRepLag > lowRepLag && newRepLag > lowRepLag && newRepLag < oldRepLag*1.1 && newRepLag > oldRepLag*0.9 {

If TrivialStatsUpdate() returns true, will the new value be saved anyway, to become the new old value next time? Or will the new value be thrown away? Since this is key to the behavior here, it should be documented in a comment.

go/vt/vtctl/vtctl.go, line 290 [r7] (raw file):

				"Displays all of the shards in the specified keyspace."},
			{"WaitForDrain", commandWaitForDrain,
				"[-timeout <duration>] [-retry_delay <duration>] [-initial_wait <duration>] <keyspace/shard> <served tablet type>",

Don't forget to regenerate docs.

Comments from Reviewable

Reviewed 3 of 3 files at r1, 1 of 1 files at r2, 7 of 7 files at r3, 1 of 1 files at r4, 7 of 7 files at r5, 1 of 1 files at r6, 3 of 3 files at r7.
Review status: all files reviewed at latest revision, 7 unresolved discussions.

go/vt/discovery/replicationlag.go, line 112 [r7] (raw file):

// TrivialStatsUpdate returns true iff the old and new TabletStats
// haven't changed enough to warrant re-calling FilterByReplicationLag.
func TrivialStatsUpdate(old, new *TabletStats) bool {

This looks like a good candidate for a unit test.
My other problem with this is that it's hard to tell how much it's in line with FilterByReplicationLag or if there are any black spots where we would classify something as trivial whereas it would not be.

go/vt/vtgate/gateway/gateway.go, line 120 [r5] (raw file):

// WaitForTablets is a helper method to wait for the provided tablets,
// up until the *initialTabletTimeout. It will log what it is doing.
func WaitForTablets(gw Gateway, tabletTypesToWait []topodatapb.TabletType) error {

Add a comment here that it should not be confused with the method from the Gateway interface which has the same name?
Or maybe even rename it?

go/vt/vtgate/gatewaytest/grpc_discovery_test.go, line 71 [r5] (raw file):

		t.Fatalf("WaitForTablets failed: %v", err)
	}
	ctx := context.Background()

Just inline it on the next line?

go/vt/wrangler/testlib/wait_for_drain_test.go, line 56 [r1] (raw file):

This value needs to not be equal to -initial_wait value below.

Maybe rephrase it:
"This value must be bigger than -initial_wait below."

Comments from Reviewable

Review status: 13 of 21 files reviewed at latest revision, 7 unresolved discussions.

go/vt/discovery/replicationlag.go, line 112 [r7] (raw file):
Previously, enisoc (Anthony Yeh) wrote…
> Best not to shadow `new()` with a variable name.

Done.

go/vt/discovery/replicationlag.go, line 112 [r7] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> This looks like a good candidate for a unit test.
>
> My other problem with this is that it's hard to tell how much it's in line with `FilterByReplicationLag` or if there are any black spots where we would classify something as trivial whereas it would not be.

Adding tests. This code was taken from our internal GW actually, so we are somewhat confident it works.

go/vt/discovery/replicationlag.go, line 126 [r7] (raw file):
Previously, enisoc (Anthony Yeh) wrote…
> If `TrivialStatsUpdate()` returns true, will the `new` value be saved anyway, to become the new `old` value next time? Or will the `new` value be thrown away? Since this is key to the behavior here, it should be documented in a comment.

Good point, this code has a bug, we save the new record all the time, so if the replication lag is slowing going down, we will never update.
Changed it to only save the new record if it's different.

go/vt/vtctl/vtctl.go, line 290 [r7] (raw file):
Previously, enisoc (Anthony Yeh) wrote…
> Don't forget to regenerate docs.

Done.

go/vt/vtgate/gateway/gateway.go, line 120 [r5] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> Add a comment here that it should not be confused with the method from the Gateway interface which has the same name?
>
> Or maybe even rename it?

It's the same name on purpose, it just calls the gateway method with a timeout... I'll just add a comment.

go/vt/vtgate/gatewaytest/grpc_discovery_test.go, line 71 [r5] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> Just inline it on the next line?

Done.

go/vt/wrangler/testlib/wait_for_drain_test.go, line 56 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> > This value needs to not be equal to -initial_wait value below.
>
> Maybe rephrase it:
>
> "This value must be bigger than -initial_wait below."

Done.

Comments from Reviewable

Reviewed 7 of 7 files at r8, 1 of 1 files at r9.
Review status: all files reviewed at latest revision, 4 unresolved discussions.

Comments from Reviewable

Two small comments.

Reviewed 7 of 7 files at r8, 1 of 1 files at r9.
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks pending.

go/vt/discovery/tablet_stats_cache_test.go, line 52 [r8] (raw file):

	// update stats with a change that won't change health array
	stillHhealthyTs1 := &TabletStats{

typo: stillHealthyTs1 (extraneous H)

go/vt/discovery/tablet_stats_cache_test.go, line 62 [r8] (raw file):

	tsc.StatsUpdate(stillHhealthyTs1)

	// check it's there

It's worth calling out in the comment that ts1 instead of stillHealthyTs1 gets returned.

Comments from Reviewable


1.2.2 is not published to npm

The most recent updates haven't been pushed to npmjs, the current version on there is 1.2.0.

it is there.  you can close this issue.

@oori You sure? Am I looking at the wrong project?

Try bower info ng-sortable  you should see 1.2.2 listed.  don't you?
also:  bower info ng-sortable#1.2.2

@oori I'm talking about the NPM registry, not bower.

@llwt you are right,  sorry.
@a5hik You need to npm publish

Will do it for sure. @llwt @oori thanks for reminding.

Its Done!

@a5hik Awesome, thanks!


Installer "Invalied drive Z:"

Describe the bug
Installer (1.16.116) show warninng window "Invalied drive Z:" and installation is interrupted
To Reproduce
Just start installer and click install
System:

OS: 10 1806
Driver Version: 1.16.116

Additional context
Drive Z: is webdav

You can not run an elevated application from a network drive, that's a Windows limitation, nothing I can help you with.

You can not run an elevated application from a network drive, that's a Windows limitation, nothing I can help you with.

The network drive is simply present in the system. Z: not use for start installer or install to them. If i disable all network drives installer work as expeted.

That's quite an important detail 😆

Can't reproduce on v1.17.333


Couldn't get BlueALSA transport: No such device

I've updated my Gentoo installation, and BlueALSA has completely stopped working for me (both speakers). For any attempt to play audio, I'm getting
Couldn't get BlueALSA transport: No such device
As for what could've broke - I assume it could've been bluez-5.50.
I've attempted to rollback to BlueALSA 1.3.1 and 1.3.0 from 9999 git version, and it didn't help.

No, seems like it's not bluez update. Tried downgrading, still doesn't work.
Attempt to play sound with aplay results in following lines in bluealsa's printout.
/usr/bin/bluealsa: /tmp/portage/media-sound/bluez-alsa-9999/work/bluez-alsa-9999/src/ctl.c:638: Received new connection: 10
/usr/bin/bluealsa: /tmp/portage/media-sound/bluez-alsa-9999/work/bluez-alsa-9999/src/ctl.c:651: New client accepted: 10
/usr/bin/bluealsa: /tmp/portage/media-sound/bluez-alsa-9999/work/bluez-alsa-9999/src/ctl.c:675: +-+-
/usr/bin/bluealsa: /tmp/portage/media-sound/bluez-alsa-9999/work/bluez-alsa-9999/src/ctl.c:675: +-+-
/usr/bin/bluealsa: /tmp/portage/media-sound/bluez-alsa-9999/work/bluez-alsa-9999/src/ctl.c:605: Client closed connection: 10
/usr/bin/bluealsa: /tmp/portage/media-sound/bluez-alsa-9999/work/bluez-alsa-9999/src/ctl.c:675: +-+-

Error means bluealsa_get_transport returns -1
Which means that error occurs somewhere in libasound_module_pcm_bluealsa.so

Attached to aplay with gdb and traced bluealsa_get_transport.
We fail following test: (len != sizeof(*transport))
And get -1 retcode as result

$2 = {addr = {b = "\002\000\000\000\000"}, type = BA_PCM_TYPE_NULL, stream = BA_PCM_STREAM_PLAYBACK, codec = 0 '\000', channels = 0 '\000', sampling = 0, ch1_muted = 0 '\000',
ch1_volume = 0 '\000', ch2_muted = 0 '\000', ch2_volume = 0 '\000', delay = 0}
From what structure *transport looks like, we have received a single "2" byte. I.e. looks like request is incomplete

Could it be a too long socket write? This "2" in transport structure might be a leftover of previous request in socket buffer, which is assumed to be short packet.

Finally figured it out. For some reason, my hci1 and hci0 devices become swapped, so all configs (asound.conf and mpd.conf) become invalid.


@Accessors with prefix can break with numbers

Short description
Using @Accessors(prefix="m") breaks, when 2nd char in field name is a number and used in combination with other annotations (for example @Getter, @Setter and others).
Example
@Accessors(prefix="m")
public class Test {
    @Getter
    float m3Titanic;
}

Actual behavior
Based on example, @Getter doesn't generate get3Titanic() method.
Warning is produced: Not generating getter for this field: It does not fit your @Accessors prefix list.
Expected behavior
Based on example, @Getter, should produce get3Titanic().
Also, dunno if possible, but could warning message also be improved. Or preferably changed to produce an error?
Version information

IDEA Version: Android Studio 3.5.3 (Idea 2019-1)
JDK Version: 1.8.0_202-release-1483-b03
OS Type & Version: Windows 10
Lombok Plugin Version: 0.28-2019-1
Lombok Dependency Version: 1.18.10

Steps to reproduce
What steps do we need to take to reproduce this issue?

Create class with a field
Annotate class with @Accessors and prefix
Add field using prefix from previous step, and name it so that 2nd character has a number
Annotate field with with @Getter or @Setter, or else
Getter, setter, or similar doesn't generate.

Additional information
https://github.com/rzwitserloot/lombok/issues/2338

Should be fixed with PR by Lekanich in the next release


Get this error message: Make sure your computer's time and time zone are both correct.

I run$ az login
Then get this error message:
A web browser has been opened at https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize. Please continue the login in the web browser. If no web browser is available or if the web browser fails to open, use device code flow with `az login --use-device-code`.
tcgetpgrp failed: Not a tty
The command failed with an unexpected error. Here is the traceback:
0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch =<PHONE_NUMBER>.  The id_token was: {
  "aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
  "iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
  "iat":<PHONE_NUMBER>,
  "nbf":<PHONE_NUMBER>,
  "exp":<PHONE_NUMBER>,
  "aio": "AXQAi/8TAAAAG65XML0ExITQDXAaTmz73ZjVI8sBHAqgOrAWwV0PRyJ6KFH++VGPjNK4+AjQHYinUjvgT7V1drWdHsGPeVDdoFUKg8FQDE+cSMu/zT/rokniD47R1ugIZHWvocXryYOemMLD18pR+/P6jFEcsIIkHA==",
  "name": "Alice Yu",
  "nonce": "31342b0793cd76fe0944d0102fcd16aed3ee6003c82389a1cb7e800779c219cb",
  "oid": "cbbbd2af-5675-4465-95e2-c2c442384d2a",
  "preferred_username"<EMAIL_ADDRESS>  "puid": "100320020B13ACF1",
  "rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAN0.",
  "sub": "i8xzXuSuxY5-4Ipjpw7hIeDjYNjDbsnkSjh9RlA0cdI",
  "tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
  "uti": "FOd9uW8MbUOs2hgi0Y2TAA",
  "ver": "2.0"
}
Traceback (most recent call last):
  File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/profile/custom.py", line 139, in login
    subscriptions = profile.login(
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/_profile.py", line 154, in login
    user_identity = identity.login_with_auth_code(scopes=scopes, **kwargs)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/auth/identity.py", line 142, in login_with_auth_code
    result = self._msal_app.acquire_token_interactive(
  File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 1608, in acquire_token_interactive
    response = _clean_up(self.client.obtain_token_by_browser(
  File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 281, in obtain_token_by_browser
    return super(Client, self).obtain_token_by_browser(
  File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 640, in obtain_token_by_browser
    return self._obtain_token_by_browser(
  File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 678, in _obtain_token_by_browser
    return self.obtain_token_by_auth_code_flow(
  File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 138, in obtain_token_by_auth_code_flow
    return super(_ClientWithCcsRoutingInfo, self).obtain_token_by_auth_code_flow(
  File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 205, in obtain_token_by_auth_code_flow
    result = super(Client, self).obtain_token_by_auth_code_flow(
  File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 548, in obtain_token_by_auth_code_flow
    return self._obtain_token_by_authorization_code(
  File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 732, in _obtain_token_by_authorization_code
    return self._obtain_token("authorization_code", data=data, **kwargs)
  File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 116, in _obtain_token
    ret = super(Client, self)._obtain_token(grant_type, *args, **kwargs)
  File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 789, in _obtain_token
    (on_obtaining_tokens or self.on_obtaining_tokens)({
  File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 599, in <lambda>
    on_obtaining_tokens=lambda event: self.token_cache.add(dict(
  File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 310, in add
    super(SerializableTokenCache, self).add(event, **kwargs)
  File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 113, in add
    return self.__add(event, now=now)
  File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 153, in __add
    decode_id_token(id_token, client_id=event["client_id"])
  File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 77, in decode_id_token
    raise RuntimeError("%s Current epoch = %s.  The id_token was: %s" % (
RuntimeError: 0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch =<PHONE_NUMBER>.  The id_token was: {
  "aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
  "iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
  "iat":<PHONE_NUMBER>,
  "nbf":<PHONE_NUMBER>,
  "exp":<PHONE_NUMBER>,
  "aio": "AXQAi/8TAAAAG65XML0ExITQDXAaTmz73ZjVI8sBHAqgOrAWwV0PRyJ6KFH++VGPjNK4+AjQHYinUjvgT7V1drWdHsGPeVDdoFUKg8FQDE+cSMu/zT/rokniD47R1ugIZHWvocXryYOemMLD18pR+/P6jFEcsIIkHA==",
  "name": "Alice Yu",
  "nonce": "31342b0793cd76fe0944d0102fcd16aed3ee6003c82389a1cb7e800779c219cb",
  "oid": "cbbbd2af-5675-4465-95e2-c2c442384d2a",
  "preferred_username"<EMAIL_ADDRESS>  "puid": "100320020B13ACF1",
  "rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAN0.",
  "sub": "i8xzXuSuxY5-4Ipjpw7hIeDjYNjDbsnkSjh9RlA0cdI",
  "tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
  "uti": "FOd9uW8MbUOs2hgi0Y2TAA",
  "ver": "2.0"
}
To open an issue, please run: 'az feedback'

I checked my computer's time zone. Everything seems to be correct.

Duplicate of https://github.com/Azure/azure-cli/issues/20388


DRAFT Interest Consensus

Please add a description, screenshot for the unit test and code coverage current status.


Fixing CES CU tags

@Davidutro, @CPSTL

one thing to consider, see my comment.
Merging bec the rest is fine, and that tag can get fixed later if you agree with me that it's still active.


Add the new br compressed Three.js and p5.js libraries

I used ord/br as the format, but please let me know if you have a better idea!

thank you for the update!


Rework auth to use spaghetti style tokens

Switch to signed auth tokens that aren't stored anywhere but on the client

Done in main


Cannot GET/

Hi, I seem to be having problems previewing my files located in subfolders. I always get this message:

However, I don't have any problems opening html files which is located directly inside the main folder.

Can you show me the folder & File structure when you get the error?

I got the bug & have fixed it.
Today I'll push the update to VS marketplace. :)
anyway, a lot of thanks  :)

Hi, I published a new version with this fix update. Let me know if it works for you or not.

Hello, sorry for not replying sooner was kinda busy :) . It works now . Thanks for the fast update and very very great extension :D

Thank you very much for the feedback. Please feel free to suggest me or report bug :)

Hi, I'm having a problem when It comes to php but in html it actually works Thanks :)


Second ORG statement ignored

It seems as if the assembler ignores (silently) a second ORG statement in the source text .
This can be by design, but my code heavily depends on a table starting on a XX00 address.
Good programming practice won't do so but it is a heritage project.
In the listing the ORG works fine, but the binary dump (.bin file) the space between last code and the org address is not filled up with 00 or FF but the code following the org neatly follows the code before. This is the code fragment:
08EE C2                   STRZ    R2
08EF 0FB00F               LODA,R0 TEMQ,R3+
08F2 0F1057               LODA,R3 MCNT
08F5 7508                 CPSL    $08
08F7 17                   RETC,UN
08F8
08F8 00                   DB      $00
08F9 2C2B2D232A   OPERANDS        DB      ',+-#'
0900                      org     $900    ;               tabel searching relies   HERE
-->  on fixed high byte
0900
0900<PHONE_NUMBER>F0 REGS    DB      'R0  ',$00,$F0  ;MNEMONIC , BASE OPCODE (6 BIT
--> S),PROPERTIES
0906<PHONE_NUMBER>F0         DB      'R1  ',$01,$F0          ;PROPERTIES : LAST FOU
--> R BITS 08 04 02 01 ARE ABS , REL, IMM, REG
090C<PHONE_NUMBER>F0         DB      'R2  ',$02,$F0  ;PROPERTEI : BIT 7 = PSEUDOCOD
--> E
0912<PHONE_NUMBER>F0         DB      'R3  ',$03,$F0
0918
0918
0918<PHONE_NUMBER>F0 COND    DB      'P   ',$01,$F0
091E 5A20202000F0         DB      'Z   ',$00,$F0
0924 4E20202002F0         DB      'N   ',$02,$F0
092A 4C54202002F0         DB      'LT  ',$02,$F0
0930<PHONE_NUMBER>F0         DB      'EQ  ',$00,$F0
0936<PHONE_NUMBER>F0         DB      'GT  ',$01,$F0
093C 554E202003F0         DB      'UN  ',$03,$F0

This should work, see examples\pageboundary.asm

I see a type there:
  org     2000H                     ; we're now on $1000,
should say
org     2000H                     ; we're now on $2000,

oh. I see. the binary isn't filled.

Fixed binary output with multiple org statements (works with -c parameter)


Error Building HttpParser on 1.0.0

Building HttpParser → ~/.julia/packages/HttpParser/yGK3a/deps/build.log
┌ Error: Error building HttpParser:
│ ERROR: LoadError: UndefVarError: is_windows not defined
│ Stacktrace:
│  [1] top-level scope at none:0
│  [2] include at ./boot.jl:317 [inlined]
│  [3] include_relative(::Module, ::String) at ./loading.jl:1038
│  [4] include(::Module, ::String) at ./sysimg.jl:29
│  [5] include(::String) at ./client.jl:388
│  [6] top-level scope at none:0
│ in expression starting at /Users/XXX/.julia/packages/HttpParser/yGK3a/deps/build.jl:10
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1068

The problem is that the build bile is using is_windows() and is_unix() which have been deprecated for a while. I was able to make it work with a quick fix. Edit the build file /Users/XXX/.julia/packages/HttpParser/yGK3a/deps/build.jl and change those two functions with Sys.iswindows() and Sys.isunix()

@piovac
Thank you

Would be great if the maintainer of this package could make the changes proposed by @piovac


Empty popup window in Node / Signal view

Tested versions
Reproducible in:

v4.4.dev6.mono.official [1f47e4c4e]
v4.4.dev5.mono.official [9e6098432]
v4.4.dev4.mono.official [36e6207bb]

NOT reproducible in:

v4.4.dev3.mono.official [f4af8201b]

System information
Godot v4.4.dev6.mono - Windows 10.0.19045 - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (NVIDIA; <IP_ADDRESS>94) - Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz (4 threads)
Issue description
You get an empty popup window when hovering in Node / Signal view's empty area:

(The green outline is caused by the Window's Step Recorder.)
Steps to reproduce

Open Node view
Move mouse to the empty area at the bottom of the view
Wait for the empty popup to pop up

Minimal reproduction project (MRP)
N/A

Thank you for reporting! This was reported before and solved, please see:

https://github.com/godotengine/godot/issues/99945


set up new autoformat workflow

What does this change?
Use this workflow to run formatting on push
Needs https://github.com/wellcomecollection/aws-account-infrastructure/pull/31 for permissions
How to test
Pushing to any branch in the repo and watch the format workflow run
Add a badly formatted file in the commit so as to check the "push formatting changes" step as well
How can we measure success?
The formatting workflow run successfully and is able to push a formatting change commit to the branch
Have we considered potential risks?
This has been tested in catalogue-api
It runs on feature branches so we can test and validate without affecting the main branch or production systems.

Do we also need to remove the buildkite format job (can be done in a future PR).

Yes we do! I just want to make sure this is working before removing it from buildkite


Problem saving cv predictions in multiclass model (dev version)

In xgb.cv (from http://dmlc.ml/drat, updated today) I got this warning:
1: In pred[fd$index] <- pr :
número de items para para sustituir no es un múltiplo de la longitud del reemplazo
(number of items to replace isn't a multiple of the length of replacement)
The problem seems related with saving the predictions in cv when training multiclass model.

I had a few tests for multiclass but it looks like I've never committed them... so a bug crawled in.
I'll fix it later tonight.

#1401 has it fixed


More details for Include and then Include

It does not follow from the documentation what the behavior of Include and ThenInclude regarding nulls of collection navigation properties. If included set of values is empty, will navigation property stay null or will it be initialized with empty collection? Worth adding the details to Include's xmldoc.

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

ID: bbd36f35-e257-d0ed-8f28-f539ddcb71ec
Version Independent ID: 093903d5-f7c7-5a78-c0e5-0e2662dcedef
Content: Loading Related Data - EF Core
Content Source: entity-framework/core/querying/related-data.md
Product: entity-framework
Technology: entity-framework-core
GitHub Login: @rowanmiller
Microsoft Alias: avickers

@voroninp Whenever Include is used on a collection the collection will be created but empty if there are no related items.

@ajcvickers Yep, but it is worth describing this behavior, though I'd expect it by default anyway.


Does Inference Engine means pre trained models trained on benchmark datasets like MS COCO are exposed directly for inference?

I am looking to use standard pre-trained models, my requirement is to compare different Image classification and Object detection pre-trained models, last time when I checked I got to know that the inference using pre-trained models directly is yet to be enabled.
I see in the doc about Inference Engine, seems like standard pre-trained models are exposed and can be used directly for inference. Is this right? If yes please guide me to some documents/examples on how to use this feature.

Hi, yes the inference engine is being developed for the purpose of using pretrained models (developed by original authors of the pipelines/algorithms) for users to check on their datasets for runtime and accuracy metrics.
Check these notebooks for examples - https://github.com/Tessellate-Imaging/Monk_Object_Detection/tree/master/example_notebooks/inference_engine
Note: Do check the license of the original pipeline and the dataset the model is trained upon to use the inference code and the models in your project, monk inference engine is just a low code wrapper, usage restrictions are still applied as per the original implementations
More Tutorials are in development.

Thanks @abhi-kumar for the quick update.


fix(deps): update terraform-module to v1.23.3

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/terraform-ibm-cbr
module
patch
v1.23.1 -> v1.23.3

terraform-ibm-modules/cbr/ibm (source)
module
patch
1.23.1 -> 1.23.3

Release Notes

terraform-ibm-modules/terraform-ibm-cbr (github.com/terraform-ibm-modules/terraform-ibm-cbr)
v1.23.3
Compare Source
Bug Fixes

fixed bug where global deny target service details could potentially be missing consumer customizations (#489) (e902247)

v1.23.2
Compare Source
Bug Fixes

added fix to ensure only service-group-id should be specified when the pseudo service IAM is used (#487) (8108e45)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

:tada: This issue has been resolved in version 1.11.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Contextual parsing for Rust

My 2c (two lines exactly) to this project.
This pull request just adds Rust to the same case as all C-like languages.

Thanks, I'll merge this when I'm back from vacation
On Thu, 24 Aug 2017, 8:20 AM Daniel Peña Iglesias<EMAIL_ADDRESS>wrote:

My 2c (two lines exactly) to this project.
This pull request just adds Rust to the same case as all C-like languages.
You can view, comment on, or merge this pull request online at:
https://github.com/CoenraadS/BracketPair/pull/44
Commit Summary

Implement Rust context pairing (C-like)
Add Rust to contextual pairing in README

File Changes

M README.md
https://github.com/CoenraadS/BracketPair/pull/44/files#diff-0 (1)
M src/settings.ts
https://github.com/CoenraadS/BracketPair/pull/44/files#diff-1 (1)

Patch Links:

https://github.com/CoenraadS/BracketPair/pull/44.patch
https://github.com/CoenraadS/BracketPair/pull/44.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/CoenraadS/BracketPair/pull/44, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFVa4Zo8D-OWccmQPuY9gKTUTDOshsWxks5sbWp3gaJpZM4PBTPn
.


Remove the patch install from ExtractCompressNuGet.ps1

Same as PR #4896 for main branch.

Wrong files!


Connect API

Requesting review on project
Bookstore: connect to API
Project requirements

Read the Bookstore API documentation to learn how to use the API.
Add redux-thunk to your project.
Use fetch or axios for making API calls.
Fetch book list from Bookstore API on Books page load.

Add an Action Creator, that returns a function.
Fetch list of books.
Dispatch another action (add an action type) that will pass API response to reducer and updates the state.

Refactor your add book and remove book features to persist your changes in the server.

Change your existing Action Creators, so they return functions.
Make changes by using API.
Dispatch an action (action type that existed before refactor) that will updates the state accordingly.

Add book and remove book should work in the same way after the refactor.
No styling is required.

Thank you @zieeco

Thank you


No Separate Testnet State DB

counterparty-server --testnet start

Counterparty Core v10.7.2-alpha.1
Verbosity: 0
Quiet: False
Network: testnet
Configuration File: /Users/adam/Library/Application Support/counterparty/server.conf
Counterparty Database: /Users/adam/Library/Application Support/counterparty/counterparty.testnet.db
Counterparty State Database: /Users/adam/Library/Application Support/counterparty/state.db

First start up after upgrading:
> counterparty-server --testnet start

Counterparty Core v10.7.2-alpha.1
Verbosity: 0
Quiet: False
Network: testnet
Configuration File: /Users/adam/Library/Application Support/counterparty/server.conf
Counterparty Database: /Users/adam/Library/Application Support/counterparty/counterparty.testnet.db
Counterparty State Database: /Users/adam/Library/Application Support/counterparty/state.db
Rust Fetcher Database: /Users/adam/Library/Caches/counterparty/fetcherdb.testnet
Server Log: /Users/adam/Library/Logs/counterparty/server.testnet.log
API Access Log: /Users/adam/Library/Logs/counterparty/server.testnet.access.log

------------------------------ START ------------------------------

2024-11-23T12:27:53.447-08:00 - [    INFO] - Connecting to database... (SQLite <IP_ADDRESS>)
2024-11-23T12:27:53.492-08:00 - [ WARNING] - Database WAL file detected. To ensure no data corruption has occurred, run `counterpary-server check-db`.
2024-11-23T12:27:53.495-08:00 - [    INFO] - Initializing database...
2024-11-23T12:27:53.497-08:00 - [    INFO] - Running PRAGMA optimize...
2024-11-23T12:27:54.396-08:00 - [    INFO] - Starting API Watcher thread...
2024-11-23T12:27:54.423-08:00 - [    INFO] - Starting Parent Process Checker thread...
2024-11-23T12:27:54.423-08:00 - [    INFO] - Starting WSGI Server: waitress
2024-11-23T12:27:54.424-08:00 - [    INFO] - API Watcher - Catch up completed. (0h 0m 0s)
2024-11-23T12:27:54.426-08:00 - [    INFO] - Starting WSGI Server thread...
2024-11-23T12:27:54.903-08:00 - [    INFO] - Starting v1 API Status Poller thread...
2024-11-23T12:27:54.903-08:00 - [    INFO] - Starting API Server v1 thread...
2024-11-23T12:27:54.906-08:00 - [    INFO] - Catching up...
2024-11-23T12:27:56.098-08:00 - [    INFO] - Starting RSFetcher thread...
2024-11-23T12:27:56.098-08:00 - [    INFO] - RS Fetcher - Indexer initializing...
2024-11-23T12:27:56.099-08:00 - [    INFO] - RS Fetcher - Connecting to database: /Users/adam/Library/Caches/counterparty/fetcherdb.testnet
2024-11-23T12:27:56.106-08:00 - [    INFO] - RS Fetcher - Connected
2024-11-23T12:27:56.106-08:00 - [    INFO] - RS Fetcher - Initialized
2024-11-23T12:27:56.106-08:00 - [    INFO] - RS Fetcher - First database op: GetMaxBlockHeight...
2024-11-23T12:27:56.106-08:00 - [    INFO] - RS Fetcher - First database op: GetMaxBlockHeight took 7.5µs
2024-11-23T12:27:56.106-08:00 - [    INFO] - RS Fetcher - First Bitcoin client op: GetBlockchainHeight...
2024-11-23T12:27:56.129-08:00 - [    INFO] - RS Fetcher - First Bitcoin client op: GetBlockchainHeight took 23.203958ms
2024-11-23T12:27:56.129-08:00 - [    INFO] - RS Fetcher - Starting at block height: 319910
2024-11-23T12:27:56.129-08:00 - [    INFO] - RS Fetcher - Targeting block height: 2869671
2024-11-23T12:27:56.129-08:00 - [    INFO] - RS Fetcher - Fetcher started
2024-11-23T12:27:56.542-08:00 - [    INFO] - Block 319910
2024-11-23T12:27:57.152-08:00 - [    INFO] - Block 319910 - Send GLDPAMPBAROZ from mzZTWJpV to mfys5AU2 (c3828d3) [valid]
2024-11-23T12:27:57.153-08:00 - [    INFO] - Block 319910 - Send GLDPAMPBAROZ from mzZTWJpV to mfys5AU2 (82b6dab) [valid]
2024-11-23T12:27:57.154-08:00 - [    INFO] - Block 319910 - Send GLDPAMPBAROZ from mzZTWJpV to mfys5AU2 (b8b27c4) [valid]
2024-11-23T12:27:57.155-08:00 - [    INFO] - Block 319910 - Parsing complete. L: 31e60fd, TX: 9a4aa35, M: 74ef5d4 (0.61s)
2024-11-23T12:27:57.165-08:00 - [    INFO] - Block 319911
2024-11-23T12:27:57.165-08:00 - [    INFO] - Block 319911 - Parsing complete. L: ff81a98, TX: 10b2235, M: a9d93af (0.00s)
2024-11-23T12:27:57.166-08:00 - [    INFO] - Block 319912
2024-11-23T12:27:57.166-08:00 - [    INFO] - Block 319912 - Parsing complete. L: 8d5e48c, TX: a80314d, M: 4ee5f92 (0.00s)
2024-11-23T12:27:57.167-08:00 - [    INFO] - Block 319913
2024-11-23T12:27:57.167-08:00 - [    INFO] - Block 319913 - Parsing complete. L: db21d77, TX: 91a2141, M: fbbc9cb (0.00s)
2024-11-23T12:27:57.168-08:00 - [    INFO] - Block 319914
2024-11-23T12:27:57.168-08:00 - [    INFO] - Block 319914 - Parsing complete. L: a6876a8, TX: 0407180, M: 7b405a2 (0.00s)
2024-11-23T12:27:57.168-08:00 - [    INFO] - Block 319915
2024-11-23T12:27:57.169-08:00 - [    INFO] - Block 319915 - Parsing complete. L: e2d776d, TX: df62d0a, M: 8c4e01a (0.00s)
2024-11-23T12:27:57.169-08:00 - [    INFO] - Block 319916
2024-11-23T12:27:57.170-08:00 - [    INFO] - Block 319916 - Parsing complete. L: a5a857f, TX: 65f3f04, M: 4df6872 (0.00s)
2024-11-23T12:27:57.170-08:00 - [    INFO] - Block 319917
2024-11-23T12:27:57.171-08:00 - [    INFO] - Block 319917 - Parsing complete. L: c5b6446, TX: df56185, M: 9636a81 (0.00s)

> ls
archive          counterparty.db-shm  counterparty.state.db        counterparty.testnet.db      counterparty.testnet.db-wal  ledger-hash  state.db
counterparty.db  counterparty.db-wal  counterparty.testnet.api.db  counterparty.testnet.db-shm  double                       server.conf  triple

And we should really add a test that would catch this kind of problem.

fixed here https://github.com/CounterpartyXCP/counterparty-core/pull/2754


Update prerequisites.md

Added mailbox requirements

Issue#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/4186

@JohanFreelancer9 Please copy review

@mjcaparas Please merge this PR. Thanks

@mjcaparas Gentel reminder, Please merge this PR. Thanks.

pls resolve conflicts. then i can merge.

@yogkumgit  @JohanFreelancer9  for some reason I don't see an option to resolve conflicts and it is grayed out (saying Only those with the write access can merge pull requests). Let me know what to do.

@Kateyanne Please provide the internal help. Thanks.

@yogkumgit The changes are made on the document already. So this PR is no longer required.


Typescript issue with disabling shadow on iOS

React navigation: 5 (next)
I wan't to disable shadow in header.
I've created styles:
const styles = StyleSheet.create({
  headerStyle: {
    shadowOffset: null,
  },
});

<Stack.Navigator screenOptions={{ headerStyle: styles.headerStyle }}>

But then I get error:

And if I write shadowOffset: undefined - then other styles stops working (e.g. backgroundColor)

This looks more like an issue in the typescript types for styles in React Native not specific to React Navigation. Can you open an issue in DefinitelyTyped instead?


Set a fixed upper limit for stack promotion in withUnsafeTemporaryAllocation() beyond which no stack allocation could ever succeed

Set a fixed upper limit for stack promotion in withUnsafeTemporaryAllocation() beyond which no stack allocation could ever succeed.

This change improves compile-time optimization of withUnsafeTemporaryAllocation() when passed a buffer size that is known at compile-time and which is too large to ever fit on the stack.
This change does not mean that all allocations smaller than upperBound are stack-allocated: it means that such allocations are passed to swift_stdlib_isStackAllocationSafe() for potential further checking, but allocations larger than upperBound always go on the heap (which they would anyway, so the function call is not necessary.)
So in short, this change eliminates an unnecessary function call for very large temporary allocations that always end up on the heap.

@swift-ci please test

@swift-ci please test


sparse submit should support passing requirements files to it.

Currently if you've got multiple topologies all with the same requirements, what most people do is create symlinks to a single requirements file. In addition to the checking for a file in virtualenvs with the name of the topology, we should support passing in requirements files via a -r flag to sparse submit.

This was fixed in #328.


QUICKSTEP-125: Fixed the non-determinism in JoinReordering.

This PR fixed the bug in join reordering due to the pointer address-based comparison. It also added a new rule that prefers the build side which does not produce output, and did minor refactors for the file.
Assigned to @jianqiao.

LGTM! Merging.


Full text improvements

Description
Currently it's Full Text search allow to define only one index per document. For most of the simple cases it's enough, but it might be not efficient to index whole data, when only one of few fields should be filtered. It's also not enough if we'd have to support more than language and filter only texts in specific language.
Type of change

added possibility to define custom data config (via config parameter of AddFullTextIndex method or via selected document members),
changed index name to contain regional config - thus allow to configure more than one FTS for different languages,
added full text index attribute to make easier fts fields definiton,
added support for Conjoined Tenancy.

Also added possibility to define custom index name in AddUniqueIndex method with members expression.
[x] New feature (non-breaking change)
How Has This Been Tested?
Added new tests to already existing for FTS
Manually checked also execution plans for:

Two FTS indexes for different languages and single members selected

Table definition

CREATE TABLE public.mt_doc_user
(
    id uuid NOT NULL,
    data jsonb NOT NULL,
    mt_last_modified timestamp with time zone DEFAULT transaction_timestamp(),
    mt_version uuid NOT NULL DEFAULT (md5(((random())::text || (clock_timestamp())::text)))::uuid,
    mt_dotnet_type character varying COLLATE pg_catalog."default",
    CONSTRAINT pk_mt_doc_user PRIMARY KEY (id)
)
WITH (
    OIDS = FALSE
)
TABLESPACE pg_default;

CREATE INDEX mt_doc_user_french_idx_fts
    ON public.mt_doc_user USING gin
    (to_tsvector('french'::regconfig, data ->> 'LastName'::text))
    TABLESPACE pg_default;

CREATE INDEX mt_doc_user_italian_idx_fts
    ON public.mt_doc_user USING gin
    (to_tsvector('italian'::regconfig, data ->> 'FirstName'::text))
    TABLESPACE pg_default;

query plan:

Single FTS index for default language and two members selected

Table definition

CREATE TABLE public.mt_doc_user
(
    id uuid NOT NULL,
    data jsonb NOT NULL,
    mt_last_modified timestamp with time zone DEFAULT transaction_timestamp(),
    mt_version uuid NOT NULL DEFAULT (md5(((random())::text || (clock_timestamp())::text)))::uuid,
    mt_dotnet_type character varying COLLATE pg_catalog."default",
    CONSTRAINT pk_mt_doc_user PRIMARY KEY (id)
)
WITH (
    OIDS = FALSE
)
TABLESPACE pg_default;

CREATE INDEX mt_doc_user_english_idx_fts
    ON public.mt_doc_user USING gin
    (to_tsvector('english'::regconfig, ((data ->> 'FirstName'::text) || ' '::text) || (data ->> 'LastName'::text)))
    TABLESPACE pg_default;

query plan:

@CodingGorilla: I would love to see your point of view about those changes as you're inital author of this feature.
I plan to also update documentation, when we have agreement on the API.

@oskardudycz Oh man, I should have been paying more attention. I want to push you toward a little different implementation in the Linq mechanics. I think that explicitly adding IWhereFragment objects to IMartenQueryable is polluting the internal APIs and forcing you to make a lot of new object allocations from the before and adding complexity I don't think we want.
What I would suggest is using the IMethodCallParser mechanism instead, and let the normal IMartenQueryable mechanics do its thing. So instead of these methods directly on IMartenQ ueryable adding WhereFragments directly:
        /// <summary>
        /// Performs a full text search against <typeparamref name="TDoc"/>
        /// </summary>
        /// <param name="searchTerm">The text to search for.  May contain lexeme patterns used by PostgreSQL for full text searching</param>
        /// <param name="regConfig">The dictionary config passed to the 'to_tsquery' function, must match the config parameter used by <seealso cref="DocumentMapping.AddFullTextIndex(string)"/></param>
        /// <remarks>
        /// See: https://www.postgresql.org/docs/10/static/textsearch-controls.html#TEXTSEARCH-PARSING-QUERIES
        /// </remarks>
        IMartenQueryable<T> Search(string searchTerm, string regConfig = FullTextIndex.DefaultRegConfig);

        /// <summary>
        /// Performs a full text search against <typeparamref name="TDoc"/> using the 'plainto_tsquery' search function
        /// </summary>
        /// <param name="queryText">The text to search for.  May contain lexeme patterns used by PostgreSQL for full text searching</param>
        /// <param name="regConfig">The dictionary config passed to the 'to_tsquery' function, must match the config parameter used by <seealso cref="DocumentMapping.AddFullTextIndex(string)"/></param>
        /// <remarks>
        /// See: https://www.postgresql.org/docs/10/static/textsearch-controls.html#TEXTSEARCH-PARSING-QUERIES
        /// </remarks>
        IMartenQueryable<T> PlainTextSearch(string searchTerm, string regConfig = FullTextIndex.DefaultRegConfig);

        /// <summary>
        /// Performs a full text search against <typeparamref name="TDoc"/> using the 'phraseto_tsquery' search function
        /// </summary>
        /// <param name="queryText">The text to search for.  May contain lexeme patterns used by PostgreSQL for full text searching</param>
        /// <param name="regConfig">The dictionary config passed to the 'to_tsquery' function, must match the config parameter used by <seealso cref="DocumentMapping.AddFullTextIndex(string)"/></param>
        /// <remarks>
        /// See: https://www.postgresql.org/docs/10/static/textsearch-controls.html#TEXTSEARCH-PARSING-QUERIES
        /// </remarks>
        IMartenQueryable<T> PhraseSearch(string searchTerm, string regConfig = FullTextIndex.DefaultRegConfig);

Let's make these strictly extension methods like:
public static class FullTextExtensions
{
    public static bool PhraseSearch(this T entity, string searchTerm, string regConfig = FullTextIndex.DefaultRegConfig)
    {
        return true; // doesn't really matter here
     }
}

and a corresponding IMethodCallParser for each new method that returns the same IWhereFragment you've already built.
If you want, you can come back with this too in the same extension method class:
// just syntactical sugar
public static IMartenQueryable<T> PhraseSearch(this IMartenQueryable<T> queryable, args)
{

    return queryable.Where(x => x.PhraseSearch(args));'
}

By relying on the IMethodCallParser, you're making fewer changes to the internals of MartenQueryable and doing fewer object allocations

Ok, it's fixed. I'll polish the changes (tests, documentation) and will try to finish that in the next 2-3 days.

Ok, I added documentation, more tests. It's ready for final review! :)
@jeremydmiller @mysticmind @CodingGorilla @jokokko

@oskardudycz I had merged the PR #1168 with few minor tweak, this is resulting in a conflict in this PR for README.md, I will take a look to fix it.

@mysticmind sure, but if you'd like I can do rebase by myself.

@mysticmind I did additonal rebase to force Github to not scream about conflicts ;)

@mysticmind I added asserts for some of the sample methods in tests. Removed [Fact] attribute from the sample methods that are covered in other tests.
All comments addressed.


Feat/nicer documentation

Should merge #2 first.
This PR uses furo and specifies dependencies to build documentation in pyproject.toml.
It modifies the main example to illustrate how to create multiple cells.

There is a bug in the extra requirements:


Trying to get the containers_memory_percent to come through, and it's only giving me the total memory MB totals.

Great component!
I'm attempting to set up a pie chart in my system monitor page that'll show me which docker containers are using the most cpu and memory.
I'm trying to get the containers_memory_percent to come through, and it's only giving me the total memory MB totals.
Config is:
monitor_docker:
  - name: Docker
    rename:
      db: MySQL
      docker_owncloud_1: OwnCloud
      docker_room-assistant_1: Room-Assistant
      grafana: Grafana
      plex: "Plex"
      home-assistant: Home Assistant
      influxdb: InfluxDB
      mqtt: Mosquitto
      nodered: "Node-RED"
      portainer: Portainer
      letsencrypt: LetsEncrypt
      openvpn: OpenVPN
    monitored_conditions:
      - version
      - containers_running
      - containers_total
      - containers_stopped
      - containers_memory_percentage
      - containers_cpu_percentage
      - uptime
      - state
      - status
      - memory

I do see a sensor for: sensor.docker_memory_percent (overall docker system memory), but not for each of the individual containers. For each container I see sensors that resemble sensor.docker_db_memory with the MB total for the container.
I can see this data in the debug log. Not sure if I'm missing something in the config. Thanks!
Sample from debug log:
2020-07-08 12:48:47 DEBUG (Thread-3) [custom_components.monitor_docker.helpers] Version: 19.03.12, Containers: 12, Running: 12, CPU: None%, Memory: 1282.55MB, 8.06%
2020-07-08 12:48:49 DEBUG (Thread-3) [custom_components.monitor_docker.helpers] nodered: CPU Usage=7.09%. Memory Usage=132.35MB, 0.83%
2020-07-08 12:48:49 DEBUG (Thread-3) [custom_components.monitor_docker.helpers] nodered: Send notify (5) to container
2020-07-08 12:48:49 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] nodered: Received callback for: Up Time
2020-07-08 12:48:49 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] nodered: Received callback for: State
2020-07-08 12:48:49 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] nodered: Received callback for: Status
2020-07-08 12:48:49 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] nodered: Received callback for: Memory
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.helpers] home-assistant: CPU Usage=58.68%. Memory Usage=360.41MB, 2.27%
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.helpers] home-assistant: Send notify (5) to container
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] home-assistant: Received callback for: Up Time
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] home-assistant: Received callback for: State
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] home-assistant: Received callback for: Status
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] home-assistant: Received callback for: Memory
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.helpers] portainer: CPU Usage=0.04%. Memory Usage=9.47MB, 0.06%
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.helpers] portainer: Send notify (5) to container
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] portainer: Received callback for: Up Time
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] portainer: Received callback for: State
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] portainer: Received callback for: Status
2020-07-08 12:48:51 DEBUG (Thread-3) [custom_components.monitor_docker.sensor] portainer: Received callback for: Memory

Yes, the containers_memory is for all containers. To have it per container, add the following one:
memory_percentage

Woohoo! Thank you!
Also, don't know if you saw this post:
https://www.reddit.com/r/homeassistant/comments/hmqmco/a_few_more_tweaks_needed_before_ive_completed_my/
But the user describes a step where you need to modify the docker.service file:
ExecStart=/usr/bin/dockerd` -H fd:// --containerd=/run/containerd/containerd.sock **-H tcp://<IP_ADDRESS>**

I didn't see that in your install instructions, so I thought I'd mention it. :) Thanks again!

@sstratoti thanks for the link and other information. Which Linux distribution are you using? I myself us Ubuntu 18.04 with Docker CE and it worked directly (no manual changes required). Also, is the monitor_docker connection to a remote Docker host or really locally?


WIP: Run gofmt and clang-format in CI

Just testing for now

Codecov Report

Merging #5 (f2033bc) into master (8d15ff3) will decrease coverage by 1.60%.
The diff coverage is 92.34%.

@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
- Coverage   97.46%   95.86%   -1.61%
==========================================
  Files          12       17       +5
  Lines         474      580     +106
==========================================
+ Hits          462      556      +94
- Misses          8       15       +7
- Partials        4        9       +5

Impacted Files
Coverage Δ

backports.go
0.00% <0.00%> (ø)

value.go
94.85% <64.28%> (-2.78%)
:arrow_down:

promise.go
84.61% <64.70%> (-15.39%)
:arrow_down:

function_template.go
93.75% <66.66%> (-6.25%)
:arrow_down:

context.go
100.00% <100.00%> (+2.81%)
:arrow_up:

cpuprofile.go
100.00% <100.00%> (ø)

cpuprofilenode.go
100.00% <100.00%> (ø)

cpuprofiler.go
100.00% <100.00%> (ø)

errors.go
100.00% <100.00%> (ø)

function.go
100.00% <100.00%> (ø)

... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 11de938...f2033bc. Read the comment docs.


Edit this page with arrow button - symbolism mismatch

On each page of the documentation there is a button on the bottom with an arrow right and the text EDIT THIS PAGE - I found the arrow to be misplaced here as it is interpreted as "next page" - this is what we have been trained on bazillions of internet sites since many years - arrows are for navigation.

I totally agree with you and this is the reason I am here. I came across this ticket because I searched for "EDIT THIS PAGE".
This should be updated for better UX. If any designer can come up with a better button design, I'd be happy to create a PR to fix it.


UploadFile re rendering

Hi! I was following the Document QA example from the docs and i noticed this

Basically if i don't upload a file the app keeps rendering a new UploaFile component every one minute and a half.
Is there a way to prevent this?

The AskFileMessage has a timeout parameter. You can increase the timeout value, here is the doc https://docs.chainlit.io/api-reference/ask/ask-for-file


[cosmoctl] unmatch flag name --port-name --name

unmach flag name
cosmoctl workspace open-port WORKSPACE_NAME --name PORT_NAME --port PORT_NUMBER [flags]
                                            ~~~~~~
cosmoctl workspace close-port WORKSPACE_NAME --port-name PORT_NAME [flags]
                                             ~~~~~~~~~~~

@jlandowner
Can I change it as follows?
$ cosmoctl ws open-port -h
Update or insert workspace network port
Usage:
  cosmoctl workspace open-port WORKSPACE_NAME --name NETWORK_RULE_NAME --port PORT_NUMBER [flags]
                                                     ^^^^^^^^^^^^^^^^^
Flags:
      --group string   Group of ports for URLVar. Ports in the same group are treated as the same domain. set port-name value if empty
  -h, --help           help for open-port
      --name string    Network rule name (Required)
                       ^^^^^^^^^^^^
      --path string    Path for Ingress path when using ingress (default "/")
      --port int       Serivce port number (Required)
      --public         disable authentication for this port
  :

$ cosmoctl ws close-port -h
Remove workspace network port

Usage:
  cosmoctl workspace close-port WORKSPACE_NAME --name NETWORK_RULE_NAME [flags]
                                               ^^^^^^^^^^^^^^^^^^^^^^^^
Flags:
  -h, --help           help for close-port
      --name string    Network rule name (Required)
      ^^^^^^           ^^^^^^^^^^^^
  :

LGTM!
Also how about changing open-port to add-net-rule and close-port to remove-net-rule ?
I think open-port is more clear but we are planning to network rule not by port but by URL, aren't we?

I totally agree!


To review: Batch class

Changed batch form a list of lists to a class.
Key improvements:

batch is storing the envs now and functions like state2policy are called from these envs, not the generic self.env in the gflownet agent (this allows for working with conditional envs)
depending on the loss (tb or flowmatch), batch stores different things needed for the loss. In particular, there's no need for get_parents method in the envs, where flowmatch doesn't make sense (like ctorus). We can remove them now

Tested with grid (first screenshot, purple is main branch, green is batch_class branch) and ctorus (still running, but looks good so far. Second screenshot, purple is main)

[x] Fix batch loss

Wait a bit, I actually found out some bug yesterday while rerunning ctorus with different hyperparameters. I'll figure that out and also clean up the comments

Fixed the bug and cleaned up comments, ready for review 🙂

there's no need for get_parents method in the envs, where flowmatch doesn't make sense (like ctorus). We can remove them now
I don't think we can just remove get_parents() right now. For example, it is used for back

work in progress: I've just merged Alex's changes and then the cluster got shut down :( will continue on Mon with adding more docs and methods like get_states_policy

@alexhernandezgarcia @michalkoziarski please take a look again, I've changed things according to your suggestions. Tested new version with grid and ctorus env, works smoothly

Issue with the speed is fixed, PR is ready to review @alexhernandezgarcia, @michalkoziarski


datapath: Per endpoint routes are broken for IPv6 when netpol is applied

I have two pods running on the same node client2 and client, and an ingress netpol which allows client2 => client. When client2 tries to ping client, the ICMPv6 NS is sent for the router IPv6 addr. The reply is handled by https://github.com/cilium/cilium/blob/master/bpf/lib/icmp6.h#L171 which should be called from from-container @ client2's veth. The function eventually does a redirect to the same veth iface. The cilium monitor output is the following:
<- endpoint 1096 flow 0x0 , identity 54318->unknown state unknown ifindex 0 orig-ip <IP_ADDRESS>: fe80::241e:5dff:fe66:6c4d -> ff02::1:ff00:27b4 NeighborSolicitation
CPU 03: MARK 0x0 FROM 1096 DEBUG: Handling ICMPv6 type=135
CPU 03: MARK 0x0 FROM 1096 DEBUG: ICMPv6 neighbour soliciation for address 0:b4270000
-> lxc0fd17701e6b7: fd00:10:244:2::27b4 -> fe80::241e:5dff:fe66:6c4d NeighborAdvertisement
CPU 03: MARK 0x0 FROM 1096 DEBUG: Inheriting identity=2 from stack
<- stack flow 0x0 , identity world->unknown state unknown ifindex lxc0fd17701e6b7 orig-ip <IP_ADDRESS>: fd00:10:244:2::27b4 -> fe80::241e:5dff:fe66:6c4d NeighborAdvertisement
CPU 03: MARK 0x0 FROM 1096 DEBUG: Conntrack lookup 1/2: src=[::0:27b4]:0 dst=[::fe66:6c4d]:0
CPU 03: MARK 0x0 FROM 1096 DEBUG: Conntrack lookup 2/2: nexthdr=58 flags=0
CPU 03: MARK 0x0 FROM 1096 DEBUG: CT entry found lifetime=198692, revnat=0
CPU 03: MARK 0x0 FROM 1096 DEBUG: CT verdict: Established, revnat=0
CPU 03: MARK 0x0 FROM 1096 DEBUG: Successfully mapped addr.p4=[::0:27b4] to identity=2
CPU 03: MARK 0x0 FROM 1096 DEBUG: Attempting local delivery for container id 1096 from seclabel 54318
CPU 03: MARK 0x0 FROM 1096 DEBUG: Policy evaluation would deny packet from 2 to 54318
Policy verdict log: flow 0x0 local EP ID 1096, remote ID world, proto 58, ingress, action deny, match none, fd00:10:244:2::27b4 -> fe80::241e:5dff:fe66:6c4d NeighborAdvertisement
xx drop (Policy denied) flow 0x0 to endpoint 1096, ifindex 35, file 2:1604, , identity world->54318: fd00:10:244:2::27b4 -> fe80::241e:5dff:fe66:6c4d NeighborAdvertisement

When I disable the per-endpoint routes, the test case works:
<- endpoint 3853 flow 0x0 , identity 54318->unknown state unknown ifindex 0 orig-ip <IP_ADDRESS>: fe80::8b1:9bff:fe90:6727 -> ff02::1:ff00:27b4 NeighborSolicitation
CPU 04: MARK 0x0 FROM 3853 DEBUG: Handling ICMPv6 type=135
CPU 04: MARK 0x0 FROM 3853 DEBUG: ICMPv6 neighbour soliciation for address 0:b4270000
-> lxc3c15a07fa2c0: fd00:10:244:2::27b4 -> fe80::8b1:9bff:fe90:6727 NeighborAdvertisement
<- endpoint 3853 flow 0x0 , identity 54318->unknown state unknown ifindex 0 orig-ip <IP_ADDRESS>: fd00:10:244:2::32cf -> ff02::1:ff00:27b4 NeighborSolicitation
CPU 04: MARK 0x0 FROM 3853 DEBUG: Handling ICMPv6 type=135
CPU 04: MARK 0x0 FROM 3853 DEBUG: ICMPv6 neighbour soliciation for address 0:b4270000
-> lxc3c15a07fa2c0: fd00:10:244:2::27b4 -> fd00:10:244:2::32cf NeighborAdvertisement

With pwru I see the following is happening. When the per EP routes is off:
0xffff98b0f1640900      5 [kworker/5:2-mm_percpu_wq]          skb_do_redirect netns=4026533335 mark=0x0 ifindex=43 proto=dd86 mtu=1500 len=86 [fd00:10:244:2::27b4]:0->[fe80::8b1:9bff:fe90:6727]:0(icmp6)
0xffff98b0f1640900      5 [kworker/5:2-mm_percpu_wq]           __bpf_redirect netns=4026533335 mark=0x0 ifindex=43 proto=dd86 mtu=1500 len=86 [fd00:10:244:2::27b4]:0->[fe80::8b1:9bff:fe90:6727]:0(icmp6)
0xffff98b0f1640900      5 [kworker/5:2-mm_percpu_wq]         __dev_queue_xmit netns=4026533335 mark=0x0 ifindex=43 proto=dd86 mtu=1500 len=86 [fd00:10:244:2::27b4]:0->[fe80::8b1:9bff:fe90:6727]:0(icmp6)
0xffff98b0f1640900      5 [kworker/5:2-mm_percpu_wq]      netdev_core_pick_tx netns=4026533335 mark=0x0 ifindex=43 proto=dd86 mtu=1500 len=86 [fd00:10:244:2::27b4]:0->[fe80::8b1:9bff:fe90:6727]:0(icmp6)
0xffff98b0f1640900      5 [kworker/5:2-mm_percpu_wq]        validate_xmit_skb netns=4026533335 mark=0x0 ifindex=43 proto=dd86 mtu=1500 len=86 [fd00:10:244:2::27b4]:0->[fe80::8b1:9bff:fe90:6727]:0(icmp6)

While with the per EP on:
0xffff98b0835ca100      5           [ping]          skb_do_redirect netns=4026533335 mark=0x0 ifindex=51 proto=dd86 mtu=1500 len=86 [fd00:10:244:2::27b4]:0->[fd00:10:244:2::e1d8]:0(icmp6)
0xffff98b0835ca100      5           [ping]           __bpf_redirect netns=4026533335 mark=0x0 ifindex=51 proto=dd86 mtu=1500 len=86 [fd00:10:244:2::27b4]:0->[fd00:10:244:2::e1d8]:0(icmp6)
0xffff98b0835ca100      5           [ping]         __dev_queue_xmit netns=4026533335 mark=0x0 ifindex=51 proto=dd86 mtu=1500 len=86 [fd00:10:244:2::27b4]:0->[fd00:10:244:2::e1d8]:0(icmp6)
0xffff98b0835ca100      5           [ping]             tcf_classify netns=4026533335 mark=0x0 ifindex=51 proto=dd86 mtu=1500 len=86 [fd00:10:244:2::27b4]:0->[fd00:10:244:2::e1d8]:0(icmp6)
0xffff98b0835ca100      5           [ping] kfree_skb_reason(SKB_DROP_REASON_TC_EGRESS) netns=4026533335 mark=0x0 ifindex=51 proto=dd86 mtu=1500 len=86 [fd00:10:244:2::27b4]:0->[fd00:10:244:2::e1d8]:0(icmp6)

Basically with the EP on we enter the to-container , while with EP off we bypass it. And this is because we set RequireEgressProg with the EP which:
// RequireEgressProg returns true if the endpoint requires an egress
// program attached to the InterfaceName() invoking the section
// "to-container"

Anyway, I assume that we allow any traffic from HOST_ID regardless of a netpol. But ROUTER_IPV6 is identified as WORLD_ID :
CPU 03: MARK 0x0 FROM 1096 DEBUG: Successfully mapped addr.p4=[::0:27b4] to identity=2

Which happens due to:
CPU 03: MARK 0x0 FROM 1096 DEBUG: Inheriting identity=2 from stack

Which is set https://github.com/cilium/cilium/blob/pr/brb/ci-dp-v6/bpf/lib/identity.h#L122.
In the case of IPv4, we don't hit the issue, as we don't have a custom ARP responder in the to-container. And we need that custom responder as in the IPv6 case the ROUTER_IPV6 is not set to cilium_host (https://github.com/cilium/cilium/issues/23445).
To fix the issue we either need to set a mark in order to set HOST_ID for the reply, or remove the ICMPv6 NS/NA responder once #23445 has been resolved.

This fixed the issue:
diff --git a/bpf/lib/icmp6.h b/bpf/lib/icmp6.h
index a388967479..2c07abe4e3 100644
--- a/bpf/lib/icmp6.h
+++ b/bpf/lib/icmp6.h
@@ -86,6 +86,11 @@ static __always_inline int icmp6_send_reply(struct __ctx_buff *ctx, int nh_off)

        cilium_dbg_capture(ctx, DBG_CAPTURE_DELIVERY, ctx_get_ifindex(ctx));

+#ifdef ENABLE_ENDPOINT_ROUTES
+    ctx->mark &= ~MARK_MAGIC_HOST_MASK;
+    ctx->mark |= MARK_MAGIC_HOST;
+#endif
+

@jschwinger233 :wave:

I presume you probably prefer the latter solution, am I right?

Yep, if it makes sense to you.

Do you think I can work on this issue once https://github.com/cilium/cilium/pull/24208 is done?

Sure, go ahead!

There is a major difference between arp and icmp6 ndp.
For arp, kernel can response to who has $router_ip tell $veth_mac_in_container with $router_ip is at $veth_mac_at_host, as long as $router_ip presents in any net interface, which is cilium_host for our scenario,
For ndp, that's not the case. Kernel won't answer NS who has $router_ipv6 even if $router_ipv6 is set at cilium_host.
This difference makes it hard to simply "remove the ns responder` and pass the DS to kernel, as kernel doesn't reply that DS.
For your reference, how kernel handles arp is at https://github.com/torvalds/linux/blob/3a93e40326c8f470e71d20b4c42d36767450f38f/net/ipv4/arp.c#L839-L854, and the way kernel process icmp6 DS is at https://github.com/torvalds/linux/blob/3a93e40326c8f470e71d20b4c42d36767450f38f/net/ipv6/ip6_input.c#L524.
I may take a look at how calico works for ipv6 ndp.

This is how calico handles icmp6 NDP:
routes inside container:
$ s ns -t $(pidofpod nginx-deployment-9cbd9b7ff-xzhp9) -n ip -6 n
fd00:10:244:ef:e583:2436:9562:983 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via fe80::ecee:eeff:feee:eeee dev eth0 metric 1024 pref medium

They are basically similar to ipv4 routes, no surprise.
The fun fact is the gateway ipv6 fe80::ecee:eeff:feee:eeee, it's set to each veth at host side:
$ s ns -t $(pidofcontainer calico-worker) -n ip a | grep fe80::ecee:eeff:feee:eeee -B4
2: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/ipip <IP_ADDRESS> brd <IP_ADDRESS>
3: calibe84080db83@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netnsid 1
    inet6 fe80::ecee:eeff:feee:eeee/64 scope link
       valid_lft forever preferred_lft forever
5: cali0f82966ccf1@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netnsid 2
    inet6 fe80::ecee:eeff:feee:eeee/64 scope link
       valid_lft forever preferred_lft forever
6: calid2f4bff1cc2@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netnsid 3
    inet6 fe80::ecee:eeff:feee:eeee/64 scope link
       valid_lft forever preferred_lft forever
7: calidb1a59e80ad@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netnsid 4
    inet6 fe80::ecee:eeff:feee:eeee/64 scope link

This is completely different from ipv4 arp, and I'm afraid this might be the only way to let kernel handle icmp6 NS.
Do we accept this solution?
If so, shall we introduce an option like ENABLE_NDP_PASSTHROUGH / ENABLE_NDP_RESPONDER to control if cilium bpf program is in charge of NDP responding?

I believe this special handle for icmp6 echo should also go away as long as we merge #24208 :
https://github.com/cilium/cilium/blob/e0f7fac400fb01af78044062032e384fe2a28aee/bpf/lib/icmp6.h#L452-L454
This special handle prevents icmp6 echo from reaching stack; in result, icmp6 reply misses the chance to hit ip6tables rule for setting mark MARK_MAGIC_HOST (0xc00), and fails to get HOST_ID as identity in to-container .


typo in title readme file

"Log to Remove Syslog Server"
....
to
"Log to Remote Syslog Server"
it happens.

Good catch.  Just corrected it.  Thanks for bringing it to my attention!


 These can be reduced by checking certain criteria to decide whether changes are needed. How it works now:

Collect all the submissions in the "for-dispatch" graph.
Find all related subjects (SubmissionDocument, FormData, attachments, ...)
Calculate for each subject the graphs in which they should come and query for the amount of triples per subject.
Query for where the subjects currently are and how many triples they have.
Calculate the difference between the current dispatched submissions to filter out the graphs where the submissions are no longer needed.
Remove those subjects from those graphs.
Calculate the difference between the current dispatched submissions to see what subject is missing from what graph and if there are missing triples.
Perform copies for that difference list only.

If the amount of triples is lower than what was already in the org graph: remove the subject and copy
If the amount of triples is higher than what was already in the org graph: copy

Some notes:

Healing and processing a submission were so similar that I merged the code.
It also heals the triples for physical files (<share://...>) now. This was not there before. This service used to attempt to heal triples for all the subjects but would never find the triples because they are in a different graph (the graph for the files-consumer). I think this will come in handy when dispatching rules change and subjects need to be copied to another graph as well. The file-consumer does not have healing or a mechanism to do that on its own(?).
The main improvement for this PR is that it no longer removes all the data for the submission, before inserting the same things again. Instead it tries to figure out the difference between calculated destinators and the current graphs the data can be found, and the number of triples per subject. This causes less deletions and insertions in the database, while still maintaining correct updates to the data.
A lot of speed-up can be achieved by making the SPARQL queries simpler. Some queries can be sped up from 15s to 0.1s on my local machine. The downside is that they might be less accurate. E.g. I removed type checking in a lot of queries. Shouldn't make a difference because the predicates are unique enough such that subjects can only be linked together in a certain way. In other cases, type checking was fully redundant, but could still speed up queries when removed. Check out this commit for all these query-related changes: https://github.com/lblod/worship-submissions-graph-dispatcher-service/pull/25/commits/7155a8e169e48852207595663395b8b1bcd9c113

Healing and processing a submission were so similar that I merged the code.
-> ok
It also heals the triples for physical files (share://...) now. This was not there before. This service used to attempt to heal triples for all the subjects but would never find the triples because they are in a different graph (the graph for the files-consumer). I think this will come in handy when dispatching rules change and subjects need to be copied to another graph as well. The file-consumer does not have healing or a mechanism to do that on its own(?).
-> indeed missing; best to have it
The main improvement for this PR is that it no longer removes all the data for the submission, before inserting the same things again. Instead it tries to figure out the difference between calculated destinators and the current graphs the data can be found, and the number of triples per subject. This causes less deletions and insertions in the database, while still maintaining correct updates to the data.
-> ok; to see whether it really fixes the issues; we'll have to run it in prod
A lot of speed-up can be achieved by making the SPARQL queries simpler. Some queries can be sped up from 15s to 0.1s on my local machine. The downside is that they might be less accurate. E.g. I removed type checking in a lot of queries. Shouldn't make a difference because the predicates are unique enough such that subjects can only be linked together in a certain way. In other cases, type checking was fully redundant, but could still speed up queries when removed. Check out this commit for all these query-related changes: https://github.com/lblod/worship-submissions-graph-dispatcher-service/commit/7155a8e169e48852207595663395b8b1bcd9c113
-> I saw; I don't understand but ok! Functionally it's not going to change a lot as the ?subject is always bound.


[WIP]login tests uses temp dir as --cert-dir

use temp dir as --cert-dir in login_logout_test to see if it can passs rootless test.
Signed-off-by: Qi Wang<EMAIL_ADDRESS>

unfortunately all kinds of test unhappiness here @QiWang19

session = podmanTest.Podman([]string{"run", "--authfile", authFile, testImg}) failed because podman run doesn't have --cert-dir option.  It should work if we add --cert-dir to create&run or use https://github.com/containers/image/pull/817 to add a default directory to SystemContext

@QiWang19 What is going on with this PR?  You have not touched it in a month? Still working on it?

@QiWang19 What is going on with this PR? You have not touched it in a month? Still working on it?

need to use https://github.com/containers/image/pull/817 using $HOME/.config/containers/certs.d as default certs directory. Wait for it to be vendored into libpod.

@QiWang19 Is this one ready to be started again, since a new version of containers/image was released?

@QiWang19 needs a rebase.

The tests changes LGTM, but it looks like you've issues with tests.

@TomSweeneyRedHat @rhatdan PTAL

/lgtm

/approve


Trigger link_to_add_association mechanism using JavaScript (without clicking on a link)

I want to add input fields for nested attributes by JavaScript, not by clicking on the provided link_to_add_association link.
How can this be done?

At the moment this is not possible, other than manually triggering the link.

What workaround do you suggest? Just manually adding input fields?

I might have used the wrong word with "manually", because I ment triggering the link through code. So you could just as well put a link in your html (which might not be not visible), and trigger the click event using code.
But of course I have no idea what you are working on and without more information it is hard to give advice.

I have used the following jQuery to do this in the past:
$("#add_link").find(">:first-child").trigger("click")
I wrapped the link_to_add_association in a  with id of 'add_link and I just trigger a click event on the first child within that
As @nathanvda mentioned, you could then hide it with CSS.
Not sure on what would be required for it to work in vanilla JavaScript

Thank you, this worked for me.

Hi i am trying to run  the same call from chrome console but nothing happens. is there any  work around?
Thanks

Hi @Dutsik please open a new issue and show your view code and how you tried to trigger the link.


Make target directory configurable

Leftover from #3267

Migrated to https://github.com/uniget-org/cli/issues/20


[Variable Scope request] Ability to add more parameters for Exch. Rate Adjustment feature

Please modify Report 596 "Exch. Rate Adjustment" so that we can add more parameter to this report and transfer to Adjustment process (Codeunit 699 "Exch. Rate Adjmt. Process").
With Report 596 "Exch. Rate Adjustment", on "RunAdjustmentProcess" procedure, please make variable ExchRateAdjmtParameters (Record "Exch. Rate Adjmt. Parameters") to GLOBAL PROTECTED variable.
So that, I can add more parameters into "Exch. Rate Adjmt. Parameters" and transfer to (use in) Codeunit 699 "Exch. Rate Adjmt. Process".

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 10719.


Invalid configuration object

I'm trying to add the following plugin  but I get the error in subject.
What am I missing?
config.resolve = {
    "plugins": [
        ["transform-imports", {
            "react-bootstrap": {
                "transform": "react-bootstrap/lib/Navbar",
                "preventFullImport": true
            }
        }]
    ]
  }

my code stayed like this
config = injectBabelPlugin(
    [
      'transform-imports',
      {
        'redux-form': {
          transform: 'redux-form/es/${member}',
          preventFullImport: true
        }
      }
    ],
    config
  )


test: updates snapshot operation with sanitary checks

This change includes sanitary checks to Snapshot operation.
What is the problem:
If an empty string is being passed on to snapshot operations(#snapshotTable, #listSnapshot) then it fails with Unimplemented method found exception message.
com.google.bigtable.repackaged.com.google.common.util.concurrent.UncheckedExecutionException: com.google.bigtable.repackaged.io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found.

Impact of this change:
Now snapshot operations would not fail with "" anymore. Also, These methods will behave the same as the HBase API when passing an empty string or null.

Towards #2253

This PR is ready for fresh rounds of review. PTAL


clarify findOne<and...> documentation

@tkaye407 Please review. This clarifies how the findOne and findOneAnd... methods behave

@tkaye407 good catch on return -> returns, incorporated


Install error

The python3 setup.py build did not create build/lib/ folder and file.
So I got an error while I python3 setup.py install

thanks.

I could not reproduce this on my server. Could you please provide more information on your environment, like distro flavor/version etc.?

@martelli
Thanks for your reply. I solved by pip install fbtftp on my server.
I think my problem maybe is python lib linking problem because I could not reproduce my problem on my mac too...

@martelli
I reproduce my problem on my mac.
After I command $python3 setup.py build. I want to rebuild it.
So I command:
fbtftp>$rm -r build
fbtftp>$rm -r dist
fbtftp>$rm -r fbtftp.egg-info
And I command $python3 setup.py build again. I got only stdout "running build".
In fbtftp folder, build, dist and fbtftp.egg-info not be recreate.

@smilesm2
Please try:
rm -fr build/ dist/ fbtftp.egg-info/
python3 setup.py build
This will create the directory dist only.
To create the other directories you mentioned, run:
python3 setup.py bdist (or bdisk_egg).

@martelli
Thanks for your reply.
Unfortunately it still not work...
I still got one line "running build" after I run python3 setup.py build


Android: Add location authorizationStatusChanged implementation

This pull request adds an Android implementation of the authorizationStatusChanged event channel that is already present in iOS.
It also adds support for the "NOT_DETERMINED" authorization status on Android.
This makes it easier to have cross platform flutter code listening to authorization changes on both platforms.
Incidentally, it also makes it easier to deal with concurrent requestPermissions calls on Android when used together with other plugins that might already have a permission request dialog - in that case, an app may listen for NOT_DETERMINED and try calling requestAuthorization again after a short delay.

Implement authorizationStatusChanged() for Android
(aka "eventChannelAuthorizationStatus")
(previously only available on iOS)

Add AuthorizationStatus NOT_DETERMINED on Android.
Use this for all denied cases except where the user has
checked "Don't Show Again".
(This was previously an iOS-only status value)

Better deal with concurrent requestPermissions prompts,
for example of another flutter plugin has an active requestPermissions open.
(This will trigger onRequestPermissionsResult with zero-length arrays,
which should emit NOT_DETERMINED again)

Also if requestAuthorization is called and permission was already granted,
then emit ALLOWED, otherwise authorizationStatusChanged() might miss out
on the fact that permission has been granted
(possibly via a different plugin's requestPermissions routine)

Thanks for the PR :)


Upgrade relative-deps dependency

Problem
relative-deps is locked to version 0.0.2 with latest being 1.0.7.
Proposed solution
running npm audit fix --force updates to the latest version.
(warning below)
><EMAIL_ADDRESS>prepare
> relative-deps

added 1052 packages, and audited 1054 packages in 3s

248 packages are looking for funding
  run `npm fund` for details

10 vulnerabilities (3 moderate, 7 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

npm audit fix --force will actually install 0.0.2:
glob-parent  <5.1.2
Severity: high
glob-parent vulnerable to Regular Expression Denial of Service in enclosure regex - https://github.com/advisories/GHSA-ww39-953v-wcq6
fix available via `npm audit fix --force`
Will install<EMAIL_ADDRESS>which is a breaking change

Keeping it at 1.0.7 since dropping down to the lower version will break how we use relative-deps.


nodejs: refactor build

nodejs refactoring
The build for nodejs was getting messy. Now that only v4 and v6 is left most could be moved to a generic nodejs.nix and v4.nix and v6.nix apply only minor overwrites respectively.
Furthermore:

Adds slim variations which exclude npm. This rids nodejs of a python runtime dependency reducing the closure size considerably
Removes shared library includes (as suggested by @vcunat in #19965

Is calling it "slim" some sort of JS convention? We generally call them "minimal".

@NeQuissimus lets say i've often seen it referred to as "slim" image - for example here. That being said I wouldn't mind much to just call it minimal. Want me to rename it?

I don't really care either way, just wanted to make sure we are not inventing something here :)

One more thing: In the initial comment you said that you are trying to make node.js smaller by basically removing the python/npm stuff. Can we make the buildInputs for the npm-only dependencies optional, dependent on whether npm is included or not?

@NeQuissimus @vcunat I ended up doing some refactoring of the nodejs derivations - I think they can use some cleaning up. I will put that up shortly and incorporate the changes there. Looking forward to your feedback ...

@NeQuissimus @vcunat alright - refactoring done. Please have a look. Maybe I should create a new PR for this?
@NeQuissimus I am now only adding python as build input if npm is not disabled.

travis times out or fails because of a python error that seems entirely unrelated.

Any other comments or suggestions on this?

I did some more changes:

I am passing disableNpm to be more explicit. Currently no need for other configure flags customizations anyway
I actually can't remove python2 from the buildInputs since it is always needed for building regardless of inclusion or exclusion of npm

I also adjusted the naming - so slim variations are actually nodejs-slim-${version}

@aneeshusa thanks- all fixed.

Meanwhile #19980 was merged but while it set nodejs to 6.x nodePackages was left to the 4.x packages. I changed this in this PR now.

I could use some help testing this - I think the changes are fine and I tried the normal and the slim variation with our big nodejs project at work and everything worked fine.
That being said I don't seem to be getting anywhere with travis builds. I also tried nox-review locally but I kept on running in seemingly unrelated issues that broke the build.
Who can help me? @LnL7 ? @cko ? @vcunat ?

Travis isn't mandatory, and it often fails due to trying to do too much (or other problems sometimes). It does seem OK and well-tested.

@vcunat thanks for merging - I apparently did do one mistake though that breaks stuff. I fixed this with #20100 - can you please merge that as well? Guess I shouldn't have changed that after all. Need to get feedback from @svanderburg


LVM pools using non-thinpool mode do not restore VM snapshots properly

When restoring a VM snapshot, only the config volume and not the block volume is restored.
Reproducer:
lxc storage create lvm lvm lvm.use_thinpool=false
lxc init images:ubuntu/focal v1 --vm -s lvm
lxc snapshot v1 # Take snapshot before creating foo.txt
lxc start v1
echo "foo" | lxc exec v1 -- tee /root/foo.txt
lxc stop v1
lxc restore v1 snap0 # This should restore snapshot to before foo.txt exists.
lxc start v1
lxc exec v1 -- stat /root/foo.txt # Should not be there but is!

Additionally our daily VM storage tests do not cover LVM in non-thinpool mode, so those should be updated to cover it.
https://github.com/lxc/lxc-ci/blob/master/bin/test-lxd-storage-vm

Working in this.

There doesn't actually seem a good way of restoring snapshots of block volumes on non-thinpool storage pools:

Copying (using dd) from the snapshot back to the main volume just fills up the snapshot CoW rendering it unsuable.
Creating a new volume and copying snapshot into it would work, but then cannot delete the original parent as it has snapshot(s).
Merging the snapshot into the main volume would work, but would delete the original snapshot.


Create x86-linux.cmake

Create x86-linux.cmake
Fix #8917, #14812

Not sure how really add a x86-linux.

config-x86-linux-rel-err.log
config-x86-linux-rel-out.log

If someone can help and suggest what to do next, that will be great.

I install:
sudo apt install gcc-multilib
It solve half of the problem, because now it looking for libstdc++ of 64 bit:
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.so when searching for -lstdc++
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.a when searching for -lstdc++

config-x86-linux-rel-err.log
config-x86-linux-rel-out.log
I try also to install:
sudo apt install lib32stdc++-9-dev-x32-cross
sudo apt install libstdc++-9-dev-i386-cross
It install other stdc++, but the compiler still choose the 64bit one (instead the 32)

May I ask why you want to build for 32 Bit Linux?

Maybe you can create a toolchain file like here and add the line  set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE /path/to/toolchain/file.cmake) to triplets/community/x86-linux.cmake

May I ask why you want to build for 32 Bit Linux?

To compile with android x86.

Maybe you can create a toolchain file like here and add the line  set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE /path/to/toolchain/file.cmake) to triplets/community/x86-linux.cmake

Thank you for the suggestion!
Where I need to put the toolchain file?

You can put the toolchain file wherever you want. Instead of set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE /path/to/toolchain/file.cmake) you can also set the environment variable VCPKG_CHAINLOAD_TOOLCHAIN_FILE to the path. For example
$ export VCPKG_CHAINLOAD_TOOLCHAIN_FILE=/path/to/toolchain/file.cmake
$ ./vcpkg install rappture:x86-linux

    : && /usr/bin/cc -fPIC  -m32  CMakeFiles/cmTC_30b6a.dir/testCCompiler.c.o -o cmTC_30b6a   && :
    /usr/bin/ld: cannot find Scrt1.o: No such file or directory
    /usr/bin/ld: cannot find crti.o: No such file or directory
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 when searching for libgcc_s.so.1
    /usr/bin/ld: cannot find libgcc_s.so.1
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc
    collect2: error: ld returned 1 exit status

@JackBoosY

    : && /usr/bin/cc -fPIC  -m32  CMakeFiles/cmTC_30b6a.dir/testCCompiler.c.o -o cmTC_30b6a   && :
    /usr/bin/ld: cannot find Scrt1.o: No such file or directory
    /usr/bin/ld: cannot find crti.o: No such file or directory
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 when searching for libgcc_s.so.1
    /usr/bin/ld: cannot find libgcc_s.so.1
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc
    collect2: error: ld returned 1 exit status

You need to install:
sudo apt install gcc-multilib
Then it will search for stdlib.

After some attempts but failed in the end, I need the help of my colleague.

I am closing this PR.
I wanted to compile for android, and here the solution.
I will make another PR to support armv6.
https://vcpkg.readthedocs.io/en/latest/users/android/