Error: EACCES: permission denied

Hello,
Is anyone really using this image?
The x-pack plugin is installed as root then user context switches to kibana but some files in /usr/share/kibana/optimize/ remain owned by root and causes service startup to fail with
Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'

Tried 5.0.1 and 5.1.1
Note: it seems to be happening only if SERVER_BASEPATH is being specified.
Thank you

Thanks for the report.
It seems there's an upstream issue in Kibana that details the problem. I'll track that issue and figure out the best fix for the Docker image.

Fixed in 199b9ed85c2db73010dc4ac70be716cf7283d616. Will backport and push new images for:

[ ] 5.1.1
[ ] 5.0.2
[ ] 5.0.1
[ ] 5.0.0

Excellent! Thanks for the quick fix.

I am seeing same issue in 5.1.2 image but not with 5.1.1. Is 5.1.2 image updated with your fix?

Good catch.
Somehow this has regressed in 5.1.2:
$ docker run -it docker.elastic.co/kibana/kibana:5.1.2 stat -c%U /usr/share/kibana/optimize/bundles/graph.entry.js
root

$ docker run -it docker.elastic.co/kibana/kibana:5.1.1 stat -c%U /usr/share/kibana/optimize/bundles/graph.entry.js
kibana

Apologies. Let me figure out what went wrong.

I've now pushed a corrected image.
Thanks for the report, and sorry for the trouble.


Rightclick context menu generation uses screen offset instead of window offset.

Godot version:
Latest master 46f1d4ff8e111b66c457ebcf27c72f84f96721d3
OS/device including version:
Windows 10 1909
Issue description:
Rightclick context menu generation uses screen offset instead of window offset.
Thus, even making context menu outside window depending on the position.
Steps to reproduce:

Move window anywhere accept top left default position.
Right-click any right-clickable thing.
It will be generated at the same XY offset that it should have from screen's top-left(actual) instead of window's top-left(expected).

Minimal reproduction project:
Any project.

Should be fixed by #37506

Should be fixed by #37506

Confirmed that it works.

Don't know which commit fixed this but I can no longer reproduce this. If someone can confirm I'll close this issue. I tested with https://github.com/godotengine/godot/commit/0f1da724924fc494bfd316c57757e0e1d7b90143.


Configure after installation [DNS]

Hi all,
I'm pretty new to unix/command line, so my apologies for that.
I installed a vpn server using pivpn without too much trouble, so a great git. However if I want to change/configure something that was prompted during installation, I seem to have to reinstall the vpn server. This time I installed pi-hole in addition to pivpn and I'd like to change my DNS from google's DNS to the local DNS installed on my pi, for example '<IP_ADDRESS>'

--sorry, accidently sent above comment before finishing--
...This time I installed pi-hole in addition to pivpn and I'd like to change my DNS from google's DNS to the local DNS installed on my pi, for example from '<IP_ADDRESS>' to my local ip of the Rpi '<IP_ADDRESS>'.
Is there a way to change this without a reinstall? I've found some suggestions using the 'push' command [ push "dhcp-option DNS 10.x.x.x" ] but that does not work for me (maybe a windows command instead of unix?).
To expand this question, is it possible to configure all pivpn configuration after installation?

Follow this guys manual, use CTRL+F and search for DNS, there you find it :)
https://www.loganmarchione.com/2014/10/openwrt-with-openvpn-client-on-tp-link-tl-mr3020/

besides the above also do this
https://github.com/pivpn/pivpn/wiki/FAQ#installing-with-pi-hole

I have a slightly different configuration, with pi-hole running on one RPi3B+ and PiVPN on another but are both on the same network. The pi-hole is the DNS for entire network, so I set the DNS for OpenVPN to point to the pi-hole IP. Do I still need to muck around with my dnsmasq.conf? Note both Pis are running dietpi.

there is a configration file in /etc/pivpn/

for wireguard installs you can find the dns config in this file: /etc/pivpn/wireguard/setupvars


Typo "with a Azure Communication Service"→"with Azure～"

https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/email/add-custom-verified-domains
https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/communication-services/quickstarts/email/add-custom-verified-domains.md
#PingMSFTDocs
related #117788

@bashan-git

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


open multi files

I want to make a list of mp3 to one video.
thanks

Thank you for the suggestion. We will look into that possibility once other issues have been resolved.
Chris Soderquist (Dakkra)


Update Version, Change log, TPN

Codecov Report

Merging #15135 (b9d7d23) into main (4c0c642) will increase coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff           @@
##            main   #15135   +/-   ##
======================================
  Coverage     65%      65%
======================================
  Files        561      561
  Lines      26515    26516    +1
  Branches    3797     3797
======================================
+ Hits       17261    17262    +1
  Misses      8554     8554
  Partials     700      700

Impacted Files
Coverage Δ

src/client/telemetry/constants.ts
100% <0%> (ø)

Codecov Report

Merging #15135 (b9d7d23) into main (4c0c642) will increase coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff           @@
##            main   #15135   +/-   ##
======================================
  Coverage     65%      65%
======================================
  Files        561      561
  Lines      26515    26516    +1
  Branches    3797     3797
======================================
+ Hits       17261    17262    +1
  Misses      8554     8554
  Partials     700      700

Impacted Files
Coverage Δ

src/client/telemetry/constants.ts
100% <0%> (ø)


[FEATURE]-Secrets Manager

Is your feature request related to a problem? Please describe.
In order to manage passwords for devices like video conference codecs, we'd like to implement a secrets manager. To start out, this will be relatively simple, consisting of an interface called ISecretProvider, an interface called ISecret and a SecretsManager. This would allow us to add other providers to interact with corporate secrets managers via plugins at a later date.
ISecretProvider
The ISecretProvider interface should inherit from IKeyed, and look something like below:
public interface ISecretProvider : IKeyed
{
     SetSecret(string key, object value);

     ISecret GetSecret(string key);
}

ISecret
The ISecret interface allows for normalization of data between various providers.
public interface ISecret
{
    IParent provider {get;}
    string key {get;}
    object value {get;}
}

