When lifetime is reset with refreshTimeoutOnRequest?

First of all, thanks for the great module!
From reading the documentation, I'm not very clear when exactly the lifetime is reset with refreshTimeoutOnRequest set to true.
Is it once the lifetime ends a new one starts then?

So basically the lifetime is how long the record of request counts for an IP is kept. refreshTimeoutOnRequests renews that timeout each time a new request comes from that IP if it's set to true, while if it's set to false the timeout is the time since the first request from that IP.
If you look at the globalBruteforce example in the README, you'll see it's set to false - so that there is a limited number of requests from an IP in a given 24 hour period. If refreshTimeoutOnRequest was set to true (as is default) you would be locked out for 24 hours from the last request rather than 24 hours from the first request.
If you want to manually reset the count (for example because of a successful login) just call req.brute.reset(). I'm not sure I'm making this clear enough in the current "Basic Example" maybe I need to add the call to that.
Thoughts?

Adam

So for example, following settings:
var genericBruteforce = new ExpressBrute(store, {
freeRetries: 100,
lifetime: 30,
attachResetToRequest: false,
refreshTimeoutOnRequest: false,
});

allow up 100 requests during 30 seconds from a particular IP
ban any requests over 100 during these 30 seconds
once these 30 seconds are over, the IP can send up to 100 requests more

Is this correct?

Almost, you would also want to set ´minWait´ and ´maxWait´ to ´31´.  Oh, and I guess ´freeRetries´ would need to be ´99´. Then it would work as you described for the ´refreshTimeoutOnRequest: false´ case.
If true it would:

Allow up 100 requests from a particular IP. Then:
Ban 101 request and higher from the IP for 30 seconds from the last request.
Once these 30 seconds are over, the IP can send up to 100 requests more
Additionally, if more than 30 seconds elapse between any two requests the request count is set back to 1

@AdamPflug Thanks, it's more clear now.
Would be great to have these 2 cases described more clearly in doc, e.g.:

Option 1 - limit amount of requests in a certain time-period
Option 2 - limit amount of requests over a period

The problem imho that the difference is too subtle, perhaps use case examples would help.

I'm trying to balance keeping the documentation as simple as short as possible with providing enough information. Hopefully rephrasing it makes things a little clearer - if not I've linked to this issue.

very nice

minWaitand maxWait are in ms, so I guess in the example above they should be set to 30001 instead of 31 as described in https://github.com/AdamPflug/express-brute/issues/14#issuecomment-105966222. At least, fo me it does the trick 😉


If all classes are '0' in Y, fit goes into infinite loop

Running vanilla classifier on a dataset where all Y's are 0. Fit never returns.

Can you test the latest on dev? I hope this should have fixed it.


fix: remove more module-level uses of config.global

@windmgc Tests green, should be ready for another release now.


Allow users to override an extension's Activation Event in settings.json

Pretty much all in the title. A lot of extensions don't seem to care about choosing the most optimal Activation Event, or some extensions are simply having a hard time not to lag while running on a remote server, while they work just fine locally... It would be great if users could easily override it in settings.json if they desire, without needing to fork the whole extension and edit it on their own. Would it be possible somehow?

I'm wondering what are some extensions that currently have this issue?

Hi again, sorry i had to take a job break for health reasons.
@rzhao271 It would rather be for test purposes. Most extension are super fast on a regular network, but for some reason on a job network with picky firewall some will get really slow. Being able to test different Activation Event on our own could allow developers to suggest improvement to some extensions that would not be a problem for most users; and in the case the number of users it would benefit would be too low to be worth adressing, the user could try dealing with the issue on their own without needing to fork extensions.
I'm not on my job network right now and might not be for some time. I would have been pleased to provide you examples of Extensions giving me problems (there aren't that many anyway), but i can't right now. Also after a lot of testing trying to figure out a solution, i noticed that some slow-to-start extensions aren't problematic on their own, but starts to be when combined with other Extensions, most notably Python. Considering similar issues i've read online, it seems to be a problem with C++ extension too; i guess it might have something to do with compilers/debuggers, but that's just a guess i couldn't really tell.
It seemed to me it wouldn't necessarily be very complicated to implement, and might be a good idea in this context. I could be wrong. I'm aware users could end up shooting their own foot by tweaking such setting. I would be pleased to get more info about the feasibility of such feature, the possibility it could lead to security issues, or any problem related to it. I guess there are some since there was a downvote on my issue, but no further information was given by the disliking dev.

Could you reopen the issue?

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Add Find Area of A Cube

Why:
Closes #3269
What's being changed:
Added FindAreaOfACube.kt file in find-area-of-a-cube folder

@gvadam this repo is excluded from hacktoberfest2022, however I have a repo that is not excluded you may be able to contribute to:
shameless self plug: lol its not as fancy as this one but its honestly to help newer developers, lmk:
https://github.com/Tc2r1/DevInterview_Questions


Assert fails whenever a new capsule is added

This assert keeps crashing my game:
https://github.com/DanielChappuis/reactphysics3d/blob/5c736565a78ad2838524957d59797c5ebb643b96/src/collision/NarrowPhaseInfo.cpp#L68
It is being called from
https://github.com/DanielChappuis/reactphysics3d/blob/5c736565a78ad2838524957d59797c5ebb643b96/src/collision/narrowphase/SAT/SATAlgorithm.cpp#L439
Which is called from
https://github.com/DanielChappuis/reactphysics3d/blob/5c736565a78ad2838524957d59797c5ebb643b96/src/collision/narrowphase/SAT/SATAlgorithm.cpp#L265
And this contactNormal, or normalWorld, is created here:
https://github.com/DanielChappuis/reactphysics3d/blob/5c736565a78ad2838524957d59797c5ebb643b96/src/collision/narrowphase/SAT/SATAlgorithm.cpp#L253
The world I have setup is a static body with a concave mesh containing 20000 triangles, and a cube. The capsule is being created nearby the cube and nearby the mesh. If the capsule is created too close to the mesh, then this error happens.

Thanks for reporting this.
Can I ask you the value of the contactNormal vector ? Is it a zero vector ?

It is never zero. It varies between tests , as I haven't found a consistent way to reproduce this. On the most recent test, for example, it was {x = 0.00103093591, y = 0.4852705, z = 0.456292152}. When running it again, I got {x = -0.194580257, y = 0.589551449, z = 0.0647938699}
I'm working on making a re-producible program that demonstrates this.

It's a unit contact normal and therefore its length should be 1.
It would be great if you can help me reproduce this issue on my side.

I was able to make a small program to re-produce this issue. The file is attached. I'm running this on version 0.7.1, not on master. I created a plane, from four vertices, as a concave mesh. I then put this in the world as a static object, at the origin. I then made a capsule at (0, 0.1, 0), with size (1, 1). When I run this program, the first update call causes the assert, with the contactNormal being (0, 0, 0). I'm not sure if this is the same issue, as my other program was failing with non-zero contactNormals, but it definitely seems similar.
test.cpp.tar.gz

That program updates the simulation by zero time, not 1/20 of a second. Changing it to 1/20.0, or 1/60.0, does not affect the result.

If I create the capsule at (0, 1, 0), it fails when the capsule hits the ground. However, if I create it at (0, 1, 0), and rotated by the quaternion rp3d::Quaternion::fromEulerAngles(0, 0, 10), then it does not fail at all.

I have been able to reproduce your case on my side. The issue seems to happen when two neighbor triangle faces of the mesh have normals in the opposite direction. I have made a change in this commit in the master branch to avoid zero normal in this case. It solves the issue with your example. Not sure if it will solve the problem for your bigger mesh.
For instance, in your simple example your two faces are not oriented in the same direction. One is oriented clockwise and the other is oriented counter clockwise and therefore your two triangle faces have normal in the opposite direction. I am not sure it is wanted but it is a bit strange for a mesh to have two neighbor faces with normals in the opposite direction.

That does indeed fix the problem with the test program, however my larger program is still failing. I do not think it is an issue with the normals, as I am using the same data to render all of the triangles in that mesh, and they all appear to be facing the correct direction in the render. I am still trying to re-create the original bug in a testing environment.
I mixed up the normals in that sample program. The intent was for them to both be facing upward.

It turns out that whenever you construct a body with a non-unit quaternion, then it makes the normalWorld not a unit vector. I have been doing this by accident, which has caused the error. I think to fix this, you will need to either require the Transform that people pass to DynamicsWorld::createRigidBody to have a unit quaternion, or you will need to normalize it yourself.
Fell free to close this issue if I missed something in the docs that said this, otherwise I can make a patch that fixes this.

Thanks for your feedback.
I have added some checks when creating a body in this commit in the develop branch. Note that this will be part of the next version of the library which will be release probably this week.
I am closing this issue.


test: add helper to wait for CEP revision update in K8s

Consume this in the KafkaPolicies test.
Signed-off by: Ian Vernon<EMAIL_ADDRESS>Fixes: #4027
Marking this as high priority because this is consistently causing test failures in the CI.

The error that caused the build to fail is tracked by #4042, and is unrelated to my changes.

The error that caused the build to fail is tracked by #4042, and is unrelated to my changes. The test where my change is in passed, FWIW: https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/3018/testReport/k8s-1/7/K8sValidatedKafkaPolicyTest_KafkaPolicies/ . I'll try triggering another build to see if that fixes anything.

test-me-please

Test failed due to #4042 , which has a fix coming out shortly. I'm going to merge this.


Template for IAM policies

Hello,
I'm trying to use rainbow to create an iam policy and was thinking having something like this as template :
Parameters:
 PolicyName: {Type: String}
 PolicyGroups: {Type: CommaDelimitedList}
Resources:
 mypolicy:
  Type: AWS::IAM::Policy
  Properties:
   PolicyName: {Ref: PolicyName}
   PolicyDocument: {!file files/policy.json}
   Groups: {Ref: PolicyGroups}

With files/policy.json having the following :
{
   "Statement":[{
      "Effect":"Allow",
      "NotAction": ["ec2:describe*"],
      "Resource":["*"],
      "Condition": {"Null": {"aws:MultiFactorAuthAge": "false"}}
      }
   ]
}

Or even better do a PolicyDocument in parameter and call a !file {Ref: PolicyDocument} in the resource block.
However, none of this seems to work. If i need to write the policy in yaml directly then I don't see the use of the template as I would need one per policy :\
Resources:
 mypolicy:
  Type: AWS::IAM::Policy
  Properties:
   PolicyName: mypolicy
   PolicyDocument:
    Statement:
    - Effect: Allow
      NotAction:
      - "ec2:describe*"
      Resource:
      - "*"
      Condition:
       "Null":
        "aws:MultiFactorAuthAge": false
   Groups:

@EmFl sorry, missed the notification about your issue.
You can use
PolicyDocument: !file files/policy.json
(no need for the extra { })
You can also have an entire file
Parameters:
 PolicyName: {Type: String}
 PolicyGroups: {Type: CommaDelimitedList}
Resources:
 mypolicy:
  Type: AWS::IAM::Policy
  Properties:
   PolicyName: {Ref: PolicyName}
   PolicyDocument:
     {
        "Statement":[{
           "Effect":"Allow",
           "NotAction": ["ec2:describe*"],
           "Resource":["*"],
           "Condition": {"Null": {"aws:MultiFactorAuthAge": "false"}}
           }
        ]
     }
   Groups: {Ref: PolicyGroups}

And merge it to another template when running rainbow


precommit check?

Hey,
since today i am getting a pre commit check. I removed my node_modules in the morning and did a fresh install, then i got this output on every git commit.

i think the folder src is not in the release folder, that's why it says Error: Path src was not found.
Is there a way to disable pre commit check?

node v4.4.5
git commit -am "test"

><EMAIL_ADDRESS>precommit .../node_modules/grunt-jscs/node_modules/jscs/node_modules/cst
> npm test

><EMAIL_ADDRESS>test .../node_modules/grunt-jscs/node_modules/jscs/node_modules/cst
> npm run lint && npm run test:unit

><EMAIL_ADDRESS>lint .../node_modules/grunt-jscs/node_modules/jscs/node_modules/cst
> npm run lint:jscs

><EMAIL_ADDRESS>lint:jscs .../node_modules/grunt-jscs/node_modules/jscs/node_modules/cst
> jscs src test

Error: Path src was not found.
    at [object Object].<anonymous> (.../node_modules/grunt-jscs/node_modules/jscs/lib/checker.js:185:19)
    at Array.0 (..../node_modules/grunt-jscs/node_modules/vow/lib/vow.js:712:39)
    at Object.callFns [as _onImmediate] (....node_modules/grunt-jscs/node_modules/vow/lib/vow.js:23:35)
    at processImmediate [as _immediateCallback] (timers.js:363:15)

npm ERR! Darwin 15.5.0
npm ERR! argv "..../.nvm/v0.10.45/bin/node" "....nvm/v0.10.45/bin/npm" "run" "lint:jscs"
npm ERR! node v0.10.45
npm ERR! npm  v2.15.1
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>lint:jscs: `jscs src test`

I'm kind of confused what's going on there - this isn't for cst itself right? It definetely shouldn't be running a pre-commit hook for your own code.

i have no clue, it came after removing node_modules in the morning and i use grunt-jscs.


Introduce build setting for current Scala version

Description
Build setting & config setting to transition and query about the Scala version.
A small change compared to #1552 is that I don't allow an empty string value for the build setting.
This shouldn't change any behavior.
Motivation
Originally #1290.
Partitioned from #1552.

Also big thanks for

don't allow an empty string value for the build setting.

that was puzzling me in previous pr.

Updated the name of config setting as suggested in https://github.com/bazelbuild/rules_scala/pull/1559#discussion_r1540591226


Migrate to cargo workspaces

It became difficult to manage the related packages in separate repositories, so we merge them into one repository.
The target repositories are:

https://github.com/lindera-morphology/lindera
https://github.com/lindera-morphology/lindera-core
https://github.com/lindera-morphology/lindera-cli
https://github.com/lindera-morphology/lindera-ipadic
https://github.com/lindera-morphology/lindera-ipadic-builder
https://github.com/lindera-morphology/lindera-dictionary

Migrate to workspaces #57

done


Adding new common area for shared resources

Signed-off-by: tpmccallum<EMAIL_ADDRESS>Adding new common folder and templates to house resources/pages which are intended to be used across two or more project templates.

The failing CI is normal because the broken URLs are files in this PR (that don't exist yet; but will as soon as this PR is merged)

Thanks @vdice for the approval.
Also huge thanks to @karthik2804 for pacing through all of the other alternatives (which did not turn out in the end i.e. symlinks in GitHub and so forth). A bit of trial and error got us there in the end :)


How to imply a plugin for mongodb

We have to use mongodb because we don't want to import a new database.
I head that we can imply DAO to use our database?

MongoDB is now officially supported by Kong. You can choose between PostgreSQL, Cassandra and starting from Kong >= 1.1 you can also run Kong in a DB-Less mode with no database dependency.
At the time of this writing Kong 1.1 RC1 is available if you want to test it out.

MongoDB is not officially supported by Kong. You can choose between PostgreSQL, Cassandra and starting from Kong >= 1.1 you can also run Kong in a DB-Less mode with no database dependency.
At the time of this writing Kong 1.1 RC1 is available if you want to test it out.

Thanks,but docker hub can't find new features .So ,I don't know how to use kong 1.1 https://hub.docker.com/_/kong

MongoDB is not officially supported by Kong. You can choose between PostgreSQL, Cassandra and starting from Kong >= 1.1 you can also run Kong in a DB-Less mode with no database dependency.
At the time of this writing Kong 1.1 RC1 is available if you want to test it out.

I tried  to run docker run -d --name kong -e "KONG_DATABASE=off"............,which is your DB-Less mode? But when I can't save service from konga .

Konga is not officially maintained by us, so you will have to open an issue on their repository.


Improve syllable counting

This looks like a promising implementation: https://github.com/wooorm/syllable

I presume you have seen the Go port at: https://github.com/mtso/syllables

I actually wasn't aware of that—thanks for letting me know!
I forked the project and added wooorm/syllable's test suite of 4384 words. Initially, mtso/syllables had 104 failing cases. After a few minor changes, I got that down to a single case.
Performance-wise, though, it's not great:
BenchmarkSyllables-4                   3         345044683 ns/op

I'll see if I can clean my fork up more, and then I'll submit a PR.

I'd put money on the speed issue being because the *Regexp methods ReplaceAllString() and ReplaceAllStringFunc() cast from string->[]byte, to their stuff, then cast from []byte->string again every time they are called.
The syllables.In() function contains 10 of these calls, so there is a lot of memory copying and garbage collection happening for no benefit.
It would be faster to make syllables.InBytes() contain the logic and do it all using []byte rather than string types by calling *Regexp methods ReplaceAll() and ReplaceAllFunc().
As it is always fun to speed things up, I was tempted to fork the code and do it myself ... but I thought it would be rather selfish to deny you the pleasure.

