Remove rack-timeout

https://trello.com/c/ccRvABjw/41-eval-gem-rack-timeout

yes lets -- just scratched my head over PG::DuplicatePstatement: ERROR: prepared statement "a2" already exists errors, which turn out to be a potential side-effect of running Rack::Timeout: https://stackoverflow.com/questions/26146436/how-to-fix-pgduplicatepstatement-error , https://github.com/rails/rails/pull/17607

@jdwolk @wykhuh :+1: — can one of you PR the removal of this?

@patbenatar sho thang


Convert to a vendor module + some minor fixes

Add gitignire
Convert to vendor-module
Make cache flushable

The module has been made into a vendor module with another PR and the caching is now re-worked, sorry it took so long to review this @maxime-rainville. I'll close this one for now, let me know if there's anything still remaining though.


Add ACL validation

Problem
Need more ACL validation. #14460
Change overview

There was some before, but this is more stringent.
Also refactor some of the "IsValid"-like functions.
Remove more operational PASE support.
Update unit tests.

Testing

Unit tests
Ran all-clusters-app with REPL on Linux, wrote ACLs

I'm still updating the tests, but please feel free to review the ranges in the IsValid-like functions.

For NodeId utility functions, I'd like to reorganize the headers a bit (e.g. the CASEAuthTag node utilities should move into NodeId.h with the others but that involves some header restructuring) and slowly move to this terminology:

IsValidGroupId --> group id that is valid
IsGroupNodeId --> node id that has a group id (maybe not valid?) (we may not need or want this, but conceptually it is possible)
IsValidGroupNodeId --> is valid node id that has a valid group id
IsValidNodeId --> valid node id, could be valid group id, valid case id, etc.

So we distinguish between a group id (16-bits) and a node id that has a group id (64-bits), with functions to convert both ways. And ideally we name our variables appropriately, because a node id with a group id is not a group id, so it will be less confusing.

I was hoping to get this done today but still a couple things to wrap up tomorrow morning before I flip the draft/review switch. Thank you for your patience.

Alright, lots of test code now, validity should be solid.


apply enabled namespace as Queue to PDB

This PR apply "enabled namespace as Queue" to PDB to keep consistency with podgroup
or PDB would not work in the integration with tf-operator.

@k82cn
I have tested it, this fix makes pdb work with using tf-operator

Travis tests have failed
Hey @ChanYiLin,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
1st Build

     make run-test

hack/make-rules/test.sh
Running tests for APIVersion: v1,admissionregistration.k8s.io/v1alpha1,admission.k8s.io/v1alpha1,apps/v1beta1,apps/v1beta2,authentication.k8s.io/v1,authentication.k8s.io/v1beta1,authorization.k8s.io/v1,authorization.k8s.io/v1beta1,autoscaling/v1,autoscaling/v2beta1,batch/v1,batch/v1beta1,batch/v2alpha1,certificates.k8s.io/v1beta1,extensions/v1beta1,imagepolicy.k8s.io/v1alpha1,networking.k8s.io/v1,policy/v1beta1,rbac.authorization.k8s.io/v1,rbac.authorization.k8s.io/v1beta1,rbac.authorization.k8s.io/v1alpha1,scheduling.k8s.io/v1alpha1,settings.k8s.io/v1alpha1,storage.k8s.io/v1beta1,storage.k8s.io/v1,
+++ [0913 07:45:52] Running tests without code coverage
# github.com/kubernetes-incubator/kube-arbitrator/pkg/scheduler/api
pkg/scheduler/api/job_info.go:176:11: undefined: pbd
!!! [0913 07:45:53] Call tree:
!!! [0913 07:45:53]  1: hack/make-rules/test.sh:322 runTests(...)
!!! Error in hack/make-rules/test.sh:204
  Error in hack/make-rules/test.sh:204. '((i<3-1))' exited with status 2
Call stack:
  1: hack/make-rules/test.sh:204 runTests(...)
  2: hack/make-rules/test.sh:322 main(...)
Exiting with status 1
make: *** [run-test] Error 1

     make e2e

mkdir -p _output/bin
go build -o _output/bin/kube-batchd ./cmd/kube-batchd/
# github.com/kubernetes-incubator/kube-arbitrator/pkg/scheduler/api
pkg/scheduler/api/job_info.go:176:11: undefined: pbd
make: *** [kube-arbitrator] Error 2

Thanks very much, the fix is OK to me. Do you have time to add e2e for it?


tutorial-move-region-powershell - Correct syntax error Code example, markdown formatting

Corrected syntax error on PowerShell example - line 215
Markdown formatting syntax (trailing whitespace, line breaks between sections, two many line breaks between sections)

Fixes #81758

@wsmelton : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

@wsmelton : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Conflict resolved.

@rayne-wiselman - can you review? thanks!


Adding Retain-Flag, RSSI, SNR and FreqError to MQTT Message

Currently when a packet is received and sent to APRS-IS you can also configure to send the event to syslog. In syslog RSSI, SNR and FreqError is sent along with the message.
If MQTT is used only the event along with the message is sent without the retain-flag.
It would be great if

the retain flag can be set when sending to MQTT server, so that also new clients can receive the history
RSSI, SNR and FreqError will be added to be sent to MQTT server

Best regards
Manfred

Also it will be great if You could add RSSI of the WiFI signal to the MQTT packet.
73,
SP6MD

...and maybe using homie-convention would ease-up things on the mqtt-side


Write a Dart program to divide two numbers

Description
Write a Dart program to divide two numbers
Input  : 2 4
Output : 0.5

How to contribute

Save the solution in divide_two_numbers.dart file
Add divide_two_numbers.dart file in divide-two-numbers folder

!assign


Data work

Julia, R, and jupyter-notebook subsets of the source code dataset have been manually inspected quite comprehensively. We need to do this with the rest of the subsets.
Need to manually inspect Github issues and diffs dataset.
Python tokenization hangs at the same particular iteration each time I try it. Figure out what's going on, it's probably caused by one very long file. Temporary solution is a short circuit that counts all python files as containing 0 tokens.

Fixing all these things in branch data_cleaning

Aforementioned branch was merged.


No sync target, waiting for peers

Description
New node can't sync to existing validators
Acceptance Criteria

non-validating / validating node startup issue

Steps to Reproduce (Bug)

Installed Besu (with prerequisites), it runs ok, help command works ok
Created static-nodes.json file with known validator enode strings
Open port 30303 in my firewall
start besu with --network-id, --nat-method, and --p2p-host flag data specified

Expected behavior: [What you expect to happen]
Besu node should start and start syncing nodes from known validators. I will then send my enode data to the existing validators, so they can add my node as a new validator in the network, upon approval.
Actual behavior: [What actually happens]
> besu --network-id="1XXXXXXXXX7" --nat-method="UPNP" --p2p-host="external.server.ip.address"

2020-03-25 04:13:47.162-06:00 | main | INFO  | Besu | Starting Besu version: besu/v1.4.1-dev-ad5bfecd/linux-x86_64/zulu-java-13
2020-03-25 04:13:47.366-06:00 | main | INFO  | Besu | Connecting to 2 static nodes.
2020-03-25 04:13:48.079-06:00 | main | INFO  | KeyPairUtil | Loaded key 0xfeXXXXXXXX9 from /home/username/path/to/build/install/besu/key
2020-03-25 04:13:48.097-06:00 | main | INFO  | DatabaseMetadata | Lookup database metadata file in data directory: /home/username/path/to/build/install/besu
2020-03-25 04:13:48.138-06:00 | main | INFO  | RocksDBKeyValueStorageFactory | Existing database detected at /home/username/path/to/build/install/besu. Version 1
2020-03-25 04:13:48.829-06:00 | main | INFO  | ProtocolScheduleBuilder | Protocol schedule created with milestones: [Frontier: 0, Homestead: 1150000, DaoRecoveryInit: 1920000, DaoRecoveryTransition: 1920001, Homestead: 1920010, TangerineWhistle: 2463000, SpuriousDragon: 2675000, Byzantium: 4370000, ConstantinopleFix: 7280000, Istanbul: 9069000, MuirGlacier: 9200000]
2020-03-25 04:13:50.220-06:00 | main | INFO  | RunnerBuilder | Detecting NAT service.
2020-03-25 04:13:50.297-06:00 | main | INFO  | Runner | Starting Ethereum main loop ...
2020-03-25 04:13:50.297-06:00 | main | INFO  | UpnpNatManager | Starting UPnP Service
2020-03-25 04:13:50.297-06:00 | main | INFO  | UpnpServiceImpl | Starting UPnP service...
2020-03-25 04:13:50.319-06:00 | main | INFO  | Router | Configuration did not create a StreamServer for: //server.internal.LAN.ipaddress
2020-03-25 04:13:50.479-06:00 | main | INFO  | NetworkRunner | Starting Network.
2020-03-25 04:13:50.549-06:00 | nioEventLoopGroup-2-1 | INFO  | RlpxAgent | P2P RLPx agent started and listening on /0:0:0:0:0:0:0:0:30303.
2020-03-25 04:13:50.549-06:00 | main | INFO  | PeerDiscoveryAgent | Starting peer discovery agent on host=<IP_ADDRESS>, port=30303
2020-03-25 04:13:50.549-06:00 | main | INFO  | NatService | Waiting for up to 60 seconds to detect external IP address...
2020-03-25 04:14:50.550-06:00 | main | WARN  | NatService | Caught exception while trying to query NAT external IP address (ignoring): {}
java.util.concurrent.TimeoutException: null
	at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1957) ~[?:?]
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2092) ~[?:?]
	at org.hyperledger.besu.nat.NatService.queryExternalIPAddress(NatService.java:124) [besu-nat-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.ethereum.p2p.discovery.PeerDiscoveryAgent.start(PeerDiscoveryAgent.java:128) [besu-p2p-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.ethereum.p2p.network.DefaultP2PNetwork.start(DefaultP2PNetwork.java:200) [besu-p2p-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.ethereum.p2p.network.NetworkRunner.start(NetworkRunner.java:80) [besu-p2p-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.Runner.start(Runner.java:99) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.cli.BesuCommand.synchronize(BesuCommand.java:1746) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.cli.BesuCommand.startSynchronization(BesuCommand.java:1035) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.cli.BesuCommand.run(BesuCommand.java:921) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at picocli.CommandLine.executeUserObject(CommandLine.java:1769) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine.access$900(CommandLine.java:145) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2141) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2108) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1968) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine.parseWithHandlers(CommandLine.java:2322) [picocli-4.1.4.jar:4.1.4]
	at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:61) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:31) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1968) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine.parseWithHandlers(CommandLine.java:2322) [picocli-4.1.4.jar:4.1.4]
	at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1031) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:906) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.Besu.main(Besu.java:49) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
