Register/Login not working. Is this a complete react starter with register and login working.

Hi, first of all awesome starter. Thanks for this starter @mtiger2k
You must be given lots of effort to put these technologies working together.
So come to the point, i (we) want to use your react-redux-graphql-starter.
But i think Login / Register not working. Because it does nothing.
So will this starter completed with login/register working ?
Thank you.
Kind regards.

I'm glad someone can share my effort.
Sorry, I haven't implemented register UI yet, but I had already provided backend api to register new user. You can use the following curl command to create new user, after you start the server:
curl -H "Content-Type:application/json" -X POST --data '{"username": "admin", "password":"admin"}' http://localhost:4000/signup
Also forget to mention, currently the starter use mongodb to store user info, so you must have mongodb installed on the server.

Thank you very much.
Happy coding.


Vim tweaks

No breaking changes.

Added a function for wrapping text.
Organized plugin/settings files.
Users can override vimrc settings.

can you please rebase this merge from the latest so it can be auto merged

There you go. Let me know if you want me to do the same with the other branch.

So actually I realized some mappings here conflict. I have the D-[1..0] keys mapped to select tabs. I think that's an important mapping...I never use gj and other things myself,  I guess I don't deal with wrapped text very often since I work on code primarily?

I can change them. I'll do it as soon as I get back to the computer. You
know a way to check in the future?
On Wednesday, January 25, 2012, Yan Pritzker <
<EMAIL_ADDRESS>wrote:

So actually I realized some mappings here conflict. I have the D-[1..0]
keys mapped to select tabs. I think that's an important mapping...I never
use gj and other things myself,  I guess I don't deal with wrapped text
very often since I work on code primarily?

Reply to this email directly or view it on GitHub:
https://github.com/skwp/dotfiles/pull/14#issuecomment-3659281

--

n: Kyle West
e<EMAIL_ADDRESS>p:<PHONE_NUMBER>

Done. Changed to <D-$>, etc.
<D-0> was the only conflict left over but I don't think it's possible to create a tab 0 so I got rid of it.

D-0 should mean tab 10 cuz 0 is at the end :) also to check mappings you can type :map  and it will show you whatever is mapped to it. you can do the same with nmap, vmap, imap, etc

you're right it doesn't work the way I thought it should. good call on removing D-0


Extra Newlines

Currently clap renders an extra newline after usage, version and help. This is untypical and there does not appear to be a way to disable that.

Yeah this should only be a single newline and not a double.
After usage, do you mean in the help message or elsewhere?

#517 should take care of this, except the usage portion. Just waiting to get some more clarification on that part.

@kbknapp basically every single output i get from clap (be it a default error from bad usage) or --help etc. includes an additional newline.

This seems to be fixed now. Thanks a bunch!


chore: downgrade to openssl v1.1.1 (again)

Accidentally updated by https://github.com/rust-lang/cargo/pull/13674
See https://github.com/rust-lang/cargo/issues/13546#issuecomment-2047366361

I am not sure if we should pin this. Somebody might want to build Cargo with openssl v3.

Why did #13674 update it if it wasn't listed as updated in the description?
I would lean towards pinning it, since it has been an issue for a while. If some distro wants to use a newer version, they can patch Cargo.toml to remove the pin. Just make sure there is a comment explaining why it is pinned. Or if there is some other way to force dependabot to not touch it.

@bors r+

:pushpin: Commit 686057bdddc735881eccd26d958160d79eac5af4 has been approved by epage
It is now in the queue for this repository.

:hourglass: Testing commit 686057bdddc735881eccd26d958160d79eac5af4 with merge 74fd5bc730b828dbc956335b229ac34ba47f7ef7...

:sunny: Test successful - checks-actions
Approved by: epage
Pushing 74fd5bc730b828dbc956335b229ac34ba47f7ef7 to master...

:sunny: Test successful - checks-actions
Approved by: epage
Pushing 74fd5bc730b828dbc956335b229ac34ba47f7ef7 to master...

:eyes: Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.


Add additional search paths for python modules

This PR adds python search paths as per #398.

Thanks


Update CI config to include integration tests

Description

Update image to the variant that includes nodejs installed and run
ganache-cli node as background job for use by integration tests.

Test job is configure such that, first all (integration and unit)
tests are run. Only if this fails, unit tests alone are run.

Also update executor name from dst-go to perun-node.

Category

Implementation Task
Relevant issue

Closes #60
Testing

Steps to run the tests

Integration tests are run in the pipeline.
To check if unit tests alone are run if the combined run of integration and unit tests fail, comment out the lines start ganache-cli node (78-80) in .circleci/config.yml. Such a run has also been done in my fork of the repo here.

Checklist

[x] Name is added to the NOTICE file, if it is not present already.
[x] Changes are rebased onto the target branch.

Rebased on develop after merging #129.


Automated cherry pick of #12229

Did you mean to open this, or is this another automated test?

I'm also confused what's going on with @googlebot

(It's a different error than usual for contributing someone else's code, so it makes me wonder if your use of the hub command triggered it somehow.)


Request context

Provide a framework for passing context data about requests made to edge services between baseplate services.

Create Thrift structs to model the request context data.
Automatically initialize the EdgeRequestContext object from Thrift/HTTP headers.
Automatically attach the Edge-Request header to thrift requests when using the PooledClientProxy client object.
Integrate the new User and EdgeRequestContext objects into the Experiment framework.

NOTE:
This update depends on new fields being added to the AuthenticationContext token.  Currently I have stub functions for these new fields.

:haircut_man:

:haircut_man:

:haircut_man:

:fish: in broad strokes. probably a few little details to hammer out but overall this looks great.

:haircut_man:

Updated docstring of AuthenticationContext.attach_context to note that it is deprecated and that attaching the AuthenticationContext directly will not forward the auth token.
Changed OauthClient.type property to OauthClient.is_type function.  This is to encourage developers to check that the client type is an allowed type.

:haircut_man:
I cleaned up the commits and made a couple of small updates (two of the updates got squashed down so I will link to the lines in the diff where they happened)

Rename some event fields to match the names that we currently use for bucketing events.  This is done when we log the event rather than in the event_fields functions because they are not really the names we want to use going forward.  This is one of the updates that got squashed, you can see the change starting here https://github.com/reddit/baseplate/pull/125/files#diff-63712203d887896d022bc211be536eb7R189
Add a test to validate the bucketing event payload.  This is the other update that got squashed, you can see the change here: https://github.com/reddit/baseplate/pull/125/files#diff-4efb8f285f57a2678fe92ee4e6413c54R44
Add some validation to EdgeRequestContext.create to verify that the loid_id value is in the fullname format and update/add tests for this.  These are the last three commits.

Sorry for the last bit of changes 😅


Issue on page /notebooks/04-LaTeX.html

"A first LaTeX example" is in as an ipython code block, but formatted like markdown. Should instead be in a markdown block so it doesn't try to execute the code fence:
  File "<ipython-input-1-06e4abbacf33>", line 1
    ```
    ^
SyntaxError: invalid syntax

fixed


Unify Alias and Identity view

Description of change
Unify the identity resolver and Alias Address view. Add domain name verification for linked domains.
Type of change
Choose a type of change, and delete any options that are not relevant.

Enhancement (a non-breaking change which adds functionality)

How the change has been tested
Ran through
Change checklist
Add an x to the boxes that are relevant to your changes, and delete any items that are not.

[X] My code follows the contribution guidelines for this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Tried to load a random Alias address and it exploded here. Not sure about the case, but seams like we need to be more careful using hexToUtf8.

The "disabled" state of the tab is not working correctly:
If i go to this address
http://localhost:3000/testnet/addr/rms1prkreqc08fsq0dxg6qlnu5u3sjx4z4x0g830kuej8q63s2nnzypsvynznx0?tab=State
or actually through search with this did:iota:rms:0xec3c830f3a6007b4c8d03f3e5391848d5154cf41e2fb73323835182a73110306
it find the address and goes to DID tab, but the tab is “disabled” (grey) for some reason. And if you go to some other tab, you cannot go back!

The "disabled" state of the tab is not working correctly: If i go to this address http://localhost:3000/testnet/addr/rms1prkreqc08fsq0dxg6qlnu5u3sjx4z4x0g830kuej8q63s2nnzypsvynznx0?tab=State or actually through search with this did:iota:rms:0xec3c830f3a6007b4c8d03f3e5391848d5154cf41e2fb73323835182a73110306 it find the address and goes to DID tab, but the tab is “disabled” (grey) for some reason. And if you go to some other tab, you cannot go back!

fixed in the latest commit, not sure how that could have ever worked previously 🤔


Improved docker building

build tools properly cache and you can build specific branches/commits with docker.
Fixes  #289

I'm not sure why the travis check failed, could someone verify this/rebuild this pr?

This speeds up my docker builds by about a 10x factor (from 29 minutes to 3 minutes).


Support for configuring the generated services to work with ExternalDNS

I am testing Flagger with App Mesh and I would like to expose the pods to the other services (on ECS/EC2) in the same mesh but outside the Kubernetes cluster without using Envoy ingress and ELB suggested here (https://docs.flagger.app/usage/appmesh-progressive-delivery#setup-app-mesh-ingress-optional).
I guess that should be possible to do so by using ExternalDNS and Cloud Map/Route53. To enable this, the generated services will need to be able to be set to the headless services and accept the ExternalDNS related annotations.

I think CloudMap has to be implemented for EC2 -> EKS traffic to work without an ingress controller. My impression is that there is no load balancing with a headless services and ExternalDNS. Have you tested the headless service is the traffic split still working?

Yes, I tested that approach (but still with DNS type for Service Discovery rather than Cloud Map) before I tried Flagger.
When setting the services on Cloud Map with RoutingPolicy = MULTIVALUE and Type = A, ExternalDNS will create Route53 records with the pod IPs.  With amazon-vpc-cni-k8s, those are the actual IPs from VPC which will be directly accessible from EC2 without a load balancer.

When you use Flagger, it creates a dedicated ClusterIP service and virtual node for the production workload prefixed with primary and the new version prefixed with canary. The weighted traffic is controlled with a virtual service like this:
apiVersion: appmesh.k8s.aws/v1beta1
kind: VirtualService
metadata:
  name: podinfo.test
  namespace: test
spec:
  meshName: global
  routes:
  - http:
      action:
        weightedTargets:
        - virtualNodeName: podinfo-canary
          weight: 0
        - virtualNodeName: podinfo-primary
          weight: 100
      match:
        prefix: /
    name: podinfo-route
  virtualRouter:
    name: podinfo-router

I don't see how this could work when using ExternalDNS and Route53 since the EC2 Envoy will not be able to resolve the EKS internal DNS names.

ExternalDNS supports Headless Service.
Without using "--fqdn-template", Pod IPs (not the EKS internal DNS names) will be registered as the A record(s) on Route53.
This works for both AWS (Route53) and AWS (Service Discovery) modes on ExternalDNS.

The Route53 mode will register all Pod IPs on a single A record.

The Service Discovery will register one A record (via Cloud Map) per each Pod IP with Multivalue answer routing policy.

With amazon-vpc-cni-k8s, this would work since IP will get the IP (ENI) from VPC which is accessible from EC2 outside the EKS cluster.
Example is below (I just manually created the Service to test and point it to the primary Deployment, with replica = 2, created by Flagger).

Ah ok I thought you want to route the weighted traffic (primary/canary) but if you just want to expose the primary workload to EC2, creating a separate Headless Service outside of Flagger's controller looks ok to me. If you want the EC2 traffic to be part of the canary analysis you can setup the Envoy ingress (from docs) without an ELB and use a headless service for it.

Yes, I want to route the weighted traffic from EC2 in the same mesh.
For example, Flagger will generate the virtual nodes with the DNS hostnames in the capture below.

If these DNS hostname are exposed correctly to Route53 via the generated services and ExternalDNS, I guess this should work without creating the Envoy ingress. Unless the Envoy ingress is doing something specific that I am not aware of.

App Mesh (like any other mesh) relies on client side load balancing, if the caller is not part of the mesh the traffic shifting can't work. In your case you need the Envoy ingress to act as the client.

My EC2 instances are in the same mesh as EKS.
I already tested by creating the services (below with "-headless" suffix) using the same configurations as the ones generated by Flagger (below without "-headless" suffix) except 2 things.

They are headless services.
They have the annotations for ExternalDns

Then, ExternalDns created the Route53 records in the 2nd capture below. My EC2 instances was then be able to route the traffic correctly with App Mesh.
My point is that if Flagger supports configuring the generated services to work with ExternalDns, I will not have to create these extra services.

@aonz FYI
I made some improvements to how Flagger does the Kubernetes services reconciliation. With the latest master build you could edit the services created by Flagger (make them headless, add annotations) and Flagger should keep those changes.

Thank you for the update. I will try it. 👍


My update of mongodb_cr involves 3 statefulset cpu, but only one update sts, the strategy is to RollingInPlace

When I updated the mongodb_cr, the metacontroller did not update the statefulset of multiple children at the same time, but when I deleted all the controllerrevisions.metacontroller.k8s.io resource and re-updated the cpu, two more statefulsets were updated(mongodb-sharded-configsvr、mongodb-sharded-shard0-data).
operator Steps
shardsvr.dataNode.resources.requests.cpu= new value
shardsvr.arbiter.resources.requests.cpu= new value
configsvr.resources.requests.cpu= new value
kubectl apply -f mongodb-cr.yml
version
k8s v0.15.11  metacontroller 1.5.8
statefulset
mongodb-sharded-configsvr        1/1     2d20h
mongodb-sharded-shard0-arbiter   1/1     2d20h
mongodb-sharded-shard0-data      2/2     2d20h
mongodb-cr.yml
spec
  shardsvr:
    dataNode:
      resources:
        limits:
          cpu: "4"
          memory: "10Gi"
        requests:
          cpu: "0.5"
          memory: "0.5Gi"

      arbiter:
            replicas: 1
            outConfigEnable: false
            resources:
              limits:
                cpu: "4"
                memory: "4Gi"
              requests:
                cpu: "0.2"
                memory: "0.2Gi"
  configsvr:
    outConfigEnable: false
    resources:
      limits:
        cpu: "4"
        memory: "4Gi"
      requests:
        cpu: "0.4"
        memory: "0.4Gi"

## mongos节点信息
  mongos:
    outConfigEnable: false
    resources:
      limits:
        cpu: "4"
        memory: "6Gi"
      requests:
        cpu: "0.3"
        memory: "0.3Gi"

controller.yml
apiVersion: metacontroller.k8s.io/v1alpha1
kind: CompositeController
metadata:
  name: mongodbcluster-controller
spec:
  generateSelector: true
  parentResource:
    apiVersion: icos.city/v1
    resource: mongodbclusters
  childResources:
    - apiVersion: v1
      resource: secrets
    - apiVersion: v1
      resource: pods
    - apiVersion: v1
      resource: services
    - apiVersion: v1
      resource: serviceaccounts
    - apiVersion: policy/v1beta1
      resource: poddisruptionbudgets
    - apiVersion: apps/v1
      resource: deployments
      updateStrategy:
        method: RollingInPlace
    - apiVersion: apps/v1
      resource: statefulsets
      updateStrategy:
        method: RollingInPlace

  hooks:
    sync:
      webhook:
        url: http://mongodbcluster-controller-operator.metacontroller/sync
    finalize:
      webhook:
        url: http://mongodbcluster-controller-operator.metacontroller/sync
    ```

