AJAX callback and connecting to CakePHP controller

In my previous issue, I noted that I was unable to get any of the AJAX callbacks working. This is despite the controller in my script coming straight out of the jsGrid documentation, and only changed to fit with my URLs.
Table wise, I have two tables:

Resources, which contains the function called manageinstrument, which is where the jsGrid is.
Instruments, which contains functions index add, edit, delete, and which is where I want the AJAX callbacks to direct to.

My grid controller, which is part of the jsGrid script, and in the manageinstrument View:
controller: {
                loadData: function (filter) {
                    $.ajax({
                        type: "GET",
                        url: "localhost/project/instrument/",
                        data: filter
                    });
                },
                insertItem: function (item) {
                    $.ajax({
                        type: "POST",
                        url: "localhost/project/instrument/",
                        data: item
                    });
                },
                updateItem: function (item) {
                    $.ajax({
                        type: "PUT",
                        url: "localhost/project/instrument/",
                        data: item
                    });
                },
                deleteItem: function (item) {
                    $.ajax({
                        type: "DELETE",
                        url: "localhost/project/instrument/",
                        data: item
                    });
                }
            },

This is one of my CakePHP Instrument controller functions: the add function (what I want to be called via AJAX when I do an insertItem):
public function add()
    {

        $instrument = $this->Instruments->newEntity();
        if ($this->request->is(['post', 'ajax'])) {
            $this->Flash->success($this->request->data());
            $instrument = $this->Instruments->patchEntity($instrument, $this->request->data);
            if ($this->Instruments->save($instrument)) {
                $this->Flash->success(__('The instrument has been saved.'));

                return $this->redirect(['action' => 'index']);
            } else {
                $this->Flash->error(__('The instrument could not be saved. Please, try again.'));
            }
        }
        $resources = $this->Instruments->Resources->find('all')->toArray();
        $this->set(compact('instrument', 'resources'));
        $this->set('_serialize', ['instrument']);
    }

I've already tried to change the URL in the jsGrid controller's insertItem function to match my PHP controller function's name, while also adding datatype: "JSON" as follows:
insertItem: function (item) {
                    $.ajax({
                        type: "POST",
                        url: "localhost/project/instrument/add",
                        data: item
                        datatype: "JSON"
                    });
                },

I've also tried an approach I used for a modal that used an AJAX callback:
insertItem: function (item) {
                    $.ajax("localhost/project/instrument/add.json"{
                        data: item
                    });
                },

In all 3 methods, while the jsGrid saves the row of data being inputted, the AJAX callback fails. I did an inspect and checked the source code and the URLs definitely point to the correct Views and I also get no errors in Console. JSON and XML are already implemented, and so I'm just at a loss as to why I can't pass the data to the PHP controller, which would then contact the MySQL database. I know this is affecting all of the AJAX callbacks, as I have one data entry already in the Instruments Controller and that isn't being loaded, and if I Edit a data entry on jsGrid, still nothing changes in the database.
Sorry if it appears like I'm spamming the jsGrid Github - I wasn't sure if I should post this as a comment in the previous issue, or post it as a new issue, given that the previous issue's title related to blank spaces in the jsGrid when adding/editing, which I have since fixed.

+1

Maybe I'm missing something, but you're not calling any of the callbacks provided by .ajax. You need .success, .error or .complete chained to your Ajax call.

@richraid21 Do you mean like this?
insertItem: function (item) {
                                        $.ajax({
                                            type: "POST",
                                            url: "localpath/project/instrument/",
                                            data: item,
                                            success: function(data){
                                                successmessage: "Data successfully inserted."
                                            },
                                            error: function(data){
                                                errormessage: "Data could not be inserted."
                                            },
                                            complete: function(data){
                                                completemessage: "Ajax callback completed."
                                            }
                                        });
                                    }

After running this, I get nothing in response, so I don't think I'm doing it correctly. data in each of the callback function is said to be unused - I thought it would use the data parameter data: item.

It seems that using $.post caused the issue of getting http://localhost/project/instrument/manageinstrument/[object Object] Failed to load resource: the server responded with a status of 404 (Not Found), however while I've fixed that, I'm still yet to be able to save data to MySQL (that tells me the PHP function isn't actually being called).

Fixed! Well at least InsertItem is fixed. Made a really stupid mistake when I Cake Baked and only rebaked the model, rather than the whole thing (so it was not up to date with the database).

Glad that you figured it out!


Update head line figures

Detailed Description
old:

new:

Questions

Should we only show one time in the past? @peterdudfield: just keep one
Do we still want these dynamically to change the the 'selected time'? Notes from 2nd september meeting say keep these static..

Context

Good to make these figures very clear
Good not to take too much vertical room
Note the PV Live data only becomes available around 10 pass the 30 mins. E.g for 12.00. the data is available around 12.10.

Possible Implementation
???

Need to update this with the new design from Elisabeth

duplicate of #256


Adding Canal to master docs

Description
Adding docs only to master though this installation is broken due to a problem that will be addressed soon. The problem is expected to be fixed in a 3.0.x point release and so should be safe to add to the master docs.
The doc is a copy of what was added to the v2.6 docs but the manifests have been updated for v3.x.
Release Note

None required

@tmjd what's up with this guy?

It is waiting on me finishing up the testing that I hope to finish today.
The docs are a copy of what is in v2.6, If you want to take a look at the manifest please do.
I'm going to go ahead and copy the master changes to v3.0 so this PR is ready when I'm happy with the changes.

@emanic Could you take a look at this? There are no doc changes compared to the v2.6 docs but can you let me know if I got the canonical_url and redirect_from right?
@caseydavenport do you want to take a look at the manifest?

OK great, looks like the ST is passing now and the htmlproofer error is expected because of chicken egg problem (new page). We can use admin override for these.


Add July roundup post

This is the first of a serious of mostly roundup posts features new apps, meetups and the like ✨

Great post :ship: 👍


Support net9+ VMR properties

We want to remove the old source build properties from VMR builds in net10. This repo is still on net8, which is fine. Adding support for the net9+ properties will enable removal of support for the old properties in .NET 10 Arcade.
Microsoft Reviewers: Open in CodeFlow

This repo is still on net8

We actually moved to net9 earlier this week 😄


Uncaught TypeError: path must be a string or Buffer

What version of WebTorrent Desktop? (See the 'About WebTorrent' menu)
0.12.0 (0.96.3)
What operating system and version?
OS X 10.10.5
What did you do?
Closed the application with a torrent still loading.
What did you expect to happen?
When I turn on the application everything is unchanged.
What actually happened?
The window is completely blank and the console shows:
Uncaught TypeError: path must be a string or Buffer

And I can't add or remove torrents or interact with them

Can you expand the message to get a stack trace?
Otherwise it would be interesting to know if your WebTorrent config.json file contains a path entry that is not a string?

The stacktrace is totally empty:

And the app looks like:

it's also unmovable for some reason.
However there's an empty entry in my config.json:
{
  "prefs": {
    "downloadPath": "/Users/devster/Downloads/webtorrent",
    "isFileHandler": false,
    "openExternalPlayer": false,
    "externalPlayerPath": null
  },
  "torrents": [
    {
      "..." // other torrents
    },
    {
      "status": "new",
      "infoHash": "fe655f33191175f9aa3ef29f38321ed4ff71ed44",
      "path": "/Users/devster/Downloads/webtorrent"
    },
    {
      "status": "paused",
      "infoHash": "3ba219a8634bf7bae3d848192b2da75ae995589d",
      "name": "The WIRED CD - Rip. Sample. Mash. Share.",
      "displayName": "The WIRED CD - Rip. Sample. Mash. Share.",
      "posterFileName": "3ba219a8634bf7bae3d848192b2da75ae995589d.jpg",
      "torrentFileName": "3ba219a8634bf7bae3d848192b2da75ae995589d.torrent",
      "magnetURI": "magnet:?xt=urn:btih:3ba219a8634bf7bae3d848192b2da75ae995589d&dn=The+WIRED+CD+-+Rip.+Sample.+Mash.+Share.&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F",
      "files": [
        {
          "path": "The WIRED CD - Rip. Sample. Mash.  Sample. Mash. Share./02 - David Byrne - My Fair Lady.mp3",
          "name": "02 - David Byrne - My Fair Lady.mp3",
          "length": 3610523,
          "offset": 1964275
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./03 - Zap Mama - Wadidyusay.mp3",
          "name": "03 - Zap Mama - Wadidyusay.mp3",
          "length": 2759377,
          "offset": 5574798
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./04 - My Morning Jacket - One Big Holiday.mp3",
          "name": "04 - My Morning Jacket - One Big Holiday.mp3",
          "length": 5816537,
          "offset": 8334175
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./05 - Spoon - Revenge!.mp3",
          "name": "05 - Spoon - Revenge!.mp3",
          "length": 2106421,
          "offset": 14150712
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./06 - Gilberto Gil - Oslodum.mp3",
          "name": "06 - Gilberto Gil - Oslodum.mp3",
          "length": 3347550,
          "offset": 16257133
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./07 - Dan The Automator - Relaxation Spa Treatment.mp3",
          "name": "07 - Dan The Automator - Relaxation Spa Treatment.mp3",
          "length": 2107577,
          "offset": 19604683
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./08 - Thievery Corporation - Dc 3000.mp3",
          "name": "08 - Thievery Corporation - Dc 3000.mp3",
          "length": 3108130,
          "offset": 21712260
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./09 - Le Tigre - Fake French.mp3",
          "name": "09 - Le Tigre - Fake French.mp3",
          "length": 3051528,
          "offset": 24820390
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./10 - Paul Westerberg - Looking Up In Heaven.mp3",
          "name": "10 - Paul Westerberg - Looking Up In Heaven.mp3",
          "length": 3270259,
          "offset": 27871918
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./11 - Chuck D - No Meaning No (feat. Fine Arts Militia).mp3",
          "name": "11 - Chuck D - No Meaning No (feat. Fine Arts Militia).mp3",
          "length": 3263528,
          "offset": 31142177
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./12 - The Rapture - Sister Saviour (Blackstrobe Remix).mp3",
          "name": "12 - The Rapture - Sister Saviour (Blackstrobe Remix).mp3",
          "length": 6380952,
          "offset": 34405705
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./13 - Cornelius - Wataridori 2.mp3",
          "name": "13 - Cornelius - Wataridori 2.mp3",
          "length": 6550396,
          "offset": 40786657
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./14 - DJ Danger Mouse - What U Sittin' On (feat. Jemini, Cee Lo And Tha Alkaholiks).mp3",
          "name": "14 - DJ Danger Mouse - What U Sittin' On (feat. Jemini, Cee Lo And Tha Alkaholiks).mp3",
          "length": 3034692,
          "offset": 47337053
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./15 - DJ Dolores - Oslodum 2004.mp3",
          "name": "15 - DJ Dolores - Oslodum 2004.mp3",
          "length": 3854611,
          "offset": 50371745
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./16 - Matmos - Action At A Distance.mp3",
          "name": "16 - Matmos - Action At A Distance.mp3",
          "length": 1762120,
          "offset": 54226356
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./README.md",
          "name": "README.md",
          "length": 4071,
          "offset": 55988476
        },
        {
          "path": "The WIRED CD - Rip. Sample. Mash. Share./poster.jpg",
          "name": "poster.jpg",
          "length": 78163,
          "offset": 55992547
        }
      ],
      "selections": [
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true,
        true
      ]
    }
  ],
  "version": "0.12.0",
  "telemetry": {
    "userID": "8c96dfd50e403ae4e4ee2f781b46a5ca2eea746b3e42dd5cbb11f987f30ab1cd",
    "uncaughtErrors": [],
    "playAttempts": {
      "total": 0,
      "success": 0,
      "timeout": 0,
      "error": 0,
      "abandoned": 0
    },
    "version": "0.12.0",
    "timestamp": "2016-08-29T09:32:53.164Z",
    "localTime": "11:32:53 GMT+0200 (CEST)",
    "screens": [
      {
        "width": 1440,
        "height": 900,
        "scaleFactor": 2
      }
    ],
    "system": {
      "osPlatform": "darwin",
      "osRelease": "Darwin 14.5.0",
      "architecture": "x64",
      "totalMemoryMB": 8192,
      "numCores": 4
    },
    "approxNumTorrents": 8
  }
}