2020-03-25 04:14:50.587-06:00 | vert.x-eventloop-thread-1 | INFO  | VertxPeerDiscoveryAgent | Started peer discovery agent successfully, on effective host=0:0:0:0:0:0:0:0 and port=30303
2020-03-25 04:14:50.588-06:00 | vert.x-eventloop-thread-1 | INFO  | PeerDiscoveryAgent | P2P peer discovery agent started and listening on /0:0:0:0:0:0:0:0:30303
2020-03-25 04:14:50.657-06:00 | main | INFO  | NatService | Waiting for up to 60 seconds to detect external IP address...
2020-03-25 04:15:50.658-06:00 | main | WARN  | NatService | Caught exception while trying to query NAT external IP address (ignoring): {}
java.util.concurrent.TimeoutException: null
	at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1957) ~[?:?]
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2092) ~[?:?]
	at org.hyperledger.besu.nat.NatService.queryExternalIPAddress(NatService.java:124) [besu-nat-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.ethereum.p2p.network.DefaultP2PNetwork.setLocalNode(DefaultP2PNetwork.java:371) [besu-p2p-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.ethereum.p2p.network.DefaultP2PNetwork.start(DefaultP2PNetwork.java:216) [besu-p2p-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.ethereum.p2p.network.NetworkRunner.start(NetworkRunner.java:80) [besu-p2p-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.Runner.start(Runner.java:99) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.cli.BesuCommand.synchronize(BesuCommand.java:1746) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.cli.BesuCommand.startSynchronization(BesuCommand.java:1035) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.cli.BesuCommand.run(BesuCommand.java:921) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at picocli.CommandLine.executeUserObject(CommandLine.java:1769) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine.access$900(CommandLine.java:145) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2141) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2108) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1968) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine.parseWithHandlers(CommandLine.java:2322) [picocli-4.1.4.jar:4.1.4]
	at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:61) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:31) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1968) [picocli-4.1.4.jar:4.1.4]
	at picocli.CommandLine.parseWithHandlers(CommandLine.java:2322) [picocli-4.1.4.jar:4.1.4]
	at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1031) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:906) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
	at org.hyperledger.besu.Besu.main(Besu.java:49) [besu-1.4.1-SNAPSHOT.jar:1.4.1-dev-ad5bfecd]
2020-03-25 04:15:50.659-06:00 | main | INFO  | DefaultP2PNetwork | Enode URL enode://feXXXXXXXXXX9@external.server.ip.address:30303
2020-03-25 04:15:50.661-06:00 | main | INFO  | DefaultSynchronizer | Starting synchronizer.
2020-03-25 04:15:50.663-06:00 | main | INFO  | FullSyncDownloader | Start full sync.
2020-03-25 04:15:50.664-06:00 | main | INFO  | FullSyncTargetManager | No sync target, wait for peers.
2020-03-25 04:15:50.675-06:00 | main | INFO  | Runner | Ethereum main loop is up.
2020-03-25 04:15:50.679-06:00 | main | INFO  | NatService | Waiting for up to 60 seconds to detect external IP address...
2020-03-25 04:15:55.673-06:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers.
2020-03-25 04:16:00.673-06:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers.
2020-03-25 04:16:05.674-06:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers.
2020-03-25 04:16:10.674-06:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers.
2020-03-25 04:16:15.675-06:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers.
2020-03-25 04:16:20.676-06:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers.
2020-03-25 04:16:25.676-06:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers.
2020-03-25 04:16:30.677-06:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers.

(control-C to end process here)

2020-03-25 04:16:30.698-06:00 | Thread-1 | INFO  | DefaultSynchronizer | Stopping synchronizer
2020-03-25 04:16:30.699-06:00 | Thread-1 | INFO  | NetworkRunner | Stopping Network.
2020-03-25 04:16:30.703-06:00 | Thread-1 | INFO  | EthProtocolManager | Stopping eth Subprotocol.
2020-03-25 04:16:30.704-06:00 | Thread-1 | INFO  | EthProtocolManager | eth Subprotocol stopped.
2020-03-25 04:16:30.704-06:00 | Thread-1 | INFO  | NetworkRunner | Network stopped.
2020-03-25 04:16:30.705-06:00 | Thread-1 | INFO  | AutoTransactionLogBloomCachingService | Shutting down Auto transaction logs caching service.
2020-03-25 04:16:30.706-06:00 | Thread-1 | INFO  | UpnpNatManager | Allowing 3 seconds to release all port forwards...
2020-03-25 04:16:30.706-06:00 | Thread-1 | INFO  | UpnpServiceImpl | Shutting down UPnP service...
2020-03-25 04:16:30.708-06:00 | Thread-1 | INFO  | UpnpServiceImpl | UPnP service shutdown completed

Frequency: [What percentage of the time does it occur?]
at startup, startup fails, need help
Versions (Add all that apply)

Software version: besu/v1.4.1-dev-ad5bfecd/linux-x86_64/zulu-java-13
Java version:

openjdk version "13.0.2" 2020-01-14
OpenJDK Runtime Environment Zulu13.29+9-CA (build 13.0.2+6-MTS)
OpenJDK 64-Bit Server VM Zulu13.29+9-CA (build 13.0.2+6-MTS, mixed mode, sharing)

OS Name & Version: Linux Mint 17 Qiana (Ubuntu 14.04 based)
on a dedicated server, not a VPS

Additional Information
notes:
It seems to be trying to use the server internal NAT address, probably picked up from some sort of ifconfig command maybe?
Router | Configuration did not create a StreamServer for: //server.internal.LAN.ipaddress

In my setup, I am using NAT translation via an edgerouter to assign IP addresses, so the NAT will not be the same as the external IP address, which I have replaced in the logs with server.internal.LAN.ipaddress and external.server.ip.address, respectively.
Is there some additional network settings I can use here?
It seems like it's just hanging on this:
INFO  | FullSyncTargetManager | No sync target, wait for peers.

Why is my node not syncing to the existing validator set and downloading blocks? Help?

I have the same problem.

Will anybody be assigned to this issue? We're having a hard time launching the Government Blockchain Association chain implementation validator nodes because of this blocking issue, right now.

@yehia67 are you having the same problem on the same network or on a named network (i.e. mainnet). Named networks can sometimes take several minutes to find good peers while these logs seem to show Besu was run for only ~3 minutes.

@Tectract we will be looking into this shortly. Hopefully we'll have a fix or workaround sometime next week!

I can see that you are trying to define p2p-host yourself. Could you try to launch Besu in MANUAL mode instead of UPNP ? This should make Besu work while waiting for us to analyze where the problem comes from https://besu.hyperledger.org/en/stable/HowTo/Find-and-Connect/Specifying-NAT/#manual

@timbeiko  I try to create my own network on aws VPC
The details are here:-
Hello everyone.
I am trying to create a besu private network using IBFT2 on AWS VPC. I follow this tutorial  https://pegasys.tech/setting-up-hyperledger-besu-in-aws/
I have 2 instances on private subnets and 2 others on public subnets. One of my private instances is the bootnode.
I run it using this command  for bootnode
besu-1.3.6/bin/besu --data-path=data --genesis-file=./genesis.json --rpc-http-enabled --rpc-http-api=IBFT --rpc-http-host=<IP_ADDRESS> --host-whitelist="*" --rpc-http-cors-origins="all"  --metrics-enabled --metrics-host=<IP_ADDRESS> --metrics-port=9545 --p2p-host=< Private ip> &
then I run this command on each instance
 besu-1.3.6/bin/besu  --data-path=data --genesis-file=./genesis.json --node-private-key-file=/opt/besu/keys/key   --bootnodes=enode://<bootnode Public Key>@<bootnode Private IP>:30303 --rpc-http-enabled --rpc-http-host=<IP_ADDRESS> --host-whitelist="*" --rpc-http-api=ETH,NET,IBFT  --rpc-http-cors-origins="all" --metrics-enabled --metrics-host=<IP_ADDRESS> --metrics-port=9545 --p2p-host=<node private ip> &
Once all of them run they can't find other peers I don't Know why and It keep giving me this message forever.
2020-03-26 13:51:55.658+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:00.659+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:05.660+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:10.660+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:15.661+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:20.662+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:25.663+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:30.663+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:35.664+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:40.665+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:45.666+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:50.666+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:55.667+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:53:00.668+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:53:05.668+00:00 | EthScheduler-Timer-0 | INFO  | FullSyncTargetManager | No sync target, wait for peers.
Could anyone tell me please what the problem could be? Thanks In Advance.

Yes, I tried both ways, UPNP and MANUAL for nat-method. I will try leaving it runnng longer and report back :)
Yes, I sanitized the logs, to indicate internal LAN versus external IP, there.

--p2p-host=