hi @tengzhuofei , may I ask of formatting the CompositeController definition as:
formatAsYaml:
- insteadOf: plaintex
  asItIs: easierToRead

as currently I cannot follow the config.
Also, can you elaborate :

what is happening now
what is expected
attach event related to problematic resource (i.e. kubectl describe Pod problematicPod)
?

Thanks

When I updated the mongodb_cr, the metacontroller did not update the statefulset of multiple children at the same time, but when I deleted all the controllerrevisions.metacontroller.k8s.io resource and re-updated the cpu, two more statefulsets were updated(mongodb-sharded-configsvr、mongodb-sharded-shard0-data).
operator Steps
shardsvr.dataNode.resources.requests.cpu= new value
shardsvr.arbiter.resources.requests.cpu= new value
configsvr.resources.requests.cpu= new value
kubectl apply -f mongodb-cr.yml
version
k8s v0.15.11 metacontroller 1.5.8
statefulset
mongodb-sharded-configsvr 1/1 2d20h
mongodb-sharded-shard0-arbiter 1/1 2d20h
mongodb-sharded-shard0-data 2/2 2d20h
mongodb-cr.yml
spec
  shardsvr:
    dataNode:
      resources:
        limits:
          cpu: "4"
          memory: "10Gi"
        requests:
          cpu: "0.5"
          memory: "0.5Gi"

      arbiter:
            replicas: 1
            outConfigEnable: false
            resources:
              limits:
                cpu: "4"
                memory: "4Gi"
              requests:
                cpu: "0.2"
                memory: "0.2Gi"
  configsvr:
    outConfigEnable: false
    resources:
      limits:
        cpu: "4"
        memory: "4Gi"
      requests:
        cpu: "0.4"
        memory: "0.4Gi"

## mongos节点信息
  mongos:
    outConfigEnable: false
    resources:
      limits:
        cpu: "4"
        memory: "6Gi"
      requests:
        cpu: "0.3"
        memory: "0.3Gi"

controller.yml
apiVersion: metacontroller.k8s.io/v1alpha1
kind: CompositeController
metadata:
  name: mongodbcluster-controller