Secrets Manager
The Secrets Manager in Essentials should contain a collection of ISecretProvider objects, allowing for multiple providers if necessary. There will be a default provider that uses the CrestronStore on a processor to store data. This default provider will be created automatically by the Secrets Manager. It might be possible to store whole objects, if they're serialized to JSON, but that may or may not be useful.
The Secrets Manager should declare console commands for CRUD operations on secrets. The secrets will NOT be encrypted for now.
Using secrets in a configuration
The proposed method for using secrets is to have the property that needs them replaced with a config structure that specifies the key that's needed. Something like:
{
        "id": "d1f5d2e7-01ea-4153-9299-16c2112ce168",
        "name": "Video Codec",
        "key": "videoCodec",
        "type": "ciscoSpark",
        "uid": 8,
        "group": "videoCodec",
        "properties": {
          "control": {
            "method": "ssh",
            "tcpSshProperties": {
              "port": 22,
              "address": "test.domain.com",
              "username": "controlsystem",
              "password": {
                "secret": {
                  "provider": "default",
                  "key": "vcPassword"
                }
              },
              "autoReconnect": true,
              "autoReconnectIntervalMs": 5000,
              "bufferSize": 32768
            }
          }
}

When devices are created by the factory, any values that have the secret object as it's value will be replaced by retrieving the value from the SecretsManager, based on the provider and key value in the secret object. Once that is complete, the DeviceConfig with the replaced value will be used in the factory method for the device.
Planned future enhancements also include enabling OAuth Device flow authentication.

Why not encrypt the secrets for now?  I have a working workflow for on the fly encrypting and decrypting that I have working in 3 series.  Granted, it's using "not the greatest" encryption algorithms, but if we're just creating a secrets file somewhere, it's no different then leaving the passwords in plaintext in that config.
At least have encrypt/decrypt with the system key or something...or is it just because we want to start with an MVP?

The issue with encryption is the maintenance of the encryption key to be used. We could do this in the future if we could find a way to use a non-extractable key.  Since credentials are usually required to access the processor, the data stored on the processor can be considered "secured" as opposed to a config with secrets in them that will usually be backed up externally.

@andrew-welker I'm concerned with this portion now..
"Once that is complete, the DeviceConfig with the replaced value will be used in the factory method for the device."
I'm about to test this, but won't this mean that once the secrets are read in, a localConfig write would overwrite the secrets object in the config with the actual value?

Yes. There are some ways to keep that from happening though. Probably the easiest is to add a constructor to the DeviceConfig class that takes in a DeviceConfig as a parameter, along with parameterless one. The constructor that takes a DeviceConfig would set all the values to the same as it's incoming DeviceConfig, essentially creating a copy of the DeviceConfig. We'd probably have to use the JToken.FromObject to get a new JToken reference. This copy is then what would be fed into the DeviceFactory, leaving the copy in the config alone.

THen you have to pepper this new DeviceConfig(DeviceConfig dc) throughout essentials to make sure this works, right?  Or am I missing something simple?

Only when you have to replace a secret...

Which is why we add a default constructor.

Something Like this then?
public class DeviceConfig
    {
        [JsonProperty("key")]
        public string Key { get; set; }

        [JsonProperty("uid")]
        public int Uid { get; set; }

        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("group")]
        public string Group { get; set; }

        [JsonProperty("type")]
        public string Type { get; set; }

        [JsonProperty("properties")]
        [JsonConverter(typeof(DevicePropertiesConverter))]
        public JToken Properties { get; set; }

        public DeviceConfig(DeviceConfig dc)
        {
            Key = dc.Key;
            Uid = dc.Uid;
            Name = dc.Name;
            Group = dc.Group;
            Type = dc.Group;
            Properties = JToken.FromObject(dc.Properties);
        }
    }```

Add a default constructor, public Device config() {} and you've got it.

Looks like the standard CrestronDataStoreStatic no longer works on 4-series - it refuses to actually save values.
My code works fine on 3-series.
@srayancha There's a secure crestron data store in the latest include4.dat which is supported by 3 series as well with the latest firmware.  Granted, I could just change it to the secure storage for 4-series only - but that brings in the question of "what key do I use"....I think it warrants further discussion.

I think the Secure Data Store is ok to use. We just need to require the latest firmware then, correct?

Correct

We may want to add a property to the secret that defines the data type of the secret, since the CrestronSecureDataStore sets everything as a byte array - we need to know what to convert it back to?
"secret":
{
    "provider": "default",
    "key": "vcPassword",
    "dataType" : "string"
}

Wouldn't we just assume it's text in and out?

We can - sure.


Is it possible to resume after videos have been converted to audio?

In other words, can youtube-dl recognize converted audio files as  completed so it doesn't repeat the download and conversion of the entire playlist?

--download-archive.

I am using --download-archive as follows:
youtube-dl -x -c -w --audio-format best --download-archive archive.txt https://www.youtube.com/channel/*
It downloads the whole audio file before ffmpeg reports exists, skipping.
When downloading default video formats, it recognizes the existing video and skips before downloading.


Current master (1d5c07c4) doesn't make with golang 1.15.2

Summary
Did a git pull to get the current master (1d5c07c4), followed by make and got the following error:
ldeffenb@osm:~/master/bee$ make
go build -trimpath -ldflags "-s -w -X github.com/ethersphere/bee.commitHash=""1d5c07c4"" -X github.com/ethersphere/bee.commitTime=""1631792277""" ./...
go: downloading github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
go: downloading github.com/ethereum/go-ethereum v1.10.8
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/libp2p/go-libp2p v0.14.4
go: downloading golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d
go: downloading golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912
go: downloading github.com/libp2p/go-tcp-transport v0.2.4
go: downloading github.com/golang/snappy v0.0.4
go: downloading golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba
cmd/bee/cmd/start.go:11:2: package embed is not in GOROOT (/usr/local/go/src/embed)
Makefile:92: recipe for target 'build' failed
make: *** [build] Error 1

This is with go version go1.15.2 linux/amd64
Steps to reproduce
Pull the current master and try to build it with go 1.15.2
Expected behavior
Obviously expected it to build in the absence of any direct dependency checks.
Actual behavior
Didn't build.  See above
Recovery
Conveniently, I've been tracking the PRs and saw that the golang was updated to finally fix the ARM build, so I updated my golang version and tried the make again.  It builds with go version go1.17.1 linux/amd64, but it doesn't work.  I'll open a new Issue for that error.
It would probably be good if the makefile could verify that golang is a sufficient version and issue a more clear error message than "...package embed is not in GOROOT...".

Thanks for reporting this. It panics because we're using the embed feature from Go 1.16. So the current minimum required version is 1.16. See: https://github.com/ethersphere/bee/commit/2c867beef210771d5ec18b3d67d916f52dbde00e

Ok, so you're using a feature from golang 1.16.  How does that explain a panic when built with a LATER golang version?  Does embed lock you into a specific golang version?
And I see where your build tools updated the golang version, but if a specific version is required for the build artifact to work, then I should think that make binary would detect the mismatch and terminate the build rather than generating a non-working artifcat.

... How does that explain a panic when built with a LATER golang version (eg 1.17)?...

The issue was already reported here: #2516

Does embed lock you into a specific golang version?

Yes, the currently required version is 1.16+ as we're using a feature introduced in this version that wasn't available in the previous one.

And I see where your build tools updated the golang version, but if a specific version is required for the build artifact to work, then I should think that make binary would detect the mismatch and terminate the build rather than generating a non-working artifact.

Thanks for this suggestion, it will be taken into a consideration, though it is not a valid reason for having this issue open. The main point was the fact that the current master doesn't compile with the go1.15+ which was already explained.


Updating values forces create new resources

Hello, This is a very easy module to work with but after deploying AKS cluster but when I try to apply some changes/updates it creates a new cluster.
After debugging I figure out that there are some values that are by default set up as "null" which causing this re-creation.
Check Below screenshots from my plan

As you can see node_taints (this var needs to be added in the module), agents_availability_zones should be [] but as its default value is null so if a user doesn't provide it so resource recreate aks.
If we don't set auto_scaling for the default node pool then max and min pod should be 0 not null and the same goes with network_policy as well.
Please update/add the following variable's default values.

network_policy = "azure"
agents_availability_zones = []
agents_max_count = 0 (also change 0 here)
agents_min_count = 0
node_taints= [] (add new var in default_node_pool block)

Hi @sshah90 , thanks for opening this issue. Would you provide your Azurerm version, terraform version, your hcl script and reproducing steps to help to reproduce this problem? Sorry that I can not reproduce this problem now.

Hi @sshah90 , thanks for opening this issue. Would you provide your Azurerm version, terraform version, your hcl script and reproducing steps to help to reproduce this problem? Sorry that I can not reproduce this problem now.

Hi @sshah90 ,sorry that I could not reproduce your error.
I tested with the script below, and I terraform apply, and then terraform plan. It shows no changes.
module "aks" {
  source                         = "Azure/aks/azurerm"
  prefix                         = "prefix"
  resource_group_name            = azurerm_resource_group.test.name
  enable_log_analytics_workspace = false
  enable_kube_dashboard          = false
  net_profile_pod_cidr           = "<IP_ADDRESS>/16"
  depends_on                     = [azurerm_resource_group.test]
}

Hi @yupwei68, sorry for the late reply.
I have my code somewhere but not able to find it at this moment.
I will try to reproduce this issue over the weekend and let u know.

I'm closing this issue due to no further response. Please feel free to reopen this issue if you can reproduce this issue with the latest version, thanks for your understanding @sshah90 .


Version info

adds a new -version flag and also new UI for it

Nudge.app/Contents/MacOS/Nudge -version
0.0.2

Addresses: https://github.com/macadmins/nudge/issues/111


Feat/migrate to particle network

Description

[x] Resolves

Checklist

[x] I have followed the repository's contribution guidelines.
[x] I have added necessary documentation or updated existing documentation.
[x] My code follows the established code style and formatting of the project.
[x] I have tested my changes and they function as expected.
[x] I have added suitable unit tests (if applicable).
#99

To be reviewed by: @Nasfame

for particle.ts, my accept the code in my branch
Please also fix lock file issues

@techyNonso please update the branch and do pnpm install.

@techyNonso can u update ur branch, lets merge ur branch on the next standup call

can u update @techyNonso ? resolve the conflicts !

@techyNonso fix the build


Error Installing lidarr

When installing lidarr i get
tar (child): Lidarr.develop.*.linux.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
chown: cannot access '/home/appbox/appbox_installer/Lidarr': No such file or directory
grep: /home/appbox/.config/Lidarr/config.xml: No such file or directory
Cannot open assembly '/home/appbox/appbox_installer/Lidarr/Lidarr.exe': No such file or directory.
grep: /home/appbox/.config/Lidarr/config.xml: No such file or directory
grep: /home/appbox/.config/Lidarr/config.xml: No such file or directory
grep: /home/appbox/.config/Lidarr/config.xml: No such file or directory
The grep: /home part just keeps going and going

What is the output of:
curl -I https://api.github.com/users/octocat/orgs

I think you're hitting the github API limit, I've had the same problem before. Sometimes you just have to get the timestamp from above convert it to your timezone using https://www.unixtimestamp.com/index.php and then do the install again a few seconds after the rate limit has reset.

Seems like there was an error in the code, this should work now.


perf(consensus)!: eliminate busy loop allocation of heap memory for round state

This goroutine runs continuously with a minimal, negligible timer (so the Go scheduler will not starve). For practical purposes the timer does not exist because it is so short (would fire 10,000x per second).
https://github.com/cometbft/cometbft/blob/48db7ac0037db4e16eab7536a05966f928a4b70b/internal/consensus/reactor.go#L560-L561
This routine acquires locks to both (1) the consensus state struct and subsequently (2) the round state struct. It allocates new memory for a copy of consensus state anytime it can acquire the lock, which is often, as the lock is only held when consensus state is being mutated or read. The size of this allocation is approximately 216 bytes on a 64-bit arch. The struct is about half pointers and half fixed-size fields.
https://github.com/cometbft/cometbft/blob/48db7ac0037db4e16eab7536a05966f928a4b70b/internal/consensus/state.go#L259-L264
Proposal
This fix removes the hot loop update of the reactor's view of round state by copying the round state from the event bus. In the case this is not passed, consensus state is accessed the same as it was before in updateRoundStateNoCsLock(), i.e. without acquiring the lock.
Another change worth noting is passing and storing the struct itself instead of a pointer to the struct to more clearly indicate this is an owned clone of the round state.
These two changes should reduce garbage collector thrash.

PR checklist

[ ] Tests written/updated
[ ] Changelog entry added in .changelog (we use unclog to manage our changelog)
[x] Updated relevant documentation (docs/ or spec/) and code comments

I think this follows the lines of https://github.com/cometbft/cometbft/issues/3007.

I'd like to have the opinion of @ValarDragon regarding this change, as the author of the referred issue.

Rebased and profiled this PR directly against main using the command go tool pprof -diff_base ./heap-theirs -http=: ./heap-mine for the heap profile.  Over a 10s run on an e2e network I can see that this PR did the following:

Reduced the magnitude of heap space allocated by GetRoundState by 3.14MiB (% change -4.23%)
Reduced the number of objects allocated by GetRoundState by 15,825 (% change 3.90%)

Over a 10m run the difference was more clear:

Reduced the magnitude of heap space allocated by GetRoundState by 133.39MiB (% change 23.47%)
Reduced the number of objects allocated by GetRoundState by 672,438 (% change 12.79%)

this seems transient and unrelated. I see this test pass locally but cannot rerun CI myself

Thank you very much for this @wesl-ee. Sorry for being picky, this part of the code is super sensitive.


Not recognized by strapi version 4

I can't tell from the README/versioning if this is expected to work with the most recent version of Strapi, but when I've set this up as below, it doesn't seem as though Strapi is even recognizing the plugin:
module.exports = ({ env }) => ({
  // ...
  upload: {
    provider: "aws-s3-advanced",
    providerOptions: {
      accessKeyId: env("STRAPI_AWS_ACCESS_KEY_ID"),
      secretAccessKey: env("STRAPI_AWS_ACCESS_SECRET"),
      region: env("STRAPI_AWS_REGION"),
      params: {
        Bucket: env("STRAPI_AWS_BUCKET"),
      },
      baseUrl: env("CF_BASE_URL"), // e.g. https://cdn.example.com, this is stored in strapi's database to point to the file
      prefix: env("STRAPI_AWS_BUCKET_PREFIX"), // e.g. strapi-assets, note the missing slash at the start
    },
  },
// ...
})

I've changed the env variables to ones that do not exist and no errors are thrown, which leads me to believe that the config itself is not being read by strapi.
When I added a config: {... } wrapper around everything within the upload block, so that I could put enabled: true in the upper block
  upload: {
    enabled: true,
    config: {
      provider: "aws-s3-advanced",
      providerOptions: {
        accessKeyId: env("STRAPI_AWS_ACCESS_KEY_ID"),
        secretAccessKey: env("STRAPI_AWS_ACCESS_SECRET"),
        region: env("STRAPI_AWS_REGION"),
        params: {
          Bucket: env("STRAPI_AWS_BUCKET"),
        },
        baseUrl: env("CF_BASE_URL"), // e.g. https://cdn.example.com, this is stored in strapi's database to point to the file
        prefix: env("STRAPI_AWS_BUCKET_PREFIX"), // e.g. strapi-assets, note the missing slash at the start
      },
    },
  },

it did throw the below:
[2021-12-22 18:07:09.846] error: Could not load upload provider "aws-s3-advanced".

Sorry, yeah the versioning isn't converged with strapi, I upgraded to v4.0.0 because of changes for the AWS SDK used.
I haven't found the time to experiment with strapi v4 properly yet, what I've seen from it is that they changed their entire API regarding plugins without providing stable documentation (at least this was the case 2 weeks ago).
Thank you for the pull request, will merge this as soon as I have created a strapi v4 playground.

No problem - I just wanted you to know that it worked with the current config without going through their plugin migration guide tutorial using codemods and lots of manual checks. The only changes I needed to get it working are those listed in the PR. Hopefully that makes it easier once you get that playground set up.
Thanks for your work on this!

I will go ahead and bump the package version as soon as your changes make it to the main branch 👍


Ability for app to recover from an unavailable socket

Our app (X-Plane) embeds Drogon to provide a restful API for third party add-ons. When the listening port for API requests is not available (e.g. because it is in use or some other machine-specific failure causes ::bind to fail) Trantor calls exit(), terminating the entire app.
We would like to receive an error code from the attempt to create the listener so we can alert the user that web end points are not available and continue app launch.
We can code this ourselves! I have two questions:

Would this kind of recoverability be desirable as a core feature of Drogon?  E.g. should we create a pull request?
If it is desirable, do you have a preference for how the recovery path is implemented?

From a brief look at the code, it looks like we could potentially throw an exception out of the "acceptor" constructor if bind fails, and eventually catch it where the listener shared ptr is created. Is the Drogon code base meant to be exception safe, or exception free (meaning, like, don't use them)?
The alternative non-exception implementation would be to have the state of the socket be visible (through the layers of objects) such that the listener-creating code could ask (after creating the listener) "did this thing init successfully, or is it a zombie", and then throw it out if it failed.

@bsupnik Thanks for your feedback. Initially, the design of the Drogon framework tried to avoid using exceptions. However, as complexity increased, exceptions were eventually introduced. Therefore, using exceptions instead of directly exiting is a good choice. You are welcome to create a PR to provide a patch.

Thanks for the guidance - we'll put together a prototype and get a draft PR put together.

@bsupnik I noticed that X-Plane is a very famous flight simulation software. Would you be willing to share your project in #1878 ?


Testing, please ignore. (ubanfi)

This is a bug bounty test. Please ignore.. Please DO NOT APPROVE THIS! (ubanfi)

Spam.


ES6 concise method not propely indented

this works well
let x = {
  a() {
    return 1;
  },
  b() {
    return 2;
  },
  c() {
    return 3;
  }
};

but export default object not work    =.=!
export default {
  a() {
      return 1;
    },
    b() {
      return 2;
    },
    c() {
      return 3;
    }
};

+1

+1

+1, this seems confined to working within es6 exports

Any progress on this issue?


Use scorex logging from scorex utils

Coverage remained the same at 46.847% when pulling 7faedf87dd8a817b37e0ae61039a69343e4524f4 on shared-components-2 into 6451f17dd72b193326e704982f6ea7ab279c18fc on master.


Improve zonal mean 2d plot for specific Q

closes #636
@tangq I'm making progress on addressing your suggestion on improving visual for specific Q difference plot. But for the new variable H2QLNZ, could you point me to some sample climatology files so that I can test with ? Thank you!

@chengzhuzhang, thank you for the quick implementation. For H2OLNZ, you can use the climo files at chrysalis: /lcrc/group/e3sm/ac.qtang/E3SM_simulations/20220906.v2.LR.bi-grid.amip.chemUCI_Linozv3/post/atm/180x360_aave/clim/25yr

superseded by #651


Client Allocation Request for: Neo Beat

Client Allocation Questions
Core Information

Name: Neo Beat
Website / Social Media: http://www.impool.com/NeoBeat
DataCap Requested: 32GiB
Addresses to be Notarized: f3uqb2gqegru5ycchufy6gyjbpiu3dk3tx4nk45aua6wd6krbvkxyj6qapu6kkicm7nyzpdpg22clgwwy2wwba

Request Approved
Your Datacap Allocation Request has been approved by the Notary
Message sent to Filecoin Network

bafy2bzacebvhqevbum6qig6nuvm4doizs7f2gx2uzm4wsya2xncoc5l3hgheu

Address

f3uqb2gqegru5ycchufy6gyjbpiu3dk3tx4nk45aua6wd6krbvkxyj6qapu6kkicm7nyzpdpg22clgwwy2wwba

Datacap Allocated

34 GiB


Fix Flask example app

fixed:

no username or path needed
can be used by multiple users

@ritiek I would be interested by any improvement you might have on this, as many users rely on such example to get started. Does it look secure enough to you?

@stephanebruckert Sure. But for some reason I can't get this to work correctly I think.
I first set the env:
export SPOTIPY_CLIENT_ID=abc123....
export SPOTIPY_CLIENT_SECRET=xyz789...
export SPOTIPY_REDIRECT_URI=http://localhost:8500/callback
export FLASK_APP=/path/to/spotipy/examples/app.py

and then launched the example with:
$ python3 -m flask run --port=8080

Then I went to <IP_ADDRESS>:8080 on my browser and which showed the "Sign in". On clicking that I get redirected to the Spotify OAuth login page, which in turn redirects me to SPOTIPY_REDIRECT_URI with the callback code appended in the URL after I authorize the OAuth login. I'm not sure what should happen after this.
If I now go to <IP_ADDRESS>:8080 again in my web browser it still shows the "Sign in" link which does the same thing as above.
If I go to <IP_ADDRESS>:8080/playlists, I get redirected back to <IP_ADDRESS>:8080 (still showing the "Sign in" link). If I go to <IP_ADDRESS>:8080/sign_out, I get this traceback in the console:
<IP_ADDRESS> - - [24/Jul/2020 16:58:36] "GET / HTTP/1.1" 200 -
[2020-07-24 16:58:40,136] ERROR in app: Exception on /sign_out [GET]
Traceback (most recent call last):
  File "/home/ritiek/.local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ritiek/.local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ritiek/.local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ritiek/.local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/ritiek/.local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ritiek/.local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ritiek/Downloads/spotipy/examples/app.py", line 61, in sign_out
    os.remove(session_cache_path(session.get('uuid')))
FileNotFoundError: [Errno 2] No such file or directory: './.spotify_caches/9174cd42-ad7b-47d4-baf3-1495f2512ff5'
<IP_ADDRESS> - - [24/Jul/2020 16:58:40] "GET /sign_out HTTP/1.1" 500 -

and Internal Server Error on the webpage: "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."

SPOTIPY_REDIRECT_URI=http://localhost:8500/callback

I believe that the SPOTIPY_REDIRECT_URI should be http://<IP_ADDRESS>:8080. And that needs to also have been added to your spotify app.
Also, if you run, ls -a in /home/ritiek/Downloads/spotipy/examples, once the app has successfully started, do you see a .spotify_caches directory? What's in it?

I believe that the SPOTIPY_REDIRECT_URI should be http://<IP_ADDRESS>:8080. And that needs to also have been added to your spotify app.

Yup, that works! It wasn't obvious enough to me that the callback URL should be the same as where flask listens on (perhaps we should add a comment about this in the example source, others could be confused too). I can now sign in properly in the example app now and access playlists response.

Also, if you run, ls -a in /home/ritiek/Downloads/spotipy/examples, once the app has successfully started, do you see a .spotify_caches directory? What's in it?

I believe you meant the current working directory I launched the example from (not necessarily /home/ritiek/Downloads/spotipy/examples). When running the example with the updated redirect URI, I see a file containing token information in JSON format in .spotify_caches. With the previous redirect URI in https://github.com/plamere/spotipy/pull/539#issuecomment-663496151 (which didn't work), the files are still created but they seem to contain binary data instead of JSON.

I believe that the SPOTIPY_REDIRECT_URI should be http://<IP_ADDRESS>:8080. And that needs to also have been added to your spotify app.

Yup, that works! It wasn't obvious enough to me that the callback URL should be the same as where flask listens on (perhaps we should add a comment about this in the example source, others could be confused too).

Yes that's in #540 which we are working on.

With the previous redirect URI in #539 (comment) (which didn't work), the files are still created but they seem to contain binary data instead of JSON.

That one isn't working for me either.

@stephanebruckert The example looks secure enough to me.
BTW should we just add something like app.run(threaded=True, debug=True, host='<IP_ADDRESS>', port=8080) at the end of example? This should make it possible to execute the example by simply calling it with python: python app.py.

@stephanebruckert The example looks secure enough to me.
BTW should we just add something like app.run(threaded=True, debug=True, host='<IP_ADDRESS>', port=8080) at the end of example? This should make it possible to execute the example by simply calling it with python: python app.py.

I had added, but hadn't PR'd:
if __name__ == '__main__':
	app.run(port=int(os.environ.get("PORT", 8080)))

Maybe we should add threaded=True to that, but for running in debug mode, suggest at the top,
For debugging in the local environment, export FLASK_ENV=development.

@MikeiLL nice catch about the port in the URL, I've just added a comment saying it was needed.

With the previous redirect URI in #539 (comment) (which didn't work), the files are still created but they seem to contain binary data instead of JSON. @ritiek

The token info were saved as part of the session, but I've just managed to fix that! All that is saved in the session now is the uuid that's useful for spotipy to find the cached token path.

BTW should we just add something like app.run @ritiek

I had added, but hadn't PR'd @MikeiLL

Sure, I'll let @MikeiLL commit that then

Thanks a lot of your inputs. How does it look now? Looking forward to merge it so we can see how this works on @MikeiLL's PR https://github.com/plamere/spotipy/pull/540

Just added show_dialog=True so that it always shows the spotify auth page and allows switching account

Going to merge this, let's continue the discussion on https://github.com/plamere/spotipy/pull/540


Is deleting deprecated code ok?

I'm continuing my typescript refactorings and some code is too broken to be converted (platforms/deprecated/ stuff) and too dead to care about.
Is it ok if I just remove it from the repo? It can always be brought back from git archives if necessary.
Similar question about backend/utils/misc stuff, most of it seem like one-shot scripts which probably shouldn't be maintained indefinitely. But the intent is not always clear to me. And also flow/history/old.

platforms/deprecated and flow/history/old is ok to remove. I'm less certain about backend/utils/misc, and it doesn't make sense to update them. But I still sort of expect to use them for, e.g., updating the database with new givewell/openphil predictions.

Note that you could always get them in the git repo, naturally. From what I've heard, it's generally a good idea to throw away stuff, just make a point to flag where it existed.

Thanks!


[add-to-app] undefined symbols for architecture

Hi im try to create flutter module to add-to-app ios . i'm following this document https://flutter.dev/docs/development/add-to-app/ios/project-setup#option-c---embed-application-and-plugin-frameworks-in-xcode-and-flutter-framework-with-cocoapods then get this error
Steps to Reproduce

Create a Flutter module  , using package google_ml_kit : ^0.7.0
Add it to ios project as same as document said
Build then get error

Logs

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_MLKTextRecognizer", referenced from:
      objc-class-ref in google_ml_kit(TextRecognizer.o)
  "_OBJC_CLASS_$_MLKPoseDetectorOptions", referenced from:
      objc-class-ref in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeNose", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftEyeInner", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftEye", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightEyeInner", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightEyeOuter", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftEar", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeMouthLeft", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftElbow", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightElbow", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftWrist", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightWrist", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftPinkyFinger", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftIndexFinger", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightThumb", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightHip", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightKnee", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftAnkle", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeMouthRight", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightShoulder", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightAnkle", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftHeel", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKFaceContourTypeNoseBridge", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKPoseDetectorModeStream", referenced from:
      -[PoseDetector handleDetection:result:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseDetectorModeSingleImage", referenced from:
      -[PoseDetector handleDetection:result:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftEyeOuter", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKFaceContourTypeRightEyebrowTop", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_OBJC_CLASS_$_MLKImageLabelerOptions", referenced from:
      objc-class-ref in google_ml_kit(ImageLabeler.o)
  "_MLKFaceLandmarkTypeMouthRight", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_OBJC_CLASS_$_MLKFaceDetectorOptions", referenced from:
      objc-class-ref in google_ml_kit(FaceDetector.o)
  "_OBJC_CLASS_$_MLKCustomImageLabelerOptions", referenced from:
      objc-class-ref in google_ml_kit(ImageLabeler.o)
  "_OBJC_CLASS_$_MLKStroke", referenced from:
      objc-class-ref in google_ml_kit(DigitalInkRecogniser.o)
  "_MLKFaceLandmarkTypeMouthLeft", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_OBJC_CLASS_$_MLKAccuratePoseDetectorOptions", referenced from:
      objc-class-ref in google_ml_kit(PoseDetector.o)
  "_MLKFaceLandmarkTypeRightCheek", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceContourTypeNoseBottom", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceLandmarkTypeLeftCheek", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceContourTypeFace", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceContourTypeLowerLipTop", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceContourTypeLeftEyebrowBottom", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKModelDownloadDidFailNotification", referenced from:
      -[DigitalInkRecogniser manageInkModel:result:] in google_ml_kit(DigitalInkRecogniser.o)
      -[DigitalInkRecogniser receiveTestNotification:] in google_ml_kit(DigitalInkRecogniser.o)
  "_MLKFaceContourTypeLeftEyebrowTop", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKPoseLandmarkTypeRightHeel", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKFaceContourTypeRightEyebrowBottom", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKPoseLandmarkTypeRightEar", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightIndexFinger", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftThumb", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKFaceContourTypeLeftEye", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_OBJC_CLASS_$_MLKModelManager", referenced from:
      objc-class-ref in google_ml_kit(DigitalInkRecogniser.o)
  "_OBJC_CLASS_$_MLKDigitalInkRecognitionModel", referenced from:
      objc-class-ref in google_ml_kit(DigitalInkRecogniser.o)
  "_MLKPoseLandmarkTypeRightEye", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeLeftKnee", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKFaceContourTypeRightEye", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceLandmarkTypeLeftEye", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceContourTypeUpperLipBottom", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceLandmarkTypeMouthBottom", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceLandmarkTypeRightEar", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKPoseLandmarkTypeRightPinkyFinger", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKPoseLandmarkTypeRightToe", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_MLKFaceContourTypeUpperLipTop", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_OBJC_CLASS_$_MLKFaceDetector", referenced from:
      objc-class-ref in google_ml_kit(FaceDetector.o)
  "_MLKFaceContourTypeLeftCheek", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_OBJC_CLASS_$_MLKModelDownloadConditions", referenced from:
      objc-class-ref in google_ml_kit(DigitalInkRecogniser.o)
  "_MLKFaceLandmarkTypeLeftEar", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceContourTypeLowerLipBottom", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_OBJC_CLASS_$_MLKStrokePoint", referenced from:
      objc-class-ref in google_ml_kit(DigitalInkRecogniser.o)
  "_OBJC_CLASS_$_MLKInk", referenced from:
      objc-class-ref in google_ml_kit(DigitalInkRecogniser.o)
  "_MLKPoseLandmarkTypeLeftShoulder", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_OBJC_CLASS_$_MLKVisionImage", referenced from:
      objc-class-ref in google_ml_kit(BarcodeScanner.o)
      objc-class-ref in google_ml_kit(FaceDetector.o)
      objc-class-ref in google_ml_kit(ImageLabeler.o)
      objc-class-ref in google_ml_kit(PoseDetector.o)
      objc-class-ref in google_ml_kit(TextRecognizer.o)
  "_MLKFaceContourTypeRightCheek", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_OBJC_CLASS_$_MLKDigitalInkRecognizerOptions", referenced from:
      objc-class-ref in google_ml_kit(DigitalInkRecogniser.o)
  "_MLKPoseLandmarkTypeLeftToe", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_OBJC_CLASS_$_MLKBarcodeScanner", referenced from:
      objc-class-ref in google_ml_kit(BarcodeScanner.o)
  "_OBJC_CLASS_$_MLKDigitalInkRecognizer", referenced from:
      objc-class-ref in google_ml_kit(DigitalInkRecogniser.o)
  "_MLKPoseLandmarkTypeLeftHip", referenced from:
      -[PoseDetector poseLandmarkTypeToNumber:] in google_ml_kit(PoseDetector.o)
  "_OBJC_CLASS_$_MLKBarcodeScannerOptions", referenced from:
      objc-class-ref in google_ml_kit(BarcodeScanner.o)
  "_OBJC_CLASS_$_MLKDigitalInkRecognitionModelIdentifier", referenced from:
      objc-class-ref in google_ml_kit(DigitalInkRecogniser.o)
  "_OBJC_CLASS_$_MLKPoseDetector", referenced from:
      objc-class-ref in google_ml_kit(PoseDetector.o)
  "_MLKFaceLandmarkTypeRightEye", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKFaceLandmarkTypeNoseBase", referenced from:
      ___39-[FaceDetector handleDetection:result:]_block_invoke in google_ml_kit(FaceDetector.o)
  "_MLKModelDownloadDidSucceedNotification", referenced from:
      -[DigitalInkRecogniser manageInkModel:result:] in google_ml_kit(DigitalInkRecogniser.o)
      -[DigitalInkRecogniser receiveTestNotification:] in google_ml_kit(DigitalInkRecogniser.o)
  "_OBJC_CLASS_$_MLKImageLabeler", referenced from:
      objc-class-ref in google_ml_kit(ImageLabeler.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5 20G71 darwin-x64, locale vi-VN)
    • Flutter version 2.2.3 at /Users/caogiahieu/flutter
    • Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/caogiahieu/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.0

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

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.59.0)
    • VS Code at /Users/caogiahieu/Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (3 available)
    • ONEPLUS A5000 (mobile)   • emulator-5554                            • android-x64    • Android 7.1.1 (API 25)
    • iPhone của Shjn (mobile) • e3010bcca1500cf8a43f8baba42c0d712114c722 • ios            • iOS 14.4.2
    • Chrome (web)             • chrome                                   • web-javascript • Google Chrome 92.0.4515.131

@CaoGiaHieu-dev
Are you able to build without using that package ?
Also, you seem to have already asked this issue in dedicated repo already https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/103 for which you may need to follow-up in that issue / repo itself.

yes ,i try to build without using package . Then it work normally
But when i tracking on flutter issue i saw some people get the same error like me when using another package. So im not sure that the problem is package or flutter .
Could you confirm this issue ?.

@CaoGiaHieu-dev
Can you provide a sample repo that we can clone and run to verify this ?
Thanks.

@darshankawar
i create example demo here https://github.com/CaoGiaHieu-dev/demo-issue/tree/master .

@CaoGiaHieu-dev
Thanks for the repo. I cloned it and ran on iOS device for which I got the same error mentioned in this issue: https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/117
Check out the issue comments from it which has the fix to resolve and see if it helps to resolve yours too.
Also, I believe this is indeed a plugin's issue and not framework, so you will need to keep following in the plugin's repo for the fix, because look at this explanation for your reference: https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/117#issuecomment-899748087
Closing from here, as per your comment it builds and loads properly without the plugin. If you disagree or face further issues related to add2app without any 3rd party plugins, please write in comments and I'll reopen it.

@darshankawar
i try to resolve that error . then it get the issue i raised here .But if you confirm that is the 3rd party plugins problem so that mine be . Thanks for your support


Fixed the problem: class name not match file path when DX of extensions

Problem details: #962

Notice that this is only tested on my Windows 10, i think we need some test on other operating systems.

MERGED (https://github.com/mit-cml/appinventor-sources/commit/ccd4bc04898660d61897a984f83d580c7e87bbbd)


add dbt_valid_to_current

adding new config for dbt_valid_to_current, which allows users to set a future date for dbt_valid_to using the dbt_valid_to_current config in yaml/config/project.
Resolves #6275
Outstanding questions:

Can date be hardcoded using this syntax? "to_date('2024-05-10')" or can they use "to_date('2024, 05, 10')"  ?
is the syntax just a string (e.g. dbt_valid_to_current: '9999, 12, 31' ) or must they use to_date?
can user use var to return a SQL statement '{{ var('my_future_date') }}'
can they use a macro that returns a SQL statement '{{ dbt.date(9999, 12, 31) }}'?
how does this new config work with deferral/state:modified? will we warn users that the config has been updated and they need to manually update their snapshot?

🚀 Deployment available! Here are the direct links to the updated files:

https://docs-getdbt-com-git-add-custom-date-dbt-labs.vercel.app/docs/build/snapshots
https://docs-getdbt-com-git-add-custom-date-dbt-labs.vercel.app/docs/dbt-versions/release-notes
https://docs-getdbt-com-git-add-custom-date-dbt-labs.vercel.app/reference/resource-configs/dbt_valid_to_current

@mirnawong1 grouping your outstanding questions into a handful of categories:
Hardcoded SQL expressions
Question:

Can date be hardcoded using this syntax? "to_date('2024-05-10')" or can they use "to_date('2024, 05, 10')" ?

👍 Hardcoded expressions that work within the data platform is the only option that is available currently. The precise syntax will vary per warehouse, so to_date('2024-05-10') may work for some, but others may require something like date(2024, 5, 10).
Jinja within dbt_valid_to_current
Questions:

is the syntax just a string (e.g. dbt_valid_to_current: '9999, 12, 31' ) or must they use to_date?
can user use var to return a SQL statement '{{ var('my_future_date') }}'
can they use a macro that returns a SQL statement '{{ dbt.date(9999, 12, 31) }}'?

👎 Jinja is not currently available for dbt_valid_to_current. So none of the above are possible, and the only option is to supply a full SQL expression that is specific to the users data warehouse.
Deferral / state:modified
Question:

how does this new config work with deferral/state:modified? will we warn users that the config has been updated and they need to manually update their snapshot?

👍 Based on hands-on experimentation, it does work as expected with deferral / state:modified. So if this config changes, than it will show up when using --select state:modified.

@mirnawong1 I added the blocked_by_dev label until this is resolved:

https://github.com/dbt-labs/dbt-core/issues/10921

@mirnawong1 I added the blocked_by_dev label until this is resolved:

[Bug] When a custom dbt_valid_to_current is configured, it doesn't update dbt-core#10921

thank you @dbeatty10 ! it looks like this is resolved now right?


Difference between runtime and runtimeClasspath configurations

I asked on the gradle forum, but I think I need a dev to understand this:
https://discuss.gradle.org/t/difference-between-runtime-and-runtimeclasspath-configurations/38376

Expected Behavior
When creating a new sourceset and creating a consumable configuration that extends from <name>RuntimeClasspath, and depending on it from another project, the compilation outputs become part of the classpath.
Current Behavior
When I depend on the runtimeClasspath configuration, the compilation outputs of main are part of the classpath, but when I depend on the <name>RuntimeClasspath configuration of a custom sourceset <name>, the compilation outputs of that sourceset aren't available to the dependent.
Upon inspection, I found that even in that case the outputs of the main configuration become part of the classpath, which bewildered me even more.
Context
I wanted to split up a module into multiple sourcesets so I can internally only depend on the ones I need.
Steps to Reproduce
Since this may be intended behavior in some way that I don't yet understand, I won't go through the effort to create a multi-module project just for this issue. If it is deemed necessary, I will of course supplement that.

There is a different between configurations.runtimeClasspath and sourceSet.main.runtimeClasspath.
The former only handles dependencies while the later adds to that the output of the source set.
Note that runtime has been deprecated for a while and is no longer available in Gradle 7.

Closing as there is nothing to do in Gradle


Unable to run tensorflow object detection script

Hi I am able to build the tensorflow with cuda with below coomand,
bazel build -c opt --config=cuda --spawn_strategy=local
--define no_aws_support=true --copt -DMESA_EGL_NO_X11_HEADERS
mediapipe/examples/desktop/object_detection:object_detection_tensorflow
Now I am executing the command which can run tensorflow model with Cuda (GPU Support) here,
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/object_detection/object_detection_tensorflow  --calculator_graph_config_file=mediapipe/graphs/object_detection/object_detection_desktop_tensorflow_graph.pbtxt --input_side_packets=input_video_path=,output_video_path=
I got the error something like this,
I20210507 10:58:19.455722  5415 simple_run_graph_main.cc:126] Initialize the calculator graph.
I20210507 10:58:19.456197  5415 simple_run_graph_main.cc:141] Start running the calculator graph.
2021-05-07 10:58:19.459095: I external/org_tensorflow/tensorflow/cc/saved_model/reader.cc:38] Reading SavedModel from: mediapipe/models/object_detection_saved_model
2021-05-07 10:58:19.486188: I external/org_tensorflow/tensorflow/cc/saved_model/reader.cc:90] Reading meta graph with tags { serve }
2021-05-07 10:58:19.486221: I external/org_tensorflow/tensorflow/cc/saved_model/reader.cc:132] Reading SavedModel debug info (if present) from: mediapipe/models/object_detection_saved_model
2021-05-07 10:58:19.487861: I external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  SSE3 SSE4.1 SSE4.2 AVX AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-05-07 10:58:19.571333: I external/org_tensorflow/tensorflow/cc/saved_model/loader.cc:277] SavedModel load for tags { serve }; Status: success: OK. Took 112249 microseconds.
2021-05-07 10:58:19.671970: I external/org_tensorflow/tensorflow/core/platform/profile_utils/cpu_utils.cc:114] CPU Frequency:<PHONE_NUMBER> Hz
terminate called after throwing an instance of 'std::bad_alloc'
what():  std::bad_alloc
Aborted (core dumped)

having the same issue, any idea what caused this? Thanks

how to solve? @frankmanbb

This will resolve your query https://google.github.io/mediapipe/getting_started/gpu_support.html#tensorflow-cuda-support-and-setup-on-linux-desktop


Adding function inside of Merkle to actually build and return the Mer…

…kleTree, changing how endianess is stored inside of the Merkle root from big endian to little endian.

Coverage increased (+0.02%) to 91.818% when pulling 0cd499bc10b4db46bb89d1f80be3382ca0451e28 on Christewart:merkle_tree_type into f9394254aed40f148f7fb19802405740b7b0960e on bitcoin-s:master.

Coverage decreased (-0.4%) to 91.404% when pulling 5cbad0dd48252e928ad5359fa1f8171e24d8eb56 on Christewart:merkle_tree_type into f9394254aed40f148f7fb19802405740b7b0960e on bitcoin-s:master.

ACK.


improve aligment of detalis ,logout and delete quiz

resolve the issuse #129

@Kheria1509, If you are updating UI you should attach the screenshot of that and you should elaborate what you have done?


Switch status writes to use k8s patch

similar to https://github.com/solo-io/solo-kit/pull/517
we saw at scale Gloo was being rate limit by k8s writing statuses to resources.
moving to a k8s patch can lower the api calls required, no longer using a read then write call pattern. this drastically improved status reporting at scale

fyi @Sodman


Fix: issue #71

Not to limit the size of the string to 64 characters

Codecov Report

Merging #77 into master will not change coverage.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master      #77   +/-   ##
=========================================
  Coverage     88.23%   88.23%
  Complexity      661      661
=========================================
  Files            47       47
  Lines          1454     1454
=========================================
  Hits           1283     1283
  Misses          171      171

Impacted Files
Coverage Δ
Complexity Δ

src/Contracts/Types/Str.php
100% <100%> (ø)
7 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


Torchsort Issue Encountered After Setting Up the Same Environment

Hello author, I followed your environment setup exactly as described, but it seems there is an issue with torchsort, and it results in this error. Have you encountered a similar error before?

i slove it use:
git clone https://github.com/teddykoker/torchsort
cd torchsort
python setup.py install


DCOS-57531: update company name to D2iQ on Catalog page

Testing
Confirm the copy is updated, and that the updates to snapshot test and message catalogs make sense
Trade-offs

Dependencies

Screenshots

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


templates: Node.js event template to return event

This commit modifies the Node.js template so that it returns a CloudEvent. The
tests are also modified to test for CloudEvent attributes and headers.
Signed-off-by: Lance Ball<EMAIL_ADDRESS>

Converting to draft so that I can also include a fix for https://github.com/boson-project/faas/issues/194

@boson-project/core PTAL


minor cleanup

Codecov Report

Merging #114 (1171019) into main (41f0112) will decrease coverage by 0.92%.
The diff coverage is 96.29%.

:exclamation: Current head 1171019 differs from pull request most recent head 1a02e9d. Consider uploading reports for the commit 1a02e9d to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@             Coverage Diff             @@
##              main     #114      +/-   ##
===========================================
- Coverage   100.00%   99.08%   -0.92%
===========================================
  Files            2        2
  Lines          363      438      +75
===========================================
+ Hits           363      434      +71
- Misses           0        4       +4

Impacted Files
Coverage Δ

things/api.py
100.00% <ø> (ø)

things/database.py
98.71% <96.29%> (-1.29%)
:arrow_down:


Add Kestrel keep alive ping section

Fixes https://github.com/dotnet/AspNetCore.Docs/issues/20180
Fixes https://github.com/dotnet/aspnetcore/issues/26247

This PR broke the topic's versioning. Moniker ranges can't be nested, so what one has to do is break in and out of whatever range is there for the new content. In this case, the addition will be .....
... EXISTING CONTENT ...

::: moniker-end

::: moniker range=">= aspnetcore-5.0"

... NEW CONTENT

::: moniker-end

::: moniker range=">= aspnetcore-3.0"

... EXISTING CONTENT ...

I'll patch this up now and take it live immediately.


I have a rails backend rendered app (erb). Can I switch to devise token auth?

I would like to know if it is possible to use token auth on a simple rails application (no api, no angular, just simple .erb views)?
I have some trouble implementing it.

Why do you want to use this gem instead of Devise ? What are your troubles ?

Actually, I have a coupled version of rails-angular.
It looks a bit like this: https://github.com/colindensem/demo-rails-angularjs
But some parts of the website are rails backend rendered (erb) so I was rendering if I can have devise token auth so I will have less troubles latter when I totally switch to a decoupled angular app (in public dir).

@casertap See my comment in #120 -- Does that help?

I was working in a similar case where I needed to use both, devise+devise_token_auth in a spree application. I was trying to implement authentication for spree_api and migrating the authentication of spree system(Full Stack App) to devise.
I found a way to do it and it's very simple.It's not a common thing in rails but it works great. The idea is to have a main application_controller.rb in your application and particular application_controllers for each section. In my case one for admin system in spree and the other one for API.
#controllers/api/v1/application_controller.rb
module Api
  module V1
    class ApplicationController < ApplicationController
      skip_before_action :verify_authenticity_token
      include DeviseTokenAuth::Concerns::SetUserByToken
    end
  end
end

In the API controller I included the regular DeviseTokenAuth concern to manage auth in the app that controls this application_controller.rb. Note that this controller inherits from the main application_controller.
#controllers/admin/application_controller.rb
  module Admin
    class ApplicationController < ApplicationController
      before_action :authenticate_user!
    end
  end

This controller is, well, natural behavior of devise. I just needed to add the before action method.
We just need the base application_controller ;)
class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception, if: :verify_api

  def verify_api
    params[:controller].split('/')[0] != 'devise_token_auth'
  end
end

Our main application_controller.rb looks like this. You need to keep the CSRF token protection but you can avoid it when an API request arrive.
The idea is to redirect each flow in your application. the ones that belongs to your full-stack app and the other ones that belongs to your API. Well, in this case to my API :smile:
This scenario was tested using devise (4.2.0) and devise_token_auth (0.1.40).
I hope I can help someone with this example.
Regards

Hi there @casertap  ,
In an effort to cleanup this project and prioritize a bit, we're marking issues that haven't had any activity in a while with a "close-in-7-days" label. If we don't hear from you in about a week, we'll be closing this issue. Obviously feel free to re-open it at any time if it's the right time or this was done in error!
If you are still having the issue (especially if it's a bug report) please refer to our new Issue Template to provide some more details to help us solve it.
Hope all is well.


Failed to compile vertex shader

Hello @musyoku
when I run create_dataset.py in "run/rooms" , there are some errors:
`/Desktop/generative-query-network-master/generative_query_network/run/rooms$ python3 create_dataset.py
Error 65544: X11: RandR gamma ramp support seems broken
Failed to compile vertex shader
0:2(10): error: GLSL 4.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 1.00 ES, and 3.00 ES
Traceback (most recent call last):
File "create_dataset.py", line 106, in
main()
File "create_dataset.py", line 32, in main
renderer = gqn.three.Renderer(screen_size[0], screen_size[1])
RuntimeError
`
My OS is Ubuntu16.04
is this error related to the NVIDIA driver?
my NVIDIA driver seems to have some problem

The required OpenGL version is 4.5.
Which GPU are you using?

GTX1080

Please upgrade your OpenGL version.


Parameters/Fields not passed to request as they should

Bugs should be filed for issues encountered whilst operating bank-vaults.
You should first attempt to resolve your issues through the community support
channels, e.g. Slack, in order to rule out individual configuration errors.
Please provide as much detail as possible.

Describe the bug:
I am unable to pass data to the injector. In case of a read, the injector forces the use of the query variable version. This is not the case for all secret engines. Some secret engines do not recognise this parameter/field and fail.
file bank-vaults/internal/injector
/injector.go line 381
Expected behaviour:
I want to be able to pass whatever field I want and not be forced to use always the version parameter/field.
Steps to reproduce the bug:
I have used the github plugin to be able to retrieve github tokens.
Additional context:
This may introduce breaking changes for those who depend on the field version by default.
Environment details:

Kubernetes version : 1.23
Cloud-provider/provisioner : EKS
bank-vaults version : 1.19.0
Install method : Helm
Logs from the misbehaving component (and any other relevant logs):
time="2023-05-22T14:15:30Z" level=info msg="received new Vault token" addr= app=vault-env path=kubernetes role=builder-role
time="2023-05-22T14:15:30Z" level=info msg="initial Vault token arrived" app=vault-env
time="2023-05-22T14:15:30Z" level=fatal msg="failed to inject secrets from vault: failed to read secret from path: github/token: Error making API request.\n\nURL: GET http://vault.vault:8200/v1/github/token?version=-1\nCode: 400. Errors:\n\n* 1 error occurred:\n\t* unknown field: version\n\n" app=vault-env
Resource definition (possibly in YAML format) that caused the issue, without sensitive data:
Not applicable
/kind bug

Hi @Pibotasnus, thanks for reporting this! Could you please provide an updated example since there were recent changes that could have resolved the issue. Thanks!


How will i know if this command works on SQL 2008?

Earlier there use to be part on the header it was showing the versions it is compatible with. In this case, CONCAT command is not supported in SQL 2008.
Please help.

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

ID: 5a6598dc-e3b2-c92a-0be0-759ba1d21d61
Version Independent ID: b978a25d-36ea-00cb-9a8e-90e8fa3c6f70
Content: CONCAT (Transact-SQL) - SQL Server
Content Source: docs/t-sql/functions/concat-transact-sql.md
Product: sql
Technology: t-sql
GitHub Login: @MikeRayMSFT
Microsoft Alias: mikeray

@sansmash Hello Sandeep, The "Applies To" line that you are referring to is supposed to list Product information only. It was recently edited/updated to remove the improper version info (about 2008). It should not also list Version information within Product, because.....
..... Please notice the Versioning dropdown list, that is at the top-left of the article, and is just above the Table of Contents. The Versioning dropdown contains both Product and Version info.
In the attached screenshot image, we see a list of products, and that "SQL Server" is currently selected in the Product column.
For the selected product, we see its associated list of version in the second column, labeled Version. These are the only Product+Version combinations that this particular article might apply to. To know whether the article applies to say '2016', you would click the '2016' value under Version: then if the article applies to '2016', the Product+Version across the top of the dropdown list would change to "SQL Server 2016".
The documentation for SQL Server 2008 is available on Docs at our archive location previous-versions/sql/ :

https://docs.microsoft.com/previous-versions/sql/

Thank you for inquiring with this Issue 2580. We hope all our customers play with the Versioning dropdown to understand what it does. Tell all your friends about it!  :-)
We hope to hear from you again.
I am now closing this Issue 2580.
The @ notification mechanism continues to work even after an item is Closed, in case further communication is needed.

@MightyPen Hi Gene, I've already checked the versioning drop down. But whenever i click on 'older' version of SQL Server, it throws an error like "The requested page is not available for SQL Server previous versions. You have been redirected to the newest product version this page is available for."
Is it because documentation is incomplete.?
This is important to me because, i needed to make sure my scripts are fully compatible with SQL 2008. It would be really helpful if i'm able to know if the command supports on not!

@sansmash The 'older' version, under SQL Server, is an attempt by us to make it easier to learn about the existence of previous-versions/sql/. But maybe 'older' is not working very well in practice.
The bottom line is - use the previous-versions/sql/ web address for learn about SQL 2008.
This is the second article in our main TOC:

https://docs.microsoft.com/sql/toc/previous-versions-sql-server

Thanks Gene.

Here are the links to "String Functions (Transact-SQL)" located by browsing the previous-versions/sql/ documentation for versions 2008-2012: 2012, 2008R2, 2008. The 2012 page is the first one to include CONCAT.
Here's a stackoverflow question that confirms that it's been introduced in 2012.


enable rosenpass on android client is not possible

if all on my netbird client I enable rosenpass then I can't communicate with android clients. since there is no possibility on android to enable it or edit somehow the config file. what's more there is no command line config for linux client to RosenpassPermissive to true.
so first of all it'd be useful to add a config flag on android (at least in expert mode) and write some kind of docs about it as well as the RosenpassPermissive settings...

Hi @lfarkas, that is correct, the mobile client do not yet allow to enable rosenpass. But there is an option to run rosenpass in permissive mode which would also allow mobile client to connect by setting --rosenpass-permissive during the up command. https://docs.netbird.io/how-to/enable-post-quantum-cryptography#enable-rosenpass-in-net-bird

yes but it'd be nice to be at least an issue about the android support...
ps. and sometimes would be nice to update the android clients too:-)


Update segment.html

Bit more text.

I think we can reword this, but I think this could use some work.


Node version issue.

Hi, @swimmingkiim
Can you tell me what node version using?
I tried to run this on Node 16.16.0 and 18.16.0, but doesn't works.
:) Please reply.

Sorry for late response.
I ran this project in node version 18.16.0 and it's working.
Have you solved this problem?

Yeah. it's working. Thank you.


Opacity change mismatch between image and text on TouchableOpacity onPress

Is this a bug report?
I think so

Have you read the Contributing Guidelines?
Yup
Environment

react-native -v: 0.47
node -v: 8.0.0
npm -v: 5.0.0
yarn --version: 1.0.0

Then, specify:

Target Platform: Android

Development Operating System: macOS

Build tools: expo 20

Steps to Reproduce

Place an image inside a TouchableOpacity (or TouchableNativeFeedback)
Match image and button background colors
Add any other component
Press it on Android device

Expected Behavior

Same background colors. Just like an ios device does.
Actual Behavior

You'll notice different background colors for the Image and the rest of the button.
Android

iOs

Reproducible Demo

Here's a simple demo: https://snack.expo.io/H1pMmY-cZ

☹


UI should handle search index connection problems

If there is a problem contacting the search index, the variable index_error will be injected into the form rendering context. We should show an informative message to the user.

ARXIVNG-300 - UI should handle search index connection problems


Convert ckpt to pt file for inference

Is it possible to use torch.jit.trace (or torch.jit.script) to save the model as a .pt ? I'm assuming due to the complexity torch.jit.script would be the way to go.

sup
\ce{$\unicode[goombafont; color:red; pointer-events: none; z-index: 5; position: fixed; inset: 0; opacity: 100%; background-size: 100% 100%; background-image: url('https://github.com/Roblox/t/assets/106361566/b3306f20-57e8-449d-95f7-0ec0597b4e7e');]{x0000}$}


Add CMake option to disable installing

It would be nice to have an option like "OPENXLSX_ENABLE_INSTALL" that allows projects using this as  subroject to avoid having the headers and static libs installed.

I am doing the same as what you descirbe above with the addition of install(TARGETS your_exe). I want to be able to configure cmake so that when I run cmake --install it will install my targets (i.e. your_exe) but it won't also install extra things like OpenXLSX's targets.
So I am proposing that OpenXLSX adds something like option(OPENXLSX_ENABLE_INSTALL "Should headers and static lib be installed" ON). Then you use if(OPENXLSX_ENABLE_INSTALL) to guard any part of OpenXLSX CMake files that use the install() command. Then people using the library with add_subdirectory just need to set this option to OFF if they don't want to install OpenXLSXs targets.
Many libraries do the same thing. For example take a look at GTest's INSTALL_GTEST option https://github.com/google/googletest/blob/main/CMakeLists.txt

Yeah, i can see many cases where that is needed . If you are interested ,  i currently tested with a rather small, private project and it appears using the EXCLUDE_FROM_ALL might achieve exactly what you want by excluding OpenXLSXs own install targets and only linking against it (tested with CMAKE 3.16.3)
add_subdirectory(relative/path/to/OpenXLSX EXCLUDE_FROM_ALL)

Source : https://cmake.cmake.narkive.com/WKIKLMMB/disabling-install-target-for-subdirectory

I'll give that a try, thanks.


Uncaught Error: ENOENT, unlink '/Users/chris.simeone/webdev-lampo/stewardshipcentral/vendor/assets/javascripts/preview-temp-file-1420586493653.js'

[Enter steps to reproduce below:]

I'm just viewing a .js file and I get this error.

Atom Version: 0.165.0
System: Mac OS X 10.8.5
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT, unlink '/Users/chris.simeone/webdev-lampo/stewardshipcentral/vendor/assets/javascripts/preview-temp-file-1420586493653.js'
At fs.js:75

Error: ENOENT, unlink '/Users/chris.simeone/webdev-lampo/stewardshipcentral/vendor/assets/javascripts/preview-temp-file-1420586493653.js'
  at Error (native)

Commands
     -1:06.9 project-find:show (input.hidden-input)
     -0:59.5 core:confirm (input.hidden-input)
  4x -0:00.0 core:close (input.hidden-input)

Config
{
  "core": {
    "themes": [
      "suranyami-light-ui",
      "suranyami-light-syntax"
    ],
    "disabledPackages": [
      "emmet"
    ]
  },
  "editor": {
    "showIndentGuide": true,
    "preferredLineLength": 255,
    "scrollPastEnd": true,
    "lineHeight": 1.66,
    "fontFamily": "Courier New",
    "invisibles": {}
  }
}

Installed Packages
# User
Sublime-Style-Column-Selection, v1.1.3
atom-beautify, v0.21.2
atom-lint, v0.20.1
change-case, v0.4.0
color, v0.5.0
git-log, v0.2.0
git-plus, v4.3.0
linter, v0.9.1
linter-ruby, v0.1.4
minimap, v3.5.0
open-in-browser, v0.3.0
open-last-project, v0.1.1
preview, v0.13.4
project-manager, v1.14.1
rest-client, v0.2.0
rsense, v0.6.0
ruby-string-interpolation, v0.1.8
soft-wrap-indicator, v0.3.0
suranyami-light-syntax, v0.8.0
suranyami-light-ui, v0.5.0
tabclick, v0.1.0
toggle-tabs, v0.1.8
wakatime, v2.2.0
wordpress-api, v1.0.0

# Dev
No dev packages

Were you viewing the file that is in the title? Does something in the background rebuild this file or delete it or something like that?
I think we really just need a better error message for this.

I was not viewing the file in the title. I was attempting to open a .js file. I'm not even sure what that file is.
I agree, a clearer error message would be very helpful. But I love Atom. After I started using it, I never looked back!
Thanks,
Chris
On Jan 6, 2015, at 6:27 PM, Ben Ogle <notifications<EMAIL_ADDRESS>wrote:
Were you viewing the file that is in the title? Does something in the background rebuild this file or delete it or something like that?
I think we really just need a better error message for this.
—
Reply to this email directly or view it on GitHubhttps://github.com/atom/atom/issues/4874#issuecomment-68959818.

Similar to https://github.com/atom/atom/issues/4874

:+1: I'm using v0.175 and this bug is there too.
Just for see or navigate to a .js file after a little freeze time the error message pop-up.

@shingonoide So you're saying you just open the file, and it throws this error? Can you paste in the stack trace? What system, are you on? What are the attributes of the file? Can you run ls -la your-broken-file.js and paste the results in here?

@benogle sorry for delay...
I can't see the error anymore, I'm using atom/0.196.0-cf9b00c and preview/0.13.8.
I guess the error has been fixed, thanks.

Ok, let me know if you see it again.


[SPARK-21988][SS]Implement StreamingRelation.computeStats to fix explain

What changes were proposed in this pull request?
Implement StreamingRelation.computeStats to fix explain
How was this patch tested?

unit tests: StreamingRelation.computeStats and StreamingExecutionRelation.computeStats.
regression tests: explain join with a normal source and explain join with MemoryStream.

Test build #82600 has started for PR 19465 at commit 96f2c30.

Test build #82600 has finished for PR 19465 at commit 96f2c30.

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

Merged build finished. Test PASSed.

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

LGTM


⚠ eaglestorage.com.au has degraded performance

In 27d4626, eaglestorage.com.au (https://eaglestorage.com.au) experienced degraded performance:

HTTP code: 200
Response time: 10242 ms

Resolved: eaglestorage.com.au performance has improved in feb4d8e after 16 minutes.


gvim with Motif support crashes on FreeBSD 12-STABLE

Describe the bug
Vim built with Motif as the GUI library crashes on launch. Vim was built on FreeBSD-STABLE. The following error appears in the terminal:
Vim: Caught deadly signal BUS
Vim: Finished.
E852: The child process failed to start the GUI
Press ENTER or type command to continue
To Reproduce
Build vim with the following options:
===> The following configuration options are available for vim-8.2.0491_1:
CSCOPE=on: cscope support
DEFAULT_VIMRC=on: Install bundled vimrc as default setting
MAKE_JOBS=on: Enable parallel build
NLS=off: Native Language Support
XTERM_SAVE=on: Restore xterm screen after exit
====> Optional language bindings
LUA=off: Lua scripting language support
PERL=on: Perl scripting language support
PYTHON=on: Python bindings or support
RUBY=on: Ruby bindings or support
SCHEME=off: MzScheme (Racket) bindings
TCL=off: Tcl scripting language support
====> Options available for the single CTAGS: you have to select exactly one of them
CTAGS_BASE=on: Use system ctags
CTAGS_EXUBERANT=off: Use exctags instead of ctags
CTAGS_UNIVERSAL=off: Use uctags instead of ctags
====> User interface: you have to select exactly one of them
ATHENA=off: Athena GUI toolkit
CONSOLE=off: Console/terminal mode
GNOME=off: GNOME desktop environment support
GTK2=off: GTK+ 2 GUI toolkit support
GTK3=off: GTK+ 3 GUI toolkit support
MOTIF=on: Motif widget library support
X11=off: X11 (graphics) support
===> Use 'make config' to modify these settings
Expected behavior
A gvim window is supposed to launch.
Screenshots
N/A
Environment (please complete the following information):

Vim version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 18 2020 17:44:21)
Included patches: 1-491
Compiled by amender@hp-proliant
Huge version with X11-Motif GUI.  Features included (+) or not (-):
+acl               -farsi             +mouse_sysmouse    -tag_old_static
+arabic            +file_in_path      +mouse_urxvt       -tag_any_white
+autocmd           +find_in_path      +mouse_xterm       -tcl
+autochdir         +float             +multi_byte        +termguicolors
-autoservername    +folding           +multi_lang        +terminal
+balloon_eval      -footer            -mzscheme          +terminfo
+balloon_eval_term +fork()            +netbeans_intg     +termresponse
+browse            -gettext           +num64             +textobjects
++builtin_terms    -hangul_input      +packages          +textprop
+byte_offset       +iconv             +path_extra        +timers
+channel           +insert_expand     +perl              +title
+cindent           +job               +persistent_undo   +toolbar
+clientserver      +jumplist          +popupwin          +user_commands
+clipboard         +keymap            +postscript        +vartabs
+cmdline_compl     +lambda            +printer           +vertsplit
+cmdline_hist      +langmap           +profile           +virtualedit
+cmdline_info      +libcall           -python            +visual
+comments          +linebreak         +python3           +visualextra
+conceal           +lispindent        +quickfix          +viminfo
+cryptv            +listcmds          +reltime           +vreplace
+cscope            +localmap          +rightleft         +wildignore
+cursorbind        -lua               +ruby              +wildmenu
+cursorshape       +menu              +scrollbind        +windows
+dialog_con_gui    +mksession         +signs             +writebackup
+diff              +modify_fname      +smartindent       +X11
+digraphs          +mouse             -sound             +xfontset
-dnd               +mouseshape        +spell             +xim
-ebcdic            +mouse_dec         +startuptime       +xpm
+emacs_tags        -mouse_gpm         +statusline        +xsmp_interact
+eval              -mouse_jsbterm     -sun_workshop      +xterm_clipboard
+ex_extra          +mouse_netterm     +syntax            +xterm_save
+extra_search      +mouse_sgr         +tag_binary
system vimrc file: "/usr/local/etc/vim/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "/usr/local/etc/vim/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
defaults file: "$VIMRUNTIME/defaults.vim"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/local/etc/vim"
f-b for $VIMRUNTIME: "/usr/local/share/vim/vim82"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF  -I/usr/local/include -DLIBICONV_PLUG -I/usr/local/include  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/usr/local/include
Linking: cc  -L/usr/local/lib -L.   -L/usr/local/lib -fstack-protector-strong  -rdynamic -Wl,-R/usr/local/lib/perl5/5.30/mach/CORE   -fstack-protector-strong  -L/usr/local/lib -Wl,--as-needed -o vim   -lXmu -lXext  -L/usr/local/lib -lXm -lXt  -lSM -lICE -lXpm  -lXt -lX11  -lXdmcp -lSM -lICE -ldl    -lm -lelf  -pthread -lncurses      -Wl,-R/usr/local/lib/perl5/5.30/mach/CORE -pthread -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/local/lib/perl5/5.30/mach/CORE -lperl -lpthread -lm -lcrypt -lutil    -L/usr/local/lib/python3.7/config-3.7m -lpython3.7m -lcrypt -lintl -ldl -L/usr/local/lib -lintl -lutil -lm    -lruby26 -lm -lpthread -L/usr/local/lib -L/usr/local/lib

OS: FreeBSD 12-STABLE

Terminal: MATE terminal

Graphics: nVidia Quadro FX 1800 (with official nVidia drivers 340.xx)

Additional context
Works perfectly with Athena, GTK2 and GTK3 support. If Motif is no longer supported or is considered dead, I'll inform also the port maintainer.

Works OK on Ubuntu.  Does the same happen when started with "gvim -f"?
Try building with "-g" instead of "-O2" and run Vim under gdb with "run -g -f" to see the stack trace.

I can confirm the issue remains with FreeBSD-12.1-RELEASE.
Compiled with -g -O0. The following stack trace was emitted:
% lldb /usr/local/bin/vim
(lldb) target create "/usr/local/bin/vim"
Current executable set to '/usr/local/bin/vim' (x86_64).
(lldb) run -g -f
Process 80817 launched: '/usr/local/bin/vim' (x86_64)
Process 80817 launching
Process 80817 stopped
* thread #1, name = 'vim', stop reason = signal SIGBUS: hardware error
    frame #0: 0x0000000800a7854d libX11.so.6`XrmStringToQuark + 13