I can see that you are using the private ip for the p2p-host --p2p-host=<node private ip>
if your instances are on different networks and not on the same networks I think you should put the advertised host and port for each P2P service

@timbeiko I try to create my own network on aws VPC
The details are here:-
Hello everyone.
I am trying to create a besu private network using IBFT2 on AWS VPC. I follow this tutorial https://pegasys.tech/setting-up-hyperledger-besu-in-aws/
I have 2 instances on private subnets and 2 others on public subnets. One of my private instances is the bootnode.
I run it using this command for bootnode
besu-1.3.6/bin/besu --data-path=data --genesis-file=./genesis.json --rpc-http-enabled --rpc-http-api=IBFT --rpc-http-host=<IP_ADDRESS> --host-whitelist="*" --rpc-http-cors-origins="all" --metrics-enabled --metrics-host=<IP_ADDRESS> --metrics-port=9545 --p2p-host=< Private ip> &
then I run this command on each instance
 besu-1.3.6/bin/besu --data-path=data --genesis-file=./genesis.json --node-private-key-file=/opt/besu/keys/key --bootnodes=enode://<bootnode Public Key>@<bootnode Private IP>:30303 --rpc-http-enabled --rpc-http-host=<IP_ADDRESS> --host-whitelist="*" --rpc-http-api=ETH,NET,IBFT --rpc-http-cors-origins="all" --metrics-enabled --metrics-host=<IP_ADDRESS> --metrics-port=9545 --p2p-host=<node private ip> &
Once all of them run they can't find other peers I don't Know why and It keep giving me this message forever.
2020-03-26 13:51:55.658+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:00.659+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:05.660+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:10.660+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:15.661+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:20.662+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:25.663+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:30.663+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:35.664+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:40.665+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:45.666+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:50.666+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:55.667+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:53:00.668+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:53:05.668+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers.
Could anyone tell me please what the problem could be? Thanks In Advance.

I can see that you are using the private ip for the p2p-host --p2p-host=
if your instances are on different networks and not on the same networks I think you should put the advertised host and port for each P2P service

Yes, in my instance I am specifying my external IP with the --p2p-host flag. I'm not it's making much difference though, from yehia67's case.

Yes, I tried both ways, UPNP and MANUAL for nat-method. I will try leaving it runnng longer and report back :)
Yes, I sanitized the logs, to indicate internal LAN versus external IP, there. I'm not specifying the network, so Im just trying to connect to MAINNET, the default setting there.

Yes it may take time before finding peers. Feel free to tell us if that doesn't solve the issue

Hi there. I have let it run for 20+ minutes trying both UPNP and MANUAL nat-methods. No luck, still just says no sync target.
Let me know if there's anything else I can try or more logs I might be able to generate to help debug this issue and connect to the other validators. Thanks again

Hi there. I have let it run for 20+ minutes trying both UPNP and MANUAL nat-methods. No luck, still just says no sync target.
Let me know if there's anything else I can try or more logs I might be able to generate to help debug this issue and connect to the other validators. Thanks again

Could you send me the command line you use to launch besu? Did you do your last tests on the mainnet or in a private network?

Hi, thanks for your suggestion, matkt.
Here is the command I'm using to start besu now:

besu --network-id="1xxxx7" --nat-method="MANUAL" --p2p-host="external.server.ip.address" --discovery-enabled=false

It's still not peering to the online validator nodes though, sadly. Same thing, just a lot of "FullSyncTargetManager | No sync target, wait for peers." still.
Thanks again for your continued persistence in helping troubleshoot this issue, guys.

-network-id

It's a pleasure. Are you sure there is another node available on the network-id you are using?
https://besu.hyperledger.org/en/stable/Concepts/NetworkID-And-ChainID/#specify-a-different-network-id

Hi, thanks for your suggestion, matkt.
Here is the command I'm using to start besu now:

besu --network-id="1xxxx7" --nat-method="MANUAL" --p2p-host="external.server.ip.address" --discovery-enabled=false

It's still not peering to the online validator nodes though, sadly. Same thing, just a lot of "FullSyncTargetManager | No sync target, wait for peers." still.
Thanks again for your continued persistence in helping troubleshoot this issue, guys.

It's a pleasure. Are you sure there is another node available on the network-id you are using?
https://besu.hyperledger.org/en/stable/Concepts/NetworkID-And-ChainID/#specify-a-different-network-id

Hi there.
So I'm trying to connect to the Government Blockchain Association's blockchain, that they have set up on the Azure cloud. They mentioned that when using the Azure GUI, they only needed the network-info URL and networkID (BIGNUM), to start new validator nodes and connect. I'm not in the Azure cloud, I run my own server network. So I'm trying to figure out how to connect to their blockchain group which they have running, in Azure. They are up and running as far as I know, they didn't specify any network other than MAINNET or anything.
I was able to get the existing validate enode data from the network-info URL that they gave me, which looks like:
http://ethXXXXXXXXXX-dns-reg1.eastus2.cloudapp.azure.com:3001/networkinfo
Should my node also be displaying some network-info at port 3001? Is there some GUI software I can run locally to help connect, like they have in the Azure cloud, or can I give them some log command to run, to see what bezu command they are running on their nodes?

@timbeiko I try to create my own network on aws VPC
The details are here:-
Hello everyone.
I am trying to create a besu private network using IBFT2 on AWS VPC. I follow this tutorial https://pegasys.tech/setting-up-hyperledger-besu-in-aws/
I have 2 instances on private subnets and 2 others on public subnets. One of my private instances is the bootnode.
I run it using this command for bootnode
besu-1.3.6/bin/besu --data-path=data --genesis-file=./genesis.json --rpc-http-enabled --rpc-http-api=IBFT --rpc-http-host=<IP_ADDRESS> --host-whitelist="*" --rpc-http-cors-origins="all" --metrics-enabled --metrics-host=<IP_ADDRESS> --metrics-port=9545 --p2p-host=< Private ip> &
then I run this command on each instance
 besu-1.3.6/bin/besu --data-path=data --genesis-file=./genesis.json --node-private-key-file=/opt/besu/keys/key --bootnodes=enode://<bootnode Public Key>@<bootnode Private IP>:30303 --rpc-http-enabled --rpc-http-host=<IP_ADDRESS> --host-whitelist="*" --rpc-http-api=ETH,NET,IBFT --rpc-http-cors-origins="all" --metrics-enabled --metrics-host=<IP_ADDRESS> --metrics-port=9545 --p2p-host=<node private ip> &
Once all of them run they can't find other peers I don't Know why and It keep giving me this message forever.
2020-03-26 13:51:55.658+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:00.659+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:05.660+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:10.660+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:15.661+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:20.662+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:25.663+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:30.663+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:35.664+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:40.665+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:45.666+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:50.666+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:52:55.667+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:53:00.668+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers. 2020-03-26 13:53:05.668+00:00 | EthScheduler-Timer-0 | INFO | FullSyncTargetManager | No sync target, wait for peers.
Could anyone tell me please what the problem could be? Thanks In Advance.

Hello @yehia67
Could you open a separate issue for this please? This is unconnected to the issue in this page and will help us address both issues correctly. When doing so could you post a picture of your security group rules please? You need to have 30303 open on UDP & TCP - the issue you have appears to be related to connectivity on UDP.
Cheers

er network. So I'm trying to figure out how to connect to their blockchain

Hello @Tectract
Thank you for the detailed explanation and logs - could you confirm a few things:

Does GBA have a seperate bootnodes list or do they use their validators as bootnodes too?
Does GBA enforce any permissions scheme on nodes joining in? Or is the enode that you provide purely to serve as a validator?
Do they allow connections from outside of Azure ie. do they run any vpn routes for new nodes as part of the setup via their GUI?
To the best of my knowledge, Besu doesn't display anything on port 3001 re networkInfo

Thank you

I'll get back to you with more definitive answers to these questions this week, thank you again for your help, as possible.
My understanding is that all the nodes in the GBA chain so far are run by validators who joined via the Azure network gui interface, or had more observer nodes also in Azure.
The enode data I have seems to be the existing validator set, or at two of the validators? It's whatever was listed as bootnodes in the network-info data, from that network-info URL they gave me. My new node will also be a validator, I have provided my ETH address and enode string to GBA, so they can add me as validator, after I connect succesfully. The goal is to then run a blockchain explorer and host some web3.js apps on my servers.

Do they allow connections from outside of Azure ie. do they run any vpn routes for new nodes as part of the setup via their GUI?

This is pretty interesting :)

@joshuafernandes  okay thank you.

Does GBA have a seperate bootnodes list or do they use their validators as bootnodes too?

Currently, we are using validators as bootnodes.  This will change as we get more nodes.

Does GBA enforce any permissions scheme on nodes joining in? Or is the enode that you provide purely to serve as a validator?

We do not enforce any permissions scheme.

Do they allow connections from outside of Azure ie. do they run any vpn routes for new nodes as part of the setup via their GUI?

We do not run any vpn routes.

To the best of my knowledge, Besu doesn't display anything on port 3001 re networkInfo

Do they allow connections from outside of Azure ie. do they run any vpn routes for new nodes as part of the setup via their GUI?

This may be required, we're still learning.
@joshuafernandes Can you give me some instructions for connecting to a public Besu Ethereum testnet or mainnet, for me to test? Do those nodes run on Azure, and do they run any VPN connection that allows the outside world to connect?
Can you give us instructions for how a VPN tunnel would typically be set up for a Besu network running on Azure to allow outside validator / non-validator node connections?

Can you give me some instructions for connecting to a public Besu Ethereum testnet or mainnet, for me to test?

@Tectract this should help to get running on Goerli: https://besu.hyperledger.org/en/latest/HowTo/Get-tarted/Starting-node/#run-a-node-on-goerli-testnet
You'll have to wait for Josh for answers on the rest :-)

