Elasticsearch Service on Amazon should work with iam_role from EC2 instance

It seems that elastic search service api is using the credentials from the /root/.aws mount volume for making api requests to AWS API.  We should be able to use the iam_role of the host EC2 machine to make the AWS API calls when aws credentials are missing.
$ docker run -d -p 9411:9411
-e STORAGE_TYPE=elasticsearch -e ES_AWS_DOMAIN=your_domain
-v $HOME/.aws:/root/.aws:ro
openzipkin/zipkin

It will, unless there are credentials there it will use the instance profile. The ES config uses the DefaultAWSCredentialsProviderChain which is documented here: https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/DefaultAWSCredentialsProviderChain.html

Thanks for the quick reply Devin.
Sounds great, that is the option I want to use.
May I ask if the docker instance will automatically query the amazon metadata service using the instace profile of the ec2 host?
My ec2 box has role assigned that has access to the elastic domain.  I only get the zipkin service to get access properly when providing the aws key and secret.  The docker image should automatically have access to that same instance profile I believe.
Thanks for your help.

My instances are deployed this way, I can confirm this works

from my ec2 box, the following works fine, so access policy seems ok for my instance profile:
aws es describe-elasticsearch-domain --domain-name tf-elastic-search --region us-east-1
I start docker instance as follows
docker run -d -p 9411:9411 -e STORAGE_TYPE=elasticsearch -e ES_AWS_DOMAIN=tf-elastic-search  openzipkin/zipkin

But when I go to zipkin server, i get the following error:
ERROR: cannot load service names: Response{protocol=http/1.1, code=403, message=Forbidden, url=https://es.us-east-1.amazonaws.com/2015-01-01/es/domain/tf-elastic-search}

next step on this would be to see if logging can show what the credential
chain sees, if anything. This could be zipkin regular logging or
elasticsearch's http debug.
https://github.com/openzipkin/zipkin/blob/master/zipkin-server/README.md

Thanks for the suggestino Adrian, that's what I would like to do, but I dont know how to run the zipkin server with live logs, or how to send the logs to a file.
I start zipkin with the following command
docker run -d -p 9411:9411 -e STORAGE_TYPE=elasticsearch -e ES_AWS_DOMAIN=tf-elastic-search openzipkin/zipkin
I've gone into the docker machine and see the following running process but cannot understand how to rerun in non-daemon mode
/bin/sh -c test -n "$STORAGE_TYPE" && source .${STORAGE_TYPE}_profile;     test -n "$KAFKA_BOOTSTRAP_SERVERS" && JAVA_OPTS="${JAVA_OPTS} -Dloader.path=ka     5 root       0:16 java -Djava.security.egd=file:/dev/./urandom -cp . org.springframework.boot.loader.PropertiesLauncher

all good, worked problem with aws support, problem was with policy definition on aws.  Thanks for the help.


Update browser versions being tested

Whilst trying to debug the IE / Big Sur issues (Raised tickets for both on Browserstack), I figured I'd bump the versions being tested

OOoh yes. Good point. Always a good idea.

Yep still all good. Will remove commit and merge


[feat] implements thrown error for appId and apiKey missing

In line with the fail fast philosophy, this PR causes one signal to fail if the apiKey or appId is empty. This is useful for use cases where env vars are being pulled from a config service that might result in empty string if they are not declared.

Thanks for the PR @miguelsolano . I don't see any benefit in enforcing users to give a non-empty string for the key and id. It is up to them to check the validity of the key and fail fast if they want to. Also, developers might intentionally give null/empty strings in their tests with mocked Clients.


Use stream api instead of while loop to read tail of file

Coverage decreased (-1.1%) to 96.61% when pulling a07dd872b4f23da91509f15ccbc5b7b9af44462d on refactor-to-streams into d693556c4dc3490a3c09080f43d2816f2bf4d927 on master.

Coverage decreased (-68.83%) to 28.89% when pulling f419d5ec75cef7eed6f9e298db4f6959ef100c64 on refactor-to-streams into d693556c4dc3490a3c09080f43d2816f2bf4d927 on master.

Coverage decreased (-68.83%) to 28.89% when pulling 66b5f50dbcaf4c10af3a542464819903e9c67640 on refactor-to-streams into d693556c4dc3490a3c09080f43d2816f2bf4d927 on master.

Coverage decreased (-79.86%) to 17.86% when pulling b79f2a52a7d2f660690a9cbb19ad539c1ec06da9 on refactor-to-streams into d693556c4dc3490a3c09080f43d2816f2bf4d927 on master.

Coverage decreased (-79.86%) to 17.86% when pulling 5ef16f5121a0f1fd7f551546b240954afb7fa5b1 on refactor-to-streams into d693556c4dc3490a3c09080f43d2816f2bf4d927 on master.

Hi, what about this PR? Would like to see it in your master and in next release...

@lukashinsch Hi, what about this PR? Would like to see it in your master and in next release...

I need to check why I stopped working on this, probably needs some more work. I'll look into it as soon as I get a chance.

Since this is an internal refactoring I released 0.2.9 without the changes


graphql_codegen is incompatible with analyzer 6+

Example output when upgrading to latest freezed:
Because no versions of graphql_codegen match >0.13.5 <0.14.0 and graphql_codegen 0.13.5 depends on gql_code_builder ^0.7.1, graphql_codegen ^0.13.5 requires gql_code_builder ^0.7.1.
And because gql_code_builder >=0.6.1-alpha+1666796125497 depends on analyzer >=4.6.0 <6.0.0 and freezed >=2.4.2 depends on analyzer ^6.0.0, graphql_codegen ^0.13.5 is incompatible with freezed >=2.4.2.
So, because joinably depends on both freezed ^2.4.2 and graphql_codegen ^0.13.5, version solving failed.

Should be fixed in latest version!


'package:flutter/src/widgets/transitions.dart': Failed assertion: line 43 pos 15: 'listenable != I/flutter ( 3529): null': is not true.

I/flutter ( 3529): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 3529): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 3529): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 3529):   https://github.com/flutter/flutter/issues/new
I/flutter ( 3529): When the exception was thrown, this was the stack:

import 'package:flutter/material.dart';
import 'package:flutter/animation.dart';

class AnimatedLogo extends AnimatedWidget {
  // The Tweens are static because they don't change.
  static final _opacityTween = new Tween<double>(begin: 0.1, end: 1.0);
  static final _sizeTween = new Tween<double>(begin: 0.0, end: 300.0);

  AnimatedLogo({Key key, Animation<double> animation})
      : super(key: key, listenable: animation);

  Widget build(BuildContext context) {
    final Animation<double> animation = listenable;
    return new Center(
      child: new Opacity(
        opacity: _opacityTween.evaluate(animation),
        child: new Container(
          margin: new EdgeInsets.symmetric(vertical: 10.0),
          height: _sizeTween.evaluate(animation),
          width: _sizeTween.evaluate(animation),
          child: new FlutterLogo(),
        ),
      ),
    );
  }
}

class InputScreen extends StatefulWidget {
  @override
  _InputScreenState createState() => _InputScreenState();
}

class _InputScreenState extends State<InputScreen> with SingleTickerProviderStateMixin {
  Animation<double> animation;
  AnimationController controller;

  initState() {
    super.initState();
    controller = new AnimationController(
        duration: const Duration(milliseconds: 2000), vsync: this);
    animation = new CurvedAnimation(parent: controller, curve: Curves.easeIn);

    animation.addListener(() {
            setState(() {
              // the animation object’s value is the changed state
            });
          });

    controller.forward();
  }

  Widget build(BuildContext context) {
    return new AnimatedLogo(animation: animation);

  }

