[SPARK-19590][pyspark][ML] Update the document for QuantileDiscretizer in pyspark

What changes were proposed in this pull request?
This PR is to document the changes on QuantileDiscretizer in pyspark for PR:
https://github.com/apache/spark/pull/15428
How was this patch tested?
No test needed
Signed-off-by: VinceShieh<EMAIL_ADDRESS>

Merged build triggered.

Merged build started.

Test build #72850 has started for PR 16922 at commit 25bdc0f.

Test build #72850 has finished for PR 16922 at commit 25bdc0f.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72850/
Test FAILed.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #72851 has started for PR 16922 at commit 9ce7cb8.

Test build #72851 has finished for PR 16922 at commit 9ce7cb8.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72851/
Test FAILed.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #72852 has started for PR 16922 at commit c5e46fb.

Test build #72852 has finished for PR 16922 at commit c5e46fb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72852/
Test PASSed.

Test build #72908 has started for PR 16922 at commit 56e708f.

Test build #72908 has finished for PR 16922 at commit 56e708f.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72908/
Test PASSed.

Merged build finished. Test PASSed.

Thanks for doing the follow up Python work, merged to master :)


Simplify httplib2 refresh/retry logic

Keeps Travis green?

Should be as green as a fresh meadow.

And it is. :)

@nathanielmanistaatgoogle I'm moving quickly because I have a lot of these staged, if I merge and you have comment, I'll address them in the next PR. :)


AddPoint(…) method missing in v3

Specifications
Follow the tutorial for influx cloud server less.
AddTag and AddField methods not found on Point (I think it’s supposed to be on the encoder)
Code sample to reproduce problem

CreatePoint(…).AddPoint(…).AddTag(…)
Expected behavior
New point
Actual behavior
Compile error
Additional info
No response

Hi @nargetdev,
Thank you for reaching out.
You mentioned AddTag and AddField, but these methods are not currently part of our official source base.
To better assist you and ensure you’re receiving accurate guidance, could you please share which tutorial or documentation you are following?
Looking forward to your response so we can help you.
Best Regards.

Log into the influxdb cloud dashboard.
Load Data => Sources => ClientLibs::Go
Below instructions copied:
mkdir -p influxdb_go_client cd influxdb_go_client go mod init influxdb_go_client touch main.go
go get github.com/InfluxCommunity/influxdb3-go
export INFLUXDB_TOKEN=2fPEDnY6nD...........GGN0SlA==
package main

import (
    "context"
    "fmt"
    "time"

    "github.com/InfluxCommunity/influxdb3-go/influxdb3"
)

func main() {
    // Create client
    url := "https://us-east-1-1.aws.cloud2.influxdata.com"
    token := os.Getenv("INFLUXDB_TOKEN")

    // Create a new client using an InfluxDB server base URL and an authentication token
    client, err := influxdb3.New(influxdb3.ClientConfig{
      Host:  url,
      Token: token,
    })

    if err != nil {
      panic(err)
    }
    // Close client at the end and escalate error if present
    defer func (client *influxdb3.Client)  {
      err := client.Close()
      if err != nil {
        panic(err)
      }
    }(client)

    database := "generators"

    data := map[string]map[string]interface{}{
  "point1": {
    "location": "Klamath",
    "species":  "bees",
    "count":    23,
  },
  "point2": {
    "location": "Portland",
    "species":  "ants",
    "count":    30,
  },
  "point3": {
    "location": "Klamath",
    "species":  "bees",
    "count":    28,
  },
  "point4": {
    "location": "Portland",
    "species":  "ants",
    "count":    32,
  },
  "point5": {
    "location": "Klamath",
    "species":  "bees",
    "count":    29,
  },
  "point6": {
    "location": "Portland",
    "species":  "ants",
    "count":    40,
  },
}

// Write data
options := influxdb3.WriteOptions{
  Database: database,
}
for key := range data {
  point := influxdb3.NewPointWithMeasurement("census").
    AddTag("location", data[key]["location"].(string)).
    AddField(data[key]["species"].(string), data[key]["count"])

  if err := client.WritePointsWithOptions(context.Background(), &options, point); err != nil {
    panic(err)
  }

  time.Sleep(1 * time.Second) // separate points by 1 second
}

}