spec:
  generateSelector: true
  parentResource:
    apiVersion: icos.city/v1
    resource: mongodbclusters
  childResources:
    - apiVersion: v1
      resource: secrets
    - apiVersion: v1
      resource: pods
    - apiVersion: v1
      resource: services
    - apiVersion: v1
      resource: serviceaccounts
    - apiVersion: policy/v1beta1
      resource: poddisruptionbudgets
    - apiVersion: apps/v1
      resource: deployments
      updateStrategy:
        method: RollingInPlace
    - apiVersion: apps/v1
      resource: statefulsets
      updateStrategy:
        method: RollingInPlace

  hooks:
    sync:
      webhook:
        url: http://mongodbcluster-controller-operator.metacontroller/sync
    finalize:
      webhook:
        url: http://mongodbcluster-controller-operator.metacontroller/sync
    ```

k8s 1.19 ok

hi @tengzhuofei
do you see anything in the metacontroller logs ? Also, did the child StatefulSet has been updated and the change did not propagate to its pods ? You have boths
    - apiVersion: v1
      resource: pods
    - apiVersion: apps/v1
      resource: deployments
      updateStrategy:
        method: RollingInPlace
    - apiVersion: apps/v1
      resource: statefulsets
      updateStrategy:
        method: RollingInPlace

so the pods which are not updated are direct children, or your children are StatefulSets ? Please notice that for Pod resources you did not declare any updateStrategy, so by default they use OnDelete - which means they won't get any update, unless explicitly deleted.

children are StatefulSets

updateStrategy

children are StatefulSets

metacontroller.log

@grzesuav

Closing as no additional user input provided, please re-open with additional user input


Add .io file support

Should be self-explanatory.
This is mostly for my own personal convenience, and hopefully that of others.

If we only need model.ldr, I would just extract the file contents and store them in the resolver. There probably isn't a need to store the archive itself and deal with RefCell.

I can make that change, but the idea was that this design would make it a bit easier to add custom-part extraction in a later update.

Are custom parts just ldraw files? I was thinking this could be edited later to just be a HashMap<String, Vec<u8>> to represent the relevant archive files. If they aren't ldraw files, the new data can be added to the source map.

Sure, whatever.

Done.

It seems to be working well from my tests. Thanks.


Not really an issue but...

Have you published this to the PowerShell Gallery?  I couldn't find it.  I'd love to use this for my server builds.

@bdanse hoping your still active on this repo.   so far this is the best chance (IMHO) at a DSC version of setting IIS/et al security correctly.
honestly  I'm hoping to treat DSC as a black box, and w/o your package  getting an install-module from psgallery I dont see that happening.
What sort of resources do you need to be complete the task?

I've forked this project and converted to Class Resources here: https://github.com/citadelgroup/SchannelPolicyDsc
And I've published it: https://www.powershellgallery.com/packages/SchannelPolicyDsc
If you can help test it it would be much appreciated

Over the past months I have done the same and have published this under the Microsoft organization: https://github.com/microsoft/SChannelDsc/ and published to the PowerShell Gallery as SChannelDsc
To keep it consistent with other DSC resources, I implemented the High Quality Resources Guidelines.
I also added one more resource to manage generic Secure Channel settings.


Update CI config to publish tagged/release artifacts to PyPI

Closes #3

The first automated tagged release worked, however, CI is now failing due to an outage with Red Hat's Docker registry (quay.io): https://status.redhat.com/


Providing X509_LOOKUP method 'from memory' in addition to 'from file'

In order to verify a CA bundle file and/or certificates I am looking for a way to load the necessary certificate data from memory instead of from a file.
I am aware that it's possible to use X509_STORE_add_cert()/X509_STORE_add_crl() directly or add a custom X509_LOOKUP_METHOD method.
I hope, however, that the requirement to build a certificate store from memory rather than the filesystem, and the low but apparent complexity, justify extending the openssl library itself.
For reference, Mr Ed on SO shared this approach to someone already years ago.
Using it would look something like:
X509_STORE *setup_verify(const char *CAdata)
{
    X509_STORE *store = X509_STORE_new();

    X509_LOOKUP *lookup = X509_STORE_add_lookup(store, X509_LOOKUP_mem());

    X509_LOOKUP_load_mem(lookup, CAdata, X509_FILETYPE_PEM);

    ERR_clear_error();
    return store;
 end:
    X509_STORE_free(store);
    return NULL;
}

Loading from memory has a lot in common with loading from a file as implemented in openssl/crypto/x509/by_file.c.
The one thing that both methods share can be factored out into functions dealing with a BIO structure, which seems worth in its own respect anyway.
Current file-based code could be duplicated into its own by_mem.c or existing code in by_file.c could be extended to handle the new X509_L_MEM_LOAD control command.
Current file-based symbols are:
# define X509_L_FILE_LOAD        1
# define X509_LOOKUP_load_file(x,name,type) \
                X509_LOOKUP_ctrl((x),X509_L_FILE_LOAD,(name),(long)(type),NULL)

X509_LOOKUP_METHOD *X509_LOOKUP_file(void);
int X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type);
int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type);
int X509_load_cert_crl_file(X509_LOOKUP *ctx, const char *file, int type);

New memory-based symbols that I propose:
// control command for dispatch via X509_LOOKUP_ctrl() or possibly switch in by_file_ctrl()
# define X509_L_MEM_LOAD        3
# define X509_LOOKUP_load_mem(x,name,type) \
                X509_LOOKUP_ctrl((x),X509_L_MEM_LOAD,(name),(long)(type),NULL)

// could return the same structure as X509_LOOKUP_file()
X509_LOOKUP_METHOD *X509_LOOKUP_mem(void);

int X509_load_cert_mem(X509_LOOKUP *ctx, const char *data, int type);
int X509_load_crl_mem(X509_LOOKUP *ctx, const char *data, int type);
int X509_load_cert_crl_mem(X509_LOOKUP *ctx, const char *data, int type);

int X509_load_cert(X509_LOOKUP *ctx, BIO *in, int type);
int X509_load_crl(X509_LOOKUP *ctx, BIO *in, int type);
int X509_load_cert_crl(X509_LOOKUP *ctx, BIO *in, int type);

The only caveat I see is that the const char *data buffer must be null-terminated.

Alternatively, one can simply write a loop to call PEM_read_bio_X509_AUX over the input and then X509_STORE_add_cert each one. If OpenSSL wants to add a convenience function, I suppose that works, but I would not recommend doing this as an X509_LOOKUP. A function that just does that loop is fine.
But this is purely a convenience function. The application can already just write the loop themselves.

yeah, barring a community submitted PR, I don't think we need an extra convenience function here.  Theres several existing solutions.


Adding osmdroid as a gradle dependency

When i sync gradle after adding the dependency i get:
Error:A problem occurred configuring project ':app'.

Could not find osmdroid-android-release.aar (org.osmdroid:osmdroid-android:5.6.2).
Searched in the following locations:
https://jcenter.bintray.com/org/osmdroid/osmdroid-android/5.6.2/osmdroid-android-5.6.2-release.aar

someone did us a "favor" and added a redirect or something like that on jcenter, which is now invalid. solution: move mavenCentral() above jcenter() in your gradle file.

https://bintray.com/bintray/jcenter/org.osmdroid%3Aosmdroid-android/5.6.3#files/org/osmdroid/osmdroid-android/5.6.3
https://bintray.com/bintray/jcenter/org.osmdroid%3Aosmdroid-android/5.6.2#files/org/osmdroid/osmdroid-android/5.6.2
it's clearly there. what other dependencies do you have? can you post the line from your gradle build file that references osmdroid?

compile 'org.osmdroid:osmdroid-android:5.6.3'
I added the mavenCentral() before jcenter() in my project level gradle file since jcenter() is not present in my app level gradle file still no luck

This is the list of dependencies in my app level gradle file
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.google.android.gms:play-services:9.6.1'
compile('com.crashlytics.sdk.android:crashlytics:2.5.7@aar') {
transitive = true;
}
compile 'com.koushikdutta.async:androidasync:2.+'
compile 'com.android.support:multidex:1.0.1'
compile 'com.github.JakeWharton:ViewPagerIndicator:2.4.1@aar'
compile 'com.android.volley:volley:1.0.0'
compile files('libs/jts-1.14.jar')
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile 'com.github.MKergall:osmbonuspack:6.0'
compile files('libs/ormlite-android-5.0.jar')
androidTestCompile 'com.android.support:support-annotations:24.0.0'
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
//Hamcrest library for assertions
androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'junit:junit:4.12'
testCompile 'org.robolectric:robolectric:3.1.4'
testCompile 'org.robolectric:shadows-multidex:3.1.4'
compile 'org.osmdroid:osmdroid-android:5.6.3'

you have conflicting versions. try updating osmbonouspack to 6.2. It depends on osmdroid and you may end up with multiple versions. I'd suggest just using the osmbonouspack reference, since it should bring in osmdroid automagically

paging @MKergall on this for clarification. Looks like obp needs osmdroid 5.5 which does need the -release qualifier. Gradle is probably trying to just bump up the version number. Jcenter redirects are not the cause, it's gradle and your dependencies are out of whack

It looks like the osmbonus pack reference alone works. Then i would have to track osmbonuspack to increase version numbers in my gradle as as when updates are available. Thanks

np


[Question] embedding、reranker image seems to fail when use gpu?

Hi, guys ,
Can you help check this:
https://forum.weaviate.io/t/question-reranker-image-seems-to-fail-when-use-gpu/4370/3
Quick summary:

semitechnologies's reranker images wtih ENABLE_CUDA=1  raise AssertionError: Torch not compiled with CUDA enabled
semitechnologies's embedding images wtih ENABLE_CUDA=1  don't use gpu.
reranker  & embedding images wtih ENABLE_CUDA=0 work fine.

So my understanding is, that Enable_Cuda=0 enables cuda?


API Error

Hi,
Thanks you for your effort to make this boilerplate. I am integrating this to my own app.
I found a bug when I use mobile web browsers.
In localhost/servers, it show a modal with 'API Error, Type error, URL:/api/stats'.
And this happens on both mobile safari and chrome.
Thanks,
Sheng

Hi Sheng,
This is very strange, I ran the app locally on my laptop and then tried to access from my phone (in the same wifi network) and it worked for me.
Sounds like you can load the page and see the main layout, but the app cannot do any XHR requests, right?
Could you provide some additional details?
Where do you run the app (device, os)? What do you see in logs while accessing from a phone?
Thank you.

Sounds like you can load the page and see the main layout, but the app cannot do any XHR requests, right?
Yes.

Where do you run the app (device, os)? What do you see in logs while accessing from a phone?
Node 8.0.0

I tried iOS10.3.3 on iPhone7+ both safari and chrome, neither worked.
however, chrome on Pixel phone worked.
I do not know how to grab log from a mobile browser, and from server side. there is nothing valuable:
2017-09-24T16:48:28.045Z - info: ::ffff:<IP_ADDRESS> - GET / - 200 - 0.001s
2017-09-24T16:48:28.091Z - info: ::ffff:<IP_ADDRESS> - GET /vendor.js - 200 - 0.012s
2017-09-24T16:48:28.158Z - info: ::ffff:<IP_ADDRESS> - GET /main.js - 200 - 0.001s
2017-09-24T16:48:30.453Z - info: ::ffff:<IP_ADDRESS> - GET /favicon.ico - 200 - 0.002s
Thanks,
Sheng

Hi,
I have checked the compatibility of fetch()
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
Is this the reason that mobile chrome and safari on iOS do not support this fetch() ?
Thanks,
Sheng

Oh, yes, this looks like I forgot to include the polyfill. I was sure it is included to the babel 2015 preset.. I will add it.

Hi Sheng,
Please check it out. 'Intl' polyfill was missed.
I've tested on the oldest iPad I found, it works, but be sure to check it in production mode (npm start), development is still supported only on modern browsers.
Thank you.

Hi,
I installed that package. The issue is still there. I found there was a quick way to reproduce.
Enable desktop safari developer mode by this link.
https://support.apple.com/guide/safari/use-the-safari-develop-menu-sfri20948
After that you will see the menu of 'develop', choose 'user agent' --> 'safari -- iOS10 --iphone ' , and refresh your webpage. You will see the error.
Thanks,
Sheng

Hi Sheng,
I finally found a Mac, I tried what you described.
Yes, it doesn't work in the dev mode, but in production mode after build it works to me (npm start). One thing I got on old Mac is broken fonts. Could you check it, and send me the text of the error.
Thank you!

Hi,
In my case, neither of dev or prod is working.
And here is the snapshot.

Let me know if you need more info.
Thanks,
Sheng

Do you see any errors in the console?
I mean after this:

After that you will see the menu of 'develop', choose 'user agent' --> 'safari -- iOS10 --iphone ' , and refresh your webpage. You will see the error.

No, I did not see any error.
Here is the log from redux.

Hi Anton,
When I remove mode: 'none' from defaultParams, everything works fine.
May I know what this mode used for?
Thanks,
Sheng

mode is not natively supported by Safari. and the polyfill whatwg-fetch is not supported mode yet.
So that is why we can not use this option mode in fetch.
Anton, please confirm this.
Thanks,
Sheng

Hi Sheng,
A good research has been done!
That is interesting I changed it half a year ago: https://github.com/antonfisher/react-express-webpack/commit/17e11d79d906ed5aa80567a96ccd5f2a9f8fbf80#diff-8333e4b35538df4d36f2b43e0ab97184L2
I need to figure out with those polyfills... But first of all, I going to add proper error handling to provide nice message and stack for cases like this.
Thank you!


Timber 2.1.0 update broke my custom Twig extension

Expected Behavior
I have a custom extension that minifies inline javascript in my twig templates.  I have installed in my theme set up in my functions.php file; here's a minimal version of it:
class MyTheme extends Timber\Site {
	function __construct() {
		add_filter( 'timber/twig', array( $this, 'add_to_twig' ) );
	}
	function add_to_twig( $twig ) {
		$twig->addExtension( new Twig\Extension\StringLoaderExtension() );
		$twig->addExtension( new JavaScript_Compiler_Extension() );
		return $twig;
	}
}

require 'twig-js-extension.php';
new MyTheme();

and then the contents of my twig-js-extension.php file:
<?php

/**
 *  JAVASCRIPT MINIFIER TWIG EXTENSION
 *
 *  Minifies JavaScript code in Twig templates
 *  Place JavaScript inside {% js %} blocks
 *  Example:
 *  {% js %} function example() { return 'example'; } // comment {% endjs %}
 *  Minifies to: function example(){return 'example';}
 */

class JavaScript_Compiler_Extension extends \Twig\Extension\AbstractExtension {

	public function getTokenParsers() {
		return array(
			new JavaScriptTokenParser(),
		);
	}

	public function getName() {
		return 'js';
	}

}

class JavaScriptTokenParser extends \Twig\TokenParser\AbstractTokenParser {

	public function parse( \Twig\Token $token ) {
		$lineno = $token->getLine();

		$stream = $this->parser->getStream();

		// recovers all inline parameters close to your tag name
		$params = array_merge( array(), $this->getInlineParams($token) );

		$continue = true;
		while ( $continue ) {
			// create subtree until the decideJavaScriptFork() callback returns true
			$body = $this->parser->subparse( array( $this, 'decideJavaScriptFork') );

			// I like to put a switch here, in case you need to add middle tags, such
			// as: {% js %}, {% nextjs %}, {% endjs %}.
			$tag = $stream->next()->getValue();

			switch ( $tag ) {
				case 'endjs':
					$continue = false;
					break;
				default:
					throw new \Twig_Error_Syntax( sprintf( 'Unexpected end of template. Twig was looking for the following tags "endjs" to close the "js" block started at line %d)', $lineno ), -1 );
			}

			// you want $body at the beginning of your arguments
			array_unshift( $params, $body );

			// if your endjs can also contains params, you can uncomment this line:
			// $params = array_merge($params, $this->getInlineParams($token));
			// and comment this one:
			$stream->expect( \Twig\Token::BLOCK_END_TYPE );
		}

		return new JavaScriptNode( new \Twig\Node\Node($params), $lineno, $this->getTag() );
	}

	/**
	 * Recovers all tag parameters until we find a BLOCK_END_TYPE ( %} )
	 *
	 * @param \Twig\Token $token
	 * @return array
	 */
	protected function getInlineParams( \Twig\Token $token ) {
		$stream = $this->parser->getStream();
		$params = array();
		while ( ! $stream->test( \Twig\Token::BLOCK_END_TYPE ) ) {
			$params[] = $this->parser->getExpressionParser()->parseExpression();
		}
		$stream->expect( \Twig\Token::BLOCK_END_TYPE );
		return $params;
	}

	/**
	 * Callback called at each tag name when subparsing, must return
	 * true when the expected end tag is reached.
	 *
	 * @param \Twig\Token $token
	 * @return bool
	 */
	public function decideJavaScriptFork( \Twig\Token $token ) {
		return $token->test( array('endjs') );
	}

	/**
	 * Tag name: if the parsed tag match the one you put here, your parse()
	 * method will be called.
	 *
	 * @return string
	 */
	public function getTag() {
		return 'js';
	}

}

class JavaScriptNode extends \Twig\Node\Node {

	public function __construct( $params, $lineno = 0, $tag = null ) {
		parent::__construct( array( 'params' => $params ), array(), $lineno, $tag );
	}

	public function compile( \Twig\Compiler $compiler ) {

		$count = count( $this->getNode('params') );
		// debug( $this->getNode('params') );

		$compiler->addDebugInfo($this);

		for ( $i = 0; $i < $count; $i++ ) {
			// argument is not an expression (such as, a \Twig_Node_Textbody)
			// we should trick with output buffering to get a valid argument to pass
			// to the compileJavaScript() function.
			if ( ! $this->getNode('params')->getNode($i) instanceof \Twig_Node_Expression ) {
				$compiler
					->write('ob_start();')
					->raw(PHP_EOL);

				$compiler
					->subcompile( $this->getNode('params')->getNode($i) );

				$compiler
					->write('$_js[] = ob_get_clean();')
					->raw(PHP_EOL);
			} else {
				$compiler
					->write('$_js[] = ')
					->subcompile( $this->getNode('params')->getNode($i) )
					->raw(';')
					->raw(PHP_EOL);
			}
		}

		$compiler
			->write('echo call_user_func_array(')
			->string('compileJavaScript')
			->raw(', $_js);')
			->raw(PHP_EOL);

		$compiler
			->write('unset($_js);')
			->raw(PHP_EOL);
	}

}

function compileJavaScript( $_js ) {
	try {
		// uses JShrink package: https://github.com/tedious/JShrink/
		return \JShrink\Minifier::minify($_js);
	} catch ( Exception $e ) {
		return $e;
	}
}

My twig template usage: <script>{% js %}var example = 'code will render as minified';{% endjs %}</script>
Actual behavior
When upgrading Timber to 2.1.0 (which by default uses Twig 3.9.3), I get this error:
Fatal error: Uncaught Exception: An exception has been thrown during the rendering of a template ("call_user_func_array(): Argument #2 ($args) must be of type array, null given").
in /srv/www/columbian/public_html/wp-content/themes/myTheme/templates/html-head.twig on line 45

Call stack:

Twig\Template::yield()
wp-content/themes/myTheme/vendor/timber/timber/cache/twig/96/965b7a0820dcdf24acb4ef599e28a021.php:62

__TwigTemplate_b11ae5f5f3f652af4cf00526df175c0c::doDisplay()
wp-content/themes/myTheme/vendor/twig/twig/src/Template.php:360

Twig\Template::yield()
wp-content/themes/myTheme/vendor/timber/timber/cache/twig/b7/b7621b0f6f8d22c2899fd0a8a87ebdf7.php:71

__TwigTemplate_9f59957452a6a7cb686e7ab59f160a94::doDisplay()
wp-content/themes/myTheme/vendor/twig/twig/src/Template.php:360

Twig\Template::yield()
wp-content/themes/myTheme/vendor/twig/twig/src/Template.php:335

Twig\Template::render()
wp-content/themes/myTheme/vendor/twig/twig/src/TemplateWrapper.php:38

Twig\TemplateWrapper::render()
wp-content/themes/myTheme/vendor/timber/timber/src/Loader.php:178

Timber\Loader::render()
wp-content/themes/myTheme/vendor/timber/timber/src/Timber.php:1444

Timber\Timber::compile()
wp-content/themes/myTheme/vendor/timber/timber/src/Timber.php:1579

Timber\Timber::render()
wp-content/themes/myTheme/single.php:324

include()
wp-includes/template-loader.php:106

require_once()
wp-blog-header.php:19

require()
index.php:17

When I downgrade Twig to 3.8.0 (which Timber 2.0.0 used by default), it works again.  So I don't know if maybe there was a big change in this Twig update .
I don't think it's a long-term solution, but will Timber 2.1.0 work perfectly fine with Twig 3.8.0?
Steps to reproduce behavior

Test custom extension in Timber 2.0.0 (Twig 3.8.0). This would require installing JShrink package to get it work as laid out above.
Update Timber to 2.1.0.
Reload page to discover fatal PHP error.

Notes
No response
What version of Timber are you using?
2.1.0
What version of WordPress are you using?
6.5.2
What version of PHP are you using?
8.1.27
How did you install Timber?
Installed or updated Timber through Composer

Hi @columbian-chris ,
First thing I would do is to empty/disable the twig cache and see where the error originates from and try to work from there.
We ran loads of tests against that version of Twig and no errors occurred, so all main functions are working perfectly fine.

Error thrown with caching disabled:
Fatal error: Uncaught Exception: An exception has been thrown during the rendering of a template ("call_user_func_array(): Argument #2 ($args) must be of type array, null given").
in /srv/www/columbian/public_html/wp-content/themes/myTheme/templates/html-head.twig on line 45

Call stack:

Twig\Template::yield()
wp-content/themes/myTheme/vendor/twig/twig/src/Environment.php(384) : eval()'d code:62

__TwigTemplate_b11ae5f5f3f652af4cf00526df175c0c::doDisplay()
wp-content/themes/myTheme/vendor/twig/twig/src/Template.php:360

Twig\Template::yield()
wp-content/themes/myTheme/vendor/twig/twig/src/Environment.php(384) : eval()'d code:71

__TwigTemplate_9f59957452a6a7cb686e7ab59f160a94::doDisplay()
wp-content/themes/myTheme/vendor/twig/twig/src/Template.php:360

Twig\Template::yield()
wp-content/themes/myTheme/vendor/twig/twig/src/Template.php:335

Twig\Template::render()
wp-content/themes/myTheme/vendor/twig/twig/src/TemplateWrapper.php:38

Twig\TemplateWrapper::render()
wp-content/themes/myTheme/vendor/timber/timber/src/Loader.php:178

Timber\Loader::render()
wp-content/themes/myTheme/vendor/timber/timber/src/Timber.php:1444

Timber\Timber::compile()
wp-content/themes/myTheme/vendor/timber/timber/src/Timber.php:1579

Timber\Timber::render()
wp-content/themes/myTheme/single.php:324

include()
wp-includes/template-loader.php:106

require_once()
wp-blog-header.php:19

require()
index.php:17

It's failing where my custom tag starts ({% js %}).
Whereas in Twig 3.8.0 the value of $_js in my compile() method (defined above)...
				$compiler
					->write('ob_start();')
					->raw(PHP_EOL);

				$compiler
					->subcompile( $this->getNode('params')->getNode($i) );

				$compiler
					->write('$_js[] = ob_get_clean();')
					->raw(PHP_EOL);

was outputting just fine, the value of $_js comes out as NULL in Twig 3.9.3.
I'm curious why this is so feel free to fill me in if you happen to understand, but I burned enough time trying to figure this out so I killed my custom extension entirely and am using a custom filter instead ({% apply js %}) as a solution.

I'm pretty sure your issue is related to latest Twig updates, not Timber.
Checkout the Twig changelog, there has been some changes related to the yield output which doesn't play nicely with output buffering.
https://github.com/twigphp/Twig/blob/3.x/CHANGELOG

@nlemoine That must be it.  I'm not very familiar at with the yeild keyword or how generator functions work.  Thanks. 👍


Install cargo install cargo-binutils failed

Dear Nihal,
I have an issue related to installing cargo-binutils .
Following you document, Cargo-binutils is necessary for developing rustboot.
When I run command:
cargo install cargo-binutils
the issues happen as below:
Updating crates.io index
 Downloaded cargo-binutils v0.3.4
 Downloaded 1 crate (25.0 KB) in 0.82s
 Installing cargo-binutils v0.3.4
 Downloaded adler v1.0.2
 Downloaded cfg-if v1.0.0
 Downloaded failure v0.1.8
 Downloaded cargo_metadata v0.11.4
 Downloaded itoa v1.0.1
 Downloaded memchr v2.4.1
 Downloaded cc v1.0.72
 Downloaded failure_derive v0.1.8
 Downloaded miniz_oxide v0.4.4
 Downloaded object v0.27.1
 Downloaded quote v1.0.14
 Downloaded proc-macro2 v1.0.36
 Downloaded regex v1.5.4
 Downloaded rustc-demangle v0.1.21
 Downloaded serde v1.0.133
 Downloaded semver v0.10.0
 Downloaded synstructure v0.12.6
 Downloaded toml v0.5.8
 Downloaded unicode-width v0.1.9
 Downloaded libc v0.2.112
 Downloaded semver-parser v0.7.0
 Downloaded unicode-xid v0.2.2
 Downloaded rustc-cfg v0.4.0
 Downloaded addr2line v0.17.0
 Downloaded syn v1.0.85
 Downloaded bitflags v1.3.2
 Downloaded autocfg v1.0.1
 Downloaded atty v0.2.14
 Downloaded aho-corasick v0.7.18
 Downloaded serde_json v1.0.74
 Downloaded vec_map v0.8.2
 Downloaded anyhow v1.0.52
 Downloaded ansi_term v0.12.1
 Downloaded backtrace v0.3.63
 Downloaded rustc_version v0.2.3
 Downloaded clap v2.34.0
 Downloaded gimli v0.26.1
 Downloaded regex-syntax v0.6.25
 Downloaded textwrap v0.11.0
 Downloaded serde_derive v1.0.133
 Downloaded strsim v0.8.0
 Downloaded semver v0.9.0
 Downloaded ryu v1.0.9
 Downloaded 43 crates (3.7 MB) in 1.09s
  Compiling proc-macro2 v1.0.36
  Compiling unicode-xid v0.2.2
  Compiling syn v1.0.85
  Compiling memchr v2.4.1
  Compiling libc v0.2.112
  Compiling serde_derive v1.0.133
  Compiling autocfg v1.0.1
  Compiling serde v1.0.133
  Compiling cc v1.0.72
error: linker `cc` not found
 |
 = note: No such file or directory (os error 2)

error: could not compile `serde` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-binutils v0.3.4`, intermediate artifacts can be found at `/tmp/cargo-install5CVCfB`