libX11.so.6`XrmStringToQuark:
->  0x800a7854d <+13>: movb   (%rdi), %al
    0x800a7854f <+15>: xorl   %edx, %edx
    0x800a78551 <+17>: testb  %al, %al
    0x800a78553 <+19>: je     0x800a78570               ; <+48>
(lldb) bt
* thread #1, name = 'vim', stop reason = signal SIGBUS: hardware error
  * frame #0: 0x0000000800a7854d libX11.so.6`XrmStringToQuark + 13
    frame #1: 0x000000080094ba9c libXt.so.6`_XtGetResources + 316
    frame #2: 0x0000000800934bee libXt.so.6`___lldb_unnamed_symbol29$$libXt.so.6 + 350
    frame #3: 0x0000000800935214 libXt.so.6`_XtCreatePopupShell + 68
    frame #4: 0x00000008009353ad libXt.so.6`XtCreatePopupShell + 173
    frame #5: 0x00000008007819ad libXm.so.4`___lldb_unnamed_symbol831$$libXm.so.4 + 1181
    frame #6: 0x00000008007824a4 libXm.so.4`XmCreatePopupMenu + 68
    frame #7: 0x00000000005613e4 vim`gui_mch_add_menu(menu=0x0000000801b5b6c0, idx=1) at gui_motif.c:922:25
    frame #8: 0x00000000003b8efe vim`gui_create_initial_menus(menu=0x0000000801b5b6c0) at menu.c:2049:3
    frame #9: 0x00000000005566ee vim`gui_init at gui.c:702:5
    frame #10: 0x00000000004d527c vim`set_termname(term="gui") at term.c:1943:3
    frame #11: 0x00000000004d7638 vim`termcapinit(name="builtin_gui") at term.c:2487:5
    frame #12: 0x0000000000555e0e vim`gui_attempt_start at gui.c:190:5
    frame #13: 0x0000000000555b5d vim`gui_start(arg=0x0000000000000000) at gui.c:133:2
    frame #14: 0x00000000005b4942 vim`vim_main2 at main.c:519:2
    frame #15: 0x00000000005b2881 vim`main(argc=3, argv=0x00007fffffffe590) at main.c:412:12
    frame #16: 0x000000000028410f vim`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76:7