go run ./main.go
... specifically:
  for key := range data {
    point := influxdb3.NewPointWithMeasurement("census").
      AddTag("location", data[key]["location"].(string)).
      AddField(data[key]["species"].(string), data[key]["count"])

I think they just forgot to update the tutorial to current syntax.
corrected:
package main

import (
    "context"
    "fmt"
    "os"
    "time"

    "github.com/InfluxCommunity/influxdb3-go/influxdb3"
)

func main() {
    // Create client
    url := "https://us-east-1-1.aws.cloud2.influxdata.com"
    token := os.Getenv("INFLUXDB_TOKEN")

    database := "test-telem"

    // Create a new client using an InfluxDB server base URL and an authentication token
    client, err := influxdb3.New(influxdb3.ClientConfig{
	    Host:     url,
	    Token:    token,
	    Database: database,
    })

    if err != nil {
	    panic(err)
    }
    // Close client at the end and escalate error if present
    defer func(client *influxdb3.Client) {
	    err := client.Close()
	    if err != nil {
		    panic(err)
	    }
    }(client)

    data := map[string]map[string]interface{}{
	    "point1": {
		    "location": "Klamath",
		    "species":  "bees",
		    "count":    23,
	    },
	    "point2": {
		    "location": "Portland",
		    "species":  "ants",
		    "count":    30,
	    },
	    "point3": {
		    "location": "Klamath",
		    "species":  "bees",
		    "count":    28,
	    },
	    "point4": {
		    "location": "Portland",
		    "species":  "ants",
		    "count":    32,
	    },
	    "point5": {
		    "location": "Klamath",
		    "species":  "bees",
		    "count":    29,
	    },
	    "point6": {
		    "location": "Portland",
		    "species":  "ants",
		    "count":    40,
	    },
    }

    // Write data
    points := make([]*influxdb3.Point, 0, len(data))
    for key := range data {
	    point := influxdb3.NewPoint(
		    "census",
		    map[string]string{
			    "location": data[key]["location"].(string),
		    },
		    map[string]any{
			    data[key]["species"].(string): data[key]["count"],
		    },
		    time.Now(),
	    )
	    points = append(points, point)

	    time.Sleep(1 * time.Second) // separate points by 1 second
    }

    if err := client.WritePoints(context.Background(), points); err != nil {
	    panic(err)
    }

    // Query data
    // Execute query
    query := `SELECT *
  FROM 'census'
  WHERE time >= now() - interval '1 hour'
    AND ('bees' IS NOT NULL OR 'ants' IS NOT NULL)`

    queryOptions := influxdb3.QueryOptions{
	    Database: database,
    }
    iterator, err := client.QueryWithOptions(context.Background(), &queryOptions, query)

    if err != nil {
	    panic(err)
    }

    for iterator.Next() {
	    value := iterator.Value()

	    location := value["location"]
	    ants := value["ants"]
	    bees := value["bees"]
	    fmt.Printf("in %s are %d ants and %d bees\n", location, ants, bees)
    }

}

@nargetdev thanks for clarification. We will take a look.


make plugin e2e tests skippable

This PR:

updates the plug-in framework to help make the e2e tests skippable when the plug-in is not enabled
removes the unit test timebomb
adds a new make target make update-plugin-deps
make the new target a dependency of the make vendor target

The CSV Labeler Plug-in test suite included a timebomb to force us to remember to switch the branch of its dependency on
github.com/openshift/cluster-policy-controller, i.e.
olm@release-master -> cluster-policy-controller@master
<EMAIL_ADDRESS>-><EMAIL_ADDRESS><EMAIL_ADDRESS>-><EMAIL_ADDRESS>...
Instead of this, I've added a new script that go gets the latest dependency at the particular branch and attached it to the make vendor target. If there are changes here, the verify job will fail and we'll have to update the vendor folder and update the PR.
NOTE verify job will fail due to the removal of the timebomb test: changes to staging - this can be safely overridden
Signed-off-by: perdasilva<EMAIL_ADDRESS>

How can I disapprove this? 😉

How can I disapprove this? wink

Just say the work, @dinhxuanvu XD

/override ci/prow/verify
This is deliberately downstream-only.

/retest

/hold for linking with OCPBUGS-7102

/unhold

/test e2e-upgrade

/retest

/retest

/retest

/retest

/retest

/lgtm

/retest-required

/retest

/test verify

/override ci/prow/verify
Urg.  Evidently I have to override for normal CI, and then for pre-merge-check CI as well?

/cherry-pick release-4.12


Adding font-awesome-iron-iconset makes the UploadHandler component from Viritin disappear from my page.

Could it be that these 2 add-ons are conflicting somehow? Initially logged here https://github.com/viritin/flow-viritin/issues/60

To reproduce:

clone https://github.com/vaadin/skeleton-starter-flow-spring
Add these dependencies in pom.xml <dependency>
   <groupId>in.virit</groupId>
   <artifactId>viritin</artifactId>
   <version>2.8.15</version>
 </dependency>
 <dependency>
   <groupId>com.flowingcode.addons</groupId>
   <artifactId>font-awesome-iron-iconset</artifactId>
   <version>5.2.2</version>
 </dependency>

Change MainView.java to be just this:

@Route
public class MainView extends VerticalLayout {
    public MainView(@Autowired GreetService service) {

        add(new UploadFileHandler((content, fileName, mimeType) -> {
        }));
    }

mvn clean spring-boot:run, you will notice the widget being shown in the view.
mvn com.vaadin:vaadin-maven-plugin:clean-frontend
mvn clean spring-boot:run -Pproduction and the widget disappears from the view.
Remove the font-awesome-iron-iconset dependency
mvn com.vaadin:vaadin-maven-plugin:clean-frontend
mvn clean spring-boot:run -Pproduction, the upload widget appears again.

Hello. Which exact version of Vaadin are you using? Is there any error message in the browser console?

24.3.10, there are no errors reported in the java console.

I have tried older versions (up to 2.8.5) of the viritin add-on, but the problem persists. It always works in development mode, but never in production mode. It seems that these 2 add-ons are stepping on each other toes somehow. If there is anything i can do to debug this, happy to help.

I just figured out that setting <optimizeBundle>false</optimizeBundle> on the vaadin-maven-plugin fixes things. So this is likely a bug in Vaadin and not this plugin.

This was fixed in Viritin, so i think the issue can be closed here.

Thanks for confirming that this issue has been fixed in Viritin. If you encounter any further issues or have additional questions, please feel free to open a new issue.


add sleeps between git create and git clone

@kennnaaay , can you please set the DCO for your commits in this PR.
@vbudi000, worked with Kenny to debug the step in the bootstrap.sh to fork the repos.  Without adding a sleep, there are instances where the repo might not have completed the "fork" so when the script tries to clone the repo, this results in an error.


Please setup a discord server for this

Nice project. Setting up a discord server will help the community.
Have been trying to get in touch with you over email.

Hey, thanks for the kind words :)
I was planning on setting up a Discord server but haven't gotten around yet.
If you messaged me via E-Mail it might just be that it got swept under as my Inbox isn't sorted currently and I get a ton of mails 😅
Is there a name to look out for so I can reply to your mail?

@bcakmakoglu : could you please help reach out. Really look forward to it.

Could we please schedule a call :D


Entry Format

Related: #2

[ ] Grouping: by SDGs? or by main programming language?
[ ] Sorting: Alphabetically? By the number of contribs?
[ ] Entry format:

main programming language (or related SDGs, depends on grouping)
minor languages?
# contributors & # maintainers
If github: # stars
Recent activity
is it FOSS or not (license)
Repositories url
Project main website url
Why is this project awesome?
Why is this project actionable toward an SDG?

Interesting examples:

awesome-linux: using pictures
30-seconds-of-code: ToC, Back to top, Collaborators, Credits
awesome-datascience: Infographic, Comics
awesome-iot: section comments
awesome-open-company: Table format with icons
awesome-open-source-supporters: Tags
awesome-swift: Stats, tag icons
awesome-go: slack, patreon
awesome-css: icons, video time, github organization
awesome-deep-vision: illustrations, gitter
awesome-public-datasets: automatic generation from another repo in awesomedata org, , health status icon
search-engine-optimization: bold links
mind-expanding-books: Table format, goodreads python scripts
awesome-scifi: synopsys, icons, goodreads score
awesome-hacking-locations: using a lot of things, nice overall
awesome-connectivity-info: : project logo
awesome-home-assistant: cool logo, having their own website
awesome-open-iot: Listing projects similar to us. Table format, and they care about Licensing

Ideas:

Add comments per category to succinctly explain what the SDGs are about.
Create and maintain a weekly digest mailing list (entries to the awesome list and marking events in the world related to SDGs)

Like I wrote in my comment in #2 I think that sorting by SDGs makes the most sense, since we probably won't be able to pin down a primary programming language for every project.
Similarly, I would sort the entries Alphabetically, because the number of contributions is a bit wacky. What is used as a metric for it? Number of commits is the most common, but different projects have different average commit sizes.
Additionally, that sorting would need regular updates, which means a few things:

We have to automatically figure out the metric, otherwise we can't rank them. Including the metric is definitely nice, but I don't think it's feasible to support every possible hosting platform (Github, Bitbucket, GitLab, GitTea etc.)
The order of existing entries will change. I would recommend against it for two reasons:

The update commit will be littered by re-orderings that just obfuscate a simple number update
Based on other awesome lists, I would expect the list ordering to be static
Lastly, I'd prefer not to rank the individual projects, but instead only provide a list of "approved" projects without giving any idea of a ranking.

The entry format is a more complicated topic. It heavily depends on how much information we want to provide for every project.
Most awesome-lists simply have the project name, a link and the short (1 sentence) description of the repository. I would welcome a bigger description text, but I'm skeptical whether it should be shown by default or hidden underneath a .
I think the following entries are uncontroversial: programming language, license, repo url, website url
Number of stars, contributors and maintainers might also be useful.
I'm not sure what you mean by "recent activity". Could you elaborate on that?

Ideas:

Sensibilize the readers of the list to the SDGs (assume they don't know the details). Eg write notes for each category.

I do think we should include some explanation of what SDGs are – either written as a document in this repository or as an external link. However, I do think that the main focus of the list should be the projects and that any explanations should be at most 4 lines of text. The rest should be linked.

Create and maintain a weekly digest mailing list (entries to the awesome list and marking events in the world related to SDGs)

I'm not sure how successful that would be. For two reasons:

Simply watching this repository would achieve a similar effect built into github
We probably won't have enough new additions every week to warrant enough content.
Including events etc. might fill this, but I feel like that is a bit far away from what this list should do.

Have a webpage for the list with more sorting/grouping options

Definitely support that and I've also already offered creating (and maintaining) it.

I think that sorting by SDGs makes the most sense, since we probably won't be able to pin down a primary programming language for every project.

The counter-argument is that some projects can be categorized in several SDGs.
Managing duplicates would be a bothering chore, but we already thought of a solution by using json/yaml.  Let's start with a default SDGs categorization, and if it becomes an issue in the future, it should be easy to change it.

Similarly, I would sort the entries Alphabetically, because the number of contributions is a bit wacky. What is used as a metric for it?
Ok for alphabetically default sorting.
My initial through on a sorting metric is the size of the project by its number of contributors. We can safely assume that the more maintainers a project has, the bigger the project and larger its potential impact.
In https://github.com/Fandekasp/awesome-oss-sdgs/issues/5#issuecomment-518056421, I also suggested maintaining a highly-opinionated Index score. This would be lot of work, but I'm sure you can see the value in it :) We could eventually become influencers and help the most impactful projects to get the human resources they need to move on.

The counter-argument is that some projects can be categorized in several SDGs.

That is true, but I'm recon that it's less so in SDGs. In the worst case, we could merge some of them?
Then I would probably see problems in cases like this: SDG 1 is similar to SDG 2 or SDG4, but I can see a lot of projects for either combination that do not fit in the other one.

Let's start with a default SDGs categorization, and if it becomes an issue in the future, it should be easy to change it.

That's probably a good idea.

My initial thought on a sorting metric is the size of the project by its number of contributors.

I can see the more-people > more-impact argument.
It is still only a very rough estimate, but you definitely have more experience with judging projects than I do.
However, I'd rather be a fan of

I also suggested maintaining a highly-opinionated Index score.

Depending on the score that might also be a valid sorting metric.

Let's just keep the idea in mind if another maintainer joins the team who wants to regularly keep himself in touch with the SDG actuality and share the important bits with everybody (not especially related to the projects listed here).

Definitely. I could even see us promoting a third-party email list?

As per https://github.com/Fandekasp/awesome-oss-sdgs/issues/2#issuecomment-518191371, let's only agree on a YAML template and start collecting data.
The markdown/html rendering will be scripted, so we can leave the discussion of their format for later.

We can also have a list of YAML files that can then be concatenated together

If that's more maintainable. But what would those files be? One for every goal?

How about one YAML file per project? Like this, we can decide in this issue the yaml template, and everytime we find an interesting project, it's a matter of copying the template and filling in the blanks. Should be easy enough for other contributors to participate as well.
for the syntax, since we're into javascript stuff, camelCase makes sense.
Let's also ask contributors to use yamllint, to insure all files have valid syntax
WIP, editing
# Project template
---
programmingLanguage:
  - python:
    main: true
  - java
  - swift
license: CC0
repoUrl: https://github.com/org/project/
websiteUrl: https://project.org

How about one YAML file per project?

Sounds good

Let's also ask contributors to use yamllint, to insure all files have valid syntax

Yeah, we could also integrate that with GitHub's Pull Requests.
It would also be interesting to check for required elements or invalid links etc.. It might be useful to add that, too? Kwalify looks like a solid choice for it, since it not only offers optional types, but also regex-pattern matching. I haven't found any pre-made github-integration for it, though, and I doubt that a custom hook is gonna be worth it for now. It also lacks further checks, like whether a link produces a valid answer or not.
I guess, we could provide a script to check for it rather easily, though (we already need to parse for all of those things to auto-generate the rest of the files, anyways)

I suggest we also leave optional fields for the stuff that might be useful at some point, or that we want to display but isn't always available, or to overwrite information that we can otherwise automatically parse (like github stars)

Sure, I'd suggest to differentiate between optionals and overwrites, though.
"optionals" being information like contributionGuidelinesUrl and logoUrl, that do not necessarily have to be provided
"overwrites_ would be information that we try to automatically get (like starUrl or numberContributors), but can be overwritten if e.g. the given domain does not support it. They should generally also be allowed to be not set, if they can't be auto-generated and have not been overwritten.

Concerning the first draft:

Let's add the rating from #5 to the file :)

I'm not sure, we need a "main" programming language. It could also proof hard to identify one. The simplest example, where this might fail, would be any form of website: it uses HTML, CSS, JS, potentially TS in often rather balanced amounts.
If we want to keep it, how about allowing multiple "main" languages? (if that wasn't already the intent)

I feel like a "contribute" link should be mandatory: After all the whole point of this repo is to provide easy access to projects to contribute to. (That link is probably going to be contributionGuidlinesUrl)

I might want to add a maintainer field for the company, organization or individual, who "own" the project. Maybe it should even be called owner or organization?

Contributors could probably also be a url? Github f.i. allows access to it through its api, even though that returns a list of all contributors. Using GraphQl in v4 it seems like it can return only the count. It also mentioned that you need to have a OAuth token, but I assume that public information of other repositories will still be available.

To communicate with the GraphQL server, you'll need an OAuth token with the right scopes.

After these draft 2 would be:
# Project template
---
# The description should explain why this project is awesome.
# and how it impacts a global issue
description: >
  YAML offers several options to write multiline strings,
  Use whatever you want:
  https://yaml-multiline.info/
globalIssues:
  - issue1  # list of issues TBD
# the license should be OSI approved:
# https://opensource.org/licenses/alphabetical
license: CC0
name: "Project's name"
programmingLanguages:  # (added an plural s here)
  - python
  - java
  - swift
repoUrl: https://github.com/org/project/
websiteUrl: https://project.org
contributionGuidelinesUrl: "https:/project.org/contribute/"
# See guideline on how to rate a project
rating: 5

# OVERWRITE GENERATED FIELDS
# We will attempt to auto-generate these
# values, but aren't always able to do so.
# Please overwrite if needed. (TODO: Provide link to more information)

logoUrl: ""
numberContributorsUrl: https://api.github.com/repos/org/proj/stats/contributors
starsUrl: "https://img.shields.io/github/stars/org/project.svg\
          ?style=social&label=Star&maxAge=2592000"

# OPTIONAL FIELDS
# You can leave these fields empty,
# if they don't fit the project

licenseUrl: "https://project.org/license/"
sdgs: [1, 3]  # list of integers, from 1 to 17
naturalLanguages:
  - English
  - German

About the multiple yaml files: for the webpage we would need one SST.
With multiple files, we could theoretically access the Github api or have another file, which indexes all of them and the website will request all of them one by one, but that's rather inefficient.
Github pages also doesn't allow for server-side scripting in order to cache the list.
So, if we want to have a separate file for every entry (which I really like), we'd either need:

One file that aggregates all of them and gets automatically created together with the markdown
One file that references all of the known project files
Access to the github-api to parse for the relevant files

While 1) is by far the nicest version for the website, it also adds a lot of clutter. I, therefore lean towards 3), but I'd have to look further into the github API on how easy it will be.

Since I'm currently writing the first draft for the Contribution Guideline, I noticed how weird the overwrite functionality is:
We are capable of extrapolating some information. However, it would make sense to add it to the file nonetheless, because then we will avoid having to do it every time (including on the website).
Since the user already has to execute the markdown generator, we could also re-write the original yaml-file? This might be a bit irritating, but it would enable us to not require the user to fill out the autogenerateable information and still have it added to the file.
The other option I could see, would be to have the user add it manually and simply provide the links for the usual platforms in the documentation.
Related: #8

Update of the template from feature/contribution-guideline: (open for evaluation)
# Project template
---
name: Project's name
# The description should explain why this project is awesome.
# and how it impacts a global issue
description: >
  YAML offers several options to write multiline strings,
  Use whatever you want:
  https://yaml-multiline.info/
globalIssues:
  - issue1  # list of issues TBD
# the license should be OSI approved:
# https://opensource.org/licenses/alphabetical
license: CC0
programmingLanguages:
  - python
  - javascript
  - c#
repoUrl: "https://github.com/org/project/"
websiteUrl: "https://project.org"
# See guideline on how to rate a project
rating: 1

# OVERWRITE GENERATED FIELDS
# We will attempt to auto-generate these
# values, but aren't always able to do so.
# Please overwrite if needed. (TODO: Provide link to more information)

contributionGuidelinesUrl: "https:/project.org/contribute/"
logoUrl: ""
starsUrl: "https://img.shields.io/github/stars/org/project.svg?style=social&label=Star&maxAge=2592000"
# Link to access the amount of contributors to the project
# The type defines what answer is expected
# See CONTRIBUTING.md for more information
numberContributors:
  url: "https://api.github.com/repos/org/proj/stats/contributors"
  format: json # or yaml or xml
  accessor: list # or number or property name prepended by ?

# OPTIONAL FIELDS
# These fields may be empty.
# If they fit the project, please still
# try to fill them out

licenseUrl: "https://project.org/license/"
sdgs: [1, 3]  # list of integers, from 1 to 17
naturalLanguages:
  - English
  - German

Closing since the related PR has been merged


TypeError: Cannot set property 'userId' of undefined

Hi Ben,
Thank you so much for this tutorial.
If any one can help me I would really appreciate it
I have been stuck on this part for over two days. Any time I add in line 141 I get the error below in my sandbox . I have also added in a screen shot from my types file. I also do not see any cookie being set. I f I remove line 141 I do not get an error it logs me in but still does not set a cookie.
Thanks for any help!

)