Caused by:
 build failed

Could you support me fix this issue.
Thanks,
Best regards,
Dinh Thanh Viet

My guess is your installation has some issues. I think you can update your installation by running rustup update.


We need an option for specifying language by more than the first line of a file

We need a way to associate ARM template files with a language ID separate from the current JSON language.  Unfortunately, the existing firstLine filter for languages doesn't suffice for ARM templates (or for any other sub-JSON support). ARM template files are .json files and generally look like this:
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "<IP_ADDRESS>",
"parameters": {
The $schema value is the key to knowing if it’s an ARM template (technically it could be anywhere in the file although it’s usually at the top like this).  So we need a way to check further into the file than the first line.  Thanks!

Quick "me too" and not limited to JSON - think about XML at the same time...

I would like to see this resolved as well. I'm looking at implementing better support for editing Swagger/OpenAPI JSON files. However, there are two major versions of the standard with different JSON Schemas, and the recommended way to tell one from another is to check values of the top level "swagger" or "openapi" fields.

This will not work even if we had a property to match on the first 3 lines because of https://github.com/Microsoft/vscode/issues/53350. Unless the file extension is different and no registration exists for the file extension, we would not pick up such a contribution. The contributions based on content currently only win if no other registration was picked based on filename, path or extension.

After talking to @aeschli and @egamma here is a proposal also based on https://github.com/Microsoft/vscode/issues/10915 and https://github.com/Microsoft/vscode/issues/53350
Introduce a new preamble matcher
Today we have the possibility to contribute languages based on firstLine. This is not enough for Azure resources that have marker text spanning multiple lines. We should have a new contribution mechanism preamble that is defined as the first lines of a file (e.g. 3-5). We still need to decide if we require the target text to be fully included in these lines or if we allow glob matching too as we do with firstLine.
Allow language extensions to override built in extensions by more than one rule
Even if we allow this new preamble matcher, an extension will not be able to overrule our built in JSON extension because we always first try to match on file extensions and only ever consider textual content if no extension matches based on the file name and extension.
To enable this, we would need a new way for extensions to contribute a language based on multiple conditions, not just one. For example:
"contributes": {
  "languages": [
    {
      "id": "azure-json",
      "rules": {
          "extensions": [".json"],
          "preamble": "<some text in Azure JSON resources>"
       }
    }
  ]
}

(this format is just an idea taken from https://github.com/Microsoft/vscode/issues/10915 and is up for debate)
//cc @alexandrudima

Perhaps there is some backstory to this request, but I don't understand why do we need to create a new language when the file is a .json file and has JSON syntax.

@alexandrudima How would this approach play with built in 'json-language-features' extension? Currently it supports two languages 'json' and 'jsonc'.  Will it have to be updated to include new language IDs?

No changes would be needed to the JSON extension.

@alexandrudima This proposal looks good to me. However, in order to supply JSON Schemas for the documents which lack "$schema" attribute, I propose to extend 'json-language-features' extension, to expose API to supply schemas. I've opened a PR #73424 which should give an idea to what I'm looking to do. I would appreciate a feedback on it.


cmake errors out

I'm building a project with Boost 1.79 via vcpkg.
Since Boost.URL isn't in vcpkg I'm using CPM.cmake (a wrapper over FetchContent) which is used successfully for various other things.
There's no version or tag so I'm using a hash directly like so:
CPMAddPackage("gh:CPPAlliance/url#aecf3a621805c764017dfb92a79008cb74f1229c")

Note I haven't added anything else to cmake as yet.
It downloads ok:
[CMake] -- CPM: adding package url@0 (aecf3a621805c764017dfb92a79008cb74f1229c to C:/Temp/cpm-source-cache/url/f99d17f730b235622d8217f31f9c10de78e58446)

However later it errors out:
1> [CMake] -- Found Boost: <...>/out/build/x64-debug-clang/vcpkg_installed/x64-windows-cpp20/include (found version "1.79.0") found components: coroutine iostreams thread context regex chrono atomic
1> [CMake] CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:573 (_add_executable):
1> [CMake]   _add_executable cannot create target "tests" because another target with
1> [CMake]   the same name already exists.  The existing target is a custom target
1> [CMake]   created in source directory
1> [CMake]   "C:/Temp/cpm-source-cache/url/f99d17f730b235622d8217f31f9c10de78e58446/test".

I'm not sure why it's trying to add a 'test' target in the first place.
I saw another ticket saying detection of an existing Boost tree was heuristic, so maybe it's that.
Either way is there anything I can set in cmake to make this work?
Is there another recommended way to add this repo (short of a copy-paste into our source tree)?
Thx.

put the url directory in ${BOOST}/libs and then from the command line run b2 headers in ${BOOST} to create the symlinks. Or you can manually add ${BOOST_DIR}/libs/url/include to your projects set of include paths (-I is the compiler switch I believe).

This is where I put mine:

@mark-99
I believe https://github.com/CPPAlliance/url/pull/236 fixes your problem.

Putting URL into Boost tree isn't really an option - Boost is installed by vcpkg in an opaque cached location (which can be cleaned).
#236 was tricky to try out as it's not merged, but I manually copy-pasted over the CMakeLists.txt, but still gives the same error.

Putting URL into Boost tree isn't really an option - Boost is installed by vcpkg in an opaque cached location (which can be cleaned).

Yes. Patching boost is not always easy.

https://github.com/CPPAlliance/url/pull/236 was tricky to try out as it's not merged,

git clone --branch cmake_root https://github.com/alandefreitas/url.git

or (IIRC)
CPMAddPackage("alandefreitas/url#cmake_root")

but I manually copy-pasted over the CMakeLists.txt, but still gives the same error.

According to your error, the script is trying to create two tests targets. If you look into url/test/CMakelists.txt, you'll see that  Boost.URL won't create this target if it's already defined. And if you look at your error, it's trying to create this target in vcpkg.cmake, not url/test/CMakelists.txt.
This means your script is trying to create a tests target after Boost.URL was included. But I don't have enough information to tell you where. In any case, you have two solutions:

Include Boost.URL after the first test target has been created. I don't know how hard this is because I don't know where it's being created.
Include Boost.URL at any point and not let Boost.URL create the test target. You just need to set the option BOOST_URL_BUILD_TESTS to OFF.

In CMake
set(BOOST_URL_BUILD_TESTS OFF CACHE BOOL "")
CPMAddPackage("alandefreitas/url#cmake_root")

In CPM:
CPMAddPackage(
  NAME             boost_url
  VERSION       cmake_root
  GITHUB_REPOSITORY alandefreitas/url
  OPTIONS
      "BOOST_URL_BUILD_TESTS OFF"
)

By the way, this helped me notice the tests target is not namespaced and therefore ambiguous. This creates problems even though it won't recreate the target because the target might be created later. I don't know if this name is just a coincidence or purposeful.

It looked to me from the logs like the clash was with Boost itself.
The ordering isn't under my control, as vcpkg runs first as a 'toolchain'.
I do have a target called 'tests', but my understanding is that'll be namespaced to my project() (and removing it doesn't change anything).
set(BOOST_URL_BUILD_TESTS OFF CACHE BOOL "")
CPMAddPackage("alandefreitas/url#cmake_root")

gives this error:
1> [CMake] CMake Error at C:/Temp/cpm-source-cache/cpm/CPM_0.35.0.cmake:345 (message):
1> [CMake]   CPM: Can't determine package type of 'alandefreitas/url#cmake_root'
1> [CMake] Call Stack (most recent call first):
1> [CMake]   C:/Temp/cpm-source-cache/cpm/CPM_0.35.0.cmake:440 (cpm_parse_add_package_single_arg)

I think this is missing the "gh:" prefix
CPMAddPackage("gh:alandefreitas/url#cmake_root")

or just try the other CPMAddPackage overload
CPMAddPackage(
  NAME              boost_url
  VERSION           cmake_root
  GITHUB_REPOSITORY alandefreitas/url
  OPTIONS
      "BOOST_URL_BUILD_TESTS OFF"
)

Gah, sorry of course - fixed. I also renamed my own "tests" target to something with a prefix to get that out of the way (as that was conflicting also, I guess because of the missing namespace you mentioned).
It gets past 'configuring' stage now, then a bunch of these:
1> [CMake] -- Configuring done
1> [CMake] CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:573 (_add_executable):
1> [CMake]   Target "boost_url_limits" links to target "Boost::align" but the target was
1> [CMake]   not found.  Perhaps a find_package() call is missing for an IMPORTED
1> [CMake]   target, or an ALIAS target is missing?
1> [CMake] Call Stack (most recent call first):

<similarly config, core, type_traits, system, variant2>

1> [CMake]   C:/Temp/cpm-source-cache/url/48c40181141f1a07fa89480a101e059b7e0a4fdf/test/limits/CMakeLists.txt:15 (add_executable)
1> [CMake] -- Generating done
1> [CMake] CMake Generate step failed.  Build files cannot be regenerated correctly.

Note I have added the named boost packages to vcpkg so they are all installed now, usually for header-only that's all you need to do (for link-time ones you have to list them in target_link_libraries() also). Like so:
find_package(Boost COMPONENTS coroutine iostreams thread REQUIRED)
target_link_libraries(${TARGET} PRIVATE ${Boost_LIBRARIES})

I'm not clear why the library is attempting to add an executable - I really just want the headers.
Well it's getting further at least :)

What you get now is:
Target "boost_url_limits" links to target "Boost::align" but the target was not found
So:

boost_url_limits is a test, so it means you haven't disabled the tests yet with BOOST_URL_BUILD_TESTS
The build script assumes find_package(Boost) is going to find Boost. Manually listing and calling find_package for each transitive dependency is unfeasible. So if you are getting individual libraries from vcpkg (not the complete boost package), it's not that easy to make it work:

You'll need to at least download all the boost modules Boost.URL depends on.
And then get passed that.
It might easier to just download the thing and not include the subdirectory. In CPMAddPackage, that would be the DOWNLOAD only option. Then you just call target_include_directories with your target and the Boost.URL include directory.

I'm doing this:

set(BOOST_URL_BUILD_TESTS OFF CACHE BOOL "")
CPMAddPackage("gh:alandefreitas/url#cmake_root")

All the dependent modules are downloaded. Here is that part of my manifest:

    "dependencies": [
        "boost-align",
        "boost-assert",
        "boost-beast",
        {
            "name": "boost-asio",
            "default-features": false,
            "features": [ "ssl" ]
        },
        "boost-circular-buffer",
        "boost-config",
        "boost-conversion",
        "boost-core",
        "boost-describe",
        "boost-interprocess",
        "boost-iostreams",
        "boost-mp11",
        "boost-predef",
        "boost-stacktrace",
        "boost-static-string",
        "boost-system",
        "boost-thread",
        "boost-type-traits",
        "boost-variant2",
(etc...)

find_package(Boost) works elsewhere, here is an excerpt from my main CMakeLists.txt:
find_package(Boost COMPONENTS coroutine iostreams thread REQUIRED)
target_link_libraries(${TARGET} PRIVATE ${Boost_LIBRARIES})

DOWNLOAD only option
I'll give that a try.

So on the latter option, changing VERSION to GIT_TAG so it doesn't prepend 'v' and this works:
CPMAddPackage(
  NAME              boost_url
  GIT_TAG           cmake_root
  GITHUB_REPOSITORY alandefreitas/url
  OPTIONS          "BOOST_URL_BUILD_TESTS OFF"
  DOWNLOAD_ONLY
)

However haven't figured out how to actually use it from there:
find_package(boost_url CONFIG REQUIRED)

yields
1> [CMake] CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package):
1> [CMake]   Could not find a package configuration file provided by "boost_url" with
1> [CMake]   any of the following names:
1> [CMake]
1> [CMake]     boost_urlConfig.cmake
1> [CMake]     boost_url-config.cmake
1> [CMake]
1> [CMake]   Add the installation prefix of "boost_url" to CMAKE_PREFIX_PATH or set
1> [CMake]   "boost_url_DIR" to a directory containing one of the above files.  If
1> [CMake]   "boost_url" provides a separate development package or SDK, be sure it has
1> [CMake]   been installed.

just doing
find_package(boost_url REQUIRED)

doesn't complain but doesn't seem to do much, in particular ${BOOST_URL_HEADERS} isn't set so there's nothing to pass to target_include_directories

You don't anything after CPMAddPackage.
# Add package
CPMAddPackage(
    # boost.url info
)

# Use package
add_executable(my_target main.cpp)
target_link_libraries(my_target PRIVATE boost_url)

CPMAddPackage is not something you do before find_package. CPMAddPackage is an alternative to find_package (with pros and cons).

ok, TIL. You do need find_package for things installed via vcpkg, so I just left it when I migrated some libraries to CPM, and it didn't do any harm (if apparently wrong/redundant).
Also I figured it would be needed when using the DOWNLOAD_ONLY... otherwise is anything actually pulling it into cmake?
Anyway, I removed that and now it looks like this:
set(BOOST_URL_BUILD_TESTS OFF CACHE BOOL "")
CPMAddPackage("gh:alandefreitas/url#cmake_root")

target_link_libraries(${TARGET} PRIVATE boost_url)

and still getting this error:
1> [CMake]   Target "boost_url_limits" links to target "Boost::align" but the target was
1> [CMake]   not found.  Perhaps a find_package() call is missing for an IMPORTED
1> [CMake]   target, or an ALIAS target is missing?

(and then for config, core, system, type_traits, variant2).
You said "boost_url_limits was a test and that flag is supposed to switch tests off, but seems like that isn't working.
Here is the CMakeCache.txt:
//Build boost::url examples
BOOST_URL_BUILD_EXAMPLES:BOOL=OFF

//Build boost::url tests
BOOST_URL_BUILD_TESTS:BOOL=ON

//Install boost::url files
BOOST_URL_INSTALL:BOOL=ON

If I manually change the flag:
//Build boost::url tests
BOOST_URL_BUILD_TESTS:BOOL=OFF

then it builds ok, I can #include <boost/url.hpp> (albeit with some warnings):
C:\Temp\cpm-source-cache\url\48c40181141f1a07fa89480a101e059b7e0a4fdf\include\boost\url\grammar\detail\charset.hpp(136,39): warning : use of old-style cast [-Wold-style-cast]
          __m128i r2 = _mm_loadu_si128( (__m128i const*)r );

So I guess the question now is why is that set() not overriding the cache var.
In case it's not obvious I'm not a cmake expert, but after some googling I tried FORCE:
set(BOOST_URL_BUILD_TESTS OFF CACHE BOOL "" FORCE)

and that works. (If that's not the right thing to do let me know).
Out of interest I also went back to the main repo:
CPMAddPackage("gh:CPPAlliance/url#aecf3a621805c764017dfb92a79008cb74f1229c")

and that also works.
So it seems like #236 maybe wasn't the problem, but forcing off the tests was the solution (as well as removing find_package).

Well... the test subdir is only included when the option is ON:
https://github.com/CPPAlliance/url/blob/5c307a889af674bcacb8ba4e5f15e1c9a949b6f9/CMakeLists.txt#L134-L136
I'm updating the PR to link "boost_url_limits" properly to Boost::headers but your script shouldn't be creating "boost_url_limits" at all.
You could try the complete CPMAddPackage overload, but I'm not sure it's going to make any difference. It might be handling the options differently.
But if it works when you change the flag manually, then it just means you haven't cleared the cache before trying. Whenever you change an option in CMake you have to clear the cache.
https://stackoverflow.com/questions/9680420/looking-for-a-cmake-clean-command-to-clear-up-cmake-output

the main repo and that also works.

Yes. It should work because BOOST_URL_BUILD_TESTS is in the cache now. CMake can get this value from the command line, from the cache, or from the script. The first time you ran the script, it was stored in the cache. Whenever you clear the cache, it's going to stop working unless you provide BOOST_URL_BUILD_TESTS in the command line or in the script.

So it seems like https://github.com/CPPAlliance/url/pull/236 maybe wasn't the problem

Yes. The description in #236 is not very good. This PR eventually became a number of sometimes unrelated small fixes to the cmake scripts, including some problems we brought up in this issue. Without #236 your script probably wouldn't work, because it wouldn't call find package.
Since you are now setting options anyway, things might work for you without the cmake_root branch if you set the options BOOST_URL_BUILD_TESTS=OFF and BOOST_URL_FIND_PACKAGE_BOOST=ON. #236 is providing better defaults depending on the parent context.

consider defaulting BOOST_URL_BUILD_TESTS to OFF

The default is not ON. The default ${BUILD_TESTING}
https://github.com/CPPAlliance/url/blob/5c307a889af674bcacb8ba4e5f15e1c9a949b6f9/CMakeLists.txt#L31
${BUILD_TESTING} is a convention for users to determine if they want to run tests.
https://cmake.org/cmake/help/latest/module/CTest.html
In other words, BUILD_TESTING control tests in general and BOOST_URL_BUILD_TESTS control boost.url tests. That's why the default is neither ON nor OFF.

cmake + Boost from vcpkg is exactly an obscure use case,

Yes. It's not. If vcpkg supports find_package(Boost) then support is the same. #236 should help a little, but both should be possible.

so hopefully we can make things smoother for others

The boost review starts in two weeks, so it will be necessarily as smooth as any other boost library after that :crossed_fingers: .

Ah the clearing of the cache. And people say cmake is unintuitive, they must be crazy. Ok.
Yes getting it into vcpkg and Conan (either as an official part of Boost or before that) would probably help adoption.
Anyway it's working now, I'll get to the actual using the library part now and see how that goes.

Is there documentation somewhere for how to build boost-url as a submodule with cmake and existing boost via vcpkg cmake toolchain file? Can't get it working and haven't got the time to try too hard right now! 🙏🏼  I'm on latest develop (6fb56ede700df0d74b616383e30f180aeaaf65e9).
Main CMakeLists.txt:
find_package(Boost 1.78.0 REQUIRED COMPONENTS timer)
...

set(BOOST_URL_BUILD_TESTS OFF)
add_subdirectory(submodules/boost-url)

CMake generation is fine, but build has errors:
[build] FAILED: submodules/boost-url/CMakeFiles/boost_url.dir/src/src.cpp.o
[build] /usr/local/bin/cmake -E time /opt/gcc/gcc-11.3/bin/g++ -DBOOST_URL_NO_LIB=1 -DBOOST_URL_STATIC_LINK=1 -I/home/jarrod/Dev/table-ws-ng/submodules/boost-url/include -isystem /home/jarrod/Dev/table-ws-ng/out/build/linux-debug/vcpkg_installed/x64-linux/include -g -std=gnu++20 -MD -MT submodules/boost-url/CMakeFiles/boost_url.dir/src/src.cpp.o -MF submodules/boost-url/CMakeFiles/boost_url.dir/src/src.cpp.o.d -o submodules/boost-url/CMakeFiles/boost_url.dir/src/src.cpp.o -c /home/jarrod/Dev/table-ws-ng/submodules/boost-url/src/src.cpp
[build] In file included from /home/jarrod/Dev/table-ws-ng/submodules/boost-url/include/boost/url/grammar.hpp:32,
[build]                  from /home/jarrod/Dev/table-ws-ng/submodules/boost-url/include/boost/url.hpp:13,
[build]                  from /home/jarrod/Dev/table-ws-ng/submodules/boost-url/include/boost/url/src.hpp:28,
[build]                  from /home/jarrod/Dev/table-ws-ng/submodules/boost-url/src/src.cpp:10:
[build] /home/jarrod/Dev/table-ws-ng/submodules/boost-url/include/boost/url/grammar/string_view_base.hpp: In function ‘std::size_t boost::urls::grammar::hash_value(const boost::urls::grammar::string_view_base&)’:
[build] /home/jarrod/Dev/table-ws-ng/submodules/boost-url/include/boost/url/grammar/string_view_base.hpp:838:16: error: ‘hash_value’ was not declared in this scope
[build]   838 |         return hash_value(s.s_);
[build]       |                ^~~~~~~~~~

I got it working with vcpkg with a custom port (not a submodule):
Set a custom port dir: "VCPKG_OVERLAY_PORTS": "${sourceDir}/ports",
In ports/boost-url
vcpkg.json:
{
    "name": "boost-url",
    "version-semver": "0.0.1",
    "dependencies": [
        {
            "name": "vcpkg-cmake",
            "host": true
        },
        {
            "name": "vcpkg-cmake-config",
            "host": true
        }
    ]
}

portfile.cmake
vcpkg_from_github(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO CPPAlliance/url
    REF 67b444405736c1157d9c7a23bbd7470e3026a538
    SHA512 22a7b024bdb9a0375341ee7e758bf6c9ced133367cf1642068711a10ae774646e509aba62998d65fc0a063e3a87c9b4a89e36f2635a7efda34cdeac12331fb50
    HEAD_REF master
)

vcpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS -DBOOST_URL_BUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBOOST_URL_BUILD_EXAMPLES=OFF
)

vcpkg_cmake_install()

REF is a git sha from the boost-url repo, or you can use tags etc., see the vcpkg docs.
SHA512 is a file checksum, just set it to 0 and let it configure and it'll tell you what it expected, then fill that in.

build has errors

It looks like you have to update boost.

I updated my vcpkg boost dependencies to 1.80 and it worked with what I had above:
find_package(Boost 1.80.0 REQUIRED COMPONENTS timer)
...

set(BOOST_URL_BUILD_TESTS OFF)
add_subdirectory(submodules/boost-url)

Side note: for those using vcpkg manifest mode, this blog post is a useful read.


Improve maven plugin regex

/test jvm-build-service-in-repo-apicurio-e2e

/test jvm-build-service-in-repo-apicurio-e2e

Awesome, looks like Kafka worked.


WIP: Print ocp

@ocots I think that one should be able to write (more readable)
        ee = QuoteNode(e)
        code = Expr(:block, init, code, :( $ocp.model_expression=$ee ), :( $ocp ))

instead of
        code = Expr(:block, init, code, :( $ocp.model_expression=$(QuoteNode(Expr(:$, e)))), :( $ocp ))

but this violates some precondition (ERROR: AssertionError: ocp.model_expression.head == :$ Stacktrace:...) in print.jl. Is this really necessary?
Moreover, the similar assertion on :block is violated in this (incomplete but allowed) case:

Other point: would nice to remove (...) encapsulating lines, and comments #...
On my side: checking the Line 0 vs. 1 thing.

@ocots what about this PR? I am not sure about what you have done / plan to do.

Yes this can be closed. I have seen this PR once I have made the changes.


Feature/resource manager

Thanks for all of your work and effort guys!
Just two things before going into review:

I see no point in removing the original assets since they were good to have to test the engine features
We should also resolve conflicts before reviewing probably

I agree about the assets, I remove them because it was easy to test features and never load them again.
Conflicts are resolved already

Scene contains absolute path which breaks the engine

When i drag a file and then click the resource to load it it crashes

 Scene contains absolute path which breaks the engine

Sorry! Big mistake there. Thank you @Bernatmago for fixing it

@Bernatmago what changes did you request? I can't see them


Adjust Json DTO accessors to allow using them in custom converters.

Description

Motivation and Context

Resolves nanoFramework/Home#1183

How Has This Been Tested?

Local build + pipeline (does not require more testing in my opinion)

Screenshots
Types of changes

[ ] Improvement (non-breaking change that improves a feature, code or algorithm)
[ ] Bug fix (non-breaking change which fixes an issue with code or algorithm)
[x] New feature (non-breaking change which adds functionality to code)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Config and build (change in the configuration and build system, has no impact on code or features)
[ ] Dependencies (update dependencies and changes associated, has no impact on code or features)
[ ] Unit Tests (add new Unit Test(s) or improved existing one(s), has no impact on code or features)
[ ] Documentation (changes or updates in the documentation, has no impact on code or features)

Checklist:

[ ] My code follows the code style of this project (only if there are changes in source code).
[ ] My changes require an update to the documentation (there are changes that require the docs website to be updated).
[ ] I have updated the documentation accordingly (the changes require an update on the docs in this repo).
[ ] I have read the CONTRIBUTING document.
[ ] I have tested everything locally and all new and existing tests passed (only if there are changes in source code).
[ ] I have added new tests to cover my changes.

I've also remove some parameterless constructors. The logic behind was simple - previously they were internal without any references. Now, because we are going with "public" let's clean it to keep public API minimal as possible.


Provenance docs page

Right now the provenance docs page just points to the provenance blog post and says "these docs are coming soon, we promise!"

I think this has been removed from the docs. Closing.


Add CocoaPods support

Thanks for this pull request!
I'd already started on a podspec, so I decided just to finish that one.
Is there a particular reason for committing the Gemfile? I haven't seen other projects do that.

That's for some people haven't install beta CocoaPods, or want use different version of CocoaPods by project (like me), so we use bundler to install gems for project. for more, please visit http://bundler.io.


Article without latitude & longitude will kill map

If the articles query returns articles without a latitude and longitude, the map cannot be drawn, console.log shows the same error as described in this bug.

All articles have a lat & long due to geocoding, so I do not know well this applies.


x/pkgsite: package removal request for github.com/MIN-Group/minlib

What is the path of the package that you would like to have removed?
https://pkg.go.dev/github.com/MIN-Group/minlib
https://github.com/MIN-Group/minlib
Are you the owner of this package?
Yes
What is the reason that you could not retract this package instead?
the repository was made private

Done!


Ragafoo/feature/issue 37

Completes issue # 37.
Changes in this pull request:

HTML templating and Filtering
Business List component management(should probably update this to state management)
-Making it do what it do

Please follow the naming convention for commits and also rebase regularly to avoid merge conflicts like this. The project has changed a lot since you last pulled code from remote. You'll have to consolidate those changes such that there are no merge conflicts on this PR. We can work through it tonight.

@ragafoo I tried to consolidate your changes today but there's some strange stuff going on here. I would recommend you reclone the repo in a new directory and try to make your changes there and submit a new pull request. There should be many less changes in the new PR than there are in this one. Don't forget to include the issue # in the commit message according to the contribution guidelines.


Fixes #36 Client::setUri() should keep relative uri status

Provide a narrative description of what you are trying to accomplish:

[x] Are you fixing a bug?

[x] Detail how the bug is invoked currently.
Supply relative uri to Client::setUri()
[x] Detail the original, incorrect behavior.
It convert to absolute uri
[x] Detail the new, expected behavior.
It should keep as relative uri
[x] Base your feature on the master branch, and submit against that branch.
[x] Add a regression test that demonstrates the bug, and proves the fix.
[x] Add a CHANGELOG.md entry for the fix.

After some check, I think relative url should not be allowed instead in Zend\Http\Client, so, instead of keeping it, we can do these options:

throw Exception to warn user to use absolute URI, OR
set URI to use current host detected as $lastHost = $this->getRequest()->getUri()->getHost();

@webimpress I've added the tests for check isAbsolute()

@weierophinney done ;). All incorporated.

