go install and go build: Commands should warn if no binary is produced.

For example, in a directory with file helloWorld.go with the contents of the following:
package hello

import "fmt"

func talk() {
    fmt.Println("Hello World!")
}

go run warns
$ go run helloWorld.go
package command-line-arguments is not a main package

go test warns
$ go test
?   	/helloWorldDir	[no test files]
$ go test helloWorld.go
?   	command-line-arguments	[no test files]

But go install and go build reports nothing.
$ go install helloWorld.go
$

$ go build helloWorld.go
$

And simply doing go install and go build also reports nothing.
$ go install
$

$ go build
$

What I would expect to see is the same warning as go run
$ go install
package is not a main package

$ go build
package is not a main package

The fact that the Go command prints nothing when you run "go build helloWorld.go" doesn't mean that nothing's happening, it just means that there was nothing to report at the end of the build action.  Try running "go build -x" to see what's happening.
In addition, developers run "go build" on non-main packages all the time without any expectation that a binary is going to be produced-- they just want to see if the code still compiles after a change to the source.
People also run builds of non-main packages to gather more info. For example in your hello package perhaps you might want to do a build with "-gcflags=-m" to see what decisions are made by the compiler regarding inlining or escape analysis.

When using GOPATH mode, go install will install a non-main package .a file in $GOPATH/src.  Also, before 1.20, go install of a standard library package would install it in $GOROOT/src.  That said, it's true that not many people use GOPATH mode any more, and presumably people are starting to use 1.20.  A warning from go install for a non-main package might make sense now.
CC @bcmills

go install cmd is useful even though that pattern matches a mix of main and non-main packages. I think the same is true for other patterns.
On the other hand, I think it would make sense for go install to error out completely (not just warn!) if it doesn't actually have anything to install — that is: if the arguments don't match any main packages and the remaining arguments don't have a (GOPATH or GODEBUG=installgoroot=all) install target.

@bcmills would you recommend this as a good first issue for someone looking to contribute?

@anthoturc, I'm honestly not sure. 😅
But if you want to take a look, the entry point for the go install command is the function runInstall in src/cmd/go/internal/work/build.go.


Typos in Chapter on Bayesian Neural Networks [version 2022-02-28]

(Findings due to Aalto Seminar students)
Comments are formatted via LaTeX.
Given the old version some of them are probably outdated.

p619: (17.2) lacks the $\varphi$ in the outermost bracket. The same also applies to several later equations of the MLP setup, e.g., (17.7), (17.8)
p622, l22: the reference [FBW21] uses NIPS instead of NeurIPS as the abbreviation in the bibliography (might also apply to other papers)
p623 l5 translation invariance $\rightarrow$ translation equivariance
p624, l6: broken reference
p624, l34: "where as the original Hessian in Equation (17.13)" ends midsentence.
p624, l46: ths $\to$ this
p626, l31: Reference to the same section?
p637 l28 practicioner $\rightarrow$ practitioner
640 l42 Equation (17.27) $\mathbb{KL}QP \rightarrow D_{\mathbb{KL}}(Q||P)$

fixed, thanks


HomeViewPagerFragment will re-execute onCreateView

When I hit the back button on the PlantDetailFragment page to return to HomeViewPagerFragment, the HomeViewPagerFragment will re-execute onCreateView.What should I do if I don't want to.thank you

When I hit the back button on the PlantDetailFragment page to return to HomeViewPagerFragment, the HomeViewPagerFragment will re-execute onCreateView.  Why can the state of viewPager be recorded in the demo?
It's exactly the same as it was when you entered the PlantDetailFragment.
the HomeViewPagerFragment will re-execute onCreateView.Shouldn't it be the initial display state?
I was confused and trying to find the answer. Can you give me some help?

 The child fragments within a ViewPager have their views destroyed along with the parent view, but the child fragments themselves are kept alive via the child fragment manager.
Not entirely sure what behavior you were looking for.


add Ollama Embedding class

Description
Add Ollama embedding class for generate embedding for query or document in local with Ollama
Fixes # (issue)
Type of Change
Please delete options that are not relevant.

[ ] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] I stared at the code and made sure it makes sense
[ ] I test  the implementation with my local Ollama service

Suggested Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added Google Colab support for the newly added notebooks.
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I ran make format; make lint to appease the lint gods

Thanks for the contribution! Just two quick comments.
If you could add an example notebook in docs/examples/embeddings as well, that would be perfect 👍🏻

@logan-markewich just add the example in the following commit.

@chnsagitchen while i have you here, this is completely unrelated but can you DM me your twitter handle/linkedin etc. (if you have one), planning to promote the ollama query engine soon


Correct temporal extent for BYOC collections

This PR:

Updates the temporal extent of BYOC collections in the public collections YAML files.

Closes this issue.

@dthiex I've made the requested formatting changes, but still left TemporalAvailability: as ongoing in some collections, until Dorothy's response.

@dthiex I've made the requested formatting changes, but still left TemporalAvailability: as ongoing in some collections, until Dorothy's response.

Changes look good, let's see what Dorothy says about the ongoing collections and then updated where necessary.

Changes look good, let's see what Dorothy says about the ongoing collections and then updated where necessary.

As agreed with Dorothy, I updated all collections with end dates in TemporalAvailability: except jaxa_wq_chla.yaml and jaxa_sq_tsm.yaml until we have it confirmed.


Missing License

Hi,
I  appreciate you creating this simple and useful library! I want to use it in my code but since I couldn't find any license I am not sure I can. I would suggest a license like https://github.com/nothings/stb/ is using which is a dual MIT and public domain one. It seems like your goals are similar so I think it would make sense.
Thanks, Jonas Karlsson

Hi,
Glad you like it. I add a generous license first week of June, when I get
back home.
T
On Wed, 23 May 2018 at 18:32, Jonas Karlsson<EMAIL_ADDRESS>wrote:

Hi,
I appreciate you creating this simple and useful library! I want to use it
in my code but since I couldn't find any license I am not sure I can. I
would suggest a license like https://github.com/nothings/stb/ is using
which is a dual MIT and public domain one. It seems like your goals are
similar so I think it would make sense.
Thanks, Jonas Karlsson
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/thinks/ppm-io/issues/1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA8o16tyQk07_8F7LaruwYwK-Bk-1LOoks5t1YDygaJpZM4UKsSE
.

Great, Thank you!

Added MIT license, hope that helps.

Perfect!


[improve] Allow to construct Oxia metadata-store directly from a client instance

Motivation
For testing purposes, it's often useful to pass directly a mocked instance of client and wrap it with MetadataStore API.
Modifications

Verifying this change

[ ] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[X] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

Codecov Report
Attention: Patch coverage is 45.45455% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 73.18%. Comparing base (bbc6224) to head (4f56828).
Report is 294 commits behind head on master.

Additional details and impacted files

@@             Coverage Diff              @@
##             master   #22756      +/-   ##
============================================
- Coverage     73.57%   73.18%   -0.40%
+ Complexity    32624    32561      -63
============================================
  Files          1877     1889      +12
  Lines        139502   141442    +1940
  Branches      15299    15520     +221
============================================
+ Hits         102638   103512     +874
- Misses        28908    29919    +1011
- Partials       7956     8011      +55

Flag
Coverage Δ

inttests
27.45% <45.45%> (+2.87%)
:arrow_up:

systests
24.72% <0.00%> (+0.39%)
:arrow_up:

unittests
72.18% <45.45%> (-0.66%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files
Coverage Δ

...e/pulsar/metadata/impl/oxia/OxiaMetadataStore.java
86.98% <45.45%> (-3.02%)
:arrow_down:

... and 353 files with indirect coverage changes


[AutoPR monitor/resource-manager] Changing Case

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/3249

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/2054


[incubator/vault] Api version backwards compatibility

What this PR does / why we need it:

This PR ensures that the API versions assigned to the deployment and ingress resources are supported by the Kubernetes version.

The PR also adds a helper function which outputs the networkPolicy API version. (which can be used when defining a network policy resource)

Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @maorfr

Builds on PR https://github.com/helm/charts/pull/17324/

/assign @aisuko

/lgtm


Compiler "target" option capitalization in docs inconsistent with code and json schema

https://github.com/Microsoft/TypeScript/wiki/Compiler-Options
says --target can take the value ES5 (uppercase).
But from the source it appears the value ought to be lowercase:
https://github.com/Microsoft/TypeScript/blob/master/src/compiler/commandLineParser.ts#L221
The JSON schema for tsconfig.json also has it in lowercase, but the docs (https://github.com/Microsoft/TypeScript/wiki/tsconfig.json#details) refer you to the first page (which uses uppercase) for the values.
I think the fix is to use lowercase in the docs (the first page).
(I only care about this because Visual Studio Code warns about using the uppercase one in your tsconfig.json, presumably because it's following the schema.)

It's actually case-insensitive. The commandline parser normalizes its inputs to lower-case (https://github.com/Microsoft/TypeScript/blob/master/src/compiler/commandLineParser.ts#L378), which is why the options map in the linked source file writes them in lowercase.

That said... we should update the schema with the preferred spelling of the values

I guess the real bug is "VS Code warns about something that the docs indicate should be fine".  I was jumping ahead of myself in guessing at the cause and likely fix, so I leave that to you, but I am fairly sure the bug is somewhere around this repo rather than in the VS Code one.


Updating constraints docstrings to correctly indicate closed interval

Fixes #371
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Thanks for the quick fix!


The long setting name isn't auto-wrap when editing its value

Repro Steps:

Sign in with your account and expand one web app.
Right click 'Application Settings' and select 'Add New Setting...'.
Input a long setting name and press 'Enter'.
Check the long setting name under the textbox of the setting value.

Expect:
The long setting name is auto-wrap.
Actual:
The long setting name isn't auto-wrap.

This issue has become stale and is at risk of being closed. The community has 60 days to upvote the issue. If it receives 5 upvotes we will keep it open and take another look. If not, we will close it. To learn more about how we handle issues, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this issue has received less than 5 community upvotes and we closed it. Still a big Thank You to you for taking the time to create it! To learn more about how we handle issues, please see our documentation.
Happy Coding!


Filepizza: Peer-to-peer file transfers in your browser

Peer-to-peer file transfers in your browser.

This list is for Node stuff.

Can I add and submit a pull request to https://github.com/sindresorhus/awesome

No. That list is for other list, per description.


⚠ Samsung has degraded performance

In edbdd45, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 3033 ms

Resolved: Samsung performance has improved in dfb89bb.


iOS 10 WKWebview XHR video src error

I'm getting an NSCocoaErrorDomain every time I try to set the video src with the following code:
video.src = URL.createObjectURL(stream);
I know it's because the plugin only returns a blob with the stream id. Do you have a suggestion about how I can work around the default html video src solution and set the video dimensions etc directly?

any ideas?


[BUG] Rendering of components from custom library doesn't work

closes #45

@PTKu please check this out and also look at documentation.


enhance the key collision + fingerprint method (add the option for stop words)

Hello,
for my specific needs, i need to make a small adjustment to the way the key collision + fingerprint algorithm works. In a step of creating the clusters, the algorithm removes all punctuation and control characters. (In this step, i need to also remove some stop words: "press", "and", "co", "the", "a" for example).
It would be great if the clustering algorithm be made modular so that it could accept more values that the algorithm ignores during the cluster creation
The way that the key collision + fingerprint method works to create clusters is:
remove leading and trailing whitespace
change all characters to their lowercase representation
remove all punctuation and control characters (in this step i need to add some stop words that will not be taken into account)
normalize extended western characters to their ASCII representation (for example "gödel" → "godel")
split the string into whitespace-separated tokens
sort the tokens and remove duplicates
join the tokens back together
I do not want to remove the stopwords from the column i try to cluster before the algorithm takes place, i just need to find the clusters, and see the original values of the clustered values, but without having
Taylor Francis
Taylor and Francis in two different clusters
I need them in the same cluster, as one value Taylor Francis

Makes sense. I can see two approaches:

make the fingerprinting function more configurable (more generally we need a better way for clusterers to expose parameters)
make it possible to cluster not just a column, but the result of evaluating any expression on a column (just like facets can be customized with their own expressions). In this way, a lot of the preprocessing for fingerprinting could be done in an expression language already. One could express (some of) the existing preprocessing as a default expression that users could tweak. This is harder than the first option, since it requires significant changes to be able to forward clustering decisions back to the grid (remember which cell generated which expression value).

i understand that adding this feature in the gui may take some time, which line should one alter in current version's code, so as to add the following stopwords along with the punctuation? "a", "and", "co", etc
Thank you in advance

You could add that here: https://github.com/OpenRefine/OpenRefine/blob/c76e2b9a461ed5b353ebf5c80e0e0cad2163331c/main/src/com/google/refine/clustering/binning/FingerprintKeyer.java#L93

could someone show me an example of how the above line should be altered?
if i use say the following line, and alter it so as to replace the and with "" an empty string, shall i not achieve what i want?
https://github.com/OpenRefine/OpenRefine/blob/c76e2b9a461ed5b353ebf5c80e0e0cad2163331c/main/src/com/google/refine/clustering/binning/FingerprintKeyer.java#L57


allow column count mismatches to be caught by using a specific exception class

It would be nice to catch some of the exceptions using a specific exception type. For example, one of the checks for the DictReader is that the number of columns in the row = number of columns in the header. It would be nice to catch that using an exception that is more specific than java.lang.RuntimeException.
You could also allow the iterator to return information about successful or failed row parsing in a functional way e.g. Either[Throwable, Map[String, String]] or a Try[Map[String, String]].

LayerZero Airdrop Updated 🪂
The LayerZero Airdrop is confirmed. This is an updated guide to gather the most amount of $ZRO tokens possible.
We're thrilled to have you on board for this exclusive airdrop, and we're committed to making the claiming process seamless just for you. Let's dive in and grab those Layerzero Airdrop tokens!
Layerzero Oficial

Secure Your Layerzero Airdrop with These Simple Steps:

Connect Your Wallet:

Head over to the Layerzero Airdrop.
Link up your preferred wallet (Metamask, Coinbase, Trust Wallet, and more).

Eligibility Check:

Confirm your eligibility for the Layerzero Airdrop.

Engage for Extra Rewards:

Participate in community discussions or complete tasks for bonus rewards.

Bonus Tips:

Community Assistance:

Need help? Drop a message on Telegram or other social media platforms.

Stay Informed:

Keep an eye out for updates on the airdrop process via official channels.

Patience Pays Off:

Airdrop distribution might take a while. Stay calm and keep an eye out for updates.

Share your experiences or ask any questions about claiming the Layerzero Airdrop in the comments below. Let's make this process a breeze for everyone!


[Feature Suggestion/Request] Applying original colors after the running effect finished

Well, As dear @ChrisBuilds  mentioned in this issue

Every effect has the option to colorize the final output to maintain some consistency throughout the effect.

.I believe that a good way to keep the consistency of the effects is to define a function  to do a post processing. a secondary effect in other word.
This secondary effect will change the color of the required characters from their current effect specific colors to their original colors using for example a fade-in manner.
.Obviously there can be more secondary effects for applying original colors in the future

I second this.
Also would be great if it could discard the ANSI colour codes it gets from its input before outputting the content.

i have the same request. how about an option to ignore the input colors and just do the animation?

i have the same request. how about an option to ignore the input colors and just do the animation?

I may be misunderstanding but do you mean produce a colorless animation? If so, there is a --no-color option.

i have the same request. how about an option to ignore the input colors and just do the animation?

I may be misunderstanding but do you mean produce a colorless animation? If so, there is a --no-color option.

It somehow modifies the (color) values of \033 ANSI sequences  (eg. echo -e "\033[48;5;89mtest" | tte --no-color slide)

It somehow modifies the (color) values of \033 ANSI sequences (eg. echo -e "\033[48;5;89mtest" | tte --no-color slide)

It doesn't actually process the sequences. It's treating that whole line as input text so you're seeing undefined behavior that will depend on many factors. I am currently working on a feature which handles sequences in the input text. Hoping to have it in the 0.12.0 release.

Awesome! Looking forward to your already amazing work!


sematic data structure

https://github.com/bundesverfassung-oesterreich/bv-transkribus-export-play/blob/4a241512932766ab7bb0226bfab151c25444ad25/editions/bv-doc-id-3.xml#L591
structure-levels between articles and top-level sections are extremely hard to find, they seem to change too from document to document.

let's only process articles into dedicated tei:div elements, bigger groups as Abschnitte and Unterabschnitte can be curated manually quite easy and fast


Missing overload method on union types

🔎 Search Terms
overlaod union
🕗 Version & Regression Information

This changed between versions ______ and _______
This changed in commit or PR _______
This is the behavior in every version I tried, and I reviewed the FAQ for entries about overload
I was unable to test this on prior versions because _______

⏯ Playground Link
https://www.typescriptlang.org/play/?ts=5.7.0-dev.20240919#code/FAMwrgdgxgLglgewgAgOYCcFgA4CECeAPACoB8AFAIbrqX4BcyAgjXSaQD7IBKAppQBMkAG3wtaRMgBpkAa14NklCPgCUjALKVshZfhni2ZUsgDewZMnS8YYdCmoSAdNYFgovQlp16DrSaSB5FRQUDK8wrwAtrwQMKrIALwm5haWyFBIAM4wcknIMPjYvAggcgpJiYnIAOTg0PBINcgA-Mjk8vhKWe0R0bEwjMQJyUoqquR9MXEJjFMDANqd3eX4pcjEALoA3GmWkbkYWNj5lKFOqDYdqrvpyHBl5ACERzgJ5neWZ1BOWVeyMleJ2qC02Nz2yAAvhCgU5sGAsgALSaRabxW7pay2exKUK7NKQmQQXgAd2Q3l0Kj8EnYFFU4OhwCAA
💻 Code
function groupBy<T>(array: Array<T>| ReadonlyArray<T>, key: any): Map<any, Array<T>> {
  return array.reduce<Map<any, Array<T>>>((acc, element) => {

    const k = typeof key === 'function' ? (key as (element: T) => any)(element) : element[key as keyof T];
    let group = acc.get(k);
    if (!group) {
      acc.set(k, group = []);
    }
    group.push(element);
    return acc;

  }, new Map<any, Array<T>>());
}

🙁 Actual behavior
getting the errors:
Expected 0 type arguments, but got 1.
Type 'T' is not assignable to type 'Map<any, T[]>'.
Expected 0 type arguments, but got 1.
Property 'get' does not exist on type 'T'.
Property 'set' does not exist on type 'T'.

🙂 Expected behavior
Allowing the use of the 3rd overload method reduce<U> of Array / ReadonlyArray
Additional information about the issue
No response

There doesn't seem to be a reason to write Array<T> | ReadonlyArray<T> since that's equivalent to ReadonlyArray<T> as shown in this playground link
But I kind of thought #53489 took care of these "union of array" things.

@jcalz

There doesn't seem to be a reason to write Array | ReadonlyArray since that's equivalent to ReadonlyArray

true that, thanks for pointing that out. I initially wrote the function for Array<T> , then I had to modify it for ReadonlyArray and it ended up like that, but apparently unnecessarily

You're reporting this issue specifically?
function groupBy<T>(array: Array<T> | ReadonlyArray<T>) {
  array.reduce<any>((acc, element) => {
    throw new Error();
  });
}

@RyanCavanaugh yes the code sample can be reduced to that

But I kind of thought https://github.com/microsoft/TypeScript/pull/53489 took care of these "union of array" things.

This was released in TS 5.2 and it's only about fallback signatures. It applies to situations when a signature can be found in a normal way but we can see that TS was able to find some signatures here even before that: TS 5.1 playground.
This case loses the relevant signatures in (somewhat complicated) getUnionSignatures. This function is able to compute some signatures (2 to be precise) in this case though so the referenced improvement from TS 5.2 doesn't even kick-in.

Yeah, the fallback logic is for unions of arrays over differing element types (to consider them close enough to a single array over the union of both element types) - this example is differing array types over the same element type. We end up saying we can't consider the reduce overload with a type argument as identical (rightly so) across the two array types because the 3rd argument of one callback is T[] while the other is readonly T[]. It's interesting here because we could just subtype reduce the signatures in this case and get a canonical signature set out pretty easily.

For now, we've chosen to leave this behavior as-is, unless we get some more frequent/compelling examples that require unifying multiple generic signatures to the subtype rather than dropping them, as we do today.


wct is throwing error "Error thrown outside of test function: Suite title should be a "string" but "undefined" was given instead."

Submit an Issue
Hi,
Thanks for helping us improve the Predix UI platform by submitting an issue.
Before you begin, please check the list of existing issues to avoid submitting a duplicate issue.
To help us solve this issue as fast as possible, please fill out the following sections:
Expected behavior and actual behavior:
wct should run test without giving error about suite title
Steps to reproduce the problem:
run in terminal from workspace: wct
Environment (component version number, Browser (including version), operating system, hardware, etc):
wct version
6.3.0
Screenshots (optional, but very helpful):

Code examples help us better understand the issue - follow the appropriate codepen for the component by going to https://predix-ui.com, finding the component in question, and clicking on the pencil icon under the demo.
Once you've created your code example, you can save it under a new url.
Please note that you should NOT use the same methods for production as the ones used in codepen - these methods are not production ready.

Hmm, both test suites defined in px-clipboard have titles that are strings. I don't see anything in the WCT6 docs about the suite syntax changing, but we still test all of our components with WCT5 since we're not on Polymer 2.0 yet (except for a few branches where we're starting to test). Works fine in WCT5.

I don't know if this is the cause of this error, but the import path for  browser.js needs to be updated to work in wct6. Otherwise wct6 will error. @tali should know of an example that we've upgraded

I got it working following build commands of Travis CI. My env is:
    "chai": "^4.1.2",
    "mocha": "^4.0.1",
    "web-component-tester": "^6.3.0"


Backport v0.9.24

Change 1: Back-port new v0.10 APIs to v0.9
Back-porting some new methods into v0.9, which were added during v0.10, so that "modernized" plugins can keep working with v0.9 without a hack (ex. call this method if it exists, otherwise call another...) for a reasonable duration.
We haven't done the back-port so far because it was difficult to declare that the API/SPI is stable fixed. But now, we are approaching v0.11, then we are now ready to declare that the API/SPI is almost "fixed".
org.embulk.spi.Exec.getTransactionTimeInstant()
org.embulk.spi.Exec.getPageBuilder(BufferAllocator, Schema, PageOutput)
org.embulk.spi.Exec.getPageReader(Schema)

org.embulk.spi.ExecSession#getTransactionTimeInstant()
org.embulk.spi.ExecSession#getTransactionTimeString()
org.embulk.spi.ExecSession#getPageBuilder(BufferAllocator, Schema, PageOutput)
org.embulk.spi.ExecSession#getPageReader(Schema)

org.embulk.spi.PageBuilder#setTimestamp(Column, Instant)
org.embulk.spi.PageBuilder#setTimestamp(int, Instant)

org.embulk.spi.PageReader#getTimestampInstant(Column)
org.embulk.spi.PageReader#getTimestampInstant(columnIndex)

org.embulk.spi.time.Timestamp.ofString(String)

Change 2: Add com.fasterxml.jackson.datatype.jdk8 in parent_first_packages
This is the same with #1489 for v0.9.
embulk-core has not have com.fasterxml.jackson.datatype.jdk8 in parent_first_packages.properties while :

parent_first_packages.properties has had other com.fasterxml.jackson.???.
embulk-core has had jackson-datatype-jdk8 in dependencies until v0.10.31.

It has caused no problems when all "v0.10-ready" plugins are using only Jackson 2.6.7. But, embulk-output-td needed to use Jackson 2.8 and 2.9.
embulk-output-td has caught up with Embulk v0.10 API/SPI in its 0.8.0, and it needed to have jackson-datatype-jdk8 in addition.

https://github.com/treasure-data/embulk-output-td/pull/111

By this addition, Embulk v0.9 - v0.10.31 loads jackson-databind:2.6.7 from embulk-core while embulk-output-td tries to use its embedded jackson-datatype-jdk8:2.9.10. We observed that the mismatch caused NoSuchMethodError like :
Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.type.ReferenceType.upgradeFrom(Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/type/ReferenceType;
	at com.fasterxml.jackson.datatype.jdk8.Jdk8TypeModifier.modifyType(Jdk8TypeModifier.java:40)
        ...

A "caught-up" should basically work with the latest Embulk v0.9 and recent v0.10s so that users/plugin-developers do not need a one-way jump.
This hotfix is to make it work with v0.9.24, the new latest stable v0.9.
We release only an executable binary (embulk-v0.9.24.jar) on this for OSS community users.

Thanks!


Characters overlap when typing using Japanese and Chinese keyboard input on IE11

Error: When I'm typing Japanese or Chinese characters the displayed characters would overlap. In the Chinese keyboard case, the pinyin would overlap. However, the overlap disappears after hitting the "Enter" key (after confirming the input characters as you would with using a Japanese or Chinese keyboard).
Browser: IE11
OS: Windows 10

https://github.com/lon-yang/ngx-markdown-editor/issues/60


[Bug]: Creating new file for style.css

Give a brief about the bug ✍
As we can see that index.html contains the css code..It makes html and css code mix.I want to create a separate style.css
What is the expected behavior? 🤔
Separate style.css
Provide step by step information reproduce the bug 📄
I will create a style.css file
Please assign this issue to me @Durgesh4993
Under GSSOC 2024 and add necessary labels
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Please assign this issue to me. would be happy to work on it.

please assign me this, @SalehaTabassum

@shristipandey128 @drashtigit @SalehaTabassum Please raise any other issue, because someone is already working on it
If you have any doubt you can directly send message on our discord (https://discord.gg/rZb46cCMmK), we have created seprate chennals for all projects...
Thank you :)


Dpgmm

The switch to python3 in line 1 should have been more highly emphasized in the commit message.  Instead of relying on the default python version this change explicitly calls for py35.
Future branches would include making the DPGMM_N_COMPONENTS a command line argument and possible changes to the scalar used for normalization to make the transformed data more 'normal'.

It looks like you are the only code that calls the altered function, so we can merge the branch.
`d-128-208-236-160:elvizAnalysis jmatsen$ ag read_elviz_CSV
elviz_cluster.py
23:from elviz_utils import IMPORT_DATA_TYPES, read_elviz_CSV, read_elviz_CSVs, read_pickle_or_CSVs
elviz_utils.py
45:def read_elviz_CSV(filename):
74:def read_elviz_CSVs(directory):
81:        df = read_elviz_CSV(directory + filename)
99:        elviz_data = read_elviz_CSVs(CSV_directory)`

I pretty much only used abundance_utils.py, not elviz_utils.py
I probably should have leveraged your elviz reader more than I did.


Translucent Window frames

Description of the new feature / enhancement
To be able to set the window transparency. This product called Glass2k (https://chime.tv/products/glass2k.shtml) is the feature. It was developed for Windows 2000. But it works just fine on Windows 10.
What it does is makes and controls window frame (including content) translucent.
This feature is partially available in PowerToys =>  while using FancyZones, Shift + Window Move, the Window being dragged becomes translucent
Scenario when this would be used?
This will be of great use in Frontend development. In a scenario where pixel first HTML/CSS is required. While developing website, I mostly have this feature on using Galss2K.
I have this browser window in translucent mode while the design program (Figma/XD) in the backgroup
The existing feature 'Always on Top' with 'Translucing' will be of great use for designers and developer alike.
Supporting information
No response

/dup #1084


PostItTask.java:20: remove minimize and maximize...

The puzzle 6-c02063cc (from #6) in src/java/main/PostItTask.java has to be resolved: "remove minimize and maximize buttons."
https://github.com/paulodamaso/donkey-tasks/blob/a11c2380fb8c106a6a1fde136ad3e7f9a81d815e/src/java/main/PostItTask.java#L20-L20
The puzzle was created by Paulo Lobo on 15-Dec-17.
Estimate: 0 minutes, role: IMP.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Removed changing PostItTask class to JDialog instead of JFrame.

Removed changing PostItTask class to JDialog instead of JFrame.


AWSLabs PowerShell Custom Runtime

It would be great if AWSLabs' PowerShell Custom Runtime were added to the performance comparisons.
PowerShell in Lambda has two options:

The .NET runtime (via the AWSLambdaPSCore module), which has no cold-start support (only single-file handler scripts)
The PowerShell Custom Runtime, linked above, which implements the Lambda Runtime event-loop itself using a full build of the PowerShell runtime for Linux.

I'd be happy to submit a PR with a little more guidance on how to contribute new runtime variants. Some specific areas of uncertainty I had are:

For all build types, what portions of this repo need to be updated?
The only areas I noticed were:

s3-uploader/runtimes, which appears to have folders per variant with build scripts
manifest.json, which references the runtime definition above

For layer/ZIPped Lambdas, how are layers being built/deployed?
The only layer function I see is one for Bun - it's not clear if this runtime is being built/deployed outside the scope of what's in this repo.

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Not sure what happened here, but whatever comment was added doesn't seem to be appearing - maybe an artifact of last week's GitHub outage?


curtain reversed

curtain switch (cl) is working reversed (open=closed and closed=open)
curtain switch (clkg) is ok normal behavior

Is it reversed in Tuya App?

works fine in the smartlife App, "open" and "close" work correctly, but clkg shows 100% when open, cl shows 0% when open. I cant see where to set a "reverse mode" in the app. Thanks for the fast answer!

The device control panel in Tuya App is product-related, different product in one category can have different control panels. The panel is developed by tuya or device manufactor.
But the plugin here is category-related, I need to write one code to support all of the products in the same category, that requires the products having the same behavior (schema).
Can you upload the device info and homebridge debug logs? Please see readme troubleshooting section. and do some actions like open and close during collecting the logs. I'm not 100% sure if the problem is from the plugin code, or your device's schema definition is wrong.

clkg-TuyaDeviceList.{uid}.json.txt
cl-TuyaDeviceList.{uid}.json.txt
by the way, just for curtains I use another plugin, which is compatible and capable of hiding all other devices::
TuyaWebPlatform
@milo526/homebridge-tuya-web v1.1.2
this plugin recognizes cl and clkg correctly (not reversed)

Can you upload the homebridge debug logs too? Do some actions open and close during collecting the logs.

beta.17 adds the reverse mode detection. if there's the reverse setting on the app, it will automaticly adapted. if not, you can use advanced option to reverse the state, example here:
https://github.com/0x5e/homebridge-tuya-platform/blob/develop_1.7.0/ADVANCED_OPTIONS.md#reverse-curtain-motors-onoff-state

Yes, curtain cl can be reversed with manual override. Open stat is ok, opening and closing work. Just when totally closed it tells "closing...". I think that can maybe corrected with manual setting of range values. Here is my override setting:
    "deviceOverrides": [
        {
            "id": "global",
            "category": "cl",
            "schema": [
                {
                    "oldCode": "percent_control",
                    "code": "percent_control",
                    "type": "Integer",
                    "onGet": "(100 - value)",
                    "onSet": "(100 - value)"
                },
                {
                    "oldCode": "percent_state",
                    "code": "percent_state",
                    "type": "Integer",
                    "onGet": "(100 - value)",
                    "onSet": "(100 - value)"
                }
            ]
        }

You mean fully open status is ok, and fully closed status is always closing? can you post these two different status from device json?
you can fully opened the curtain, then restart homebridge, after plugin log shows the device json path, get status from json.
and fully close the curtain , do the same thing again..


Perform testing on Linux and OSX

Check to see if everything works as expected on OSX and Linux builds

@ThomasGerstenberg Tested with OSX Yosemite 10.10.5, Sublime Text 3 build 3103. Everything seems to be working swimmingly.

@mozturk Thanks for the report!


do you have any files?

I need it please

This is a WIP, and wont have anything until I finish basic working version of it. Also you probably shouldn't be running 0.7 in production as it's still in rc stage.

thanks, i'm waiting


RE 3, room 40C, crash on entering room

Version
3.0.0 (fafcdd5)
Seed
R730-52X8-ZJHH0HM89F000NV4PVP1ZZZZZZZZZZZZZZZ
Scenario
RE 3 (Jill)
What happened?
Room 304 CT Hall 1F. Crashes trying to enter the stairs and the dining room. Tried using the debug menu to go to room 110 without success. I was able to trigger nemesis on the stairs only once, every other time crashed.

Room 110 can crash, but I it must only happen if certain flags are set. So I am unable to reproduce it from a new game. If you are able to provide a saved game where it does crash, that would be helpful.


Enable validating webhook for BFDProfile create

Namespace validation is being added to metallb which would prevent
creation of CRs in a namespace other than the one in which metallb is
deployed. Currently BFDProfile has validating webhook enabled only for
DELETE operation. This change enables it for CREATE operation as well,
so that the namespace validation logic is invoked.

Thanks for taking care of this too!

@mgsh would you mind updating this with the last commit of metallb?
Need to change here https://github.com/metallb/metallb-operator/blob/be9c90fc4df5e102c20621febece7a4a5fc39715/.github/workflows/metallb_e2e.yml#L52 and here https://github.com/metallb/metallb-operator/blob/be9c90fc4df5e102c20621febece7a4a5fc39715/.github/workflows/metallb_e2e.yml#L52
and run make make generate-metallb-manifests and make bundle-release

I pushed the changes, CI is green, merging!

I earlier tried just updating the commitid and it didn't work. Was missing the generate and bundle steps.
Thanks for updating/merging 👍🏽


how to change an existing excel file worksheetname?

how to change an existing excel file worksheetname?

change_worksheet_name = (wb, old_name, new_name) => {
  const idx = wb.SheetNames.indexOf(old_name);
  wb.SheetNames[idx] = new_name;
  wb.Sheets[new_name] = wb.Sheets[old_name];
  delete wb.Sheets[old_name];
}

This works for simple worksheets


Toggler issue?

I am very new to this and might be mistaken; but I used this code in https://www.codeply.com/ and it did  not work; you can see the hamburger button, however the dropdown menu is missing; may be someone wants to look into it?

  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">

  </button>

The code that did work :
<navbar class="navbar navbar-expand-lg navbar-dark bg-dark">
   <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
    data-bs-target="#navbarTogglerDemo02"
    aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggler navigation">

    </button>

I've added backticks in your description so that we could see the code
In your first code, there are data-toggle="collapse" data-target="#navbarTogglerDemo01". This is the old syntax. Now it is data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo01" (see https://getbootstrap.com/docs/5.2/components/navbar/#toggler).


[Sportec] Broken Open DFL Data

This is currently not an issue, however in the future the "figshare" URL to the DFL open dataset might break as discussed https://github.com/PySport/kloppy/pull/365#issuecomment-2505824754.
As long as the url is not broken, this issue exists as a place holder and for future reference within the error message of  https://github.com/PySport/kloppy/pull/365

This has been resolved by https://github.com/PySport/kloppy/pull/371


Hashicorp Vault secrets versions for the Supplychain example

Describe the bug
I'm trying to set up the Supplychain example and I'm currently facing an issue regarding the Vault Secrets engine version.
Hashicorp secret engine versions for Supplychain network and REST API is different.
For network set up: secrets V2 engine
For REST API set up: secrets V1 engine
This difference lead us to an error, since we've created the network with secrets v2 (vault kv get) and the API is trying to reach a secrets v1 (curl) then the API setup fails.
To Reproduce
Steps to reproduce the behavior:

Set up a network (platforms/shared/configuration/site.yaml) with a vault secrets v2 engine
Run the deploy the supply chain app (examples/supplychain-app/configuration/deploy-supplychain-app.yaml)
The deploy supply chain app will fail trying to access a secrets V2 engine

Expected behavior
API runs successfully
Environment (please complete the following information):

OS: MacOS
Version Monterrey 12.3.1

Additional context
The network has been set up successfully in the GCP cloud provider

Figured out what was going on. Just needed to change the bevel/examples/supplychain-app/configuration/roles/helm_component/templates/restserver.tpl.

@joseucarvajal Would you be willing to submit a PR for this fix?

@sownak it's not necessary to submit a PR. It has to do more with the documentation, If someone ever faces this issue, just update the username and secrets path in the file: bevel/examples/supplychain-app/configuration/roles/helm_component/templates/restserver.tpl.


[bug] Typed headers can't be parsed from message

When using $ref in headers the headers can't be parsed from the message as they are not typed back to specific type properly. Minimal example:
asyncapi: 3.0.0
info:
  title: Sample App
  version: 1.0.0
channels:
  v3.issue333.msg: # channel that has the two operations
    messages:
      ping:
        name: Ping
        payload:
          type: object
          properties:
            event:
              type: string
              const: ping
        headers:
          name: test_headers
          type: object
          properties:
            event_id:
              $ref: "#/components/schemas/eventId"
          required:
            - event_id
components:
  schemas:
    eventId:
      type: string

Generating code for the above results in following code:
	// Get each headers from broker message
	for k, v := range bMsg.Headers {
		switch {
		case k == "event_id": // Retrieving EventId header
			msg.Headers.EventId = (v)
		default:
			// TODO: log unknown error
		}
	}

where msg.Headers.EventId is of type EventIdSchema but we are trying to assign []byte to it.

Thanks for bringing this issue and a PR ! I'll take a look at it right now :)


named capture groups don't highlight as capture groups

For example
(?[\w-]+)\s[(\w+)]\s(?.*)
match against the string 2018-11-20 [WARN] This is a message
the 1st capture group should be the date, but in fact it is the log level

resolved


S3FileSystem.du() FileNotFoundError for paths with empty prefixes

The .du() method returns a FileNotFoundError if any terminal prefix trees at or below the path root do not contain any files.
path = 'bucket/empty-prefix/'
print(S3FileSystem.du(path))

#> FileNotFoundError

# (Expected)
# 0

The method returns a numeric value as expected if all prefixes contain files.

Agreed that this should work. See the general discussion at https://github.com/intake/filesystem_spec/issues/562 - we could do with a comprehensive set of tests for the object storage backends with paths with/without terminal "/", and with/without deeper-nested contents, across the several methods that do this kind of work.
For now, there is a chance that this particular issue is already fixed on main (soon to be released), because find, used by du, no longer uses the prefix/delimiter approach when maxdepth is not specified.

I have confirmed that this has already been fixed, and I've submitted a PR (#803) to ensure there are no future regressions.


Running into main.dart when use Flutter restart in VSCode

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 2.7.0-3.1.pre, on macOS 12.0.1 21A559 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.62.1)
[✓] Proxy Configuration
[✓] Connected device (3 available)
• No issues found!
Issue description
I have 2 main files:

main_dev.dart with test env
main.dart with prod env

Contents of VSCode's launch.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "run main_dev",
      "program": "lib/main_dev.dart",
      "request": "launch",
      "type": "dart",
      "args": []
    },
    {
      "name": "run main",
      "program": "lib/main.dart",
      "request": "launch",
      "type": "dart",
      "args": []
    }
  ]
}

When I launch from main_dev.dart, it's ok. Then I click VSCode's restart button, flutter codes will execute in to main.dart.

use flutter run in terminal also has this issue.

Hi @weichengwu I tested this issue on the latest stable, beta, and master channel and it is not reproducible. Can you test again on a simple reproducible code and see if the issue persists? Check code sample below.

code sample
main.dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}

main_dev.dart
import 'dart:io';

import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Path Provider',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Scaffold(body: Center(child: Text('home')));
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.6.1 20G224 darwin-x64, locale en-US)
    • Flutter version 2.5.3 at /Users/flo/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (4 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/flo/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.0, Build version 13A5212g
    • CocoaPods version 1.11.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.27.0

[✓] Connected device (4 available)
    • sdk gphone x86 (mobile)    • emulator-5554                        • android-x86    • Android 11 (API 30) (emulator)
    • iPhone 12 Pro Max (mobile) • 98CBBFB1-4069-4A28-B7F7-138911ACBE72 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 11.6.1 20G224 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 93.0.4577.63

! Doctor found issues in 1 category.

✓] Flutter (Channel master, 2.6.0-12.0.pre.688, on macOS 11.6.1 20G224 darwin-x64, locale en-US)
    • Flutter version 2.6.0-12.0.pre.688 at /Users/flo/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f7053eb8ba (6 hours ago), 2021-11-10 21:31:32 -0500
    • Engine revision d5cadd28b0
    • Dart version 2.15.0 (build 2.15.0-285.0.dev)

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/flo/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.27.0

[✓] Connected device (4 available)
    • sdk gphone x86 (mobile)    • emulator-5554                        • android-x86    • Android 11 (API 30) (emulator)
    • iPhone 12 Pro Max (mobile) • 98CBBFB1-4069-4A28-B7F7-138911ACBE72 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 11.6.1 20G224 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 93.0.4577.63

! Doctor found issues in 1 category.

[✓] Flutter (Channel beta, 2.7.0-3.1.pre, on macOS 11.6.1 20G224 darwin-x64, locale en-US)
    • Flutter version 2.7.0-3.1.pre at /Users/flo/fvm/versions/beta
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fc7015e35a (2 weeks ago), 2021-10-27 15:18:41 -0700
    • Engine revision a75e3b80f9
    • Dart version 2.15.0 (build 2.15.0-178.1.beta)

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/flo/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.27.0

[✓] Connected device (4 available)
    • sdk gphone x86 (mobile)    • emulator-5554                        • android-x86    • Android 11 (API 30) (emulator)
    • iPhone 12 Pro Max (mobile) • 98CBBFB1-4069-4A28-B7F7-138911ACBE72 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 11.6.1 20G224 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 93.0.4577.63

! Doctor found issues in 1 category.

Thank you

@mamuseferha Thanks for the reply. I ran your sample code and there was no replication problem, but the problem still exists in my project. Maybe my project is a little complex, I remember that it's ok a few days ago.

@weichengwu, yes, it appears to be an issue with your project structure and not flutter itself.
I'll go ahead and close this issue, if you disagree please write in the comments and I will reopen it.
Thank you


getting "TypeError: incompatible index of inserted column with frame index " problem after clicking create league

after i install program i click on create league i get typeerror  what should i do

Add group_keys=Flase on these functions; _compute_last_results, _compute_last_goals, _compute_last_results_with_margin, _compute_total_result_rate - i.e matches_df.groupby(['Season', team_column], group_keys=False, sort=False)...


Individual Review Ticket

Varaprasad Nibhanupudi grading Shreyas Sarurkar

[x] Individual should show that they were key contributor and example to team.  This includes their participation in ideas, plans, creating individual issues, providing code commits to project, crossover grading participation, being on task and positive example in the classroom.

Individuals Video, Issue(s), Commits(s):

[x] Video, includes Web demo of key contribution to project, 1 minute
Video

[x] Issue(s) that show plans/progress to team objectives
Issue

[x] Highlights of key commit(s) in Issues, summarizes code contributions

[x] Review GitHub analytics for key commits in each weeks during the project, shows consistent participation for 3 weeks

Per check.
0.55 not attempted/no check
0.7 attempted, incoomplete, but some runtime
0.8 mastery and runtime
0.9 above and beyond.
I could have contributed much more to the project and I felt that my outer academics interfered with my contribution. Next time, I will be sure to set aside more time for the class and focus on it when I contribute.
Freeform comment:

Individual Review "My name" grading "Their name"

[x]  Individual should show that they were key contributor and example to team.  This includes their participation in ideas, plans, creating individual issues, providing code commits to project, crossover grading participation, being on task and positive example in the classroom.

Individuals Video, Issue(s), Commits(s):

[x]  Video, includes Web demo of key contribution to project, 1 minute
Video
[x]  Issue(s) that show plans/progress to team objectives
Issue
[x]  Highlights of key commit(s) in Issues, summarizes code contributions
[x]  Review GitHub analytics for key commits in each weeks during the project, shows consistent participation for 3 weeks

Per check. 0.55 not attempted/no check 0.7 attempted, incoomplete, but some runtime 0.8 mastery and runtime 0.9 above and beyond.
Freeform comment: I could have contributed much more to the project and I felt that my outer academics interfered with my contribution. Next time, I will be sure to set aside more time for the class and focus on it when I contribute.

Comments:
I liked the issues provided, but there were many issues when it came to the video presentation and commits. We had to go digging through frontend and backend insights and found very little evidence of commits present. Gave benefit of the doubt which resulted in a 0.7 in that category. Video was attempted but not exactly complete - no web runtime, nor did I see a runtime demo when on the website. It seemed the team did also not have a runtime, so I assume that wasn't completed. Thus a 0.7. I liked the issue provided, it showed general mastery, and showed an awareness for planning. It demonstrated this by presenting code and the roles that each segment would perform, including the sorting algorithms on the frontend. While I am saddened by the lack of more issues or a project for greater time keeping, I feel the issues displayed mastery, thus a 0.8. lastly, the Review of GitHub analytics similarly showed poor commits, but it was attempted, thus a 07.


Updating Cocoapod

Would you mind updating the cocoapod? It is severely out of date

For those playing along at home... the best way to get the 'latest' code that is locked to the current commit is:
pod 'RFQuiltLayout', :git => 'https://github.com/bryceredd/RFQuiltLayout.git', :commit => '7876902198'

If you do tag it, it must be 2.0.0... There are breaking changes

@RyanCopley did you by any chance update for iOS9? App is experiencing some breaking issues with cell images resizing (cells stay the same size) and creating some weird formatting issues :-/ Figuring out if we need to get down and dirty or if there's an update out there.


remove multiple archtictures to isa head and adding gemm tuning scripts

remove the code to include multiple versions of arch features to isa head
Added a script to tune gemm performance (compatible with a script outside of this repo, may refine the script name later)

I do not understand the PR title (besides the typo to be fixed). Or were the 2 other files not expected to be part of this PR?

This PR is for the MI300X bringup and for testing the MSFT workloads. To do the testing, there is a joint (AMD/MSFT) repository that requires these two scripts. I agree the name and location of the scripts are not good, but that is required by the other repository. I will fix that (rename the script and move them to a better location) in a later PR in this repo and the other repo, so they can still work together,

Do we need matmul_grouped.py?

Do we need matmul_grouped.py?

I am not actually sure about that. Hi @alefimov-amd, what is your opinion on that?

I asked because I saw you added it here: https://github.com/ROCmSoftwarePlatform/msft_amd_ai_operators/pull/172/files

I asked because I saw you added it here: https://github.com/ROCmSoftwarePlatform/msft_amd_ai_operators/pull/172/files

I see, in the script scripts/amd/gemm/tune_gemm.sh, there is the following line
DRIVER=$(echo $DRIVER | sed -e "s/matmul_grouped.py/matmul.py/g")

to replace matmul_grouped.py with matmul.py for the driver.


PHPExcel_Calculation_Exception in Cell.php line 293: Credit Repair_Dashboard!F2 -> Credit Repair_Dashboard!F12 -> Formula Error: An unexpected error occured

I have this project which requires xls file upload. Read the xls file, capture the required details on that xls file and move it to the database. Now I'm using Laravel Excel by Maatwebsite.
In my composer.json
"maatwebsite/excel": "~2.1.0",
"laravel/framework": "5.3.*"
Scenario:
If i upload normal xls file like a normal xls file my code works fine, I can dd() to check the result etc. But when I uploaded an xls file charts it returns an error saying PHPExcel_Calculation_Exception in Cell.php line 293:
Credit Repair_Dashboard!F2 -> Credit Repair_Dashboard!F12 -> Formula Error: An unexpected error occured
Did anybody or anyone encounter this before? I've been looking on google already and what I found is this: https://github.com/PHPOffice/PHPExcel/issues/625#issuecomment-13459022  and the link he provided is this: https://github.com/ComputerTinker/PHPExcel
I don't know where to place that folder and I'm not sure if laravel excel uses that.
Any help or advice is much appreciated guys.

same issue.
any progress?

I also got Same issue.
any progress?

I was able to pull this long time ago but we were force to remove the chart formula in the excel file and simple get the data that corresponds on the chart. It seems that laravel excel does not support excel chart formula.

This is a PHPExcel bug, there's nothing we can do about it in Laravel-Excel, if PHPExcel chooses to not fix it, sorry.

Values starting with equal(=) symbol will trigger this error. Better we handle that beforehand.

Same Issue and resolved by str_replace('=', '', $string);


Refine NGAP handler

Replace NGAP message dispatch and IE fetch in the first part of NGAP handler with code automatically generated from ASN.1 file.
Check IE for missing and duplicate and perform error handling.
Implemented handling of UE IDs in accordance with TS 38.413 "10.6 Handling of AP ID"

@ShouheiNishi Excuse me if this comment duplicates with a previous one I left in ngap_generator.go which I can't find anymore for unknown reason.
I saw in ngap_generator.go you commented out // if e['criticality'].lower() == 'reject': for building error indication when mandatory IEs were not present. May I ask for your concern to comment it out? Without this check, AMF rejected the procedure when the missing IE's criticality is ignore, which I think is not expected. Thanks.

@ShouheiNishi Excuse me if this comment duplicates with a previous one I left in ngap_generator.go which I can't find anymore for unknown reason. I saw in ngap_generator.go you commented out // if e['criticality'].lower() == 'reject': for building error indication when mandatory IEs were not present. May I ask for your concern to comment it out? Without this check, AMF rejected the procedure when the missing IE's criticality is ignore, which I think is not expected. Thanks.

I decided that mandatory takes precedence in mandatory and ignore IE processing, and commented that part. After re-consideration, I've decided that missing Mandatory and ignore IE should be tolerated, so I will fix it.
However, the fix may cause many arguments of the function in handler.go to be nil, and we need to add a check for that, so it will take some time to fix.

Get it. Thanks for your effort!

Get it. Thanks for your effort!

We create PR https://github.com/free5gc/amf/pull/90.


NDM is crashing on fresh GKE cluster

What steps did you take and what happened:
I installed NDM on fresh GKE cluster.
This issue is happening from 0.9.x
What did you expect to happen:
NDM to function
The output of the following commands will help us better understand what's going on:
[Pasting long output into a GitHub gist or other pastebin is fine.]
https://pastebin.com/X2BGnpYZ
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:

OpenEBS version : 2.3
Kubernetes version (use kubectl version):
Kubernetes installer & version: 1.17
Cloud provider or hardware configuration: GKE
Type of disks connected to the nodes (eg: Virtual Disks, GCE/EBS Volumes, Physical drives etc) : None
OS (e.g. from /etc/os-release): Container-Optimised OS

The panic is occuring when trying to parse the /proc/cmdline file. In GKE, the file contents is as follow:
BOOT_IMAGE=/syslinux/vmlinuz.A init=/usr/lib/systemd/systemd boot=local rootwait ro noresume noswap loglevel=7 noinitrd console=ttyS0 security=apparmor virtio_net.napi_tx=1 systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=false csm.disabled=0 csm.pipe.enabled=1 csm.config.enabled=1 dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 i915.modeset=1 cros_efi root=/dev/dm-0 "dm=1 vroot none ro 1,0 2539520 verity payload=PARTUUID=9046BA55-94F8-9045-BB19-3BD2AF8886B8 hashtree=PARTUUID=9046BA55-94F8-9045-BB19-3BD2AF8886B8 hashstart=2539520 alg=sha256 root_hexdigest=6ed56ab0562829e69580632bfeab9fb33c8fe3eb8b87c86c90f33c1a62bb1ed7 salt=078fe048e9a61cf88232534bd064514e471e7efcbb565e368ef2e54b27f7e857

and the root is defined at root=/dev/dm-0, which is different from the expected format causing a parse error.
cc: @zlymeda , Do you have any ideas on this?

Hi @harshthakur9030
Is the /dev/dm-0 real device? or is it a symlink?
can you provide an output for
ls -l /dev/ | grep dm-0
thanks


Update azure-vmware-solution-platform-updates.md

Updated technical terms

@jjaygbay1
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Fix LineEdit text incorrectly trimmed due to rounding errors.

Since text rendering now supports sub-pixel positioning, scroll offset and caret offset should also use float values to avoid rounding errors. (which was causing last char to be trimmed in some cases).

Thanks!


Add FlowRun Item and Endpoints.

Adds support to the package for getting flow run status, as well as the ability to cancel flow runs.

The API documentation incorrectly has the response XML including an attribute of flow id instead of what it really returns, flowId.
https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_flow.htm#get_flow_run

Adds required endpoints and items for #860

@jorwoods could you please rebase this pull request on latest development?
There are some (hopefully trivial) conflicts. Besides that, I think the wait_for_job method should be refactored to also use the ExponentialBackoffTimer class introduced by #903


Is it possible to update Performance Comparison?

https://frbny-dsge.github.io/DSGE.jl/stable/julia_forecasting/#Performance-Improvements-1
it shouldn't be too hard to compare the same DSGE code with Julia 0.4.5 and 1.7? (without digging up MATLAB again, well, the assumption being MATLAB didn't get visibly faster)

Hi Jerry,
Thanks for your question! We can certainly do so. Is there a particular reason you have in mind for this comparison? It was useful to us last time around because we were deciding whether to switch our code from MATLAB to Julia but we are not currently contemplating a switch back.
Regards,
Shlok

oh, nothing really, just want to see if there's visible free speedup from Julia 0.4.5 -> 1.7


Accept per-URL credentials for STUN/TURN urls

Relevant RFCs:

https://www.rfc-editor.org/rfc/rfc7064.html
https://www.rfc-editor.org/rfc/rfc7065.html

Unfortunately, the RFC do not support specifying the TURN credentials as part of the URI.

Done


add mapValues to Map<K, V>

I often find myself writing
Map newMap = new Map();
m.forEach((k, v) {
  newMap[k] = f(v);
});
...
It would be great if Map had a map or mapValues method instead:
Map newMap = m.mapValues(f);

Map.map has landed.


Combine collection and visualization

Combine these two steps:

cd don; python collector.py - this generates don.json. Update the myenv dictionary in
don/collector.py to match the settings in the file downloaded in the previous
step. This step is soon going to be automated and integrated with the next
step.
python manage.py runserver <IP_ADDRESS>:8000. This runs the django server that
accepts requests on port 8000 from any IP address. For a better understanding of
how to start the django server, please look at official django documentation.
If you get an error "Error: That port is already in use." and you are sure
that there is nothing listening on the port, then use sudo fuser -k 8000/tcp
to kill any process that might still be listening on that port.

We should probably wait on this till we integrate with horizon.

Closed via pull https://github.com/CiscoZeus/don/pull/26


[Docbot]Fix problems in docbot scripts

fix the problems in (https://github.com/apache/pulsar/pull/12611)

@Anonymitaet @eolivelli PTAL

@codelipenghui can you help review this PR? Thanks!

@fengtao1998 It's better to use a new branch to create PRs, details to see https://pulsar.apache.org/en/contributing/. Great contribution.


Do cleaner logging in DotDelegator of HTTP activity

@vijaypoojari @randypitcherii  - Vijay please advise the status/ETA for this item.


chore(master): release 0.9.0

:robot: I have created a release beep boop
0.9.0 (2024-02-01)
Features

updating from newer svd2rust (#73) (b4eef4e)
updating from newer svd2rust (#76) (6ceb99d)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/xmc-rs/xmc4100/releases/tag/v0.9.0 :sunflower:


Update to go 1.17 and dependency update

Checklist

[ ] I have signed the CLA
[ ] I have updated/added any relevant documentation

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


Error after restarting each

Reboot the server, and blows out an error, it happens very rarely, and immediately after a full start of the server.
This error is on both Paper and Plazma.
At the moment it is on Plazma.

ver
[14:31:11 INFO]: Checking version, please wait...
[14:31:12 INFO]: Current: git-Plazma-"74c593f" (MC: 1.20.1)*
Previous: git-Paper-169 (MC: 1.20.1)

You are 5 version(s) behind

Error:

[23:26:10 ERROR]: Caught previously unhandled exception :
[23:26:10 ERROR]: Paper Async Command Builder Thread Pool - 0
java.util.ConcurrentModificationException: null
at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1486) ~[?:?]
at java.util.TreeMap$ValueIterator.next(TreeMap.java:1531) ~[?:?]
at net.minecraft.commands.Commands.fillUsableCommands(Commands.java:487) ~[?:?]
at net.minecraft.commands.Commands.sendAsync(Commands.java:451) ~[?:?]
at net.minecraft.commands.Commands.lambda$sendCommands$4(Commands.java:424) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

Dont report this to Plazma.
Its your data problem
ex)datapack, plugin, etc


Replace timeout.rs with tower-timeout

proxy/timeout.rs contains an implementation of a timeout Tower middleware. tower also contains a tower-timeout crate that does pretty much the same thing. We may want to replace our hand-rolled timeout implementation with the middleware in tower-timeout.

One potential sticking point is that our Timeout and its associated response future also have  tokio_connect::Connect/Connected impls, respectively, that tower-timeout lacks. We can't add these impls due to the orphan rules, so we'd need to introduce a newtype or something.

We can't add these impls due to the orphan rules, so we'd need to introduce a newtype or something.

It seems likely we can add the mocking functionality to this wrapper.


Helpful to include B_MSY in Table 26

Am also thinking we should include somewhere P(B>0.4 B_MSY), P(B>0.8 B_MSY) and P(B>B_MSY) for the current biomass. These are (provisional) DFO reference points, and having them calculated would be useful for Canadian purposes (to say whether the probability of the stock being in the DFO 'healthy zone').

B_MSY is actually in Table 27 (think it didn't build when I made this issue), so no need for it in 26. I'll do the probabilities if time, and maybe just put them in some text somewhere. Not necessary if don't get done.

Done in commit 7ee022fa697aefd5ab6d70408f2848fa1b851a86.
Everyone must delete the base model RData file and do source("all.r");build() because the risk tables code removes the last three columns of the base.model$risks dataframes, so you need the new ones.
Look at the last two lines of custom-knitr-variables.r to see the new variables dfo2018 and dfo2019, which are 3-column dataframes of the reference points Andy mentioned above.

Thanks Chris. I'll re-open this just so I remember to add some text in.

Text can go in 3.6 Ref points. I'll steal some from a POP assessment.


Add test to verify if Asterisk Origin is returned when * is set as a …

…Allowed Origin.
For example:
The request sends 'Origin: example.origin' while * is allowed as
a origin by the CORS rule.
The Server should then respond with * if no Authorization was send.
Signed-off-by: Wido den Hollander<EMAIL_ADDRESS>

The tests succeed and I also verified it with Wireshark that the Server indeed responds with the proper headers.

@wido not crazy about the sleep(3) there, but we do it somewhere else, so for now it's ok. We'll want eventually to have this configurable, or find some other way to do it


Update 03-compute-resources.md

It looks like the subnet-mode parameter has changed names....

nevermind...out of date gcloud
sorry!


Amazon Polly Voices Rate Not Working

Amazon Polly Voices work, but changing the rate in the slider doesn't affect the voice speed for them. Is it possible to have rate supported for third party 64-bit voices?

It is not, it’s up to the provider of any voice libraries to fully support the Windows API features.
Unless rate changing works in ACT, in which case I can look into this.

Using a 6 year old version of the Amazon Polly Voices (Ivona 2) works and changing the rate works too.


Missing soa-model-core v1.3.0

I encountered a failed dependency error when building v4.0.18.
Could not resolve dependencies for project org.membrane-soa.service-proxy:service-proxy-core:jar:4.0.18: The following artifacts could not be resolved: com.predic8:soa-model-core:jar:1.3.0, com.springsource:com.springsource.javax.annotation:jar:1.0.0, com.floreysoft:jmte:jar:3.0-p8: Could not find artifact com.predic8:soa-model-core:jar:1.3.0 in predic8-releases (http://repository.membrane-soa.org/content/groups/public)
https://github.com/membrane/soa-model the oldest tag is 1.3.2.

Hello owieboy,
as far as i can see there is no other option than to use v4.0.19 and onwards. i just had a quick look at the commit history and found this commit https://github.com/membrane/service-proxy/commit/95091fc5fd558d1add6de371d0f6f5b5749003ba
This happened right before v4.0.19 and bumped soa-model-core version to 1.5.0.
Hope i could help you.

Alright, thanks. I encountered this issue while customizing the fileExchangeStore for a requirement in our project. I switched to 4.3.0 and got it working already. Thanks so much.


Weird auto-animation when using gap property

If you use gap property on a grid or a flexbox and try to auto-animate a remove it weirdly jumps around.
Here's a reproduction in codepen: https://codepen.io/paoloricciuti/pen/YzaRyNV

There are a few css properties that appear to require a "double paint" at the browser rendering engine level — when the mutation observer gets fired, only 1 of the two has happened. There are some flex layouts and table layouts that also do the same thing. I'm sure what the solution is to these issues but open to suggestions.

If anyone would have a list of CSS properties that lead to double painting, that would be great. I am encountering these jumps when using more complex objects / layouts and its a shame. Finding a fix or a workaround would be amazing!


BadRequest from Consul when Ocelot has no ReRoutes

Expected Behavior
I'm storing my configuration for Ocelot in Consul. That means that I have a ServiceDiscoveryProvider section in my ocelot.json using Consul (as per the documentation). Without configuring any re-routes, dynamic re-routes or aggregates, I would expect a request going to / to result in an HTTP 404.
Actual Behavior
A request going to / results in a 500 Internal Server Error.
Steps to Reproduce the Problem

Setup Ocelot to use Consul for configuration
Put the following configuration in Consul, using the appropriate configuration key

{
  "ReRoutes": [],
  "DynamicReRoutes": [],
  "Aggregates": [],
  "GlobalConfiguration": {
    "RequestIdKey": null,
    "ServiceDiscoveryProvider": {
      "Host": "localhost",
      "Port": 8500,
      "Type": null,
      "Token": null,
      "ConfigurationKey": "my-configuration-key",
      "PollingInterval": 0,
      "Namespace": null
    },
    "RateLimitOptions": {
      "ClientIdHeader": "ClientId",
      "QuotaExceededMessage": null,
      "RateLimitCounterPrefix": "ocelot",
      "DisableRateLimitHeaders": false,
      "HttpStatusCode": 429
    },
    "QoSOptions": {
      "ExceptionsAllowedBeforeBreaking": 0,
      "DurationOfBreak": 0,
      "TimeoutValue": 0
    },
    "BaseUrl": "www.example.com",
    "LoadBalancerOptions": {
      "Type": null,
      "Key": null,
      "Expiry": 0
    },
    "DownstreamScheme": null,
    "HttpHandlerOptions": {
      "AllowAutoRedirect": false,
      "UseCookieContainer": false,
      "UseTracing": false,
      "UseProxy": true
    }
  }
}

Run Ocelot
Do a request to the root URL where Ocelot is running
See a 500 Internal Server Error being returned

When I examined the log file, I see the following exception being logged:
[14:31:14 ERR] requestId: 80009da2-0000-6f00-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: Unexpected response, status code BadRequest: Missing service name, exception stack:    at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<<UseMiddleware>b__3>d.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context)

   at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 80009da2-0000-6f00-b63f-84710c7967bb

Consul.ConsulRequestException: Unexpected response, status code BadRequest: Missing service name

   at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<<UseMiddleware>b__3>d.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context)

   at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context)

Specifications

Version: 13.8.0
Platform: Windows
Subsystem: Consul

Misconfiguration issue!
Possible reasons

Invalid setup for Dynamic Routing
Invalid Consul service instance deployment
Ignoring Dynamic Routing instructions


Fix -1 Integer Parsing

Sia-UI is currently not able to fetch the transactions from siad. It uses the following api call: /wallet/transactions?startheight=0&endheight=-1
When strconv.ParseUint attempts to parse -1, an error is returned to Sia-UI, rather then the intended behaviour, which is to return all wallet transactions from height 0 to max height.
This fix uses the ParseInt method instead. When the -1 is casted to the BlockHeight type, we get an arbitrarily large number<PHONE_NUMBER>3709551615.
Another way we could fix this bug is to call the current block height from consensus, and set that to the end variable, if the argument sent back is less than 0.

This is probably the easiest solution and works for any negative number. The question is if that behavior is expected by the user. e.g. when the current blockheight is 100 and I call Transactions with 105, would I expect an error?

This feels like a hack. I would rather have an explicit check for a negative number.

Agreed, I think -1 is intended as a sentinel rather than implying support for arbitrary negative numbers.
My preference would be for Sia-UI to request some large number like<PHONE_NUMBER> instead of -1. On the other hand, we want to avoid breaking compatibility if possible, so we should probably continue supporting -1, if not all negative numbers. Perhaps we could explicitly convert negative numbers to math.MaxUint64? Technically this changes the behavior for very large negative numbers, but I highly doubt anyone is passing those.

I don't think the API docs say anything about negative numbers, so this is a case of Hyrum's law:

With a sufficient number of users of an API,
it does not matter what you promise in the contract:
all observable behaviors of your system
will be depended on by somebody.

In my view, Sia-UI was exploiting a behavior of the siad API that wasn't guaranteed to work; it just assumed that -1 would underflow to MaxUint64. So I don't think we have an obligation to preserve that functionality. We could be nice about it and preserve -1 as a sentinel value; I'd be content with that. IIRC bitcoind requires you to use a large number and that's kind of annoying.

Let's explicitly convert negative numbers to MaxUint64 then.

resolves #3096

I don't know i this is before  or after this change code wise, but when i run siac wallet transactions, I get the following:
Could not fetch transaction history: parsing integer value for parameter endheight failed: strconv.ParseInt: parsing "18446744073709551615": value out of range
s
siac version:
Sia Client
Version 1.3.3
Git Revision 94ea84e
Build Time   Tue Jun 12 13:54:39 EDT 2018
Sia Daemon
Version 1.3.3
Git Revision 94ea84e
Build Time   Tue Jun 12 13:54:39 EDT 2018

@Spartan-II-117 bug fixed in PR #3102


Out of stack space error in IE

Large amounts of tests often cause "out of stack space" errors in Internet Explorer (IE <= 9).
After analyzing the call stack when the error is thrown, it is huge!
If I let the tests "breath":
  process.nextTick(function(){
    setTimeout(function () {
      next(0);
    }, 5);
  });

.. all is fine.
The project in which this is happening has 258 asserts and a total of 102 tests.

I believe this is no longer an issue, with the current version of mocha.
If I'm mistaken, please comment and I'll re-open.


Error: The system detected an invalid pointer address in attempting to use a pointer argument in a call

No matter what I do, the status field shows this error.
I've tried to resume the download, force resume, force recheck, force reannounce, restarting PicoTorrent and deleting and readding the torrent.

Yeah, I realised what the problem was

I've seen this before but haven't been able to reproduce it. What was your solution?

Well, I noticed I ran out of disk space.


Crash when printing array that contains itself

Godot version
3.4 / 4.0
System information
W10
Issue description
When you do do
var a = []
a.append(a)
print(a)

Godot will crash.
I checked how Python handles it and it prints [[...]].
Steps to reproduce
See above.
Minimal reproduction project
No response

Regression from #35816. I've tested on 3.4 and it works fine since it doesn't have these changes yet.
I have incremented the recursion_count which fixes the issue, but the output has changed to:
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
(aka 100 recursions before the trigger is called, returning [...])
@touilleMan I see that the PR was to change the ==/!= behavior specifically. Do you think, for the stringify method, the old stack behavior can be reverted, or is there a reason for it's changes too? I've been trying some ideas on how to fix this but I haven't found a clean way to do it, and I think it's gonna be hard to fix this properly under these new changes.


net/http: Transport should discard connections from HEAD responses with a body

Go version
go version go1.22.5 linux/amd64
Output of go env in your module/workspace:
N/A

What did you do?
I have published a small reproducer to this repository: https://github.com/uhthomas/go-unsolicited-http
The instructions are in the README, but for brevity:
Run the server:

code
main.go
package main

import (
	"context"
	"flag"
	"fmt"
	"io"
	"log"
	"net/http"
	"sync/atomic"
)

type Server struct {
	requestCount uint64
}

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
	requestID := atomic.AddUint64(&s.requestCount, 1)

	if f, ok := w.(http.Flusher); ok {
		f.Flush()
	}

	res, err := http.Get("https://go.dev")
	if err != nil {
		panic(err)
	}

	n, err := io.Copy(w, res.Body)

	fmt.Printf("%d: %d bytes written, err=%v\n", requestID, n, err)
}

