History heatmap for user

Hi guys,
I think that is a possible feature, a history heatmap similar to github or gitlab.
Actually exists a plugin called Calendar HeatMap. I used this on mine project to heat application log and worked fine here.
Then, is only a idea, what you think? :)
http://cal-heatmap.com/
https://github.com/wa0x6e/cal-heatmap
Reference: https://github.com/gogits/gogs/issues/1640

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38896175-history-heatmap-for-user?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github).

I would prefer a solution that is in the backend, unless it's required to have it update without reloading. Unfortunately I can't seem to find anything that does that :unamused:
Also this would require caching, since it will fetch huge amounts of data from disk...

Yes, this plugin build on front-end, with backend I don't know too, but we can consider make component for this.
In my case I use ajax to get data, but build on frontend anyway

following  @bkcsoft retention strategy in cache is a must if we don't want gitea to waste ressources.
something like in the latest 15days could be enough don't you think ?

@xinity a simple LRU-cache should suffice in my opinion. Might be useful to be able to set the size of that cache though.
For my own projects I use hashicorp/golang-lru which works just fine and has a configurable size :slightly_smiling_face:

d3-calendar illustrates this really nicely and simply with javascript: https://bl.ocks.org/mbostock/4063318
git log is really flexible, so you can use it to output directly to JSON format, filter on users or dates, customize output format, etc (even has its own set of shortcodes). After an aggregation step, that data can be loaded into D3 calendar (basically just json objects with a key of the date and a value of the number of commits).
Here is a single-user activity graph that illustrates embedding the Javascript visualization in the home template file: git.charlesreid1.com and modified home template.

@charlesreid1 could you send a PR to gitea with your heatmap?

I'm happy to put together a visualization in an PR, but a couple of things need to be worked out first:

Placement. My example heatmap is commit data scraped for a single user, displayed on the home page for the gitea server - which doesn't make sense for gitea servers in general. If we wanted to have a per-user heatmap, I think it belongs on a user's profile page. Either behind the "Public Activity" tab on the user's profile, or just on top of the three tabs "Repositories"/"Public Activity"/"Starred repositories"

Data. The model I'm using for data would need to be changed a bit as well (my visualization points to a JSON file not dynamically generated by gitea). We could modify gitea to cache per-user commit data (updated with a post-commit hook or a daily maintenance task) and provide an endpoint route, where you provide it a username and it returns commit data in a JSON form convenient for visualization.

Thoughts? Potential roadblocks?

We would like put it under the Public Activity tab and top of all the activities on user's profile. Like the below example image:

@lunny I liked this approach, if possible to change color to green can be best.... or not, github is green too.

I'll let the hipsters decide what color scheme to use. 🤓

Green would be more consistent with gitea theme

I will use ColorBrewer's YlGn theme, which looks like the same one Github uses and is nicely consistent with Gitea green.

It looks like gitea/models/graph.go may already implement a model for commit counts. Is that correct?

Maybe not... But it looks like graph.go might be useful for implementing commit counts. There are a couple of files referring to a commit graph. Is this related to the heatmap/calendar idea, or is this referring to the timeline that shows up on a user's/organization's page?

I think we need a new table to store the statistics information.
type UserHeatMap struct {
      ID int64
      UserID int64 `xorm:"index"`
      Day string `xorm:"char(10)"` // 2018-02-26
      Count int
}

And all needed data could read from table action.

Could we not use a SQL DATE instead of a char(10)?

Also if this is just activity from action table than probably no new table is needed just select user_id, date, count(1) with group by user_id, date?

@lafriks that maybe
select date, count(1) from action where user_id = ? and date >= ? and date < ? order by date group by date

@lunny yes that what I meant but I don't know if xorm supports such queries

type Stat struct {
      Date string
      Count int
}
var stats = make([]Stat,0, 366)
x.SQL(`select date, count(1) as count from action where user_id = ? and date >= ? and date < ? order by date group by date`, userID, startDate, endDate).Find(&stats)

would that work in all dialects?

If we have date column (do we?) than it should work

@lafriks we can use created and remove the time parts.

@lunny don't think removing time part will be that easy so that it would perform good enaugh for such select

It's possible to see this feature in near future?

This effort was over my head, as there many decisions where I didn't have a clear sense of how to proceed, so I didn't get very far.

Any updates on this?

@kolaente no people are working on this.

Someone created a nice article on how to implement this externally: https://medium.com/@markuman/gitea-contribution-heatmap-af4be1d7a0d5

I'll try to implement this.

Problem is with this part:
group by DATE_FORMAT(FROM_UNIXTIME(created_unix), '%Y%m%d')

At least I did not find a way to implement it for sqlite

@lafriks I did find one:
SELECT created_unix as timestamp, count(user_id) as contributions
FROM `action`
WHERE (user_id = 1)
  AND (created_unix ><PHONE_NUMBER>)
GROUP BY strftime('%Y-%m-%d', created_unix, 'unixepoch')
ORDER BY created_unix

I think you will need different also for mssql and Postgres also

PR is up: #5131

Awesome, can't wait for release this.


Remove formulae/aliases/travis.yml.

CC @xu-cheng

I need to do some test for this, but I think it should be fine.

Thanks. Feel free to merge when done testing.

@xu-cheng Thanks for testing/merging.

@xu-cheng Actually, mind detailing your testing steps so I can do so for future file removal/upgrade testing? No rush on that.
@Homebrew/maintainers This repository now has no pull requests and no formulae (so it should hopefully stay that way). There's no way to disable PRs on a repository but we can feel free to insta-close any future ones.

This repository now has no pull requests and no formulae (so it should hopefully stay that way). There's no way to disable PRs on a repository but we can feel free to insta-close any future ones.

Hopefully it will. There were actually fewer than I had expected since we split. It's looking almost too empty now. —Looking for, but failing to find a tumbleweed emoji.

Actually, mind detailing your testing steps so I can do so for future file removal/upgrade testing? No rush on that.

brew update-test --commit=<sha>. I used the sha obtained from https://travis-ci.org/xu-cheng/homebrew-test/builds/120408105, i.e., the commit in various Travis CI images.

@xu-cheng Cool, thanks. What commit do you checkout before running that test?

The latest commit, that is the commit that brew update-test will try to update it to.

@xu-cheng So: the checked out latest commit in this PR, latest commit in Homebrew/brew's master or latest commit in this repo?

latest commit in this PR.

Also, brew update-test will show:
$ brew update-test
Start commit: foo
End   commit: bar

Which means it will try to test update homebrew from commit foo to bar.

@xu-cheng Great, thanks.


kubeadm release notes draft for 1.6

For discussion in SIG-cluster-lifecycle.
Hailing @jbeda @luxas @pires @errordeveloper

Some comments:

We should call out as a new feature that users can manage tokens (including setting expiration times) with kubeadm.  This and RBAC are, I think, the top line new features.
The command line flags have been changed.  It might be worthwhile to document what has been removed and added.
The cloud provider flag has been removed and moved to the config file.  Reasoning is that it is difficult to set up properly and making it a command line flag on kubeadm makes it look easier than it is.
We are now using new labels for tainting and labeling the master.  @luxas -- do you have the old/new values off the top of your head?  If not, I can look them up.
On the network/CNI stuff, both RBAC and the new taints/labels will require changes for most CNI configuration files.

I think I've addressed all review feedback, thanks everyone!
@jbeda @luxas PTAL

@lukemarsden please, ensure that the final version of the release notes will be ready today before 1 PM PT today.

@lukemarsden ping.

@lukemarsden @mikedanese because of the release delay we can extend the deadline till EOD today.
Otherwise, the notes won't be added.

With a quick search, I found the following in the release note draft, which should be listed under breaking changes, with clear explanations of what users need to change:

kubeadm: kubeadm reset won't drain and remove the current node anymore (#42713, @luxas)
kubeadm: Rename some flags for beta UI and fixup some logic (#42064, @luxas)
Flag --use-kubernetes-version for kubeadm init renamed to --kubernetes-version (#41820, @kad)
kubeadm: Remove the --cloud-provider flag for beta init UX (#41710, @luxas)

The following look like they are covered to some degree by this PR:

Insecure access to the API Server at localhost:8080 will be turned off in v1.6 when using kubeadm (#42066, @luxas)
Switch to the node-role.kubernetes.io/master label for marking and tainting the master node in kubeadm (#41835, @luxas)
Add authorization mode to kubeadm (#39846, @andrewrynhard)

However, I suggest you link to RBAC documentation that would better explain what users should expect and what actions they need to take.
cc @jbeda

If I don't hear from @lukemarsden in an hour or two I'll pick this up and pull something together by EOD.  @idvoretskyi -- does that work for you?

@jbeda yes, please.

@apsinha here's the kubeadm/Cluster Lifecycle release notes PR

I've pushed a commit which addresses all review comments except:

I don't know what the taint k/v is, but I agree that it should be mentioned explicitly
I haven't addressed @bgrant0607's substantive feedback yet

@jbeda I'll take you up on the offer of getting this over the line for me. Please take my WIP fork, squash the commits and make your own PR. Thanks!
@calebamiles please note the above. Thanks!

Not sure what just happened, I don't think I merged it but GitHub thinks I did. @jbeda sorry could you please make a follow-up PR addressing the above points? Thanks!
Sorry everyone for the tardy response here, I'm in the middle of moving house...

Copying my earlier comment down from review comments to here so it becomes more visible: https://github.com/kubernetes/features/pull/211#discussion_r106801628
cc @bgrant0607 Here was my take on what we need to have in the relnotes at least

The kubelet API is now secured, only cluster admins are allowed to access it.
Insecure access to the API Server over localhost:8080 is disabled by default
The control plane components now talk securely to each other. The API Server talks securely to the kubelets in the cluster
A new label and taint is used for marking the master. The label is node-role.kubernetes.io/master="" and the taint has the effect NoSchedule
Added experimental self-hosting support
Supporting only etcd3, with 3.0.14 as the minimum version
Added an experimental command for running only one of kubeadm's functions, for instance kubeadm alpha phase certs selfsign generates all necessary certificates for a cluster. You can use these building block functions in your own, custom deployment. In future versions, this command will mature and be moved to beta quality.
Debian packages are built for ppc64le and s390x as well

Some of these are breaking as well:

A new label and taint is used for marking the master. The label is node-role.kubernetes.io/master="" and the taint has the effect NoSchedule

If you want to schedule a workload one the master (a networking DaemonSet for example), you must tolerate the node-role.kubernetes.io/master="":NoSchedule taint

Supporting only etcd3, with 3.0.14 as the minimum version

You can't use etcd2 anymore with kubeadm

Insecure access to the API Server over localhost:8080 is disabled by default

If you have workloads or other programs that depend on being able to access the master insecurely over localhost, you have to update them to use the secure port (defaulting to 6443)

The kube-discovery Deployment isn't used anymore when creating a kubeadm cluster and shouldn't be used anywhere else either due to its insecure nature
The Certificates API has graduated from alpha to beta. This is a backwards-incompatible change since the alpha support is dropped, and therefore kubeadm v1.5 and v1.6 don't work together (for example kubeadm v1.5 can't join a kubeadm v1.6 cluster).

@jbeda as @bgrant0607 noted we should also add the flag changes between v1.5 and v1.6
@lukemarsden The taint k/v is the same as the master label k/v: label: node-role.kubernetes.io/master, value "" (simply nothing: ``)

However, I suggest you link to RBAC documentation that would better explain what users should expect and what actions they need to take.

I think @lukemarsden was about to fix that

Thanks @luxas, @jbeda will take it from here :)


Suggestions on Attacker API

Separation of concerns:

"tick": this is the Attacker receiving a new data point. Given the nature of network, there is no reason that two data points sent in on order from the backend are received in the same order in the client.
Suggest adding time to the value.
To make dealing with multivariate timeseries, an ID is also convenient.
So an API would look like receive(pt: Point) where Point is {ID, time, value}.

"predict": this is the prediction API and could be called independent of data being received by the Attacker. Say something doesn't tick anymore, we may still want to know an updated prediction. This is the typical case of liquid vs illiquid timeseries where prediction without tick will be updated by the other one ticking.
Also, would need a time, and not an index for horizon.

The "fit" shouldn't really be part of the API as the client should be responsible if/when to fit their model.

Good suggestion. Accepted.

acceptede


Errors using asserted reference in getter

On the JVM:
shared class C() {
    value si = "si" of Anything;
    assert (is String | Integer si);

    shared String | Integer x => si; // error
    // Cannot find symbol
    // symbol:   variable si
}
shared void run() {
    print(C().x);
}

On JS:
simple-1.0.0.js:30
return $3;
       ^
ReferenceError: $3 is not defined
    at m$1.atr$.mod [as x] (/Users/jvasileff/Dropbox/Repos/jv/simple/modules/simple/1.0.0/simple-1.0.0.js:30:8)
    at run (/Users/jvasileff/Dropbox/Repos/jv/simple/modules/simple/1.0.0/simple-1.0.0.js:39:14)
    at [eval]:1:282
    at Object.exports.runInThisContext (vm.js:74:17)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:460:26)
    at evalScript (node.js:431:25)
    at startup (node.js:90:7)
    at node.js:814:3
ceylon run-js: Node process exited with non-zero exit code: 1

this is fixed in JS by #6029

Seems fixed. Closing.

Still fails as of 7ecc13de for me.

Tsk, @chochos , you shouldn't lie! ;)

Aaaah wait, I thought this was only for JS. Mea culpa :)

@jvasileff fails on which backend?

which backend?

JVM

tsk, @quintesse, you shouldn’t be so quick to assume! :P


net/http: clarify whether Requests can be reused in HTTP/2

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

$ go version
1.16.2

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="on"
GOARCH="amd64"
GOBIN="/Users/radeksimko/gopath/bin"
GOCACHE="/Users/radeksimko/Library/Caches/go-build"
GOENV="/Users/radeksimko/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/radeksimko/gopath/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/radeksimko/gopath"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/radeksimko/.goenv/versions/1.16.2"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/radeksimko/.goenv/versions/1.16.2/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.2"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/fb/k_9ystyd08j934qcxmyv0wjc0000gp/T/go-build138280913=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
package main

import (
	"net/http"
	"testing"
)

func TestRepro(t *testing.T) {
	req, err := http.NewRequest("GET", "https://http2.golang.org/", nil)
	if err != nil {
		t.Fatal(err)
	}

	client := http.DefaultClient
	headResp, err := client.Do(req)
	if err == nil {
		if headResp.StatusCode == 200 {
			req.Header.Set("Range", "bytes=0-")
		}
	}
}

go test -race ./...

What did you expect to see?
Either implementation that makes it safe to reuse the http.Request in the context outlined in the above snippet where a HEAD request is sent to check whether server accepts-range and then GET is sent with relevant range header to effectively resume previously interrupted download.
Or docs clarifying that http.Request is not safe to reuse in this context.
The current wording doesn't make it clear unfortunately:
https://github.com/golang/go/blob/135c9f45ecaec719bcc297ec9f9f19042bc9adf6/src/net/http/client.go#L130-L132
which was added as part of https://github.com/golang/go/issues/19653
Even if the body is closed in the above example, the race condition doesn't go away because it seems to have a different root cause. In HTTP/2 a goroutine stays around and accesses request headers as can be seen below from the stack trace.
https://github.com/golang/go/blob/135c9f45ecaec719bcc297ec9f9f19042bc9adf6/src/net/http/h2_bundle.go#L9189-L9193
What did you see instead?
==================
WARNING: DATA RACE
Write at 0x00c00009cd80 by goroutine 7:
  runtime.mapassign_faststr()
      /Users/radeksimko/.goenv/versions/1.16.2/src/runtime/map_faststr.go:202 +0x0
  net/textproto.MIMEHeader.Set()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/textproto/header.go:22 +0x2a4
  net/http.Header.Set()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/http/header.go:37 +0x1ef
  github.com/radeksimko/test.TestRepro()
      /Users/radeksimko/gopath/src/github.com/radeksimko/test/main_test.go:19 +0x1ca
  testing.tRunner()
      /Users/radeksimko/.goenv/versions/1.16.2/src/testing/testing.go:1194 +0x202

Previous read at 0x00c00009cd80 by goroutine 14:
  runtime.mapaccess1_faststr()
      /Users/radeksimko/.goenv/versions/1.16.2/src/runtime/map_faststr.go:12 +0x0
  net/http.http2isConnectionCloseRequest()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/http/h2_bundle.go:9175 +0x1d0
  net/http.(*http2clientConnReadLoop).endStreamError()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/http/h2_bundle.go:8805 +0x68
  net/http.(*http2clientConnReadLoop).endStream()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/http/h2_bundle.go:8796 +0x20c
  net/http.(*http2clientConnReadLoop).processData()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/http/h2_bundle.go:8788 +0x1e6
  net/http.(*http2clientConnReadLoop).run()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/http/h2_bundle.go:8360 +0x4ad
  net/http.(*http2ClientConn).readLoop()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/http/h2_bundle.go:8244 +0xbd

Goroutine 7 (running) created at:
  testing.(*T).Run()
      /Users/radeksimko/.goenv/versions/1.16.2/src/testing/testing.go:1239 +0x5d7
  testing.runTests.func1()
      /Users/radeksimko/.goenv/versions/1.16.2/src/testing/testing.go:1512 +0xa6
  testing.tRunner()
      /Users/radeksimko/.goenv/versions/1.16.2/src/testing/testing.go:1194 +0x202
  testing.runTests()
      /Users/radeksimko/.goenv/versions/1.16.2/src/testing/testing.go:1510 +0x612
  testing.(*M).Run()
      /Users/radeksimko/.goenv/versions/1.16.2/src/testing/testing.go:1418 +0x3b3
  main.main()
      _testmain.go:43 +0x236

Goroutine 14 (running) created at:
  net/http.(*http2Transport).newClientConn()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/http/h2_bundle.go:7208 +0xcc6
  net/http.(*http2Transport).NewClientConn()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/http/h2_bundle.go:7140 +0x79
  net/http.(*http2addConnCall).run()
      /Users/radeksimko/.goenv/versions/1.16.2/src/net/http/h2_bundle.go:867 +0x55
==================
--- FAIL: TestRepro (0.48s)
    testing.go:1093: race detected during execution of test
FAIL
FAIL	github.com/radeksimko/test	1.171s
FAIL

cc @bradfitz @tombergan @empijei

cc @fraenkel

Requests are not safe to be reused for http or http/2.

@fraenkel that was eventually my conclusion from reading up on the history in the linked issue and debugging this race condition.
Should I send a patch to reflect this conlusion here? https://github.com/golang/go/blob/135c9f45ecaec719bcc297ec9f9f19042bc9adf6/src/net/http/client.go#L130-L132
to say that it's just never safe?

The rules for HTTP/2 are the same as the rules for HTTP/1, as documented previously in https://github.com/golang/go/commit/3039bff9d07ce05dc9af8c155c6929ae5e53a231 for #19653.
Your test code is wrong; it's the response is still active, as you didn't close the body:
	client := http.DefaultClient
	headResp, err := client.Do(req)
	if err == nil {
		if headResp.StatusCode == 200 {
			req.Header.Set("Range", "bytes=0-")
		}
	}

I still see races after adding a headResp.Body.Close() in there, though less consistently

@bradfitz I am not so sure about previous statements given both contexts that are added or trailing headers that could be added. These are two items I noticed at a glance.,  One would have to look at all the changes that are made to a request when it is not copied.

@bradfitz You are right that the race is no longer reproducible with the same HTTP/2 host & method.
However I did manage to reproduce it even with body closure:
package main

import (
	"net/http"
	"testing"
)

func TestRepro(t *testing.T) {
	req, err := http.NewRequest("HEAD", "https://releases.hashicorp.com/", nil)
	if err != nil {
		t.Fatal(err)
	}

	client := http.DefaultClient
	headResp, err := client.Do(req)
	headResp.Body.Close() // <--- closing body here
	if err == nil {
		if headResp.StatusCode == 200 {
			req.Header.Set("Range", "bytes=0-")
		}
	}
}

I do not know what difference between the two servers/requests is triggering it, but it is getting triggered reliably.


Eloquent: Where like - backslashes doesn't escaped in value

Laravel Version: 5.7.26
PHP Version: 7.2
Database Driver & Version: 10.2.21-MariaDB

Description:
When i save a FQDN Classname in my database, and will getting call them through a LIKE operator, laravel can't find that match, because the backslashes aren't escaped.
Steps To Reproduce:
`

\App\Models\UserFeed::where('model_class', 'LIKE',  App\Models\Types\Gift::class)->where('user_id', 14805)->get();
=> Illuminate\Database\Eloquent\Collection {#4135
all: [],
}

\App\Models\UserFeed::where('model_class', 'LIKE', addslashes( App\Models\Types\Gift::class) )->where('user_id', 14805)->get();
=> Illuminate\Database\Eloquent\Collection {#4115
all: [
App\Models\UserFeed {#4123
id: 1,
user_id: 14805,
model_class: "App\Models\Types\Gift",
model_id: 187402,
created_at: "2019-02-14 08:58:21",
updated_at: "2019-02-14 08:58:21",
},
],
}
`

You shouldn't save FQNS in your DB because your code can change and you'd have to update them accordingly. Granted, we do this now for polymorphic relationships but we provide a way to prevent this with morph maps: https://laravel.com/docs/5.7/eloquent-relationships#custom-polymorphic-types
Can you first please try one of the following support channels? If you can actually identify this as a bug, feel free to report back.

Laracasts Forums
Laravel.io Forums
Discord
Larachat
IRC
StackOverflow


Updating with 2.10 release

Updating for the 2.10 ACM release.

Good catch! Just updated the README.


fix(addon-storysource): use global CLIENT_API instead of injecting .addDecorator

Add window.__STORYBOOK_CLIENT_API__ at the top of the file instead of adding .addDecorator with estraverse.
Originally this PR is intended to fix issue #4039. But I decided to use global __STORYBOOK_CLIENT_API__ and it fixes also other problems with renaming storiesOf function.

@igor-dv could you take a look at this?

Sure. Will check this today.
Also, there is this #4012 PR that adds some functionality to storysource.

@Everettss, sadly but __STORYBOOK_CLIENT_API__, is not a good solution, because it adds decorators to the globalDecorators list.
That means every new story that is declared, adds its storysource to the list of globalDecorators, then this list is copied to the list of the story's decorators:

The first story that is imported, will have x decorators, then the story number 100, will have x + 100 decorators, and it's definitely not a good thing.
I have tested this with the @storybook/html preview from this PR, and here is the visualization of the problem:

@igor-dv how do we proceed with this?

@ndelangen give me 1 or 2 weeks (I'm on vacation now) an I will search for some replacement or simply admit that this is only worth burying.

@Everettss
I'm absolutely not trying to pressure you, please don't feel as if you're required to do anything. You're not.
I'll leave it open, the bot will come along in a few weeks and remind us, and then close it automatically.
If you need help, please do reach out to us 🙇

debatable whether it's a bug or feature, doesn't really matter IMHO

@Everettss Let's have a chat on slack or discord about this, I have some ideas!

Storysource should add it's data about stories via addParameters, I think this will pretty much solve all problems.

I am going to close this. We will adjust storysource anyway.


"_searchmode=raw" throws an index out of range error when combined with "_search_COLUMN"

Hi Simon!
Maybe it's just me, but when using _searchmode=raw (trying to enable wildcard-searching) in combination with the "_search_COLUMN"-table argument, I get a list index out of range error. When combining with the simpler "_search"-argument everything works, including wildcard-seaches.. Here's the traceback:
Traceback (most recent call last):
  File "/Users/cjk/.local/share/virtualenvs/minutes-jMDZ8Ssk/lib/python3.7/site-packages/datasette/utils/asgi.py", line 122, in route_path
    return await view(new_scope, receive, send)
  File "/Users/cjk/.local/share/virtualenvs/minutes-jMDZ8Ssk/lib/python3.7/site-packages/datasette/utils/asgi.py", line 196, in view
    request, **scope["url_route"]["kwargs"]
  File "/Users/cjk/.local/share/virtualenvs/minutes-jMDZ8Ssk/lib/python3.7/site-packages/datasette/views/base.py", line 204, in get
    request, database, hash, correct_hash_provided, **kwargs
  File "/Users/cjk/.local/share/virtualenvs/minutes-jMDZ8Ssk/lib/python3.7/site-packages/datasette/views/base.py", line 342, in view_get
    request, database, hash, **kwargs
  File "/Users/cjk/.local/share/virtualenvs/minutes-jMDZ8Ssk/lib/python3.7/site-packages/datasette/views/table.py", line 393, in data
    search_col = key.split("_search_", 1)[1]
IndexError: list index out of range

Thanks for the bug report!

A fix for this should be available if you upgrade to 0.52.5

https://byraadsarkivet.aarhus.dk/db/cases?_searchmode=raw&_search=sundhedsfrem* is an absolutely beautiful example of a themed Datasette! Very excited to show this to people.

Hi Simon
Thank you for the quick fix! And glad you like our use of Datasette (launches 1. january 2021). It's a site that currently (more to come) makes all minutes and their annexes from Aarhus City Council and the major committees (1997-2019) available to the public. So we're putting Datasette to good use :)


Fix Get Event Endpoint

Change column name from eventId to event_id

/cib fix-get-event

Branch 64-fix-get-event created!


Collection query with version leads to Error: Unknown property "version" for BggCollectionItemDto

const bgg = BggClient.Create();
const colResult = await bgg.collection.query({
    username: config.bgg.username,
    version: 1, // <--
    own: 1,
});

results in t [Error]: Unknown property "version" for BggCollectionItemDto at ....
For context, I used my collection (same username as my GitHub username) and the offending collection item was {"name":"6 nimmt!","yearpublished":2007, .... "objectid":432,", ....}
Let me know if there's any more info I can provide 😊

Fixed with 1.6.0
Let me know


Management Of Geofencing

Hi all,
we are trying to use tile38 as we find it a great solution, but we have some doubts:
We would like to create geofences and "save" them (id,name,whatever possible) and then retrieve them from a different source (client-server...).
We see that geofences are created as a "strict" connection caller-tile38 or can be "detached" using Hooks.
As far as we understood, we can achieve what we want by configuring each geofence as a Hook (to a mq or http) giving the geofence identifier to that hook.
If we than want to edit/delete the geofence, we remove/reconfigure the hook.
A sort of:
SETHOOK geofence_entrance amqpurl NEARBY...
SETHOOK geofence_hallway amqpurl2 NEARBY...

then we can retrieve all by
HOOKS geofence_*
am I right or is there a better way?

Hi Nicola,
Yes, you are right. What you described is the standard way of managing hooks.
The hook commands consist of:

SETHOOK for adding or overwriting.
HOOKS for retrieving.
DELHOOK for deleting a single hook.
PDELHOOK for deleting multiple hooks at once.


Fixed border designable

We need to delete and create a new layer when the frame isn't the same as in the xib, or when we rotate. Otherwise, the border line won't be drawn with the right frame.
I also used this PR to remove the gradientSubview when creating a new one to avoid a stack of useless GradientView.

Tom, do you have any idea how can we draw the border properly when maskType is Star or Triangle?

Oh, that's a good question. Should we really handle maskType borders using BorderDesignable?  A simple way (I imagine) would be to add a property maskBorderColor to MaskDesignable.
We should probably open an issue to discuss this. We will probably think about lot of solution, but not a lot will be a nice solution. What do you think?

Well, if there isn't a nice solution yet, shall we mention this the README or docs? Someone may try to draw rating stars with IBAnimatable, and finally disappointed.

@lexrus I just push a fixed for the mask border (#101). What do you think about it?
The bad point is that we have to call configBorder after a configMask if the view implements the both protocols. I tried with Triangle and Star, it works perfectly.

Awesome.
Can we use KVO in IB?

@tbaranes :+1: Like it, Well done. calling configBorder after a configMask is OK for me, when I worked on the library, I tried to force the subclass to call some methods like something required override, but must call instead of override.  But I didn't find a solution, I think there is a guideline to subclasses to conform to those protocols. they need to set to default value and call configXXXX() in correct timing.
@lexrus I am not sure what do you want from KVO here? let configBorder automatically call after configMask

Happy that you like it guys. If it's ok for  you, we can already merge this and think further how to improve the global system later if necessary :tada:

Well done. Getting very closer to 1.2


Issue in NavBar !!!

-> The Logo Name (Worldwise) is appearing twice and also Home button is displaying at top right corner.
Assign this to me with !

@AnujShrivastava01 it isnt correct to raise an issue on someone elses PR , you could have just commented here and i would have seen it

hey @ANSHIKA-26 ,could  you please assign this to me ?

@AnujShrivastava01 raised it first , then someone else already made a PR , so i cant assign it to you now @Saurabhchaudhary9799


fix: update scripts from example.cii

Description:
Add Linting changes from https://github.com/devlinjunker/example.cii
Related:
#150
https://github.com/devlinjunker/example.cii/pull/10
Visual:
N/A
TODO:

[x] Updated README documents
[x] Complete PR Body

!merge


Add scale test

Issue: https://github.com/open-cluster-management/backlog/issues/10541
Signed-off-by: Jakob Gray<EMAIL_ADDRESS>

/hold

/unhold


crontab

I use freebsd 11.
I'm trying to put the script in cron:
#!/bin/bash
command='dropbox-api sync dropbox:/teste/ /teste/ -Dv'
NEXT_WAIT_TIME=0
EXIT_CODE=0
until $command || [ $NEXT_WAIT_TIME -eq 4 ]; do
EXIT_CODE=$?
sleep $NEXT_WAIT_TIME
let NEXT_WAIT_TIME=NEXT_WAIT_TIME+1
done
exit $EXIT_CODE
But I get the error:
env: perl: No such file or directory
1
env: perl: No such file or directory
2
env: perl: No such file or directory
3
env: perl: No such file or directory
4
env: perl: No such file or directory
Can someone help me?

The perl command was not found, please go through PATH.
Thanks

Right.
The perl module was being called by: /usr/bin/env perl
But I changed to: / usr/local/ bin/perl
Now it's working
This was only needed in cron.
Running on the terminal works without issue.


[Refactor]Unify representation of directory recursive traverse property

Signed-off-by: zombee0<EMAIL_ADDRESS>What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[x] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[x] This pr will affect users' behaviors
[x] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 2.5
[ ] 2.4
[ ] 2.3
[ ] 2.2

[FE PR Coverage Check]
:disappointed: fail : 3 / 4 (75.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/hudi/HudiConnectorInternalMgr.java
3
4
75.00%
[64]

[FE PR Coverage Check]
:disappointed: fail : 6 / 8 (75.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/hive/HiveConnectorInternalMgr.java
3
4
75.00%
[62]

:large_blue_circle:
com/starrocks/connector/hudi/HudiConnectorInternalMgr.java
3
4
75.00%
[64]

run starrocks_admit_test


counts/matches fixes

fixes #55

Send explicit match projections (need skill column)
Load all matches on match page
Layout fix for counts tab
Allow sorting on category column

Reviewers:
@mike-robertson
@albertcui
@nicholashh

Adding @blukai to review for lang import change.


Possibility of obtaining higher-order tangents in a single forward AD call (jax.jvp) ?

Hi,
I understand that a single forward AD in the direction v on the loss f gives the gradient vector dot product g⋅v; if we apply it again to g⋅v, we get Hv⋅v。There are two questions now:

Is it possible to do this using only the jax.jvp API? If not possible then what is the best practice to implement this?
Is it possible to do this by only calling jax.jvp once? This is (correct me if I'm wrong) because in dual number system, it is possible to extend the tangents to higher order traces

Many thanks!

Perhaps I should clarify a little more, my ultimate goal is to obtain the hessian vector vector dot product Hv⋅v in a single forward mode with one function evaluation (NOT hessian vector product Hv which needs access to the gradient g with many function evaluations in forward mode). This should be possible to obtain in theory, but I am unsure if this is implemented in Jax.

Found the solution here: https://github.com/google/jax/issues/924
I thought it would be good if this is included in the autodiff documentation :)


inputValueDeprecation in codegen config doesn't work

Issue workflow progress
https://github.com/dotansimha/graphql-code-generator/issues/9659#issuecomment-2214736878

Progress of the issue based on the Contributor Workflow

[ ] 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox

Make sure to fork this template and run pnpm run generate in the terminal.
Please make sure the Codegen and plugins version under package.json matches yours.

[ ] 2. A failing test has been provided
[ ] 3. A local solution has been provided
[ ] 4. A pull request is pending review

Describe the bug
There is a bug in codegen to begin with.
The bug is that it removes deprecated fields.
https://github.com/dotansimha/graphql-code-generator/issues/9659
There is a way to set up inputValueDeprecation as a workaround for that bug
Even that workaround doesn't work🥲
However, it works if you use codegen.ts without using graphql-config.

To Reproduce
Steps to reproduce the behavior:

Expected behavior

Environment:

OS:
GraphQL Config Version:
NodeJS:

Additional context

running into the same issue


Utils in common domain use external library

Utils, in common/domain, should not depend on external libraries (ObjectMapper / jackson).
They can be moved in common/ infra/utils

@pascalgrimaud , as discussed, for me, it is useless to implement hexa architecture in utility class. The coupling is too strong with the external libs and create min 3 files for each util only to respect the architecture is overkill.

then, you're right, let's close this so


PATCH requests?

The Overview and Behaviour docs both refer to PATCH requests on the staged map endpoint. However, the RAML indicates POST is used.
Also need to check the wording about when activation mode is returned to null after an activation is accurate.

I think there's a fair bit of wordsmithing to do.
The docs talk about the "two states of the Map, staged and active. The Staged Map is modifiable by the client through use of the HTTP PATCH method." There are also mention of "staged", in schemas and example files.
I think that must be left over from a previous iteration of the Audio Channel Mapping API that worked more like IS-05?

{activation-id} should be spelled {activationId} everywhere for consistency.

Why is an activation id (which "MUST be unique within an API instance and for all time") have a regex pattern that prevents the use of both a TAI timestamp <seconds>:<nanoseconds> and a UUID, both of which would otherwise fit the bill admirably and consistently with other NMOS APIs?

Why are both action and activation optional in the map-activations-request.json schema? What does it mean to POST an activation without one or other of those things??

If two scheduled activation requests are POSTed with the same activation time, is the order in which they are applied undefined?

The activation resource in the active endpoint MUST contain the details of the last activation to have taken place.

How about in the /map/active/{outputId} endpoint? Do all Outputs show the same most-recent activation information, even if it didn't affect them?

For activations the mode parameter MUST return to null once the activation transaction with the client is completed (i.e the response to the PATCH has been sent by the server).

This last sentence of Behaviour - Activation Responses seems to be left-over cruft. The correct statement is found a few paragraphs above that...

Pending scheduled activations, along with their ID,  are listed activations resource until they activate. Once activated they MUST be removed form the resource. (my emphasis)

The property descriptions in activation-response-schema.json therefore also need fixing.

The 202 response code is missing from the /map/activations POST specification in the RAML!
This is getting ridiculous.

It would have been consistent with many other APIs if the responses to POST /map/activations requests included a Location header, like:
Location: /x-nmos/channelmapping/v1.0/map/activations/{activationId}

The RAML has a 400 response listed for DELETE on /map/activations/{activationId} with an example that suggests there could be a schema error in the request, which is unlikely since DELETE requests have no body...


Towards agent parity

[x] Show Job link
[x] Show build status icon
[x] Add agent installation docs

I’m really excited for this!!!

Oh awesome! I am also very excited by this...

SO CLOSE!

Excitement! ⚡

🚀


Rebaseline release to 1fc250e

See gradle/gradle-private#3600.

@bot-gradle test and merge

@bot-gradle test and merge


[opencv4[cuda]] build failure

Operating system
ubuntu22.04
Compiler
gnu
Steps to reproduce the behavior
vcpkg install "opencv4[cuda]:x64-linux" --recurse

Failure logs

config-x64-linux-dbg-CMakeCache.txt.log
config-x64-linux-out.log
config-x64-linux-rel-CMakeCache.txt.log
Additional context
No response

In fact, I think the problem is this, but I don't know how to solve it through VCPKG

Will verify as soon as possible.

x64-linux
Ubuntu 22.04
Vcpkg version:root@monica003:/home/monica/vcpkg# ./vcpkg version
vcpkg package management program version 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895

Sorry I didn't repro your issue.
root@monica003:/home/monica/vcpkg# ./vcpkg install "opencv4[cuda]:x64-linux" --recurse --binarysource=clear
Computing installation plan...
The following packages will be built and installed:
    opencv4[contrib,core,cuda,default-features,dnn,gtk,jpeg,png,quirc,tiff,webp]:x64-linux -> 4.7.0#6

...

-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Performing post-build validation
Stored binaries in 0 destinations.
Elapsed time to handle opencv4:x64-linux: 2.8 h
Total install time: 2.8 h
If you do not install the meta-port *opencv*, the package opencv4 is compatible with CMake
if you set the OpenCV_DIR *before* the find_package call

    set(OpenCV_DIR "${VCPKG_INSTALLED_DIR}/x64-linux/share/opencv4")
    find_package(OpenCV REQUIRED)

Are you using the latest version of vcpkg?
refer to:
https://github.com/microsoft/vcpkg/issues/7913#issuecomment-525040221
https://github.com/opencv/opencv/issues/16460

I used the latest vcpkg
vcpkg package management program version 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895
in my ubuntu, i have
Cuda compilation tools, release 12.1, V12.1.105
cuda-12.1 cuda-12.0
i'm  using cuda-12.1 in my .zshrc.
but my nvidia-smi shows my cuda version is 12.0 which i install it through ubuntu driver

Multiple cuda versions can be installed, I also have 12.0 and 12.1.
Please try the following command to check if your .zshrc is valid:
root@monica003:/home/monica# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:16:06_PDT_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0

emmmmm......
nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:16:06_PDT_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0

@Data-Adventure
For the special processing we do with cuda, please make sure that you have checked the installation of the library during the manual installation of cuda.
//"cufft" library
CUDA_cufft_LIBRARY:FILEPATH=CUDA_cufft_LIBRARY-NOTFOUND

//"cupti" library
CUDA_cupti_LIBRARY:FILEPATH=CUDA_cupti_LIBRARY-NOTFOUND

//"curand" library
CUDA_curand_LIBRARY:FILEPATH=CUDA_curand_LIBRARY-NOTFOUND

//"cusolver" library
CUDA_cusolver_LIBRARY:FILEPATH=CUDA_cusolver_LIBRARY-NOTFOUND
...
...

thank you all, i reinstall cuda, it's work !


Config camera facing option

Whenever my app open the camera UI, it's always using the front camera. How do I force to use the back camera? Couldn't find the config inside ImageCaptureConfig.
Thank you in advance for this library.

Thank you for suggesting
It is not functioning as intended and has opened an issue on the Google issue tracker:  https://issuetracker.google.com/issues/36924444

In some image picker library, it working by manually changing the camera facing inside camera app so the app will use the last camera. I wonder if this also possible because the camera is always reset back to the front camera, or is it only in my phone (Asus Zenfone 10)?

limited conversation


Feature Request: Better ZodObject generics

In TS projects I find I am frequently defining schemas based on an existing type using this process:
const userSchema: ZodSchema<User> = z.object({
    name: z.string(),
    email: z.string().email()
})

However the generic ZodSchema strips all the ZodObject properties like partial and shape from the type so when writing functions that take a ZodObject we need to typecast from schema to object.
It would be very helpful to have a ZodSchemaObject generic that would map to type with all the properties of ZodObject

Is this what you are looking for?
const userSchema = z.object( {
    name: z.string(),
    email: z.string().email()
} ) satisfies z.ZodSchema<User>

If you found my answer satisfactory, please consider supporting me. Even a small amount is greatly appreciated. Thanks friend! 🙏
https://github.com/sponsors/JacobWeisenburger

I don't think so because the intent would be to do something like this:
function foo<T extends object>(schema: ZodObject<T>){
   return schema.shape
}

Is this what you are looking for?
function foo<Schema extends z.AnyZodObject> ( schema: Schema ) {
    return schema.shape
}


Support for Azure template spec as machine profile within the citrix_machine_catalog resource

Specifically, this adds two new attributes to the Azure-related machine_profile block, allowing the use of a template spec name and version as an alternative to the virtual machine name.
Once again, the associated code is not fully tested or documented. While it serves my intended concept or use case, there may be unknown issues, and its applicability in all scenarios is not guaranteed. However, I have made efforts to align with the established coding practices and overall theme as outlined, wherever possible.

Closing this PR. Template spec is now supported for machine profile for Azure MCS Machine Catalog with release v0.6.0


Check if variable is not defined?

I am trying to check if variable is not defined, but can't seem to find a way that works
Here are some examples but none of them works.
                {% for i in [4,5,1,2,9] %}
                        {% if min is not defined or min < i %}
                                {% set min = i %}
                        {% endif %}
                {% endfor %}
                Min: {{ min }}

                {% for i in [4,5,1,2,9] %}
                        {% if not min is defined or min < i %}
                                {% set min = i %}
                        {% endif %}
                {% endfor %}
                Min: {{ min }}

                {% for i in [4,5,1,2,9] %}
                        {% if not(min is defined) or min < i %}
                                {% set min = i %}
                        {% endif %}
                {% endfor %}
                Min: {{ min }}

All your versions of the is defined check work. The actual problem is a scoping issue. Twig will not keep variables defined inside a loop (much like C et al).
Instead you can do:
{% set min = constant('INF') %}
{% for i in [4,5,1,2,9] %}
    {% if min > i %}
        {% set min = i %}
    {% endif %}
{% endfor %}
Min: {{ min }}

ok, I thought all variabels defined in the template where global! My bad.


Add the naming of Breakpoints to the Debugger

Is your feature request related to a problem? Please describe.
I have a list of breakpoints that are important to me for certain bits of the program i am working on. But besides address, no tangible way to tell them apart. Which to activate, which to disable?
Describe the solution you'd like
Where we now see the "Image" column, i would like a custom name. Default name could be "ImageName-0x004023aa", but the "set breakpoint" window should probably allow you to set it immediately when creating. Persistence between sessions is also key to this request.
Describe alternatives you've considered
There are comments, but only for already "active" breakpoints in the lower part of the breakpoint window. I am not even sure if those comments persist between sessions.
Additional context
It would really help keeping my thoughts organized, instead of having to find out which breakpoint is which by trial and error. or by visiting all the addresses until i recognize one (often switching between breakpoint and decompiler to recognize the code, making it worse)

Closed by https://github.com/NationalSecurityAgency/ghidra/commit/b4d038fe3066a18fb453fd4179e7b63ce33fc310


Paste as plain text - Repeating shortcut

Microsoft PowerToys version
0.68.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
Paste As Plain Text
Steps to reproduce

Preform Paste as plain text shortcut (WIN + Shift + V)
Keep holding down WIN and Shift
Click V again

✔ Expected Behavior
To paste the contents of the clipboard a second time
❌ Actual Behavior
The clipboard is pasted once and a letter v is typed
Other Software
No response

I thing this could be fixxed, by looking at which modifcations keys are down before and repressing them after ctrl + v is send.

You're right, this needs some sort of saving the previous state of keys and then repressing them. Only issue here will be if the user unpresses a key in between fast enough we could be left with a "sticky key" situation 🤔
Still, I think that would be a fit considering the window for this should be some micro or milliseconds.

When the shortcut is ctrl+shift+c should the shift only be released or would such an optimisation not be useful?

Just a suggestion, wouldn't be better copy plaint text, so windows clipboard or other just paste it?, because when you paste from the clipboard doesn't matter it will paste with rich text.

Fixed in 0.69 which was released in the start of April 2023.


Client Plugin Support

This PR adds plugin support to the client and lays the ground work for plugins to be included in the server. There is not much of a "plugin API" yet, really there's only two convenience features supported by the ClientPlugin class:

Dedicated persistent configuration storage
Easy GTK signal connections with automatic removal when plugins are disabled

Client plugins are currently loaded from two locations:

data/client/king_phisher/plugins For plugins distributed by us as part of the project
~/.config/king-phisher/plugins For user-specific plugins

Plugins have a couple of states:

Unloaded The plugin exists on disk but has not been imported by Python into the process
Loaded The plugin has been imported by Python so the metadata can be accessed from the Plugin class
Enabled The plugin class has been initialized and is doing things

Right now the client "loads" all plugins on start up to allow the metadata to be accessed.
Testing:

[ ] Review the basic API in king_phisher/plugins.py makes sense (it'll be used be the server too eventually)
[ ] Build and read the docs
[ ] Test the plugin manager in the GUI Tools > Plugin Manager
[ ] Enabling plugins should work
[ ] Disabling plugins should work
[ ] Enabled plugins should persist across application runs
[ ] Plugins meta data should be displayed in the manager
[ ] The --no-plugins option disables all plugins on start up (to avoid any potential issues)

Here is a Hello World plugin suitable for testing. Once this is landed it will be included in the docs, pending any API changes that this PR review brings up.
import king_phisher.client.plugins as plugins
import king_phisher.client.gui_utilities as gui_utilities

class Plugin(plugins.ClientPlugin):
	authors = ['Spencer McIntyre']
	title = 'Hello World!'
	description = 'A test plugin.'
	homepage = 'https://github.com/securestate/king-phisher'
	def initialize(self):
		print('Hello World!')
		self.signal_connect('exit', self.signal_exit)

	def finalize(self):
		print('Good Bye World!')

	def signal_exit(self, app):
		gui_utilities.show_dialog_info('Exiting!', app.get_active_window())

This is turning into a beast of a PR. Support for defining options is now in as well.
Option types include:

String
Integer
Boolean
Enum (choice of strings)

The next commit (probably coming this weekend) will add documentation and probably additional option types building on those fundamental ones.
Additional option types I have in mind include:

IntegerRange
Port
Password
FilePath

Plugins which utilize this functionality are now available in the new king-phisher-plugins repository. They'll be useful for testing.

@wolfthefallen comments addressed, widgets named correctly.

@zeroSteiner Thank you, this is an awesome addition to King Phisher and makes it very easy to add optional features to the project.


added some important functions

relate to  issue ##296
Present Value (PV)
Net Present Value (NPV)
Internal Rate of Return (IRR)
Return on Assets (ROA)
Return on Equity (ROE)
Debt Ratio
Equity Ratio
Times Interest Earned (TIE) Ratio
Working Capital Ratio
Dividend Discount Model (DDM)

@shivvamm you did use functions but they are not in functions .py and ENDPOINTS are also not updated, you can check the contributing guidelines before making a PR. Thanks.

Okay I'll check it and update It

Hey @shivvamm will you do it or should I close this PR and the issue?

Yes I will don't worry

Ok

Please check the CONTRIBUTIONS.md and make a fresh PR

Sorry @shivvamm it took 1 month for you to complete this endpoint. I'm closing this PR. For any further queries you can reach me out from my socials.


Add descriptions to tasks

Problem description
Suggestion is two-fold: 1) Adding a "description" field for tasks, and 2) echoing those descriptions on pixi task list.
Quite a lot of use-cases, there's for future others: if you have colleagues that need to use your project, it might be useful to have those descriptions. For current self: for oneself to remember what each task does without leaving the command line). And of course for future self: when returning to those commands at a later stage, it would be a nice reminder what they are for - just as annotating code is.

I like the idea, design wise I would also print it in pixi run where pixi already prints the command itself.

Yeah, that would be great too!

Closed as implemented in #1479


Random chess games experiment

Perform a fixed number of random chess games, for example 100. Random chess game is a game where both players take random move out of all legal moves available in each position. Get the following calculations/stats:

How often white/back wins?
How often is a draw? Two kings left vs stalemate.
Average game for each category,

Perform the experiment multiple times and make sure the results are consistent.

Implemented with https://github.com/oggy22/BoardGames/commit/a5279b4598b0037412a6ecf53be0dbfe42635bb0


Make dependencies check lowercase module names

This should make the script more robust against spurious changes like the failure here: https://github.com/microsoft/onefuzz/actions/runs/4802499456/jobs/8546032320?pr=3056

Codecov Report

Merging #3066 (47dd3df) into main (c24ea52) will increase coverage by 0.65%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #3066      +/-   ##
==========================================
+ Coverage   31.39%   32.04%   +0.65%
==========================================
  Files         306      275      -31
  Lines       36659    31030    -5629
==========================================
- Hits        11510     9945    -1565
+ Misses      25149    21085    -4064

see 53 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


RockyOS 8 Support

Hello
I am requesting that Rocky OS 8 support be added!

I got this working by adding the following
dnf install epel-release yum -y install python39 python39-devel git gcc-c++ policycoreutils-python-utils
and modifying the deploy script to not install python3 as that reverts python to default 3.6 version.


Installation Should Specify Python Version

Added a python=2.7 line in https://github.com/HDI-Project/ATM/pull/32 but not sure how you want to style the information.
Python3 doesn't work because of the prints

I think that's good enough -- thanks for the request. Closed with #32.


Fix strange/inaccurate verbiage

@msmbaldwin Status?

#sign-off

@yihezkel: I'm sorry - only the author of this article, @msmbaldwin, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

Hi, @yihezkel. Thank you for pointing out that the status messages were not entirely clear.  However, your proposed revisions are not quite accurate. "Merge pending certificate", for instance, implies that the merge is in progress, when it is in fact pending.
I have therefore updated these two status messages to:

CertificatePendingMerge: "The merger of the certificate is pending"
CertificatePendingUpdate : "The update of the certificate is pending"

Thank you! #please-close


Microsoft Teams no longer supports the VTT format with speaker names

The only transcripts that have speakers are the Microsoft Word ones. Though they don't have timestamps in except when the speaker changes, which will be a pain with NVivo, since coding part of a chunk is not ideal.
Example (edited down from a public book launch):
Teams Example Transcript.docx

Fixed in bcdfa88 to support docx files.
Still todo:

Fix timeshift not working
Update main page instructions to mention docx files
Move concatenation of entries to the VTT only processing, since docx files are already concatenated.

Fixed in 42755c4

Completed in 42755c4.


Adds sliding out/in for all slides

closes #4721.

Thanks for the PR! Unfortunately your branch is 163 commits behind staging. You'll need to rebase onto the current version of staging to resolve the conflicts so this can be accepted.

Done! Thought i'd done that when doing git fetch from upstream. Still learning git

I tested this and it mostly works for the first slide only, and then only once.  Subsequent slides do not slide out, they just disappear.  Going back also does not work properly.
I'm going to leave this open if you want another stab at it, but please test more carefully.

Tested new version for all "Get Started with Free Code Camp" Waypoints @SaintPeter

Looks good, waiting for others to QA.

Here is what I see:
When I click next, the first slide moves to the left, then the next slide slides in.
For subsequent slides there is no sliding out motion.
Going backwards, the current slide disappears instantly and the prior slide slides in.
Here is a video:
https://www.youtube.com/watch?v=iZ6rcdyHa5M

Huh. That's weird @SaintPeter. For me it looks just how you'd expect and works perfectly forwards and backwards.

Ok, I blew away my local copy and made sure that I was looking at the right thing and, indeed, it seems to be working properly.  Sorry for the confusion.

Also, thanks @matthiaskern!  Looks great!  :+1:


Supply client cert for API calls to mTLS enabled Solr clusters

If the Solr cluster requires mTLS, then the http.Client used by api.go needs to supply a client cert and optionally the Certificate Authority (CA) cert if not already trusted between client & server. This means adding the following config to the http.Transport object for the http.Client:
				TLSClientConfig: &tls.Config{
					ClientCAs:          caCertPool,
					Certificates:       []tls.Certificate{clientCert},
                                          ...
				},

The server(s) will need to be configured to trust the CA that issued the client cert.

Is this something that we need to setup with the solr-operator pod, or can it be done dynamically?


Fix Site links

Signed-off-by: Guy Khazma<EMAIL_ADDRESS>What changes are proposed in this pull request?
Does this PR introduce any user-facing change?
How was this patch tested?

+1 LGTM


fixed undefined variable

renamed $condition to $conditions so $isConditionalJoin is working

replaced with https://github.com/doctrine/doctrine2/pull/6621


pkl files in reorder.py

Hi, It seems there are several pkl files that contain beam search information in reorder.py
ex) "experiments/wikitext-103-lrsched/wikitext-103-203456-samples/bs_results_height_n_freqknown_{args.freqknown}.pkl"
However, I can't find the code that produce that pkl file.
The only file I can get from beamsearch_rust is a file doesn't match with that form.
(There's no "original single", "candidate single", and "bleu". The File only contains "original" and "results" keys.)

Hi @lhmin0614,
I noticed your comment regarding the .pkl files in reorder.py, specifically about how the files from beamsearch_rust only contain "original" and "results" keys, and are missing fields like "original single," "candidate single," and "bleu".
I was wondering if you ever managed to figure out how to generate those .pkl files with the missing fields or if you found any relevant code or approach to achieve this? Any insights or updates would be really helpful!
Thanks in advance!


Rewritten http package for RFC 0033

This is my rewrite of the net/http package, as described in RFC 33.　　It also includes examples/httpget and examples/httpserver.   The server example is quite limited and just shows that it works.  A much more elaborate example can be found at pdtwonotes/tokara in the httpng branch.

@pdtwonotes this needs to be rebased against master. Do you know how to do that? If not, ping me on IRC and I can help.

@pdtwonotes there's a lot of non-standard formatting. i commented on a decent chunk of it and eventually stopped because my browser was having a hard time. i think enough should be covered to hit pretty much all the points.
i'll take a look later on after that is cleaned up for other issues.
two things i noticed, one of which i commented on.

there's some string concatention and that can be slow, i'd avoid that if it gets called often. there's a pony pattern for that.
you use error in some places. that can be slow if you expect it to get called a lot. if there are areas where it does get called a lot, can you highlight them and we can discuss if a union type would be better?

I'm really excited about replacing the old http server. Thank you for taking this on.

Where do I find these comments?

@pwdnotes sorry i forgot to hit submit for the comments.

apparently only 1 file is in conflict as you can see below.

I think the failing test is actually in error.  The old version of URL.decode would decode "+" as itself, whereas in a URL "+" should decode as space.  I fixed that, and that is what is breaking test test.

Note https://github.com/ponylang/ponyc/issues/1543 for a version bump / release.


Leaking file handles

File handles are being leaked (open() with no close()) at:

https://github.com/DavidBuchanan314/dlinject/blob/master/dlinject.py#L11
https://github.com/DavidBuchanan314/dlinject/blob/master/dlinject.py#L27

I believe python closes the file object once it goes out of scope, which strace output would appear to confirm:
openat(AT_FDCWD, "/proc/42403/maps", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
ioctl(4, TCGETS, 0x7ffefca47ba0)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(4, 0, SEEK_CUR)                   = 0
ioctl(4, TCGETS, 0x7ffefca47ae0)        = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "55bff1afd000-55bff1afe000 r--p 0"..., 8192) = 2985
read(4, "", 8192)                       = 0
close(4)                                = 0

Admittedly, it might be better practice to use a with block.

CPython does but that is not guaranteed by the Python Language Specification and is not supposed to be relied upon.

https://stackoverflow.com/questions/7395542/is-explicitly-closing-files-important

I see, thank you. I believe I've fixed the issue in e5462717e5b2ebf99e46f7cd69a2b31ab68f7ad6


Create a new ReadableStream in FetchEvent.respondWith

The current description pretends that a ReadableStream can be passed from one realm to another, which is wrong. This change changes the description so that it creates a new ReadableStream  and passes Uint8Array objects from the old ReadableStream to the new one.
This is discussed at https://github.com/whatwg/fetch/issues/330. This change fixes #850 as well.

diff: http://services.w3.org/htmldiff?doc1=https%3A%2F%2Fraw.githubusercontent.com%2Fyutakahirano%2FServiceWorker-1%2Frun-bikeshed%2Fspec%2Fservice_worker%2Findex.html&doc2=https%3A%2F%2Fraw.githubusercontent.com%2Fyutakahirano%2FServiceWorker-1%2Ftransfer-stream%2Fspec%2Fservice_worker%2Findex.html#fetch-event-respondwith

I'm sorry that I'm not accustomed to edit this spec. What should I do for service_worker_1/index.bs?

TODO: Define concept-read-chunk-from-reader and concept-cancel-stream-reader in the fetch spec.

Thanks for working on this PR.

What should I do for service_worker_1/index.bs?

Don't worry about V1. Please just work on Nightly. If a backport is needed for V1, I'll cover it.

(I will fix ForeignFetchEvent.respondWith after FetchEvent.respondWith looks good.)

LGTM

Thanks, fixed ForeignFetch.respondWith.

LGTM with the above nits and a rebase: we removed ServiceWorkerContainer.onerror in https://github.com/slightlyoff/ServiceWorker/commit/c240d9d57af1a4c5e2c0ff509e3136cba3fe649a. This patch is missing in this PR. Also, should I wait until your other PR to fetch gets landed? Or just merge this PR first?

Thanks, I addressed comments, rebased and squashed commits.


Proven chart updates 09072023

@Jadessu, can you look into why the sidebar is now partially obscured at the bottom on a mobile device?

This is what I see


Compile on stable Rust

This removes the usage of #[fundamental] and intrinsics::type_name in the
notifications module. The Notifyable trait and Notifier struct were also
removed in favor of just using &Fn(Notification) where necessary. This change
is less ergonomic when crossing crate boundaries where Notifier naturally
implemented Notifyable for multiple notification types before. Instead, now
closures must be written as:
&|n| prev_handler(n.into())

Which is to say that when crossing crate boundaries you need to remap
notification closures and leverage a From implementation.
This crate does not currently compile on the stable channel due to the usage
of panic::catch_unwind in the curl crate for now, but that will get fixed with
the next stable release, this is just paving the way forward!
Closes #58

Nice! This isn't a criticism, but why did you choose to explicitly call .into() rather than making the existing ntfy!(x) macro expand to &|n| x(n.into())?

Ah yeah that'd be possible, I just figured that the layer of a macro indirection probably wasn't worth it.

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

lgtm


Fix Capacitor iOS file load issue

This PR (delete as applicable)
Fixes a bug
Describe the changes below:
This fix addresses a similar issue to #5685, an issue with loading files when a Phaser project is wrapped in a Capacitor native app shell on iOS.
Capacitor on iOS often serves local files with a capacitor:// custom scheme, so just checking file:// leads to strange behaviour, extending the check to add capacitor:// resolves this issue.
We ran into this when using spine animations, whereby when Phaser tried to get a file URL, rather than getting something similar to capacitor://myapp/images/file.png it would get capacitor://myapp/capacitor://myapp/images/file.png. This is because Phaser checks to see if the URL is either blob/file/http/https, in which case it uses the raw URL, but if not prepends a baseURL before the URL assuming its a relative path.  This PR adds capacitor:// to the protocol check to prevent malformed double-url issue.

@photonstorm Any news on this one? Happy to do any re-work thats required, otherwise we'll have to for Phaser to hit our product release deadline

@consolenaut thank you for the PR. I will merge it into the master branch now, but there is unlikely to be another new Phaser release this month, so you'll need to create your own build from master to use.


Slack is only open to @schubergphilis.com

What is the point of having a chat room about Seccubus when only @schubergphilis.com users can register?

No anybody can join, but Slack doesn allow we to open up a channel to the world.
See: https://www.seccubus.com/documentation/34-slack-channel/
If you drop me an email at frank (at) seccubus (dot) com I will invite you.


Small Secretness improvements: {secret.secret} annotation awareness and an --annotate-secretness pass

Adds a simple pass (based on the existing debug code for --convert-if-to-select) that adds the secretness to each op as an attribute, primarily for ease of debugging/explanation. This PR also makes SecretnessAnalysis aware of the {secret.secret} annotations, so that one does not need to run --wrap-generic beforehand in order to get correct results.
Example output:
  func.func @example(%arg0: i32 {secret.secret}) -> i32 {
    %c1_i32 = arith.constant {secretness = false} 1 : i32
    %0 = arith.addi %c1_i32, %arg0 {secretness = true} : i32
    return %0 : i32
  }

CI fails because main fails to build at the moment (@j2kun?):
ERROR: Skipping '//...': error loading package under directory '': error loading package 'scripts/jupyter': Label '//learning/grp/pynball:build_defs.bzl' is invalid because 'learning/grp/pynball' is not a package; perhaps you meant to put the colon here: '//:learning/grp/pynball/build_defs.bzl'?


Bug: Warning eDP-1 already specified

I have weird error with the following config:
---
ARRANGE: ROW
ALIGN: MIDDLE
ORDER:
  # Home.
  - "!^Philips.*PHL 275E2F.*UHB2307008083.*" # External monitor.
  - "!^Dell.*U2724DE.*4TPGCP3.*" # External monitor.

  # Laptop Monitor comes always last.
  # - "!^Tianma.*TL140ADXP24.*" # Internal monitor.
  - "eDP-1"

SCALING: TRUE
AUTO_SCALE: FALSE
AUTO_SCALE_MIN: 1.0
SCALE:
MODE:
  - NAME_DESC: "!^Philips.*PHL 275E2F.*UHB2307008083.*" # Home - External
    WIDTH: 2560
    HEIGHT: 1440
    HZ: 75

  - NAME_DESC: "!^Dell.*U2724DE.*4TPGCP3.*" # Home - External
    MAX: TRUE

# VRR / adaptive sync is enabled by default. Disable it per display.
VRR_OFF:
  - "!^.*"

CHANGE_SUCCESS_CMD: "cd ~ && ~/.config/way-displays/scripts/on-change.sh"
LAPTOP_DISPLAY_PREFIX: "eDP"

# One of: ERROR, WARNING, INFO (default), DEBUG
LOG_THRESHOLD: DEBUG

I did not specify eDP-1 for any MODE but when starting way-displays it states:
WARNING: 2880x1800@60Hz (60,001mHz)  already specified for 'eDP-1', ignoring 2880x1800@120Hz
and does not apply any changes. etc. Why is that? Am I doing something wrong.

I [09:27:28] way-displays version 1.11.0
I [09:27:28]
I [09:27:28] Found configuration file: /home/nixos/.config/way-displays/cfg.yaml
I [09:27:28]
I [09:27:28] Active configuration:
I [09:27:28]   Arrange in a ROW aligned at the MIDDLE
I [09:27:28]   Order:
I [09:27:28]     !^Philips.*PHL 275E2F.*UHB2307008083.*
I [09:27:28]     !^Dell.*U2724DE.*4TPGCP3.*
I [09:27:28]     eDP-1
I [09:27:28]   Scaling: ON
I [09:27:28]   Auto scale: OFF (min: 1.000)
I [09:27:28]   Mode:
I [09:27:28]     !^Philips.*PHL 275E2F.*UHB2307008083.*: 2560x1440@75Hz
I [09:27:28]     !^Dell.*U2724DE.*4TPGCP3.*:

I started way-display in Sway with
exec way-displays
and the above error happens  too.
When I dont do this and I start after login on a shell  swaymsg "exec 'way-displays 2>&1 > ~/.way-displays.log'"  it does not work (same error). But when I do way-displays -g it configures all displays and the error is gone.

Thank you for the detailed information. I'll attempt a reproduction and get back to you.
First thoughts: way-displays -g kicks things into action, triggering a re-evaluation.
Nice setup with all the shellchecks; FYI #164 will add some more information for your on change script.

The warning was incorrect, with the modes reversed. That has been fixed in #173, however is not the actual issue.

Everything looks reasonable and should function as intended. The sleep 1 before the -g does indicate an issue with timing. There doesn't seem to be anything that could result in two instances of way-displays running.
I do notice you are starting way-displays without the log file redirect: https://github.com/gabyx/dotfiles/blob/main/config/dot_config/sway/config-startup#L4
which would result in loss of logs. Perhaps exec $display-manager > ~/.way-displays.log 2>&1.
The only thing that could possible cause sway to make any display changes is the VRR disable: https://github.com/gabyx/dotfiles/blob/main/config/dot_config/sway/config-outputs#L7 you might try removing that, as way-displays should handle it.
Can we please try a minimal configuration: use the template sway config with exec way-displays > /tmp/way-displays.${XDG_VTNR}.${USER}.log 2>&1 at the top, then at the bottom.
That should rule out any timing issues.
It would be great if you could post your versions of sway and wlroots.

Hi, jeah thanks, I forgot a > there.
I setup the config as you mentioned, put the exec on top, logged out and back in again, and this is the output of the file:
I [20:43:44] way-displays version 1.11.0
I [20:43:44]
I [20:43:44] Found configuration file: /home/nixos/.config/way-displays/cfg.yaml
I [20:43:44]
I [20:43:44] Active configuration:
I [20:43:44]   Arrange in a ROW aligned at the MIDDLE
I [20:43:44]   Order:
I [20:43:44]     !^Philips.*PHL 275E2F.*UHB2307008083.*
I [20:43:44]     !^Dell.*U2724DE.*4TPGCP3.*
I [20:43:44]     !^DP-.*
I [20:43:44]     !^Tianma.*TL140ADXP24.*
I [20:43:44]     !^eDP-*
I [20:43:44]   Scaling: ON
I [20:43:44]   Auto scale: OFF (min: 1.000)
I [20:43:44]   Mode:
I [20:43:44]     !^Philips.*PHL 275E2F.*UHB2307008083.*: 2560x1440@75Hz
I [20:43:44]     !^Dell.*U2724DE.*4TPGCP3.*: MAX
I [20:43:44]     !^DP-.*: MAX
I [20:43:44]     !^Tianma.*TL140ADXP24.*: 1920x1200@120Hz
I [20:43:44]   Change success command:
I [20:43:44]     cd ~ && ~/.config/way-displays/scripts/on-change.sh
I [20:43:44]
I [20:43:44] Monitoring lid device: /dev/input/event2
I [20:43:44]
I [20:43:44] Lid open
W [20:43:44]
W [20:43:44] WARNING: 2880x1800@60Hz (60,001mHz)  already specified for 'eDP-1', ignoring 2880x1800@120Hz (120,000mHz) (preferred)
I [20:43:44]
I [20:43:44] eDP-1 Arrived:
I [20:43:44]   info:
I [20:43:44]     name:      'eDP-1'
I [20:43:44]     make:      'Tianma Microelectronics Ltd.'

I [20:43:49]     !^Dell.*U2724DE.*4TPGCP3.*
I [20:43:49]     !^DP-.*
I [20:43:49]     !^Tianma.*TL140ADXP24.*
I [20:43:49]     !^eDP-*
I [20:43:49]   Scaling: ON
I [20:43:49]   Auto scale: OFF (min: 1.000)
I [20:43:49]   Mode:
I [20:43:49]     !^Philips.*PHL 275E2F.*UHB2307008083.*: 2560x1440@75Hz
I [20:43:49]     !^Dell.*U2724DE.*4TPGCP3.*: MAX
I [20:43:49]     !^DP-.*: MAX
I [20:43:49]     !^Tianma.*TL140ADXP24.*: 1920x1200@120Hz
I [20:43:49]   Change success command:
I [20:43:49]     cd ~ && ~/.config/way-displays/scripts/on-change.sh
I [20:43:49]
I [20:43:49] way-displays -s ARRANGE_ALIGN ROW MIDDLE
I [20:43:49]
I [20:43:49] way-displays -s ORDER '!^Philips.*PHL 275E2F.*UHB2307008083.*' '!^Dell.*U2724DE.*4TPGCP3.*' '!^DP-.*' '!^Tianma.*TL140ADXP24.*' '!^eDP-*'
I [20:43:49]
I [20:43:49] way-displays -s SCALING ON
I [20:43:49]
I [20:43:49] way-displays -s AUTO_SCALE OFF
I [20:43:49]
I [20:43:49] way-displays -s MODE '!^Philips.*PHL 275E2F.*UHB2307008083.*' 2560 1440 75
I [20:43:49] way-displays -s MODE '!^Dell.*U2724DE.*4TPGCP3.*' MAX
I [20:43:49] way-displays -s MODE '!^DP-.*' MAX
I [20:43:49] way-displays -s MODE '!^Tianma.*TL140ADXP24.*' 1920 1200 120
I [20:43:49]
I [20:43:49] way-displays -s VRR_OFF '!^.*'
I [20:43:49]
I [20:43:49] way-displays -s CHANGE_SUCCESS_CMD 'cd ~ && ~/.config/way-displays/scripts/on-change.sh'
I [20:43:49]
I [20:43:49] eDP-1:
I [20:43:49]   info:
I [20:43:49]     name:      'eDP-1'
I [20:43:49]     make:      'Tianma Microelectronics Ltd.'
I [20:43:49]     model:     'TL140ADXP24-0'
I [20:43:49]     desc:      'Tianma Microelectronics Ltd. TL140ADXP24-0 (eDP-1)'
I [20:43:49]     width:     300mm
I [20:43:49]     height:    190mm
I [20:43:49]     dpi:       242.24 @ 2880x1800
I [20:43:49]     mode:      2880 x 1800 @ 120 Hz  120,000 mHz (preferred)
I [20:43:49]     mode:      2880 x 1800 @  96 Hz   96,011 mHz
I [20:43:49]     mode:      2880 x 1800 @  72 Hz   72,008 mHz
I [20:43:49]     mode:      2880 x 1800 @  60 Hz   60,001 mHz  60,000 mHz
I [20:43:49]     mode:      2880 x 1800 @  50 Hz   50,007 mHz
I [20:43:49]     mode:      2880 x 1800 @  48 Hz   48,005 mHz
I [20:43:49]     mode:      1920 x 1200 @ 120 Hz  120,000 mHz
I [20:43:49]     mode:      1920 x 1080 @ 120 Hz  120,000 mHz
I [20:43:49]     mode:      1680 x 1050 @ 120 Hz  120,000 mHz
I [20:43:49]     mode:      1600 x 1200 @ 120 Hz  120,000 mHz
I [20:43:49]     mode:      1440 x  900 @ 120 Hz  120,000 mHz
I [20:43:49]     mode:      1280 x 1024 @ 120 Hz  120,000 mHz
I [20:43:49]     mode:      1280 x  800 @ 120 Hz  120,000 mHz
I [20:43:49]     mode:      1280 x  720 @ 120 Hz  120,000 mHz
I [20:43:49]     mode:      1024 x  768 @ 120 Hz  120,000 mHz
I [20:43:49]     mode:       800 x  600 @ 120 Hz  120,000 mHz
I [20:43:49]     mode:       640 x  480 @ 120 Hz  120,000 mHz
I [20:43:49]   current:
I [20:43:49]     scale:     1.000 (1.682)
I [20:43:49]     size:      1920x1200
I [20:43:49]     position:  0,0
I [20:43:49]     mode:      1920x1200@120Hz (120,000mHz)
I [20:43:49]     VRR:       off

So there is still this strange line at the top. Hm...

Ah thanks by the way at looking at my config, I did not expect that to happen! Thankss for you effort, the tool is great!

I setup the config as you mentioned, put the exec on top, logged out and back in again, and this is the output of the file:

Is that minimal config above working correctly? I'm not seeing the other two displays at all; are they working?

So there is still this strange line at the top. Hm...

Fix will be released soon: #173
There's not much we can do about it; some monitors just advertise two preferred modes.


Enable https on ipfs-api

Make sure that it works with secure websockets in parallel.

I tested locally on the sandbox server.
I'll wait until monday to deploy the changes in the new server
Proof:
https://pin-sandbox.3box.io:5003/api/v0/id


S3 ReadWriteTimeout in AmazonS3Config does not work on .Net Core

Expected Behavior
The ReadWriteTimeout for S3 defaults to no timeout so that large downloads don't get interrupted, however it is sometimes useful to set AmazonS3Config.ReadWriteTimeout anyway. Expectation is that setting this to a low value will cause the downloads to error out if they don't complete within the timeout.
Current Behavior
This works correctly in a project using .Net Framework 4.6.1, however it appears to do nothing when using .Net Core 3.0.
Possible Solution
I found a workaround based on the comments here: https://github.com/dotnet/corefx/issues/34550#issuecomment-497183634
Steps to Reproduce (for bugs)
As a test, setting ReadWriteTimeout to a very small value causes the requests to fail early in .Net Framework, but has no effect in .Net Core:
var config = new AmazonS3Config
{
    ReadWriteTimeout = TimeSpan.FromMilliseconds(5)
};

using var client = new AmazonS3Client(awsAccessKeyId, awsSecretAccessKey, config);
using var transfer = new TransferUtility(client);

var request = new TransferUtilityDownloadDirectoryRequest
{
    BucketName = bucketName,
    S3Directory = s3Directory,
    LocalDirectory = localDirectory
};

transfer.DownloadDirectory(request);

As a workaround, passing in a cancellation token to DownloadDirectoryAsync works.
Context
This caused a silent breakage when migrating code using the AWS SDK from .Net Framework to .Net Core, as the API was the same but the configuration settings didn't work.
Your Environment

AWSSDK.Core version used: <IP_ADDRESS>
Operating System and version: Win 10
Visual Studio version: 2019
Targeted .NET platform: .Net Core 3

.NET Core Info
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100
 Commit:    04339c3a26

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17763
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.0.100\

I'm actually not seeing any effect from ReadWriteTimeout on .NET Core or .NET Framework 4.6.1.  Can you please confirm that this was having an effect for you in Framework 4.6.1?
Timeout might be better suited for your use case.

This has been fixed.  Thanks.

Great, thanks @klaytaybai, I’ll watch out for the next release!


Update version: Neovim.Neovim.Nightly version 0.9.0

Pull request has been created with WinGet Releaser v2 :rocket:
Microsoft Reviewers: Open in CodeFlow

Duplicate of #99243 - it appears 3/11/2013 was missed.


create connect wallet modal for payment ui

Right now there are discrete connect wallet buttons and a buy button, we should merge these into their own modal to reflect the figma designs

done. closing.


Retrieve stdout & stderr files for TORQUE runs on salish

Original report by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).

Runs submitted via qsub on salish produce stdout and stderr files that end up in /var/spool/torque/undelivered/ with names like job_id.OU and job_id.ER; e.g. 75.master.OU and 75.master.ER. They should be moved to the run results directory as a result of the #PBS -o and #PBS -e directives in SalishSeaNEMO.sh, but they are not.
Once the job is queued its job_id can be obtained with the shell pipe:
#!bash

qstat | grep job_name | cut -d" " -f1

So, the salishsea run command needs to be modified so that when it is run on salish code is added to SalishSeaNEMO.sh to get the job_id and use it to move the stdout and stderr files from /var/spool/torque/undelivered/ to the run results directory at the very end of processing.

We no longer use PBS/TORQUE on salish. So, this feature is no longer necessary.


Using NNapi on android has a delay for first inference

When I am using this plugin on android I am getting a pretty big delay when I enable NnApi.
Creating the interpreter like this:
interpreterOptions = InterpreterOptions()..useNnApiForAndroid = true;
interpreter = await Interpreter.fromAsset(
  _assetPath,
  options: interpreterOptions
);

leads to a delay of 1-2s. But only for the first inference.
Coming calls to the interpreter are not affected.
When creating a interpreter to use the CPU like this:
interpreter = await Interpreter.fromAsset(_assetPath);

there is no such delay.
My current model is not big and there is no difference (in time) for using CPU / GPU / NNAPI.
Therefore I am not too concerned about it. However I am curious for why this is the case and how this could be prevented?

Thanks @CaptainDario, for reporting this. I will investigate.

If you need additional information let me know.
I am testing NNAPI on a LG V40 ThinQ with Android 10.

After updating all packages, flutter and dart this seems to be solved.


[BEAM-13602] Prevented metrics gathering from failing bigtable io

bigtable mutate row might return None instead of Status when running
into retryable errors. Handled the special case as DEADLINE_EXCEEDED
because bigtable must have exhausted the retry timeout or when there
is no retry policy inplace.
For all rows mutated, if the response status is not ok, that data
might have lost. Added a TODO item for that.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @aaltay
R: @ rashidjeffreysky
PTAL, thx

Additionally filed https://github.com/googleapis/python-bigtable/issues/485 and included a code snippet that verified the bug did exist and None types were returned in the analyzed execution route.

Waiting for the Github actions to finish...

Can't find any online and idle self-hosted runner in the current repository, account/organization that matches the required labels: 'ubuntu-latest , macos-latest , windows-latest'
Waiting for a self-hosted runner to pickup this job...

Waiting for the Github actions to finish...

Can't find any online and idle self-hosted runner in the current repository, account/organization that matches the required labels: 'ubuntu-latest , macos-latest , windows-latest'
Waiting for a self-hosted runner to pickup this job...

Might be stuck. You can re-run it all.


[Tabular] Fix infer_limit being incorrectly calculated when bagging

Issue #, if available:
Description of changes:

[x] TODO: Benchmark

Fixes infer_limit being incorrectly calculated when bagging
The fix involves using the post-refit (expected) infer time of models in all scenarios involving refit full and selecting the best model when infer_limit is specified.
With this fix, infer_limit should work as intended in all scenarios. For users who were already using infer_limit combined with bagging, it is recommended to lower the infer_limit value by a factor of 10 to maintain similar inference speed.
Specifically, the inference time values used were incorrect when 1. choosing the best model, and 2. choosing the best model during refit full with bagging enabled.
If a bagged model had 8 folds, it would use the infer time of all 8 fold models, rather than the expected _FULL refit model.
This led to scenarios where the models would satisfy the infer limit when refit, but were filtered out of consideration due to their non-refit infer times being used at the time of filtering.
This problem got worse with repeated bagging, leading to an up to 160x difference in infer time compared to expectation.
When this problem occurs, it can lead to an exception in two ways:
Exception 1: Occurs when the model_best changes when considering the infer_limit, and that changed model does not exist in refit because it was not the model that was refit.
Traceback (most recent call last):
  File "/bench/frameworks/shared/callee.py", line 75, in call_run
    result = run_fn(ds, config)
  File "/bench/frameworks/AutoGluon/exec.py", line 73, in run
    predictor = TabularPredictor(
  File "/bench/frameworks/AutoGluon/venv/lib/python3.9/site-packages/autogluon/core/utils/decorators.py", line 30, in _call
    return f(*gargs, **gkwargs)
  File "/bench/frameworks/AutoGluon/venv/lib/python3.9/site-packages/autogluon/tabular/predictor/predictor.py", line 959, in fit
    self._post_fit(
  File "/bench/frameworks/AutoGluon/venv/lib/python3.9/site-packages/autogluon/tabular/predictor/predictor.py", line 1014, in _post_fit
    self._trainer.calibrate_model()
  File "/bench/frameworks/AutoGluon/venv/lib/python3.9/site-packages/autogluon/core/trainer/abstract_trainer.py", line 3041, in calibrate_model
    y_val_probs = self.get_model_oof(model_name_og)
  File "/bench/frameworks/AutoGluon/venv/lib/python3.9/site-packages/autogluon/core/trainer/abstract_trainer.py", line 967, in get_model_oof
    model_type = self.get_model_attribute(model=model, attribute='type')
  File "/bench/frameworks/AutoGluon/venv/lib/python3.9/site-packages/autogluon/core/trainer/abstract_trainer.py", line 2347, in get_model_attribute
    model = model.name
AttributeError: 'NoneType' object has no attribute 'name'

Exception 2: Occurs when the incorrect larger infer time values lead to 0 models satisfying the infer limit.
AssertionError: Trainer has no fit models that can infer while satisfying the constraints: (infer_limit=9.992981433868409e-05, allow_full=True).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Benchmark results look good, the bug was fixed and performance and stability is stable.


Update link to Record in docs

Summary
Record in docs, wherever mentioned, links to http://facebook.github.io/immutable-js/docs/#/Record/Record which then redirects to https://immutable-js.github.io/immutable-js/
However, the correct link for Record is https://immutable-js.github.io/immutable-js/docs/#/Record

@agarwalrounak Changes looks good to me. Thanks for your contribution 🎉

Draft.js uses immutable 3.7.x. We should link to the docs for that version, otherwise the'll be confusion.
https://github.com/facebook/draft-js/blob/268ece35025ecc280282a5169a0a4620f00e3371/package.json#L39

Tuns out, there is no way to link to the older version of the docs. People have asked for old doc versions to be made available(here and here) but there seems to be no work towards that.

Hmm, I'd merge this PR if it linked to an old version of the docs through the Internet Archive. IMO it's the best option we have.

Draft.js uses immutable 3.7.4 which released on 18 Jun 2015 according to this commit https://github.com/immutable-js/immutable-js/commit/09f04e910bd0b891d1373eb2cb2648a0546fab3d
I have linked Record to an old version of the docs(captured on 23 Jun 2015) through the Internet Archive.

Looks good to me, thank you both for converging towards a meaningful solution 👍


Implement set_background_color_rgb operation

Ref: #60
This allows the user to replace the alpha channel of an image with a solid colour allowing an images with transparency to be saved JPEG without crashing (Pillow) or screwing up the image (Wand).

@nealtodd any chance you could have a look at this sometime?

Thanks for the review @nealtodd! I've implemented all of your suggestions now.


Gym isn't using my provisioning profile and is adding an extra export method to my exportoptions plist

Question Checklist

[Downloaded it Monday] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[So many times] I read docs.fastlane.tools
[Nothing helpful about enterprise distribution] I searched for existing GitHub issues

Im unable to build an ipa file because gym won't recognize my provisioning profile information in my export options plist, it also adds to it?
From my fastfile, I stopped using sigh.
    /* build_ios_app */
    gym(
        workspace: workspacePath,
        scheme: dev,
        clean: true,
        outputDirectory: outputDir + dev, // .ipa path
        outputName: "myapp-ios-\(dev)-\(version).ipa", // .ipa file name INCLUDE '.ipa'
        //configuration: dev,
        exportMethod: "enterprise",
        exportOptions: getExportOptionsDict(), // returns a correct dictionary
        exportXcargs: "-allowProvisioningUpdates",
        buildPath: outputDir + dev // Archive path
    )

And here you can see two method keys in the export options, the app-store value was mysteriously added by the gym command.
[10:13:42]: Generated plist file with the following values:
[10:13:42]: ▸ -----------------------------------------
[10:13:42]: ▸ {
[10:13:42]: ▸   "teamID": "XXXXXXXXX",
[10:13:42]: ▸   "provisioningProfiles": {
[10:13:42]: ▸     "com.mycompany.myapp": "---***-**************"
[10:13:42]: ▸   },
[10:13:42]: ▸   "method": "enterprise",
[10:13:42]: ▸   "destination": "export",
[10:13:42]: ▸   "thinning": "",
[10:13:42]: ▸   "signingCertificate": "iPhone Distribution",
[10:13:42]: ▸   "compileBitcode": false,
[10:13:42]: ▸   "stripSwiftSymbols": true,
[10:13:42]: ▸   "signingStyle": "manual",
[10:13:42]: ▸   "method": "app-store"
[10:13:42]: ▸ }
[10:13:42]: ▸ -----------------------------------------
[10:13:42]: $ /usr/bin/xcrun /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/cl/8mn_ytyx1d94lckspmvs5rbh0000gn/T/gym_config20190220-25671-1p181x2.plist' -archivePath /Users/myname/myapp-ios-builds/DEV/myapp-ios-DEV-1.2.7\ 2019-02-20\ 10.12.12.xcarchive -exportPath '/var/folders/cl/8mn_ytyx1d94lckspmvs5rbh0000gn/T/gym_output20190220-25671-apfsbf' -allowProvisioningUpdates

xcodebuild -exportArchive -exportOptionsPlist /var/folders/cl/8mn_ytyx1d94lckspmvs5rbh0000gn/T/gym_config20190220-25671-1p181x2.plist -archivePath '/Users/myname/myapp-ios-builds/DEV/myapp-ios-DEV-1.2.7 2019-02-20 10.12.12.xcarchive' -exportPath /var/folders/cl/8mn_ytyx1d94lckspmvs5rbh0000gn/T/gym_output20190220-25671-apfsbf -allowProvisioningUpdates
2019-02-20 10:13:42.839 xcodebuild[26641:238085] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/cl/8mn_ytyx1d94lckspmvs5rbh0000gn/T/DEV_2019-02-20_10-13-42.839.xcdistributionlogs'.
error: exportArchive: "Myapp.app" requires a provisioning profile.

Error Domain=IDEProvisioningErrorDomain Code=9 ""Myapp.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="Myapp.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
** EXPORT FAILED **
[10:13:44]: Exit status: 70
[10:13:44]: No provisioning profile provided
[10:13:44]: Make sure to pass a valid provisioning for each required target
[10:13:44]: Check out the docs on how to fix this: https://docs.fastlane.tools/actions/gym/#export-options
+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.116.0                 |
| export_method | app-store               |
| sdk           | iPhoneOS12.0.sdk        |
+---------------+-------------------------+
There is very little information about enteprise for fastlane it seems. Any examples would also help I think.

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL

LANGUAGE

default_platform(:ios)
platform :ios do
desc "Description of what the lane does"
lane :dev do
build_app(
export_method: "enterprise",
scheme: "DEV",
export_xcargs: "-allowProvisioningUpdates"
)
end
end
</details>

APPFILE

 app_identifier("com.mycompany.myapp") # The bundle identifier of your app
<EMAIL_ADDRESS># Your Apple email address
 team_id("XXXXXXX")

# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

fastlane gems

Gem
Version
Update-Status

fastlane
2.116.0
🚫 Update available

A simpler way to phrase this might be: Why does xcodebuild require a provisioning profile for MyApp.app? I have provided one for the 3 schemes of my app at "con.mycompany.myappDEV" , com.mycompany.myappQA and for PROD too

Your issue is missing most of the required information, and the code, output and file snippets are formatted in a way that makes it really hard to read. Could you please just open a new bug report issue and include all the information it asks for? I'm happy to help you, but don'T want to spend 20 minutes to understand your situation just to find out it was because of something missing or overlooked.


Facial Expression Detection

Is your feature request related to a problem? Please describe.
Facial expressions are hard to understand as one can change them very easily. At a moment a person is happy, at the next he is angry. Also with new technology of robots answering to the humans, they don't know the mood of the person from text.
Describe the solution you'd like
It will be used to detect the face expression of a person, telling the emotions of the person. It can be used to detect expressions like happiness, sadness, angry emotions etc.
Describe alternatives you've considered
Alternatively one can use voice to detect emotions.
Additional context
Under GSSOC''23 , please assign me this task.
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@Tisha6661 - please link the dataset.

I would use this dataset from Kaggle- https://www.kaggle.com/jonathanoheix/face-expression-recognition-dataset

@khusheekapoor  I have created a pull request regarding this task, please verify and merge it.


[Internal] Design Docs: Adds Design Document for Client Telemetry

Description
Added Client Telemetry Design.
Type of change

[] Documentation

@msftbot wait for @kirankumarkolli for approval


Update namespace-reference.md

Removed extra character added to namespace, which does not coincide with the output of https://dev.azure.com/{organization}/_apis/securitynamespaces.

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

#sign-off


Add auth domain filtering

Use case
Trying to have a setup where I authenticate some sub/domains but not others.
I don't believe traefik can do domain/frontend based auth forwarding (yet) so I'm hoping this can be implemented here in the mean time.

Let me know if you want me to rename the flag you might be wanting that for #3

Looks covered. Thanks!


score_genes: use_raw=None instead of False, efficiency updates, prettier logging

I tested this. 🙂


Browser

Hey there - Would you consider making some changes to package.json to make this work better in the browser?
https://observablehq.com/@observablehq/module-require-debugger

Such as?

It needs changes to the index.js file to support AMD (at least that's my understanding).

Just going to close this.

This module is written with requires. In works natively in Node, and can be used (bundled) with browserify, rollup, or webpack in browsers!


Bump minSdkVersion to 24 for react-native 0.76.1

Hi,
Looks like react-native 0.76.1 requires minSdkVersion to be 24, right now the library has value 21 and build fails on Android. Could you update it for versions ^0.14.2 please?

Hello @alexandrumogic can you show us what is the error. and what's your react native version?