If you hover into the session from request object, you'll get:

This request's Session object. Even though this property isn't marked as optional, it won't exist until you use the express-session middleware Declaration merging can be used to add your own properties.

The default Session object isn't able to add out custom fields like UserId. My take was to do declaration merging by:
First, updating the tsconfig file to use the declaration i.e, adding up
  "typeRoots": [
    "./src/types", // for express.session declaration merging
    "./node_modules/@types"
  ]

And adding this in the types.ts:
import "express-session";

declare module 'express-session' {
    export interface Session {
        userId: number;
    }
}
export type myContext = {
    em: EntityManager<IDatabaseDriver<Connection>>;
    req: Request & { session: Session & Partial<SessionData> };
    res: Response;
}

Also, see check the secure property in the cookie property of app.use(session(...)). I had to set it to false to make the cookie work. Hope this helps.

I first solve this problem with @akumaaayush's approach, and then, I found an issue that is all about this problem, so I came to share it.
https://github.com/benawad/lireddit/issues/13

@akumaaayush @ryankert01   thank you for your help but I have tried all this plus everything in #13 and I am still getting the same error.


[Bug] Provider keeps spamming node after TX confirmed

Component
provider, pubsub
What version of Alloy are you on?
0.3.6
Operating System
Linux
Describe the bug
I noticed my RPC provider getting spammed with eth_blockNumber and eth_getBlockByNumber calls after sending a tx.
In my use case I am not even watching pending transactions, but still it starts to spam and doesn't stop unless I restart all over.
Here is a quick reproduction video and a repository.
The repo uses 0.3.6, but I tested also with 0.2.1 and 0.1.4 and all behave the same.
In this scenario I am watching and confirming that the transaction went through.
https://github.com/jgalat/alloy-repro-0
https://github.com/user-attachments/assets/7ff3a259-b06a-4175-8e02-543c20abc9b2

there is a check for is is_local, maybe there could be a setter at the provider level but i don't think this is a bug

@nhtyy Thanks for answering, but why is it pinging?
Some RPC providers charge credits for this call, e.g. Alchemy uses 10 CU.
Also I see that this doesn't start unless I send a signed tx. eth_calls or eth_subscribe methods don't trigger the spam.

This is the intended behavior. It's the background task that follows the chain for handling pending transactions. It's started when the first transaction is sent and closed when the last provider is dropped. I guess it could also be paused if there are no pending transactions? cc @klkvr @mattsse

Thanks for taking a look @DaniPopes. I've been trying to find an alternative to at least increase the polling interval after reading nhtyy's comment, but seems to be impossible. Here's what I've been trying
    let ws = WsConnect::new("ws://localhost:8545");
    let transport = ws.into_service().await?;
    let client = ClientBuilder::default()
        .transport(transport, false)
        .with_poll_interval(std::time::Duration::from_secs(3_600));

    client
        .inner()
        .set_poll_interval(std::time::Duration::from_secs(3_600));

    let provider = ProviderBuilder::new()
        .with_recommended_fillers()
        .with_chain(NamedChain::Optimism)
        .on_client(client);

Neither attempt works. At least passing is_local = false to .transport increased the interval, but not to 7 seconds like it shows here, but rather to 1 second.

I can't reproduce, I can set the interval in your repro and it works:
diff --git a/src/main.rs b/src/main.rs
index 3339d62..7113597 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,6 +5,7 @@ use alloy::{
     rpc::types::TransactionRequest,
 };
 use eyre::Result;