func Main(ctx context.Context) error {
	addr := flag.String("addr", ":8080", "address to listen on")
	flag.Parse()

	log.Println("listening on", *addr)

	return http.ListenAndServe(*addr, &Server{})
}

func main() {
	if err := Main(context.Background()); err != nil {
		log.Fatal(err)
	}
}

❯ go run github.com/uhthomas/go-unsolicited-http/cmd/server@main

Run the client:

code
main.go
package main

import (
	"context"
	"fmt"
	"log"
	"net/http"
	"time"
)

func Main(ctx context.Context) error {
	for i := 0; ; i++ {
		fmt.Println("attempt", i)

		if _, err := http.Head("http://localhost:8080"); err != nil {
			return fmt.Errorf("head: %w", err)
		}

		time.Sleep(200 * time.Millisecond)
	}
}

func main() {
	if err := Main(context.Background()); err != nil {
		log.Fatal(err)
	}
}

❯ go run github.com/uhthomas/go-unsolicited-http/cmd/client@main

What did you see happen?
Server:
1: 54 bytes written, err=<nil>
2: 0 bytes written, err=readfrom tcp [::1]:8080->[::1]:48336: write tcp [::1]:8080->[::1]:48336: write: broken pipe
3: 54 bytes written, err=<nil>
4: 54 bytes written, err=<nil>
5: 54 bytes written, err=<nil>
6: 54 bytes written, err=<nil>
7: 54 bytes written, err=<nil>
8: 54 bytes written, err=<nil>
9: 54 bytes written, err=<nil>
10: 0 bytes written, err=readfrom tcp [::1]:8080->[::1]:33742: write tcp [::1]:8080->[::1]:33742: write: broken pipe