@samsonasik https://travis-ci.org/zendframework/zend-http/jobs/415602200#L792

@weierophinney should be fixed now

travis green

@weierophinney mergeable ?


Feature Request: Support queryClient Parameter in Generated React Query Hooks

What are the steps to reproduce this issue?

Use Orval to generate a react-query client from an OpenAPI specification.
Review the generated code for a query, such as useGetApiV3Ticker.

What happens?
The generated code structure for queries (e.g., useGetApiV3Ticker) does not provide a way to pass a queryClient as the second parameter to the useQuery hook from react-query. This limitation prevents the developer from customizing the query client at a hook level, which is necessary for certain scenarios.
Example generated hook
export const useGetApiV3Ticker = <TData = Awaited<ReturnType<typeof getApiV3Ticker>>, TError = AxiosError<Error>>(
 params?: GetApiV3TickerParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getApiV3Ticker>>, TError, TData>, axios?: AxiosRequestConfig}

  ):  UseQueryResult<TData, TError> & { queryKey: QueryKey } => {

  const queryOptions = getGetApiV3TickerQueryOptions(params,options)

  const query = useQuery(queryOptions) as  UseQueryResult<TData, TError> & { queryKey: QueryKey };

  query.queryKey = queryOptions.queryKey ;

  return query;
}

