Migrate talentpool to new API schema

Note: This has to be merged exactly same time than python-discord/site#447
Migrates talent pool to the new system. More exact changes are in the commit message body.
Closes #1425

@wookie184 I made these changes.

This doesn't paginate well, gets cut off. Doesn't seem to happen with the infractions paginator.


#1188 Improve error message for version mismatch

@gkbrk looks good to me. Thank you for the contribution!


Home page text update

Please update text on home page with this:
"It all started with ThreeFold, a conscious tech company that saw the need for a new peer-to-peer internet to empower equality (access), autonomy (data ownership), and sustainability (less energy), and acted on it.
ThreeFold built an open source technology, a Grid of decentralized storage and compute capacity. It created a digital currency, a Token, that represents a unit of reservation of that capacity and serves as a fair and trustworthy medium of exchange on the new peer-to-peer internet..
.. and started the Alliance for a Conscious Internet - an open and collective ecosystem of do-good projects and people that are committed to build a new peer-to-peer internet that serves the planet and humanity.
We aim to empower +1 Billion people with sustainable access to complementary education, internet, and currencies (banking) for less than $1 per month.
We replace competition with collaboration, ego with love and marketing with transparency because we know that only together do we stand a chance to reach our collective goals.
We collaborate with one another to improve our solutions, efficiency, reach, visibility and service to the planet and humanity.
If not us, who? If not now, when?"

And please change the logo on header to this one (without ACI):


external-schema filename="" not relative to current schema file

Hey guys,
I just stumbled upon this one. Given the following:
/path/to/schema.xml - main schema file
/path/onto/another/schema.xml - included schema file
in the main schema.xml:
<external-schema filename="../onto/another/schema.xml"/>

which is relative to the main schema file. That works if I call propel-bin from the path/to folder. If I call propel-bin from the path folder it won't work, because at the moment the filename is relative to the working directory, which can be anything - hence given buildscripts, that can reside anywhere.
When loading external schema it should be made sure they are relative to the schema which they are declared on.

I discovered more about this topic:

I used to use QuickBuilder to load my schema.xml and get the entities from that. Yet, QuickBuilder doesn't allow external-schema, because it loads it is loaded as string and as such SchemaReader::parseString($contents) doesn't have a filename to which an external schema could be relatively loaded.
SchemaReader expects an external-schema relative to the parent dir in which the current schema.xml is processed
When running propel build external schemas get merged into the processed schema.xml and they are relative to the current working directory (? - I'm not quite sure about that).

That's a mess. Three different locations in the code expect an external schema to be at three different locations (even if), that's a random behavior.
Now, imagine a schema has an external schema, which has an external-schema, it would be pure luck, if propel would find the third schema.
This is a totally chaotic state. There should be a clear rule about external-schema. Relative to working-dir? Relative to schema.xml? Unfortunately all have problems. Given the following:

Package B depends on package A. There is a schema in both packages and schema A has schema B as external-schema (<external-schema filename="vendor/vendorA/packageA/database/schema.xml"/>). For now that works. Now, here comes package C, which also has a schema which depends on the schema in package B (<external-schema filename="vendor/vendorB/packageB/database/schema.xml"/>). That'll partially work, the external-schema for package B can be found, but the schema from package B won't find the schema from package A (as packageB is now in a different location, when installed with composer).

I have no idea how this could be fixed with a path relative to where? Although a clear rule could help to solve the problem for the majority.
However, there might be a solution to this for people who are working cross-package, which is Puli. The external-schema filename could take a puli-path and that could be resolved using puli. Propel need to somehow configured (or auto-detect) to use puli and in that case would easily resolve cross-package external-schema filenames. I also could be motivated to help implement that for propel ;)
PS: You should change the tag from Enhancement to Bug


Search URLs should be clickable in Chat

Currently they're plain text

Looks like there is a bug.

I didn't add the extra ob://

Seems to happen with me when you type ob://#[tag] => ob://ob://#[tag]

The ob:// is required.
The internal links all start with #, so the code can't tell the difference between #bluedress and #userPage.
I can see if I can think of a more clever way to deal with it, but for now the options are have ob:// in front of tags and have them be clickable, or not have ob:// and they can't be clicked.
I added it to the @ because it looked weird to only have it for one of them.

Deleting previous comment, because I shouldn't check gitHub on mobile devices.
The extra ob:// is definitely a bug.


Update request: flutter 3.22.x → 3.24.0

Package name: flutter (stable, but also beta)
Latest released version: 3.24.0

Current version on the unstable channel: 3.22.2 (beta flutter323 version: 3.23.0)
Current version on the stable/release channel: 3.22.0

[x] Checked the nixpkgs pull requests

Notify maintainers
@RossComputerGuy

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

CC @NixOS/flutter
#324717 has been a blocker for updates since it affects the update script but it is close to being ready.

Yeah, I hope to have it done soon. It's close. Unfortunately, I just don't always have enough time.

Yeah, I hope to have it done soon. It's close. Unfortunately, I just don't always have enough time.

Yeah, of course! Take your time :)

Hey, since the blocker is merged, how is it looking with updating the flutter version? :) No worries, if you're too busy right now

how is it looking with updating the flutter version?

I plan on doing that on my next day off work which will be Thursday.


I’m running HA Core 2023.7.1 in a virtual Python env. The Husqvarna integration version is 2023.7.0
Has anyone an idea about this error and how to solve?
This is a part of the log:
2023-07-10 09:04:55.985 DEBUG (MainThread) [custom_components.husqvarna_automower] Exception in async_setup_entry: Cannot connect to host api.amc.husqvarna.dev:443 ssl:True [SSLCertVerificationError: (1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)’)]
2023-07-10 09:04:55.994 DEBUG (MainThread) [custom_components.husqvarna_automower] Finished fetching husqvarna_automower data in 0.253 seconds (success: False)
2023-07-10 09:04:55.995 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘husqvarna_automower’ for husqvarna_automower integration could not authenticate
I tried these things:
apt install ca-certificates
apt update
apt upgrade

Please see https://github.com/Thomas55555/husqvarna_automower/issues/486#issuecomment-1585530407 for a user with a similar issue.  This is almost certainly a configuration issue with openssl.

Not related to the integration


Troubleshooting Node.js Express Server Routing Issue

I tried this simple code in NodeJS:
const express=require("express");

const app=express();

const accounts=[]

app.use("/dashboard",function(req,res,next){
    res.send(accounts);
    next();
})

app.post("/dashboard/add-account/:address{6}",function(req,res,next){
    accounts.push(req.params.address);
    console.info(accounts);
    next();
})

app.put("/modify-account/:index/:address{6}",function(req,res){
    accounts[req.params.index]=req.params.address;
    res.send(accounts);
})

app.delete("/dashboard/delete-account/:index[0-9]",function(req,res){
    accounts[req.params.index]="";
    console.info(accounts);
})

app.listen(3001,"<IP_ADDRESS>",650,()=>{console.info("Server is ready ...")});

By sending this request: http://localhost:3001/dashboard/add-account/0x1234
What should I do?

Hi, we dont provide technical support here. The repo is more for bugs and feature work. I would recommend asking this question on stackoverflow or reddit. Ideally with more details about the behavior you are seeing so that folks can properly help you debug.


Try to remove the dependency on a curl header in client secret credential implementation

Ideally, there should be no direct dependency on a specific transport adapter, even in the implementation.

Have you reviewed other files for not having the same unnecessary include?

Nope, will do that separately.

From a quick glance, didn't find any other frivolous includes specific to curl.hpp:
https://github.com/Azure/azure-sdk-for-cpp/search?l=C%2B%2B&p=2&q=curl


Fix/year 2023

minor fixes, update year to 2023 in copyrights and add a space before the link to terms and conditions.

This branch needs to be checked out from development into development.
Also I would suggest to use new Date().getFullYear() instead of writing the year manually every year. We can use a computed function to achieve this.

Closing this for being stale and no response on change requests.


[ACR] [BlobClient] Investigate whether support is needed for digest hash algo other than sha256

We're currently using only SHA256 hash for computing the digest of a blob or manifest.
Investigate whether there is a need to support any other digest calculation algorithms.

Per: https://docs.docker.com/registry/spec/api/#content-digests,

compliant implementations should use sha256.

We need to confirm this for OCI as well.


No Forward Button

I think the music player should have a forward button, so that we don't have to manually pick a song. It kinda eliminates the purpose of a shuffle button if there is no forward and/or back select button.

Done I've added a back/forward button.


added a newly modified wiotp file

See my slack comments about this, i want marcelo to do his own builds.


fix: label for data type in s3 create file action

Description
Updated the label for file data type for s3 create a new file command to Text / Binary from Text.

Fixes #24804
or
Fixes Issue URL

[!WARNING]
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!CAUTION]
If you modify the content in this section, you are likely to disrupt the CI result for your PR.

/build-deploy-preview skip-tests=true


🔹🐛 Operator default listeners seem to be clashing with user provided ports