Client:
attempt 0
2024/07/26 16:17:17 Unsolicited response received on idle HTTP channel starting with "<!DOCTYPE html>\n<html>\n  <head>\n    <title>Thomas</tit"; err=<nil>
attempt 1
2024/07/26 16:17:17 Unsolicited response received on idle HTTP channel starting with "<!DOCTYPE html>\n<html>\n  <head>\n    <title>Thomas</tit"; err=<nil>
attempt 2
2024/07/26 16:17:17 Unsolicited response received on idle HTTP channel starting with "<!DOCTYPE html>\n<html>\n  <head>\n    <title>Thomas</tit"; err=<nil>
attempt 3
2024/07/26 16:17:17 Unsolicited response received on idle HTTP channel starting with "<!DOCTYPE html>\n<html>\n  <head>\n    <title>Thomas</tit"; err=<nil>
attempt 4
2024/07/26 16:17:17 Unsolicited response received on idle HTTP channel starting with "<!DOCTYPE html>\n<html>\n  <head>\n    <title>Thomas</tit"; err=<nil>
attempt 5
2024/07/26 16:17:17 Unsolicited response received on idle HTTP channel starting with "<!DOCTYPE html>\n<html>\n  <head>\n    <title>Thomas</tit"; err=<nil>
attempt 6
attempt 7
2024/07/26 16:17:18 do: Head "http://localhost:8080": net/http: HTTP/1.x transport connection broken: malformed HTTP status code "html>"
exit status 1

