Downloading slf4j-api.jar fails the first time sbt is run

steps
sbt version: 1.3.7
To reproduce, I was able to do
rm -rf ~/.ivy2 ~/.sbt
sbt sbtVersion

To get it to happen every time.
build.sbt
import Dependencies._

ThisBuild / scalaVersion := Version.scala
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "io.leapyear"
ThisBuild / organizationName := "LeapYear"

lazy val root = (project in file("."))
  .settings(
    name := "leapyear-spark-compute",
    libraryDependencies ++= Seq(
      scalaTest % Test,
      scalaCheck % Test,
      scalaReflect,
      slf4j,
      snakeYaml,
      sparkCore,
      sparkHive,
      sparkMLLib,
      sparkStreaming,
      sparkSql,
      livyApi,
      livyScalaApi,
      livyClientHttp,
      akka,
      akkaActorTyped,
      akkaHttp,
      akkaHttpSpayJson,
      scalaPbRuntime,
      scalazCore,
      refined,
      zio,
      zioStreams
    )
  )

enablePlugins(PackPlugin)

PB.targets in Compile := Seq(
  scalapb.gen() -> (sourceManaged in Compile).value
)

scalacOptions in ThisBuild ++= Seq(
  "-feature",
  "-language:_",
  "-Xfatal-warnings"
)

parallelExecution in test := false

project/build.properties
sbt.version=1.2.8

sbt installation
Installed with brew
$ brew info sbt
sbt: stable 1.3.7
Build tool for Scala projects
https://www.scala-sbt.org/
/usr/local/Cellar/sbt/1.3.7 (793 files, 61MB) *
  Built from source on 2020-01-31 at 17:21:14
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/sbt.rb
==> Requirements
Required: java >= 1.8 ✔
==> Caveats
You can use $SBT_OPTS to pass additional JVM options to sbt.
Project specific options should be placed in .sbtopts in the root of your project.
Global settings should be placed in /usr/local/etc/sbtopts
==> Analytics
install: 20,391 (30 days), 57,328 (90 days), 175,345 (365 days)
install-on-request: 18,908 (30 days), 52,910 (90 days), 163,727 (365 days)
build-error: 0 (30 days)

~/.sbt/boot/update.log
problem
When running any sbt command (say sbt sbtVersion), the command always fails the first time it's run, then succeeds any subsequent time.
CLIENT ERROR: Not Found url=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.slf4j/slf4j-parent/1.7.25/jars/slf4j-parent.jar
	sbt-ivy-snapshots: resource not reachable for org.slf4j#slf4j-parent;1.7.25: res=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.slf4j/slf4j-parent/1.7.25/jars/slf4j-parent.jar
	default-cache: parsed downloaded md file for org.slf4j#slf4j-parent;1.7.25; parsed=org.slf4j#slf4j-parent;1.7.25
	checking org.slf4j#slf4j-parent;1.7.25 from local-preloaded against [none]
	module revision kept as first found: org.slf4j#slf4j-parent;1.7.25 from local-preloaded
	 trying /Users/bchinn/.ivy2/local/org.slf4j/slf4j-api/1.7.25/jars/slf4j-api.jar
		tried /Users/bchinn/.ivy2/local/org.slf4j/slf4j-api/1.7.25/jars/slf4j-api.jar
	local: resource not reachable for org.slf4j#slf4j-api;1.7.25: res=/Users/bchinn/.ivy2/local/org.slf4j/slf4j-api/1.7.25/jars/slf4j-api.jar
	 trying file:////Users/bchinn/.sbt/preloaded/org.slf4j/slf4j-api/1.7.25/jars/slf4j-api.jar
		tried file:////Users/bchinn/.sbt/preloaded/org.slf4j/slf4j-api/1.7.25/jars/slf4j-api.jar
	local-preloaded-ivy: resource not reachable for org.slf4j#slf4j-api;1.7.25: res=file:////Users/bchinn/.sbt/preloaded/org.slf4j/slf4j-api/1.7.25/jars/slf4j-api.jar
	 trying file:////Users/bchinn/.sbt/preloaded/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
		tried file:////Users/bchinn/.sbt/preloaded/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
	local-preloaded: resource not reachable for org/slf4j#slf4j-api;1.7.25: res=file:////Users/bchinn/.sbt/preloaded/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
	 trying https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
		tried https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
no source artifact found for org.slf4j#slf4j-api;1.7.25
no javadoc artifact found for org.slf4j#slf4j-api;1.7.25
	default-cache: parsed downloaded md file for org.slf4j#slf4j-api;1.7.25; parsed=org.slf4j#slf4j-api;1.7.25
	checking org.slf4j#slf4j-api;1.7.25 from local-preloaded against [none]
	module revision kept as first found: org.slf4j#slf4j-api;1.7.25 from local-preloaded
	found org.slf4j#slf4j-api;1.7.25 in local-preloaded

expectation
It to work the first time
notes
System info
MacOS Mojave 10.14.6
MacBook Pro 15-inch 2018

@brandon-leapyear Thanks for the report.
It seems like Ivy is failing to resolve from local preloaded repo. Could you show the output for
ls ~/.sbt/preloaded/org/slf4j/slf4j-api/1.7.25

?

Thought I would give you this information:
$ tree ~/.sbt/preloaded/org/slf4j/slf4j-api/
/Users/bchinn/.sbt/preloaded/org/slf4j/slf4j-api/
├── 1.7.25
│   ├── slf4j-api-1.7.25.pom
│   └── slf4j-api-1.7.25.pom.sha1
└── 1.7.26
    ├── slf4j-api-1.7.26.jar
    ├── slf4j-api-1.7.26.jar.sha1
    ├── slf4j-api-1.7.26.pom
    └── slf4j-api-1.7.26.pom.sha1

I am not sure how that happened, but it seems like that's the direct cause.
Could you wipe out ~/.sbt/preloaded/ then?

So we actually fixed it by pinning sbt.version in build.properties to the same version of sbt installed by brew. And running it twice fixes it anyway. So we have a workaround, but ideally this shouldn't happen in the first place, right?

And running it twice fixes it anyway. So we have a workaround, but ideally this shouldn't happen in the first place, right?

Yes, I acknowledge this is a bug of sbt distribution.
I think this is happening because the preloaded local repo shipped with sbt 1.3.8 is actually missing the SLF4J API 1.7.25 JAR.  Probably the only way to fix this is to remove Apache Ivy (still used by sbt launcher) out of the equation.

Makes sense.

Probably the only way to fix this is to remove Apache Ivy (still used by sbt launcher) out of the equation.

Ok, so the solution is either to specify the same sbt version as the one installed or remove apache ivy?
FWIW the directory tree above doesn't change when running the command a second time (which succeeds)

Another solution might be to check for the existence of sbt.jar in the launcher, and evict preloaded repo from the resolver in case the JAR doesn't exist.


Wrong comparison in backup script.

The comparison to check if there is a working Drupal environment is wrong for the backup script (bin/src/backup.sh).
  # Check if there is a working Drupal installation.
  if [ `drupal_is_installed` -neq 1 ]; then
    markup_debug "No working Drupal installation to backup."
    return
  fi

It should be
  if [ `drupal_is_installed` -ne 1 ]; then

Fixed see PR #7


Feature request: Allow gitlab and codeberg, and gitea and so on.

Doable, correct?

Absolutely, we should be able to handle any git provider via url
At the moment my focus is mostly on open source ones
If you could provide some links to example open-source repos on those platforms It would greatly help me implement this

https://codeberg.org/arpadbuermen/VACASK
https://bitbucket.org/dkhenry/rust-asn-one/src/master/
https://gitlab.winehq.org/wine/wine/
https://gitlab.gnome.org/World/Rust/poppler-rs
salsa.debian.org
https://www.cygwin.com/git.html
https://savannah.gnu.org/git/?group=coreutils
Maybe anything that accepts a git path?

Thank you very much for that list!
I'll see what I can do very soon :)

Adding https://about.gitea.com/ to the list as well

I just merged a PR to do this: https://github.com/cyclotruc/gitingest/pull/34
For now it only handles pasting links in the form, not the url trick since I can't guess which domain users come from.
This behavior might need to be improved in the future


new rule: mocha - no nested it() functions

Mocha allows you to nest describe() functions, and to put it() functions inside describe functions.
Sometimes developers accidentally put it() functions inside other it() functions. These tests will not run if you do this!

Could this be extended to be more generic? A rule that prevents described chains of nested functions would be nifty.
{
    "banned-chains": [
        ["it", "it"],
        ["it", "describe"]
    ]
}

💀 It's time! 💀
TSLint is being deprecated; therefore, it and tslint-microsoft-contrib are no longer accepting pull requests for major new changes or features. See #4534. 😱
If you'd like to see this change implemented, you have two choices:

Recommended: Check if this is available in ESLint + typescript-eslint ✅
Not Recommended: Fork TSLint or tslint-microsoft-contrib locally 🤷♂

👋 It was a pleasure open sourcing with you!
If you believe this message was posted here in error, please comment so we can re-open the issue!


Get geometry from analysis query schema

This was based on the existing code in tabledata.js, but for the new concepts added on the node-definition's query-schema model, since it's closely related to the schema/data available on the node's query.
querySchemaModel.on('change:status', handleStateChange)
querySchemaModel.fetch()

// … once query-schema is fetched and where you need the geometry:

querySchemaModel.get('status') // => should be `fetched` when getting geom:
var geom = querySchemaModel.getGeometry() // => geometry value object
if (geom) {
  geom.getPostgresType() // => 'ST_MultiPoint'
  geom.getSimpleType() // => 'point'
}

Note that the geometry might not be available, it depends on the state of the analysis but also on there being data containing a geom for the given query, so even when finished there's no guarantee there is any.
This also resolves #7334 added a shortcut to access the current analysis-definition-node that the layer currently holds, but keep in mind that this object will change as the analysis changes (e.g. adding/removing nodes), so we should only listen to events on this object in views while editing something:
layerDefModel.getAnalysisDefinitionNodeModel() // returns the "head", or undefined if the layer has no source (e.g. a basemap layer).

@xavijam please review

Dale zapato => 🚢 🇮🇹

Ready to go?

Since there are only frontend code changes for the new editor should be, but I'm still waiting for the frontend tests to finish… once they pass I'll merge


cmd/sys-mgmt-executor/main.go: use json output, misc cleanups

Remove newlines at start and end of usage message
Remove unnecessary variables when running docker commands
Remove duplicated logging messages and instead wrap errors and return
Return error as second return value when checking status of container
after an operation
Fix error where start operation result wasn't being checked because
fallthrough wasn't being used
Get status of docker container directly using json formatted docker
inspect command and decoding the output