+use std::time::Duration;

 #[tokio::main]
 async fn main() -> Result<()> {
@@ -13,6 +14,7 @@ async fn main() -> Result<()> {
         .with_recommended_fillers()
         .on_ws(ws)
         .await?;
+    provider.client().set_poll_interval(Duration::from_secs(2));

     let wallet = provider.get_accounts().await?[0];

It won't work if you set it after sending the first transaction since it's loaded at the beginning then stays like that until shutdown

This is the intended behavior. It's the background task that follows the chain for handling pending transactions. It's started when the first transaction is sent and closed when the last provider is dropped. I guess it could also be paused if there are no pending transactions? cc @klkvr @mattsse

That makes sense (didn't expect that tho), so after the first transaction is sent, this polling starts and will handle getting the receipts for any future transactions? And the provider needs to be completely dropped/reset to stop the polling?
How I expected it to work was to poll until we get the transaction receipt (at least, for get_receipt), then stop polling until a new transaction is being waited for. Being able to pause as you suggested would be good - where would this happen? If you point me to the place you think this logic should go I can try a pr


Publish action does not create or push tags

Fixed by https://github.com/huggingface/huggingface.js/commit/6673fbbf6514aea29706fad22cca72ddbec1aa52 and https://github.com/huggingface/huggingface.js/pull/168
Problem was the commit getting amended


Response to data in response handling

Argo CI comment: Looks good to me! and your package is here 0.0.0-deve0fb848


Online demo works badly with Chrome on iPhone

Multiple problems on iOS 9.0.2 and Chrome v 45.0.2452.89:

Menu is reopened after a menu item is clicked
Navigation doesn't work
Scrolling doesn't work

I'm sure there's a lot more. However, it works fine on safari.

Same problem occurs in Safari but this needs an additional easy step to reproduce. You need to add the website to your home screen (like bookmark but on home screen). After that, the menu is not usable anymore with exactly the same problem as depicted in this ticket.

Same here. Website opened from home screen in safari shows exactly same behaviour.
Too bad.

@HerrHansen @xperseguers The issue is with Safari and not with MobileAngularUI.  See section 10.3 of this spec https://w3c-webmob.github.io/installable-webapps/
You need to override the default a href behavior with
document.addEventListener("click", function (e) {
var elem = e.target;
if (elem.tagName && elem.tagName === "A") {
e.preventDefault();
location.href = elem.href;
}
});

Ah I see. Sorry, my fault. I forgot to add this proper code to YOUR online demo.  ;-P
Thank you.

@HerrHansen I am in no way affiliated with Mobile Angular UI, but I'll make a PR for this.  If you actually make web apps and want to add this to your app then you should only register this event handler when the app starts if it meets the following conditions:
if (((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) && window.navigator.standalone)
This will make sure the user is actually on an apple device and they have launched from the home screen.

You are welcome，my friend.
At 2015-10-27 00:38:22, "HerrHansen"<EMAIL_ADDRESS>wrote:
Ah I see. Sorry, my fault. I forgot to add this proper code to YOUR online demo. ;-P
Thank you.
—
Reply to this email directly or view it on GitHub.


Mod Not Showing Up On ModList Or Ingame

Hi, I've been looking for a mod like this and voila!
I've installed this mod into Enigmatica 2 Expert Skyblock and for some reason, it doesn't show ingame mod options nor does it show in JEI.  I have the required libraries for this.
Any Help?
Thanks in advance,
duG

Hi,
Thanks for your message. I've just installed the ModPack, added CompactDrawers and was able to use it without problems.
 Then this also needs CompactDrawers.

I see what I did wrong.  When on the projects page, I didn't realize that
the download was for the src.jar version.  I hit the file page and found
what I was looking for.  Sorry to trouble you.
Great mod!
duG
On Tue, Nov 6, 2018 at 12:58 PM samtrion<EMAIL_ADDRESS>wrote:

Hi,
Thanks for your message. I've just installed the ModPack, added
CompactDrawers and was able to use it without problems.
 Then this also needs CompactDrawers.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/samtrion/CompactDrawers/issues/5#issuecomment-436347900,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALXWhTeMddu4cC1QGrKwbwzsW9GwHIKvks5usc3BgaJpZM4YQtOz
.


Getting Provisioning for the first time

I was using tutorial for running mainflux from here : http://mainflux.io/getting-started/#installation
Mainflux is running after "docker-compose up" but I can't get provisioning for device.
macbook-pro-de-uros-2-1:~ ukicar$ curl -s -S -i -X POST -H "Accept: application/json" -H "Content-Type: application/json" http://localhost:7070/devices | json | pygmentize -l json HTTP/1.1 201 Created Content-Type: application/json; charset=utf-8 Location: /devices/9bd13b96-5eaa-42ca-8b5b-1a8e835f9b07 Date: Thu, 13 Apr 2017 10:47:50 GMT Content-Length: 0
I'm not getting response from server, content-length is zero. Please help

Provisioning is working well, doc is wrong. Please refer to the https://github.com/mainflux/mainflux-core/issues/11
Apparently device 9bd13b96-5eaa-42ca-8b5b-1a8e835f9b07 was created successfully. You can do GET on /devices to verify.
I also advise you to use CLI - http://mainflux.io/cli/ - it will maybe be easier than curl ;).
I'll keep the bug open as a reminder to change the doc :).

@ukicar  Can we close this one ?


.maps response

Thanks for this great API!
Default commands like Start, Stop, Dock are now working great in my home automation Domoticz. Now I would like to go a little deeper and download de latest Map but I think something is wrong. I have a Botvac D5.
When running this command:
from pybotvac import Account
for robot in<EMAIL_ADDRESS>'sample_password').robots:
print(robot)
I get this reply:
Name: , Serial: -****, Secret: *****************************
Traits: Brutus Bot
When running this command:
from pybotvac import Account
for map_info in<EMAIL_ADDRESS>'sample_password').maps:
print(map_info)
I only get the serial number of the D5 in return.
So I can't get the "download_link" URL for the following command:
from pybotvac import Account
map =<EMAIL_ADDRESS>'sample_password').maps
download_link = map['robot_serial']['maps'][0]['url']
<EMAIL_ADDRESS>'sample_password').get_map_image('download_link')
Any Ideas?
Greetings.

No one?

I don't have a D5, so I'm just guessing here, but is it possible that the D5 uses the 'persistent maps', and not the 'maps' that Botvac Connected is using?
You can check this by running
from pybotvac import Account
for map_info in<EMAIL_ADDRESS>'sample_password').persistent_maps:
  print(map_info)

I don't have a D5, so I'm just guessing here, but is it possible that the D5 uses the 'persistent maps', and not the 'maps' that Botvac Connected is using?
You can check this by running
from pybotvac import Account
for map_info in<EMAIL_ADDRESS>'sample_password').persistent_maps:
  print(map_info)

Thank you for your reply!
I have tested this but then the answer is blank and you get the command prompt back (>>>)
So I get no output :(
I noticed that when I run the following command:
from pybotvac import Account
for robot in<EMAIL_ADDRESS>'sample_password').robots:
print(robot)
I receive:
Name: Bot Name Serial: xxxxxxxxx, Secret: xxxxxxxx Traits: ['maps', 'persistent_maps']
Before that was:
Name: Bot Name Serial: xxxxxxxxx, Secret: xxxxxxxx Traits: ['maps']
When I ask:
for map_info in<EMAIL_ADDRESS>'sample_password').maps:
I still receive the serial number.

Same on Botvac Connected.  The maps trait only returns serial.
>>> for robot in Account('<snip_username>', '<snip_password>').robots:
...   print(robot)
...
Your 'boyle-ORIGINAL' robot is offline.
Name: boyle, Serial: OPS26517-(SNIP), Secret: (SNIP) Traits: ['maps']

>>> for map_info in Account('<snip_username>', '<snip_password>').maps:
...   print(map_info)
...
Your 'boyle-ORIGINAL' robot is offline.
OPS26517-(SNIP)

>>> for map_info in Account('<snip_username>', '<snip_password>').persistent_maps:
...   print(map_info)
...
(empty)

Is it because the nucleo API doesn't support maps?
https://github.com/stianaske/pybotvac/blob/master/pybotvac/account.py#L129
Nucleo:
https://developers.neatorobotics.com/api/nucleo
(no mention of maps)
Compare w/ beehive:
https://developers.neatorobotics.com/api/beehive
(has maps ref)


Fix /retest GH action

Description:
Fix the /retest GH Action that doesnt seem to be working correctly, error logs are here
Repro
Add a  /retest comment on any PR

I think this need someone who has admin role on this repo.

@arkodg I think this should be fixed now. I don't see any failed workflows in the last five days.

https://github.com/envoyproxy/gateway/actions/runs/5322024655

We can use envoy's retest script
https://github.com/envoyproxy/toolshed/blob/main/gh-actions/retest/retest.ts

Test is ok
https://github.com/tmsnan/gateway/actions/runs/5401117981


[Request] Snap meshes to grid while dragging

What I did:

Dragged a prefab from my project onto my CSG model.
(Screen recording).

What happened:

No snapping.

What I expected:

The prefab's pivot to snap to the surface of the CSG model, as it does with other meshes.

Other info:
Platform: OSX 10.11.6
Unity version: 5.4.0f3 personal
RCSG version: 1.320

This is a mesh that you're dragging, not a brush?

Yep.

Ah ok, that's not a bug then. That was never part of realtime-CSG.
There is another feature request for this however: #100

Wait a sec, I'm not trying to snap the meshes to the grid, I'm trying to snap the pivot to the surface of the CSG model during the initial drag-in, the same way it does with the mesh on the right in my screen recording - just default unity behaviour, nothing to do with any grid.

Ok, I'll look into it, thanks for clarifying this

Related to #62

This is implemented in version 1.406, which can be found on the support website ( https://prenominal.nl/updates/ )
I will close this ticket once this version is available from the asset store


Fail to create '/.ssh'

Gitea version (or commit ref): Git Service <IP_ADDRESS>5
Git version: 2.9.0
Operating system: OpenBSD
Database (use [x]):

[X] PostgreSQL
[ ] MySQL
[ ] SQLite

Log gist:https://gist.github.com/rain0r/6c83dece2fbeebfb88bb14d9c8514113

Description
I get this error message when starting gitea via supervisord. Starting as the gitea user ("git") works fine and without any problems.
This is the supervisord entry for gitea:
[program:gogs]
directory=/home/git/
command=/home/git/start-gitea.sh
autostart=true
autorestart=true
startsecs=10
stdout_logfile=/var/log/gogs/stdout.log
stderr_logfile=/var/log/gogs/stderr.log
user = git
environment = PATH="/usr/local/bin/:%(ENV_PATH)s"
environment = HOME="/home/git/", USER="git"
stopasgroup=true

Sorry but I'm not familiar with supervisord. But I would like to know why don't you use the system init service? =)

Good question, acutally! ;-)
I moved from Linux to OpenBSD and it was convenient to just copy the supervisord config.
However: it works with rc init.

Ok, so let's close that for now since the regular init system works.

If Gitea source tree does include a supervisord script that does not work this ticket should remain open.


[Bug] Hide and Show button doesn't work until we refresh the page #314

Issue that this pull request solves
Closes: #314
Proposed changes
Brief description of what is fixed or changed
Types of changes
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (Documentation content changed)
[ ] Other (please describe):

Checklist
Put an x in the boxes that apply

[ ] My code follows the style guidelines of this project
[ ] 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
[ ] My changes generate no new warnings
[ ] My changes does not break the current system and it passes all the current test cases.

Screenshots
Please attach the screenshots of the changes made in case of change in user interface
Other information
Any other information that is important to this pull request

@Kajol-Kumari check

@kenkirito ok

@kenkirito can you please provide an update on this PR?

Working on it

Hi @kenkirito! refer this. this is how i resolved this issue by moving a particular piece of logic into  useEffect. learn use of useEffect hook. By learning hooks you will be able to tackle such issues in no time 😄😄.

Hey @kenkirito , can you please provide an update for this PR?

this issue was fixed by #379.


derive Serialize/Deserialize for BeefyAuthoritySet

Related to: https://github.com/paritytech/parity-bridges-common/issues/1574
We are working on implementing BEEFY finality in the bridges project and as part of this we'll need to have the initial BeefyAuthoritySet in the GenesisConfig structure. In order to do this we need BeefyAuthoritySet to implement serde serialize/deserialize.

bot merge

bot merge

bot rebase


when closing the program it ask me to save then happen the error can t save no acces to file ???

Describe the bug
A clear and concise description of what the bug is.
Steps To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Actual behavior
A clear and concise description of what you actually happens.
Details

MobiFlight Version: [e.g. 8.2.0]
FlightSim: [e.g. MSFS2020]
AddOn: [e.g. Default Aircraft]

Additional context
Add any other context about the problem here.

@freeslider2012 This bug report doesn't contain any actionable information. Please provide all the information requested in the issue template, or start a thread in Discord for assistance.

No more feedback from user. Closing this.


[Suggestion] allow TCP options to be set more easily

