Scrollbar doesn't show up

I'm attempting to use the DragScrollBar inside my FrameLayout in my fragment:

    <android.support.v7.widget.RecyclerView
        android:id="@+id/recyclerView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scrollbars="vertical" />

    <com.turingtechnologies.materialscrollbar.DragScrollBar
        android:id="@+id/scrollBar"
        android:layout_gravity="fill_vertical|end"
        android:layout_height="match_parent"
        android:layout_width="wrap_content"
        app:msb_lightOnTouch="false"
        app:msb_recyclerView="@id/recyclerView" />

The problem is that it doesn't show up. It does remove the default scrollbar, but I'm left with no scrollbar at all. I tried setting the color just to make sure it's not transparent or something weird; no dice. Am I missing something here, or is the library broken? I'm running Android 7.0.
Side note: I'm also using an AlphabetIndicator with it. I've confirmed that it does request the indicator from the adapter as I scroll, but it doesn't show the indicator in the UI.

The scrollbar must be the child of a relativeLayout with the rv. There should be a programtic check for that somewhere, but perhaps not. Either way, try placing it in a relativeLayout parent.

I tried placing it in a RelativeLayout, but still couldn't get it to show up. However, I switched to using FastScroll, so this isn't an issue for me anymore. I'll close it.


striked giving keyerror when highlight is none

if highlight is none and striked is in the markup list it will raise a keyerror

fixed it in 0.0.6


Add ddev-ssh-auth container to provide ssh-auth, fixes #414, fixes #1152

The Problem/Issue/Bug:
People want to be able to use their ssh keys inside the web container, mostly for composer actions against private repositories, but also for things like drush access and direct ssh access.
How this PR Solves The Problem:

Adds a ddev-ssh-auth container that serves all other ddev projects with ssh-auth running
Incidentally solves #1152 (request to allow turning off phpMyAdmin container) with an omit-containers array in config.yaml, which was added in order to allow turning off the ddev-ssh-agent container (but might as well turn off dba=phpMyAdmin as well)

Manual Testing Instructions:
This will probably need a special ddev command for step 2, but for now, do this:

ddev start a project
Assuming your password-protected ssh key is in ~/.ssh/, run ddev auth ssh and give it your key password.
In a project, ddev ssh. You should be able to ssh <username>@somessh-protected-host successfully. If you don't have something useful to test with, give me your pubkey and I'll set you up.
Put a password-protected ssh key in another directory and use ddev auth ssh -d /somewhere/else to add it (and test that you can now access what you ought to be able to access)
Try using ddev rm --stop-ssh-agent to stop the ssh agent container; when you do that, auth from within the web container should be lost; to re-establish it a ddev start should get it going again, and ddev auth ssh is required again.
Try omit_containers: ["ddev-ssh-agent", "dba"] with a ddev start to verify that the dba (phpMyAdmin) and ddev-ssh-agent containers don't start.

Automated Testing Overview:
This doesn't yet have tests and it will need some.
Related Issue Link(s):
OP #414
Random issue about omitting containers #1152
Release/Deployment notes:
TODO:

[x] Needs tests
[x] The shared volume may need to be deleted at first run of the ddev-ssh-agent (right before running it?)
[x] ddev probably needs a special command to add the ssh key. ddev auth ssh ?
[x] Figure out the correct way for users to kill off the ddev-ssh-agent if they don't want it
[x] Consider configuration for disabling the ddev-ssh-agent
[x] Add ddev-ssh-agent status to ddev describe (maybe ddev list?)
[x] Add ddev-ssh-agent version to ddev version
[x] Consider whether we need a command-line switch to ddev config for omit_containers.

@andrewfrench I'd love to have you give this a go today. The code is pretty much in place; it still needs a test for the new omit_containers piece, and depending on your view it may need a config flag for that.
The thing that I'm least happy with is using the docker command directly in the ddev auth ssh implementation. Second least happy is using docker directly in the pkg test.
If you would like a different command setup than ddev auth ssh I'm open to suggestions. Open to suggestions on anything, but I think this is now accomplishing what we'd hoped for in the basics.

This now has config flags, config value validation, docs, and tests. I think I'm pretty well done with it until review.  I did give up on testing it in docker-toolbox environment. Hopefully it will pass at least most of the tests with this last push.

Running ddev rm --stop-ssh-agent appears to be equivalent to running ddev rm -a --stop-ssh-agent

Just checked, they are not equivalent.
cd d8git
ddev start
cd d7git
ddev start
ddev rm --stop-ssh-agent

Only d7git is stopped, not all projects (as with ddev rm -a), it is not equivalent to ddev rm -a --stop-ssh-agent
We could, of course, create a whole separate command for destroying the ssh-agent, but I think this should be a very unusual operation anyway. It's really just for people who just discovered it was running and don't understand why.

You're right about that - I only had one project running and apparently forgot that a ddev rm without args will stop the current project. In that case, one can't currently stop the ddev-ssh-agent unless you're also stopping a project with it (ddev rm --stop-ssh-agent fails in non-project-dir ~)

Right, assuming it's an unusual event, I tacked it onto rm rather than adding a new command. Although docker rm -f ddev-ssh-agent is the obvious technique. I really think this is only useful to people who are seeing it for the very first time and don't want or understand it.

Thanks for the prods, there were a lot of rough spots, like ddev auth ssh outside of a project directory, no keys in the ~/.ssh, directory doesn't exist, all kinds of rough spots. I think they're better now.
You'll want to docker pull drud/ddev-ssh-agent:20181022_add_ssh_auth before retesting.
It does now start the agent on ddev auth ssh if it's not already running.


Do reinforced windows break too easily?

Description
Currently, regular reinforced windows break way too easily. Using common tools such as a crowbar, i was able to break one in ~15 seconds. A toolbox was able to break one in 10 seconds and a baseball bat was able to break one in ~7 seconds.
In comparison, when using tools the fastest I was able to deconstruct a reinforced window was around 25-30 seconds.
Should reinforced windows be able to be broken quicker by using common weapons, than it takes to deconstruct one properly using tools?

Try the test again and let me know these stats:
How many hits does it take to destroy a reinforced window and a regular window with both a toolbox and a baseball bat. Just the number of hits this time.

Window:
Hits to break
baseball bat - 4 (2 wide swing)
toolbox -6 (3 wide swing)
Reinforced Window:
Hits to break
baseball bat -12 (6 wide swing)
toolbox - 22 (9 wide swing)

I also tested this with secure windoors.
took 48(25 wide) hits with a toolbox .
took 26(13 wide) hits with a baseball bat.

How long does it take for wide attacks to hit vs regular attacks?

depends on the weapon, but i think but to get full damage its something like a little less than twice the time for normal attacks.

I think the health is fine as they are then. If it takes 22 hits (seconds) with a toolbox and 18 seconds with a wide swing that's fine.


Type column in Details view changes from localized to none localized after folder is loaded

When opening a folder for the first time, the entries in the Type column appear localized but after 1 second they get replaced with a none localized version.

Merging with #1586.


[EBPF-577] gpu: re-enable e2e tests

What does this PR do?
Re-enables the GPU e2e tests after they were marked as flaky due to possible problems with unattended-upgrades (this setting was disabled at the infra level).
It also includes some fixes to make the tests themselves more reliable, including a custom workload image.
Motivation
Describe how to test/QA your changes
Possible Drawbacks / Trade-offs
Additional Notes

/merge


Combat shotgun (And probably other cayo perico weapons) don't save.

This happens because PlayerCompanion uses the SHVDN enum to get the list of weapons, but it has not been updated with the new weapon hashes from The Cayo Perico Heist.

Ill probably ask for some memory editing help on the 5mods server to get the weapon hashes directly from the game's memory during runtime.

RPH has a feature which you can get a collection of all weapons, just call ToList and then you can enumerate those, i think.

Yes, but PlayerCompanion does not runs on RPH only on SHVDN.

Looks like I forgot that I implemented this in fb9c95d743450f7d6bdf8ad227cdb43df4c93d61, whops!


Fix consul

Consul host and port can be configured

@feclare any progress on this? I think we should fix and integrate this one before merging the monorepo PR on Monday.

I was waiting for some comment about https://github.com/edgexfoundry/export-go/pull/26#discussion_r169256800

I moved the consul connection to main and solved some of the issues.

When it is accepted I will move this code also to the edgex-go repo already created.

@janko-isidorovic please merge ASAP.


pantheon.elementary-music: cleanup

Motivation for this change
To minimize the Pantheon 7 update PR diff. Seems that lots of inputs can be removed.
Actually I have started to play on Pantheon 7 myself, a screenshot of elementary-music 7 here (yeah the locales are not setup correctly so far) :smile:

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@ofborg test pantheon

@ofborg test pantheon

@ofborg test pantheon

@ofborg test pantheon

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

19 packages built:

pantheon-tweaks
pantheon.appcenter
pantheon.elementary-calendar
pantheon.elementary-camera
pantheon.elementary-code
pantheon.elementary-feedback
pantheon.elementary-files
pantheon.elementary-greeter
pantheon.elementary-music
pantheon.elementary-onboarding
pantheon.elementary-photos
pantheon.file-roller-contract
pantheon.gnome-bluetooth-contract
pantheon.sideload
pantheon.switchboard-plug-about
pantheon.switchboard-with-plugs
pantheon.wingpanel-applications-menu
pantheon.wingpanel-indicator-datetime
pantheon.wingpanel-with-indicators


Support unique_ptr<>

We can't work with unique_ptr in messages right now. Only raw pointers can't provide enough level of recourse ownership.

https://github.com/duckstax/actor-zeta/pull/155


⚠ Bofrost.lu has degraded performance

In 1b13cea, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1536 ms

Resolved: Bofrost.lu performance has improved in 045fea7 after 6 minutes.


Supercheq tutorial missing link to environment variable information