Hi @Tectract apologies for the delay in getting back to you - been extremely busy.
Based on @MWaser replies, the first thing I would do is ensure you can communicate with the bootnodes in GBA from where your nodes are:
Check for udp connectivity:
nc -vu GBA_bootnode_ip 30303
Check for tcp connectivity:
nc -vt GBA_bootnode_ip 30303
If both return successful connections then you should have no issues connection to the best of my knowledge. The VPN tunnel is the next step in the event that you do not have direct connectivity into GBA ie. its private inside Azure only.
We dont run a testnet in Azure, but we've got a template that you can use to create an IBFT2 network in Azure here: https://github.com/PegaSysEng/besu-terraform/tree/master/azure/ibft-4-validators. You'll need to make a couple of changes to get this going to make this public:

change all of the source_address_prefix values to "*" for the discovery ports security rules in the eth_nsg (lines 238 & 227) in https://github.com/PegaSysEng/besu-terraform/blob/master/azure/ibft-4-validators/main.tf#L170

Once thats up, you should see blocks being created and then run the same nc tests from above. I expect that they should return successful and you should be able to connect Besu to them. As before, when you fire up Besu please use an externally accessible IP - ie the nodes in Azure must also be able to talk to your nodes on 30303 UDP & TCP.
Let us know how you go
Cheers

nc -vu ethxxxxxxxxxxx.eastus2.cloudapp.azure.com 30303