First, thanks for all the work on this library - I've been using it for about a year and it is always a joy to work with!
I've run into a situation where a request I'm making is running through a NAT that is not in my control, and the request takes >10m to complete. On a Linux machine I am able to retrieve the response using cURL, but it never completed using requests in python. I suspect this is because cURL sends TCP-level keepalive requests while the default initialization of requests does not.
In researching how I would be able to enable keepalive on the underlying sockets, it seems like I would just need to be able to provide the the socket_options list to the requests.adapters.HTTPAdapter at construction, and have HTTPAdapter include that in the pool_kwargs. I imagine this could be accomplished by adding a **kwargs argument to HTTPAdapter.
This issue is meant to be a discussion on the appropriateness of that solution.

For added context, below is a workaround that seems to work for me on Linux (but not OS X):
s = requests.Session()

from requests.packages.urllib3.connection import HTTPConnection
my_socket_options = HTTPConnection.default_socket_options + [
 (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
, (socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, 60)
, (socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 20)
, (socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 5)
]

adapter = requests.adapters.HTTPAdapter()
adapter.init_poolmanager(10, 10, block=False, socket_options=my_socket_options)
s.mount('https://', adapter)

I feel dirty calling adapter.init_pooolmanager() after constructing the HTTPAdapter but wasn't willing to write my own Adapter just to make that connection.

Hey @hoodja I'm glad you like the library.
We've had several (suggestions|feature requests) to add various different (and usually of little popularity) keyword arguments to HTTPAdapter.__init__. We've been consistently resistant because the ideology of the project author and its maintainers is to serve the 95% (or greater) use case. I personally added the ability to configure socket options to urllib3 and you're the third person I've ever found who has needed to set socket options through requests.  So we're certainly not likely to add a socket options keyword argument to HTTPAdapter.__init__. The toolbelt already has one or two adapters for less common but non-trivial use-cases and we can discuss there whether a CustomSocketOptionsAdapter would fit your needs there and what that API would look like.
Cheers!
Ian

Hey @hoodja I added both a socket options adapter to the toolbelt and a TCP Keep-Alive adapter: https://github.com/sigmavirus24/requests-toolbelt/pull/59

Thanks Ian! I'll definitely give that a spin.
On Tue, Feb 17, 2015 at 9:35 PM, Ian Cordasco<EMAIL_ADDRESS>wrote:

Hey @hoodja https://github.com/hoodja I added both a socket options
adapter to the toolbelt and a TCP Keep-Alive adapter:
sigmavirus24/requests-toolbelt#59
https://github.com/sigmavirus24/requests-toolbelt/pull/59
—
Reply to this email directly or view it on GitHub
https://github.com/kennethreitz/requests/issues/2447#issuecomment-74805834
.


The bad generations of generate.py.

Thanks for the repo.
I trained the DALLE on visual genome dataset. During the training, one of the generations is shown below,

But when I want to generate an image by generate.py, the generated images are non-sense, even though I use the text also appeared in the training phase.
The scripts I use
# separate the punctuation marks with characters
python generate.py --dalle_path ./dalle.pt --text "tire on bus . window on bus . window on bus . window on bus . window on bus . pole in grass . window on bus .

and
# don't separate the punctuation marks with characters
python generate.py --dalle_path ./dalle.pt --text "tire on bus. window on bus. window on bus. window on bus. window on bus. pole in grass. window on bus."

The results of both scripts are similar, and the generations are

I have checked the model weights are loaded normally. Any thoughts on this issue?

The training datasets have to be drastically increased to get decent results - have a look a few issues underneath on the results of afiaka87: https://github.com/lucidrains/DALLE-pytorch/issues/86#issue-832121328

I see. Maybe I didn't describe the issue clearly. My problem is more about the mismatched results between images generated during training and by generate.py. As you can see, the two outputs look very different even I use the same input text. Moreover, no matter what I use as the input text, the generated images look similar, which contains lots of black blocks.

I see. Maybe I didn't describe the issue clearly. My problem is more about the mismatched results between images generated during training and by generate.py. As you can see, the two outputs look very different even I use the same input text. Moreover, no matter what I use as the input text, the generated images look similar, which contains lots of black blocks.

@louis2889184
I have noticed similar behavior with reconstructions (even ones directly from the training set) tend to be quite blurry and abstract. I'm out of my depth on that - but I assume it is due to the transformer being forced to recreate the phrase verbatim while allowing image output to deviate a bit. Hopefully someone more knowledgeable than I can chime in on why this happens.
As for the "mismatch" between images generated:
a.) it wont be deterministic. Run generation many times and see if you can find one or two that are similar.
b.) if your model hasn't generalized (and it needs a kind of absurd amount of data to do so) then even the slightest deviation in your phrasing compared to what is in the training will give you totally different output. Is the phrase identical?
c.) Most importantly: what are your parameters? Learning rate, batch_size, depth, heads? These numbers dramatically effect the output.

@afiaka87 Thanks for your help. I have three different texts corresponding to the same image, and will randomly pick one when loading the data. I'll try to make the image and text one to one, and see if the mismatch will go away.

@lucidrains I haven't yet reproduced this exact issue, but I have discussed it extensively on the discord and am at least having trouble understanding why @louis2889184 generations are in fact decidedly worse than the reconstructions from training even though they're providing the exact same text. Can you clarify on why that might happen? To be clear - I've only used the generate code a few times.

@louis2889184 let me know here once you have tried re-running with lower depth/heads and reversible turned off.

@afiaka87 It turns out it's because the approach we save images is different in train_dalle.py and generate.py.
In train_dalle.py we use wandb.Image to process the image, and it will automatically normalize and scale the image.
https://github.com/wandb/client/blob/9cc04578ebc6d593450e9dbbcae07452bf7bec35/wandb/sdk/data_types.py#L1676-L1679
However, in generate.py, we use torchvision.utils.save_image to do it. It won't normalize the image to (0, 1) unless we specify the argument normalize=True. Also, the VAE's output range is roughly within -1 and 1, if we don't normalize the image,
save_image will directly transform the float number to uint8 by
ndarr = grid.mul(255).add_(0.5).clamp_(0, 255).permute(1, 2, 0).to('cpu', torch.uint8).numpy()

Hence, there will be lots of pixels, which are original smaller than 0, become 0. That's why there is a big part of the image is black.
There are some results, the config I use is
EPOCHS = 20
BATCH_SIZE = 8
LEARNING_RATE = 3e-4
GRAD_CLIP_NORM = 0.5

MODEL_DIM = 256 # 512
TEXT_SEQ_LEN = 64 # 256
DEPTH = 32
HEADS = 16
DIM_HEAD = 64
REVERSIBLE = False
ATTN_TYPES = None

And the outputs of generate.py, given text "frame on wall. lamp by bed. wall on building.", are

After I add normalize=True in save_image(image, outputs_dir / f'{i}.jpg', normalize=True), the outputs are

Looks much better.
BTW, the mask seems also important for generations. output = dalle.generate_images(text_chunk, mask = mask, filter_thres = args.top_k). The above results are generated by inputting mask. But I haven't dig into this too much.

This is great work and an obvious opportunity to submit a pull request if you'd like. @louis2889184

A simple inline edit with the github ui should make this a fairly easy fix.

The PR is made! Thanks, @afiaka87.


Export Orgs from EasyCLA with addresses

Export Orgs from EasyCLA with addresses
It should have these column:

Org name
Org adress
Org ID
number of CCLA signed (int)
date of first CCLA signed (date)
date of last CCLA signed (date)
list of CLA_GROUP_NAMEs (list)
list of CLA_MANAGERS (list)

Please add column showing account ID (SFDC) for orgs if we have it? I believe we are calling it company_external_id in EasyCLA DB.

2024-10-15 12_26pm (2).csv
@mlehotskylf I have attached the orgs with the above details aside from the address thats failing to get parsed. Iam currently blocked on that

company_data_2024-11-11T23:51:50.csv
@mlehotskylf attached is the updated csv of the companies with the addresses, Some have missing docusign details

company_data_2024-11-12T15:09:21.csv
Updated list with companies that have signed ccla records

@nickmango As we discussed, company address is not populating when org has multiple CCLAs, some with address and some without. However, lets put this on hold for now as we may be able to get addresses for these orgs from Salesforce.


[PF-388] Add retry logic for Sam API calls to the common lib.

Adapted from code in TDR. SamRetry always returns a SamApiException, that extracts the message from the Sam exception  and includes the HTTP Status code.

Tests now passing and code updated, PTAL @wchamber

Thanks! OK to submit?

Fine by me. Don't know if Dan wants another pass.
per last review comment, I think a unit test for the InterruptedException being thrown if the Thread.sleep is interrupted would be good since that's something we're explicitly trying to make happen, but won't block the PR on it.

Thanks! OK to submit?

Fine by me. Don't know if Dan wants another pass.
per last review comment, I think a unit test for the InterruptedException being thrown if the Thread.sleep is interrupted would be good since that's something we're explicitly trying to make happen, but won't block the PR on it.

I tried to take another look, but I am not seeing the changes that are reported in the comments as "Done". Maybe you need to push again?

@ddietterich which change? It looks up to date but I could easily have messed something up in a merge...


Lower minSdk version to 16 for Android

Is it possible to lower minSdk version to 16?

The minimum SDK version we tested was 18,  you can modify android/build.gradle and example/android/app/build.gradle to change minSdkVersion to 16.

@cloudwebrtc Yes that's what I am doing but can this be applied to the master?

@njovy If using API level 16-17 to test on a real device is okay, I'd be happy to accept PR to master.

Actually, I've set minimum 18, because of video recording feature, it will definitely crash on lower API
Also, WebRTC team will drop support of <19 (as well as Chrome) soon

@rostopira Okay I guess I will have to maintain my own repo as I don't use recording feature. Thank you for your response.


Open / Save Dialog - Max filepath bug limit

Trying to enter a very long filename result of a break :

System.IO.PathTooLongException
HResult=0x800700CE
Message=The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
Source=mscorlib
StackTrace:
at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.FileInfo.Init(String fileName, Boolean checkHost)
at System.IO.FileInfo..ctor(String fileName)
at MaterialDesignExtensions.Controls.FileSelectedEventArgs..ctor(RoutedEvent routedEvent, Object source, String file)
at MaterialDesignExtensions.Controls.BaseFileControl.SelectFileCommandHandler(Object sender, ExecutedRoutedEventArgs args)
at MaterialDesignExtensions.Controls.SaveFileControl.SelectFileCommandHandler(Object sender, ExecutedRoutedEventArgs args)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at AppTest.App.Main()