What were you expecting to happen?
I was expecting the generated code to provide a means to pass a custom queryClient as an optional second parameter to the generated hook. This would allow for greater flexibility and control over the query handling within the application, especially in cases where different components or hooks may require different query client configurations.
Expected generated hook
export const useGetApiV3Ticker = <TData = Awaited<ReturnType<typeof getApiV3Ticker>>, TError = AxiosError<Error>>(
 params?: GetApiV3TickerParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getApiV3Ticker>>, TError, TData>, axios?: AxiosRequestConfig},
queryClient?: QueryClient

  ):  UseQueryResult<TData, TError> & { queryKey: QueryKey } => {

  const queryOptions = getGetApiV3TickerQueryOptions(params,options)

  const query = useQuery(queryOptions, queryClient) as  UseQueryResult<TData, TError> & { queryKey: QueryKey };

  query.queryKey = queryOptions.queryKey ;

  return query;
}

Any logs, error output, etc?
N/A - This issue pertains to the structure of the generated code rather than a runtime error.
Any other comments?
This limitation becomes particularly restrictive in frameworks like Astro, where sharing state between components using the Context API is not as straightforward as in other React environments. In such cases, being able to pass a custom queryClient directly to the useQuery hook becomes essential.
What versions are you using?
Operating System: N/A
Package Version: 6.25.0
Browser Version: N/A