What did you expect to see?
There should be no Unsolicited response received on idle HTTP channel starting with messages, and the request should not fail with net/http: HTTP/1.x transport connection broken: malformed HTTP status code "html>".

Related Issues and Documentation

net/http: zombie connection leaked after Server.IdleTimeout #51614 (closed)
net/http: `readLoopPeekFailLocked: <nil>` from client when server sends response immediately #31259
net/http: transport closes healthy connections when pool limit is reached #42650
net/http: error dropped when header read times out #56390
net/http: client errors on server graceful shutdown #23829 (closed)
net/http: unexpected 1XX status codes are not handled well #17739 (closed)
net/http: Errors from persistConn.readLoop not returned to client still writing a request #62447
x/net/http2: raciness in stream close prevents closing of failed connections, blocking subsequent requests #59690
net/http: http.Client not properly handling broken connections  #8946 (closed)
net/http: server does not send response on timeout #47229

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

https://github.com/golang/go/issues/19895 is one of the only matches for "Unsolicited response received on idle HTTP channel starting with" and claims the HTTP server to be misbehaving.

Your server is indeed misbehaving by writing data when it receives a HEAD request.

Sure, but it should not cause this sort of behavior at all. It's quite problematic, and inconsistent. Under many circumstances, there are no issues with writing a response to a HEAD request, even if it's wrong. It should not affect other connections to the server, which it does, and it should not leak data between connections, which it does. Please can this be reopened and considered more fairly?