Maybe it would be possible to evaluate if the path is too long before validating it ? Another option would be to use unicode the same way as AlphaFS does.

@Coloris On the one hand implemting native support for long paths would be to much, error prone work. On the other hand I do not like to switch to AlphaFS, because it will break the public API. However .NET 4.6.2 seems to support long paths without any code modifications on Windows 10.
As a quick and easy solution I could add a second build targeting .NET 4.6.2. Which .NET framework and OS are you targeting with your app?

@spiegelp Well I totally understand your point but the thing is that not everyone has Windows 10 yet (and not all version of Windows 10 works with longpfilepath even).
Wouldn't it be possible to at least circumvent it in someway because I cannot even try catch the exception on my side... my app just break (like you could raise an exception yourself ?).
In my case I plan to support starting from Windows7 up to 10.

@Coloris I am thinking of creating a second build and nuget package using AlphaFS instead of System.IO. The new package would have the same API except of using FileInfo and DirectoryInfo from AlphaFS in order to support long paths on older .NET frameworks and operating systems.
You will only need to reference the new nuget package. Will this solve the issue for your scenario?

 private string BuildFullFilename(string newFilename)
    {
        string filename = null;

        if (!string.IsNullOrWhiteSpace(newFilename))
        {
            string directory = CurrentDirectory;

            if (CurrentDirectory != null && !directory.EndsWith(@"\") && !directory.EndsWith("/"))
            {
                directory = directory + @"\";
            }

            var fInfo = new FileInfo(newFilename);

            var format = Filters[FilterIndex].Filters.TrimStart('*');

            if (format != ".*" && string.IsNullOrEmpty(fInfo.Extension))
            {
                filename = directory + newFilename.Trim() + format;
            }
            else if (format != ".*" && fInfo.Extension != format)
            {
                filename = directory + newFilename.Trim().Replace(fInfo.Extension, format);

            }
            else
                filename = directory + newFilename.Trim();

        }

        return filename;
    }
    MaterialDesignExtensions-master\MaterialDesignExtensions\Controls\SaveFileControl.cs
    Error Please correct

I published the pre-release v2.7.0-a01 some moments ago.
@Coloris After a long time of thinking of how to support long paths with minimal side effects, I published a new package MaterialDesignExtensions.LongPath. It has the same source code but uses Pri.LongPath instead of System.IO. This package should solve your issues on older Windows systems.
@Siroga00VII Check out the newest pre-release. If you set SaveFileDialog.ForceFileExtensionOfFileFilter = true, the control enables the behavior to enforce file extensions.


Impossible to get the scrubbar to a different position on animated maps.

Which scrubbar?, sorry but I don't know what you mean.

the bar that shows the position on time.

Do you remember the link where it was happening?

This is a dupe of another issue I talked to @piensaenpixel las week


CPython linux support

New Support To Pythonnet 3.0 RC2
New Support To Linux CPython
Support to CPython 3.10
Dropped support to CPython 3.6
Default Enabled GRPC Support on Linux
Edb support on Linux CPython

This looks great for the users. @maxcapodi78


Set stack size to 5

I don't get why stack size is set to 1. Normal locomotives and FARLs stack to 5, so why shouldn't shuttles too? I often run around with a few trains in my pocket to accommodate for unexpected travels and sometimes you forget to grab one as leave.

Yes it should, and it is in the next version. I just need to get around to releasing it. If you can't wait read my guide here, on how to download it manually.


New version of structlog dependency breaks everything

reverting to version 0.4.2 fixes it. Just run sudo pip install structlog==0.4.2 to get it working. This should be specified in the requirements.txt file.

thank you
compatibility was already restored in the development branch 1dc44fe0e0ef8afc92dbd24eb4aa49cdd4a86f68
added your fix to the master branch.

Would you mind elaborating what 15.0 broke for you? Did the stdlib improvements clash with your own stuff?

I added a new loglevel trace and didn't find a way to do so without manipulating structlog.stdlib._NAME_TO_LEVEL (name changed with v15).
https://github.com/ethereum/pyethereum/blob/1dc44fe0e0ef8afc92dbd24eb4aa49cdd4a86f68/pyethereum/slogging.py#L72
and
https://github.com/ethereum/pyethereum/blob/1dc44fe0e0ef8afc92dbd24eb4aa49cdd4a86f68/pyethereum/slogging.py#L76

Well, _NAME_TO_LEVEL has a underscore prefix for a reason. :)
What exactly do you want to achieve?  Might there a more preferable (and clean :)) way than using the internals (that are a verbatim copy from the stdlib anyways)?

right, but i didn't see a way to add an additional log level. any hints how to implement this properly?

no, I’m not a fan of log levels anyways.  would you mind opening an issue on structlog stating the actual problem you’re trying to solve?  maybe we’ll find a better way and I can pull in people who know more about such things than I do.
thanks (hopefully) in advance!


SchemaType is undefined

Hi, I am trying to register a new schema following the example here: https://kafkajs.github.io/confluent-schema-registry/docs/usage-with-kafkajs
I keep getting undefined for SchemaType.
const { SchemaType } = require('@kafkajs/confluent-schema-registry') gives SchemaType is undefined.
I double checked that I have the latest version<EMAIL_ADDRESS>What am I doing wrong?

This is a bug. The SchemaType enum should be exported, but currently isn't.
As a workaround, you can use the string values directly from https://github.com/kafkajs/confluent-schema-registry/blob/master/src/%40types.ts#L4-L9

Should this be closed?

Yes. :(.. I hope the devs come back soon.


glPushMatrix gone in 2.0 dev 9

I'm using an nvidia jetson nano with almost entirely stock setup [version details below].
I installed pyglet in a venv, which came in as version 2.0.dev9. Not sure how that version was selected in particular, I didn't specify versions of anything.
And my existing code broke because, python.gl.glPushMatrix is missing:
$ python3 -m venv test_venv
$ source test_venv/bin/activate
$ python3 -m pip install pyglet==2.0.dev9
(test_venv) $ python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyglet.gl as gl
>>> gl.glPushMatrix()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pyglet.gl' has no attribute 'glPushMatrix'
>>>

(test_venv) $ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.6 LTS
Release:	18.04
Codename:	bionic
(test_venv) $ uname -a
Linux ckjetson 4.9.253-tegra #1 SMP PREEMPT Mon Jul 26 12:13:06 PDT 2021 aarch64 aarch64 aarch64 GNU/Linux

Pyglet 2 are aiming for something closer to GL 3.3 core and all fixed pipleine pipleine functions are deprecated. You can still access them in pyglet.gl_compat module though, but at your own risk.
If you are using fixed pipleine stuff you might as well stick with 1.5.x for now.

Yeah, I've dealt with that now.
It would be nice if legacy wasn't "at my own risk", I suspect I'm not the only one with that use case, but I do understand the nature of modern pipelines meaning that use case probably needs to adapt or die.

I'm currently using batches for a lot of stuff [pretty much anything with a lifetime longer than a single frame], but I've always been unclear on the benefits and drawbacks of batches for things that will only live for a single frame [or change between each and every frame]

Drawing things individually  requires manually setting/unsetting the OpenGL state between each call. This can obviously get slow when dealing with a large number of objects.
When using a Batch, all of your objects get drawn in as few draw calls as possible, usually consolidated by the Group and Texture. Even if some objects are coming and going each frame, it's still usually much faster to use a Batch. Basically everything that's currently in there gets drawn together, even if it's only there for the current draw call.

I would not worry too much about it right now. It's not like pyglet 1.5.x will disappear or no longer be maintained. We don't even know if the majority of the user base will eventually move over to 2.x.
Still, I'll give you something to start with. The matrix stack is gone in OpenGL 3.3. This means you will have to use pyglet.math,Mat4 for matrices. This type also replaces glOrtho, gluPerspective and various other things.
https://github.com/pyglet/pyglet/blob/379484525081dc53521a82f1de56e6e7ad208d5e/pyglet/math.py#L699-L771
The global projection matrix you instead set on the window itself
window.projection = Mat4.orthogonal_projection(...)

Same with the global modelview
window.view = Mat4()

Rotation/translation is done using basic matrix math with the Mat4 type. These matrices are something you could also set in groups (batch groups).
You could probably also use an extrenal library like pyglm if needed.


Configure storage destination via UI

Description
As a  Privacy Engineer, I want to complete storage configuration via UI.
Assumptions

Users already have a storage destination setup in their internal infrastructure (S3 or local).
They have all the necessary credentials to access the storage destination ready.

AC

I can select between local and s3 storage options.
When a storage type is selected, I’m presented with a form with all the necessary details required for the storage type.
I can save a configuration setting for a storage type or cancel to remove the details entered.
Configuration settings have defined drop downs where we already know the possible set of values.
I can switch storage types, and the previously saved details for a storage type are retained.
When all the details necessary for a storage type are entered, I’m notified that all the details have been successfully updated.

Figma link

In future we will want to check permissions

Backend work for this ticket is being done here https://github.com/ethyca/fides/issues/1974


[rappture] fix wasm build by setting explicitly to build library with c++11 standard

Signed-off-by: Vitalii Koshura<EMAIL_ADDRESS>

Thank you!


[stable/dex] Fix ConfigMap creation and add missed config parameter

Fix for openssl config which used by Job later when hook executed. Becouse of "helm.sh/hook-delete-policy": hook-succeeded Configmap deletes just after creates.
Added ability to set token expire which is realised in dex app config file but not in helm values.yaml
https://github.com/dexidp/dex/blob/master/examples/config-dev.yaml#L38

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

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

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

@lohmag
Would you mind to sign DCO please?

hi @lohmag , thanks for the contribution. Could you please squash commits into one and name it according to the introduced changes? Also please put a meaningful name for the PR (can be the same as for commit) and prefix it with [stable/dex]

/hold

/ok-to-test

/retest

/retest

I don't know how to squash commit into one and can't spend anymore time on it. And actually I don't know why I should do it if you can squash in web interface when it merges by just checking a box.

/hold cancel

/retest

/retest

/test pull-charts-e2e

/assign @vi7

With this change, we'll have one unused configmap, but it is better than a non-working Chart. Thanks!
Could you bump minor version of this chart instead of patch version since there is a new feature?
/assign
@vi7 FYI, AFAIK, merge bot will squash the commits anyway, so the important thing is the PR title.

With this change, we'll have one unused configmap, but it is better than a non-working Chart. Thanks!
Could you bump minor version of this chart instead of patch version since there is a new feature?
/assign
@vi7 FYI, AFAIK, merge bot will squash the commits anyway, so the important thing is the PR title.

what do you mean by version bumping? i already bumped helm chart version

@vi7 FYI, AFAIK, merge bot will squash the commits anyway, so the important thing is the PR title.

@desaintmartin I'm ok with that in case merge commit will be named after the PR name, cause current commit names doesn't describe introduced changes and moreover have misleading names

/lgtm
/approve

/test pull-charts-e2e


feat: Hugr lowering for calls with inout arguments

Closes #319.

CallableCompiledDef.compile_call now additionally returns a list of inout ports that were passed through the function
Similarly, there is now a CustomInoutCallCompiler that does the same. The original CustomCallCompiler still exists, but always returns an empty inout list
ExprCompiler now updates the Place -> Port mapping for inout arguments after a call (see ExprCompiler._update_inout_ports helper method)
Enabled validation for the inout integration tests

Notes:

This PR doesn't handle tensor calls with inout arguments (see #330)
CustomInoutCallCompiler isn't used yet since the prelude doesn't use @inout yet

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (feat/inout@0c5057c). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff              @@
##             feat/inout     #331   +/-   ##
=============================================
  Coverage              ?   92.70%
=============================================
  Files                 ?       45
  Lines                 ?     5249
  Branches              ?        0
=============================================
  Hits                  ?     4866
  Misses                ?      383
  Partials              ?        0

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


use npm ci if available

This should run npm ci instead of npm install when npm version is above v5.8.0. This is much faster and has added benifits of using exact versions from package-lock.json.
Changelog for the npm version:
https://github.com/npm/npm/releases/tag/v5.8.0

Hello, there. Could you point to the documentation that discusses this subcommand?
And look at failing specs, please?

@BanzaiMan Hello!
Documentation can be found here:
https://docs.npmjs.com/cli/ci#description
The travis error seems to be unrelated, as it errored out before even running tests:
https://travis-ci.org/travis-ci/travis-build/jobs/367974287

This is an awesome PR! Thank you!

This is awesome! However this should also check for a package-lock.json, because otherwise the npm ci command will fail.

Also maybe @zkat has some further input here ☺ ☝

Looking at the documentation, this needs to check for the presence of package-lock.json or npm-shrinkwrap.json (as @finnp points out).
Caching of node_modules may or may not be significant. Presumably node_modules will be removed when we move to npm ci, but the documentation is not clear on what node_modules looks like after npm ci. Depending on the effects of npm ci on node_modules, the reasonable behavior can range from "just ignore it" to "ask users to drop node_modules from cache".

You really shouldn't cache n_m if you're using npm ci

@zkat Could you clarify what we can expect of node_modules after npm ci? Is it removed and not re-created?

npm ci blows away n_m before installing so caching it would only make it slower.
A much better alternative is to cache ~/.npm by default imo

@zkat Thanks for the clarification. Sounds like we should just educate users.

@BanzaiMan having a cache: npm option would also help. It's a bit verbose to cache the directory right now?
Either way, npm ci will warn if there's an existing node_modules, so if anyone ends up bothering actually looking at it, they'll catch it :)