Connection to etht5zt7j-dns-reg1.eastus2.cloudapp.azure.com 30303 port [udp/*] succeeded!

nc -vt ethxxxxxxxxxxx.eastus2.cloudapp.azure.com 30303

nc: connect to ethxxxxxxxxxxx.eastus2.cloudapp.azure.com port 30303 (tcp) failed: Connection timed out

No TCP connectivity may be the problem. What do I need to do to tell the Azure node operators to enable TCP connectivity on the 30303 port?
Should I refer them to this?

There are a few ways to do this, basically it just needs to know how to route to a given CIDR block (the ones in Azure). Azure's recommendations for a VPN https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal

Hi @Tectract
Yep, Im not sure how they've got Besu configured on their end. Basically the network security group needs 30303 open for TCP and UDP and then it should just work. This is the link in the docs explaining that without it open for TCP no nodes can communicate
https://besu.hyperledger.org/en/stable/HowTo/Find-and-Connect/Configuring-Ports/#p2p-networking
Cheers
Josh

@Tectract I'll close this issue for now, but please re-open if there is anything else.

I'd like you to know that the GBA essentially gave up trying to start their blockchain using the Azure cloud. Nobody noticed that little note about how it will not work at all unless you make special network rules allowing TCP traffic on port 30303, and even when I mentioned that's what they needed to do, they still couldn't figure out how to do it. So, we never resolved this issue. GBA was unable to launch their blockchain on Azure using Bezu node, essentially.

I would like to suggest that TCP be opened on port 30303 by default from now on unless there is some reason that can't be done by default. Having it closed cost us a ton of time and basically prevented us from being able to launch a blockchain on Azure.

Thanks for the feedback @Tectract, I'll check in with the team about having it open by default.

same issue still exist :(


react-native init AwesomeProject fails (throw new Constructor(this._buildMessage(msg));)

I just downloaded the latest react native tools, updated homebrew and am trying to create a fresh project from the Getting Started page. I ran react-native init AwesomeProject and got this:
dwilt:Desktop dwilt$ react-native init AwesomeProject
This will walk you through creating a new React Native project in /Users/dwilt/Desktop/AwesomeProject
Installing react-native package from npm...
/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-core/lib/transformation/file/logger.js:39
    throw new Constructor(this._buildMessage(msg));
    ^

ReferenceError: [BABEL] /Users/dwilt/Desktop/AwesomeProject/node_modules/react-native/local-cli/bundle/bundle.js: Using removed Babel 5 option: base.stage - Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets
    at Logger.error (/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-core/lib/transformation/file/logger.js:39:11)
    at OptionManager.mergeOptions (/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:20)
    at OptionManager.init (/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-core/lib/transformation/file/options/option-manager.js:465:10)
    at File.initOptions (/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-core/lib/transformation/file/index.js:194:75)
    at new File (/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-core/lib/transformation/file/index.js:123:22)
    at Pipeline.transform (/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-core/lib/transformation/pipeline.js:45:16)
    at Object.transformFileSync (/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-core/lib/api/node.js:124:10)
    at compile (/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-register/lib/node.js:98:20)
    at loader (/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-register/lib/node.js:126:14)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/dwilt/Desktop/AwesomeProject/node_modules/babel-register/lib/node.js:136:7)
dwilt:Desktop dwilt$

React Native version...
dwilt:AwesomeProject dwilt$ react-native --version
react-native-cli: 0.2.0
react-native: 0.22.2
dwilt:AwesomeProject dwilt$

OSX: 10.11.4
Node: v5.7.1
I saw other issues that seemed similar to this:

https://github.com/facebook/react-native/issues/4030
https://github.com/facebook/react-native/issues/4690

but since I can't install - I can't remove a .babelrc file which isn't even there. Not sure what to do here.

Thank you: https://github.com/facebook/react-native/issues/4030#issuecomment-156441992
Fixed, by deleting the .babelrc in your home directory:
rm ~/.babelrc

I neither have a .babelrc nor a .babel.json in my home folder. After running react-native init AwesomeProject I get the same error and end up with a ~/.babel.json file with an empty object in it.
➜  AwesomeProject react-native --version
react-native-cli: 0.2.0
react-native: 0.24.1
➜  AwesomeProject cat ~/.babel.json
{}%


Change in color of text when we hover in light mode

Description

resolves #177
Changes

I adjusted the logo and icons to use text-brand-500 and added a drop shadow as per the discussion in comments.

I replaced the existing text-brand-700 with text-brand-650 to better align with the color scheme in light mode.
note: text-brand-650 was used instead of text-brand 500 as text-brand-500 got washed out on white background despite the use of drop shadows and text-outlines when viewing texts with small font.

It's worth noting that text-brand-650 is slightly darker than the standard text-brand-500, but it blends in seamlessly unlike text-brand-700, ensuring consistency across the design.

note:
Screenshots (if appropriate):
Final look:
logo:

header:

Icons:

footer:

Hey @namgyalangmo thank you for your work. We are a bit under water preparing for the 1.7.0-alpha1 release, but ping me on this issue if you don't get any reviews by next week please.

@janosdebugs gentle reminder.

Hi @namgyalangmo thank you for poking me. I've looked at it and there are a few issues.

The "The Linux Foundation Projects" logo on the front page seems to also be affected which suggests it is clickable, but it is not:

The menu link text still has a relatively low contrast when hovered, I think the shadow might help here too.
The logo has a weird 2-phase hover. The yellow logo appears when hovering near the logo, but the shadow only appears when your cursor is directly on the logo. It seems like the hover effect is on the wrong element.

will look into it and make the necessary changes.

I have addressed points 1 and 3 as requested. Regarding point 2, I attempted to add a shadow to the text. However, due to the small font size, it appeared blurry to me. Instead, I opted to use a darker shade of yellow. Please let me know your thoughts on this approach!
menu link text with shadow

menu link text with alternate shadow

@namgyalangmo I've tested it and there is still a very low contrast. I tried the following setting, which seems to work much better:
text-shadow: -1px -1px 0 rgba(0,0,0,0.25), 1px -1px 0 rgba(0,0,0,0.25), -1px 1px 0 rgba(0,0,0,0.25), 1px 1px 0 rgba(0,0,0,0.25)

I have added the suggested shadow, please have a look @janosdebugs .


Polish groovy.lang package documentation

Fix typos and improve documentation (javadoc, comments) in the groovy.lang package.
Note that the following words / expressions were preferred :

return back -> returns (when possible because it is easier to read),
multi-threaded -> multithreaded (more common, see https://en.wikipedia.org/wiki/Multithreading)
whether or not -> whether (when possible because it is easier to read),
meta class -> metaclass (incorrect, see https://en.wikipedia.org/wiki/Metaclass).

Trailing whitespaces were also removed in the process.

Merged, thanks!


Authorised in Safari  leading to be reject :(

Hi， I made a small app with Swifter. Unfortunately it was rejected by Apple , the reason below:
"Guideline 4.0 - Design
We noticed that the user is taken to Safari to sign in or register for an account, which provides a poor user experience.
Next Steps
To resolve this issue, please revise your app to enable users to sign in or register for an account in the app.
We recommend implementing the Safari View Controller API to display web content within your app. The Safari View Controller allows the display of a URL and inspection of the certificate from an embedded browser in an app so that customers can verify the webpage URL and SSL certificate to confirm they are entering their sign in credentials into a legitimate page."
Could I have any way to revise this app? Thanks.
here is some code snippets:

extension AuthView {
func login() {
    let failureHandler: (Error) -> Void = { error in
        print(error.localizedDescription)
    }
    let url = URL(string: "fetchmee://success")!
    swifter.authorize(withCallback: url, presentingFrom:UIHostingController(rootView: self) , success: {token, _ in
        if let token = token {

            userDefault.set(token.key, forKey: "tokenKey")
            userDefault.set(token.secret, forKey: "tokenSecret")
            userDefault.set(token.userID, forKey: "userIDString")
            userDefault.set(token.screenName, forKey: "screenName")

            userDefault.set(true, forKey: "isLoggedIn")
            self.loginUser.isLoggedIn = true
            print(#line, "set isLoggedIn")

            self.readInfo()
        }
    }, failure: failureHandler)
}

Solved.


which script consists of kernel granger casuality function?

a script is a script a function is a function

Thanks for the information, i could use it now. I have one more query how to apply granger causality for non-stationary signals as it is meant that it can be applied only for stationary signals.

@danielemarinazzo  i have non stationary brain signal with several trials. I have filtered it and windowed it into 2s segment. After this i got matrix of 500 by 35 to which i applied granger to select columns . Is this the way you you are saying?

and where are you using the trials? what is 500 and what is 35?

@danielemarinazzo 500 are trials and 35 are number of channels of brain signals

This indeed allows you to perform a time point by time point analysis, but
not Granger causality since all data refers to the same time point. The
minimal window should be equal to the order of your auto regressive model
plus one.
On Thu, 23 Nov 2023, 15:23 manvirvirk, @.***> wrote:

@danielemarinazzo https://github.com/danielemarinazzo 500 are trials
and 35 are number of channels of brain signals
—
Reply to this email directly, view it on GitHub
https://github.com/danielemarinazzo/KernelGrangerCausality/issues/2#issuecomment-1824520834,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABIQU7T5DV4WK2QPBRVKLU3YF5L6BAVCNFSM6AAAAAA7Q2HM5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGUZDAOBTGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@danielemarinazzo  does this repo, causality.m find the granger causality or not?

the repo or the function? The function causality.m computes Granger
causality indeed.
On Thu, 23 Nov 2023 at 18:20, manvirvirk @.***> wrote:

@danielemarinazzo https://github.com/danielemarinazzo does this repo,
causality.m find the granger causality or not?
—
Reply to this email directly, view it on GitHub
https://github.com/danielemarinazzo/KernelGrangerCausality/issues/2#issuecomment-1824751611,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABIQU7X5IYMHJWLZIW347CTYF6AUTAVCNFSM6AAAAAA7Q2HM5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUG42TCNRRGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

ok thank you for the help @danielemarinazzo  (y)


Is there a way to view which model was used?

Issue
If I have it in architect mode I'm assuming the architect mode will be used for the first part (and also because of the price increase using something like OPUS), but after that I've seen it's a combination of the editor model and the weak model but I would like to know which one was used for what if that's possible.
Version and model info
Aider v0.59.1

I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, it will be closed in 7 days.

I'm closing this issue because it has been stalled for 3 weeks with no activity. Feel free to add a comment here and we can re-open it. Or feel free to file a new issue at any time.


6.0 Feedback:  Updating robot to Beta1 sometimes results in loops

Overview
After updating a robot the update was good, but now it just saws updating robot with no step indicated. Yesterday while stuck in some weird loops due to possible networking issues it looped back around to 'Sending file' step. Today it just says updating with no step Listed
Current Behavior
Loops after update- But does update
Expected Behavior
Back to normal app screen after update
Steps To Reproduce

Have a robot on Alpha5
Update to beta1
Observ

e

Operating system
Mac
Robot setup or anything else?
Workaround- Quit app after update and relaunch

Stale.


[Bug]: Icon Hover,Scroll to top button

Give a brief about the bug ✍
I encountered two error in the code
1)On hovering GitHub icon in footer it is getting black(not visible).
2)Scroll to top button position not fixed i.e. got displaced on hovering.
What is the expected behavior? 🤔
1)On hovering GitHub icon will look like hovering on discord icon.
2)Scroll to top button will be fixed and will function properly.
Provide step by step information reproduce the bug 📄
1)Changing the style for hovering on GitHub icon.
2)Adding some styling to scroll to top.
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Please assign it to me, i want to contribute
https://github.com/user-attachments/assets/9f83b2e6-6105-4396-9f04-58c618a85575
https://github.com/user-attachments/assets/354fe13b-390a-46c3-af2e-2b6f9265927b

I would like to work on this issue , as I have a strong background in CSS and HTML. Please assign me under GSSOC'24 extended and level 2 atleast.


Add storybook for React to repo

Reason/Context
I am proposing that we add storybook to this repo so we can begin to add components to a library where we can test and make edits as necessary before they are shipped. We can also use this as a tool to help us document the design system as it grows.
See the storybook docs for instructions on how to install.

Hey @mcturco I would like to work on this issue. I can initialize storybook and setup the test environment for components.

@yashsehgal Yes, go ahead and work on it! Thank you! 😄


Investigate package download performance in Australia

We got feedback that package download from Australia is slow:
https://twitter.com/thenickrandolph/status/1165034353589534722
We should setup CatchPoint test to see if there's a widespread issue or this is localized to the customer's network.
Related VS feedback item to be updated: https://developercommunity.visualstudio.com/content/problem/711230/cant-build-new-uwp-project.html

This is the result of our CatchPoint tests:

Seems like a temporary connectivity issue that was self-resolved.


towards taxon pages as discussed with @n8upham relatd to https://gith…

…ub.com/mammaldiversity/mammaldiversity.github.io/issues/24
Similar to other taxonomic systems, this pull request introduces:

automatically generated stub pages per taxon id in /taxon/[id].md
single taxon pages at /taxon/[id]

The old functionality via "explore" should still be working. This pull request is to try out the taxon pages before switching over.
With this, permalink pages like:
https://mammaldiversity.org/taxon/1005842
should resolve to something like the screenshot below.
Curious to hear your thoughts @JelleZijlstra @n8upham  and friends . . .
-jorrit

This works well!  Merging.  Note that going to https://mammaldiversity.org/taxon/1005842 via local host worked as intended, but then clicking on "Search Species" or other tabs through an error since the address was resolving on a relative basis to ".../taxon/explore.html" which does not exist.  That will likely be fixed after this merge though, so thanks!


Access to probability distribution of detection

Currently after prediction on a dataset, the resulting output contains for each image, a dictionary "pred_instances", which has three members itself: labels, scores, and bboxes. I would like to get for each predicted box, both the softmax distribution (not just the argmax), as well as additional scores (for instance the objectness score from the YOLO models).
How can I obtain such information?

Currently after prediction on a dataset, the resulting output contains for each image, a dictionary "pred_instances", which has three members itself: labels, scores, and bboxes. I would like to get for each predicted box, both the softmax distribution (not just the argmax), as well as additional scores (for instance the objectness score from the YOLO models).
How can I obtain such information?

Hello Haian huang. I meet the same problem. I want to get the distribution but have no solution. May i know how you solve the problem?

I solved it by not using mmdet and instead torch hub models.


Extract of defined types gives escaping error

Closed by https://github.com/aminya/AML/commit/017a405cd1f781669cab1bd15e8b5ca29d45dca7


Rock can now extend generic classes

As well as template classes and mixed (generic template) classes.
How the solution works:
We construct a mapping of the new generic names to the old definitions.
Then, we forward accesses to them to the original definitions.
We also keep illegal names, old names that don't appear in the extended generic names so we can give accurate error messages if they are accessed.
In addition to that, we need to change the way unrolling of properties is done inside the addon, since the addon never used to be in the trail.

Basically, things like this didn't work (at the call site, the declaration was ok):
extend Cell <NewGenName> {
    id: func -> NewGenName {
        val
    }
}

c := Cell new(42)
i := c id() // This failed to realtypize NewGenName

@shamanas would you mind rebasing?

@thomasfanell
Here you go

Grazie!

ExampleClass: class <T> {
	value: T
	init: func (=value)
}
extend ExampleClass<T> {
	getTypeName: func -> String { T name }
}

"%s" printfln(ExampleClass<String> new("moo") getTypeName()) // "String"
"%s" printfln(ExampleClass<String> new(null) getTypeName()) // "Pointer"
"%s" printfln(ExampleClass<String> new(null as String) getTypeName()) // "String"

I would expect T to be String in all three of these cases. This has really nothing to do with extending generic classes, as moving getTypeName into the class definition yields the same result, it's just a general concern, and I can see some potential problems with this.

@thomasfanell
Yes, I think this is indeed a bug, since ExampleClass is fully qualified.
I will check it out and hopefully have a fix, I think it will be pretty easy (rock probably ignores that it is fully qualified and goes on to resolve the generic itself when instead it should just check if the types are compatible).
By the way, up until now I just brought fixes like that to ooc-lang/rock, would you like me to open PRs on magic-lang too?
(There is already one bug fix that went through on ooc and not magic, #983)

rock probably ignores that it is fully qualified and goes on to resolve the generic itself when instead it should just check if the types are compatible

Yeah, that's what I was thinking

By the way, up until now I just brought fixes like that to ooc-lang/rock, would you like me to open PRs on magic-lang too?

If you want, but really, it is our responsibility to monitor ooc-lang/rock for bug fixes etc. I've been so busy with testing the bounty PRs and some other stuff that i've completely neglected to do that lately. It would of course be greatly appreciated if you did! :-)

(There is already one bug fix that went through on ooc and not magic, #983)

Thanks for the heads-up, I will check that out!

Ok, I'll make sure I mirror at least major bug fixes in both repositories to make your life easier, since it's only a matter of making a new branch and applying a diff anyways :)

@shamanas
Is see that you are explicitly disallowing extensions for known types such as: extend Foo<Int>. Is there no way of allowing both ways (as requested in the bounty)? In my head, rock would consolidate all the extensions and generate some sort of error upon redefinitions/collisions. How hard would this be to implement?

@thomasfanell
Hmm..
I think it's a natural limitation of generics.
What you are asking for is really easy to do with templates.
However, generics are meant to be values where you do not actually care about their types, so extending a realized generic type feels weird (at least to me) and would probably require a pretty huge amount of hacking in rock to achieve.
Basically, this can be done by having a list of type realized addons (extensions) in TypeDecl, then finding the best addon with some scoring and resolving calls from it.
However, the methods you are adding could still not handle generic values as their real type.
Anyways, the answer is that it's possible but using some pretty ugly hacks and the result may not be what you expect when you are writing the extention's methods.

@shamanas Yeah, I agree that it feels weird. I just wanted to see if you had any input on the matter. Let's call this one a done deal. :tada:
@fredrikbryntesson


Update sbt-header to 5.6.3

Updates de.heikoseeberger:sbt-header from 5.6.0 to 5.6.3.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "de.heikoseeberger", artifactId = "sbt-header" } ]

labels: sbt-plugin-update, semver-patch

Superseded by #53.


DirectML operator documentation inconsistencies

This is not actually an issue but more of a question or discussion.
I generated a bunch of JSON files to test all DML operators and found a series of issues and inconsistencies in the public documentation found here: https://docs.microsoft.com/en-us/windows/win32/api/directml
To generate accurate JSON files, I scraped the documentation pages and extracted information from the tables found at the bottom of each DML operator page. These JSON files have been tested using dxdispatch.
While extracting that information, I found a series of documentation inconsistencies (e.g. a few table headers contain upper characters as opposed to only lower characters or the documentation states that some DML operators accept specific inputs, but upon execution, DirectML complains that input parameters are invalid).
I don't have all of them noted down right now, but one quick example that I can point out is that in https://docs.microsoft.com/en-us/windows/win32/api/directml/ns-directml-dml_activation_celu_operator_desc the header contains "Supported Dimension Counts" while other pages reference the same header as "Supported dimension counts".
Another example is that DML_OPERATOR_ELEMENT_WISE_CLIP1 requires a field called MinMaxDataType, but upon execution, dxdispatch (or the DirectML dll) requires a field called ValueDataType. Adding a new field called ValueDataType works around that problem - note that both MinMaxDataType and ValueDataType are required.
I could add more examples, but I'd rather note down all of them separately.

Is the DirectML documentation publicly available? I'm thinking that I could create a PR for those pages that have minor inconsistencies.

Is this repo the right place to open issues on incomplete or invalid validation happening inside DirectML?

Is there a tool that I could use instead to generate those JSON files? I see that in dxdispatch https://github.com/microsoft/DirectML/blob/master/DxDispatch/tools/GenerateParsingHelpers.ps1#L3 there's a file referenced that (I assume) contains the schema for all operators. Is that open source? Or could it be made open source?

Thanks,
Gabriel

Hi, thanks for the feedback! The source that generates the DirectML documentation pages is publicly available - you can find it here. For corrections, feel free to send PRs directly to the MicrosoftDocs repo.

Is this repo the right place to open issues on incomplete or invalid validation happening inside DirectML?

Yes, if you think you've found a bug in our validation, please do file a GitHub issue and we'll look into it.
Specifically for CLIP1, here's the struct definition as it appears in our header DirectML.h:
struct DML_ELEMENT_WISE_CLIP1_OPERATOR_DESC
{
    const DML_TENSOR_DESC* InputTensor;
    const DML_TENSOR_DESC* OutputTensor;
    _Maybenull_ const DML_SCALE_BIAS* ScaleBias;
    DML_TENSOR_DATA_TYPE MinMaxDataType;
    DML_SCALAR_UNION Min;
    DML_SCALAR_UNION Max;
};

It appears that the documentation for this operator is correct, so this might just be a problem with the dxdispatch tool. @jstoecker FYI

Is there a tool that I could use instead to generate those JSON files?

Unfortunately we don't have a public machine-readable description of all our operators, but the closest thing is likely going to be the DirectML.h header itself. The header is going to be the canonical source of truth (and the docs should match the header - if they don't, let us know!)
You can find a copy of the header (and DLLs) inside our NuGet package. .nuget files are just zip files, so you should be able to rename the extension and extract the header if you'd like to take a look at it directly.

Another example is that DML_OPERATOR_ELEMENT_WISE_CLIP1 requires a field called MinMaxDataType, but upon execution, dxdispatch (or the DirectML dll) requires a field called ValueDataType. Adding a new field called ValueDataType works around that problem - note that both MinMaxDataType and ValueDataType are required.

Thanks, Gabriel, this is indeed a bug in dxdispatch. The generated parsing code for ELEMENT_WISE_CLIP1 is incorrect because the script you referenced is assuming all DML_SCALAR_UNION fields reference a second field named "ValueDataType".
I am in favor of publishing an open-source version of the DirectML API schema, but as Adrian mentioned we don't have anything that is suitable for public consumption right now. Hopefully that changes sooner than later, but for now Adrian's suggestions are good advice. It would be interesting to know more about your specific use case here to justify making a public stable schema.

Is the DirectML documentation publicly available? I'm thinking that I could create a PR for those pages that have minor inconsistencies.

The docs you see are produced from an open-source repo. You can open PRs in the MicrosoftDocs repo, but it's better to just open an issue on the DirectML GitHub repo (like this one) so we can fix it in both public and internal repos.

@adtsai thanks for the pointers, will take a look.

It would be interesting to know more about your specific use case here to justify making a public stable schema

@jstoecker I'm looking for a way of running DML operators (with a few specifics on what subsets of data to test) at the DirectML level and found dxdispatch quite useful, so I put something together to generate JSON files for inputs.
Do you have other suggestions on what I could use here? I assume that Microsoft has such tools, but probably most of them are closed source or not for public use :)

I'm looking for a way of running DML operators (with a few specifics on what subsets of data to test) at the DirectML level and found dxdispatch quite useful, so I put something together to generate JSON files for inputs.

That's good to hear! Just know that it's not going to be the most efficient (performance wise) if you end up chaining together operations into a graph. DxDispatch is really intended more for experimentation/debugging than as a foundational library for applications to build on. For a more general compute platform we expect most people are going through something like ONNX runtime, PyTorch, or TF: we have more sophisticated logic in these codebases for optimizing graph-level computations.
I know some others have expressed interest in a layer that is pure DirectX and has some of the sophisticated logic from our ML framework backends, but it doesn't exist as of today. Maybe one day!

Do you have other suggestions on what I could use here? I assume that Microsoft has such tools, but probably most of them are closed source or not for public use :)

Unfortunately, no. We do have some internal tests and tools as you'd expect, but no generalized tools suitable for public use. D3D12 is already a pretty low level for most developers to work with, so it's a fairly specialized group of users trying to call into DirectML APIs (hardware partners, game devs, ML frameworks).
Nevertheless, I think a public API schema has value. I will advocate for it but no promises we can publish anything anytime soon.


Multiple Monitors

I'm using my Surface Pro with an external Monitor as second screen. I've not found any option to use Fancy Zones on this second screen. Ideally I'd only use the zones if the second (big) screen is connected.

Hi @mabeyer
we track the multi monitor issue here https://github.com/microsoft/PowerToys/issues/195
Feel free to add you comments there.
I'm closing this one as duplicate.
Thank you.


Drop JSONB mapping of attributes for M2M relations

Closes #4643, closes #4674, fixes #4685.

[x] The migrations are done
[ ] The migrations are automatically tested against all cases

[x] Dashboard 1.0 support
[x] GraphQL: mutations
[x] GraphQL filtering
[x] GraphQL tests are updated adequately

GraphQL test cases checklist

[x] Existing attribute value doesn't create a new one
[x] Attributes flagged as required returns a validation error if no value supplied
[x] Passing a non existing attribute ID and slug
[x] When no slug or ID was provided in input, raises a validation error (deprecated)
[x] The deprecated field SelectAttribute.value is tested
[x] Blank value triggers a validation error
[x] All variant attributes are required

[x] The old attribute logic in SEO is updated
[x] Storefront 1.0 support
[x] unit tested?

[x] Storefront 1.0 filtering support
[x] unit tested?

[x] Populatedb is updated to assign attributes and values to the products/variants

Screenshots

Pull Request Checklist

[x] Privileged views and APIs are guarded by proper permission checks.
[ ] All visible strings are translated with proper context.
[ ] All data-formatting is locale-aware (dates, numbers, and so on).
[x] Database queries are optimized and the number of queries is constant.
[x] Database migration files are up to date.
[x] The changes are tested.
[x] GraphQL schema and type definitions are up to date.
[x] Changes are mentioned in the changelog.

Here is the report for 0ac7aa2baf0c599288c47a5883b439c29d91cbfb (NyanKiyoshi/saleor @ product/attributes/mapping)
Base comparison is 65e00b0d1497d329320b33c8bcdbe1fa8febfb9d.
**Found 2 differences!** (click me)

# api.benchmark checkout
  test name                           	left count 	right count	duplicate count
  ------------------------------------	-----------	-----------	---------------
  add billing address to checkout     	         34	         34	             20
  add shipping to checkout            	          7	          7	              0
  checkout payment charge             	         14	         14	              0
  complete checkout                   	          6	          6	              0
  create checkout                     	         48	         48	             24

# api.benchmark homepage
  test name                           	left count 	right count	duplicate count
  ------------------------------------	-----------	-----------	---------------
  retrieve main menu                  	          5	          5	              0
  retrieve product list               	          4	          4	              0
  retrieve secondary menu             	          5	          5	              0
  retrieve shop                       	          2	          2	              0

# api.benchmark product
  test name                           	left count 	right count	duplicate count
  ------------------------------------	-----------	-----------	---------------
- product details                     	         13	         15	              3

# api.benchmark variant
  test name                           	left count 	right count	duplicate count
  ------------------------------------	-----------	-----------	---------------
- retrieve variant list               	         15	         18	              8

Codecov Report

Merging #4663 into master will decrease coverage by 0.33%.
The diff coverage is 94%.

@@            Coverage Diff             @@
##           master    #4663      +/-   ##
==========================================
- Coverage   91.72%   91.38%   -0.34%
==========================================
  Files         313      307       -6
  Lines       18744    18643     -101
  Branches     1849     1857       +8
==========================================
- Hits        17192    17037     -155
- Misses       1040     1079      +39
- Partials      512      527      +15

Impacted Files
Coverage Δ

saleor/graphql/product/mutations/attributes.py
96.94% <ø> (ø)
:arrow_up:

saleor/graphql/payment/mutations.py
96% <ø> (ø)
:arrow_up:

saleor/product/utils/__init__.py
95.29% <ø> (ø)
:arrow_up:

saleor/product/utils/variants_picker.py
95.08% <100%> (+0.16%)
:arrow_up:

saleor/graphql/product/types/attributes.py
98.14% <100%> (+0.08%)
:arrow_up:

saleor/page/models.py
85.71% <100%> (ø)
:arrow_up:

saleor/core/db/fields.py
100% <100%> (ø)

saleor/dashboard/product/views.py
93.4% <100%> (ø)
:arrow_up:

saleor/product/tasks.py
100% <100%> (ø)
:arrow_up:

saleor/seo/schema/product.py
93.93% <100%> (+21.21%)
:arrow_up:

... and 73 more

Continue to review full report at Codecov.

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

Codecov Report

Merging #4663 into master will decrease coverage by 0.33%.
The diff coverage is 94%.

@@            Coverage Diff             @@
##           master    #4663      +/-   ##
==========================================
- Coverage   91.72%   91.38%   -0.34%
==========================================
  Files         313      307       -6
  Lines       18744    18643     -101
  Branches     1849     1857       +8
==========================================
- Hits        17192    17037     -155
- Misses       1040     1079      +39
- Partials      512      527      +15

Impacted Files
Coverage Δ

saleor/graphql/product/mutations/attributes.py
96.94% <ø> (ø)
:arrow_up:

saleor/graphql/payment/mutations.py
96% <ø> (ø)
:arrow_up:

saleor/product/utils/__init__.py
95.29% <ø> (ø)
:arrow_up:

saleor/product/utils/variants_picker.py
95.08% <100%> (+0.16%)
:arrow_up:

saleor/graphql/product/types/attributes.py
98.14% <100%> (+0.08%)
:arrow_up:

saleor/page/models.py
85.71% <100%> (ø)
:arrow_up:

saleor/core/db/fields.py
100% <100%> (ø)

saleor/dashboard/product/views.py
93.4% <100%> (ø)
:arrow_up:

saleor/product/tasks.py
100% <100%> (ø)
:arrow_up:

saleor/seo/schema/product.py
93.93% <100%> (+21.21%)
:arrow_up:

... and 73 more

Continue to review full report at Codecov.

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


What endpoints need to be unblocked to install in a DoD IL5 tenant?

Submit your question
What is the context of your question

[x] Installation

What is your question

I am a FTE with Microsoft supporting a DoD customer that wants to install Learning Pathways in their IL5 tenant. In speaking with others that have done the installation in DoD tenants, they only had to make a small change to the PowerShell script to point to https://$TenantName.sharepoint.us. However, in our case, I believe that there are certain endpoints (starting with Github.com) that are being blocked. I am asking if there is any documentation on what endpoints should be unblocked for a successful installation.

@andresmdc the webpart gets the manifest file from https://pnp.github.io/custom-learning-office-365/learningpathways so that needs to be accessible in any environment regardless if it is GCC or not. From what I understand Microsoft Learning Pathways does run in GCC environments with some changes to the install script as you mentioned and sites opened in firewalls but that is not something we "officially" support as we don't have a GCC tenant to test in.

Closed as answered


Captcha bypass vulnerability

The simple-php-captcha.php file has a vulnerability enabling a client to generate the captcha response automatically, effectively bypassing the captcha.
Since microtime() is used both in the initial seed for the captcha and in the captcha url path sent to the client, it is possible to generate the captcha result automatically by running the same code client-side.
I can share a proof of concept privately if you need it. Just let me know how to reach you.

You're right. At a glance, I think simply removing the seed from srand() would fix it. Lines 63 and 119 should become simply:
srand();

Could you verify?

According to php.net's srand() documentation you can simply get rid of the srand() call:

There is no need to seed the random number generator with srand() or mt_srand() as this is done automatically.

If you insist on using a different seed for the captcha's code generation and its drawing parameters I would advise using rand() for drawing and the more secure mt_rand() for captcha code generation.
FYI: @ProloG-Shaman and I found the issue and created a proof of concept of the exploitability for a whitehat security competition (NorthSec)

What @obilodeau said is correct, getting rid of the srand() call should fix the issue.

This is being discussed on the ossec mailing list. Removing srand() doesn't actually fix the vulnerability, and mt_rand() is not more secure than rand(). Both have up to 32 bits of entropy and can be cracked pretty trivially.
The PHP 7 solution is to use random_int(). We're working on a polyfill for random_bytes() and random_int() at random_compat if you'd like a permanent solution.

I'd be interested in an updated proof of concept. One of the messages I came across on ossec included speculation but no concrete evidence of a continued vulnerability. (Admittedly, I haven't had a chance to read the full discussion yet.)
That said, I'm sure with some amount of effort it is possible to bypass this captcha. My question is how much effort would actually be required? This is a pretty basic script that layers text over a background image, so any decent OCR library will be able to reliably identify the codes it generates—probably with less effort than alternative approaches.
This wasn't meant to be the best captcha in the world. In fact, I hope to see this and other captcha scripts/services phased out in favor of more effective, user-friendly technologies.
In the meantime, I'm open to proof of concepts and PRs from those who wish to provide them.


flow accounts remove

Closes #68
There was no template in the flow sdk repo so I just made it inline here, I did not want to file a PR against two repos but can add the template in a seperate PR and refactor this afterwards?

see https://github.com/onflow/flow-go-sdk/pull/152 for the template

@bjartek  I think it's a great feature to support in CLI, however, if you don't mind waiting for the PR onflow/flow-go-sdk#152 to be closed and then implement this without the temp template fix.

Sure

Close was automatic. This shouldn't be closed

@bjartek you can use your template in Flow Go SDK v0.15.0 now: https://github.com/onflow/flow-go-sdk/releases/tag/v0.15.0

@psiemens as @janezpodhostnik pointed out this is blocked by emulator dependency (cadence 0.12.6) which depends on flow-go (cadence 0.13). Can we release a new version of the emulator so we can add it here?

Not really sure why the go.mod is different here, I just ran go mod tidy before i committed.


change android support library version

android support library need to use same version with root project, or it will getting error when compiled with different version

Thanks @muhamad-rizki  👍


Transparent innercolor, how?

Any way to do that? transparent inner/bgcolor?

any update on this?


alwsl and zfs

Hello, i just discovered this project and i am wondering what are the possibilities of it.
I saw that it is possible to run yaourt, will i be able to use it to plug zfs and samba so i can my zfs raid on my windows install?
That would be glorious !
Sorry to bother you with noob question :)

I don't understand your question.

What does running yaourt have to do with zfs?
What do you mean "can my zfs raid on windows"?

WSL has no notion of file systems. It's a binary call translation. alwsl 1.0 can run on more frameworks than just WSL, and some of them require samba. But the arch file system is going to be ext4 at best.
But all this is guessing, as it's really hard to understand what you actually want to achieve.

-Yaourt allows to install this aur repo : https://aur.archlinux.org/packages/zfs-linux/

If i can run zfs on my windows i can mount my zfs pool thus reading my datas.

I just want to run the zfs module on my windows 10 install using this tool if possible, i don't really know how wsl works but i assume it will be possible if i can get the binary with yaourt and run it.

Just because it's a packet doesn't mean it's related to yaourt.
Now again, what is your "zfs pool"? Where is this data stored? Windows does not support ZFS, and WSL is not a different operating system. It's still Windows, now running the archlinux userland. It doesn't have a linux kernel.

A zfs pool is a raid managed by zfs.
Data is stored on harddrives.
Well, i can run ext2 or ext4 on windows 10 using software so i assumed wsl with the build included enough to be able to run zfs.
Why would the linux kernel be needed?

Because zfs is a Linux kernel module, and unless there is a Linux kernel to plug it into, it's not very useful

Exactly.


[Bug]: "Try it out" button doesn't trigger the "Example value" editor

Describe the bug
Clicking the "Try it out" on an operation with request body doesn't automatically trigger the "Example value" editor.
The following video contains a comparison between the expected (which I could trace back to v6.4.0, the one I was using) and the actual behavior:
Expected:
https://github.com/user-attachments/assets/95f338b0-b9b7-44e7-b2dd-08b23f1d4b29
Actual:
https://github.com/user-attachments/assets/191634b6-c446-4e26-ba85-8dff1df804bf
Expected behavior
Clicking the "Try it out" on an operation with request body automatically triggers the "Example value" editor.
Actual behavior
Clicking the "Try it out" on an operation with request body doesn't automatically trigger the "Example value" editor.
Steps to reproduce

Go to a documentation page.
Click on an operation.
Click on the "Try it out" button.

Exception(s) (if any)
No response
Swashbuckle.AspNetCore version
v7.0.0 (current).
.NET Version
net8.0
Anything else?
No response

Since 6.4.0, swagger-ui has been upgraded from v4.12.0 to v5.18.1.
Unless there's a difference in the OpenAPI document itself that causes this change in behaviour (and it's a bug), this will be something to take up with the SwaggerUI project to see if it's a bug or an intentional UX change between those versions.


Unmaintained & unable to contribute

I'd like to be able to contribute to this project.  We are using it for our production publication flow and it is referenced to from Gatsby's documentation.  However, it seems to virtually unmaintained as can be proven by looking at my & others' previous issues.
I would like to be able to contribute but by following the contributing guidelines at the bottom, that is not possible:

I needed to remove the prepare script from the gatsby-plugin-s3/package.json because I don't have Snyk credentials.  So only those who have those credentials can run the npx lerna bootstrap command without that change.  I don't think this should be the default behavior for an open source project...
I get a whole slew of Typescript errors if I try to run npx lerna run build.
Running npx lerna run test results in all tests failing.

On top of it all, running npx lerna bootstrap returns 100 vulnerabilities (2 low, 34 moderate, 53 high, 11 critical), plus I get a note about the AWS SDK needing to be updated to version 3 as version 2 will go into maintenance mode this year.  This desperately needs updating.
I'd love to just update this package from where you all left off and leave it linked to from the Gatsby documentation.  I'd just like it if it had been left in at least a maintainable state by those who created it.  Otherwise, we'll just have to fork it and reverse engineer it so it can be properly maintained moving forward.

@davidrhoderick I know it's a long shot, but any progress on this request?

This project works with the free tier of Snyk.
I can't reproduce any TypeScript errors with npx lerna run build, it works for me. I'm using TypeScript v3.8.3 as specified in the package-lock.json file. I'm on Windows 10.
Running the test suite does require some preparation beforehand, see here.

I believe that the project is in a maintainable state, certainly more maintainable than it has been in the past. Unfortunately it's currently not being maintained, largely due to a lack of time and motivation.
I've started a conversation internally about the future of this project. I'll update this thread when we have some kind of plan.

I've spoken to jariz and I'll be taking over governance of the project. I don't expect to have to have a lot of time to work on improvements myself, but I'll at least be able to review PR's and publish new versions to NPM. Perhaps it might've been better to transfer this to someone with a more active interest in the project, but in the open source community we rely on trust quite heavily, so I hope you can understand this decision.
Feel free to @ tag me if you need anything. If you continue to have issues running npx lerna run build, please open an issue with the specifics.


AWS SQS - How to get SentTimestamp?

Confirm by changing [ ] to [x] below:

[x] I've gone though Developer Guide and API reference
[x] I've searched for previous similar issues and didn't find any solution

Platform/OS/Hardware/Device
Linux-5.8.5, aws-sdk-cpp version 1.8.39
Describe the question
I'm trying to get the SentTimestamp from a message, I've tried many variations of what I could find in this issue and looked at the doc but I'm unable to get the individual message's SentTimestamp  attribute.
Below is my simple receive function:
void ReceiveMessage(const Aws::SQS::SQSClient& sqs, const Aws::String& queue_url) {
  Aws::SQS::Model::ReceiveMessageRequest rm_req;
  rm_req.SetQueueUrl(queue_url);
  rm_req.AddMessageAttributeNames("All");
  rm_req.SetMaxNumberOfMessages(1);

  auto rm_out = sqs.ReceiveMessage(rm_req);
  if (!rm_out.IsSuccess()) {
    std::cerr << "Error receiving message\n";
    return;
  }

  const auto& messages = rm_out.GetResult().GetMessages();
  if (messages.empty()) {
    std::cout << "No messages received\n";
    return;
  }

  const auto& message = messages[0];

  auto message_mav = message.GetMessageAttributes();
  if (message_mav.find("SentTimestamp") != message_mav.end()) {
    std::cout << "Found SentTimestamp: " << message_mav["SentTimestamp"].GetStringValue() << '\n';
  }

  std::cout << "Received message (" << message.GetBody().length() << " bytes):\n";
  std::cout << message.GetBody() << "\n\n";

  Aws::SQS::Model::DeleteMessageRequest dm_req;
  dm_req.SetQueueUrl(queue_url);
  dm_req.SetReceiptHandle(message.GetReceiptHandle());

  auto dm_out = sqs.DeleteMessage(dm_req);
  if (dm_out.IsSuccess()) {
    std::cout << "Successfully deleted message\n";
  } else {
    std::cerr << "Error deleting message\n";
  }
}

I'm currently manually adding my own timestamp inside a Aws::SQS::Model::MessageAttributeValue as a string, which I'd like to avoid.  Any suggestions?

Hi @ncoder-1 ,
It is a bit confusing with so many similar names but here's how to get the timestamp in your code sample( keep in mind it is saved in Unix time ).
void ReceiveMessage(const Aws::SQS::SQSClient& sqs, const Aws::String& queue_url) {
    Aws::SQS::Model::ReceiveMessageRequest rm_req;
    rm_req.SetQueueUrl(queue_url);
    rm_req.AddAttributeNames(QueueAttributeName::All); // this is the first change to your code
    rm_req.SetMaxNumberOfMessages(1);
/*rest of the code*/
    const auto& message = messages[0];

    auto message_mav = message.GetAttributes();
    auto iter = message_mav.find( MessageSystemAttributeName::SentTimestamp ); // same idea only different type of data.
    if(iter != message_mav.end()){
        std::cout << "timestamp : " << iter->second <<std::endl; //you'll get an int representing the time.
    }
/*rest of the code*/
...
}

