text:
HyperText showLabels misbehaving

Describe the bug
"null" label is displayed instead of no label name. when showLabels="false".
Default behaviour also differs from what's specified in the documentation regarding showLabels. https://labelstud.io/tags/hypertext.html
To Reproduce
Steps to reproduce the behavior:
When annotating HyperText and adding showLabels="false", a "null" label is displayed.
Expected behavior
No label name should be displayed when showLabels="false".
Screenshots

Environment (please complete the following information):

Windows 11

{
  "label-studio-os-package": {
    "version": "1.2",
    "short_version": "1.2",
    "latest_version_from_pypi": "1.2",
    "latest_version_upload_time": "2021-08-18T16:22:25",
    "current_version_is_outdated": false
  },

  "label-studio-os-backend": {
    "message": "Update LSF: fixes for relations on image (#1316)",
    "commit": "4b468fd2de049fc4a414e81e8a00cbf13bb1a284",
    "date": "2021-08-18 11:19:47 +0300",
    "branch": "HEAD",
    "version": "1.0.2+173.g4b468fd2.dirty"
  },

  "release": "1.2",
  "label-studio-frontend": {
    "message": "[fix] loading images with relations (#239)",
    "commit": "c02a287aef3bea907a09196bd2145c7225208efe",
    "branch": "master",
    "date": "2021-08-18T07:32:08Z"
  },

  "dm2": {
    "message": "Merge pull request #9 from heartexlabs/feature/regex-filter  [ext] Add ...",
    "commit": "e67fb3ab5bcabfb663a4e010503c83ecb3d2ed44",
    "branch": "master",
    "date": "2021-08-17T13:41:09Z"
  },

  "label-studio-converter": {
    "version": "0.0.30"
  }
}

@smoreface please, check the docs about it

hmm, @hlomzik seems like a bug? do docs describe the intended behavior (highlight occurs but label is not displayed), or is displaying "null" instead of the label intended behavior?

Hi! "null" is wrong for sure, that's not for humans :)
This parameter is very rare, so there may be some errors. I'll check and fix it soon

@hlomzik Besides the "null", the showLabels default value is False in the docs, but True in reality

@hlomzik @makseq I think I found the bug.
I think it is here
There should be a check for (label != null) before setting the label text attribute.

yes, looks like the right place, thanks! I'll try it today
about showLables — it's complicated a bit, it has different default values for different object tags, but I'll check this as well

authors: hlomzik makseq smoreface victor-ab


text:
x86_64: implement CPUID 15h support

This allows us to get TSC and APIC rates without calibration on processors supporting this leaf.

Also, please rebase on top of master!

You have conflicts with master after my latest merge. Also small nit: s/x86_64/x86/

I renamed cpu to bootcpu_info, btw

source: gharchive/pull-request

authors: heatd petershh

repo: heatd/Onyx

license: mit

license_type: permissive

license_source: bigquery


text:
Issue 20 visualize

wright-fisherは表にできそうですが、moran（change_allelemo）の方が走らせると同じidばかりの表になってしまいます

ファイル読み書きの練習も兼ねているので、いきなりDataFrameを作らず、一旦テキストファイルに書き出したあと、それを読み込んでください。
この課題で可視化したいのはallele frequencyなので、個々のIDではなく変異型vs野生型で考えてください。つまり変異型の頻度だけ記録すればいいです。
途中経過をプリントするのがデバッグの常套手段です。例えば change_allelemo() のforループの中で print(population._ids) して、ループのあと print(fixprocess) してみましょう。途中はうまく行ってるのに、詰め込まれたリストでは全部2になっちゃってますね。これはPythonのハマりポイントのひとつで重要ですが、ちょっと込み入った話だし、allele frequencyだけ記録する分には問題にならないので、説明はしません。興味があったら「python 浅いコピー」などでググってみてください。

些細なこと

change_allelewf() の引数がクラス名と同じ Population になっているのは危険です。変数らしく全部小文字にするか何か適当なものに変えたほうがいいです。
population._inds のようにプロパティを直接参照するのは危険です。get_xxx()メソッドを用意するか @property デコレータで保護してから参照しましょう。
なぜか Individual クラスに is_not_fixed() が紛れ込んでます。あと空行不足のE305。

rで書いてみましたが、Rstudioで走らせると、print(freqprot)の段階で「3番目の引数はvectorではありません」というエラーが出ます。ターミナルで走らせようとすると、1行目から「tidyverseという名前のパッケージはありません」と言われます（その前にinstall.packages("tidyverse")をしていてもダメです）

Rの環境設定まわりは少しやっかいなので、明日直接見てみましょう。そのほかで直せるとこは:

1 - fit_list.count(1.0)/len(fit_list) など、何度も登場する計算は関数にして良い名前をつけましょう。「DRY原則」
CSV/TSV形式のデータ出力は、行がサンプル、列がいろいろな項目、というような形式になるべく統一しておきましょう。例えば今回の課題なら、1列めが時間、2列めがアリル頻度、記録した世代数のぶんだけ行数がある、という形がいいです。「整然データ」
gitはソースコードを管理するのが主な目的なので、変化しやすいデータ (今回の allelechangewf.csvなど) は登録しないほうがいいです。
RでもPythonでもそうですが read_csv() や何かの関数で新しく変数を作ったあとは、とにかく中身をプリントして確認してみましょう。
ggplot() のなかの x と y は aes() のなかに書かないとダメです。

基本はできたと思います。
・write.writerowは繰り返しですが、関数にしてもいいですか?その場合、file = open("~.csv","w"~)のところからdefの中に入れてもいいものでしょうか
・同じエリア内でグラフを重ねたいとき（例えばchange_allelewfとchange_allelemoのグラフを同じグラフエリアに表示したいとき）どうすればいいでしょうか?

あと、git statusで「allelechange.csvをaddしてください」と言われるのですがどうしたらいいですか?（git stashでbranchの移動はできるようになりましたが、上記の注意書きはまだ出ます）

.gitignore というファイルを作って *.csv などと書いておけばgitに無視してもらえます。既にgit add してしまったファイルはその前に git rm などで消しましょう。
writer.writerow() の繰り返しを関数にする: 意図を完全には把握できませんが、たぶんいいと思います。出来上がったデータとファイル名を引数に取るような関数でしょうか。
file1 = open('...') で開いたファイルは、すべての書き込みが終わったらすぐ file1.close() しないといけません。が、そういうのは忘れがちなので、考えなくてもいいように with open('...') as outfile: という構文を使ってwith節を抜けるときに勝手にcloseしてもらうのが常套手段です。
グラフを重ねるというよりは、複数の実行結果をひとつのdata.frame/tibbleにまとめる作戦のほうがいいと思います。グループ分けするためのカラムを追加しておいて、ggplotするときには aes(..., group=XXX) とします。例えば

setwd('~/github/practice-py/hamazaki1990/')
freq_wf <- read_csv("allelechangewf.csv") %>%
    dplyr::mutate(model='wf')
freq_mo <- read_csv("allelechangemo.csv") %>%
    dplyr::mutate(model='moran')
freq <- dplyr::bind_rows(freq_wf, freq_mo)
print(freq)
freqplot <- ggplot(freq, aes(x = generation, y = derived_allele_frequency, group=model))

これだと1モデルにつき1本の先しか引けませんが、反復試行した結果を何本も書きたい場合もこの方法の応用でいけます。

できたと思います!

Well done!
とりあえず正しく動いてるようなのでこのブランチは閉じますが、いつか余裕があるときに以下の点について考えてみてください。

生成したCSVがuntracked fileとして警告されないように .gitignore を作ってください。
試しに visualize.py を試しに実行して図を描いてみましたが、あんまりいい感じの図になりませんでした。正しく動いていることがこちらですぐ確認しやすいような状態でコミットしてもらえると助かります。今回の例で言えば、もう少し大きめの集団サイズで、モデルやsによって結果がちゃんと変わることが確認できたらなお良かったです。
こういうグラフは観察値によらず縦軸の範囲を [0.0, 1.0] に固定したいですね。
参考: https://heavywatal.github.io/driftr.js/

repo: heavywatal/practice-py


text:
Process registration: handle_connect not being called?

I've been following the README down through the Registering your robot process section in order to register a robot's process by name, but handle_connect doesn't appear to be called and the registration never happens.
This is with the latest master, on Elixir 1.3.4 and Erlang 19. A demo repo is here: https://github.com/stevegrossi/alfred. There's nothing special: to reproduce the issue I hewed as close to the README as possible, using mix hedwig.gen.robot with the name "alfred" and the Console adapter.
For simplicity, I'm attempting to start the robot manually, rather than through a supervision tree. Again, copy-and-pasting from the README's Finding Your Robot section:

The generated process registration via :global in handle_connect does not appear to take place. And indeed, if I replace the auto-generated handle_connect with something that should obviously fail:
defmodule Alfred.Robot do
  use Hedwig.Robot, otp_app: :alfred

  def handle_connect(state) do
    raise "handle_connect called"
  end

The robot starts just fine, which leads me to believe handle_connect isn't being called at all. Is there possibly an issue here?

@stevegrossi, yes, you are right. Looks like I failed to update the Console adapter. Sorry about that.
I'll get a fix pushed shortly. Thank you for the report!

@stevegrossi, thanks so much for the report. I really appreciate that. I've pushed up a fix in 112614f.

Confirmed working! Thanks for addressing this so quickly.

source: gharchive/issue

authors: scrogson stevegrossi

repo: hedwig-im/hedwig


text:
Adds belgian and dutch holidays

Source:

https://en.wikipedia.org/wiki/Public_holidays_in_Belgium
https://en.wikipedia.org/wiki/Public_holidays_in_the_Netherlands

Coverage remained the same at 95.902% when pulling 925624ae87f7c0013180917ac54a63dc94988fb5 on addNLandBE into bf07fbd8b7c870855958b1d26588bd4edf553eaa on master.

authors: coveralls heiglandreas

repo: heiglandreas/holidayChecker

license: MIT

license_source: github-api


text:
DOCS: Documentation to support Helidon Integration with WLS

Environment Details

Helidon Version: 2.x, 3.x, 4.x
Helidon MP
JDK version:
OS:
Docker version (if applicable):

Epic Scope
Doc to support  WebLogic and Helidon integration between WebLogic 12.2.1.4 and 14.1.1 with Helidon 2.x, and 3.0.

[x] add new intro file to the 3.x integrations directory for WLS.
[x] add a new intro file to the 2.x integrations directory for WLS

Tasks
JMS

[x] #6747
[x] #6753

//- [ ]  WLS 1412 new JMS Jakarta clients w/H3 (14.1.2 is on hold for now)
//- [ ] WLS 1412 new JMS Jakarta clients w/H4 (14.1.2 is on hold for now)
JAX-WS