that when removed fixes the bug. I believe it's caused by a magnet link with very few or no peers that hasn't downloaded the necessary info before closing the application.

@devster31 I think you are right, nice catch!
I was able to reproduce this by adding a magnet link while not being connected to the internet and closing the app.


Removed unnecessary dependencies

What does this implement/fix? Explain your changes.
Removed unnecessary dependencies in DB previously added by me.
Does this reference any currently open issues?
…
Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. This is simply a reminder of what we are going to look for before merging your code.

[x] I have linted my code and I have run tests locally that pass
[ ] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation

Any other comments?
…

Also fixed deprecated default value bug


Create shortest-unsorted-continuous-subarray.cpp

@all-contributors please add @rithik56 for his code


Add an Pipfile example for AMD GPU or CPU only users

PyTorch packages in PyPI repository requires CUDA 12 interface.
This makes AMD owners and CPU only owners cannot run OpenDevin.
However, you can select appropriate PyTorch packages according to the GPU you have by changing the index URL of pip repository.
(See: https://pytorch.org/get-started/locally/#start-locally )
This PR added an example of Pipfile that installs torch package which runs on CPU only environment and added a comment on README.md
This PR was tested on Ubuntu 22.04 LTS amd64.
This PR may resolve #437

This seems like a good interim solution while we 💣 pipenv


Modify llm-vllm-hpu docker image name to vllm-hpu

The vllm image for xeon is opea/vllm, which is the backend of opea/llm-vllm. The llm means microservice layer for vllm. To be consistent, hpu image should be renamed as opea/vllm-hpu, remove the llm prefix.
Description
This is to reduce confusion about docker image naming.

Will impact the published opea/llm-vllm-hpu
Will need to change GenAIComps accordingly.

List the type of change like below. Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[x] Breaking change (fix or feature that would break existing design and interface)
[ ] Others (enhancement, documentation, validation, etc.)

This PR is out of date.


[DO-NOT-MERGE] Release 3.1

Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No

CLosing the PR to avoid preview space issue


Fix refactoring code typescript

Significant changes

Created a constant file to maintain constants
Added 5 new private methods to GildedRose class
each method is responsible for running relevant business logic (updating Item based on the item name key)
removed nested if else statements from the main loop and replaced with a simple switch case
created updateConjuredItem method leaving room for implementing the relevant business logic

Approval test is running and passing successfully after refracting !! 🎊🎊


chore(deps): upgrade configuration

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-configuration-k8s-30-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 4783

Questions ?
Please refer to the Backport tool documentation


Option to assign single enrichment score instead of scores per bins

It will be very useful to have the option to get single enrichment score for up / down regulated genesets. I'm not sure if this is already implemented, plz let me know if I'm missing it.
Here I have function called pvmat2bio_signal which aims to identify up / down regulated genesets (mostly enriched in top right or top left bins). However, it's useful to have a single enrichment score instead of a vector of scores for bins. Long time ago when I discussed something like this with @hanig, he pointed to this figure in original iPAGE paper https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2900319/figure/F5/.
I'll be happy to share a PR but I'm not sure how to convert a vector of score to single value. For instance, in this analysis how should a pathway with high score in three left bins be scored with a single number?

The best way to convert an enrichment/depletion map to a single score is calculating the Spearman correlation between enrichment scores and bin numbers from left to right. So, in the example above from @abearab, the MYC targets will have a very negative Spearman correlation, and NFKB will have a positive one. This basically implies a monotonically increasing or decreasing pattern.


Docker image does not support arm64/Raspberry Pi

I'm trying to run this image to build a jekyll site on a Raspberry Pi 4B (https://www.raspberrypi.com/products/raspberry-pi-4-model-b/) which runs on the aarm64 architecture.
Using docker run -v $(pwd):/srv/jekyll -p 4000:4000 -it jekyll/jekyll:latest jekyll serve will download the image but fail with:
Status: Downloaded newer image for jekyll/jekyll:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error

Installing jekyll on the host, building the site, and running an apache docker image works because the httpd-alpine images support arm64. This method is not preferred because changes to the site require the image to be rebuilt and relaunched for every change.

This is also an issue on M1 macs; Docker for Mac has an Amd64-emulation layer, but it is pretty slow.


Client ignores DOCKER_CONFIG env var

Is this a BUG REPORT or FEATURE REQUEST?:
BUG
Description
If docker's config dir has a non default location that is set in DOCKER_CONFIG, it's ignored by the client. This causes other issues like credentials (created with "docker login") being ignored.
How to reproduce

export DOCKER_CONFIG=/non/default/path
do "docker login" to some private repo
Try to pull an image using the java client

What do you expect

The java client should use the credentials stored in $DOCKER_CONFIG/

What happened instead

The java client fails to use the credentials

Software:

com.spotify:docker-client:8.14.4 (via Docker JUnit rule)

Full backtrace
Caused by: com.spotify.docker.client.exceptions.DockerRequestException: Request error: POST unix://localhost:80/images/create?fromImage=****: 500, body: {"message":"Get https://docker.****: no basic auth credentials"}
	at com.spotify.docker.client.DefaultDockerClient.requestAndTail(DefaultDockerClient.java:2780)
	at com.spotify.docker.client.DefaultDockerClient.pull(DefaultDockerClient.java:1326)
	at com.spotify.docker.client.DefaultDockerClient.pull(DefaultDockerClient.java:1303)
	at com.spotify.docker.client.DefaultDockerClient.pull(DefaultDockerClient.java:1297)
	at com.arakelian.docker.junit.Container.pullImage(Container.java:527)

(URL and image name removed)
Running docker pull for the same image works.
Extra Info

this breaks the usage of the client with jenkins pipelines and private registries since jenkins uses a temporary a non-default config path
There's a pending PR addressing this issue: https://github.com/spotify/docker-client/pull/1145

Should be fixed because the PR is merged.


Observation : Subscription to Graph node stops intermittently after sometime

Observation:
After starting Facilitator, Graph node subscription stops after interval X (observation is X=15-20 minutes).
Discussed different solutions with TheGraph support on discord. Graph node doesn't have KeepAlive support. This helps to keep alive connection.
Solution suggested by TheGraph is restart the subscription after interval X.

Suggested solution by TheGraph has been implemented and deployed on Facilitator machine.
cc: @deepesh-kn I can create proper PR if we agree on that.


Syntax Error on Line 207

Good Morning
i have a Syntax Error on Line 207
def print(self)
i use a Centos 7
Thanks for the reply
Luca

Ok i have found the solution
the script is for Python 3.x but Centos have Python 2.x
everything works fine in Python 3.x
Thanks

Thanks for the feedback


NIfTI-2 Support

This PR is based on #90 , and resolved most issues raised in the original PR, including getters / Into&From traits. The PR also resolved several merge conflicts with current master.
Regarding using f32 for nifti1 when every possible, I don't think it's quite possible with the current NiftiHeader design
pub enum NiftiHeader {
    /// The underlying header version is `NIFTI-1`.
    Nifti1Header(Nifti1Header),
    /// The underlying header version is `NIFTI-2`.
    Nifti2Header(Nifti2Header),
}

We might need to make NiftiHeader a trait with a floating number type defined separately for Nifti1 and Nifti2

Thank you @liningpan. I started reviewing but I stopped because I'm curious about @benkay86 opinion. Is this what you had in mind?
If I may ask, do you guys know each other? Why did you continue his work?


fix(changelog): use PublishedAt as release date (instead of CreatedAt)

fixes https://github.com/kumahq/ci-tools/issues/55
Did you sign your commit? Instructions

Yes

Have you read Contributing guidelines?

Yes

@lahabana Existing changelog will also be rewritten.


Docker error during local bake

Hi there!
I require some guidance on how to best utilize docker for my project. I have a basic scene with 6 objects for the acoustics to consider. I followed all steps and acquired a .bat file for local bake. I have additionally installed docker to complete the baking process.
The program is able to download an image to docker, however it reports an error when trying to run the image. Docker requests a config file in order to process the simulation:
Need config file to process the simulation. Use --Help.
No .enc files are created after this and so the del *.enc command also fails.
I am unfamiliar with docker and so unsure on how to proceed beyond this issue.
Thank you for your assistance.
Edit:
I forgot to add system information. I am using Windows 11 Education, Docker 4.29

@DivinorWieldor If you have calculated the probes for the scene, then a XXX_config.xml and *.vox file will be generated for your map.  You'll need to specify the location where these two files are located for the bake tools to work properly.

@NoelCross thanks for your reply.
the *.xml and *.vox files are both in the same file as the .bat file. Do I still need to specify their locations for the docker run command? I have no experience with docker or its arguments but from what I see the default .bat should be doing what you stated.
--configfile is set to *.xml
--workingdir is set to working which I assume is wherever the .bat file is.
There is no command to load in the *.vox file
I am unsure what the -w and -v commands do, but I assume they are for processes that happen within docker.
I'd highly appreciate some guidance on which parts I need to modify to fix the batch file. I have pasted the docker run command below, just in case there is an issue with it.
docker run --rm -w /acoustics/ -v "%CD%":/acoustics/working/ [microsoft acoustics baketool image address] ./tools/Triton.localProcessor --configfile [*.xml file] --workingdir working

@DivinorWieldor sorry to hear that you are having so much trouble with the local bake process.
--configfile points to a xxx_config.xml file and there is an assumption that the matching *.vox file is in the same directory.  This is the input directory.
--workingdir  is the directory where the *.enc files and eventually the *.ace file is generated.  It's the output directory.
When you select "Prepare for Local Bake", what happens is a custom batch file is created, runlocalbake.bat, which is located in the same folder as the config file.  The config file name is pre-populated in the batch file so all you should need to do is execute the batch file with no arguments.  The working directory is called "working" as that's the scratch directory that's used on the docker VM hosted by Docker.
Once the .ace file is created, rename to *.ace.bytes and then copy the file into your assets folder and reference the ACE file in the Acoustics Manager game object.


fix: update help article link for taxes

Similar to https://github.com/artsy/metaphysics/pull/5995, the "learn more" link in the shipping and taxes section of the artwork page is broken. The team has merged some articles and this updates the link accordingly.
See Slack for context.

Nice find! Thanks for fixing it. Sorry did not notice this when you made it.


Public Release of Commonalities 0.4.0

What type of PR is this?

subproject management

What this PR does / why we need it:
This is Release PR for public release
Which issue(s) this PR fixes:

Fixes #175 #282
Special notes for reviewers:
Changelog input
Commonalities Public Release 0.4.0

@rartych would you merge and create the release?

Merging as approved by TSC and Release Management


Good practices for production for docker

keep following https://docs.docker.com/compose/production/ and change Removing any volume bindings for application code, so that code stays inside the container and can’t be changed from outside for now

for example:
  smal_web:
    restart: always
    build:
      context: .
      dockerfile: ./compose/django/staging/Dockerfile
    command: /gunicorn.sh
    depends_on:
      - smal_postgis
      - smal_mongo
      - smal_redis

  smal_nginx:
    restart: always
    build: ./compose/nginx/staging
    depends_on:
      - smal_web
    volumes:
      - ./media:/code/media
      - ./staticfiles:/code/staticfiles
    ports:
      - "<IP_ADDRESS>:8008:80"

https://github.com/psychok7/django-project-template-yadpt/pull/12


suggestions for ways to give access to resources in main storage

Please provide us with the following information:
With Azure enforce access control set to true
I am having difficulty finding a valid way(production app) to add members to have access to the main storage, which will be files shared with everyone in the organization.

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful
My members are all controlled by Entra ID tenant.
I am not sure about the steps to create a group that is connected to the main storage container access(all the files inside).

Thanks! We'll be in touch soon.

Marking this as duplicate of #1532, will ask @mattgotteiner to provide ideas there. Please subscribe to that issue.


[eslint] Enforce spaced-comment

[x] PR has tests / docs demo, and is linted.
[x] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[x] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

Makes the comment spacing more consistent and follow the React source code / Airbnb js convention.

Wow, we actually have some code comments! :smile:


Improve /jetze output to be relative

Add relative time instead of absolute for first 60 minutes
" n minutes ago the queue length was y"
Outside of those keep the absolute time

Done


Move profile functions to blockstack.js

We want to make it easy for users to encrypt data for other users. @kantai has submitted a proposal for how to do that that involves adding additional data to the profile.json file.
Presently some code for manipulating profiles lives in this library while the remainder lives in various places in the browser. This makes it challenging to both reason about and test.
I propose that code for manipulating the profile file belongs in this library including:

profiles-utils.js: https://github.com/blockstack/blockstack-browser/blob/8d15b3e60d49a3e110d8e39b72324e27fa5c977b/app/js/utils/profile-utils.js#L1
functions for uploading profile and avatar https://github.com/blockstack/blockstack-browser/blob/master/app/js/account/utils/index.js
logic for adding apps to profile.json https://github.com/blockstack/blockstack-browser/blob/8d15b3e60d49a3e110d8e39b72324e27fa5c977b/app/js/auth/index.js#L260

It makes sense to do this first before moving forward with either #527 or #458.
Tagging @yknl @wbobeirne for their thoughts on this.

Very in favor of this. It would be nice to outline what this new API looks like, and if there are any improvements and better forms of encapsulization we can add to make it simpler and easier to use than Browser's implementation.

Also very in favour of this. It would make it a lot easier to build your own Blockstack browser.

I looked into this a bit today - we use lower-level non-public methods to write the profile and avatar photo to Gaia currently in the browser that apps typically wouldn't use.
The blockstack id's identity address private key is used as what in a normal app would be the app private key.
While moving this functionality, I think we should update it to use the standard putFile storage API that all other apps use.
Right now, use of putFile is dependent on an app private key existing in localStorage.
It makes sense to tackle #531 and refactor the library so that it no adds and reads data to window.localStorage
https://github.com/blockstack/blockstack.js/issues/531 with telling developers.  This would let us make use the standard putFile in the implementation of this functionality without having to do weird hacks like asking the browser to store the identity private key to localStorage before writing a profile.
Going to hold off on moving forward on this issue until that is done.

Tagging @kantai to double-check what I'm proposing with gaia above makes sense.

Does this seem like a good use case for the forthcoming gaia.js stand alone
client library? Blockstack.js seems to generally make a lot of assumptions
about its environment (in particular, that it is being used within an app),
where a generic putFile to a Gaia hub would be all that’s necessary here.
On Fri, Aug 17, 2018 at 9:42 AM Larry Salibra<EMAIL_ADDRESS>wrote:

I looked into this a bit today - we use lower-level non-public methods to
write the profile and avatar photo to Gaia currently in the browser that
apps typically wouldn't use.
The blockstack id's identity address private key is used as what in a
normal app would be the app private key.
While moving this functionality, I think we should update it to use the
standard putFile storage API that all other apps use.
Right now, use of putFile is dependent on an app private key existing in
localStorage.
It makes sense to tackle #531
https://github.com/blockstack/blockstack.js/issues/531 and refactor the
library so that it no adds and reads data to window.localStorage
#531 https://github.com/blockstack/blockstack.js/issues/531 with
telling developers. This would let us make use the standard putFile in
the implementation of this functionality without having to do weird hacks
like asking the browser to store the identity private key to localStorage
before writing a profile.
Going to hold off on moving forward on this issue until that is done.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/blockstack/blockstack.js/issues/532#issuecomment-413869870,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABGaEJr5cs_yx1KHMThWPEdsGtcvxhIhks5uRsgrgaJpZM4WAG0p
.

Blockstack.js seems to generally make a lot of assumptions
about its environment (in particular, that it is being used within an app)

Blockstack.js shouldn't make such strong assumptions about what type of app it's being using in. (The browser is an app after all!)
Handling a pending sign in should return some sort of state data that the developer can choose to store or not store where he chooses. (see proposal and discussion about state from last fall https://forum.blockstack.org/t/duplication-of-code-state-in-blockstack/1539?u=larry)

Does this seem like a good use case for the forthcoming gaia.js stand alone
client library?

This approach would make sense if this functionality was going to stay in browser - if we're moving it to blockstack.js with the idea that people could use it to create an alternate browser, it seems like it should use the same code paths to upload that other apps use.
Having said that, directly using the gaia.js library in blockstack.js to implement upload profile/photo might be the way we go about implementing it.


fix: simulateTransaction response decoding

simulateTransaction response should decode from the typical structure
{
  "jsonrpc": "2.0",
  "result": {
    "context": [slot context],
    "value": [expected data]
  },
  "id": 1
}

https://docs.solana.com/developing/clients/jsonrpc-api#simulatetransaction

Thanks!


Pin pg gem under Ruby 1.9.3

Also matches the gem versions expected by ActiveRecord adapters (grep ^gem lib/active_record/connection_adapters/*.rb), including the newer, supported mysql2 0.4 series in newer AR versions.

I have no problem dropping support for Ruby 1.9.3 at this point. It has been EOL for a while now.

@wvanbergen sure, suits me too. I've replaced the pinning commit with one to remove 1.9.3 from the Travis CI matrix.

:ship: when Travis is happy!


fix: ignore dependencies versions bump when parsing version from commit logs

Fix #442

I tested it in my repo and it works: https://github.com/eifinger/here_routing/runs/7353567801?check_suite_focus=true

Ok, thanks for the feedback! I didn't know about this option, I guess that explain why re.search is used instead of re.match. Seems related to a recent change marged in #466 as well.
I'll see if I can take this into account 👍🏻

Please chek out #476 for a more up-to-date fix


Fix for: Web - Incorrect Redirection to Chat Page when Accessing /workspace/new-room URL

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/23067
PROPOSAL: https://github.com/Expensify/App/issues/23067#issuecomment-1639995453
Tests

Open 'localhost:8080/workspace/new-room' on an account without the rooms beta enabled.
Verify that the "Hmm...it's not here" page appears in the right-hand modal.

[ ] Verify that no errors appear in the JS console

Offline tests

N/A
QA Steps

Open 'staging.new.expensify.com/workspace/new-room' on an account without the rooms beta enabled.
Verify that the "Hmm...it's not here" page appears in the right-hand modal.

[ ] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] If we are not using the full Onyx data that we loaded, I've added the proper selector in order to ensure the component only re-renders when the data it is using changes
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
https://github.com/Expensify/App/assets/11609254/23b68edc-283a-4bbd-9321-7676068af8b8

Mobile Web - Chrome
https://github.com/Expensify/App/assets/11609254/47940bef-511f-482d-8323-cbd482bdbe7a

Mobile Web - Safari
https://github.com/Expensify/App/assets/11609254/d24b5c0c-51a8-4304-a025-722ef004c190

Desktop
https://github.com/Expensify/App/assets/11609254/2f72e149-a477-4dca-8170-889a0808362e

iOS
https://github.com/Expensify/App/assets/11609254/61aa6061-51a4-45a8-a016-6afdf5f35dd5

Android
https://github.com/Expensify/App/assets/11609254/300d3b14-2990-49ca-aa13-6741af315e9c

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.46-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.47-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.46-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.47-6 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


[Examples] Update for the 0.14 release

Thanks for getting this out of the way :grin: :+1: :+1:
All green :green_apple: :tea: :green_book:


make_changes in system_store should be published to all cluster members

Environment info

Version: VERSION
Deployment: AZURE | AWS | GCLOUD | ESX | VBOX | DEV
Customer: NAME

Actual behavior

currently when make_changes is called on system_store, a notification is sent to all other processes that they should load system_store again.
when clustered the notification, is only sent locally and not to other members of the cluster

Expected behavior

all cluster members should be notified on system changes

Steps to reproduce

Screenshots or Logs or other output that would be helpful

Irrelevant with k8s HA implementation, closing


Razor Page Test Sample Missing

Hey there,
The samples announcement article mentioned to create an issue for any missing samples. It looks like the Razor Pages samples are missing, or at least I can't search for them.
Link to article:
Here's an example article that references the samples src/RazorPagesTestSample and tests/RazorPagesTestSample.Tests:
https://docs.microsoft.com/en-us/aspnet/core/test/razor-pages-tests?view=aspnetcore-2.2
Problem:
I don't seem to be able to find these samples:
https://docs.microsoft.com/en-us/samples/browse/?term=razor pages
I would expect that there would be more samples for Razor Pages, so it's strange that there's no results.

@kylejrp moved to that repo: https://github.com/aspnet/AspNetCore.Docs/issues/13631


Add a button of project deletion

In ProjectAvatar, I create two items: delete button and deletion alert dialog. Now we can delete projects in the select project page normally. There are still something able to refactor. For instance, separating the alert dialog, using patch request, etc.
In SelectProject, I modify the request to hide the removed project.
You should review this PR with another PR in backend, Project Entity Deletion.

After I added HttpMethod.DELETE.toString() to the list in corsConfigurationSource() in the backend, another problem jumped out.


Default-composer lost type with mathjs

What version of this package are you using?
0.5.1
What operating system, Node.js, and npm version?
Windows, node 18.15.0, npm 9.6.3
What happened?
Passing through default-composer make object to lose methods and other attributes
See code below:
import { unit, isUnit } from "mathjs";
import { defaultComposer } from "default-composer";

const def = {
  a: unit(0, "mm"),
  b: unit(0, "mm"),
  c: unit(0, "mm"),
};

const dim = {
  a: unit(1, "mm"),
  b: unit(2, "mm"),
  c: unit(3, "mm"),
};

console.log(isUnit(dim.a)); // returns true since a is of type mathjs.Unit
const full = defaultComposer(def, dim);
console.log(isUnit(full.a)); // returns false since a is missing of some attributes of mathjs.Unit

I think that during the 'compose' function, you not check for methods (aka functions) on object and (maybe) other stuffs. This make a complex object to lose some attributes.

It was closed automatically on merge the PR. In reality the PR is fixing the instance of any class. Probably is also fixing mathjs or maybe not, can you verify it @dellorogiulio ? If it's already failing I'm going to investigate what is happening with this library. Thanks a lot!

Hi @aralroca, everything seems ok, at least with some minimal examples on different types of mathjs.
Thanks!


Missing text in advice window

Challenge http://beta.freecodecamp.com/challenges/waypoint-override-class-declarations-with-inline-styles has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
The advice window should have "color: white" but stops short at "color - see screenshot.

Also when we are about to fill in the style we get this error which can be confusing for beginners:

This is fixed


Explain why we should do cache configuration when Deploying and configuring JWT client-handler artifacts

Explain why we should do cache configuration when Deploying and configuring JWT client-handler artifacts in this doc [1]
[1] https://docs.wso2.com/display/IS550/Private+Key+JWT+Client+Authentication+for+OIDC
In step 5 it says,
Do the cache configuration in <IS_HOME>/repository/conf/identity/identity.xml as shown below:

Updated the doc [1] describing in a note why this Cache configuration is needed.
[1] https://docs.wso2.com/display/IS550/Private+Key+JWT+Client+Authentication+for+OIDC


Error in documentation for threshold

HI Michael, thanks for this package!
I just wanted to highlight a minor edit required for the API doc for the threshold function (get_threshold.html):
original:
bayesfit.get_threshold(data, metrics, options, threshold_pc, estimate_type = 'MAP')
proposed change:
bayesfit.get_threshold(data, options, metrics, threshold_pc, estimate_type = 'MAP')

Thanks for heads-up!  Corrected.
✌

M


httptools is now safe for header field fragmentation

Related old fix: #756
New httptools release: 0.0.10
We can bump httptools up to recent release and drop #756

Since httptools is not pinned (currently) it should pick up the current version on install.

Did you remove the fragment and pinned httptools? That's what you should do.

Why I still see the workaround code on master branch? https://github.com/huge-success/sanic/blob/master/sanic/server.py#L234

The fragment workaround is not a essential part of sanic if you use recent version of httptools. It means it is a pure useless overhead of sanic.
When you don't close the issue, I or someone will find the issue and remove the code one day. Now, the issue is hidden and it will not be found again without additional investigation cost.
Your decision is weird.  People who know an issue don't need any opened issue to write and submit a PR. The issues exist for project, not for me.
@channelcat @seemethere @r0fls do you maintainers have any ideas?

@youknowone are you refering as workaround how the whole on_header method deals with the values received from httptools or only the check on the line you highlighted that checks the payload size described in the headers?

@vltr I am referring #756 which added workaround to handle header fragment. I am sorry if the new link to specific line confused you.

@youknowone no need to worry about that! :wink: I'm just trying to understand the specifics in here so a proper solution can be provided. I'm all in to understand the real problem, if you still have the patience to provide the overall problem some thoughts or context (I hope I'm not asking for too much in here).

#756 added a workaroud to fix httptools bug in 0.0.9. It is fixed in 0.0.10. So we can pin the httptools version >=0.0.10 and remove the workaround for the bug.
To fix the issue:

sanic shouldn't allow httptools < 0.0.10
remove fragmanted header workaround which is added in #756 - because it is duplicated code and responsibility.

@youknowone I see you've made this commit to your own fork: https://github.com/youknowone/sanic/commit/98a6933ce623f04a744a4635a079d1cca6a6ea17
If we pin httptools to >= 0.0.10 then can be just use that same commit patch?

@ashleysommer his fork is just a "reversion" of PR #756, which I think it's quite doable in Sanic if we just pin httptools :wink:

@ashleysommer I doubt it. I used that fix to test whether I fixed httptools correctly or not. I think more change is possible than that one.


Apply #89 : psr-4 under src/ and tests/ directly

Apply #89

in local, need composer dump-autoload run to apply it.

psr-4 usage for src/ and tests/ directly has been implemented. travis green ;)

Thanks @samsonasik !


"Rusănești" is listed in the drop-down menu

Description:
When user writes "Rusănești" the location appears in the drop-down menu next to the comune and the county witch is a part according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Rusănești"
Expected results
The location appears in the drop-down menu as "Comuna Rusănești, OLT"


Support new webhook events and actions

GitHub Developer API announcement:
https://developer.github.com/changes/2019-04-18-new-webhook-events-and-actions/
This would be a great PR for any new contributor to this repo or a new Go developer.
All contributions are greatly appreciated!
Feel free to volunteer for any issue and the issue can be assigned to you so that others don't attempt to duplicate the work.
Please check out our CONTRIBUTING.md guide to get started.
Thank you!

Hi @gmlewis ! Can I take a shot on this? 🙂

Sure, @joshuabezaleel! Thank you!
It is yours.

Hi @gmlewis , how do we have to write/generate for the github-accessors.go? Or it will be automatically generated by the gen-accessors.go?

Check out CONTRIBUTING.md. It has all the details.


WithConfigPath option

Changes

:gift: Adds the WithConfigPath option.
:broom: Passes config path into credentials providers, making global config path now configurable per client instance
:broom: Refactors instantiation to be more clear about when the values are defaulted and then applied
:broom: Creates the defined config and repositories directory separately, so they can be in different locations

Exploratory work using instance-based accessors for config and repositories paths rather than package static accessors.

Closing in favor of a hybrid where Config is package static and Repositories is instance based with a static convenience accessor for the default state.


Falcor can integrate with mongoose?

Does Falcor have integration to mongoose? or if I want to get a model or do any CRUD operation, I need to write a function which parse the query and return the results from mongoose model?

The library does not currently provide integration with Mongoose or MongoDB. Falcor and Mongoose both offer similar functionality, in providing data modeling tools and query building, but the Falcor client library does not depend on or require any particular persistence service.
If you're looking to provide a Falcor interface to a MongoDB server, you could write an implementation of the DataSource interface to target that particular backend.


Yelp blocked me from using their API

Hi I'm programming an Android app that uses Yelp API Fusion 2 to output nearby restaurants. However I've noticed that Yelp has blocked my home wifi because of me testing my app and calling Yelp API, and now I can't even login to Yelp.com on my browser. Every wifi source I go to test my app, Yelp has blocked that wifi. I'm very frustrated because building app is my passion and I was a big fan of Yelp. I'm not making this app for illegal purposes, so I sincerely don't understand why Yelp has blocked me on every wifi address possible. Also, this is not fair for others who use/will use the wifi that I have used to test my app as their access to Yelp are blocked as well.
Yelp is a big software company and it should encourage API usage from individual developer, not to block their access. Very disappointed.

Feel free to look at my repository "Food Decision App" and tell me if I need to fix anything in relation to this issue. Otherwise I believe this issue has nothing to do with my code, but with Yelp itself blocking me for no apparent reason.

Hey @Joyliu290, sorry you got blocked but sometimes it's an automatic action that our site takes and can be caused by a lot of things (like someone sharing an IP address and doing something malicious). Unfortunately I can't handle unblocking you but if you email<EMAIL_ADDRESS>with your IP address they should be able to assist more.

Hey @tomelm thanks for the reply, but no one in my house uses Yelp except for me, and I never done anything malicious other than using the Yelp's api. How likely would someone be able to reply to my email if I email<EMAIL_ADDRESS>I googled this a bit and people have said that Yelp rarely responds to email and phone calls...hence I'm posting this issue here on Github.

It doesn't have to be someone in your house, IPs get recycled so it could be you got a new IP recently that was previously blocked. That's to say that that's what going on though, but that's possible.
<EMAIL_ADDRESS>will respond to you for this issue, the alias is pretty responsive to issues like these. This repo is more focused on providing technical assistance on the API itself, IP blocks having on a more global level that's a little outside of our scope.

Ok I see. Thank you!

I saw they responded to you :D
If they stop responding let me know and I'll poke them.

Hey sorry to bug you again but they have stopped responding for over a week now 👎 the issue is still not resolved :(

Hey! Good news I'm now unblocked from Yelp! I was reading the display requirements more carefully and realized that I need to put the Yelp Logo on all content originated from Yelp...Is there a way for me to get access to the design of the Logo so I can put it on my app (making one myself is probably not the best option) ? Thanks!

Awesome! That's all available on yelp.com/brand


python soletta asyncio mainloop implementation

Here's the initial PR for python integration.  This commit implements the soletta mainloop interface using asyncio.

I didn't look at your PR carefully. However, I saw that at 4b47ef8 you add bunch of makefiles and at 30398c3 you delete them. Why committing them if you're deleting?

looking good the end result. As said you don't need to add/remove the makefiles (git rebase -i origin/master provide a nice way to edit/drop commits)

Yes.  I need to squish these.

@cabelitos I have squished.  I'd still like to add a test.

@tripzero Btw, add bindings/python/mainloop.c to gitignore. You should not commit that as well !

@cabelitos @barbieri new push.  I rearranged things a bit.  I think it's more organized now.  So far there is:
soletta.asyncio - soletta mainloop implementation with asyncio
soletta.tests - tests for the modules.
You can make install, however, on Ubuntu, it's installing to /usr/lib/python3.4/site-packages, which is outside ubuntu's python3 default path.  This is because I'm installing with --prefix=build/sysroot/... which overrides the default path of dist-packages.  This will be the same for any debian-based distro.
I'm not sure how to fix that yet, but a quick fix is to just sudo cp -r /usr/lib/python3.4/site-packages/soletta /usr/lib/python3.4/dist-packages
After that, you can python3 -c "import soletta.asyncio" and watch the pretty fireworks (I'll fix that soon).
I also fixed idle_add to check the callback for true/false.

@tripzero as for the installation bug, from what you describe it is the site-packages x dist-packages, right? I do not see you specifying that anywhere, where are you getting that?
Also, consider checking import site; site.getsitepackages()

@tripzero as for the installation bug, from what you describe it is the site-packages x dist-packages, right? I do not see you specifying that anywhere, where are you getting that?

Debian patched python and distutils.  If you override the install root, it assumes you want to use site-packages.  The patched version of python debian ships with does not look in site-packages.  site.getsitepackages() returns dist-packages.
This is an annoying issue on debian/debian-based distros, but it does not affect other distros that I know of.

closing this for new one


Improve homepage layout

Fixes issues with the banner and navbar on the homepage.

Very much appreciated thank you.


Update dashboards build script to consume distribution

Signed-off-by: Peter Zhu<EMAIL_ADDRESS>Description
Update dashboards build script to consume distribution
Issues Resolved
Part of #1655
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Note: This does not include rpm arm64 because dashboards currently cannot build that for core.
https://github.com/opensearch-project/OpenSearch-Dashboards/issues/1259

Codecov Report

Merging #1656 (3b6fcfe) into main (18c173c) will increase coverage by 5.31%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #1656      +/-   ##
=============================================
+ Coverage     94.68%   100.00%   +5.31%
=============================================
  Files           163         4     -159
  Lines          3446        65    -3381
  Branches         21        14       -7
=============================================
- Hits           3263        65    -3198
+ Misses          180         0     -180
+ Partials          3         0       -3

Impacted Files
Coverage Δ

src/assemble_workflow/bundle_recorder.py

src/manifests/build/build_manifest_1_1.py

src/ci_workflow/ci_input_manifest.py

...workflow/opensearch/build_artifact_check_plugin.py

src/test_workflow/dependency_installer.py

src/build_workflow/build_args.py

src/build_workflow/build_artifact_checks.py

tests/jenkins/jobs/DetectDockerImage_Jenkinsfile

src/test_workflow/bwc_test/bwc_test_runner.py

src/test_workflow/bwc_test/bwc_test_runners.py

... and 149 more

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 18c173c...3b6fcfe. Read the comment docs.


create mailing list on Savannah

We had previously tried to create a mailing list on Savannah but had problems having the project accepted because of its dual license. Now that we've dropped muser.ko and MUSER's license is purely 3-Clause BSD, it should be easier to re-apply.

@jlevon @swapnili @franciozzy I suppose before doing that we should device whether we stick to the current name or switch to libvfio-user.

related to #121

As soon as @franciozzy renames the repo I'll re-apply on Savannah.

Submitted: https://savannah.nongnu.org/task/?15824


Convert opencv2 to Pix

Hello,
I'm working in memory and would like to go from cv2 Mat to tesseract Pix instead of converting it again to Bitmap or worth, on disk
Would you have an idea how to proceed ? Thanks !
ps: I'm using last version 4.1.1
Image image = Image.FromFile("my file path");

MemoryStream ms = new MemoryStream();
image.Save(ms, ImageFormat.Tiff);
byte[] array = ms.ToArray();

Mat cv2MatBuf = Cv2.ImDecode(array, ImreadModes.Color);

//some work with cv2 OK

//How to convert to Pix without going trough a Bitmap ?
//My last working example:
MemoryStream ms2 = cv2MatBuf.ToMemoryStream();
Bitmap bitmap = (Bitmap)Image.FromStream(ms);
Pix pix = PixConverter.ToPix(bitmap);

//read with tesseract OK

It kinds of bother me going trough Bitmap if there was a way to go from Mat to Pix directly .. ?

You'll need to write the mat to pix conversation yourself. You should be
able to base it around the existing bitmap to pix conversation code.
I wouldn't try going via file or bitmap unless you don't care about
performance.
On Sat, 30 Jan 2021, 01:21 yoyos<EMAIL_ADDRESS>wrote:

Hello,
My visual studio can't find PixConverter static class in Tesseract
namespace but it can find easily every others like BitmapHelper for example
Would you know why ? I must have missed something..
I'm working in memory and would like to go from cv2 Mat to tesseract Pix
instead of converting it again to Bitmap or worth, on disk ..
Would you have an idea how to proceed ?
Image image = Image.FromFile("my file path");
MemoryStream ms = new MemoryStream();image.Save(ms, ImageFormat.Tiff);byte[] array = ms.ToArray();
Mat cv2MatBuf = Cv2.ImDecode(array, ImreadModes.Color);
//some work with cv2 OK
//conversion to Pix ?
//read with tesseract OK
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/issues/539, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB7HSE2S24AW2JUC626PUDS4K75TANCNFSM4WY56TOA
.

You'll need to write the mat to pix conversation yourself. You should be
able to base it around the existing bitmap to pix conversation code.
I wouldn't try going via file or bitmap unless you don't care about
performance.
On Sat, 30 Jan 2021, 01:21 yoyos<EMAIL_ADDRESS>wrote:

Hello,
My visual studio can't find PixConverter static class in Tesseract
namespace but it can find easily every others like BitmapHelper for example
Would you know why ? I must have missed something..
I'm working in memory and would like to go from cv2 Mat to tesseract Pix
instead of converting it again to Bitmap or worth, on disk ..
Would you have an idea how to proceed ?
Image image = Image.FromFile("my file path");
MemoryStream ms = new MemoryStream();image.Save(ms, ImageFormat.Tiff);byte[] array = ms.ToArray();
Mat cv2MatBuf = Cv2.ImDecode(array, ImreadModes.Color);
//some work with cv2 OK
//conversion to Pix ?
//read with tesseract OK
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/issues/539, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB7HSE2S24AW2JUC626PUDS4K75TANCNFSM4WY56TOA
.

Ok, I thought maybe it existed something I wasn't aware of.
Thanks then I'll try that if I have perf issues

Ok, I thought maybe it existed something I wasn't aware of.
Thanks then I'll try that if I have perf issues

It's also possible to use Tesseract models directly within OpenCV.
var l_Tess =<EMAIL_ADDRESS>"eng");
// var declarations
l_Tess.Run(p_Image, out l_AllText, out l_BoundingBoxes, out l_TextContent, out l_Confidences, OpenCvSharp.Text.ComponentLevels.TextLine);


feat(prettier): print NumberLiteral

feat(prettier): print NumberLiteral
feat(prettier): format NumberLiteral

Current dependencies on/for this PR:

main

PR #1389   👈

This stack of pull requests is managed by Graphite.

Merge activity

Nov 17, 12:44 PM: Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready.


About the benefits of NeuMesh over the extracted geometry from neural fields

Hi, thanks for the great work and code.
I have a question about this work. To support texture editing or geometry editing, a naive solution is to train a NeuS on the captured multi-view images, extract the mesh from the NeuS, and perform UV unwrapping. This way, we can import the assets to a 3D CG software, e.g. Blender, and perform all kinds of geometry and texture editing shown in the NeuMesh paper. Does NeuMesh achieve better rendering quality than the naive solution, or has other benefits?

Hi, 07hyx06, Thanks for your interest in our work!
I think extracting textured mesh from NeuS and rendering it by the 3D CG software will induce less photo-realistic results. The main reason is that the mesh texture is poor and loses the view-dependent phenomenon. Though some NeRF products (e.g. Luma AI) have been working on extracting photo-realistic mesh from NeRF,  vanilla NeuS can not satisfy this demand.
A further discussion is also included in "Section C. Using neural implicit representation instead of traditional textured
mesh" with Figure K in our supplementary material.
Hope it will help you!


Bump PyO3 version to support Python3.13

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

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

Totals

Change from base Build<PHONE_NUMBER>4:
0.0%

Covered Lines:
2422

Relevant Lines:
2783

💛  - Coveralls


Internal Error on Startup

This error is always  thrown on launch, lets investigate and resolve it.
[Fri Oct 30 2020 06:51:41.271]  ERROR    Warning: Each child in a list should have a unique "key" prop.

Check the render method of `HomeList`. See https://fb.me/react-warning-keys for more information.
    in ForwardRef (at home-list.tsx:131)
    in HomeList (at Home.tsx:2018)
    in RCTView (at View.js:34)
    in View (at VirtualizedList.js:2120)
    in CellRenderer (at VirtualizedList.js:900)
    in RCTScrollContentView (at ScrollView.js:1124)
    in RCTScrollView (at ScrollView.js:1260)
    in ScrollView (at ScrollView.js:1286)
    in ScrollView (at VirtualizedList.js:1329)
    in VirtualizedList (at FlatList.js:624)
    in FlatList (at Home.tsx:1999)
    in RCTView (at View.js:34)
    in View (at Home.tsx:1998)
    in RCTView (at View.js:34)
    in View (at ImageBackground.js:61)
    in ImageBackground (at Home.tsx:1967)
    in Home (created by ConnectFunction)
    in ConnectFunction (created by withNavigationFocus(Connect(Home)))
    in withNavigationFocus(Connect(Home)) (created by Context.Consumer)
    in withNavigation(withNavigationFocus(Connect(Home))) (created by SceneView)
    in SceneView (at StackViewLayout.tsx:889)
    in RCTView (at View.js:34)
    in View (at StackViewLayout.tsx:888)
    in RCTView (at View.js:34)
    in View (at StackViewLayout.tsx:887)
    in RCTView (at View.js:34)
    in View (at createAnimatedComponent.js:165)
    in AnimatedComponent (at createAnimatedComponent.js:215)
    in ForwardRef(AnimatedComponentWrapper) (at StackViewCard.tsx:106)
    in RCTView (at View.js:34)
    in View (at createAnimatedComponent.js:165)
    in AnimatedComponent (at createAnimatedComponent.js:215)
    in ForwardRef(AnimatedComponentWrapper) (at src/index.native.js:105)
    in Screen (at StackViewCard.tsx:93)
    in Card (at createPointerEventsContainer.tsx:95)
    in Container (at StackViewLayout.tsx:975)
    in RCTView (at View.js:34)
    in View (at src/index.native.js:139)
    in ScreenContainer (at StackViewLayout.tsx:384)
    in RCTView (at View.js:34)
    in View (at createAnimatedComponent.js:165)
    in AnimatedComponent (at createAnimatedComponent.js:215)
    in ForwardRef(AnimatedComponentWrapper) (at StackViewLayout.tsx:374)
    in PanGestureHandler (at StackViewLayout.tsx:367)
    in StackViewLayout (created by withOrientation)
    in withOrientation (at StackView.tsx:104)
    in RCTView (at View.js:34)
    in View (at Transitioner.tsx:267)
    in Transitioner (at StackView.tsx:41)
    in StackView (created by Navigator)
    in Navigator (created by KeyboardAwareNavigator)
    in KeyboardAwareNavigator (created by SceneView)
    in SceneView (at StackViewLayout.tsx:900)
    in RCTView (at View.js:34)
    in View (at createAnimatedComponent.js:165)
    in AnimatedComponent (at createAnimatedComponent.js:215)
    in ForwardRef(AnimatedComponentWrapper) (at StackViewCard.tsx:106)
    in RCTView (at View.js:34)
    in View (at createAnimatedComponent.js:165)
    in AnimatedComponent (at createAnimatedComponent.js:215)
    in ForwardRef(AnimatedComponentWrapper) (at src/index.native.js:105)
    in Screen (at StackViewCard.tsx:93)
    in Card (at createPointerEventsContainer.tsx:95)
    in Container (at StackViewLayout.tsx:975)
    in RCTView (at View.js:34)
    in View (at src/index.native.js:139)
    in ScreenContainer (at StackViewLayout.tsx:384)
    in RCTView (at View.js:34)
    in View (at createAnimatedComponent.js:165)
    in AnimatedComponent (at createAnimatedComponent.js:215)
    in ForwardRef(AnimatedComponentWrapper) (at StackViewLayout.tsx:374)
    in PanGestureHandler (at StackViewLayout.tsx:367)
    in StackViewLayout (created by withOrientation)
    in withOrientation (at StackView.tsx:104)
    in RCTView (at View.js:34)
    in View (at Transitioner.tsx:267)
    in Transitioner (at StackView.tsx:41)
    in StackView (created by Navigator)
    in Navigator (created by KeyboardAwareNavigator)
    in KeyboardAwareNavigator (created by SceneView)
    in SceneView (created by SwitchView)
    in SwitchView (created by Navigator)
    in Navigator (created by NavigationContainer)
    in NavigationContainer (at App.tsx:59)
    in Provider (at App.tsx:58)
    in App (at renderApplication.js:45)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:106)
    in ChildrenWrapper (at wrapRootComponent.js:9)
    in _default (at wrapRootComponent.js:8)
    in Root (at AppContainer.js:121)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:132)
    in AppContainer (at renderApplication.js:39)
[Fri Oct 30 2020 06:51:41.823]  LOG      {"notifications": []}

@AliMeer This is fixed by the changes to the Home accounts list I have in feature/account-management. Might it be best to see if this issue resolves itself when we're able to merge that?

If fixed pls mark it fixed @AliMeer @CypherPoet

We will move this to 1.3.2 and mark it fixed when we deploy

This is currently in place on #1663

Closing as this error is not appearing in the logs anymore,


does not work correctly for vim inside lua

I am using nvim 0.6.0 release. I have installed nvim-treesitter (lua, viml parsers are installed), commentary.vim, and this plugin.
This is my config for treesitter:
require("nvim-treesitter.configs").setup({
  ensure_installed = {"python", "cpp", "lua", "vim"},
  ignore_install = {}, -- List of parsers to ignore installing
  highlight = {
    enable = true, -- false will disable the whole extension
    disable = {}, -- list of language that will be disabled
  },
  context_commentstring = {
    enable = true,
    -- enable_autocmd = false,
   config = {
      vim = '" %s',
    }
  }
})

When commenting viml inside lua, my test code is:
    vim.cmd([[
      hi link LspReferenceRead Visual
      hi link LspReferenceText Visual
      hi link LspReferenceWrite Visual
      augroup lsp_document_highlight
        autocmd! * <buffer>
        autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()
        autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references()
      augroup END
    ]])

the comment string is still --, not ", is this supported or am I doing it wrong?

Hey @jdhao! I think that this is related to this neovim issue: https://github.com/neovim/neovim/pull/16348 Vimscript highlighting does not seem to be injected correctly for me too.
Is the vim.cmd contents highlighted correctly as vimscript for you?

@JoosepAlviste  Nope, the viml inside vim.cmd is highlighted as string.

So https://github.com/neovim/neovim/pull/16348 is merged. Now this will work as expected :)
https://user-images.githubusercontent.com/24727447/145793469-cc1d3efe-9f89-4c2b-81af-9a16a8642301.mp4

Yep, this seems to work for me as well now. I'll close this for now but feel free to comment if it's not fixed for you for some reason @jdhao

okay, thanks for the notice. I will try it ASAP.👍


After the recent WebUI upgrade, it seems that there are some issues with the extension.

After the recent WebUI upgrade, it seems that there are some issues with the plugin.
I really love your extension, as it significantly enhances the aesthetics of the generated images.
However, after the recent WebUI upgrade, it appears to be causing some memory issues. I am using a Mac computer with an M1 chip.
My WebUI startup environment is the one that came with the WebUI installation script inside stable-diffusion-webui/venv using Python 3.10. I am not using the ‘sddraw’ environment to run the WebUI startup script.
After installing your extension and starting the WebUI, without even enabling your extension, when I generate a picture, it throws an error or causing that the memory is overloaded. I spent 2 days to figure out the issue T-T.
The error:
./webui.sh: line 297: 18484 Segmentation fault: 11  "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
/opt/anaconda3/envs/sddraw/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
I even don't know why its even using the python3.10 in 'sddraw'

I just tried on v1.9.3 and unfortunately I cannot recreate it.
Maybe try deleting the venv folder and let it properly install everything again.


Open on current day during the conference

I'm submitting a ...  (check one with "x")
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

Here's a test branch that uses a local conferences.json and modifies the date to 7-11 April:
https://github.com/hugovk/pycon-us-mobile/tree/modify-dates-for-testing

Open the app on Sunday 9th April
The schedule for the first day is shown, Friday 7th April
Have to press the SUN tab to see today

Expected behavior:

During the conference, it would be nice if the app opened on the current day.

Went for bonus in https://github.com/psf/pycon-us-mobile/commit/751b2c121cdd85645ba5c42865891e8b9079b8e2 to scroll to the current time too. classes are there and logic is sound, but I can't actually get the scroll to happen.

After updating this morning, it's opening on the first day (Wednesday) instead of today (Saturday).
I can reproduce on Android, but not on local when testing on Chrome/macOS.

And with the latest update it's working again! 👏


Titanfall crash with Graphics Pipeline Library

Just so the issue doesn't get forgotten.
The original Titanfall will crash right on startup with Graphics Pipeline Library enabled. dxvk.enableGraphicsPipelineLibrary = False works around the issue.
Tested with radv ingame and Nvidia with apitrace
Apitrace file(s)
https://drive.proton.me/urls/F0FZ0RJ164#HtTPjSiXFWWt
Trace will crash right at the start unless GPL is disabled where it will instead show EA logos

The specific commit that crashing starts with is https://github.com/doitsujin/dxvk/commit/5019ce4b9c92390541f738d348a8fbb4fb4f65cf


Ruby 2.2 Comparison Operator Deprecation Warning

The following piece of code has been running in an application which survived transitioning from Ruby 1.9 to 2.0, 2.1 and now 2.2.
# SNMP has a mechanism for letting us know if we've hit the end of
# a walk. If that's true, then we'll return
if last_value == SNMP::EndOfMibView
  return
end

After the upgrade to Ruby 2.2, however, I started observing the following warnings in our logs:
/path/to/protocol.rb:448: warning: Comparable#== will no more rescue exceptions of #<=> in the next release.
/path/to/protocol.rb:448: warning: Return nil in #<=> if the comparison is inappropriate or avoid such comparison.

This seems to be related to this Ruby change, which made it to Ruby 2.2 -- https://bugs.ruby-lang.org/issues/7688. Other projects have been affected as well (I found a nice drill down on this on https://github.com/RubyMoney/money/issues/469).
I can avoid the warning if we use if last_value.is_a?(SNMP::EndOfMibView) instead of the previous idiom, but a proper 2.2-compatible update to snmp would be more desirable. I tried digging down the source code to submit a pull request, but it's not clear to me what exactly would need to be touched.

Fixed in 1.3.0.


Parsing error while loading vue files

Describe the bug
Linting vue files with the graphql plugin enabled leads to the following error:
[graphql-eslint/processor]: Unable to process file "D:\Programming\JabRefOnline\pages\user\register.vue":  SyntaxError: Unexpected token, expected "</>/<=/>=" (3:12)
    at Object._raise (D:\Programming\JabRefOnline\node_modules\@graphql-tools\graphql-tag-pluck\node_modules\@babel\parser\lib\index.js:776:17)
    at Object.raiseWithData (D:\Programming\JabRefOnline\node_modules\@graphql-tools\graphql-tag-pluck\node_modules\@babel\parser\lib\index.js:769:17)
    at Object.raise (D:\Programming\JabRefOnline\node_modules\@graphql-tools\graphql-tag-pluck\node_modules\@babel\parser\lib\index.js:737:17)
    at Object.unexpected (D:\Programming\JabRefOnline\node_modules\@graphql-tools\graphql-tag-pluck\node_modules\@babel\parser\lib\index.js:9253:16)
    at Object.expectRelational (D:\Programming\JabRefOnline\node_modules\@graphql-tools\graphql-tag-pluck\node_modules\@babel\parser\lib\index.js:9191:12)
    at Object.tsParseTypeAssertion (D:\Programming\JabRefOnline\node_modules\@graphql-tools\graphql-tag-pluck\node_modules\@babel\parser\lib\index.js:6182:10)
    at Object.parseMaybeUnary (D:\Programming\JabRefOnline\node_modules\@graphql-tools\graphql-tag-pluck\node_modules\@babel\parser\lib\index.js:7224:19)
    at Object.tsParseTypeAssertion (D:\Programming\JabRefOnline\node_modules\@graphql-tools\graphql-tag-pluck\node_modules\@babel\parser\lib\index.js:6183:28)
    at Object.parseMaybeUnary (D:\Programming\JabRefOnline\node_modules\@graphql-tools\graphql-tag-pluck\node_modules\@babel\parser\lib\index.js:7224:19)
    at Object.parseExprOps (D:\Programming\JabRefOnline\node_modules\@graphql-tools\graphql-tag-pluck\node_modules\@babel\parser\lib\index.js:10141:23) {
  loc: Position { line: 3, column: 12 },
  pos: 33
}

To Reproduce
Enable linting of vue files using the plugin by specifying the following override:
{
      files: ['*.tsx', '*.ts', '*.jsx', '*.js', '*.vue'],
      processor: '@graphql-eslint/graphql',
    },

and invoke eslint --ext .graphql,.vue. The error appears and points to the first instance where a html tag has some attribute, e.g. the above error is created by the following register.vue file:
<template>

    <Portal to="header">
     ....

Expected behavior
No error, and linting of the vue file proceeds.

Environment:

OS: Win 10
@graphql-eslint/...: 1.0.1
NodeJS: 14

Additional context

According to the documentation, graphql-tag-pluck should be able to parse vue files so hopefully this is only a config problem.

As I mention in your last issue https://github.com/dotansimha/graphql-eslint/issues/479 I need a reproduction repo with minimal dependencies

Closing due to inactivity. Please feel free to reopen if you still need help.

I still experience this bug. @B2o5T do you have a template that I could use to produce a reproduction? I would also suggest to add such a template prominently in the new issue template.

Just a simple reproduction with minimal dependencies installed, take a look of examples folder for inspiration

Okay, here you go: https://stackblitz.com/edit/github-7j6u77?file=.eslintrc.cjs,test.vue
I've only added the small processor config to the basic example. This is already enough to trigger the issue.

@tobiasdiez your error goes from eslint as he doesn't know how to parse *.vue files
add https://www.npmjs.com/package/vue-eslint-parser for parsing *.vue files
add @vue/compiler-sfc to process *.vue files with graphql-tag-pluck https://github.com/ardatan/graphql-tools/issues/2456

Thanks for looking into this @B2o5T. However, I still cannot make it work. In my production env, I do use vue-eslint-parser but that doesn't fix the error. And even after installing vue and @vue/compiler-sfc into the above reproduction, the error still shows up. It also clearly comes from the graphql processor, as npx eslint --ext .vue . --debug shows:
  eslint:linter Linting code for /home/projects/github-7j6u77/test.vue (pass 1) +0ms
  eslint:linter Verify +1ms
  eslint:linter With ConfigArray: /home/projects/github-7j6u77/test.vue +0ms
  eslint:linter Apply the processor: '@graphql-eslint/graphql' +1ms
  eslint:linter A code block was found: '(unnamed)' +1ms
  eslint:linter Parsing: /home/projects/github-7j6u77/test.vue +6ms
  eslint:linter Parsing error: Unexpected token <
  eslint:linter raise@/home/projects/github-7j6u77/node_modules/espree/dist/espree.cjs:675:25
unexpected@/home/projects/github-7j6u77/node_modules/espree/dist/espree.cjs:720:18
pp$5.parseExprAtom@/home/projects/github-7j6u77/node_modules/acorn/dist/acorn.js:2843:12
pp$5.parseExprSubscripts@/home/projects/github-7j6u77/node_modules/acorn/dist/acorn.js:2635:21
pp$5.parseMaybeUnary@/home/projects/github-7j6u77/node_modules/acorn/dist/acorn.js:2601:19
pp$5.parseExprOps@/home/projects/github-7j6u77/node_modules/acorn/dist/acorn.js:2528:21
pp$5.parseMaybeConditional@/home/projects/github-7j6u77/node_modules/acorn/dist/acorn.js:2511:21
pp$5.parseMaybeAssign@/home/projects/github-7j6u77/node_modules/acorn/dist/acorn.js:2478:21
pp$5.parseExpression@/home/projects/github-7j6u77/node_modules/acorn/dist/acorn.js:2441:21
pp$8.parseStatement@/home/projects/github-7j6u77/node_modules/acorn/dist/acorn.js:950:47
pp$8.parseTopLevel@/home/projects/github-7j6u77/node_modules/acorn/dist/acorn.js:817:23
parseTopLevel@/home/projects/github-7j6u77/node_modules/espree/dist/espree.cjs:663:26
parse@/home/projects/github-7j6u77/node_modules/acorn/dist/acorn.js:589:17
parse@/home/projects/github-7j6u77/node_modules/espree/dist/espree.cjs:585:35
parse@/home/projects/github-7j6u77/node_modules/espree/dist/espree.cjs:890:38
parse@/home/projects/github-7j6u77/node_modules/eslint/lib/linter/linter.js:806:29
_verifyWithoutProcessors@/home/projects/github-7j6u77/node_modules/eslint/lib/linter/linter.js:1344:38
_verifyWithProcessor/messageLists<@/home/projects/github-7j6u77/node_modules/eslint/lib/linter/linter.js:1798:29
_verifyWithProcessor@/home/projects/github-7j6u77/node_modules/eslint/lib/linter/linter.js:1793:65
_verifyWithConfigArray@/home/projects/github-7j6u77/node_modules/eslint/lib/linter/linter.js:1722:25
verify@/home/projects/github-7j6u77/node_modules/eslint/lib/linter/linter.js:1471:65
verifyAndFix@/home/projects/github-7j6u77/node_modules/eslint/lib/linter/linter.js:1953:29
verifyText@/home/projects/github-7j6u77/node_modules/eslint/lib/cli-engine/cli-engine.js:245:48
executeOnFiles@/home/projects/github-7j6u77/node_modules/eslint/lib/cli-engine/cli-engine.js:823:38
lintFiles@/home/projects/github-7j6u77/node_modules/eslint/lib/eslint/eslint.js:550:23
execute@/home/projects/github-7j6u77/node_modules/eslint/lib/cli.js:301:36
main@/home/projects/github-7j6u77/node_modules/eslint/bin/eslint.js:136:52
@/home/projects/github-7j6u77/node_modules/eslint/bin/eslint.js:140:2
function@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:15:140972
Module.prototype._compile@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:6:219079
Module._extensions[".js"]@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:6:219743
Module.prototype.load@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:6:217769
Module._load@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:6:215340
executeUserEntryPoint@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:6:989713
@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:6:1603843
_0x920ff8@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:8:43452
_0x5ad637@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:15:104200
_0xaca017@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:34:1862
run@https://github-7j6u77.w-corp.staticblitz.com/blitz.bc6680fa6a19b40b511d3d540df9ce55a844166f.js:34:561
 +12ms
  eslint:linter Generating fixed text for /home/projects/github-7j6u77/test.vue (pass 1) +1ms
  eslint:source-code-fixer Applying fixes +0ms
  eslint:source-code-fixer shouldFix parameter was false, not attempting fixes +1ms
  eslint:file-enumerator Leave the directory: /home/projects/github-7j6u77 +29ms
  eslint:file-enumerator Complete iterating files: ["."] +0ms
  eslint:cli-engine Linting complete in: 2824ms +28ms

/home/projects/github-7j6u77/test.vue
  1:1  error  Parsing error: Unexpected token <

Debugging a bit, I think the issue is here:
https://github.com/B2o5T/graphql-eslint/blob/0b8acdc64cae77e7b09597dccdcb2b5c38ff3b6e/packages/plugin/src/processor.ts#L43-L50
I think, it should use gqlPluckFromCodeString to get the special handling of vue files:
https://github.com/ardatan/graphql-tools/blob/d76a299cf9ccc3e8b3bc6f36bcb1c32bb61d39f1/packages/graphql-tag-pluck/src/index.ts#L140-L155

@tobiasdiez You are right, sorry for my misunderstanding (since I don't use vue 😜).
I replaced gqlPluckFromCodeStringSync with parseCode and now graphql-eslint support both extracting GraphQL documents from vue/svelte code files 🎉!
You can try alpha version 3.12.0-alpha-20221008232037-33da317
and take a look of new examples, including vue/svelte setup here https://github.com/B2o5T/graphql-eslint/tree/vue-svelte/examples

should be fixed in<EMAIL_ADDRESS>

Thanks a lot, it is indeed working now. Nice!
Two things I've observed so far:

the graphql processor overrides the vue processor, so that some vue rules are no longer working. In particular, vue/comment-directive needs to be disabled otherwise one gets "clear" error messages in every vue file. i guess one has to wait for https://github.com/eslint/eslint/issues/14745 to be fixed.
the errors are displayed in the wrong line

the errors are displayed in the wrong line

could you send a code snippet with wrong line?

Just add a template tag at the beginning of the existing example:
<template>
 test
</template>

The errors are still claimed to be on line 5 and 13 although they should be 3 lines (= lines of template) further down.


Dark mode

Dark mode, please. Weather NFT to whoever completes it.

+1 from issue #262

will be included in the new docs redesign

Any update on this?


Make resolve_binary_paths include non-executable libs in its result

Turns out that shared objects do not have to be executable and bcc provides
implementations of elf checks that take that into account. For example on my
Android phone, when running:
  bpftrace -e 'uprobe:/system/lib64/libc.so:malloc {}'

I get the following error:
  stdin:1:1-36: ERROR: uprobe target file '/system/lib64/libc.so' does not exist or is not executable
  uprobe:/system/lib64/libc.so:malloc {}
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

With this change the command runs as expected.

@michalgr thanks for this! Any chance you could write a quick runtime test that tries probing a non-executable lib, to prevent this regression from creeping back in?
I'd rather see this land in 0.9.4 even without this regression test though.

or I can add a dummy library whose only purpose is to be copied into that test directory.

Check out https://github.com/iovisor/bpftrace/blob/master/tests/CMakeLists.txt#L153-L161 this is how the existing test programs are built. It is probably fairly easy to add a test library, though this would be more for runtime tests.
So have it spit out a test lib that is missing the execute bit, show that this test fails when you run the runtime tests before your patch, and then is fixed with your patch. This will help to prevent this issue from creeping back in sometime in the future, take a look at the other uprobe runtime tests to see what I mean and how these work generally. If the cmake work for this is too much, I can help you out :)

@michalgr CI is failing because the cache is cold for #1041 which is just merged. If you push a few empty commits before you rebase it should pass inside of normal time. Ignore it until then. Otherwise your new runtime tests seem to be working which is great. Did you verify that they fail with your non-test changes reverted? If so this is looking pretty good to me.

@dalehamel yep, I cherry-picked the commit that adds new tests on master and saw both of them fail.

@michalgr
I used the 0.10.0 version, still got the same error:
root@localhost:/# bpftrace -e 'uprobe:/system/lib64/libc.so:malloc {}'
stdin:1:1-36: ERROR: uprobe target file '/system/lib64/libc.so' does not exist or is not executable
uprobe:/system/lib64/libc.so:malloc {}

I run the testlibs, works ok:
root@localhost:/bpftrace/build/tests# bpftrace -l 'uprobe:./testlibs/libsimple.so:fun'
uprobe:./testlibs/libsimple.so:fun

The version on my device is Android 10:
root@localhost:/# ls system/lib64/libc.so -l
lrw-r--r--. 1 root root 46 Jan  1  2009 system/lib64/libc.so -> /apex/com.android.runtime/lib64/bionic/libc.so

I want to know if the version of your Android device is Android 10?

@b-ripper  can you move this to a new issue?

on Android 10, this will work fine:
root@localhost:/# bpftrace -l 'uprobe:/system/apex/com.android.runtime.release/lib64/bionic/libc.so:malloc'
uprobe:/system/apex/com.android.runtime.release/lib64/bionic/libc.so:malloc

@fbs I think this is not an new issue for the 0.10.0 bpftrace version.

@b-ripper : I am running bpftrace on Android 9 and Android 10.

@b-ripper: Are you using adeb by any chance ? If so then take a note that the symbolic link links to /apex/com.android.runtime/lib64/bionic/libc.so and I don't see adeb binding top level /apex directory in it's chroot. Your problem might be indeed a different problem. Try either binding it on your own or running bpftrace without adeb.

hey folks! can we please move this discussion to a new issue? A merged PR is not an appropriate place for this discussion.
If you think that the issue is this PR, please feel free to reference it.

@michalgr @dalehamel  sure, very thanks!


Colliding Vehicles

Choose an option
This is a:

[X] Question
[  ] Feature request
[  ] Bug report

Hello,
I created a scenario and disabled all checks in order to be possible to have collisions between vehicles. Also, when a collision happens, the two colliding vehicles transport from the scenario and the rest of the cars continue until the end of episode steps. My question is, if there is a way to get the IDs of the colliding vehicles and the total number of collisions that occurred throughout the episode.

hi @cspatharis the names of the collided vehicles are acquired during the update method in flow/core/kernel/vehicle/traci.py via the sim_obs[tc.VAR_TELEPORT_STARTING_VEHICLES_IDS] variable (see line 121).
To get the names of the colliding vehicles, you can store them under a new class variable in this file (say self.collided_ids) then call it in the environment via the vehicle kernel, e.g.
collide_ids = self.k.vehicle.collided_ids

Thank you for your response.
I've been using SUMO for some time now and developed my project there but I wanted to move my project to Flow. I just realized that Flow does not support the latest version of SUMO that contains some crucial methods for my project. Can you tell me which is the latest supported version of SUMO and if there is a plan to move to the latest versions in the future?
Thanks in advance!

Hi @cspatharis, I believe the plan is to upgrade in the next week or so; we've had a few requests to upgrade. Do you happen to know the exact release date @AboudyKreidieh ?

Glad to hear that.
Basically, what I miss from the newer version is a way to get both the IDs of the colliding vehicles. In the latest version there is a constant called "tc.VAR_COLLIDING_VEHICLES_IDS" that does this job, but I haven't yet figured how to do it in your version of Flow. The previous answer from @AboudyKreidieh was very helpful, but it returns only the first vehicle that caused the collision.
Anyway, I'll wait for the upgrade ;)

hi @cspatharis sorry for the late reply. We will be upgrading sumo version Eclipse SUMO Version v1_1_0+0000-2147d155b1 within the next day. The release will still be in development, so you may experience a few bugs, but for the most part we think everything should work fine. A more final release will come in the next week. I will let you know when both the development and final releases are up. :)

hi @cspatharis the most recent version of master currently supports sumo-1.1.0

Thank you very much. I'll give it a try right away ;)


fastapi_utils 0.6.0 (multiple outputs, add maintainer)

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

references:

includes #1

changes:

[x] split outputs on extra name

[x] keep fastapi_utils with sqlalchemy

[x] update metadata
[x] add bot inspection for future prs
[x] add maintainer :wave:

@conda-forge-admin please rerender

@conda-forge/fastapi_utils ready for review

@conda-forge/fastapi_utils @conda-forge/core ready for review (it's been a week since previous request :blush:)

thank you!