Fixes #1129
To test, I used the docker-compose file from developer-scripts for delhi: https://github.com/edgexfoundry/developer-scripts/blob/master/compose-files/docker-compose-delhi-0.7.1.yml.
The following things should be tested:

[ ]  make sure that starting and stopping a real service works

docker-compose -f docker-compose-delhi-0.7.1.yml up -d
sys-mgmt-executor stop edgex-support-notifications
docker inspect edgex-support-notifications | jq '.[].State | .Status' →shows "exited"
sys-mgmt-executor start edgex-support-notifications
docker inspect edgex-support-notifications | jq '.[].State | .Status' → shows "running"

[ ]  make sure that starting/stopping a fake service fails

docker-compose -f docker-compose-delhi-0.7.1.yml up -d
./sys-mgmt-executor stop not-a-svc → graceful error

[ ]  make sure that running with invalid operation fails gracefully

docker-compose -f docker-compose-delhi-0.7.1.yml up -d
./sys-mgmt-executor do-other-thing edgex-support-notifications → produces graceful error
docker inspect edgex-support-notifications | jq '.[].State | .Status' → unchanged

[ ]  make sure that starting/stopping with errors fails gracefully (do this by removing the container so it can't be referenced by name to start/stop)

docker-compose -f docker-compose-delhi-0.7.1.yml up -d
docker stop edgex-support-notifications && docker rm edgex-support-notifications
./sys-mgmt-executor stop edgex-support-notifications → produces graceful error
./sys-mgmt-executor start edgex-support-notifications → produces graceful error

After bringing up all services via the docker-compose file, I'm attempting to run sys-mgmt-executor stop edgex-support-notifications and receiving the following error. Container is not stopped. Am I doing something wrong?
~/Documents/code/git/tsconn23/edgex-go/cmd/sys-mgmt-executor $ ./sys-mgmt-executor stop edgex-support-notifications
level=INFO ts=2019-05-20T14:48:38.16675Z app=docker-compose-executor source=main.go:63 msg="This is the docker-compose-executor application!"
level=INFO ts=2019-05-20T14:48:38.167428Z app=docker-compose-executor source=main.go:66 msg="Application started in: 695.166µs"
level=ERROR ts=2019-05-20T14:48:38.167767Z app=docker-compose-executor source=main.go:78 msg="error performing  edgex-support-notifications on service stop: the service stop is an unknown service for which request was made to run Docker command"

After bringing up all services via the docker-compose file, I'm attempting to run sys-mgmt-executor stop edgex-support-notifications and receiving the following error. Container is not stopped. Am I doing something wrong?
~/Documents/code/git/tsconn23/edgex-go/cmd/sys-mgmt-executor $ ./sys-mgmt-executor stop edgex-support-notifications
level=INFO ts=2019-05-20T14:48:38.16675Z app=docker-compose-executor source=main.go:63 msg="This is the docker-compose-executor application!"
level=INFO ts=2019-05-20T14:48:38.167428Z app=docker-compose-executor source=main.go:66 msg="Application started in: 695.166µs"
level=ERROR ts=2019-05-20T14:48:38.167767Z app=docker-compose-executor source=main.go:78 msg="error performing  edgex-support-notifications on service stop: the service stop is an unknown service for which request was made to run Docker command"

The command you are issuing looks right to me. I have been using a REST client for testing API calls and have not seen any issue with running Docker commands ("start", "stop", or "restart")... Have you used Portainer as a tool to aid with getting insight into container logging? This is the relevant snippet from the /edgexfoundry/developer-scripts/compose-files/docker-compose.yml file:
  portainer:
    image:  portainer/portainer
    ports:
      - "9000:9000"
    command: -H unix:///var/run/docker.sock
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - portainer_data:/data
    depends_on:
      - volume

networks:
  edgex-network:
    driver: "bridge"

@tsconn23 my tests were written in the wrong order, it's supposed to be sys-mgmt-executor <svc> <op>. It works here:
$ make cmd/sys-mgmt-executor/sys-mgmt-executor
CGO_ENABLED=0 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/edgex-go.Version=1.0.0" -o cmd/sys-mgmt-executor/sys-mgmt-executor ./cmd/sys-mgmt-executor
$ ./cmd/sys-mgmt-executor/sys-mgmt-executor --help
Usage: ././cmd/sys-mgmt-executor/sys-mgmt-executor <service> <operation>                Start app with requested {service} and {operation}
       -h                                                       Show this message
$ ./cmd/sys-mgmt-executor/sys-mgmt-executor edgex-support-notifications stop
level=INFO ts=2019-05-20T15:50:46.021328218Z app=docker-compose-executor source=main.go:63 msg="This is the docker-compose-executor application!"
level=INFO ts=2019-05-20T15:50:46.025700226Z app=docker-compose-executor source=main.go:66 msg="Application started in: 4.399078ms"
level=INFO ts=2019-05-20T15:50:46.773420218Z app=docker-compose-executor source=main.go:116 msg="service container edgex-support-notifications is not running"
level=INFO ts=2019-05-20T15:50:46.777057519Z app=docker-compose-executor source=main.go:80 msg="success performing stop on service edgex-support-notifications"
ijohnson@ijohnson-XPS-15-9560:~/go/src/github.com/edgexfoundry/edgex-go$

As I mentioned, I've been using the REST client to invoke SMA. But on revisiting the source, it actually states that the order of arguments is like so:
Usage: ./sys-mgmt-executor <service> <operation>


projectm visualizations in clementine

Project description
I am fairly new in the nix world and I am trying to connect the dots betweeen https://github.com/NixOS/nixpkgs/blob/df81d9a41c94792e02527dc9fa105153155f2e7c/pkgs/applications/audio/clementine/default.nix and https://github.com/NixOS/nixpkgs/blob/84cf00f98031e93f389f1eb93c4a7374a33cc0a9/pkgs/applications/audio/projectm/default.nix
Namely to get all the available visualizations from projectm in clementine player
Any tips/suggestions? I can get my hands dirty myself, but I need some guidance
Metadata

homepage URL:
source URL:
license: mit, bsd, gpl2+ , ...
platforms: unix, linux, darwin, ...

Have you tried this on master? There's been a bunch of changes (like #82427) related to these two packages. Although there are still some issues left.

Just tried it on master and the visualizations went completely black. With the previous version I would have only the bouncing "porjectm" visualization

Ah, that's probably (sort of) expected. The bouncing thing was there because it actually couldn't find the presets. Now it does, so it goes black. I'm not sure how this is supposed to work with clementine, but in standalone mode you have to press some magical button combination for things to change and menus to show.

In Clementine one can access the menu with right click on the black screen... However there are no visualizations to choose from.

This is still an issue. I checked projectm and I have installed 3 binaries on my system:
/nix/store/1855dacf2ar8xjnk671d89y16n34cjw0-projectm-3.1.12/bin/projectMSDL /nix/store/9vspmrqn74j7mv68vhv2rbkrhkzq4pd3-projectm-3.1.12/bin/projectMSDL /nix/store/nzf4kqscrxpff64xixb1qz1m40zdn958-projectm-3.1.12/bin/projectMSDL
All 3 of them crash when I press the m key which supposedly would bring the menu

cc clementine maintainer: @ttuegel

Personally i switched to Strawberry player a while ago and I am no longer interested in this issue, feel free to reopen if this bothers you.


Incompatible with BetterFolder Plugin

Describe the bug
When BetterFolder plugin is enabled HorizontalServerList is unable to return to folders and gets stuck in the servers that are within the folder.
To Reproduce
download/install/enable BetterFolder plugin
install/add HorizontalServerList
Open a serverfolder in HorizontalServerList new bar
Screenshots

Infomation (please complete the following information)
Discord channel: Stable
OS: Windows 11 Enterprise Insider Preview build 23521.1000
Mod: Vencord
Discord language: English
Current Solution
Disable BetterFolder plugin.

Have you tried without the Steam theme enabled?

Have you tried without the Steam theme enabled?

yes... after reporting about it to disease.. he gave me the CSS to just test without the theme enabled and the same happens.


Copy statement points to wrong path on Hugo Themes page

Hello!
Wasn't sure where to leave this since this is occurring on the Hugo Themes page for Hugo Winston Theme
https://themes.gohugo.io/themes/hugo-winston-theme/
When you get the copy statement in the Installation guide it calls hugo-serif-theme instead of hugo-winston-theme
Current: cp -a themes/hugo-serif-theme/exampleSite/. .
Change to:  cp -a themes/hugo-winston-theme/exampleSite/. .
I checked the README.md here on the Github repo, and the Installation guide's copy statement is correct.
Thanks for the theme!

This was recently updated on this repo, looks like the hugo themes site needs a rebuild before it updates.


Fix typo of the FirebaseCore test files and md files

All files (including source codes, md files, etc) under the FirebaseCore source directory have been reviewed.
Corrected typos primarily found in comments and non-compiling sections of the project.
Ensured all changes were fully backward-compatible, with no breaking changes introduced.
Commits are organized into distinct chunks to facilitate easy review (or cherry-picking if needed).

Important note:

The only code change is a fix on a local variable name which seems perfectly safe to change since it is invisible from the outside of its tiny scope.

CI is still failing in check. More investigation needed.

I have rebased the PR on the current main and believe it should be fine now. Please retry and let me know if the issue persists.


Et7f3 gha

This PR enable, GitHub Action for build, lint, auto format code, and push docs. A admin user need to enable GitHub pages.

All users with write access can now write gocs and see live. For others users, they should use their fork.


add --ec2-master-instace-type option to support different master instance type

This PR makes the following changes:

added ec2-master-instance-type option if specified change master instance type to passed value, else original behaviour of flintrock will continue to remain same.
also update add-slaves behaviour to read instance type from configuration file, since it is assumed to same as master instance type.

I tested this PR by...
launching cluster of different instance type as well as tested add-slaves by adding slaves on ec2. It is working fine.
I have made this change since having spark cluster with different master instance type will save money and improve resource utilisation.

Hi @pragnesh and thank you for this PR. People have asked for this feature in the past, so I know there is some interest in it. 👍
When growing an existing cluster, Flintrock makes sure to read all possible configurations from the existing nodes so that newly added nodes are automatically configured the same way. This means that the slave instance type should automatically be selected based on the type of the existing slaves.
The only case where the user should be able to specify the slave instance type when adding nodes to an existing cluster is when that cluster has just a master and no slaves.
That said, I have to wonder out loud if it's better to just leave this feature out of Flintrock. The benefit is clear but marginal, and it adds a little bit of complexity. Since Flintrock is hard to test (the valuable tests -- i.e. the acceptance tests -- are slow and cost money), every little bit of added complexity will slowly make it harder to maintain the project over time. If it were practical to implement automated tests to cover all the possible use cases, I wouldn't be as concerned.
What are your thoughts on that?
I'm also curious if @serialx, @BenFradet, or anyone else watching the repo has any thoughts on the utility of this feature weighed against the long-term maintenance burden as the supported use cases inevitably grow over time.

I understand your concern. It is ok if you don't merge this feature.

Users with small clusters would be sensitive to master's instance type.  Since the ratio of master instance cost would be larger when there are fewer slaves.  Also for performance tests and experimentation -- which is Flintrock's main use case -- it would be tempting to use a smaller master instance type.
I also understand the long-term maintenance burden.  Looking at the patch, wouldn't add_slaves ec2_instance_type parameter be avoidable if we save the ec2_instance_type variable in the cluster metadata?

I also understand the long-term maintenance burden. Looking at the patch, wouldn't add_slaves ec2_instance_type parameter be avoidable if we save the ec2_instance_type variable in the cluster metadata?

Yes, that's true as long as we continue to disallow clusters from being created with 0 slaves. That would simplify the logic and supported use cases a bit. 👍
This comes up against another problem, though, which is that the manifest currently has no mechanism for persisting provider-specific settings like instance type. We'd need to add that in. It shouldn't be a big deal, but it may be beyond the scope of what @pragnesh was hoping to do in this PR.
I believe this was the same deficiency in our manifest implementation that @SoyeonBaek-dev hit up against. I forget what her use case was exactly, but she also wanted to be able to persist some EC2-specific things in the manifest. Is that correct @SoyeonBaek-dev? Do you remember what exactly it was?

Thanks for this PR @pragnesh 👍
This is a feature my team members and I are definitely interested in.
Our daily Spark jobs are launched automatically using the Spark REST API which needs --deploy-mode cluster. With deploy mode "cluster", the driver is deployed on one of the slaves and the master is kind of "useless" (it doesn't need an instance as large as slaves). This would allow us to reduce costs.

Thanks for chiming in @dm-tran and @serialx. This kind of feedback from the community is valuable and gives me the confidence to steer Flintrock in the right direction.
OK, I think given the feedback here we want to include a feature like this. To do it in a way that's consistent with Flintrock's design, we'll need to refine the manifest concept a bit to allow for provider-specific settings like EC2 instance type.
@pragnesh - Would you like to take that on? No worries if not. I will likely work on that next, as soon as I fix this one bug I'm working on at the moment.

yes, i can try to work on this, let me go through manifest concept first

OK great. It's a little half-baked at the moment, unfortunately, but I can give guidance as needed. The idea is basically to add a section to the manifest that is dedicated to EC2-specific settings and then persist/load the EC2 slave instance-type to/from the manifest.

As a i am using my change i found issue that having different instance type for master and slave create issue with hdfs cluster. hdfs failed to start if there is different type of disk configuration, i am not sure why.

best way to avoid complexity and to use master instance as worker is updating slave_hosts template parameter to include master_host in core.py
'slave_hosts': '\n'.join([self.master_host] + self.slave_hosts),
I have tested this change and it works without any issue.

Thanks for reporting these additional details @pragnesh.

hdfs failed to start if there is different type of disk configuration, i am not sure why.

This is probably because on larger instances HDFS will use instance store storage, whereas on smaller instances there will be no instance store storage so HDFS will use the EBS root drive. There's probably something going wrong there, especially if you restart the cluster.

best way to avoid complexity and to use master instance as worker is updating slave_hosts template parameter to include master_host in core.py

Are you saying that this fixes the issue with HDFS when the master and slave instance types are very different?

Are you saying that this fixes the issue with HDFS when the master and slave instance types are very different?

No, I am saying another approach to use master instance instead of keeping it ideal is just add master host into list of slave hosts, so spark and hdfs cluster will run on all slave + master instances, this is just one line of change i have mention in previous comment and work without issue, and is not adding to much complexity.

Ah, I see. That makes sense.
@serialx / @dm-tran - What do you think?
Having the master be one of the slaves would take care of the problems related to mismatched HDFS storage caused by different instance sizes.

This solutions looks elegant and simple.
It's fine for Spark slaves. For HDFS, it means that the namenode and one datanode will be deployed on the master: I'm a bit worried that it might overload the master (usually, the namenode is deployed on the master and datanodes are deployed on slaves).

If we are worried about overloading master, we can create flag for this, activate only if is set to true.

Flag would be good. I think we should try experiment with having master to be one of the slaves. Let's add this flag as an experimental flag.

Per the conversation above, it sounds like we want a new PR that implements a different solution where the master is flagged to simply be one of the slaves. This saves money -- which is the original impetus for this PR -- while not adding much complexity. Perhaps we can call the new option --colocate-master/--no-colocate-master?
@pragnesh - I'm closing this PR, but feel free to open a new one along the lines discussed here.


MapKit Globe view, camera resets to 0

Summary
When viewing a map in globe view, occasionally the camera/region get reset back to 0.
Here I'm trying to drag the north pole into view, but when I get too far north it resets back out

looks like it's related to this code:
https://github.com/react-native-maps/react-native-maps/blob/4514bd13a34e20f7e82e7de0b44224b6160195d5/ios/AirMaps/AIRMapManager.m#L1167-L1174
Reproducible sample code
import { Platform } from "react-native";
import MapView from "react-native-maps";

export function DevMap_camResetBugRepro() {
  const mapType =
    Platform.OS === "ios"
      ? ("hybridFlyover" as any) // NOTE: casting to any because this is not in the type definition, but it works to set the map type to a 3D globe
      : "standard";

  return (
    <MapView
      style={{ flex: 1 }}
      mapType={mapType}
      initialRegion={{
        latitude: 14,
        longitude: 30,
        latitudeDelta: 156,
        longitudeDelta: 173,
      }}
    />
  );
}

Steps to reproduce
Drag the north pole into view
Expected result
see the north pole
Actual result
region/camera resets back out to latitude 0
React Native Maps Version
1.7.1
What platforms are you seeing the problem on?
iOS (Apple Maps)
React Native Version
0.72.3
What version of Expo are you using?
SDK 48
Device(s)
iPhone 13 mini
Additional information
No response

also related: https://github.com/react-native-maps/react-native-maps/blob/4514bd13a34e20f7e82e7de0b44224b6160195d5/ios/AirMaps/AIRMapManager.m#L1090-L1093

looks like this is the code that triggers the zoom out:
https://github.com/react-native-maps/react-native-maps/blob/4514bd13a34e20f7e82e7de0b44224b6160195d5/ios/AirMaps/AIRMapManager.m#L951-L956

Workaround:

Hi, that's because the calculation of zoom level doesn't take into account the map's rotation. I'll try to find a better algorithm

@jan-kozinski yes this seems like a clear bug ... specifically apple maps code was introduced before 3d maps were available.
there are two ways to could go about

move away from this algorithem to apple's introduced method setCameraZoomRange
https://developer.apple.com/documentation/mapkit/mkmapview/3114302-setcamerazoomrange?language=objc
supported since iOS 13, but requires rethinking the logic since it's in meters

simply disable max/min zoom logic for globe view until we implement 1 correctly.

The problem lays a bit deeper than just the map rotation. The hybrid flyover map is a globe without mercator projection. The cuurent zoom counting algo is designed for flat maps projected with mercator. I can't find any formula for globe zoom or even scale.
Thanks for advice @salah-ghanim , I think we can use camera zoom range approach for hybidFlyover and satteliteFlyover maps, with min camera zoom range in meters being 2^minZoomLevel, max being being 2^maxZoomLevel and leave the original algorithm for other map types. I'll put up a PR

Hi @subtleGradient I made a fix so you might want to see if that addresses your issue in PR #4892

For what it's worth, it also happens on the South Pole. Bummer


How to invalidate current box?

Question
I have a freezed data class combined with HiveType, which has Map field.
Consider this scenario: I open a box, and get object of this class, then modify the map (ex. remove an entry).
When I call get again from the same box, the result is also modified.
My question : how do I invalidate current box, and get fresh data from the disk instead of memory?
Code sample
class UserGroup with _$UserGroup {
  @HiveType(typeId: HiveConstants.USER_GROUP_TYPE, adapterName: "UserGroupAdapter")
  const factory UserGroup({
    @HiveField(0) required String id,
    @HiveField(1) @Default({}) Map<String, Member> members,
  }) = _UserGroup;

  factory UserGroup.fromMembers({required String id, required Iterable<Member> members}) =>
      UserGroup(id: id, members: members.toMap(keyConverter: (e) => e.uid, valueConverter: (e) => e));
}

And I have this test:
test("Test", () async {
    Box<UserGroup> box = await Hive.openBox(HiveConstants.USER_GROUP_BOX);
    var foo = const Member(uid: "foo", name: "foo");
    var bar = const Member(uid: "bar", name: "bar");

    var userGroup = UserGroup.fromMembers(id: "some-id", members: [foo, bar]);

    await box.put(userGroup.id, userGroup);

    var loaded = box.get('some-id');
    expect(loaded, isNotNull);
    expect(loaded!.members.values, containsAll([foo, bar]));

    // Remove some object from loaded user group
    userGroup.members.removeWhere((key, value) => key == foo.uid);

    var loadMore = box.get('some-id');
    expect(loadMore, isNotNull);
    expect(loadMore!.members.values, containsAll([foo, bar])); // Fail!
  });

Version

Platform:  Android
Flutter version: 2.10.3
Hive version: 2.0.5

Apparently there's something called LazyBox, which doesn't store data into memory when open box. So every time i get data from box, i got data from disk instead of memory.


Added DHCSR definitions for ARMv7 & ARMv8.

Summary
Adds DHCSR register definitions for ARMv7 & ARMv8.
References:

ARMv7: https://developer.arm.com/documentation/ddi0337/e/CEGCJAHJ
ARMv8: http://kib.kiev.ua/x86docs/ARM/ARMARMv8m/DDI0553B_o_armv8m_arm.pdf

Impact
N/A
Testing
N/A

@fjpanag please fix these redefinition errors:
In file included from chip/stm32l5_irq.c:36:
/github/workspace/sources/nuttx/arch/arm/src/armv8-m/nvic.h:812: error: "NVIC_DHCSR_S_SDE" redefined [-Werror]
  812 | #define NVIC_DHCSR_S_SDE                (1 << 21) /* Bit 21: Non-secure unprivileged halting debug enabled. */
      |
/github/workspace/sources/nuttx/arch/arm/src/armv8-m/nvic.h:811: note: this is the location of the previous definition
  811 | #define NVIC_DHCSR_S_SDE                (1 << 20) /* Bit 20: Secure debug enable. */
      |
cc1: all warnings being treated as errors
make[1]: *** [Makefile:144: stm32l5_irq.o] Error 1

@fjpanag please fix these redefinition errors, like this:
In file included from chip/stm32l5_irq.c:36:
/github/workspace/sources/nuttx/arch/arm/src/armv8-m/nvic.h:812: error: "NVIC_DHCSR_S_SDE" redefined [-Werror]
  812 | #define NVIC_DHCSR_S_SDE                (1 << 21) /* Bit 21: Non-secure unprivileged halting debug enabled. */
      |
/github/workspace/sources/nuttx/arch/arm/src/armv8-m/nvic.h:811: note: this is the location of the previous definition
  811 | #define NVIC_DHCSR_S_SDE                (1 << 20) /* Bit 20: Secure debug enable. */
      |
cc1: all warnings being treated as errors
make[1]: *** [Makefile:144: stm32l5_irq.o] Error 1

Fixed.


simple pylint fixes

from recently introduced code

Codecov Report
Base: 95.36% // Head: 95.36% // No change to project coverage :thumbsup:

Coverage data is based on head (d0ebfd0) compared to base (2c0e188).
Patch coverage: 100.00% of modified lines in pull request are covered.

:exclamation: Current head d0ebfd0 differs from pull request most recent head f0dfd3c. Consider uploading reports for the commit f0dfd3c to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #166   +/-   ##
=======================================
  Coverage   95.36%   95.36%
=======================================
  Files          80       80
  Lines        4663     4663
=======================================
  Hits         4447     4447
  Misses        216      216

Impacted Files
Coverage Δ

rocketry/core/schedule.py
93.63% <ø> (ø)

rocketry/session.py
98.17% <ø> (ø)

rocketry/args/builtin.py
98.22% <100.00%> (ø)

rocketry/conditions/api.py
97.38% <100.00%> (ø)

rocketry/core/parameters/parameters.py
97.00% <100.00%> (ø)

rocketry/core/task.py
92.23% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


fix for CASSANDRA-10097

Limiting cluster stream_throughput_outbound_megabits_per_sec on bootstrap_test.py:TestBootstrap.bootstrap_with_reset_bootstrap_state_test
fails (more details here: https://issues.apache.org/jira/browse/CASSANDRA-10097)

+1


JitBitmap seems unused

@wenyongh is there any plan to use it in fast-jit?
otherwise, i want to move it to core/shared/utils as i want to use it (or something similar) for https://github.com/bytecodealliance/wasm-micro-runtime/issues/2735 to track which segments have been dropped.
cf. https://github.com/yamt/toywasm/blob/fca52a0174eb1644fea9caa3fe1faad598864f6a/lib/type.h#L488-L494

@yamt no plan to use it fast-jit, please move to core/shared/utils if you want.


wildignore integration acts funny

Say I'm inspecting a file and I press my precious F3:
autocmd VimEnter * nnoremap <F3> :NERDTreeFind<CR>

this focuses the file on NERDTree and all is well. However now I see lots of dreaded __pycache__ directories that are on my black list:
set wildignore+=*.pyc,*.pyo,__pycache__

...which is bad. Now, it wouldn't be "funny" if it wasn't for the following trick - if I press R to reload the NERDTree, the __pycache__ directories are gone.

Confirmed bug, working on a fix.


After upgrade every screen displays 404 Well... ...we can't find what you need.

Bug description
I have upgraded today to version v. 2.16.0 ( release mode ) and now every page shows the error:
404
Well...
...we can't find what you need.
Previous upgrades went ok, one just last week to 2.15.1.
Even the links in menus are constructed wrong and I see a similar pattern in stdout
For example, this is a link to the dashboard copied from menu:
https://dd.ourcompany.com:8443/https://dd.ourcompany.com:8443dashboard
stdout  from docker reports 404 for all links like this:
 Not Found: /https:/dd.ourcompany.com:8443alerts/count
There is a slash at the beginning of the URI? And in the menu links everything is doubled with missing slash on the last doubling..
Expected behavior
Working links in menu.
Deployment method (select with an X)

[x] Docker Compose
[ ] Kubernetes
[ ] GoDojo

Environment information

Operating System: CentOS Linux release 7.9.2009 (Core)
DefectDojo version (see footer) or commit message: [2022-11-01 22:02:19 -0500] 79b3a61: Documentation finishing touches (#7063) [ (HEAD, tag: 2.16.0, origin/master, origin/HEAD, master)]

Logs
django-defectdojo-nginx-1     | <IP_ADDRESS> - - [03/Nov/2022:13:59:57 +0000] "GET /static/dojo/img/favicon.ico HTTP/1.1" 200 1150 "https://dd.ourcompany.com:8443/dashboard" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36" "-"
django-defectdojo-nginx-1     | <IP_ADDRESS> - - [03/Nov/2022:14:00:03 +0000] "GET /https://dd.ourcompany.com:8443alerts/count HTTP/1.1" 404 45762 "https://dd.ourcompany.com:8443/dashboard" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36" "-"
...
django-defectdojo-uwsgi-1       | [03/Nov/2022 13:59:57] WARNING [django.request:224] Not Found: /dashboard
django-defectdojo-uwsgi-1       | [pid: 1|app: -|req: -/-] <IP_ADDRESS> (admin) {60 vars in 1269 bytes} [Thu Nov  3 13:59:55 2022] GET /dashboard => generated 45762 bytes in 1822 msecs (HTTP/1.1 404) 6 headers in 189 bytes (1 switches on core 0)
django-defectdojo-uwsgi-1       | [03/Nov/2022 14:00:03] WARNING [django.request:224] Not Found: /https:/dd.ourcompany.com:8443alerts/count
...
django-defectdojo-nginx-1         | <IP_ADDRESS> - - [03/Nov/2022:14:05:02 +0000] "GET /https://dd.ourcompany.com:8443alerts/count HTTP/1.1" 404 45762 "https://dd.ourcompany.com.com:8443/product/7/finding/open" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36" "-"

Screenshots
Dashboard or any view

Additional context (optional)
Was updated with git pull command and
docker pull defectdojo/defectdojo-django:latest
docker pull defectdojo/defectdojo-nginx:latest

commands

After looking into the database for the issue I found out that in the table dojo_system_settings there is a column named url_prefix which contained the whole domain name of our site together with port.. After I deleted it now everything seems to be running ok.
I just don't know why the url_prefix got inserted with the upgrade and from where? Could this come from variable DD_SITE_URL that I've added to docker-compose.yml for all images? I think not. But there is a option it came from the path /docker/extra_settings where I had this local_settings.py:
from django.conf.urls import include, url

SITEURL='https://dd..oursite.com:8443/'


Add support for ImmutableArray generation

Currently ImmutableList's are supported but not ImmutableArrays, I will add a PR to add support but if there are any other consideration let me know.

Thank you! Merged.


Add hacktoberfest topic to the repository

The hacktoberfest github topic https://github.com/topics/hacktoberfest should be added to the repository so it can officially participate in Hacktoberfest 🙂
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics#adding-topics-to-your-repository

No problem @mridhul! I see the topic being added but it looks like there's a bit of a typo 🙂 (hactoberfest instead of hacktoberfest with a missing "k").

I see that its been fixed now, awesome! 👍🏼


[1.14] Expose per_connection_buffer_limit_bytes

Signed-off-by: AliceProxy<EMAIL_ADDRESS>Description
Makes the Envoy setting per_connection_buffer_limit_bytes configurable via the Module. The default is 1 MiB enforced by Envoy when not specified.
Testing
I did some manual testing to verify the envoy config generated and that the listeners were not noticeably impacted. Wrote some tests as well to check the Envoy config and try requests.
Checklist

[x] I made sure to update CHANGELOG.md.
Remember, the CHANGELOG needs to mention:

Any new features
Any changes to our included version of Envoy
Any non-backward-compatible changes
Any deprecations

[x] This is unlikely to impact how Ambassador performs at scale.
Remember, things that might have an impact at scale include:

Any significant changes in memory use that might require adjusting the memory limits
Any significant changes in CPU use that might require adjusting the CPU limits
Anything that might change how many replicas users should use
Changes that impact data-plane latency/scalability

[x] My change is adequately tested.
Remember when considering testing:

LEGACY MODE TESTS DO NOT RUN FOR EVERY PR. If your change is affected by legacy mode, you need
to run legacy-mode tests manually (set AMBASSADOR_LEGACY_MODE=true and run the tests).
(This will be fixed soon.)
Your change needs to be specifically covered by tests.

Tests need to cover all the states where your change is relevant: for example, if you add a behavior that can be enabled or disabled, you'll need tests that cover the enabled case and tests that cover the disabled case. It's not sufficient just to test with the behavior enabled.

You also need to make sure that the entire area being changed has adequate test coverage.

If existing tests don't actually cover the entire area being changed, add tests.
This applies even for aspects of the area that you're not changing – check the test coverage, and improve it if needed!

We should lean on the bulk of code being covered by unit tests, but...
... an end-to-end test should cover the integration points

[x] I updated DEVELOPING.md with any any special dev tricks I had to use to work on this code efficiently.

Closed for duplicate branch. Merged in #3788


Normalize style and add travis configuration

Now you can reenable travis again.

Awesome.
Reenabled Travis.

When will we get a travis build badge? :)

We have one now :)


Unit Testability -- core-metadata/GetAllDeviceServices

Fix #1507
Signed-off-by: Trevor Conn<EMAIL_ADDRESS>

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@03f28e5). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #1508   +/-   ##
=========================================
  Coverage          ?   19.91%
=========================================
  Files             ?       92
  Lines             ?     9228
  Branches          ?        0
=========================================
  Hits              ?     1838
  Misses            ?     7236
  Partials          ?      154

Impacted Files
Coverage Δ

internal/core/metadata/rest_deviceservice.go
2.17% <100%> (ø)

...rnal/core/metadata/operators/device_service/get.go
100% <100%> (ø)

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 03f28e5...50c3500. Read the comment docs.


Add: Tool Tailwind Button Playground

Tool to interactively create button and copy classes
Live: https://minthemiddle.github.io/tailwind-button-playground/
Repo: https://github.com/minthemiddle/tailwind-button-playground

Saw this on MegaMaker, looks really cool!


Duckdb driver for Issue #176

https://github.com/datafold/data-diff/issues/176

Read the docstring, you need to implement rounds: https://github.com/datafold/data-diff/blob/master/data_diff/databases/database_types.py#L213
It may pass your local tests, but if you test it vs Snowflake it will fail otherwise.

Ran black -l 120. Removed test_duckdb.py

@jardayn I tried to run this locally and got this error:
duckdb.ConversionException: Conversion Error: Could not convert string '0x90762715a289763' to INT64

Test: test_types_duckdb_bigint_duckdb_bigint_50
duckdb.version = '0.5.2-dev1579'

Waiting on DuckDB 0.6.0. that'll bring HEX to int conversions.

Thank you for contributing! 🥳


lots of gRPC error output in diag logs

diag logs are getting spammed with a lot of this type of stuff on startup:
INFO:root:Diagnostics shipping not requested, skipping.
INFO:root:Diagnostics complete
INFO:root:Running periodic hardware diagnostics
2023-04-14 03:35:56,160 - [ERROR] - hm_pyhelper.miner_param - (gateway_diagnostics.py).call_grpc -- /opt/python-dependencies/hw_diag/diagnostics/gateway_diagnostics.py:(42) - rpc error: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {grpc_status:14, created_time:"2023-04-14T03:35:55.955126455+00:00"}"
>
ERROR:hm_pyhelper.miner_param:rpc error: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {grpc_status:14, created_time:"2023-04-14T03:35:55.955126455+00:00"}"
>
2023-04-14 03:35:56,161 - [ERROR] - hm_pyhelper.miner_param - (gateway_diagnostics.py).call_grpc -- /opt/python-dependencies/hw_diag/diagnostics/gateway_diagnostics.py:(43) - <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {grpc_status:14, created_time:"2023-04-14T03:35:55.955126455+00:00"}"
>
Traceback (most recent call last):
  File "/opt/python-dependencies/hw_diag/diagnostics/gateway_diagnostics.py", line 40, in call_grpc
    return getattr(client, method_name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/hm_pyhelper/gateway_grpc/client.py", line 87, in get_pubkey
    encoded_key = self.stub.pubkey(local_pb2.pubkey_req()).address
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/grpc/_channel.py", line 1030, in __call__
    return _end_unary_response_blocking(state, call, False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/grpc/_channel.py", line 910, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {grpc_status:14, created_time:"2023-04-14T03:35:55.955126455+00:00"}"
>
ERROR:hm_pyhelper.miner_param:<_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {grpc_status:14, created_time:"2023-04-14T03:35:55.955126455+00:00"}"
>
Traceback (most recent call last):
  File "/opt/python-dependencies/hw_diag/diagnostics/gateway_diagnostics.py", line 40, in call_grpc
    return getattr(client, method_name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/hm_pyhelper/gateway_grpc/client.py", line 87, in get_pubkey
    encoded_key = self.stub.pubkey(local_pb2.pubkey_req()).address
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/grpc/_channel.py", line 1030, in __call__
    return _end_unary_response_blocking(state, call, False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/grpc/_channel.py", line 910, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {grpc_status:14, created_time:"2023-04-14T03:35:55.955126455+00:00"}"
>
2023-04-14 03:35:56,178 - [ERROR] - hm_pyhelper.miner_param - (gateway_diagnostics.py).call_grpc -- /opt/python-dependencies/hw_diag/diagnostics/gateway_diagnostics.py:(42) - rpc error: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {created_time:"2023-04-14T03:35:56.175259905+00:00", grpc_status:14}"
>
ERROR:hm_pyhelper.miner_param:rpc error: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {created_time:"2023-04-14T03:35:56.175259905+00:00", grpc_status:14}"
>
2023-04-14 03:35:56,180 - [ERROR] - hm_pyhelper.miner_param - (gateway_diagnostics.py).call_grpc -- /opt/python-dependencies/hw_diag/diagnostics/gateway_diagnostics.py:(43) - <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {created_time:"2023-04-14T03:35:56.175259905+00:00", grpc_status:14}"
>
Traceback (most recent call last):
  File "/opt/python-dependencies/hw_diag/diagnostics/gateway_diagnostics.py", line 40, in call_grpc
    return getattr(client, method_name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/hm_pyhelper/gateway_grpc/client.py", line 68, in get_region
    region_id = self.get_region_enum()
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/hm_pyhelper/gateway_grpc/client.py", line 61, in get_region_enum
    return self.stub.region(local_pb2.region_req()).region
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/grpc/_channel.py", line 1030, in __call__
    return _end_unary_response_blocking(state, call, False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/grpc/_channel.py", line 910, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {created_time:"2023-04-14T03:35:56.175259905+00:00", grpc_status:14}"
>
ERROR:hm_pyhelper.miner_param:<_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {created_time:"2023-04-14T03:35:56.175259905+00:00", grpc_status:14}"
>
Traceback (most recent call last):
  File "/opt/python-dependencies/hw_diag/diagnostics/gateway_diagnostics.py", line 40, in call_grpc
    return getattr(client, method_name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/hm_pyhelper/gateway_grpc/client.py", line 68, in get_region
    region_id = self.get_region_enum()
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/hm_pyhelper/gateway_grpc/client.py", line 61, in get_region_enum
    return self.stub.region(local_pb2.region_req()).region
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/grpc/_channel.py", line 1030, in __call__
    return _end_unary_response_blocking(state, call, False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-dependencies/grpc/_channel.py", line 910, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:<IP_ADDRESS>:4467: Failed to connect to remote host: Connection refused {created_time:"2023-04-14T03:35:56.175259905+00:00", grpc_status:14}"
>
2023-04-14 03:35:56,312 - [INFO] - hm_pyhelper.miner_param - (miner_param.py).run_gateway_mfr -- /opt/python-dependencies/hm_pyhelper/miner_param.py:(38) - gateway_mfr response stdout: b'{\n  "key": "112dvU8U5q7acovjtvnMBynBT6rQZ5RUqiy8BoK95yPuXUhT3tbn",\n  "name": "wobbly-pickle-cheetah"\n}\n'

@MuratUrsavas can we catch these and show a better message rather than spamming the logs?

also seen this one:
2023-04-14 03:48:02,468 - [INFO] - hw_diag.utilities.hardware - (hardware.py).get_ble_devices -- /opt/python-dependencies/hw_diag/utilities/hardware.py:(103) - Found the following BLE Devices: [{'Address': 'DC:A6:32:6A:36:C0', 'Name': 'nebra-6A36BE.local', 'Powered': '1', 'Discoverable': '0', 'Pairable': '0', 'Discovering': '0'}]
INFO:hw_diag.utilities.hardware:Found the following BLE Devices: [{'Address': 'DC:A6:32:6A:36:C0', 'Name': 'nebra-6A36BE.local', 'Powered': '1', 'Discoverable': '0', 'Pairable': '0', 'Discovering': '0'}]
2023-04-14 03:48:02,469 - [INFO] - hw_diag.utilities.hardware - (hardware.py).get_lte_devices -- /opt/python-dependencies/hw_diag/utilities/hardware.py:(149) - Retrieving list of LTE device(s)
INFO:hw_diag.utilities.hardware:Retrieving list of LTE device(s)
2023-04-14 03:48:02,475 - [INFO] - hw_diag.utilities.hardware - (hardware.py).get_lte_devices -- /opt/python-dependencies/hw_diag/utilities/hardware.py:(176) - Found the following LTE Devices: []
INFO:hw_diag.utilities.hardware:Found the following LTE Devices: []
INFO:root:Diagnostics shipping not requested, skipping.
INFO:root:Diagnostics complete
INFO:root:Running periodic hardware diagnostics
Exception in thread Thread-164 (_run):
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "src/python/grpcio/grpc/_cython/_cygrpc/thread.pyx.pxi", line 53, in grpc._cython.cygrpc._run_with_context._run
  File "/opt/python-dependencies/grpc/_channel.py", line 1547, in _poll_connectivity
    event = channel.watch_connectivity_state(connectivity,
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 510, in grpc._cython.cygrpc.Channel.watch_connectivity_state
  File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 377, in grpc._cython.cygrpc._watch_connectivity_state
  File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 385, in grpc._cython.cygrpc._watch_connectivity_state
ValueError: Cannot monitor channel state: Channel closed!
2023-04-14 03:49:02,881 - [INFO] - hm_pyhelper.miner_param

https://nebraltd.atlassian.net/browse/NEBD-110


Type operator spacing rule

Enforces spaces around | and &, e.g. string|number is an error but string | number is not

Does this already exist for binary operators, eg with symbol.flags & SymbolFlags.Class? It seems like the rule should be the same there.

For expression-level operators the rules are different - for example, || will often have its right operand on the next line, and , shouldn't have a space after its left operand. Union or intersection types should be more standardized.

:+1:

OK, makes sense. :+1:

For the record, we might have to relax this rule down the road, but until then :+1:


Extend the archive interface

Based on these comments I'm re-evaluating how the S3Archive should be implemented. The way it is right now it holds a reference to a FileArchiver, using it whenever useful, but now I'm thinking that it shouldn't be a field but a class that the S3Archiver should extend. What do you think?


feat: add cloudevent signature

This PR formally adds support support to the CloudEvents format to the Functions Framework. This helps support future projects that use CloudEvents.
Current Function Frameworks support CloudEvents via HTTP signatures or the legacy style signatures data, context.
Fixes #25.
R: @grayside @juliehockett
CC: @ace-n

Pinged @grayside on Hangouts Chat.


Custom error message for custom validation rules

The hook for adding a custom check is nice. It would be even better if we could provide a custom error message for custom validation rules.

I have a patch for that, let me extract it from other changes I've done here, and propose a new PR.

Fixed in https://github.com/geofmureithi/f3-validate/releases/tag/1.1


Fix for issue #969

Pleae review the modifications if it is okay for #969

Please, see my comments.
But the most important thing is to add a new test case.

Looks good overall, after addressing the comments. And yes, a test case would be great.
@ningzhangnj Let us know your plan: 1) address comments and add a test 2) just address comments or 3) no further work on your part.
We'll decide what to do then.
Thanks for the PR!

Thanks for review. Will  follow plan 1.
Not only include method parameters, also found there is no test case to verify suite, test, class parameters in testng-failed.xml.
Will add test case to verify all-level parameters. If there is already similar test case, please notify me.

#962 introduced some tests on the same feature. You can have a look on them (and why not, improve them too)

A new pull request created. Close this.

Ok. For your information, a pull request is updated when you update a branch ;)


Add Random Quote Generator

The main objective of this project is to fetches a new random quote from an API, upon the click of a button, and displays it in the browser.
Please assign this issue to me.!

I am a GSSOC'22 participant, I want to work on this issue. I can do this using zen quotes.

Can you assign this issue to me??

Hey, I want to work on this issue!

/assign

Hey @swapnilsparsh . Can you assign this issue to me?

@kalashvasaniya @Kushal-2002 @sagnik2001 @varisha-025
Don't open new issues by just adding your projects in this repo, you can directly make a PR if you have some JS project with you that is not yet on the website.
Good Luck 👍🏻

I am a GSSOC'22 participant, I want to work on this issue


No information on new Global Reader role

Please add information for new Global Reader role that is rolling out.  Message center ID MC191391

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

ID: 0767aac4-fcd9-eaac-2c30-8f17d8eadd92
Version Independent ID: a380a828-03f9-e037-3a62-e4165fda7cb6
Content: Administrator role descriptions and permissions - Azure Active Directory
Content Source: articles/active-directory/users-groups-roles/directory-assign-admin-roles.md
Service: active-directory
Sub-service: users-groups-roles
GitHub Login: @curtand
Microsoft Alias: curtand

@LS16395762 Thanks for your feedback! We will investigate and update as appropriate.

"Global reader: Has full read-only access to all aspects of Microsoft Cloud App Security. Cannot change any settings or take any actions."
I am assigning this to the author, @curtand , to update this with the right IDs and descriptions.

Hi @LS16395762
When this feature is publicly available, the description and permissions will be published.

Hi @LS16395762
That information is now published in the article in question. The feature is currently being rolled out, and so not every Azure AD organization has received it yet.

#please-close


LCFS - Create Ag Grid variation that allows input rows / data entry

Describe the task
This card is to create a variation of AG grid that allows input rows, including:

data entry into individual cells/rows
ability for certain fields to be: drop-down menus, calendar picker, pill selection (see wireframe)
simple validation, per field validation
Adding individual rows
Calculations to occur across different fields; for example, field 3 within a row will be the product of field 1 and field 2
Ability to make some fields not editable

Wireframe: https://preview.uxpin.com/59145260c7d8cc48969ac79401cc03d84843c3d9#/pages/165712417/simulate/no-panels
Purpose
This component will be used in many features within the LCFS portal to facilitate data entry and the completion of forms, including fuel codes, compliance reporting, etc. This task will ensure that AG Grid has the functionality required for use within these features. If it does not, we will have to explore other options.
Acceptance Criteria

Data Entry Capabilities:

Users must be able to enter data into individual cells and rows within the AG Grid.
The grid should support text input, numeric values, date entries, and dropdown options.

Custom Field Types:

Certain fields must be configurable as dropdown menus, allowing users to select from predefined options.
Some fields should employ a calendar picker for date selection.
Other fields must offer a pill selection mechanism, enabling users to choose one or more predefined options in a tag-like fashion.

Validation:

Each field must have simple validation rules applied (e.g., required fields, numeric constraints, date formats).
Validation errors should be displayed in a user-friendly manner, prompting the user for correction.

Dynamic Row Addition and Calculations:

Users must be able to add new rows to the grid dynamically.
Automatic calculations across fields within a row must be supported (e.g., a field's value being the product of two other fields).

Editable/Non-Editable Fields:

The grid must allow certain fields to be marked as non-editable, preventing users from modifying their contents.

Integration and Usability:

The custom AG Grid variation must integrate seamlessly with the LCFS portal, supporting the required functionalities for fuel codes, compliance reporting, etc.
The component must perform efficiently, with no significant impact on the overall performance of the portal.

Development Checklist

[ ] Setup and Initial Configuration:

[ ] Create a new AG Grid variation module within the LCFS portal codebase.
[ ] Configure basic AG Grid settings to enable data entry.

[ ] Custom Cell Editors:

[ ] Implement dropdown menu cell editor.
[ ] Implement calendar picker cell editor.
[ ] Implement pill selection cell editor.

[ ] Validation:

[ ] Define validation rules for each field type.
[ ] Implement validation logic and error messaging.

[ ] Dynamic Rows and Calculations:

[ ] Add functionality for dynamically adding new rows.
[ ] Implement logic for automatic field calculations as specified.

[ ] Editable/Non-Editable Fields:

[ ] Configure certain fields as non-editable based on requirements.

[ ] Integration Testing:

[ ] Integrate the custom AG Grid variation into the LCFS portal.
[ ] Conduct thorough testing to ensure all functionalities work as expected and meet the acceptance criteria.

[ ] Documentation:

[ ] Document the setup, configuration, and usage instructions.
[ ] Ensure the documentation covers how to add new fields or change existing configurations.

[ ] Review and Finalization:

[ ] Review the implementation with stakeholders or through code review processes.
[ ] Make any necessary adjustments based on feedback.

The team estimates this card as an 8 if Prashanth is the one to complete it. This is because he has been our lead on AG Grid related work. If another dev were to take this card, the team believes the estimate should be a 13.


Add ability to overwrite existing attributes

Closes #23

Looks good! Is it too much to ask you to also change Eclipsing code to use this?

Added


nixos-generate-config should ensure that nix.nrBuildUsers >= autodetected nix.maxJobs

My computer supports 12 hardware threads (6 core CPU + hyperthreading). This lead to nixos-generate-config producing a hardware-configuration.nix containing nix.maxJobs = 12;. nix.nrBuildUsers defaults to 10, so this produced a configuration which fails to complete large builds without "-j 10".

In stead of 10 we should perhaps have a default value that is dependent on nix.maxJobs, e.g. minimum of 10 and nix.maxJobs.

Or we should add a check on nix.nrBuildUsers to complain that the config is wrong.


CL: swap tick boundary test vectors

Background
These are the test vectors that we would like to hit:

zero for one swap until tick + second zero for one swap
zero for one swap below tick + second zero for one swap
zero for one swap above tick + second zero for one swap

repeat the same combinations but second swap is one for zero

one for zero swap until tick + second one for zero swap
one for zero swap below tick + second one for zero swap
one for zero swap above tick + second one for zero swap

repeat the same combinations but second swap is one for zero
Acceptance Criteria

Test vectors covered

Additional vectors:
consider the impact of price limit on this

We should repeat the same vectors with tick spacing of 1 and 100 to ensure the are no edge cases around that

In particular, where the are ticks surrounding the tick being crossed when tick spacing is one

Just FYI, The test vectors listed here are already covered by hand-picked values in https://github.com/osmosis-labs/osmosis/pull/5526


Faking dates with Carbon breaks the session persistence

Versions
Laravel Version: 8.83.9
PHP Version: 8.0.11
Database Driver & Version: MariaDB 10.5.8
Description:
Adding something like this anywhere in a middleware or even the AppServiceProvider breaks session:
Carbon::setTestNow($now = '2022-04-20 11:39:45');

Steps To Reproduce:

Create a middleware

<?php

namespace App\Http\Middleware;

use Closure;
use Carbon\Carbon;
use Carbon\CarbonImmutable;
use Illuminate\Http\Request;

class FakeNow
{
    public function handle(Request $request, Closure $next)
    {
        if (app()->environment('local')) {
            Carbon::setTestNow($now = '2022-04-20 11:39:45');
            CarbonImmutable::setTestNow($now);
        }

        return $next($request);
    }
}

Add it first in the web stack

Refresh a page with a csrf_token()

Token is refreshed every time.

Hey @antonioribeiro. This setTestNow call is only intended to be used in tests and not in app code. We do not recommend to use it outside testing classes.


Implementing application insights in SailsJs

Node version: 11.3.0
Sails version (sails): 1.1.0
ORM hook version (sails-hook-orm):
Sockets hook version (sails-hook-sockets):
Organics hook version (sails-hook-organics):
Grunt hook version (sails-hook-grunt):
Uploads hook version (sails-hook-uploads):
DB adapter & version (e.g. sails-mysql@5.55.5):
Skipper adapter & version (e.g. skipper-s3@5.55.5):

I am trying to implement application insights in the Sails Application, so I added the application insights instance in the app,js, however in order to use the sails.config environment variables I will need to lift the sails application.
I added the application insights setup in the callback of lifting the sails application but it won't work like it should work since the application insights should be configured at the beginning of the app.js
Can someone help?

Hi @vaibhavahuja, would you be able to create a minimal repo with a sails app that reproduces this so we can look into this more? Thank you.

@eashaw Heyy
I just wanted to know if we can access the variables in config/env/production.js before the sails being loaded?
If yes, then how?
I do not want to give the file path.
Thanks

@vaibhavahuja I don't believe we can access the variables in config/env/production.js before Sails lift. This is because those variables will be added via the userconfig hook which will need Sails lift.

@DominusKelvin okay, so for achieving this task I had to create a new .env file and use the dotenv library to load those variables to the process.env object.
I just thought there would be a way to do so using sails.config but I will have to use 2 config files.
thaknks

@DominusKelvin okay, so for achieving this task I had to create a new .env file and use the dotenv library to load those variables to the process.env object.
I just thought there would be a way to do so using sails.config but I will have to use 2 config files.
thanks

You are welcome. Also perhaps your server provider could do that. Like using a platform like Heroku would give you access to end variables. Just a suggestion if it fits your use case.


Doc clarification

The docs for RequestHandle#cancel(boolean) state:

After this method returns, subsequent calls to isDone() will always return true. Subsequent calls to isCancelled() will always return true if this method returned true.

If cancel returns false, will subsequent calls to isDone() still return true?  It seems like they should not, but the docs suggest they would.

I've updated documentation on said method. For record isDone() may return true if request got cancelled other way or if the request completed normally.


Pipeline/metrics

@majsylw yes, I did. My branch seems to be up to date with pipeline/pipeline

In https://github.com/hearai/hearai/pull/27 me added some new features as multihead and the output - target and predictions changed, please check it

looks good to me; neptune logging will be added in the next step by me;
as Sylwia's changes are already merged let's sync on rebase before merging this PR


Combination Price Watcher

Allows tracking multiple asset prices via a single bot watcher by changing the price displayed in the nickname

Codecov Report

Merging #22 (8b24425) into main (4958f6b) will decrease coverage by 1.47%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
- Coverage   27.08%   25.60%   -1.48%
==========================================
  Files          15       15
  Lines         779      824      +45
==========================================
  Hits          211      211
- Misses        542      587      +45
  Partials       26       26

Impacted Files
Coverage Δ

discord/discord.go
0.00% <0.00%> (ø)

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 4958f6b...8b24425. Read the comment docs.

Codecov Report

Merging #22 (8b24425) into main (4958f6b) will decrease coverage by 1.47%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
- Coverage   27.08%   25.60%   -1.48%
==========================================
  Files          15       15
  Lines         779      824      +45
==========================================
  Hits          211      211
- Misses        542      587      +45
  Partials       26       26

Impacted Files
Coverage Δ

discord/discord.go
0.00% <0.00%> (ø)

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 4958f6b...8b24425. Read the comment docs.


Use bit field instead of bitwise operations

How do you feel about turning romheader into a bit field instead of using all the bitwise operations? This would make the code easier to read, and give the compiler a bit more freedom in optimizing the bitwise arithmetic.
Instead of
return romheader[6] & 0x04 ? 1 : 0;

this would allow us to instead write
return romheader.trainer;

I wouldn't mind working on a PR if this is something you are open to, but I wanted to check first as this would impact a lot of code.

Thanks for taking interest in this project.
The only concern I have with this really, is that it might cause headaches dealing with different versions of the header (iNES vs NES 2.0). I don't really find it hard to read, of course I wrote it so it came from my twisted brain in the first place.
One day (maybe soon when I take a vacation) I'll add tile import/export, and there will be a lot of restructuring done. I may restructure some of this header code as well at that time.

The only concern I have with this really, is that it might cause headaches dealing with different versions of the header (iNES vs NES 2.0).

I think it is ok because almost everything new in NES 2.0 should just be zeroed out in iNES.
Here is some rough sketching of what I had in mind, just for posterity. union this with romheader and Rock & Roll.
struct {
    unsigned int magic_number : 32; // Bytes 0-3
    unsigned int prom_size_low : 8; // Byte 4
    unsigned int crom_size_low : 8; // Byte 5
    unsigned int mirroring : 1;     // Byte 6
    unsigned int battery : 1;
    unsigned int trainer : 1;
    unsigned int four_screen_mode : 1;
    unsigned int map_low : 4;
    unsigned int sys : 2;           // Byte 7
    unsigned int version : 2;
    unsigned int map_mid : 4;
    unsigned int submapper : 4;     // Byte 8
    unsigned int map_high: 4;
    unsigned int crom_size_high : 4;// Byte 9
    unsigned int prom_size_high : 4;
    unsigned int pram_battery : 4;  // Byte 10
    unsigned int pram_no_battery : 4;
    unsigned int cram_battery : 4;  // Byte 11
    unsigned int cram_no_battery : 4;
    unsigned int tvsystem : 2;      // Byte 12
    unsigned int : 6;
    unsigned int vsmode : 4;        // Byte 13
    unsigned int vsppu : 4;
    unsigned int reserved : 16;     // Bytes 14-15
};

Closing this for now, but let me know if there is something I can do to help in the future :+1:


503 Service Unavailable

Consider the following request to http://www.nice2predict.org/query.
curl 'http://www.nice2predict.org/query' \
  -H 'Connection: keep-alive' \
  -H 'Pragma: no-cache' \
  -H 'Cache-Control: no-cache' \
  -H 'Accept: */*' \
  -H 'X-Requested-With: XMLHttpRequest' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36' \
  -H 'Content-Type: application/json' \
  -H 'Origin: http://www.nice2predict.org' \
  -H 'Referer: http://www.nice2predict.org/' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  -H 'Cookie: _ga=GA1.2.248161625.1609733510; _gid=GA1.2.453242178.1609733510; _gat=1' \
  --data-binary $'{"jsonrpc":"2.0","method":"showgraph","id":1,"params":{"query":[{"a":0,"b":1,"f2":"[0]:Call[2]"},{"a":2,"b":1,"f2":"String-[1]:Call[2]"},{"a":1,"b":3,"f2":"[2]:Call[3]-Bool"},{"a":4,"b":0,"f2":"[0]:Dot[0]"},{"a":4,"b":2,"f2":"[0]Dot[0]:Call[1]-String"},{"a":4,"b":1,"f2":"[0]Dot[0]:Call[2]"},{"a":4,"b":3,"f2":"[0]Dot[0]:Call[3]-Bool"},{"a":5,"b":6,"f2":"[0]:Call[1]"},{"a":4,"b":5,"f2":"[0]:Dot[0]"},{"a":4,"b":6,"f2":"[0]Dot[0]:Call[1]"},{"a":7,"b":1,"f2":"FNPAR"},{"a":7,"b":4,"f2":"FNPAR"},{"a":7,"b":6,"f2":"FNPAR"},{"cn":"\u0021=","n":[1,4,6,7]}],"assign":[{"v":0,"giv":"open"},{"v":1,"inf":"a"},{"v":2,"giv":"GET"},{"v":3,"giv":"false"},{"v":4,"inf":"b"},{"v":5,"giv":"send"},{"v":6,"inf":"c"},{"v":7,"giv":"f"}],"version":"0.9.5"}}' \
  --compressed \
  --insecure

The server responds with a 503 Service Unavailable message.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<title>503 Service Unavailable</title>

Service Unavailable

The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.

<address>Apache/2.4.7 (Ubuntu) Server at www.nice2predict.org Port 80</address>

If the service is under maintenance then could you please tell me when it will be back online?

I'm guessing the server is no longer maintained?
While im running unuglify, I get error connecting to server too.

/usr/local/lib/node_modules/unuglify-js/bin/unuglifyjs:241
sys.error("ERROR: ".red + "connecting to server '" + HOST + ":" + PORT + "' " + err);

Maybe @vraychev can provide us some insights?


Test: Use Kubecfg native options.

Had seen some issues when the output yaml from kubecfg show was
correctly on the test output, but the apply is not working as expected.
Maybe it's related with some strange behaviour on flushing stdout to
tee and the file was not created correctly.
The only reason to have the tee in there is to have the output for
debugging purposes, so I change the logic to kubecfg validate and
kubecfg update, If one of the two fails, it'll log the kubecfg show
output.
Error:
Cilium cannot be installed
Expected
    <*errors.errorString | 0xc4203ee780>: {
        s: "cmd: kubectl apply -f  /home/vagrant/go/src/github.com/cilium/cilium/test/9acb0442_cilium_ds.jsonnet\nconfigmap \"cilium-config\" created\nsecret \"cilium-etcd-secrets\" created\nerror: error validating \"/home/vagrant/go/src/github.com/cilium/cilium/test/9acb0442_cilium_ds.jsonnet\": error validating data: ValidationError(DaemonSet.spec.template.spec.initContainers): unknown object type \"nil\" in DaemonSet.spec.template.spec.initContainers[0]; if you choose to ignore these errors, turn validation off with --validate=false\n",
    }
to be nil
/home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/vendor/github.com/onsi/gomega/internal/assertion/assertion.go:35

Signed-off-by: Eloy Coto<EMAIL_ADDRESS>

This change is

test-me-please

Flake: https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/3823/testReport/junit/k8s-1/10/K8sValidatedChaosTest_Endpoint_can_still_connect_while_Cilium_is_not_running/

test-me-please

test-me-please


As I am new to Azure  I would like to know , How to configure an alert  on VM usage per Month  , which feature I have to use  ?

Azure documentation issue guidance
Thanks for opening an issue in the Azure technical documentation repository.
We use GitHub issues as the primary channel for customer and community feedback about the Azure documentation.
Creating an issue
We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.
You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:

[ ] The relevant Azure service or technology.
[ ] A link to the published documentation article that you have feedback about.
[ ] Clear, specific feedback that the author can act on.

Pull requests and article contributions
If you know the change that is needed in an article, we encourage you to submit the changes directly using a pull request. If the change is large, or if you want to contribute an entire article, follow these guidelines:

[ ] Don't surprise us with a big pull request or a pull request with a new article! Submit an issue that describes the details of the proposed large change or new article.
[ ] Include the service or technology area.

We'll route the issue to the appropriate content team for review and discussion.
Tech support and product feedback
If you would like to contact Microsoft about other things, such as product feedback or tech support, please review these guidelines:

If you need technical support using Azure, the paid and free support options are described here: https://azure.microsoft.com/support/options/.

Each article in the Azure technical documentation contains a product feedback button - it's best to submit product feedback directly from a relevant article. Otherwise, you can submit product feedback for most Azure products in the following product feedback forum: https://feedback.azure.com/forums/34192--general-feedback.

@rsrk2008 Thanks for reaching out!
If the issue is related to particular Azure document then as this azure-docs repository deals about feedback related to particular Azure document page (like correcting doc bugs, doc enhancements, product issues related to wrong doc instructions, etc.) so please share the Azure document link and more context around the feedback.
Also FYI, going forward if you want to share any feedback related to particular Azure document then I suggest you to please click on 'This page' option at the bottom of referred Azure document and share the feedback. For reference, adding screenshot of the 'Feedback' section that you could ideally find at bottom of an Azure document.

But on the other hand, if you need help in resolving a product related issue or question then I suggest you to ask the question in public forums like Microsoft Q&A, etc. but not here in this azure-docs repository. Hope this clarifies.

@rsrk2008 Thanks for reaching out!
If the issue is related to particular Azure document then as this azure-docs repository deals about feedback related to particular Azure document page (like correcting doc bugs, doc enhancements, product issues related to wrong doc instructions, etc.) so please share the Azure document link and more context around the feedback.
Also FYI, going forward if you want to share any feedback related to particular Azure document then I suggest you to please click on 'This page' option at the bottom of referred Azure document and share the feedback. For reference, adding screenshot of the 'Feedback' section that you could ideally find at bottom of an Azure document.

But on the other hand, if you need help in resolving a product related issue or question then I suggest you to ask the question in public forums like Microsoft Q&A, etc. but not here in this azure-docs repository. Hope this clarifies.

Can someone answer to the question posted
On Wed, Feb 3, 2021 at 12:59 AM KrishnaG-MSFT<EMAIL_ADDRESS>wrote:

Closed #69766 https://github.com/MicrosoftDocs/azure-docs/issues/69766.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/69766#event-4283517730,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASVKGMZ6J4PP5NWY23XFRCTS5DX45ANCNFSM4W3AU74A
.

--
Thanks & Regards
Siva


AAD deployment plans

[Enter feedback here]

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

ID: 795962ba-55a1-65f3-e7fe-4c5d968af8e5
Version Independent ID: 4a0cf543-0959-42cc-55b8-bc40481dd591
Content: Azure Active Directory deployment plans - Microsoft Entra
Content Source: articles/active-directory/architecture/deployment-plans.md
Service: active-directory
Sub-service: fundamentals
GitHub Login: @gargisinha
Microsoft Alias: gasinh

@henrypan
Thanks for your feedback! We will investigate and update as appropriate.

@henrypan
Could you please elaborate the query for better understanding. So, we can assist you further.

Saluting Manohar from Redmond, Home of MS,
I'm drafting a proposal to upgrade an old AA/SSO to AAD/SSO on Azure, so would you please share an AAD deployment plan to make my life easier?
Thanks in advance + Happy Sunday
HP

@henrypan
I'm going to assign this to the document author so they can take a look at it accordingly
@MicrosoftGuyJFlo
Can you please check and add your comments on this doc update request as applicable.

#remove-label:"assigned-to-author"
#reassign:@ManoharLakkoju-MSFT
#label:"cxp"

#remove-label:"triaged"

#reassign:@Gargi-Sinha

Hi @henrypan. I will share the Deployment plan with you.

#please-close


cmd/compile: misspelling by case-mismatch of field names in literal no longer shown in compiler error messages like it did in Go1.17

Go version
go version devel go1.22-1ae729e6d3 Fri Jan 5 23:38:32 2024 +0000 darwin/amd64
Output of go env in your module/workspace:
GO111MODULE=''
GOARCH='amd64'
GOBIN='/Users/emmanuelodeke/go/bin'
GOCACHE='/Users/emmanuelodeke/Library/Caches/go-build'
GOENV='/Users/emmanuelodeke/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/emmanuelodeke/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/emmanuelodeke/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/emmanuelodeke/go/src/go.googlesource.com/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/Users/emmanuelodeke/go/src/go.googlesource.com/go/pkg/tool/darwin_amd64'
GOVCS=''
GOVERSION='devel go1.22-1ae729e6d3 Fri Jan 5 23:38:32 2024 +0000'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/emmanuelodeke/go/src/github.com/orijtech/medisa/go.mod'
GOWORK=''
CGO_CFLAGS='-I/Users/emmanuelodeke/Desktop/openSrc/rocksdb/include'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-L/Users/emmanuelodeke/Desktop/openSrc/rocksdb -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4 -lzstd'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/v3/7z434qpx5v3bw0wh8h2myfpw0000gn/T/go-build3071944846=/tmp/go-build -gno-record-gcc-switches -fno-common'

What did you do?
I ran this program
package main

type URL struct {
	URL  string
	NSFW bool
	ID   string
}

func main() {
	_ = &URL{
		Id: "foo",
	}
}

What did you see happen?
I got back this error
./main.go:11:3: unknown field 'Id' in struct literal of type URL

What did you expect to see?
./main.go:11:3: unknown field 'Id' in struct literal of type URL (but does have ID)

which was in Go1.17 and a nicer user experience that's prescriptive

cc @griesemer  as this seems to be types2 related

This was fixed by CL 560055.


feat: Strongly typing spclose & time (see TINY_GTH)

spclose - word	SpClose;	// high 4 bits: reserved / low 12 bits: closing speed (10 = 1 m/s)

Blocked by #116

time - // looping time stamp (hundredths - time since reset - like TINY_GTH)

Duration, I guess?
Where?
IS_CON:

spclose
time

IS_OBH:

time

IS_HLV:

time

IS_SMALL, subtype: SMALL_RTP

time (uval) - see #117

IS_CSC:

time

Just spclose remaining. Time was dealt with under #117


Correctly detect the absence of ronn

Just a little fix: without the quotes the -x test passes and you get a weird error along the lines of:
script/man: line 10: man/git-lfs-checkout.1.ronn: Permission denied
..if ronn isn't installed, instead of the correct error message:
Install the 'ronn' ruby gem to build the man pages.

Ah thanks. My shell knowledge has leveled up a lot since I wrote this :)


ModalContainer OnClose not work in 0.6.7-preview (nightly feed).

Hi @outdomleap can you share more info about what isn't working? Are you getting an error? I tried the sample here and it works fine on the iOS Simulator: https://github.com/xamarin/MobileBlazorBindings/tree/master/samples/MobileBlazorBindingsTodoSample


download_hex2bin109_source error

make: gcc: Command not found
You need to install the gcc compiler to compile the code ...


fix: Table interact-able columnTypes should not show in selectedRow

Description
Interact-able column types will not show in selectedRow, triggeredRow and updatedRow properties
Fixes #15640
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Jest tests

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

/ok-to-test sha=c5f0705

/ok-to-test sha=929c428

Table properties that won't show button columns and editActions data:

selectedRow
selectedRows
updateRow
updatedRows
triggeredRow

/ok-to-test sha=67259a7

Tested and verified.

/ok-to-test sha=efa0415

/ok-to-test sha=0f1095b


Publish code coverage not shown for Jacoco

I want to Publish my Jacoco code coverage in TFS with the plugin Publish Code Coverage Results.
This functionality was working correctly, but since short time ago it's not working anymore.
When going to Code Coverage tab on the build it shows the message: "Code coverage report cannot be rendered as report HTML was not found. Please verify that “Report Directory” containing an HTML report was specified when publishing code coverage."
I'm specifying the .xml file, the .html, and the .exec. But the code coverage is not reflected in that tab (although the build recognises the % of covered code).

@guillermomartinez-accenture, could you provide your build logs for us to investigate?

Hi @karanjitsingh, the plugin log seems to be correct
8.txt
but when I go to the Code Coverage tab I got the message:

"Code coverage report cannot be rendered as report HTML was not found. Please verify that "Report Directory" containing an HTML report was specified when publishing code coverage."

The Jacoco report is created properly, and with previous plugin version it was reported correctly.

@guillermomartinez-accenture are you still facing this issue?

Please let us know and we will re-open this.


⚠ Catalog API Endpoint has degraded performance

In 0b8e443, Catalog API Endpoint (https://catalog.roblox.com/v1/bundles/details?bundleIds=192) experienced degraded performance:

HTTP code: 200
Response time: 3167 ms

Resolved: Catalog API Endpoint performance has improved in bd4e27b.


user:glfs create fail when use new version of targetcli and python-rtslib.

Hello.
I tried to create user:glfs backstore, but failed with this message.

/> backstores/user:glfs create extreme 100g<EMAIL_ADDRESS>2018-05-31 21:48:57.572 13728 [DEBUG] handle_netlink:208: cmd 1. Got header version 1. Supported 2.
2018-05-31 21:48:57.572 13728 [DEBUG] dev_added:765 glfs/extreme: Got block_size 512, size in bytes<PHONE_NUMBER>00
Created user-backed storage object extreme size<PHONE_NUMBER>00.
/> exit
Global pref auto_save_on_exit=true
Traceback (most recent call last):
File "/usr/bin/targetcli", line 122, in
main()
File "/usr/bin/targetcli", line 118, in main
root_node.ui_command_saveconfig()
File "/usr/lib/python2.7/site-packages/targetcli/ui_root.py", line 138, in ui_command_saveconfig
self.rtsroot.save_to_file(savefile)
File "/usr/lib/python2.7/site-packages/rtslib_fb/root.py", line 357, in save_to_file
saveconf = self.dump()
File "/usr/lib/python2.7/site-packages/rtslib_fb/root.py", line 241, in dump
d['storage_objects'] = [so.dump() for so in self.storage_objects]
File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 886, in dump
d['control'] = self.control_tuples
File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 851, in _get_control_tuples
val = self._parse_info('MaxDataAreaMB')
File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 187, in _parse_info
% key, ' '.join(info.split())).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

After that, I reinstall python-rtslib and targetcli (use old version. rtslib - 2.1.fb63-5, targetcli - 2.1.fb46-1),
and I could make user:glfs backstore.
Here is the version information of targetcli and python-rtslib
Fail - targetcli 2.1.fb46-4, python-rtslib 2.1.fb63-11
Success - targetcli - 2.1.fb46-1, rtslib - 2.1.fb63-5

@pkalever you fixed this in rtslib-fb master branch right?

@parkch0708 It might be this patch
https://github.com/open-iscsi/rtslib-fb/commit/eff378068812503ee2394baffba37b5cadd9a0f7
Also, I think the preferred glfs management tool is the gluster block tool. It will not help on this bug, but I think in general it might be easier to use.


guilabel role CSS style

The guilabel role is displayed as italic by  the default Sphinx theme. Unfortunately, the RTD theme does not apply any emphasis, so it appears as normal text.
For instance, see "Owning group" in
http://docs.nethserver.org/en/latest/shared_folder.html#access-privileges
Owning group

Is it possible to retain the default Sphinx style?

This has been merged see https://github.com/snide/sphinx_rtd_theme/commit/101a2970f2b4af0869616b8e049e8b52f816cc1a someone please close.


Request for adding CNAME as tw.crystal-lang.org

Hello,
We (Crystal-TW) are the community that spread the Crystal in Taiwan.
And we are also translating official Crystal document into Chinese Traditional (Taiwan) (a.k.a. zh-TW) now. (And planing for translating the Crystal blog.)
There are informations in Chinese Trad. (Taiwan):

Web: http://crystal-tw.github.io/
GitHub: https://github.com/crystal-tw/crystal-tw.github.io

Then we noticed that crystal-jp are also contributing for Japanese document and published to the subdomain, ja.crystal-lang.org [#1719], so we would like to ask for publishing the translated document as subdomain in tw.crystal-lang.org.
We'll maintenance and keep syncing for the document in zh-TW.
If it is okay, the DNS record will be:
tw.crystal-lang.org. IN CNAME crystal-tw.github.io.

Thank you.
cc @waj @asterite

done! can you confirm?

@nditada Thank you! And yes, we can see the page on http://tw.crystal-lang.org now! :tada:

Thanks @david50407 for helping crystal reach taiwan readers!


don't flush on every body part

Right now we call flush on every body part write, this can be suboptimal, closes #203
Motivation:
Library users can write data in small chunk, in this case we are not buffering enough data, better solution would be to buffer at the NIO level in this case.
Modifications:
Body part write is not not flushing, just write
Result:
Body part writes are not flushing anymore

Just as a heads up, the main development branch has been changed to main, following the Swift policy on this.
This PR has been re-targeted to main and should just work. However when performing rebases etc please keep this in mind -- you may want to fetch the main branch and rebase onto the main branch from now on since master is not up-to-date anymore and is going to be deleted shortly.


Improve the evaluate requests

Currently it evaluates the given expression in the context of the top most stack frame.
The expression should access to any variables and arguments that are in the scope chain.
Implement the eval_at request with the level of the scope chain as a further argument.

@zherczeg : Thanks for the review, I've updated the PR.


S3 buckets should require ssl requests by default

Is this related to a new or existing Amplify category?
storage, hosting
Is this related to another service?
S3
Describe the feature you'd like to request
In keeping with AWS Foundational Security Best Practices, Amplify created S3 buckets should default to requiring requests to use HTTPS and reject HTTP.
Describe the solution you'd like
Generated CloudFormation templates for S3 buckets should come with a bucket policy that rejects HTTP requests. Short of being a default, a documented flag in a config file or cli option would work too.
Describe alternatives you've considered
Remediation instructions for the config rule s3-bucket-ssl-requests-only are pretty straight forward: https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-fsbp-controls.html#s3-5-remediation
It's also possible to change the templates manually to include the correct policy
Additional context
No response
Is this something that you'd be interested in working on?

[ ] 👋 I may be able to implement this feature request
[ ] ⚠ This feature might incur a breaking change

This has been addressed by https://github.com/aws-amplify/amplify-cli/pull/10533/files