What is happening?
Documentation for Supercheq (https://superstaq.readthedocs.io/en/latest/apps/supercheq/Supercheq_css.html; notebook: https://github.com/Infleqtion/client-superstaq/blob/main/docs/source/apps/supercheq/Supercheq_css.ipynb; and same for qiskit-superstaq notebook) says:

We then supply a Superstaq API token (or key) by either providing the API token as an argument of css.Service() or by setting it as an environment variable (see more details here).

But "here" at the end of this sentence does not link to anywhere.
How can we reproduce the issue?
Look at documentation site or notebooks in this repo that generate it.
What should happen?
"here" should link to somewhere, I'm not sure where.
Environment
Latest.
Any additional context?
No response

The hyperlink in ‘see more details here’ for the optimization notebooks seems to be broken as well

It should link here for the qiskit notebooks for example: https://superstaq.readthedocs.io/en/latest/get_started/basics/basics_qss.html#Set-up-access-to-Superstaq’s-API


Run tests on Travis

Tests are kind of limited if they're not run automatically in CI. Travis has the ability to encrypt credentials which would enable the gmail specs to run automatically.

I've merged in my earlier PR which includes Travis support. Travis encryption is not ideal since it doesn't work with Pull Requests.

sounds good. :+1:

I think the integration hook isn't setup because there are no builds on travis.
https://travis-ci.org/nu7hatch/gmail

We need @nu7hatch to setup Travis since it requires repo owner permission, and he's hard to track down. I've raised #131 to move to a new repo which we maintain, if all are agreed will do soon.

This issue was moved to gmailgem/gmail#129


Licensing of @llamaindex/cloud npm package

Hi folks,
We're interested in using the @llamaindex/cloud package found on npm, however this package does not seem to contain licensing information. I assume that package comes from this repository, and is thus MIT licensed, but am not sure looking at the package if it maps to the code found in this directory.
tl;dr: Wondering where the source is for @llamaindex/cloud npm package, and if licensing information can be added to the distributed package so we know what rights we have when it comes to this software. Thanks!

Thanks for the tip; the license should be MIT because it's an API wrapper and utility library.
For now it's private because it's very hacky to publish that, but I will move the package to this repo this week.

Please see<EMAIL_ADDRESS>

Thank you so much for the quick turnaround, very appreciated!


Fixed Navbar in Zipkin UI

Currently, on narrow screens or when the window is resized on wide screens, the nav bar in zipkin UI covers the content (can be simulated by resizing the browser window size). The ideal solution is to move the content down after the navbar when the screen is resized.
In the current UI, this happens because the navbar is fixed and is always displayed. This behavior has a few issues:
a) In the zipkin UI there is no need to show the navbar always. If a user wants to use the navbar he can scroll up.
b) On the trace page, displaying the navbar not only covers the content but also covers the spans when the trace is large. If the nav bar can be scrolled up we can use that screen real estate to see more spans.
c) On home page, the nav bar would cover the trace selection form when the browser window is resized.
I have tested this change in-browser.You can experiment with the navbar behavior here: https://getbootstrap.com/examples/navbar-static-top/
In the long term the navbar should be redone to have a better layout of it's contents. Further, on small screens, the nav-bar should collapse into a hamburger menu.

Good explanation and thanks for the help.
ps guessing long term stuff should be things to keep in mind here: https://github.com/openzipkin/zipkin-ui as once this is done


Re-use shared onboarding flow across all release tests

Task/Issue URL: https://app.asana.com/0/488551667048375/1205234542811812/f
Description
Refactors release tests to make use of the shared onboarding flow, removing the need to duplicate those steps inside every individual test.
Other test types will be done in separate PRs.
Steps to test this PR

[ ] Verify e2e tests run successfully: https://github.com/duckduckgo/Android/actions/runs/5833949096

This could also be added the maestro privacy tests right?

This could also be added the maestro privacy tests right? The title says that but there are no privacy tests?

Sorry, this is for refactoring release tests ones. Renamed the PR. The other test types will be done in separate PRs and are captured as sub-tasks in Restructuring Maestro tests for better reusability

While we are at it, why not doing it on this PR and change it everywhere?

Sorry, this is for refactoring release tests ones. Renamed the PR. The other test types will be done in separate PRs and are captured as sub-tasks in Restructuring Maestro tests for better reusability

While we are at it, why not doing it on this PR and change it everywhere?

+1 seems like a very low effort to do that in this PR rather than N follow up PRs

Sorry, this is for refactoring release tests ones. Renamed the PR. The other test types will be done in separate PRs and are captured as sub-tasks in Restructuring Maestro tests for better reusability

While we are at it, why not doing it on this PR and change it everywhere?

To make incremental quicker improvements instead of delaying making any improvement until more work is done. Since this isn't a top priority work, I'd favor shipping improvements when they are available. Making this PR fix all tests increases the chance of it going stale while waiting to get the time to fix the other tests.

I am not sure I understand the logic for this "incremental change" when we're talking about 10-20min work to get it all done (we're probably incurring in more busy work, ie. process, opening multiple PRs for this than doing it all in just one PR).
But I am fine if you feel strongly about not doing it.


Support license mapping

cargo uses spdx license identifiers.
we could use a map file that translates between names found in license and official SPDX names.
also, there has been a discussion to add such a map file to ::gentoo repo, if it happens we could re-use the file without maintaining own copy.

ok I'm going to close this one as the code added works great so far.
if we get a map file in repo I'll open a new issue.
thanks for implementing it!


Users who have not correctly populated the Name field should be hidden.

If a user signs up to the service through SSO, and the service does not provide the Name attribute, it is possible for that user to drop out of the process before updating their Name and Email address.
This can result in the creation of a user with an incomprehensible name, for example "https://registry.shibboleth.ox.ac.uk/idp!https://shib-sp.unity.ac/shibboleth!ZreQ+tXFwfhw8fLHtaPStsAcHBg="
Having these users appear causes confusion for other users of the tenancy, so they should remain hidden until they update their Name (and they should be forced to do this on next login, as appears to be the case).

Assigning to @sallakarppinen as a next ticket as it will provide some useful exposure to the auth system.
@simong @mrvisser : Feel free to add some pointers/context here.

Most of the heavy authentication lifting is done by Passport. All of the relevant glue logic (or custom authentication strategies) is contained in the oae-authentication module.
All the different authentication strategies have their own folder under oae-authentication/lib/strategies/. Each strategy should export an implementation of the oae-authentication/lib/strategy.js interface in its oae-authentication/lib/strategies/<strategy name>/init.js file. An easy example to get started with is the Twitter strategy as it delegates almost everything to Passport:
strategy.shouldBeEnabled = function(tenantAlias) {
        return AuthenticationConfig.getValue(tenantAlias, AuthenticationConstants.providers.TWITTER, 'enabled');
    };