  dispose() {
    controller.dispose();
    super.dispose();
  }
}`

I've tried your app, restarted it a few times, and I'm not seeing the error.
Can you provide the output from flutter doctor - so we can see what version of Flutter you're running - and any details about how exactly to trigger the error.
Note also: the animation.addListener() statement in initState() isn't needed.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

It probably needs a restart, I was facing the same error while doing hot restart. The error went away upon restart.

@pravaibh can you please post a runnable reproduction and instructions how to reproduce.
Please also add the output of flutter doctor -v.

@zoechi I can't seem to reproduce it in my code either. The issue initially came up when I tried something similar to @Jellevanlith35 's code while my application was already up and went for a hot-reload. A restart after application shutdown helped me at that time. I will raise a separate issue if I come across the issue again.

I've with similar problem
'package:flutter/src/widgets/transitions.dart': Failed assertion: line 1427 pos 16: 'animation != null': is not true.
Y_Y

I'm having this issue with iOs 14 and Flutter 1.22.1 , flutter: 'package:flutter/src/widgets/transitions.dart': Failed assertion: line 1420 pos 15: 'animation !=. And "restart" workaround is not working :/

Still this issue seems to be happening.


Deploy Your First SAPUI5 App

Tutorials: https://developers.sap.com/tutorials/appstudio-sapui5-create.html
I have found the tutorial is not quite accurate. Step 4 can't be done because the deployment config is not generated even after following Step 3. Running npm run deploy-config is needed to generate the config file.

Hi there,
Sorry to hear that you are having an issue. I am currently reaching out to a member of  the product team to further assist you. Thank you for your patience.
Kind regards,
Conrad (SAP UX Engineering)

Hi,
Can you please re-run the steps again ensuring you have selected Yes to Add deployment configuration. This step generates the mta.yaml to allow you deploy the application to CF. This flow calls the same logic as the deploy-config command.
Assuming you are on Business Application Studio, when repeating the steps, ensure you enable the output tab by selecting View - Output - Application Wizard.Templates. If there is any issue with the generation of the application or the mta.yaml it should output here.
Please let me know how you get.
Thanks.
John

Thank you for your feedback. We haven't heard from you in a while, so we are closing the issue.
If you still have questions, feel free to reopen the issue.


Extended Count-Min Sketch support by implementing CMS.MERGE command

Closes #1057

Much prefer this approach. I think it makes for more readable and understandable code. The unit tests have more value this way. I think == path forward.

Also appreciate our settling on casing.


Add in Lab name to the module

This would allow me to create a Lab called "Default 2012R2" and then also a "Default 2008R2" lab config and then in Start-LabConfig & Start-Lab just call an additional -LabName Parameter which would then look for configurations in a sub Folder of the Configuration directory.
This could be useful for Lab Configurations for SharePoint 2013/2016 or SQL 2012/2014/2016 etc and would be easier work with.
I would expect this would work off of the Lability EnvironmentPrefix attribute for the Sub Folder & Lab Name Creation and that would be my suggested implementation method

@kilasuit This was discussed initially in issue #43. This will definately be needed if we ever progress onto AWS and/or Azure publishing.
Whatever we choose to implement has to be implemented in such a way that if a Lab name is not defined in .psd1 file, things still work. I have committed to being able to use an existing DSC configuration document without any modifications.

@kilasuit Just thinking this through. If we were to extended the configuration data with a lab name, then we could infer this without a -LabName parameter. For example:
@{
    NonNodeData = @{
        Lability = @{
            LabName = 'My Test Lab';
        }
    }
}

This would allow us to infer the subdirectory without having to specify the -LabName parameter (I still think that you should be able to override it if required).
An alternative could be to search recursively from the Configuration directory root? This might cause issues if you have multiple configurations with the same VM names though..
Thoughts?

I think that perhaps combining LabName & EnvironmentPrefix would be a good safe bet.
This I would then think would end up something like the below
@{
    NonNodeData = @{
        Lability = @{
            LabName = 'My Test Lab';
            EnvironmentPrefix = 'TLG-';
        }
    }
}

And then VM's would be named
My Test Lab\TLG-VMName

This then would give the below file paths of
C:\Lability\Configurations\My Test Lab\TLG-VMName.mof
C:\Lability\Configurations\My Test Lab\TLG-VMName.meta.mof
C:\Lability\VMVirtualHardDisks\My Test Lab\TLG-VMName.vhdx

That way it shouldn't cause filename or path issues for the files

This sounds logical. Wouldn't/shouldn't the file paths be:
C:\Lability\Configurations\My Test Lab\VMName.mof
C:\Lability\Configurations\My Test Lab\VMName.meta.mof
C:\Lability\VMVirtualHardDisks\My Test Lab\TLG-VMName.vhdx

The .mof files wouldn't/shouldn't be prefixed as that's a Lability "thing"?

Yes - that makes sense especially when stored in the right lab folders so there would be no need to prefix the mof files.
Vhdx & the resulting Vm's however should still have this in my opinion.

@kilasuit Whilst the EnvironmentName, EnvironmentPrefix and EnvironmentSuffix keywords have been implemented, placing the VHD files into the EnvironmentName subdirectory hasn't yet been implemented. I'll start work on this (why doesn't Hyper-V support folders for VMs?!).

Looping @rikhepworth in here as implementing virtual switches with the prefix/suffix has also been raised. Here are my initial/random thoughts:

We would need to provide a way to opt in/out of whatever we implement
We could only prefix virtual switches if they're Internal or Private.

If a vSwitch is marked as External we'll leave it alone

In fact, can you have multiple vSwitches bound to one physical NIC?

Would we need to be able to specify an IP address on an Internal or External vSwitch?

This could be used for VM communication without relying on DHCP/APIPA.
If so, how could we support multiple switches?

Seemingly, only a single NAT configuration can be deployed on Win 10/Server 2016

Wish in #44
Therefore, multiple virtual switches couldn't work 😭.

Anything else that I've missed?!

@iainbrighton whilst you can only have one netnat the internal address prefix can be set so that you can span multiple address ranges.
We use <IP_ADDRESS>/19 for our Lability project, allowing us to have 20 /24 subnets from .224.0/24 up to .254.0/24
Our thoughts were that we would define a switch and address range for an environment. If the subnet was already in use we'd fail the deployment. If not, we'd create the switch, assign the IP and deploy the VMs. That said, we are able to apply constraints in our config (defining max and min network values, for example) that you can't really do within Lability.
I guess, if you want to get clever, you could check for the netnat, assess whether the network range for the switch falls within the range for the netnat, etc. If you wanted to go as far as creating a new netnat, I'd advise bailing if one already exists.
I'd strongly urge against external switches. They are a real pain if you don't have a physical adapter. Netnat would be my preference as a one-size-fits all approach. The only time I'd agree to an external switch is if I had to allow inbound traffic to the virtual network and I didn't want to define any nat mappings on the host.
You don't set the IP on the virtual switch, but on the adapter created on the host (which includes the name of the vswitch in brackets so you can find it).
My thoughts:

I need to be able to specify a set virtual switch even if the environment/VMs have a prefix specified.
I think excluding 'external' virtual switches is a reasonable constraint.
If a new virtual switch is created, the IP address on the resulting NIC on the host should get an IP address if I specify one in the config, and not if not (windows will give it a 169.x.x.x address in that case)
I would treat netnat as something that is part of the Host config, not part of an Environment. I'd create it as part of the lab host configuration and allow the internaladdressprefix to be defined in the hostdefault. Potentially, (maybe a setting), I would block the creation of network addresses and ranges that don't sit within the netnat.
If I specify a private switch we don't need to check any of the above...


Slack integration

To provide a better user experience for yunity, the SysCons could be integrated in Slack.
Notifications and interactive messages (two-way communication) are possible. The latter would allow us to do the voting directly in Slack and record the result on the syscon.yunity.org website.
I already created a bot user for this purpose and tested out some Slack API calls. Next steps would be to create a simple interface between Slack and the quick-syscon tool.
What do we need?

Posting a notification to a Slack channel
Posting a interactive voting message to a Slack channel
Receive feedback from a Slack user to the interactive voting message (resistance/no resistance)

To watch the response from Slack, direct the response URL to https://syscon.yunity.org/nginxlog.
The access to this URL will be logged to /home/deploy_syscon/postdata.log on yuca.yunity.org. Configuration for this behaviour is in /etc/nginx/sites-available/syscon.

Inspiration for usability: https://www.polly.ai/feature-simple-polling

@NerdyProjects are you planning to work on this in the next month? Did you achieve intermediate results?

I was just reading a bit into the slack API possibilities. To me, the specifications are not clear enough. I have my own vision in mind of how it could be but that would need code changes anyway. I am not comfortable in the nodejs and do not really see a way to parallelize the work of finding out the slack API and implementing that

I do not plan to work on this in the next month, foodsharing.de is my only project for now. Sorry, I did not really communicate that.

no slack integration in the near future


[jvm-packages] Clean up CI

Closes https://github.com/dmlc/xgboost/issues/10879

Properly handle shaded JARs
Remove xgboost4j-tester
Remove unused Maven profiles
Update the CI pipelines to deploy the shaded JARs (xgboost4j-spark / xgboost4j-spark-gpu)

Note. I will submit a follow-up PR to update dev/prepare_jvm_release.py.
New workflow:

mvn deploy -Pdefault,release-to-s3, to deploy all CPU packages (xgboost4j, xgboost4j-example, xgboost4j-spark, xgboost4j-flink).
mvn clean to clean all artifacts
mvn install -Pgpu, to build xgboost4j and xgboost4j-spark-gpu with CUDA enabled and to install them locally.
mvn deploy -Pgpu,release-to-s3 -pl xgboost4j-spark-gpu to deploy xgboost4j-spark-gpu only.

@wbo4958 The PR is now ready for review.

Remove xgboost4j-tester

Is there an alternative? We have no test for xgboost jvm demos.

I'll bring back the integration tests.

Marking as draft until I bring back the integration tests.

@wbo4958 I moved the integration tests so that mvn test -pl xgboost4j-example will run them. I discovered that some demos were left out in the previous version of integration tests. Now all demos have test coverage.

I assume we can close this one as well https://github.com/dmlc/xgboost/issues/7262 ?


NodeDriver naming

On develop, we now have:
% feditest list-nodedrivers
imp.ImpInProcessNodeDriver
manual.ManualFediverseNodeDriver
mastodon.manual.MastodonManualNodeDriver
mastodon.ubos.MastodonUbosNodeDriver
saas.SaasFediverseNodeDriver
sandbox.SandboxMultClientDriver_ImplementationA
sandbox.SandboxMultServerDriver_Implementation1
sandbox.SandboxMultServerDriver_Implementation2Faulty
wordpress.WordPressPlusActivityPubPluginUbosNodeDriver

which isn't internally consistent: the Mastodon ones have an extra package, and they repeat themselves: eg "manual" is in the name twice. Also the feditest-tests-fediverse Makefiles don't run any more due to this change.
The names of these drivers is part of the "UX" for feditest, and so it's worth pondering what's the most easily usable.
I'm not enough of a Python hacker to figure out whether there is a way to keep the classes in the files they are in, while exporting them with a different name (and still using the @nodedriver annotation).

@jernst
I'm back. I'll take a look at this but I don't have a good understanding of the problem yet.

% feditest list-nodedrivers
...
manual.ManualFediverseNodeDriver
mastodon.manual.MastodonManualNodeDriver
mastodon.ubos.MastodonUbosNodeDriver
...

which isn't internally consistent: the Mastodon ones have an extra package, and they repeat themselves: eg "manual" is in the name twice.

That was already the case with manual.ManualFediverseNodeDriver, right? I'll need to study the node driver plugin implementation to determine why the extra module level in the path is a problem. That constraint is surprising to me.

Also the feditest-tests-fediverse Makefiles don't run any more due to this change.

I tested with feditest directly and I thought it was working. Can you describe the steps for reproducing the Makefile problem?

The names of these drivers is part of the "UX" for feditest, and so it's worth pondering what's the most easily usable.

Do you think the extra module entry in the path is a significant UX/DX/usability issue?

I'm not enough of a Python hacker to figure out whether there is a way to keep the classes in the files they are in, while exporting them with a different name (and still using the @nodedriver annotation).

I may have suggestions after I study the node driver plugin discovery code further.

I'm in the middle of making the Node and NodeDriver hierarchy simpler, and it impacts this. See also #250

This is done with #252.


Support anchors

I like deep linking. Is it possible that the template also adapts the URL if sections are switched? For instance, if I click on "Usage" at http://t413.com/SinglePaged/ the link should get http://t413.com/SinglePaged/#Usage. Then, if someone else clicks that link, the page should directly jump to "Usage".

It already does, the URL is http://t413.com/SinglePaged/#usage

If I click on "Why", #usage does not change to #why.

The position when using # in the link differs from the position when navigating with the heading.

The position when using # in the link differs from the position when navigating with the navigation bar.

This is a good feature idea that should be added. @sriharshachilakapati is right that this does more-or-less work already, but having the javascript jumping code handle this to a consistant position would be better.


Automated cherry pick of #2652: 修改 Makefile 获取当前分支的方式

Cherry pick of #2652 on release/2.12.
#2652: 修改 Makefile 获取当前分支的方式

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.12@0d1afa9). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             release/2.12   #2653   +/-   ##
==============================================
  Coverage                ?    7.1%
==============================================
  Files                   ?     466
  Lines                   ?   73472
  Branches                ?       0
==============================================
  Hits                    ?    5222
  Misses                  ?   67820
  Partials                ?     430

Flag
Coverage Δ

#aFlag
7.1% <ø> (?)

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 0d1afa9...785f1c8. Read the comment docs.

/approve
/lgtm


cmd/go: can't build a static binary since Go 1.15

What version of Go are you using (go version)?

$ go version
go version go1.15 linux/amd64

Does this issue reproduce with the latest release?
Yes (Go 1.15)
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="off"
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="0"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build855769531=/tmp/go-build -gno-record-gcc-switches"

What did you do?
Can't build a static binary since Go 1.15.

Go 1.15 should produce a static binary
What did you see instead?
Go 1.15 produced a dynamic binary

From the Go 1.15 release notes:

The linker now defaults to internal linking mode for -buildmode=pie on linux/amd64

So your -buildmode=pie flag is forcing internal linking. If you change this part:
-ldflags '-extldflags "-fno-PIC -static"'

to force external linking, like this:
-ldflags '-linkmode external -extldflags "-fno-PIC -static"'

it should produce a static binary. Does this work?

Yes, thanks, any chance to have this explained in the release note?

Thank you for confirming. I've opened #40719 to track a possible release notes addition.

-ldflags '-linkmode external -extldflags "-fno-PIC -static"'

Hi, I am trying to obtain a simple helloworld program that is both statically linked and is position independent. Untill now I managed to get one or the other but not both.
If I use something like this:
go build -buildmode=pie -ldflags '-linkmode external -extldflags "-static"'
it is statically linked but not PIE.
If I use something like this:
go build -buildmode=pie -ldflags '-extldflags "-static"'
it is PIE but it is not statically linked.
What is the correct way to do this? I am using version 1.15.6 linux/amd64

@danield20 We prefer to keep our issues focused on a single problem.  Please don't raise different problems on an existing issue.
We also don't use our issue tracker for questions.  Please see https://golang.org/wiki/Questions.  Thanks.


fix(TemplateLibrary): Style for search box

Issue #183

Changes

Modified style for search box.

As with button style, I've had to add style on styles.css as most of the style comes from React UI.
Modified style on React component (height). Not sure if measures are correct as I've had to adapt them myself.

@Michael-Grover Fixed!

@abnazhor please @ me after @Michael-Grover reviews and you've addressed any further changes, wanting to test this locally after that.

@Michael-Grover I don't think so, haven't changed anything related to font size.

@abnazhor for some reason, when I run this locally, the font size is smaller than the Netlify previews. I don't think it's related to your PR, so never mind.

@abnazhor any progress on this?

All the issues were addressed a few days ago!

I think we should still implement the change I mentioned here: https://github.com/accordproject/cicero-ui/pull/190/files#r339640448

That change has already been implemented adding a transparent background colour instead of a solid one, to remove any kind of solid background this input has, as you suggested.

Closing as stale, feel free to come back to it @abnazhor!

But... It was already modified...

Ah alright, sorry about that!


Performance issue with struct encoding

I have encountered some performance issues when generating JSON response in Phoenix framework, encoding Ecto.Model to JSON using poison. To nail down the issue, I added some benchmarks,
bench "structs (Poison)", [struct: gen_struct] do
  Poison.encode!(struct)
end

defmodule TheStruct do
  defstruct name: "John", age: 27
end

defp gen_struct do
  1..10 |> Enum.map(&(%TheStruct{name: "John#{&1}", age: &1 }))
end

Encoding structs appears to be extremely slow, e.g.
structs (Poison)                           100   19073.38 µs/op

while the same benchmark with Map instead of struct
defp gen_struct do
  1..10 |> Enum.map(&(%{name: "John#{&1}", age: &1 }))
end

gives orders of magnitude better perf,
structs (Poison)                         10000   109.68 µs/op

I am total noob as far as elixir is concerned, so I might be doing something totally flawed in the benchmark. The issue is probably not even directly related to the Poison as I have noticed the same performance drop in other Elixir JSON libraries, e.g.
structs (JSX)                              100   18999.76 µs/op
structs (Jazz)                             100   19457.10 µs/op

Benchmark for structs can be found in commit 6c6827f9032ac59cec6e29442589cf6a70f06556
Version info:
Elixir 1.0.5
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

+1
I've also encountered this while investigating a performance bottleneck in a Phoenix application that generates JSON responses. I ran a similar benchmark and got similar results: about two orders of magnitude performance difference between a struct and its equivalent map. Erlang/OTP 18 also gives similar results.

Unfortunately, I believe this is inherent in Elixir protocols for the Any fallback. Maybe @josevalim can shed some light?

@devinus I think we should make Poison derivable and tell people to start deriving the structs. It would also be a great opportunity to support :only/:except:
@derive Poison.Encoder
defstruct ...

@derive {Poison.Encoder, only: [:name, :age]}
defstruct ...

And so on. We can't make Any fallbacks any faster.

@josevalim How can I implement that?

@devinus Here is an example: https://github.com/phoenixframework/phoenix/blob/master/lib/phoenix/param.ex
Notice the API slightly changed between 1.0 -> 1.1 (one calls Map, the other calls Any).

@josevalim Got it, thanks.

This will be part of Poison 2.0. Updates this weekend.

@devinus let me know when you have something ready so I can sanity check. :)

I will have a PR ready for this tonight and will merge after @josevalim's much appreciated review! :grin:

This is part of Poison 1.5.0. No API changes required, but if you want super speed then @derive [Poison.Encoder] in your structs.

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:

This is awesome!

Thanks, I just updated to 1.5.0 and tried @derive [Poison.Encoder] in my application, and things look great!


document how to migrate a module

still missing: how to publish

this is taken from @nibalizer's first email to @liamjbennett.

i'll try to publish one of mine to the forge today, and document that process

KK modules/admin team created. And puppetboard and liam teams deleted, im not gonna mess with modules/network/admin or modules/admanda/admin. I also think tools/lint/admin is a perfectly valid group.

now to fix this line and merge this pr

@nibalizer hope this is more accurate now.
will try to deploy stuff with travis now!

Just wanted to :+1: these changes. I think the process has been very smooth so far. Well done.

:heart:


Support Pyrogram New Version

Not so important, but if anyone want upgrade pyrogram can use this this commit.

@yasirarism i think this will break code compatibility so better to freeze at his old stable version

I had tes it before working fine, except pyrogram updated with big update again that need some changes or you can lock pyrogram version with recent pyrogram update. But if you want keep old version you can close this pull request.


mark as read when is opened

I work with a multimonitor system and I leave slack in a monitor but when there is something in chat is required an action with the mouse to mark as read the message.
Is possible add an option for that?

Slack provides keyboard shortcuts for marking messages as read, here's a tweet about them:
https://twitter.com/slackhq/status/473947505827119105
That screen can be accessed via the team dropdown and selecting "Preferences".

Ok but is not the feature that i want. In this way I can only change the behaviour of marking as read the message with the scrolling.
I want only when I have the window opened in channel opened not alert to me new message and mark as read but only in that channel.

Ah, sorry. I misinterpretted your request as a keyboard shortcut request. While I think it's possible, I don't think it's a feasible feature to build/maintain. The logic would look like:

When we receive a new message

If window isn't visible, do nothing (prob requires talking to X11)
Press ESC or run some other code in Slack to mark message as read

But then there are edge cases like, what if you are AFK or marked as Away within Slack? You prob wouldn't want messages marked as read then but that would be yet another setting/feature to implement.

In that case I already turn off the client so in my case is not a problem.
I can understand that is an edge cases I can work on a my solution when I have time maybe something with xdotool that trigger the click on the window :-)


Large Binary Attachment to an event

Suppose that a rare event happens and the app takes its own screenshot. Due to its size and lack of structure, the image will not fit into the event processing pipeline.  However I want those screenshots collected and correlated with other events, but I don't want to write my own logging system just for that.
Ideally you would accept the BLOB though your Objective-C API, compute SHA256 hash of the BLOB, drop the hash into your regular event pipeline, and upload the BLOB directly to S3, bypassing the rest of the event pipeline. iOS has background upload API that should work well for this purpose.
I guess I could add an API wrapper myself, but it would help if you had that out of the box. Standard tooling support for BLOB attachments would be great as well.

Interesting idea @DenisAmp !


Create SDK Documentation

As a team member, I need to create straightforward documentation for the SDK, covering scanning, authentication, and licensing. The documentation should be easily understandable for developers integrating the SDK into their applications.

TIKI Data Provider Client Library (Capacitor + Vue.js)
The TIKI Data Provider API is based on HTTP, making it compatible with any standard HTTP client for sending requests and processing responses.
However, the TIKI Data Provider Client Library goes a step further by providing enhanced Capacitor integration, pre-built UIs, improved security measures, and support for calls requiring user authorization. By leveraging this library, you can eliminate the necessity of manually configuring HTTP requests and parsing responses.
Installation
With Vue >=3.0.0
npm i @mytiki/data-provider

With Vue 2.7.14
npm i @mytiki/data-provider-vue2

Next, if you don't already have a publishingId from TIKI, create a free account and make a project at console.mytiki.com.
Getting Started

Register the plugin with your Vue app

With Vue >=3.0.0
import { createApp } from "vue";
import App from<EMAIL_ADDRESS>
import Tiki from "@mytiki/data-provider";

createApp(App)
    .use(Tiki, {
      company: {
        name: "Company Inc.",
        jurisdiction: "Tennessee, USA",
        privacy: "https://your-co.com/privacy",
        terms: "https://your-co.com/terms",
      },
      publishingId: "YOUR TIKI PUBLISHING ID",
    })
    .mount("#app");

With Vue 2.7.15
import Vue from "vue";
import App from "./app.vue";

import Tiki from "@mytiki/data-provider-vue2";

Vue.use(Tiki, {
  company: {
    name: "Company Inc.",
    jurisdiction: "Tennessee, USA",
    privacy: "https://your-co.com/privacy",
    terms: "https://your-co.com/terms",
  },
  publishingId: "YOUR TIKI PUBLISHING ID",
});

new Vue({ render: (h) => h(App) }).$mount("#app");

This registers the Vue Component as TikiReceipt and provides the service TikiService as an injectable object name Tiki.

Add the stylesheet for the component to your primary stylesheet (e.g. main.css)

With Vue >=3.0.0
@import<EMAIL_ADDRESS>
With Vue 2.7.15
@import<EMAIL_ADDRESS>
Initialization
To initialize just inject the TikiService and pass in your systems unique identifier for the user. If you use emails (you shouldn't 😝), we recommend hashing it first.
With Vue >=3.0.0
<script setup lang="ts">
  import { inject } from "vue";
  import { type TikiService } from "@mytiki/data-provider";

  const tiki: TikiService | undefined = inject("Tiki");
  tiki?.initialize(id).then(() => console.log("Tiki Initialized"));
</script>

With Vue 2.7.15
<script setup lang="ts">
  import { inject } from "vue";
  import { type TikiService } from "@mytiki/data-provider-vue2";

  const tiki: TikiService | undefined = inject("Tiki");
  tiki?.initialize(id).then(() => console.log("Tiki Initialized"));
</script>

Receipt Scanning
Utilize the TikiService.scan() method to initiate the scanning of a receipt. This method returns a Promise containing the receipt ID, which can be employed to monitor the progress of receipt parsing through the API.
const receiptId = await TikiService.scan();

Before initiating the receipt scan, the /licenses API endpoint is invoked to validate the user's license. In case of an invalid license, the user is prompted to accept the license terms before gaining access to the camera for scanning.
The Capacitor camera plugin is employed to open the camera and capture images for receipt scanning. Users have the flexibility to capture multiple images for scanning lengthy receipts. These images are temporarily stored in memory and later combined before the upload process.
Upon completion of the image capture, the resulting image is uploaded to the /receipts endpoint. The endpoint responds with the receipt ID, enabling users to track the progress of the receipt parsing.
Monitoring Receipt Parsing Progress
To check the parsing progress of a receipt, utilize the TikiService.progress(receiptId) method. This method calls the /receipts endpoint passing a receiptId which returns one of the following statuses: PROCESSING, REJECTED, or PUBLISHED.
const status = await TikiService.progress(receiptId);


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v3.9 to before v5.16.11",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d021c344051af91f42c5ba9fdedc176740cbd238",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=addd62a8cb6fa90aa322365c62487da61f6baab8"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "d021c344051af91f42c5ba9fdedc176740cbd238",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "addd62a8cb6fa90aa322365c62487da61f6baab8",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "vsock: remove vsock from connected table when connect is interrupted by a signal\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.16.11 by commit addd62a8cb6fa90aa322365c62487da61f6baab8, it was introduced in version v3.9 by commit d021c344051af91f42c5ba9fdedc176740cbd238. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2022-1000545


[Robots.txt] Clarify behavior when to close blocks of multiple user-agents

The RFC reference parser includes a unit test to verify that sitemap and other directives not covered by the RFC are just ignored and do not close blocks of rules. See robots_test.cc, line 126 expecting that BarBot is disallowed given:
User-agent: BarBot
Sitemap: https://foo.bar/sitemap
User-agent: *
Disallow: /

However, this interpretation might contradict the actual usage of certain non-RFC directives, see for example https://www.skyrock.com/robots.txt:
User-agent: *
Disallow: /cache/
Disallow: /demo/
...

User-agent: Twitterbot
Allow: /img/

User-agent: bingbot
Crawl-delay: 30

User-agent: 007ac9
User-agent: AhrefsBot
User-agent: LinqiaBot
User-agent: LinqiaRSSBot
User-agent: SMTBot
User-agent: HaosouSpider
User-agent: OpenindexSpider
User-agent: PetalBot
User-agent: serpstatbot
Disallow: /

...

It's likely not not intended to exclude bingbot entirely - in fact, it wouldn't make sense to define a crawl-delay if a user-agent is entirely excluded. See also the discussion in google/robotstxt#51.

Hi Sebastian,
The spirit of the line in the RFC was to treat rules undefined by the RFC as comments, which in your example, as you note, merges the bingbot group together with the group that's following it. This was introduced because more common RFC-undefined rules such as Sitemap were closing groups when it was plain obvious that that's not what the site owner meant to do (i.e. a block of disallow rules followed without a preceding user-agent). I think the current implementation is the best solution to that, but I'm open to suggestions if you have a better idea.

See also the comments in SimpleRobotRulesParser, line 629: it should be well defined which instructions close a block of rules.


Sphinx gettext using external TOC fails

Describe the bug
context
Running make gettext or sphinx-build -b gettext results in a crash every time.  The same crash occurs as long as there is at least one non-root entry in the TOC.  It always fails on the last file - if you have 100's of files, it will complete 99% and then crash.
expectation
Running gettext should not crash when using external TOC.  I've tried different machines with different Sphinx configs and narrowed it down to a very small repro case.
bug
Exception occurred:
  File "/usr/local/lib/python3.9/site-packages/sphinx/util/osutil.py", line 55, in canon_path
    return nativepath.replace(path.sep, SEP)
AttributeError: 'NoneType' object has no attribute 'replace'

problem
If you look at the traceback, it appears to occur here:
File "/usr/local/lib/python3.9/site-packages/sphinx/templates/gettext/message.pot_t", line 21, in top-level template code

You can work around this by turning off gettext_location.
Reproduce the bug
TOC:
root: test
entries:
 - file: test2.rst

Test.rst:
Test case for gettext
=====================

Lorem Ipsum

Test2.rst:
Test case for gettext
=====================

Lorem Ipsum

conf.py:
extensions = [
  "sphinx_external_toc"
]

external_toc_path = "ardk_toc.yml"
external_toc_exclude_missing = True

sphinx-err-plgr3qru.log
List your environment
# Sphinx version: 3.5.3
# Python version: 3.9.4 (CPython)
# Docutils version: 0.17 release
# Jinja2 version: 2.11.3

Heya, can you post the full traceback thanks

Did the attachment under the repro category not work?  I'm seeing the log there

Heya, fixed in https://github.com/executablebooks/sphinx-external-toc/commit/e3b8c1ce53fad8cf822ab079e08300b0f0d862a3


非方形图

你好，我想请问模型的inpainting生成图是否可以直接得到原图的分辨率（即原图size，非方形图）?

Hi, since the SD model by default supports 512x512 image, so my code was designed for that size.  If you try to use other sizes other than 512x512, there might be some error  being raised, you may need to modify the code.
As far as I known, the SD  supports for certain resolutions (e.g.,  320x512,  512x768 etc...  as long as disivsible by 64) but NOT any resolutions. So it is possilbe to run on these sizes, but the cost is  the quality might be compromised.

发件人: lccc666 @.>
发送时间: 2024年12月6日 11:29
收件人: ysy31415/unipaint @.>
抄送: Subscribed @.***>
主题: [Ext] [ysy31415/unipaint] Non-square Diagram (Issue #13)
CAUTION: External email. Do not reply, click on links or open attachments unless you recognize the sender and know the content is safe.
Hello, I would like to ask if the generated graph of the model can directly get the resolution of the original image (non-square diagram)?
―
Reply to this email directly, view it on GitHubhttps://github.com/ysy31415/unipaint/issues/13, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBVALB4FJCG5U3RIH7QSG532EEKZVAVCNFSM6AAAAABTD2I3LWVHI2DSMVQWIX3LMV43ASLTON2WKOZSG4ZDCOJWGM2TAOI.
You are receiving this because you are subscribed to this thread.

I see!! Thanks a lot for your prompt reply!!


DKIM settings for SMTP notifications

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
Other
🔖 Feature description
Hello,
Would it be possible to sign SMTP emails with DKIM?
This will increase the security of sending mail if the SPF and DMARC fields are correctly configured.
This also prevents emails from ending up in spam.
✔ Solution
To make this possible, from an interface point of view in SMTP notifications, I see the addition of 3 fields:

one for the domain,
another for the DKIM key selector,
and finally a field to be able to fill in the private key.

Technically modify the sending of emails in order to sign them with the information provided.
❓ Alternatives
No response
📝 Additional Context
Some sources on this technology :
https://wikipedia.org/wiki/DomainKeys_Identified_Mail

It's outside uptime-kuma scope. That's Your SMTP server should sign messages with DKIM.

Y

It's outside uptime-kuma scope. That's Your SMTP server should sign messages with DKIM. SMTP notification from Uptime-Kuma is an MUA/SMTP Client not MSA or MTA.

Exactly - DKIM is a key that you set into your mail-servers DNS records, nothing that uptime can do for you.
Think of uptime in this case as an email-client just connecting to the server sending an email.
You can read more here:
https://www.sparkpost.com/resources/email-explained/dkim-domainkeys-identified-mail/
Aside from that I think this topic can be closed.

I can't set my DKIM keys on my SMTP servers (1&1 for the quoted ones).
Sorry I thought it was possible to add it in this project, I don't develop in javascript.
All my applications have a private key with a selector on their domain name.
(The equivalent in PHP is PHPMailer, where it is possible to use this feature.)
Here is an example of a project (Wiki.js) that allows to define directly in the application the DKIM : https://github.com/Requarks/wiki
But if this is not possible for technical reasons, no worries, you can close the ticket ;)

Ok, but still key needs also to be present in the DNS entries of the domain... do you have this?
Aside from that, the phpmailer can indeed work with the private DKIM keys, however, not sure how Uptime-Kuma exactly sends emails.

Yes I have 3 applications that already use DKIM perfectly, I suggest it here if it is technically possible.
I really don't know js, so I don't know if there is already a DKIM support.
If I had the possibility to set the DKIM directly on the SMTP servers I would do it, but the solution I found is to sign the mail from the client. What I find more logical is to sign the mail closest to the sender to avoid that the message is modified by an SMTP.
If you want to check one of my DNS records, here is my DKIM public key from my bot discord : phpmailer._domainkey.marya.fr


Implement the sync API and require pre-allocated output buffers

Implement the changes introduced by https://github.com/webmachinelearning/webnn/pull/174
The changes include:

Change MLGraphBuilder.build and MLGraph.compute to sync API.
Change MLGraph.compute to require pre-allocated output buffers.
Simplify the the input / output resources binding by MLResource. Leave MLInput only for dynamic input shape case.

The corresponding webnn-polyfill issue https://github.com/webmachinelearning/webnn-polyfill/issues/81

closed by https://github.com/webmachinelearning/webnn-native/pull/35


Change glaziery preset icon

Well, it looks that way.
The same icon is used for a glaziery that is used for a firepit.  I think there is some mistake there.
It's also the same icon that is used for a fire station.  However, in OSM carto fire stations really are shown as a flame symbol.  I think that's very misleading, but that's really a different issue.
Basically, you're using the wrong icon for a glaziery.  Mark something as a glaziery and a flame symbol appears at the top of the info pane.

Hmm, yeah we should change glaziery.json to use "icon": "poi-tool"  (generic tools icon).

generic tools icon

I'm not sure a tools icon is a good match.  Tools are involved in cutting glass, but the product/service is glass cut to requested sizes.  The place I'm thinking of actually does frames and installation too, but glaziery is the closest OSM has to that sort of business.

I'm not sure a tools icon is a good match. Tools are involved in cutting glass, but the product/service is glass cut to requested sizes.

Oh I see.. We don't need to have an icon for every kind of thing, but what would an icon for this look like?  They install windows?  Or manufacture glass?  I really dont know what a glaziery is.

I drew a simple window icon:


Remove ToS checkbox

We now default add a label saying "by continuing you agree..." so you don't have to check the box every time you publish.

@seanyesmunt fine with me. It may need a comma: "By continuing, ..."


Series doesn't show up in the articles

Describe the bug
Series overview does not show up in the articles of the series as it does in the related documentation.
To Reproduce
I set up the configuration (actually, I used the default configuration)
in params.toml
[article]
  seriesOpened = true

in params.toml
[taxonomies]
  tag = "tags"
  category = "categories"
  series = "series"

for two articles:
title: 'Article 1'
series:
    - "Series of articles"
series_order: 1

title: 'Article 2'
series:
    - "Series of articles"
series_order: 2

Expected behavior
Just as in the documentation, there should be an overview of a list of articles belonging to the series. Unfortunately, nothing shows up (see screenshots).
Screenshots
How it should look like:

How it actually looks like:

Desktop (please complete the following information):

OS: macOS
Browser: Safari
Version: Version 17.4.1

Hugo & Blowfish versions

hugo v0.125.4+extended
blowfish v2.65.0

Additional context
The series is correctly generated (i.e., no errors in the log and http://localhost:1313/series/series-of-articles works fine). It seems it is just the boxes.
I am quite sure the problem sits in front of the computer, but I can't figure out where I went wrong :) What am I missing?

+1
Same blowfish/hugo version, but on Windows 10, Chrome 124.0.6367.63

Oh that's interesting @karosas. I have it under /posts

Continuing to screw around (I only started using/exploring this theme few hours ago).
I see that series partial template is used only in /themes/blowfish/layouts/_default/single.html template, so out of curiosity I added debug tags <h1> {file name} </h1> to each of those templates and it seems that while articles on root of content (e.g. /content/article.md) use that single.html template, nested articles (e.g. content/nested/article.md) use /themes/blowfish/layouts/_default/list.html? Inserting {{ partial "series/series.html" . }} to that template seems to fix the issue.
Whether that's a good fix - I don't know. It feels a bit weird that an article uses a layout called list and I'm not sure what that'd affect. Technically that partial should only render if series is defined on the page as bare minimum, so it shouldn't really show up in random places?

To not touch the theme itself, you can also instead copy /themes/blowfish/layouts/_default/list.html to /layout/_default/list.html (thus overriding that specific theme layout) and edit it there. So that later it's easier to update the theme without losing your custom modifications

Actual solution - if your article is named _index.md rename it to index.md.
It seems hugo internal logic is to use different template if the file is called _index.md. Once I renamed it to index.md it seemed to fix everything.

@michaeldorner this one sees to be solved and also it doesn't seem like a bug. Closing


[BUG] Horrific Doubles removes surprise rounds

With horrific doubles up, combat starts as soon as an enemy is in view.  This eliminates the possibility of surprise rounds for the player.  Not sure if this is truly a bug and it should be functioning like Frightful Aspect/Archon's Aura, or just wildly inconvenient.

It's an interesting point. Frightful Aspect & Archon's Aura will aggro enemies as well but I suspect you don't run into it often because the range is low.
Not sure how to handle this one right now. It should aggro enemies but it is also inconvenient because the range on it is so large.

Small update.  I was trying to figure out who could use HD as is, because losing the surprise round isn't really an option.  I figured if it is was working off of sight, then it could be useful for a full-speed while stealthed character.  One that could always be stealthed out of combat and still keep up with the party.  And it worked! Kind of.
With HD cast and stealthed while with the party, the HD effect would still immediately affect the enemies but they would no longer aggro until I or a party member initiated by attacking or entering aggro range.  The HD character could also de-stealth after the HD-effect was applied and walk around the periphery of the enemy without triggering aggro.  I'm guessing these are both just because of how the game works, can't be changed, and honestly will be fine for almost everyone.
So as is, this is a Woljif spell.  Which is somewhat disappointing as its no longer a general upgrade for mirror image... but its nice to add to a niche!  As opposed to a change to how the spell works (a smaller aura like Frightful Aspect/Archon's Aura) I would request simply a note at the bottom of the spell description noting that enemies will aggro if the user is not hidden. It's just too reasonable to assume that an unaggro'd demon group doesn't "see you" even if you can see them.  After all, they would be attacking you if they saw you, whether you had HD up or not.  They're not in the worldwound to mind their own business.  Or, rather, attacking you on sight is their business.
Unless you intended to make it a general upgrade to mirror image, then going the aura route seems like a reasonable change to the spell to make it work in the context of the crpg.


Make Club Details Page Usable

Clubs details needs to be really usable and should look similar to the clubs page layout

finished in look and feel merge

finished in look and feel merge


Navigation, design QA

What's this PR do?

Adds our standard nav bar
Renames more usage of cover photo to cover image
Removed the colorful bar on the container (direct your anger at Luke)
Cleans up the container/app layout a bit. I know we talked about some larger restructuring but didn't want to go too crazy with this PR.

How should this be reviewed?

@DFurnes The links work now 😉

@DFurnes Third times the charm!


Add decimal (d128) support.

Hi guys, this pull request adds support for serializing and deserializing arbitrary precision decimal numbers. This was needed to support a general 'Number' format in serde_json, but it may come in handy for others.
A few things to notice about this change:

I made ToPrimitive a public trait, as it is very useful. For example, my serde_json proposal will use it to keep the internal representation of numbers as d128 when serializing and deserializing.
Both d128 from the decimal module and the d128! macro are re-exported.
It bumps the version to 0.8.0 as it introduces a 'big' dependency (decimal).
I'm overly relying on string representations to convert to/from d128 types. But looking at their code they do it too, I think looking forward we can use their type conversions once they have more.

I know this is a rather big change for a first time contributor like myself, perhaps this changes can stay on a branch until some more eyes have a look at them and we gather consensus. I'm more than happy to point my own project's dependencies to a branch in this repo, I just don't want it to remain a fork.
Looking forward to your comments. (I'm following up with a pull request for serde_json 0.8.0 soon)

Thanks! I only briefly skimmed this since I'm on the road, but my first concern is that I don't know much of anything about the public decimal crate. It hasn't let gotten a lot of traction, and I'm not sure if it's c library is portable.
I'd love for some abstraction that supports BigNum types. Have you thought if there's any way to support them without adding a dependency on that crate?

Ditto Erick. Looks like there is currently exactly one crate on crates.io with a dependency on the decimal crate, and all of the d128 code on their master branch is commented out......

Side note in case anyone else is curious - this is how much precision is available in d128:
assert!(d128!(1) != d128!(1.0000000000000000000000000000000006));
assert!(d128!(1) == d128!(1.0000000000000000000000000000000005));

assert!(d128!(2).pow(d128!(20413)) != d128!(2).pow(d128!(20414)));
assert!(d128!(2).pow(d128!(20414)) == d128!(2).pow(d128!(20415)));

:umbrella: The latest upstream changes (presumably #371) made this pull request unmergeable. Please resolve the merge conflicts.

I fully agree with your comments, think of this as a proof-of-concept.
I probably need to give you guys some background so you understand how this half-cooked pull request came to be:
I'm (or was) fairly new to rust, I started building a simple bitcoin trading robot about 2 months ago. I ended up "having" to build an http client, an http integration test library, then this patch for serde_json which turned out to need a patch to serde itself. When it got to the point that I was going to have to build a bignum/decimal library I decided to use the one available instead. I'm in way over my head, that's why this took so long.

I'm happy to share my work on this, in case anyone else needs it. It can be left on an experimental state, I'll make sure to keep my fork synced.
I'd hate for my fork to diverge too much, I'll let you know the moment I start receiving pull requests on my fork.
Having a branch here instead of a fork on my user could help this get some more visibility to address all issues.
I think as rust gains popularity deserializing numbers precisely in JSON APIs will need to be supported.
I fully agree decimal is still green, as a lot of other things in rust land. (at least for someone coming from ruby and haskell). I don't know who wrote the decimal crate, it looked relatively well maintained as compared to other things, at least a few months ago.
Someone's got to use it, It's not going to get validated on its own.
I can do this all over with a more respected decimal crate, it would be ideal for rust to provide decimal support in the standard lib FWIW.
I do not think is serde's job to also build the bignum support, but someone's got to do it.. Perhaps I (we?) can contact the maintainer and adopt the crate?

I'm not in a hurry or anything, I'm really happy of just having this out here and receiving your feedback as it gives me enough to move forward on my project until we figure out a better approach. 🍻

@homu I will, but as we were talking with the guys, maybe we don't want to merge it just yet.

boxing a string that then gets serialized/deserialized further using into/to_string,

That's not a great solution, because bincode and similar start out with a n-bit representation that they can turn into a rust numeric type.
Recap
TLDR: Let's do a clean restart of number serialization fitting everyone's needs. Skip forward to Proposal
There is the set A of number representations that the serialization formats use. Then there's the set B of number representations in rust. B also contains arbitrary user types (BigNum, d128, ...).
Ideally we'd have a function f(A) -> B and f'(B) -> A. Obviously that makes little sense, as it would require serde to know about all possible types. So instead we have a set S that contains all basic rust number types and  f(A) -> S, f'(S)->A as well as g(B) -> S, g'(S) -> B.
Right now we are discussing what B should contain and how to represent it. The problem I'm seeing is that we are discussing the memory representation instead of the abstract representation. There will never be a perfect memory representation that fits all needs (e.g. BigNum can represent all numbers, but requires memory allocation). We'll always have to do tradeoffs. The tradeoff decision shouldn't really be made by serde or an implementor, but by the final user. We could of course get there through a huge cfg! madness, but I have a proposal (no concrete design, just some thoughts):
Proposal
We add a new trait NumericSerialization that is implemented for the regular rustc types. Users can implement this trait for their own types. Also there's a type NumericTypeInfo that contains various things that are useful to know.
struct NumericTypeInfo {
    name: &'static str,
    // if you have to hold more than 2^64 bits, then I have bad news for you.
    // None for infinitely sized types
    min_bits: Option<u64>,
    min_value: Option<&'static NumericSerialization>,
    // can a value of this type be signed
    signed: bool,
    // can there only be integral values? (only zeros after the comma)
    integral: bool,
}

/// `Display` bound for textual representations
trait NumericSerialization: core::fmt::Display {
    /// yields a value of the above struct
    /// FIXME: use associated constant once that's stable
    fn type_info() -> &'static NumericTypeInfo;
    /// yields the number of bits required to hold this value
    fn num_bits(&self) -> u64;
    /// whether the value is signed
    fn is_signed(&self) -> bool;
    /// whether the value is integral
    fn is_integral(&self) -> bool;
    /// yield an f64 representation of the value if that can be done losslessly
    fn as_f64(&self) -> Option<f64>;
    /// yield an u64 representation of the value if that can be done losslessly
    fn as_u64(&self) -> Option<u64>;
    /// yield an i64 representation of the value if that can be done losslessly
    fn as_i64(&self) -> Option<i64>;
    /// Iterate over the bits starting with the least significant one
    /// This function uses a closure until we get `impl Trait` return types
    /// FIXME: add more bounds to the `Iterator` to allow things like `.rev()`
    fn iter_bits<F: FnOnce(&mut Iterator<Item=bool>)>(&self, f: F);
}

With this information any numeric type can offer enough information for a Serializer to decide how to proceed. It's important to use static dispatch when passing this value (no other way anyway, it's not object safe, let's keep it this way). Static dispatch helps optimizing out the entire thing.
Deserialization needs the design in reverse. The trait NumericDeserialization is again implemented for concrete types.
trait NumericDeserialization {
    /// FIXME: use associated constant once that's stable
    fn type_info() -> &'static NumericTypeInfo;
    fn from_str(&str) -> Self;
    fn from_bits(&mut Iterator<Item=bool>) -> Self;
    fn from_u64(u64) -> Self;
    fn from_f64(f64) -> Self;
    fn from_i64(i64) -> Self;
}

The Deserializer trait would then have a method fn deserialize_numeric<V>(&mut self, visitor: V) where V::Value: NumericDeserialization.
I'm sure I have forgotten some corner case.

Yes! I think this is a good start. Sounds fun to design and implement too.

@oli-obk: Nice! That's a along the lines of what I had in mind, but you've fleshed it out even more. Want to copy this into the never-used https://github.com/serde-rs/rfcs, then it'll be a little easier to comment on it?

Will do

Closing in favor of https://github.com/serde-rs/rfcs/pull/1.


[Bug]: beam_PostCommit_Java_Sickbay fails

What happened?
beam_PostCommit_Java_Sickbay fails to run successfully
https://ci-beam.apache.org/job/beam_PostCommit_Java_Sickbay/
Issue Priority
Priority: 2
Issue Component
Component: build-system

@kennknowles

Taking a look! Thanks for the heads up.

I'm working on python sickbay fixes and happened to notice this mirror issue in java, opened #21922


allow !py_eval python snippets when loading yaml files

This allows to evaluate python snippets in yaml files while loading.

[x] add py_eval tag
[x] domument in options guides
[x] test on a small snippet

yes, one more little thing incoming

Now I am done. If the actions pass we can merge from my side.


Can't pass a function with args to a child as a prop

Vue.js version
1.0.16
Steps to reproduce
Loop over a div with a v-for to render a nested component:
<div v-for="item in items">
  <component :data="item.data" :on-select="someMethod(arg1, arg2)"></component>
</div>

The issue is that v-ref can't be used, because the v-for loop is not on the component (for lay-out reasons)
What is Expected?
someMethod(arg1, arg2) should be passed down to the child, so it can be used as a callback whenever onSelect is handled in the child.
What is actually happening?
someMethod(arg1, arg2) is not passed to the child, instead it's evaluated on runtime.
There's also no way to pass the function down with arguments without executing it on runtime.
I might be out of my depth here, but I have no clue how to solve this issue. In React I can pass down an anonymous function like so: :on-select="(foo) => { this.doSomething(foo) }", which is great because it makes my components more agnostic.
With that anonymous function stuff gets bound to scope, not sure how that works.

This is expected behavior, it should be evaluated. What you are trying to do is passing down a curried version of someMethod, so instead you can do :on-select="someMethod.bind(arg1, arg2)

Unfortunately this doesn't seem to work either.
In my child component I do the following:
select(index) {
  this.onSelect(index) // this is the 'callback'
}

The index is passed back fine, but none of the args in .bind() are available in the parent.

It should've been :on-select="someMethod.bind(this, arg1, arg2)"
https://jsfiddle.net/qqfpz5ae/

Gotcha, thanks so much!

Interesting.. I thought this was never accessible in VM template.

@azamat-sharapov the correction that @yyx990803 made has more to do with passing the right number of parameters.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/Function/bind#Syntax
function.bind(thisArg[, arg1[, arg2[, ...]]])
https://jsfiddle.net/qqfpz5ae/109/ With null
https://jsfiddle.net/qqfpz5ae/112/ With a variable called anything that has not been declared


Windows 7+ style task grouping

When enabled, and there are multiple windows associated to an app, the taskbar will display a single TaskButton bound to a TaskGroup rather than a group of multiple TaskButtons bound to individual ApplicationWindows.
TaskGroup is an object that contains a list of ApplicationWindows, and has the same properties as an ApplicationWindow for binding. Its icon and title comes not from a window but from the application the windows are from. Task progress is averaged across all windows in the group with progress, and the task overlay icon is used from the first window that has one (that is similar to the logic Windows uses from what I could tell).
TaskThumbWindow was refactored to support showing a collection of windows from the TaskGroup, by moving the thumbnail into a separate UserControl.
Also included some drive-by fixes where we weren't treating UWP windows correctly for opening a new instance.
This should fix our oldest bug, #52!

Whoops, I broke app grabber categorization.


CVE-2020-8558 for k8s.io/kubernetes v1.14.6

Our security scanner is identifying CVE-2020-8558 for node-problem-detector due to k8s.io/kubernetes version 1.14.6.
Are their plans to update this module or node-problem-detector somehow confirmed as not vulnerable?

This would be resolved by https://github.com/kubernetes/node-problem-detector/pull/706 once merged.

It'd be great if someone helped me on that PR. I got lost and don't know why tests are failing. Since almost months passed from submitting, now I have to update all the deps again to match with upstream k8s repo. Feel free to ping me. Or, you can submit a particular PR to remediate this specific vulnerability.

I agree about the need to bump dependencies.

Hey @Dentrax , I would like to create a PR that would remediate the kubernetes vulnerability mentioned in this issue. Would you be willing to explain how this patch can be separated from the rest of the code in #706 (if that's even possible)?
Thanks.

Hey @Dentrax , I would like to create a PR that would remediate the kubernetes vulnerability mentioned in this issue. Would you be willing to explain how this patch can be separated from the rest of the code in #706 (if that's even possible)?
Thanks.

Hey! Thanks for the interest. At PR #706, I couldn't able to make CI pass after lots of work. And I decided to abandon it.
So let me ping the maintainer, maybe @vteratipally got a thought on this.

Hey @Dentrax, I've created a branch which cherry picks the changes you made in order to tackle the CVE mentioned in the issue. Thank you for the work you've done in #706, it was crucial for allowing me to create this change.
Since most of the changes introduced here were originally written by you, I wanted to touch base before submitting a PR, in case you'd like to do so yourself.

I've created PR #761 to address the CVE this issue discusses. Please take a look.

I made a CVE-free version of node-problem-detector! Check this out: https://github.com/chainguard-images/images/tree/main/images/node-problem-detector
cgr.dev/chainguard/node-problem-detector:latest

This should be fixed by https://github.com/kubernetes/node-problem-detector/pull/806.
/close


Update to latest concat middleware

Fixes https://github.com/microsoft/vscode-jupyter-lsp-middleware/issues/31
Update to the latest concat middleware so we stop sending requests to Pylance that it wouldn't be able to distinguish between concat and notebook.

Codecov Report

Merging #8633 (1752105) into main (8a0b590) will increase coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main   #8633   +/-   ##
=====================================
  Coverage     71%     71%
=====================================
  Files        381     381
  Lines      24484   24484
  Branches    3755    3755
=====================================
+ Hits       17497   17571   +74
+ Misses      5471    5390   -81
- Partials    1516    1523    +7

Impacted Files
Coverage Δ

src/client/debugger/jupyter/kernelDebugAdapter.ts
77% <0%> (-1%)
:arrow_down:

src/client/api/pythonApi.ts
65% <0%> (+<1%)
:arrow_up:

src/client/datascience/commands/commandRegistry.ts
40% <0%> (+<1%)
:arrow_up:

src/client/common/process/baseDaemon.ts
52% <0%> (+1%)
:arrow_up:

...t/datascience/notebook/vscodeNotebookController.ts
81% <0%> (+1%)
:arrow_up:

src/client/datascience/jupyterDebugService.ts
17% <0%> (+1%)
:arrow_up:

...client/datascience/commands/activeEditorContext.ts
94% <0%> (+1%)
:arrow_up:

src/client/common/process/pythonDaemonPool.ts
76% <0%> (+1%)
:arrow_up:

...ent/datascience/progress/kernelProgressReporter.ts
74% <0%> (+2%)
:arrow_up:

...ce/interactive-window/interactiveWindowProvider.ts
77% <0%> (+2%)
:arrow_up:

... and 19 more


[MM-53934] Calls transcriber

Summary
PR introduces a first version of the calls-transcriber application.
This currently implements post call transcriptions through the following main steps:

It connects to the given call using the standalone WebRTC client and listens for incoming voice tracks.
When a voice track is received, it saves its content into temporary files for later processing.
On exit (e.g. call ended, job stopped) it start the post processing.
Each track is decoded (libopus) and transcribed (whisper.cpp).
Transcriptions for all tracks are interleaved using timestamps to achieve proper sequencing.
A WebVTT file is generated and attached to the call thread.

I left a few TODOs, some of which will be needed before this can be used as designed. Others could be good future  improvements but need to be verified.
Some of the most important are:

Synchronize transcription with recording file. This is a little tricky as the two jobs are completely decoupled and operate at very different levels so we'll probably have to rely on NTP synched clocks as there's no guarantee they'll both execute on the same instance.
Look into how to best parallelize work. So far we are running everything serially, both at the app and transcriber levels. This is to be on the safe side considering there could be multiple jobs running at the same time. But in theory we could transcribe multiple tracks in parallel and potentially even transcribe single tracks using more threads at the whisper level. Some experimentation will be necessary.
Decide which models to include in the image and which should be the default. Also figure out how much of lower level parameters we should expose through configuration.

Moreover, there are some important limitations I've observed so far:

whisper.cpp timestamps are not very accurate. It's easy that a segment has relative time 0s even though the spoken portion begins way into the samples (e.g. someone unmuting but only speaking after a few seconds). May need to apply some voice detection algorithm on top of the raw samples to improve this.
Live captioning seems very hard to achieve. I've only briefly played with it but performance is very poor both in terms of accuracy and throughput. More in general, passing samples shorter than a couple of seconds is not working well at all. Not a huge priority for MVP but needs to be reviewed at some point.

To be noted, we will also plan extensive security and performance reviews.
Finally, there's still some substantial plumbing work to be done on the plugin side to make the whole flow work but this is decoupled enough to be reviewed in isolation.
Ticket Link
https://mattermost.atlassian.net/browse/MM-53934

@cpoile Asking for a second pass as I made a couple of key updates as I am moving towards a first working implementation.


Move to Monaco

Replace codemirror with monaco. There is absolutely nothing wrong with CodeMirror. Its has been an intense pleasure working with it, the docs are great and the support (Marjin) is awesome :rose: :100:
The main reason
If anyone is wanting to create their own IDE around monaco I want alm to be the project that they fork from. This is going to be lot of work.
We rely fairly heavily on CodeMirror https://github.com/alm-tools/alm/tree/master/src/app/codemirror and had to create a few plugins https://github.com/alm-tools/alm/tree/master/src/app/codemirror/addons that will need to be rewritten. This should raise the project to a whole new level ¯\_(ツ)_/¯ :rose:

It's a good choice, Monaco is far better (in my opinion), well done!

It's a good choice, Monaco is far better (in my opinion) but when I tried to test it I didn't find any docs except the basic code lines to make it work. Hopes you the bests, well done!

It's a good choice, Monaco is far better (in my opinion) but when I tried to test it I didn't find any docs except the basic code lines to make it work. Hope you the bests, well done!

Wow!  Just wow! I feel we are closing to something really awesome! Cause
Monaco is indeed the right choice! I will pry for you my friend since it
seems that  there isn't a lot of documentation but I know that you will
handle it 😉! Please do it! 😆😆😆
El jue., jun. 2, 2016 9:29 PM, Gerasimos Maropoulos <
<EMAIL_ADDRESS>escribió:

It's a good choice, Monaco is far better (in my opinion) but when I tried
to test it I didn't find any docs except the basic code lines to make it
work. Hope you the bests, well done!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/alm-tools/alm/issues/120#issuecomment-223482473, or mute
the thread
https://github.com/notifications/unsubscribe/AGynBzASLxKBVXdn8m0ta4TnVwvn7qQJks5qH5-JgaJpZM4ItJTH
.

If anyone could do it it would be you @basarat.

Agree! 🎩👏
El vie., jun. 3, 2016 6:21 AM, Sam Macpherson<EMAIL_ADDRESS>escribió:

If anyone could do it it would be you @basarat
https://github.com/basarat.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/alm-tools/alm/issues/120#issuecomment-223564522, or mute
the thread
https://github.com/notifications/unsubscribe/AGynB3C8RLf1rVGdGfakYi3CRgkDXepGks5qIBw-gaJpZM4ItJTH
.

Released with 0.1.0. Let me know how it goes. Please raise issues :rose:


test: Fix random failure of test_new_bond_uses_mac_of_first_port_by_name

The test_new_bond_uses_mac_of_first_port_by_name has random failure
with 1% rate, it is caused by nmstate not properly clean up in previous
test as it is instructed to delete interface with verify=False which
cause nmstate return when interface might be still deleting by
NetworkManager.

IMO, we should drop verify_change=False from all the tests. Verification should always be right. Let's do that in a different PR. Thanks!


Can't scroll down on ebedded books in mobile

When I embed a book onto a page so users can view it there instead of opening in a new window, it works great on PC. However on mobile, I can't scroll down if I do it on top of the embedded book, whether it has been opened or not.
Note that I don't have this issue if I use developer tools and view it in mobile mode - I can scroll fine on my computer (using the touch screen). But when I view on my phone, I can't scroll down.
I can get around it by scrolling down on the edges, outside the ebook, but most users aren't going to figure that out. It just feels like a frozen screen to them. So as a result, the embed function is useless for mobile. I tested this on my own website, as well as the developer website - same issue.
This might be a design oversight in the app rather than a specific issue or bug with the program. But I'd like to open up the issue because it limits an otherwise great app.

This is a common problem faced by widgets which have the scrollable box (For example, Google Maps avoids it by asking users to scroll with two fingers). I already understand that the current behavior of embedded Bibi is not good, as you say. But I need a little more time to find the best solution. Please wait, thanks.

Oh, that makes sense. The simplest workaround is to just use the default (open in a new window for mobile), or not offer the embedded option in mobile. The advantage of allowing epubs to be embedded on mobile, however, is it doesn't force users to leave the page. Since it's a universal issue, not app specific, I can close the issue if you'd like. Let me know.
Thank you for creating this app and continuing to work on it - it's made developing online libraries really intuitive and easy.


obsolete monogenic disease

and rename Mendlian disease
closes #1758

ah, I see, renaming inherited genetic to mendelian is expected to cause a large diff.
ok, I won't look at the diff but I assume all working as expected, go ahead and merge. beware this may cause downstream conflicts because of the merge size


Sdn 426

- What this PR does and why is it needed

- Special notes for reviewers

- How to verify it

- Description for the changelog

Pull Request Test Coverage Report for Build 123154518

215 of 317 (67.82%)  changed or added relevant lines in 6 files are covered.
6 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.3%) to 52.051%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

go-controller/pkg/ovn/ovn.go
3
5
60.0%

go-controller/pkg/ovn/gress_policy.go
44
54
81.48%

go-controller/pkg/ovn/namespace.go
11
22
50.0%

go-controller/pkg/ovn/policy.go
38
55
69.09%

go-controller/pkg/util/pod_annotation.go
0
20
0.0%

go-controller/pkg/ovn/address_set.go
119
161
73.91%

Files with Coverage Reduction
New Missed Lines
%

go-controller/pkg/ovn/policy.go
2
71.02%

go-controller/pkg/ovn/namespace.go
4
67.93%

Totals

Change from base Build 120028309:
-0.3%

Covered Lines:
4149

Relevant Lines:
7971

💛  - Coveralls


Menu tabs

Hello,
Is it possible to make menu tabs on my admin page. Because i have a lot of models and toolbar is not enough large.
Thank you!

I'm going to close this because it seems be a support request and has been answered (thanks @samvincent!).


introducing ai contexts and streamingConversationalRetrievalChain

Hi @langchain4j,
just brief proposal how may we handle context of execution and streaming conversational chain.
Please take a look and give me some feedback! :)

Hi @robertmaj90 thanks a lot for your PR!
In general, I like the idea of re-using code when possible (same contexts for AiServices and Chains).
But I anticipate that AiServices will be more useful and will develop much faster than chains, so I would not bind them together at this point. Your approach reduces code duplication, but it ties together two concepts that will evolve differently and makes it harder to change one without affecting the other.
Also, there are 8 context-related interfaces (and only 2 implementations). This seems to be overly complicated for the current situation. I would propose to roll it back (except StreamingConversationalRetrievalChain) and see how AiServices and chains will evolve. We can revisit this idea once again later on.
Hope for your understanding. Thanks a lot!

@robertmaj90 closing this due to inactivity. please feel free to reopen if needed


make a benchmark configuration for MLDG

Li, Da, et al. “Learning to generalize: Meta-learning for domain generalization.” Proceedings of the AAAI conference on artificial intelligence. Vol. 32. No. 1. 2018.
Estimated amounts of work: 3hours

@smilesun,
Reading the paper I found 3 Hyperparameters coming with the optimizer MLDG:

$\alpha$: learning rate for gradient descend in the meta learning process (meta-train step size)
$\beta$: weights meta-train and meta-test (loss = "meta train" + $\beta$ "meta test")
$\gamma$: learning rate of the meta-optimization

I tried to understand how these hyperparameters are set in domainlab and made the observations below. @smilesun can you please comment on them for me to understand which hyperparameter shall be respected in the benchmark.

$\alpha$:
the meta learning (just using the meta training samples) uses the function
https://github.com/marrlab/DomainLab/blob/23122c87aa36a7566c15ab3dffe3997d8b9f8c37/domainlab/algos/trainers/train_basic.py#L43
where the learning rate specified in --lr is used
https://github.com/marrlab/DomainLab/blob/23122c87aa36a7566c15ab3dffe3997d8b9f8c37/domainlab/algos/trainers/train_basic.py#L47

$\beta$:
From my understanding the following line of code computes the loss function $F(\Theta) + \beta G(\Theta - \alpha F'(\Theta))$ from the paper.
loss_source.sum() = $F(\Theta) $
loss_look_foreward.sum() = $G(\Theta - \alpha F'(\Theta))$
https://github.com/marrlab/DomainLab/blob/23122c87aa36a7566c15ab3dffe3997d8b9f8c37/domainlab/algos/trainers/train_mldg.py#L86
At which point does $\beta$ come into the loss function? Is $\beta$ already included in loss_look_foreward.sum() ?
For me it does make sense that loss_look_foreward.sum() can be seen as a regularisation term, hence one should be able to set $\beta$ using --gamma_reg. Is this the case?

$\gamma$ is the learning rate of the meta-optimizer, which has learning rate specified in the comand line arguments with --lr
https://github.com/marrlab/DomainLab/blob/23122c87aa36a7566c15ab3dffe3997d8b9f8c37/domainlab/algos/trainers/train_mldg.py#L21

Thanks, I have added gamma_reg in this commit:
214f667

i think we can set the same learning rate for meta and the major optimizer


Picker background color

hello, is it possible to change background color of list in Picker?

I need to set all background to dark, but list has white color
nativebase 2.3.1, iOS

you can set the picker item color using itemStyle props of <Picker> and you can set the picker item text color using itemTextStyle props of <Picker>
<Picker
  itemStyle = {{ ... }}
  itemTextStyle = {{ ... }}
  ...
>

I meant background color. How you can see at the screenshot itemStyle already has background: black. Actually there is no way how to do it, so I forked nativeBase and added that possibility
https://github.com/omgo/NativeBase/commit/77a8b8bf59c00bc01055d4adda2c24fc474f3603

You can customize theme by following https://docs.nativebase.io/Customize.html#Customize .
To change background color of Picker,

execute node node_modules/native-base/ejectTheme.js
change native-base-theme/components/index.js

diff --git a/native-base-theme/components/index.js b/native-base-theme/components/index.js
index 25e9805..0b236a2 100644
--- a/native-base-theme/components/index.js
+++ b/native-base-theme/components/index.js
@@ -172,6 +172,9 @@ export default (variables = variable) => {
     },

     "NativeBase.PickerNB": {
+      "NativeBase.Container": {
+        backgroundColor: '#000',
+      },
       "NativeBase.Button": {
         "NativeBase.Text": {}
       }

closing the issue due to inactivity

The following worked for me: see https://github.com/GeekyAnts/NativeBase/issues/3110#issuecomment-641498927

For those who still face the problem - try using modalStyle property, like this
<Picker
                    modalStyle={{backgroundColor:'gray'}}
                    itemStyle={{
                        backgroundColor: 'lightgray',
                        marginLeft: 0
                    }}
                    itemTextStyle={{backgroundColor: 'lightgray'}}>
....
</Picker>

should look like this:

For those who still face the problem - try using modalStyle property, like this
<Picker
                    modalStyle={{backgroundColor:'gray'}}
                    itemStyle={{
                        backgroundColor: 'lightgray',
                        marginLeft: 0
                    }}
                    itemTextStyle={{backgroundColor: 'lightgray'}}>
....
</Picker>

should look like this:


Fixed columns : extra cell visible on IE9

Hello.
There is a problem wis misscalculated height in IE9, for fixed columns.
You can see it on this page : https://datatables.net/extensions/fixedcolumns/examples/styling/bootstrap.html

At the bottom of the fixed columns, there is one extra cell. I can't find a way to fix that. Seems to append only with the bootstrap theme.
I have tested on a virtual machine with the real IE9, and Windows 7.

Thanks for letting me know about this. I'll take a look into it for the next FixedColumns release.

Moved to FixedColumns #66.


OPNsense 19.7.3: Color of info logo is orange instead of green

Important notices
Our forum is located at https://forum.opnsense.org , please consider joining discussions there in stead of using GitHub for these matters.
Before you ask a new question, we ask you kindly to acknowledge the following:
[x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues and I'm convinced that mine is new.
After upgrading from 19.7.2 to 19.7.3. the color of the info logo e.g. behind the plugins under System:Firmware -> Plugins is orange instead of green (as it was before as far as I remember).
Also the info logo of the new feature to enable/disable the logging of the firewall rules in the overview is always orange, regardless of the logging for the rule is enabled or not.
Did someone accidently overwrite the green logo with the orange one, or is this intended?

Screenshots please. I double-checked and nothing changed here. On my end log enable/disable is blue / grey and firmware info buttons are grey like they always were. Would point to the browser having render issues then. Try a different one just for testing.

I've tested it with Edge, Firefox and Firefox Mobile. All browsers are showing the same colour.

This isn't the default theme. ;) CC @opnsenseuser


Remove hosting fonts locally option?

I know quite a few people like this option. But I'm running a SAAS using Multisite, and I like to keep things simple, and handle as much of the technical stuff as possible, and the Network is pretty locked down for things they can and can't load on their site.
Is there a way to disable this option?
Thanks!

No, there's no option to hide them. It's not a matter of preference, it's a matter of GDPR... Many people don't want their IPs logged by google when they visit a page just because that page uses a google-font. So using that option site-admins can locally host the fonts, so google servers don't get pinged.
That being said, if you want to hide that it's quite easy. You can just add the below code in a .php file inside your wp-content/mu-plugins folder:
function my_customizer_styles() {
	echo '<style>.kirki-host-font-locally{display:none;}</style>';
}
add_action( 'customize_controls_print_styles', 'my_customizer_styles', 999 );

Granted, it doesn't "remove" the option, it just hides it. But for the purposes of simplifying the UI like you do, it will work just fine.
You can even use that function to add more styles in the customizer 😉

GDPR... Gotcha.
Ok, maybe the option should be phrased that way.
"Download font-family to server instead of using the Google CDN. (For GDPR compliance)"
This would give the "Why" to users. (Since a user may or may not know the pros/cons to hosting locally vs CDN)
I also did a little reading up on this, and it seems very open to debate on whether or not it's compliant.
Some say it's just IP, and is compliant.
Some say it's straight not compliant.
Most people point to Google bringing compliance into all services.
I know I can use CSS to hide it. I just wonder if there's a more elegant solution for this.
Maybe letting the Dev decide whether or not it should display via an option in the Typography Control...
The other side of the coin is that it's impossible to know if the site owner has a GDPR compliant message that informs visitors of what info is being passed.
I understand it's a hard thing to plan for...
Thanks for opening this discussion. There's a lot about GDPR I have to learn before I bring my SAAS into the European market.

Yeah, gdpr compliance for Google fonts is debatable... But since there's no official announcement from Google about what they do with the data collected by googlefonts, for how long it's stored etc, I figured it's better to be safe than sorry and added the option.
The reason it's not phrased or promoted as a "gdpr" option is because the IPs thing -like you said- is open to interpretation, but also because there are other reasons as well. Locally-hosted fonts tend to be faster, since the browser gets the data from the same server instead of getting them via an additional ping to a 3rd-party service. Some people may do it for privacy, others for performance, others may do it because their server is in the US but their clients are in a country in Asia that blocks Google services. You never know...


[Improvement][OSUtils & TaskPriorityQueueConsumer] High frequency logs of CPU overload lead to a vicious circle

When the DS runs in a low configuration (4 processors) environment and the CPU is overloaded, the OSUtils and TaskPriorityQueueConsumer modules will crazy output logs to dolphinscheduler-master.log, causing the CPU to be overloaded all the time, such as:

[ERROR] 2021-07-31 21:43:34.624 org.apache.dolphinscheduler.server.master.consumer.TaskPriorityQueueConsumer:[154] - dispatch error: fail to execute : Command [type=TASK_EXECUTE_REQUEST, opaque=84563, bodyLen=2041] due to no suitable worker, current task needs worker group default to execute
[ERROR] 2021-07-31 21:43:34.634 org.apache.dolphinscheduler.server.master.consumer.TaskPriorityQueueConsumer:[154] - dispatch error: fail to execute : Command [type=TASK_EXECUTE_REQUEST, opaque=84564, bodyLen=2089] due to no suitable worker, current task needs worker group default to execute
[ERROR] 2021-07-31 21:43:34.644 org.apache.dolphinscheduler.server.master.consumer.TaskPriorityQueueConsumer:[154] - dispatch error: fail to execute : Command [type=TASK_EXECUTE_REQUEST, opaque=84565, bodyLen=2083] due to no suitable worker, current task needs worker group default to execute
[ERROR] 2021-07-31 21:43:34.654 org.apache.dolphinscheduler.server.master.consumer.TaskPriorityQueueConsumer:[154] - dispatch error: fail to execute : Command [type=TASK_EXECUTE_REQUEST, opaque=84566, bodyLen=2041] due to no suitable worker, current task needs worker group default to execute
[ERROR] 2021-07-31 21:43:34.664 org.apache.dolphinscheduler.server.master.consumer.TaskPriorityQueueConsumer:[154] - dispatch error: fail to execute : Command [type=TASK_EXECUTE_REQUEST, opaque=84567, bodyLen=2089] due to no suitable worker, current task needs worker group default to execute
[ERROR] 2021-07-31 21:43:34.676 org.apache.dolphinscheduler.server.master.consumer.TaskPriorityQueueConsumer:[154] - dispatch error: fail to execute : Command [type=TASK_EXECUTE_REQUEST, opaque=84568, bodyLen=2083] due to no suitable worker, current task needs worker group default to execute
[WARN] 2021-07-31 21:43:34.680 org.apache.dolphinscheduler.common.utils.OSUtils:[442] - current cpu load average 10.87 is too high or available memory 0.37G is too low, under max.cpuload.avg=8.0 and reserved.memory=0.3G
[ERROR] 2021-07-31 21:43:34.687 org.apache.dolphinscheduler.server.master.consumer.TaskPriorityQueueConsumer:[154] - dispatch error: fail to execute : Command [type=TASK_EXECUTE_REQUEST, opaque=84569, bodyLen=2041] due to no suitable worker, current task needs worker group default to execute
[WARN] 2021-07-31 21:43:34.690 org.apache.dolphinscheduler.common.utils.OSUtils:[442] - current cpu load average 10.87 is too high or available memory 0.37G is too low, under max.cpuload.avg=8.0 and reserved.memory=0.3G
[ERROR] 2021-07-31 21:43:34.701 org.apache.dolphinscheduler.server.master.consumer.TaskPriorityQueueConsumer:[154] - dispatch error: fail to execute : Command [type=TASK_EXECUTE_REQUEST, opaque=84570, bodyLen=2089] due to no suitable worker, current task needs worker group default to execute
[ERROR] 2021-07-31 21:43:34.718 org.apache.dolphinscheduler.server.master.consumer.TaskPriorityQueueConsumer:[154] - dispatch error: fail to execute : Command [type=TASK_EXECUTE_REQUEST, opaque=84571, bodyLen=2083] due to no suitable worker, current task needs worker group default to execute
[WARN] 2021-07-31 21:43:34.722 org.apache.dolphinscheduler.common.utils.OSUtils:[442] - current cpu load average 10.87 is too high or available memory 0.37G is too low, under max.cpuload.avg=8.0 and reserved.memory=0.3G
[WARN] 2021-07-31 21:43:34.733 org.apache.dolphinscheduler.common.utils.OSUtils:[442] - current cpu load average 10.87 is too high or available memory 0.37G is too low, under max.cpuload.avg=8.0 and reserved.memory=0.3G
[ERROR] 2021-07-31 21:43:34.734 org.apache.dolphinscheduler.server.master.consumer.TaskPriorityQueueConsumer:[154] - dispatch error: fail to execute : Command [type=TASK_EXECUTE_REQUEST, opaque=84572, bodyLen=2041] due to no suitable worker, current task needs worker group default to execute
[WARN] 2021-07-31 21:43:34.742 org.apache.dolphinscheduler.common.utils.OSUtils:[442] - current cpu load average 10.87 is too high or available memory 0.37G is too low, under max.cpuload.avg=8.0 and reserved.memory=0.3G
[WARN] 2021-07-31 21:43:34.744 org.apache.dolphinscheduler.common.utils.OSUtils:[442] - current cpu load average 10.87 is too high or available memory 0.37G is too low, under max.cpuload.avg=8.0 and reserved.memory=0.3G
[WARN] 2021-07-31 21:43:34.756 org.apache.dolphinscheduler.common.utils.OSUtils:[442] - current cpu load average 10.87 is too high or available memory 0.37G is too low, under max.cpuload.avg=8.0 and reserved.memory=0.3G
[WARN] 2021-07-31 21:43:34.792 org.apache.dolphinscheduler.common.utils.OSUtils:[442] - current cpu load average 10.87 is too high or available memory 0.37G is too low, under max.cpuload.avg=8.0 and reserved.memory=0.3G
[WARN] 2021-07-31 21:43:34.872 org.apache.dolphinscheduler.common.utils.OSUtils:[442] - current cpu load average 10.87 is too high or available memory 0.38G is too low, under max.cpuload.avg=8.0 and reserved.memory=0.3G

Which version of DolphinScheduler:
-[1.3.6]

When the CPU is overloaded, it should wait a little longer, right?

i also have the same problem,by the way,my cpu usage lower than 25%,but cpu load higher than 3.5