Yep, it looks like that's the case. I've rewritten about half of the library to rely less on regular expressions (notably, I've removed all ReplaceAllStringFunc calls and reduced the overall regexp use to 7 calls) and here's the results so far:
name         old time/op  new time/op  delta
Syllables-4   135ms ± 5%    99ms ± 5%  -26.70%  (p=0.016 n=4+5)

This still has room for improvement, as I'm calling FindAllString 7 times.

Good work so far!

Looks great so far~
I'm a Go beginner myself and just used this to preprocess html files, so I haven't really looked at performance so far.
The .InBytes() func was an afterthought, actually, so elliot5 makes a good point that it could probably contain the logic instead.

I'm going to consider this closed for now: the performance is the same as above (~99 ms/op) and on a test suite of 9462 words it got 8798 correct (~93%). wooorm/syllable scored 8797.


Link from native functions to MDN

https://github.com/1-liners/1-liners/issues/94#issuecomment-108897104
For example:  “same as array.reduce”

:+1:


Update the AOM Analyzer URL

The decoder is missing but the root path (https://media.xiph.org/analyzer/) exists and inspect.js is there. I don't know where to find the decoder binary or if I even have access to this directory to add it if I find it. Either way the PR will probably not change once that is solved.

inspect.js == decoder.js I believe

Oh I see, thanks for clarifying.


Update inputs and copy on tell us about yourself page

@tdooner I left the hooks, submission properties, and language properties in the file so we can have them as a reference. They seemed easy to remove. Let me know if/when we should remove them!

@tdooner I left the hooks, submission properties, and language properties in the file so we can have them as a reference. They seemed easy to remove. Let me know if/when we should remove them!

I'm generally not a fan of keeping dead code around (since I tend to forget and then it sticks around way longer than I intend), so I'd suggest removing.

Sure, I'll take out the dead code before I merge.

Also flagging for myself on this one that tests failed and need to update the journey test with the new behavior.


⚠ Bofrost.at has degraded performance

In 7e7bd4b, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 3302 ms

Resolved: Bofrost.at performance has improved in 6af397e.


Stop running tests with nose.

After a week or so and a few explicit reviews, we should drop the nose test execution. As of #36201 tests are primarily run with pytest.
I should have called this branch tissuesBecause it stops running nose

After a week or so and a few explicit reviews, we should drop the nose test execution. As of #36201 tests are primarily run with pytest.

This is a question, just since I don't know; are there any "nose-specific" tests?  In other words, if we merge this will we stop running any tests?

What's the plan with this one?
I don't think nose is compatible with >= python3.10, I couldn't run nosetests on jammy
Traceback (most recent call last):
  File "/usr/local/google/home/dharinidutia/.local/bin/nosetests", line 8, in <module>
    sys.exit(run_exit())
  File "/usr/local/google/home/dharinidutia/.local/lib/python3.10/site-packages/nose/core.py", line 118, in __init__
    unittest.TestProgram.__init__(
  File "/usr/lib/python3.10/unittest/main.py", line 100, in __init__
    self.parseArgs(argv)
  File "/usr/local/google/home/dharinidutia/.local/lib/python3.10/site-packages/nose/core.py", line 179, in parseArgs
    self.createTests()
  File "/usr/local/google/home/dharinidutia/.local/lib/python3.10/site-packages/nose/core.py", line 193, in createTests
    self.test = self.testLoader.loadTestsFromNames(self.testNames)
  File "/usr/local/google/home/dharinidutia/.local/lib/python3.10/site-packages/nose/loader.py", line 481, in loadTestsFromNames
    return unittest.TestLoader.loadTestsFromNames(self, names, module)
  File "/usr/lib/python3.10/unittest/loader.py", line 221, in loadTestsFromNames
    return self.suiteClass(suites)
  File "/usr/local/google/home/dharinidutia/.local/lib/python3.10/site-packages/nose/suite.py", line 425, in __call__
    context = self.findContext(tests)
  File "/usr/local/google/home/dharinidutia/.local/lib/python3.10/site-packages/nose/suite.py", line 458, in findContext
    if isinstance(tests, collections.Callable) or isinstance(tests, unittest.TestSuite):
AttributeError: module 'collections' has no attribute 'Callable'

This is a question, just since I don't know; are there any "nose-specific" tests? In other words, if we merge this will we stop running any tests?

Thanks Chris, the rabbit hole you sent me down answering this question caused me to forget about this PR for two weeks!
I'm fairly confident that there is no nose-specific behavior since the tests all use unittest, usually implicitly.
Both nose and pytest run 7 tests on main.


Out with the stub in with the main

We've advanced V1 enough; this does away with the stub file and renames it main.qml

updated from b3b3966 to 447fd0e
changes: dropped formatting change to avoid future conflicts, rebased over main


Data request

The ST data from website http://www.cancerdiversity.asia/scCRLM/ seems cannot be accessed.

Thank you for your message. Unfortunately, I am not the owner or publisher of the data, so I cannot provide information regarding data access rights. The link you mentioned (http://www.cancerdiversity.asia/scCRLM/) is publicly provided in the original publication. For further inquiries about accessing the data, I recommend contacting the authors of the original paper: https://doi.org/10.1158/2159-8290.CD-21-0316. They should be able to assist you with data-related questions.
----- 原始邮件 -----
发件人: "Smilenone" @.>
收件人: "cz0316/HEARTSVG" @.>
抄送: "Subscribed" @.***>
发送时间: 星期五, 2024年 11 月 08日 下午 10:03:18
主题: [cz0316/HEARTSVG] Data request (Issue #1)
The ST data from website http://www.cancerdiversity.asia/scCRLM/ seems cannot be accessed.
--
Reply to this email directly or view it on GitHub:
https://github.com/cz0316/HEARTSVG/issues/1
You are receiving this because you are subscribed to this thread.
Message ID: @.***>
袁欣
Xin Yuan, PhD
Department of Bioinformatics & Biostatistics
School of Life Sciences and Biotechnology
Shanghai Jiao Tong University
Life Science Building
800 Dongchuan Road, Shanghai 200240, China
@.***


Absorb actionlint into pre-commit

Problem

Currently actionlint is a separate workflow that runs on push (to the main branch) and pull_request.
https://github.com/WordPress/openverse/blob/38af21c359703d3faee9e160f1ac69372661d6a2/.github/workflows/actionlint.yml
This is a problem because it reports issues after they have been pushed instead of locally before pushing.
Description

actionlint offers pre-commit hooks.
This means that we can

run the checks locally before committing and pushing
get rid of the separate workflow and run the check as a part of the Lint job inside the CI + CD workflow.

Please, guide me on how I can get started on this issue.

@AdarshRawat1 to resolve this issue you will need to

add actionlint to our .pre-commit-config.yaml file as described here
delete the actionlint.yml file from .github/workflows.

To add some additional clarity, you'll actually need to edit the pre-commit-config template here: https://github.com/WordPress/openverse/blob/main/templates/.pre-commit-config.yaml.jinja
That template is then rendered into .pre-commit-config.yaml (see our template README for more info: https://github.com/WordPress/openverse/tree/main/templates). You can check out #963 for a good example of making modifications to the pre-commit files. I'll go ahead and assign you the issue!

Thank you, @dhruvkb  @AetherUnbound


error "wait init..."

Ive read previous reports of the issue. Ive tried all the solution proposed.
Have this problem with different versions of pip-manager (tried version 1.0-1.1).
At first I did not even see that the manager started. I overcame this and faced another problem.
Yes, I do run Python. I use Mac OS 11.5.1.
This feature is super helpful, so I hope this issue can be resolved somehow.
Here`s what I got.

This maybe pip error, you can try reinstall you pip
Hope this issue can help you
https://github.com/pypa/pip/issues/8263

Lovely, thank you.
It helped me partially.
I tried to reinstall pip, VSC and python, but it did not work.
Finally, I got tired and deleted everything (pip, python, VSC) and cleaned remaining files in /usr/ location and /library/ as well (as was suggested in mentioned thread). I reloaded my Mac and installed everything again causiously.
It worked only after installed pip 1.1.0 (current version 1.1.1 did not work).
Hope that would help to someone.
Thanks slightc!


[$500] Compose-Profile in header is shown when tapping on deep link

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.11
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:

Launch app
From slack tap on this deep link
https://staging.new.expensify.com/a/hello

Expected Result:
When user taps on this deep link, "profile" must not be shown as title in header.
Actual Result:
When user taps on this deep link, "profile" is shown as title in header.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/115492554/cfc97f86-897a-4a10-9515-b5f0b3dcee17

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01e3a5ca00ba4560c8
Upwork Job ID:<PHONE_NUMBER>121460736
Last Price Increase: 2023-12-12

Proposal
Please re-state the problem that we are trying to solve in this issue.
Compose-Profile in header is shown when tapping on deep link
What is the root cause of that problem?
The root problem of the issue is that the link used in the example is used for opening a user profile in the Right modal:
Here
Since the userId is not found we are shown the error screen.
What changes do you think we should make in order to solve the problem?
We could validate userIds before navigation. We have the helper function isValidAccountRoute that we could use.
What alternative solutions did you explore? (Optional)

Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/en-gb/freelancers/~018bd6ae4efe8f4b52

Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/freelancers/~018bd6ae4efe8f4b52

Proposal
Please re-state the problem that we are trying to solve in this issue.
Compose-Profile in header is shown when tapping on deep link
What is the root cause of that problem?
Currently when the profile page loads we validate only if the account ID in the URL is a number, and if so we add the default data to Onyx (this also causes another issue, showing the profile as hidden when the profile does not exist). Also, the bug reported only happens when the account  ID has text or the ID is very large. See the video:
https://github.com/Expensify/App/assets/5216036/6e4aea82-d069-4281-a04a-effdfe92e1f2
What changes do you think we should make in order to solve the problem?
We should look into props.personalDetails in ProfilePage.js and verify if AccountID is in the list, with this we can determinate if the user exists in our DB, something like:
const [profileExists, setProfileExists] = useState(null);
    // eslint-disable-next-line es/no-optional-chaining
    const shouldShowProfileError = props.personalDetails[accountID]?.shouldShowProfileError;
    useEffect(() => {
        const setProfileStatus = () => {
            // The props.personalDetails has all the valids accountIDs
            const validAccountIds = _.keys(props.personalDetails);
            const profileFound = _.filter(validAccountIds, (id) => id === accountID.toString()) >= 1;
            setProfileExists(profileFound);
        };
        setProfileStatus();
    }, [accountID, props.personalDetails]);

Then we can determine better if we should openPublicProfilePage and if not we'll need to set the isLoading variable in Onyx as false like:
useEffect(() => {
        if (profileExists && ValidationUtils.isValidAccountRoute(accountID) && !hasMinimumDetails) {
            PersonalDetails.openPublicProfilePage(accountID);
        } else if (profileExists !== null && !profileExists) {
            // eslint-disable-next-line rulesdir/prefer-actions-set-data
            Onyx.set(ONYXKEYS.PERSONAL_DETAILS_LIST, {
                ...props.personalDetails,
                [accountID]: {
                    ...props.personalDetails[accountID],
                    shouldShowProfileError: true,
                },
            });
        }
    }, [accountID, hasMinimumDetails, profileExists, props.personalDetails]);

Finally, we should show the warning in this way:
{shouldShowProfileError && (
                    <BlockingView
                        icon={Illustrations.ToddBehindCloud}
                        iconWidth={variables.modalTopIconWidth}
                        iconHeight={variables.modalTopIconHeight}
                        title="The user profile does not exist"
                        shouldShowLink
                        link={props.translate('notFound.goBackHome')}
                    />
                )}

If shouldShowProfileError is true, we should hide the other components like:
{!shouldShowProfileError && shouldShowBlockingView && (
                    <BlockingView
                        icon={Illustrations.ToddBehindCloud}
                        iconWidth={variables.modalTopIconWidth}
                        iconHeight={variables.modalTopIconHeight}
                        title={props.translate('notFound.notHere')}
                        shouldShowLink
                        link={props.translate('notFound.goBackHome')}
                    />
                )}

See the final result:
https://github.com/Expensify/App/assets/5216036/a1637ba8-62b8-4b5c-ae97-e136341b3a7f

Reviewing

Raised a discussion https://expensify.slack.com/archives/C01GTK53T8Q/p1702639941065949, to determine if this is worth fixing.

This doesn't fit into any of the waves. I agree with the votes to :donothing:. Closing out

@sonialiap, just curious, if the issue is closed out as completed and "donothing" is the course of action taken, is there a bounty awarded to any of the proposals?

Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/freelancers/~011e73a62e9be4d45c

@sonialiap I am interested in contributing proposals to issues that are raised for this app, but when I see instances such as these it is discouraging because as contributors we can do everything right on our end and propose good solutions, but as it turns out there is no real potential for payout.  This kind of situation decreases the expected value of answering these issues with proposals.  Hopefully, these kinds of situations are kept to minimum with plans to reduce their occurrences in the future?


Assets missing from built test site

/assets/ folders needs to work here: https://design-system-react-components.herokuapp.com/

This works now.


Add: ATD TV

Channel Name
ATD TV
Alternative Names (optional)
American TV of Dardania
Network (optional)
No response
Owners (optional)
No response
Country
XK
Subdivision (optional)
No response
City (optional)
Peje
Broadcast Area
c/XK
Languages
sqi
Categories (optional)
general
NSFW
FALSE
Launched (optional)
No response
Closed (optional)
No response
Replaced By (optional)
No response
Website (optional)
http://www.atd-tv.com/
Logo
http://www.atd-tv.com/images/atd-news-/atd logo sncro.png
Notes
No response

https://iptv-org.github.io/channel?id=ATDTV.us


Create SECURITY.md

Samk drive wordl

Description
Please describe your changes in detail, unless the title is already descriptive enough.

[x] - I have tested my changes.
[x] - I have updated CHANGELOG.md and added my change to the Unreleased section
[x] - The PR has a meaningful title.
[x] - I updated my fork/branch and have integrated all changes from AutomatedLab/develop before creating the PR.

Type of change

[x] Bug fix
[x] New functionality
[x] Breaking change
[x] Documentation

How was the change tested?

Hello


X11 color support

X11 color names is well known to programmers and designers because CSS can take care of this color names.
I thought it's good for us to take advantage of this famous color names. Giving "aqua" is much more intuitive than giving RGB array. This patch adds an ability to specify Rainbow("hello").color(:aqua) or Rainbow("hello").aqua
X11 color names are not supported on ANSI terminal. This is just a syntax sugar for RGB Array. Color specified with an ANSI name are effected by terminal setting but RGB Arrays are not. So I keep existing behavior of ANSI names and documented this behavior.
How do you think of this?

Looks great. Thanks!


fix for best practices, close #1038

Deploy preview for landscape ready!
Built with commit d0b266499d3a0720a19b92057c743ef658016333
https://deploy-preview-1039--landscape.netlify.com


启动webgui.py，上传图片和音频后报错

Traceback (most recent call last):
File "D:\Program Files\miniconda3\envs\echomimic\lib\site-packages\gradio\queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "D:\Program Files\miniconda3\envs\echomimic\lib\site-packages\gradio\route_utils.py", line 276, in call_process_api
output = await app.get_blocks().process_api(
File "D:\Program Files\miniconda3\envs\echomimic\lib\site-packages\gradio\blocks.py", line 1923, in process_api
result = await self.call_function(
File "D:\Program Files\miniconda3\envs\echomimic\lib\site-packages\gradio\blocks.py", line 1508, in call_function
prediction = await anyio.to_thread.run_sync(  # type: ignore
File "D:\Program Files\miniconda3\envs\echomimic\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\Program Files\miniconda3\envs\echomimic\lib\site-packages\anyio_backends_asyncio.py", line 2177, in run_sync_in_worker_thread
return await future
File "D:\Program Files\miniconda3\envs\echomimic\lib\site-packages\anyio_backends_asyncio.py", line 859, in run
result = context.run(func, *args)
File "D:\Program Files\miniconda3\envs\echomimic\lib\site-packages\gradio\utils.py", line 818, in wrapper
response = f(*args, **kwargs)
File "webgui.py", line 233, in generate_video
final_output_path = process_video(
File "webgui.py", line 169, in process_video
face_img = cv2.resize(face_img, (width, height))
cv2.error: OpenCV(4.10.0) :-1: error: (-5:Bad argument) in function 'resize'

Overload resolution failed:

src is not a numerical tuple
Expected Ptrcv::UMat for argument 'src'

相同问题，等回复

+1报错，不知道是不是python版本的问题，我是3.10，，看README，建议使用3.8是吧。

same problem

+1 Error,I don't know if it's a python version problem.,I'm 3.10,,Look at README,It's recommended to use 3.8..,It's right.。

This was tested in 3.10
Python Environment Setup
Tested System Environment: Centos 7.2/Ubuntu 22.04, Cuda >= 11.7
Tested GPUs: A100(80G) / RTX4090D (24G) / V100(16G)
Tested Python Version: 3.8 / 3.10 / 3.11

同样问题+1

We need @greengerong @Robin021 and @O-O1024. Please help us have a working gradio for echomimic

process_video函数下的
face_img = crop_and_pad(face_img, crop_rect)
face_mask = crop_and_pad(face_mask, crop_rect)

改为
face_img,crop_rect = crop_and_pad(face_img, crop_rect)
face_mask,crop_rect = crop_and_pad(face_mask, crop_rect)

Thanks its working. Is there a way to make the webgui.py to use the accelerated infer_audio2vid_acc.py

@oisilener1982 @do-one-thing-to-well @beierjie39
Attached file working for me

Command
python -u webgui_a2v_acc.py --server_port=3000
Download and extract in the installation folder
webgui_a2v_acc.zip

cv2.error: OpenCV(4.10.0) :-1: error: (-5:Bad argument) in function 'resize'

Overload resolution failed:

src is not a numerical tuple
Expected Ptrcv::UMat for argument 'src'

The uploaded file gives error. I dont understand how you got 6 steps if the steps in webgui_a2v_acc is 30

webgui.zip
尝试下我这个版本，我已经使用了acc模型和解决error: (-5:Bad argument) in function 'resize'问题。
修改细节如下：
关于步骤为6和30的问题，请修改default_values中的steps。
然后
face_img,crop_rect = crop_and_pad(face_img, crop_rect)
face_mask,crop_rect = crop_and_pad(face_mask, crop_rect)

修改为
face_img,_ = crop_and_pad(face_img, crop_rect)
face_mask,_ = crop_and_pad(face_mask, crop_rect)

from src.pipelines.pipeline_echo_mimic import Audio2VideoPipeline

修改为
from src.pipelines.pipeline_echo_mimic_acc import Audio2VideoPipeline

config_path = "./configs/prompts/animation.yaml"

修改为
config_path = "./configs/prompts/animation_acc.yaml"

can anyone confirm that the accelerated version has lower quality? Even if i try to increase the number of steps from 6 to 30 it is still have lower quality than the original/older version of echomimic

cuda版本有要求吗?目前12.1报错了: Torch not compiled with CUDA enabled

有人碰到这个问题不

Same issue.
watch this.

修改细节如下：
关于步骤为6和30的问题，请修改default_values中的steps。
然后
face_img,crop_rect = crop_and_pad(face_img, crop_rect)

这个方案是可以的。

有大佬遇到过这个问题吗，

 有大佬遇到过这个问题吗，

版本回退就行，这个很容易搜到


Fix/net-mgmt/net-snmp/sysServices

The plugin offers an option to enable "Layer 3 Visibility" which leads to the sysServices OID being set to 76.
This boils down to the following services being advertised:

datalink/subnetwork
internet
end-to-end

I really don't know why this is necessary as an option and not simply hardwired - but maybe OPNsense as a transparent bridge does not count as an internet/IP providing system. I can see that ...
That being said in the absence of that option the sysServices OID is not set at all which I consider a bug. It should be set to 72 instead. This pull request does exactly that.
Reference:
https://oidref.com/<IP_ADDRESS>.4.1.19<IP_ADDRESS>.7
Kind regards,
Patrick

Sorry, mixed two completely independent things into one pull request - I'll try again.


How to get the object name?

const json userData = {
    {
        "intake",
        {
            {"motor", {
                         {"L", {{"port", 9}, {"test", false}, {"gear", 0}}},
                         {"R", {{"port", 10}, {"test", true}, {"gear", 0}}},
                     }},
            {"ADI", {
                        {"port", 4},
                    }},
            {"pragma", {
                         {"val1", 2600},
                         {"val2", 40},
                         {"val3", 5},
                     }},
        },
    },
};
auto temp=userData ["intake"];
std::cout<<temp.????<<std::endl;

I hope he can output 'intake'.
Which function should I use to get the name of the object name?

That’s unfortunately not possible. There was an issue in the past, but the solution would have taken a lot of memory overhead.

Can't the object's name be printed by means of iterators (doc)?
From the docs:

for (auto it = j.begin(); it != j.end(); ++it)
{
    std::cout << it.key() << " : " << it.value() << std::endl;
}

That appears to me as if by iterating over the top-level json object and then using the key() function on the iterator, you should be able to fetch the desired name :thinking:

No, the name belongs to the enclosing object rather to the value itself.

Ah yes, I think I misread the question more towards the direction in which I was searching for something. My bad.


Analog flow is completely broken

All of the .mag files in the magic/ directory have tech $PDK as the second line, which is not handled by magic and completely breaks the design flow and causes everything to fail.

@marwaneltoukhy :  This error appears to come from commit<PHONE_NUMBER>07cc32b9d26b35a2963a7632ee35ca with your name on it.  Can you explain this commit??

@RTimothyEdwards This was to change the pdk name to be a variable, so sky130A changed to PDK environment variable, PDK should be exported same as how we export PDK_ROOT, to either sky130A or sky130B

@marwaneltoukhy :  But you can't do that!  The .mag file is a specific, documented format, and variables are not part of that format.  By putting a variable in the file, you break the file format and magic isn't going to accept that file, breaking magic for anybody who uses it on any of those files.  There is a good reason that the field isn't a variable, which is that layouts are all very specific to processes and process variants.  You would not, generally speaking, want the same layout for a different variant.  At any rate, there is already a known way of moving a file from one technology to another in magic, which is to use the "load -force" option.
If you wish to specify that a layout could be compatible with multiple variants, I would at least require that the format have specific control over which variants are allowed, but allowing any variant whatsoever is just wrong, wrong, wrong.  I would be happy to discuss making some extension to magic to allow a limited selection of compatible technologies, such as, perhaps, "tech sky130A|sky130B" or "tech (sky130A sky130B)" or somesuch.

See pull request #34

The PR is still open yet this evidently isn't still a problem.  I'm closing


Read for media_picker

Laravel version
9.x
PHP version
8.4.1
Voyager version
1.5
Description of problem
In bread, choose Media Picker
When reading a model, the string is displayed

It will be better to display the image
Proposed solution
In vendor\tcg\voyager\resources\views\bread\read.blade.php, change
@elseif($row->type == "image")
to
@elseif($row->type == "image" || $row->type == "media_picker")

Alternatives considered
No response
Additional context
No response

We are open for PRs.

Media picker is more than just images, so the proposed solution as-is will not be adequate.  However, as @emptynick said, we're open to PRs and can review further there.

Linked to the PR https://github.com/the-control-group/voyager/pull/5662


feat: add protocols to WebSocket "connection" event

Currently, there is no way to access the full list of protocols supported by the WebSocket client. WebSocketOverride only exposes the first value (relevant line).
This PR exposes the client protocols in the connection event, so tests can verify the client provided the right protocols.

Hi, @DanielleHuisman. Thanks for opening this.

WebSocketOverride only exposes the first value

That is correct. WebSocketOverride complies with WebSocket, which complies with WHATWG WebSocket, where the protocol property on the WebSocket interface is a single string representing the protocol that was eventually chosen by the instance (source).
In other words, this is also true:
let ws = new WebSocket(url, ['ws:', 'wss:'])
// You cannot access the full list of protocols anymore.
ws.protocol // "ws:"

Can you tell me more about your use case to access the list of protocols?

Also a bit of information about how the string[] input of protocols is handled:

Each string in the array is a subprotocol name. The connection will only be established if the server reports that it has selected one of these subprotocols.

As I understand it, the handshake request's Sec-WebSocket-Protocol header will combine all the protocols you've specified on the client so then the server can report which protocol it ended up using.
Does this mean that you want to access the list of protocols to choose between them within the event handler? I'm still a bit confused how that's beneficial. Would love to learn more.

I think you're mixing up URL protocols and WebSocket subprotocols. The URL protocol (ws: or wss:) is specified in the url parameter of the WebSocket constructor. The WebSocket subprotocols are specified in the protocols parameter of WebSocket. The naming of the second parameter is a bit unfortunate.
WebSocket subprotocols are user defined strings that could represent the capabilities of the client and server. As you mentioned, the client and server need to agree on the subprotocol they are using and this single value is stored in WebSocket.protocol. An example of these subprotocols can be found in section 1.2 of the RFC. More information can be found in the RFC when searching for Sec-WebSocket-Protocol or subprotocol.
I have some WebSocket client code that conditionally chooses a subprotocol, so I would like to verify this behaviour in unit tests using MSW. Currently, I can only verify the first value sent by the client in WebSocket.protocol. My PR attempts to expose the full list of subprotocols provided by the client.
Now that I've looked at it in more detail, I think the default value (ws) in WebSocketOverride (line) does not match the specification. I believe if no subprotocols are provided by the client, WebSocket.protocol is an empty string, because the client and server both agree not to use a subprotocol. Ofcourse assuming the server doesn't require the use of a subprotocol.
I hope this clarifies the intentions of my PR.

I think you're mixing up URL protocols and WebSocket subprotocols.

🤦 I totally am mixing those up. Thanks for clarifying!

My PR attempts to expose the full list of subprotocols provided by the client.

I think this is reasonable then. Let me think of the exact way we can do that.

Now that I've looked at it in more detail, I think the default value (ws) in WebSocketOverride (line) does not match the specification.

Yes, you are right. Please, could you open a new pull request to fix this? I would be grateful!

I've nested the protocols under info key of the event payload. This is how you can access it now:
interceptor.on('connection', ({ info, client }) => {
  info.protocols // ['one', 'two']
  client.socket.protocol // 'one'
})

Released: v0.30.0 🎉
This has been released in v0.30.0!

📄 Release notes
📦 npm package

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.

Predictable release automation by @ossjs/release.


Integrating Easy Digital Downloads and Other Plugins

Hi,
My theme is based on a parent / child layout structure and i'm trying to integrate Easy Digital Downloads with it.
If I view this -> http://beast.dev/base/downloads/test-product/ I get this error
Fatal error: Uncaught Error: Call to undefined function post__password_required() in /Users/beast/Documents/code/base/wp-content/themes/base-child/single.php:8 Stack trace: #0 /Users/beast/Documents/code/base/wp-includes/template-loader.php(89): include() #1 /Users/beast/Documents/code/base/wp-blog-header.php(16): require_once('/Users/beast/Do...') #2 /Users/beast/Documents/code/base/index.php(17): require('/Users/beast/Do...') #3 {main} thrown in /Users/beast/Documents/code/base/wp-content/themes/base-child/single.php on line 8
Moving forward what is the best way to integrate 3rd party plugins into my WordPress theme similar to Woocommerce.
What version of WordPress, PHP and Timber are you using?

WordPress 4.4.2 PHP 7 Timber 0.22.5 Mamp
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)

Using Composer/packagist

Hi @JakeHenshall - thanks for this, could you please give me detailed instructions on how to replicate this?
Thanks

Hi @connorjburton Thanks for the reply,
All i did was install Easy Digital Download, Ive followed the Woocommerce instructions to get that working and it so far works perfectly but i don't know if i need to do anything for Easy Digital Downloads and other 3rd party plugins.
Jake.

Hi @JakeHenshall - can you try this with Timber disabled please?

@connorjburton I've done a little more on this and it seems to work with Timber quite nicely, but it dosent seem to output the images, i dont know if you can have additional templates similar to what Woocommerce does with the woo/single-product/ ive put out a question to EDD and ill link this issue.

@JakeHenshall does this problem still persists? Please respond in two weeks or we'll close this thread


Present test results as HTML table

(Via #1.)

[ ] Present results as HTML table

Requires saving it as JSON and not one fat string, for one

Use jQuery + skeleton.css

This is not necessary, so closing for now.

This is not necessary, so closing for now.


Market code can support different base token

What
Ocean backend code supports different base tokens. Ocean frontend code has a stronger bias to use OCEAN as a base token.
Goal of this issue: make it more straightforward for Ocean frontend code to use a different base token.
Motivation
This helps in two ways:

Helps several 3rd party marketplaces, which would like to use their own token at the frontend level, eg for pools staking/swapping and for FRE.
Helps Ocean Market switch from using OCEAN, to an OCEAN-backed stablecoin -- market#447

No, we had this in mind when refactoring things but we never tested a different base token, and there are still places which assume OCEAN alone. We always said to do this after v4

Ok, closing this. Concrete implementation of multiple approved tokens will be tracked here https://github.com/oceanprotocol/market/issues/1335


FillColor doesn't work in UWP

Please take a moment to fill out the following (change to preview to check or place x in []):
This is a

[x] Bug
[ ] Feature Request

Which plugin does this impact:

[ ] Battery
[ ] Connectivity
[ ] Contacts
[ ] DeviceInfo
[ ] ExternalMaps
[ ] Geolocator
[x] Media
[ ] Permissions
[ ] Settings
[ ] Text To Speech
[ ] Vibrate
Other:

Version Number of Plugin:
Device Tested On: Windows 10 Version 1511
Simulator Tested On: -
Expected Behavior
Transparent part of PNG image fills with Color specified in "FillColor" attribute
Actual Behavior
Transparent part of PNG stays transparent / filled with BackgroundCOlor of parent element
Steps to reproduce the Behavior
Regular CircleImage control with FillColor specified

I'm running into this as well with v1.4.1 of the ImageCircle plugin.

Moved to: https://github.com/jamesmontemagno/ImageCirclePlugin/issues/1
I did not implement this so it is expected currently.


[0.12.1] Callback already called / hook 'moduleloader' is taking too long to load.

I think this issue is related to #3550. I upgraded to 0.12.1 from 11 to see if https://github.com/balderdashy/sails-hook-sockets/issues/16 had been fixed.
Lift is successful, with all the hooks in the rc below not loading as intended. But after a while I get the module loader hook timeout and a callback already called error from here: https://github.com/balderdashy/sails/blob/master/lib/app/private/loadHooks.js#L87
Error:

Scope at the point of error:

Same issue occurs via https://github.com/Jam3/devtool (as above) or just using pure node.
Node version: v5.6.0
Electron version: v0.36.8
.sailsrc:
{
  "hooks": {
    "csrf": false,
    "grunt": false,
    "i18n": false,
    "pubsub": false,
    "controllers": false,
    "request": false,
    "session": false,
    "sockets": false,
    "http": false,
    "views": false,
    "middleware": false,
    "router": false,
    "express": false,
    "responses": false,
    "policies": false,
    "blueprints": false,
    "cors": false
  }
}

@luislobo tagging you in as you did the original PR.

@Salakar awesome explanation- thank you.  Will take a look ASAP.
In the mean time, some notes:

This commit was for 0.11.5, so at first I thought this might just be that we need to make a comparable change to master.  But looks like the fix is in place on master as well. So there's probably something else going on..
@sgress454 merged @luislobo's patch into stable, which is now the 0.11 branch (since 0.12.x is the stable release now).  See https://github.com/balderdashy/sails/commits/0.11 for context.

Some more notes:

Always errors 10 times (10 modules?):

Also only occurs in debugger. node debug / devtool - can't reproduce issue without debug mode. Weirdly. Potentially looks like the clearTimeout stuff isn't working. So I guess this is not a production issue - just an annoyance during development. Sails continues fine after all the errors have been thrown.

Did a global node modules wipe, and a project node modules wipe. Same issue.

Ok, I rolled back to 11.4 still having the same issue. So must be something my side, closing this for now until I can investigate further. Danke.

I'm getting a similar error on 12.1
Error: A hook (`orm`) failed to load!
 Error: Callback was already called.
     at /web/backend/node_modules/sails/node_modules/async/lib/async.js:43:36
     at /web/backend/node_modules/sails/lib/app/private/loadHooks.js:99:18
     at /web/backend/node_modules/sails/node_modules/async/lib/async.js:52:16
     at /web/backend/node_modules/sails/node_modules/async/lib/async.js:565:21
     at /web/backend/node_modules/sails/node_modules/async/lib/async.js:167:37
     at /web/backend/node_modules/sails/lib/hooks/orm/build-orm.js:53:23
     at /web/backend/node_modules/sails/node_modules/waterline/lib/waterline.js:208:23
     at /web/backend/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:52:16
     at /web/backend/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:264:21
     at /web/backend/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:44:16
     at /web/backend/node_modules/sails/node_modules/waterline/lib/waterline/query/index.js:68:23
     at null._onTimeout (/web/backend/node_modules/sails/node_modules/waterline/lib/waterline/adapter/sync/strategies/alter.js:268:12)
     at Timer.listOnTimeout (timers.js:92:15)
 freetype.js:1
 var Module;if(typeof Module==="undefined")Module=eval("(function() { try { return Module || {} } catch(e) { return {} } })()");if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=0}Module.expectedDataFileDownloads++;((function(){function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}fileData0=[];fileData0.push.apply(fileData0,[79,84,84,79,0,13,0,128,0,3,0,80,67,70,70,32,137,224,82,238,0,0,7,132,0,0,45,223,70,70,84,77,101,130,23,249,0,0,55,12,0,0,0,28,71,68,69,70,0,160,0,4,0,0,53,100,0,0,0,32,71,80,79,83,184,255,184,254,0,0,54,220,0,0,0,48,71,83,85,66,234,147,151,221,0,0,53,132,0,0,1,88,79,83,47,50,131,156,137,79,0,0,1,64,0,0,0,96,99,109,97,112,146,230,183,142,0,0,5,184,0,0,1,170,104,101,97,100,251,7,171,9,0,0,0,220,0,0,0,54,104,104,101,97,7,42,2,2,0,0,1,20,0,0,0,36,104,109,116,120,33,252,29,155,0,0,55,40,0,0,0,234,109,97,120,112,0,115,80,0,0,0,1,56,0,0,0,6,110,97,109,101,152,108,186,46,0,0,1,160,0,0,4,23,112,1
 Error: Callback was already called.
     at /web/backend/node_modules/sails/node_modules/async/lib/async.js:43:36
     at /web/backend/node_modules/sails/lib/app/private/loadHooks.js:99:18
     at /web/backend/node_modules/sails/node_modules/async/lib/async.js:52:16
     at /web/backend/node_modules/sails/node_modules/async/lib/async.js:565:21
     at /web/backend/node_modules/sails/node_modules/async/lib/async.js:167:37
     at /web/backend/node_modules/sails/lib/hooks/orm/build-orm.js:53:23
     at /web/backend/node_modules/sails/node_modules/waterline/lib/waterline.js:208:23
     at /web/backend/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:52:16
     at /web/backend/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:264:21
     at /web/backend/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:44:16
     at /web/backend/node_modules/sails/node_modules/waterline/lib/waterline/query/index.js:68:23
     at null._onTimeout (/web/backend/node_modules/sails/node_modules/waterline/lib/waterline/adapter/sync/strategies/alter.js:268:12)
     at Timer.listOnTimeout (timers.js:92:15)

It seems to only happen to me when I run models.js as alter. But it runs and the sails continues to run normally.

Nevermind, in my specific case it was that I had to increase the hookTimeout when running in alter mode.


Is it possible to install a new instance of Roadkill without resetting the provided database?

Hello! First, let me say thank you for this amazing project and all the work done so far!
I have a question. I installed the stable release version of the wiki and I added some users, pages and enabled some plugins. Then, I cloned the project in order to slightly modify the "all pages" view, dividing the pages with different tags into categories and organizing the view with "expand-collapse" headings. I also modified the mediawiki theme slightly.
Now, I wanted to use my original postgres database, which contains the pages and the content, the users and the plugin information. I used the tool provided to export the database as SQL and I can recreate all the tables and its contents.
I published my version of the project (Roadkill.Web) using Visual Studio and I can run my published version locally using IIS Express.
However, any database that I specify on the connection string when installing gets wiped. I tried dropping the database, creating a new one with the same name and populating its tables with my values. When I do that, I get this error:

I also tried to install using the unattended url and specifying the connection string through there but it seems to delete the database as well. Changing the connection string manually to a new filled database results in that error too.
So, I would like to know if it is possible to preserve a filled database between installations. If not, is there a way around this? My major concern is having the plugins enabled (primarily the ToC) when filling my database with old pages and page contents using a SQL script.
Thanks!

Could you try updating the NpgSql package perhaps? Googling that error, this bug might be the culprit:
https://github.com/npgsql/npgsql/issues/252
I don't think it's a Roadkill-related one, at least not directly.

I couldn't find NpgSql nor LightSpeed package references on the project and manually updating the dll produced a compilation error because it isn't expecting the newer version. The error indicates that there's a packages.config referencing NpgSql somewhere but I can't find where.
Anyway, changing to Sql Express worked fine.

Glad you fixed the issue, SQL Express is the easiest option, definitely.


Trouble building on Ubuntu 15.04, 64 bit

It seems to be complaining that GLXW/glxw.h is missing ..
 build  master +  $ make
Scanning dependencies of target glfw
[  1%] Building C object glfw/src/CMakeFiles/glfw.dir/clipboard.c.o
[  2%] Building C object glfw/src/CMakeFiles/glfw.dir/context.c.o
[  3%] Building C object glfw/src/CMakeFiles/glfw.dir/gamma.c.o
[  5%] Building C object glfw/src/CMakeFiles/glfw.dir/init.c.o
[  6%] Building C object glfw/src/CMakeFiles/glfw.dir/input.c.o
[  7%] Building C object glfw/src/CMakeFiles/glfw.dir/joystick.c.o
[  9%] Building C object glfw/src/CMakeFiles/glfw.dir/monitor.c.o
[ 10%] Building C object glfw/src/CMakeFiles/glfw.dir/time.c.o
[ 11%] Building C object glfw/src/CMakeFiles/glfw.dir/window.c.o
[ 13%] Building C object glfw/src/CMakeFiles/glfw.dir/x11_clipboard.c.o
[ 14%] Building C object glfw/src/CMakeFiles/glfw.dir/x11_gamma.c.o
[ 15%] Building C object glfw/src/CMakeFiles/glfw.dir/x11_init.c.o
[ 17%] Building C object glfw/src/CMakeFiles/glfw.dir/x11_monitor.c.o
[ 18%] Building C object glfw/src/CMakeFiles/glfw.dir/x11_window.c.o
[ 19%] Building C object glfw/src/CMakeFiles/glfw.dir/x11_unicode.c.o
[ 21%] Building C object glfw/src/CMakeFiles/glfw.dir/linux_joystick.c.o
[ 22%] Building C object glfw/src/CMakeFiles/glfw.dir/posix_time.c.o
[ 23%] Building C object glfw/src/CMakeFiles/glfw.dir/posix_tls.c.o
[ 25%] Building C object glfw/src/CMakeFiles/glfw.dir/glx_context.c.o
Linking C static library libglfw3.a
[ 25%] Built target glfw
Scanning dependencies of target 00skeleton
[ 26%] Building CXX object CMakeFiles/00skeleton.dir/00skeleton.cpp.o
/mnt/data/home/stu/projects/tutorials/OpenGL-Examples/00skeleton.cpp:8:23: fatal error: GLXW/glxw.h: No such file or directory
 #include <GLXW/glxw.h>
                       ^
compilation terminated.
CMakeFiles/00skeleton.dir/build.make:54: recipe for target 'CMakeFiles/00skeleton.dir/00skeleton.cpp.o' failed
make[2]: *** [CMakeFiles/00skeleton.dir/00skeleton.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/00skeleton.dir/all' failed
make[1]: *** [CMakeFiles/00skeleton.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

Did you successfully init/update the submodules? GLXW is is not packaged by ubuntu.

Ah - although I had inited the submodules, I hadn't run the python file inside GLXW.
After this I deleted my build directory, then recreated it and re-ran cmake + make, and everything built.
Cheers :)


Feat(workers) implement adaptive worker selection for improved task distribution

Description
Priority-based worker selection for Twitter worker selection to improve responses and latency on the network. This is outlined in the following ticket: https://github.com/masa-finance/masa-oracle/issues/544
Changes

Implemented a new NodeSorter struct for flexible sorting of worker nodes
Added performance metrics fields to NodeData struct
Created SortNodesByTwitterReliability function for Twitter workers
Updated GetEligibleWorkerNodes to use category-specific sorting
Modified GetEligibleWorkers to use sorted workers and add worker limit
Updated DistributeWork to use priority-based selection for Twitter tasks while maintaining round-robin selection for other work types

Description
This PR introduces a priority-based worker selection mechanism for Twitter-related tasks in the Masa Oracle network. It leverages newly added performance metrics to choose the most reliable workers for Twitter tasks, while maintaining the existing round-robin behavior for other work types.
The changes improve reliability, efficiency, and predictability in task allocation across the network, particularly for Twitter-related work.
TODO: Update NodeData Performance Metrics
The following tasks need to be completed to fully implement the performance-based worker selection:

Update worker_manager.go to track and update the following metrics in NodeData after each task:

ReturnedTweets: Increment when a worker successfully returns tweets
LastReturnedTweet: Update timestamp when tweets are successfully returned
TweetTimeout: Set to true if a worker times out on a Twitter task
TweetTimeouts: Increment when a worker times out on a Twitter task
LastTweetTimeout: Update timestamp when a timeout occurs

Implement a method in worker_manager.go to update these metrics, e.g.:
func (whm *WorkHandlerManager) UpdateWorkerPerformance(workerId string, success bool, tweetCount int) {
    // TODO: Implement this method to update NodeData performance metrics
}

Call this method after each Twitter task is completed or times out in the DistributeWork function.

Ensure that updated NodeData is properly propagated to other nodes in the network via the existing gossip mechanism.

Add unit tests to verify that worker performance metrics are correctly updated and influence future worker selection.

These updates will ensure that the priority-based selection for Twitter tasks is based on up-to-date performance data, improving the overall efficiency of the network.

@restevens402 can you work on the TODO list and push those commits in. We can then deploy to the bootnode and test on a new protocol version tonight/tomorrow, fix any bugs, then we can launch the testnet :)

@restevens402 there are currently two returned states that constitute a failed attempt at a remote worker:

Not a timeout per-se but a worker is not available none the less so they are unable to do the work, therefore, they should not be prioritized next time. They are 'active' in nodeData but when libp2p tries to connect they are not found: WARN[0018] Failed to find peer 16Uiu2HAmFoUdEbgTzCNad2gEnakbxUKFDie8hfwwcZJyoghtmdVY in DHT: routing: not found

How do you think we should handle this case? I just added two new fields to nodeData to track this and used this in the following function:
// SortNodesByTwitterReliability sorts the given nodes based on their Twitter reliability.
// It uses multiple criteria to determine the reliability and performance of nodes:
//  1. Prioritizes nodes that have been found more often (lower NotFoundCount)
//  2. Considers the last time a node was not found (earlier LastNotFoundTime is better)
//  3. Sorts by higher number of returned tweets
//  4. Then by more recent last returned tweet
//  5. Then by lower number of timeouts
//  6. Then by less recent last timeout
//  7. Finally, sorts by PeerId for stability when no performance data is available
//
// The function modifies the input slice in-place, sorting the nodes from most to least reliable.
func SortNodesByTwitterReliability(nodes []NodeData) {
	sorter := NodeSorter{
		nodes: nodes,
		less: func(i, j NodeData) bool {
			// First, prioritize nodes that have been found more often
			if i.NotFoundCount != j.NotFoundCount {
				return i.NotFoundCount < j.NotFoundCount
			}
			// Then, consider the last time they were not found
			if !i.LastNotFoundTime.Equal(j.LastNotFoundTime) {
				return i.LastNotFoundTime.Before(j.LastNotFoundTime)
			}
			// Primary sort: Higher number of returned tweets
			if i.ReturnedTweets != j.ReturnedTweets {
				return i.ReturnedTweets > j.ReturnedTweets
			}
			// Secondary sort: More recent last returned tweet
			if !i.LastReturnedTweet.Equal(j.LastReturnedTweet) {
				return i.LastReturnedTweet.After(j.LastReturnedTweet)
			}
			// Tertiary sort: Lower number of timeouts
			if i.TweetTimeouts != j.TweetTimeouts {
				return i.TweetTimeouts < j.TweetTimeouts
			}
			// Quaternary sort: Less recent last timeout
			if !i.LastTweetTimeout.Equal(j.LastTweetTimeout) {
				return i.LastTweetTimeout.Before(j.LastTweetTimeout)
			}
			// Default sort: By PeerId (ensures stable sorting when no performance data is available)
			return i.PeerId.String() < j.PeerId.String()
		},
	}
	sort.Sort(sorter)
}

Case two is where a worker has timed out, they were available in the DHT but they didn't process the work in the required time: ERRO[0172] error sending work to worker: 16Uiu2HAkwYxBtExeUERbisW8q3sHt8E2dhHDUqCXzSyfFg7Q2A8v: work execution timed out

This case is accounted for in the above implementation.
Therefore, can you focus on updating nodeData to have the right information contained with it.
Later on we should think about migrating nodeData to the blockchain with @mudler but this is not a priority right now.


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>

:tada: This PR is included in version 2.20.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Accurate description - shutting down the VM during the config helps

The description is very accurate - we ran into difficulties because we mistakenly added a second IP-Adress-"set" to the Interface. Thus, if you see two private IP addresses, the routing of the virtual machine will not work anymore (observed behavior). Once get to exactly the situation described in this document, the vm can reach the internet and the routing inbound works, too.
We chose to switch off the VM during the configuration, too, which is not explicitly mentioned here.

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

ID: 36ed0959-d7e8-a27b-0d32-be7341ed85eb
Version Independent ID: f819eaa1-79fa-4aa6-1212-088bdc25ff8e
Content: Associate a public IP address to a virtual machine
Content Source: articles/virtual-network/associate-public-ip-address-vm.md
Service: virtual-network
GitHub Login: @KumudD
Microsoft Alias: kumud

@alexfingercce , We are looking into this query and will update you as soon as possible.

@alexfingercce , Appreciate your patience. We have assigned this issue to the content author for updating the doc accordingly.

#reassign: asudbring

Assigning to PM for review
#reassign:@anavinahar

#reassign: @brianlehr


update node requirement to 10.x

compile for await in lifecycle/component-state requires minimum Node 10.x
Signed-off-by: Shan He<EMAIL_ADDRESS>

Coverage remained the same at 83.045% when pulling d2c5ae2dd916ca556f833510f4660912b28eae4e on update-node into 6b029761d9150d895c7f9e85dc9d89e4fa6360ff on master.


Method to truncate file at given pos

How to truncate file at some (or current) pos?

I've added this. Documentation is updated, and there's a new part of the example program that uses it.


Analog Clock

A working Analog Clock made using HTML, CSS and vanilla JavaScript

You can follow me on github and give ⭐ to this repo.


SplitLayout cannot be nested with the current policy

with the current implementation, creating a split pane with three panes (common use case in IJ) is possible but encounters many issues and no good code readability. (nesting 2 SplitLayouts)
As an example, resizing the window or a single pane will break the inner split pane resize if there is a min/max ratio specified, and in some cases you lose control of the divider.

Is anyone currently working on this? I need something like IJ's ThreeComponentsSplitter in a Jewel/Compose app and would be happy to look into some changes to the SplitLayout components to make them a bit more flexible for this use-case.

I was meaning to, but didn't have time :( we'd be happy to get help on it.
I was looking at using Accompanist's TwoPane as a reference, minus the adaptive part, if this helps

Excellent, very happy to hear this Gary :)

Merged into #273


Move subquery alias assignment onto rules

Which issue does this PR close?

Closes #3437
Closes #3791
(although these were actually fixed by https://github.com/apache/arrow-datafusion/pull/4038)
Rationale for this change

Having mutable state associated with OptimizerConfig complicates implementing it for SessionState. I originally hoped to implement OptimizerConfig for DataFrame, but this would have required churning all the planning machinery and so I decided against this.
There is one implication potentially worth highlighting with this change, as the state is now associated with the OptimizerRule and not an OptimizerContext created for the call to SessionState::optimize, state will now bleed across calls whereas it previously wouldn't. In some ways this is better, as previously calling optimize twice could theoretically result in an alias collision, but I thought it worth highlighting.
What changes are included in this PR?

Move alias state from OptimizerConfig onto the individual rules
Are these changes tested?

Are there any user-facing changes?
Yes, queries will get potentially different aliases assigned to them by the optimizer.

This will be fine, there is a potential collision if the same rule appears multiple times in the same list of optimizers, i.e. something like
let rules: Vec<Arc<dyn OptimizerRule + Sync + Send>> = vec![
    Arc::new(DecorrelateWhereIn::new()),
    Arc::new(ScalarSubqueryToJoin::new()),
    Arc::new(ScalarSubqueryToJoin::new()),
    ...
];

However, this doesn't occur in practice and could easily be worked around by using
let subquery = Arc::new(ScalarSubqueryToJoin::new());
let rules: Vec<Arc<dyn OptimizerRule + Sync + Send>> = vec![
    Arc::new(DecorrelateWhereIn::new()),
    subquery.clone(),
    subquery,
    ...
];

One question regarding the Subquery Alias generation logic:
Why does the InSubquery generate a Subquery Alias, but the  Exists  Subquery does not ?

@jackwener
Do you have some idea ?

#[test]
fn exists_subquery() {
    let sql = "SELECT id FROM person p WHERE EXISTS \
            (SELECT first_name FROM person \
            WHERE last_name = p.last_name \
            AND state = p.state)";

    let expected = "Projection: p.id\
        \n  Filter: EXISTS (<subquery>)\
        \n    Subquery:\
        \n      Projection: person.first_name\
        \n        Filter: person.last_name = p.last_name AND person.state = p.state\
        \n          TableScan: person\
        \n    SubqueryAlias: p\
        \n      TableScan: person";
    quick_test(sql, expected);
}

looks like exists subquery also can  generate a Subquery Alias. @mingmwang

Yes, but after the logical optimization, the SubqueryAlias is gone.

Yes, but after the logical optimization, the SubqueryAlias is gone.

Because optimize_where_in have param AliasGenerator but optimize_exists don't.

@ygf11 In fact, subquery alias doesn't actually work, we can eliminate it, and I'm getting ready to do it.
You shouldn't see Optimized Logical Plan, which have eliminated subquery alias.
subquery alias exist both in exist-subquery (Existential Test subquery) and in-subquery (Quantified Comparision subquery)
spark-sql> explain extended select * from hudi_test where uuid in (select uuid from hudi_test);

== Analyzed Logical Plan ==
_hoodie_commit_time: string, _hoodie_commit_seqno: string, _hoodie_record_key: string, _hoodie_partition_path: string, _hoodie_file_name: string, uuid: int, name: string, price: double
Project [_hoodie_commit_time#37, _hoodie_commit_seqno#38, _hoodie_record_key#39, _hoodie_partition_path#40, _hoodie_file_name#41, uuid#42, name#43, price#44]
+- Filter uuid#42 IN (list#93 [])
   :  +- Project [uuid#104]
   :     +- SubqueryAlias spark_catalog.default.hudi_test
   :        +- Relation default.hudi_test[_hoodie_commit_time#99,_hoodie_commit_seqno#100,_hoodie_record_key#101,_hoodie_partition_path#102,_hoodie_file_name#103,uuid#104,name#105,price#106] parquet
   +- SubqueryAlias spark_catalog.default.hudi_test
      +- Relation default.hudi_test[_hoodie_commit_time#37,_hoodie_commit_seqno#38,_hoodie_record_key#39,_hoodie_partition_path#40,_hoodie_file_name#41,uuid#42,name#43,price#44] parquet

spark-sql> explain extended select * from hudi_test where exists (select uuid from hudi_test);

== Analyzed Logical Plan ==
_hoodie_commit_time: string, _hoodie_commit_seqno: string, _hoodie_record_key: string, _hoodie_partition_path: string, _hoodie_file_name: string, uuid: int, name: string, price: double
Project [_hoodie_commit_time#37, _hoodie_commit_seqno#38, _hoodie_record_key#39, _hoodie_partition_path#40, _hoodie_file_name#41, uuid#42, name#43, price#44]
+- Filter exists#107 []
   :  +- Project [uuid#118]
   :     +- SubqueryAlias spark_catalog.default.hudi_test
   :        +- Relation default.hudi_test[_hoodie_commit_time#113,_hoodie_commit_seqno#114,_hoodie_record_key#115,_hoodie_partition_path#116,_hoodie_file_name#117,uuid#118,name#119,price#120] parquet
   +- SubqueryAlias spark_catalog.default.hudi_test
      +- Relation default.hudi_test[_hoodie_commit_time#37,_hoodie_commit_seqno#38,_hoodie_record_key#39,_hoodie_partition_path#40,_hoodie_file_name#41,uuid#42,name#43,price#44] parquet

In fact, subquery alias doesn't actually work, we can eliminate it, and I'm getting ready to do it.

Thanks for explaining @jackwener. It helps a lot.
I find the behavior of subquery alias is different from it in spark:

DataFusion doesn't add subquery alias in Bind/Analyze stage.
If the in-subquery can be optimized to join, it adds a subquery alias to the plan.

Following are examples:
> explain select * from t1 where t1_id in (select t2_id from t2);
# optimized plan
Projection: t1.t1_id, t1.t1_name, t1.t1_int
  LeftSemi Join: t1.t1_id = __correlated_sq_3.t2_id
    TableScan: t1 projection=[t1_id, t1_name, t1_int]
    SubqueryAlias: __correlated_sq_3 # Added in DecorrelateWhereIn rule
      Projection: t2.t2_id
          TableScan: t2 projection=[t2_id]

> explain select * from t1 where t1_id in (select t2_id from t2 as x);
# optimized plan
Projection: t1.t1_id, t1.t1_name, t1.t1_int
  LeftSemi Join: t1.t1_id = __correlated_sq_3.t2_id
    TableScan: t1 projection=[t1_id, t1_name, t1_int]
    SubqueryAlias: __correlated_sq_3   # Added in DecorrelateWhereIn rule
      Projection: x.t2_id AS t2_id
        SubqueryAlias: x     # Introduced by `AS` keyword
          TableScan: t2 projection=[t2_id]

As you plan to eliminate subquery alias, I think maybe we should add subquery alias in Bind/Analyze stage not in optimization stage.
BTW, DecorrelateWhereExists doesn't add subquery alias, so alias seems gone after optimization.
How do you think? @jackwener @mingmwang

As you plan to eliminate subquery alias, I think maybe we should add subquery alias in Bind/Analyze stage not in optimization stage.

Current, There isn't a binder/analyzer in Datafusion, I have tried to implemented it, but it's a difficult and huge work.
I think add subquery alias in optimization also is reasonable.

DecorrelateWhereExists doesn't add subquery alias

I think it's an oversight, and if anyone want to unify DecorrelateWhereExists and DecorrelateWhereIn, I think this problem will be fixed.
I also suspect that this problem may be caused by out-of-sync modifications (DecorrelateWhereIn was fixed but DecorrelateWhereExists not)


[WebJobs.Extensions.ServiceBus] Scaler APIs

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

Will need to generate the API listing.

/azp run net - servicebus - tests


Auto Draw 2.1 Suspended in Task Manager

When i tried to run exe . The auto Draw 2.1 showed suspended in Task Manager . and the exe file do not open. How can i fix this ??

That's not good. Can you share what your config looks like in 'C:\Users\USERNAME\AppData\Local\AutoDraw\config.json'?

That's not good. Can you share what your config looks like in 'C:\Users\USERNAME\AppData\Local\AutoDraw\config.json'?

Sir i do not understand what are you saying . Please Help me

That's not good. Can you share what your config looks like in 'C:\Users\USERNAME\AppData\Local\AutoDraw\config.json'?

sir there is a log file which contains error i think. Sir pls provide me solution after reading it. i can attach files too

06.05.2024.txt
07.05.2024.txt
there is config.json file also but it is empty

That's not good. Can you share what your config looks like in 'C:\Users\USERNAME\AppData\Local\AutoDraw\config.json'?

sir there is a log file which contains error i think. Sir pls provide me solution after reading it. one file is of yesterday and one is today

06.05.2024.txt 07.05.2024.txt

there is config.json file also but it is empty.

Closing this as its turned stale, please contact for future support in the Discord rather than over GitHub


Next Steps

[ ] Get API docs autobuilt
[ ] turn on Travis
[ ] Get notebook tests running again
[ ] Add a work-around in phosphide to, from the appshell, get the current dock panel widget and list of dock panel widgets
[ ] Basic tutorial documentation about the architecture of phosphide, document manager, and our app

Can you open an issue on phosphor to track the changes/functionality you need?

Good idea. @blink1073, can you do that?

Yep, on it.

cf https://github.com/phosphorjs/phosphor/issues/77

This is obsolete now.


Version 3.9.0 changing subscription list to alphabetical order.

Describe the bug
I upgraded to Version 3.9.0 :7ad9df044: (8175) and Vienna reordered my subscription list to alphabetical order.  I reset all my subscriptions to the order I want by restoring the opml subscription list form my last save but Vienna again reset the order to alphabetical with groups at the top. The previous version didn't mess with the order of my subscriptions - everything stayed in the position I set them to.
To Reproduce
I just reset the order and sometime in the following 24 hours Vienna re-orders them to alphabetical
Screenshots
Add screenshots to help explain your problem, if possible.
Please complete the following information:

Vienna Version 3.9.0 :7ad9df044: (8175)
OS version: Sonoma 14.3 (23D56)

Additional information:

Closing this as it is a duplicate of #1743


[HTML] iframes, Fx 77 tasks

Trello
https://trello.com/c/rUonlSLg/190-html-iframe-element-fx-77
Acceptance criteria

[x] Remove support for  in content

BCD PR -- removes the feature entirely

@jmswisher can we set dev-doc-complete on the bugzilla bug now and close this issue?

Done


.NET Core Project Globalization and Localization in VS Code

Visual Studio Code does not have a resx file editor or resx file extension, which makes it impossible for net core projects to implement globalization and localization, it needs a resx file editor or resx file extension maybe

@vscodebot thank you, I'll try it


Docs: document the new UPSERT feature

Check this PR description

Done, based on https://github.com/tablelandnetwork/docs/pull/57#pullrequestreview-1235243045


New Logo For Note

Hi @0quietwater0 , I want to contribute to your project, I want to design a logo and icons for your project and it's free, do you want it?

ok ,Thanks

Okay, I'll design it

hi @0quietwater0 , What do you think, which one do you like? If anything needs to be changed, please let me know

I like all of them and I perfer the first one.

All right, wait a minute I'll upload it to drive.

Ok,  I am look forward to further cooperation with you.

Hi @0quietwater0 , hi i've uploaded it, please check your link in this drive
https://drive.google.com/open?id=1XBSLud9bIK74eoQNgfqcTgd0QNW_tpxQ
And I've sent a pull request for you #2

@zularizal I have merged them.

Okay @0quietwater0 , i will close this issue


Cannot find module './lib/constants'

Library Affected:
sw-offline-google-analytics,
Browser & Platform:
Chome 54.0.2840.59 m (64-bit) Windows 10
Issue or Feature Request Description:
Following the instructions, installed from npm and then added to service worker but getting the above error.

Installed from npm using jspm, resulting directory structure is:

importScripts('/static/jspm_packages/npm/sw-offline-google-analytics@1.1.1/offline-google-analytics-import.js');

// Then, call goog.offlineGoogleAnalytics.initialize():
// See https://github.com/GoogleChrome/sw-helpers/tree/master/projects/sw-offline-google-analytics#googofflinegoogleanalyticsinitialize
goog.offlineGoogleAnalytics.initialize();

Thanks for the bug report. I just tried using the npm module directly and everything appears to be working as expected (when importing from node_modules):

Do you have a reduced test case using JSPM that you can share? It looks like there may be something tripping up the browserified builds we expose in your particular setup.

Thanks for responding. Seems to be something to do with jspm and it's packaging. I tried the npm one directly and it works fine.
This is the gist of the offline-google-analytics-import.js script that comes from using jspm https://gist.github.com/oppianmatt/881f108be83cdde9e2e86e3b15665655
Service worker is just run like so in a script tag near the end of body:
    <script>
      if ('serviceWorker' in navigator) {
        navigator.serviceWorker.register('/service-worker.js');
      }
    </script>

In the service-worker.js itself, it's basically the https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/custom-offline-page/service-worker.js with offline analytics added in https://developers.google.com/web/updates/2016/07/offline-google-analytics
Tried:

using importScripts to load the file from jspm_packages directory
using importScripts to load system.js/config.js and then tried both using systemjs to import or importScripts

So tried these:
// load systemjs and config, this is ok, no errors
importScripts('{% static "jspm_packages/system.js" %}', '{% static "config.js" %}');

...

// try loading using module name (404)
importScripts('sw-offline-google-analytics');

// try loading directly from the jspm_packages dir (this the npm analogy)
importScripts('{% static<EMAIL_ADDRESS>%}');

// try loading module name + js file
importScripts('sw-offline-google-analytics/offline-google-analytics-import.js');

// try using systemjs loader
System.import('sw-offline-google-analytics').then(function(){
    goog.offlineGoogleAnalytics.initialize();
    console.log('offlineGoogleAnalytics init');
});

for completeness here is the service-worker.js as is (using the npm file) https://gist.github.com/oppianmatt/606eb39c3466e83f089f88784bc8da71
Although this feels like if it works in npm and not in jspm, then it must be jspm's issue and not yours. So might raise/point the jspm people to this issue

@addyosmani I opened up a report on jspm here https://github.com/jspm/jspm-cli/issues/213
And the recommendation was to add an entry point to package.json
would that be possible?

If it is meant to be imported, IE required in a commonjs environment it really should have a main field. JSPM is not the only tool depending on this. TypeScript comes to mind, but there are probably countless other tools that also depend on this metadata and will be tripped up by this behavior as well. JSPM can read then browser property as well as several others, so it doesn't have to be main.

@oppianmatt Did you mean to link to jspm/jspm-cli/#2133, that is the issue you opened.

@aluanhaddad oops, cut and paste fail.
Does JSPM need a node style module.exports = moduleInstance, a ES6 export (export default moduleInstance)?
Finally would JSPM expect the raw source (i.e. allowing the developer manage their own bundling / minification / transpilation) or would it expect the bundling etc to be done?
I ask as I've been working on the bundling for some of the modules and want to make sure we are covering all bases.

I'm going to close this for now. We've changed the structure of modules to include both minified and unminified versions of each sub-project, releasing a version for under main as well as jsnext:main. If there is anything actionable we can do to support your use case or a minimal repro so that we can investigate further please reopen :)


Pyautogui locateCenterOnScreen issue

The locateCenterOnScreen method of pyautogui has stopped working on my computer. It used to work perfectly but now it won't move the mouse; alos, the code won't raise an error. If it can't find the png file on screen it just carries on. This isn't due to an Error Handling clause it's doing it on it's own.
Any help would be appreciated.

I'm sorry but this is not a Spyder bug or error. Please find the right place to report this problem (i.e. the pyautogui issue tracker).


Configure basename and portal

Possible to change default value of; self.target_basename = 'iqn.2011-08.org.truenas.ctl' and self.target_portal = 'hpe-csi' with a config map/secret.
Apply config map to values in backend.py.

The target_basename is hardcoded in the CSI driver (https://git.io/J1Enf), it doesn't have to be - it's a separate issue, but that's how the CSI driver currently limit the scope of what targets to look for on the host.
The target_portal could technically be associated with something else, Secret, ConfigMap etc but the TrueNAS CSP is oblivious to the fact it's running on Kubernetes (you could technically run it on the appliance itself).
Another approach could be to remove the "hpe-csi" comment requirement all together and simply return all portal IPs found with the target_basename. The CSI driver will figure out for us which ones to perform the discovery on (it matches the node IP address/subnet with the returned discovery IPs).
Let me noodle on this for the next release.

The CSP now (#40) supports either of the official target names. Custom target names altogether needs to be fixed in the upstream CSI driver if desired.

Where to define target_basename  and target_portal  ? I tried adding them to secret and storage class without success.

Where to define target_basename and target_portal ? I tried adding them to secret and storage class without success.

Did you follow the INSTALL guide? You configure them on the FreeNAS/TrueNAS appliance.

I got install working with iqn.2011-08.org.truenas.ctl/hpe-csi. I am asking here how to pass my own custom target_basename and target_portal  ?

I am asking here how to pass my own custom target_basename and target_portal

The target_basename is hardcoded in the HPE CSI Driver and the TrueNAS CSP so you need to fork and build everything yourself if you want a different name. The target_portal is only hardcoded in the TrueNAS CSP.
Why do these things matter as both parameters are merely keys to find devices and configuration?

Thanks for clarification.

Just wanted to add why this mattered in my case , I have 10 servers already iscs-connected to TrueNAS. Changing target to hardcoded value  "iqn.2011-08.org.truenas.ctl" will require downtime to reconfigure the 10 servers iscsi to new target.

Just wanted to add why this mattered in my case

The target IQNs are hardcoded in the CSI node driver, not the TrueNAS CSP. It's how the HPE CSI Driver filter out iSCSI targets on the worker nodes. It would make sense to allow that list of targets to be dynamically set but it's outside the scope of the TrueNAS CSP.

Thanks for your help.


Update ExprTernary

Remove unnecessary method
Fix an issue that could've caused bugs

By "Removed an unnecessary override" you mean removing getReturnType?


chore(templates): bring deno template in line with other templates

@MichaelDeBoey we probably want to target main now since 1.5.0 got released and this is a template change


Upscale set to False seems to have an issue

When generating a thumbnail with template tag and set upsacale to false
{% thumbnail photo.image "800x600" crop="center" upscale=False  as im %}

{% endthumbnail %}
If the image is smaller than 800x600 should remain the same but here the image came in 800x600 with the upscaled area filled with black color.
view the resulting image below
http://dl.dropbox.com/u/19286741/7e0d33a922b99a7e5e6e87e4813c86d9.jpeg

Fixed in commit 7e07a16401acc6fa99a5f22db77c80d55bb21164. Thanks!!

This was fixed in #317


transaction status context provider for compute jobs

Compute jobs take a long time so the current pattern of showing transaction feedback status in place of user action is not feasible because e can't make users stay on the same screen for what can be hours.
Solution
Create a global context provider around the app which holds infos about all transactions send into it. The provider needs to handle getting the status of those transactions in real-time. Some sort of shopping-cart like UI in some popover can be triggered by users from the main menu bar. As a start, the UI then shows a list of compute jobs and their status, and for finalized jobs an action to retrieve their results.
This provider combined with the UI might make the compute jobs list on the History page redundant.
We can then further extend usage of this transaction context provider and show all market transactions we can find for a user account at a later stage. Won't be part of this issue but should be considered when planning the context provider

Matthias and Mihai say: close, not gonna do


I can ssh to my gitea repos from emacs over anlinux, but can't browse or clone them over ssh

Gitea version (or commit ref):n/a
Git version: n/a
Operating system: anlinux on Android
Database (use [x]): n/a

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[ *] Not relevant

Log gist:

Description
...
In subject. Guided to post hereby Gitea
https://mobile.twitter.com/giteaio/status/1196950294019526656
Screenshots

Hi! It's not clear what emacs command you tried to run here but it looks like tramp is trying to connect as a shell or to run a command over ssh that gitea does not support. On the server we only support  git upload-pack, git upload-archive, git receive-pack or the lfs commands.
So we need some more information:

What command were you running in emacs?
Are you able to find out what it trying to run on the Gitea server?
Does what you are trying to do work on Github? If it doesn't we're unlikely to want to support it.

It's really important that you tell us what version of Gitea you are trying to connect to, if it's Gitea.com that's fine just say.
Of note you're connecting the message tells us that you're connecting with a deploy key rather than a user key - is that really intended?