This is also needed for vue-query too please - as there’s no way to use this Orval’s generated methods inside Pinia stores! (as per my understanding), but instead only in Vue components which in our scenarios really overcomplicate the UI layer of the code.
Or is there any temporary workaround for this anyone may know please?

No know workaround that I know of.


feat: Added rebasing to a signed image

I moved the logic from ucore-autorebase.sh into the service itself, to minimize leftover files.
I also added another service to rebase to the signed image, after the initial rebase-and-reboot, just like blue-build/template recommends in the README.
I ripped out RemainAfterExit=yes since i couldn't figure out why it was needed.
I added --bypass-driver to the rebase commands to bypass this error: (building on ucore-minimal)

Apr 25 19:50:33 localhost.localdomain rpm-ostree[1846]: error: Updates and deployments are driven by Zincati (zincati.service)
Apr 25 19:50:33 localhost.localdomain rpm-ostree[1846]: See Zincati's documentation at https://github.com/coreos/zincati
Apr 25 19:50:33 localhost.localdomain rpm-ostree[1846]: Use --bypass-driver to bypass Zincati and perform the operation anyways

I'm not sure if that is the best way to handle it?
I'm guessing Zincati should be completely disabled since it isn't compatible with OCI images, but haven't gotten that far into the weeds yet.
PS.: I redid my contribution to pass the automated test. I'm sorry if i spammed someones indbox.