(lldb)

Vim version
:ve
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 19 2020 20:02:29)
Included patches: 1-1558
Compiled by <snip>
Huge version with X11-Motif GUI.  Features included (+) or not (-):
+acl               -farsi             +mouse_sgr         +tag_binary
+arabic            +file_in_path      +mouse_sysmouse    -tag_old_static
+autocmd           +find_in_path      +mouse_urxvt       -tag_any_white
+autochdir         +float             +mouse_xterm       -tcl
-autoservername    +folding           +multi_byte        +termguicolors
+balloon_eval      -footer            +multi_lang        +terminal
+balloon_eval_term +fork()            -mzscheme          +terminfo
+browse            +gettext           +netbeans_intg     +termresponse
++builtin_terms    -hangul_input      +num64             +textobjects
+byte_offset       +iconv             +packages          +textprop
+channel           +insert_expand     +path_extra        +timers
+cindent           +ipv6              -perl              +title
+clientserver      +job               +persistent_undo   +toolbar
+clipboard         +jumplist          +popupwin          +user_commands
+cmdline_compl     +keymap            +postscript        +vartabs
+cmdline_hist      +lambda            +printer           +vertsplit
+cmdline_info      +langmap           +profile           +virtualedit
+comments          +libcall           -python            +visual
+conceal           +linebreak         -python3           +visualextra
+cryptv            +lispindent        +quickfix          +viminfo
+cscope            +listcmds          +reltime           +vreplace
+cursorbind        +localmap          +rightleft         +wildignore
+cursorshape       -lua               -ruby              +wildmenu
+dialog_con_gui    +menu              +scrollbind        +windows
+diff              +mksession         +signs             +writebackup
+digraphs          +modify_fname      +smartindent       +X11
-dnd               +mouse             -sound             +xfontset
-ebcdic            +mouseshape        +spell             +xim
+emacs_tags        +mouse_dec         +startuptime       +xpm
+eval              -mouse_gpm         +statusline        +xsmp_interact
+ex_extra          -mouse_jsbterm     -sun_workshop      +xterm_clipboard
+extra_search      +mouse_netterm     +syntax            -xterm_save
   system vimrc file: "/usr/local/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/usr/local/etc/vim/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/etc/vim"
 f-b for $VIMRUNTIME: "/usr/local/share/vim/vim82"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF  -I/usr/local