[x] #6754
[x] #6755
//- [ ] WLS 1412 new jaxws-wlswss-client Jakarta Client w/H3 (14.1.2 is on hold for now)
//- [ ] WLS 1412 new jaxws-wlswss-client Jakarta Client w/ H4  (14.1.2 is on hold for now)

Security/OCI

[x] #6756
[x] #6757
//- [ ] WLS SSO using Azure AD (as IDP) & WLS (as SP)	?	1411/12214
//- [ ] SSO across WLS 1411 and Helidon 2 on OCI using OIDC and IDCS
//- [ ] SSO across WLS 1411 and Helidon 3 on OCI using OIDC and IDCS
//- [ ] SSO across WLS 1412 and Helidon 3 on OCI using OIDC and IDCS  (14.1.2 is on hold for now)
//- [ ] SSO across WLS 1412 and Helidon 4 on OCI using OIDC and IDCS  (14.1.2 is on hold for now)

REST

[x] #6758
[x] #6759
//- [ ] Document that Helidon can call WLS webservices w/o advanced features	4.x/3.x/2.x	All
//- [x] Bidirectional REST calls between WLS 12214 w/H3
//- [x] Bidirectional REST calls between WLS  1411 w/H2
//- [x] Bidirectional REST calls between WLS 1411 w/H3
//- [ ] Bilateral REST calls between WLS 1412  w/H3 & H4	3.x/4.x

MicroTX

[x] #6762
[ ] #6763

Closed by mistake.

2.x issues addressed in PR #6946
3.x issues addressed in PR #6864

merged #6864 for 3x

repo: helidon-io/helidon


text:
SSl information is not available in ContainerRequestFilter requestContext

Environment Details

Helidon Version: 2.6.3
Helidon SE or Helidon MP : MP
JDK version: 17
OS:
Docker version (if applicable):

Problem Description
We are using filter in Helidon MP to use SplatMtlsFilter. Because this filter implements ContainerRequestFilter.
To extract the certificate they are using below code - (where requestContext is filter requestContext)
X509Certificate[] certificateChain = (X509Certificate[]) requestContext.getProperty(X509_CERTIFICATE_ATTRIBUTE);
But the information is not available in the requestContext, where CN name is present in requestContext headers.
After digging out some more requests, I have found the certificate information is present in Helidon server requset -
@Context
private ServerRequest req;
.......

Optional<X509Certificate> cert = req.context().get(WebServerTls.CLIENT_X509_CERTIFICATE, X509Certificate.class);

Now my questions are -

Can filter requestContext not able to carry ssl information? If no , then how to extract the information.
If yes then can we convert helidon server request context to ContainerRequestFilter requestContext (Jax-rs) as a workaround?
Is SplatMtlsFilter is not supported in Helidon MP?

java.security.cert.X509Certificate does not expose an API to get the certificate name.
You need to parse it from the subject principal name.
See how it's done in 2.x:

https://github.com/helidon-io/helidon/blob/2.6.5/webserver/webserver/src/main/java/io/helidon/webserver/HttpInitializer.java

See how it's done in 4.x:

https://github.com/helidon-io/helidon/blob/4.0.5/common/tls/src/main/java/io/helidon/common/tls/TlsUtils.java

Can filter requestContext not able to carry ssl information? If no , then how to extract the information

It's currently only available using io.helidon.common.context.Context.
We could perhaps enhance the Jersey support to add the certificate in the container request context or somehow delegate to the Helidon context.

can we convert helidon server request context to ContainerRequestFilter requestContext (Jax-rs) as a workaround?

io.helidon.common.context.Context cannot be converted to jakarta.ws.rs.container.ContainerRequestContext

Is SplatMtlsFilter is not supported in Helidon MP?

The code you shared gets the certificate from the container request context using the property key X509_CERTIFICATE_ATTRIBUTE. Where is that constant defined ? What's the value ?
I found code similar to yours where the value the constant is javax.servlet.request.X509Certificate.
This assumes a Servlet container that won't work in Helidon MP.

Hi @romain-grecourt thanks for the update!!!
Above code is part of splat-sdk library provided by SPLAT team. In order to use AuthZ + mTls they , they are suggesting to use SplatMtlsFilter from this sdk which splat-sdk which implements ContainerRequestFilter.

The code above requires a Servlet container, thus it does not work with Helidon MP.
MicroProfile does not require Servlet and Helidon MP does not implement nor use Servlet.

The use of  X509_CERTIFICATE_ATTRIBUTE = "javax.servlet.request.X509Certificate" to send TLS certificate is perhaps an old approach that was used by products that use Servlet Container, maybe like DropWizard. This not something we will adopt In Helidon because that approach is antiquated, so that means we will not make any changes in the code to accommodate that. In Helidon, you can retrieve certificate via
    @Context
    private ServerRequest req;
    ...
    Optional<X509Certificate> cert = req.context().get(WebServerTls.CLIENT_X509_CERTIFICATE, X509Certificate.class);
     if (cert.isPresent()) {
         System.out.println("ServerRequest " + WebServerTls.CLIENT_X509_CERTIFICATE + "=" + cert.get());
     }

So I would rather suggest that you try out 2 options:

Rewrite SplatMtlsFilter so you can modify it to be able to get the certificate from the request.context() rather than from javax.servlet.request.X509Certificate property of ContainerRequestContext. Or...
Extend SplatMtlsFilter to a new class and do the following:

Retrieve the certificate from Helidon request.Context()
Adding it certificate  to the ContainerRequestContext as a "javax.servlet.request.X509Certificate" property
Pass ContainerRequestContext to the parent filter.
A rough example is below:

    @ConstrainedTo(RuntimeType.SERVER)
    @Provider
    public class SplatNewMtlsFilter extends SplatMtlsFilter {
        @Context
        private ServerRequest req;
        private static final String X509_CERTIFICATE_ATTRIBUTE = "javax.servlet.request.X509Certificate";

        public SplatNewMtlsFilter() {
            super(Region.IAD);     // Find a way or pass the region value here
        }

        public void filter(ContainerRequestContext requestContext) {
            Optional<X509Certificate> cert = req.context().get(WebServerTls.CLIENT_X509_CERTIFICATE, X509Certificate.class);
            if (cert.isPresent()) {
                // Pass the "javax.servlet.request.X509Certificate" property with the certificate to the parent filter
                requestContext.setProperty(X509_CERTIFICATE_ATTRIBUTE, new X509Certificate[] {cert.get()});
                super.filter(requestContext);
            }
            else {
                System.out.println("No cert from Server Request");
            }
        }
    }

Some additional notes:

As shown in the Helidon MTLS example: https://github.com/helidon-io/helidon/blob/helidon-3.x/examples/webserver/mutual-tls/src/main/resources/application.yaml#L23, it is important that you set server.tls.client-auth to REQUIRE so that the client will send back its certificate.
It is also import to set the trust certificate on the Helidon side so that Helidon will trust the client (which is Splat). As noted in the Splat Onboarding docs, that you need  to (3) constrain the trust path for the client to only the OCI CA bundle.:server.tls.trust.pem.certificates.resource.resource-path=ca-bundle.pem

authors: klustria romain-grecourt tamajitghosh