shouldBeEnabled tells you whether a strategy should be enabled for a given tenant or not. Usually this just delegates to the config api
strategy.getPassportStrategy = function(tenant) {

This function should return a  PassportJS strateg. Each tenant will have its own passportjs strategy object as some of them have slightly different configuration options. As you'll notice from the Twitter getPassportStrategy function there are some gotcha's around changing configuration values and on-the-fly reloading of authentication strategies. (if you follow the interface, this is usually not a big problem).
All passport strategies require you to specify a callback function that specifies what needs to happen once the user is authenticated. In the case of Twitter it usually means either:

create a new user account if this is the first time the user signed in or
get the existing user account and establish a new session.
The actual getting/creating logic is abstracted in AuthenticationUtil.handleExternalGetOrCreateUser, you just need to pass in the user information.  That function will eventually call down to oae-authentication/lib/api.js#getOrCreateUser. Note that you can pass in the visibility as well, this will be relevant for solving this ticket. If you wanted to make all Twitter users private, you could make the following change:

var username = profile.username;
var displayName = profile.displayName;
var opts = {};
var picture = profile['_json']['profile_image_url_https'];
if (picture) {
    // Use the better quality image
    // @see https://dev.twitter.com/docs/user-profile-images-and-banners
    picture = picture.replace(/_normal\.(.*)$/, '_bigger.$1');
    opts.smallPictureUri = 'remote:' + picture;
    opts.mediumPictureUri = 'remote:' + picture;
}

// Make all new Twitter users private
opts.visibility = 'private';

AuthenticationUtil.handleExternalGetOrCreateUser(req, AuthenticationConstants.providers.TWITTER, username, null, displayName, opts, done);

Now, the Shibboleth strategy is slightly more complicated as it is a custom passport strategy with a few extra components. As Shibboleth has really poor support for multi-tenant systems, there's a bit of a custom workflow (see the README.md in the oae-authentication/lib/strategies/shibboleth/ directory for the full rundown.
However, passing down the profile information is exactly same as the Twitter strategy as the implemented Shibboleth strategy in its init.js file calls down to AuthenticationUtil.handleExternalGetOrCreateUser as well. Roughly, the patch would probably look something like:
// There are a lot of SAML attributes that may indicate a user's display name. The administrator
 // should provide a suitable priority list to construct the displayname. If no suitable value was
// returned from the mapping, we fall back to the `remote_user` attribute, as this is always provided
var displayName = _getBestAttributeValue(tenant.alias, 'mapDisplayName', headers, headers['remote_user']);

// Set the optional profile parameters
var opts = {
    'authoritative': true
};

// Make the user private if their display name resembles a Shibboleth identifier (e.g., it starts with http://)
if (displayName.indexOf('http://') === 0) {
    opts.visibility = 'private';
}

Feel free to ping me on Slack at any time if you'd like some more info as this is not the easiest part of the stack. Good luck ;-)

Examples of Name formats, I have come across that should be hidden include;
https://registry.shibboleth.ox.ac.uk/idp!https://shib-sp.unity.ac/shibboleth!xsAFH4Oh7H7hqELsP7ECmo/6aQQ=
and
shibboleth!wwm4Mbey7AFd1/Y+71YHzhQjvfA=
I have also come across examples where the Name field has been populated with an email address. I think these should be hidden in the same way (also it could lead to unintentionally exposing a user's email address) but there might be a counter argument I am unaware of @nicolaasmatthijs

I would be tempted to check for 'shibboleth!' as that seems to be the common element in those examples. Are there situations where we would expect that string in a valid Name?

Tracked in https://github.com/oaeproject/Hilary/pull/1285


Replace deprecated build-url package with nativenew URL

Problem

We are using build-url package to create the URLs for the external sources. It is deprecated:
 WARN  deprecated<EMAIL_ADDRESS>This package is no longer maintained
Description

We can replace it with the native URL.
Alternatives

Additional context

Duplicate of #2139.


Do not show footer in entry.html if not needed.

If there is no site.read_time or entry.date set, do not show an empty
footer as this only adds some whitespace. In a collection without
excerpts the whitespace between headers is already quite a lot due to
the article tag, so at least, do not add additional unnecessary
whitespace.
Note that the entry.date is not printed in a collection anyways (look at the entry-date.html), that why the entry.date and page.layout != 'collection' part of the code in the if statement.

Thanks for PR, looks good.


Update README.md

InternLM-XComposer2-4KHD-7B has demonstrated remarkable performance, achieving state-of-the-art results in our MindBench benchmark. We hope to integrate these results into your repository.


Cannot run migration with local CockroachDB instance

Bug description
When I try to run the "prisma migrate dev" command against a local cockroachdb instance, I get the following error:
dotenv -e .env.local prisma migrate "dev"

Prisma schema loaded from src/prisma/schema.prisma
Datasource "db": CockroachDB database "backtalk", schema "public" at "localhost:26257"

Error: db error: ERROR: unimplemented: virtual schema table not implemented: pg_catalog.pg_sequences
HINT: You have attempted to use a feature that is not yet implemented.

Please check the public issue tracker to check whether this problem is
already tracked. If you cannot find it there, please report the error
with details by creating a new issue.

If you would rather not post publicly, please contact us directly
using the support form.

We appreciate your feedback.

   0: sql_migration_connector::flavour::postgres::connection::describe_schema
             at migration-engine/connectors/sql-migration-connector/src/flavour/postgres/connection.rs:30
   1: migration_core::state::DevDiagnostic
             at migration-engine/core/src/state.rs:250

 ELIFECYCLE  Command failed with exit code 1.
 ```

### How to reproduce

1. Start a local cockroachdb instance (I am running mine in a docker container)
2. Try to run `prisma migrate dev`

### Expected behavior

It to migrate the database

### Prisma information

<!-- Do not include your database credentials when sharing your Prisma schema! -->
```prisma
datasource db {
  url      = env("DATABASE_URL")
  provider = "cockroachdb"
}

generator client {
  provider = "prisma-client-js"
}

generator docs {
  provider = "node node_modules/prisma-docs-generator"
  output   = "../../docs"
}

generator dbml {
  provider = "prisma-dbml-generator"
  output   = "../../dbml"
}

generator nexus {
   provider = "nexus-prisma"
}

enum Chain {
  ETHEREUM
  POLYGON
}

enum Question_Type {
  FREEFORM
  MULTIPLE_CHOICE
  CHECKBOX
  MULTI_SELECT
  NUMERIC
  FILE
}

enum Eth_Token_Type {
  ERC20
  ERC721
  ERC1155
}

enum Role {
  OWNER
  ADMIN
  USER
}

enum Price_Tier {
  FREE
  NOT_FREE
}

model User {
  wallet           String            @id
  profile          Profile?
  team_user        Team_User[]
  survey_responses Survey_Response[]
}

model Profile {
  wallet   String  @id
  username String
  name     String?
  email    String?
  user     User    @relation(fields: [wallet], references: [wallet])
}

model Team_User {
  wallet  String
  user    User   @relation(fields: [wallet], references: [wallet])
  team_id String
  team    Team   @relation(fields: [team_id], references: [id])
  role    Role   @default(USER)

  @@id([wallet, team_id])
}

model Team {
  id        String      @id @default(uuid())
  name      String
  tier      Price_Tier  @default(FREE)
  team_user Team_User[]
}

model Survey {
  id            String            @id @default(uuid())
  title         String
  description   String?
  public        Boolean           @default(false)
  active        Boolean           @default(true)
  max_responses Int?
  image         Survey_Image?     @relation(fields: [image_id], references: [id])
  image_id      String?
  image_url     String?
  question      Question[]
  responses     Survey_Response[]
}

model Question {
  id            String              @id @default(uuid())
  prompt        String
  question_type Question_Type
  required      Boolean             @default(false)
  survey        Survey              @relation(fields: [survey_id], references: [id])
  survey_id     String
  responses     Question_Response[]
  options       Response_Option[]
}

model Survey_Response {
  user               User                @relation(fields: [wallet], references: [wallet])
  wallet             String
  survey             Survey              @relation(fields: [survey_id], references: [id])
  survey_id          String
  question_responses Question_Response[]

  @@id([wallet, survey_id])
}

model Question_Response {
  id              String          @id @default(uuid())
  content         Json
  question        Question        @relation(fields: [question_id], references: [id])
  question_id     String
  survey_response Survey_Response @relation(fields: [wallet, survey_id], references: [wallet, survey_id])
  wallet          String
  survey_id       String
}

model Response_Option {
  id          String   @id @default(uuid())
  value       String
  question    Question @relation(fields: [question_id], references: [id])
  question_id String
}

model Response_Token {
  tokens           Json
  contract_address String
  wallet           String
  survey_id        String

  @@id([contract_address, wallet, survey_id])
}

model Survey_Image {
  id      String   @id @default(uuid())
  url     String
  surveys Survey[]
}

model Contract {
  address    String
  chain      Chain
  token_type Eth_Token_Type
  token_ids  String[]

  @@id([address, chain])
}

Environment & setup

OS: macOS 12.5.1 on Apple Silicon
Database: CockroachDB
Node.js version: 16.15.0

Prisma Version
prisma                  : 4.3.1
@prisma/client          : 4.3.1
Current platform        : darwin-arm64
Query Engine (Node-API) : libquery-engine c875e43600dfe042452e0b868f7a48b817b9640b (at ../../node_modules/.pnpm/@prisma+engines<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli c875e43600dfe042452e0b868f7a48b817b9640b (at ../../node_modules/.pnpm/@prisma+engines@4.3.1/node_modules/@prisma/engines/migration-engine-darwin-arm64)
Introspection Engine    : introspection-core c875e43600dfe042452e0b868f7a48b817b9640b (at ../../node_modules/.pnpm/@prisma+engines@4.3.1/node_modules/@prisma/engines/introspection-engine-darwin-arm64)
Format Binary           : prisma-fmt c875e43600dfe042452e0b868f7a48b817b9640b (at ../../node_modules/.pnpm/@prisma+engines@4.3.1/node_modules/@prisma/engines/prisma-fmt-darwin-arm64)
Format Wasm             : @prisma/prisma-fmt-wasm 4.3.0-32.c875e43600dfe042452e0b868f7a48b817b9640b
Default Engines Hash    : c875e43600dfe042452e0b868f7a48b817b9640b
Studio                  : 0.473.0

The error message you are seeing is from CockroachDB. What version are you trying to use?

I have tested with v21.1.21 inside docker and v22.1.7 locally on my machine.

Hm strange, it all of a sudden started working. 🤷🏻


fix(getting-started): Use ng-template with Angular 4

We recently renamed all template tags to ng-template for Angular 4.

There were the following issues with your Pull Request

Commit: a91bce32bcbb50b1bc42211657b0c3263b5ac1fa
Your subject line is longer than 50 characters

Guidelines are available at https://github.com/fabric8io/fabric8-ui

This message was auto-generated by https://gitcop.com

@dlabrecq snapshot fabric8-ui is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-940-fabric8-ui.int.rdu2c.fabric8.io


Add resources for learning Cryptography in the resources directory

Please assign this to me

please look into this. We are contributing but our contribution is not getting counted because of this ?


NeoForge support

This PR introduces SpongeNeo a new Sponge implementation for NeoForge, alongside SpongeForge and SpongeVanilla.

I got the feeling there's already alot of progress on this topic, but is there any ETA when the official release will be supporting Neoforge on minecraft 1.21.1?
If so, is there already an way to download and test it?

SpongeNeo is runnable but unstable. I don't have any ETA because it has not been tested enough to quantify the bugs. Feel free to test it but keep in mind that it is not production ready. The more people test it and report issues, the sooner it will be stable.
The Sponge website hasn't been updated yet to show SpongeNeo downloads. However, you can download SpongeNeo via Github actions at https://github.com/SpongePowered/Sponge/actions/workflows/deploy.yaml. Click on the latest run, then scroll down and click on "SpongeNeo Production Jar".

Thanks for your time!

For what it's worth, you can already use SOAD API (Downloads API) to query for SpongeNeo:
Given the curl:
curl --location 'https://dl-api.spongepowered.org/v2/groups/org.spongepowered/artifacts/spongeneo/versions'

JSON Response
{
    "artifacts": {
        "1.21.1-21.1.35-12.0.0-RC1818": {
            "tagValues": {
                "minecraft": "1.21.1",
                "neo": "21.1.35",
                "api": "12.0"
            },
            "recommended": false
        },
        "1.21.1-21.1.35-12.0.0-RC1816": {
            "tagValues": {
                "minecraft": "1.21.1",
                "neo": "21.1.35",
                "api": "12.0"
            },
            "recommended": false
        }
    },
    "offset": 0,
    "limit": 25,
    "size": 2
}

And for the latest version available:
curl --location 'https://dl-api.spongepowered.org/v2/groups/org.spongepowered/artifacts/spongeneo/latest'

JSON Response

{
    "coordinates": {
        "groupId": "org.spongepowered",
        "artifactId": "spongeneo",
        "version": "1.21.1-21.1.35-12.0.0-RC1818"
    },
    "commit": {
        "commits": [
            {
                "commit": {
                    "message": "Merge remote-tracking branch 'origin/api-11' into api-12",
                    "body": "Merge remote-tracking branch 'origin/api-11' into api-12\n",
                    "sha": "e95b19f401d4ec5c669089fc400fe3f486c3136c",
                    "author": {
                        "name": "aromaa",
                        "email"<EMAIL_ADDRESS>                    },
                    "commiter": {
                        "name": "aromaa",
                        "email"<EMAIL_ADDRESS>                    },
                    "link": "https://github.com/SpongePowered/Sponge/commit/e95b19f401d4ec5c669089fc400fe3f486c3136c",
                    "commitDate": "2024-10-05T21:11:43Z"
                },
                "submoduleCommits": []
            }
        ],
        "processing": true
    },
    "assets": [
        {
            "classifier": "",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818.jar",
            "md5": "748d967e2e7b54172532886eb535af1f",
            "sha1": "f14477b1533d0bc2e60d5194e78f2f5639c56689",
            "extension": "jar"
        },
        {
            "classifier": "",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818.pom",
            "md5": "0fb371f25a71f85423e06816dbdce9b5",
            "sha1": "ecb33fba2eed95a69ee9ebb6a076d6fd950356c7",
            "extension": "pom"
        },
        {
            "classifier": "accessors",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-accessors.jar",
            "md5": "4c11aff3bb5a861cb7cd94882c530752",
            "sha1": "759d4953c5847cb4ed4842d2747d247be3d61e13",
            "extension": "jar"
        },
        {
            "classifier": "accessors-sources",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-accessors-sources.jar",
            "md5": "b1704c7504e966f847c1941b4baa8503",
            "sha1": "cd9b4d846b9bc2a18d44c4eed46b4862bb947d18",
            "extension": "jar"
        },
        {
            "classifier": "applaunch",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-applaunch.jar",
            "md5": "84049ad2a13e3b0565617e986dbd33ad",
            "sha1": "69ed40e96a85f3177c31e55efb281bbf5153ac1d",
            "extension": "jar"
        },
        {
            "classifier": "applaunch-sources",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-applaunch-sources.jar",
            "md5": "b22077a931410ea213672f4e6cee4b35",
            "sha1": "51fbc33531e14aa9ab06ae5414ae41c1cc088ff0",
            "extension": "jar"
        },
        {
            "classifier": "lang",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-lang.jar",
            "md5": "e96f5569d6e13ffe0b15c3bfe4824b52",
            "sha1": "487261b294975025d733ea57f25e24fad6c04188",
            "extension": "jar"
        },
        {
            "classifier": "lang-sources",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-lang-sources.jar",
            "md5": "de4f7b715c9243f29c47bd9188b49611",
            "sha1": "0224b81db011b9c7b66bf03e8a754857ad512c22",
            "extension": "jar"
        },
        {
            "classifier": "launch",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-launch.jar",
            "md5": "7073c6f97d81921dc9139802acf481aa",
            "sha1": "04cde08333079b3f07b6dd06eb89ed3bf5c1fa2b",
            "extension": "jar"
        },
        {
            "classifier": "launch-sources",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-launch-sources.jar",
            "md5": "1d50ede57edbb66dc3290f4267629892",
            "sha1": "d46b0caefbe9db7bc37241582fe8abde476fc185",
            "extension": "jar"
        },
        {
            "classifier": "mixins",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-mixins.jar",
            "md5": "f8b43c11eef1f71b731055aea83f1ada",
            "sha1": "e96b4dcc563b46fe4be28a84da9ff0a77eca143b",
            "extension": "jar"
        },
        {
            "classifier": "mixins-sources",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-mixins-sources.jar",
            "md5": "4fe6bd062a0fc47f490989d7588cfb9e",
            "sha1": "ce77b77d4416e7f1100357f14d1b5b9dd1c80d76",
            "extension": "jar"
        },
        {
            "classifier": "sources",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-sources.jar",
            "md5": "78380a1d444e8cae1a9e3df227f37eeb",
            "sha1": "397ccae5d6d47b24c428ae98547d5afac0291f40",
            "extension": "jar"
        },
        {
            "classifier": "universal",
            "downloadUrl": "https://repo.spongepowered.org/repository/maven-releases/org/spongepowered/spongeneo/1.21.1-21.1.35-12.0.0-RC1818/spongeneo-1.21.1-21.1.35-12.0.0-RC1818-universal.jar",
            "md5": "250c4863fe554c97d642fde97725ef1c",
            "sha1": "b9b39fd23a010b101106f7aef6aab519c724618d",
            "extension": "jar"
        }
    ],
    "tags": {
        "minecraft": "1.21.1",
        "neo": "21.1.35",
        "api": "12.0"
    },
    "recommended": false
}

We just need to add the tab to our downloads webpage.

Honestly, this is super helpful! i am not that tech savy when it comes to github and such.
Thanks again for your time! @gabizou @Yeregorix .


feature(android): add support for badge count

Using Leolin's ShortcutBadger we are able to support any badge counts that are sent as part of the notifications data-payload.

great! any extra configuration needed?

can you fix the conflicts?

Conflicts fixed.
It should not require any extra configuration. It will automatically respond to notifications that have badge in their data payload. Otherwise one can use the setBadgeNumber to manipulate the badge manually

will test and release

cool thanks :)

@sondremare tried the function but no badge is showing up. Does it only work for specific system?

Ah that should ofc been said. It works for specific vendors (LG, Samsung), as the code letting us draw this badge is part of the firmware. See https://github.com/leolin310148/ShortcutBadger

@sondremare the documentation still states that it doesn't support badges in Android. Should this be changed or hasn't this feature been officially released yet?

@malitta I am just a contributor, so I am not sure. @evollu you have any information?

I will change the readme

(android) setBadgeNumber work but data-payload dont work
Here is my payload data:
{ 	collapse_key = "abc", 	data = new { 		badge = 10, 	}, 	time_to_live = 864000, //10 days 	notification = new 	{ 		id = "id", 		color = "#66BB6A", 		title = "the title", 		body = "the content", 		icon = "ic_notification", 		priority = "high", 		show_in_foreground = true, 		content_available = true, 		badge = 10, 		sound = "default", 	}, 	registration_ids = [list id] };
What i am missing?

Try structuring your payload like this:
{
    collapse_key: 'abc',
    data: {
        badge: 10,
        more_stuff: more_values,
    },
}

badge should be in notification payload


Youtube shorts is not working fine, it donot return the next page youtube shorts, and also the view count of shorts is not accurate

when ever fetching the youtube shorts from channel, i am not getting the next page shorts, also i am not getting the right view count of youtube shorts.

Can't replicate, I'm able to fetch next shorts page with this code
const result = await client.getChannel("UCXuqSBlHAE6Xw-yeJA0Tunw");
if (!result) return;

await result.shorts.next();
console.log(result.shorts.items.length);
await result.shorts.next();
console.log(result.shorts.items.length);

For the view count, seems like it is indeed not accurate, although I'm not sure how to proceed with this, since it seems like YouTube doesn't return the actual number of the view count (at least for the short endpoint on channel), instead it returns the formatted number (for example 338k views, which will be incorrectly parsed to 338 by this library)
But it seems like it works fine if you use the client.getVideo(SHORT_ID) method (yes you can use .getVideo to get short information, it works the same).
It's a bit difficult trying to create a library that returns a consistent object type and value, since what YouTube uses on their page sometimes returns the formatted value that will be shown on the page instead of the actual / raw value. I will probably fix this later because I'm planning to rewrite some part of the code so it returns a more consistent result.


bug: doesnt build

Describe the bug
git submodule update --init --recursive
Submodule 'extern/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'extern/pybind11'
Submodule 'extern/whispercpp' (https://github.com/ggerganov/whisper.cpp.git) registered for path 'extern/whispercpp'
Cloning into '/home/ivan/whispercpp/extern/pybind11'...
Cloning into '/home/ivan/whispercpp/extern/whispercpp'...
Submodule path 'extern/pybind11': checked out 'dc9b39596d986aeb061bd3debe52d30e2467dc48'
Submodule path 'extern/whispercpp': checked out 'bebf0da983632f47c8dff5cae5a578992c31ff26'
Submodule 'bindings/ios' (https://github.com/ggerganov/whisper.spm) registered for path 'extern/whispercpp/bindings/ios'
Cloning into '/home/ivan/whispercpp/extern/whispercpp/bindings/ios'...
fatal: remote error: upload-pack: not our ref c9d5095f0c64455b201f1cd0b547efcf093ee7c3
fatal: Fetched in submodule path 'extern/whispercpp/bindings/ios', but it did not contain c9d5095f0c64455b201f1cd0b547efcf093ee7c3. Direct fetching of that commit failed.
fatal:
fatal: Failed to recurse into submodule path 'extern/whispercpp'
To reproduce
git clone
git submodule update --init --recursive
Submodule 'extern/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'extern/pybind11'
Submodule 'extern/whispercpp' (https://github.com/ggerganov/whisper.cpp.git) registered for path 'extern/whispercpp'
Cloning into '/home/ivan/whispercpp/extern/pybind11'...
Cloning into '/home/ivan/whispercpp/extern/whispercpp'...
Submodule path 'extern/pybind11': checked out 'dc9b39596d986aeb061bd3debe52d30e2467dc48'
Submodule path 'extern/whispercpp': checked out 'bebf0da983632f47c8dff5cae5a578992c31ff26'
Submodule 'bindings/ios' (https://github.com/ggerganov/whisper.spm) registered for path 'extern/whispercpp/bindings/ios'
Cloning into '/home/ivan/whispercpp/extern/whispercpp/bindings/ios'...
fatal: remote error: upload-pack: not our ref c9d5095f0c64455b201f1cd0b547efcf093ee7c3
fatal: Fetched in submodule path 'extern/whispercpp/bindings/ios', but it did not contain c9d5095f0c64455b201f1cd0b547efcf093ee7c3. Direct fetching of that commit failed.
fatal:
fatal: Failed to recurse into submodule path 'extern/whispercpp'
Expected behavior
build
Environment
Python 3.10.12
Ubuntu 22.04.3 LTS

I had to fork it and update the submodules again and it worked

Could you post the commands you used to fix this? Even if I fork and update my submodules, I still get the same error.


date format in portfolio page

dates on market trading page and portfolio page filled orders as an example, need to use two digit day.

there is no space in the mocks

I'm a bit confused, what do you mean no space in the mocks?

never mind actually. i thought you were saying to add a space between the date and month

This tix is just for the date format. Theres another one specifically for the space. Only happems when the width gets squashed.

Does the Timestamp in the extended version - should this match the fill date like 23Jan 2019, instead of Jan 23, 2019

it should. i'll add that

It shows  Jan 23, 2019 style in the extended states of Filled and open orders as well.....I think Tom and I just made a ticket for that a few hrs ago

fixed - closing


width of center column and its position

Hello,
Thank you for creating this. it's very nice indeed. I do have two questions,

is there a way to change the width of the main text column? it would be nice if i could make it say 10-20% wider (and everything els changes accordingly)

can we make the text column left aligned, i.e. move the column to the left of the page rather than dead center?

Much thanks

To do this you need to use CSS grid (you can provide a custom stylesheet via the css YAML option). Here is where we establish the layout for 1000 pixels and higher (actually, there is another layout for > 1280 pixels which you'd potentially also need to tweak):
https://github.com/radixpub/radix-r/blob/master/inst/rmarkdown/templates/radix_article/resources/distill.html#L149-L176
There are 2 reasons that the center column is narrow:

Ergonomics of reading are much better with a narrow column (one of the reasons that newspapers use narrow columns). See also medium.com layout upon which Radix was to some extent based: https://medium.freecodecamp.org/how-to-write-bulletproof-code-in-go-a-workflow-for-servers-that-cant-fail-10a14a765f22

To leave some room in the margin for asides and figures.

I agree a narrow column is more readable than a wide one, but i would like mine to fit in a few extra (maybe 3-4) words at convenient font size.
thanks much for the pointers

It's certainly possible that our default width isn't ideal. Let me know what you come up with and we can either evaluate changing our default or providing a top-level option for another layout variation. As I said there is another layout that comes into play at >= 1180px but this CSS wasn't currently visible. I've added it explicitly so that you can play with that as well:
https://github.com/radixpub/radix-r/blob/master/inst/rmarkdown/templates/radix_article/resources/distill.html#L178-L198


Qt6 Support

QAction is part of QtGui in Qt6.

I'd like to work on getting this merged in the next couple of weeks and hopefully do a release with qt6 support by the end of that period.

Thanks again for this proposal! I'm working on integrating qt6 support in #75 and used changes #62 to do so. Instead of explicitly instantiating QActions and then later using addAction to add them to the toolbar, we're now letting addAction also handle instantiation.


Output field smoothing

Description of the problem

The output field smoothing was functional, but could sometimes crash due to erratic behavior in the tolerance
Only the q criterion was smoothed
The resulting smoothed field was sometimes jaggy

Description of the solution

Fix the tolerance issue
Add some slight smoothing in a stiffness matrix to fix the jaggyness
Added the same postprocessor for the velocity divergence
Added this component to the flow around a cylinder example in transient. It's nice.

How Has This Been Tested?

Ran on a few examples in release and debug, it's all chill

Documentation

I don't think this changes documentation?

Future changes

Add the same filter to the vorticity!

@oguevremont All comments have been applied


Bug 1845766: Add status code to ErrNotV2Registry

This PR adds information about why the client thinks that the registry doesn't support v2 API. The information may be provided back to the registry administrators if the registry is expected to support v2 API, but sometimes the /v2/ endpoint misbehaves.

/assign @smarterclayton
/cc @soltysh

/lgtm


Interaction with completion menu

When it inserts the current choice from the completion menu, the grey autosuggest sticks around and changes to the normal color. See https://asciinema.org/a/ateiyie18acvm3l7srfezt89g for a screencast of the behavior. bindkey '^I' is expand-or-complete.

This is what I was referring to as "minor issues with the buffer displaying incorrectly while inside menu selection" in this comment, but I never created a separate issue for the problem.
Using menu selection is what causes this issue. I believe this is the minimal .zshrc config to reproduce this problem:
autoload compinit && compinit
zstyle ':completion:*' menu select
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh

I haven't yet found a way to bind to a menu selection event to clear/update the suggestion. Probably will need to dig into this document to find a solution.
As far as I know, there are two options to workaround this issue temporarily:

Don't use menu selection. Remove the zstyle line above or set the menu style to no-select with  zstyle ':completion:*' menu no-select. This will keep suggestions working while doing completions.
Add your bound completion widget(s) (expand-or-complete in your case) to the list of widgets that clear the suggestion. This will have the effect of disabling suggestions while you're in menu selection, but at least it won't leave a lingering, broken suggestion. Add ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=("expand-or-complete") somewhere in your .zshrc after sourcing this plugin.

We may want to add expand-or-complete to ZSH_AUTOSUGGEST_CLEAR_WIDGETS by default, but I believe that would break suggestions for folks not using menu selection, so I think this belongs in individual user configuration for now.

Ah! Thanks for the detailed and quick response, much appreciated.

This should be fixed in v0.3.2 (just released) by commit e87bc74


(PUP-8614) Update travis/appveyor with ruby 2.5

This includes changes for PUP-8609 to bump ffi to 1.9.23

CLA signed by all contributors.

Downgrades to OpenSSL gem 2.0.5 and 2.0.7 produced passing tests, so this appears to only be a problem with the 2.1.0 version of the openssl gem

For anyone following along, the following script will perform a test by making a CA and running verification with and without purpose set (requires a system ssl to be installed):
https://gist.github.com/McdonaldSeanp/3d92c654ee16acc37b590b3d5dac3fc2
When running that script with a ruby SSL that reports later than 1.1.0 you will see the second test run report:
Using OpenSSL::X509::Store *with* purpose set to OpenSSL::X509::PURPOSE_SSL_CLIENT
******

26
unsupported certificate purpose

******

and any ruby version reporting an earlier version of openssl will report no error

The plan for puppet 6 is to remove the CA rest endpoints, create new CLIs to replace puppet cert generate, etc and then delete all of the ruby CA code. So for now, can we update the test to generate a client cert and verify that instead of the self-signed CA?

You should be able to drop the URI fixes from this, they were fixed in master as part of running on jruby 9.2.
Is this still in progress?

I'm just going to open a new PR


Configure options

Hi sorry to ask but if I run vscode like so from my .config/nvim/init.lua it all works fine.
For the life of me I can't figure out how to move the configuration part to a lua/plugins/vscode.lua file so
the setup stays in .config/nvim/init.lua but everthing else is in a pluigin folder.
Please help.
I have tried moving everything after "-- vscode plugin from Lazy configuration" to the vscode.lua file but I
receive errors about get_colors and if I remove that I can't get the plugin to run.  I did get it to run once by removing all the config
settings but then I couldn't configure it.
Thanks in advance
require("lazy").setup('plugins'{
  'Mofiqul/vscode.nvim',
})

-- vscode plugin from Lazy configuration
local c = require('vscode.colors').get_colors()
require('vscode').setup({
    -- Alternatively set style in setup
    -- style = 'light'

    -- Enable transparent background
    transparent = false,

    -- Enable italic comment
    italic_comments = true,

    -- Disable nvim-tree background color
    disable_nvimtree_bg = true,

    -- Override colors (see ./lua/vscode/colors.lua)
    color_overrides = {
        vscLineNumber = '#FFFFFF',
    },

    -- Override highlight groups (see ./lua/vscode/theme.lua)
    group_overrides = {
        -- this supports the same val table as vim.api.nvim_set_hl
        -- use colors from this colorscheme by requiring vscode.colors!
        Cursor = { fg=c.vscDarkBlue, bg=c.vscLightGreen, bold=true },
    }

And of course I have been working on this for a few hours over a day or so and as soon as I ask my question I figure it out.
The answer:
In ~/.config/nvim/init.lua
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
	vim.fn.system({
		"git",
		"clone",
		"--filter=blob:none",
		"https://github.com/folke/lazy.nvim.git",
		"--branch=stable",
		lazypath,
	})
end
vim.opt.rtp:prepend(lazypath)

require("config.globals")
require("config.options")
require("config.keymaps")

require("lazy").setup("plugins", {
})

And in ~/.config/nvim/lua/plugins/vscode.lua
return {
   'Mofiqul/vscode.nvim',

   -- optionally, override the default options:
    config = function()
      local c = require('vscode.colors').get_colors()
      require('vscode').setup({
        -- Alternatively set style in setup
        -- style = 'light'

        -- Enable transparent background
        transparent = false,

        -- Enable italic comment
        italic_comments = true,

        -- Disable nvim-tree background color
        disable_nvimtree_bg = true,

        -- Override colors (see ./lua/vscode/colors.lua)
        color_overrides = {
            vscLineNumber = '#FFFFFF',
        },

        -- Override highlight groups (see ./lua/vscode/theme.lua)
        group_overrides = {
            -- this supports the same val table as vim.api.nvim_set_hl
            -- use colors from this colorscheme by requiring vscode.colors!
           Cursor = { fg=c.vscDarkBlue, bg=c.vscLightGreen, bold=true },
        }
    })
   require('vscode').load()
   end,
}

@horga83 I am using lazy as well but keep running into an issue when I update the plugin.. it says something about "attempt to call method 'flatten' (a nil value)". Did you run into this issue? If so would you mind sharing how you resolved it? Thanks!!


Feature request: shortcut to create prefulfilled and prerejected promises

I've discovered that .then( function() {}, function() {} ) returns a positively resolved promise even if the initial promise was rejected, while .then( function() {} ) would return a rejected promise. This is counter-intuitive to me, but i guess this is how ES6 is designed, so it's useless to whine about it.
Anyway, to work this around, i have to explicitly return a rejected promise from the failure callback of .then():
return somePromise .then(
  function(data) {
    // Success
    return data;
  },
  function(data) {
    // Failure
    var rejectedPromise = new RSVP.Promise(
      function (resolve, reject) {
        reject(data);
      }
    );
    return rejectedPromise;
  };
);

This is a terrible amount of code to write. I can think of this instead:
return somePromise .then(
  function(data) {
    // Success
    return data;
  },
  function(data) {
    // Failure
    return RSVP.rejectedPromise(data);
  };
);

reduced your above example:
return somePromise.then(function(data) {
  return data;
}, function(reason) {
  throw reason;
});

Additionally, the following short-hands exist.
var fulfilled = RSVP.Promise.resolve(data);
var rejected = RSVP.Promise.reject(reason);

throw reason;

Oh, i didn't know that promises catch all errors thrown from inside then callbacks. I thought they would leak. Learning every day! :D

Additionally, the following short-hands exist.

Thank you, @stefanpenner! This is exactly what i wanted.
My teammate @gleb-osokin told me that those exist already, but we failed to find them mentioned in RSVP readme. Why are they not mentioned?

Just as a reminder, doX().then(function () { }, doY) is the asynchronous equivalent of try { doX() } catch (e) { doY(e); } so if doY is an empty function then the error will be swallowed whereas if doY is a function that re-throws the exception then the error will be propagated. Hope this helps your conceptual model.

My teammate @gleb-osokin told me that those exist already, but we failed to find them mentioned in RSVP readme. Why are they not mentioned?

They should likely be added to the README, so that future travelers to the promised land will catch them.
We should really get an RSVP site up, which can contain its own docs. But for reference they do exist as part of ember http://emberjs.com/api/classes/RSVP.html

@domenic, @stefanpenner, you guys rock!

@domenic thanks.
from a past talk I gave:

link to the deck: http://static.iamstef.net/promise.pdf

for the most part though, i strongly recommend people use the following form:
promise.then(function(value) {

}).catch(function(reason) {

});

as it is mostly what people actually what to use.


Fix `comparison is always false' warning on ARM

I use linenoise on an ARM device.  On ARM chars are unsigned by default and for this reason they can never be less than zero.

Merged https://github.com/rain-1/linenoise/commit/d4c2001b71efdc976163ffc9a34ec9d85e555058


Updating for PFX Encryption guidance

Updating for PFX Encryption failures.

@johnerskine : Thanks for your contribution! The author, @brenduns, has been notified to review your proposed change.

#sign-off

@GitHubber17 : Thanks for your contribution! The author, @brenduns, has been notified to review your proposed change.


New proposal: Allow coding of non- String  / Int  keyed Dictionary into a KeyedContainer

After discussing the pitch on https://forums.swift.org/t/pitch-allow-coding-of-non-string-int-keyed-dictionary-into-a-keyedcontainer/44593, I believe that the pitch is ready to move into an actual proposal.
I hope that I have done everything correctly.
The implementation that is being referred to still lacks testing. If at all possible, I would love some guidance to where to place the tests.

Hi @tomerd ,
Is there anything I can do to push this forward?
Sincerely,
/morten

Hi @tomerd ,
Is there anything I can do to push this forward?

Sincerely,
/morten

thanks for your patience @mortenbekditlevsen will be looking into this one shortly now that the concurrency proposals are all winding down

That sounds great, @tomerd .
Let me know if there's anything at all I can do to help! :-)

@mortenbekditlevsen we are ready to put this into review. Do you need to make any changes to the proposal language based on the feedback from pitch, or does this PR reflect all that?
cc @parkera

The feedback from the pitch discussion has been incorporated to the PR.
I'm so excited! :-) Though I know that this will probably not get a ton of attention. :-)
Thanks for your help!


Something wrong with buildSubAnimation

It's hard to produce minimal. You can run my project to get this error.
If I try to decrease the grid cell when the grid cell increase animation has not been completed, it generates this error.
═══════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building Animate-[<'point : 0 | depth : 0 | false'>](state: _AnimateState#0613f(ticker active)):
'package:flutter/src/animation/curves.dart': Failed assertion: line 183 pos 12: 'end <= 1.0': is not true.
package:flutter/…/animation/curves.dart:183
2

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

The relevant error-causing widget was
Animate-[<'point : 0 | depth : 0 | false'>]
lib/grid_zoom.dart:554
When the exception was thrown, this was the stack
#2      Interval.transformInternal
package:flutter/…/animation/curves.dart:183
#3      ParametricCurve.transform
package:flutter/…/animation/curves.dart:38
#4      Curve.transform
package:flutter/…/animation/curves.dart:92
#5      CurvedAnimation.value
package:flutter/…/animation/animations.dart:462
#6

It doesn't happen anymore I think it's because of duration overhead, I increase duration to 800.ms it works again.

Great. v0.1.1 can do some weird things with hot reload and changing durations. I think the current version should resolve that issue. 🤞


Invalid graphql message type for subscriptions

Describe the bug
While using Apollo GraphQL subscriptions with Space Cloud, Space Cloud sends a message with type stop whenever it receives a message with type stop from the client. However, stop messages should only be sent from client to server and not the other way around. Hence Apollo client throws this error - Invalid message type
Expected behaviour
Space Cloud shouldn't send a message with type stop to the client.
Actual behaviour
Space Cloud sends a message with the type stop.

If this bug restricts your use of space-cloud, give it a thumbs up reaction, so that we can determine which bugs need to be fixed immediately.
👍

Done. Sending complete instead. Not sure if thats right though. @Jayesh333 you'll have to confirm.

Instead of complete, it's sending the error message as such:
{
  "payload": {
    "authToken": "",
    "variables": null,
    "error": [
      {
        "message": "no subscription found on db () and col (todos)"
      }
    ]
  },
  "id": "1",
  "type": "error"
}

Note, how the db() is empty in the message. I think its because the stop message might be expecting dbType/dbAlias but it's not getting that. (Apollo sends stop message on its own whenever it gets error on start message)

Done.  Coming in v0.17.0.


PowerShell view yaml generates invalid yaml when arguments are set

Environment

Azure DevOps Pipelines (account aaronpowell)

Issue Description
When you create a PowerShell v2 task and set arguments to the script the YAML generated is invalid in the View YAML UI.
I was generated this:
steps:
- powershell: ./build.ps1
  arguments: '-Target Setup'

  displayName: 'Setup environment'

Which results in a parse error from Azure Pipelines:
azure-pipelines.yml (Line: 7, Col: 3): Unexpected value 'arguments'

View Build.
Workaround
Updating to use the non-shorthand YAML and it works:
- task: PowerShell@2
  displayName: 'Setup environment'
  inputs:
    filePath: ./build.ps1
    arguments: '-Target Setup'

This is not a task issue - it's a service issue.  I'm closing but I'm also forwarding to the team that works on the service.  If you want you can email me - bryanmac and that's at microsoft

I couldn't find anywhere else to raise the issue which is why I popped it here 😉

cool, there's visual studio developer community
But here is fine.  I sent the mail to the team.  Feel free to send me a mail so you can get confirmation of traction.


remove the left bits of salt

after #10192 , salt was removed, but not completely.

@charrywanganthony  Thanks for the fix.
/lgtm

whoops, not quite.
Some of these files should be changed in the source Chinese translation repo, not here. Please submit a separate PR against https://github.com/kubernetes/kubernetes-docs-zh for the Chinese language files (and remove them from this PR). Thanks!
/lgtm cancel

@Bradamant3 Modified.

@charrywanganthony thank you so much! This has been on my mind for a while now. So good to get it taken care of :-)
/lgtm
/approve


Can't login/logout

Just did a fresh install and configured it to the best of my knowledge. Top right i see 'you are logged in as[LOGOUT BUTTON]'. I can't logout or log in. Any hints?

My bad!
sudo pip install flask-login --upgrade fixed it.


How to use ./test.py to test a model on my own dataset?

I have made my own train,val,and test dataset. The file structure is:
data
├── test
│   ├── data.mdb
│   └── lock.mdb
├── train
│   └── real
│       ├── data.mdb
│       └── lock.mdb
└── val
    ├── data.mdb
    └── lock.mdb

I have trained a model using my own dataset under data/train/real/ and data/val/. But I don't know how to test this model using dataset under  data/test/.
In test.py, I can't find a parameter specifying the test dataset:
https://github.com/baudm/parseq/blob/8fa51009088da67a23b44c9c203fde52ffc549e5/test.py#L65-L75
And if I run directly ./test.py outputs/<model>/<timestamp>/checkpoints/last.ckpt, it will report an error:
Additional keyword arguments: {'charset_test': '0123456789abcdefghijklmnopqrstuvwxyz'}
Traceback (most recent call last):
  File "./test.py", line 133, in <module>
    main()
...
...
...
lmdb.Error: data/test/CUTE80: No such file or directory

My charset_test is not '0123456789abcdefghijklmnopqrstuvwxyz' and I don't want to test the model on CUTE80.

In strhub/data/module.py, at the top of the function there is a bunch of variable. These are tuples that contain test dataset names, including CUTE80. By default, test.py will only look after TEST_BENCHMARK and TEST_BENCHMARK_SUB.
There is already a parameter in test.py called new that allows you to include TEST_NEW datasets to you test trial.
If you want to train only on your own data set, you can create another tuple, let's say TEST_CUSTOM=("MyDataset" , ) and then in test.py change the way test datasets are selected:
    parser.add_argument('--std', action='store_true', default=False, help='Evaluate on standard benchmark datasets')
    parser.add_argument('--new', action='store_true', default=False, help='Evaluate on new benchmark datasets')
    parser.add_argument('--custom', action='store_true', default=True, help='Evaluate on custom personal datasets')

    [...]

    test_set = tuple()
    if args.std:
        test_set = SceneTextDataModule.TEST_BENCHMARK_SUB + SceneTextDataModule.TEST_BENCHMARK
    if args.custom:
        test_set += SceneTextDataModule.TEST_CUSTOM
    if args.new:
        test_set += SceneTextDataModule.TEST_NEW
    test_set = sorted(set(test_set))

    [...]

    result_groups = dict()

    if args.std:
        result_groups.update({'Benchmark (Subset)': SceneTextDataModule.TEST_BENCHMARK_SUB})
        result_groups.update({'Benchmark': SceneTextDataModule.TEST_BENCHMARK})
    if args.custom:
        result_groups.update({'Custom': SceneTextDataModule.TEST_CUSTOM})
    if args.new:
        result_groups.update({'New': SceneTextDataModule.TEST_NEW})

That's so cool! I successfully test the model using your method. Thank you very much!

Thanks @bmusq.
Re: charset_test, the value in main.yaml is actually overridden by test.py. You may specify the characters directly in: https://github.com/baudm/parseq/blob/8fa51009088da67a23b44c9c203fde52ffc549e5/test.py#L84

Excuse me, but is this necessary? Do I have to change the code:
https://github.com/baudm/parseq/blob/8fa51009088da67a23b44c9c203fde52ffc549e5/test.py#L84
to
kwargs.update({'charset_test': 'Lots of characters in my charset_test...'})

When I test the model on my test set 2 hours ago, it worked normally but I didn't change this line of code. The output was:
Additional keyword arguments: {'charset_test': '0123456789abcdefghijklmnopqrstuvwxyz'}
MyDataset: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 121/121 [01:20<00:00,  1.49it/s]

And the accuracy was 94%.
Did I just use '0123456789abcdefghijklmnopqrstuvwxyz' to test the model? But If so, the accuracy should be very low.

Also, I didn't change the value of charset_test in main.yaml directly. I just perform the following actions:

Open configs/main.yaml
Under model set charset_test: ???
Open configs/charset/your_custom_file_or_we_else.yaml
Add the line charset_test: "myCustomCharsetTest"
Make sure in configs/main.yaml that at the top, under defaults charset: your_custom_file_or_we_else

I have run a few tests on my own and it seems that any charset_test from a .yaml file, whether it is in some custom_case.yaml or even in the main.yaml never gets to the model. If I print hp.charset_test I get the full 94 char no matter what are the value of my charset_test field in .yaml files. Since I haven't tried with any special char I did not realise it, sorry for that.
Though, as mentionned by baudm, the kwargs.update({'charset_test': charset_test}) overwrite it all and you can actually define your charset_test as will there.
Now regarding the result of your test, it is indeed very strange. Something off somewhere and I couldn't figure out what

Yes, It is necessary to change the code:
https://github.com/baudm/parseq/blob/8fa51009088da67a23b44c9c203fde52ffc549e5/test.py#L84
to
kwargs.update({'charset_test': 'Lots of characters in my charset_test...'})

Before change, if I print hp.charset_test, it prints the full 94 char.
After change, if I print hp.charset_test, it prints my own charset.
Thank you!

To put it in a nutshell, you can either:

Change charset_test field in .yaml before training such that the model retain this value when load for testing. If you want to use this charset for test you need to disable kwargs.update of charset_test.
Change charset_test value of the model  on fly at testing, after training,  thanks to kwargs.update({'charset_test': "My Charset Test"}).

By defaults: charset_test is overriden by kwargs.update with value "0123456789abcdefghijklmnopqrstuvwxyz". This default string can further be modified with the native parameter cased and punctuation of test.py
@baudm Do you concur ?

To clarify:

charset_test is only used by the model for validation during training.
test.py always overrides charset_test. It became a bit confusing because I decided to not use Hydra in the scripts for inference (test.py, read.py). Still thinking whether to refactor that bit.

In summary, for now just specify charset_test directly inside test.py.

Aaah thank you for clarifications !
But then, to make it more transparent, shouldn't charset_test from yaml config be called charset_val ?

@bmusq it can't be since all models (i.e. BaseSystem subclasses) expect a charset_test parameter.
Since a model checkpoint (either .ckpt or .pt) already contains the hyperparameters used for training, the config files aren't used anymore during inference (hence the decision to not use Hydra for test.py and read.py).
Hydra is only a train-time dependency. It's not required for using the model during inference. charset_test is used by validation_step and test_step.


Adds changes from @digia 's original pull request.

@homu r+

:pushpin: Commit e673d31 has been approved by jpadilla

:zap: Test exempted - status


Add the app into F-Droid

Well, there is ~70 modules. Do you think it's good idea to upload all of them to F-Droid?

I don't think it is possible with Dashchan modular system. Dashchan also has its own updater.
I don't sure Dashchan is acceptable for F-Droid, because it can be linked with non-free modules.

Well, there is ~70 modules. Do you think it's good idea to upload all of them to F-Droid?

Of course I do. There are apps in F-Droid doing this.

@Mishiranu There are plenty of apps with modular systems in F-Droid. [1] I'm pretty sure that they will accept it if the auto updater can easily be removed from the code before compilation.
[1]
https://f-droid.org/repository/browse/?fdfilter=AnySoftKeyboard
https://f-droid.org/repository/browse/?fdfilter=MAXS

Even if they won't accept, you can always create own repo compatible with fdroid client

@jiyagaimo that's good, but I don't think it will be easy to upload each new extension for me. As I know, developers make requests on forum, so I have to make request for each extension. That's annoying.
@KOLANICH yes, I thought about it. But in this case F-Droid loses its sense. F-Droid assures that packages are built from source code, but own repos will contain the same binaries as on my github repos.

@KOLANICH yes, I thought about it. But in this case F-Droid loses its
sense. F-Droid assures that packages are built from source code, but
own repos will contain the same binaries as on my github repos.

Some profit remains: I will be able to install it through package manager. BTW, f-droid should be most profitable if a dev has own build server with reproducible builds. Than fdroid should preserve dev's original signature.

@Mishiranu No, you don't have to.  See https://f-droid.org/manual/html_node/Metadata.html and https://gitlab.com/fdroid/fdroiddata/tree/master/metadata for examples (they accept pull requests).

@jiyagaimo I didn't know about this. If I can just add a new metadata file and make a PR, it makes all much easier. So OK, I'll look at this when I get time.

https://gitlab.com/fdroid/rfp/issues/164
I think it's fine to include only the app and webm libraries (without modules). And keep the auto updater where it is.

Well, that's great. But I'd like to add extensions too. In previous update I've added some features to manage extensions from different sources planning to add them all to fdroid.
Right now I'd like to fix some issues and release a new version of client before releasing it to froid.

Also Dashchan uses some external APIs which requires API keys. They are specified during compile time and taken from private.properties. This file is not on my repo because it's not a good practice to post them publically.
Is it possible to include them in froid somehow? They are not so important but bring some features.

This file is not on my repo because it's not a good practice to post them publically.

I guess it'd be better to allow the users to (possibly after obtaining in an automated way) provide own keys in the settings.

I think I can use advanced preferences (see wiki) for keys. In this case user can add his keys and app will use them. It's a good idea.

I'll probably try to release the application to F-Droid myself later since I want to try to use reproducible builds. I already implemented tagging, so I'm waiting until v2 signing will work for reproducible builds (I don't want to publish releases with v1 scheme only). Okay?

 Further: your Fastlane lacks en-US, which is used as default locale and hence mandatory (yes I know, Americans… but nothing I could do about that). ru is fine, no need to change that (unless you plan for Google Play).

 I thought "en" is enough, I even checked existing index for this locale, and it seems some applications use just "en" in metadata instead of "en-US". Is "en-US" required by F-Droid parser instead of "en"? I can change that.

ru is fine, no need to change that

According to fastlane doc, "ru" is a proper locale. "ru" is also used much more often than "ru-RU" in metadata, so I suppose it's correct to use "ru".

Ok, changed "en" to "en-US". Actually, I rebased the repo, but that's fine :eyes: .

Yes, en-US is required by F-Droid (don't listen if someone tries convincing you otherwise – I know what I'm talking about; saw fails often enough, always the same cause). Google would even require ALL your locales using xx-YY (so no idea what someone with de-AT would get if only de-DE and en-US were present)…
Thanks for adjusting! Did you make sure the change is covered by a tag (i.e. there was a tag created pointing to a commit that includes the change)? And good luck then with reproducible builds! That's the supreme discipline, and sometimes not that easy to achieve. :crossed_fingers:

Did you make sure the change is covered by a tag

Yes, I re-pointed the tag on new "Release 3.1.2" commit, though the release APK is the same (source code didn't change, only directory in metadata was renamed).

And good luck then with reproducible builds! That's the supreme discipline, and sometimes not that easy to achieve. crossed_fingers

Thanks! Yes, I know it's not easy. F-Droid doc is very helpful on this.

The client is available in F-Droid now!
https://f-droid.org/packages/com.mishiranu.dashchan/
Actually, the link doesn't work in web version now, seems like the website wasn't updated, but it's accessible from F-Droid client.
Thanks for waiting this long.

Thank you.

Website's updated asynchronously, usually takes a day or so to reflect the changes.

I see. It's not a big deal, though.


mistune .6 breaks HTML rendering of Jupyter notebooks

We had a user notice an issue with mistune .6.  They were able to confirm that downgrading to mistune 0.5.1 solved the problem.  Posting here so it can be addressed.
https://github.com/ContinuumIO/anaconda-issues/issues/364

@groutr It is a known change.
refer links:

https://github.com/lepture/mistune/issues/38
https://github.com/jupyter/nbviewer/issues/458
https://github.com/jupyter/nbconvert/issues/45
https://github.com/lepture/mistune/issues/51
https://github.com/lepture/mistune/issues/58

It is changed in https://github.com/lepture/mistune/issues/50

The plan is to roll a new version with options parse_inline_html and parse_block_html. https://github.com/lepture/mistune/blob/master/CHANGES.rst#version-07

0.7 released.


Add representation of tiered rates

Tiered rates remain a common rate structure in residential rates. As such, it would be good to have a representation of tiered rates in this tool. Tiered rates could be modeled in a linear way by assigning charges for going into the higher consumption level(s), as determined by total energy consumption for each allowable consumption block.

For a single month, constraints might look like the following:
# Energy consumption for each tier
e = [e1, e2, e3]

# Energy consumption would be constrained by tier
0 <= e1 <= e1_max
0 <= e2 <= e2_max
e3 >= 0

# Total energy consumption across the tiers would be constrained by the total net demand
e1 + e2 + e3 == sum(d_net)

And the objective function would be updated to consider the extra costs associated with consuming energy in that tier:
r1 * e1 + r2 * e2 + r3 * e3

where r1 would likely equal 0, as there isn't an additional surcharge associated with consuming energy in the base tier.


Migrate leetcode-api workspace to a module

Per https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

I wanted to import an ESM package, which recursively requires its dependencies to be ESM.
Some reading:

https://www.hoeser.dev/blog/2023-02-21-cjs-vs-esm/
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c


refactor: change how get_role works

About
This PR changes how guild.get_role works to prevent and eliminate rate limits
Checklist

[x] I've ran pre-commit to format and lint the change(s) made.
[ ] I've checked to make sure the change(s) work on 3.8.6 and higher.
[ ] This fixes/solves an Issue.

(If existent):

[ ] I've made this pull request for/as: (check all that apply)

[ ] Documentation
[ ] Breaking change
[x] New feature/enhancement
[ ] Bugfix

Yes, I became kinda addicted to next()

Next keeps looping until the end; it's better to loop through and break early

I'll revert the removal of next

Why is the new module path in.. german?

Why is the new module path in.. german?

I accidentally pressed translate for Google chrome and it somehow changed everything while commiting - I'm about to fix it

Why is the new module path in.. german?

I accidentally pressed translate for Google chrome and it somehow changed everything while commiting - I'm about to fix it

Ok a chrome tab on mobile is not made for this lmao

I fucked this branch too hard, making another rq


Only 1 image per convo is working in Vision – subsequently added images gives error

When uploading an image to a vision model (Opus/Vision/4o) in a convo the image is added to the context just fine. But if subsequently you upload another image to the same convo no response is given.
Steps to reprodouce:

Start new convo with a vision model (Opus / gpt4-vision / gtp4o)
Upload image and ask to describe
Upload new image and ask to describe.

same!

Gemini Vision model is limited as a single-message model. Gemini Flash supports conversational multi-message scenario though.
Recently, the scenario you mention is also fixed, using the last image message.
So effectively, when using Gemini Vision, it can't account for every image it has seen and come up with a high-level answer on all images provided. However, it's able to keep on responding right now.
Other than Gemini limitation, I just tested Anthropic side with Haiku and it's working fine.
Anthropic model also (as with Gemini Flash) can account for all the images it's seen.

My understanding is that Gemini Vision is just a transitional model, while Gemini 1.5 Pro and Gemini 1.5 Flash already support multi-turn conversations with images.
I have made some temporary modifications to enable the use of the new models and support multi-turn image conversations.
ps: This modification is just a quick fix to achieve the goal. I hope the project author can optimize it to be simpler.

This is already merged. It's working in main.

@NuerSir That was what I was trying to say. I've modified the message handling for Gemini Vision and upgraded the library to comply with this change. Main branch current state is working just fine.

Please check with current, up-to-date main branch.


Fix link to webpack-dev-server documentation

Thank you for your pull request and welcome to our community! We require contributors to sign a Contributor License Agreement and we don't seem to have CLAs on file for these contributors to the Pull Request: (@micaste). In order for your PR to be reviewed and merged, please follow the directions at the link above.
Project team: please do not merge this Pull Request until Foundation staff have confirmed that a CLA is in place for the new contributor(s) listed above.
If there are any questions, please don't hesitate to get in touch with our Infrastructure Support team. /CC @finos-admin


Images still link to old wordpress wp-content directory

First of all, great script, thank you for creating it!
Export went ok, but in the index.md file the image links still point to the old location:
Example:
[![](https://www.domain.com/wp-content/uploads/2019/04/image.jpg)](https://www.domain.com/wp-content/uploads/2019/04/image.jpg)

I would have expected that the link in the .md file points to the images directory which has been created in the posts folder:
[![](./images/image.jpg)](./images/image.jpg)

Answering my own question:
I did not understand the last option in the wizard so I set it to "No" which was the reason.
So in order to link to the new location you need to set it to "Yes"
? Save images scraped from post body content? Yes

Hm, I'm having the same issue, but I did specify "Yes". 🤔
npx wordpress-export-to-markdown --input ~/Downloads/export.xml --year-folders false --month-folders false --post-folders false --prefix-date false --save-attached-images true --save-scraped-images true --include-other-types false --output blog

Any ideas? The images are downloaded, but in the markdown, it's still pointing to the online version rather than the local ones.


Daily delta values too high

Hi,
the daily delta values are unreasonable high for all states and the republic of Germany.

Hi,
during this day the numbers are again very reasonable. Yesterday, the delta numbers were very different, a thousand times larger. I do not record the readings, therefore I cannot give you a proof.
Regards
Gisbert

Yesterday there were also problems with the vaccination data. Perhaps there was a general problem at the RKI. Apparently, the matter was resolved on its own, which is why the issue could be closed.


[request] XM audio support

Equalizer, essential in any player.
Module format support: https://en.wikipedia.org/wiki/XM_(file_format)

An equalizer is already included -- just press CTRL+e in the library or player views.

https://en.wikipedia.org/wiki/XM_(file_format)

Something like this may be useful: https://lib.openmpt.org/

I am interested in having support for module formats as well, as it will be far superior to use musikcube than any other weird player. I'm currently using XMPlay for modules - but that is just kind of Windows 95 in the bad way.
Would it be possible to add playback formats to musikcube using input plugins?

This is something I've wanted to do for a while, and finally got around to it today -- it seems to be working. Needs some cleanup and additional testing, but there's a branch here:
https://github.com/clangen/musikcube/pull/354
It'll be part of the next release.

Sweet! 🙌 Looking forward to trying it out :)

So it seems very common for mod / xm / tracker files to not contain artist or album metadata -- curious how you folks that are interested in the feature would think about grouping / sorting these entries? I guess we can have default [unknown xm artist] and [unknown xm album] values, then allow the user to configure them in settings. Is there any better solution? 🤔

Most mod collections are grouped in folders - so I will be using the directory listing for this (as I do for all other music anyways).
Here I have searched for folders in the Modland collection by the artist Maktone. I found multiple, but opened only two of them.
Here it is ordered into module formats before the artist folder. Here Protracker and SNDH and then Maktone:

To find all the other Maktone folders, I would like to be able to search on folder names only.
On another note, artist usually will write stuff in the sample listings - but since this is just freetext I don't see myself sorting on it or searching for it. But I think it is very important to see this listing when playing the tunes!


Text Injection Issues on bosonapp.io

Injecting/modifying the static content on the target application without Javascript (Persistent) such as HTML injection without Javascript, replacing existing text with arbitrary text, arbitrary file uploads, etc.
An attacker can spoof the content with malicious text and spoofed link names to distract , fraud , scam or phish the victim.

This was fixed by this PR https://github.com/bosonprotocol/interface/pull/687


Committers list should align with Gitlab users and permissions and be fully automated

See original issue on GitLab
In GitLab by [Gitlab user @LaurenceUrhegyi] on Jul 9, 2019, 12:35
Background
I recently submitted a patch to add a list of committers which just adds a text file of those who have full commit access, and outlines the policy to follow (copying subversion).
It would be much better if this was aligned with the gitlab usres and automated.
Task description

[X] Ensure all gitlab users and permissions are accurate - everyone should be a developer, with a small number of people as owners (those that already are owners)
[ ] Those with commit access are currently 1) named individuals against the master branch (protected branch) and 2) anyone with 'Owner' or 'Maintainer' permissions - these people should be listed in the COMMITTERS file automatically - OR we could have the COMMITTERS file be the source of all truth and update the gitlab permissions
[ ] Have a look at Gitlab codeowners to see if it's helpful
[ ] Or a script, maybe on a cron job, might be good enough for now
[ ] Tidy up and/or replace the original MR - https://gitlab.com/BuildStream/buildstream/merge_requests/1415

Acceptance Criteria

Committer policy should be clear and captured in CONTRIBUTING
Committer list should be automated based on Gitlab permissions

In GitLab by [Gitlab user @LaurenceUrhegyi] on Jul 9, 2019, 12:35
changed the description

In GitLab by [Gitlab user @LaurenceUrhegyi] on Jul 10, 2019, 11:04
mentioned in merge request !1461

In GitLab by [Gitlab user @LaurenceUrhegyi] on Jul 11, 2019, 10:14
mentioned in merge request !1415

In GitLab by [Gitlab user @traveltissues] on Jul 11, 2019, 17:53
assigned to [Gitlab user @traveltissues]

In GitLab by [Gitlab user @traveltissues] on Jul 11, 2019, 18:01
[Gitlab user @LaurenceUrhegyi]  is the last task still relevant?

In GitLab by [Gitlab user @LaurenceUrhegyi] on Jul 11, 2019, 18:10
marked the task Ensure all gitlab users and permissions are accurate - everyone should be a developer, with a small number of people as owners (those that already are owners) as completed

In GitLab by [Gitlab user @LaurenceUrhegyi] on Jul 11, 2019, 18:11
[Gitlab user @traveltissues] yes, although will potentially need amending

In GitLab by [Gitlab user @traveltissues] on Jul 22, 2019, 17:03
unassigned [Gitlab user @traveltissues]

In GitLab by [Gitlab user @AlexFazakas] on Jul 24, 2019, 14:23
assigned to [Gitlab user @AlexFazakas]

In GitLab by [Gitlab user @AlexFazakas] on Jul 24, 2019, 17:12
After a talk with [Gitlab user @LaurenceUrhegyi] we decided that for now we'd try to automatically create a COMMITTERS.rst file by fetching all the relevant names and usernames through the Gitlab API. I believe I managed to do that, but before moving forward I wanted to ask a couple of questions to see how we should proceed:

How should COMMITTERS.rst be created? As it will contain some introductory lines (similar to [Gitlab user @tlater] / [Gitlab user @LaurenceUrhegyi] 's work  here), I was thinking always printing some lines (not nice, but I'm not sure what's a better looking workaround here).

I'm not sure how to set up the script to update the file periodically. What I had in mind was running it together with the overnight tests, but it also needs to commit the changes, should there be any, and I'm not sure how to do that. It might be a bit of an overkill using it once a day however. As it is right now, it takes about ~10 seconds to run on my machine, so it would add a small overhead to the overnight CI.

To be able to access the information, I'm currently using an access token, so we'd always need one ready for the script to run, that is also something to consider.

In GitLab by [Gitlab user @traveltissues] on Jul 25, 2019, 11:29

you can do that but you could also read a template file and write out that header with the appended table which would avoid hardcoding it

In GitLab by [Gitlab user @AlexFazakas] on Jul 25, 2019, 11:39
Not sure I understand, so we could maybe have a file like .COMMITTERS_template.rst in the repository, which the script would copy in COMMITTERS.rst and then append the table, for instance?

In GitLab by [Gitlab user @traveltissues] on Jul 25, 2019, 11:53
yes, that's one way, you could make it some other format if you wanted easier support for complex formatting

In GitLab by [Gitlab user @AlexFazakas] on Jul 25, 2019, 11:54
Makes sense. Thanks for the suggestion! :)

In GitLab by [Gitlab user @traveltissues] on Jul 25, 2019, 11:58

you can run that script on a new schedule (cron trigger) and job. i'm not sure if marge has permissions to commit any changes that come out of that but that could work

In GitLab by [Gitlab user @AlexFazakas] on Jul 25, 2019, 14:49
I'm not sure if we can commit changes to the repositories through a job. Some people suggested I use a hook, and after playing a bit with it I think it's doable, but then we add a roughly 10 second overhead whenever we commit something, which is too much. Not sure you meant about marge, however.

In GitLab by [Gitlab user @traveltissues] on Jul 25, 2019, 15:33
i think the hook shouldn't be on each push

In GitLab by [Gitlab user @AlexFazakas] on Jul 25, 2019, 15:39
I was thinking we could have a hook for every merge, but apparently these don't work with fast-forward merging, so I'm not sure if there's another option with hooks.

In GitLab by [Gitlab user @AlexFazakas] on Jul 26, 2019, 16:37
mentioned in commit b49b551562519b28930c9f44cfcc6b3cd42026fe

In GitLab by [Gitlab user @AlexFazakas] on Jul 26, 2019, 16:38
mentioned in merge request !1505

In GitLab by [Gitlab user @AlexFazakas] on Jul 26, 2019, 16:47
mentioned in commit 5b513019024ec8b0918752da50b20069c4fd37f8

In GitLab by [Gitlab user @AlexFazakas] on Jul 29, 2019, 17:07
mentioned in commit fb1df62220830b28ca345b1f261c122137091888

In GitLab by [Gitlab user @AlexFazakas] on Jul 31, 2019, 11:22
mentioned in commit f3a936f5909c95249ad9556ee9795c1c176cc3ce

In GitLab by [Gitlab user @danielsilverstone-ct] on Jul 31, 2019, 11:30
mentioned in commit 82c73a486de6dbda969ce837f56120c21406b503

In GitLab by [Gitlab user @AlexFazakas] on Jul 31, 2019, 16:33
mentioned in commit 446cbf3a2afc097748dd37abb6d18c3ca4d78f96

In GitLab by [Gitlab user @tlater] on Jul 31, 2019, 17:50
mentioned in commit 1388d72ac76c2de326d064290b383314db1454e8

In GitLab by [Gitlab user @marge-bot123] on Jul 31, 2019, 18:13
closed via merge request !1505

In GitLab by [Gitlab user @marge-bot123] on Jul 31, 2019, 18:13
mentioned in commit 3d224253b3448517f5bd36e68e9ff6ac205a0ca9

In GitLab by [Gitlab user @tpollard] on Aug 6, 2019, 13:36
mentioned in commit 2c0ea1efd9c5a4f831d9326eac7c911627926908

In GitLab by [Gitlab user @tpollard] on Aug 7, 2019, 12:08
mentioned in commit 9049ee90a9b1d94c252919649281d0d80a84a495


Updated custom multi AddStairs/RemoveItem

Modified the loop to search through iStairID in AddStairs (though using a short, no idea if that's the correct naming convention), now it is similar to what you can see in RemoveStairs. The last argument seems to be related to AddMulti but couldn't find a reason to keep it.
RemoveItem was modified to not remove the entire floor no matter what, client doesn't seem to like that, the server might remove the floor but you can commit and see the whole invalid items placed on it or whatever was removed from view by the server. I removed that bunch of code, maybe it would be the best to put it between some #ifdef or leave it commented.
Anyway, these are the differences I found between the 56d and X versions.
Tested on latest client (7.0.69?). Everything seems to work fine.

The floor removing thing was added to fix issue #202, further info about the necessity of that behavior is in issue #323 discussion

I couldn't reproduce any of the bugs in #202 in this commit.
I just had this issue but couldn't reproduce it:

Added walls of base floor.
Filled first floor with stone pavers.
Went to base floor and added stairs.
Went to first floor and couldn't see the stone pavers.
Everything restored after commiting.
I'll retest later to see if can reproduce it.

I've tried and tried but could not reproduce any bug.
Not even the #202 bugs.
Before this pull request, when I removed an invalid tile in 2nd/3rd floor, the entire floor was removed from me, but when committed, the invalid tiles were there.

Did you do those tests with an updated version? Because i'm running latest and by removing an invalid floor tile (actually sphere's selection is wider, because it considers invalid every floor tile which has a stair below, i couldn't do better without revolutionizing the code) in 3rd floor it removes the full current floor

This is recording with the latest build (just downloaded from the automated builds)
https://streamable.com/m2pmn

So do you confirm it's working with this pull request?

Did some testing and everything worked fine with this pull request.
Anyway, I fear the same, I'll add another commit with the code commented before you can pull it.


refactor: expose kuberhealthy flag in template

Signed-off-by: ankitm123<EMAIL_ADDRESS>

/cc @msvticket

/approve

no jx here it seems ...