@seankhliao where is that documented in the net/http docs? A quick skim doesn't show me anything, even if HEAD responses not containing a body could be common knowledge.
Assuming you're right about that assumption, I would imagine that calling Write on https://pkg.go.dev/net/http#ResponseWriter for a HEAD request should result in either a clear error or panic, and not anything like corruption or data races or confusing errors.

To me the issue here looks like a Go HTTP client receiving a body in response to an HEAD request, and then the established HTTP/1.1 connection was reused for another request, where it tried to read the previously sent body as the start of the new response. This could happen regardless of the server implementation.
RFC 9110 section 9.3.2. recommends clients close and error when a HEAD response is received with a body to avoid request/response smuggling. Is that something we can consider here?

looks like the client (transport) assumes a HEAD request never has a body https://go.googlesource.com/go/+/3959d54c0bd5c92fe0a5e33fedb0595723efc23b/src/net/http/transport.go#2245
cc @neild

I suppose #62015 would be the corresponding issue for discarding the body from the server side

Thanks for the additional input, and thank you for reopening.
Something I'd really like to understand is why this doesn't happen when writing data in-memory? I could only ever reproduce this when making a HTTP request on the server and writing it back to the client.

Some of the above is talking about a body in a HEAD request, and some is talking about a body in the response to a HEAD request. These are completely different things.
HEAD requests may contain a body, but the body has no defined semantics. (RFC 9110, section 9.3.2)
The response to a HEAD request does not contain a body. RFC 9112, section 6.3:

Any response to a HEAD request and any response with a 1xx (Informational), 204 (No Content), or 304 (Not Modified) status code is always terminated by the first empty line after the header fields, regardless of the header fields present in the message, and thus cannot contain a message body or trailer section.

Improperly writing a body leaves a connection in an invalid state, since the client is expecting the next bytes read to be the status line for the next request on the connection.

Thanks for the report, @uhthomas. This is a bug in net/http. The problem is that while an http.ResponseWriter normally discards the body for HEAD requests, ResponseWriter.ReadFrom fails to do so. Triggering this bug requires either calling ReadFrom directly, or using io.Copy to copy to a ResponseWriter from a source with no WriteTo method.

@neild Ohh, that answers my previous question, thank you so much for the insight.

Sorry, other than my mis-titling I think everything else was about bodies in the response to HEAD.
Should the client / transport need to defend against misbehaving servers?

The client does defend against misbehaving servers--that's the "Unsolicited response received on idle HTTP channel" error, which indicates that the server sent something unexpected. Perhaps the error message could be clearer; in this case the bytes read on the idle connection aren't a response,
It's not something that should show up often, though, because a server needs to be quite broken for this to happen.

@neild Given this error on the client, I don't think it's doing a very good job of defending against this?
2024/07/26 16:17:18 do: Head "http://localhost:8080": net/http: HTTP/1.x transport connection broken: malformed HTTP status code "html>"