Nice, now the produced script looks valid ☺ Looks like one of the tests errored though, maybe it just needs to be re-run?

@finnp yeah, looks like ruby errored. Unrelated to this PR though.

This has been deployed to https://staging.travis-ci.org/.

👉 https://github.com/travis-ci/docs-travis-ci-com/pull/1866

Thanks, everyone! This has been deployed.


Package request for dxhd (sxhkd but Golang)

Project description
Dxhkd (daky's X11 Hotkey Daemon) is a Go version of sxhkd with an elegant config syntax.
Metadata

source URL: https://github.com/dakyskye/dxhd/tree/master
license: mit
platforms: linux, not sure about others...

Hi @rakinishraq thanks for showing interest
This package isn't packaged for any other normal repos and it hasn't been updated for a couple of months, and the last tag being "18 Jun 2021" and the last GH release being "05 Apr 2021"
I'd say this is one more suited to a personal NUR as it seems very nichec
But if you were going to maintain it I guess you could add it to the main nixpkgs
Another option is grabbing the release off GH since it is static it'd probably work on NixOS
Or use go to install it via go get/go install

{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "dxhd";
  version = "unstable-2021-11-11";

  src = fetchFromGitHub {
    owner = "dakyskye";
    repo = pname;
    rev = "e47570232b2d2a5bd90e7fdeab104443f3fd4048";
    sha256 = "sha256-k0yybeAKKy2670iq4nFl1QJCYnXmyFQGcSCx3AlZniM=";
  };
  vendorSha256 = "sha256-yL18s5n5PMo/oqjJ8jT6k/dm3AB9kIGX8Oa+TU06cI0=";

  ldflags = [ "-s" "-w" ];

  doInstallCheck = true;
  installCheckPhase = ''
    runHook preInstallCheck
    $out/bin/dxhd --help
    runHook postInstallCheck
  '';

  meta = with lib; {
    homepage = "https://github.com/dakyskye/dxhd/tree/master";
    description = "daky's X11 Hotkey Daemon";
    license = licenses.mit;
    platforms = platforms.linux;
    # maintainers = with maintainers; [ ];
  };
}

Got it. I haven't heard of the NUR until now. Thanks for your time.


Running tests in CI gets "stuck"

Everything seems to work fine running locally, but the tests in CI seem to get stuck. This time I waited 45+ minutes and it was stuck on:
 Found notebooks, using pytest-notebook to run them...
  ============================= test session starts ==============================
  platform linux -- Python 3.11.8, pytest-8.1.1, pluggy-1.4.0
  rootdir: /srv/repo
  plugins: anyio-3.7.1, pytest_notebook-0.10.0
  collected 1 item

  image-tests/test-notebook.ipynb

Locally, the tests seem to run really quickly and pass, so not sure what's going on here.
Let's discuss when we chat @sunu

Sorry, I mis-spoke here - the test does not, in fact, work locally for me - I was testing from the wrong branch 🤦 .
It does seem like the visualization tests might be tripping up pytest-notebook that we are using to run the tests. Thanks @sunu for digging into this.
We'll discuss a bit and come up with options. @jsignell unfortunately, for now, we may want to stick to String outputs in the tests, but let me and @sunu dig a bit and discuss and be able to lay out some options for the shorter and longer term.
I think it's nice to get a clear picture of what the limits of the current pytest-notebook might be, so I think it was good to include more complex tests to try, and I think we can definitely add the ability to test more complex viz to our backlog and figure out whether this is something we can fix upstream or use a slightly different tool for.
Again, sorry about lying about it working locally ✌ - this all seems to make sense.

Yeah I thought it was working locally as well, but in reality I probably forgot to rebuild the image 🤦🏻

This was resolved by removing the more complex viz tests and sticking to string comparisons to test outputs.
Thanks much @jsignell !


some graphs do not load on latest commit

Some large graphs don't load when using the extension in its state on the latest commit.
OS: Windows 11
Browser: Firefox
DesModder Version: Latest commit as of writing this.
Affected Graphs:
https://www.desmos.com/calculator/l7nehb64nz
https://www.desmos.com/calculator/ekf45jva3a
Unaffected Graphs (for comparison):
https://www.desmos.com/calculator/efcdkbpkcu
https://www.desmos.com/calculator/khw9auciul
https://www.desmos.com/calculator/bv7cmvyany
To help further narrow it down here's two very similar graphs, one that errors and another that doesn't:
Slightly newer version of Desmos Plane with the error: https://www.desmos.com/calculator/ekf45jva3a
Slightly older version of Desmos Plane without the error: https://www.desmos.com/calculator/cwhrxcqtpp

Found a fix by adding some optional chaining here in better-evaluation-view.replacements. However I don't know if this is what you intend it to do.


Add to anserini reproduction logs

The instructions were easy to follow. I used Google Colab environment without GPU.
everything worked fine except SearchCollection "-topicreader" param which needed to be changed to "-topicReader".

everything worked fine except SearchCollection "-topicreader" param which needed to be changed to "-topicReader".

Ah, this was a recent change in the codebase. Can you change the parameter in the documentation please?

everything worked fine except SearchCollection "-topicreader" param which needed to be changed to "-topicReader".

Ah, this was a recent change in the codebase. Can you change the parameter in the documentation please?

Done!


Turn BrowserView tabView variable into property

The instance variable clashed with a local variable in a delegate method.

@barijaona as per @Eitot's comment, there was a naming conflict and it resulted in an Xcode warning.
Side note: we should think of a convention for when to use self.instanceVariable and _instanceVariable.

Is there a need for custom ivars at all? I basically learned to just use properties and let the compiler handle the synthesising and ivar naming (in the setters/getters). I find it odd now to declare private ivars in the header file. 🤔

Oh it's not for custom ivars - Xcode auto-synthesizes your @property to _ivar, and you can access it using either self.ivar or _ivar. I think they are basically synonymous so it is more of a code convention thing.
I guess with the move to Swift being inevitable, self.ivar makes more sense.

I learned to use _ivar only within the setters/getters to which they belong. Outside of those, you use self.property. You will see the _ivars only if you actually write the setters/getters.

@Eitot if possible can you please also create pull requests against the new legacy3.1.x branch for this change, the sparkle one, and the help bundle one, and potentially the preferences window controller change... thanks 😄

Can I just merge them into one pull request? I already deleted my branches. :/

Haha and I deleted my local copies of your branches. I'll try to cherry pick them into new branches tomorrow.
I think if changes can easily be merged into the legacy branch then we should merge them. It would be a waste of time fixing anything but a trivial merge conflict however.

Oh sometimes you can 'undelete' a branch from GitHub, check #805 down the bottom where it says you deleted your branch and sometimes there is a restore button you can use.

What do you mean with ‘the help book one’?

Reminder : our CONTRIBUTING.md file advises to follow Spotify's style which says :

Set and access properties using dot notation:
self.myString = @"A string";
Except in the init or dealloc methods, always use the ivar directly there:
_myString = nil;

@barijaona yup you're right - I knew it was probably in there but I was too tired to check 😅


fixed issue #653 , updated footer UI

Updated footer UI
@PriyaGhosal please review and merge it
https://github.com/user-attachments/assets/c13d23bb-86f6-4186-8bd0-5c870fbef608

@samarth-6 merge it please

@samarth-6 please tag it gssoc and Hacktober


spareice/test_datasets.py failing

Bug report
Bug summary
spareice/test_datasets.py is failing.
Code for reproduction
py.test -v typhon/tests/spareice/test_datasets.py

Actual outcome
E       assert [('typhon/tes... 6, 0))), ...] == [('typhon/test... 6, 0))), ...]
E         At index 0 diff: ('typhon/tests/spareice/reference/2017/01/01/120000-180000.nc', (datetime.datetime(2017, 1, 1, 12, 0), datetime.datetime(2017, 1, 1, 12, 0))) != ('typhon/tests/spareice/reference/2017/01/01/000000-060000.nc', (datetime.datetime(2017, 1, 1, 0, 0), datetime.datetime(2017, 1, 1, 0, 0)))
E         Full diff:
E         - [('typhon/tests/spareice/reference/2017/01/01/120000-180000.nc',
E         ?                                               ^^     ^^
E         + [('typhon/tests/spareice/reference/2017/01/01/000000-060000.nc',
E         ?                                               ^^     ^^
E         -   (datetime.datetime(2017, 1, 1, 12, 0), datetime.datetime(2017, 1, 1, 12, 0))),
E         ?                                  ^^                                    ^^
E         +   (datetime.datetime(2017, 1, 1, 0, 0), datetime.datetime(2017, 1, 1, 0, 0))),
E         Detailed information truncated (25 more lines), use "-vv" to show

Expected outcome
No failure.

To jump on the bandwagon, it would be more robust to construct the full path to your reference files.
In practice, replacing these lines (and related ones)...
https://github.com/atmtools/typhon/blob/c361dde29d6d4c12a01827261bdbd89f83ca7a50/typhon/tests/spareice/test_datasets.py#L9-L11
... with something like
from os.path import (dirname, join)

refdir = join(dirname(__file__), 'reference')
refpattern = (
    "{year}/{month}/{day}/"
    "{hour}{minute}{second}-{end_hour}{end_minute}{end_second}.nc"
)
dataset_files = join(refdir, refpattern)

Cheers,
Lukas

Thank you Simon and Lukas! The ordering of the files was just wrong. Should be finally fixed in #50 . However, I could not reproduce the error on my machine and neither did Travis. @simonpf May I ask what machine do you use?

The PR fixes the bug for me. Before I got the reported error on my Mac and thunder7.
It is possible to run pytest from every directory (thanks to absolute paths) and without assertion (thanks to your bug fix).

I could not reproduce the error on my machine and neither did Travis.

Sorting can be affected by the locales (LC_*) on the machine.
Cheers,
Lukas

hi @JohnMrziglod ,
I run xubuntu 16.04.
The test is still failing on my machine and is suspect that there is actually a bug in your code:
    intervals = np.abs(np.asarray(times) - timestamp)
    closest_index = np.argmin(intervals) // 2

As far as I understand,  you compute the argmin of a list of lists, which should use lexicographic ordering for comparison and hence will return the index which has the smallest time delta in the first element of the list. Written in this way find_file should actually return the 1200 - 1800 interval. From a brief look at your code, I don't think that this is what you actually want to do.
Cheers,
Simon

Hi Simon,
thank you for your other bug report. The reason for this bug was that I was not clear about the method's behaviour and just wrote quick n'dirty code. It should be fixed now.
Cheers,
John


Base implementation

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@d55644b). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             main        #1   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?        15
  Lines           ?        73
  Branches        ?        10
========================================
  Hits            ?        73
  Misses          ?         0
  Partials        ?         0

Continue to review full report at Codecov.

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


CUDA does not work

I have tried CUDA 9, 9.2 and the current version along with other cudnn versions.
https://i.imgur.com/xz5oDvr.png
https://i.imgur.com/a4A9F8W.png
https://i.imgur.com/8NkRgEJ.png
Using the latest release on Windows 10 x64 Pro (18362 build)

You don't even need to install CUDA. Try using release 1.8.4 and see if it works.

I did. I also don't have this issue on a 1060 so it must be specific to the
2080 ti.
On Sat, Sep 21, 2019, 11:59 AM Issam<EMAIL_ADDRESS>wrote:

You don't even need to install CUDA. Try using release 1.8.4 and see if it
works.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lltcggie/waifu2x-caffe/issues/179?email_source=notifications&email_token=AB4RNCAC3KBRJFPNOXONXNTQKZVIBA5CNFSM4IV673IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7IXWMA#issuecomment-533822256,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB4RNCBCAC2V57F7OT3ITYTQKZVIBANCNFSM4IV673IA
.

I have a 2080ti and it is working fine with CUDA 10.0.130. I forgot which cuDNN I used.
So I don't think it's specific to 2080ti.


Display certificate Info (#1)

Towards supporting #1

Got basic certificate info display working. The UI is very barebones, but should be functional.
Database migration now added. Front and back end now uses the URL() object as uniform access to helper methods.
Notification features are not implemented.

Great! I can improve the UI. And I am implementing the db migration.

Once this and #101 are merged, I'll put in another PR to get this data into the Prometheus exporter in #101 - that way we can graph/alert on cert data in prometheus as well! :)

BTW I totally forgot an elephant in the room, should NODE_TLS_REJECT_UNAUTHORIZED = '0'; be set as default? In order for my code to obtain self-signed certs, we have to set this so the request doesn't throw error. But this will have the side effect that websites with self-signed certs will now be shown as up, whereas they are shown as down currently.

But this will have the side effect that websites with self-signed certs will now be shown as up

Due to this reason, I would prefer to keep current setting.

I guess an alternative would be to add a per-monitor setting to rejectUnauthorized to deal with self-signed, which statping has this.

@chakflying arrr, your git commits did not bind to your GitHub account. Your name is not appearing in the  "Contributors" section because of this sadly.


[Docs] Translate docs/core-concepts/node-resource-manager.md to EN

The docs link you want to translate
zh: https://github.com/openyurtio/openyurt.io/blob/master/i18n/zh/docusaurus-plugin-content-docs/version-v0.6.0/core-concepts/node-resource-manager.md
Target language
en: https://github.com/openyurtio/openyurt.io/blob/master/versioned_docs/version-v0.6.0/core-concepts/node-resource-manager.md
Note：The images in the documentation are stored at https://github.com/openyurtio/openyurt.io/tree/master/static/img/docs/core-concepts
If you have any questions, please refer to [README.md].

Since version 0.6.0 is the same as the current documentation, the following article also needs to be translated.
The docs link you want to translate
zh: https://github.com/openyurtio/openyurt.io/blob/master/i18n/zh/docusaurus-plugin-content-docs/current/core-concepts/node-resource-manager.md
Target language
en: https://github.com/openyurtio/openyurt.io/blob/master/docs/core-concepts/node-resource-manager.md

/kind documentation

/pinned

node resource manager doc translation is fixed by https://github.com/openyurtio/openyurt.io/pull/138


logfile export with otelcol-contrib fails with 401 Unauthenticated loki

@qclaogui Hi Wifeng
Thank you for this helpful and well done repo.
I am currently trying to transfer log files from the outside with otelcol-contrib.
exporters:
  debug:
  otlphttp/uptrace-log:
    endpoint: http://<IP_ADDRESS>:33100/otlp

However, loki rejects the connection because of the authentication auth_enabled: true.
rpc error: code = Unauthenticated desc = error exporting items, request to http://<IP_ADDRESS>:33100/otlp/v1/logs

What am i doing wrong, do i have to go via alloy if so how?
Thank you very much for your time and effort.
Stefan

I have solved this by using the agneten alloy instead of otelcol-contrib


ReferenceError: self is not defined while importing pollyjs

I get ReferenceError: self is not defined where I try:
const { Polly } = require('@pollyjs/core');

My test environment is<EMAIL_ADDRESS>running tests suites with jest & puppeteer.

Experienced this as well. Couldn’t solve or get a work around.
Tried looking at Polly code but couldn’t think of a solution

As of right now, Polly is a client side library (meaning it will only run in the browser) but we are working towards an isomorphic solution!
Closing this issue since this is a duplicate of #19.


CLI completion scripts

The Fire library that we use for the CLI can autogenerate completion scripts for the user's shell: https://github.com/google/python-fire/blob/master/docs/using-cli.md#completion-flag
It'd be cool to autogenerate these as part of the CLI installation process. Autodetect the user's shell, then generate a script for it and add it to the user's bashrc/zshrc/whatever.

Aww. The autogenerated completion scripts don't support subcommands like viv task and viv config.


secio Flow Documentation

@dignifiedquire please document how secio works. A flowgram would be 👌🏽

@diasdavid what was that tool you mentioned for creating ascii diagrams?

http://monodraw.helftone.com/ is the best :D

http://asciiflow.com/ is also pretty good

I guess I don't have any excuses no

wow, http://monodraw.helftone.com/ has a very nice site

@jbenet and the tool is even better! :D

Existing docs:

https://github.com/libp2p/js-libp2p/tree/master/examples/encrypted-communications
https://github.com/auditdrivencrypto/secure-channel/blob/master/prior-art.md#ipfss-secure-channel

Hello all, I'm trying to write a secio implementation in another language. How can I test my work ? My strategy for now is to try to perform a successful handshake with one of the node in the IPFS bootstrap  nodes list but this is really difficult to debug 🤯. Any pointers would be great.

I've started something here: https://hackmd.io/C3PxZ5R6RR-v7dScRuF03w?both
(hackMD renders the diagram pretty tiny)
There's some stuff missing, feel free to add it
It can be rendered using https://bramp.github.io/js-sequence-diagrams/