What happened?
I used ports 30081 and 30082 in "external" listeners and the operator complained that the port was already used:
│ manager {"level":"debug","ts":"2024-04-01T21:32:22.924Z","logger":"events","msg":"Helm upgrade failed for release red ││ panda/redpanda with chart<EMAIL_ADDRESS>failed to create resource: Service \"redpanda-external\" is invalid: spec. ││ ports[4].nodePort: Invalid value: 30082: provided port is already allocated\n\nLast Helm logs:\n\n2024-04-01T21:32:22 ││ .501865617Z: Created a new PodDisruptionBudget called \"redpanda\" in redpanda\n\n2024-04-01T21:32:22.522146873Z: Cre ││ ated a new ServiceAccount called \"id-rpcloud-9m4e2mr0ui3e8a215n4\" in redpanda\n\n2024-04-01T21:32:22.540660454Z: Cr ││ eated a new Secret called \"redpanda-sts-lifecycle\" in redpanda\n\n2024-04-01T21:32:22.557186641Z: Created a new Sec ││ ret called \"redpanda-config-watcher\" in redpanda\n\n2024-04-01T21:32:22.576038741Z: Created a new Secret called \"r ││ edpanda-configurator\" in redpanda\n\n2024-04-01T21:32:22.592036011Z: Created a new Secret called \"redpanda-fs-valid ││ ator\" in redpanda\n\n2024-04-01T21:32:22.610714711Z: Created a new ConfigMap called \"redpanda\" in redpanda\n\n2024 ││ -04-01T21:32:22.626412621Z: Created a new ConfigMap called \"redpanda-rpk\" in redpanda\n\n2024-04-01T21:32:22.648893 ││ 55Z: Created a new Service called \"redpanda\" in redpanda\n\n2024-04-01T21:32:22.778871216Z: warning: Upgrade \"redp ││ anda\" failed: failed to create resource: Service \"redpanda-external\" is invalid: spec.ports[4].nodePort: Invalid v │
│ alue: 30082: provided port is already allocated","type":"Warning","object":{"kind":"HelmRelease","namespace":"redpand │
│ a","name":"redpanda","uid":"9b7006ec-60b7-496b-b21c-0ee3064f8e6d","apiVersion":"helm.toolkit.fluxcd.io/v2beta2","reso │
│ urceVersion":"11709469"},"reason":"UpgradeFailed"}                                                                    │
│

What did you expect to happen?
If I can provide external ports, I expect the operator to honor them. Any hidden magic is highly undesired.
How can we reproduce it (as minimally and precisely as possible)?.
No response
Which are the affected charts?
Operator
Chart Version(s)

$ helm -n <redpanda-release-namespace> list
NAME             	NAMESPACE	REVISION	UPDATED                            	STATUS  	CHART          	APP VERSION
redpanda-operator	redpanda 	2       	2024-04-01 16:29:38.92053 -0400 EDT	deployed	operator-0.4.20	v2.1.15-23.3.7

Cloud provider

Azure

JIRA Link: K8S-129

I've re-wrapped the error messages from Camilo:
{
  "level": "debug",
  "ts": "2024-04-01T21:32:22.924Z",
  "logger": "events",
  "msg": "Helm upgrade failed for release redpanda/redpanda with chart<EMAIL_ADDRESS>failed to create resource: Service \"redpanda-external\" is invalid: spec.ports[4].nodePort: Invalid value: 30082: provided port is already allocated\n\nLast Helm logs:\n\n2024-04-01T21:32:22.501865617Z: Created a new PodDisruptionBudget called \"redpanda\" in redpanda\n\n2024-04-01T21:32:22.522146873Z: Created a new ServiceAccount called \"id-rpcloud-9m4e2mr0ui3e8a215n4\" in redpanda\n\n2024-04-01T21:32:22.540660454Z: Created a new Secret called \"redpanda-sts-lifecycle\" in redpanda\n\n2024-04-01T21:32:22.557186641Z: Created a new Secret called \"redpanda-config-watcher\" in redpanda\n\n2024-04-01T21:32:22.576038741Z: Created a new Secret called \"redpanda-configurator\" in redpanda\n\n2024-04-01T21:32:22.592036011Z: Created a new Secret called \"redpanda-fs-validator\" in redpanda\n\n2024-04-01T21:32:22.610714711Z: Created a new ConfigMap called \"redpanda\" in redpanda\n\n2024-04-01T21:32:22.626412621Z: Created a new ConfigMap called \"redpanda-rpk\" in redpanda\n\n2024-04-01T21:32:22.64889355Z: Created a new Service called \"redpanda\" in redpanda\n\n2024-04-01T21:32:22.778871216Z: warning: Upgrade \"redpanda\" failed: failed to create resource: Service \"redpanda-external\" is invalid: spec.ports[4].nodePort: Invalid value: 30082: provided port is already allocated",
  "type": "Warning",
  "object": {
    "kind": "HelmRelease",
    "namespace": "redpanda",
    "name": "redpanda",
    "uid": "9b7006ec-60b7-496b-b21c-0ee3064f8e6d",
    "apiVersion": "helm.toolkit.fluxcd.io/v2beta2",
    "resourceVersion": "11709469"
  },
  "reason": "UpgradeFailed"
}

Helm upgrade failed for release redpanda/redpanda with chart<EMAIL_ADDRESS>failed to create resource: Service "redpanda-external" is invalid: spec.ports[4].nodePort: Invalid value: 30082: provided port is already allocated

Last Helm logs:

2024-04-01T21:32:22.501865617Z: Created a new PodDisruptionBudget called "redpanda" in redpanda

2024-04-01T21:32:22.522146873Z: Created a new ServiceAccount called "id-rpcloud-9m4e2mr0ui3e8a215n4" in redpanda

2024-04-01T21:32:22.540660454Z: Created a new Secret called "redpanda-sts-lifecycle" in redpanda

2024-04-01T21:32:22.557186641Z: Created a new Secret called "redpanda-config-watcher" in redpanda

2024-04-01T21:32:22.576038741Z: Created a new Secret called "redpanda-configurator" in redpanda

2024-04-01T21:32:22.592036011Z: Created a new Secret called "redpanda-fs-validator" in redpanda

2024-04-01T21:32:22.610714711Z: Created a new ConfigMap called "redpanda" in redpanda

2024-04-01T21:32:22.626412621Z: Created a new ConfigMap called "redpanda-rpk" in redpanda

2024-04-01T21:32:22.64889355Z: Created a new Service called "redpanda" in redpanda

2024-04-01T21:32:22.778871216Z: warning: Upgrade "redpanda" failed: failed to create resource: Service "redpanda-external" is invalid: spec.ports[4].nodePort: Invalid value: 30082: provided port is already allocated

Interesting, I am seeing the same behavior
helm upgrade --install redpanda charts/redpanda -n redpanda --create-namespace --values 1124.yaml
Release "redpanda" does not exist. Installing it now.
Error: 1 error occurred:
	* Service "redpanda-external" is invalid: spec.ports[4].nodePort: Invalid value: 30082: provided port is already allocated

templating this shows the following
# Source: redpanda/templates/services.nodeport.yaml
apiVersion: v1
kind: Service
metadata:
  name: redpanda-external
  namespace: "redpanda"
  labels:
    app.kubernetes.io/component: redpanda
    app.kubernetes.io/instance: redpanda
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: redpanda
    helm.sh/chart: redpanda-5.7.37
spec:
  type: NodePort
  publishNotReadyAddresses: true
  externalTrafficPolicy: Local
  sessionAffinity: None
  ports:
    - name: admin-default
      protocol: TCP
      port: 9645
      nodePort: 31644
    - name: kafka-default
      protocol: TCP
      port: 9094
      nodePort: 31092
    - name: kafka-kafka-api
      protocol: TCP
      port: 30092
      nodePort: 30092
    - name: http-default
      protocol: TCP
      port: 8083
      nodePort: 30082
    - name: http-http-proxy
      protocol: TCP
      port: 30082
      nodePort: 30082
    - name: schema-default
      protocol: TCP
      port: 8084
      nodePort: 30081
    - name: schema-schema-registry
      protocol: TCP
      port: 30081
      nodePort: 30081
  selector:
    app.kubernetes.io/name: redpanda
    app.kubernetes.io/instance: "redpanda"
    app.kubernetes.io/component: redpanda-statefulset

I think the problem is that there is two entries with the same nodeport.
when i apply the above file only in a clean installation
k apply -f  a.yaml
The Service "redpanda-external" is invalid: spec.ports[4].nodePort: Invalid value: 30082: provided port is already allocated

so i think this is the problem.

To make this work i made the following changes to your values
  schemaRegistry:
    authenticationMethod: http_basic
    enabled: true
    external:
      default:
        advertisedPorts:
        - 30084

and
  http:
    authenticationMethod: http_basic
    enabled: true
    external:
      default:
        advertisedPorts:
        - 30083
        authenticationMethod: null
        port: 8083

I believe this is just input error and no "magic" on our end. Perhaps the port list is a bit confusing, its something we have wanted to change for a while now.

@alejandroEsc could we add some validation in that case? This feels like a pretty sharp edge.

Im not sure what we agreed to for this ticket, if the idea is to just shut off service creation to allow for this values file to write out to the internal redpanda.yaml (even though the external is not correct for k8s) then you can proceed by
  # -- Service allows you to manage the creation of an external kubernetes service object
  service:
    # -- Enabled if set to false will not create the external service type
    # You can still set your cluster with external access but not create the supporting service (NodePort/LoadBalander).
    # Set this to false if you rather manage your own service.
    enabled: false

if that is the case then we can close this ticket. Otherwise we can help with documentation. I am not convinced that additional validation would help this situation.

If you let me disable the operator 's default listeners, I'll be on my way. I don't need them but I need the ports, to keep them aligned with AWS's and GCP's.

If you let me disable the operator 's default listeners, I'll be on my way. I don't need them but I need the ports, to keep them aligned with AWS's and GCP's.

let's talk and see if we can figure out what you require, im not sure we can disable listeners, never tried.

@c4milo if you have problem configuring node ports please re-open this issue.


docs: Rewrite README

This is the first attempt on the new readme. Not looking to merge right now, just looking for feedback for the next iteration.
Given no major changes, the following will have to be done before we can merge:

[x] Modify the README to work with the readme_test (we will need to add some "invisible" code snippets -- e.g. import quilt --  to make the example code compile)
[x] Alias quilt ps to quilt show
[x] Check if we are allowed to use cloud provider logos (@ejj)
[x] Modify the Redis blueprint to export the constructor directly
[ ] Set up an examples repository with all the composed blueprints (e.g. MEAN and Django/Mongo) -- this can wait, if need be, and the README can just link to a specific blueprint repository instead.
[x] Make a page for CLI docs (or at least a "Coming soon" page)

@ejj or @kklin , I updated this and all the prereqs -- it's ready for review

LGTM don't have many comments beyond what @kklin already mentioned

@kklin and @ejj  addressed your comments. Thanks!


⚠ 366.ru has degraded performance

In 580d9de, 366.ru (https://366.ru) experienced degraded performance:

HTTP code: 200
Response time: 7101 ms

Resolved: 366.ru performance has improved in 650349b.


filter_contact_pair implementation missing in PhysicsHooksWithQuery

https://github.com/dimforge/bevy_rapier/blob/cfe28d1f1d324cf5fdbe62e1c3f05ac5e94189d0/src/physics/resources.rs#L314 is missing filter_contact_pair() proxy, which changes the behavior for () implementation.

Thanks for your report! This seems fixed now.
https://github.com/dimforge/bevy_rapier/blob/0110ee9a054664aa154ab3ffe27c348b07ffba57/src/pipeline/physics_hooks.rs#L109-L109


Enable custom completers to complete hashtable parameters

As currently implemented, the engine special cases completion for hashtables to provide completion for Format-*, Select-Object, Sort-Object etc. As soon as the token is AtCurly we call our internal method CompleteHashtableKey that only completes parameters for build in cmdlets.
However, this removes the possibility to write custom completers for
Get-Awesomeness -Settings @{ <tab> or Get-Awesomeness -Settings @{ ForeColor = <tab>
We shouldn't short circuit parameter completion when we are completing external cmdlets.
This applies to all PSVersions.

@MartinGC94 Do you have any thoughts about this?

One idea is to subclass CompletionResult and have a HashTableCompletionResult.
public class HashtableCompeletionResult : CompletionResult {
  public IList<CompletionResult> Values { get; }

  public HashtableCompeletionResult(string completionText, string listItemText, CompletionResultType resultType, string toolTip, IList<CompletionResult> values) : base(completionText, listItemText, resultType, toolTip){
      Values = values;
  }
}

If an implementer of IArgumentCompleter returns instances of these, it could be used to complete both the keys and the values of the hashtable.

I don't understand the design proposal. If we use the Colors parameter of Set-PSReadLineOption as an example, what would the values of completionText and Values be in these 2 scenarios: Set-PSReadLineOption -Colors @{Comman<Tab> and Set-PSReadLineOption -Colors @{Command = "Magent<Tab> (if it's unclear, the expected completions for the end user in this scenario would be "Command" and "Magenta").
Tbh I don't see much of a reason to extend CompletionResult, completion authors can already specify everything they need. The only thing we technically need is updating the completion code to run the relevant argument completer and provide whatever completions it returns as keys or values. Ideally though, we would also provide completion authors with a bit more context so it's easier for them to write completers. Here's how I would imagine a PS version of the "Colors" argument completer could look:
using namespace System
using namespace System.Management.Automation
{
    param
    (
        #region current parameters
        $commandName,
        $parameterName,
        $wordToComplete,
        $commandAst,
        $fakeBoundParameters,
        #endregion

        [bool] $IsKeyCompletion <# True if we are completing a hashtable key, otherwise false #>,
        [string] $KeyName <# Name of the key we are completing. Useful when completing values for a specific key. #> ,
        [hashtable] $KeyValuePairs <# Contains every key/value pair in the hashtable, except the pair that is currently being completed. #>
    )

    if ($IsKeyCompletion)
    {
        $ValidKeys = "Command", "Number" | Where-Object -FilterScript {$_ -notin $KeyValuePairs.Keys}
        foreach ($Key in $ValidKeys)
        {
            [CompletionResult]::new($Key, $Key, [CompletionResultType]::Property, $Key)
        }
        return
    }

    foreach ($Color in [Enum]::GetNames([ConsoleColor]))
    {
        [CompletionResult]::new($Color, $Color, [CompletionResultType]::Text, $Color)
    }
}

This is one way if we are ok with breaking the API.
I think this is an area where we can do better, potentially also giving advanced completers some control of cursor positioning.
Perhaps an IArgumentCompleter2 is the way to go, where we can tailor the interface to suit these scenarios.
My thinking was that completing a value in a hashtable is very similar to completing a parameter value, and that this can be recursive. @SeeminglyScience, I think you got the gist of it, that the engine code would look for the HashTableCompletionResult and complete that in a different way. This was supposing that we had to work within the existing API.
If we are considering a new API, We could have a method for completing a Hashvalue key and another (or a flag) to complete the value.
The word to complete could be some path in the object hierarchy to the think to complete (if the value of some key is another hashtable).
If we add a new API, having some sort of CompletionContext as a parameter, that can evolve in a versioned way, would allow us a way to pass more info to completers, and change things like cursor position without having to version the API per se.

For PowerShell script completers it shouldn't be a breaking change to add more parameters (you might recall this old thread: https://github.com/PowerShell/PowerShell/issues/15437#issuecomment-846577511 ).
I've never written an argument completer in C# but it sounds like a good idea to have a new ArgumenterCompleter with an extensible CompletionContext.


Add repo url in package.json

This lets people click on the repository link on npmjs.org

Thanks!


Improve docs of sigmoid cross entropy

This is PR for improving docs of functions/links. Related issue: #2182
Modified functions/links:

chainer/functions/loss/sigmoid_cross_entropy

Screen Shot 2017-10-14 at 18.21.02.pdf

screen_shot.pdf

Could you review this? (In travis CI, it seems that one test not relavant to this PR is failing.)

jenkins, test this please

LGTM!


Always include files that are in patterns

Before this change if a directory or file was in node_modules for
example the .prisma directory that gets created by prisma but not marked
as a dep or peer dep it would be removed.
Adding this directory to patterns did not include it in the artifact.
This change seeks to always include files that are present in patterns.

Hi @BenJanecke thank you for the PR, I'd like to test it, so it would take time to pick it.
I'm wondering if you would generate .prisma outside node_modules, would it include it?

Hi @floydspace yes this is possible by passing a generated path.
However I think this change will be useful to people that want to include other modules in node_modules that might not be set up correctly i.e. not marked correctly as peer-dependencies.
The proper fix of course would be adding the packages as strong dependencies but this would be very useful as a stop gap.
Also there are other libraries that put their generated code in node_modules that could also benefit from this

@BenJanecke yes, it makes sense. I will test it as soon as I'm able to focus on it. thank you


Special patterns of inequality constraint to penalty converters

Summary
Resolves #40. For details about previous discussion, see #98
Details and comments
Owned by Amano-san and me
A Tutorial on Formulating and Using QUBO Models introduces examples of the special patterns in page 10 as follows.

As I mentioned in https://github.com/Qiskit/qiskit-optimization/pull/157#discussion_r647283071, the following cases can be generalized not only two terms but also n terms.

\sum_i^n x_i <= 1 ⇨ λ [\sum_{i, j : i < j} x_i x_j]
\sum_i^n x_i >= n-1 ⇨ λ [\sum_{i, j : i < j} (1 - x_i) (1 - x_j)]

The title contains "WIP" and the status is a draft. Is it not ready for review yet?

@t-imamichi
We are going to add these constraints into existing code:

x >= y
\sum_i^n x_i <= 1 ⇨ λ [\sum_{i, j : i < j} x_i x_j]
\sum_i^n x_i >= n-1 ⇨ λ [\sum_{i, j : i < j} (1 - x_i) (1 - x_j)]

After these implementation, WIP will removed and then ask for review.

Thank you for your cooperation. Feel free to reach out to me if you need any help.

@t-imamichi
we completed to implement your suggestion. Now ready for review.

Could you write a release note following https://github.com/Qiskit/qiskit-optimization/blob/main/CONTRIBUTING.md#changelog-generation ?

FYI: I suggest to combine _is_special_constraint and _conversion_matrix, for example, _conversion_matrix returns a flag matched in addition to the existing conv_matrix. It is hard to read this code because the patten matching and conversion table generation are separated.
But, as far as it works correctly, you don't have to revise it. We can simplify the code in the future if necessary.

I found that _auto_define_penalty is designed only for binary variables. But this converter is invoked before int2bin. So, _auto_define_penalty should consider the lower bounds and upper bounds of variables. Unit tests with integer variables and continuous variables are required as well.
In the following example, the penalty coeff of x * y is too small compared with the upper bound of z.
from qiskit_optimization.problems import QuadraticProgram
from qiskit_optimization.converters import LinearInequalityToPenalty
qp = QuadraticProgram()
qp.binary_var('x')
qp.binary_var('y')
qp.integer_var(0, 100, 'z')
qp.linear_constraint({'x': 1, 'y': 1}, '<=',1)
qp.minimize(linear={'z': 1})
print('before')
print(qp.export_as_lp_string())
lip = LinearInequalityToPenalty()
qp2 = lip.convert(qp)
print()
print('after')
print(qp2.export_as_lp_string())

before
\ This file has been generated by DOcplex
\ ENCODING=ISO-8859-1
\Problem name: CPLEX
Minimize
 obj: z
Subject To
 c0: x + y <= 1
Bounds
 0 <= x <= 1
 0 <= y <= 1
       z <= 100
Binaries
 x y
Generals
 z
End
after
\ This file has been generated by DOcplex
\ ENCODING=ISO-8859-1
\Problem name: CPLEX
Minimize
 obj: z + [ 4 x*y ]/2
Subject To
Bounds
 0 <= x <= 1
 0 <= y <= 1
       z <= 100
Binaries
 x y
Generals
 z
End

_auto_define_penalty for bounded continuous variables and integer variables might be tricky. I'm preparing #169 for your reference.

d847358 computes the penalty of x**2 with x \in {-2, -1, 0, 1} as 7. Isn't it too much? x**2 \in [0, 4]. I think the code expects UB+1, i.e., 5.
from qiskit_optimization.problems import QuadraticProgram
from qiskit_optimization.converters import LinearInequalityToPenalty

qp = QuadraticProgram()
qp.integer_var(lowerbound=-2, upperbound=1, name='x')
qp.minimize(quadratic={('x', 'x'): 1})
lip = LinearInequalityToPenalty()
print(lip._auto_define_penalty(qp))  # -> 7.0

Could you make a new file, e.g., test_linear_inequality_to_penalty.py, and move your unit tests in test_converters to the new file? I'm going to decompose test_converters.py in the new future.

Done! waiting for #185 to be merged.

Thanks. Please check my comment that is not yet resolved. https://github.com/Qiskit/qiskit-optimization/pull/157#discussion_r654215176

Could you add this case as a unit test? https://github.com/Qiskit/qiskit-optimization/pull/157#issuecomment-869566530

We think we have fixed points that Imamichi-san mentioned. Please review again.

Thank you! I have just merged #169 to simplify the auto_penalty. I will simplify this PR using it.


VMProtect 3.6 (Build 1406) Anti-debug ——TitanHide

I actually discovered this method back in April via DEMO
But in June China leaked VMP3.6, so I'm posting this method

I confirm this bug, but in my case packer each time loads a different number in variable. If the program is executed under TH, then the value of the variable is overwritten after the NtQueryInformationProcess.


angular2?

We also have HAL APIs, and use angular, but we're upgrading now to Angular2.
Have you thought about, or done any work in that direction yet?

Hi Andrew, I agree that angular-hypermedia should support Angular 2. However, I have not yet looked at it. Is this something you would consider working (together) on?

Any updates on Angular 2? Are you still looking for help?

I finally have a project that requires an Angular 2 hypermedia client. I think I am going to create a new project, though, as supporting Angular 1 and 2 at the same time looks difficult. @ravindranathakila have you looked into what would be needed?

Sorry, I haven't. Exploring further, I was wondering if they really need to be coupled at all. I discovered Traversion which is gathering momentum. What are your thoughts?
https://github.com/basti1302/traverson/blob/master/readme.markdown

I read up on Traversion before I started this project. Some features of this projects (i.e. why I did not just use Traversion):

An explicit context for caching resources.
An API that (in my opinion) better reflects the state-based nature of REST. I.e. you first instantiate a resource, and then decide to GET the state; you first follow a link and then decide to POST to it, etc. (Traversion always starts with getting a root resource, for example.)
Support for relations in properties, Link headers and HAL links.
A nice API for efficient loading "resource trees" ($loadPaths).
An extension for offline-first application. (This works, but was never fleshed out as well as this project.)

On the other hand, Traversion is much more widely used, so if it suits your needs, great!

I haven't decided yet :)
You make some very good points!!


    Added comma for better readability.

New updates on head repo.
https://github.com/vuejs/docs/commit/93172b96f6f7a45b4992bd665704b68c48b7c30e

resolved with 66ee2bcf7dafaff1d4f2d5c466f8ee5eeb3b65d7


[#96562016] Create some basic smoke tests

#96562016 Create some basic smoke tests
Context
This PR prepares the jenkins server and setups the jobs to run the smoke tests implemented in the related tsuru-ansible PR
How this PR should be reviewed

If this tsuru-ansible PR is not merged, you must revert this commit to point the jobs to the tsuru-testing branch.

Bring up a vagrant jenkins as described in README.md. make vagrant-up uses DEPLOY_ENV=development by default, but if you want point it to your own tsuru environment with DEPLOY_ENV=env-name vagrant up. To reprovision ansible: DEPLOY_ENV=env-name vagrant provision.

Connect to jenkins on vagrant and run a the jobs.

How is this PR implemented?
In order to implement this logic, we have:

Added a new galaxy role rvm_io.rvm1-ruby which installs RVM, in order to install and switch the required version of ruby: 2.2.2
We install the tsuru client on the server.
Added new credentials to the vault for the tsuru platform.
Added the job definitions to run the tests on both platforms: aws and gce

Who should review this PR
Anybody in the team except @saliceti or @keymon

How do you handle tsuru concurrency?

when you merge tsuru-terraform, jenkins runs that job
which in turn triggers two concurrent ansible jobs (GCE and AWS)
which would trigger two concurrent smoketest jobs

But tsuru client can be logged only into one environment at a time. So it would happen that the second job would simply log in to second environment and break the 1st one... The login information (token and the selected target) are stored in the home directory. I am not sure if you can change that while running in ruby and what all it would affect...

@mtekel Yes, that is the idea of the temp homedirs. The tests can run in parallel if they point to different target platforms. Not so true for the same target, as the target keeps some state. Maybe we can workaround it and allow concurrency by randomising the name of the different resources: app, db instance, etc. But, that is for a different PR ;)
Other problem with this PR is that it can happen that the smoke tests run at the same time than ansible or terraform, which can make the test file. We need to use a jenkins lock plugin for this, but again we decided do it in a different PR if it really causes trouble.

Updated the repo to use make to run the tests, instead of calling rake directly

Works fine.


Dockerhub image for phantomjs

Hi,
Want to check if there is a docker image/Dockerfile for phantomjs which is officially supported? I could not find one under dockerhub official images https://hub.docker.com/explore/
If not, want to check if there is any plan to add an official phantomjs image to dockerhub? https://docs.docker.com/docker-hub/official_repos/#how-do-i-create-a-new-official-repository

Which version of PhantomJS are you using? Tip: run phantomjs --version.

What steps will reproduce the problem?

Which operating system are you using?

Did you use binary PhantomJS or did you compile it from source?

Please provide any additional information below.

Since the Linux binary is nearly self-container and dependency-free, it's an overkill to create a dedicated Docker image for that. It is very easy to add one line that does wget or curl the binary and extract it, ready to be use, to any standard Dockerfile.
Feel free to share some tricks on using PhantomJS with Docker and we'll be sure to share it with other PhantomJS users.
We will close this for now. Let's reopen it if we revisit the subject in the near future.


Specific train / test split used for the published trained model

First off, many thanks for publishing the model and code together with your paper, it is much appreciated.
I'm currently trying to reproduce the results published in https://www.nature.com/articles/s41598-022-11210-y. For this I would need the specific split of the whole MASS SS2 dataset into training and test that was used for training the published model. In your paper you list various statistical properties of the two sets, and the code in scripts/create_data_splits.py shows how to create random splits that fulfil these criteria, but as far as I can see the specific split used for training the published model is not documented. Could you publish this information (or point me to its location if it's already published), i.e. which specific segments of MASS SS2 were used for training and which segments were used for testing?
Also pinging @n-grieger directly as they're the one having answered the previous issues but don't seem to be a member of this repo.

Hi @aplzr, unfortunately, I'm not entirely sure about the data split either, since it wasn't written down anywhere. However, I did find files on our server with the data split shown below. Please take this information with a grain of salt, as I haven't tested if this is indeed the split used in the paper.
 I will then incorporate this information into the repo :+1:

Hi @n-grieger, thanks for the quick response and the detective work. Let's see how far I can get with his 🙂

Hi @n-grieger, it took me a moment until I had the time to pursue this further, but now I have some results. I tested the published model on the test set from your comment above.
Published results from your paper

My reproduction of these results using the test set from your split

Comparing the orange line in the left panel of your results with the blue line in my plot and the orange line in the right panel of your results with the orange line in mine, I'd say the shapes are identical. Initially I thought that my lines were very slightly shifted towards lower values compared to yours, but on closer inspection that doesn't actually seem to be the case. It's impossible to say for certain whether they match by only comparing visually, but I'd say we're reasonably close in any case.
This still doesn't necessarily mean that the split from your comment above was the one used to train and test the published model, but I'd say there's a pretty high likelihood that it was 🙂

Hi @aplzr, great work! Thank you for testing the split. Based on your results, it looks like this was indeed the split used in the study. And even if it is not, it looks like the split at least produces results very similar to those reported in the paper. I will include information about the split in the README.md.

My pleasure, and thanks again for your assistance.


Can just save the url from images

Can just save the url from images ? Dont donwload.

Hello, I would like to solve this issue. Can you be more specific about what the problem is?

@dariodipa @Beastjdhr this was added in #169
Closing this issue.


Top-Left Most Arrow Doesn't Expand sidebar

Hey,
Great extension, really appreciate you making this.
I noticed the top left arrow will not actually expand the sidebar for me.  This means I can no longer add/remove calendars.  When I clicked the arrow it rotated then disappeared, and now it will not come back. =/
Before

After

Hiya! That arrow doesn't expand the sidebar, it expands or collapses your all-day events.
I've completely nuked the sidebar! 💥
Closing, as this is technically working as intended :)

Fair enough.  In my browsing of it, I discovered the sidebar does still exist, kindof.  I can hover some grey squares near there and actually disable or enable a few of my calendars.  Obviously NBD since you don't want it there in the first place. Thanks again for the extension, I can just disable it if I need that functionality.

(I'll work on trying to add the sidebar back!)


Removal of unused config options in RS

removal of  'resourceServerId',  'rsAdmin' as
grep -rnw src/ -e 'resourceServerId',
grep -rnw src/ -e 'rsAdmin' yields no result
removal of 'serverMode' in constants as its not used anywhere
and subsequently the config option.

hey @karun-singh , can you remove these options in CI config and re-test - serverMode, resourceServerId options in authentication verticle, resourceServerId  in archives.database verticle and rsAdmin in apiserver verticle?

retest this please


Allowing declaration of several flavors with different packages at patrol section of pubspec.yaml

This new feature-request is а result of discussion #1009.

So far we can specify a different flavor for Android and iOS, but if there are several flavors for one platform their separate declaration is not possible.

I have 3 flavors for an app that I have to run test on. My use case is to have them all declared at the pubspec.yaml file's patrol section, because for each of them the packages are different (their names are added different suffix depending on the flavor). In my case package_names are the same as the bundle_ids.
Here is my example:
#patrol section if SIT flavor is used
patrol:
  app_name: App Mobile
  android:
    package_name: bg.examplecompany.exampleapp.sit
  ios:
    bundle_id: bg.examplecompany.exampleapp.sit

#patrol section if UAT flavor is used
patrol:
  app_name: App Mobile
  android:
    package_name: bg.examplecompany.exampleapp.uat
  ios:
    bundle_id: bg.examplecompany.exampleapp.uat

The third flavor packages are formulated the same way. Having patrol section with all flavors declared with their specific package_name/bundle_id will enable running automatically the tests for each flavor without the need of manually changing the package_name/bundle_id every time at the pubspec.yaml.

The scope of the new feature-request can be extended with the following related improvement: It will be very useful if when running patrol test --target .... --flavor sit user can have the possibility to parse the arguments especially the flavor one. In my case I want my tests automatically to get that flavor argument and to use it to build the correct main.dart file according to the declared flavor in the command line since in my app I have main_sit.dart, main_dev.dart and main_dev.dart. The argument can be used also to define the correct package_name/bundle_id but if the multiple declaration(mentioned at the top) is allowed at the pubspec.yaml file's patrol section the latter usage will be redundant. That  improvement will be in favor of CI/CD implementation when having apps with several flavors with different package_names for each of them.

I think you can work around this with a simple shell script, lets' name it `patrol_test:
#/usr/bin/env bash
set -euo pipefail

flavor="${1:-}"
if [ -z "$flavor" ]; then
  echo "error: not given flavor"
  exit 1
fi

flavor_lowercase=$(echo "$flavor" | tr '[:upper:]' '[:lower:]')
package_name="bg.examplecompany.exampleapp.$flavor_lowercase"
bundle_id="com.examplecompany.exampleapp.$flavor_lowercase"

echo "flavor: $flavor"
echo "package_name: $package_name"
echo "bundle_id: $bundle_id"

exec patrol test \
    --flavor "$flavor" \
    --package-name "$package_name" \
    --bundle-id "$bundle_id"

LMK if this works for you.
Your request seems a bit niche and we probably won't implement this directly in patrol_cli.


Should we define a maximum line length?

We've touched on this before and I'm going to open an issue regarding this. I see documentation going up to 110-120 characters, whereas the code mostly exists till 80 characters (I'm talking about DisplayObject.js).
Should we define a maximum line length? According to Google's JavaScript guide, it should be 80 columns per line, which I prefer.
If defined, we can use ESLint to enforce this.

I htink that current length is fine.
https://github.com/pixijs/pixi.js/blob/dev/.eslintrc.json#L165

Okay, you guys have big monitors that means.


[Features] - Enroll the VM in Intune

Describe the feature end to end, including deployment scenario details under which the feature would occur.
Hello,
I appreciate you code. thank you for that.
When you create in the portal Azure a VM to the Host Pool,  It's possible to enroll the VM in Intune.
Could you add feature in you code please ?
Best Regards
Why is this feature important. Describe why this would be important for your organization and others. Would this impact similar orgs in the same way?
If the VM is enroll in Intune, you can push the policies, Push Update Microsoft, etc.
Please provide the correlation id associated with your error or bug.
there are not error, it's feature
Can you describe any alternatives that you have taken since this feature does not exist?
No response
Feature Implementation
No response

@swathibhat1

@boujrafh thanks for your feedback.
The option to enroll into intune is available in the portal UI:

And in the Bicep code:
https://github.com/Azure/avdaccelerator/tree/main/workload/bicep/deploy-baseline.bicep
@sys.description('Required, Enroll session hosts on Intune. (Default: false)')
param createIntuneEnrollment bool = false


A very recent version of glibc (2.38) is required

Hey, thanks for sharing your repack. I tried using your AppImage with Ubuntu 22.04, which ships with glibc 2.35. It would be great if you could depend on a glibc version that ships with Ubuntu's latest LTS.
Here are the logs:
./Notion-2.2.1-1-x86_64.AppImage
[1026/140555.560961:ERROR:file_io_posix.cc(152)] open /home/steven/.config/Notion/Crashpad/pending/0c670aed-1831-4ca0-a712-40e0d45b3778.lock: File exists (17)
14:05:55.754 (AutoUpdater) › Checking for update
14:05:55.762               › App starting with version 2.2.1 { system: 'linux x64', electron: '26.2.4' }
14:05:56.015 (AutoUpdater) › Error: Error: ENOENT: no such file or directory, open '/tmp/.mount_NotionQTk1Ho/resources/app-update.yml'
14:05:56.017 (AssetCache)  › Error reading and parsing JSON {
  error: "Error: ENOENT: no such file or directory, open '/home/steven/.config/Notion/notionAssetCache-v2/latestVersion.json'",
  absolutePath: '/home/steven/.config/Notion/notionAssetCache-v2/latestVersion.json'
}
14:05:56.020               › {
  os: 'unknown',
  platform: 'electron',
  desktopVersion: '2.2.1',
  desktopCPU: '12th Gen Intel(R) Core(TM) i9-12900K',
  desktopRAM: '31G',
  environment: 'production',
  level: 'error',
  from: 'AssetCache',
  type: 'failedToReadDir',
  error: {
    name: 'Error',
    message: "ENOENT: no such file or directory, scandir '/home/steven/.config/Notion/notionAssetCache-v2'",
    stack: "Error: ENOENT: no such file or directory, scandir '/home/steven/.config/Notion/notionAssetCache-v2'",
    miscDataString: '{"dirPath":"/home/steven/.config/Notion/notionAssetCache-v2"}'
  }
}
14:05:56.070 (Sqlite)      › Child process running on 36159
14:05:56.215                 › App is visible: true
14:05:56.352 (Sqlite)        › stderr: /tmp/.mount_NotionQTk1Ho/resources/app.asar/node_modules/bindings/bindings.js:121
        throw e;
        ^

Error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /tmp/.org.chromium.Chromium.5sYVvR)
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:2131)
    at Object.<anonymous> (node:internal/modules/cjs/loader:1356:18)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2358)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
    at Module.require (node:internal/modules/cjs/loader:1150:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at bindings (/tmp/.mount_NotionQTk1Ho/resources/app.asar/node_modules/bindings/bindings.js:112:48)
    at new Database (/tmp/.mount_NotionQTk1Ho/resources/app.asar/node_modules/better-sqlite3/lib/database.js:48:64) {
  code: 'ERR_DLOPEN_FAILED'
}

Please try the latest release and let me know if it works for you! (At least works for me:tm:)


error[E0658]: use of unstable library feature 'stdsimd'

When compile make for  Building and Running an Oasis node in Unsafe non-SGX environment, following error occured:
*** Building Rust tools...

*** Building runtime: keymanager-runtime...
   Compiling ring v0.14.5 (https://github.com/akash-fortanix/ring?branch=sgx-target#5b5b3792)
error[E0658]: use of unstable library feature 'stdsimd'
  --> /home/yili/.cargo/git/checkouts/ring-26508f16fbb8e51e/5b5b379/src/cpu.rs:57:24
   |
57 |                     if is_x86_feature_detected!("mmx") {
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/27731
   = help: add `#![feature(stdsimd)]` to the crate attributes to enable
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `ring`.

To learn more, run the command again with --verbose.
Makefile:22: recipe for target 'build-runtimes' failed
make: *** [build-runtimes] Error 1

Is there a detailed solution?

Could be a problem with the latest unstable Rust toolchain, try an earlier nightly version, 2019-08-26 is known to work.

thanks for your reply, and a new issue occured:
make[1]: Entering directory '/data1/yili/oasis-core-master/go'
Building oasis-node...
env: 'go1.13': No such file or directory
Makefile:24: recipe for target 'oasis-node' failed
make[1]: Leaving directory '/data1/yili/oasis-core-master/go'
Makefile:36: recipe for target 'build-go' failed

and I install  go  environment, go version is 1.13.7
do you know how to solve it?

The "ancient" version of the nightly compiler that works has horrific security bugs, so this needs to be fixed sooner rather than later.
https://github.com/rust-lang/rust/pull/69040


Style update for REST API docs intro

What feature or product is affected?
REST API reference docs
Expected changes
Let's condense the sentences in the "About APIs" page into one paragraph.  A reviewer noted it looks awkward as three one-sentence paragraphs.

How about converting:
There are two stable versions of the GitHub API: the REST API and the GraphQL API.
When using the REST API, we encourage you to request v3 via the Accept header.
For information on using the GraphQL API, see the v4 docs.

to
You can use the stable GitHub API via:

GraphQL API
REST API where we encourage you to request v3 via the Accept header.

I'll make a PR if it helps :)

Thanks @pr0PM 💝  Feel free to open an PR!


Add more connection options to the live socket on open.

closes #175 , will require us to cut a new release.

notably this will also break Kotlin. Having connection opt object without sane defaults should prevent future breaks though.

notably this will also break Kotlin. Having connection opt object without sane defaults should prevent future breaks though.

The jetpack client doesn't use the networking parts yet though so your good there.
Also, bump the version in the Cargo.toml, Package.swift and gradle.build.kt


[ENG-4291] Added the Dam registries to the registries landing page

Ticket: ENG-4291
Feature flag: n/a

Purpose
Add the dam registries logo to the registries splash page
Summary of Changes
Added a logo
Screenshot(s)

Side Effects
Moved the metascience logo down a row
QA Notes
Verify the new logo, link and hover text

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 71.842%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5575

Relevant Lines:
7545

💛  - Coveralls


⚠ Bofrost.lu has degraded performance

In 4ce567c, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1940 ms

Resolved: Bofrost.lu performance has improved in 7b57892 after 49 minutes.


Add LDAP auth integration resource

This is essentially the same behavior as #91 that added Active Directory
integration. LDAP auth has a different object type but this attempts to
reuse the same method as much as possible
It seems logical to refactor the AD resource to follow a naming
convention such as sensu_auth_*, since multiple external auth provider
types are supported by sensu. However, I purposefully limited the
changes made the the active_directory resources in this change and did
not rename them.
Note the ldap server property callback here is the same as that used in
the sensu_asset resource

Pull Request Checklist
Is this in reference to an existing issue?
Yes, #81
General

[X] Update Changelog following the conventions laid out here

[X] Update README with any necessary configuration snippets

[X] Cookstyle (rubocop) passes

[ ] Foodcritic passes

[X] Rspec (unit tests) passes

[X] Inspec (integration tests) passes

New Features

[X] Added a Testing Artifact as either an automated test or a manual artifact on the PR.

[X] Added documentation for it to the README.md

Purpose
Add support for configuration of an external LDAP auth provider
Known Compatibility Issues
None

Resolve conflicts


TLSWG - FCS_TLSS_EXT.3.2

mclearn comment for FCS_TLSS_EXT.3.2 in TLSWG branch.
"This element is redundant with FCS_TLSS_EXT.3.1."
Originally posted by @mclearn in https://github.com/ND-iTC/Documents/pull/12#r736801137

@mclearn John Hall will rewrite the SFRs into one and share with the group.

Combined this issue with issue #17 since they are related.


[ssl] Fix SSL stack to handle large handshake messages whose length exceeds the BIO buffer size.

There is a bug in the SSL stack that was only partially fixed in #29176: if more than 17kb is written to the BIO buffer, then everything over 17kb will be discarded, and the SSL handshake will fail with a bad record mac error or hang if not enough bytes have arrived yet.
It's relatively uncommon to hit this bug, because the TLS handshake messages need to be much larger than normal for you to have a chance of hitting this bug. However, there was a separate bug in the SSL stack (recently fixed in #33558) that causes the ServerHello produced by a gRPC-C++ TLS server to grow linearly in size with the size of the trust bundle; these 2 bugs combined to cause a large number of TLS handshake failures for gRPC-C++ clients talking to gRPC-C++ servers when the server had a large trust bundle.
This PR fixes the bug by ensuring that all bytes are successfully written to the BIO buffer. An initial quick fix for this bug was planned in #33611, but abandoned because we were worried about temporarily doubling the memory footprint of all SSL channels.
The complexity in this PR is mostly in the test: it is fairly tricky to force gRPC-C++'s SSL stack to generate a sufficiently large ServerHello to trigger this bug.

@zeromath Could you also take a quick look at this PR?

LGTM!
(I didn't find a button for this, maybe it's because I don't have the permission to do so.)

@markdroth Friendly ping. :)

Thanks all for the reviews!


error with julia new type system

on julia 0.6, after JuliaLang/julia#18457, I get the following error
ERROR: LoadError: LoadError: ArgumentError: method definition for Type at /home/carlo/.julia/v0.6/DataStructures/src/hash_dict.jl:72 has free type variables
Stacktrace:
 [1] include_from_node1(::String) at ./loading.jl:532
 [2] include(::String) at ./sysimg.jl:14
 [3] include_from_node1(::String) at ./loading.jl:532
 [4] include(::String) at ./sysimg.jl:14
 [5] anonymous at ./<missing>:2
while loading /home/carlo/.julia/v0.6/DataStructures/src/hash_dict.jl, in expression starting on line 72
while loading /home/carlo/.julia/v0.6/DataStructures/src/DataStructures.jl, in expression starting on line 70

And here is the culprit
HashDict{V}(kv::Tuple{Vararg{Pair{TypeVar(:K),V}}}) = HashDict{Any,V}(kv)

Thanks for the report. HashDict is about to be removed in #252, so this should hopefully be resolved then.

same problem on that branch for OrderedDict:
cdERROR: LoadError: LoadError: ArgumentError: method definition for Type at /home/carlo/.julia/v0.6/DataStructures/src/ordered_dict.jl:62 has free type variables
Stacktrace:
 [1] include_from_node1(::String) at ./loading.jl:532
 [2] include(::String) at ./sysimg.jl:14
 [3] include_from_node1(::String) at ./loading.jl:532
 [4] include(::String) at ./sysimg.jl:14
 [5] anonymous at ./<missing>:2
while loading /home/carlo/.julia/v0.6/DataStructures/src/ordered_dict.jl, in expression starting on line 62

See the Dict constructors in Base for how to rewrite these. e.g.
Dict{V  }(ps::(Pair{K,V} where K)...,) = Dict{Any,V}(ps)

Ok. I assume test syntax doesn't parse on earlier versions of Julia, so these changes will have to be v0.6 only?

Fixed by #257.  (Needs to be tagged.)

Yep, a tag would be great.

Tagged


Improve Bridge Selection

@tladesignz We have screens for the full workflows of using customs bridges and getting a bridge from Tor. I think there are some additional considerations based on our recent conversations in #39. I'll review and provide a design update and the full UI.

Yes. Here are some additional things I was thinking about, since I started to work on this already and compare it with what we currently have:

Error states: The CAPTCHA is loaded from somewhere. Network errors happen frequently. What to do then? Currently, we're showing alerts.
CAPTCHA reload: Users might have to trigger a reload, because the generated CAPTCHA is unreadable to them.
What's with Snowflake with AMP rendezvous? This is a different way of how the rendezvous is done (via Google AMP cache instead of domain fronting). This might be helpful, in case e.g. a censor blocks access to the current front domain completely (currently fastly.net AFAIR) or they find a different way to block more granular. Cannot be really automated, though, besides just adding it to the smart connect rotation of things to try. Why do we drop that offer?
Regarding custom bridges:

Currently, we provide information and a copy-to-clipboard feature, on where they could get bridges (https://bridges.torproject.org). Why do we now stop teaching users about it?
Currently, users can also use screenshots of QR codes. Why do we stop offer that feature?
There's also a feature to request bridges via mail. Why do we drop this feature?

Here's a video walkthrough of the design for manual bridge options in Orbot. I've removed 'smart connect' from the list of options. However, the notes expressed above may not be considered. Also, please note — there is no concept of managing custom bridges in Orbot Android right now.
https://user-images.githubusercontent.com/1434597/212167667-1a4d5871-c4a9-425b-8666-a538a232041d.mp4

Another question: What's with the built-in Obfs4 bridges? These aren't very helpful, when it comes to censorship circumvention of nation-state players, because they're mostly blocked in these counries. But when it comes to libraries and companies, which just do Deep-Packet-Inspection and block plain Tor traffic, they're pretty helpful, because they're high-bandwidth.

Another error state:
Scanning might not initialize, because the user didn't grant camera access, or due to parental controls.
What to show then instead?
Please provide any placeholder images (SVG!) and text wording.
Hint: We could send them to the area of the Orbot app inside the Settings app, where users can change their opinion about if they want to grant camera access...

Re CAPTCHA: These do not load instantly. Currently we show a modal spinner. User's can only go back, nothing else. All other elements are greyed out. Any changes?

There's now also a Telegram bot: https://tb-manual.torproject.org/bridges/

I made a screencast from the simulator which shows, what I implemented until now.
Note:

I re-added the features which you dropped, but I think are necessary to maximize utility for our users. Some of them who are also power users. Some of them live in very constrained environments and don't have knowledgable friends, so we should offer them every opportunity to get a bridge. (Like via email or Telegram.)

Can't show you the email flow, as the simulator doesn't support that. What happens is just, that a "new email" scene opens with a prefilled email. If you send the mail (or store it), Orbot bumps you to the custom bridges scene, where the user should copy-paste the bridge strings, which they then hopefully receive via mail.

Similar for Telegram: The browser in the demo shows an error, but if the Telegram app is installed, it should actually open a conversation with the bot.

Obfs4 bridges almost always come in bunches. So: plural.

The size you see here is iPhone SE 1st gen. The smallest device we need to support. Stuff needs to fit on there. The video appears pretty big, but understand, that the physical device size is somewhere between 1.25 - 4 times smaller than what you see (depends on your monitor setup): Device resolution is 326 pixel-per-inch!

Work left for you, @cstiens:

Refine wording. (I made some texts up on the fly. Please improve!)
Sort items.
Improve UX of error states?
We should explicitly hint about https://bridges.torproject.org to make users understand where this is from, or where friends in another country can go and send them a screenshot from.

Work left for me:

The Captcha will get a refresh button.

https://user-images.githubusercontent.com/117089/213176117-613f162c-f4fe-41e8-83a6-37a73af27465.mp4

I re-added the features which you dropped, but I think are necessary to maximize utility for our users. Some of them who are also power users. Some of them live in very constrained environments and don't have knowledgable friends, so we should offer them every opportunity to get a bridge. (Like via email or Telegram.)

I agree with this mentality and approach. I have a couple of things to note:
We had removed email due to the understanding that entering a captcha to request the bridges would give you the same type of information. ie. If you're requesting a bridge from Tor, you will get the same bridge lines if you get them directly from the app via captcha or if you request them over email. @tladesignz Is that correct?
If they are the same, perhaps we benefit the user by simplifying their choices to present the safer option only (ie. captcha). Open to thoughts. If they are different, please tell me how and I can help with the subtext language.
I love the addition of Telegram! It is useful for people discovering the Telegram bot. Previously the thinking was that you would receive from Telegram, then copy/paste in. I like having this approach as well. 👍👍👍

Work left for you, @cstiens:

Noted.

Sort items.

@tladesignz What do you mean here?
Last question. What is Snowflake (AMP rendezvous)?
How does the interaction by the user differ from regular Snowflake? Why would they choose it instead of Snowflake?

We had removed email due to the understanding that entering a captcha to request the bridges would give you the same type of information. ie. If you're requesting a bridge from Tor, you will get the same bridge lines if you get them directly from the app via captcha or if you request them over email. @tladesignz Is that correct? If they are the same, perhaps we benefit the user by simplifying their choices to present the safer option only (ie. captcha). Open to thoughts. If they are different, please tell me how and I can help with the subtext language.

They give you the same type of information. But not necessarily the same information. You probably get different Obfs4 bridges. Same with the Telegram bot. It's not about different information, though, but about different ways of reaching the user.
The  rdsys (formerly MOAT) interface ("Get bridges from Tor") is a HTTP API. It is secured via a technique called "domain fronting", meaning, if a censor wants to block access, they need to block access for a lot of other things at the same time. (That's why it's also termed "collateral freedom".)
However, the providers used for this are getting smaller and smaller, because the really big ones like Google, Amazon and Microsoft started banning and blocking this technique.
So, it becomes more and more viable to actually block all access. But when this happens, access via email may still be possible.
Same goes for the Telegram bot. That one does give you the same type of information, too. Just via another channel which is hard - and very differently hard - to block.

I love the addition of Telegram! It is useful for people discovering the Telegram bot. Previously the thinking was that you would receive from Telegram, then copy/paste in. I like having this approach as well. 👍👍👍

Sure, that's what you need to do: copy and paste. But people need to actually know about it. And then find it. I don't see a reason why we shouldn't help with that.

Sort items.

@tladesignz What do you mean here?

Maybe you want to change the order of things in the list? That's what I meant.

Last question. What is Snowflake (AMP rendezvous)? How does the interaction by the user differ from regular Snowflake? Why would they choose it instead of Snowflake?

In Snowflake, the actual connections between you and the first Tor node are routed via a volunteer's computer. But to find a volunteer, there's a broker server. You need to talk to that one first, and the broker will find a volunteer for you. Again, domain fronting is used to tunnel through a censor's firewall. (See above.)
But there's another option to reach the broker server: Google AMP cache. When the Fastly domain front (currently used) gets blocked, you might still be able to reach the Google AMP cache and use Snowflake this way.
We might consider adding that to the list of things to try in smart connect, btw.
We cannot tell Snowflake to automatically switch over on its own, however. The Snowflake client code needs to get restarted with a different configuration. It cannot use both at the same time. That's why we need to offer it for manual configuration. The very constrained users (and the folks who like to play a lot) should be able to try every means possible. And it's also good, when people distribute themselves.

@tladesignz I took a pass at the order and copy. See below. After going through this, I so badly want to group things and nest options. But... in order to try to keep it simple and get this pushed, this works. The method for ordering is based on a combination of what's easy to get and most likely to work (ie. what are currently more resilient bridges). ... Acknowledging that that's a tough call to make and is likely to change.
Direct Connection
The best way to connect to Tor. Use if Tor is not blocked.
Snowflake (original)
Connects through Tor volunteers. Gets around some Tor blocking.
Snowflake (AMP)
Connects through Tor volunteers. But uses a different method than 'original' to find the first volunteer. Gets around some Tor blocking.
Bridge from Tor (obsf4) via Telegram
Likely to keep you connected if Tor is severely blocked. Using this method will launch the Tor Bot Telegram channel. Tap 'Start' or write '/start/ in the chat to get a bridge address.
Bridge from Tor (obsf4) after Capchta
Cloaks your traffic. Gets around some Tor blocking.
Built-in Bridge (obsf4)
Cloaks your traffic. Gets around some Tor blocking. Good if you're on public wifi, but in a country where Tor isn't blocked.
Bridge from Tor (obsf4) via email
Cloaks your traffic. Gets around some Tor blocking. Requires an email sent from a Gmail or Riseup account.
Custom Bridge
Most likely to keep you connected if Tor is severely blocked. Requires a bridge address from someone you trust.

Perhaps
"Bridge from Tor (obsf4) after Capchta"
should be
"Request a new bridge from Tor"
I think the word "Capchta" is strange to use for many reasons, and perhaps doesn't translate well?
I also question putting in the email or telegram choices as separate options in the list here. In the "custom bridge" sectio, we could indicate that bridges can be requested via these methods, and provide some information on how to do that.

Based on my understanding of bridges, I made a sketch on how I would make bridge recommendations if I were doing a basic Tor training for people from multiple regions. This is what I'd like to be able to communicate in the view where people are choosing their own bridge. If people don't have the technical background, it's helpful to give an indication of what's most likely to work (strong, stronger, strongest) and how easy it is to get them (colors).

Two updates:

I'm working through the UX for grouping the custom bridges into one option.
We've decided to move the auto/smart connect 'ask' to the bridge selection view. In this view, the user can 'ask tor' for a recommendation. The API will tell them which method to use. Then users can click connect to get connected (and of course, find out if it will work for them.) If it doesn't work for them, we will walk them through other methods to try. This is the fail scenario we designed for early on. We need to revisit a bit, since we have the addition of Telegram as a method for getting custom bridges. So we'll run an UX cycle on that.

This solution can allow us to ditch the 2 button UI we had originally planned for return use.

Woah? That's not what I understood. Why should we ditch the "Smart Connect"? That is a really good idea!

We wouldn't ditch it. We would run it the first time. Then on return use, you would run it from this 'Choose How To Connect' view. ... But, I guess we don't get the full benefits by doing it in this view, huh? Like it would only tell you what Tor thinks. But it wouldn't try other methods afterward if the recommendation didn't work.

Yes, exactly. It's not the same thing.

Or maybe it could. We would essentially try the Tor recommendation. Then if that didn't work, prompt the user to ask if they want to app to run Smart Connect / connect whichever way possible.

That really sounds annoying for both the programmer and the user. It's complicated to implement and it also complicates things for the user. It actually hides the smart connect feature and then makes it more cumbersome to use.

If we keep the Smart Connect option on the home screen for return use, here's another way we could do it.

Yeah, that's what I wanted to suggest, too. If you don't like 2 big buttons of the same size, then do a checkbox or different button sizes.

I would like to find a way to use smart connect without it being a big checkbox option on the main screen. Seems like maybe if the current option the user has selected fails, we can prompt them to "try another way?" and then smart conncect kicks in.

@cstiens and I discussed this at length. I don't see any other sensible way. Things to consider:

We cannot  tell when we don't succeed. We can just assume that we get blocked after a wild guess on amount of time passed.
Prompt can certainly not be modal, as that prompt might come at the completely wrong time for the user.
We don't have any context information nor should we try to get it, as that might be super-invasive.
Why make the user do things, when they know, it won't work, and they know the solution would be to use smart connect?

=> We need to help the users help themselves, and otherwise stay out of the way.
Providing three obvious options

Do as last time
Smart connect
Manual configuration

Seems like the most sensible thing for me to do in this case.

I really like the "Ask Tor" option, and how you have implemented it on iOS @tladesignz - very clear and useful.

Thanks. We had that for a year or something. This is just @cstiens new UI.

We had that for a year or something. This is just @cstiens new UI.

I like the new UI.

My naive high-level goal with this Orbot re-design was to simpllify things, and somehow it feels like we haven't.

My naive high-level goal with this Orbot re-design was to simpllify things, and somehow it feels like we haven't.

I'd definitely say we improved things. I'd also say, we simplified things for users. Esp. the smart connect feature is a big step forward, and the reorganisation of transport options is, too, very much.
However, true security is complicated and its complexities cannot be hidden away without degrading it. The way, Tor is architected, even less so.
Don't kid yourself: If you now think "But Signal can!", think twice. They only achieve this simplicity, because they basically ignore authentication. But encryption without authentication only protects you 1/3 of the way.
Anyway, simplification in itself is not a sensible goal: Only clever simplification can be.


推理报错

Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in call
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
File "/data1/liux/Qwen2.5/qwen2_5_vllm_fastapi/qwen2_5_vllm_fastapi_server.py", line 126, in chat
results_iter = engine.generate(inputs=prompt_text,
TypeError: AsyncLLMEngine.generate() got an unexpected keyword argument 'inputs'

It looks like it's due to a change in the VLLM AsyncLLMEngine.generate() API from v0.4.2 to v0.4.3

这似乎是由于 VLLM AsyncLLMEngine.generate() API 从v0.4.2更改为v0.4.3造成的

请问作者使用的一些主要的库，比如vllm等的版本可以给一个说明嘛


Fix for type comparison for glsl programs

Issue
Fixes #1608 where type comparison will fail and hence uniforms are not discoverable for rendering.
Fix
The pointer comparison can fail so use name type comparison instead.

@kwokcb Do you have a sense of why the original pointer comparisons are no longer robust?  Since we use this pattern throughout the shader generation system, and not just in this one function, I'd recommend that we address the source of the pointer comparison failures, rather than working around it in just one location.

@jstone-lucasfilm. I'm not sure what may be the cause of this. It may perhaps never be safe to perform pointer comparisons and just worked since all code is called within the same module -- I found this output by using GLSLProgram outside the module via Python.

@kwokcb That sounds like a good theory of the case, and if these pointer comparisons are indeed unsafe across modules, then we should refactor this PR as a proposal to replace the pointer comparisons globally.
CC'ing @niklasharrysson for his thoughts!

@kwokcb @jstone-lucasfilm It is very strange if these pointer compares have become unsafe. The TypeDesc class has been there since the early days of shader generation many many years ago .And these type compare are being done all over the code base, in many different modules.
It's also hard to see why it would fail here. Since when you get to the points where this mapTypeToOpenGLType is being called a shader has already been generated successfully, and hundreds of these type compares must have been performed already.
Bernard, could you get some more information out from a debugger? If you look at the TypeDesc pointers and data pointed to, and compare to what is sent in, how does that look?
We can take this one offline and discuss more.

I'll close out this specific pull request, since the fix will likely be broader than the changes described here, and we'll need additional research into the cause.
We can continue the discussion in https://github.com/AcademySoftwareFoundation/MaterialX/issues/1608 open, which is a good summary of the issue that needs to be addressed.


chore(package): update sinon to version 2.3.3

Coverage remained the same at 100.0% when pulling d2c7709a5071d8de79f8d5e6253553a720f99d06 on greenkeeper/sinon-2.3.3 into fb7c70bd34c34917326117c1dc8916a5c43ed70c on master.


jscompletion official plugin (and possibly others) broken

The jscompletion plugin does not seem to work with the latest Firefox and Pentadactyl. It hasn't worked since all of the iterator changes that took place recently for Firefox 36. For example, when I try :js document.getElementById('<Tab>, I get no completions and the following in the Browser Console:
TypeError: The expression cannot be converted to return the specified type. util.jsm:1389:0
evalXPath/<@file:///home/user/.pentadactyl/plugins/jscompletion-dev.js:33:42
CompletionContext<.completions@resource://dactyl/completion.jsm:307:28
generateCompletions@resource://dactyl/completion.jsm:428:8
CompletionContext<.items@resource://dactyl/completion.jsm:458:12
ItemList<.activeGroups/<@resource://dactyl-content/commandline.js:1978:40
ItemList<.activeGroups@resource://dactyl-content/commandline.js:1977:23
update@resource://dactyl-content/commandline.js:2103:12
reset@resource://dactyl-content/commandline.js:1324:16
complete@resource://dactyl-content/commandline.js:1285:12
tab@resource://dactyl-content/commandline.js:1592:16
tabTell@resource://dactyl-content/commandline.js:1134:16
notify@resource://dactyl/base.jsm:1436:12
The iterator changes might affect other official plugins that I haven't tested as well.

Fixed by https://github.com/5digits/dactyl/commit/5bb2e311500ddb0750a1a6c69a965ec8c544315d


⚠ Bofrost.lu has degraded performance

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

HTTP code: 200
Response time: 1007 ms

Resolved: Bofrost.lu performance has improved in 5d7386c after 8 minutes.


Haddock comments on constructor arguments

Original reporter: david.waern@
We could try to support Haddock comments on individual constructor arguments:
data A = A Int   -- ^ Documentation for the Int argument
           Float -- ^ Documentation for the Float argument
       | B

But I'm not sure how, since we already support commenting constructors on the same line:
data T a b
  = C1 a b  -- ^ This is the documentation for the 'C1' constructor
  | C2 a b  -- ^ This is the documentation for the 'C2' constructor

Perhaps we could require a parenthesis around the last argument?
data A = A Int   -- ^ Documentation for the Int argument
           (Float -- ^ Documentation for the Float argument)
       | B

Or around both arguments, for consistency:
data A = A (Int   -- ^ Documentation for the Int argument)
           (Float -- ^ Documentation for the Float argument)
       | B

Fixed in #709.


E-voting DApp smart contract added

Description
Please include a summary of the change and which issue is fixed.
Added a smart contract for decentralised e voting system for a smarter and more transparent governance system
Fixes #<issue_number_here>
Type of change
Please delete options that are not relevant. In order to tick the check box just put x inside them for example [x] like this :

[x] Add a new project

[] Modified or enhanced the existing projects

[] Improve the readme of any project

Domain of Contribution
Please delete options that are not relevant. In order to tick the check box just put x inside them for example [x] like this

[x] Project using only Solidity

[] Project using only Javascript

[] Project using only Python

[x] Project Test on the Remix IDE

[] Mention below if project uses other language and ide .

Checklist ✓
Please delete options that are not relevant. In order to tick the check box just put x inside them for example [x] like this

[x] l have performed a self-review of my own code or work.

[] I have commented on my code, particularly in hard-to-understand areas.

[x] My changes generate no new warnings

[] I'm HSOC'22 contributor

[x] I'm SSOC'22 contributor

Screenshots/Gif (Recommended)

Can u please Add a updation part in this readme explainig what u update and why it's better than previous one . It's very easy me to  get cross verify . Hope u understand

Please provide  the Running video , Also .

Ok sure sir
Let me just finish a pending work of college then I'll get back to this soon


Error when trying to use simple example bot

I am trying to run the example bot but I get Error: StringError("RLBot did not become initialized") every time. I have opened rocket league with -rlbot flag (online features are disabled), run the RLBot injector, and typed in the simple example cargo run --example simple. I thought this latest update would fix it but I tried with the latest version and I still can't get it to work.

I tested and it works when typing in the command
cargo build --example bot && python -c "from rlbot import runner; runner.main()"

Maybe a run.bat should be made for this.

The problem is the command that works requires python rlbot to be installed. I do not want this to be the case for my bot for easy testing purposes. I wonder if @whatisaphone is a phone has any ideas for why I am getting that original error.

This is true, but I don't think there is a very good way to do this other than the way you described, or installing the RLBot package into this repository, and running cargo build --example bot && python -c "from rlbot import runner; runner.main()" using the local RLBot.

What I am saying is cargo run --example simple should work as it is in the documentation but it is giving me an error even when adding the -rlbot flag.

It says there that you still need the RLBot PyPi package. I'm not sure, but try doing a double dash when you're launching (Steam.exe -applaunch 252950 --rlbot)

Double flag doesn't work and leaves online play available. That isn't surprising though since steam flags are usually only a single dash.

Ok. I feel like RL is launched also with a second flag, but I can't remember.

I also remember a second flag when doing python bot stuff at one point but I don't quite remember what it was. I guess we can just leave this issue open until that gets figured out... If you have some extra time at your computer you could download the example bot and see if you can get it to work on your computer.

I am working on a Python bot(and off to a pretty bad start) right now, and I can open steam and relaunch RL to try to figure the second flag out.
Another thought is that this should be in a batch file, like run-framework.bat like Java has.

Huh. It seems that Rocket League is run regularly?
https://github.com/RLBot/RLBot/blob/master/src/main/python/rlbot/setup_manager.py#L94-L110

And then the dll is injected, which makes it go offline?

Launching with the -rlbot flag is what causes rocket league to only be available in offline mode. I have tried both with the dll injector and without and it doesn’t work either way. There is no noticeable difference between the dll being injected and not. I messaged Phone on discord and he will take a look at this when he gets a chance.

Ok.

If examples/bot works but not examples/simple, I'm guessing the problem is a paths issue. Is it possible you have more than one copy of the RLBot DLLs on your system left over from testing/old versions?
For examples/simple, when you run RLBot.exe, it should open a console with debug output. Does it output the line Signaling that interface dlls may begin communicating.?

Huh. It seems that Rocket League is run regularly?

That's outdated code. Unfortunately the RLBot/RLBot repo is no longer kept up to date with the actual source (for now, maybe). You should look at what you get from pip install to see the actual source.

Ah. Thanks for the tip.

I found the code that launches it, and the IDEAL_ARGS are -rlbot and -nomovie.

My bot is not working. I am using the python framework but that isn't a big deal in reality.


[ScanDependencies] Make sure canImport resolution agrees with import

Fix the problem that when the only module can be found is an invalid/out-of-date swift binary module, canImport and import statement can have different view for if the module can be imported or not.
Now canImport will evaluate to false if the only module can be found for name is an invalid swiftmodule, with a warning with the path to the module so users will not be surprised by such behavior.
rdar://128876895

@swift-ci please smoke test

@swift-ci please smoke test

Please test with following PR:
https://github.com/apple/swift-package-manager/pull/7647
@swift-ci please smoke test

ping

@swift-ci please smoke test


Upgrade go version to 1.14

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Documentation:

Does this PR introduce a user-facing change?:

NONE

/lgtm
do tools even look at it? go's 1.14 t.CleanUp worked out of the box


libOsiris.so dll

I compiled it on linux via cmake
Linking CXX shared library libOsiris.so
so i got file libOsiris.so
how to make it into dll?
ps. the point of this issue is, I want to compile it on vps linux

You compile the cheat on Windows with VS.
I've heard that you can build .dll on Linux, but idk how

You compile the cheat on Windows with VS.
I've heard that you can build .dll on Linux, but idk how

thats why i asked...

try compiling with i686-w64-mingw32-c++-win32

try to compile with i686-w64-mingw32-c++-win32

well, its configured for cmake make and vs
i suppose u have config for compiling using mingw32?

Check out my fork of osiris, I have a inject script in there.
boofiboi/Osiris

Check out my fork of osiris, I have a inject script in there. boofiboi/Osiris

i want to make dll on linux to use it on windows

Check out my fork of osiris, I have a inject script in there. boofiboi/Osiris

i want to make dll on linux to use it on windows but thanks for inject script

Then compile it on windows.

Check out my fork of osiris, I have a inject script in there. boofiboi/Osiris

i want to make dll on linux to use it on windows but thanks for inject script

Then compile it on windows.

the point of this issue is, I want to compile it on vps linux and thus i wouldnt need to install vs on windows

Just set up a vm and set up vs on there, then update it onto a private repo or something like that.

uwu


Handle inactive exchanges in the SDK

Description
This ticket is about figuring out and deciding how enabled & disabled pair trading should be handled in the SDK.
Currently, all trading pairs are returned by the SDK, not returning information on whether a pair is currently in a non-full-active trading mode, e.g. from circuit breaker or trading limits.
We are not sure how this would end up in the UX, e.g. if a user attempts a transaction for a currently suspended pair. If the transaction fails, if gas estimation fails.
We need something like CEX APIs, which return a status or error code together with price data, to indicate whether the pair is currently trading live or not.
ref: https://github.com/mento-protocol/mento-sdk/pull/2#discussion_r1086698141
Acceptance Criteria

[ ] Understand user implications of the current way the SDK provides the trading pairs
[ ] Figure out a way how to let UIs know of suspended trading pairs, how to handle this.
[ ] Implement in the SDK
[ ] Test in the SDK

would that be why when calling mento.getAmountIn with address for BridgedUSDC  i get an error like below but for CELO => cUSD it returns nicely?
I don't actually need BridgedUSDC so i just filtered out pairs from getTradeablePairs first
cEUR BridgedUSDC Error: missing revert data in call exception; Transaction reverted without a reason string [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (data="0x", transaction={"to":"0xD3Dff18E465bCa6241A244144765b4421Ac14D09","data":"0x04e456400000000000000000000000009b64e8eabd1a035b148ce970d3319c5c3ad53ec33e6d9109df536ba3f4c166e598bdfe132dca06573a54ca40c2b6f23ac6bd6cc600000000000000000000000010c892a6ec43a53e45d0b916b4b7d383b1b78c0f00000000000000000000000087d61da3d668797786d73bc674f053f87111570d0000000000000000000000000000000000000000000000000de0b6b3a7640000","accessList":null}, error={}, code=CALL_EXCEPTION, version=providers/5.7.2)
    at Logger.makeError (/Users/aaronmgdr/celo/developer-tooling/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
    at Logger.throwError (/Users/aaronmgdr/celo/developer-tooling/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
    at checkError (/Users/aaronmgdr/celo/developer-tooling/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:66:16)
    at Web3Provider.<anonymous> (/Users/aaronmgdr/celo/developer-tooling/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:642:20)
    at step (/Users/aaronmgdr/celo/developer-tooling/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
    at Object.throw (/Users/aaronmgdr/celo/developer-tooling/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
    at rejected (/Users/aaronmgdr/celo/developer-tooling/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  reason: 'missing revert data in call exception; Transaction reverted without a reason string',
  code: 'CALL_EXCEPTION',
  data: '0x',
  transaction: {
    to: '0xD3Dff18E465bCa6241A244144765b4421Ac14D09',
    data: '0x04e456400000000000000000000000009b64e8eabd1a035b148ce970d3319c5c3ad53ec33e6d9109df536ba3f4c166e598bdfe132dca06573a54ca40c2b6f23ac6bd6cc600000000000000000000000010c892a6ec43a53e45d0b916b4b7d383b1b78c0f00000000000000000000000087d61da3d668797786d73bc674f053f87111570d0000000000000000000000000000000000000000000000000de0b6b3a7640000',
    accessList: null
  },
  error: Error: execution reverted: overflow x1y1 * fixed1 detected
      at decoratedCallback (/Users/aaronmgdr/celo/developer-tooling/packages/sdk/connect/src/utils/rpc-caller.ts:117:15)
      at /Users/aaronmgdr/celo/developer-tooling/node_modules/web3-providers-http/lib/index.js:127:13
      at processTicksAndRejections (node:internal/process/task_queues:95:5)


DRILL-5324: Provide simplified column reader/writer for tests

The new "sub-operator" unit test framework provides simple ways to create row sets in code. This PR includes the column accessor code:

Interfaces for column accessors
Template for generated implementations
Base implementation used by the generated code
Factory class to create the proper reader or writer given a major
type (type and cardinality)
Utilities for generic access, type conversions, etc.

Many vector types can be mapped to an int for get and set. One key
exception are the decimal types: decimals, by definition, require a
different representation. In Java, that is BigDecimal. Added get, set
and setSafe accessors as required for each decimal type that uses
BigDecimal to hold data.
Work remains to be done on other complex types: intervals and so on.
This will be added incrementally as work proceeds.
The generated code builds on the valueVectorTypes.tdd file, adding
additional properties needed to generate the accessors.
The PR also includes a number of code cleanups done while reviewing
existing code. In particular DecimalUtility was very roughly
formatted and thus hard to follow.
Supports Drill’s interval types (INTERVAL, INTERVALDAY,
INTERVALYEAR) in the form of the Joda interval class.
Adds support for Map vectors. Maps are treated as nested tuples and are
expanded out to create a flattened row in the schema. The accessors
then access rows using the flattened column index or the combined name
(“a.b”).
Supports arrays via a writer interface that appends values as written,
and an indexed, random-access reader interface.

@paul-rogers can you squash the commits for merging ?

Done. Also rebased on master.

This PR combines the main changes for simplified column readers/writers with the code cleanup/hygiene changes which made it harder to review.  For future, please separate the hygiene changes into a separate PR.
Rest LGTM.   +1


I want to add the code of stock span problem (leetcode-Stack problem)

Can you assigned it to me pls

sure go for it😊


decode events

TL;DR
Added event decoding functionality for Ethereum logs, enabling the parsing and interpretation of indexed and non-indexed event parameters.
What changed?

Added ConstructEventABI function to parse event signatures into ABI format
Implemented log decoding functionality to handle both indexed and non-indexed event parameters
Created new DecodedLog and DecodedLogData structures to represent decoded event data
Enhanced log handlers to support automatic event decoding when a signature is provided
Added support for converting various data types (bytes, numerics) to hexadecimal format

How to test?

Make a GET request to /{chainId}/events/{contract}/{signature} with a valid event signature
Verify that the response includes decoded event data with:

Event name and signature
Indexed parameters properly decoded
Non-indexed parameters converted to appropriate formats
All byte and numeric values properly converted to hex

Why make this change?
To improve the readability and usability of event log data by automatically decoding raw event parameters into their proper types and formats. This makes it easier for developers to work with and understand event data without having to manually decode the raw logs.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#125  👈 (View in Graphite)
#124
#123
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Merge activity

Dec 6, 2:56 PM EST: A user started a stack merge that includes this pull request via Graphite.


Add OrganisationName and ApprenticeName template fields

For the Apprentice Portal template "AS Apprentice Signup Invite" https://www.notifications.service.gov.uk/services/ffe171ac-7dde-4299-9bb1-b9cee62af4c7/templates/4f04cf81-b291-4577-9452-ecab875ed6f8

I don't quite understand the rational of dropping the GivenName and FamilyName fields in favour of Name.

I think you're right, this needs a little more thought.  I'll have another look...

I don't quite understand the rational of dropping the GivenName and FamilyName fields in favour of Name.

I think you're right, this needs a little more thought.  I'll have another look...