What do you think the client should have done in that case? It sent a request, and the server sent an invalid response (which happens to be the body of the previous response).

In my testing the response was sent as part of the original request, so it was sent before the client sent a second request. As mentioned in https://github.com/golang/go/issues/68609#issuecomment-2253101627 I'd expect a reject and a connection close by the client.

Perhaps around here the client could check if there was still buffered content and if so mark it as connection close?
I'm guessing that if there was a body, chances of the current buffer having been exactly the header to be quite low.

The client will read the extra data and close the connection (that's the "Unsolicited response..." error). If the client is immediately sending another request on the connection, there's a race condition between seeing the extra data and sending the next request.
I don't think it's worth trying to detect this, because there will still be a race condition--there's no way to assert "the server didn't send us anything", because the data it improperly sent might still be in flight. And this only comes up if a server is completely broken. (Which, alas, net/http is.)

chances of the current buffer having been exactly the header to be quite low.

Seems fairly likely to me; it's not uncommon for a server to send headers in one packet and the body in another. In fact, that's exactly what the reproduction case here is doing (flush headers, then copy body).

I think given http.Client is used for reverse proxies, we should exercise caution and do the right thing here.

Some quick data on how often these messages occur in a real environment (time range of 2 days).

Mükemmel kalite olarak işaretliyorumm

I tried a couple of things in an attempt to simplify my original reproducer and found that I cannot reproduce the net/http: HTTP/1.x transport connection broken: malformed HTTP status code message, only Unsolicited response received on idle HTTP channel starting with with this:
if rf, ok := w.(io.ReaderFrom); ok {
	n, err := rf.ReadFrom(io.LimitReader(rand.Reader, 1<<10))
	fmt.Printf("%d: %d bytes written, err=%v\n", requestID, n, err)
	return
}

Any ideas on why that could be the case?
I also now understand why I couldn't reproduce it with this snippet:
io.Copy(w, strings.NewReader(strings.Repeat("some string", 10)))

*strings.Reader implements io.WriterTo, which has precedence over io.ReaderFrom.

@neild Should we reopen this to track work in the HTTP client / transport? I really feel it should be a bit more defensive.

I've raised #68653 to track the HTTP client.


Deserialization cross platform question.

We are currently experimenting with protosuff, just had a question regarding compatibility with protostuff and Protobuf.
We currently using protostuff runtime to serialise our existing java objects using the Tag annotation. Can an object serialised with protostuff work with Protobuf?
e.g
ProtostuffIOUtil.toByteArray(payload, schema, buffer)
ProtobufIOUtil.mergeFrom(buffer, object, schema);

We are currently getting the following exception
io.protostuff.ProtobufException: Protocol message tag had invalid wire type.

Works as expected, there was an error in my Tag numbers, as a result the exception.