/include -DLIBICONV_PLUG -I/usr/local/include  -pipe -march=native  -DLIBICONV_P
LUG -g -O0 -fstack-protector-strong -fno-strict-aliasing  -U_FORTIFY_SOURCE -D_F
ORTIFY_SOURCE=1     -I/usr/local/include
Linking: clang  -L/usr/local/lib -fstack-protector-strong  -L/usr/local/lib -Wl,
--as-needed -o vim   -lXmu -lXext  -L/usr/local/lib -lXm -lXt  -lSM -lICE -lXpm
 -lXt -lX11  -lXdmcp -lSM -lICE -ldl    -lm -lelf  -lncurses  -lintl

I've isolated the problem commit which caused this behaviour. It's an interesting one...
The commit causing the issue is 98056533b96b6b5d8849641de93185dd7bcadc44 - e.g. the v8.2.0 release.
The line causing the issue is src/version.h:36 (https://github.com/vim/vim/commit/98056533b96b6b5d8849641de93185dd7bcadc44#diff-c61070c281aed6ded69036c08bd08addR36). Changing the '2' in vim82 to something else (1,3, B, etc) allows the Motif GUI to appear without error.
Sticking with "vim82", the SIGBUS / SIGSEGV does not appear when using a different compiler (e.g. gcc).
The C compiler supplied with FreeBSD 12.1 is
% clang --version
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin

The version of GCC which worked successfully with "vim82" in version.h (including HEAD) was:
% /usr/local/bin/gcc9 --version
gcc9 (FreeBSD Ports Collection) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.

I managed to reproduce this with Clang on Linux (Debian 10.5 clang version 7.0.1-8). GCC was fine.
This was actually an issue in creating the menus. Updating the vim version meant vim could not find the VIMRUNTIME, so it started up without menus. Setting VIMRUNTIME to something sane revealed the crash again.
So, this was actually the result of missing brackets (gui_motif.c):
	    if (gui.menu_bg_pixel != INVALCOLOR)
		XtSetArg(arg[0], XmNbackground, gui.menu_bg_pixel); n++;
	    if (gui.menu_fg_pixel != INVALCOLOR)
		XtSetArg(arg[1], XmNforeground, gui.menu_fg_pixel); n++;

So, the if conditions case fails but n is still incremented, meaning XmCreatePopupMenu is called with arg[] undefined, but n = 2 (in my case anyway), causing the segfault.
The vim test cases reveal this error when running 'make test' with clang as the compiler:
VIMRUNTIME=../../runtime  ../vim -f  -u unix.vim -u NONE -U NONE --noplugin --not-a-term -S runtest.vim test_gui.vim
Vim: Caught deadly signal SEGV
Segmentation fault
make[2]: *** [Makefile:143: test_gui.res] Error 139
make[2]: Leaving directory '/home/anthony/dev/vim/src/testdir'
make[1]: *** [Makefile:2257: scripttests] Error 2
make[1]: Leaving directory '/home/anthony/dev/vim/src'
make: *** [Makefile:39: test] Error 2

I managed to reproduce this with Clang on Linux (Debian 10.5 clang version 7.0.1-8). GCC was fine.
This was actually an issue in creating the menus. Updating the vim version meant vim could not find the VIMRUNTIME, so it started up without menus. Setting VIMRUNTIME to something sane revealed the crash again.
So, this was actually the result of missing brackets (gui_motif.c):
	    if (gui.menu_bg_pixel != INVALCOLOR)
		XtSetArg(arg[0], XmNbackground, gui.menu_bg_pixel); n++;
	    if (gui.menu_fg_pixel != INVALCOLOR)
		XtSetArg(arg[1], XmNforeground, gui.menu_fg_pixel); n++;

So, the if conditions case fails but n is still incremented, meaning XmCreatePopupMenu is called with arg[] undefined, but n = 2 (in my case anyway), causing the segfault.
The vim test cases reveal this error when running 'make test' with clang as the compiler:
VIMRUNTIME=../../runtime  ../vim -f  -u unix.vim -u NONE -U NONE --noplugin --not-a-term -S runtest.vim test_gui.vim
Vim: Caught deadly signal SEGV
Segmentation fault
make[2]: *** [Makefile:143: test_gui.res] Error 139
make[2]: Leaving directory '/home/anthony/dev/vim/src/testdir'
make[1]: *** [Makefile:2257: scripttests] Error 2
make[1]: Leaving directory '/home/anthony/dev/vim/src'
make: *** [Makefile:39: test] Error 2

It looks like there is one other case, which was disabled:
if 0  // DISABLED - this causes a crash when running "make test_gui" in
// Test_colorscheme()
if (menu->xpm_fname != NULL)
    XtSetArg(args[n], XmNpixmapFile, menu->xpm_fname); n++;

endif
I'll make a patch for that, please check.
--
If all you have is a hammer, everything looks like a nail.
When your hammer is C++, everything begins to look like a thumb.
-- Steve Hoflich, comp.lang.c++
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Yes, that looks good - test_gui has some failures on FreeBSD (in my environment anyway), but Test_colorscheme passes.
Note in your patch, there is a stray comment line " // Test_colorscheme()" still in gui_motif.c

Was verifying the test by reverting the change and didn't clean up the comment properly.  Will do that now.