@exponentactivity oh :-) you re-opened already... ( https://github.com/ublue-os/ucore/pull/151#issuecomment-2081151457 )
Thanks! I'm reviewing.


Point metadata at DEPLOY_PRIME_URL to show better previews

Netlify fills out DEPLOY_PRIME_URL with the public url of a deploy batch (i.e. previews, branch deploys). Pointing images at this will let us test link previews before merging into main.

Did you mean to include all the blog commits in here too?

Nope. You didn't. Which is why you just closed this. :)

Closing this and reopening to force netlify to generate new prerenderings 😂


[K8SPG-166] Install/Uninstall/Upgrade container resource quotas

See: https://jira.percona.com/browse/K8SPG-166

Test name
Status

init-deploy
passed

demand-backup
passed

upgrade
passed

scaling
passed

smart-update
passed

recreate
passed

version-service
passed

affinity
passed

monitoring
passed

scheduled-backup
passed

self-healing
passed

operator-self-healing
passed

clone-cluster
passed

tls-check
passed

users
passed

ns-mode
failed

commit: https://github.com/percona/percona-postgresql-operator/pull/194/commits/b60d0d099eaaf9e08f1c7f0b60905d07a37186be
image: perconalab/percona-postgresql-operator:PR-194-b60d0d09-pgo-apiserver
image: perconalab/percona-postgresql-operator:PR-194-b60d0d09-pgo-event
image: perconalab/percona-postgresql-operator:PR-194-b60d0d09-pgo-rmdata
image: perconalab/percona-postgresql-operator:PR-194-b60d0d09-pgo-scheduler
image: perconalab/percona-postgresql-operator:PR-194-b60d0d09-postgres-operator
image: perconalab/percona-postgresql-operator:PR-194-b60d0d09-pgo-deployer

@djtaylor Please check out the https://github.com/percona/percona-helm-charts
We consider removing 'crunchy' helm from this very repo

it was moved to https://github.com/percona/percona-helm-charts


SQL Analytics custom role not giving the required access

I have a successfully installed and enabled SQL Analytics solution in a Log Analytics Workspace, I have confirmed access to it with a Subscription Contributor account.
I want to give access to an SQL admin test account to view the SQL Analytics soultion, this test user is in an Azure AD group that has the following Azure RBAC roles assigned at the subscription level:

SQL DB Contributor
SQL Security Manager
SQL Server Contributor

I have succesfully created the SQL Analytics Monitoring Operator custom role by copying the code in this article and have used it to assign access to my Azure AD SQL Admins group that contains my test user to the AzureSQLAnalytics solution resource.
In the Azure Portal under Solutions I can now see the AzureSQLAnalytics solution (the test user account could previously not see this) that I have previously enabled in my Log Analytics Workspace.
I can open the solution and can see the Overview blade.
However when I click on View Summary the Summary tile changes to the progress indicator 3 blue dots and stays like this seeming indefinately - it never opens the summary.
Also if I click View Logs on the Summary tile I get an access denied message.
This test user account has no explicty permissions set on the Log Analytics Workspace that hosts the SQL Analytics soultion other that the 3 SQL RBAC roles referenced inherited from the subscriptin level.
I am using the Log Analytics Resource-context access control for granting Log Analytics permissions so I don't want to set any explicit permissions on the workspace.
Is this articale missing another step?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 77f273ec-aed5-1f65-0b6d-87240765d3e0
Version Independent ID: d195959f-5742-7d94-f4f5-e70c0f0581e7
Content: Azure SQL Analytics solution in Azure Monitor - Azure Monitor
Content Source: articles/azure-monitor/insights/azure-sql.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @danimir
Microsoft Alias: danil

Hi @OwainWin, Thanks for the Comment. We are actively investigating and will get back to you soon.

@OwainWin Apologies for delayed response , can you please review the below documentation for access to log data and workspaces in Azure Monitor.
Manage access to log data and workspaces in Azure Monitor
Hope the above information helps. At this point it appears that there's no further edits or updates needed to the documentation. We will go ahead and close this issue, however if you have any further queries please tag us in your reply and will be happy to reopen the thread and continue the conversation. Thank you

Thanks, I have followed that article and have even given the user Contributor access to the subscription with so success.  I have logged a separate support call to look at this issue as appears something is not right in my environment.
From: BharathNimmala-MSFT<EMAIL_ADDRESS>Sent: 20 July 2020 15:37
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Owain Winterbone (ITCS - Staff<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] SQL Analytics custom role not giving the required access (#58903)
Warning: This email is from outside the UEA system. Do not click on links or attachments unless you expect them from the sender and know the content is safe.
@OwainWinhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOwainWin&data=02|01|o.winterbone%40uea.ac.uk|5b7b4d50805040bf734b08d82cba5085|c65f8795ba3d43518a070865e5d8f090|0|1|637308526009945653&sdata=8e3j6hpQ5rEGivWUiYossXBC%2B7qTWIw5a6H%2FrMZ9FSM%3D&reserved=0 Apologies for delayed response , can you please review the below documentation for access to log data and workspaces in Azure Monitor.
Manage access to log data and workspaces in Azure Monitorhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fmanage-access&data=02|01|o.winterbone%40uea.ac.uk|5b7b4d50805040bf734b08d82cba5085|c65f8795ba3d43518a070865e5d8f090|0|1|637308526009945653&sdata=qNFiQJUm9UNeXIM7t3IMr3xEfy0SgGutaHF2p5AsbGs%3D&reserved=0
Hope the above information helps. At this point it appears that there's no further edits or updates needed to the documentation. We will go ahead and close this issue, however if you have any further queries please tag us in your reply and will be happy to reopen the thread and continue the conversation. Thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F58903%23issuecomment-661079564&data=02|01|o.winterbone%40uea.ac.uk|5b7b4d50805040bf734b08d82cba5085|c65f8795ba3d43518a070865e5d8f090|0|1|637308526009955649&sdata=2vxJrXaFiHIii1%2Bb%2BS428cP7GKSg28vaihZx6p8ew7o%3D&reserved=0, or unsubscribehttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGFS4PAP4UTOHILHAKOC5IDR4RI7NANCNFSM4OYSRUYA&data=02|01|o.winterbone%40uea.ac.uk|5b7b4d50805040bf734b08d82cba5085|c65f8795ba3d43518a070865e5d8f090|0|1|637308526009955649&sdata=2H6i6lkIY6NgRswKxm5FSaGgp3FYzwesZq8tEiPcqok%3D&reserved=0.


add Nix install instructions

(tested on NixOS. Not yet tested on other Nix-enabled Linux or on Nix-enabled macOS, but should work there, too, I hope.)

Thanks! :tada: Can you move the section below macOS? I would estimate that more people use Arch or macOS than a Nix based system :slightly_smiling_face:

Can you move the section below macOS?

Done

I would estimate that more people use Arch or macOS than a Nix based system :slightly_smiling_face:

True, but certainly more people use an OS where Nix is available (=could be installed, if wanted) than one where homebrew is available (=could be installed, if wanted). :wink:
(OK, alright, not quite true if we count Linuxbrew as a homebrew variant.)

Thanks :slightly_smiling_face:


Smart web view

Can i instal just  web view  witout other files

no idea what you're trying to say buddy.


Bug: Error: Os not found, some dependencies may  be required (hole thing doesnt work)

Describe the bug
When starting ZenMaxBuilder it begins at asking anykernel clone and if said yes it fails.
Expected behavior
Should start normaly
Logfile
no logs
Screenshots

Desktop (please complete the following information):

OS: ArchLinux
Terminal used: included terminal
Bash version:  5.1.16

Smartphone (please complete the following information):

Device: Sm-A750FN (a7y18lte)
OS: android 10

Why running with sudo?
The package manager is detected with which built-in, so what's the output of which pacman ?
Anyway, you can also manualy install dependencies and set AUTO_DEPENDENCIES to False in user.cfg

I will try it. I run sudo because it said that permission is denied.

I guess git is missing


New version: StratiGraphics v0.2.1

Registering package: StratiGraphics
Repository: https://github.com/juliohm/StratiGraphics.jl
Created by: @juliohm
Version: v0.2.1
Commit: 01656834c62e424b02522ae5272f6785dbb73d44
Reviewed by: @juliohm
Reference: https://github.com/juliohm/StratiGraphics.jl/commit/01656834c62e424b02522ae5272f6785dbb73d44#commitcomment-35668969

Your new version pull request met all of the guidelines for automatic merging.
I will automatically merge this pull request during the next cron job.
If you want to prevent this pull request from being auto-merged, simply leave a comment.
(If you want to post a comment without blocking auto-merging, you must include the text [noblock] in your comment.)

On a separate note, I see that you are registering a release with a version number of the form v0.X.Y.
Does your package have a stable public API? If so, then it's time for you to register version v1.0.0 of your package. (This is not a requirement. It's just a recommendation.)
If your package does not yet have a stable public API, then of course you are not yet ready to release version v1.0.0.

[noblock]


Add_forms

[ ] Create a current_user
[ ] method
[ ] Use that to create post
[ ] Use that to create comments
[ ] Allow use to like post
[ ] Ensure all linters pass

thank you @BertrandConxy and @danmainah


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v5.0 to before v5.4.125",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=58956317c8de52009d1a38a721474c24aef74fe7",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d99029e6aab62aef0a0251588b2867e77e83b137"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "58956317c8de52009d1a38a721474c24aef74fe7",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "d99029e6aab62aef0a0251588b2867e77e83b137",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "neighbour: allow NUD_NOARP entries to be forced GCed\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.4.125 by commit d99029e6aab62aef0a0251588b2867e77e83b137, it was introduced in version v5.0 by commit 58956317c8de52009d1a38a721474c24aef74fe7. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1000761


test: add new tests

:tada: This PR is included in version 0.25.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Go version in output of ./dm-master -V is incorrect

What did you do?
make GO=gotip build
./bin/dm-master -V
What did you expect to see?
...
go version devel go1.24-86bec1ec Tue Jul 30 23:42:46 2024 +0000 linux/amd64
...
What did you see instead?
...
go version go1.22.5 linux/amd64
...
Versions of the cluster
DM version (run dmctl -V or dm-worker -V or dm-master -V):
(paste DM version here, and you must ensure versions of dmctl, DM-worker and DM-master are same)

Upstream MySQL/MariaDB server version:
(paste upstream MySQL/MariaDB server version here)

Downstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
(paste TiDB cluster version here)

How did you deploy DM: tiup or manually?
(leave TiUP or manually here)

Other interesting information (system version, hardware config, etc):
>
>

current status of DM cluster (execute query-status <task-name> in dmctl)
(paste current status of DM cluster here)

/severity minor

Setting any non-default go version will show this issue, e.g.:
make GO=go1.21rc2 build


Categories is not shown when user look at image properties for the first time (immediately after saving)

Summary:
When the user adds image and then sees image properties no category is shown even if the category was selected and save button is clicked.
Expected behavior:
The category should be immediately shown after saved. If the user doesn't see the selected category, he may think that something goes wrong and category selection is not working.
Observed behavior:
No category is shown if the user looks at image properties immediately after saving it.
Commons app version:
2.6.7
Screen-shots:
I have clicked save and then try to see properties of uploaded image

Would you like to work on the issue?
yes

The same issue is already mentioned at https://github.com/commons-app/apps-android-commons/issues/1290. But the reason for this was not described. I think it happens because when the user clicks "save" system does not wait until successful saving, just adds network request to the queue (as in public void onCategoriesSave(List categories) in ShareActivity. So when the user goes to image info result of the request may not be available yet. But users don't want to know anything about our network and inner work, so I think this situation needs to be solved. There are two possible options^ save categories locally or show some indicator that informs the user that setting category is in progress.

How soon afterwards do you check?
Indeed, categories are submitted afterwards through an edit to the uploaded file. So there can be a delay. Saving categories locally can be an option, but in that case you need to check if remote categories exist and then replace the local categories with them (because the user can add categories through the browser, so the remote copy is the better one to use).
To be honest I'm not sure if all that work is worth it for the convenience of being able to see categories immediately (instead of 5 minutes later), but if you would like to work on it, please feel free. :)

I just uploaded an image and categories are there. This should be solved.


ImportError: No module named 'cell_workers'

Expected Behavior
Expected the bot to start
Actual Behavior
Returns an error:
File "pokecli.py", line 41, in
from pokemongo_bot import PokemonGoBot, TreeConfigBuilder
File "E:\Bot\PokemonGo-Bot\pokemongo_bot_init_.py", line 17, in
import cell_workers
ImportError: No module named 'cell_workers'
Steps to Reproduce
Followed installation guide for Windows step-by-step with no errors up until I run (python pokecli.py)
Other Information
OS: Windows 10 32bit
Python Version: Python 3.5.2

Experienced same issue.
Switch to python 2.7. It solved the issue for me

i got same error with python 2.7

Switching to Python 2.7.x fixed that error for me, thanks.

deletec python 3.4 form my system and now i get his error: ImportError:
No module named pgoapi.exceptions

Solved: after removing python 3.4, i used  pip install -r requirements.txt  command in cmd


Deprecate the NotYetDeprecated stuff

Fixes https://github.com/flutter/flutter/issues/108327.
Fixes for the downstream Linux flutter_plugins failures are pending in https://github.com/flutter/packages/pull/3599 and https://github.com/flutter/packages/pull/3600.

Closed in favor of https://github.com/flutter/flutter/pull/116793.


Displaying issue with specific nfo files

NFO files by the group ps0 cannot be displayed correctly. Looks like that: http://i.imgur.com/cTNf0QU.png
nfo file for testing: http://www56.zippyshare.com/v/fBBgBvdT/file.html

Could be related to this issue: https://github.com/NewEraCracker/nfo2png/issues/1

Could you please link to files that are easily downloadable and not leading to scam/spam unclear downloads? I was not able to download the file and I don't want to hassle with sites like that. Please use an easy solution like Cloud.app or your own FTP.

The NFO renderer is working 100%. If the files don't render, they are not proper. They either have a wrong encoding and / or wrong chars. A NFO file is a file that comes with the ancient DOS encoding (CP437 or equivalent) and uses the extended ASCII set to draw it's content. We sadly cannot work around issues by people who misuse the format, possibly to make it render in modern applications like Notepad. Please use the last release of Ascension (Ascension III - v3.0.0 - codename: Magrathea ), open the NFO file and try to change the encoding to Unicode UTF-8 or any other modern encoding, maybe Win-1252. The file should render now. If so, the files have a wrong encoding. If not, I need a file to evaluate what's the problem. But its definitely an unproper file, thats a fact as the NFO renderer is 100% implemented. Here is how you switch encodings http://cl.8-bit.info/3E1r411R2p1a

Let me know how it works. I will keep this issue open until then.

Thanks for your reply.
Sorry, I'm not using any cloud services. I tried to upload to another filehoster: http://s000.tinyupload.com/index.php?file_id=05005750082484399991 (download should work, I've tested it).
I'm using the latest Ascension version and tried all different encoding types. Without success. The NFO is still unviewable. I guess you're right, the NFO isn't created correctly. But I think a NFO-Viewer should handle such kind of NFOs.

Thanks mate, I was able to download the file now and test run it. It's like I said, they use Unicode characters to draw the box chars, not the extended ASCII charset (DOS codepage 437). Ascension can open these files and render correctly, however you have to select the Unicode-UTF8 encoding after opening such a file. There are two solutions to work around the problems that arise when using wrong files like this:

Open the file and directly select Unicode-UTF8 encoding. Ascension will render.

Change the ending of the file to .txt and open it with Ascension. Ascension will now assume it is a text file (which it is in fact) and directly open it in Unicode anyway (and render correctly).

I've uploaded a movie to show you what I mean. Note that I use the implemented "Commodore 64" font in Ascension III, so it looks a bit different than the standard DOS font "BlockZone": http://cl.8-bit.info/440J3N1d063C
Now to the root of the problem: using Unicode characters in an .NFO file is completely wrong. What you have here is a text .TXT file that is falsely flagged to .NFO - you could also create a Word document .DOC and flag it to .XLS - which would be as wrong either. It's just not right. Keep in mind that NFO files come from the good old DOS days, which means they should have 80 chars per line and Codepage 437 (or equivalent) encoding, so that these files would still render on a DOS machine. That's what NFO viewers are made for: to correctly render such files with ancient encodings. One of the key aspects of Ascension is to preserve the heritage of these good old days. Here is an early example: http://cl.8-bit.info/1k462h3Q3S2e
I might consider implementing a feature to check whether a NFO file contains Unicode chars and then switching the encoding to Unicode automatically. I see however not a point in this. Ascension can render the file anyway (if you either modify the ending to .txt or simply choose the UTF8 encoding), and it would be notably a workaround for issues that arise from people misusing the .NFO format. I put it on the list "to be considered" though and close the issue for now. Hope this helps.

Thanks for checking that. You're right, it works with UTF-8 rendering. I tested that before, but it didn't work. Looks like there is a small bug. For example: If I firstly select UTF-16 encoding and after that UTF-8 encoding, nothing happens. That was the reason why it didn't work for me yesterday.