Hi @KaibaLopez ,
That worked perfectly!  Thanks for the help!

I'm getting 3 extra numbers at the end of the timestamp, can you confirm if you are getting the same?  This puts the time some 52,000 years in the future...

The value is in milliseconds since the UNIX Epoch.
1599168535236 converts to Thursday, September 3, 2020 9:28:55.236 PM GMT.

@webbnh , got it, that makes sense! Thanks!


[FLINK-35781][cli] Provide a default parallelism (1) for pipeline jobs

This closes FLINK-35781.
Currently, Flink CDC PIPELINE_PARALLELISM option is forcefully required in pipeline definition, which turns out to be unnecessary since Flink already has a fallback parallelism option.
This PR adds a default value (1, same as Flink's default parallelism) in CDC CLI to resolve this issue.

@ruanhang1993 PTAL


Authenticated personal data deletion support

Implemented changes related to allowing authenticated users to be deleted properly via the admin UI:

Implemented a method for deleting a PalvelutarjotinEvent's contact info, so in practice fields contact_person, contact_email and contact_phone_number. There is also a new datetime field contact_info_deleted_at which is populated when the deletion takes place. Note: the deletion method needs to be executed explicitly, just emptying the fields will not be considered as a contact info deletion in this context.

Added a management command that deletes contact info from too old events. The idea is that this command will be run periodically by cron.

Added new section "enrollee person data" to the admin UI. The contents of that are technically Person objects that don't have a related User object.
The motivation is to clearly separate unauthenticated personal data viewing and deletion from authenticated personal data. Previously both were handled via "person" section, which was pretty confusing and error-prone.
Also from now on, the idea is that authenticated users should be deleted by deleting the User object, which will then remove correctly related Person and handle the deletion logic related to that.

Closes PT-1619 & PT-1621

There is a login issue still! The rest of the changes looks good and seems to work OK.
NOTE: The OccurrenceAdmin's contact_persons field was a bit out of this scope, but it's currently quite useless

Actually, there is apparently no use for those Occurrence-related contact persons, and that relation should be removed altogether.


Automatically archive old logs

In order to limit the resources required by elasticsearch old logs should be automatically archived after a certain date. archives should be able to be re-imported into the system if required. Ideally logs older than 2 years will be archived and should be archived once a day.

determine recommended method of archiving old indices.
write/create a DC/OS scheduled job to perform the task.

added a new wiki page detailing steps taken
https://github.com/ngageoint/scale/wiki/Setting-up-Automated-Snapshots-for-Elasticsearch


[fix #1259]

Describe what this PR does / why we need it
When the last service provider is closed, the client still periodically connects to the last provider.
Does this pull request fix one issue?
Fixes #1259
Describe how you did it
When the last service provider is closed, AbstractSpringCloudRegistry class will notify dubbo close this channel through EMPTY_PROTOCOL，but url contain a parameter with name “category”，value is “configurators,routers,providers”, org.apache.dubbo.registry.integration.RegistryDirectory#notify process the notify will valid the parameter category, only accept one value,“configurators" or "routers" or "providers”, default is
"providers”.  so, i remove the parameter "category" in com.alibaba.cloud.dubbo.registry.AbstractSpringCloudRegistry#emptyURLs
when last provider closed, this channel will close, then a new provider register in, will throw a exception, say this channel has closed. so I remove the "repository.initializeMetadata(serviceName);"  wangzihaogithub's fix #753 Defects described，No longer appear
Describe how to verify it
1、I start two providers and one client
2、close one of providers，the client is OK.
2、Change the port of one of the providers ，then restart， the client is OK.
3、close all of providers，the client is OK.
4、start one of the providers，the client is OK.
5、start another provider ，the client is OK.
Special notes for reviews
wangzihaogithub's fix #753 need rollback ，because some cleanup operations only need to be performed when the last service is shut down

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

There is still a problem. I will submit a new patch. By listening to the change event of the metaservice instance, I will process the service update, close the client, and so on


Add testcase for influxDB sink and source/kubelet

Add testcase for influxDB sink and source/kubelet
fixed https://github.com/kubernetes/heapster/issues/827

Can one of the admins verify this patch?

Hi, @mwielgus Please help to check, thanks.

Looks good, just one minor comment.

yes, i will move these together

LGTM, thank you for the PR.


IOX-#12 32-bit support - fixing alignment problem

fixed alignment problems in 32-bit mode
duration rounding error in 32-bit fixed
objectpool bug fixed which occurred only in 32-bit
convert support for long long (unsigned) int is gone since long long cannot be supported in 32-bit
32-bit problems im memory management solved

Signed-off-by: Eltzschig Christian (CC-AD/ESW1<EMAIL_ADDRESS>

Can you maybe add a comment in the Readme.md about our supported platforms with a prio list?

Done!


Go static executables new model with preload

With the new approach, we use LD_PRELOAD to load our library and decide if we want to scope the process in the constructor with

we should see if this model works in the following cases - when we execve ensure that ldscope is available for the child process

LD_PRELOAD=libscope.so bash
<execute go static exec> <-- is this process aware of `ldscope` location ?

check if we can modify our logic to handle ldscope call inside constructor?

This is a known limitation of scope. You cannot LD_PRELOAD a static go app.
If you want to scope a static go app you must use the loader to run or attach to it.
If you want to use a filter file to scope a static go app, that app must be running at the time the filter file is deployed, so it can be attached to.