text:
Use Hamcrest assertions instead of JUnit in examples/microprofile/bean-validation (#1749)

Part of #1749
Backport 2.x

/trigger


text:
Fix oracles price charts data (is: ~10days, shouldBe: 30days)

Current solution pulls 5 consecutive datasets with cursors from the API and then stops (current charts only display data of around 10 days, while being labeled as 30day).
Changed to pulling data with cursors until the received data is older than 30 days. Included failsafe.

thanks for your contribution! apologies that we didn't review it when you submitted it, but this is now for an outdated version of Explorer (v1), so I'm going to close it for now

authors: LilaQ danielcolinjames

repo: helium/explorer


text:
RAK7258 error

Not sure why but i have that
way[1531]:  INFO routing error: Service(Rpc(Status { code: Unknown, message: "h2 protocol error: protocol error: received frame when stream half-closed" })), module: router
Wed Apr  7 08:26:32 2021 daemon.info helium_gateway[1531]:  INFO selected gateway, uri: http://18.216.219.228:8080/, public_key: 112AY1cJ9quokGVZL8uVQ9Jih1cHsji2VVoKApf2fVPBseHcRsg, module: router
Wed Apr  7 08:26:33 2021 daemon.info helium_gateway[1531]:  INFO updated routing to height 793801, module: router

@argonfatl thanks for the report! We're trying to resolve it as it appears to affect downlinks (JoinAccepts included)

Fri Apr  9 12:40:37 2021 daemon.info helium_gateway[1531]:  WARN router returned invalid height 795354 while at 795354, module: router
Fri Apr  9 12:40:37 2021 daemon.info helium_gateway[1531]:  INFO updated routing to height 795354, module: router
Fri Apr  9 12:44:40 2021 daemon.info helium_gateway[1531]:  INFO no update found, module: updater
Fri Apr  9 12:54:40 2021 daemon.info helium_gateway[1531]:  INFO no update found, module: updater
Fri Apr  9 13:04:40 2021 daemon.info helium_gateway[1531]:  INFO no update found, module: updater

@argonfatl I believe this issue was resolved with yesterday's Router release, so I think I'll close this issue.
The logs you are showing aren't particular concerning? The warning is perhaps a little overzealous?

For extra context, here was the bug fix
https://github.com/helium/router/pull/277

after Rak firmware update, everything looks like  works good

authors: argonfatl lthiery

repo: helium/gateway-rs


text:
Add sumologic.augmentConsole()

There are times when you may want logs to go both to Sumo and std(out|err). This PR adds that functionality.

Useful feature, thanks @tjsail33 Merged in 👍

repo: helix-collective/node-sumologic


text:
[incubator/kubeless] two config.builderImage in README

It seems it's a small mistake that two config.builderImage in README.
one of them should be config.provisionImage according to the values.yaml.

Thanks, I just created a PR fixing it

authors: carrodher hzliangbin

repo: helm/charts


text:
[stable/spinnaker] Do not expect volume mount for kubeconfig when using encrypted s3 bucket

Describe the bug
When installing the spinnaker helm chart with kubeconfig configured to use encrypted s3 bucket, the halyard pod fails still expecting the kubeconfig as kubernetes secret

MountVolume.SetUp failed for volume "kube-config" : secret "my-kubeconfig" not found

Helm Version: v3.0.2
Kubernetes version: v1.15.11
Chart: stable/spinnaker
What happened:
When choosing kubeconfig source as encrypted s3 bucket, the spinnaker installation fails expecting the kubernetes secret for kubeconfig
What you expected to happen:
The spinnaker installation should use the s3 bucket to fetch kubeconfig and not expect k8s secret to provide the configuration
How to reproduce it (as minimally and precisely as possible):
Add the following kubeconfig configuration to values yaml and install the spinnaker helm chart.
kubeConfig:
  enabled: true
  encryptedKubeconfig: encrypted:s3!r:us-east-1!b:mybucket!f:kubeconfig

Anything else we need to know:
This is due to an issue in the helm template which only checks .Values.kubeConfig.enabled to identify the source for kubeconfig as k8s secret. It should also check .Values.kubeConfig.secretName and this value should not be provided by default.

experiencing this issue


text:
Add README.md to fluentd

What this PR does / why we need it:
Add README.md to fluentd and adds myself as maintainer
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/lgtm


text:
[stable/nginx-ingress] Add enable-ssl-passthrough to nginx-ingress

Signed-off-by: Aisuko urakiny@gmail.com

What this PR does / why we need it:
This PR of nginx-ingress support HTTPS backend.  When there is a service like Central Authentication Service and need to make an HTTPS request to that after your ingress path.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/approve cancel

/hold

I found the parameter which nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" can do that and more flexible than sslPassthrough. So, I will closing this PR


text:
Handle EKS token refresh when using this as a library

Hi there, how do you handle token refresh for deployments taking more than 15 minutes?
All I can think of is using the ExecProvider in rest.Config to invoke the aws cli, is there a way to do that with the aws sdk instead?
A couple of years ago this code used to call the factory the user provides instead that the c.getKubeClient() directly which would have allowed to inject a token refresh in between.
// IsReachable tests connectivity to the cluster.
func (c *Client) IsReachable() error {
	client, err := c.getKubeClient()
	if err == genericclioptions.ErrEmptyConfig {
		// re-replace kubernetes ErrEmptyConfig error with a friendy error
		// moar workarounds for Kubernetes API breaking.
		return errors.New("Kubernetes cluster unreachable")
	}
	if err != nil {
		return errors.Wrap(err, "Kubernetes cluster unreachable")
	}
	if _, err := client.ServerVersion(); err != nil {
		return errors.Wrap(err, "Kubernetes cluster unreachable")
	}
	return nil
}

Cheers,
Matteo

I had that problem once. I just created a serviceaccount and used it's token for authentication.

I suspect my use case needs something more flexible that this, during the pod lifespan there are multiple instances of Helm targeting different clusters in other accounts

I wonder if running your credential refresh in another window would work.
Otherwise, if you could run from an instance inside the same aws account, you could use an instance role that wouldn't expire.

One thing I could do is having a goroutine periodically overriding rest.Config which is passed by reference to the Helm configuration but this would simply be bad.
I understand that the mentioned PR change fixed an issue but that very issue could have been fixed without removing from the user the ability to implement getKubeClient() in the factory.
This change is biased towards the use case of running this as a CLI tool

I was digging through client-go. It looks like it might try to reload tokens every minute. Did you try updating the kubeconfig in the background?

I was digging through client-go. It looks like it might try to reload tokens every minute. Did you try updating the kubeconfig in the background?

Thanks, I'll try

No feedback so I'm hoping this means you were successful.

authors: cartucciam joejulian

repo: helm/helm


text:
support request: How do I specify credentials to helm plugin install

Hi :wave:
I am currently working through installing a custom plugin from a private github repository. When I run this locally the first time I am correctly asked for the credentials to the repository as cli prompts.
My questions are:

How can I set flags to take this in as part of a CI system
Where are these credentials stored?

I am accessing the plugin/repo via:
helm plugin add https://private-github-enterprise.mydomain/org/repo which has the appropriate plugin.yaml in the root.
Thanks

Answer: git checkout.
Closed


text:
Unexpected input(s) 'helmfile-workdirectory'

I get this error when running with helmfile-workdirectory
Warning: Unexpected input(s) 'helmfile-workdirectory', valid inputs are ['helmfile-args', 'helmfile-version', 'helm-version', 'helm-plugins']
Run helmfile/helmfile-action@v1.0.0
  with:
    helmfile-workdirectory: x/y/z
    helmfile-args: apply --environment dev
    helmfile-version: latest
    helm-version: latest
    helm-plugins: https://github.com/databus[2](https://github.com/fw-ai/fireworks/actions/runs/8381482061/job/22953096573#step:8:2)[3](https://github.com/fw-ai/fireworks/actions/runs/8381482061/job/22953096573#step:8:3)/helm-diff

Ah, just need to upgrade to helmfile/helmfile-action@v1.8.0

repo: helmfile/helmfile-action


text:
How to make it work with Chromecast

Hi,
I am trying to cast youtube live streams in chromecast, i am still getting cors error using crossorigin.me proxy.
Do any know how to make it work with chromecast?
Example live stream
https://www.youtube.com/watch?v=XOacA3RYrXk
Thanks

Thanks its working now

Nice, it would helpful if you can update how it was resolved, thanks.

authors: hemanth rangav

repo: hemanth/cors-now


text:
Finished, Quest02 CSS Quest

PR
WebDevCurriculum Quest
Content

modified

Quest01 HTML CODE Structure Changed.
Quest02 CSS Code Changed.

Status : Ready for Sign to Merge.

repo: henotia/WebDevCurriculum


text:
焦点错乱

多个recycleview在一个页面中的时候,焦点会错乱,如何解决?

如果是recyclerview之间切换焦点错乱, 你可以在listener的onItemViewFocusChanged接口中调用setItemSelected接口

authors: chenxihoulang henryblue

repo: henryblue/TvRecyclerView


text:
Support pre v0.10 snaps

Fixes #966

LGTM overall. Do you want to squash before merge?

Made one change here to add the omitempty tag to backup.status.volumeBackups, so it stops showing up in the JSON/YAML for v0.10+ backups - otherwise should be good to merge

authors: nrb skriss

repo: heptio/ark


text:
Revert "Revert "allow self signed certs with insecureSkipVerify""

Reverts heptio/velero#1776, which is a revert of #1769
I'd like to bring this code up, as it'd be great if we could have this feature. I don't think I can put in the time to support support custom CA bundles per https://github.com/heptio/velero/issues/1027#issuecomment-523119113 now. I understand that insecureSkipVerify is insecure--hence the warnings. If I can get the code in, awesome. Otherwise, our team will live with our fork until we move away from self-signed certs.
Can we discuss about this topic on this PR?
relates to #1027

@s12chung based on all of the discussions, we've decided that we'll go ahead with getting this PR merged. I'll take a look at the code later today and provide any feedback. We may want to tweak the messages/documentation to make it super-clear that this is an insecure option.
cc @nrb @carlisia @prydonius

We talked about potentially removing the insecure option from the server, and only allowing insecure connections from the client. This way, you would have to use a self-signed cert for the server -> object store connection, but in the client you can use --insecure-skip-tls-verify for debugging purposes. Would that work for you @s12chung?

@prydonius I believe the server would need access to a secret that contains the cert. I'm good with that :) I just don't have the time to implement/test it on our end right now.

@s12chung yeah, we would need a separate PR to accept a self-signed cert and add that to the certificate chain. Good to hear that would work for you, I think that will mitigate the attack surface of this change.

@prydonius without the insecure option on the server, I think the server would run into the same error the client does. unless

I believe the server would need access to a secret that contains the cert.

rebased. changed the changelog and added the suggested changes.

@nrb @carlisia @prydonius PTAL.

authors: prydonius s12chung skriss

repo: heptio/velero


text:
added forget password feature

Description
I have added a "Forgot Password" feature where the user will receive an OTP via email. The email and OTP will be stored temporarily in the ResetPassword schema, which will expire after 5 minutes. The user will then call the "Verify-OTP" API endpoint. Upon successful verification, the user can call the "Update -Password" API endpoint, which updates the password in the User schema.

Resolves: [#207 ]
Checklist

Before submitting this pull request, kindly verify that the ensuing checkpoints have been reached.

Have you adhered to the repository's defined coding convention rules? yes
[ .] Have you updated the 'documentation.md' file with the method/function documentation? yes
[. ] Have you sent a message along with the result or response? yes
[ .] Have you used the try-catch technique? yes
[.

] Has the method/class been added to the documentation (md file)? yes

Screenshots

Uploading a screenshot illustrating the approach you developed for validation is required.

Additional Notes/Comments

Any additional remarks or suggestions concerning this pull request are welcome.

I certify that I have carried out the relevant checks and provided the requisite screenshot for validation by submitting this pull request.
I appreciate your contribution.

@Subhash23jan Is this ot added in the frontend?

@Subhash23jan Is this ot added in the frontend?

No..this is only backend route

repo: hereisSwapnil/ExamTime


text:
MSDKUI-2083: Generate GitHub documentation

Signed-off-by: Tadeusz Staszak 36914750+tstaszak89@users.noreply.github.com

Codecov Report

Merging #141 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master    #141      +/-   ##
===========================================
- Coverage     73.65%   73.6%   -0.06%
+ Complexity      986     985       -1
===========================================
  Files            69      69
  Lines          3951    3951
  Branches        440     440
===========================================
- Hits           2910    2908       -2
- Misses          797     798       +1
- Partials        244     245       +1

Impacted Files
Coverage Δ
Complexity Δ

...ava/com/here/msdkui/routing/TruckOptionsPanel.java
75.89% <0%> (-1.79%)
33% <0%> (-1%)

Continue to review full report at Codecov.

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

repo: heremaps/msdkui-android


text:
Add GitHub Action Clippy Workflow

This migrates to rust-toolchain.toml format to specify components and adds a Clippy workflow.

we should then also set the clippy job in the bors.toml shouldn't we?

we should then also set the clippy job in the bors.toml shouldn't we?

Done. I also sorted bors.toml.

bors r+

authors: jounathaen mkroening

repo: hermitcore/uhyve


text:
Possible to do 'heroku logs' via proxy

'heroku logs' cannot get log via proxy. This patch can do it by using proxy setting "http_proxy" or "https_proxy". Please review and merge this if possible.

:+1:

Sorry for the delay in reviewing this, looks good, thanks!

authors: geemus mojodna rinrinne

repo: heroku/heroku


text:
Request - Discord intergration

Hello! Would it be possible to maybe have discord intergration in over this plugin?
or maybe a seat-discord that could interact with seat-groups
from seat you can click on discord and you can get a server invite from there and a member role is granted.
and then seat-discord would read seat-groups to add/remove other groups?

Nice to hear
got access to slack after i had asked and saw his startup of the discord connector but lets hope he would support Seat-Groups

I am going to close this issue out of following reasons:

Warlof will not support channel Mgmt with Discord integration. At least not at the moment
If ever supported it will respect roles
SeAT-Group is build agnostic and may have bound multiple roles. To work with slackbot or discordbot you may create an empty role f.e. Directors with no affiliation or permissions and assign the SeAT-Group to the empty director role. (NOTE: the role must not be empty)

authors: KongGal herpaderpaldent

repo: herpaderpaldent/seat-groups


text:
🛑 Software Center - Test 1 is down

In 167f764, Software Center - Test 1 ($SOFTWARECENTER_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Software Center - Test 1 is back up in 80769cb.

repo: herrphon/upptime


text:
🛑 Auth-Bridge - Test 1 is down

In b206ad7, Auth-Bridge - Test 1 ($AUTH_BRIDGE_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Auth-Bridge - Test 1 is back up in 242dccf.


text:
🛑 Auth-Bridge - Test 1 is down

In 4eedc9a, Auth-Bridge - Test 1 ($AUTH_BRIDGE_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Auth-Bridge - Test 1 is back up in 72fd6c8.


text:
🛑 Software Center - Test 1 is down

In 416af59, Software Center - Test 1 ($SOFTWARECENTER_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Software Center - Test 1 is back up in 5551b8f.


text:
🛑 Auth-Bridge - Test 1 is down

In fa8db4d, Auth-Bridge - Test 1 ($AUTH_BRIDGE_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Auth-Bridge - Test 1 is back up in 9c1abc8.


text:
🛑 Software Center - Test 1 is down

In 7dd4ced, Software Center - Test 1 ($SOFTWARECENTER_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Software Center - Test 1 is back up in a4b835e.


text:
🛑 Auth-Bridge - Test 1 is down

In 0038859, Auth-Bridge - Test 1 ($AUTH_BRIDGE_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Auth-Bridge - Test 1 is back up in ef2a924 after 35 minutes.


text:
🛑 Software Center - Test 1 is down

In fc947f0, Software Center - Test 1 ($SOFTWARECENTER_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Software Center - Test 1 is back up in 2acd538 after 53 minutes.


text:
🛑 Software Center - Test 1 is down

In cdb9c47, Software Center - Test 1 ($SOFTWARECENTER_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Software Center - Test 1 is back up in 34fce29 after 10 minutes.


text:
🛑 Software Center - Test 1 is down

In adcca4e, Software Center - Test 1 ($SOFTWARECENTER_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Software Center - Test 1 is back up in e89cedd after 21 minutes.


text:
🛑 Software Center - Test 1 is down

In de3208f, Software Center - Test 1 ($SOFTWARECENTER_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Software Center - Test 1 is back up in 916effa after 10 minutes.


text:
🛑 Software Center - Test 1 is down

In a5f8807, Software Center - Test 1 ($SOFTWARECENTER_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Software Center - Test 1 is back up in 03b09d2.


text:
🛑 Software Center - Test 1 is down

In 28f6e20, Software Center - Test 1 ($SOFTWARECENTER_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Software Center - Test 1 is back up in 13f4b50 after 21 minutes.


text:
🛑 Auth-Bridge - Test 1 is down

In c1c41f0, Auth-Bridge - Test 1 ($AUTH_BRIDGE_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Auth-Bridge - Test 1 is back up in ce171e2.


text:
🛑 Software Center - Test 1 is down

In bbd225b, Software Center - Test 1 ($SOFTWARECENTER_TEST_1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Software Center - Test 1 is back up in 2f1e88a.


text:
Prepeare Documentation for Release

We need to prepare the documentation for the release.
This PR polish the readme of the repo and the documentation on read the docs (rtd).
First of all we should specify the scope of the readme as "for hcloud-python developers".
The docs on rtd is for users of the hcloud-python module, so we should start with some easy examples and a basic introduction. Then we should list all steps needed for the installation.
I also removed the authors.md, because we didn't have it elsewhere in our repositories.
This is just a first draft of how we could polish the documentation. What do you think about this?

You can see the generated documentation on:
https://hcloud-python.readthedocs.io/en/documentation/

@LD250 i think we are ready here. Can you have a look over it?
@thcyron can you have a look too? What do you think about the proposal? https://hcloud-python.readthedocs.io/en/documentation/

I like the table of content and I think docs look good for launch. Please merge this one.
I think we should consider moving to the docstrings at some point. In this way, documentation will be more maintainable and will be available on only on readthedocs but in the code base as well.
I believe #13 will be the next step in documentation improvement.

For me, #13 is a requirement for a version 1.0 release. People will look at our code and a total lack of in-code documentation won’t give them the feeling that our library is mature and high-quality.

authors: LD250 LKaemmerling thcyron

repo: hetznercloud/hcloud-python


text:
chore(news): hexo-renderer-markdown-it 4.1.0 & hexo-util 1.9.0 released

Check List
Please read and check followings before submitting a PR.

[ ] I want to publish my theme on Hexo official website.

[ ] I have read the theme publishing doc.
[ ] name is unique.
[ ] link URL is correct.
[ ] preview URL is correct.
[ ] preview URL web site is rendered correctly.
[ ] Add a screenshot to source/themes/screenshots.
[ ] Screenshot filename is same as value of name.
[ ] Screenshot size is 800 * 500.
[ ] Screenshot file format is png.

[ ] I want to publish my plugin on Hexo official website.

[ ] I have read the plugin publishing doc.
[ ] name is unique.
[ ] link URL is correct.

[x] Others (Update, fix, translation, etc...)

Languages:
[ ] en English
[ ] ko Korean
[ ] pt-br Brazilian Portuguese
[ ] ru Russian
[ ] th Thai
[ ] zh-cn simplified Chinese
[ ] zh-tw traditional Chinese

Release news of hexo-renderer-markdown-it 4.1.0 and hexo-util 1.9.0

I updated the original release note of hexo-util 1.9.0 for clarity, suggest to update it here as well.

@curbengh
Done :)

I believe it is ok to merge then!

authors: SukkaW YoshinoriN curbengh

repo: hexojs/site


text:
请问会考虑支持lspatch吗

原理上可行吗

这个简单，我编译成libmain.so就能拿来替换原来的libmain.so了，不过有些游戏对so文件有校验，可能会直接闪退

原来是这样，我记得之前就有这么改bgo高帧的，是不是有校验才不用这种方法了

试试3.6.2

试试3.6.2
bgo修补后直接闪退，查了下好像是有加固的原因？不知道别的游戏能用不，手机上没有

绷，看来要加一条说明不支持中国版unity

authors: JeanneAlt hexstr

repo: hexstr/UnityFPSUnlocker


text:
The speed of clear2snowy

Hello author, thank you very much for your work. I used the model you provided for clear2rain and clear2snow, and the results were good. But the speed of clear2snow is very slow, almost 30 seconds to process a picture, is this normal? Looking forward to your reply, thank you!!

Hi, thanks for the interest.
Yes, snow generation is time-consuming because of the crystallization effect applied to the snow mask. If the amount of noise is large, the time will increase. To speed up the process, you can replace the snow mask generation with the precomputed masks provided in the SRRS (Snow Removal in a Realistic Scenario) dataset.


text:
Add editorconfig

Mit der .editorconfig gibt es nun auch einen gemeinsamen Stil, der über Editorgrenzen hinweg gilt.

Coolio, dann darfst du ihn mergen :-)


text:
[ bug ]ClickHouse SQL上线INSERT语法检查错误

执行SQL上线进行SQL检测时报错，此语句可以直接在ClickHouse 22.1.3.7上执行成功：
INSERT INTO entries (* EXCEPT (id, recorded_at)) SELECT * REPLACE 'c2' AS customer_5 EXCEPT (id, recorded_at)
FROM entries
WHERE id IN (
SELECT argMax(id, recorded_at) AS id
FROM entries
WHERE customer_id IN ['1','2','3','4','5']
GROUP BY entry_id
HAVING argMax(deleted_at, recorded_at) IS NULL
)
实际结果:
截图

错误日志
无错误日志
-->
版本信息
应用版本/分支： v 1.8.3
部署方式：Docker

明天看一下，应该是正则匹配漏了

是需要最新的版本吗？

先不用美化试下，后面再优化下正则

多谢。

repo: hhyo/Archery


text:
HHH-17717 Add semicolon(;) to hql separators

https://hibernate.atlassian.net/browse/HHH-17717

Thanks!

authors: beikov qinxi

repo: hibernate/hibernate-orm


text:
Keep track of methods that are copies of the ORM ones with an annotation

Sometimes we have to duplicate some methods from ORM because their scope makes them invisible to us. It would be nice to have an annotation to keep track of these methods so that we can update ORM when possible and won't forget about it.
Does it make sense? Not sure about the name.

I would say in cases like this we should make the patch for core right away, even if it's not immediately integrated.

Fair enough.
I was trying to be lazy :)

authors: DavideD gavinking

repo: hibernate/hibernate-rx


text:
HSEARCH-3243 Implement safer type checking for bridge type parameters

https://hibernate.atlassian.net/browse/HSEARCH-3243

Looks good. +1 to merge ti

Merged, thanks

repo: hibernate/hibernate-search


text:
🛑 Kiwi Farms Forum is down

In a258012, Kiwi Farms Forum (https://kiwifarms.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kiwi Farms Forum is back up in 1fb44a0 after 29 minutes.

repo: hickoryhouse/kf


text:
🛑 Kiwi Farms Forum is down

In 5c147e3, Kiwi Farms Forum (https://kiwifarms.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kiwi Farms Forum is back up in 96be274 after 4 minutes.


text:
🛑 Kiwi Farms Forum is down

In 25984b6, Kiwi Farms Forum (https://kiwifarms.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kiwi Farms Forum is back up in 478cf07 after 7 minutes.


text:
The testing suite does not run (on Windows)

How to reproduce:

Install node.js.
From highlight.js' root directory, run npm install, then npm test.
The following messages appear:

> highlight.js@10.2.1 test D:\Projekte\highlight.js_parser\highlight.js
> mocha test

Error: Cannot find module '../build'
Require stack:
- D:\Projekte\highlight.js_parser\highlight.js\test\index.js
- D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\lib\esm-utils.js
- D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\lib\mocha.js
- D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\lib\cli\one-and-dones.js
- D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\lib\cli\options.js
- D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\bin\mocha
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (D:\Projekte\highlight.js_parser\highlight.js\test\index.js:3:14)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.exports.requireOrImport (D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\lib\esm-utils.js:20:12)
    at Object.exports.loadFilesAsync (D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\lib\esm-utils.js:33:34)
    at Mocha.loadFilesAsync (D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\lib\mocha.js:427:19)
    at singleRun (D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\lib\cli\run-helpers.js:156:15)
    at exports.runMocha (D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\lib\cli\run-helpers.js:225:10)
    at Object.exports.handler (D:\Projekte\highlight.js_parser\highlight.js\node_modules\mocha\lib\cli\run.js:366:11)
    at D:\Projekte\highlight.js_parser\highlight.js\node_modules\yargs\lib\command.js:241:49
npm ERR! Test failed.  See above for more details.

#2725 makes me think that this may also have something to do with the fact that I am on Windows (10).
I am running node version v12.18.4 and npm version 6.14.6.

Tests run fine for me on Windows.

Error: Cannot find module '../build'

This means you don't have a build locally. You're going to want to do npm run build_and_test instead of just npm test.

Ah, thanks for the clarification. I guess I didn't give the word "build" in the manual enough wait.
Though the phrasing there

You can use the node build to run the tests in the command line with npm test after installing the dependencies with npm install.

does make it sound like I want to run npm test right after npm install. May be worth a clarification.

@schtandard If you can think of a nice way to clarify doc PR please. :)

authors: allejo joshgoebel schtandard


text:
Fix change added in the wrong version

In the PR #1771, I added my changes in the already released version 9.13.1 instead of master.
I'm sorry for that, this fixes that mistake.

Hi @l-vo, whould you mind changing #1883 instead of a separate PR?

@egor-rogov done :)

authors: egor-rogov l-vo


text:
Bump version for publish

This PR just bumps the version so we can do a publish with the recent changes (in particular @frangio's fix!).  Basically in asking for review on this I'm just saying, hey, this is a good time to do a publish, right? :)
...and then hopefully we should be able to leave this alone until Solidity 0.6.0 hits...

A release sounds good, but I'm not sure who has permissions to publish the package.

Fortunately, I already got those permissions earlier!  Just didn't have permission to commit until now.  :)

(So, to be clear, that's an approval then? :) )

Actually, the version in package-lock.json still needs to be updated. Consider using npm version for bumping since it takes care of that automatically.

I see, I was unaware, will do!

OK, lockfile is updated, merging!  Let's get this thing released! :)

authors: frangio haltman-at

repo: highlightjs/highlightjs-solidity

license: WTFPL


text:
Download file from baidu

Hi, thanks for the great repo!
I want to try the LGPMA-table recognition model but can not download the model weight from Baidu. Can you upload the pre-trained model on google drive?
Thanks in advance!

It has already been uploaded on google drive, and you may find the link in the readme.

ah thank you!

@qiaoliang6
Can you also upload the train data in json format to google drive? From this page: https://github.com/hikopensource/DAVAR-Lab-OCR/tree/main/demo/table_recognition/lgpma#preparing-dataset
Thank you!

@qiaoliang6
Can you also upload the train data in json format to google drive? From this page: https://github.com/hikopensource/DAVAR-Lab-OCR/tree/main/demo/table_recognition/lgpma#preparing-dataset
Thank you!

The datalist has been uploaded in the google drive link.

Thank you!

repo: hikopensource/DAVAR-Lab-OCR


text:
Add API for markAsSaved

Allow programmatically a user to save articles for later.

I extended the object with this:
// Add custom read later method
f.markSaved = (ids, cb) => {
  if (typeof ids === 'string') {
    ids = [ids]
  }
  return f._request(cb, '/v3/markers', 'POST', {
    entryIds: ids,
    type: 'entries',
    action: 'markAsSaved'
  })
};

repo: hildjj/node-feedly


text:
Having several binaries binding to the same src

Hello,
Nice work with the tool, it's really helping me.
I was wondering how (if) you deal with having more than one Excel binary (.xlsm) linked to the same src files? I'll explain my case.
I have a couple of files that will be using the same libraries. I think of put them on the same root folder, and when I export/import the code, they would both point to the same subdirectory (that would be ./src/ instead of ./src/filename.xlsm/)
Thanks,
Mauricio

The code can easily be modified to do as you suggest. However, this is not a recommended way for modules to share code. Eventually all the excel binaries will end up with duplicate copies of the same code.
It's better to move the code to a separate (new) addin and let both excel books reference that addin.

authors: hilkoc mauriciojxs

repo: hilkoc/vbaDeveloper


text:
Error running custom_cartpole.py

Error observed when running stable_baselines\deepq\experiments\custom_cartpole.py as is
ValueError: Cannot feed value of shape (32,) for Tensor 'deepq/double_q/input/Ob:0', which has shape '(?, 4)'

above error is observed when the following line is called (line 82, custom_cartpole.py), it usually gets there in around 50 episodes (1000 steps)

train(obses_t, actions, rewards, obses_tp1, dones, np.ones_like(rewards))

What's causing this?
the train function call in line 82 of the file expects another parameter for double_q where it is instead getting the dones
Why?
The default value of double_q is initialized as True in the build_train function in stable_baselines\deepq\build_graph.py (line 323)

def build_train(q_func, ob_space, ac_space, optimizer, sess, grad_norm_clipping=None,
                gamma=1.0, double_q=True, scope="deepq", reuse=None,
                param_noise=False, param_noise_filter_func=None, full_tensorboard_log=False)

and no value is passed for double_q when the above is called in custom_cartpole.py (line 31)

act, train, update_target, _ = deepq.build_train(
        q_func=CustomPolicy,
        ob_space=env.observation_space,
        ac_space=env.action_space,
        optimizer=tf.train.AdamOptimizer(learning_rate=5e-4),
        sess=sess
)

The Fix
passing False for double_q when calling deepq.build_train in custom_catrpole.py fixes the issue observed above and does not raise errors when train is called

act, train, update_target, _ = deepq.build_train(
        q_func=CustomPolicy,
        ob_space=env.observation_space,
        ac_space=env.action_space,
        optimizer=tf.train.AdamOptimizer(learning_rate=5e-4),
        sess=sess,
        double_q=False
)

System Info

How the library was used : from source on Windows10, libraries installed using Conda, Code ran and edited in Visual Studio Code
GPU model and configuration : GeForce GTX 1050 mobile
Python version : 3.7.6
Tensorflow version : 1.14.0

I have the fix on my fork of the branch, can raise a Pull Request if required.

Looks like a duplicate of #810 .
As mentioned, I would be rather in favor of deleting that file (and the mentions of that file in the doc) as it is an old file that is not apparently keep up to date and that does not follow the recommended way of using SB.

@araffin I made the discussed changes here. Before I raise a PR, I would like to know which section of the changelog would these fit the best? deprecation or bug-fixes or breaking changes?

@aakash94
I would go with "documentation" section, as this has no relation to functional code side. Just an example of how to use the underlying things (but which was not kept up to date).

authors: Miffyli aakash94 araffin

repo: hill-a/stable-baselines


text:
Percent Identity Values

Dear Dr.@MichaelHiller,
I am trying to use ForwardGenomics to estimate the divergence of CNE. I have constructed the ancestor sequences by PRANK. Next, I will estimate the percent identity between extant species and ancestors, but I am not sure whether last common ancestor of species or oldest (root) ancestors should be used here? Additionally, does the GLS or branch method will be better to estimate the divergence between species with different phenotypes.
Looking forward to your reply. Thanks.
Ran

Hi Ran,
I think this would be helpful for you.
Best,
Duo

Hi Duo,
Thanks for your reply. It's really helpful.
Best,
Ran

Dear Ran,

In principle, the accuracy of reconstructing an internal node in a tree should be higher if you do have an outgroup species (in particular, this can be problem if you have an insertion or deletion inside your element in one of the basal branches, as reconstructing the indel history is not trivial). Thus, if you do have a proper outgroup, then I would recommend to use it (e.g. to analyze Vitamin C loss where all trait loss mammals are boreoeutherians, one can use an afrotherian mammal as a proper outgroup).
Having said this, Prank (which we use for ancestral seq reconstruction) also reconstructs the root sequence. So if you don't really have a proper outgroup, then technically this is not a problem.
In this case, please set the -requireNoOutgroup parameter when calling GetGlobalAndLocalPercentID.perl
Let me know if this doesn't work.

In our MBE 2016 paper, we found the branch method to be often more powerful. So I would generally recommend this. Nevertheless, you can also run both GLS and branch method and intersect or get the union of the results.
Michael

Dear Dr.@MichaelHiller,
Thank you for your reply!
I will try it and give you feedback later!
Thanks again,
Ran

authors: MichaelHiller Ran-tian xieduo7

repo: hillerlab/ForwardGenomics


text:
🛑 Frontend is down

In fe4d2fb, Frontend (https://beta.medusadistribution.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Frontend is back up in d8daa98.


text:
add: Gnome Sort

Describe the algorithm/code
Issue Description : Gnome Sort, also known as "Stupid Sort," is a simple sorting algorithm that repeatedly swaps adjacent elements to move them to their correct positions. It's similar to Bubble Sort but has a more naive approach. Gnome Sort is not efficient for large datasets and is primarily used for educational purposes to illustrate basic sorting concepts rather than practical sorting applications.
Hi there 👋
I'm excited to contribute to Hacktoberfest 2023, and I'd like to work on this issue. It looks like a great opportunity to learn and contribute to the project.
Please assign this issue to me, and I'll start working on it right away. If you have any specific instructions or guidelines, please let me know, and I'll make sure to follow them.
Thanks a lot for considering my request!
Best regards,
Prateek Sethi
Do you want to work on this feature?

[X] I am willing to implement this feature.

Hi @prateekpr17 !
Similarly like #57, this issue too seems like just for an education purpose and not very much practical or implementable in real life tasks.


text:
dice

Hello, how to evaluate dice after the test?

Hello,
You can use the method in https://github.com/himashi92/VT-UNet/blob/main/utils.py#L141 to calculate dice score.


text:
Add bottom_param option

Hello @himoto !
Here is my idea for the bottom_param option. It is a simple boolean argument, where False provides zero for the bottom parameter, as you described.
A raise catch is also included, which clarifies a potential error that the user might experience (I experienced it) depending upon the applied dataset.

Hello @himoto !
Yes, your edit is correct. Thank you for reviewing it :)
Andrew

@freiburgermsu, I have fixed the code above but we still need to resolve an IndexError

FAILED test/test_fitting.py::test_fitting - IndexError: tuple index out of range

Hello @himoto!
I resolved the bug in my latest push. The curve_fit function was essentially interpreting the bottom_param argument as being one of the parameters that must be calibrated. The location of redefining the bottom parameter was relocated downstream of this process to not interfere with it.
Thank you :)
Andrew

Hi @freiburgermsu, thanks for resolving the issue.
If I understand your code correctly, what you are trying to do is to assign 0 to bottom parameter after parameter fitting.
# here
if not bottom_param:
    popt[1] = 0

This does not look nice to me because there might be more appropriate parameter values for top, nH, or ec50 when bottom is fixed to 0.
In my opinion, the bottom parameter must be fixed to 0 during regression when bottom_param=True.
Below is my idea. Currently, param[1] is assigned to bottom even when bottom_param=True.
def _equation(self, x: np.ndarray, *params) -> np.ndarray:
    self.top = params[0]
    self.bottom = params[1]
    self.ec50 = params[2]
    self.nH = params[3]

    return self.bottom + (self.top - self.bottom) * x ** self.nH / (
        self.ec50 ** self.nH + x ** self.nH
    )

I think this should be the following:
def _equation(self, x: np.ndarray, bottom_param: bool, *params) -> np.ndarray:
    self.top = params[0]
    self.bottom = params[1] if bottom_param else 0
    self.ec50 = params[2]
    self.nH = params[3]

    return self.bottom + (self.top - self.bottom) * x ** self.nH / (
        self.ec50 ** self.nH + x ** self.nH
    )

Then, the estimated parameter values are based on the assumption that bottom=0.
I would be happy if you could give me comments on this plan.
Many thanks,
Hiroaki

@himoto This may cause the same IndexError as before, since the error was originally caused by similar logic
self.bottom = 0
if bottom_param:
   self.bottom = params[1]

to what you propose. Essentially, the additional bottom_param argument in the _equation() function is incorrectly interpreted by Python to be the first entry of the params arguments, and thus an IndexError is launched at self.nH = params[3], since len(params)=3 at this point instead of 4.
The solution may be to simply define a second _equation_bottom() function for where the user desires the bottom parameter, and then remove the bottom parameter from the _equation() function where the user does not want the bottom parameter. The bottom_param argument would be passed through the _get_params() function, and then the proper equation function would be executed to acquire the proper set of parameters.

@freiburgermsu, thanks for the detailed explanation, now I understand the exact cause.
The arguments of _equation(...) must be (self, x: np.ndarray, *params) and we must not add bottom_param here.

The solution may be to simply define a second _equation_bottom() function for where the user desires the bottom parameter, and then remove the bottom parameter from the _equation() function where the user does not want the bottom parameter.

Yes, this can resolve the issue, but what about moving bottom_param argument to __init__()?
Then, we can call bottom_param via self and do not need to create another equation function:
def _equation(self, x: np.ndarray, *params) -> np.ndarray:
    self.top = params[0]
    self.bottom = params[1] if self.bottom_param else 0
    self.ec50 = params[2]
    self.nH = params[3]

    return self.bottom + (self.top - self.bottom) * x ** self.nH / (
        self.ec50 ** self.nH + x ** self.nH
    )

@himoto Yes! This is a brilliant work-around.

@freiburgermsu thank you for your comments and updates!

authors: freiburgermsu himoto

repo: himoto/hillfit


text:
Fixes incorrect cpuid call

Also moves struct cpuid_t from cpuid.hpp to cpuid.cpp as it's only used internally
--
@fwsGonzo also mentioned:

honestly, we wanted to redo the whole cpuid thing for a while now
its less than a days work to do it right, and there are a few other parts of our code that will need it, such as kvm paravirtual stuff
but no one is working on it right now

If I could get some input on how you want it done (does it need to support all cpu features?) and other requirements (can a hypervisor change cpuid during runtime / after boot, or can one assume that the result of a cpuid call is always the same?), then I could probably get it done.
I got a few ideas of how to implement it. Export an enum class with all features enum class Feature { SSE3, FPU, ... }; and a single static function bool hasFeature(Feature f);. Internally in cpuid.cpp you'll have a mapping from Feature to FeatureInfo, where FeatureInfo describes which registers and values are to be used when calling cpuid and which registers and bitmask to use when retrieving the result. cpuid.cpp can also make use of a cache to avoid calling cpuid multiple times with same input, given that a hypervisor is not allowed to change the result of cpuid during runtime.

Can one of the admins verify this patch with one of the following commands:

"test please" for a one time test run
"ok to test" to accept latest and future commits on this pull request for testing
"add to whitelist" to add the author to the whitelist

Using enum class sounds perfect :+1:

authors: fwsGonzo gurka jenkins-includeos

repo: hioa-cs/IncludeOS


text:
Converting a .png into a .mind

I need a piece of code js to connect to your compiled code and convert my image to a mind extension image.

start here:
https://github.com/hiukim/mind-ar-js/blob/master/examples/image-tracking/compile.html

authors: eltren zjafarpishe

repo: hiukim/mind-ar-js


text:
highlight.js for themeStyle=dark & modal fixes

Default highlight.js theme has light background that is not that nice for dark theme. Probably, tomorrow-night is not the best option in visual terms, I've just picked random dark theme as it was better than default.
To make it possible I had to disable rule .markdown code {background-color:#f4f1bb; color:#111} in dark-style.css as it specifies really light background for code blocks in dark theme. I'm unsure that it's expected style, is it? It's rendered that way:

Thank you @darkk! This brought up a couple important issues.
I agree with your changes to the modals.
Since Hugo 0.28, Chroma for syntax highlighting has been built in. This has advantages in that no highlight js is required to easily pick a highlight theme. I've made changes to the config that lets you choose a theme using pygmentsStyle (Chroma and Pygments share config options).
Because of a conflict with Bulma (which I use to build some of the css) Chroma is not affecting the code. Temporarily I've set some variables to make those bits more amenable to the light/dark theme.

@hivickylai thank! Yes, I'm aware of pygments / chroma but I thought that highlight.js is a conscious choice based on some limitation or something else, but I've not managed to understand the reason for that from minified CSS :)
Thanks for sharing!

authors: darkk hivickylai

repo: hivickylai/hugo-theme-introduction


text:
模型评估/预测时，Lora方法正常，基于P-Tuning的方法提示Can't find 'adapter_config.json' at 'path_to_sft_checkpoint'

基于P-Tuning的方法训练完成后文件夹中不包含adapter_config.json

要手动添加 --finetuning_type p_tuning 参数。

已解决，非常感谢

repo: hiyouga/ChatGLM-Efficient-Tuning


text:
【Enoch/llama-65b-hf】【lora微调】【do_predict】deepspeed训练后使用python src/train_bash.py 命令预测报错

报错如下
Traceback (most recent call last):
File "/home/huawei/workspace/LLaMA-Efficient-Tuning-main/src/train_bash.py", line 45, in
main()
File "/home/huawei/workspace/LLaMA-Efficient-Tuning-main/src/train_bash.py", line 12, in main
run_sft(model_args, data_args, training_args, finetuning_args)
File "/home/huawei/workspace/LLaMA-Efficient-Tuning-main/src/llmtuner/tuner/sft/workflow.py", line 89, in run_sft
predict_results = trainer.predict(dataset, metric_key_prefix="predict", **gen_kwargs)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/trainer_seq2seq.py", line 216, in predict
return super().predict(test_dataset, ignore_keys=ignore_keys, metric_key_prefix=metric_key_prefix)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/trainer.py", line 3010, in predict
output = eval_loop(
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/trainer.py", line 3123, in evaluation_loop
loss, logits, labels = self.prediction_step(model, inputs, prediction_loss_only, ignore_keys=ignore_keys)
File "/home/huawei/workspace/LLaMA-Efficient-Tuning-main/src/llmtuner/tuner/sft/trainer.py", line 40, in prediction_step
loss, generated_tokens, labels = super().prediction_step(
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/trainer_seq2seq.py", line 282, in prediction_step
generated_tokens = self.model.generate(**inputs, **gen_kwargs)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, kwargs)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/generation/utils.py", line 1588, in generate
return self.sample(
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/generation/utils.py", line 2642, in sample
outputs = self(
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in call_impl
return forward_call(*args, **kwargs)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/accelerate/hooks.py", line 165, in new_forward
output = old_forward(*args, **kwargs)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 806, in forward
outputs = self.model(
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in call_impl
return forward_call(*args, **kwargs)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 643, in forward
position_ids = position_ids.view(-1, seq_length).long()
**### RuntimeError: shape '[-1, 271]' is invalid for input of size 568
运行指令如下
NCCL_SOCKET_IFNAME=eth1 NCCL_DEBUG=INFO  python src/train_bash.py       --stage sft     --model_name_or_path  model/llama65b/     --do_predict    --dataset alpaca_zh     --finetuning_type lora   --checkpoint_dir path_to_sft_checkpoint_llama65B/   --output_dir path_to_predict_result       --per_device_train_batch_size 1    --prompt_template default  --lora_target W_pack   --predict_with_generate  --max_samples 20
检查点已加载
08/07/2023 00:20:55 - INFO - llmtuner.tuner.core.adapter - Loaded fine-tuned model from checkpoint(s): path_to_sft_checkpoint_llama65B/
完整输出日志如下：
llama65B模型预测报错完整日志20230807.docx

能不能更新一下代码

收到

更新代码后，报错如下：
报错：
A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
Human: 列举好的网站设计的三个特征。
Assistant:
Traceback (most recent call last):
File "/home/huawei/workspace/LLaMA-Efficient-Tuning/src/train_bash.py", line 14, in
main()
File "/home/huawei/workspace/LLaMA-Efficient-Tuning/src/train_bash.py", line 5, in main
run_exp()
File "/home/huawei/workspace/LLaMA-Efficient-Tuning/src/llmtuner/tuner/tune.py", line 21, in run_exp
run_sft(model_args, data_args, training_args, finetuning_args, callbacks)
File "/home/huawei/workspace/LLaMA-Efficient-Tuning/src/llmtuner/tuner/sft/workflow.py", line 41, in run_sft
trainer = Seq2SeqPeftTrainer(
File "/home/huawei/workspace/LLaMA-Efficient-Tuning/src/llmtuner/tuner/core/trainer.py", line 28, in init
super().init(**kwargs)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/trainer_seq2seq.py", line 56, in init
super().init(
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/trainer.py", line 499, in init
self._move_model_to_device(model, args.device)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/trainer.py", line 741, in _move_model_to_device
model = model.to(device)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/transformers/modeling_utils.py", line 1900, in to
return super().to(*args, **kwargs)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1145, in to
return self._apply(convert)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
[Previous line repeated 2 more times]
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/torch/nn/modules/module.py", line 820, in _apply
param_applied = fn(param)
File "/home/huawei/anaconda3/envs/llama/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1143, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 344.00 MiB (GPU 0; 15.78 GiB total capacity; 14.90 GiB already allocated; 117.44 MiB free; 14.91 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

repo: hiyouga/LLaMA-Efficient-Tuning


text:
Does llama_factory support concurrency? I can't seem to find the documentation.

Reminder

[X] I have read the README and searched the existing issues.

System Info
CUDA_VISIBLE_DEVICES=0,1 API_PORT=18000 llamafactory-cli api examples/inference/llama3_vllm.yaml
Reproduction
CUDA_VISIBLE_DEVICES=0,1 API_PORT=18000 llamafactory-cli api examples/inference/llama3_vllm.yaml
Expected behavior
I need some documentation on concurrency configuration
Others
No response

we have not concurrency configuration now, you can edit src/llamafactory/vllm_engine.py and src/api/.py for your custom needs.

repo: hiyouga/LLaMA-Factory


text:
webui训练GLM4-9B-chat模型时候报错，数据集少的时候没问题，一多就报错

Reminder

[X] I have read the README and searched the existing issues.

System Info

llamafactory version: 0.8.3.dev0
Platform: Windows-10-10.0.19045-SP0
Python version: 3.10.8
PyTorch version: 2.3.1+cu121 (GPU)
Transformers version: 4.42.3
Datasets version: 2.20.0
Accelerate version: 0.32.1
PEFT version: 0.11.1
TRL version: 0.9.6
GPU type: NVIDIA GeForce RTX 2080 Ti

Reproduction
Traceback (most recent call last):
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\venv\lib\site-packages\multiprocess\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\venv\lib\site-packages\datasets\utils\py_utils.py", line 678, in _write_generator_to_queue
for i, result in enumerate(func(**kwargs)):
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\venv\lib\site-packages\datasets\arrow_dataset.py", line 3552, in _map_single
batch = apply_function_on_filtered_inputs(
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\venv\lib\site-packages\datasets\arrow_dataset.py", line 3421, in apply_function_on_filtered_inputs
processed_inputs = function(*fn_args, *additional_args, **fn_kwargs)
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\src\llamafactory\data\aligner.py", line 123, in convert_sharegpt
if dataset_attr.system_tag and messages[0][dataset_attr.role_tag] == dataset_attr.system_tag:
IndexError: list index out of range
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "D:\AIchatgpt\venv\Scripts\llamafactory-cli.exe_main.py", line 7, in
sys.exit(main())
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\src\llamafactory\cli.py", line 111, in main
run_exp()
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\src\llamafactory\train\tuner.py", line 50, in run_exp
run_sft(model_args, data_args, training_args, finetuning_args, generating_args, callbacks)
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\src\llamafactory\train\sft\workflow.py", line 46, in run_sft
dataset = get_dataset(model_args, data_args, training_args, stage="sft", **tokenizer_module)
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\src\llamafactory\data\loader.py", line 174, in get_dataset
all_datasets.append(load_single_dataset(dataset_attr, model_args, data_args, training_args))
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\src\llamafactory\data\loader.py", line 140, in load_single_dataset
return align_dataset(dataset, dataset_attr, data_args, training_args)
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\src\llamafactory\data\aligner.py", line 233, in align_dataset
return dataset.map(
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\venv\lib\site-packages\datasets\arrow_dataset.py", line 602, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\venv\lib\site-packages\datasets\arrow_dataset.py", line 567, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\venv\lib\site-packages\datasets\arrow_dataset.py", line 3253, in map
for rank, done, content in iflatmap_unordered(
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\venv\lib\site-packages\datasets\utils\py_utils.py", line 718, in iflatmap_unordered
[async_result.get(timeout=0.05) for async_result in async_results]
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\venv\lib\site-packages\datasets\utils\py_utils.py", line 718, in
[async_result.get(timeout=0.05) for async_result in async_results]
File "C:\Users\Administrator\PycharmProjects\LLaMA-Factory\venv\lib\site-packages\multiprocess\pool.py", line 774, in get
raise self._value
IndexError: list index out of range
Expected behavior
No response
Others
No response

我用的当前能下载的最新的llamafactory版本，遇到了同样的问题
[rank0]: Traceback (most recent call last):
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/MEIJU/Qwen2-VL/LLaMA-Factory/src/llamafactory/launcher.py", line 23, in
[rank0]:     launch()
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/MEIJU/Qwen2-VL/LLaMA-Factory/src/llamafactory/launcher.py", line 19, in launch
[rank0]:     run_exp()
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/MEIJU/Qwen2-VL/LLaMA-Factory/src/llamafactory/train/tuner.py", line 50, in run_exp
[rank0]:     run_sft(model_args, data_args, training_args, finetuning_args, generating_args, callbacks)
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/MEIJU/Qwen2-VL/LLaMA-Factory/src/llamafactory/train/sft/workflow.py", line 51, in run_sft
[rank0]:     dataset_module = get_dataset(template, model_args, data_args, training_args, stage="sft", **tokenizer_module)
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/MEIJU/Qwen2-VL/LLaMA-Factory/src/llamafactory/data/loader.py", line 266, in get_dataset
[rank0]:     dataset = _get_preprocessed_dataset(
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/MEIJU/Qwen2-VL/LLaMA-Factory/src/llamafactory/data/loader.py", line 203, in _get_preprocessed_dataset
[rank0]:     dataset = dataset.map(
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/conda_envs/qwen2_vl/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 602, in wrapper
[rank0]:     out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/conda_envs/qwen2_vl/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 567, in wrapper
[rank0]:     out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/conda_envs/qwen2_vl/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3259, in map
[rank0]:     for rank, done, content in iflatmap_unordered(
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/conda_envs/qwen2_vl/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 718, in iflatmap_unordered
[rank0]:     [async_result.get(timeout=0.05) for async_result in async_results]
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/conda_envs/qwen2_vl/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 718, in
[rank0]:     [async_result.get(timeout=0.05) for async_result in async_results]
[rank0]:   File "/mnt/gemininjceph2/geminicephfs/wx-mm-spr-xxxx/zhaochang/conda_envs/qwen2_vl/lib/python3.10/site-packages/multiprocess/pool.py", line 774, in get
[rank0]:     raise self._value
[rank0]: IndexError: list index out of range
而且我检查了我的数据集，里面的视频均存在且有效
请问是因为什么原因呢，我该如何修改


text:
Add --json parameter to teslacmd which makes command output in json format

With json output single values are easy to parse on command line, using for instance jq.
Example:
teslacmd --id XXXXXXXXXXXX -i --json | jq '.in_service'
false

Useful addition. Thanks your for the PR and sorry it took me so long to accept your pull request.

Hmm, I think you didn't accept the PR though, but just closed it instead.

authors: hjespers kler

repo: hjespers/teslams


text:
Build error when trying to run our app with this package

ppo/admin: Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("/home/runner/work/revvin-frontend-v2/revvin-frontend-v2/apps/admin/src/index.tsx")'
@mortgagehippo/admin: Caused by:
@mortgagehippo/admin:     0: failed to invoke `swc-plugin-add-display-name` as js transform plugin at swc-plugin-add-display-name
@mortgagehippo/admin:     1: RuntimeError: unreachable

I think this issue might be similar to this closed issue: https://github.com/hjkcai/swc-plugin-add-display-name/issues/2

I think the most possible problem is swc has breaking changes in recent versions.
Could you please try the swc version exactly the same as this plugin? "@swc/core": "1.3.81".
If it is, I will upgrade all the dependencies and publish a new version.

Yep, must be some breaking changes in swc. We had it working with "@swc/core": "1.3.102",, getting the same error after bumping to latest ("1.4.2")

The plugin code won't compile if I simply update the dependencies. There are More Breaking changes than I am expected. I need some more investigations into swc's source code.

I have published version 0.4.0 of this plugin. Please help me test if it works. Thanks!

authors: eallegrucci emyk hjkcai

repo: hjkcai/swc-plugin-add-display-name


text:
🛑 Griffo is down

In a7cb217, Griffo (https://www.griffo.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Griffo is back up in b5f8a0c after 13 minutes.

repo: hjstrauss/MonitorMySites


text:
🛑 HJStrauss is down

In d9bd7a1, HJStrauss (https://www.hjstrauss.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: HJStrauss is back up in 727ad53 after 9 minutes.


text:
🛑 HJStrauss is down

In c62bee4, HJStrauss (https://www.hjstrauss.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: HJStrauss is back up in 70b102b after 19 minutes.


text:
🛑 HJStrauss is down

In b1ba06d, HJStrauss (https://www.hjstrauss.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: HJStrauss is back up in f3731d3 after 9 minutes.


text:
🛑 Reime ohne Sinn und Verstand is down

In 8f45d5e, Reime ohne Sinn und Verstand (https://www.reimeohnesinnundverstand.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Reime ohne Sinn und Verstand is back up in 8d0f183 after 18 minutes.


text:
bump: :tools magit

magit/forge@6e8ab6c67e3b -> magit/forge@6e8ab6c67e3bf97bc47e9e2a
To fix https://github.com/magit/forge/issues/414

Thanks for the help!

authors: catap hlissner

repo: hlissner/doom-emacs


text:
About doom-nord dark theme

This is query regarding this line, https://github.com/hlissner/emacs-doom-themes/blob/master/themes/doom-nord-theme.el#L54
Is there any specific reason using darkish color ("#2d2d2d") for Foreground when terminal is term-256 supported?
This setting give me all darkish color when I am using my emacs as terminal one.

Good catch. This appears to have been an oversight. As of d385615 this should be fixed. Let me know if that isn't the case and I'll reopen this.
Thanks for letting me know!

authors: hanmoi-choi hlissner

repo: hlissner/emacs-doom-themes


text:
opera-light: contrast problem with childframe

I use doom and enabled company and ivy to use childframes:
(doom! :completion
       (company
        +childframe)      ; the ultimate code completion backend
       (ivy               ; a search engine for love and life
        +childframe
        +icons
        +fuzzy))

When I tried out opera-light, I can't make out what line I am currently on in. In the screenshot below I have the first row selected (I pressed enter after taking the screenshot to see what line I was one).

@alexandergraul are you using ivy-posframe?

Yes, that is what doom installs with ivy +childframe.

Sorry, I forgot about this. It really easy to solve


text:
Mk/images step

Passing the image to the preview step proved to be a real hassle post-Android N. You have to pass the file URI because the bitmap is too big (even after compression). But you have to use FileProvider to get the file URI when you take a photo with the camera, and that is a lot of code changes that even I don't feel super confident about. I don't want to throw a wrench in things, but I feel like if we simplify the layout to put the edittexts on top of the image and don't have a separate preview activity, it'll be easier to teach.

Thanks for the heads up - let's chat tomorrow morning. I have made a lot of changes to the flow of the lesson plan for Day 2. We can work this out.

authors: hlupico mollyrand

repo: hlupico/meme-maker


text:
fixed safari, card width issue.

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #48
Test URLs:

Before: https://main--servicenow--hlxsites.hlx.live/blogs/category/company-news
After: https://--servicenow--hlxsites.hlx.live/

in safari

@bala-servicenow this fix is breaking the sidebar cards and the ones from the homepage.
please check also on safari:

https://issue48--servicenow--hlxsites.hlx.live/blogs
https://issue48--servicenow--hlxsites.hlx.live/blogs/category/company-news

Since the blog list is inheriting the CSS from the cards, but has another file where there are more specific CSS rules, maybe you can apply a width fix in: https://github.com/hlxsites/servicenow/blob/main/blocks/blog-list/blog-list.css

authors: andreituicu bala-servicenow

repo: hlxsites/servicenow


text:
CIV-0000 create latest update builder

Before creating a pull request make sure that:

[x] commit messages are meaningful and follow good commit message guidelines
[x] README and other documentation has been updated / added (if needed)
[x] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link
Change description
Create class latestUpdateBuild to make more easy the creating lastUpdate screens
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

are there any tests needed for these changes? either for the view of the screen depending on the if's or for the js methods added?

are there any tests needed for these changes? either for the view of the screen depending on the if's or for the js methods added?
Yes, I added the unit test.

authors: LeonardoPalmeiro kurt-uk

repo: hmcts/civil-citizen-ui


text:
pip-6959 - Created api util - use of the api to gather data for each …

…controllers and actions - removed mock data - removed logic of filtering and ordering data - added mock data for testing - refactor tests
Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link
https://tools.hmcts.net/jira/browse/PUB-659
Change description
removed mocks data - added api request util - refactor tests
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No

Conflicting files
src/test/unit/controllers/SearchController.test.ts

authors: commitBlob marcogagliardi

repo: hmcts/pip-frontend


text:
tests for lib http

Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No

would suggest keeping the file same consitency? errorConstants.spec.ts instead of error-const.spec.ts?

authors: fazanki frontr-uk

repo: hmcts/rpa-jui-webapp


text:
RWA-1692-task types-unhappy-path

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/RWA-1692
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[X] No

not required handled by https://github.com/hmcts/wa-task-management-api/pull/846

repo: hmcts/wa-task-management-api


text:
Configuration#1: Step#1:  simulating alpha_S=0.2, matter: q_0=1 | matterlbt: q_0=1.5: matter06

run the simulation with the above config by jetscape,
transfer the final state hadron to the related directory named as config-XX-final-state-hadrons
after doing step1 on all 12 simulations go to step 2 for the configurationX

noted in the excel for being organized in the overleaf


text:
Help needed, want to autostart lirc2mqtt.

Hello,
I'm working on a home automation system with a raspberry pi as a hub for a relay and an ir transmitter using lirc, planning to control it all with openhab running on my server.
After searching quite a bit for a way to interact with lirc via openhab or mqtt I found your code and tried it.
It works great, I'm still testing my code and hardware but so far so good, I can send mqtt commands to send IR signals and control my devices. Thank you.
The only thing I'm not able to do it's start lirc2mqtt at boot, I was planning on using rc.local just because I don't need anything more, I'm already using it to subscribe to a mqtt topic for other devices. Do you have any advice?
Thanks again for your work.

Hi,
I'm using PM2 for handling my node processes, but there are many more way to to do this. Take a look here: http://stackoverflow.com/questions/4018154/node-js-as-a-background-service
Regards,
Sebastian

Thanks, that was usefull. I will try the windows option.
In linux I eventually succeded with adding it to rc.local, I had a bad line before the one for lirc2mqtt so lirc2mqtt wasn't executing.
Thanks.

authors: hobbyquaker masterxilef


text:
monomial equality constraint does not raise units error

In [1]: from gpkit import Variable

In [2]: x = Variable("x", "ft")

In [3]: y = Variable("y")

In [4]: x == y  # should error!!
Out[4]: gpkit.MonomialEquality(x = y)

In [5]: x >= y
(long error traceback omitted)
ValueError: constraints must have the same units on both sides: 'None' and '1 foot' can not be converted into each other.

Add unit test

Oops pushed this to master by mistake D:

(38f012d4e214fbff7b95011501b790b7be053d42) 👍

authors: bqpd whoburg

repo: hoburg/gpkit


text:
Remove logos from post list and only show them in details view

Reason (Why?)
The logo of the website offering the post decimates the space of the title in a list item, especially in the mobile view. Moreover after crawling new websites the sizes of the logos might be different and hard to handle.
Solution (What?)
The logos in the list items should be removed. The logos in the details view could be removed, too, or it must be ensured that they don't cut off the title.
Out of scope
None
Relation to other Issues
None
Acceptance criteria

No logos in the post list
No logos in details view or logos that don't cut off titles

We have decided to leave out logos. So:

Remove from data model
Do not set in backend
Do not use anywhere in frontend

Von: DianaPankratz notifications@github.com
Gesendet: Sonntag, 29. November 2020 13:17
An: hochschule-darmstadt/einander-helfen einander-helfen@noreply.github.com
Cc: Subscribed subscribed@noreply.github.com
Betreff: [hochschule-darmstadt/einander-helfen] Remove logos from post list and only show them in details view (#189)
Reason (Why?)
The logo of the website offering the post decimates the space of the title in a list item, especially in the mobile view. Moreover after crawling new websites the sizes of the logos might be different and hard to handle.
Solution (What?)
The logos in the list items should be removed. The logos in the details view could be removed, too, or it must be ensured that they don't cut off the title.
Out of scope
None
Relation to other Issues
None
Acceptance criteria

No logos in the post list
No logos in details view or logos that don't cut off titles

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/hochschule-darmstadt/einander-helfen/issues/189 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYWHS5HBZLENDRSML63YKTSSI3S3ANCNFSM4UGPCGZA .  https://github.com/notifications/beacon/ABYWHSZWM4557JQNB4OG6OLSSI3S3A5CNFSM4UGPCGZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LHAMWFQ.gif

authors: BernhardHumm DianaPankratz

repo: hochschule-darmstadt/einander-helfen


text:
[Question] About handler classes.

How would one implement a handler class to handle only requests with a specific endpoint?
Begin
#include "Main/Main.h"
server.addHandler(new MainHandler());

Main handler.h
#pragma once

#include <Arduino.h>
#include <PsychicHttp.h>

class MainHandler : public PsychicHandler{
    public:
        esp_err_t handleRequest(PsychicRequest *request) override;
    private:
};

Main handler.cpp
#include "Main.h"

esp_err_t MainHandler::handleRequest(PsychicRequest *request){
    // ???
    /*request->on("/",HTTP_GET,[](PsychicRequest *request){
        PsychicFileResponse response(request,db.sysFS,INDEX_PATH,"index/html");
        response.send();
    });*/

    // if( request->uri.indexOf("/settings/") > -1 ){ /* handle it */ } ??
}

There are a couple ways to do this.  Easiest way would be to instantiate your class and add it to the server.  Also the fastest way if its a single endpoint.
MainHandler myhandler();
server.on("/url", HTTP_GET, &myhandler);

If its just responding to a simple request, the server.on("/url", METHOD, requestCallback()) shorthand will internally create an endpoint, adds a WebHandler and sets the onRequest() callback to the one you passed in.
If its more complicated, you can add it to the list of global handlers.  That is going to be a bit slower since it loops through each one of those and calls canHandle() if no urls match.  You would want to override the canHandle() function with logic to determine what requests it can handler. and then the handleRequest() function to actually handle the response.
MainHandler myhandler();
server.addHandler(&myhandler);

So it would be more complex  like
Settings::Settings(AsyncWebServer *server){
  server->on("/settings/setLocalTime", HTTP_GET, [](AsyncWebServerRequest *request){
   // handle request
  });

  server->on("/settings/setConfig", HTTP_POST, [this](AsyncWebServerRequest *request) {
   // handle request
  });
};

There's definitely multiple ways to do this, it all just comes down to your preferences and your needs.
That code would work perfectly fine, infact its my preferred way for simple requests.  You can also drop the HTTP_GET parameter as it defaults to that.
Settings::Settings(AsyncWebServer *server){
  server->on("/settings/setLocalTime", [](AsyncWebServerRequest *request){
   // handle request
  });

If you have a handler object, you can also pass that instead of a callback:

You could also make your own more generic handler:
PsychicWebHandler handler;
handler.onRequest([](PsychicRequest *request){
   // do common setup stuff here
  if (request->url() == "/settings/foo")
    doSomeStuff();
  else if (request->url() == "/settings/bar")
    doOtherStuff();
  else
    error();

  //clean up and return response->send();
});

server.on("/settings/foo", &handler);
server.on("/settings/bar", &handler);

Wildcards should also be supported:
server.on("/settings/*", &handler);

That is really cool.
But can i pass a class as a handler and deal with requests inside?
Something like this
#include "Settings/Main.h"

SettingsHandler settingsHandler();

void HsHServer::begin() {
    server.on("/settings/*", &settingsHandler);
    server.listen(SERVER_PORT);
}

And handle the requests coming to "/settings/ inside the handler
Settings.h
#pragma once

#include <Arduino.h>
#include <PsychicHttp.h>

class SettingsHandler : public PsychicHandler{
    public:
        esp_err_t handleRequest(PsychicRequest *request) override;
    private:
};

Settings.cpp
esp_err_t SettingsHandler::handleRequest(PsychicRequest *request){
    if (request->url() == "/foo"){

    } else if (request->url() == "/bar"){

    }
    return 0;
}

For this i get an error right now
no instance of overloaded function "PsychicHttpServer::on" matches the argument list

Okay it works with PsychicWebHandler instead of PsychicHandler as a public class

It is really elegant using it like this
#include "Auth/Main.h"
AuthHandler authHandler;
void setup(){
  server.listen(SERVER_PORT);
  server.serveStatic("/", db.sysFS, "/")->setCacheControl(ONE_HOUR_CACHE_TIME);
  server.on("/auth/*", &authHandler);
}

#pragma once

#include <Arduino.h>
#include <PsychicHttp.h>

class AuthHandler : public PsychicWebHandler{
    public:
        esp_err_t handleRequest(PsychicRequest *request) override;
    private:
};

esp_err_t AuthHandler::handleRequest(PsychicRequest *request){
    Serial.printf("[AuthHandler] - %s\n",request->url().c_str());
    if( request->url() == "/auth/getCurrentUser" ){
    }else if( request->url() == "/auth/login" ){
    }
    return 0;
}

authors: hoeken zekageri

repo: hoeken/PsychicHttp


text:
箭头函数

箭头函数的箭头=>之前是一个空括号、单个的参数名、或用括号括起的多个参数名，而箭头之后可以是一个表达式（作为函数的返回值），或者是用花括号括起的函数体（需要自行通过return来返回值，否则返回的是undefined）。
// 箭头函数的例子
()=>1
v=>v+1
(a,b)=>a+b
()=>{
    alert("foo");
}
e=>{
    if (e == 0){
        return 0;
    }
    return 1000/e;
}

箭头函数本身不具备argument 这个类数组对象


text:
Alias for adding + committing

My go-to commit alias.
Usage: $ gac "Initial commit".

Ha, I keep thinking of doing this but never do. Thanks!

authors: holman joecritch

repo: holman/dotfiles